/* AI Balance site. Colors, type and radius follow the app (lib/main.dart). */
:root {
  color-scheme: light dark;
  --bg: #f6f6f3;
  --fg: #171717;
  --muted: #5f5f5a;
  --dim: #8a8a84; /* large numerals only: 3.2:1 */
  --line: rgba(23, 23, 23, .12);
  --band: #141414;
  --band-fg: #fff;
  --band-muted: #a1a1a6;
  --band-line: rgba(255, 255, 255, .14);
  --btn: #171717;
  --btn-fg: #f6f6f3;
  --bezel: #1d1d1f;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --r: 14px;
  --wrap: 1120px;
  --gut: clamp(16px, 4vw, 32px);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000;
    --fg: #f2f2f2;
    --muted: #9c9ca1;
    --dim: #6e6e73; /* large numerals only: 4.1:1 */
    --line: rgba(255, 255, 255, .14);
    --btn: #f2f2f2;
    --btn-fg: #000;
    --bezel: #2c2c2e;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 16px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 17px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -.03em; line-height: 1.05; margin: 0; }
p { margin: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }
.muted { color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.skip {
  position: absolute; left: 16px; top: -100px; z-index: 10;
  padding: 12px 16px; border-radius: 10px; background: var(--btn); color: var(--btn-fg);
}
.skip:focus { top: 16px; }

/* Header */
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 600; letter-spacing: -.01em; text-decoration: none; }
.brand img { width: 28px; height: 28px; border-radius: 7px; }
.top nav { display: flex; }
.top nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px;
  color: var(--muted); font-size: 15px; text-decoration: none; border-radius: 10px;
}
.top nav a:hover, .top nav a[aria-current="page"] { color: var(--fg); }
@media (max-width: 400px) { .top nav .wide { display: none; } }

/* Store actions */
.get { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 22px; border-radius: var(--r);
  background: var(--btn); color: var(--btn-fg); font-weight: 600; text-decoration: none;
  transition: opacity .15s ease;
}
.btn:hover { opacity: .85; }
.btn svg { width: 18px; height: 18px; flex: none; }
.get .note { color: var(--muted); font-size: 15px; line-height: 1.4; }

/* The app's provider bar: the brand motif and the color key for the provider list */
.bar { display: flex; gap: 4px; height: 8px; }
.bar i { flex: var(--w) 1 0; min-width: 6px; border-radius: 4px; background: var(--c); }

/* Phone frame around real screenshots */
.device { margin: 0; width: var(--w, 300px); max-width: 100%; }
.device .bezel { padding: calc(var(--w, 300px) * .024); border-radius: calc(var(--w, 300px) * .16); background: var(--bezel); }
.device img { width: 100%; border-radius: calc(var(--w, 300px) * .136); }
.device figcaption { margin-top: 14px; color: var(--muted); font-size: 14px; text-align: center; }

/* Hero */
.hero { display: grid; gap: 48px; padding-block: 28px 64px; }
.hero > div { container-type: inline-size; }
/* Each headline line is about 6.1em wide: size to the column so it stays on two lines. */
.hero h1 { font-size: clamp(40px, 11vw, 92px); font-size: min(92px, 16cqi); line-height: .98; letter-spacing: -.048em; }
.hero .lede { margin: 22px 0 30px; max-width: 32ch; color: var(--muted); font-size: clamp(18px, 2.3vw, 21px); line-height: 1.45; }
.hero .bar { margin-top: 44px; max-width: 520px; }
.hero .device { --w: min(300px, 76vw); justify-self: center; }
@media (min-width: 880px) {
  .hero { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); align-items: center; padding-block: 48px 120px; }
  .hero .device { --w: 320px; justify-self: end; }
}

/* Section headings */
.sec { padding-block: 72px; border-top: 1px solid var(--line); }
.sec h2 { font-size: clamp(32px, 5.5vw, 52px); }
.sec .intro { margin-top: 16px; max-width: 46ch; color: var(--muted); font-size: 18px; }
@media (min-width: 880px) { .sec { padding-block: 112px; } }

/* Providers */
.plist { list-style: none; margin: 40px 0 0; padding: 0; border-top: 1px solid var(--line); }
.plist li {
  display: grid; grid-template-columns: 14px minmax(0, 1fr) auto; column-gap: 14px; row-gap: 2px;
  align-items: baseline; padding: 18px 0; border-bottom: 1px solid var(--line);
}
.plist .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--c); align-self: center; }
.plist .name { font-weight: 600; font-size: 18px; }
.plist .shows { font-variant-numeric: tabular-nums; text-align: right; color: var(--fg); font-size: 15px; }
.plist .needs { grid-column: 2 / -1; color: var(--muted); font-size: 15px; }
@media (min-width: 760px) {
  .plist li { grid-template-columns: 14px 11rem 12rem minmax(0, 1fr); padding: 20px 0; }
  .plist .shows { text-align: left; color: var(--muted); }
  .plist .needs { grid-column: auto; }
}
.plist .plist-head { display: none; }
@media (min-width: 760px) {
  .plist .plist-head { display: grid; padding: 0 0 12px; color: var(--muted); font-size: 13px; }
  .plist-head span:first-child { grid-column: 2; }
}
.footnotes { display: grid; gap: 12px; margin-top: 28px; max-width: 70ch; color: var(--muted); font-size: 15px; }

