/* ==========================================================================
   otta — official website
   Visual identity: otta-brand.zip / brand.json + otta brand design.pdf
   Palette (do not substitute): primary #1B8A8A · accent #5DB8B8
                                ink #1A4A4A · paper #F5FAFA
   Balance from the brand book: 60% background / 25% text / 10% logo / 5% accent
   Contrast rules from the brand book:
     text on background 9.4:1 (AAA) — safe for all copy
     logo on background 3.9:1 — large text / graphics only
     white on logo 3.9:1 — large bold text only (primary CTA is 19px/700)
     white on accent 2.2:1 — never used for words
   Typography: the brand book's "Typeface in use" page is obscured in the
   supplied PDF and no font files ship with the kit. Sora / DM Sans are a
   visual match and are isolated in two variables for one-line replacement.
   ========================================================================== */

@font-face {
  font-family: "Sora";
  src: url("assets/fonts/sora-latin-var.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("assets/fonts/dm-sans-latin-var.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --brand: #1B8A8A;
  --accent: #5DB8B8;
  --ink: #1A4A4A;
  --paper: #F5FAFA;
  --white: #FFFFFF;
  --mono: #111111;

  --ink-70: rgba(26, 74, 74, .72);
  --ink-50: rgba(26, 74, 74, .50);
  --line: rgba(26, 74, 74, .14);
  --tint: rgba(26, 74, 74, .035);

  --font-display: "Sora", "Segoe UI", Arial, sans-serif;
  --font-body: "DM Sans", "Segoe UI", Arial, sans-serif;

  --maxw: 1200px;
  --gutter: 24px;
  --pad: 32px;
  --radius: 18px;
  --section-y: 96px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1.14;
  margin: 0;
}
p { margin: 0; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--accent); color: var(--ink); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--white); padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }
.grid-12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gutter); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 1.375rem; font-weight: 700; letter-spacing: -.04em; }
.brand img { width: 38px; height: 38px; }
.nav { display: flex; align-items: center; gap: 30px; font-size: .9375rem; font-weight: 500; }
.nav > a:not(.btn) { color: var(--ink-70); transition: color .2s ease; }
.nav > a:not(.btn):hover { color: var(--ink); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; width: 42px; height: 42px; cursor: pointer; padding: 0; place-items: center; }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; }
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 999px; font-family: var(--font-body); font-weight: 700; line-height: 1.2; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; white-space: nowrap; }
.btn-primary { background: var(--brand); color: var(--white); font-size: 1.1875rem; padding: 17px 30px; box-shadow: 0 8px 22px rgba(27, 138, 138, .22); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(27, 138, 138, .30); }
.btn-quiet { color: var(--ink); font-size: 1rem; padding: 16px 8px; border-bottom: 1px solid var(--line); border-radius: 0; }
.btn-quiet:hover { border-bottom-color: var(--brand); }
.btn-ghost { border: 1px solid var(--line); color: var(--ink); background: var(--white); }
.btn-ghost:hover { border-color: var(--brand); }
.btn-sm { font-size: .875rem; padding: 10px 18px; }
.text-link { font-size: .9375rem; color: var(--ink-70); border-bottom: 1px solid var(--line); padding-bottom: 2px; }
.cta-row { display: flex; align-items: center; flex-wrap: wrap; gap: 18px; margin-top: 34px; }

/* ---------- Shared type ---------- */
.eyebrow {
  display: flex; align-items: center; gap: 10px;
  font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink); margin: 0 0 20px;
}
.eyebrow::before { content: ""; width: 18px; height: 4px; border-radius: 2px; background: var(--brand); flex: none; }
.lede { font-size: 1.125rem; line-height: 1.72; color: var(--ink-70); max-width: 46ch; }
.section { padding-block: var(--section-y); }
.section-head { align-items: end; margin-bottom: 52px; }
.section-head-main { grid-column: 1 / span 7; }
.section-head-main h2 { font-size: clamp(1.85rem, 3.2vw, 2.65rem); }
.section-head-note { grid-column: 9 / span 4; color: var(--ink-70); font-size: .975rem; line-height: 1.7; }

/* ---------- Hero ---------- */
.hero { padding-block: 72px 88px; background: var(--white); }
.hero-grid { align-items: center; }
.hero-copy { grid-column: 1 / span 5; }
.hero-copy h1 { font-size: clamp(2.15rem, 4.35vw, 3.75rem); line-height: 1.07; margin-bottom: 24px; }
.hero-copy .lede { margin: 0; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 32px; margin: 44px 0 0; padding-top: 26px; border-top: 1px solid var(--line); }
.hero-facts dt { font-size: .8125rem; font-weight: 700; letter-spacing: .02em; }
.hero-facts dd { margin: 2px 0 0; font-size: .8125rem; color: var(--ink-70); }

