/* Oako landing page. Light: warm parchment + sage (app identity).
   Dark: deep sage palette shared with the legal pages.
   Load css/fonts.css before this file. */

:root {
  --ground: #F7F2E7;
  --surface: #FDFAF2;
  --ink: #2C332B;
  --muted: #6E7263;
  --hairline: rgba(66, 81, 70, 0.16);
  --accent: #B97758;
  --accent-deep: #90512C;
  --on-accent: #FFFFFF;
  --band: #20251E;
  --band-surface: #2A3128;
  --band-ink: #ECE6D6;
  --band-muted: #A9AD9B;
  --band-hairline: rgba(236, 230, 214, 0.16);
  --band-accent: #CE9377;
  --shadow: 0 24px 48px -24px rgba(40, 48, 38, 0.45);
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --ground: #20251E;
    --surface: #2A3128;
    --ink: #ECE6D6;
    --muted: #A9AD9B;
    --hairline: rgba(236, 230, 214, 0.16);
    --accent: #CE9377;
    --accent-deep: #D9A98F;
    --on-accent: #262B22;
    --band: #1A1F19;
    --band-surface: #242B22;
    --shadow: 0 24px 48px -24px rgba(0, 0, 0, 0.65);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--ground);
  color: var(--ink);
  font-family: 'Nunito', system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  margin: 0;
}

img { max-width: 100%; height: auto; }

h1, h2, h3 {
  font-family: 'Fredoka', system-ui, sans-serif;
  font-weight: 600;
  line-height: 1.15;
  text-wrap: balance;
  margin: 0;
}
p { margin: 0; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

.eyebrow {
  font-family: 'Fredoka', sans-serif;
  font-weight: 500;
  font-size: 12.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-deep);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: 'Fredoka', sans-serif; font-weight: 500; font-size: 17px;
  background: var(--accent); color: var(--on-accent);
  border-radius: 999px; padding: 14px 28px;
  text-decoration: none;
  box-shadow: 0 12px 26px -14px rgba(144, 81, 44, 0.7);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -14px rgba(144, 81, 44, 0.8); }
.btn.small { font-size: 15px; padding: 9px 20px; }
.btn svg { flex: none; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--ground) 82%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--hairline);
}
.nav .wrap {
  display: flex; align-items: center; gap: 28px;
  height: 64px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Fredoka', sans-serif; font-weight: 600; font-size: 21px;
  color: var(--ink); text-decoration: none;
  margin-right: auto;
}
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.nav a.link {
  color: var(--muted); text-decoration: none; font-size: 15.5px; font-weight: 600;
}
.nav a.link:hover { color: var(--ink); }
@media (max-width: 640px) { .nav a.link { display: none; } }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero .wrap {
  position: relative;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px;
  align-items: center;
  padding-top: 72px; padding-bottom: 96px;
}
.hero h1 { font-size: clamp(38px, 5.6vw, 58px); }
.hero .dek { margin-top: 18px; font-size: 19px; color: var(--muted); max-width: 46ch; }
.hero .cta-row { margin-top: 30px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.hero .cta-note { font-size: 13.5px; color: var(--muted); }
.hero .eyebrow { display: block; margin-bottom: 16px; }

.phone-stack { position: relative; display: flex; justify-content: center; min-height: 540px; }
.phone-stack img {
  width: min(310px, 68vw);
  border-radius: 38px;
}
.phone-stack .front { position: relative; z-index: 2; transform: rotate(2.5deg); }
.phone-stack .back {
  position: absolute; z-index: 1; top: 48px; right: 56%;
  width: min(260px, 52vw);
  transform: rotate(-7deg);
  opacity: 0.92;
}
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; padding-top: 48px; padding-bottom: 64px; }
  .phone-stack { min-height: 0; margin-top: 8px; }
  .phone-stack .back { display: none; }
}

/* ---------- trust strip ---------- */
.trust { border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.trust .wrap {
  display: flex; flex-wrap: wrap; gap: 10px 14px; justify-content: center;
  padding-top: 22px; padding-bottom: 22px;
}
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 700; color: var(--ink);
  background: var(--surface); border: 1px solid var(--hairline);
  border-radius: 999px; padding: 8px 16px;
}
.pill svg { color: var(--accent-deep); flex: none; }

