/* Mira: Habit Garden — shared site styles.
   Designed to feel like the app continues into the web,
   not a separate marketing surface. Warm dawn gradient,
   no hard white cards, generous space. */

:root {
  /* Warm dawn palette — matches the app icon + onboarding gradients */
  --cream:      #FBF6EE;
  --creamSoft:  #FFF5E2;
  --peachLite:  #FFEFD2;
  --peach:      #FFD0A8;
  --peachDeep:  #E08A52;
  --pink:       #F2B4B6;
  --lavender:   #C8AEE0;
  --lavenderDeep: #7D5DC9;

  /* Inks */
  --ink:        #2A241B;
  --inkSoft:    #5C5040;
  --inkMute:    #8A7E6B;

  /* Garden greens — for accents, root names, leaves */
  --leaf:       #5DA068;
  --leafSoft:   #C5EBCF;

  /* Gold — used sparingly, for accents */
  --gold:       #C99520;
  --goldSoft:   #F2D079;

  --hair:       rgba(42, 36, 27, 0.10);
  --hairSoft:   rgba(42, 36, 27, 0.06);
}

* { box-sizing: border-box; }
*::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  color: var(--ink);
  font-family: 'Outfit', 'SF Pro Text', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.55;
  background: var(--cream);
}

/* Site-wide dawn wash. The whole page sits on a warm gradient
   that fades from peachy at the top to soft cream lower down,
   so sections feel like they belong to one atmosphere. */
body {
  background:
    radial-gradient(1200px 700px at 50% -120px, #FFE6B4 0%, rgba(255, 230, 180, 0) 70%),
    linear-gradient(180deg, #FFF3DC 0%, #FBF6EE 35%, #FBF6EE 100%);
  background-attachment: fixed;
  min-height: 100vh;
}

a { color: var(--peachDeep); text-decoration: none; font-weight: 600; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ── Header ───────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 245, 226, 0.78);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid var(--hairSoft);
}
.site-header .wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 700;
  font-size: 17px;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.brand img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: block;
  box-shadow: 0 2px 6px rgba(125, 70, 40, 0.18);
}
.brand .name {
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.brand .name .sub {
  font-weight: 500;
  color: var(--inkMute);
  font-size: 14px;
}
.nav {
  display: flex;
  gap: 22px;
  font-size: 14px;
  font-weight: 500;
}
.nav a { color: var(--inkSoft); font-weight: 500; }
.nav a:hover { color: var(--ink); text-decoration: none; }

/* ── Hero ─────────────────────────────────────────────────────────── */
.hero {
  padding: 96px 24px 88px;
  text-align: center;
  position: relative;
}
.hero .wrap {
  max-width: 720px;
  margin: 0 auto;
  position: relative;
}
.hero .mira-slot {
  width: 188px;
  height: 188px;
  margin: 0 auto 28px;
  position: relative;
}
.hero .mira-slot::before {
  /* Atmospheric halo around Mira, matching the icon's glow */
  content: '';
  position: absolute;
  inset: -32px;
  border-radius: 50%;
  background: radial-gradient(closest-side,
    rgba(255, 240, 200, 0.7) 0%,
    rgba(255, 210, 170, 0.25) 45%,
    rgba(255, 210, 170, 0) 75%);
  pointer-events: none;
  z-index: 0;
}
.hero .mira-slot img {
  position: relative;
  z-index: 1;
  width: 188px;
  height: 188px;
  filter: drop-shadow(0 12px 28px rgba(125, 70, 40, 0.2));
}
.hero .eyebrow {
  font-size: 12px;
  font-weight: 700;
  color: var(--peachDeep);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.hero h1 {
  font-size: 54px;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.04;
  margin: 0 0 22px;
  color: var(--ink);
}
.hero .lead {
  font-size: 19px;
  line-height: 1.55;
  color: var(--inkSoft);
  margin: 0 auto 36px;
  max-width: 520px;
  font-weight: 400;
}
.hero .ctas {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.005em;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.2s ease;
}
.btn-primary {
  background: var(--ink);
  color: var(--cream);
  box-shadow: 0 6px 18px rgba(42, 36, 27, 0.24);
}
.btn-primary:hover {
  transform: translateY(-1px);
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(42, 36, 27, 0.28);
}
.btn-ghost {
  background: rgba(255, 255, 255, 0.55);
  color: var(--ink);
  border: 1px solid rgba(42, 36, 27, 0.10);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.85);
  text-decoration: none;
}

/* ── Roots band ───────────────────────────────────────────────────────
   Six identity dimensions, sitting just below the hero. Visual echo of
   the in-app garden roots, anchors the brand visually. */
.roots {
  padding: 0 24px 80px;
  text-align: center;
}
.roots .wrap {
  max-width: 820px;
  margin: 0 auto;
}
.roots .label {
  font-size: 11px;
  font-weight: 700;
  color: var(--inkMute);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.roots .row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}
.root-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--hairSoft);
  font-size: 14px;
  font-weight: 600;
  color: var(--inkSoft);
  backdrop-filter: blur(4px);
}
.root-chip .dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
}

