/* ── Clearhead — Soft Wellness web ─────────────────────────────────────────
   Palette + type mirror the app (cream, sage/coral/lav/sun, Quicksand+Nunito) */
:root {
  --cream: #FDF6EE;
  --cream-2: #FBEEDB;
  --card: #FFFDF8;
  --ink: #3A3230;
  --ink-soft: #6F645E;
  --muted: #9A8F87;
  --sage: #6B9080;
  --sage-deep: #55786A;
  --sage-soft: #E4EDE7;
  --coral: #E8927C;
  --coral-soft: #F7E2DA;
  --lav: #9D8EC7;
  --sun: #E8B75C;
  --border: #ECE0D0;
  --shadow: 0 24px 60px -28px rgba(122, 90, 60, 0.35);
  --shadow-sm: 0 8px 24px -12px rgba(122, 90, 60, 0.28);
  --r-sm: 14px; --r-md: 20px; --r-lg: 28px; --r-xl: 40px;
  --maxw: 1120px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Nunito', system-ui, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.7;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, .brand { font-family: 'Quicksand', system-ui, sans-serif; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }

/* subtle grain over the whole page */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: 0.4;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
}
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }

/* ── nav ─────────────────────────────────────────────────────────────────── */
header.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(253, 246, 238, 0.82);
  border-bottom: 1px solid rgba(236, 224, 208, 0.6);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 22px; color: var(--sage-deep); }
.brand .mark { width: 30px; height: 30px; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { color: var(--ink-soft); font-weight: 600; font-size: 15.5px; transition: color .2s; }
.nav-links a:hover { color: var(--sage-deep); }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--sage); color: #fff; font-family: 'Quicksand', sans-serif; font-weight: 700;
  padding: 12px 22px; border-radius: 999px; font-size: 15.5px;
  box-shadow: var(--shadow-sm); transition: transform .2s, background .2s;
  border: none; cursor: pointer;
}
.btn:hover { background: var(--sage-deep); transform: translateY(-2px); }
.btn.ghost { background: transparent; color: var(--sage-deep); box-shadow: none; border: 1.5px solid var(--sage); }
.btn.ghost:hover { background: var(--sage-soft); }
.nav-links .btn { color: #fff; }
@media (max-width: 720px) { .nav-links a:not(.btn) { display: none; } }

/* ── hero ────────────────────────────────────────────────────────────────── */
.hero { position: relative; padding: 90px 0 70px; text-align: center; overflow: hidden; }
.hero::before, .hero::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(60px); opacity: 0.6; z-index: 0;
}
.hero::before { width: 520px; height: 380px; background: var(--cream-2); top: -80px; left: -120px; }
.hero::after { width: 480px; height: 340px; background: var(--sage-soft); top: -40px; right: -140px; }
.hero .wrap { position: relative; z-index: 1; }
.badge-18 {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--coral-soft); color: #b5563f; font-weight: 700; font-size: 13.5px;
  padding: 7px 16px; border-radius: 999px; margin-bottom: 26px; font-family: 'Quicksand', sans-serif;
}
.hero h1 { font-size: clamp(38px, 6vw, 66px); color: var(--ink); margin-bottom: 22px; }
.hero h1 .accent { color: var(--sage-deep); }
.hero .lead { font-size: clamp(18px, 2.4vw, 22px); color: var(--ink-soft); max-width: 640px; margin: 0 auto 36px; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-note { margin-top: 20px; color: var(--muted); font-size: 14.5px; }

/* floating phone mock */
.hero-mock {
  margin: 56px auto 0; width: min(300px, 78vw); border-radius: 38px; overflow: hidden;
  box-shadow: var(--shadow); border: 8px solid #fff; background: #fff;
  animation: float 6s ease-in-out infinite;
}
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

/* ── sections ────────────────────────────────────────────────────────────── */
section { padding: 84px 0; position: relative; }
.eyebrow { font-family: 'Quicksand', sans-serif; font-weight: 700; text-transform: uppercase; letter-spacing: 0.16em; font-size: 13px; color: var(--sage); margin-bottom: 14px; }
.sec-head { max-width: 680px; margin: 0 auto 54px; text-align: center; }
.sec-head h2 { font-size: clamp(28px, 4vw, 42px); color: var(--ink); margin-bottom: 16px; }
.sec-head p { color: var(--ink-soft); font-size: 18px; }

/* mission band */
.band { background: linear-gradient(180deg, var(--card), var(--cream)); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.mission-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.mission-grid h2 { font-size: clamp(26px, 3.5vw, 38px); margin-bottom: 20px; color: var(--ink); }
.mission-grid p { color: var(--ink-soft); margin-bottom: 16px; }
.mission-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 34px;
  box-shadow: var(--shadow-sm);
}
.mission-card ul { list-style: none; display: flex; flex-direction: column; gap: 18px; }
.mission-card li { display: flex; gap: 14px; align-items: flex-start; }
.mission-card .ic { flex: 0 0 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--sage-soft); }
.mission-card li b { font-family: 'Quicksand', sans-serif; display: block; margin-bottom: 2px; }
.mission-card li span { color: var(--ink-soft); font-size: 15.5px; }
@media (max-width: 820px) { .mission-grid { grid-template-columns: 1fr; gap: 32px; } }