.hero-visual { grid-column: 6 / span 7; margin: 0; }
.visual-stage {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 500px; border-radius: 28px;
  background: var(--paper);
  border: 1px solid var(--line);
}
.stage-halo {
  position: absolute; width: 74%; aspect-ratio: 1; left: 13%; top: 6%;
  border-radius: 50%; background: rgba(93, 184, 184, .17);
}
.stage-ring {
  position: absolute; width: 86%; aspect-ratio: 1; left: 7%; top: 0;
  border-radius: 50%; border: 1px dashed rgba(26, 74, 74, .20);
}
.mascot { position: absolute; width: 52%; left: 24%; top: 13%; z-index: 2; filter: drop-shadow(0 18px 26px rgba(26, 74, 74, .12)); }
.sand-object { position: absolute; z-index: 3; border-radius: 50%; }
.obj-a { width: 26px; height: 26px; background: var(--brand); left: 12%; top: 30%; }
.obj-b { width: 16px; height: 16px; background: var(--accent); left: 20%; top: 66%; border-radius: 4px; }
.obj-c { width: 34px; height: 34px; background: var(--accent); right: 13%; top: 22%; }
.obj-d { width: 12px; height: 12px; background: var(--brand); right: 20%; top: 74%; }
.speech-card, .tray-card {
  position: absolute; z-index: 4; background: var(--white);
  border: 1px solid var(--line); border-radius: 14px;
  padding: 16px 18px; box-shadow: 0 14px 34px rgba(26, 74, 74, .10);
}
.speech-card { left: 6%; bottom: 9%; min-width: 208px; }
.tray-card { right: 6%; top: 45%; min-width: 156px; }
.card-kicker { display: block; font-size: .6875rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-50); margin-bottom: 8px; }
.speech-card p { font-family: var(--font-display); font-size: 1.0625rem; font-weight: 600; letter-spacing: -.02em; margin-bottom: 12px; }
.choice-row { display: flex; gap: 6px; }
.choice-row span { font-size: .6875rem; font-weight: 600; color: var(--ink-70); border: 1px solid var(--line); border-radius: 999px; padding: 3px 9px; }
.tray-row { display: flex; align-items: flex-end; gap: 7px; height: 34px; }
.tray-row i { display: block; width: 14px; border-radius: 4px 4px 2px 2px; background: var(--accent); }
.tray-row i:nth-child(1) { height: 40%; }
.tray-row i:nth-child(2) { height: 72%; background: var(--brand); }
.tray-row i:nth-child(3) { height: 54%; }
.tray-row i:nth-child(4) { height: 90%; background: var(--brand); }
.tray-row i:nth-child(5) { height: 62%; }
.no-score {
  position: absolute; z-index: 4; right: 6%; bottom: 9%;
  font-size: .6875rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink); background: var(--white); border: 1px solid var(--line);
  border-radius: 999px; padding: 8px 14px;
}
.hero-visual figcaption { margin-top: 12px; font-size: .8125rem; line-height: 1.6; color: var(--ink-70); text-align: center; }

/* ---------- Features ---------- */
.features { background: var(--paper); }
.feature-grid { row-gap: var(--gutter); }
.feature-card {
  grid-column: span 4; position: relative;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 30px 38px; min-height: 292px;
  display: flex; flex-direction: column;
}
.feature-icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: rgba(93, 184, 184, .16); color: var(--brand); margin-bottom: 26px; }
.feature-card h3 { font-size: 1.25rem; margin-bottom: 12px; }
.feature-card p { font-size: .9375rem; line-height: 1.7; color: var(--ink-70); }
.card-index { position: absolute; right: 26px; top: 28px; font-family: var(--font-display); font-size: .75rem; font-weight: 700; color: var(--ink-50); }

