/* SecureVault site. One continuous gradient behind everything, the app's own fonts and colours.
   Colours: lib/ui/core/theme/app_colors.dart (dark theme). Films: marketing/video*/. */

@font-face { font-family: "Plus Jakarta Sans"; src: url("/fonts/jakarta.woff2") format("woff2"); font-weight: 600 800; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/fonts/inter.woff2") format("woff2"); font-weight: 400 600; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("/fonts/jetbrains.woff2") format("woff2"); font-weight: 500 700; font-display: swap; }

:root {
  color-scheme: dark;
  --ground: #0b0f19;
  --surface: #171b26;
  --surface-2: #1c1f2a;
  --surface-3: #262a35;
  --field: #0d111d;
  --text: #f1f2fc;
  --text-2: #dfe2f1;
  --dim: #c3c8e2;
  --lav: #c0c1ff;
  --unlock: #8083ff;
  --vault: #4f46e5;
  --mint: #4edea3;
  --amber: #ffb454;
  --coral: #ff8a7a;
  --line: rgba(255, 255, 255, 0.12);

  --display: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --gutter: clamp(16px, 5vw, 128px);
  --wrap: min(100% - 2 * var(--gutter), 2640px);
  --step: clamp(1.05rem, 0.92rem + 0.34vw, 1.45rem);
  --lede: clamp(1.2rem, 0.98rem + 0.62vw, 1.95rem);
  --h2: clamp(2.15rem, 1.1rem + 3.7vw, 7rem);
  --h3: clamp(1.3rem, 1rem + 0.9vw, 2.2rem);
  --space: clamp(88px, 6vw + 48px, 260px);
  --radius: clamp(14px, 1vw, 22px);
  --shadow: 0 30px 80px -20px rgba(3, 5, 14, 0.65), 0 10px 30px -10px rgba(3, 5, 14, 0.45);
  --fade: 0.7s;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--ground);
  color: var(--text-2);
  font: 400 var(--step) / 1.6 var(--body);
  overflow-x: clip;
}
img, video, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--lav); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--text); }
:focus-visible { outline: 3px solid var(--mint); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--vault); color: #fff; }
p { margin: 0 0 1em; }
code, kbd, samp { font-family: var(--mono); font-size: 0.88em; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: var(--gutter); top: -100px; z-index: 10; background: var(--unlock); color: var(--ground); padding: 0.6em 1em; border-radius: 10px; font-weight: 600; }
.skip:focus { top: 12px; }

/* ------------------------------------------------------------------ the one gradient
   Three soft colour fields that change hue down the page, like the explainer film: indigo and violet
   where the vault arrives, blue in the middle, teal where it is about your own server. Each layer is fixed
   and only its opacity follows the scroll, so nothing repaints and there are no section edges. */
.sky { position: fixed; inset: 0; z-index: -1; pointer-events: none; background: var(--ground); }
.sky i { position: absolute; inset: -10vh -10vw; display: block; }
.sky .a {
  background:
    radial-gradient(52vw 52vh at 18% 22%, rgba(79, 70, 229, 0.78), transparent 72%),
    radial-gradient(46vw 56vh at 86% 28%, rgba(124, 58, 237, 0.62), transparent 70%),
    radial-gradient(70vw 40vh at 52% 104%, rgba(30, 58, 138, 0.7), transparent 72%);
}
.sky .b {
  opacity: 0;
  background:
    radial-gradient(54vw 54vh at 82% 20%, rgba(91, 63, 224, 0.62), transparent 72%),
    radial-gradient(50vw 58vh at 14% 62%, rgba(29, 78, 216, 0.6), transparent 70%),
    radial-gradient(60vw 46vh at 70% 100%, rgba(147, 51, 234, 0.48), transparent 72%);
}
.sky .c {
  opacity: 0;
  background:
    radial-gradient(52vw 56vh at 20% 26%, rgba(14, 159, 154, 0.52), transparent 72%),
    radial-gradient(48vw 52vh at 84% 58%, rgba(79, 70, 229, 0.62), transparent 70%),
    radial-gradient(70vw 44vh at 40% 104%, rgba(15, 118, 110, 0.6), transparent 72%);
}
.sky::after { /* soft vignette keeps text contrast at the edges */
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse 90% 90% at 50% 45%, transparent 55%, rgba(5, 7, 14, 0.5));
}
@supports (animation-timeline: scroll()) {
  .sky .b { animation: sky-b linear both; animation-timeline: scroll(root); }
  .sky .c { animation: sky-c linear both; animation-timeline: scroll(root); }
}
@keyframes sky-b { 0% { opacity: 0; } 35% { opacity: 1; } 65% { opacity: 1; } 100% { opacity: 0.35; } }
@keyframes sky-c { 0%, 40% { opacity: 0; } 80%, 100% { opacity: 1; } }
.page-short .sky .b { opacity: 0.55; animation: none; }

