:root {
  color-scheme: light;
  --base: #f5f9fd;
  --surface: #ffffff;
  --border: #e6eef8;
  --ink: #1e2733;
  --text: #1e2733;
  --text-muted: #5b6b7d;
  --primary: #2f7de1;
  --primary-dark: #1f63c4;
  --secondary: #0abab5;
  --secondary-dark: #078f8a;
  --rule: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 42px,
    var(--border) 42px,
    var(--border) 43px
  );
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--base);
  color: var(--text);
  font-family: "Karla", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: "Lora", Georgia, serif;
  font-weight: 600;
  color: var(--ink);
  margin: 0;
  line-height: 1.12;
}

p { margin: 0; }

a { color: inherit; text-decoration: none; }

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

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 64px 24px;
}

.section-border { border-top: 1px solid var(--border); }

.eyebrow {
  font-family: "Karla", sans-serif;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary);
  margin: 0 0 16px;
}

.eyebrow.is-teal { color: var(--secondary-dark); }

h2.section-title {
  font-size: 26px;
  margin-bottom: 12px;
}

.section-lede {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 0 40px;
}

/* Buttons + links */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-family: "Karla", sans-serif;
  font-weight: 700;
  font-size: 15px;
  min-height: 44px;
  transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover { background: var(--primary-dark); }
.btn-primary:focus-visible {
  outline: 2px solid var(--primary-dark);
  outline-offset: 2px;
}
.btn-outline {
  background: transparent;
  border-color: var(--border);
  color: var(--ink);
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary-dark); }

.link-underline {
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--border);
  text-underline-offset: 4px;
  padding: 10px 2px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  transition: text-decoration-color 0.15s ease, color 0.15s ease;
}
.link-underline:hover { text-decoration-color: var(--primary); color: var(--primary-dark); }
.link-underline:focus-visible { outline: 2px solid var(--primary-dark); outline-offset: 3px; border-radius: 2px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

/* ---------- Nav ---------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(245, 249, 253, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  font-family: "Lora", serif;
  font-weight: 700;
  font-size: 23px;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.brand-mark { width: 34px; height: 34px; flex-shrink: 0; }
.nav-links {
  display: flex;
  gap: 28px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
}
.nav-links a {
  padding: 12px 2px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.nav-links a:hover { color: var(--primary-dark); }
.nav-cta { padding: 10px 20px; font-size: 14px; }
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  font-size: 18px;
  color: var(--ink);
}
@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .js .nav-links { display: none; }
  .js .nav-links.open {
    display: flex;
    flex-direction: column;
    gap: 4px;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 8px 24px 16px;
  }
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  background: var(--primary);
  color: #fff;
  padding: 12px 18px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
  z-index: 50;
  transition: top 0.15s ease;
}
.skip-link:focus { top: 12px; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero-sprig {
  position: absolute;
  left: -24px;
  bottom: -16px;
  width: 220px;
  opacity: 0.22;
  transform: rotate(-6deg);
  pointer-events: none;
  z-index: -1;
}
@media (max-width: 860px) {
  .hero-sprig { width: 140px; left: -30px; bottom: -10px; }
}
.hero-sprig-tr {
  left: auto;
  right: -20px;
  bottom: auto;
  top: -20px;
  transform: scaleX(-1) rotate(-8deg);
  opacity: 0.16;
}
@media (max-width: 860px) {
  .hero-sprig-tr { right: -26px; top: -12px; }
}

/* ---------- Section background decor ---------- */
.section-sprig {
  position: absolute;
  pointer-events: none;
  z-index: -1;
}
#compare {
  position: relative;
  overflow: hidden;
}
#compare .section-sprig {
  top: -14px;
  right: -14px;
  width: 130px;
  opacity: 0.12;
  transform: rotate(14deg);
}
#messengers {
  position: relative;
  overflow: hidden;
}
.hero-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 72px 24px 88px;
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 40px;
  align-items: end;
}
.hero-text {
  background-image: var(--rule);
  padding-top: 8px;
}
.hero-text .eyebrow { padding-top: 34px; }
.hero-line {
  font-size: clamp(34px, 5vw, 58px);
  font-weight: 600;
}
.hero-sub {
  margin: 28px 0 0;
  padding-top: 20px;
  font-size: 17px;
  color: var(--text-muted);
  max-width: 480px;
}
.hero-actions {
  margin-top: 34px;
  padding-top: 22px;
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}
.trust-strip {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin: 20px 0 0;
  padding: 14px 0 0;
  border-top: 1px solid var(--border);
}
.trust-strip li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-muted);
}
.trust-strip svg { width: 16px; height: 16px; fill: var(--primary-dark); flex-shrink: 0; }
.hero-visual {
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  padding-bottom: 12px;
}
.phone-frame {
  width: 100%;
  max-width: 168px;
  border: 6px solid var(--ink);
  border-radius: 22px;
  overflow: hidden;
  background: var(--ink);
  box-shadow: 0 20px 40px -20px rgba(30, 39, 51, 0.4);
  transform: rotate(-2.5deg);
}
.phone-frame img { width: 100%; height: auto; aspect-ratio: 430 / 900; object-fit: cover; }

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; padding-top: 48px; }
  .hero-visual { order: -1; justify-content: center; max-width: none; padding-bottom: 0; margin-bottom: 12px; }
  .phone-frame { max-width: 148px; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--surface); }
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  flex-wrap: wrap;
  padding-top: 48px;
  padding-bottom: 48px;
}
.footer-tagline { margin-top: 8px; color: var(--text-muted); font-size: 14px; }
.footer-meta { max-width: 380px; }
.footer-meta p { color: var(--text-muted); font-size: 14px; margin-bottom: 14px; }

