:root {
  --sage: #C9A582;
  --sage-dark: #A68B6A;
  --sage-light: #E5D4C0;
  --sage-subtle: #F5EDE3;
  --warm-white: #FDF8F3;
  --cream: #F7EDE3;
  --charcoal: #4A4039;
  --charcoal-light: #6B5E52;
  --muted: #8B7E72;
  --muted-light: #B5A99D;
  --info: #9BC4B4;
  --info-bg: #F5FAF8;
  --urgent: #D4897A;
  --white: #ffffff;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', system-ui, -apple-system, sans-serif;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 4px 24px rgba(74, 64, 57, 0.08);
  --shadow-lg: 0 12px 48px rgba(74, 64, 57, 0.14);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--warm-white);
  color: var(--charcoal);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ─── TYPOGRAPHY ─── */
h1, h2, h3 { font-family: var(--font-display); line-height: 1.2; }
h1 { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 700; }
h3 { font-size: 1.3rem; font-weight: 600; }
p  { color: var(--charcoal-light); font-size: 1.05rem; }

/* ─── LAYOUT ─── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
section { padding: 96px 0; }

/* ─── NAV ─── */
nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(253, 248, 243, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--cream);
  padding: 16px 0;
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-size: 1.35rem; font-weight: 700;
  color: var(--charcoal); text-decoration: none;
}
.logo-icon {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--sage-subtle);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  border: 1px solid var(--sage-light);
}
.nav-links { display: flex; align-items: center; gap: 32px; list-style: none; }
.nav-links a {
  color: var(--muted); text-decoration: none;
  font-size: 0.95rem; font-weight: 500; transition: color 0.2s;
}
.nav-links a:hover { color: var(--charcoal); }
.btn-nav {
  background: var(--sage); color: var(--white) !important;
  padding: 10px 22px; border-radius: 50px;
  font-weight: 600; font-size: 0.9rem; text-decoration: none;
  transition: background 0.2s, transform 0.1s;
}
.btn-nav:hover { background: var(--sage-dark) !important; transform: translateY(-1px); }

/* ─── BUTTONS ─── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--sage); color: var(--white);
  padding: 16px 32px; border-radius: 50px;
  font-weight: 700; font-size: 1rem; text-decoration: none;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(201, 165, 130, 0.4);
}
.btn-primary:hover {
  background: var(--sage-dark); transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(201, 165, 130, 0.5);
}
.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--white); color: var(--charcoal);
  padding: 16px 32px; border-radius: 50px;
  font-weight: 600; font-size: 1rem; text-decoration: none;
  border: 1.5px solid var(--sage-light);
  transition: border-color 0.2s, transform 0.15s;
}
.btn-secondary:hover { border-color: var(--sage); transform: translateY(-2px); }

/* ─── HERO ─── */
#hero {
  padding: 80px 0 0;
  text-align: center;
  background: linear-gradient(160deg, var(--warm-white) 50%, var(--cream) 100%);
  overflow: hidden;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--sage-subtle); color: var(--sage-dark);
  padding: 6px 16px; border-radius: 50px;
  font-size: 0.82rem; font-weight: 600; margin-bottom: 28px;
  border: 1px solid var(--sage-light);
}
#hero h1 { max-width: 760px; margin: 0 auto 20px; }
#hero p.subtitle {
  max-width: 540px; margin: 0 auto 40px;
  font-size: 1.15rem; color: var(--muted); line-height: 1.7;
}
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 72px; }

