/* ═══════════════════════════════════════════════════════════════════
   DAGNING SHARED STYLES
   Design tokens from Component Library v2. Used by both pages.
═══════════════════════════════════════════════════════════════════ */

:root,
[data-theme="light"] {
  --s-cream: #f5ecd9;
  --s-sage: #d8e4cf;
  --s-dusty-pink: #e8c8c0;
  --s-steel: #8da9b3;

  --accent: #1a5f63;
  --accent-soft: #b8d4d0;
  --accent-bright: #2bc4c8;

  --gold: #d4a574;
  --rose: #d97a6c;
  --coral: #e8a899;
  --blue-soft: #4a90c7;

  --tint-pink: #f4c4c0;
  --tint-blue: #c8dee5;
  --tint-lilac: #d4d0e6;
  --tint-mint: #d4dec5;
  --tint-peach: #e8d5b7;
  --tint-seafoam: #c8d8d4;

  --ink: #1a2e2f;
  --ink-soft: #4a5a5b;
  --ink-muted: #7a8a8b;
  --ink-faint: #a8b2b3;

  --wash-soft: rgba(253, 249, 242, 0.25);
  --wash-medium: rgba(253, 249, 242, 0.65);
  --wash-strong: rgba(253, 249, 242, 0.95);
  --wash-paper: #fdf9f2;
  --wash-raised: #fdf9f2;

  --line-whisper: rgba(26, 46, 47, 0.06);
  --line-soft: rgba(26, 46, 47, 0.1);
  --line: rgba(26, 46, 47, 0.15);

  --success: #4a8a6a;
  --warning: #c9933a;
  --danger: #c75a4a;

  --shadow-whisper: 0 1px 2px rgba(26, 46, 47, 0.04);
  --shadow-soft: 0 2px 8px rgba(26, 46, 47, 0.06);
  --shadow-md: 0 8px 24px -8px rgba(26, 46, 47, 0.12);
  --shadow-lg: 0 16px 40px -12px rgba(26, 46, 47, 0.18);
  --shadow-inset: inset 0 1px 2px rgba(26, 46, 47, 0.04);

  --focus-ring: 0 0 0 4px rgba(26, 95, 99, 0.15);

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 28px;
  --r-pill: 100px;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', -apple-system, sans-serif;

  --page-bg: #fdf9f2;
}

[data-theme="dark"] {
  --s-cream: #2a2530;
  --s-sage: #2d2a34;
  --s-dusty-pink: #3a2d33;
  --s-steel: #4a3540;

  --accent: #a8c4b8;
  --accent-soft: #4f6560;
  --accent-bright: #b8d4c7;

  --gold: #d4b088;
  --rose: #d49689;
  --coral: #d89d8c;
  --blue-soft: #8ab0d0;

  --tint-pink: #4a303a;
  --tint-blue: #2d3e48;
  --tint-lilac: #3f3548;
  --tint-mint: #2f3f35;
  --tint-peach: #453a2d;
  --tint-seafoam: #2f403c;

  --ink: #f0e4d0;
  --ink-soft: #c9b9a3;
  --ink-muted: #998a76;
  --ink-faint: #665a4d;

  --wash-soft: rgba(240, 228, 208, 0.04);
  --wash-medium: rgba(240, 228, 208, 0.06);
  --wash-strong: rgba(240, 228, 208, 0.1);
  --wash-paper: #2a2530;
  --wash-raised: #332d38;

  --line-whisper: rgba(240, 228, 208, 0.06);
  --line-soft: rgba(240, 228, 208, 0.1);
  --line: rgba(240, 228, 208, 0.15);

  --shadow-whisper: 0 1px 2px rgba(0, 0, 0, 0.2);
  --shadow-soft: 0 2px 8px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 8px 24px -8px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 40px -12px rgba(0, 0, 0, 0.5);

  --focus-ring: 0 0 0 4px rgba(168, 196, 184, 0.2);

  --page-bg: #1c1a20;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--page-bg);
  -webkit-font-smoothing: antialiased;
  transition: background 0.4s, color 0.4s;
}

p a {
  color: var(--accent);
  text-underline-offset: 2px;
  transition: color 0.2s;
}
p a:hover { color: var(--accent-bright); }

