/* ============================================================================
   lili AI Router — site styles
   Palette is taken from the product, not invented:
     #8E7AF6  AccentColor.colorset (rgb 142,122,246)
     #4A3FD1 → #6B5BE6  the app icon's gradient
     #FF6B6B  the coral node in the icon
     #1B1F3B / #EDE7FB → #D6ECFA / #0E1430 → #1C2A55
              the App Store marketing frames (docs/appstore/nano/macos-prompts.md)
   ========================================================================= */

:root {
  color-scheme: light dark;

  --violet:        #8e7af6;
  --violet-deep:   #6b5be6;
  --violet-deeper: #4a3fd1;
  --violet-ink:    #3a2fa8;
  --coral:         #ff6b6b;
  --mint:          #34c77b;

  --navy:          #1b1f3b;
  --ink:           #14172c;
  --body:          #4a4f6a;
  --muted:         #6e739045;

  --bg:            #ffffff;
  --bg-soft:       #f7f6fd;
  --surface:       #ffffff;
  --border:        #e7e4f5;
  --border-strong: #d6d1ee;

  --panel-light:   linear-gradient(140deg, #ede7fb 0%, #e4ecfb 55%, #d6ecfa 100%);
  --panel-dark:    linear-gradient(150deg, #0e1430 0%, #161d40 55%, #1c2a55 100%);
  --hero:          linear-gradient(155deg, #4a3fd1 0%, #5b4de0 45%, #6b5be6 100%);

  --radius-sm:  10px;
  --radius:     16px;
  --radius-lg:  24px;
  --radius-xl:  32px;

  --shadow-sm: 0 1px 2px rgba(27, 31, 59, .06), 0 2px 8px rgba(27, 31, 59, .05);
  --shadow:    0 2px 6px rgba(27, 31, 59, .07), 0 12px 32px rgba(27, 31, 59, .09);
  --shadow-lg: 0 8px 24px rgba(27, 31, 59, .10), 0 32px 64px rgba(27, 31, 59, .16);

  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --display: "Inter Tight", var(--sans);
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --gutter: 20px;
  --wide: 1180px;
  --narrow: 760px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --navy:          #f2f1fb;
    --ink:           #f6f5fc;
    --body:          #a9adc9;

    --bg:            #0b0e1e;
    --bg-soft:       #10142a;
    --surface:       #151a33;
    --border:        #262c4d;
    --border-strong: #343b63;

    --panel-light:   linear-gradient(140deg, #171d3c 0%, #1a2145 55%, #1c2a55 100%);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
    --shadow:    0 2px 6px rgba(0, 0, 0, .35), 0 12px 32px rgba(0, 0, 0, .4);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, .4), 0 32px 64px rgba(0, 0, 0, .5);
  }
}

/* --------------------------------------------------------------- base --- */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--display);
  color: var(--navy);
  line-height: 1.1;
  letter-spacing: -.022em;
  margin: 0 0 .5em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.35rem, 6vw, 4.1rem); font-weight: 700; letter-spacing: -.035em; }
h2 { font-size: clamp(1.85rem, 4vw, 2.85rem); font-weight: 700; letter-spacing: -.03em; }
h3 { font-size: 1.22rem; font-weight: 650; }
h4 { font-size: 1.02rem; font-weight: 650; }

p { margin: 0 0 1.1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a { color: var(--violet-ink); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--violet-deep); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) a { color: var(--violet); } }

img { max-width: 100%; height: auto; display: block; }
hr { border: 0; border-top: 1px solid var(--border); margin: 3rem 0; }

::selection { background: rgba(142, 122, 246, .25); }

:where(a, button, summary, select, input):focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--violet-deeper); color: #fff; padding: 10px 16px;
  border-radius: var(--radius-sm); font-weight: 600; text-decoration: none;
  transition: top .15s;
}
.skip-link:focus { top: 12px; color: #fff; }

/* ------------------------------------------------------------ layout --- */

.wrap { width: 100%; max-width: var(--wide); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: var(--narrow); }

section { position: relative; }
.section { padding-block: clamp(4rem, 9vw, 7.5rem); }
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }
.section--soft { background: var(--bg-soft); }

