:root {
  --paper: #F6F1E7;
  --paper-2: #EFE8DA;
  --sand: #E7DECB;
  --ink: #23241F;
  --ink-soft: #55564d;
  --spruce: #2F5D45;
  --spruce-dark: #244a37;
  --moss: #6E8B5B;
  --clay: #C06B3E;
  --line: rgba(35, 36, 31, 0.12);
  --shadow: 0 18px 50px -20px rgba(35, 36, 31, 0.35);
  --radius: 18px;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container { width: min(1120px, 92vw); margin-inline: auto; }
.narrow { width: min(760px, 92vw); }
.center { text-align: center; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.1; letter-spacing: -0.01em; }
h1 em, h2 em { font-style: italic; color: var(--spruce); }
a { color: inherit; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 0.8rem 1.3rem; border-radius: 999px;
  font-weight: 600; font-size: 0.98rem; text-decoration: none;
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--spruce); color: #fbf7ef; box-shadow: 0 10px 24px -12px rgba(47, 93, 69, 0.9); }
.btn-primary:hover { background: var(--spruce-dark); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--spruce); color: var(--spruce); }
.btn-sm { padding: 0.55rem 1rem; font-size: 0.9rem; }
.btn-lg { padding: 0.95rem 1.5rem; font-size: 1.02rem; }

.app-store-btn { padding-block: 0.7rem; }
.app-store-btn svg { width: 22px; height: 22px; fill: currentColor; }
.app-store-btn span { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.05; text-align: left; }
.app-store-btn small { font-size: 0.62rem; font-weight: 500; opacity: 0.85; letter-spacing: 0.02em; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 241, 231, 0.82);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.site-header.scrolled { border-color: var(--line); box-shadow: 0 6px 24px -18px rgba(35,36,31,0.5); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 0.5rem; font-family: var(--serif); font-weight: 700; font-size: 1.25rem; text-decoration: none; color: var(--ink); }
.brand-mark { width: 28px; height: 28px; object-fit: contain; }
.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav a { text-decoration: none; font-weight: 500; color: var(--ink-soft); font-size: 0.96rem; }
.nav a:hover { color: var(--ink); }
.nav a.btn { color: #fbf7ef; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform 0.2s ease, opacity 0.2s ease; }
.mobile-nav { display: none; flex-direction: column; padding: 0.5rem 4vw 1.2rem; gap: 0.2rem; border-bottom: 1px solid var(--line); background: var(--paper); }
.mobile-nav a { padding: 0.7rem 0.2rem; text-decoration: none; color: var(--ink); font-weight: 500; border-bottom: 1px solid var(--line); }

/* Hero */
.hero { padding: clamp(3rem, 7vw, 6rem) 0 clamp(2rem, 5vw, 4rem); }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.18em; font-size: 0.78rem; font-weight: 600; color: var(--moss); margin: 0 0 1rem; }
.hero h1 { font-size: clamp(2.4rem, 5.5vw, 3.9rem); margin: 0 0 1.1rem; }
.lead { font-size: clamp(1.05rem, 2vw, 1.2rem); color: var(--ink-soft); margin: 0 0 1.8rem; max-width: 34ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: 0.8rem; align-items: center; }
.center-row { justify-content: center; }
.fineprint { margin-top: 1.1rem; font-size: 0.85rem; color: var(--ink-soft); }

