@import url('./assets/myxa-theme.css');

@font-face {
  font-family: 'Golos Text';
  src: url('./assets/fonts/golos-text-variable.woff2') format('woff2');
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
}

/* Myxa: theme.css, next/styles.css, ui/cta.css and landing-v2.css.
   The static landing uses the same tokens without a React runtime. */
:root {
  --font-sans: 'Golos Text', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --brand-soft: color-mix(in oklch, var(--accent) 8%, white);
  --card-radius: 28px;
  --list-radius: 22px;
  --ease-out-strong: cubic-bezier(0.22, 1, 0.36, 1);
  --tint-blue: #007aff;
  --tint-indigo: #5856d6;
  --tint-green: #34c759;
  --card-shadow: none;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; background: var(--background); }
body { margin: 0; background: var(--background); color: var(--foreground); font: 400 1rem/1.5 var(--font-sans); -webkit-font-smoothing: antialiased; }
button, input, output { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button, a, label { touch-action: manipulation; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 4px; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
svg { display: block; width: 24px; height: 24px; flex-shrink: 0; }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }
h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
[hidden] { display: none !important; }
.shell { width: min(1040px, calc(100% - 48px)); margin-inline: auto; }
.nowrap { white-space: nowrap; }
.skip-link { position: fixed; z-index: 100; top: -100px; left: 16px; padding: 12px 20px; background: var(--background); border: 2px solid var(--accent); border-radius: 16px; }
.skip-link:focus { top: 8px; }
.topbar { position: sticky; top: 0; z-index: 20; background: var(--background); border-bottom: 1px solid var(--separator); }
.topbar__inner { display: flex; align-items: center; justify-content: flex-end; min-height: 64px; }
.topbar__link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 500; }
.topbar__link svg { width: 20px; height: 20px; }
.hero { position: relative; isolation: isolate; padding: 56px 0 64px; }
/* Exact two-layer AmbientGlow from myxa frontend/src/next/app/Screen.tsx.
   Kept inside the hero so the glow scrolls away with the opening section. */
