/* Life Admin marketing site — shared styles.
 *
 * Tokens mirror the iOS app's `Theme/AppColors.swift` so the website and the
 * product feel like the same brand. Inter as the body face (geometric, clean,
 * close-enough to SF Pro for cross-platform parity); brand display set in
 * the same Inter at heavier weights.
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
  /* Surface */
  --bg:           #FAF6EE;
  --bg-2:         #F5EEE0;
  --card:         #FFFFFF;
  --card-tint:    #F5EEE0;

  /* Ink scale (text + icon greys, all WCAG-AA on cream) */
  --ink-1:        #1A1410;
  --ink-2:        #3D332B;
  --ink-3:        #6A5E55;
  --ink-4:        #8C8580;
  --ink-5:        #B5ADA6;

  /* Hairlines */
  --line-1:       #EDE5D6;
  --line-2:       #E0D6C2;

  /* Brand persimmon */
  --coral:        #E55A2B;
  --coral-deep:   #A83C18;
  --coral-light:  #FDE8DD;

  /* Secondary */
  --sage-deep:    #3F6A4D;
  --savings:      #2F7F4E;

  /* Hero gradient (from the app's Today hero) */
  --hero-from:    #B8472A;
  --hero-to:      #8E3517;
  --hero-cream:   #FBEFE6;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-1);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Type scale */
.eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--coral-deep);
}
.eyebrow-ink { color: var(--ink-3); }

h1, .h1 {
  font-size: clamp(2.25rem, 5vw + 1rem, 4.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--ink-1);
  margin: 0;
}
h2, .h2 {
  font-size: clamp(1.75rem, 3vw + 0.5rem, 3rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink-1);
  margin: 0 0 0.5rem 0;
}
h3, .h3 {
  font-size: clamp(1.25rem, 1.5vw + 0.5rem, 1.625rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--ink-1);
  margin: 0 0 0.5rem 0;
}
p { margin: 0 0 1rem 0; color: var(--ink-2); }
.lead { font-size: 1.25rem; line-height: 1.5; color: var(--ink-2); }

a { color: var(--coral-deep); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Layout */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.container-narrow { max-width: 800px; margin: 0 auto; padding: 0 1.5rem; }

section { padding: 5rem 0; }
@media (min-width: 768px) { section { padding: 6.5rem 0; } }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 246, 238, 0.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line-1);
}
.site-header .nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-weight: 700;
  font-size: 1.0625rem;
  color: var(--ink-1);
}
.brand img { width: 28px; height: 28px; border-radius: 6px; }
.nav-links {
  display: none;
  gap: 1.5rem;
  align-items: center;
}
@media (min-width: 768px) { .nav-links { display: flex; } }
.nav-links a {
  color: var(--ink-2);
  font-weight: 500;
  font-size: 0.95rem;
}
.nav-links a:hover { color: var(--coral-deep); text-decoration: none; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--coral);
  color: #fff;
  box-shadow: 0 8px 24px rgba(229, 90, 43, 0.32),
              0 1px 0 rgba(255, 255, 255, 0.15) inset;
}
.btn-primary:hover { background: #d44d23; box-shadow: 0 10px 28px rgba(229, 90, 43, 0.4); }

.btn-secondary {
  background: var(--card);
  color: var(--ink-1);
  border-color: var(--line-2);
}
.btn-secondary:hover { background: #fff; border-color: var(--ink-3); }

.btn-ghost {
  background: transparent;
  color: var(--ink-2);
}
.btn-ghost:hover { background: var(--bg-2); }

.btn-sm { padding: 0.5rem 1rem; font-size: 0.9rem; }

/* Hero gradient banner (mirrors the Today hero in the iOS app) */
.hero-banner {
  background: linear-gradient(135deg, var(--hero-from), var(--hero-to));
  color: var(--hero-cream);
  border-radius: 24px;
  padding: 1.75rem;
  box-shadow: 0 20px 50px rgba(142, 53, 23, 0.35);
}
.hero-banner .label {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.78;
}
.hero-banner .amount {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-top: 0.25rem;
  font-variant-numeric: tabular-nums;
}
.hero-banner .sub {
  opacity: 0.78;
  font-size: 0.95rem;
  margin-top: 0.25rem;
}

/* Card primitive */
.card {
  background: var(--card);
  border-radius: 18px;
  padding: 1.5rem;
  border: 1px solid var(--line-1);
}
.card-tint { background: var(--card-tint); border-color: var(--line-2); }

/* Risk amount block (used in hero + reveal-style sections) */
.risk-amount {
  font-size: clamp(2.75rem, 5vw + 0.5rem, 4rem);
  font-weight: 900;
  color: var(--coral);
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.bonus-amount {
  font-weight: 700;
  color: var(--savings);
  font-size: 1.5rem;
}

/* Pillar grid */
.pillar-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 768px) { .pillar-grid { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; } }
.pillar {
  background: var(--card);
  padding: 2rem;
  border-radius: 20px;
  border: 1px solid var(--line-1);
  height: 100%;
}
.pillar .icon-tile {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--coral-light);
  color: var(--coral-deep);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

/* Country grid */
.country-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}
@media (min-width: 480px) { .country-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 768px) { .country-grid { grid-template-columns: repeat(5, 1fr); } }
@media (min-width: 1024px) { .country-grid { grid-template-columns: repeat(6, 1fr); } }
.country-pill {
  background: var(--card);
  border: 1px solid var(--line-1);
  border-radius: 12px;
  padding: 0.75rem 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-2);
}
.country-pill .flag { font-size: 1.125rem; line-height: 1; }