.eyebrow {
  font-size: .78rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase;
  color: var(--violet-deep); margin: 0 0 .9rem;
}
.section--dark .eyebrow { color: #a99bff; }

.lede { font-size: clamp(1.06rem, 1.6vw, 1.22rem); color: var(--body); max-width: 62ch; }
.section-head { max-width: 46rem; margin-bottom: clamp(2.2rem, 4vw, 3.4rem); }
.section-head--center { margin-inline: auto; text-align: center; }

/* ----------------------------------------------------------- buttons --- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 52px; padding: 0 1.55rem;
  font-family: var(--sans); font-size: 1rem; font-weight: 600; line-height: 1;
  border: 1px solid transparent; border-radius: 999px;
  text-decoration: none; cursor: pointer;
  transition: transform .18s cubic-bezier(.2,.7,.3,1), box-shadow .18s, background .18s, border-color .18s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--violet-deeper); color: #fff; box-shadow: 0 6px 20px rgba(74, 63, 209, .32); }
.btn--primary:hover { background: var(--violet-ink); color: #fff; box-shadow: 0 10px 28px rgba(74, 63, 209, .4); }

.btn--ghost { background: transparent; color: var(--navy); border-color: var(--border-strong); }
.btn--ghost:hover { color: var(--navy); border-color: var(--violet); background: rgba(142, 122, 246, .07); }

.btn--onDark { background: #fff; color: var(--violet-ink); }
.btn--onDark:hover { color: var(--violet-ink); background: #f2effe; }

.btn--outlineOnDark { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.34); backdrop-filter: blur(8px); }
.btn--outlineOnDark:hover { color: #fff; background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.55); }

.btn--sm { min-height: 42px; padding: 0 1.1rem; font-size: .92rem; }
.btn[aria-disabled="true"] { cursor: default; opacity: .9; }
.btn[aria-disabled="true"]:hover { transform: none; }

.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; }
.btn-row--center { justify-content: center; }

/* App Store badge-ish button with the store glyph */
.btn .glyph { width: 1.25em; height: 1.25em; flex: none; }

.meta-line {
  display: flex; flex-wrap: wrap; gap: .45rem .9rem; align-items: center;
  font-size: .88rem; color: var(--body); margin-top: 1.4rem;
}
.meta-line li { list-style: none; }
.meta-line ul { display: contents; }
.hero .meta-line { color: rgba(255,255,255,.72); }

/* ------------------------------------------------------------- badge --- */

.badge {
  display: inline-flex; align-items: center; gap: .4em;
  padding: .32em .8em; border-radius: 999px;
  font-size: .76rem; font-weight: 650; letter-spacing: .01em;
  background: rgba(142, 122, 246, .13); color: var(--violet-ink);
  border: 1px solid rgba(142, 122, 246, .22);
}
.badge--coral { background: rgba(255, 107, 107, .14); color: #c23c3c; border-color: rgba(255, 107, 107, .3); }
.badge--mint  { background: rgba(52, 199, 123, .14); color: #1d7d4c; border-color: rgba(52, 199, 123, .3); }
.badge--onDark { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.26); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .badge { color: #b9aaff; }
  :root:not([data-theme="light"]) .badge--coral { color: #ff9b9b; }
  :root:not([data-theme="light"]) .badge--mint { color: #6fe0a6; }
}

/* --------------------------------------------------------------- nav --- */

.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, background .2s;
}
.nav[data-scrolled="true"] { border-bottom-color: var(--border); }
.nav__inner { display: flex; align-items: center; gap: 1rem; min-height: 68px; }

.brand { display: flex; align-items: center; gap: .6rem; font-family: var(--display); font-weight: 700; font-size: 1.04rem; color: var(--navy); text-decoration: none; letter-spacing: -.02em; }
.brand:hover { color: var(--navy); }
.brand img { width: 30px; height: 30px; border-radius: 8px; box-shadow: var(--shadow-sm); }

.nav__links { display: flex; gap: .35rem; margin-left: auto; align-items: center; }
.nav__links a {
  padding: .5rem .75rem; border-radius: 10px; font-size: .94rem; font-weight: 550;
  color: var(--body); text-decoration: none; white-space: nowrap;
}
.nav__links a:hover { color: var(--navy); background: rgba(142, 122, 246, .1); }
.nav__cta { margin-left: .4rem; }

.nav__toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--border-strong); border-radius: 10px; width: 44px; height: 44px; cursor: pointer; color: var(--navy); align-items: center; justify-content: center; }

@media (max-width: 900px) {
  .nav__toggle { display: inline-flex; }
  .nav__links {
    position: absolute; inset: 68px 0 auto; flex-direction: column; align-items: stretch;
    gap: .15rem; margin: 0; padding: .8rem var(--gutter) 1.3rem;
    background: var(--bg); border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow); display: none;
  }
  .nav__links[data-open="true"] { display: flex; }
  .nav__links a { padding: .75rem .6rem; font-size: 1rem; }
  .nav__cta { margin: .5rem 0 0; }
}

/* -------------------------------------------------------------- hero --- */

.hero {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--hero); color: #fff;
  padding-block: clamp(3.5rem, 8vw, 6rem) clamp(4rem, 9vw, 7rem);
}
.hero::before, .hero::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; z-index: -1; }
.hero::before { width: 780px; height: 780px; top: -400px; right: -180px; background: radial-gradient(circle, rgba(255,255,255,.22), transparent 62%); }
.hero::after  { width: 620px; height: 620px; bottom: -340px; left: -200px; background: radial-gradient(circle, rgba(255,107,107,.3), transparent 62%); }

