/* Design tokens */
@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --background: oklch(0.985 0.004 255);
  --text: oklch(0.24 0.04 255);
  --muted: oklch(0.45 0.03 255);
  --border: oklch(0.91 0.01 255);
  --accent: oklch(0.71 0.17 50);
  --accent-hover: oklch(0.66 0.17 50);
  --on-accent: oklch(0.24 0.04 255);
  --green: oklch(0.62 0.15 150);
  --amber: oklch(0.71 0.17 50);
  --red: oklch(0.58 0.19 25);
  --grey: oklch(0.65 0.02 255);
  --surface: oklch(0.955 0.008 255);
  --border-strong: oklch(0.62 0.02 255);
  --amber-surface: oklch(0.96 0.04 70);
  --red-surface: oklch(0.96 0.03 25);
  --red-text: oklch(0.55 0.19 25);
  --overlay: oklch(0.985 0.004 255 / 0.88);
    --focus: var(--text);
  --radius: 4px;
  --text-sm: 12.5px;
  --text-base: 14px;
  --text-title: 17px;
  --mark-size: 36px;
  --mark-size-lg: 48px;
  --icon-size: 16px;
  --icon-size-sm: 14px;
  --icon-size-lg: 24px;
  --panel-min-width: 250px;
  --space-2: 2px;
  --space-4: 4px;
  --space-6: 6px;
  --space-8: 8px;
  --space-10: 10px;
  --space-12: 12px;
  --space-16: 16px;
  --space-20: 20px;
  --space-32: 32px;
  --duration-fast: 0.15s;
  --duration-spin: 0.8s;
  --duration-progress: 1.1s;
  --font-font: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: oklch(0.19 0.035 255);
    --text: oklch(0.95 0.006 255);
    --muted: oklch(0.75 0.02 255);
    --border: oklch(0.32 0.03 255);
    --accent: oklch(0.71 0.17 50);
    --accent-hover: oklch(0.76 0.16 50);
    --on-accent: oklch(0.24 0.04 255);
    --green: oklch(0.72 0.15 150);
    --amber: oklch(0.71 0.17 50);
    --red: oklch(0.70 0.16 25);
    --grey: oklch(0.6 0.02 255);
    --surface: oklch(0.24 0.035 255);
    --border-strong: oklch(0.55 0.03 255);
    --amber-surface: oklch(0.29 0.05 60);
    --red-surface: oklch(0.27 0.06 25);
    --red-text: var(--red);
    --overlay: oklch(0.19 0.035 255 / 0.88);
    --focus: var(--text);
    color-scheme: dark;
  }
}

.t-title { font-family: var(--font-font); font-size: 17px; line-height: 1.25; font-weight: 700; }
.t-body { font-family: var(--font-font); font-size: 14px; line-height: 1.45; font-weight: 400; }
.t-body-strong { font-family: var(--font-font); font-size: 14px; line-height: 1.45; font-weight: 600; }
.t-label { font-family: var(--font-font); font-size: 12.5px; line-height: 1.4; font-weight: 600; }
.t-meta { font-family: var(--font-font); font-size: 12.5px; line-height: 1.45; font-weight: 400; }
.t-numeric { font-family: var(--font-font); font-size: 14px; line-height: 1.45; font-weight: 400; }
.t-display { font-family: var(--font-font); font-size: 40px; line-height: 1.05; font-weight: 800; letter-spacing: -0.01em; }
.t-headline { font-family: var(--font-font); font-size: 24px; line-height: 1.2; font-weight: 700; }
.t-lead { font-family: var(--font-font); font-size: 17px; line-height: 1.5; font-weight: 400; }

/* Panel preview components used on the product pages */
.sb {
  width: 100%;
  height: 100vh;
  font: 400 var(--text-base) / 1.45 var(--font-font);
  color: var(--text);
  background: var(--background);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 0;
}

.sb *, .sb *::before, .sb *::after { box-sizing: border-box; }
.sb, .sb * { -webkit-font-smoothing: antialiased; }
.sb p, .sb h1, .sb h2, .sb ul { margin: 0; }
.sb .sm { font-size: var(--text-sm); }
.sb .mut { color: var(--muted); }
.sb .panel-header { flex: none; }
.sb .head { display: flex; align-items: center; gap: var(--space-12); padding: var(--space-16) var(--space-16) var(--space-10); }
.sb .head picture, .sb .mark { display: block; flex: none; }
.sb .club { font-size: var(--text-title); font-weight: 700; line-height: 1.25; overflow-wrap: anywhere; }
.sb .meta { font-size: var(--text-sm); color: var(--muted); }
.sb .check { display: flex; align-items: center; gap: var(--space-8); padding: 0 var(--space-16) var(--space-12); font-size: var(--text-sm); }
.sb .dot { width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--green); }
.sb .dot.amber { background: var(--amber); }

.sb .tabs { display: flex; gap: var(--space-20); padding: 0 var(--space-16); border-bottom: 1px solid var(--border); }
.sb .tab { padding: var(--space-10) 0; font: 600 var(--text-base) var(--font-font); color: var(--muted); background: none; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; cursor: pointer; white-space: normal; overflow-wrap: anywhere; line-height: 1.45; }
.sb .tab.on { color: var(--text); border-bottom-color: var(--accent); }

.sb .btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-8); min-height: 36px; padding: 0 var(--space-16); border: 1px solid transparent; border-radius: var(--radius); font: 600 var(--text-base) var(--font-font); line-height: 1.45; cursor: pointer; background: var(--accent); color: var(--on-accent); }
.sb .btn.sec { background: transparent; color: var(--text); border-color: var(--border-strong); }
.sb .btn.danger-confirm { background: var(--red-surface); color: var(--red-text); border-color: var(--red); }
.sb .comp-r { display: flex; gap: var(--space-8); align-items: flex-end; }

