/* Home page. Tokens and fonts live in base.css; everything here follows the app's look. */

body { overflow-x: clip; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
:root {
  --section: clamp(88px, 11vw, 144px);
  /* One fluid type scale: 375px phones to 1280px desktops */
  --t-hero: clamp(40px, 4.6vw + 22px, 80px);
  --t-h2: clamp(30px, 2.6vw + 20px, 52px);
  --t-lede: clamp(17px, .5vw + 15px, 21px);
  --shadow-lift: 0 2px 4px rgba(38, 23, 51, .04), 0 20px 44px -16px rgba(38, 23, 51, .18);
  --ease: cubic-bezier(.2, .7, .2, 1);
}
svg use { pointer-events: none; }

/* The app's brand glow: violet from the top left, mint from the top right. */
.glow {
  position: absolute; inset: 0 0 auto; height: 1100px; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 50% at 12% 0%, rgb(97 0 255 / var(--glow)), transparent 70%),
    radial-gradient(50% 45% at 92% 8%, rgb(18 210 130 / calc(var(--glow) * .8)), transparent 70%);
}

/* Buttons, as in the app */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 50px; padding: 0 24px;
  border-radius: var(--radius-sm);
  background: var(--button-gradient);
  color: #fff;
  font-size: 16px; font-weight: 600; letter-spacing: -.2px;
  text-decoration: none;
  box-shadow: 0 10px 24px -10px rgba(97, 0, 255, .6);
  transition: filter .2s, transform .2s var(--ease), box-shadow .2s;
}
.btn:hover { filter: brightness(1.08); transform: translateY(-1px); box-shadow: 0 14px 28px -10px rgba(97, 0, 255, .65); }
.btn:active { transform: translateY(0) scale(.98); transition-duration: .08s; }
.btn-sm { height: 40px; padding: 0 18px; font-size: 15px; }
.btn-quiet { background: var(--surface); color: var(--text); border: 1px solid var(--border); box-shadow: var(--shadow); }
.btn-quiet:hover { filter: none; border-color: var(--accent); box-shadow: var(--shadow-lift); }

.nav { display: flex; align-items: center; gap: 30px; font-size: 15px; font-weight: 500; }
.nav a:not(.btn) { position: relative; padding: 6px 0; color: var(--text-sec); text-decoration: none; transition: color .2s; }
.nav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px; background: var(--brand-gradient); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav a:not(.btn):hover, .nav a[aria-current] { color: var(--text); }
.nav a:not(.btn):hover::after, .nav a[aria-current]::after { transform: scaleX(1); }