.hero h1 { color: #fff; }
.hero h1 em { font-style: normal; color: #e3dcff; }
.hero p { color: rgba(255,255,255,.84); }
.hero .lede { color: rgba(255,255,255,.84); }

.hero__grid { display: grid; gap: clamp(2.5rem, 5vw, 4rem); align-items: center; }
@media (min-width: 980px) { .hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.06fr); } }

.hero__shot { position: relative; }
.hero__shot img { border-radius: 14px; box-shadow: 0 30px 70px rgba(10, 8, 40, .5), 0 4px 14px rgba(10, 8, 40, .35); border: 1px solid rgba(255,255,255,.14); }
@media (min-width: 980px) { .hero__shot { margin-right: calc(var(--gutter) * -1 - 2vw); } }

.hero__pill {
  display: inline-flex; align-items: center; gap: .5em;
  padding: .4em .95em; margin-bottom: 1.3rem;
  border-radius: 999px; font-size: .85rem; font-weight: 600;
  background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.24);
  backdrop-filter: blur(8px);
}
.hero__pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 4px rgba(255,107,107,.25); }

/* --------------------------------------------------------- providers --- */

.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; gap: .7rem; width: max-content; animation: slide 46s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee + .marquee { margin-top: .7rem; }
.marquee--reverse .marquee__track { animation-direction: reverse; }

@keyframes slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.chip {
  display: inline-flex; align-items: center; gap: .45em; white-space: nowrap;
  padding: .55em 1.05em; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border);
  font-size: .95rem; font-weight: 550; color: var(--navy);
  box-shadow: var(--shadow-sm);
}
.chip .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--violet); flex: none; }
.chip--ondevice .dot { background: var(--mint); }

/* ---------------------------------------------------------- features --- */

.split { display: grid; gap: clamp(2rem, 5vw, 4.2rem); align-items: center; }
@media (min-width: 900px) {
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); }
  .split--flip > :first-child { order: 2; }
}

.shot {
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-lg); border: 1px solid rgba(27, 31, 59, .1);
  background: var(--surface);
}
.shot--phone { max-width: 300px; border-radius: 28px; margin-inline: auto; }

