/* ───────────────────────────────────────────────────────────────
   After Glow design system — matches mobile app palette (Editorial Light)
   Source of truth: Color.kt in client-android module
   ─────────────────────────────────────────────────────────────── */
:root {
  /* Brand palette */
  --gold:        #D4AA5A;
  --gold-deep:   #A8854A;
  --gold-text:   #8B6E3A;
  --gold-pale:   #E8CFA0;
  --teal:        #0D9373;
  --teal-deep:   #0A6E57;
  --coral:       #E8765C;
  --rose:        #D85A7A;
  --rose-text:   #B43E5C;

  /* Surfaces */
  --ink:         #1A1612;
  --ink-muted:   #5C564D;
  --ink-subtle:  #8B847A;
  --ink-faint:   #B5AEA1;
  --cream:       #FAFAF7;
  --cream-warm:  #FFF6E8;
  --cream-deep:  #F5F0E8;
  --surface:     #FFFFFF;
  --surface-var: #F5F4EF;
  --border:      rgba(20, 16, 12, 0.08);
  --border-2:    rgba(20, 16, 12, 0.16);

  /* Type scale */
  --font-serif:  'Fraunces', Georgia, serif;
  --font-sans:   'Inter', system-ui, -apple-system, sans-serif;

  /* Easing */
  --ease:        cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color 0.2s var(--ease); }
button { font: inherit; cursor: pointer; border: none; background: none; }

/* ─── Layout helpers ─────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.bg-cream { background: var(--cream); }
.text-ink { color: var(--ink); }

/* ─── Header ─────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 250, 247, 0.85);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.logo-app-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  object-fit: cover;
  box-shadow: 0 3px 12px rgba(180, 60, 100, 0.25), 0 0 0 1px rgba(20, 16, 12, 0.05);
  display: block;
}
.logo-mark {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #E8CFA0 0%, #D4AA5A 50%, #A8854A 100%);
  box-shadow: 0 2px 8px rgba(212, 170, 90, 0.35);
  position: relative;
  flex-shrink: 0;
}
.logo-mark::after {
  content: "";
  position: absolute;
  inset: 7px;
  background: var(--cream);
  border-radius: 50%;
}
.logo-text {
  font-weight: 700;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 15px;
  font-weight: 500;
}
.nav-links a {
  color: var(--ink-muted);
}
.nav-links a:hover {
  color: var(--ink);
}
.btn-cta-mini {
  background: var(--ink);
  color: var(--cream) !important;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
}
.btn-cta-mini:hover {
  background: var(--gold-deep);
  color: var(--cream) !important;
}

/* ─── Hero ───────────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: 80px 0 100px;
  background:
    radial-gradient(ellipse at top, var(--cream-warm) 0%, transparent 60%),
    linear-gradient(to bottom, var(--cream) 0%, var(--cream-deep) 100%);
  overflow: hidden;
}
.hero::before {
  /* Subtle gold orb top-right */
  content: "";
  position: absolute;
  top: -150px;
  right: -100px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 170, 90, 0.18) 0%, transparent 70%);
  z-index: 0;
}
.hero::after {
  /* Subtle rose orb bottom-left */
  content: "";
  position: absolute;
  bottom: -200px;
  left: -150px;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(216, 90, 122, 0.10) 0%, transparent 70%);
  z-index: 0;
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 820px;
  text-align: center;
  margin: 0 auto;
}
.eyebrow {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(212, 170, 90, 0.12);
  color: var(--gold-text);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 24px;
}
.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 24px;
}
.serif-accent {
  color: var(--gold-deep);
  font-style: italic;
  font-weight: 500;
}
.hero-sub {
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.6;
  color: var(--ink-muted);
  max-width: 620px;
  margin: 0 auto 36px;
}

