/* ==========================================================================
   COMMERCE — studio simulator, voices, pricing, guarantee, FAQ, final CTA,
   footer, dock, responsive, reduced motion
   ========================================================================== */

/* STUDIO (simulator as a design-tool workspace) ------------------------- */
.studio { border-radius: var(--r-window); background: rgba(7, 9, 20, .72); box-shadow: var(--sh-modal); overflow: hidden; }
.studio__bar { display: flex; align-items: center; gap: 16px; padding: 12px 16px; box-shadow: inset 0 -1px 0 var(--edge-soft); font-family: var(--font-mono); font-size: 12px; color: var(--text-4); }
.studio__bar .panel__dots { margin-right: 4px; }
.studio__tabs { display: flex; gap: 4px; margin-left: auto; }
.studio__tabs span { padding: 4px 10px; border-radius: var(--r-badge); }
.studio__tabs span.on { background: var(--glass-2); color: var(--text-2); box-shadow: var(--sh-hair); }
.studio__canvas {
  position: relative; display: grid; grid-template-columns: 1fr minmax(0, 1.25fr) 1fr; grid-template-areas: "tl c tr" "bl c br";
  gap: 24px 36px; align-items: center; padding: clamp(24px, 4vw, 56px);
  background-image: linear-gradient(var(--edge-soft) 1px, transparent 1px), linear-gradient(90deg, var(--edge-soft) 1px, transparent 1px); background-size: 40px 40px;
}
.insp { padding: 18px; background: rgba(9, 12, 26, .9); }
.insp--tl { grid-area: tl; transform: rotate(-1.2deg); }
.insp--tr { grid-area: tr; transform: rotate(1deg); }
.insp--bl { grid-area: bl; transform: rotate(.8deg); }
.insp--br { grid-area: br; transform: rotate(-.8deg); }
.insp__h { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; font-size: 13px; color: var(--text-3); }
.insp__h output { font-family: var(--font-mono); font-size: 18px; font-weight: 500; color: var(--text-hi); }
.studio__result { grid-area: c; padding: 24px; }
.sel { position: absolute; inset: -9px; border-radius: 22px; box-shadow: 0 0 0 1px rgba(182, 217, 252, .3); pointer-events: none; }
.sel i { position: absolute; width: 7px; height: 7px; background: var(--bg); box-shadow: 0 0 0 1px var(--blueprint); }
.sel i:nth-child(1) { left: -4px; top: -4px; } .sel i:nth-child(2) { right: -4px; top: -4px; }
.sel i:nth-child(3) { left: -4px; bottom: -4px; } .sel i:nth-child(4) { right: -4px; bottom: -4px; }
.sel b { position: absolute; left: 0; top: -26px; font-family: var(--font-mono); font-size: 10.5px; font-weight: 400; padding: 2px 7px; border-radius: 4px; background: var(--blueprint); color: var(--bg); }

input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 4px; border-radius: 4px; outline: none; background: linear-gradient(90deg, var(--chart-a) var(--p, 50%), var(--glass-3) var(--p, 50%)); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; background: var(--white); box-shadow: 0 0 0 4px rgba(152, 192, 239, .25), var(--sh-halo); cursor: grab; }
input[type="range"]::-moz-range-thumb { width: 16px; height: 16px; border: 0; border-radius: 50%; background: var(--white); box-shadow: 0 0 0 4px rgba(152, 192, 239, .25); cursor: grab; }
.range-scale { display: flex; justify-content: space-between; margin-top: 10px; font-family: var(--font-mono); font-size: 10.5px; color: var(--text-4); }

.swatches { display: grid; gap: 6px; }
.sw { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; font-size: 14px; color: var(--text-2); text-align: left; transition: background .2s, box-shadow .2s; }
.sw i { width: 20px; height: 20px; border-radius: 5px; background: var(--c); box-shadow: inset 0 1px 1px rgba(255, 255, 255, .25); }
.sw small { margin-left: auto; font-family: var(--font-mono); font-size: 11px; color: var(--text-4); }
.sw:hover { background: var(--glass); }
.sw[aria-pressed="true"] { background: var(--glass-2); color: var(--text-hi); box-shadow: inset 0 0 0 1px var(--edge-strong); }
.sw[aria-disabled="true"] { opacity: .35; cursor: not-allowed; }