/* ---------- Trust ---------- */
.trust { background: var(--white); }
.trust-grid { row-gap: 40px; }
.trust-item { grid-column: span 3; padding-top: 20px; border-top: 2px solid var(--brand); }
.trust-num { font-family: var(--font-display); font-size: .75rem; font-weight: 700; letter-spacing: .1em; color: var(--ink-50); }
.trust-item h3 { font-size: 1.0625rem; margin: 14px 0 10px; }
.trust-item p { font-size: .9rem; line-height: 1.68; color: var(--ink-70); }
.data-flow { margin: 64px 0 0; padding: 32px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.flow-diagram { display: flex; align-items: stretch; gap: 12px; }
.flow-node { flex: 1; background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 16px 14px; }
.flow-node span { display: block; font-family: var(--font-display); font-size: .9375rem; font-weight: 600; letter-spacing: -.02em; }
.flow-node small { display: block; margin-top: 4px; font-size: .75rem; color: var(--ink-70); line-height: 1.45; }
.flow-node-end { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); }
.flow-arrow { flex: none; align-self: center; width: 18px; height: 2px; background: var(--brand); position: relative; }
.flow-arrow::after { content: ""; position: absolute; right: 0; top: -3px; width: 8px; height: 8px; border-top: 2px solid var(--brand); border-right: 2px solid var(--brand); transform: rotate(45deg); }
.data-flow figcaption { margin-top: 12px; font-size: .8125rem; color: var(--ink-70); }
.trust-note { margin-top: 40px; padding-left: 20px; border-left: 3px solid var(--brand); font-size: 1.0625rem; line-height: 1.65; max-width: 62ch; }

/* ---------- Audience ---------- */
.audience { background: var(--paper); }
.audience-card { grid-column: span 6; }
.audience-figure { margin: 0; }
.chart, .controls { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; }
.chart-head, .controls-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: .8125rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-70); margin-bottom: 20px; }
.chart-tag { font-size: .6875rem; font-weight: 600; letter-spacing: .04em; text-transform: none; color: var(--ink); background: rgba(93, 184, 184, .20); border-radius: 999px; padding: 4px 10px; }
.chart-bars { display: flex; align-items: flex-end; gap: 8px; height: 128px; border-bottom: 1px solid var(--line); padding-bottom: 2px; }
.chart-bars i { flex: 1; display: block; border-radius: 4px 4px 0 0; background: var(--accent); }
.chart-bars i:nth-child(1) { height: 26%; }
.chart-bars i:nth-child(2) { height: 34%; background: var(--brand); }
.chart-bars i:nth-child(3) { height: 30%; }
.chart-bars i:nth-child(4) { height: 46%; }
.chart-bars i:nth-child(5) { height: 42%; background: var(--brand); }
.chart-bars i:nth-child(6) { height: 56%; }
.chart-bars i:nth-child(7) { height: 50%; }
.chart-bars i:nth-child(8) { height: 66%; background: var(--brand); }
.chart-bars i:nth-child(9) { height: 61%; }
.chart-bars i:nth-child(10) { height: 76%; }
.chart-bars i:nth-child(11) { height: 70%; background: var(--brand); }
.chart-bars i:nth-child(12) { height: 86%; }
.chart-axis { display: flex; justify-content: space-between; margin-top: 8px; font-size: .6875rem; color: var(--ink-50); }
.controls { padding-bottom: 10px; }
.control-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); font-size: .875rem; color: var(--ink-70); }
.control-row strong { font-family: var(--font-display); font-size: .875rem; font-weight: 600; color: var(--ink); letter-spacing: -.01em; }
.audience-figure figcaption { margin-top: 10px; font-size: .8125rem; color: var(--ink-70); }
.audience-card h3 { font-size: 1.375rem; margin: 26px 0 12px; }
.audience-card > p { font-size: .9375rem; line-height: 1.7; color: var(--ink-70); max-width: 52ch; }

/* ---------- Pilot ---------- */
.pilot { background: var(--ink); color: var(--white); }
.pilot .eyebrow { color: rgba(255, 255, 255, .82); }
.pilot .eyebrow::before { background: var(--accent); }
.pilot-inner { display: flex; align-items: center; justify-content: space-between; gap: 56px; }
.pilot-inner > div:first-child { max-width: 620px; }
.pilot h2 { font-size: clamp(1.85rem, 3.2vw, 2.65rem); margin-bottom: 16px; }
.pilot p:not(.eyebrow) { color: rgba(255, 255, 255, .78); font-size: 1rem; line-height: 1.7; }
.pilot-action { display: flex; flex-direction: column; align-items: center; gap: 16px; flex: none; }
.pilot .text-link { color: rgba(255, 255, 255, .78); border-bottom-color: rgba(255, 255, 255, .32); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--white); border-top: 1px solid rgba(255, 255, 255, .14); padding-block: 40px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; }
.footer-brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; letter-spacing: -.04em; }
.footer-brand img { width: 34px; height: 34px; }
.footer-nav { display: flex; gap: 26px; font-size: .875rem; color: rgba(255, 255, 255, .80); }
.footer-nav a:hover { color: var(--white); text-decoration: underline; text-underline-offset: 4px; }
.footer-legal { width: 100%; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .8125rem; color: rgba(255, 255, 255, .62); }
.footer-legal a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal:nth-child(3n+2) { transition-delay: 90ms; }
.reveal:nth-child(3n) { transition-delay: 180ms; }