/* CTA buttons */
.cta-row {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  background: linear-gradient(135deg, var(--gold-pale) 0%, var(--gold) 50%, var(--gold-deep) 100%);
  color: var(--ink) !important;
  border-radius: 999px;
  font-weight: 700;
  font-size: 16px;
  box-shadow: 0 10px 30px rgba(212, 170, 90, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(212, 170, 90, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
.btn-secondary {
  display: inline-flex;
  align-items: center;
  padding: 16px 28px;
  border: 1.5px solid var(--border-2);
  border-radius: 999px;
  color: var(--ink) !important;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.2s var(--ease);
}
.btn-secondary:hover {
  background: var(--surface);
  border-color: var(--ink);
}

.hero-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 14px;
  color: var(--ink-subtle);
  flex-wrap: wrap;
}
.badge {
  display: inline-block;
  padding: 3px 8px;
  background: var(--ink);
  color: var(--cream);
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.dot {
  color: var(--ink-faint);
}

/* ─── Sections ───────────────────────────────────────────────── */
.features, .how-it-works {
  padding: 100px 0;
}
.section-title {
  font-family: var(--font-serif);
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.025em;
  text-align: center;
  margin-bottom: 16px;
}
.section-title.light {
  color: var(--cream);
}
.section-sub {
  text-align: center;
  font-size: 18px;
  color: var(--ink-muted);
  margin-bottom: 64px;
}

/* ─── Feature grid ───────────────────────────────────────────── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 36px 28px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(20, 16, 12, 0.08);
}
.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: white;
}
.icon-teal { background: linear-gradient(135deg, var(--teal) 0%, var(--teal-deep) 100%); }
.icon-gold { background: linear-gradient(135deg, var(--gold-pale) 0%, var(--gold) 50%, var(--gold-deep) 100%); }
.icon-rose { background: linear-gradient(135deg, var(--coral) 0%, var(--rose) 100%); }

.feature-card h3 {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}
.feature-card p {
  font-size: 15px;
  color: var(--ink-muted);
  line-height: 1.6;
}

/* ─── How it works ───────────────────────────────────────────── */
.how-it-works {
  background: linear-gradient(to bottom, var(--cream-deep) 0%, var(--cream) 100%);
}
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 36px;
  margin-top: 60px;
}
.step {
  text-align: center;
  position: relative;
}
.step-num {
  font-family: var(--font-serif);
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--gold);
  color: var(--gold-deep);
  font-size: 26px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}
.step h3 {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 8px;
}
.step p {
  font-size: 15px;
  color: var(--ink-muted);
  max-width: 260px;
  margin: 0 auto;
}

/* ─── Safety band ────────────────────────────────────────────── */
.safety-band {
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-deep) 100%);
  color: var(--cream);
  padding: 80px 0;
}
.safety-content {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}
.safety-icon {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.safety-content h2 {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}
.safety-content p {
  font-size: 17px;
  line-height: 1.65;
  opacity: 0.9;
  margin-bottom: 16px;
  max-width: 720px;
}
.link-arrow {
  display: inline-block;
  color: var(--cream);
  font-weight: 600;
  border-bottom: 1px solid rgba(250, 250, 247, 0.3);
  padding-bottom: 2px;
  transition: border-color 0.2s var(--ease);
}
.link-arrow:hover {
  border-color: var(--cream);
}

/* ─── Download ───────────────────────────────────────────────── */
.download {
  padding: 100px 0;
  background: var(--cream);
}
.download-card {
  background: linear-gradient(135deg, var(--ink) 0%, #2A2218 100%);
  color: var(--cream);
  border-radius: 32px;
  padding: 80px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.download-card::before {
  content: "";
  position: absolute;
  top: -200px;
  left: -100px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 170, 90, 0.2) 0%, transparent 70%);
}
.download-card::after {
  content: "";
  position: absolute;
  bottom: -150px;
  right: -100px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(216, 90, 122, 0.15) 0%, transparent 70%);
}
.download-card > * {
  position: relative;
  z-index: 1;
}
.download-sub {
  font-size: 18px;
  color: rgba(250, 250, 247, 0.7);
  max-width: 540px;
  margin: 16px auto 40px;
}
.store-badges {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.store-badges:has(.store-badge:only-child) .store-badge {
  padding: 18px 36px;
}
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 24px;
  background: var(--cream);
  color: var(--ink) !important;
  border-radius: 12px;
  transition: transform 0.2s var(--ease);
}
.store-badge:hover {
  transform: translateY(-2px);
}
.store-badge.disabled {
  background: rgba(250, 250, 247, 0.1);
  color: rgba(250, 250, 247, 0.4) !important;
  cursor: not-allowed;
  pointer-events: none;
}
.badge-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.badge-text small {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  opacity: 0.7;
}
.badge-text span {
  font-size: 18px;
  font-weight: 700;
  font-family: var(--font-serif);
}
.download-meta {
  font-size: 13px;
  color: rgba(250, 250, 247, 0.5);
}