.sb .main { position: relative; flex: 1; min-height: 0; display: flex; flex-direction: column; }
.sb .chat { flex: 1; min-height: 0; overflow: auto; padding: var(--space-16); display: flex; flex-direction: column; gap: var(--space-12); }
.sb .u { align-self: flex-end; max-width: 90%; background: var(--surface); border-radius: var(--radius); padding: var(--space-8) var(--space-12); display: flex; flex-direction: column; gap: var(--space-8); overflow-wrap: anywhere; text-wrap: pretty; }
.sb .a { display: flex; flex-direction: column; gap: var(--space-6); overflow-wrap: anywhere; text-wrap: pretty; }
.sb .tbl { max-width: 100%; overflow-x: auto; overflow-wrap: normal; }
.sb .tbl table { border-collapse: collapse; font-size: var(--text-sm); font-variant-numeric: tabular-nums; }
.sb .tbl th, .sb .tbl td { padding: var(--space-4) var(--space-8); border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.sb table { border-collapse: collapse; width: 100%; white-space: nowrap; font-size: var(--text-sm); }
.sb th, .sb td { padding: var(--space-4) var(--space-8); text-align: left; border-bottom: 1px solid var(--border); }
.sb th { position: sticky; top: 0; background: var(--surface); color: var(--muted); font-weight: 600; line-height: 1.4; }
.sb tr:last-child td { border-bottom: 0; }
.sb .tbl th { font-weight: 600; color: var(--muted); border-bottom-color: var(--border-strong); }
.sb .tbl th:first-child, .sb .tbl td:first-child { padding-left: 0; }

.sb .tool { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); font-size: var(--text-sm); }
.sb .tool-h { display: flex; align-items: center; gap: var(--space-8); width: 100%; min-height: 36px; padding: var(--space-6) var(--space-10); background: none; border: 0; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.sb .tool-n { font-weight: 600; flex: none; line-height: 1.4; }
.sb .tool-s { color: var(--muted); flex: 1; min-width: 0; }
.sb .tool-b { border-top: 1px solid var(--border); padding: var(--space-8) var(--space-10) var(--space-10); display: flex; flex-direction: column; gap: var(--space-6); }
.sb .proposal .tool-b { gap: var(--space-12); }
.sb .proposal .tool-n { flex: initial; font-size: var(--text-base); overflow-wrap: anywhere; font-weight: 600; line-height: 1.45; }
.sb .proposal .comp-r { justify-content: flex-start; flex-wrap: wrap; }
.sb .tool.done .tool-h { cursor: pointer; }

.sb .file { display: flex; align-items: center; gap: var(--space-10); padding: var(--space-6) var(--space-6) var(--space-6) var(--space-10); border: 1px solid var(--border-strong); border-radius: var(--radius); background: var(--background); min-width: 0; }
.sb .file-i { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.sb .file-n { font-size: var(--text-sm); font-weight: 600; white-space: normal; overflow-wrap: anywhere; line-height: 1.4; }

.sb .tag { display: inline-flex; align-items: center; padding: 0 var(--space-6); min-height: 20px; border: 1px solid var(--border-strong); border-radius: var(--radius); font-size: var(--text-sm); font-weight: 600; line-height: 1.4; white-space: nowrap; background: var(--background); }
.sb .tag.warn { background: var(--amber-surface); border-color: var(--amber); }
.sb .in { flex: 1; min-width: 0; min-height: 36px; max-height: 120px; padding: var(--space-8) var(--space-10); border: 1px solid var(--border-strong); border-radius: var(--radius); background: var(--background); color: var(--text); font: inherit; resize: none; overflow: auto; overflow-wrap: anywhere; }
.num { font-variant-numeric: tabular-nums; }

.lockup { display: inline-flex; align-items: center; gap: var(--space-10); padding: 10px; color: var(--text); font: 800 24px/1.2 var(--font-font); text-decoration: none; }
.lockup .ow { width: 40px; height: 40px; }
.lockup.compact { gap: var(--space-6); padding: 6px; font-size: 15px; }
.lockup.compact .ow { width: 24px; height: 24px; }
.web-page { box-sizing: border-box; max-width: 560px; margin: 0 auto; padding: var(--space-32) var(--space-16); background: var(--background); color: var(--text); font-family: var(--font-font); }
.web-page > * { margin: 0 0 var(--space-20); }
.web-page a { color: var(--text); }

/* Site page styles */
body { margin: 0; background: var(--background); color: var(--text); }
a { color: var(--text); }
a:hover { color: var(--muted); }
.s-page { background: var(--background); color: var(--text); font: 400 var(--text-base) / 1.45 var(--font-font); -webkit-font-smoothing: antialiased; min-height: 100vh; }
.s-page * { box-sizing: border-box; }
.s-page h1, .s-page h2, .s-page h3, .s-page p, .s-page ul, .s-page ol { margin: 0; }
.s-wrap { max-width: 1040px; margin: 0 auto; padding: 0 var(--space-16); }
.s-top { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-8) var(--space-20); padding-block: var(--space-12); border-bottom: 1px solid var(--border); }
.s-top nav { display: flex; flex-wrap: wrap; column-gap: var(--space-20); }
.s-top nav a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; text-decoration: none; }
.s-top nav a:hover { text-decoration: underline; text-underline-offset: 2px; color: var(--text); }
.s-top nav { margin-left: auto; }
/* The language switch: a small two-cell control, the current language filled. */
.s-lang { display: flex; padding: 2px; gap: 2px; border: 1px solid var(--border); border-radius: var(--radius); font-size: var(--text-sm); font-weight: 600; line-height: 1; }
.s-lang > * { display: inline-flex; align-items: center; justify-content: center; min-width: 32px; min-height: 26px; padding-inline: var(--space-8); border-radius: 2px; color: var(--muted); text-decoration: none; }
.s-lang [aria-current] { background: var(--surface); color: var(--text); }
.s-lang a { position: relative; }
.s-lang a::after { content: ""; position: absolute; inset: -9px -4px; }
.s-lang a:hover { color: var(--text); background: var(--surface); }
@media (max-width: 719px) {
  .s-top nav { order: 3; flex-basis: 100%; margin-left: 0; }
  .s-lang { margin-left: auto; }
}
.s-page a:focus-visible, .s-page summary:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: var(--radius); }
.s-mut { color: var(--muted); }
.s-hero { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-32); padding-block: 48px 64px; }
.s-hero-copy { flex: 1 1 420px; max-width: 560px; display: flex; flex-direction: column; gap: var(--space-20); }
.s-cta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-12); }
.s-btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-8); min-height: 44px; padding: 0 var(--space-20); border: 1px solid transparent; border-radius: var(--radius); font: 600 var(--text-base) var(--font-font); text-decoration: none; background: var(--accent); color: var(--on-accent); }
.s-page a.s-btn:hover { background: var(--accent-hover); color: var(--on-accent); }
.s-fig { flex: 0 1 360px; margin: 0; min-width: 0; }
.sb.s-panel { height: 720px; width: 100%; max-width: 360px; border: 1px solid var(--border-strong); border-radius: var(--radius); }
.sb.s-panel-short { height: 460px; }
.s-panel .chat { gap: var(--space-12); }
.s-sec { position: relative; display: flex; flex-direction: column; gap: var(--space-20); padding-block: 56px; scroll-margin-top: var(--space-16); }
.s-head { display: flex; flex-direction: column; gap: var(--space-8); max-width: 560px; }
.s-split { display: flex; flex-wrap: wrap; gap: var(--space-32); align-items: flex-start; }
.s-copy { flex: 1 1 420px; max-width: 560px; display: flex; flex-direction: column; gap: var(--space-20); }
.s-ic { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.s-ic.sm { width: 16px; height: 16px; margin-top: 3px; }
.s-flow { display: flex; flex-direction: column; gap: var(--space-16); padding-left: var(--space-20); }
.s-flow li { padding-left: var(--space-4); }
.s-flow li > div { display: flex; flex-direction: column; gap: var(--space-4); }
.s-ticks { display: flex; flex-direction: column; gap: var(--space-12); list-style: none; padding: 0; }
.s-ticks li { display: flex; gap: var(--space-8); align-items: flex-start; }
.s-qs { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--space-8) var(--space-20); list-style: none; padding: 0; }
.s-qs li { padding: var(--space-8) 0; border-bottom: 1px solid var(--border); }
.s-sec > .s-qs { max-width: 720px; }
.s-note { padding: var(--space-12) var(--space-16); background: var(--amber-surface); border-radius: var(--radius); max-width: 560px; }
.s-req { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--space-32); }
.s-req > div { display: flex; flex-direction: column; gap: var(--space-12); }
.s-steps { display: flex; flex-direction: column; gap: var(--space-8); padding-left: var(--space-20); }
.s-faq { max-width: 720px; display: flex; flex-direction: column; }
.s-faq details { border-bottom: 1px solid var(--border); }
.s-faq details:first-child { border-top: 1px solid var(--border); }
.s-faq summary { display: flex; align-items: center; justify-content: space-between; gap: var(--space-12); min-height: 48px; padding-block: var(--space-8); font-weight: 600; cursor: pointer; list-style: none; }
.s-faq summary::-webkit-details-marker { display: none; }
.s-faq summary .s-ic { width: 16px; height: 16px; }
.s-faq details[open] summary .s-ic { transform: rotate(180deg); }
.s-faq details > p { padding-bottom: var(--space-16); max-width: 620px; }
.s-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-12) var(--space-32); padding-block: 40px; }
.s-foot-copy { display: flex; flex-direction: column; gap: var(--space-4); }
.s-foot nav { display: flex; flex-wrap: wrap; gap: var(--space-4) var(--space-20); }
.s-foot a { display: inline-flex; align-items: center; min-height: 44px; }