/* ---------- sections ---------- */
section { padding: 88px 0; }
.section-head { max-width: 620px; margin-bottom: 52px; }
.section-head h2 { font-size: clamp(28px, 3.6vw, 38px); margin-top: 10px; }
.section-head p { margin-top: 14px; color: var(--muted); font-size: 17.5px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- how it works ---------- */
.steps {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px;
  list-style: none; margin: 0; padding: 0;
}
.steps li { display: flex; flex-direction: column; gap: 14px; }
.steps img {
  width: min(240px, 60vw); margin: 0 auto 10px;
}
.marker {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--accent); color: var(--on-accent);
  font-family: 'Fredoka', sans-serif; font-weight: 600; font-size: 14.5px;
  display: inline-flex; align-items: center; justify-content: center;
}
.steps h3 { font-size: 21px; }
.steps p { color: var(--muted); font-size: 15.5px; }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; gap: 56px; } }

/* ---------- alternating feature rows ---------- */
.feature-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px;
  align-items: center;
  padding: 44px 0;
}
.feature-row .shot { display: flex; justify-content: center; }
.feature-row img {
  width: min(300px, 64vw);
}
.feature-row h3 { font-size: clamp(24px, 3vw, 31px); margin-top: 10px; }
.feature-row .body { color: var(--muted); margin-top: 14px; font-size: 17px; max-width: 46ch; }
.feature-row ul { list-style: none; margin: 22px 0 0; padding: 0; }
.feature-row ul li {
  padding: 12px 0; border-top: 1px solid var(--hairline);
  font-size: 15.5px; color: var(--muted);
}
.feature-row ul li strong { color: var(--ink); font-weight: 700; }
@media (min-width: 801px) { .feature-row.flip .shot { order: 2; } }
@media (max-width: 800px) {
  .feature-row { grid-template-columns: 1fr; gap: 32px; padding: 32px 0; }
  .feature-row .shot { order: 2; }
}

/* ---------- feature cards ---------- */
.cards {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px;
  list-style: none; margin: 0; padding: 0;
}
.cards li {
  background: var(--surface); border: 1px solid var(--hairline);
  border-radius: 26px; padding: 26px 24px 0;
  display: flex; flex-direction: column; gap: 8px;
  overflow: hidden;
}
.cards h3 { font-size: 19px; }
.cards p { color: var(--muted); font-size: 15px; flex: 1; }
.cards .card-shot {
  margin: 20px auto 0; width: min(190px, 70%);
  display: block;
  transform: translateY(14px);
  transition: transform 0.4s ease;
}
.cards li:hover .card-shot { transform: translateY(6px); }

/* ---------- privacy band ---------- */
.band {
  background: var(--band); color: var(--band-ink);
  padding: 96px 0;
}
.band .eyebrow { color: var(--band-accent); }
.band h2 { font-size: clamp(28px, 3.6vw, 38px); margin-top: 10px; }
.band .lead { margin-top: 16px; color: var(--band-muted); font-size: 17.5px; max-width: 60ch; }
.band-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
  margin-top: 44px;
}
.band-grid article {
  background: var(--band-surface); border: 1px solid var(--band-hairline);
  border-radius: 20px; padding: 22px;
}
.band-grid svg { color: var(--band-accent); }
.band-grid h3 { font-size: 17.5px; margin-top: 10px; }
.band-grid p { color: var(--band-muted); font-size: 14.5px; margin-top: 6px; }
.band a { color: var(--band-accent); text-underline-offset: 3px; }
.band .more { display: inline-block; margin-top: 32px; font-size: 15.5px; font-weight: 700; }
@media (max-width: 800px) { .band-grid { grid-template-columns: 1fr; } }

/* ---------- download ---------- */
.download { text-align: center; }
.download .app-icon {
  width: 96px; height: 96px; border-radius: 24px;
  box-shadow: var(--shadow);
  margin-bottom: 26px;
}
.download h2 { font-size: clamp(30px, 4vw, 42px); }
.download p { margin: 16px auto 0; color: var(--muted); max-width: 46ch; }
.download .btn { margin-top: 30px; }
.download .cta-note { display: block; margin-top: 14px; font-size: 13.5px; color: var(--muted); }

/* ---------- footer ---------- */
footer {
  border-top: 1px solid var(--hairline);
  padding: 36px 0 48px;
  font-size: 13.5px; color: var(--muted);
}
footer .wrap { display: flex; flex-direction: column; gap: 10px; }
footer .links { display: flex; gap: 22px; flex-wrap: wrap; }
footer a { color: var(--muted); text-underline-offset: 3px; }
footer a:hover { color: var(--ink); }

/* ---------- reveal animations ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .cards .card-shot { transition: none; }
}