.hero::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0 0 auto;
  height: 75dvh;
  max-height: 100%;
  pointer-events: none;
  --glow: var(--accent);
  background:
    radial-gradient(75% 50% at 92% 0%, color-mix(in oklch, var(--glow) 30%, transparent), transparent 70%),
    radial-gradient(130% 85% at 80% 0%, color-mix(in oklch, var(--glow) 12%, transparent), transparent 75%);
}
.buy { text-align: center; }
.hero__title { max-width: 1000px; margin-inline: auto; font-size: clamp(2rem, 3.9vw, 3.25rem); font-weight: 600; line-height: 1.14; letter-spacing: -0.035em; text-wrap: balance; }
.hero__sub { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 20px; margin-top: 24px; color: var(--muted); font-size: 1rem; }
.hero__sub b { font-weight: 600; color: var(--foreground); }
.hero__pair { display: flex; align-items: center; gap: 20px; }
.hero__pair > span + span::before { content: '·'; color: var(--muted); margin-right: 20px; }
.status { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; column-gap: 8px; row-gap: 4px; margin-top: 18px; font-size: .875rem; color: var(--accent); }
.status b { font-weight: 500; }
.status__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.status__note { color: var(--muted); }
.devices-pick { display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: 36px; }
.devices-pick__label { font-size: .9375rem; color: var(--muted); }
.stepper { display: inline-flex; align-items: center; gap: 4px; padding: 4px; background: var(--surface); border-radius: 999px; }
.stepper__btn { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--background); color: var(--accent); transition: background 150ms, transform 150ms; }
.stepper__btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.stepper__btn:hover:not(:disabled) { background: var(--brand-soft); }
.stepper__btn:active:not(:disabled) { transform: scale(.94); }
.stepper__btn:disabled { opacity: .4; color: var(--muted); }
.stepper__value { width: 132px; padding-inline: 4px; font-size: 1rem; font-weight: 500; font-variant-numeric: tabular-nums; }
.stepper__value b { font-weight: 600; }
.offers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 24px; min-height: 178px; }
.offer { position: relative; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 12px; min-width: 0; padding: 28px 24px; border: 2px solid transparent; border-radius: var(--card-radius); background: var(--surface); text-align: left; cursor: pointer; transition: background 180ms, border-color 180ms; }
.offer input { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.offer:hover { background: var(--default); }
.offer.is-selected { background: var(--brand-soft); border-color: var(--accent); }
.offer:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 4px; }
.offer__badge { position: absolute; top: 10px; left: 24px; color: var(--accent); font-size: .75rem; font-weight: 500; }
.offer__term { color: var(--foreground); font-size: 1rem; font-weight: 500; }
.offer__price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px; font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 700; line-height: 1.1; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.offer__price small { color: var(--muted); font-size: .875rem; font-weight: 400; letter-spacing: 0; }
.offer__total { color: var(--muted); font-size: .875rem; font-variant-numeric: tabular-nums; }
.hero__form { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 24px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; border: 0; border-radius: 999px; min-height: 48px; padding: 12px 28px; font: 600 1rem/1.3 var(--font-sans); letter-spacing: -.01em; cursor: pointer; text-decoration: none !important; }
.btn--primary { background: linear-gradient(180deg, oklch(.6 .15 152), oklch(.54 .15 152)); color: var(--accent-foreground); box-shadow: inset 0 1px 0 rgb(255 255 255 / .22), inset 0 -1px 0 rgb(0 0 0 / .12), 0 1px 2px rgb(0 40 20 / .12), 0 10px 24px -10px oklch(.56 .15 152 / .6); transition: transform 150ms var(--ease-out-strong), box-shadow 150ms var(--ease-out-strong); }
.btn--primary:hover { box-shadow: inset 0 1px 0 rgb(255 255 255 / .22), inset 0 -1px 0 rgb(0 0 0 / .12), 0 5px 20px -8px oklch(.56 .15 152 / .6); }
.btn--primary:active { transform: scale(.98); }
.btn[aria-busy='true'] { opacity: .7; cursor: progress; }
.hero__form .btn { width: min(100%, 400px); }
.hero__checkout-total { color: var(--muted); font-size: .875rem; font-variant-numeric: tabular-nums; }
.hero__checkout-total [data-offer-pay] { color: var(--foreground); font-weight: 500; }
.hero__meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 24px; margin-top: 24px; color: var(--muted); font-size: .875rem; }
.hero__meta li { display: flex; align-items: center; gap: 6px; }
.hero__meta svg { width: 18px; height: 18px; color: var(--muted); }
.meta-short, .hero__meta .meta-break { display: none; }
.section { padding: 64px 0; scroll-margin-top: 64px; }
.section__title, .closing__title { font-size: clamp(1.75rem, 3vw, 2.25rem); line-height: 1.2; letter-spacing: -.025em; font-weight: 600; text-wrap: balance; }
.section__lead, .closing__lead { margin-top: 16px; color: var(--muted); font-size: 1rem; line-height: 1.5; }
.flow { background: var(--background); }
.flow__head { max-width: 640px; margin-inline: auto; text-align: center; }
.flow__steps { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; margin-top: 32px; }
.flow__step { padding: 28px; border-radius: var(--card-radius); background: var(--surface); }
.flow__num { display: block; margin-bottom: 24px; color: var(--accent); font-size: 1.75rem; font-weight: 600; line-height: 1; }
.flow__step h3 { font-size: 1rem; font-weight: 600; line-height: 1.3; }
.flow__step p { margin-top: 12px; color: var(--muted); font-size: 1rem; }
.geo__head { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; }
.geo__head .section__lead { margin: 0; }
.geo__regions { display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); gap: 16px; margin-top: 32px; }
.geo__region { grid-column: span 2; padding: 24px 20px; border-radius: var(--card-radius); background: var(--surface); }
.geo__region:first-child { grid-column: span 6; }
.geo__region h3 { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 20px; color: var(--muted); font-size: .875rem; font-weight: 500; }
.geo__region h3 span { font-variant-numeric: tabular-nums; }
.geo__region ul { display: grid; gap: 14px; }
.geo__region:first-child ul { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px 20px; }
.geo__region li { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: .875rem; line-height: 1.4; }
.geo__flag { flex-shrink: 0; font-family: 'Apple Color Emoji','Segoe UI Emoji',sans-serif; }
.geo__special { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; margin-top: 16px; }
.geo__special li { display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 12px; padding: 24px; border-radius: var(--card-radius); background: var(--surface); }
.row-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--tint-blue); color: white; }
.row-icon svg { width: 22px; height: 22px; }
.geo__special .row-icon { grid-row: span 2; }
.geo__special li:nth-child(2) .row-icon { background: var(--tint-indigo); }
.geo__special li:nth-child(3) .row-icon { background: var(--tint-green); }
.geo__special b { font-size: 1rem; font-weight: 600; }
.geo__special .server-note { color: var(--muted); font-size: .875rem; margin-top: 2px; }
.gear { background: var(--background); }
.gear__copy { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.gear__copy .section__lead { margin: 0; }
.gear__list { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 16px; margin-top: 32px; }
.gear__list li { display: flex; flex-direction: column; align-items: flex-start; padding: 24px; background: var(--surface); border-radius: var(--card-radius); }
.gear__list .row-icon { margin-bottom: 20px; }
.gear__list b { font-size: 1rem; font-weight: 600; }
.gear__list .platform-note { margin-top: 4px; color: var(--muted); font-size: .875rem; }
.ask__inner { max-width: 760px; }
.ask__inner > .section__title { text-align: center; }
.ask__list { padding: 0 28px; margin-top: 32px; background: var(--surface); border-radius: var(--card-radius); }
.qa + .qa { border-top: 1px solid var(--separator); }
.qa summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px 0; cursor: pointer; list-style: none; font-size: 1rem; font-weight: 500; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary i { position: relative; width: 20px; height: 20px; flex-shrink: 0; color: var(--muted); }
.qa summary i::before, .qa summary i::after { content: ''; position: absolute; top: 9px; left: 3px; width: 14px; height: 1.5px; border-radius: 1px; background: currentColor; }
.qa summary i::after { transform: rotate(90deg); transition: transform 150ms; }
.qa[open] summary { color: var(--accent); }
.qa[open] summary i::after { transform: rotate(0); }
.qa__body { padding: 0 28px 24px 0; color: var(--muted); font-size: 1rem; }
.closing { padding: 64px 0; background: var(--background); }
.closing__lead { max-width: 670px; margin-inline: auto; }
.footer { padding: 32px 0; color: var(--muted); font-size: .875rem; }
.footer__inner { display: flex; justify-content: center; }
.footer nav { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 16px 24px; }
.footer a { color: var(--muted); }
.footer .credits { font-size: .75rem; }
.sticky { position: fixed; z-index: 30; bottom: 0; left: 0; right: 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: var(--background); border-top: 1px solid var(--separator); opacity: 0; transform: translateY(110%); transition: transform 180ms var(--ease-out-strong), opacity 180ms; pointer-events: none; }
.sticky.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.sticky .btn { width: 100%; justify-content: space-between; min-height: 56px; }
.sticky__row { max-width: 600px; margin-inline: auto; }
/* Cabinet surfaces: theme.css on mobile, styles.css[data-desk-look="ref"]
   on desktop. The cabinet uses the same 1024px breakpoint (platform.tsx). */
.offer, .flow__step, .geo__region, .geo__special li, .gear__list li, .ask__list {
  box-shadow: var(--card-shadow);
}
@media (min-width: 1024px) {
  :root {
    --background: oklch(0.955 0.004 260);
    --surface: oklch(100% 0 0);
    --card-shadow: 0 0 0 1px rgb(0 0 0 / 0.045), 0 1px 3px rgb(0 0 0 / 0.04);
  }
}
@media (min-width: 861px) { .sticky { display: none; } }
@media (max-width: 960px) {
  .offer { padding-inline: 18px; }
  .offer__badge { left: 18px; }
  .geo__regions { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .geo__region, .geo__region:first-child { grid-column: auto; }
  .geo__region:first-child { grid-column: 1/-1; }
  .geo__region:first-child ul { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .geo__special li { padding: 20px; grid-template-columns: 1fr; gap: 8px; }
  .geo__special .row-icon { grid-row: auto; margin-bottom: 4px; }
  .gear__list { gap: 12px; }
  .gear__list li { padding: 20px 16px; }
}
@media (max-width: 700px) {
  .shell { width: calc(100% - 32px); }
  .hero { padding: 36px 0 48px; }
  .hero__title { font-size: clamp(1.875rem, 6.5vw, 2.5rem); }
  .hero__sub { flex-direction: column; align-items: center; gap: 4px; margin-top: 20px; font-size: .9375rem; }
  .status { max-width: 350px; margin-inline: auto; font-size: .875rem; }
  .status__note { flex-basis: 100%; }
  .status__sep { display: none; }
  .devices-pick { margin-top: 28px; gap: 12px; }
  .devices-pick__label { font-size: .875rem; }
  .stepper__value { width: 116px; font-size: .9375rem; }
  .offers { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; min-height: 304px; }
  .offer { padding: 28px 20px 20px; gap: 10px; border-radius: 22px; min-height: 146px; }
  .offer__badge { left: 20px; top: 8px; font-size: .75rem; }
  .offer__term { font-size: .9375rem; }
  .offer__price { font-size: 2rem; }
  .btn { min-height: 56px; font-size: 1.0625rem; }
  .hero__meta { display: grid; grid-template-columns: repeat(2,max-content); justify-content: center; gap: 10px 20px; font-size: .875rem; }
  .meta-short { display: inline; }
  .meta-long { display: none; }
  .section, .closing { padding: 48px 0; }
  .section__title, .closing__title { font-size: 1.75rem; }
  .flow__steps { grid-template-columns: 1fr; margin-top: 24px; gap: 12px; }
  .flow__step { display: grid; grid-template-columns: 28px 1fr; column-gap: 16px; padding: 24px; border-radius: 22px; }
  .flow__num { grid-row: span 2; font-size: 1.5rem; margin: 0; }
  .flow__step p { margin-top: 8px; }
  .geo__head { display: block; }
  .geo__head .section__lead { margin-top: 12px; }
  .geo__regions { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin-top: 24px; }
  .geo__region { padding: 22px; border-radius: 22px; }
  .geo__region:first-child ul { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
  .geo__region:last-child { grid-column: 1/-1; }
  .geo__special { grid-template-columns: 1fr; gap: 12px; margin-top: 12px; }
  .geo__special li { grid-template-columns: auto 1fr; gap: 2px 12px; border-radius: 22px; padding: 20px 22px; }
  .geo__special .row-icon { grid-row: span 2; margin: 0; }
  .gear__copy { grid-template-columns: 1fr; gap: 12px; }
  .gear__list { grid-template-columns: repeat(2,minmax(0,1fr)); margin-top: 24px; }
  .gear__list li { padding: 24px; border-radius: 22px; }
  .gear__list li:last-child { grid-column: 1/-1; }
  .ask__inner > .section__title { text-align: left; }
  .ask__list { padding-inline: 22px; margin-top: 24px; border-radius: 22px; }
  .qa summary { gap: 16px; padding-block: 20px; }
  .qa__body { padding-right: 0; }
  .footer { padding-bottom: 100px; }
}
@media (max-width: 400px) {
  .devices-pick { flex-direction: column; gap: 10px; }
  .offer { padding-inline: 14px; }
  .offer__badge { left: 14px; }
  .offer__price { font-size: 1.875rem; }
  .offer__price small { font-size: .8125rem; }
  .offer__total { font-size: .875rem; }
  .hero__meta { column-gap: 12px; font-size: .8125rem; }
  .hero__meta svg { width: 16px; height: 16px; }
  .geo__region:first-child ul { grid-template-columns: 1fr; }
}
/* Content stays visible when JavaScript is unavailable. */
.js .anim { opacity: 0; transform: translateY(8px); }
.is-ready .anim { animation: enter 350ms var(--ease-out-strong) both; animation-delay: calc(var(--i, 0) * 40ms); }
@keyframes enter { to { opacity: 1; transform: none; } }
.js .reveal { opacity: 0; transform: translateY(10px); transition: opacity 350ms, transform 350ms var(--ease-out-strong); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .anim, .js .reveal { opacity: 1; transform: none; }
}