/* ------------------------------------------------------------------ layout */
.wrap { width: var(--wrap); margin-inline: auto; }
.prose { max-width: 68ch; }
.prose h2 { font-size: var(--h3); margin: 2.2em 0 0.5em; }
.prose h3 { font: 700 1.1em/1.3 var(--display); color: var(--text); margin: 1.6em 0 0.4em; }
.prose ul, .prose ol { padding-left: 1.2em; margin: 0 0 1.2em; }
.prose li { margin-bottom: 0.45em; }
section { scroll-margin-top: 24px; }
.band { padding-block: calc(var(--space) * 0.5); }

h1, h2, h3 { color: var(--text); font-family: var(--display); font-weight: 800; letter-spacing: -0.03em; margin: 0; text-wrap: balance; }
h2 { font-size: var(--h2); line-height: 1; margin-bottom: 0.32em; }
h3 { font-size: var(--h3); line-height: 1.12; letter-spacing: -0.02em; }
.lede { font-size: var(--lede); line-height: 1.45; color: var(--text-2); max-width: 36ch; }
.small { font-size: 0.86em; color: var(--dim); }
.dim { color: var(--dim); }
.mint { color: var(--mint); }

/* ------------------------------------------------------------------ header and footer */
.top { width: var(--wrap); margin-inline: auto; display: flex; align-items: center; gap: 1.5rem; padding-block: clamp(14px, 1.4vw, 30px); }
.brand { display: inline-flex; align-items: center; gap: 0.55em; color: var(--text); text-decoration: none; font: 800 clamp(1.1rem, 0.9rem + 0.5vw, 1.6rem)/1 var(--display); letter-spacing: -0.02em; }
.brand img { width: 1.5em; height: 1.5em; }
.nav { margin-left: auto; display: flex; align-items: center; gap: clamp(0.8rem, 1.8vw, 2.6rem); font-size: 0.95em; }
.nav a { color: var(--text-2); text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); text-decoration: underline; }
.nav .btn { padding: 0.55em 1.05em; }
@media (max-width: 760px) { .nav a:not(.btn) { display: none; } }

.foot { width: var(--wrap); margin: var(--space) auto 0; padding: 1.3rem 0 1.6rem; border-top: 1px solid var(--line); display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 0.5rem 2.4rem; font-size: 0.85em; color: var(--dim); }
.foot .brand { font-size: 1.05em; }
.foot nav, .foot .contact { display: flex; flex-wrap: wrap; gap: 0.3rem 1.4rem; align-items: baseline; }
.foot .contact { font-style: normal; justify-content: flex-end; }
.foot .contact .label { color: var(--text); font-weight: 600; }
.foot a { color: var(--dim); }
.foot a:hover { color: var(--text); }
.foot .seller { grid-column: 1 / -1; margin: 0; font-size: 0.9em; opacity: 0.8; }
@media (max-width: 900px) { .foot { grid-template-columns: minmax(0, 1fr); } .foot .contact { justify-content: flex-start; } }