.s-fig.s-typefig { flex-basis: 440px; }
.s-type-mock { width: 100%; }
.s-type-stack { display: flex; flex-direction: column; }
.s-type-card { position: relative; width: 84%; padding: var(--space-20); border: 1px solid var(--border-strong); border-radius: var(--radius); background: var(--background); box-shadow: 0 12px 28px oklch(0 0 0 / 0.12); }
.s-type-card h3 { margin-bottom: var(--space-12); }
/* A crop of the real Modelo 1's identification block (assets/modelo-1-id.webp, 880x274, page x 6.2-92.5%,
   y 26.2-45.2%, handwritten with fictional data); each box sits on a value the sweep reads. */
.s-type-scan { z-index: 1; width: 100%; padding: 0; overflow: hidden; background: #fff; transform: rotate(-1.5deg); }
.s-scan-img { display: block; width: 100%; height: auto; }
.s-scan-box { position: absolute; border: 2px solid oklch(0.5 0.15 255); border-radius: 2px; background: oklch(0.5 0.15 255 / 0.08); }
.s-scan-box-1 { left: 19.98%; top: 7.37%; width: 19.83%; height: 12.81%; }
.s-scan-box-2 { left: 19.47%; top: 24.32%; width: 12.30%; height: 8.27%; }
.s-scan-box-3 { left: 74.77%; top: 45.81%; width: 17.12%; height: 11.57%; }
.s-scan-box-4 { left: 20.30%; top: 45.60%; width: 35.92%; height: 11.16%; }
.s-type-form { z-index: 2; align-self: flex-end; margin-top: -20px; }
.s-type-entries { display: flex; flex-direction: column; gap: var(--space-8); }
.s-type-label { color: var(--muted); font-size: var(--text-sm); line-height: 1.35; }
.s-type-line { display: none; }
.s-type-entry { display: flex; flex-direction: column; gap: var(--space-4); min-width: 0; }
.s-type-input { display: flex; align-items: center; min-height: 34px; min-width: 0; padding: var(--space-4) var(--space-8); border: 1px solid var(--border-strong); border-radius: var(--radius); background: var(--background); overflow: hidden; }
.s-type-value { display: inline-block; width: max-content; max-width: 100%; overflow: hidden; white-space: nowrap; color: var(--text); font-size: var(--text-base); line-height: 1.35; }
.s-type-value::after { content: ""; display: none; }
.s-type-done { display: flex; align-items: center; gap: var(--space-4); margin-top: var(--space-12) !important; }
.s-type-done .s-ic { margin: 0; }
/* A crop of the real Modelo 1 around its signature box (assets/modelo-1.webp, 880x398, page x 4-96%,
   y 53.5-82.9%, filled with fictional data). The stamp is 20% of the page's width, centred on the
   "Diretor(a) e Carimbo Clube" box: 79.09% x 74.22% of the crop. */
.s-fig.s-stampfig { flex-basis: 440px; }
.s-stamp-doc { position: relative; overflow: hidden; border: 1px solid oklch(0.24 0.04 255 / 0.2); border-radius: var(--radius); background: #fff; box-shadow: 0 12px 28px oklch(0 0 0 / 0.16); }
.s-stamp-img { display: block; width: 100%; height: auto; }
.s-stamp-cap { margin-top: var(--space-8); color: var(--muted); }
.s-stamp-mark { position: absolute; left: 68.22%; top: 50.19%; display: block; width: 21.74%; aspect-ratio: 1; transform: rotate(-12deg); mix-blend-mode: multiply; opacity: 0.9; color: oklch(0.44 0.15 262); }
.s-stamp-mark::after { content: ""; position: absolute; inset: 0; border: 2px solid currentColor; border-radius: 50%; opacity: 0; transform: scale(1); }
/* "Missing stamp": a dashed outline inside the empty "Diretor(a) e Carimbo Clube" box
   (x 556-830, y 262-328 of the crop), shown only while the looping animation runs. */
.s-stamp-doc { container-type: inline-size; }
.s-stamp-missing { position: absolute; left: 63.2%; top: 65.8%; width: 31.1%; height: 16.6%; display: flex; align-items: flex-start; justify-content: center; padding-top: 2.2cqi; border: 2px dashed oklch(0.58 0.19 25); border-radius: 3px; background: oklch(0.96 0.03 25 / 0.6); color: oklch(0.52 0.19 25); font-size: 2.6cqi; font-weight: 700; line-height: 1; opacity: 0; }
.s-stamp-svg { display: block; width: 100%; height: 100%; overflow: visible; }
.s-stamp-svg circle, .s-stamp-svg path { fill: none; stroke: currentColor; stroke-width: 1.8; }
.s-stamp-svg .st-o { stroke-width: 2.8; }
.s-stamp-svg .st-i { stroke-width: 1.2; }
.s-stamp-svg text { fill: currentColor; font: 800 9px/1 var(--font-font); }
.s-drive-panel .chat { gap: var(--space-8); padding: var(--space-12); overflow: hidden; }
.s-drive-file { gap: var(--space-8) !important; padding: var(--space-4) var(--space-6) !important; }
.s-drive-file .file-i { gap: 1px; }
.s-drive-file .t-meta { font-size: 10.5px; line-height: 1.25; overflow-wrap: anywhere; }
.s-drive-file .file-n { font-size: 11.5px; }
.s-doc-ic { width: 16px; height: 16px; }
@media (max-width: 720px) {
}

.nf-page { min-height: 640px; background: var(--background); color: var(--text); }
.nf-page h1, .nf-page h2, .nf-page p { margin: 0; }
.nf-page .web-page { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-20); }
.nf-page .web-page > * { margin: 0; }
.nf-rule, .nf-en { align-self: stretch; }
.nf-rule { border: 0; border-top: 1px solid var(--border); }
.nf-en { display: flex; flex-direction: column; gap: var(--space-12); }
.nf-page a:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: var(--radius); }
.nf-subhead { font-size: var(--text-title); }
.nf-foot { display: flex; flex-wrap: wrap; gap: var(--space-4) var(--space-20); }
.nf-foot a { display: inline-flex; align-items: center; min-height: 44px; }