/* Phone mockup */
.hero-visual { position: relative; display: flex; justify-content: center; }
.hero-visual::before {
  content: ""; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 88%; aspect-ratio: 1; z-index: 0; pointer-events: none;
  background: radial-gradient(circle, rgba(110, 139, 91, 0.30), rgba(110, 139, 91, 0) 68%);
  filter: blur(6px);
}
.phone {
  position: relative; z-index: 1; width: min(288px, 76vw); aspect-ratio: 288 / 598;
  background: linear-gradient(150deg, #3a3a40, #121214);
  border-radius: 48px; padding: 10px;
  box-shadow: 0 44px 80px -34px rgba(18, 18, 22, 0.62), 0 8px 20px -12px rgba(18, 18, 22, 0.45);
}
.phone::before {
  content: ""; position: absolute; inset: 3px; border-radius: 45px; z-index: 4; pointer-events: none;
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.10), inset 0 2px 4px rgba(255, 255, 255, 0.16);
}
.phone-island { position: absolute; top: 18px; left: 50%; transform: translateX(-50%); width: 90px; height: 27px; background: #08080a; border-radius: 999px; z-index: 5; }
.phone-screen { position: relative; height: 100%; background: linear-gradient(180deg, #FBF8F1, var(--paper)); border-radius: 40px; padding: 40px 20px 22px; display: flex; flex-direction: column; overflow: hidden; }
.phone-status { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; padding: 0 10px; color: var(--ink); }
.phone-time { font-size: 0.82rem; font-weight: 600; letter-spacing: 0.01em; }
.phone-icons { display: inline-flex; align-items: center; gap: 5px; color: var(--ink); }
.phone-icons svg { display: block; height: 11px; width: auto; }
.phone-icons .si-batt { height: 12px; }
.mini-eyebrow { font-size: 0.62rem; letter-spacing: 0.16em; font-weight: 700; color: var(--clay); margin: 0 0 0.5rem; }
.mini-quote { font-family: var(--serif); font-style: italic; font-size: 1.02rem; line-height: 1.35; margin: 0 0 0.5rem; }
.mini-book { font-size: 0.76rem; color: var(--ink-soft); margin: 0; }
.mini-arrow { align-self: flex-start; margin: 0.9rem 0 0.7rem; font-size: 0.66rem; font-weight: 600; letter-spacing: 0.02em; color: var(--moss); background: rgba(110, 139, 91, 0.13); padding: 4px 10px; border-radius: 999px; }
.mini-card { margin-top: auto; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px; box-shadow: 0 10px 24px -18px rgba(35,36,31,0.5); }
.mini-card-title { font-family: var(--serif); font-weight: 600; font-size: 1rem; margin: 0 0 0.25rem; }
.mini-card-body { font-size: 0.8rem; color: var(--ink-soft); margin: 0 0 0.7rem; }
.mini-progress { height: 7px; background: var(--sand); border-radius: 999px; overflow: hidden; }
.mini-progress span { display: block; height: 100%; background: var(--moss); }
.mini-streak { font-size: 0.78rem; margin: 0.55rem 0 0; font-weight: 600; }

/* Sections */
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.band { background: var(--paper-2); }
.section-head { max-width: 720px; margin: 0 auto clamp(2rem, 4vw, 3rem); }
.section-head.center { text-align: center; }
.kicker { text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.76rem; font-weight: 700; color: var(--moss); margin: 0 0 0.7rem; }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 0 0 0.8rem; }
.section-lead { font-size: clamp(1rem, 1.8vw, 1.12rem); color: var(--ink-soft); margin: 0 auto; max-width: 60ch; }

/* Why band */
.stat-row { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(1.5rem, 5vw, 3.5rem); margin-top: 2.4rem; }
.stat { display: flex; flex-direction: column; align-items: center; gap: 0.3rem; }
.stat-num { font-family: var(--serif); font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 700; color: var(--spruce); }
.stat-label { font-size: 0.9rem; color: var(--ink-soft); max-width: 18ch; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.step { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem 1.6rem; }
.band .step { background: #fff; }
.step-num { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: var(--spruce); color: #fbf7ef; font-family: var(--serif); font-weight: 700; margin-bottom: 1rem; }
.step h3 { font-size: 1.22rem; margin: 0 0 0.5rem; }
.step p { margin: 0; color: var(--ink-soft); }

/* Features */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; }
.feature-grid.three { grid-template-columns: repeat(3, 1fr); }
.feature { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem 1.4rem; }
.band .feature { background: var(--paper); }
.feature-icon { margin-bottom: 0.8rem; color: var(--spruce); }
.feature-icon svg { width: 30px; height: 30px; }
.feature h3 { font-size: 1.1rem; margin: 0 0 0.4rem; }
.feature p { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }

/* Agents */
.agents-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.check-list { list-style: none; padding: 0; margin: 1.4rem 0 1.8rem; display: grid; gap: 0.6rem; }
.check-list li { position: relative; padding-left: 1.9rem; color: var(--ink-soft); }
.check-list li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 1.3rem; height: 1.3rem; display: grid; place-items: center; background: var(--moss); color: #fff; border-radius: 50%; font-size: 0.78rem; font-weight: 700; }
.chat { background: var(--paper); border: 1px solid var(--line); border-radius: 24px; padding: 1.3rem; display: flex; flex-direction: column; gap: 0.7rem; box-shadow: var(--shadow); }
.band .chat { background: #fff; }
.bubble { padding: 0.8rem 1rem; border-radius: 16px; font-size: 0.94rem; max-width: 92%; }
.bubble.user { align-self: flex-end; background: var(--spruce); color: #fbf7ef; border-bottom-right-radius: 5px; }
.bubble.ai { align-self: flex-start; background: var(--sand); color: var(--ink); border-bottom-left-radius: 5px; }
.bubble.ai em { color: var(--spruce-dark); font-style: italic; }
.ai-tag { display: inline-block; font-size: 0.66rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--moss); margin-bottom: 0.25rem; }

/* CTA band */
.cta-band { background: linear-gradient(160deg, var(--spruce), var(--spruce-dark)); color: #f4efe4; padding: clamp(3.5rem, 8vw, 6rem) 0; }
.cta-band h2 { color: #fbf7ef; }
.cta-band .section-lead { color: rgba(244, 239, 228, 0.85); }
.cta-band .fineprint { color: rgba(244, 239, 228, 0.7); }
.cta-band .btn-primary { background: #fbf7ef; color: var(--spruce-dark); }
.cta-band .btn-primary:hover { background: #fff; }
.cta-band .cta-row { margin-top: 1.8rem; }

/* Footer */
.site-footer { background: var(--ink); color: #d9d6cc; padding: 3rem 0 2rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; padding-bottom: 1.8rem; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-brand .brand { color: #f4efe4; }
.footer-brand p { margin: 0.6rem 0 0; color: #a7a49a; max-width: 30ch; }
.footer-links { display: flex; gap: 1.4rem; flex-wrap: wrap; align-items: center; }
.footer-links a { text-decoration: none; color: #d9d6cc; font-size: 0.95rem; }
.footer-links a:hover { color: #fff; }
.footer-legal { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-top: 1.4rem; font-size: 0.86rem; color: #a7a49a; }
.footer-legal a { color: #a7a49a; text-decoration: none; }
.footer-legal a:hover { color: #fff; }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* Responsive */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .lead { max-width: none; }
  .agents-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .feature-grid, .feature-grid.three { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav { display: none; }
  .nav-toggle { display: flex; }
  .mobile-nav[hidden] { display: none; }
  .mobile-nav { display: flex; }
}
@media (max-width: 520px) {
  .feature-grid, .feature-grid.three { grid-template-columns: 1fr; }
  .footer-legal { flex-direction: column; }
}