/* ------------------------------------------------------------------ buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  min-height: 48px; padding: 0.8em 1.5em; border-radius: 14px; border: 1px solid transparent;
  font: 700 1em/1.15 var(--display); letter-spacing: -0.01em; text-decoration: none; cursor: pointer;
  transition: background-color var(--fade), color var(--fade), border-color var(--fade);
}
.btn-main { background: var(--unlock); color: var(--ground); }
.btn-main:hover { background: var(--lav); color: var(--ground); }
.btn-soft { background: rgba(255, 255, 255, 0.08); color: var(--text); border-color: rgba(255, 255, 255, 0.22); }
.btn-soft:hover { background: rgba(255, 255, 255, 0.14); color: var(--text); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.6; cursor: progress; }
.actions { display: flex; flex-wrap: wrap; gap: 0.9rem; align-items: center; margin-top: clamp(1.6rem, 2.4vw, 3rem); }
.actions .btn { font-size: clamp(1rem, 0.9rem + 0.35vw, 1.5rem); }

/* ------------------------------------------------------------------ hero */
.hero { --top-h: clamp(72px, 2.8vw + 48px, 110px); width: var(--wrap); margin-inline: auto; display: grid; grid-template-columns: minmax(0, 4.6fr) minmax(0, 7.4fr); gap: clamp(1.5rem, 3.4vw, 6rem); align-items: center; min-height: calc(100svh - var(--top-h)); padding-block: clamp(10px, 2svh, 40px) clamp(18px, 4svh, 70px); }
.hero h1 { font-size: clamp(2.3rem, min(5.2vw, 10.2svh), 10.4rem); line-height: 0.95; letter-spacing: -0.045em; }
.hero h1 span { display: block; }
.hero h1 .once { color: var(--lav); }
.hero .lede { margin-top: clamp(0.7rem, 2.2svh, 2.2rem); max-width: 34ch; font-size: clamp(1.05rem, min(var(--lede), 2.7svh), 1.95rem); }
.hero .film { width: min(100%, calc((100svh - var(--top-h) - clamp(28px, 6svh, 110px)) * 16 / 9)); justify-self: end; }
.pillars { list-style: none; margin: clamp(0.7rem, 2svh, 1.8rem) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem 0; font: 700 clamp(0.92rem, min(0.8rem + 0.4vw, 2.3svh), 1.35rem)/1.2 var(--display); }
.pillars li { padding-inline: 1.1em; border-left: 1px solid var(--line); }
.pillars li:first-child { padding-left: 0; border-left: 0; }
.pillars .for-agents { color: var(--amber); } .pillars .for-you { color: var(--lav); } .pillars .self-hosted { color: var(--mint); }
.hero .actions { margin-top: clamp(0.9rem, 2.6svh, 2.4rem); flex-wrap: wrap; }
.hero .actions .btn { font-size: clamp(0.95rem, min(0.9rem + 0.35vw, 2.4svh), 1.5rem); }
.hero .fine { margin-top: clamp(0.6rem, 1.6svh, 1.2rem); font-size: 0.9em; color: var(--dim); }
.film { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--ground); outline: 1px solid var(--line); outline-offset: -1px; aspect-ratio: 16 / 9; }
.film video, .film picture, .film img { width: 100%; height: 100%; object-fit: cover; }
.film-toggle {
  position: absolute; right: 14px; bottom: 14px; z-index: 2;
  min-height: 40px; padding: 0.45em 0.9em; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(11, 15, 25, 0.72); color: var(--text); font: 600 0.82rem/1 var(--body); cursor: pointer;
}
@media (max-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1fr); padding-top: 12px; min-height: 0; }
  .hero h1 { font-size: clamp(2.3rem, 11vw, 5rem); }
  .hero .film { width: 100%; }
  .hero .lede { max-width: 34ch; }
}

/* ------------------------------------------------------------------ story rows: text beside a picture, no boxes */
.row { width: var(--wrap); margin-inline: auto; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 9rem); align-items: center; padding-block: calc(var(--space) * 0.5); }
.row.flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.row.flip > :first-child { order: 2; }
.row .copy p { max-width: 40ch; }
.row .copy .lede { margin-bottom: 0.9em; }
.row .visual { display: flex; justify-content: center; align-items: center; gap: clamp(1rem, 3vw, 4rem); }
@media (max-width: 900px) {
  .row, .row.flip { grid-template-columns: minmax(0, 1fr); }
  .row .phone { width: min(260px, calc(50% - 0.5rem)); }
  .row.flip > :first-child { order: 0; }
}