/* ---------- Legal placeholder pages ---------- */
.legal-doc { max-width: 760px; padding-block: 72px 96px; }
.legal-doc h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 20px; }
.legal-doc h2 { font-size: 1.25rem; margin: 36px 0 10px; }
.legal-doc p:not(.eyebrow) { color: var(--ink-70); line-height: 1.75; margin-bottom: 14px; }
.legal-doc .lede { font-size: 1.0625rem; margin-bottom: 32px; }
.legal-back { display: inline-flex; align-items: center; gap: 8px; font-size: .875rem; font-weight: 600; border-bottom: 1px solid var(--line); padding-bottom: 2px; margin-top: 28px; }
@media (max-width: 680px) { .legal-doc { padding-block: 48px 64px; } }

/* ---------- Tablet: 8 columns ---------- */
@media (max-width: 1024px) {
  :root { --gutter: 20px; --pad: 24px; --section-y: 76px; }
  .grid-12 { grid-template-columns: repeat(8, minmax(0, 1fr)); }
  .hero-copy, .hero-visual, .section-head-main, .section-head-note { grid-column: 1 / -1; }
  .hero-copy { max-width: 640px; }
  .hero-visual { margin-top: 48px; }
  .section-head-note { margin-top: 16px; max-width: 620px; }
  .feature-grid, .trust-grid, .audience-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-grid > *, .trust-grid > *, .audience-grid > * { grid-column: auto; }
  .feature-grid > .feature-card:last-child { grid-column: 1 / -1; }
  .flow-diagram { flex-wrap: wrap; }
  .flow-node { flex: 1 1 40%; }
  .flow-arrow { display: none; }
}

/* ---------- Mobile: 4 columns -> single column ---------- */
@media (max-width: 680px) {
  :root { --gutter: 16px; --pad: 20px; --section-y: 60px; }
  html { scroll-padding-top: 72px; }
  .grid-12 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .grid-12 > * { grid-column: 1 / -1; }
  .feature-grid, .trust-grid, .audience-grid { grid-template-columns: 1fr; }
  .feature-grid > .feature-card:last-child { grid-column: auto; }
  .header-inner { min-height: 64px; }
  .nav-toggle { display: grid; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); border-bottom: 1px solid var(--line);
    padding: 8px var(--pad) 20px; box-shadow: 0 14px 24px rgba(26, 74, 74, .08);
  }
  .nav.is-open { display: flex; }
  .nav > a:not(.btn) { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 16px; align-self: flex-start; }
  .hero { padding-block: 48px 64px; }
  .hero-copy h1 { font-size: clamp(2rem, 9vw, 2.6rem); }
  .lede { font-size: 1.0625rem; }
  .cta-row { gap: 12px; }
  .btn-primary { font-size: 1.0625rem; padding: 15px 24px; }
  .hero-facts { gap: 24px; margin-top: 32px; }
  .section-head { margin-bottom: 36px; }
  .visual-stage { min-height: 380px; border-radius: 20px; }
  .mascot { width: 56%; left: 22%; top: 8%; }
  .stage-halo { width: 92%; left: 4%; top: 4%; }
  .stage-ring { width: 104%; left: -2%; top: -2%; }
  .speech-card { left: 4%; bottom: 6%; min-width: 0; padding: 12px 14px; }
  .speech-card p { font-size: .9375rem; margin-bottom: 8px; }
  .tray-card { right: 4%; top: auto; bottom: 30%; min-width: 0; padding: 10px 12px; }
  .tray-row { height: 24px; gap: 5px; }
  .tray-row i { width: 10px; }
  .no-score { right: 4%; bottom: 6%; font-size: .625rem; padding: 6px 10px; }
  .obj-c { right: 8%; top: 20%; }
  .flow-diagram { flex-direction: column; }
  .flow-node { flex: none; }
  .data-flow { padding: 20px; margin-top: 44px; }
  .trust-note { margin-top: 32px; }
  .pilot-inner { flex-direction: column; align-items: flex-start; gap: 28px; }
  .pilot-action { align-items: flex-start; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn { transition: none; }
}
