/* Little Dawn — littledawn.app
   Layout concept: first light. A low sun rises over a horizon line behind the hero;
   content sits left, an example trial timeline sits right. Pages below are calm and roomy. */

@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("fonts/bricolage-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/figtree-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Figtree";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/figtree-italic-latin.woff2") format("woff2");
}

:root {
  /* Color: pre-dawn sky and first light */
  --mist: #f6f5f8;       /* page */
  --card: #ffffff;       /* raised surfaces */
  --ink: #23263a;        /* text, night sky */
  --ink-soft: #595d73;   /* secondary text */
  --line: #e2e0ea;       /* hairlines */
  --sun: #ec8d4f;        /* the sun, fills only */
  --sun-ink: #a24c16;    /* accent text on light */
  --glow: #fde6d3;       /* horizon glow */
  --dew: #5f8f7d;        /* calm secondary marker */
  --shadow: 0 1px 2px rgb(35 38 58 / 6%), 0 12px 32px -12px rgb(35 38 58 / 18%);

  /* Type */
  --display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --body: "Figtree", "Avenir Next", "Segoe UI", system-ui, -apple-system, sans-serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.6rem;
  --step-3: clamp(1.9rem, 1.4rem + 2vw, 2.6rem);
  --step-4: clamp(2.4rem, 1.6rem + 3.6vw, 4rem);

  --radius: 18px;
  --wrap: 1120px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --mist: #14162a;
    --card: #1d2037;
    --ink: #eeebf3;
    --ink-soft: #a9aac0;
    --line: #2d304a;
    --sun: #f3a066;
    --sun-ink: #f6b88c;
    --glow: #3b2a31;
    --dew: #8cbba9;
    --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 16px 36px -14px rgb(0 0 0 / 60%);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --mist: #14162a;
  --card: #1d2037;
  --ink: #eeebf3;
  --ink-soft: #a9aac0;
  --line: #2d304a;
  --sun: #f3a066;
  --sun-ink: #f6b88c;
  --glow: #3b2a31;
  --dew: #8cbba9;
  --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 16px 36px -14px rgb(0 0 0 / 60%);
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--mist);
  color: var(--ink);
  font-family: var(--body);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; }

a { color: var(--sun-ink); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--sun-ink); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.015em;
  text-wrap: balance;
  margin: 0;
}

p { margin: 0; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}

.skip {
  position: absolute; left: -999px; top: 0;
  background: var(--card); color: var(--ink); padding: 8px 12px; border-radius: 8px;
}
.skip:focus { left: 12px; top: 12px; z-index: 5; }

/* Header */
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-block: 22px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--ink); text-decoration: none;
  font-family: var(--display); font-weight: 600; font-size: 1.2rem; letter-spacing: -0.01em;
}
.brand svg { width: 34px; height: 34px; flex: none; }
.site-nav { display: flex; gap: 6px; flex-wrap: wrap; }
.site-nav a {
  color: var(--ink-soft); text-decoration: none; font-size: var(--step--1); font-weight: 500;
  padding: 6px 12px; border-radius: 999px;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); background: var(--card); }

/* Hero */
.hero { position: relative; overflow: hidden; }
.hero .wrap {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(32px, 5vw, 72px); align-items: center;
  padding-block: clamp(24px, 5vw, 64px) clamp(64px, 9vw, 120px);
  position: relative; z-index: 1;
}
.hero-copy { display: grid; gap: 22px; min-width: 0; }
.eyebrow {
  justify-self: start;
  display: inline-flex; align-items: center; gap: 8px;
  font-size: var(--step--1); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--sun-ink);
}
.eyebrow::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--sun);
  box-shadow: 0 0 0 4px var(--glow);
}
.hero h1 { font-size: var(--step-4); max-width: 13ch; }
.lede { font-size: var(--step-1); color: var(--ink-soft); max-width: 34rem; line-height: 1.55; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; padding-top: 6px; }
.store-badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--ink); color: var(--mist);
  padding: 12px 18px; border-radius: 14px; font-weight: 600; font-size: 0.95rem;
}
.store-badge svg { width: 18px; height: 18px; fill: currentColor; }
.store-badge small { display: block; font-weight: 500; font-size: 0.72rem; opacity: 0.75; letter-spacing: 0.02em; }
.cta-note { font-size: var(--step--1); color: var(--ink-soft); }