/* ---------- Why / Referral photo grids ---------- */
.why-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  align-items: center;
  margin-bottom: 32px;
}
.why-media { position: relative; }
.why-media img {
  width: 100%;
  border-radius: 18px;
  box-shadow: 0 24px 48px -28px rgba(30, 39, 51, 0.28);
}
.why-phone {
  position: absolute;
  left: 6%;
  bottom: 7%;
  width: 34%;
  border: 5px solid var(--ink);
  border-radius: 16px;
  overflow: hidden;
  background: var(--ink);
  box-shadow: 0 16px 32px -16px rgba(30, 39, 51, 0.45);
  transform: rotate(-4deg);
}
.why-phone img {
  width: 100%;
  height: auto;
  aspect-ratio: 430 / 900;
  object-fit: cover;
  border-radius: 0;
  box-shadow: none;
}
.referral-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 32px;
}
.referral-media img {
  width: 100%;
  border-radius: 18px;
  box-shadow: 0 24px 48px -28px rgba(30, 39, 51, 0.28);
}
@media (max-width: 760px) {
  .why-grid, .referral-grid { grid-template-columns: 1fr; gap: 24px; }
  .why-media, .referral-media { order: -1; max-width: 260px; margin: 0 auto; }
}

/* ---------- Line list (signature row pattern) ---------- */
.line-list { list-style: none; margin: 0; padding: 0; }
.line-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 32px;
  align-items: baseline;
  padding: 22px 0;
  border-top: 1px solid var(--border);
}
.line-list.surface .line-row:last-child { border-bottom: 1px solid var(--border); }
.line-row-title {
  font-family: "Lora", serif;
  font-weight: 600;
  font-size: 18px;
  color: var(--ink);
  flex: 0 0 260px;
}
.line-row-text { color: var(--text-muted); font-size: 15px; flex: 1 1 320px; }
@media (max-width: 640px) {
  .line-row { flex-direction: column; gap: 6px; }
  .line-row-title { flex: none; }
}

/* ---------- Features (single screenshot + staggered list) ---------- */
.features-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 56px;
  align-items: start;
}
.features-visual { position: sticky; top: 96px; }
.features-visual .phone-frame { max-width: 220px; margin: 0 auto; transform: none; }
.feature-list { list-style: none; margin: 0; padding: 0; }
.feature-item {
  padding: 24px 0;
  border-top: 1px solid var(--border);
  transition: margin 0.15s ease;
}
.feature-list .feature-item:last-child { border-bottom: 1px solid var(--border); }
.feature-item:nth-child(even) { margin-left: 56px; }
.feature-item-title {
  font-family: "Lora", serif;
  font-weight: 600;
  font-size: 19px;
  color: var(--ink);
  margin-bottom: 6px;
}
.feature-item-text { color: var(--text-muted); font-size: 15px; max-width: 420px; }
@media (max-width: 900px) {
  .features-grid { grid-template-columns: 1fr; gap: 8px; }
  .features-visual { position: static; display: flex; justify-content: center; margin-bottom: 24px; }
  .feature-item:nth-child(even) { margin-left: 0; }
}

