/* Hush — marketing site. Tokens mirror the app's light palette
   (android/.../ui/theme/Color.kt, LightPalette). Fonts are self-hosted (fonts/),
   so the site makes no third-party requests — same promise as the app. */
@font-face { font-family: "Fredoka"; src: url("fonts/fredoka.ttf") format("truetype"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("fonts/figtree.ttf") format("truetype"); font-weight: 300 900; font-display: swap; }

:root {
  --bg: #F6F3FF;            /* lavender cream */
  --surface: #FFFFFF;
  --surface-3: #ECE8FB;
  --ink: #1D1946;           /* Hush's own ink */
  --ink-2: #3D3770;
  --muted: #585290;
  --outline: #CFC8F0;
  --primary: #5A52B0;       /* links */
  --button: #8C84D1;        /* chunky button face … */
  --button-edge: #6A62B3;   /* … and its edge */
  --mint: #8EE6C4;
  --mint-deep: #4FBF97;
  --mint-text: #1E7A58;
  --butter: #FFD86B;
  --butter-text: #9A6300;
  --blush: #F6B8C8;
  --blush-text: #B0365C;
  --radius: 22px;
  --maxw: 1120px;
  --display: "Fredoka", "Figtree", system-ui, sans-serif;
  --text: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--text); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--primary); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--button-edge); outline-offset: 3px; border-radius: 8px; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.12; margin: 0; letter-spacing: -.01em; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 14px; border-radius: 12px; z-index: 30; }
.skip:focus { left: 12px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .cloud { animation: none !important; } }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(246,243,255,.86); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(29,25,70,.07);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 66px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--mint-text);
  font-family: var(--display); font-weight: 600; font-size: 28px; letter-spacing: -.5px; }
.brand:hover { color: var(--mint-text); }
.brand .face { width: 36px; height: 38px; }
.nav { display: flex; gap: 24px; font-weight: 600; font-size: 15px; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover { color: var(--ink); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
  font-family: var(--display); font-weight: 600; font-size: 19px; line-height: 1;
  padding: 17px 26px; border-radius: var(--radius); border: 0; cursor: pointer;
}
.btn-chunky { background: var(--button); color: #fff; box-shadow: 0 5px 0 var(--button-edge); transform: translateY(-2px); }
.btn-chunky:hover { color: #fff; filter: brightness(1.04); }
.btn-chunky:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--button-edge); }
.btn-soft { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--outline); }
.btn-soft:hover { color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--button); }
.btn[aria-disabled="true"] { cursor: default; }
.play-badge svg { width: 20px; height: 20px; }

/* ---------- hero: Hush's daytime hill ---------- */
.hero { position: relative; overflow: hidden;
  background: linear-gradient(180deg, #C7DBFF 0%, #E6E1FF 52%, #FFE6D8 100%); }
.hero .sky { position: absolute; inset: 0; pointer-events: none; }
.hero .sun { position: absolute; right: 9%; top: 60px; width: 240px; height: 240px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,216,107,.6) 0%, rgba(255,216,107,0) 68%); }
.hero .sun::after { content: ""; position: absolute; inset: 92px; border-radius: 50%; background: #FFE39A; }
.cloud { animation: drift 26s ease-in-out infinite alternate; }
.cloud.slow { animation-duration: 34s; }
@keyframes drift { from { transform: translateX(-12px) } to { transform: translateX(14px) } }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 32px; align-items: end;
  padding-top: 72px; }