/* Bands: full-width stripes from the palette (Paper, Surface, Night).
   The background bleeds to the window edges without extra markup. */
:root { --ow-ink: oklch(0.24 0.04 255); }
@media (prefers-color-scheme: dark) { :root { --ow-ink: oklch(0.985 0.004 255); } }
.s-page { overflow-x: clip; }
.s-band, .s-foot { position: relative; isolation: isolate; color: var(--text); }
.s-band::before, .s-foot::before { content: ""; position: absolute; inset: 0 -100vmax; z-index: -1; background: var(--band-bg); }
.s-band { padding-block: 72px; }
.s-band-surface { --band-bg: oklch(0.955 0.008 255); --surface: oklch(0.985 0.004 255); }
/* Night: the dark theme's tokens, so everything inside switches with it. */
.s-band-night, .s-foot {
  color-scheme: dark;
  --band-bg: oklch(0.19 0.035 255);
  --background: oklch(0.19 0.035 255);
  --text: oklch(0.95 0.006 255);
  --muted: oklch(0.75 0.02 255);
  --border: oklch(0.32 0.03 255);
  --border-strong: oklch(0.55 0.03 255);
  --surface: oklch(0.24 0.035 255);
  --amber-surface: oklch(0.29 0.05 60);
  --focus: oklch(0.95 0.006 255);
  --ow-ink: oklch(0.985 0.004 255);
}
.s-band-surface .sb { --surface: oklch(0.955 0.008 255); }
@media (prefers-color-scheme: dark) {
  .s-band-surface .sb { --surface: oklch(0.24 0.035 255); }
  .s-band-surface { --band-bg: oklch(0.24 0.035 255); --surface: oklch(0.19 0.035 255); }
  .s-band-night, .s-foot { --band-bg: oklch(0.145 0.03 255); --background: oklch(0.145 0.03 255); --surface: oklch(0.21 0.035 255); --border: oklch(0.28 0.03 255); }
}
/* Install figure: a browser on SA. Chrome asks to add SAbio, the owl appears in the toolbar,
   and a click on it opens the side panel. Without motion it shows the end: owl pinned, panel open. */
