/* ==========================================================================
   Phone-Pal — evergreen editorial design system
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=Source+Sans+3:wght@400;500;600;700&display=swap');

:root {
  --cream: #FAF6EE;
  --cream-deep: #EAEEDD;
  --paper: #FFFFFF;
  --ink: #23291F;
  --ink-soft: #4E5A46;
  --ink-faint: #5E6B54; /* WCAG AA checked against cream/cream-deep/paper */
  --sprout: #4B7A5A;
  --sprout-deep: #365A40;
  --gold: #C99A3E;
  --line: #DCE0CC;
  --dark: #1E281F;
  --dark-card: #283428;

  --shadow-sm: 0 2px 10px rgba(30, 40, 31, 0.06);
  --shadow-md: 0 10px 30px rgba(30, 40, 31, 0.10);
  --shadow-lg: 0 20px 50px rgba(30, 40, 31, 0.16);

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Source Sans 3', -apple-system, BlinkMacSystemFont, sans-serif;

  --r-sm: 12px;
  --r-md: 20px;
  --r-lg: 28px;
}

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

html { scroll-behavior: smooth; font-size: 18px; }

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

.container { max-width: 1180px; margin: 0 auto; padding: 0 28px; }
.container-narrow { max-width: 820px; margin: 0 auto; padding: 0 28px; }

img { max-width: 100%; display: block; }

a { color: inherit; }

/* ---------- Header ---------- */
header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 246, 238, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand-mark { width: 40px; height: 40px; flex-shrink: 0; }
.brand-name { font-family: var(--font-display); font-size: 24px; font-weight: 600; letter-spacing: -0.2px; }
.nav-links { display: flex; list-style: none; gap: 30px; align-items: center; }
.nav-links a { text-decoration: none; color: var(--ink-soft); font-weight: 600; font-size: 17px; transition: color .2s; }
.nav-links a:hover { color: var(--sprout-deep); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 28px; font-size: 18px; font-weight: 700; font-family: var(--font-body);
  border-radius: var(--r-sm); text-decoration: none; cursor: pointer; border: none;
  transition: all .2s ease; min-height: 54px; white-space: nowrap;
}
.btn-primary { background: var(--sprout); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--sprout-deep); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-ghost { background: transparent; color: var(--ink); border: 2px solid var(--line); }
.btn-ghost:hover { border-color: var(--sprout); color: var(--sprout-deep); }
.btn-dark { background: var(--dark); color: var(--cream); }
.btn-dark:hover { background: #000; }
.btn-sm { padding: 10px 20px; font-size: 15px; min-height: 42px; }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 96px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--cream-deep); color: var(--sprout-deep);
  border: 1px solid var(--line); padding: 8px 18px; border-radius: 30px;
  font-weight: 700; font-size: 15px; letter-spacing: 0.3px; margin-bottom: 26px;
}
.hero-title {
  font-family: var(--font-display); font-size: 56px; font-weight: 600;
  line-height: 1.08; letter-spacing: -1px; margin-bottom: 24px; color: var(--ink);
}
.hero-title em { font-style: italic; color: var(--sprout-deep); font-weight: 500; }
.hero-subtitle { font-size: 22px; color: var(--ink-soft); max-width: 520px; margin-bottom: 34px; }
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.hero-microcopy { font-size: 15px; color: var(--ink-faint); }
.hero-microcopy strong { color: var(--ink-soft); }

