/* E-mail marketing: price simulator, hero refresh, motion and the lead nudge. Builds on omnismart-growth-pages.css. */
:root { --em-accent: #5c38df; --em-deep: #2f1c67; --em-glow: #20ca78; }

/* Hero: price line and a livelier console. */
.em-from { margin-top: 18px; color: var(--gp-copy); font-size: 15px; font-weight: 700; }
.em-from b { color: var(--gp-brand); font: 800 19px Poppins, sans-serif; }
.gp-hero { position: relative; overflow: hidden; }
.gp-hero::before { position: absolute; inset: -30% -10% auto auto; width: 620px; height: 620px; border-radius: 50%; background: radial-gradient(circle, rgba(92, 56, 223, .16), transparent 62%); content: ""; pointer-events: none; }
.em-motion .gp-email-console { animation: em-float 7s ease-in-out infinite; }
@keyframes em-float { 50% { transform: translateY(-8px); } }
.em-motion .gp-email-status i { animation: em-pulse 1.6s ease-in-out infinite; }
@keyframes em-pulse { 50% { box-shadow: 0 0 0 7px rgba(32, 202, 120, .18); } }
.gp-email-kpis strong { font-variant-numeric: tabular-nums; }
.em-sending { position: relative; height: 4px; margin-top: 10px; border-radius: 4px; background: rgba(92, 56, 223, .12); overflow: hidden; }
.em-sending i { position: absolute; inset: 0 auto 0 0; width: var(--sent, 0%); border-radius: inherit; background: linear-gradient(90deg, var(--em-accent), var(--em-glow)); transition: width .9s var(--gp-ease); }
.em-flyer { position: absolute; z-index: 3; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: #fff; color: var(--em-accent); box-shadow: 0 10px 26px rgba(28, 19, 67, .2); pointer-events: none; animation: em-fly 2.4s var(--gp-ease) forwards; }
@keyframes em-fly { 0% { opacity: 0; transform: translate(0, 0) scale(.6); } 15% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(.9) rotate(8deg); } }

/* Simulator. */
.em-pricing { background: linear-gradient(180deg, #fff 0%, var(--gp-soft) 100%); }
.em-plan { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 22px; margin-top: 38px; align-items: stretch; }
.em-calc, .em-result { padding: 30px; border-radius: 24px; background: #fff; border: 1px solid var(--gp-line); box-shadow: 0 18px 50px rgba(28, 19, 67, .07); }
.em-calc-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.em-calc-head label { color: var(--gp-ink); font: 800 17px Poppins, sans-serif; }
.em-calc-head output { color: var(--em-accent); font: 800 clamp(30px, 4vw, 42px) Poppins, sans-serif; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.em-range { --fill: 0%; width: 100%; height: 12px; margin: 22px 0 8px; border-radius: 12px; appearance: none; -webkit-appearance: none; background: linear-gradient(90deg, var(--em-accent) var(--fill), #e7e3f6 var(--fill)); cursor: pointer; }
.em-range::-webkit-slider-thumb { width: 30px; height: 30px; border-radius: 50%; appearance: none; -webkit-appearance: none; background: #fff; border: 6px solid var(--em-accent); box-shadow: 0 6px 18px rgba(92, 56, 223, .35); transition: transform .2s var(--gp-ease); }
.em-range:active::-webkit-slider-thumb { transform: scale(1.15); }
.em-range::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 6px solid var(--em-accent); }
.em-range:focus-visible { outline: 3px solid rgba(92, 56, 223, .35); outline-offset: 6px; }
.em-scale { display: flex; justify-content: space-between; color: var(--gp-copy); font-size: 12.5px; font-weight: 700; }
.em-tiers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 22px; }
.em-tiers button { display: grid; gap: 2px; padding: 10px 8px; border-radius: 14px; border: 1px solid var(--gp-line); background: #fff; color: var(--gp-ink); cursor: pointer; transition: all .25s var(--gp-ease); }
.em-tiers button b { font: 800 13.5px Poppins, sans-serif; }
.em-tiers button span { color: var(--gp-copy); font-size: 12px; font-weight: 700; }
.em-tiers button:hover { border-color: var(--em-accent); transform: translateY(-2px); }
.em-tiers button[aria-pressed=true] { background: var(--em-deep); border-color: var(--em-deep); color: #fff; box-shadow: 0 10px 24px rgba(47, 28, 103, .25); }
.em-tiers button[aria-pressed=true] span { color: #cfc6f5; }
.em-base { margin-top: 18px; border-radius: 14px; background: var(--gp-soft); }
.em-base summary { display: flex; align-items: center; gap: 8px; padding: 13px 16px; color: var(--em-deep); font-weight: 800; cursor: pointer; list-style: none; }
.em-base summary::-webkit-details-marker { display: none; }
.em-base-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 0 16px 16px; }
.em-base-grid label, .em-domains label { display: grid; gap: 6px; color: var(--gp-ink); font-size: 14px; font-weight: 800; }
.em-base-grid input, .em-stepper input { min-height: 46px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--gp-line); background: #fff; color: var(--gp-ink); font: 800 16px "Nunito Sans", sans-serif; }
.em-domains { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-top: 18px; padding-top: 18px; border-top: 1px dashed var(--gp-line); }
.em-domains small { color: var(--gp-copy); font-size: 13px; font-weight: 600; }
.em-stepper { display: flex; align-items: center; gap: 6px; }
.em-stepper input { width: 70px; text-align: center; }
.em-stepper button { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--gp-line); background: #fff; color: var(--em-deep); font: 800 22px Poppins, sans-serif; cursor: pointer; }
.em-stepper button:hover { border-color: var(--em-accent); }

.em-result { position: relative; display: flex; flex-direction: column; gap: 14px; overflow: hidden; background: linear-gradient(160deg, #2f1c67 0%, #3c23a0 55%, #5c38df 100%); border: 0; color: #fff; }
.em-result::after { position: absolute; right: -90px; top: -90px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(32, 202, 120, .35), transparent 65%); content: ""; pointer-events: none; }
.em-tag { align-self: flex-start; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .14); color: #e9e4ff; font-size: 12.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.em-tag b { color: #fff; }
.em-amount { display: flex; align-items: baseline; gap: 6px; }
.em-amount span { font: 800 clamp(44px, 6vw, 62px) Poppins, sans-serif; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.em-amount small { color: #cfc6f5; font-size: 18px; font-weight: 800; }
.em-amount.is-bump span { animation: em-bump .45s var(--gp-ease); }
@keyframes em-bump { 40% { transform: scale(1.05); color: #b9ffd9; } }
.em-sum { color: #e1dbff; font-size: 14.5px; line-height: 1.55; }
.em-sum b { color: #fff; }
.em-use small { display: block; margin-top: 8px; color: #e1dbff; font-size: 13px; }
.em-bar { height: 10px; border-radius: 10px; background: rgba(255, 255, 255, .16); overflow: hidden; }
.em-bar i { display: block; width: var(--use, 0%); height: 100%; border-radius: inherit; background: linear-gradient(90deg, #8ef0be, var(--em-glow)); transition: width .6s var(--gp-ease); }
.em-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0; }
.em-kpis div { padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, .1); }
.em-kpis dt { color: #cfc6f5; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.em-kpis dd { margin: 4px 0 0; font: 800 20px Poppins, sans-serif; }
.em-custom { display: none; color: #fff; font-weight: 700; }
.em-plan.is-custom .em-custom { display: block; }
.em-plan.is-custom .em-amount, .em-plan.is-custom .em-sum, .em-plan.is-custom .em-use, .em-plan.is-custom .em-kpis { display: none; }
.em-wa { justify-content: center; background: var(--em-glow); color: #0b2a1c; box-shadow: 0 14px 30px rgba(32, 202, 120, .35); }
.em-wa:hover { background: #3be08e; }
.em-alt { color: #fff; font-weight: 800; text-align: center; text-decoration: underline; text-underline-offset: 3px; }
.em-note { color: #cfc6f5; font-size: 12.5px; text-align: center; }

.em-rules { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin: 26px 0 0; padding: 0; list-style: none; }
.em-rules li { display: grid; gap: 4px; padding: 16px; border-radius: 16px; background: #fff; border: 1px solid var(--gp-line); }
.em-rules .msym { color: var(--em-accent); font-size: 24px; }
.em-rules b { font: 800 14.5px Poppins, sans-serif; }
.em-rules span:not(.msym) { color: var(--gp-copy); font-size: 13.5px; line-height: 1.5; }
.em-table { margin-top: 22px; }
.em-table summary { color: var(--em-deep); font-weight: 800; cursor: pointer; }
.em-table-wrap { display: grid; grid-template-columns: 1.2fr 1fr; gap: 18px; margin-top: 16px; overflow-x: auto; }
.em-table table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 16px; overflow: hidden; font-size: 14.5px; }
.em-table caption { padding: 0 0 8px; color: var(--gp-ink); font-weight: 800; text-align: left; }
.em-table th, .em-table td { padding: 11px 14px; border-bottom: 1px solid var(--gp-line); text-align: left; }
.em-table th { background: var(--gp-soft); font-size: 12.5px; text-transform: uppercase; letter-spacing: .04em; }

/* Lead nudge: after the visitor plays with the simulator. */
.em-nudge { position: fixed; z-index: 60; right: 20px; bottom: 20px; width: min(360px, calc(100% - 32px)); padding: 20px; border-radius: 20px; background: #fff; border: 1px solid var(--gp-line); box-shadow: 0 24px 60px rgba(28, 19, 67, .25); transform: translateY(130%); opacity: 0; transition: transform .5s var(--gp-ease), opacity .4s; }
.em-nudge.is-on { transform: none; opacity: 1; }
.em-nudge b { display: block; color: var(--gp-ink); font: 800 17px/1.3 Poppins, sans-serif; }
.em-nudge p { margin-top: 6px; color: var(--gp-copy); font-size: 14px; line-height: 1.5; }
.em-nudge .gp-button { width: 100%; justify-content: center; margin-top: 14px; min-height: 46px; }
.em-nudge-close { position: absolute; top: 10px; right: 10px; width: 32px; height: 32px; border: 0; border-radius: 50%; background: var(--gp-soft); color: var(--gp-copy); cursor: pointer; font-size: 18px; }

@media (max-width: 980px) {
  .em-plan { grid-template-columns: minmax(0, 1fr); }
  .em-rules { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .em-table-wrap { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .em-calc, .em-result { padding: 22px 18px; }
  .em-tiers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .em-rules { grid-template-columns: minmax(0, 1fr); }
  .em-base-grid { grid-template-columns: minmax(0, 1fr); }
  .em-nudge { right: 16px; bottom: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .em-motion .gp-email-console, .em-motion .gp-email-status i, .em-amount.is-bump span { animation: none; }
  .em-bar i, .em-sending i, .em-nudge { transition: none; }
}
.gp-email-console { position: relative; }
