/* ==================================================================
   HolisticDash — Landing Page Stylesheet
   Used only by index.html (public marketing page).
   Independent of style.css — landing styles never leak into the app.
   Header design matches the About page (about.css) 1:1.
   ================================================================== */

:root {
  --bg: #F2F4F3;
  --card: #fffdf8;
  --ink: #0F1E2E;
  --mute: #7a6f65;
  --line: #eadfce;
  --accent: #c4673f;
  --accent-ink: #fff;
  --hot: #D9482B;                 /* matches About's brand dot colour */
  --c1: #c4673f;
  --c2: #d9a441;
  --c3: #7c9a6e;
  --c4: #5f8a94;
  --c5: #b5708a;
  --c6: 'Leckerli One', cursive;

}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0C1620;
    --card: #122230;
    --ink: #EAF0F2;
    --mute: #9AAAB5;
    --line: #22333F;
    --accent: #58C4BE;
    --accent-ink: #06222A;
    --hot: #FF8A63;
  }
}

:root[data-theme="dark"] {
  --bg: #0C1620;
  --card: #122230;
  --ink: #EAF0F2;
  --mute: #9AAAB5;
  --line: #22333F;
  --accent: #58C4BE;
  --accent-ink: #06222A;
  --hot: #FF8A63;
}

* { box-sizing: border-box; }

html {
  scroll-padding-top: env(safe-area-inset-top, 0px);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", sans-serif;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

h1, h2, .serif {
  font-family: ui-serif, Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: -.01em;
}

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 22px; }

/* ==================================================================
   STICKY HEADER — matches the About page treatment
   (top-level element, blurred backdrop, hairline bottom border)
   ================================================================== */
.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 5;                     /* same as About */
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;                    /* same as About */
  height: 60px;                   /* same as About */
}

/* Brand (dot + name) — styled to match About's brand */
.brand {
  font-family: 'DM Serif Display', Georgia, serif;
  font-weight: 400;               /* same as About */
  font-size: 1.25rem;             /* same as About */
  letter-spacing: 0.01em;
  display: flex;
  gap: .55rem;                    /* same as About */
  align-items: center;
  text-decoration: none;
  color: inherit;
  margin-right: auto;             /* pushes nav + theme button to the right */
}
.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #C4673F;
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--c6);          
  font-weight: 700;
  font-size: 16px;
  line-height: 1;
  flex-shrink: 0;
  letter-spacing: 0;
}

/* Nav — uses margin-left on links (same as About) */
.links {
  display: flex;
  align-items: center;
}
.links > a {
  margin-left: 1.25rem;           /* same as About */
}
a.text {
  color: var(--mute);
  text-decoration: none;
  font-size: .95rem;              /* same as About */
  font-weight: 500;               /* same as About */
}
a.text:hover { color: var(--ink); }

/* Buttons */
.btn {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 13px 24px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
}
.btn.sm { padding: 9px 18px; font-size: 14px; }
.btn.ghost { background: none; color: var(--ink); border: 1px solid var(--line); }

/* Theme toggle button — matches About */
#theme {
  background: none;
  border: 1px solid var(--line);
  color: var(--ink);
  border-radius: 99px;
  width: 38px;
  height: 38px;
  cursor: pointer;
  font-size: 1rem;
  flex-shrink: 0;
}

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 48px;
  align-items: center;
  padding: 56px 0 72px;
}
h1 {
  font-size: clamp(36px, 6vw, 58px);
  line-height: 1.1;
  margin: 0 0 18px;
}
.lead {
  color: var(--mute);
  font-size: 19px;
  max-width: 30em;
  margin: 0 0 28px;
}
.cta { display: flex; gap: 12px; flex-wrap: wrap; }
.note { color: var(--mute); font-size: 14px; margin-top: 14px; }

/* ---------- Week preview card (static) ---------- */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 24px;
  box-shadow: 0 10px 30px -18px rgba(80, 50, 20, .25);
}
.card h3 {
  margin: 0 0 4px;
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--mute);
  font-weight: 600;
}
.card-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  padding: 3px 9px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.row {
  display: grid;
  grid-template-columns: 96px 1fr 34px;
  gap: 12px;
  align-items: center;
  margin: 13px 0;
  font-size: 15px;
}
.bar {
  height: 8px;
  border-radius: 9px;
  background: var(--line);
  overflow: hidden;
}
.bar i {
  display: block;
  height: 100%;
  border-radius: 9px;
}
.row b {
  font-weight: 500;
  color: var(--mute);
  text-align: right;
  font-size: 13px;
}
.insight {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 15px;
  color: var(--mute);
}
.insight .serif { color: var(--ink); font-size: 18px; }

/* ---------- Sections ---------- */
section { padding: 64px 0; border-top: 1px solid var(--line); }
h2 {
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.2;
  margin: 0 0 12px;
}
.sub { color: var(--mute); max-width: 36em; margin: 0 0 36px; }

/* ---------- Life areas grid (tighter gap) ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.area {
  padding: 20px 22px;
  border-radius: 18px;
  background: var(--card);
  border: 1px solid var(--line);
}
.area span {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 8px;
}
.area h4 {
  margin: 0 0 6px;
  font-size: 17px;
  display: flex;
  align-items: center;
}
.area p { margin: 0; color: var(--mute); font-size: 15px; }

/* ---------- Steps (number to the left) ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.step .n {
  font-family: ui-serif, Georgia, serif;
  font-size: 34px;
  color: var(--accent);
  line-height: 1;
  flex-shrink: 0;
}
.step .step-body { min-width: 0; }
.step h4 { margin: 0 0 6px; font-size: 18px; }
.step p { margin: 0; color: var(--mute); font-size: 15px; }

/* ---------- Quote ---------- */
.quote { text-align: center; padding: 72px 0; }
.quote small {
  color: var(--mute);
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: 12px;
}
.quote p {
  font-size: clamp(24px, 3.6vw, 34px);
  line-height: 1.35;
  max-width: 24em;
  margin: 14px auto 0;
}

/* ---------- Final CTA ---------- */
.final {
  text-align: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 56px 22px;
  margin: 0 0 56px;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 24px 0;
  color: var(--mute);
  font-size: 14px;
}
.site-footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.site-footer-links {
  display: flex;
  align-items: center;
  gap: 10px;
}
.site-footer-links .text { font-size: 14px; }

/* ==================================================================
   Responsive — breakpoint matches the About page (720px / 420px)
   ================================================================== */
@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; gap: 36px; padding-top: 28px; }
  .grid, .steps { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  /* Hide the secondary text links, keep About + Get started visible */
  .links .text { display: none; }
  .links .text.about-link { display: inline-block; }
}

@media (max-width: 480px) {
  /* On very small phones, tighten spacing so the header fits */
  .site-header-inner { gap: .75rem; }
  .brand { font-size: 1rem; gap: .4rem; }
  .links > a { margin-left: .75rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}