.hero-copy { padding-bottom: 170px; }
.eyebrow { display: inline-block; font-weight: 700; font-size: 13px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--mint-text); background: rgba(255,255,255,.7); padding: 7px 14px; border-radius: 999px; margin-bottom: 22px; }
.hero h1 { font-size: 64px; margin-bottom: 20px; }
.hero h1 .soft { color: var(--muted); }
.hero .lead { font-size: 20px; color: var(--ink-2); max-width: 540px; margin: 0 0 30px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero-note { margin: 18px 0 0; font-size: 14px; color: var(--muted); }
.stage { position: relative; height: 470px; }
/* feet on the front hill's crest (.hills, ~110px above the hero's bottom) */
.stage .mascot { position: absolute; left: 50%; bottom: 84px; width: 300px; height: 315px; transform: translateX(-50%); }
.bubble { position: absolute; right: 4%; top: 18px; background: #fff; border-radius: 22px; padding: 12px 18px;
  font-family: var(--display); font-weight: 500; font-size: 19px; line-height: 1.3; max-width: 230px;
  box-shadow: 0 8px 22px rgba(29,25,70,.12); }
.bubble::after { content: ""; position: absolute; left: 34px; bottom: -7px; width: 16px; height: 16px;
  background: #fff; transform: rotate(45deg); border-radius: 3px; }
.hills { position: absolute; z-index: 0; left: 0; right: 0; bottom: -1px; width: 100%; height: 240px; }

/* ---------- sections ---------- */
section { padding: 88px 0; }
.section-head { text-align: center; max-width: 660px; margin: 0 auto 52px; }
.section-head h2 { font-size: 42px; margin-bottom: 14px; }
.section-head p { margin: 0; font-size: 18px; color: var(--muted); }

/* how a session goes: real screens in phones */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.steps li { text-align: center; }
.phone { background: var(--ink); border-radius: 36px; padding: 8px; max-width: 250px; margin: 0 auto 22px;
  box-shadow: 0 24px 50px rgba(29,25,70,.20), 0 4px 12px rgba(29,25,70,.10); }
.phone img { width: 100%; height: auto; border-radius: 29px; aspect-ratio: 9 / 20; }
.step-n { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: var(--mint); color: var(--ink); font-family: var(--display); font-weight: 600; margin-bottom: 10px; }
.steps h3 { font-size: 22px; margin-bottom: 6px; }
.steps p { margin: 0 auto; max-width: 250px; color: var(--muted); font-size: 16px; }

/* feature cards, each with a small Hush */
.features { background: var(--surface); }
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.card { display: flex; gap: 20px; align-items: flex-start; background: var(--bg); border-radius: var(--radius);
  padding: 26px 26px 26px 18px; }
.card .mini { flex: none; width: 92px; height: 97px; }
.card h3 { font-size: 23px; margin: 4px 0 8px; }
.card p { margin: 0; color: var(--ink-2); }
.tag { display: inline-block; vertical-align: middle; margin-left: 8px; font-family: var(--text); font-weight: 800;
  font-size: 12px; letter-spacing: .02em; padding: 3px 10px; border-radius: 999px; background: var(--butter); color: var(--ink); }

/* FAQ: native <details>, so it works without script and the answers stay in the page for search */
.faq { max-width: 780px; margin: 0 auto; display: grid; gap: 12px; }
.qa { background: var(--surface); border-radius: 18px; padding: 0 22px; border: 1px solid var(--outline); }
.qa summary { cursor: pointer; list-style: none; padding: 18px 28px 18px 0; position: relative;
  font-family: var(--display); font-weight: 600; font-size: 19px; color: var(--ink); }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; position: absolute; right: 2px; top: 14px; font-size: 26px; line-height: 1; color: var(--primary); }
.qa[open] summary::after { content: "\2013"; }
.qa summary:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; border-radius: 10px; }
.qa p { margin: 0 0 20px; color: var(--ink-2); }

/* garden split */
.split { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }
.screen-card { max-width: 440px; justify-self: center; border-radius: 28px; overflow: hidden;
  box-shadow: 0 24px 50px rgba(29,25,70,.18), 0 4px 12px rgba(29,25,70,.08); }
.screen-card img { width: 100%; height: auto; }
.split h2 { font-size: 40px; margin-bottom: 16px; }
.split p { color: var(--ink-2); font-size: 18px; margin: 0 0 14px; }