/* ─── PHONE MOCKUP ─── */
.hero-phones {
  display: flex; justify-content: center; align-items: flex-end;
  gap: 24px; padding-bottom: 0;
}
.phone-wrap {
  display: flex; flex-direction: column; align-items: center;
}
.phone-wrap.side {
  transform: scale(0.82) translateY(20px);
  opacity: 0.7;
}
.phone-frame {
  width: 240px;
  background: #2A2521;
  border-radius: 44px;
  padding: 10px;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(74,64,57,0.2);
  position: relative;
}
.phone-frame.wide { width: 260px; border-radius: 48px; padding: 12px; }
.phone-notch {
  position: absolute; top: 18px; left: 50%; transform: translateX(-50%);
  width: 80px; height: 5px; background: #1A1613;
  border-radius: 3px; z-index: 10;
}
.phone-screen {
  background: var(--warm-white);
  border-radius: 36px;
  overflow: hidden;
  min-height: 460px;
}
.phone-screen.tall { min-height: 520px; }

/* Scan screen */
.ps-scan {
  display: flex; flex-direction: column; align-items: center;
  padding: 40px 20px 28px; gap: 0;
  height: 100%;
}
.ps-header {
  font-family: var(--font-display); font-size: 1.05rem;
  font-weight: 700; color: var(--charcoal); margin-bottom: 24px;
}
.ps-scan-ring {
  width: 130px; height: 130px; border-radius: 65px;
  background: rgba(201,165,130,0.12);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.ps-scan-btn {
  width: 110px; height: 110px; border-radius: 55px;
  background: linear-gradient(135deg, var(--sage), var(--sage-dark));
  display: flex; align-items: center; justify-content: center;
  font-size: 44px;
  box-shadow: 0 6px 24px rgba(201, 165, 130, 0.5);
}
.ps-tap { font-size: 1rem; font-weight: 700; color: var(--charcoal); margin-bottom: 4px; }
.ps-sub { font-size: 0.72rem; color: var(--muted); text-align: center; line-height: 1.5; margin-bottom: 24px; }
.ps-card {
  width: 100%; background: var(--white);
  border-radius: 14px; padding: 12px 14px;
  border: 1px solid var(--cream); margin-bottom: 8px;
}
.ps-card-tag {
  font-size: 0.65rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.05em; margin-bottom: 3px;
}
.ps-card-text { font-size: 0.75rem; color: var(--charcoal-light); line-height: 1.4; }

/* Letter detail screen */
.ps-detail {
  padding: 28px 18px;
}
.ps-detail-top {
  display: flex; align-items: center; gap: 10px; margin-bottom: 18px;
}
.ps-avatar {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--sage-subtle); display: flex;
  align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; color: var(--sage-dark);
  border: 1px solid var(--sage-light);
}
.ps-sender { font-size: 0.78rem; font-weight: 700; color: var(--charcoal); }
.ps-date { font-size: 0.65rem; color: var(--muted); }
.ps-status-pill {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 50px;
  font-size: 0.62rem; font-weight: 700; margin-bottom: 14px;
}
.ps-headline {
  font-size: 0.88rem; font-weight: 700; color: var(--charcoal);
  line-height: 1.4; margin-bottom: 12px;
}
.ps-summary-block {
  background: var(--warm-white); border-radius: 10px;
  padding: 10px 12px; margin-bottom: 8px;
  border: 1px solid var(--cream);
}
.ps-summary-label {
  font-size: 0.6rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--muted); margin-bottom: 3px;
}
.ps-summary-text { font-size: 0.72rem; color: var(--charcoal-light); line-height: 1.45; }

/* ─── SECTION CHIP ─── */
.section-chip {
  display: inline-block;
  background: var(--sage-subtle); color: var(--sage-dark);
  padding: 4px 14px; border-radius: 50px;
  font-size: 0.78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em;
  margin-bottom: 16px; border: 1px solid var(--sage-light);
}

