/* Daylumen — dawn-light marketing site. Mirrors the app's design tokens (Theme.swift).
   System fonts only: no external font requests, no trackers — on-brand for a privacy product. */

:root {
  --paper:   #FBF9F4;
  --paper2:  #F1EBDE;
  --surface: #FFFEFB;
  --surface2:#F7F2EA;
  --ink:   #2A2418;
  --ink2:  #6A6051;
  --ink3:  #9A8D77;
  --ink4:  #C4B69D;
  --line:   rgba(42,36,24,0.09);
  --line2:  rgba(42,36,24,0.15);
  --brand:     #D99A2B;
  --brand-deep:#8C5E0F;
  --brand-soft: rgba(217,154,43,0.15);
  --brand-line: rgba(217,154,43,0.32);
  --watch: #C17A4E;
  --sage:  #8C9A6B;

  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", system-ui, "PingFang SC", sans-serif;
  --serif: ui-serif, "Iowan Old Style", "Palatino Linotype", "Times New Roman", Georgia, serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, monospace;

  --r-sm: 10px; --r-md: 16px; --r-lg: 22px; --r-xl: 28px;
  --maxw: 1060px;
}

/* i18n — only the active language shows */
html[data-lang="en"] .zh { display: none !important; }
html[data-lang="zh"] .en { display: none !important; }
/* Chinese reads cleaner in the humanist sans at display sizes than a serif Songti fallback */
html[data-lang="zh"] h1,
html[data-lang="zh"] h2,
html[data-lang="zh"] h3,
html[data-lang="zh"] .quote { font-family: var(--sans); font-weight: 700; }
/* Chinese glyphs are denser — smaller size, looser leading, more wrap width so the hero lands in 2 calm lines, not 3 cramped ones */
html[data-lang="zh"] h1 { font-size: clamp(1.9rem, 4.4vw, 2.85rem); line-height: 1.34; letter-spacing: 0.01em; }
html[data-lang="zh"] .hero h1 { max-width: 22ch; }
html[data-lang="zh"] h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.3; }
html[data-lang="zh"] .quote { line-height: 1.55; }
html[data-lang="zh"] .tagline { font-family: var(--sans); font-style: normal; }
html[data-lang="zh"] .hero .sub,
html[data-lang="zh"] .section-lede,
html[data-lang="zh"] .doc p,
html[data-lang="zh"] .doc li { line-height: 1.75; }

.lang-toggle {
  font-family: var(--mono); font-size: 0.8rem; font-weight: 600; line-height: 1;
  color: var(--ink2); background: var(--surface); border: 1px solid var(--line2);
  border-radius: 999px; padding: 7px 13px; cursor: pointer;
}
.lang-toggle:hover { background: var(--surface2); color: var(--ink); }

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* dawn glow — warm light from the top, like the app's DawnBackground */
body::before {
  content: "";
  position: fixed; inset: 0;
  background: radial-gradient(120% 70% at 50% -12%, rgba(217,154,43,0.13), rgba(217,154,43,0) 60%);
  pointer-events: none; z-index: 0;
}
.wrap { position: relative; z-index: 1; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* type */
h1,h2,h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -0.02em; color: var(--ink); }
h1 { font-size: clamp(2.4rem, 6vw, 4rem); line-height: 1.05; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); line-height: 1.12; }
h3 { font-size: 1.2rem; line-height: 1.25; }
p  { color: var(--ink2); }
a  { color: var(--brand-deep); text-decoration: none; }
a:hover { text-decoration: underline; }

.eyebrow {
  font-family: var(--mono); font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink3);
}

/* header / nav */
.nav {
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: saturate(140%) blur(10px);
  background: rgba(251,249,244,0.72);
  border-bottom: 1px solid var(--line);
}
.nav .container { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 1.12rem; letter-spacing: -0.02em; }
.brand .day { color: var(--ink); }
.brand .lumen { color: var(--brand-deep); }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { color: var(--ink2); font-size: 0.92rem; font-weight: 500; }
.nav-links a:hover { color: var(--ink); text-decoration: none; }

/* lumen mark */
.mark { width: 26px; height: 26px; flex: none; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--sans); font-size: 1rem; font-weight: 600;
  padding: 14px 26px; border-radius: 999px; border: 0; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn-primary {
  background: var(--brand); color: #fff;
  box-shadow: 0 10px 26px rgba(217,154,43,0.42);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 14px 32px rgba(217,154,43,0.5); text-decoration: none; }