/* The header sticks, and turns frosted once the page moves under it. */
.site-head { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid transparent; transition: background .25s, border-color .25s, backdrop-filter .25s; }
.site-head.scrolled { background: color-mix(in srgb, var(--bg) 80%, transparent); -webkit-backdrop-filter: saturate(1.6) blur(16px); backdrop-filter: saturate(1.6) blur(16px); border-color: var(--border); }
.site-head .bar { height: 72px; }
.nav .btn { color: #fff; }

.grad { background: var(--brand-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pill-prem { display: inline-block; padding: 4px 12px; border-radius: 999px; background: var(--brand-gradient); color: #fff; font-size: 13px; font-weight: 600; letter-spacing: -.1px; line-height: 1.4; }

/* ——— Hero ——— */
.hero { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 36px 0 56px; }
.hero-mark { width: 52px; height: 52px; margin-bottom: 26px; }
.hero h1 { font-size: var(--t-hero); line-height: 1.04; letter-spacing: -.045em; max-width: 12em; }
.hero h1 .grad { display: inline-block; padding-bottom: .06em; text-wrap: balance; }
.lede { margin: 20px 0 0; max-width: 32em; font-size: var(--t-lede); line-height: 1.5; color: var(--text-sec); }
.cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 36px; }
.chips { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 28px 0 0; padding: 0; }
.chips li { display: flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid var(--border); border-radius: 999px; background: color-mix(in srgb, var(--surface) 60%, transparent); font-size: 14px; font-weight: 500; color: var(--text-sec); }
.chips svg { width: 16px; height: 16px; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ——— Product window ——— */
.product { position: relative; padding-bottom: 32px; }
.product::before {
  content: ""; position: absolute; inset: 10% 8% 0; z-index: -1; border-radius: 50%;
  background: radial-gradient(closest-side, rgb(97 0 255 / calc(var(--glow) * 1.4)), transparent);
  filter: blur(40px);
}
.window {
  max-width: 1040px; margin: 0 auto;
  border: 1px solid var(--border); border-radius: 18px; overflow: hidden;
  background: linear-gradient(160deg, color-mix(in srgb, var(--violet) 7%, var(--bg)), var(--bg) 45%, color-mix(in srgb, var(--mint) 6%, var(--bg)));
  box-shadow: 0 40px 100px -40px rgba(38, 23, 51, .35), var(--shadow);
  font-size: 14px; letter-spacing: -.1px; text-align: left;
}
.win-bar { display: flex; gap: 8px; padding: 14px 16px; }
.win-bar i { width: 12px; height: 12px; border-radius: 50%; background: var(--border); }
.win-body { display: grid; grid-template-columns: 1fr 300px; gap: 20px; padding: 0 20px 20px; }
.win-top { display: flex; justify-content: space-between; align-items: center; margin: 2px 0 26px; }
.win-top img { height: 20px; width: auto; }
.win-title { margin: 0; font-size: 26px; font-weight: 700; letter-spacing: -.6px; line-height: 1.2; }
.win-sub { margin: 6px 0 20px; color: var(--text-sec); }
.dev-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.dev { display: grid; grid-template-columns: 1fr; grid-template-rows: 44px 1fr auto auto 14px; grid-template-areas: "icon" "." "name" "state" "meter"; min-height: 164px; padding: 18px; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); border: 1px solid transparent; }
@media (prefers-color-scheme: dark) { .dev { border-color: var(--border); } }
.dev .dev-icon { grid-area: icon; }
.dev b { grid-area: name; font-size: 16px; font-weight: 600; letter-spacing: -.3px; }
.dev-state { grid-area: state; display: flex; align-items: center; gap: 7px; margin-top: 2px; font-size: 13px; color: var(--text-sec); font-variant-numeric: tabular-nums; }
.dev-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--sys); color: var(--text-sec); }
.dev-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.dev-icon-on { background: var(--tint); color: var(--accent); }
.dev-icon-live { background: linear-gradient(135deg, var(--violet), var(--mint)); color: #fff; box-shadow: 0 8px 20px -8px rgba(97, 0, 255, .6); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--text-muted); flex: none; }
.dot-violet { background: var(--accent); }
.dot-mint { background: var(--mint); }
.dev .meter { grid-area: meter; align-self: end; }
.meter { display: block; height: 4px; margin-top: 10px; border-radius: 4px; background: var(--sys); overflow: hidden; }
.meter i { display: block; height: 100%; width: 37%; border-radius: 4px; background: var(--brand-gradient); }
.meter-thin { height: 3px; margin: 6px 0 4px; }
.dev-live .dev-state { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dev-live.done .dev-state { color: #0b9e62; font-weight: 600; }
@media (prefers-color-scheme: dark) { .dev-live.done .dev-state { color: var(--mint); } }

.win-side { padding: 18px 0 8px; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); border: 1px solid transparent; }
@media (prefers-color-scheme: dark) { .win-side { border-color: var(--border); } }
.side-title { margin: 0; padding: 0 18px 14px; font-size: 16px; font-weight: 600; border-bottom: 1px solid var(--border); }
.act { list-style: none; margin: 0; padding: 0; }
.act li { display: flex; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--border); }
.act li:last-child { border-bottom: 0; }
.act-icon { position: relative; display: grid; place-items: center; width: 38px; height: 38px; flex: none; border-radius: 10px; background: var(--sys); color: var(--accent); }
.act-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.badge { position: absolute; right: -3px; bottom: -3px; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--surface); }
.badge-up { background: var(--violet); }
.badge-down { background: var(--mint); }
.act-text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.act-text b { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.act-text small { font-size: 12.5px; color: var(--text-sec); font-variant-numeric: tabular-nums; }

.platforms-line { margin: 24px auto 0; text-align: center; font-size: 17px; color: var(--text-sec); }
.platforms-line b { color: var(--text); font-weight: 600; }

/* ——— Sections ——— */
.section-head { max-width: 640px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { font-size: var(--t-h2); letter-spacing: -.04em; line-height: 1.08; }
.section-head p { margin: 16px 0 0; font-size: var(--t-lede); line-height: 1.5; color: var(--text-sec); }
.section-head a { color: var(--accent); font-weight: 500; text-decoration-thickness: 1px; text-underline-offset: 3px; }

.how { padding-top: var(--section); }
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.tile { grid-column: span 2; padding: 32px; border-radius: 24px; background: var(--surface); box-shadow: var(--shadow); border: 1px solid transparent; transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s; }
@media (hover: hover) {
  .tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
  .tile:hover .tile-icon { transform: scale(1.08) rotate(-4deg); }
  .tile:hover .node { transform: translateY(-2px); }
}
@media (prefers-color-scheme: dark) { .tile { border-color: var(--border); } }
.tile-lg { grid-column: span 3; }
.tile h3 { font-size: 20px; letter-spacing: -.02em; }
.tile-lg h3 { font-size: 24px; }
.tile p { margin: 10px 0 0; color: var(--text-sec); font-size: 16px; }
.tile-icon { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 24px; border-radius: 12px; background: var(--tint); color: var(--accent); transition: transform .35s var(--ease); }
.tile-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.route-art { display: flex; align-items: center; gap: 12px; height: 132px; margin: 0 0 28px; padding: 0 12px; border-radius: 16px; background: linear-gradient(135deg, color-mix(in srgb, var(--violet) 7%, transparent), color-mix(in srgb, var(--mint) 7%, transparent)); }
.node { display: grid; place-items: center; width: 60px; height: 60px; flex: none; border-radius: 16px; background: var(--surface); color: var(--text); box-shadow: var(--shadow); transition: transform .35s var(--ease); }
.node svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.wire { flex: 1; display: flex; align-items: center; gap: 8px; }
.wire i { flex: 1; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--violet), var(--mint)); background-size: 200% 100%; animation: flow 2.4s linear infinite; }
.wire b { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--surface); color: var(--accent); box-shadow: var(--shadow); }
.wire b svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@keyframes flow { from { background-position: 100% 0; } to { background-position: -100% 0; } }