.s-fig.s-installfig { flex-basis: 440px; }
.s-br { --br-tint: color-mix(in oklch, var(--text) 7%, var(--background)); position: relative; overflow: hidden; height: 300px; border: 1px solid var(--border-strong); border-radius: 8px; background: var(--background); box-shadow: 0 12px 28px oklch(0 0 0 / 0.12); font-size: 12px; line-height: 1.3; }
.s-br-bar { display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 10px; background: var(--br-tint); border-bottom: 1px solid var(--border); }
.s-br-dots { display: flex; gap: 5px; }
.s-br-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--border-strong); opacity: 0.5; }
.s-br-url { flex: 1; min-width: 0; display: flex; align-items: center; height: 22px; padding: 0 10px; border-radius: 4px; background: var(--background); color: var(--muted); }
.s-br-tool { display: flex; align-items: center; gap: 8px; }
.s-br-owl { width: 18px; height: 18px; --band-bg: var(--br-tint); }
.s-ic.s-br-puzzle { width: 16px; height: 16px; margin: 0; color: var(--muted); }
.s-br-body { position: absolute; inset: 36px 0 0; }
.s-br-sa { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: left top; }
/* The tasks figure: a wide browser, SA's games list on the left and the panel docked on the right. */
.s-fig.s-sidefig { flex: none; width: 100%; }
.s-br.s-br-wide { height: auto; }
.s-br-split { display: flex; height: 460px; }
.s-br-split .s-br-sa { position: static; flex: 1 1 auto; width: auto; min-width: 0; }
.s-br-split .sb { flex: 0 0 360px; height: 100%; border-left: 1px solid var(--border); }
@media (max-width: 719px) { .s-br-split .s-br-sa { display: none; } .s-br-split .sb { flex: 1 1 auto; border-left: 0; } }
.s-br-dialog { position: absolute; top: 8px; right: 12px; z-index: 2; display: flex; flex-direction: column; gap: 10px; width: 240px; padding: 14px; border: 1px solid var(--border); border-radius: 8px; background: var(--background); box-shadow: 0 8px 24px oklch(0 0 0 / 0.18); opacity: 0; }
.s-br-dialog-owl { width: 28px; height: 28px; }
.s-br-dialog b { font-size: 13px; }
.s-br-btns { display: flex; justify-content: flex-end; gap: 8px; }
.s-br-btns > span { padding: 6px 10px; border: 1px solid var(--border); border-radius: 4px; white-space: nowrap; }
.s-br-btns > .s-br-ok { border-color: transparent; background: oklch(0.5 0.15 255); color: #fff; }
.s-br-panel { position: absolute; top: 0; right: 0; bottom: 0; z-index: 1; display: flex; flex-direction: column; gap: 12px; width: 44%; min-width: 150px; padding: 12px; border-left: 1px solid var(--border); background: var(--background); }
.s-br-ph { display: flex; align-items: center; gap: 8px; }
.s-br-panel-owl { width: 24px; height: 24px; }
.s-br-ph b { display: block; font-size: 13px; }
.s-br-live { display: flex; align-items: center; gap: 4px; color: var(--muted); font-size: 11px; }
.s-br-live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.s-br-hi { margin: 0; padding: 8px 10px; border-radius: 6px; background: var(--br-tint); }
.s-br-cursor { position: absolute; top: 0; right: 0; z-index: 3; width: 16px; height: 20px; fill: var(--text); stroke: var(--background); stroke-width: 1.2; transform-origin: 0 0; opacity: 0; }
/* Perched owls: one peeks up over the top edge of a band, from behind it, as the band scrolls in.
   They sit on the band above (always Paper), so they take the page's ink, not the band's. */
:root { --page-ink: var(--ow-ink); --page-bg: var(--background); }
.s-perch { position: absolute; top: -54px; z-index: 1; width: 84px; height: 54px; overflow: hidden; pointer-events: none; --ow-ink: var(--page-ink); --band-bg: var(--page-bg); }
.s-perch-l { left: 4%; }
.s-perch-r { right: 4%; }
/* The whole head shows, its beak resting on a branch just above the band's edge. */
.s-perch .ow { position: absolute; left: 16px; top: 0; width: 52px; height: 52px; transform: translateY(2px); }
.s-branch { position: absolute; left: 0; bottom: 0; z-index: 1; width: 84px; height: 10px; overflow: visible; }
.s-branch-limb { fill: none; stroke: var(--page-ink); stroke-width: 2.6; stroke-linecap: round; }
.s-branch-leaf { fill: var(--page-ink); }

/* A sticky header on wider screens; its rule fades in once the page scrolls. */
@media (min-width: 720px) {
  .s-top { position: sticky; top: 0; z-index: 10; isolation: isolate; }
  .s-top::before { content: ""; position: absolute; inset: 0 -100vmax; z-index: -1; background: var(--background); }
  .s-sec { scroll-margin-top: 72px; }
}

/* The owl: the Ball eye mark inline, so it can follow the theme and move.
   Shapes and the blink/wink lid come from the design system's Mark. */
.ow { display: block; flex: none; overflow: visible; --ow-paper: var(--band-bg, var(--background)); }
.sb .ow { --ow-paper: var(--background); }
.ow-i { fill: var(--ow-ink); }
.ow-p { fill: var(--ow-paper); }
.ow-rim { stroke: var(--ow-paper); stroke-width: 1.6; }
.ow-lid { fill: none; stroke: var(--ow-paper); stroke-width: 2; stroke-linecap: round; opacity: 0; }
.ow-ball circle { fill: var(--accent); }
.ow-ball path { fill: none; stroke: oklch(0.24 0.04 255); stroke-width: 2; }
.ow-ball, .ow-pupil, .ow-head { transform-box: fill-box; transform-origin: center; }
.ow-head { transform-origin: 50% 90%; }

.s-hero-owl { width: 72px; height: 72px; }
.s-peekfig { position: relative; isolation: isolate; }
.s-peekfig .sb { position: relative; z-index: 1; }
.s-peek { position: absolute; top: -40px; right: 32px; width: 52px; height: 52px; z-index: 0; }
.s-cta-owl { width: 56px; height: 56px; }
.nf-owl { width: 96px; height: 96px; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }

  /* Blink: the left eye closes for a moment, as in the Mark's blink. */
  .ow-blink .ow-eye { animation: ow-eye 6s infinite; }
  .ow-blink .ow-lid { animation: ow-lid 6s infinite; }
  .s-hero-owl.ow-blink .ow-eye, .s-hero-owl.ow-blink .ow-lid { animation-delay: 2.2s; }
  .s-cta-owl.ow-blink .ow-eye, .s-cta-owl.ow-blink .ow-lid { animation-delay: 3.1s; }

  /* Wink on hover: the header logo, and the closing owl when its button is hovered. */
  .lockup:is(:hover, :focus-visible) .ow-wink-hover .ow-eye,
  .s-cta:has(.s-btn:is(:hover, :focus-visible)) .s-cta-owl .ow-eye { animation: none; opacity: 0; }
  .lockup:is(:hover, :focus-visible) .ow-wink-hover .ow-lid,
  .s-cta:has(.s-btn:is(:hover, :focus-visible)) .s-cta-owl .ow-lid { animation: none; opacity: 1; }

  /* The ball drops into its socket on load, and turns when the install button is hovered. */
  .ow-land .ow-ball { animation: ow-land 1.1s cubic-bezier(.3, .7, .4, 1) 0.2s both; }
  .ow-ball path { transform-box: fill-box; transform-origin: center; transition: rotate 0.9s ease-in-out; }
  .s-hero-copy:has(.s-btn:is(:hover, :focus-visible)) .ow-land .ow-ball path { rotate: 360deg; }

  /* The panel preview plays its conversation in order. */
  .s-hero .chat > * { animation: s-in 0.45s ease-out both; }
  .s-hero .chat > :nth-child(1) { animation-delay: 0.5s; }
  .s-hero .chat > :nth-child(2) { animation-delay: 0.9s; }
  .s-hero .chat > :nth-child(3) { animation-delay: 1.5s; }
  .s-hero .chat > :nth-child(4) { animation-delay: 2.2s; }
  .s-hero .chat > :nth-child(5) { animation-delay: 3.2s; }
  .s-hero .chat tbody tr { animation: s-in 0.3s ease-out both; }
  .s-hero .chat tbody tr:nth-child(1) { animation-delay: 2.4s; }
  .s-hero .chat tbody tr:nth-child(2) { animation-delay: 2.5s; }
  .s-hero .chat tbody tr:nth-child(3) { animation-delay: 2.6s; }
  .s-hero .chat tbody tr:nth-child(4) { animation-delay: 2.7s; }
  .s-hero .chat tbody tr:nth-child(5) { animation-delay: 2.8s; }

  /* The review owl looks from the SA value to the document's, and back. */
  .ow-look .ow-pupil { animation: ow-look 5s ease-in-out infinite; }

  /* The lost owl on the 404 tilts its head and looks around. */
  .ow-lost .ow-head { animation: ow-tilt 4s ease-in-out infinite; }
  .ow-lost .ow-pupil { animation: ow-around 4s ease-in-out infinite; }

  .lockup .ow-lid, .lockup .ow-eye { transition: opacity var(--duration-fast); }

  .s-type-mock { animation: s-type-cycle 9s linear infinite; }
  .s-type-line { display: block; position: absolute; top: 0; left: 0; right: 0; z-index: 3; height: 2px; background: oklch(0.5 0.15 255 / 0.7); box-shadow: 0 0 12px oklch(0.5 0.15 255 / 0.5); animation: s-scan-sweep 9s linear infinite; }
  .s-scan-box-1 { animation: s-scan-box-one 9s linear infinite; }
  .s-scan-box-2 { animation: s-scan-box-two 9s linear infinite; }
  .s-scan-box-3 { animation: s-scan-box-three 9s linear infinite; }
  .s-scan-box-4 { animation: s-scan-box-four 9s linear infinite; }
  .s-type-value { width: 0; max-width: 100%; }
  .s-type-v1 { animation: s-type-v1 9s steps(12, end) infinite; }
  .s-type-v2 { animation: s-type-v2 9s steps(10, end) infinite; }
  .s-type-v3 { animation: s-type-v3 9s steps(9, end) infinite; }
  .s-type-v4 { animation: s-type-v4 9s steps(21, end) infinite; }
  .s-type-value::after { display: inline-block; width: 1px; height: 1em; margin-left: 1px; background: var(--text); vertical-align: -0.1em; }
  .s-type-v1::after { animation: s-caret-v1 9s steps(1, end) infinite; }
  .s-type-v2::after { animation: s-caret-v2 9s steps(1, end) infinite; }
  .s-type-v3::after { animation: s-caret-v3 9s steps(1, end) infinite; }
  .s-type-v4::after { animation: s-caret-v4 9s steps(1, end) infinite; }
  .s-type-done { opacity: 0; animation: s-type-done 9s linear infinite; }
  .s-drive-panel .chat > :nth-child(1) { animation: s-drive-user 7s linear infinite; }
  .s-drive-panel .chat > :nth-child(2) { animation: s-drive-tool 7s linear infinite; }
  .s-drive-panel .chat > :nth-child(3) { animation: s-drive-file-one 7s linear infinite; }
  .s-drive-panel .chat > :nth-child(4) { animation: s-drive-file-two 7s linear infinite; }
  .s-drive-panel .chat > :nth-child(5) { animation: s-drive-file-three 7s linear infinite; }
  .s-drive-panel .chat > :nth-child(6) { animation: s-drive-reply 7s linear infinite; }
  .s-task-panel .chat > :nth-child(1) { animation: s-drive-user 7s linear infinite; }
  .s-task-panel .chat > :nth-child(2) { animation: s-drive-tool 7s linear infinite; }
  .s-task-panel .chat > :nth-child(3) { animation: s-drive-file-two 7s linear infinite; }
  .s-task-panel .chat > :nth-child(4) { animation: s-drive-reply 7s linear infinite; }
  .s-br-dialog { animation: s-br-dialog 8s linear infinite; }
  .s-br-ok { animation: s-br-ok 8s linear infinite; }
  .s-br-owl:not(.s-br-owl-on) { animation: s-br-owl 8s linear infinite; }
  .s-br-panel { animation: s-br-panel 8s cubic-bezier(.2, .7, .2, 1) infinite; }
  .s-br-hi { animation: s-br-hi 8s linear infinite; }
  .s-br-cursor { animation: s-br-cursor 8s ease-in-out infinite; }
  /* The stamp: the box shows "missing", then the stamp lands and the outline goes. */
  .s-stamp-missing { animation: s-stamp-missing 7s linear infinite; }
  .s-stamp-mark { animation: s-stamp-land 7s linear infinite; }
  .s-stamp-mark::after { animation: s-stamp-ring 7s linear infinite; }
}

