/* ỌjàCocoa website
   Palette comes from the app itself so the site and the app read as one brand.
   The stencil face is used in three places only: the wordmark, the hero
   headline and the price stamp. Everything else is Be Vietnam Pro, chosen
   because it carries the Yoruba letters (Ọ, ọ, ẹ) correctly. */

/* ── Fonts (self-hosted, split by script so a phone downloads only what a page uses) ── */
@font-face {
  font-family: "Stencil";
  src: url("fonts/stencil-800-latin.woff2") format("woff2");
  font-weight: 800; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Stencil";
  src: url("fonts/stencil-800-latin-ext.woff2") format("woff2");
  font-weight: 800; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Stencil";
  src: url("fonts/stencil-800-vietnamese.woff2") format("woff2");
  font-weight: 800; font-style: normal; font-display: swap;
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: "Body";
  src: url("fonts/body-400-latin.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Body";
  src: url("fonts/body-400-latin-ext.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Body";
  src: url("fonts/body-400-vietnamese.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: "Body";
  src: url("fonts/body-600-latin.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Body";
  src: url("fonts/body-600-latin-ext.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Body";
  src: url("fonts/body-600-vietnamese.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

/* ── Tokens ── */
:root {
  --cocoa:   #2C1810;  /* roasted bean — text, the dark band */
  --saddle:  #8B4513;  /* the app's brand brown */
  --husk:    #F8F5F0;  /* page — the app's background */
  --jute:    #E9DDC7;  /* sack cloth, the price stamp */
  --rule:    #DCCDB5;  /* hairlines */
  --muted:   #6E5B4D;  /* secondary text, 5.9:1 on husk */
  --pod:     #E0A526;  /* ripe pod — accents on the dark band */
  --leaf:    #2E7D32;

  --display: "Stencil", "Arial Narrow", "Roboto Condensed", sans-serif;
  --body: "Body", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --gutter: clamp(16px, 4vw, 40px);
  --measure: 68ch;
  color-scheme: light;
}

/* ── Base ── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--husk);
  color: var(--cocoa);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; }

a { color: var(--saddle); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--pod); outline-offset: 3px; border-radius: 4px; }

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

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--cocoa); color: var(--husk); padding: 10px 14px; z-index: 10;
}
.skip:focus { left: 12px; top: 12px; }

/* ── Header ── */
.site-header { border-bottom: 1px solid var(--rule); }
.site-header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; padding-block: 18px;
}

.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--cocoa); text-decoration: none;
}
.brand-mark { width: 30px; height: 30px; flex: none; }
.brand-name { font-family: var(--display); font-weight: 800; font-size: 1.7rem; line-height: 1; letter-spacing: 0.01em; }

.site-nav { display: flex; align-items: center; gap: 22px; }
.site-nav-link { color: var(--cocoa); text-decoration: none; font-size: 0.95rem; font-weight: 600; }
.site-nav-link:hover { color: var(--saddle); }

@media (max-width: 760px) {
  .site-nav { order: 3; width: 100%; gap: 18px; overflow-x: auto; padding-bottom: 2px; }
  .site-nav-link { white-space: nowrap; font-size: 0.9rem; }
  .site-nav .btn { display: none; }
}

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px; border-radius: 12px;
  font: 600 1rem/1.2 var(--body); text-decoration: none; cursor: pointer;
  border: 2px solid var(--saddle);
}
.btn-primary { background: var(--saddle); color: #fff; }
.btn-primary:hover { background: #74390f; border-color: #74390f; }
.btn-quiet { background: transparent; color: var(--saddle); }
.btn-quiet:hover { background: rgba(139, 69, 19, 0.08); }
.btn-small { min-height: 40px; padding: 8px 16px; font-size: 0.92rem; }

/* ── Hero ── */
.hero { padding-block: clamp(40px, 7vw, 96px) clamp(48px, 8vw, 110px); }
.hero-grid { display: grid; gap: clamp(36px, 5vw, 64px); align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.9fr); } }

.hero-title {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(3.3rem, 10.5vw, 7.4rem);
  line-height: 0.9; letter-spacing: 0.005em; text-transform: uppercase;
  max-width: 11ch;
}
.hero-title-line { display: block; }
.hero-title-line + .hero-title-line { color: var(--saddle); }

.hero-lede { font-size: clamp(1.1rem, 1.6vw, 1.25rem); max-width: 40ch; margin-top: 28px; }
.hero-meaning { color: var(--muted); font-size: 0.98rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ── Price stamp — the one loud object on the page ── */
.sack {
  background-color: var(--jute);
  background-image:
    repeating-linear-gradient(0deg, rgba(139, 69, 19, 0.07) 0 1px, transparent 1px 5px),
    repeating-linear-gradient(90deg, rgba(139, 69, 19, 0.06) 0 1px, transparent 1px 5px);
  border-radius: 6px;
  padding: clamp(20px, 3vw, 30px);
  box-shadow: 0 1px 0 rgba(44, 24, 16, 0.08), 0 18px 40px -24px rgba(44, 24, 16, 0.45);
}
.stamp {
  border: 3px solid var(--saddle);
  border-radius: 4px;
  padding: 22px 22px 18px;
  color: var(--saddle);
  transform: rotate(-1.4deg);
  text-align: center;
}
.stamp-label, .stamp-unit, .stamp-date {
  font-family: var(--display); font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.06em; line-height: 1.1;
}
.stamp-label { font-size: 1.15rem; }
.stamp-price {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(3.8rem, 9vw, 5.6rem); line-height: 0.95;
  margin: 10px 0 6px; font-variant-numeric: tabular-nums;
  color: var(--cocoa);
}
.stamp-unit { font-size: 1rem; }
.stamp-date { font-size: 0.85rem; margin-top: 14px; padding-top: 12px; border-top: 2px dashed rgba(139, 69, 19, 0.55); }
.sack-note { color: var(--cocoa); font-size: 0.9rem; line-height: 1.5; margin: 18px 0 0; }

.stamp[data-state="loading"] .stamp-price { opacity: 0.35; }
.stamp[data-state="unavailable"] .stamp-price { font-size: clamp(2rem, 5vw, 2.6rem); line-height: 1.1; margin-block: 14px 10px; }

/* ── Sections ── */
.section { padding-block: clamp(56px, 8vw, 104px); border-top: 1px solid var(--rule); }
.section-title {
  font-family: var(--body); font-weight: 600;
  font-size: clamp(1.8rem, 3.6vw, 2.7rem); line-height: 1.12; letter-spacing: -0.015em;
  max-width: 20ch;
}
.section-intro { color: var(--muted); max-width: 56ch; margin-top: 16px; font-size: 1.08rem; }

/* How it works — two real sequences, so they are numbered */
.tracks { display: grid; gap: 40px 64px; margin-top: 44px; }
@media (min-width: 820px) { .tracks { grid-template-columns: 1fr 1fr; } }
.track-title { font-size: 1.25rem; font-weight: 600; padding-bottom: 12px; border-bottom: 2px solid var(--cocoa); }
.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; }
.step { counter-increment: step; position: relative; padding: 16px 0 16px 48px; border-bottom: 1px solid var(--rule); }
.step::before {
  content: counter(step);
  position: absolute; left: 0; top: 14px;
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--saddle); color: #fff; font-weight: 600; font-size: 0.9rem;
}
.step-lead { font-weight: 600; }

/* Features — a plain definition list, not a card grid */
.features { display: grid; gap: 0 56px; margin: 40px 0 0; }
@media (min-width: 760px) { .features { grid-template-columns: 1fr 1fr; } }
.feature { padding: 20px 0; border-top: 1px solid var(--rule); }
.feature-name { font-weight: 600; font-size: 1.08rem; }
.feature-text { margin: 6px 0 0; color: var(--muted); }

/* Safety — the one dark band */
.band { background: var(--cocoa); color: var(--husk); border-top: 0; }
.band .section-title { color: #fff; }
.band .section-intro { color: #D9CBBB; }
.band a { color: var(--pod); }
.band-grid { display: grid; gap: 48px 72px; margin-top: 44px; }
@media (min-width: 860px) { .band-grid { grid-template-columns: 1.2fr 1fr; } }
.facts, .tips { list-style: none; padding: 0; margin: 0; }
.fact { padding: 16px 0 16px 28px; position: relative; border-top: 1px solid rgba(248, 245, 240, 0.16); }
.fact::before {
  content: ""; position: absolute; left: 0; top: 25px;
  width: 10px; height: 10px; background: var(--pod); transform: rotate(45deg);
}
.fact-lead { font-weight: 600; color: #fff; }
.tips-title { font-weight: 600; font-size: 1.15rem; color: #fff; margin-bottom: 12px; }
.tip { padding: 10px 0; border-top: 1px solid rgba(248, 245, 240, 0.16); color: #E8DCCD; }

/* Pilot */
.pilot { display: grid; gap: 32px; align-items: end; }
@media (min-width: 860px) { .pilot { grid-template-columns: 1.4fr 1fr; } }
.pilot-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ── Footer ── */
.site-footer { background: #EFE7DA; border-top: 1px solid var(--rule); padding-block: 48px 28px; font-size: 0.95rem; }
.footer-grid { display: grid; gap: 32px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.2fr 1.4fr 1fr 0.8fr; } }
.footer-title { font-weight: 600; margin-bottom: 8px; }
.footer-list { list-style: none; padding: 0; margin: 0; }
.footer-list li { margin-bottom: 6px; }
.footer-note { color: var(--muted); margin-top: 8px; }
.footer-base { margin-top: 40px; padding-top: 18px; border-top: 1px solid var(--rule); color: var(--muted); font-size: 0.88rem; }

/* ── Legal pages ── */
.doc { padding-block: clamp(40px, 6vw, 80px) clamp(56px, 8vw, 100px); }
.doc-body { max-width: var(--measure); }
.doc-title { font-size: clamp(2rem, 4.6vw, 3rem); font-weight: 600; line-height: 1.1; letter-spacing: -0.015em; }
.doc-meta { color: var(--muted); margin-top: 10px; }
.doc-body h2 { font-size: 1.35rem; font-weight: 600; margin: 2.2em 0 0.6em; line-height: 1.25; scroll-margin-top: 16px; }
.doc-body h3 { font-size: 1.08rem; font-weight: 600; margin: 1.6em 0 0.4em; }
.doc-body ul, .doc-body ol { padding-left: 1.25em; margin: 0 0 1em; }
.doc-body li { margin-bottom: 0.45em; }
.doc-toc { background: #EFE7DA; border-radius: 10px; padding: 18px 22px; margin: 28px 0 8px; }
.doc-toc-title { font-weight: 600; margin-bottom: 6px; }
.doc-toc ol { margin: 0; }
.doc-callout { border-left: 4px solid var(--saddle); background: #F1E8DB; padding: 14px 18px; border-radius: 0 8px 8px 0; margin: 1.4em 0; }

/* ── 404 ── */
.lost { padding-block: 96px 120px; }
.lost-title { font-family: var(--display); font-weight: 800; font-size: clamp(3rem, 12vw, 7rem); line-height: 0.9; text-transform: uppercase; }