/* the agent's terminal: the real tool calls and the vault's real replies */
.term { width: 100%; max-width: 1180px; background: rgba(9, 12, 21, 0.9); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); font: 500 clamp(0.8rem, 0.62rem + 0.5vw, 1.45rem)/1.5 var(--mono); color: var(--text-2); overflow: hidden; }
.term-bar { display: flex; gap: 0.45em; align-items: center; padding: 0.8em 1.1em; border-bottom: 1px solid var(--line); color: var(--dim); font-size: 0.8em; }
.term-bar b { width: 0.7em; height: 0.7em; border-radius: 50%; background: var(--surface-3); }
.term-bar span { margin-left: 0.6em; }
.term ol { list-style: none; margin: 0; padding: 1.1em 1.3em 1.3em; display: grid; gap: 1.05em; }
.term li { display: grid; grid-template-columns: 4.2em minmax(0, 1fr) auto; column-gap: 1em; align-items: baseline; }
.term time { color: #8890ad; }
.term .call { color: var(--text); overflow-wrap: anywhere; }
.term .call em { font-style: normal; color: var(--amber); }
.term .reply { grid-column: 2; color: var(--mint); }
.term .what { grid-column: 3; grid-row: 1 / span 2; align-self: center; font: 600 0.82em/1.2 var(--body); color: var(--lav); text-align: right; white-space: nowrap; }
@media (max-width: 560px) {
  .term li { grid-template-columns: minmax(0, 1fr); }
  .term time { font-size: 0.85em; }
  .term .reply, .term .what { grid-column: 1; grid-row: auto; text-align: left; }
}

/* devices: simple shapes around the app's own renders */
.phone { width: clamp(230px, 22vw, 480px); flex: none; padding: clamp(7px, 0.55vw, 12px); border-radius: clamp(30px, 2.4vw, 54px); background: #05070d; border: 1px solid rgba(255, 255, 255, 0.14); box-shadow: var(--shadow); }
.phone img { border-radius: clamp(23px, 1.9vw, 43px); width: 100%; aspect-ratio: 780 / 1688; }
.phone.crop { overflow: hidden; }
.phone.crop picture { display: block; aspect-ratio: 780 / 1100; overflow: hidden; border-radius: clamp(23px, 1.9vw, 43px); }
.phone.crop img { height: 100%; object-fit: cover; object-position: center 50%; border-radius: 0; }
.phone.crop.top img { object-position: center 0; }
.phone.crop.tight picture { aspect-ratio: 780 / 860; }
.phone.crop.tall picture { aspect-ratio: 780 / 1688; }
/* the three levels of the app's "AI agents" row: one phone, slow crossfade between real renders */
.levels .stack { position: relative; aspect-ratio: 780 / 1150; overflow: hidden; border-radius: clamp(23px, 1.9vw, 43px); }
.levels .stack picture { position: absolute; inset: 0; opacity: 0; transition: opacity 0.7s ease; }
.levels .stack picture.on { opacity: 1; }
.levels .stack img { width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; object-position: center 100%; border-radius: 0; }
@media (prefers-reduced-motion: reduce) { .levels .stack picture { transition: none; } }
.levels-list { list-style: none; margin: 0 0 1.1em; padding: 0; display: grid; gap: 0.35rem; max-width: 34rem; }
.levels-list button { width: 100%; text-align: left; font: inherit; color: var(--dim); background: transparent; border: 0; border-left: 3px solid var(--line); padding: 0.55em 0.8em 0.55em 1em; cursor: pointer; display: grid; gap: 0.1em; transition: color 0.5s ease, border-color 0.5s ease, background-color 0.5s ease; border-radius: 0 12px 12px 0; }
.levels-list button b { font: 700 1.12em/1.25 var(--display); color: inherit; }
.levels-list button span { font-size: 0.92em; }
.levels-list button[aria-pressed="true"] { color: var(--text); border-left-color: var(--lav); background: rgba(192, 193, 255, 0.08); }
.levels-list button:hover { color: var(--text); }
.screen { width: 100%; max-width: 1280px; border-radius: var(--radius); overflow: hidden; background: #090d16; border: 1px solid rgba(255, 255, 255, 0.14); box-shadow: var(--shadow); }
.screen .bar { height: clamp(22px, 1.6vw, 30px); display: flex; gap: 6px; align-items: center; padding-inline: 12px; background: #11151f; border-bottom: 1px solid var(--line); }
.screen .bar b { width: 9px; height: 9px; border-radius: 50%; background: var(--surface-3); }
.screen img { width: 100%; aspect-ratio: 1280 / 1024; }
.platforms { margin-top: 1.2em; color: var(--dim); }

.play {
  position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; border: 0; padding: 0; cursor: pointer;
  background: rgba(11, 15, 25, 0.25); color: var(--ground); transition: background-color var(--fade);
}
.play:hover { background: rgba(11, 15, 25, 0.05); }
.play span { display: inline-flex; align-items: center; gap: 0.6em; padding: 0.95em 1.6em; border-radius: 999px; background: var(--unlock); font: 800 clamp(1rem, 0.85rem + 0.5vw, 1.7rem)/1 var(--display); box-shadow: var(--shadow); }
.play svg { width: 1em; height: 1em; }

/* ------------------------------------------------------------------ pricing */
.pricing { width: var(--wrap); margin-inline: auto; padding-block: calc(var(--space) * 0.5); }
.plans { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); gap: clamp(1rem, 2.4vw, 3.5rem); margin-top: clamp(1.5rem, 3vw, 4rem); align-items: stretch; max-width: 2000px; }
.plan { border-radius: calc(var(--radius) + 6px); padding: clamp(1.5rem, 3vw, 4rem); background: rgba(11, 15, 25, 0.55); border: 1px solid var(--line); box-shadow: var(--shadow); display: flex; flex-direction: column; }
.plan.agent { background: rgba(23, 27, 38, 0.82); border-color: rgba(192, 193, 255, 0.45); }
.plan h3 { margin-bottom: 0.25em; }
.plan .what { color: var(--dim); margin: 0; max-width: 34ch; }
.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.2em 0.5em; margin: clamp(1rem, 2vw, 2.4rem) 0 0.3em; color: var(--text); font-family: var(--display); }
.price .now { font-size: clamp(3.4rem, 2rem + 5vw, 9rem); font-weight: 800; letter-spacing: -0.045em; line-height: 0.9; }
.price .cur { font-size: clamp(1.4rem, 1rem + 1.2vw, 2.8rem); font-weight: 700; }
.price s { color: var(--dim); font-size: clamp(1.2rem, 0.9rem + 1vw, 2.4rem); font-weight: 700; text-decoration-thickness: 2px; }
.price-note { margin: 0; color: var(--text-2); }
.left { margin: 0.4em 0 0; color: var(--mint); font-weight: 600; min-height: 1.6em; }
.plan ul { list-style: none; padding: 0; margin: clamp(1.2rem, 2vw, 2.4rem) 0; display: grid; gap: 0.55em; }
.plan li { padding-left: 1.4em; position: relative; }
.plan li::before { content: ""; position: absolute; left: 0.1em; top: 0.62em; width: 0.55em; height: 0.55em; border-radius: 50%; background: var(--unlock); }
.plan.free li::before { background: var(--surface-3); border: 1px solid var(--lav); }
.plan form, .plan .go { margin-top: auto; }
.plan .btn { width: 100%; font-size: clamp(1rem, 0.9rem + 0.35vw, 1.45rem); }
.msg { margin: 0.8em 0 0; min-height: 1.4em; font-size: 0.92em; }
.msg.err { color: var(--coral); }
[hidden] { display: none !important; }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------ downloads */
.downloads { width: var(--wrap); margin-inline: auto; padding-block: calc(var(--space) * 0.5); }
.dl-grid { list-style: none; padding: 0; margin: clamp(1.5rem, 3vw, 3.5rem) 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(0.8rem, 1.6vw, 2.4rem); }
.dl { border-radius: var(--radius); padding: clamp(1.2rem, 1.8vw, 2.6rem); background: rgba(11, 15, 25, 0.5); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 0.35em; min-width: 0; }
.dl-head { display: flex; align-items: center; gap: 0.45em; font-size: clamp(1.5rem, 1.1rem + 1.2vw, 3rem); margin-bottom: 0.15em; }
.dl h3 { font-size: 1em; }
.dl-head .os { width: 0.85em; height: 0.85em; color: var(--lav); }
.dl .meta { margin: 0; color: var(--dim); font-size: 0.9em; }
.dl .sha { font: 500 0.74em/1.45 var(--mono); color: #9aa1c0; overflow-wrap: anywhere; margin: 0.3em 0 0.9em; }
.dl .nofit { margin: 0.2em 0 0; color: var(--amber); font-size: 0.9em; font-weight: 600; }
.dl > .btn { margin-top: auto; }
.dl.coming { background: rgba(11, 15, 25, 0.28); border-style: dashed; }
.dl.coming .state { margin-top: auto; color: var(--dim); font-weight: 600; }
.dl .more { margin-top: 0.8em; font-size: 0.9em; border: 0; }
.dl .more summary { padding: 0.3em 1.6em 0.3em 0; font: 600 1em/1.3 var(--body); color: var(--lav); display: inline-block; }
.dl .more summary::after { width: 0.45em; height: 0.45em; }
.dl .more ul { list-style: none; margin: 0.4em 0 0; padding: 0; display: grid; gap: 0.7em; }
.dl .more li { display: grid; gap: 0.1em; }
.dl .more .sha { margin: 0; }
/* The visitor's platform: first and larger; the others follow, smaller and quieter. */
.dl-grid.picked { grid-template-columns: minmax(0, 1.8fr) repeat(3, minmax(0, 1fr)); align-items: stretch; }
.dl.pick { background: rgba(23, 27, 38, 0.82); border-color: rgba(192, 193, 255, 0.5); box-shadow: var(--shadow); }
.dl.pick .dl-head { font-size: clamp(1.9rem, 1.2rem + 2vw, 4.4rem); }
.dl.pick .dl-head .os { color: var(--text); }
.dl.pick > .btn { align-self: start; min-width: min(100%, 14rem); font-size: clamp(1rem, 0.9rem + 0.35vw, 1.45rem); }
.dl.pick.coming { border-style: dashed; }
.dl.pick.coming .state { color: var(--text); font-size: 1.15em; margin-bottom: 0; }
.dl .until { margin: 0; color: var(--dim); }
.dl-grid.picked .dl:not(.pick) { font-size: 0.92em; }
.dl-grid.picked .dl:not(.pick) .dl-head { font-size: clamp(1.25rem, 1rem + 0.8vw, 2.2rem); }
.dl-ios { display: flex; align-items: center; gap: 0.7em; max-width: 52rem; margin: clamp(1.2rem, 2vw, 2.4rem) 0 0; padding: 1em 1.3em; border-radius: var(--radius); background: rgba(23, 27, 38, 0.82); border: 1px solid rgba(192, 193, 255, 0.5); color: var(--text); font-weight: 600; }
.dl-ios .os { width: 1.6em; height: 1.6em; }
.agent-dl { margin-top: 1.5rem; color: var(--text-2); }
@media (max-width: 1100px) {
  .dl-grid, .dl-grid.picked { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dl-grid.picked .dl.pick { grid-column: 1 / -1; }
}
@media (max-width: 560px) { .dl-grid, .dl-grid.picked { grid-template-columns: 1fr; } }

/* platform logos (Simple Icons, symbols in partials/layout.html): only on download choices */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
svg.os { display: inline-block; width: 1.1em; height: 1.1em; fill: currentColor; flex: none; }
.btn .os { margin-left: -0.15em; }
.os-note { margin: 0 0 1em; color: var(--amber); font-weight: 600; }
.nav .btn .long { display: none; }
@media (min-width: 1100px) { .nav .btn .long { display: inline; } }

/* ------------------------------------------------------------------ FAQ */
.faq { width: var(--wrap); margin-inline: auto; padding-block: calc(var(--space) * 0.5); display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(1.5rem, 4vw, 7rem); align-items: start; }
.faq-list { max-width: 1100px; }
details { border-bottom: 1px solid var(--line); }
details:first-child { border-top: 1px solid var(--line); }
summary { list-style: none; cursor: pointer; padding: 1.05em 2.4em 1.05em 0; position: relative; font: 700 clamp(1.05rem, 0.9rem + 0.45vw, 1.6rem)/1.3 var(--display); color: var(--text); letter-spacing: -0.01em; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; position: absolute; right: 0.3em; top: 50%; width: 0.6em; height: 0.6em; border-right: 2px solid var(--lav); border-bottom: 2px solid var(--lav); transform: translateY(-70%) rotate(45deg); transition: transform var(--fade); }
details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
details .answer { padding: 0 0 1.3em; max-width: 64ch; }
details .answer p:last-child { margin-bottom: 0; }
@media (max-width: 900px) { .faq { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------ inner pages */
.page-head { width: var(--wrap); margin-inline: auto; padding-block: clamp(32px, 5vw, 120px) clamp(20px, 3vw, 60px); }
.page-head h1 { font-size: clamp(2.8rem, 1rem + 6vw, 10rem); line-height: 0.95; letter-spacing: -0.04em; max-width: 14ch; }
.page-head .lede { margin-top: 0.8em; max-width: 44ch; }
.page-body { width: var(--wrap); margin-inline: auto; }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 30rem), 1fr)); gap: clamp(2rem, 4vw, 6rem); align-items: start; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: clamp(3rem, 5vw, 7rem); counter-reset: step; }
.steps > li { display: grid; grid-template-columns: clamp(3.5rem, 6vw, 9rem) minmax(0, 1fr); gap: clamp(1rem, 2vw, 3rem); counter-increment: step; }
.steps > li::before { content: counter(step); font: 800 clamp(3rem, 1.6rem + 4.4vw, 9rem)/0.85 var(--display); color: var(--lav); letter-spacing: -0.05em; }
.steps h2 { font-size: var(--h3); margin-bottom: 0.5em; }
/* text keeps a readable measure; commands may use the width a wide screen has */
.steps .body { max-width: 124ch; }
.steps .body > p, .steps .body > ul, .steps .body > .linkbox { max-width: 70ch; }
.steps h3 { margin: 1.5em 0 0.5em; }
.steps .body ul { margin: 0 0 1.1em; padding-left: 1.2em; }
.steps .body li { margin-bottom: 0.4em; }
pre { margin: 0.6em 0 1.2em; padding: 1em 1.2em; border-radius: 14px; background: rgba(9, 12, 21, 0.88); border: 1px solid var(--line); overflow-x: auto; font: 500 0.86em/1.6 var(--mono); color: var(--text); }
pre code { font-size: 1em; }
.confirm { display: inline-block; margin: 0 0 0.5em; padding: 0.2em 0.7em; border-radius: 999px; background: rgba(255, 180, 84, 0.16); color: var(--amber); font-size: 0.8em; font-weight: 600; }
.note { padding: 1.1em 1.3em; border-radius: 14px; background: rgba(11, 15, 25, 0.55); border: 1px solid var(--line); }
.note p:last-child { margin-bottom: 0; }
.limits li { margin-bottom: 0.7em; }
.todo { background: rgba(255, 138, 122, 0.18); color: var(--coral); padding: 0 0.3em; border-radius: 4px; }

/* the one line for an agent: big, with a copy button */
.say { max-width: 1720px; margin: 1.2em 0 1em; }
.linkbox.say code { flex: 1 1 26rem; font-size: clamp(0.92rem, 0.8rem + 0.45vw, 1.4rem); line-height: 1.5; padding: 1em 1.2em; color: var(--text); background: rgba(9, 12, 21, 0.88); border-color: rgba(192, 193, 255, 0.45); }
.steps .linkbox.say code, .row .linkbox.say code { font-size: 0.86em; }
.row .linkbox.say { max-width: 46rem; }
.page-head .small { max-width: 60ch; }
/* /agents/: three columns on a wide screen, one on a phone */
.cols.three { grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr)); gap: clamp(1.5rem, 3vw, 5rem); }
.cols.three .prose { max-width: 60ch; }
.cols.three .prose h2 { margin-top: 0.6em; }
.cols.after { margin-top: clamp(2rem, 3vw, 4.5rem); padding-top: clamp(1rem, 1.5vw, 2rem); border-top: 1px solid var(--line); }
.prose ul.plain, ul.plain { list-style: none; padding: 0; display: grid; gap: 1em; }
ul.plain li { display: grid; gap: 0.15em; margin: 0; }
ul.plain .sha { font: 500 0.74em/1.45 var(--mono); color: #9aa1c0; overflow-wrap: anywhere; }

/* /self-hosting/: the kit's manual; its sections beside it on a wide screen */
.manual { display: grid; grid-template-columns: minmax(14rem, 22rem) minmax(0, 1fr); gap: clamp(2rem, 5vw, 8rem); align-items: start; }
.manual-toc { position: sticky; top: 1.5rem; font-size: 0.92em; max-height: calc(100vh - 3rem); overflow-y: auto; }
.manual-toc ol { list-style: none; margin: 0 0 1.8em; padding: 0; display: grid; gap: 0.5em; }
.manual-toc a { color: var(--text-2); text-decoration: none; }
.manual-toc a:hover { color: var(--text); text-decoration: underline; }
.manual-toc .kit a { color: var(--lav); text-decoration: underline; }
.manual-text { max-width: 132ch; min-width: 0; }
.manual-text > :first-child { margin-top: 0; }
.manual-text h2 { scroll-margin-top: 1.5rem; }
.manual-text p, .manual-text li { max-width: 80ch; }
.manual-text .note { margin-bottom: 2em; }
.manual-text .note p { max-width: none; }
.table-wrap { overflow-x: auto; margin: 0.8em 0 1.6em; border-radius: 14px; border: 1px solid var(--line); background: rgba(11, 15, 25, 0.5); }
.table-wrap table { border-collapse: collapse; width: 100%; font-size: 0.9em; line-height: 1.5; }
.table-wrap th, .table-wrap td { padding: 0.7em 1em; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); min-width: 9em; }
.table-wrap th { font: 700 0.95em/1.3 var(--display); color: var(--text); white-space: nowrap; }
.table-wrap tr:last-child td { border-bottom: 0; }
p code, li code, td code { overflow-wrap: anywhere; }
pre code { overflow-wrap: normal; }
@media (max-width: 1000px) {
  .manual { grid-template-columns: minmax(0, 1fr); }
  .manual-toc { position: static; max-height: none; }
  .manual-toc ol { grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); }
}