/* Features: one lead item with screenshots, then a two-column spec list */
.lead-feature { display: grid; gap: 40px; align-items: center; }
.lead-feature h3 { font-size: clamp(26px, 3.6vw, 36px); }
.lead-feature p { margin-top: 14px; color: var(--muted); font-size: 18px; max-width: 42ch; }
.lead-feature .shots { display: flex; gap: clamp(12px, 3vw, 28px); justify-content: center; }
.lead-feature .device { --w: min(260px, 42vw); }
.spec { display: grid; gap: 0 48px; margin: 64px 0 0; }
.spec div { padding: 22px 0; border-top: 1px solid var(--line); }
.spec dt { font-weight: 600; font-size: 18px; }
.spec dd { margin: 6px 0 0; color: var(--muted); }
@media (min-width: 880px) {
  .lead-feature { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
  .lead-feature .shots { justify-content: flex-end; }
  .lead-feature .device { --w: 250px; }
  .lead-feature .device:last-child { margin-top: 64px; }
  .spec { grid-template-columns: 1fr 1fr; }
}

/* Privacy band */
.band { background: var(--band); color: var(--band-fg); }
.band .wrap { padding-block: 80px; }
.band h2 { font-size: clamp(32px, 6vw, 60px); max-width: 16ch; }
.band .intro { margin-top: 20px; max-width: 52ch; color: var(--band-muted); font-size: 18px; }
.band ul { list-style: none; margin: 44px 0 0; padding: 0; display: grid; gap: 0 48px; }
.band li { padding: 18px 0; border-top: 1px solid var(--band-line); color: var(--band-muted); }
.band li b { display: block; color: var(--band-fg); font-weight: 600; margin-bottom: 4px; }
.band .more { display: inline-flex; align-items: center; min-height: 44px; margin-top: 28px; font-weight: 600; }
@media (min-width: 760px) { .band ul { grid-template-columns: 1fr 1fr; } }
@media (min-width: 880px) { .band .wrap { padding-block: 120px; } }

/* Price: the app icon's numeral, with dimmed cents */
.price { padding-block: 80px 96px; display: grid; gap: 28px; }
.figure { font-family: var(--display); font-weight: 700; font-size: clamp(88px, 24vw, 200px); line-height: .9; letter-spacing: -.055em; font-variant-numeric: tabular-nums; }
.figure span { color: var(--dim); }
.price p:not(.figure) { color: var(--muted); font-size: 19px; max-width: 40ch; }
.price .get { margin-top: 8px; }
@media (min-width: 880px) {
  .price { grid-template-columns: auto minmax(0, 1fr); align-items: end; column-gap: 64px; padding-block: 120px 140px; }
  .price .figure { grid-row: span 2; }
}

/* Footer */
.foot { border-top: 1px solid var(--line); padding-block: 28px 40px; color: var(--muted); font-size: 14px; }
.foot .row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; align-items: center; }
.foot nav { display: flex; flex-wrap: wrap; gap: 0 4px; margin-inline: -10px; }
.foot nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; text-decoration: none; border-radius: 10px; }
.foot nav a:hover { color: var(--fg); text-decoration: underline; }
.foot .fine { margin-top: 12px; max-width: 72ch; }

/* Policy pages */
.doc { padding-block: 32px 96px; }
.doc .bar { max-width: 220px; margin-bottom: 36px; }
.doc h1 { font-size: clamp(38px, 8vw, 64px); letter-spacing: -.045em; }
.doc .meta { margin-top: 14px; color: var(--muted); font-size: 15px; }
.doc .body { max-width: 68ch; margin-top: 40px; }
.doc h2 { font-size: 24px; letter-spacing: -.02em; margin: 44px 0 12px; }
.doc p, .doc ul { margin: 0 0 14px; }
.doc ul { padding-left: 1.2em; }
.doc li { margin-bottom: 8px; }
.doc .toc { display: flex; flex-wrap: wrap; gap: 0 4px; margin: 20px 0 0 -10px; }
.doc .toc a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; color: var(--muted); font-size: 15px; border-radius: 10px; }
.doc .toc a:hover { color: var(--fg); }

/* 404 */
.lost { padding-block: 64px 120px; }
.lost .figure { margin-bottom: 28px; }
.lost p:not(.figure) { color: var(--muted); font-size: 19px; margin-bottom: 28px; max-width: 40ch; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