/* Share: the one dark band, in the app's brand dark */
.share { margin-top: var(--section); padding: calc(var(--section) * .85) 0; background: #20003D; color: #F5F3F8; position: relative; overflow: hidden; }
.share::before { content: ""; position: absolute; inset: -30% -10% auto auto; width: 70%; height: 120%; background: radial-gradient(closest-side, rgba(18, 210, 130, .16), transparent); pointer-events: none; }
@media (prefers-color-scheme: dark) { .share { background: #15111C; border-block: 1px solid var(--border); } }
.share-inner { position: relative; display: grid; grid-template-columns: 1.1fr 1fr; gap: 72px; align-items: center; }
.share h2 { font-size: var(--t-h2); letter-spacing: -.04em; line-height: 1.08; }
.share-copy p { margin: 20px 0 0; font-size: var(--t-lede); line-height: 1.5; color: #B9A8D6; max-width: 32em; }
.share-copy p + p { margin-top: 14px; }
.share-card { padding: 28px; border-radius: 24px; background: #fff; color: #1B1224; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .5); max-width: 420px; justify-self: end; width: 100%; }
@media (prefers-color-scheme: dark) { .share-card { background: #1D1826; color: #F5F3F8; } }
.sc-title { margin: 0; font-size: 20px; font-weight: 700; letter-spacing: -.4px; }
.sc-sub { margin: 4px 0 0; font-size: 14px; color: #6D6580; }
@media (prefers-color-scheme: dark) { .sc-sub { color: #A29BB0; } }
.sc-code { margin: 12px 0 0; padding: 18px; border-radius: 14px; background: rgba(97, 0, 255, .06); text-align: center; font-size: 30px; font-weight: 700; letter-spacing: -.8px; color: var(--violet); }
@media (prefers-color-scheme: dark) { .sc-code { background: rgba(154, 92, 255, .12); color: #B98BFF; } }
.sc-link { margin: 10px 0 0; text-align: center; font-size: 14px; font-weight: 500; color: #6D6580; }
.sc-wait { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 18px; font-size: 14px; color: #6D6580; }
@media (prefers-color-scheme: dark) { .sc-link, .sc-wait { color: #A29BB0; } }
.spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(97, 0, 255, .18); border-top-color: var(--violet); animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.sc-files { display: flex; gap: 12px; align-items: center; margin-top: 20px; padding: 12px; border-radius: 14px; border: 1px solid rgba(38, 23, 51, .08); font-size: 14px; }
@media (prefers-color-scheme: dark) { .sc-files { border-color: rgba(255, 255, 255, .08); } }
.sc-files .act-icon { background: rgba(97, 0, 255, .08); color: var(--violet); }
.sc-files small { color: #6D6580; }

/* Pricing */
.pricing { padding-top: var(--section); }
.plans { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; max-width: 880px; margin: 0 auto; }
.plan { padding: 32px; border-radius: 24px; background: var(--surface); box-shadow: var(--shadow); border: 1px solid var(--border); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
@media (hover: hover) { .plan:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); } .plan-prem:hover { box-shadow: 0 36px 70px -30px rgba(97, 0, 255, .45); } }
.plan h3 { height: 30px; display: flex; align-items: center; font-size: 22px; letter-spacing: -.02em; }
.plan h3 .pill-prem { font-size: 15px; padding: 5px 14px; }
.plan ul { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 14px; }
.plan li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; }
.plan li svg { width: 20px; height: 20px; flex: none; margin-top: 2px; fill: none; stroke: var(--text-muted); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.plan-prem { position: relative; border-color: transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--brand-gradient) border-box; border: 1.5px solid transparent; box-shadow: 0 30px 60px -30px rgba(97, 0, 255, .35); }
.plan-prem li svg { stroke: var(--mint); }

/* Download: store-style badges, one per platform */
.download { padding: var(--section) 0; text-align: center; }
.dl { display: flex; flex-direction: column; align-items: center; }
.dl h2 { font-size: var(--t-h2); letter-spacing: -.04em; line-height: 1.06; max-width: 12em; }
.dl-lede { margin: 18px 0 0; max-width: 28em; font-size: var(--t-lede); line-height: 1.5; color: var(--text-sec); text-wrap: balance; }

.stores { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 196px); gap: 12px; }
.store {
  display: flex; align-items: center; gap: 12px; height: 60px; padding: 0 18px; border-radius: 14px;
  background: #0B0810; color: #fff; text-align: left; text-decoration: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1);
}
.store svg { flex: none; width: 24px; height: 24px; fill: currentColor; }
.store span { display: flex; flex-direction: column; font-size: 17px; font-weight: 600; letter-spacing: -.02em; line-height: 1.15; white-space: nowrap; }
.store small { font-size: 11px; font-weight: 500; letter-spacing: 0; color: rgba(255, 255, 255, .6); }
.store-now { background: var(--button-gradient); box-shadow: 0 12px 28px -12px rgba(97, 0, 255, .7); transition: transform .3s var(--ease), box-shadow .3s; }
.store-now svg { fill: none; stroke: currentColor; stroke-width: 1.7; }
.store-now small { color: rgba(255, 255, 255, .8); }
@media (hover: hover) { .store-now:hover { transform: translateY(-2px); box-shadow: 0 16px 32px -12px rgba(97, 0, 255, .8); } }
@media (prefers-color-scheme: dark) { .store:not(.store-now) { background: var(--surface); box-shadow: inset 0 0 0 1px var(--border); } }

.dl-note { margin: 28px 0 0; font-size: 15px; }
.dl-note a { color: var(--accent); font-weight: 500; text-decoration: none; }
.dl-note a span { display: inline-block; transition: transform .25s var(--ease); }
.dl-note a:hover span { transform: translateX(3px); }


/* Questions: an accordion that opens smoothly where the browser can animate it */
.faq { padding-top: var(--section); }
.faq-list { max-width: 760px; margin: 0 auto; border-top: 1px solid var(--border); interpolate-size: allow-keywords; }
.faq-list details { border-bottom: 1px solid var(--border); }
.faq-list details::details-content { height: 0; overflow: clip; transition: height .35s var(--ease), content-visibility .35s allow-discrete; }
.faq-list details[open]::details-content { height: auto; }
.faq-list summary { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 22px 4px; font-size: 18px; font-weight: 600; letter-spacing: -.02em; cursor: pointer; list-style: none; border-radius: 8px; transition: color .2s; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%;
  background: var(--sys) center / 14px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M7 1v12M1 7h12' stroke='%236100FF' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  transition: transform .35s var(--ease), background-color .2s;
}
.faq-list summary:hover { color: var(--accent); }
.faq-list summary:hover::after { background-color: var(--tint); }
.faq-list details[open] summary::after { transform: rotate(45deg); background-color: var(--tint); }
.faq-list details p { margin: 0; padding: 0 56px 24px 4px; color: var(--text-sec); max-width: 40em; }
.faq-list details a { color: var(--accent); font-weight: 500; text-underline-offset: 3px; }

/* Footer */
.site-foot { border-top: 1px solid var(--border); background: color-mix(in srgb, var(--surface) 55%, transparent); }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; padding: 64px 0 48px; }
.foot-mark { width: 40px; height: 40px; }
.foot-brand p { margin: 18px 0 0; max-width: 22em; font-size: 15px; color: var(--text-sec); }
.foot-mail { display: inline-block; margin-top: 14px; font-size: 15px; font-weight: 500; color: var(--accent); text-decoration: none; }
.foot-mail:hover { text-decoration: underline; text-underline-offset: 3px; }
.site-foot h2 { margin: 6px 0 16px; font-size: 14px; font-weight: 600; letter-spacing: -.01em; color: var(--text); }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; line-height: 1.45; }
.site-foot nav a { font-size: 15px; color: var(--text-sec); text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: color .2s, background-size .3s var(--ease); }
.site-foot nav a:hover { color: var(--text); background-size: 100% 1px; }
.foot-base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 24px 0 36px; border-top: 1px solid var(--border); font-size: 14px; color: var(--text-muted); }

/* Legal and info pages */
.doc { max-width: 720px; margin: 0 auto; padding: 64px 0 var(--section); }
.doc-head { padding-bottom: 32px; margin-bottom: 40px; border-bottom: 1px solid var(--border); }
.doc h1 { font-size: clamp(36px, 5vw, 52px); letter-spacing: -.04em; }
.doc-meta { margin: 14px 0 0; font-size: 15px; color: var(--text-muted); }
.doc-lede { margin: 20px 0 0; font-size: 19px; color: var(--text-sec); }
.doc h2 { margin: 48px 0 0; font-size: 24px; letter-spacing: -.025em; scroll-margin-top: 96px; }
.doc h3 { margin: 28px 0 0; font-size: 18px; letter-spacing: -.015em; }
.doc p, .doc li { color: var(--text-sec); }
.doc p { margin: 14px 0 0; }
.doc ul { margin: 14px 0 0; padding-left: 22px; }
.doc li { margin-top: 8px; }
.doc li::marker { color: var(--accent); }
.doc strong { color: var(--text); font-weight: 600; }
.doc a { color: var(--accent); text-underline-offset: 3px; }
.doc table { width: 100%; margin-top: 18px; border-collapse: collapse; font-size: 15px; }
.doc th, .doc td { padding: 12px 12px 12px 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); }
.doc th { font-weight: 600; color: var(--text); }
.doc td { color: var(--text-sec); }
.toc { margin-top: 28px; padding: 20px 24px; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); border: 1px solid var(--border); }
.toc p { margin: 0 0 10px; font-size: 14px; font-weight: 600; color: var(--text); }
.toc ol { margin: 0; padding-left: 20px; columns: 2; column-gap: 32px; font-size: 15px; }
.toc li { margin: 0; padding: 3px 0; break-inside: avoid; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }


/* Mobile menu */
.menu-btn { display: none; place-items: center; width: 40px; height: 40px; margin-right: -8px; border: 0; border-radius: 10px; background: none; color: var(--text); cursor: pointer; }
.menu-btn i { position: relative; display: block; width: 18px; height: 1.5px; border-radius: 2px; background: currentColor; transition: transform .3s var(--ease), background-color .2s; }
.menu-btn i::before, .menu-btn i::after { content: ""; position: absolute; left: 0; width: 18px; height: 1.5px; border-radius: 2px; background: currentColor; transition: transform .3s var(--ease); }
.menu-btn i::before { transform: translateY(-6px); }
.menu-btn i::after { transform: translateY(6px); }
.site-head.open .menu-btn i { background-color: transparent; }
.site-head.open .menu-btn i::before { transform: rotate(45deg); }
.site-head.open .menu-btn i::after { transform: rotate(-45deg); }
.menu-sheet { position: absolute; top: 100%; left: 0; right: 0; padding: 8px var(--gutter) 28px; background: color-mix(in srgb, var(--bg) 94%, transparent); -webkit-backdrop-filter: saturate(1.6) blur(20px); backdrop-filter: saturate(1.6) blur(20px); border-bottom: 1px solid var(--border); opacity: 0; transform: translateY(-8px); pointer-events: none; transition: opacity .25s var(--ease), transform .3s var(--ease); }
.site-head.open { background: color-mix(in srgb, var(--bg) 94%, transparent); -webkit-backdrop-filter: saturate(1.6) blur(20px); backdrop-filter: saturate(1.6) blur(20px); border-color: var(--border); }
.site-head.open .menu-sheet { opacity: 1; transform: none; pointer-events: auto; }
.menu-sheet a { display: block; padding: 12px 0; font-size: 24px; font-weight: 600; letter-spacing: -.03em; color: var(--text); text-decoration: none; border-bottom: 1px solid var(--border); }
.menu-sheet a:last-child { border-bottom: 0; }
.menu-sheet a:active { color: var(--accent); }

/* ——— Sizes ——— */
@media (max-width: 960px) {
  .win-body { grid-template-columns: 1fr; }
  .win-side { display: none; }
  .tile { padding: 26px; }
  .route-art { height: 116px; }
  .share-inner { grid-template-columns: 1fr; gap: 48px; }
  .share-copy { max-width: 600px; margin: 0 auto; text-align: center; }
  .share-copy p { margin-inline: auto; }
  .share-card { justify-self: center; }
  .foot-grid { grid-template-columns: repeat(3, 1fr); }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .nav a:not(.btn) { display: none; }
  .nav { gap: 12px; }
  .menu-btn { display: grid; }
  .nav .btn-sm { height: 36px; padding: 0 14px; font-size: 14px; border-radius: 10px; }
  .site-head .bar { height: 64px; }
  html { scroll-padding-top: 76px; }
  .hero { padding: 28px 0 40px; }
  .hero-mark { width: 44px; height: 44px; margin-bottom: 20px; }
  .cta { flex-direction: column; align-self: stretch; margin-top: 28px; }
  .cta .btn { width: 100%; }
  /* Highlights become an even row of three, icon over label */
  .chips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; width: 100%; margin-top: 24px; }
  .chips li { flex-direction: column; justify-content: flex-start; gap: 8px; padding: 14px 6px 12px; border-radius: 16px; font-size: 12.5px; line-height: 1.3; text-align: center; text-wrap: balance; }
  .chips svg { width: 18px; height: 18px; }
  /* The app window turns into its phone layout: one device per row */
  .window { border-radius: 16px; font-size: 13px; }
  .win-bar { padding: 12px 14px; }
  .win-bar i { width: 10px; height: 10px; }
  .win-body { padding: 0 12px 12px; }
  .win-top { margin-bottom: 18px; }
  .win-top img { height: 18px; }
  .win-title { font-size: 21px; }
  .win-sub { margin-bottom: 14px; }
  .dev-grid { grid-template-columns: 1fr; gap: 8px; }
  .dev { grid-template-columns: 40px 1fr; grid-template-rows: auto auto; grid-template-areas: "icon name" "icon state"; column-gap: 14px; align-items: center; min-height: 0; padding: 12px 14px; border-radius: 16px; }
  .dev-live { grid-template-rows: auto auto auto; grid-template-areas: "icon name" "icon state" "icon meter"; }
  .dev .dev-icon { width: 40px; height: 40px; border-radius: 11px; align-self: center; }
  .dev .dev-icon svg { width: 20px; height: 20px; }
  .dev b { font-size: 15px; }
  .dev .meter { margin-top: 8px; }
  .dev-state { font-size: 12.5px; }
  .platforms-line { font-size: 15px; }
  .bento { grid-template-columns: 1fr; gap: 12px; }
  .tile, .tile-lg { grid-column: span 1; padding: 24px; border-radius: 22px; }
  .route-art { height: 108px; margin-bottom: 24px; }
  .node { width: 52px; height: 52px; border-radius: 14px; }
  .node svg { width: 24px; height: 24px; }
  .share-card { padding: 22px; border-radius: 22px; }
  .sc-code { font-size: 26px; }
  .plans { grid-template-columns: 1fr; gap: 12px; }
  .plan { padding: 24px; border-radius: 22px; }
  .plan li { font-size: 15.5px; }
  /* The closing panel runs edge to edge, and the platforms become one grouped list */
  .stores { grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; max-width: 420px; margin-top: 36px; gap: 10px; }
  .store { height: 56px; padding: 0 14px; gap: 10px; }
  .store svg { width: 22px; height: 22px; }
  .store span { font-size: 16px; }
  .faq-list summary { font-size: 17px; padding: 18px 2px; }
  .faq-list details p { padding-right: 8px; }
  .foot-grid { grid-template-columns: repeat(2, 1fr); gap: 36px 24px; padding: 48px 0 36px; }
  .foot-base { flex-direction: column; gap: 6px; }
  .doc { padding-top: 32px; }
  .toc ol { columns: 1; }
}
@media (max-width: 374px) {
  .store { padding: 0 12px; }
  .store span { font-size: 15px; }
  .store small { letter-spacing: -.01em; }
  .store small { font-size: 10px; }
}
@media (min-width: 641px) { .menu-sheet { display: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .wire i, .spin { animation: none; }
  .btn, .tile, .tile-icon, .node, .plan, .store-now, .nav a::after, .menu-sheet, .menu-btn i, .menu-btn i::before, .menu-btn i::after, .faq-list details::details-content { transition: none !important; }
  .btn:hover, .tile:hover, .plan:hover { transform: none; }
}
.doc code { font: 500 .92em/1 ui-monospace, SFMono-Regular, Menlo, monospace; padding: 2px 6px; border-radius: 6px; background: var(--sys); color: var(--text); }
