/* Color Glow — colorglow.app
   Brand tokens mirrored 1:1 from the app (app/lib/core/theme/cg_tokens.dart).
   Style direction: qoves-adapted restraint (dev-plans/website-2026-07-26.md) —
   huge quiet type, one idea per section, eyebrow labels, pill buttons —
   in Color Glow's warm palette, never the clinical gray. */

/* Self-hosted variable fonts (latin) — zero third-party requests;
   Google-Fonts hot-loading ships visitor IPs to Google (LG München). */
@font-face {
  font-family: "Piazzolla";
  src: url("assets/fonts/piazzolla-var-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("assets/fonts/inter-var-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --cream-50: #FDFAF5;
  --cream-100: #F8F1E7;
  --cream-200: #F1E7D8;
  --taupe-100: #E4D9CB;
  --taupe-200: #C9B8A3;
  --taupe-300: #A8907B;
  --sage-100: #E2E7DA;
  --sage-500: #54644A;
  --terracotta-100: #F3D9C9;
  --terracotta-300: #D08862;
  --terracotta-400: #BC6640;
  --terracotta-500: #93492C;
  --ink-900: #2A2118;
  --ink-700: #4A3E31;
  --ink-500: #6E5F4F;
  --white: #FFFFFF;

  --font-display: "Piazzolla", Georgia, serif;
  --font-body: "Inter", -apple-system, system-ui, sans-serif;

  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-pill: 999px;
  --max-width: 1080px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--cream-50);
  color: var(--ink-900);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* ---------- type ---------- */

.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--terracotta-500);
}

h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.6rem, 6.5vw, 4.6rem);
  line-height: 1.06;
  letter-spacing: -0.01em;
}

h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  line-height: 1.15;
}

h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.25rem;
}

.sub {
  color: var(--ink-500);
  font-size: 1.125rem;
  max-width: 34em;
}

/* ---------- nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(253, 250, 245, 0.92); /* iOS<16.2 fallback */
  background: color-mix(in srgb, var(--cream-50) 88%, transparent);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--taupe-100);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--ink-900);
  text-decoration: none;
}
.nav-logo span { color: var(--terracotta-400); }

.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a {
  color: var(--ink-700);
  text-decoration: none;
  font-size: 0.95rem;
}
.nav-links a:hover { color: var(--terracotta-500); }

.btn {
  display: inline-block;
  /* terracotta-500 base: white text passes WCAG AA (review finding) */
  background: var(--terracotta-500);
  color: var(--white);
  border: none;
  border-radius: var(--radius-pill);
  padding: 13px 28px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease;
}
.btn:hover { background: #7A3A22; }
.btn.small { padding: 9px 20px; font-size: 0.9rem; }
.btn.ghost {
  background: transparent;
  color: var(--ink-900);
  border: 1.5px solid var(--taupe-200);
}
.btn.ghost:hover { border-color: var(--terracotta-400); color: var(--terracotta-500); background: transparent; }

/* ---------- hero ---------- */

.hero { padding: 72px 0 40px; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
}

.hero-copy > * + * { margin-top: 20px; }

.hero-ctas { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }

.hero-note { font-size: 0.85rem; color: var(--ink-500); }

.trust-row {
  display: flex;
  gap: 32px;
  margin-top: 44px;
  padding-top: 24px;
  border-top: 1px solid var(--taupe-100);
}
.trust-row div strong {
  display: block;
  font-size: 0.95rem;
  color: var(--ink-900);
}
.trust-row div span { font-size: 0.85rem; color: var(--ink-500); }

/* ---------- before/after slider ---------- */

.ba-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: 0 24px 60px -24px rgba(42, 33, 24, 0.35);
  user-select: none;
  touch-action: pan-y; /* vertical page scroll must survive the card */
  cursor: ew-resize;
}

.ba-pane { position: absolute; inset: 0; }
.ba-pane svg,
.ba-pane img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  /* the slider owns ALL pointer interaction — never native image drag
     (desktop bug: grabbing the divider ghost-dragged the photo) */
  pointer-events: none;
  -webkit-user-drag: none;
  user-select: none;
}

.ba-after { clip-path: inset(0 0 0 50%); }

.ba-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: var(--white);
  transform: translateX(-1px);
  pointer-events: none;
}

.ba-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--white);
  display: grid;
  place-items: center;
  font-size: 14px;
  color: var(--ink-700);
  box-shadow: 0 4px 14px rgba(42, 33, 24, 0.25);
  pointer-events: none;
  letter-spacing: -1px;
}

.ba-tag {
  position: absolute;
  top: 14px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: rgba(42, 33, 24, 0.55);
  color: var(--cream-50);
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.ba-tag.left { left: 14px; }
.ba-tag.right { right: 14px; }

.ba-caption {
  text-align: center;
  font-size: 0.85rem;
  color: var(--ink-500);
  margin-top: 14px;
}

/* ---------- season strip ---------- */

.season-strip {
  display: flex;
  height: 18px;
  border-radius: var(--radius-pill);
  overflow: hidden;
  margin: 56px 0 0;
}
.season-strip i { flex: 1; }

/* ---------- sections ---------- */

section { padding: 88px 0; }
section.alt { background: var(--cream-100); }

.section-head { max-width: 620px; margin-bottom: 52px; }
.section-head > * + * { margin-top: 14px; }

/* how it works */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.step {
  background: var(--white);
  border: 1px solid var(--taupe-100);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
}
.step .num {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--terracotta-300);
}
.step h3 { margin: 10px 0 8px; }
.step p { color: var(--ink-500); font-size: 0.98rem; }