/* feature cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 30px;
  box-shadow: var(--shadow-sm); transition: transform .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card .ic { width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; margin-bottom: 18px; }
.card h3 { font-size: 20px; margin-bottom: 10px; color: var(--ink); }
.card p { color: var(--ink-soft); font-size: 15.5px; }
@media (max-width: 900px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .cards { grid-template-columns: 1fr; } }

/* substances chips */
.subs { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; max-width: 760px; margin: 0 auto; }
.chip {
  background: var(--card); border: 1px solid var(--border); border-radius: 999px; padding: 11px 20px;
  font-family: 'Quicksand', sans-serif; font-weight: 600; font-size: 15px; color: var(--ink-soft);
  display: inline-flex; align-items: center; gap: 9px; box-shadow: var(--shadow-sm);
}
.chip .dot { width: 10px; height: 10px; border-radius: 50%; }

/* science / honest split */
.honest { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.honest .card h3 { display: flex; align-items: center; gap: 10px; }
@media (max-width: 760px) { .honest { grid-template-columns: 1fr; } }

/* privacy teaser */
.privacy-band { background: var(--sage-deep); color: #fff; border-radius: var(--r-xl); padding: 60px 48px; text-align: center; box-shadow: var(--shadow); }
.privacy-band .eyebrow { color: #bfe0d2; }
.privacy-band h2 { font-size: clamp(26px, 3.5vw, 40px); margin-bottom: 18px; color: #fff; }
.privacy-band p { color: #dcebe4; max-width: 620px; margin: 0 auto 30px; font-size: 18px; }
.privacy-band .btn { background: #fff; color: var(--sage-deep); }
.privacy-band .btn:hover { background: var(--cream); }

/* download */
.download { text-align: center; }
.store-badges { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-top: 30px; }
.store-badge {
  display: inline-flex; align-items: center; gap: 12px; background: var(--ink); color: #fff;
  padding: 14px 24px; border-radius: var(--r-md); font-family: 'Quicksand', sans-serif; box-shadow: var(--shadow-sm);
  transition: transform .2s; min-width: 210px;
}
.store-badge:hover { transform: translateY(-3px); }
.store-badge.soon { background: var(--card); color: var(--muted); border: 1px dashed var(--border); }
.store-badge small { display: block; font-size: 11px; font-weight: 600; opacity: 0.75; letter-spacing: 0.04em; }
.store-badge b { font-size: 17px; }

/* footer */
footer.site { background: var(--card); border-top: 1px solid var(--border); padding: 56px 0 32px; margin-top: 40px; }
.foot-grid { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; margin-bottom: 36px; }
.foot-brand { max-width: 320px; }
.foot-brand .brand { margin-bottom: 14px; }
.foot-brand p { color: var(--ink-soft); font-size: 15px; }
.foot-col h4 { font-family: 'Quicksand', sans-serif; font-size: 14px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 14px; }
.foot-col a { display: block; color: var(--ink-soft); font-size: 15px; margin-bottom: 10px; transition: color .2s; }
.foot-col a:hover { color: var(--sage-deep); }
.foot-bottom { border-top: 1px solid var(--border); padding-top: 24px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: 13.5px; }
.disclaimer-note { max-width: 720px; margin: 0 auto 8px; text-align: center; color: var(--muted); font-size: 13px; font-style: italic; }

/* scroll reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* privacy page specific */
.doc { background: var(--card); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 52px 48px; box-shadow: var(--shadow-sm); max-width: 800px; margin: 40px auto; }
.doc h1 { font-size: 34px; color: var(--sage-deep); margin-bottom: 8px; }
.doc .meta { background: var(--sage-soft); border-radius: var(--r-sm); padding: 16px 20px; margin: 20px 0 30px; font-size: 15px; }
.doc .meta p { margin: 0 0 4px; } .doc .meta p:last-child { margin: 0; }
.doc h2 { font-size: 22px; color: var(--sage-deep); margin: 32px 0 12px; }
.doc p { margin-bottom: 14px; color: var(--ink-soft); }
.doc ul { margin: 0 0 14px 22px; } .doc li { margin-bottom: 6px; color: var(--ink-soft); }
.doc strong { color: var(--ink); }
.doc a { color: var(--sage); font-weight: 600; border-bottom: 1px solid rgba(107,144,128,.4); }
.doc code { background: rgba(107,144,128,.12); border-radius: 6px; padding: 1px 6px; font-size: 14px; }
@media (max-width: 560px) { .doc { padding: 32px 22px; } section { padding: 56px 0; } .hero { padding: 60px 0 50px; } }