/* ---------- Section variants ---------- */
.section-surface { background: var(--surface); }

/* ---------- Referral ---------- */
.referral-list .line-row-title { flex: 0 0 300px; }

/* ---------- Messengers ---------- */
#messengers .line-row-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
#messengers .line-row-title svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  fill: var(--ink);
}

/* ---------- Comparison table ---------- */
.table-scroll { overflow-x: auto; margin-top: 8px; }
.compare-table { width: 100%; border-collapse: collapse; min-width: 480px; font-size: 15px; }
.compare-table th, .compare-table td { text-align: left; padding: 16px 12px; border-top: 1px solid var(--border); }
.compare-table thead th { border-top: none; border-bottom: 2px solid var(--ink); font-family: "Lora", serif; font-weight: 600; font-size: 16px; padding-bottom: 14px; }
.compare-table td:first-child, .compare-table th:first-child { padding-left: 0; color: var(--ink); font-weight: 600; }
.compare-table td:not(:first-child), .compare-table th:not(:first-child) { text-align: center; width: 160px; }
.compare-table tbody tr:last-child td { border-bottom: 1px solid var(--border); }
.mark-yes { color: var(--primary-dark); font-weight: 700; }
.mark-yes.teal { color: var(--secondary-dark); }
.mark-no { color: var(--text-muted); }

/* ---------- Pricing ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  margin-top: 8px;
}
.pricing-col-name { font-family: "Lora", serif; font-weight: 600; font-size: 21px; margin-bottom: 4px; }
.pricing-col-note { color: var(--text-muted); font-size: 14px; margin-bottom: 8px; }
.price-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 16px 0;
  border-top: 1px solid var(--border);
}
.price-row:last-of-type { border-bottom: 1px solid var(--border); margin-bottom: 24px; }
.price-period { color: var(--text-muted); font-size: 15px; }
.price-amount { font-family: "Lora", serif; font-weight: 600; font-size: 18px; color: var(--ink); }
@media (max-width: 700px) {
  .pricing-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* ---------- FAQ ---------- */
.faq-list { margin-top: 8px; }
.faq-item { border-top: 1px solid var(--border); padding: 6px 0; }
.faq-list .faq-item:last-child { border-bottom: 1px solid var(--border); }
.faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 2px;
  font-family: "Lora", serif;
  font-weight: 600;
  font-size: 17px;
  color: var(--ink);
  min-height: 44px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-family: "Karla", sans-serif;
  font-weight: 700;
  font-size: 22px;
  color: var(--primary);
  flex-shrink: 0;
  transition: transform 0.15s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { color: var(--text-muted); font-size: 15px; padding: 0 2px 20px; max-width: 640px; }
.faq-item summary:focus-visible { outline: 2px solid var(--primary-dark); outline-offset: 2px; border-radius: 4px; }

/* ---------- Final CTA ---------- */
.final-cta { text-align: center; }
.final-cta-sprig { width: 120px; margin: 0 auto 20px; opacity: 0.8; }
.final-cta h2 { font-size: 30px; margin-bottom: 14px; }
.final-cta p { color: var(--text-muted); margin-bottom: 28px; }
.final-cta .btn { padding: 15px 32px; font-size: 16px; }
.final-cta-actions { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }

/* ---------- Wide desktop ---------- */
@media (min-width: 1440px) {
  .container, .nav-inner, .hero-inner, .footer-inner {
    max-width: 1180px;
  }
  .hero-inner {
    grid-template-columns: 1fr 280px;
    gap: 72px;
    padding-top: 96px;
    padding-bottom: 112px;
  }
  .hero-line { font-size: clamp(46px, 4vw, 64px); }
  .hero-sub { max-width: 520px; }
  .phone-frame { max-width: 210px; }
  .features-grid { grid-template-columns: 300px 1fr; gap: 72px; }
  .feature-item:nth-child(even) { margin-left: 72px; }
  .feature-item-text { max-width: 480px; }
  .pricing-grid { gap: 88px; }
  .compare-table { font-size: 16px; }
  .final-cta h2 { font-size: 34px; }
}

@media (min-width: 1680px) {
  .container, .nav-inner, .hero-inner, .footer-inner {
    max-width: 1280px;
  }
}