/* privacy */
.privacy { background: linear-gradient(180deg, var(--bg), #EEF9F4); }
.checks { list-style: none; padding: 0; margin: 0 auto; max-width: 860px;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 28px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; background: var(--surface); border-radius: 18px;
  padding: 16px 18px; font-weight: 600; }
.checks li div span { font-weight: 400; color: var(--muted); display: block; font-size: 15px; }
.tick { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--mint); display: grid; place-items: center; }
.tick svg { width: 15px; height: 15px; }
.fine { max-width: 700px; margin: 26px auto 0; text-align: center; color: var(--muted); font-size: 15px; }

/* pricing */
.compare { max-width: 760px; margin: 0 auto; background: var(--surface); border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 1px 0 rgba(29,25,70,.06), inset 0 0 0 1.5px #E6E1F7; }
.compare table { width: 100%; border-collapse: collapse; }
.compare caption { position: absolute; left: -9999px; }
.compare th, .compare td { padding: 15px 20px; text-align: left; border-top: 1px solid #EEEAFB; }
.compare thead th { border-top: 0; font-family: var(--display); font-weight: 600; font-size: 20px; }
.compare thead th.pro { color: var(--butter-text); }
.compare .val { text-align: center; width: 150px; }
.compare tbody tr:nth-child(odd) { background: #FBFAFF; }
.yes, .no { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; }
.yes { background: var(--mint); }
.no { background: var(--surface-3); }
.yes svg, .no svg { width: 13px; height: 13px; }
.price { text-align: center; margin-top: 28px; }
.price b { font-family: var(--display); font-weight: 600; font-size: 30px; display: block; }
.price span { color: var(--muted); }

/* footer */
.site-footer { background: var(--ink); color: #D6D1F2; padding: 44px 0; font-size: 15px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 20px 32px; align-items: center; justify-content: space-between; }
.site-footer .brand { color: var(--mint); }
.site-footer a { color: #D6D1F2; }
.site-footer a:hover { color: #fff; }
.site-footer .links { display: flex; flex-wrap: wrap; gap: 22px; }
.site-footer small { display: block; width: 100%; color: #ABA5DA; font-size: 13px; }

/* ---------- privacy policy page ---------- */
.doc-hero { background: linear-gradient(180deg, #E6E1FF, var(--bg)); padding: 56px 0 8px; }
.doc { max-width: 780px; margin: 0 auto; padding: 0 24px 90px; }
.doc h1 { font-size: 48px; margin-bottom: 8px; }
.doc .dates { color: var(--muted); font-size: 15px; margin: 0 0 30px; }
.doc h2 { font-size: 26px; margin: 44px 0 12px; }
.doc p, .doc li { color: var(--ink-2); }
.doc li { margin-bottom: 8px; }
.doc strong { color: var(--ink); }
.doc .callout { background: var(--surface); border-radius: var(--radius); padding: 20px 22px; margin: 24px 0;
  box-shadow: inset 0 0 0 1.5px #E6E1F7; }
.doc .table-wrap { overflow-x: auto; }
.doc table { width: 100%; border-collapse: collapse; margin: 16px 0; background: var(--surface); border-radius: 16px; overflow: hidden; }
.doc th, .doc td { padding: 12px 14px; text-align: left; vertical-align: top; border-top: 1px solid #EEEAFB; font-size: 15px; }
.doc thead th { border-top: 0; background: var(--surface-3); color: var(--ink); font-weight: 700; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 48px; }
  .cards { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  body { font-size: 16px; }
  .nav { gap: 16px; font-size: 14px; }
  .nav .opt { display: none; }
  .hero-grid { grid-template-columns: 1fr; padding-top: 40px; gap: 0; }
  .hero-copy { padding-bottom: 0; }
  .hero h1 { font-size: 46px; }
  .stage { height: 380px; }
  .stage .mascot { width: 230px; height: 242px; bottom: 70px; }
  .bubble { right: auto; left: 50%; transform: translateX(20px); top: 4px; font-size: 17px; }
  section { padding: 64px 0; }
  .section-head h2, .split h2 { font-size: 32px; }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .checks { grid-template-columns: 1fr; }
  .compare th, .compare td { padding: 13px 12px; font-size: 15px; }
  .compare .val { width: 92px; }
  .doc h1 { font-size: 38px; }
}
@media (max-width: 480px) {
  .nav a { white-space: nowrap; }
  .nav .opt, .nav .opt-sm { display: none; }
  .hero .sun { top: auto; bottom: 230px; right: -50px; }
  .hero .c1 { display: none; }
  .card { padding: 20px 18px 20px 12px; gap: 12px; }
  .card .mini { width: 64px; height: 67px; }
  .steps { grid-template-columns: 1fr; }
  .hero h1 { font-size: 40px; }
  .btn { font-size: 17px; padding: 15px 20px; }
}