/* The sunrise behind the hero */
.horizon {
  position: absolute; left: 0; right: 0; bottom: 0; height: 62%;
  pointer-events: none; z-index: 0;
}
.horizon::before {
  /* glow */
  content: ""; position: absolute; left: 50%; bottom: -40%;
  width: min(1100px, 140vw); aspect-ratio: 1; transform: translateX(-50%);
  background: radial-gradient(closest-side, var(--glow), transparent 70%);
}
.horizon .sun {
  position: absolute; left: 50%; bottom: 0;
  width: clamp(180px, 26vw, 320px); aspect-ratio: 2 / 1;
  transform: translateX(-50%);
  background: var(--sun); border-radius: 999px 999px 0 0;
  opacity: 0.9;
  animation: rise 2.4s cubic-bezier(.2,.7,.2,1) both;
}
.horizon::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--line);
}
@keyframes rise {
  from { transform: translate(-50%, 22%); }
  to   { transform: translate(-50%, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .horizon .sun { animation: none; }
}

/* Example trial card */
.trial-card {
  background: var(--card); border-radius: 26px; box-shadow: var(--shadow);
  padding: 22px; display: grid; gap: 16px; min-width: 0;
  border: 1px solid var(--line);
}
.trial-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.trial-head h2 { font-size: 1.25rem; }
.trial-head p { font-size: var(--step--1); color: var(--ink-soft); }
.tag-example {
  flex: none; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink-soft); border: 1px solid var(--line); border-radius: 999px; padding: 3px 9px;
}
.trial-progress { display: grid; gap: 6px; }
.trial-progress .bar { height: 6px; border-radius: 999px; background: var(--line); overflow: hidden; }
.trial-progress .bar span { display: block; height: 100%; width: 64%; background: var(--sun); border-radius: inherit; }
.trial-progress p { font-size: 0.8rem; color: var(--ink-soft); font-variant-numeric: tabular-nums; }

.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.timeline li {
  display: grid; grid-template-columns: 14px minmax(0, 1fr); gap: 12px;
  padding-block: 12px; border-top: 1px solid var(--line);
}
.timeline .dot { width: 10px; height: 10px; border-radius: 50%; margin-top: 7px; background: var(--sun); }
.timeline .dot.exposure { background: transparent; border: 2px solid var(--sun); }
.timeline .dot.note { background: var(--dew); }
.timeline .meta {
  display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline;
  font-size: 0.78rem; color: var(--ink-soft); font-variant-numeric: tabular-nums;
}
.timeline .kind { font-weight: 600; color: var(--ink); }
.timeline p { font-size: 0.95rem; line-height: 1.45; }

/* Sections */
section.band { padding-block: clamp(56px, 8vw, 104px); }
section.band + section.band { border-top: 1px solid var(--line); }
.section-head { display: grid; gap: 12px; max-width: 40rem; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head h2 { font-size: var(--step-3); }
.section-head p { color: var(--ink-soft); font-size: var(--step-1); }

.features {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px;
}
.feature { display: grid; gap: 10px; align-content: start; }
.feature svg { width: 28px; height: 28px; color: var(--sun-ink); }
.feature h3 { font-size: var(--step-1); }
.feature p { color: var(--ink-soft); font-size: 0.98rem; }

.report {
  margin-top: clamp(40px, 6vw, 64px);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px);
  align-items: center;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(24px, 4vw, 44px);
}
.report-copy { display: grid; gap: 14px; min-width: 0; }
.report-copy h3 { font-size: var(--step-2); }
.report-copy p { color: var(--ink-soft); }
.report-sheet {
  min-width: 0;
  background: var(--mist); border-radius: 14px; padding: 20px; border: 1px solid var(--line);
  display: grid; gap: 12px; font-size: 0.88rem;
}
.report-sheet .sheet-title { font-family: var(--display); font-weight: 600; font-size: 1rem; }
.report-sheet dl { margin: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 16px; }
.report-sheet dt { color: var(--ink-soft); }
.report-sheet dd { margin: 0; font-variant-numeric: tabular-nums; }

.nevers { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 40px; }
.nevers li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; }
.nevers svg { width: 22px; height: 22px; color: var(--dew); margin-top: 3px; }
.nevers strong { display: block; font-weight: 600; }
.nevers span { color: var(--ink-soft); font-size: 0.98rem; }

.price {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 48px; align-items: center;
}
.price-figure { display: grid; gap: 4px; justify-items: end; text-align: right; }
.price-figure .amount {
  font-family: var(--display); font-weight: 600; font-size: clamp(3rem, 2rem + 4vw, 4.75rem);
  line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums;
}
.price-figure .per { color: var(--ink-soft); font-size: var(--step--1); }

.care-note {
  display: grid; gap: 10px; max-width: 46rem;
  border-left: 3px solid var(--sun); padding-left: 20px;
  color: var(--ink-soft);
}
.care-note strong { color: var(--ink); }

/* Document pages (privacy, support) */
.doc .wrap { max-width: 760px; }
.doc header.doc-head { padding-block: clamp(24px, 5vw, 56px) 28px; border-bottom: 1px solid var(--line); display: grid; gap: 12px; }
.doc h1 { font-size: var(--step-3); }
.doc .updated { color: var(--ink-soft); font-size: var(--step--1); }
.doc .summary {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 22px; display: grid; gap: 8px;
}
.doc .summary ul { margin: 0; padding-left: 1.2em; display: grid; gap: 4px; }
.doc article { padding-block: 32px clamp(56px, 8vw, 96px); display: grid; gap: 28px; }
.doc article section { display: grid; gap: 10px; }
.doc article h2 { font-size: var(--step-1); }
.doc article ul { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }
.doc article p, .doc article li { max-width: 66ch; }

.contact-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; display: grid; gap: 8px;
}
.contact-card .address {
  font-family: var(--display); font-weight: 600; font-size: var(--step-2); word-break: break-word;
}
.faq details { border-top: 1px solid var(--line); padding-block: 14px; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 600; list-style-position: outside; }
.faq details p { margin-top: 8px; color: var(--ink-soft); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); }
.site-footer .wrap {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px;
  padding-block: 32px 40px; font-size: var(--step--1); color: var(--ink-soft);
}
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-footer a { color: var(--ink-soft); }

/* Narrow screens */
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .report { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .features, .nevers { grid-template-columns: minmax(0, 1fr); }
  .price { grid-template-columns: minmax(0, 1fr); }
  .price-figure { justify-items: start; text-align: left; }
  .site-header .wrap { padding-block: 16px; }
}