/* ─── Footer ─────────────────────────────────────────────────── */
.site-footer {
  background: var(--ink);
  color: var(--cream);
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand .logo {
  color: var(--cream);
  margin-bottom: 16px;
}
.footer-brand .logo-mark::after {
  background: var(--ink);
}
.footer-tagline {
  color: rgba(250, 250, 247, 0.55);
  font-size: 15px;
  font-style: italic;
  max-width: 280px;
}
.footer-col h4 {
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(250, 250, 247, 0.7);
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  padding: 6px 0;
  color: rgba(250, 250, 247, 0.85);
  font-size: 14px;
}
.footer-col a:hover {
  color: var(--gold);
}
.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid rgba(250, 250, 247, 0.1);
  display: flex;
  justify-content: space-between;
  gap: 24px;
  font-size: 12px;
  color: rgba(250, 250, 247, 0.5);
  flex-wrap: wrap;
}
.footer-bottom p {
  margin-bottom: 4px;
}
.footer-address {
  max-width: 480px;
  line-height: 1.5;
}
.footer-region-notice {
  text-align: right;
  max-width: 360px;
}
.footer-region-notice a {
  color: rgba(250, 250, 247, 0.75);
  text-decoration: underline;
}
.footer-region-notice a:hover {
  color: var(--gold);
}

/* ─── Legal pages (PP / ToS / etc) ───────────────────────────── */
.legal-page {
  padding: 60px 0 80px;
  max-width: 820px;
  margin: 0 auto;
}
.legal-page h1 {
  font-family: var(--font-serif);
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--gold-deep);
  margin-bottom: 8px;
}
.legal-page .updated {
  color: var(--ink-subtle);
  font-size: 13px;
  margin-bottom: 32px;
}
.legal-page h2 {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
  margin-top: 36px;
  margin-bottom: 12px;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.legal-page p,
.legal-page li {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  margin-bottom: 12px;
}
.legal-page ul,
.legal-page ol {
  padding-left: 24px;
  margin-bottom: 16px;
}
.legal-page a {
  color: var(--gold-deep);
  border-bottom: 1px solid var(--gold-pale);
  font-weight: 500;
}
.legal-page a:hover {
  border-bottom-color: var(--gold-deep);
}
.legal-page strong {
  font-weight: 600;
  color: var(--ink);
}
.back-to-home {
  display: inline-block;
  margin-bottom: 32px;
  color: var(--ink-muted);
  font-size: 14px;
}
.back-to-home:hover {
  color: var(--gold-deep);
}

/* ─── Responsive ─────────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-links { gap: 16px; }
  .nav-links a:not(.btn-cta-mini) { display: none; }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer-bottom {
    flex-direction: column;
  }
  .footer-region-notice {
    text-align: left;
  }
  .safety-content {
    text-align: center;
    flex-direction: column;
    gap: 24px;
  }
  .hero { padding: 60px 0 80px; }
  .features, .how-it-works, .download { padding: 64px 0; }
  .download-card { padding: 56px 24px; }
}