/* ─── FEATURES ─── */
#features { background: var(--white); }
.section-header { text-align: center; margin-bottom: 64px; }
.section-header p { max-width: 500px; margin: 12px auto 0; }
.features-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.feature-card {
  background: var(--warm-white);
  border-radius: var(--radius); padding: 32px 28px;
  border: 1px solid var(--cream);
  transition: transform 0.2s, box-shadow 0.2s;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature-icon {
  width: 52px; height: 52px; border-radius: 16px;
  background: var(--sage-subtle); border: 1px solid var(--sage-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; margin-bottom: 20px;
}
.feature-card h3 { margin-bottom: 8px; font-size: 1.05rem; }
.feature-card p { font-size: 0.93rem; line-height: 1.7; }

/* ─── HOW IT WORKS ─── */
#how-it-works {
  background: linear-gradient(160deg, var(--warm-white) 0%, var(--cream) 100%);
}
.steps {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 48px;
}
.step { text-align: center; }
.step-number {
  width: 56px; height: 56px; border-radius: 28px;
  background: linear-gradient(135deg, var(--sage), var(--sage-dark));
  color: var(--white); font-weight: 700; font-size: 1.2rem;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 4px 16px rgba(201, 165, 130, 0.4);
}
.step h3 { margin-bottom: 10px; }
.step p { font-size: 0.95rem; max-width: 260px; margin: 0 auto; line-height: 1.7; }

/* ─── ABOUT ─── */
#about { background: var(--white); }
.about-inner {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 72px; align-items: center;
}
.about-label {
  font-size: 0.8rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--sage-dark); margin-bottom: 16px;
}
.about-inner h2 { margin-bottom: 20px; }
.about-inner > .about-text p { margin-bottom: 16px; font-size: 1rem; line-height: 1.8; }
.belief-card {
  background: var(--warm-white); border-radius: var(--radius);
  padding: 36px; border: 1px solid var(--cream);
  box-shadow: var(--shadow);
}
.belief-card blockquote {
  font-family: var(--font-display); font-size: 1.15rem;
  line-height: 1.75; color: var(--charcoal); font-style: italic;
  border-left: 3px solid var(--sage); padding-left: 20px;
  margin-bottom: 20px;
}
.belief-attribution { font-size: 0.85rem; color: var(--muted); margin-bottom: 28px; }
.belief-points { display: flex; flex-direction: column; gap: 14px; }
.belief-point {
  display: flex; align-items: flex-start; gap: 12px;
}
.belief-point-icon { font-size: 18px; flex-shrink: 0; margin-top: 1px; }
.belief-point p { font-size: 0.9rem; margin: 0; line-height: 1.6; }

/* ─── DOWNLOAD ─── */
#download {
  background: var(--charcoal); text-align: center;
  padding: 96px 0;
}
#download .section-chip {
  background: rgba(201,165,130,0.15); color: var(--sage-light);
  border-color: rgba(201,165,130,0.3);
}
#download h2 { color: var(--white); margin-bottom: 16px; }
#download > .container > p {
  color: var(--muted-light); max-width: 480px;
  margin: 0 auto 48px; font-size: 1.05rem;
}
.store-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 40px; }
.store-btn {
  display: inline-flex; align-items: center; gap: 14px;
  background: rgba(255,255,255,0.07);
  border: 1.5px solid rgba(255,255,255,0.12);
  color: var(--white); text-decoration: none;
  padding: 16px 28px; border-radius: var(--radius-sm);
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
  min-width: 188px;
}
.store-btn:hover {
  background: rgba(255,255,255,0.13);
  border-color: rgba(255,255,255,0.28); transform: translateY(-2px);
}
.store-btn-icon { font-size: 26px; }
.store-btn-text small { display: block; font-size: 0.68rem; opacity: 0.55; }
.store-btn-text strong { font-size: 1rem; font-weight: 700; }
.region-row {
  display: flex; gap: 10px; justify-content: center;
  flex-wrap: wrap; margin-bottom: 28px;
}
.region-badge {
  background: rgba(255,255,255,0.05); color: rgba(255,255,255,0.45);
  padding: 7px 16px; border-radius: 50px; font-size: 0.82rem;
  border: 1px solid rgba(255,255,255,0.08);
}
.store-tagline { font-size: 0.82rem; color: var(--muted); opacity: 0.6; }