/* ─── Dawn gradient ───────────────────────────────────────────── */
.dawn-surface {
  background:
    radial-gradient(ellipse 80% 60% at 20% 100%, var(--s-steel) 0%, transparent 55%),
    radial-gradient(ellipse 70% 50% at 80% 90%, var(--s-dusty-pink) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 50% 30%, var(--s-sage) 0%, transparent 65%),
    linear-gradient(180deg, var(--s-cream) 0%, var(--s-sage) 40%, var(--s-dusty-pink) 70%, var(--s-steel) 100%);
}
[data-theme="dark"] .dawn-surface {
  background:
    radial-gradient(ellipse 100% 30% at 50% 115%, #5a3540 0%, transparent 50%),
    radial-gradient(ellipse 80% 35% at 50% 100%, var(--s-steel) 0%, transparent 55%),
    radial-gradient(ellipse 70% 40% at 30% 85%, var(--s-dusty-pink) 0%, transparent 55%),
    linear-gradient(180deg, #1c1a20 0%, var(--s-cream) 35%, var(--s-sage) 60%, var(--s-dusty-pink) 85%, var(--s-steel) 100%);
}

/* ─── Navigation ──────────────────────────────────────────────── */
nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 40px;
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  z-index: 10;
}

.brand {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand .brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: block;
  object-fit: cover;
  box-shadow: var(--shadow-soft);
}

.nav-right { display: flex; gap: 10px; align-items: center; }

.nav-link {
  font-size: 14px;
  color: var(--ink-soft);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: var(--r-pill);
  transition: color 0.2s, background 0.2s;
}
.nav-link:hover { color: var(--accent); background: var(--wash-soft); }

.theme-toggle {
  display: flex;
  background: var(--wash-medium);
  backdrop-filter: blur(8px);
  border-radius: var(--r-pill);
  padding: 3px;
  gap: 2px;
  border: 1px solid var(--line-whisper);
  margin-left: auto;
}
.theme-toggle button {
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 500;
  font-family: inherit;
  color: var(--ink-muted);
  background: transparent;
  border: none;
  border-radius: var(--r-pill);
  cursor: pointer;
  transition: all 0.2s;
}
.theme-toggle button.active {
  background: var(--wash-strong);
  color: var(--ink);
  box-shadow: var(--shadow-whisper);
}

/* ─── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  font-size: 15px;
  font-weight: 500;
  font-family: var(--font-body);
  border-radius: var(--r-pill);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary { background: var(--accent); color: #fdf9f2; }
[data-theme="dark"] .btn-primary { background: var(--accent); color: #1a1820; }
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
  filter: brightness(1.08);
}
.btn-ghost {
  background: var(--wash-medium);
  color: var(--ink);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line-whisper);
}
.btn-ghost:hover { background: var(--wash-strong); }
.btn-lg { padding: 17px 32px; font-size: 17px; }

/* ─── Store buttons (App Store / Google Play) ─────────────────── */
.store-row {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--line-whisper);
}
.store-row-label {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 14px;
  color: var(--ink-muted);
  margin-bottom: 16px;
}
.store-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  background: var(--ink);
  color: #fdf9f2;
  border-radius: var(--r-md);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  min-width: 168px;
}
.store-btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
  filter: brightness(1.1);
}
[data-theme="dark"] .store-btn { color: var(--page-bg); }
.store-icon { width: 24px; height: 24px; flex-shrink: 0; }
.store-btn-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  text-align: left;
}
.store-btn-small {
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: 0.02em;
  opacity: 0.85;
}
.store-btn-large {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.005em;
  margin-top: 2px;
}

/* ─── Typography ──────────────────────────────────────────────── */
.type-eyebrow {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--ink);
}

h1.type-display {
  font-size: clamp(40px, 6.5vw, 72px);
  font-weight: 300;
  line-height: 1.05;
}
h1.type-display em {
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}

h2 {
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.1;
}
h2 em { font-style: italic; color: var(--accent); }

h3.type-h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: -0.005em;
}

.subsection-title {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 15px;
  color: var(--accent);
  font-weight: 400;
}

/* ─── Sections ────────────────────────────────────────────────── */
section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 96px 40px;
}

.section-eyebrow { margin-bottom: 14px; }

.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head h2 { margin-bottom: 16px; }
.section-head p {
  font-size: 17px;
  color: var(--ink-soft);
  line-height: 1.6;
}

.region {
  background: var(--wash-paper);
  border-top: 1px solid var(--line-whisper);
  border-bottom: 1px solid var(--line-whisper);
}

/* ─── Footer ──────────────────────────────────────────────────── */
footer {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 40px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--ink-muted);
  font-size: 13px;
}
footer a {
  color: var(--ink-muted);
  text-decoration: none;
  transition: color 0.2s;
}
footer a:hover { color: var(--accent); }
.footer-tagline {
  font-family: var(--font-display);
  font-style: italic;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: flex-end;
}

/* ─── Ornate divider ──────────────────────────────────────────── */
.divider-ornate {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 600px;
  margin: 0 auto 32px;
  color: var(--ink-muted);
}
.divider-ornate::before,
.divider-ornate::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line-soft);
}
.divider-ornate .mark {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 13px;
  color: var(--accent);
  letter-spacing: 0.02em;
}

/* ─── Mobile ──────────────────────────────────────────────────── */
@media (max-width: 820px) {
  nav { padding: 20px 20px 16px; flex-wrap: wrap; gap: 12px; }
  .nav-right { flex-basis: 100%; justify-content: space-between; flex-wrap: wrap; }
  section { padding: 64px 20px; }
  footer { padding: 32px 20px 40px; flex-direction: column; text-align: center; }
}