.switch { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 9px 0; font-size: 14px; color: var(--text-2); }
.switch + .switch { box-shadow: inset 0 1px 0 var(--edge-soft); }
.switch button { flex: none; position: relative; width: 38px; height: 22px; border-radius: var(--r-pill); background: var(--glass-3); box-shadow: var(--sh-hair); transition: background .2s; }
.switch button::after { content: ""; position: absolute; left: 3px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--text-2); transition: transform .2s var(--ease-out), background .2s; }
.switch button[aria-checked="true"] { background: rgba(152, 192, 239, .5); }
.switch button[aria-checked="true"]::after { transform: translateX(16px); background: var(--white); }
.insp .note { font-size: 12px; color: var(--text-4); margin-top: 8px; }

.sim__big { font-family: var(--font-mono); font-weight: 500; font-size: clamp(38px, 4.6vw, 56px); line-height: 1; margin: 12px 0 10px; }
#simChart { width: 100%; height: 110px; margin-top: 18px; }
.sim__rows { margin-top: 16px; display: grid; border-radius: 10px; overflow: hidden; box-shadow: var(--sh-hair); }
.sim__rows div { display: flex; justify-content: space-between; padding: 11px 14px; font-size: 14px; color: var(--text-3); }
.sim__rows div + div { box-shadow: inset 0 1px 0 var(--edge-soft); }
.sim__rows b { font-family: var(--font-mono); font-weight: 500; color: var(--text-hi); }
.fine { font-size: 12px; color: var(--text-4); margin-top: 14px; line-height: 1.5; }