.hero-photo { position: relative; }
.hero-photo-frame {
  border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-lg);
  border: 6px solid var(--paper);
}
.hero-photo-frame img { width: 100%; height: 560px; object-fit: cover; }
.hero-float-card {
  position: absolute; bottom: -22px; left: 24px; right: 24px;
  background: var(--dark); color: var(--cream);
  border-radius: var(--r-md); padding: 20px 26px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  box-shadow: var(--shadow-lg);
}
.hero-float-label { font-size: 13px; text-transform: uppercase; letter-spacing: 0.8px; color: #A9B3A1; font-weight: 700; }
.hero-float-number { font-family: var(--font-display); font-size: 25px; font-weight: 600; color: #E9C77A; }

/* ---------- Section scaffolding ---------- */
section { padding: 88px 0; }
.section-header { max-width: 700px; margin: 0 auto 56px; text-align: center; }
.section-eyebrow { color: var(--sprout-deep); font-weight: 700; font-size: 15px; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 14px; }
.section-title { font-family: var(--font-display); font-size: 42px; font-weight: 600; letter-spacing: -0.6px; margin-bottom: 18px; }
.section-desc { font-size: 20px; color: var(--ink-soft); }
.section-desc.light { color: #B9C4B1; }

/* ---------- Problems ---------- */
.section-problems { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.problem-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 28px; }
.problem-card { padding: 8px; }
.problem-icon {
  width: 56px; height: 56px; border-radius: 16px; background: var(--cream-deep);
  display: flex; align-items: center; justify-content: center; margin-bottom: 20px;
}
.problem-icon svg { width: 28px; height: 28px; stroke: var(--sprout-deep); }
.problem-title { font-family: var(--font-display); font-size: 22px; font-weight: 600; margin-bottom: 10px; }
.problem-body { color: var(--ink-soft); font-size: 17px; }

/* ---------- Hero features (flagship, dark) ---------- */
.section-hero-features { background: var(--dark); color: var(--cream); }
.hf-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 28px; }
.hf-card {
  background: var(--dark-card); border: 1px solid #3A473A; border-radius: var(--r-md);
  padding: 34px; transition: transform .2s, border-color .2s;
}
.hf-card:hover { transform: translateY(-4px); border-color: var(--sprout); }
.hf-icon {
  width: 60px; height: 60px; border-radius: var(--r-sm); background: rgba(75,122,90,0.22);
  display: flex; align-items: center; justify-content: center; margin-bottom: 22px;
}
.hf-icon svg { width: 30px; height: 30px; stroke: #8FC49E; }
.hf-title { font-family: var(--font-display); font-size: 23px; font-weight: 600; margin-bottom: 10px; }
.hf-body { color: #B9C4B1; font-size: 16px; }
.hf-badge {
  display: inline-block; margin-top: 14px; font-size: 12px; font-weight: 700;
  letter-spacing: 0.5px; text-transform: uppercase; color: #E9C77A;
  background: rgba(233,199,122,0.14); border: 1px solid rgba(233,199,122,0.35);
  padding: 4px 10px; border-radius: 20px;
}

/* ---------- Capabilities ---------- */
.cap-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.cap-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 30px; display: flex; gap: 18px; box-shadow: var(--shadow-sm);
}
.cap-icon-wrap {
  width: 48px; height: 48px; border-radius: 12px; background: var(--cream-deep);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.cap-icon-wrap svg { width: 24px; height: 24px; stroke: var(--sprout-deep); }
.cap-title { font-weight: 700; font-size: 18px; margin-bottom: 6px; font-family: var(--font-display); }
.cap-body { color: var(--ink-soft); font-size: 16px; }
.cap-status { font-size: 13px; font-weight: 700; margin-top: 8px; }
.cap-status.live { color: var(--sprout-deep); }
.cap-status.soon { color: var(--ink-faint); }

/* ---------- Benefits ---------- */
.section-benefits { background: var(--cream-deep); }
.benefit-list { display: flex; flex-direction: column; gap: 0; max-width: 760px; margin: 0 auto; }
.benefit-row {
  display: flex; align-items: flex-start; gap: 24px; padding: 28px 0;
  border-bottom: 1px solid var(--line);
}
.benefit-row:last-child { border-bottom: none; }
.benefit-num { font-family: var(--font-display); font-size: 32px; font-weight: 600; color: var(--sprout-deep); width: 52px; flex-shrink: 0; }
.benefit-title { font-family: var(--font-display); font-size: 22px; font-weight: 600; margin-bottom: 6px; }
.benefit-body { color: var(--ink-soft); font-size: 17px; }

/* ---------- Examples / simulator ---------- */
.section-demo { background: var(--paper); }
.sim-box { background: var(--cream); border-radius: var(--r-lg); padding: 40px; box-shadow: var(--shadow-md); border: 1px solid var(--line); }
.sim-tabs { display: flex; gap: 14px; justify-content: center; margin-bottom: 30px; flex-wrap: wrap; }
.sim-tab {
  padding: 12px 22px; border: 2px solid var(--line); background: var(--paper);
  border-radius: var(--r-sm); font-size: 16px; font-weight: 700; cursor: pointer; transition: all .2s;
}
.sim-tab.active { border-color: var(--sprout); background: #EAF1EA; color: var(--sprout-deep); }
.sim-screen { background: var(--dark); color: var(--cream); border-radius: var(--r-md); padding: 30px; min-height: 260px; display: flex; flex-direction: column; justify-content: space-between; }
.sim-top { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #3A473A; padding-bottom: 16px; margin-bottom: 20px; flex-wrap: wrap; gap: 8px; }
.sim-status { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; color: #8FC49E; }
.pulse-dot { width: 10px; height: 10px; background: #8FC49E; border-radius: 50%; box-shadow: 0 0 10px #8FC49E; animation: pulse 1.5s infinite; }
@keyframes pulse { 0% { transform: scale(0.9); opacity: .8; } 50% { transform: scale(1.15); opacity: 1; } 100% { transform: scale(0.9); opacity: .8; } }
.sim-transcript { display: flex; flex-direction: column; gap: 14px; font-size: 18px; line-height: 1.5; }
.log-caller { color: #A7C4E8; }
.log-agent { color: #E9C77A; font-weight: 600; }
.sim-tags { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; border-top: 1px solid #3A473A; padding-top: 16px; }
.sim-tag { background: #2F3D2F; color: #E4E9DA; font-size: 13px; font-weight: 600; padding: 6px 14px; border-radius: 20px; border: 1px solid #445544; }

/* ---------- How it works ---------- */
.section-steps { background: var(--dark); color: var(--cream); }
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 28px; margin-top: 48px; }
.step-card { background: var(--dark-card); border: 1px solid #3A473A; border-radius: var(--r-md); padding: 34px; }
.step-num { font-family: var(--font-display); font-size: 44px; font-weight: 600; color: var(--gold); margin-bottom: 14px; }
.step-title { font-size: 22px; font-weight: 700; margin-bottom: 10px; font-family: var(--font-display); }
.step-desc { color: #B9C4B1; font-size: 16px; }

/* ---------- Long silence / second photo section ---------- */
.section-family { background: var(--paper); }
.family-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 56px; align-items: center; }
.family-photo { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-lg); border: 6px solid var(--cream); }
.family-photo img { width: 100%; height: 460px; object-fit: cover; }
.family-quote {
  font-family: var(--font-display); font-size: 27px; font-style: italic; font-weight: 500;
  color: var(--ink); line-height: 1.4; margin-bottom: 20px;
}
.family-body { font-size: 18px; color: var(--ink-soft); margin-bottom: 20px; }
.family-note {
  display: inline-flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 700;
  color: var(--sprout-deep); background: #EAF1EA; padding: 10px 18px; border-radius: 30px;
}

/* ---------- Pricing ---------- */
.section-pricing { background: var(--cream-deep); }
.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px; max-width: 1020px; margin: 0 auto; align-items: stretch; }
.price-card {
  background: var(--paper); border: 2px solid var(--line); border-radius: var(--r-lg);
  padding: 38px 32px; display: flex; flex-direction: column; position: relative;
}
.price-card.featured { border-color: var(--sprout); box-shadow: var(--shadow-lg); }
.price-ribbon {
  position: absolute; top: -14px; left: 32px; background: var(--sprout); color: #fff;
  font-size: 13px; font-weight: 700; padding: 6px 16px; border-radius: 20px; letter-spacing: 0.3px;
}
.price-name { font-family: var(--font-display); font-size: 25px; font-weight: 600; margin-bottom: 6px; }
.price-tagline { color: var(--ink-faint); font-size: 15px; margin-bottom: 22px; }
.price-amount { font-family: var(--font-display); font-size: 46px; font-weight: 600; color: var(--ink); }
.price-period { font-size: 17px; color: var(--ink-faint); font-weight: 600; }
.price-minutes { font-size: 16px; color: var(--ink-soft); margin: 14px 0 24px; font-weight: 600; }
.price-features { list-style: none; display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; flex-grow: 1; }
.price-features li { display: flex; align-items: flex-start; gap: 10px; font-size: 16px; color: var(--ink-soft); }
.price-features svg { width: 18px; height: 18px; stroke: var(--sprout-deep); flex-shrink: 0; margin-top: 3px; }
.price-note { text-align: center; color: var(--ink-faint); font-size: 15px; margin-top: 36px; }

/* ---------- Trust strip ---------- */
.section-trust { background: var(--dark); color: var(--cream); padding: 64px 0; }
.trust-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; text-align: center; }
.trust-stat { font-family: var(--font-display); font-size: 38px; font-weight: 600; color: var(--gold); margin-bottom: 8px; }
.trust-label { color: #B9C4B1; font-size: 15px; }

/* ---------- Footer ---------- */
footer { background: var(--cream); border-top: 1px solid var(--line); padding: 56px 0 40px; }
.footer-grid { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; flex-wrap: wrap; margin-bottom: 32px; }
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand .brand-name { font-size: 21px; }
.footer-tag { color: var(--ink-faint); font-size: 15px; margin-top: 8px; max-width: 320px; }
.footer-links { display: flex; gap: 40px; flex-wrap: wrap; }
.footer-col-title { font-weight: 700; font-size: 14px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--ink-faint); margin-bottom: 14px; }
.footer-col a { display: block; text-decoration: none; color: var(--ink-soft); font-size: 16px; margin-bottom: 10px; }
.footer-col a:hover { color: var(--sprout-deep); }
.footer-safety {
  border-top: 1px solid var(--line); padding-top: 24px; font-size: 14px; color: var(--ink-faint);
}
.footer-safety strong { color: var(--ink-soft); }

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .hero-grid, .family-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: 40px; }
  .section-title { font-size: 32px; }
  .hero-photo-frame img { height: 380px; }
  .family-photo img { height: 320px; }
  .hero-float-card { position: static; margin-top: 18px; }
}

@media (max-width: 780px) {
  .nav-links { display: none; }
  .nav-wrap { gap: 12px; }
  .brand-name { font-size: 21px; }
}

@media (max-width: 480px) {
  .btn { padding: 13px 20px; font-size: 16px; }
  .hero-title { font-size: 32px; }
  .hero-subtitle { font-size: 19px; }
}