/* new in a release, and parts of the desktop app as the app drew them (crops of its own renders) */
.new { display: inline-block; margin: 0 0 0.9em; padding: 0.25em 0.8em; border-radius: 999px; background: rgba(78, 222, 163, 0.14); color: var(--mint); font: 700 0.8em/1.3 var(--display); letter-spacing: 0.01em; }
.limit-list { list-style: none; margin: 0 0 1.1em; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; font: 700 0.95em/1.2 var(--display); }
.limit-list li { padding: 0.5em 0.9em; border-radius: 999px; border: 1px solid var(--line); color: var(--text-2); background: rgba(11, 15, 25, 0.4); }
.limit-list .default { color: var(--text); border-color: rgba(192, 193, 255, 0.55); background: rgba(192, 193, 255, 0.1); }
.limit-list .default span { margin-left: 0.4em; font: 500 0.85em/1 var(--body); color: var(--lav); }
.row .copy .small { max-width: 46ch; }
.shots { display: flex; justify-content: center; align-items: center; gap: clamp(1rem, 2.4vw, 3rem); width: 100%; }
.shot { margin: 0; min-width: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.14); box-shadow: var(--shadow); background: var(--ground); }
.shot img { width: 100%; }
/* drawn at their own size (600 and 440 px); on a very wide screen a little larger, to hold their place beside the headline */
.shot.menu { flex: 600 1 0; max-width: clamp(600px, 23vw, 800px); }
.shot.rule { flex: 440 1 0; max-width: clamp(440px, 16.9vw, 587px); }
@media (max-width: 900px) {
  .shots { flex-direction: column; }
  .shot.menu, .shot.rule { flex: none; width: 100%; }
}

/* thanks + licence page */
.card { border-radius: calc(var(--radius) + 6px); padding: clamp(1.5rem, 3vw, 3.5rem); background: rgba(23, 27, 38, 0.82); border: 1px solid var(--line); box-shadow: var(--shadow); max-width: 1100px; }
.linkbox { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; margin: 0.6em 0 1.4em; }
.linkbox code { flex: 1 1 22rem; min-width: 0; padding: 0.85em 1em; border-radius: 12px; background: var(--field); border: 1px solid var(--line); color: var(--text); overflow-wrap: anywhere; font-size: 0.9em; }
.files { list-style: none; padding: 0; margin: 0.6em 0 0; display: grid; gap: 1rem; }
.files li { padding: 1em 1.2em; border-radius: 14px; background: rgba(11, 15, 25, 0.55); border: 1px solid var(--line); display: grid; gap: 0.3em; }
.files .sha { font: 500 0.76em/1.45 var(--mono); color: #9aa1c0; overflow-wrap: anywhere; }
.files a.btn { justify-self: start; margin-top: 0.4em; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
@media (forced-colors: active) { .sky { display: none; } }