/* ─── FOOTER ─── */
footer {
  background: #221F1C; padding: 40px 0 28px;
  border-top: 1px solid rgba(255,255,255,0.04);
}
.footer-inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 20px;
}
.footer-logo {
  color: var(--sage-light); font-family: var(--font-display);
  font-size: 1.15rem; font-weight: 700;
  display: flex; align-items: center; gap: 8px;
}
.footer-links { display: flex; gap: 24px; list-style: none; flex-wrap: wrap; }
.footer-links a {
  color: var(--muted); font-size: 0.88rem; text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--sage-light); }
.footer-copy { color: var(--muted); font-size: 0.78rem; opacity: 0.5; }

/* ─── SOCIAL PROOF ─── */
#social-proof { background: var(--cream); }
#social-proof .section-header { margin-bottom: 48px; }

.stat-block {
  background: var(--white);
  border: 1px solid var(--sage-light);
  border-radius: var(--radius);
  padding: 40px 48px;
  margin-bottom: 48px;
  text-align: center;
}
.stat-headline {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.5vw, 1.7rem);
  font-weight: 700;
  color: var(--charcoal);
  line-height: 1.35;
  margin-bottom: 16px;
}
.stat-sub {
  font-size: 1rem;
  color: var(--charcoal-light);
  line-height: 1.7;
  max-width: 680px;
  margin: 0 auto;
}

.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testimonial-card {
  background: var(--white);
  border: 1px solid var(--sage-light);
  border-radius: var(--radius);
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.testimonial-text {
  font-size: 0.97rem;
  color: var(--charcoal-light);
  line-height: 1.75;
  font-style: italic;
}
.testimonial-author {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
}

@media (max-width: 900px) {
  .testimonials { grid-template-columns: 1fr; }
  .stat-block { padding: 28px 24px; }
}

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .about-inner { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 768px) {
  section { padding: 64px 0; }
  .nav-links { display: none; }
  .hero-phones .phone-wrap.side { display: none; }
  #hero { padding: 56px 0 0; }
}
@media (max-width: 480px) {
  h1 { font-size: 2.1rem; }
  .btn-primary, .btn-secondary { padding: 14px 24px; font-size: 0.95rem; }
}

/* ─── PRIVACY PAGE ─── */
.privacy-nav-back {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--muted); font-size: 0.88rem; text-decoration: none;
  padding: 10px 0; transition: color 0.2s;
}
.privacy-nav-back:hover { color: var(--charcoal); }
.privacy-content { max-width: 760px; margin: 0 auto; padding: 48px 24px 96px; }
.privacy-content h1 { margin-bottom: 8px; font-size: 2.4rem; }
.privacy-updated { color: var(--muted); font-size: 0.88rem; margin-bottom: 48px; display: block; }
.privacy-intro {
  background: var(--sage-subtle); border-radius: var(--radius);
  padding: 24px 28px; margin-bottom: 48px; border: 1px solid var(--sage-light);
}
.privacy-intro p { font-size: 0.98rem; line-height: 1.75; margin: 0; }
.privacy-content h2 {
  font-family: var(--font-display); font-size: 1.4rem; font-weight: 700;
  margin: 48px 0 14px; padding-top: 48px;
  border-top: 1px solid var(--cream);
  color: var(--charcoal);
}
.privacy-content h2:first-of-type { margin-top: 0; padding-top: 0; border-top: none; }
.privacy-content p, .privacy-content li {
  font-size: 0.97rem; line-height: 1.82; color: var(--charcoal-light);
}
.privacy-content p { margin-bottom: 14px; }
.privacy-content ul { padding-left: 20px; margin: 12px 0 20px; }
.privacy-content ul li { margin-bottom: 8px; }
.privacy-content strong { color: var(--charcoal); font-weight: 600; }
.privacy-content a { color: var(--sage-dark); text-decoration: underline; }
.privacy-content a:hover { color: var(--charcoal); }
.privacy-footer-note {
  margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--cream);
  font-size: 0.83rem; color: var(--muted); text-align: center;
}