/* VOICES ----------------------------------------------------------------- */
.voices { overflow: hidden; display: grid; gap: 16px; padding-block: 8px; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.voices__row { display: flex; gap: 16px; width: max-content; animation: marquee 80s linear infinite; }
.voices__row--rev { animation-direction: reverse; animation-duration: 90s; }
.voices:hover .voices__row { animation-play-state: paused; }
.quote { width: 380px; flex: none; padding: 24px; margin: 0; }
.quote p { font-size: 15.5px; color: var(--text); line-height: 1.6; }
.quote p em { font-style: normal; color: var(--text-hi); background: var(--sky); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.quote footer { display: flex; align-items: center; gap: 12px; margin-top: 20px; font-size: 14px; color: var(--text-hi); }
.quote footer span:not(.ava):not(.badge) { display: block; color: var(--text-4); font-size: 12px; }
.ava { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 500; color: var(--text-hi); background: var(--steel); box-shadow: inset 0 1px 1px rgba(216, 236, 248, .25); }
.quote .badge { margin-left: auto; }

/* PRICING ---------------------------------------------------------------- */
.offer { display: flex; justify-content: center; align-items: center; gap: clamp(20px, 4vw, 48px); flex-wrap: wrap; margin-bottom: 48px; }
.countdown { display: flex; gap: 8px; }
.countdown div { min-width: 74px; padding: 12px 8px 10px; text-align: center; }
.countdown b { display: block; font-family: var(--font-dot); font-weight: 800; font-size: 34px; line-height: 1; color: var(--text-hi); text-shadow: 0 0 10px rgba(182, 217, 252, .55); }
.countdown span { display: block; margin-top: 6px; font-family: var(--font-mono); font-size: 10px; letter-spacing: .1em; color: var(--text-4); text-transform: uppercase; }
.seats { width: min(320px, 100%); font-size: 14px; color: var(--text-3); text-align: left; }
.seats b { color: var(--text-hi); font-weight: 500; }
.seats__bar { height: 4px; border-radius: 4px; background: var(--glass-3); margin-top: 10px; overflow: hidden; }
.seats__bar i { display: block; height: 100%; width: 100%; background: var(--sky); transform-origin: left; transform: scaleX(0); transition: transform 2s var(--ease-out); }
.prices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; }
.price { padding: 28px 24px; display: flex; flex-direction: column; }
.price__name { font-family: var(--font-dot); font-weight: 800; font-size: 15px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-2); }
.price__tag { color: var(--text-3); margin-top: 8px; font-size: 14.5px; }
.price__amt { display: flex; align-items: baseline; gap: 10px; margin: 26px 0 6px; }
.price__amt b { font-family: var(--font-display); font-weight: 500; font-size: 56px; line-height: 1; }
.price__amt s { color: var(--text-4); font-family: var(--font-mono); font-size: 16px; }
.price__per { font-size: 13px; color: var(--text-3); display: flex; gap: 8px; align-items: center; }
.price__acc { margin: 20px 0; padding: 10px 12px; border-radius: var(--r-badge); background: var(--glass-2); box-shadow: var(--sh-hair); font-family: var(--font-mono); font-size: 12.5px; color: var(--text-2); }
.price ul { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 12px; flex: 1; }
.price li { display: flex; gap: 10px; font-size: 14.5px; color: var(--text); }
.price li::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 1px; border-radius: 50%; background: var(--glass-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b6d9fc' stroke-width='3'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 10px no-repeat; box-shadow: var(--sh-hair); }
.price--featured { background: var(--deep-glass); box-shadow: var(--sh-modal), 0 0 0 1px rgba(182, 217, 252, .22), 0 0 90px -24px rgba(152, 192, 239, .45); }
.price--featured::before { content: ""; position: absolute; left: 50%; top: -1px; width: 60%; height: 1px; transform: translateX(-50%); background: linear-gradient(90deg, transparent, var(--text-hi), transparent); }
.price__flag { position: absolute; top: 20px; right: 20px; }
.pay { margin-top: 32px; display: flex; justify-content: center; gap: 24px; flex-wrap: wrap; font-size: 13px; color: var(--text-3); }
.pay > span { display: inline-flex; align-items: center; gap: 8px; }
.pay svg { width: 15px; height: 15px; color: var(--blueprint); }

/* GUARANTEE -------------------------------------------------------------- */
.guarantee { display: grid; grid-template-columns: auto 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; padding: clamp(28px, 5vw, 56px); text-align: left; }
.guarantee .eyebrow::before { display: none; }
.seal { width: clamp(150px, 16vw, 200px); aspect-ratio: 1; position: relative; }
.seal svg { width: 100%; height: 100%; animation: spin 40s linear infinite; }
.seal b { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; font-family: var(--font-dot); font-weight: 800; font-size: clamp(44px, 5vw, 60px); line-height: .9; color: var(--text-hi); text-shadow: 0 0 12px rgba(182, 217, 252, .5); }
.seal b small { display: block; font-family: var(--font-mono); font-weight: 400; font-size: 10px; letter-spacing: .2em; color: var(--text-3); text-shadow: none; margin-top: 6px; }
.guarantee h2 { font-size: clamp(30px, 3.8vw, 46px); margin: 16px 0 14px; }
.guarantee p { color: var(--text-2); font-size: 17px; max-width: 56ch; }

/* FAQ -------------------------------------------------------------------- */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { box-shadow: inset 0 -1px 0 var(--edge); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 22px 0; font-size: 18px; font-weight: 500; color: var(--text-hi); transition: color .2s; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--white); }
.faq summary i { flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--glass); box-shadow: var(--sh-hair); position: relative; color: var(--text-2); transition: transform .2s var(--ease-out), background .2s; }
.faq summary i::before, .faq summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 1.5px; background: currentColor; transform: translate(-50%, -50%); }
.faq summary i::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq details[open] summary i { transform: rotate(45deg); background: var(--glass-3); color: var(--text-hi); }
.faq .ans { padding: 0 56px 24px 0; color: var(--text-3); font-size: 16px; line-height: 1.65; }
.faq .ans b { color: var(--text-hi); font-weight: 500; }

/* FINAL CTA -------------------------------------------------------------- */
.final { text-align: center; overflow: hidden; isolation: isolate; padding-top: clamp(120px, 14vw, 180px); }
.final h2 { font-size: clamp(48px, 8vw, 112px); line-height: 1.04; margin-top: 24px; filter: drop-shadow(0 0 28px rgba(152, 192, 239, .22)); }
.final p { color: var(--text-2); font-size: 18px; margin: 24px auto 36px; max-width: 46ch; }

/* FOOTER ----------------------------------------------------------------- */
.foot { padding: 64px 0 36px; background: rgba(7, 9, 20, .8); box-shadow: inset 0 1px 0 var(--edge-soft); }
.foot__grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; }
.foot h4 { font-family: var(--font-dot); font-weight: 800; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); margin-bottom: 16px; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 14px; }
.foot ul a { color: var(--text-3); transition: color .2s; }
.foot ul a:hover { color: var(--text-hi); }
.foot__brand p { color: var(--text-3); margin-top: 16px; max-width: 36ch; font-size: 14px; }
.socials { display: flex; gap: 8px; margin-top: 22px; }
.socials a { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--glass); box-shadow: var(--sh-hair); color: var(--text-2); transition: background .2s, color .2s; }
.socials a:hover { background: var(--glass-3); color: var(--text-hi); }
.socials svg { width: 16px; height: 16px; }
.risk { margin-top: 48px; padding: 20px 22px; border-radius: var(--r-card); background: var(--glass); box-shadow: var(--sh-hair); font-size: 12px; line-height: 1.65; color: var(--text-4); }
.risk strong { color: var(--text-3); font-weight: 500; }
.foot__base { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 28px; font-size: 12px; color: var(--text-4); font-family: var(--font-mono); }