.panel {
  border-radius: var(--radius-xl); padding: clamp(2rem, 4.5vw, 3.6rem);
  background: var(--panel-light);
}
.panel--dark { background: var(--panel-dark); color: #b7bedd; }
.panel--dark h2, .panel--dark h3, .panel--dark h4 { color: #fff; }
.panel--dark .lede { color: #b7bedd; }
.section--dark { background: var(--panel-dark); color: #b7bedd; }
.section--dark h2, .section--dark h3, .section--dark h4 { color: #fff; }
.section--dark .lede, .section--dark p { color: #b7bedd; }

.feature-list { list-style: none; margin: 1.6rem 0 0; padding: 0; display: grid; gap: 1rem; }
.feature-list li { display: grid; grid-template-columns: 26px 1fr; gap: .8rem; align-items: start; }
.feature-list .tick {
  width: 22px; height: 22px; margin-top: .22rem; border-radius: 50%;
  display: grid; place-items: center; flex: none;
  background: rgba(142, 122, 246, .15); color: var(--violet-ink);
}
.section--dark .feature-list .tick, .panel--dark .feature-list .tick { background: rgba(142, 122, 246, .22); color: #c5b9ff; }
.feature-list strong { color: var(--navy); font-weight: 650; }
.section--dark .feature-list strong, .panel--dark .feature-list strong { color: #fff; }

/* ------------------------------------------------------------- cards --- */

.grid { display: grid; gap: 1.1rem; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(258px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }

.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.6rem;
  box-shadow: var(--shadow-sm);
  transition: transform .2s cubic-bezier(.2,.7,.3,1), box-shadow .2s, border-color .2s;
}
.card--link:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--border-strong); }
.card h3 { margin-bottom: .4rem; }
.card p { font-size: .96rem; margin: 0; }
.card__icon {
  width: 44px; height: 44px; border-radius: 13px; margin-bottom: 1.05rem;
  display: grid; place-items: center;
  background: linear-gradient(145deg, rgba(142,122,246,.18), rgba(107,91,230,.1));
  color: var(--violet-ink);
}
.section--dark .card, .panel--dark .card { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.12); }
.section--dark .card p, .panel--dark .card p { color: #b7bedd; }
.section--dark .card__icon, .panel--dark .card__icon { background: rgba(142,122,246,.2); color: #c5b9ff; }

.stat { text-align: center; }
.stat__value { font-family: var(--display); font-size: clamp(2.1rem, 4.6vw, 3rem); font-weight: 700; letter-spacing: -.035em; color: var(--navy); line-height: 1; }
.stat__label { font-size: .92rem; color: var(--body); margin-top: .45rem; }
.section--dark .stat__value { color: #fff; }
.section--dark .stat__label { color: #b7bedd; }

/* -------------------------------------------------------------- code --- */

.code {
  position: relative;
  background: #0d1226; color: #dfe3f5;
  border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius);
  font-family: var(--mono); font-size: .88rem; line-height: 1.75;
  padding: 1.15rem 3.4rem 1.15rem 1.25rem;
  overflow-x: auto; box-shadow: var(--shadow);
  tab-size: 2;
}
.code .k { color: #a99bff; }
.code .s { color: #7fd6a6; }
.code .c { color: #6f78a8; }
.code pre { margin: 0; font: inherit; }

.copy-btn {
  position: absolute; top: .7rem; right: .7rem;
  width: 34px; height: 34px; display: grid; place-items: center;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16);
  border-radius: 9px; color: #c8cdea; cursor: pointer; transition: background .15s, color .15s;
}
.copy-btn:hover { background: rgba(255,255,255,.16); color: #fff; }
.copy-btn[data-copied="true"] { color: #7fd6a6; border-color: rgba(127,214,166,.45); }

code:not(.code code) {
  font-family: var(--mono); font-size: .88em;
  background: rgba(142, 122, 246, .12); color: var(--violet-ink);
  padding: .15em .42em; border-radius: 5px;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) code:not(.code code) { color: #bcaeff; } }

/* --------------------------------------------------------- compare --- */

.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table {
  width: 100%; min-width: 560px; border-collapse: separate; border-spacing: 0;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden; font-size: .97rem;
}
.table th, .table td { padding: .95rem 1.15rem; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
.table thead th { font-family: var(--display); font-weight: 650; color: var(--navy); background: var(--bg-soft); font-size: .95rem; }
.table tbody tr:last-child th, .table tbody tr:last-child td { border-bottom: 0; }
.table tbody th { font-weight: 600; color: var(--navy); width: 34%; }
.table .yes { color: #1d7d4c; font-weight: 600; }
.table .no  { color: #b04141; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .table .yes { color: #6fe0a6; }
  :root:not([data-theme="light"]) .table .no { color: #ff9b9b; }
}
.table col.is-lili { background: rgba(142, 122, 246, .07); }

/* -------------------------------------------------------------- steps --- */

.steps { counter-reset: step; display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.step { position: relative; padding-top: 3.4rem; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: 0; left: 0;
  width: 44px; height: 44px; border-radius: 14px;
  display: grid; place-items: center;
  font-family: var(--display); font-weight: 700; font-size: 1.15rem;
  background: var(--violet-deeper); color: #fff;
  box-shadow: 0 6px 18px rgba(74, 63, 209, .3);
}

/* ---------------------------------------------------------------- faq --- */

.faq { display: grid; gap: .7rem; }
.faq details {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  transition: border-color .15s, box-shadow .15s;
}
.faq details[open] { border-color: var(--border-strong); box-shadow: var(--shadow-sm); }
.faq summary {
  list-style: none; cursor: pointer; padding: 1.15rem 3rem 1.15rem 1.3rem;
  font-family: var(--display); font-weight: 600; font-size: 1.04rem; color: var(--navy);
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 1.35rem; top: 50%;
  width: 10px; height: 10px; margin-top: -6px;
  border-right: 2px solid var(--violet); border-bottom: 2px solid var(--violet);
  transform: rotate(45deg); transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq .faq__body { padding: 0 1.3rem 1.35rem; font-size: .98rem; }
.faq .faq__body p:last-child { margin-bottom: 0; }

/* ------------------------------------------------------------- footer --- */

.footer { background: var(--bg-soft); border-top: 1px solid var(--border); padding-block: clamp(3rem, 5vw, 4.5rem) 2rem; font-size: .94rem; }
.footer__grid { display: grid; gap: 2.4rem; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.footer__brand { max-width: 22rem; }
.footer h4 { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--body); font-weight: 700; margin-bottom: .9rem; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.footer a { color: var(--body); text-decoration: none; }
.footer a:hover { color: var(--violet-ink); text-decoration: underline; }
.footer__bottom { margin-top: 2.8rem; padding-top: 1.6rem; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; gap: .8rem 1.4rem; justify-content: space-between; color: var(--body); font-size: .88rem; }

/* ------------------------------------------------------------ cta band --- */

.cta-band {
  background: var(--hero); color: #fff; border-radius: var(--radius-xl);
  padding: clamp(2.4rem, 5vw, 4rem); text-align: center;
  position: relative; overflow: hidden; isolation: isolate;
}
.cta-band::before { content: ""; position: absolute; inset: -50% -20% auto; height: 520px; background: radial-gradient(circle, rgba(255,255,255,.18), transparent 60%); z-index: -1; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.82); max-width: 44ch; margin-inline: auto; }

/* --------------------------------------------------- which-model tool --- */

.tool { display: grid; gap: 1.6rem; }
.tool__controls {
  display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.5rem; box-shadow: var(--shadow-sm);
}
.field { display: grid; gap: .45rem; }
.field label { font-size: .82rem; font-weight: 650; letter-spacing: .05em; text-transform: uppercase; color: var(--body); }
.field select {
  font-family: var(--sans); font-size: .98rem; color: var(--navy);
  background: var(--bg); border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  padding: .72rem 2.2rem .72rem .85rem; min-height: 46px; width: 100%;
  appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%238e7af6' stroke-width='2' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .9rem center;
}

.segmented { display: inline-flex; gap: .25rem; padding: .25rem; background: var(--bg-soft); border: 1px solid var(--border); border-radius: 999px; }
.segmented button {
  border: 0; background: none; cursor: pointer; border-radius: 999px;
  padding: .55rem 1.1rem; font-family: var(--sans); font-size: .94rem; font-weight: 600; color: var(--body);
  min-height: 40px;
}
.segmented button[aria-pressed="true"] { background: var(--violet-deeper); color: #fff; box-shadow: 0 4px 12px rgba(74,63,209,.28); }

.budget-note { font-size: .9rem; color: var(--body); margin: 0; }
.budget-note strong { color: var(--navy); }

.result-group { margin-top: 2.2rem; }
.result-group__head { display: flex; align-items: center; gap: .7rem; margin-bottom: 1rem; }
.result-group__head h3 { margin: 0; }
.result-count { font-size: .88rem; color: var(--body); }

.model-card { display: grid; gap: .9rem; }
.model-card__top { display: flex; flex-wrap: wrap; gap: .6rem; align-items: baseline; justify-content: space-between; }
.model-card__name { font-family: var(--display); font-weight: 650; font-size: 1.1rem; color: var(--navy); margin: 0; }
.model-card__repo { font-family: var(--mono); font-size: .76rem; color: var(--body); word-break: break-all; }
.model-card__tags { display: flex; flex-wrap: wrap; gap: .35rem; }
.quant-row { display: flex; flex-wrap: wrap; gap: .5rem .9rem; align-items: center; font-size: .92rem; padding: .55rem 0; border-top: 1px solid var(--border); }
.quant-row:first-of-type { border-top: 0; }
.quant-tag { font-family: var(--mono); font-size: .78rem; font-weight: 600; padding: .22em .55em; border-radius: 6px; background: rgba(142,122,246,.13); color: var(--violet-ink); }
.quant-size { color: var(--body); }
.quant-ram { margin-left: auto; font-weight: 600; color: var(--navy); }
.fit-dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.fit-fits  { background: var(--mint); }
.fit-tight { background: #f0a92e; }
.fit-large { background: var(--coral); }
.is-too-large { opacity: .62; }

.empty-state { padding: 2rem; text-align: center; color: var(--body); border: 1px dashed var(--border-strong); border-radius: var(--radius-lg); }

/* --------------------------------------------------------- legal page --- */

.prose { max-width: 72ch; }
.prose h2 { font-size: 1.55rem; margin-top: 2.8rem; padding-bottom: .5rem; border-bottom: 1px solid var(--border); }
.prose h3 { margin-top: 1.9rem; }
.prose ul, .prose ol { padding-left: 1.4rem; display: grid; gap: .45rem; margin-bottom: 1.2rem; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.3rem 0; font-size: .94rem; }
.prose th, .prose td { border: 1px solid var(--border); padding: .6rem .8rem; text-align: left; vertical-align: top; }
.prose th { background: var(--bg-soft); color: var(--navy); font-weight: 650; }
.callout {
  border: 1px solid rgba(142,122,246,.28); background: rgba(142,122,246,.08);
  border-radius: var(--radius); padding: 1.1rem 1.35rem; margin: 1.6rem 0;
}
.callout strong { color: var(--navy); }

/* --------------------------------------------------------- press page --- */

.asset-card { text-align: center; }
.asset-card img { margin: 0 auto 1rem; border-radius: 18px; box-shadow: var(--shadow); }
.asset-card .shot-thumb { border-radius: 10px; }
.swatch { height: 76px; border-radius: 12px; margin-bottom: .7rem; border: 1px solid rgba(27,31,59,.1); }
.swatch-name { font-weight: 650; color: var(--navy); font-size: .95rem; }
.swatch-hex { font-family: var(--mono); font-size: .82rem; color: var(--body); }

/* ------------------------------------------------------------- motion --- */

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s cubic-bezier(.2,.7,.3,1), transform .7s cubic-bezier(.2,.7,.3,1); }
.reveal[data-visible="true"] { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Screen-reader-only text: the fit verdict is a coloured dot for sighted users,
   so the same verdict has to be spelled out for everyone else. */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* The largest model that still runs comfortably is the one most people want, so
   it gets the accent border rather than being lost in the grid. */
.model-card.is-top-pick {
  border-color: var(--violet);
  box-shadow: 0 0 0 1px var(--violet), var(--shadow);
}

/* Greyed-out buttons: the store that is not the visitor's own platform. Still
   clickable — someone on a Mac may well want the iOS app for their phone — but
   visibly second. Chosen at runtime by assets/js/site.js. */
.btn--dimOnDark {
  background: rgba(255, 255, 255, .11); color: rgba(255, 255, 255, .6);
  border-color: rgba(255, 255, 255, .14); box-shadow: none;
}
.btn--dimOnDark:hover { color: rgba(255, 255, 255, .9); background: rgba(255, 255, 255, .18); }

.btn--dim {
  background: var(--bg-soft); color: var(--body);
  border-color: var(--border-strong); box-shadow: none; opacity: .78;
}
.btn--dim:hover { color: var(--navy); opacity: 1; background: var(--bg-soft); }

/* A bare app window (transparent rounded corners) rather than a framed shot:
   no border or clipping, so the drop shadow follows the window's own outline. */
.window-shot { margin: 0 0 clamp(2.5rem, 5vw, 4rem); text-align: center; }
.window-shot img {
  width: 100%; max-width: 1040px; margin-inline: auto;
  filter: drop-shadow(0 24px 40px rgba(27, 31, 59, .28)) drop-shadow(0 4px 10px rgba(27, 31, 59, .16));
}
.window-shot figcaption { max-width: 60ch; margin: 1.4rem auto 0; font-size: .96rem; color: var(--body); }
.window-shot figcaption strong { color: var(--navy); }