.btn-ghost { background: var(--surface); color: var(--ink); border: 1px solid var(--line2); }
.btn-ghost:hover { background: var(--surface2); text-decoration: none; }
.btn-sm { padding: 9px 18px; font-size: 0.9rem; }

/* hero */
.hero { padding: 96px 0 72px; text-align: center; }
.hero .eyebrow { color: var(--brand-deep); }
.hero h1 { max-width: 16ch; margin: 18px auto 0; }
.hero .sub { font-size: 1.18rem; max-width: 40ch; margin: 22px auto 0; line-height: 1.55; }
.hero .cta-row { margin-top: 34px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.privacy-line {
  margin-top: 26px; display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.86rem; font-weight: 600; color: var(--brand-deep);
  background: var(--brand-soft); border: 1px solid var(--brand-line);
  padding: 9px 16px; border-radius: 999px;
}

/* sections */
section { padding: 64px 0; position: relative; }
.section-label { text-align: center; margin-bottom: 14px; }
.section-title { text-align: center; max-width: 24ch; margin: 0 auto 14px; }
.section-lede { text-align: center; max-width: 52ch; margin: 0 auto; font-size: 1.05rem; }

/* cards grid */
.grid { display: grid; gap: 20px; margin-top: 44px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 26px;
  box-shadow: 0 1px 1px rgba(42,36,24,0.04), 0 12px 30px rgba(42,36,24,0.06);
}
.card .ic {
  width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand-deep); font-size: 1.3rem; margin-bottom: 16px;
}
.card h3 { margin-bottom: 8px; font-family: var(--sans); font-weight: 700; letter-spacing: -0.01em; }
.card p { font-size: 0.96rem; }

/* big quote / pov band */
.band { background: linear-gradient(180deg, var(--surface2), var(--paper)); border-block: 1px solid var(--line); }
.band .container { text-align: center; }
.quote { font-family: var(--serif); font-size: clamp(1.5rem,3vw,2.1rem); line-height: 1.3; color: var(--ink); max-width: 22ch; margin: 0 auto; }

/* privacy pillar list */
.refuse { max-width: 760px; margin: 40px auto 0; display: grid; gap: 0; }
.refuse li {
  list-style: none; display: flex; gap: 14px; align-items: flex-start;
  padding: 18px 4px; border-bottom: 1px solid var(--line);
}
.refuse li:last-child { border-bottom: 0; }
.refuse .check { color: var(--brand); font-weight: 700; flex: none; margin-top: 1px; }
.refuse b { color: var(--ink); }
.refuse span { color: var(--ink2); }

/* final cta */
.final { text-align: center; }
.final h2 { max-width: 20ch; margin: 0 auto 26px; }

/* footer */
footer { border-top: 1px solid var(--line); padding: 40px 0; margin-top: 24px; }
footer .container { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
footer .f-links { display: flex; gap: 22px; }
footer a, footer p { font-size: 0.88rem; color: var(--ink3); }
footer .tagline { font-family: var(--serif); font-style: italic; color: var(--ink2); }

/* legal/support article pages */
.doc { max-width: 760px; margin: 0 auto; padding: 72px 0 40px; }
.doc h1 { font-size: clamp(2rem,5vw,3rem); }
.doc .updated { color: var(--ink3); font-size: 0.9rem; margin-top: 10px; }
.doc h2 { font-family: var(--sans); font-weight: 700; font-size: 1.25rem; margin: 38px 0 10px; letter-spacing: -0.01em; }
.doc h3 { font-family: var(--sans); font-weight: 700; font-size: 1.02rem; margin: 22px 0 6px; }
.doc p, .doc li { color: var(--ink2); font-size: 1rem; line-height: 1.65; }
.doc ul { margin: 10px 0 10px 22px; }
.doc li { margin: 6px 0; }
.doc .lede { font-size: 1.1rem; color: var(--ink); }
.doc a { font-weight: 600; }

/* responsive */
@media (max-width: 860px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .nav-links { gap: 16px; }
  .nav-links .hide-sm { display: none; }
  .hero { padding: 64px 0 48px; }
  section { padding: 48px 0; }
}