/* MOBILE DOCK ------------------------------------------------------------ */
.dock { position: fixed; left: max(12px, env(safe-area-inset-left)); right: max(12px, env(safe-area-inset-right)); bottom: calc(12px + env(safe-area-inset-bottom)); z-index: var(--z-dock); display: none; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 8px 8px 18px; border-radius: var(--r-pill); background: rgba(5, 6, 15, .88); backdrop-filter: blur(16px); box-shadow: var(--sh-modal); transform: translateY(160%); transition: transform .5s var(--ease-out); }
.dock.show { transform: none; }
.dock b { font-family: var(--font-mono); font-weight: 500; font-size: 15px; color: var(--text-hi); }
.dock > div > span { display: block; font-size: 11px; color: var(--text-4); }

/* RESPONSIVE ------------------------------------------------------------- */
@media (max-width: 1080px) {
  .fan { grid-template-columns: 1fr 1fr; grid-template-areas: "c c" "l r"; gap: 16px; max-width: 760px; }
  .fan__card--c { grid-area: c; } .fan__card--l { grid-area: l; } .fan__card--r { grid-area: r; }
  .fan__card--l, .fan__card--r, .fan:hover .fan__card--l, .fan:hover .fan__card--r { transform: none; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .modules { grid-template-columns: repeat(3, 1fr); row-gap: 24px; }
  .modules__rail { display: none; }
  .mod-view, .term-wrap { grid-template-columns: 1fr; }
  .studio__canvas { grid-template-columns: 1fr 1fr; grid-template-areas: "c c" "tl tr" "bl br"; }
  .insp { transform: none !important; }
  .prices { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  .foot__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .nav__links { position: fixed; inset: 0; z-index: var(--z-below); flex-direction: column; justify-content: center; align-items: center; gap: 6px; background: rgba(5, 6, 15, .97); opacity: 0; pointer-events: none; transition: opacity .2s; }
  .nav__links a { font-family: var(--font-display); font-size: 34px; font-weight: 500; color: var(--text-hi); }
  .nav-open .nav__links { opacity: 1; pointer-events: auto; }
  .nav__burger { display: block; }
  .nav__right .btn--outline { display: none; }
  .steps { grid-template-columns: 1fr; }
  .guarantee { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .dock { display: flex; }
  .foot { padding-bottom: calc(108px + env(safe-area-inset-bottom)); } /* the last footer line clears the sticky dock */
}
@media (max-width: 600px) {
  .fan { grid-template-columns: 1fr; grid-template-areas: "c" "l" "r"; }
  .hero__ctas .btn { width: 100%; }
  .nav__right .btn--gold { display: none; }
  .stats { gap: 10px; } .stat { padding: 18px; } .stat__value { font-size: 34px; }
  .modules { grid-template-columns: repeat(2, 1fr); }
  .mod__icon { width: 54px; height: 54px; }
  .studio__canvas { grid-template-columns: 1fr; grid-template-areas: "c" "tl" "tr" "bl" "br"; padding: 44px 16px 16px; }
  .eyebrow { font-size: 12.5px; gap: 10px; }
  .eyebrow::before, .eyebrow::after { width: 20px; }
  .studio__tabs { display: none; }
  .cal__row { grid-template-columns: 46px 1fr 40px 64px; } .cal__row > :nth-child(2) { display: none; }
  .mkts { grid-template-columns: 1fr 1fr; }
  .quote { width: 290px; }
  .countdown div { min-width: 62px; } .countdown b { font-size: 28px; }
  .panel__dots { display: none; }
  .panel__stats div { padding: 10px; }
  .panel__stats .label { font-size: 9.5px; letter-spacing: .04em; }
  .panel__stats b { font-size: 16px; }
  .foot__grid { grid-template-columns: 1fr; }
  .faq .ans { padding-right: 0; }
  .faq summary { font-size: 16.5px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1; transform: none; filter: none; }
}