/* ── Content sections ─────────────────────────────────────────────── */
main {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px 96px;
}
main.wide {
  max-width: 880px;
}
section + section { margin-top: 72px; }

h2 {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin: 0 0 14px;
  color: var(--ink);
  line-height: 1.15;
}
h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 28px 0 8px;
  color: var(--ink);
  letter-spacing: -0.005em;
}
p {
  font-size: 17px;
  line-height: 1.65;
  color: var(--inkSoft);
  margin: 0 0 16px;
}
ul {
  padding-left: 22px;
  color: var(--inkSoft);
  font-size: 16px;
  line-height: 1.7;
}
ul li { margin: 6px 0; }

/* Soft "panel" instead of hard white card. Sits on the dawn wash. */
.panel {
  background: rgba(255, 255, 255, 0.6);
  border-radius: 22px;
  padding: 28px 30px;
  border: 1px solid var(--hairSoft);
  backdrop-filter: blur(6px);
  margin-top: 18px;
}

/* Whisper rows — a tiny moment of Mira's voice */
.whisper {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 22px;
  background: rgba(255, 255, 255, 0.55);
  border-radius: 18px;
  border: 1px solid var(--hairSoft);
  margin-top: 14px;
}
.whisper .glyph {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--peach), var(--peachDeep));
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}
.whisper .body {
  flex: 1;
  font-size: 16px;
  color: var(--ink);
  line-height: 1.55;
}
.whisper .body strong {
  font-weight: 700;
  color: var(--ink);
}

/* FAQ */
.faq h2 {
  font-size: 21px;
  margin: 28px 0 10px;
  color: var(--ink);
}
.faq details {
  background: rgba(255, 255, 255, 0.6);
  border-radius: 16px;
  padding: 18px 22px;
  margin-top: 10px;
  border: 1px solid var(--hairSoft);
}
.faq details + details { margin-top: 8px; }
.faq summary {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  font-weight: 400;
  color: var(--inkMute);
  font-size: 22px;
  margin-left: 12px;
  transition: transform 0.2s ease;
  line-height: 1;
}
.faq details[open] summary::after { content: '−'; }
.faq details > div {
  margin-top: 12px;
  color: var(--inkSoft);
  font-size: 15.5px;
  line-height: 1.65;
}
.faq details > div p { margin: 8px 0; font-size: 15.5px; }

/* Contact card */
.contact {
  background: linear-gradient(135deg, #FFEFD2 0%, #FFD0A8 100%);
  border-radius: 24px;
  padding: 36px 32px;
  margin-top: 28px;
  border: 1px solid rgba(224, 138, 82, 0.20);
  box-shadow: 0 8px 28px rgba(224, 138, 82, 0.12);
}
.contact h2 { margin-top: 0; color: var(--ink); }
.contact p { color: var(--ink); font-size: 16px; }
.contact strong { font-weight: 700; }
.contact .small { font-size: 14px; color: var(--inkSoft); margin-top: 18px; }

/* Legal pages */
.legal {
  background: rgba(255, 255, 255, 0.7);
  border-radius: 22px;
  padding: 46px 50px;
  border: 1px solid var(--hairSoft);
  backdrop-filter: blur(6px);
}
.legal h1 {
  font-size: 34px;
  margin: 0 0 10px;
  letter-spacing: -0.025em;
  font-weight: 700;
}
.legal .effective {
  color: var(--inkMute);
  font-size: 14px;
  font-style: italic;
  margin-bottom: 32px;
}
.legal h2 {
  font-size: 21px;
  margin-top: 36px;
  margin-bottom: 12px;
}
.legal p, .legal li { font-size: 15.5px; line-height: 1.65; }
.legal code {
  background: var(--peachLite);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 13.5px;
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
}

/* ── Footer ───────────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--hairSoft);
  padding: 40px 24px 56px;
  text-align: center;
  color: var(--inkMute);
  font-size: 13px;
  background: rgba(251, 246, 238, 0.5);
}
.site-footer .wrap {
  max-width: 920px;
  margin: 0 auto;
}
.site-footer .brand-mini {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 14px;
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
}
.site-footer .brand-mini img {
  width: 26px;
  height: 26px;
  border-radius: 7px;
}
.site-footer .links a {
  color: var(--inkSoft);
  margin: 0 12px;
  font-weight: 500;
}
.site-footer .small {
  margin-top: 14px;
  font-size: 12px;
  color: var(--inkMute);
}

/* ── Responsive ───────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .hero { padding: 64px 22px 64px; }
  .hero h1 { font-size: 36px; }
  .hero .lead { font-size: 17px; }
  .hero .mira-slot { width: 148px; height: 148px; }
  .hero .mira-slot img { width: 148px; height: 148px; }
  .roots { padding: 0 22px 64px; }
  main { padding: 0 22px 72px; }
  .legal { padding: 28px 22px; }
  .legal h1 { font-size: 26px; }
  h2 { font-size: 24px; }
  .nav { gap: 14px; font-size: 13px; }
  .brand { font-size: 15px; }
  .brand .name .sub { font-size: 12px; }
  .brand img { width: 30px; height: 30px; }
  .panel, .contact { padding: 22px 22px; }
  .contact { padding: 28px 22px; }
}