/* what you get */
.get-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 40px;
}
.get-item {
  display: flex;
  gap: 12px;
  align-items: baseline;
  font-size: 1.02rem;
}
.get-item::before {
  content: "✓";
  color: var(--terracotta-400);
  font-weight: 700;
}
.get-item span { color: var(--ink-500); font-size: 0.9rem; }

/* privacy moat */
.promises {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.promise {
  border-top: 2px solid var(--terracotta-400);
  padding-top: 20px;
}
.promise h3 { margin-bottom: 8px; }
.promise p { color: var(--ink-500); font-size: 0.98rem; }

/* pricing */
.price-card {
  background: var(--white);
  border: 1px solid var(--taupe-100);
  border-radius: 20px;
  padding: 44px 40px;
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}
.price-strike {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--taupe-200);
  text-decoration: line-through;
  text-decoration-color: var(--taupe-300);
}
.price-main {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5vw, 3.6rem);
  color: var(--terracotta-500);
  line-height: 1.1;
}
.price-sub { color: var(--ink-500); margin-top: 10px; font-size: 0.95rem; }
.price-alt { margin-top: 18px; font-size: 0.95rem; color: var(--ink-700); }

/* comparison rows */
.compare {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 46px;
  text-align: center;
}
.compare div strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.7rem;
  color: var(--ink-900);
}
.compare div span { font-size: 0.88rem; color: var(--ink-500); }

/* FAQ */
.faq { max-width: 720px; }
.faq details {
  border-bottom: 1px solid var(--taupe-100);
  padding: 20px 0;
}
.faq summary {
  font-weight: 600;
  font-size: 1.05rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--terracotta-400); font-size: 1.3rem; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin-top: 12px; color: var(--ink-500); }

/* final CTA */
.cta-final { text-align: center; }
.cta-final .btn { margin-top: 26px; }

/* ---------- footer ---------- */

footer {
  background: var(--ink-900);
  color: var(--taupe-200);
  padding: 48px 0;
  font-size: 0.9rem;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
}
.footer-links { display: flex; gap: 12px 24px; flex-wrap: wrap; }
footer a { color: var(--cream-50); text-decoration: none; }
footer a:hover { color: var(--terracotta-300); }

/* ---------- legal pages ---------- */

.legal {
  max-width: 720px;
  margin: 0 auto;
  padding: 64px 24px 96px;
}
.legal h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 8px; }
.legal .updated { color: var(--ink-500); font-size: 0.9rem; margin-bottom: 40px; }
.legal h2 { font-size: 1.4rem; margin: 40px 0 12px; }
.legal p, .legal li { color: var(--ink-700); margin-bottom: 12px; }
.legal ul { padding-left: 22px; margin-bottom: 12px; }
.legal a { color: var(--terracotta-500); }
.legal .callout {
  background: var(--terracotta-100);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  margin: 20px 0;
  color: var(--ink-900);
}

/* ---------- responsive ---------- */

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding-top: 40px; }
  .ba-card { max-width: 420px; margin: 0 auto; }
  .hero-ctas .btn { width: 100%; text-align: center; }
  .steps, .promises, .compare { grid-template-columns: 1fr; }
  .get-grid { grid-template-columns: 1fr; }
  .nav-links a.hide-mobile { display: none; }
  .trust-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
  }
  .trust-row div strong { font-size: 0.88rem; }
  .trust-row div span { font-size: 0.78rem; }
  section { padding: 64px 0; }
}

/* ---------- store buttons — the app's own button language ---------- */

.badges { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 56px;
  padding: 0 22px 0 16px;
  background: var(--white);
  border: 1px solid var(--taupe-100);
  border-radius: var(--radius-lg);
  color: var(--ink-900);
  text-decoration: none;
  box-shadow: 0 1px 4px rgba(42, 33, 24, 0.08);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.store-btn:hover {
  border-color: var(--terracotta-400);
  box-shadow: 0 3px 10px rgba(42, 33, 24, 0.14);
}
.store-btn img { width: 26px; height: 26px; }
.store-btn span {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  font-weight: 600;
  font-size: 1.05rem;
  white-space: nowrap;
}
.store-btn span small {
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--ink-500);
  letter-spacing: 0.02em;
}

.nav-badges .store-btn {
  height: 40px;
  gap: 8px;
  padding: 0 14px 0 10px;
}
.nav-badges .store-btn img { width: 20px; height: 20px; }
.nav-badges .store-btn span { font-size: 0.85rem; }
.nav-badges .store-btn span small { display: none; }

.hero-badges { margin-top: 26px; }
.cta-badges { justify-content: center; margin-top: 28px; }

@media (max-width: 860px) {
  .nav-badges .store-btn span { display: none; }
  .nav-badges .store-btn { padding: 0 12px; gap: 0; }
  .hero-badges { gap: 10px; }
  .hero-badges .store-btn { padding: 0 16px 0 12px; }
}

/* ---------- review-driven a11y/compat ---------- */

:focus-visible {
  outline: 2px solid var(--terracotta-500);
  outline-offset: 3px;
  border-radius: 4px;
}

@supports not (aspect-ratio: 1) {
  .ba-card { height: 480px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