/* Scroll-driven entrances where the browser supports them (Chrome does). */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .s-head, .s-note, .s-fig, .s-req > div, .s-faq details,
    .s-qs > li, .s-flow > li, .s-ticks > li {
      animation: s-rise cubic-bezier(.2, .7, .2, 1) both; animation-timeline: view(); animation-range: entry 5% entry 65%;
    }
    .s-fig { animation-name: s-rise-fig; }
    .s-qs > li:nth-child(2n), .s-req > div:nth-child(2) { animation-range: entry 12% entry 72%; }
    .s-top { animation: s-top-rule linear both; animation-timeline: scroll(root); animation-range: 0 64px; }
    .s-perch { view-timeline: --perch block; }
    .s-perch .ow { animation: s-perch-up linear both; animation-timeline: --perch; animation-range: entry 100% cover 15%; }
    .s-perch .ow-ball path { animation: ow-roll linear both; animation-timeline: --perch; animation-range: entry 100% cover 15%; }
    .s-peek { animation: ow-peek linear both; animation-timeline: view(); animation-range: entry 40% cover 35%; }
    .s-cta-owl { animation: ow-pop linear both; animation-timeline: view(); animation-range: entry 0% entry 100%; }
  }
}

@keyframes ow-eye { 0%, 92% { opacity: 1; } 93%, 96% { opacity: 0; } 97%, 100% { opacity: 1; } }
@keyframes ow-lid { 0%, 92% { opacity: 0; } 93%, 96% { opacity: 1; } 97%, 100% { opacity: 0; } }
@keyframes ow-land {
  0% { transform: translateY(-34px) rotate(-240deg); opacity: 0; }
  15% { opacity: 1; }
  55% { transform: translateY(0) rotate(0deg); }
  72% { transform: translateY(-7px) rotate(20deg); }
  86% { transform: translateY(0) rotate(0deg); }
  93% { transform: translateY(-2px); }
  100% { transform: translateY(0); }
}
@keyframes ow-look {
  0%, 15% { transform: translate(0, 0); }
  25%, 45% { transform: translate(-3.4px, 0.6px); }
  55%, 75% { transform: translate(3.4px, 0.6px); }
  85%, 100% { transform: translate(0, 0); }
}
@keyframes ow-around {
  0%, 10% { transform: translate(0, 0); }
  25% { transform: translate(-3.4px, -1.2px); }
  45% { transform: translate(3.4px, -1.2px); }
  65% { transform: translate(2px, 2.6px); }
  85%, 100% { transform: translate(0, 0); }
}
@keyframes ow-tilt { 0%, 15% { transform: rotate(0deg); } 30%, 50% { transform: rotate(-9deg); } 65%, 80% { transform: rotate(7deg); } 95%, 100% { transform: rotate(0deg); } }
@keyframes s-perch-up { 0% { transform: translateY(58px); } 70% { transform: translateY(-2px); } 100% { transform: translateY(2px); } }
@keyframes ow-peek { from { transform: translateY(34px); } to { transform: translateY(0); } }
@keyframes ow-pop { from { transform: translateY(18px) scale(0.6); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes s-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes s-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes s-rise-fig { from { opacity: 0; transform: translateY(20px) scale(0.98); } to { opacity: 1; transform: none; } }
@keyframes s-top-rule { from { border-bottom-color: transparent; } to { border-bottom-color: var(--border); } }
@keyframes ow-roll { from { transform: rotate(-200deg); } to { transform: rotate(200deg); } }

@keyframes s-type-cycle { 0%, 93.33% { opacity: 1; } 100% { opacity: 0; } }
@keyframes s-scan-sweep { 0% { opacity: 1; top: 0; } 26.66% { opacity: 1; top: 100%; } 27%, 100% { opacity: 0; top: 100%; } }
@keyframes s-scan-box-one { 0%, 4%, 93.33%, 100% { opacity: 0; } 5%, 93.32% { opacity: 1; } }
@keyframes s-scan-box-two { 0%, 8%, 93.33%, 100% { opacity: 0; } 9%, 93.32% { opacity: 1; } }
@keyframes s-scan-box-three { 0%, 15%, 93.33%, 100% { opacity: 0; } 16%, 93.32% { opacity: 1; } }
@keyframes s-scan-box-four { 0%, 13.5%, 93.33%, 100% { opacity: 0; } 14.5%, 93.32% { opacity: 1; } }
@keyframes s-type-v1 { 0%, 26.66%, 93.33%, 100% { width: 0; } 37.77%, 93.32% { width: 12ch; } }
@keyframes s-type-v2 { 0%, 37.77%, 93.33%, 100% { width: 0; } 48.88%, 93.32% { width: 10ch; } }
@keyframes s-type-v3 { 0%, 48.88%, 93.33%, 100% { width: 0; } 59.99%, 93.32% { width: 9ch; } }
@keyframes s-type-v4 { 0%, 59.99%, 93.33%, 100% { width: 0; } 71.1%, 93.32% { width: 21ch; } }
@keyframes s-caret-v1 { 0%, 26.66%, 31%, 34.5%, 37.77%, 100% { opacity: 0; } 26.67%, 30.99%, 34.51%, 37.76% { opacity: 1; } }
@keyframes s-caret-v2 { 0%, 37.77%, 42.1%, 45.6%, 48.88%, 100% { opacity: 0; } 37.78%, 42.09%, 45.61%, 48.87% { opacity: 1; } }
@keyframes s-caret-v3 { 0%, 48.88%, 53.2%, 56.7%, 59.99%, 100% { opacity: 0; } 48.89%, 53.19%, 56.71%, 59.98% { opacity: 1; } }
@keyframes s-caret-v4 { 0%, 59.99%, 64.3%, 67.8%, 71.1%, 100% { opacity: 0; } 60%, 64.29%, 67.81%, 71.09% { opacity: 1; } }
@keyframes s-type-done { 0%, 71.1%, 100% { opacity: 0; } 74%, 93.33% { opacity: 1; } }
@keyframes s-drive-user { 0%, 5% { opacity: 0; transform: translateY(8px); } 8%, 91% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(8px); } }
@keyframes s-drive-tool { 0%, 10% { opacity: 0; transform: translateY(8px); } 13%, 91% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(8px); } }
@keyframes s-drive-file-one { 0%, 16% { opacity: 0; transform: translateX(-12px); } 20%, 91% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateX(-12px); } }
@keyframes s-drive-file-two { 0%, 22% { opacity: 0; transform: translateX(-12px); } 26%, 91% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateX(-12px); } }
@keyframes s-drive-file-three { 0%, 28% { opacity: 0; transform: translateX(-12px); } 32%, 91% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateX(-12px); } }
@keyframes s-drive-reply { 0%, 35% { opacity: 0; transform: translateY(8px); } 39%, 91% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(8px); } }
@keyframes s-br-dialog { 0%, 6% { opacity: 0; transform: translateY(-6px); } 10%, 23% { opacity: 1; transform: none; } 27%, 100% { opacity: 0; transform: none; } }
@keyframes s-br-ok { 0%, 20%, 23.5%, 100% { filter: none; } 21%, 22.5% { filter: brightness(0.8); } }
@keyframes s-br-owl { 0%, 26% { opacity: 0; transform: scale(0.3); } 31% { opacity: 1; transform: scale(1.3); } 34%, 45% { opacity: 1; transform: scale(1); } 46.5% { opacity: 1; transform: scale(0.85); } 48%, 92% { opacity: 1; transform: scale(1); } 96%, 100% { opacity: 0; transform: scale(0.3); } }
@keyframes s-br-panel { 0%, 48% { transform: translateX(105%); } 56%, 90% { transform: none; } 97%, 100% { transform: translateX(105%); } }
@keyframes s-br-hi { 0%, 58% { opacity: 0; transform: translateY(6px); } 62%, 90% { opacity: 1; transform: none; } 94%, 100% { opacity: 0; transform: none; } }
@keyframes s-br-cursor {
  0%, 8% { opacity: 0; transform: translate(-260px, 230px); }
  11% { opacity: 1; transform: translate(-260px, 230px); }
  19%, 20% { opacity: 1; transform: translate(-72px, 98px); }
  21.5% { opacity: 1; transform: translate(-72px, 98px) scale(0.85); }
  23%, 34% { opacity: 1; transform: translate(-72px, 98px); }
  44% { opacity: 1; transform: translate(-29px, -21px); }
  46% { opacity: 1; transform: translate(-29px, -21px) scale(0.85); }
  48%, 58% { opacity: 1; transform: translate(-29px, -21px); }
  64%, 100% { opacity: 0; transform: translate(-29px, -21px); }
}
@keyframes s-stamp-land { 0%, 36% { opacity: 0; transform: translate(-10px, -40px) rotate(-12deg) scale(1.6); } 43% { opacity: 0.9; transform: translate(0, 4px) rotate(-12deg) scale(0.94); } 46%, 88% { opacity: 0.9; transform: translate(0, 0) rotate(-12deg) scale(1); } 95%, 100% { opacity: 0; transform: translate(0, 0) rotate(-12deg) scale(1); } }
@keyframes s-stamp-ring { 0%, 42% { opacity: 0; transform: scale(1); } 44% { opacity: 0.35; transform: scale(1); } 56%, 100% { opacity: 0; transform: scale(1.25); } }
@keyframes s-stamp-missing { 0%, 41% { opacity: 1; } 46%, 92% { opacity: 0; } 97%, 100% { opacity: 1; } }

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