/* Pricing */
.price-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}
@media (min-width: 768px) { .price-grid { grid-template-columns: repeat(2, 1fr); } }
.price-card {
  background: var(--card);
  border: 1px solid var(--line-2);
  border-radius: 22px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
}
.price-card-pro {
  background: linear-gradient(180deg, #fff, #fffaf6);
  border: 2px solid var(--coral);
  position: relative;
}
.price-card-pro::before {
  content: 'Most popular';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--coral);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
}
.price-card .price {
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--ink-1);
  margin: 0.5rem 0;
}
.price-card .price small { font-size: 1rem; font-weight: 500; color: var(--ink-3); }
.price-card ul { margin: 1rem 0 1.5rem 0; padding: 0; list-style: none; }
.price-card li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.4rem 0;
  color: var(--ink-2);
  font-size: 0.95rem;
}
.price-card li::before {
  content: '✓';
  color: var(--savings);
  font-weight: 700;
  flex-shrink: 0;
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 768px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: var(--coral);
  color: #fff;
  font-weight: 700;
  margin-bottom: 1rem;
}

/* Footer */
.site-footer {
  background: #fff;
  border-top: 1px solid var(--line-1);
  padding: 3rem 0 2rem;
  margin-top: 3rem;
}
.site-footer .row {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: flex-start;
}
@media (min-width: 768px) {
  .site-footer .row {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}
.site-footer .links { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.site-footer .links a { color: var(--ink-3); font-size: 0.9rem; }
.site-footer .copy {
  font-size: 0.85rem;
  color: var(--ink-4);
  margin-top: 1.5rem;
}

/* Legal page styles */
.legal h2 { margin-top: 2rem; font-size: 1.5rem; }
.legal h3 { margin-top: 1.5rem; font-size: 1.125rem; }
.legal p, .legal li { color: var(--ink-2); }
.legal ul { padding-left: 1.25rem; }
.legal li { margin: 0.4rem 0; }
.legal .last-updated {
  color: var(--ink-3);
  font-size: 0.875rem;
  margin-bottom: 2rem;
}

/* Comparison row (calendar reminder vs Life Admin) */
.compare-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 768px) { .compare-grid { grid-template-columns: 1fr 1fr; gap: 1.25rem; } }
.compare-card {
  border-radius: 18px;
  padding: 1.5rem;
  border: 1px solid var(--line-1);
}
.compare-card .label {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.compare-dim { background: var(--bg-2); }
.compare-dim .label { color: var(--ink-4); }
.compare-bright { background: #fff; border-color: var(--coral-light); }
.compare-bright .label { color: var(--coral-deep); }

/* FAQ */
details {
  border-bottom: 1px solid var(--line-1);
  padding: 1rem 0;
}
details summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--ink-1);
}
details summary::-webkit-details-marker { display: none; }
details summary::after {
  content: '+';
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--ink-3);
  transition: transform 0.2s;
}
details[open] summary::after { content: '−'; }
details > p {
  margin-top: 0.75rem;
  color: var(--ink-3);
}

/* Utility */
.text-center { text-align: center; }
.text-coral-deep { color: var(--coral-deep); }
.text-ink-3 { color: var(--ink-3); }
.text-savings { color: var(--savings); }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-12 { margin-top: 3rem; }
.mb-2 { margin-bottom: 0.5rem; }
.flex-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.justify-center { justify-content: center; }
.divider {
  height: 1px;
  background: var(--line-1);
  border: 0;
  margin: 2.5rem 0;
}
