:root {
  --ink: #1D242C;
  --ink2: #242D37;
  --amber: #F27525;
  --amber-deep: #A4460A;
  --bg: #FBF9F5;
  --card: #FFFFFF;
  --slate: #475569;
  --slate-light: #7C879B;
  --line: #E7E2D8;
  --cream: #F9E1D2;
  --text: #1D242C;
  --accent-text: #A4460A;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0B1220;
  --card: #101A2E;
  --slate: #B9C2D4;
  --slate-light: #8993A8;
  --line: #22304A;
  --cream: #172035;
  --text: #F2F5FA;
  --accent-text: #F27525;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0B1220;
    --card: #101A2E;
    --slate: #B9C2D4;
    --slate-light: #8993A8;
    --line: #22304A;
    --cream: #172035;
    --text: #F2F5FA;
    --accent-text: #F27525;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(76px + env(safe-area-inset-top, 0px)); }
html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', 'DejaVu Sans', sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body { padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }
img, svg { max-width: 100%; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 28px; }
h1, h2, h3 { font-family: 'Poppins', sans-serif; color: var(--text); margin: 0; line-height: 1.15; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) h1, :root:not([data-theme="light"]) h2, :root:not([data-theme="light"]) h3 { color: #F2F5FA; }
}
p { color: var(--slate); line-height: 1.65; margin: 0; }
section { padding: 88px 0; }
@media (max-width: 720px) { section { padding: 56px 0; } .wrap { padding: 0 20px; } }

/* ---------- Nav ---------- */
header.nav {
  position: sticky; top: 0; z-index: 40;
  background: rgba(251,249,245,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  padding-top: env(safe-area-inset-top, 0px);
}
:root[data-theme="dark"] header.nav { background: rgba(11,18,32,0.92); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) header.nav { background: rgba(11,18,32,0.92); } }
.navrow { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.logo { font-family: 'Poppins', sans-serif; font-weight: 800; font-size: 17px; letter-spacing: 2px; color: var(--text); display: flex; align-items: center; gap: 8px; }
.logo .mark { width: 22px; height: auto; display: block; }
.navlinks { display: flex; gap: 34px; align-items: center; }
.navlinks a { font-size: 14.5px; font-weight: 500; color: var(--slate); }
.navlinks a:hover, .navlinks a[aria-current="page"] { color: var(--text); }
.navcta { display: flex; align-items: center; gap: 16px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: 'Inter', sans-serif; font-weight: 600; font-size: 14.5px;
  padding: 12px 22px; border-radius: 8px; border: none; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
.btn-amber { background: var(--amber); color: #1F1300; }
.btn-amber:hover { box-shadow: 0 8px 20px rgba(242,117,37,0.35); }
.btn-ghost { background: transparent; color: var(--text); border: 1.5px solid var(--line); }

.navburger {
  display: none; width: 38px; height: 38px; border-radius: 8px; border: 1.5px solid var(--line);
  background: transparent; cursor: pointer; align-items: center; justify-content: center;
}
.navburger span, .navburger span::before, .navburger span::after {
  content: ""; display: block; width: 18px; height: 2px; background: var(--text); position: relative;
}
.navburger span::before { top: -6px; position: absolute; }
.navburger span::after { top: 6px; position: absolute; }

.mobile-panel {
  display: none; flex-direction: column; gap: 4px; padding: 10px 20px 18px 20px;
  border-top: 1px solid var(--line);
}
.mobile-panel a { padding: 12px 4px; font-size: 15px; font-weight: 500; color: var(--text); border-bottom: 1px solid var(--line); }
.mobile-panel.show { display: flex; }

@media (max-width: 860px) {
  .navlinks { display: none; }
  .navburger { display: flex; }
}

/* ---------- Page header ---------- */
.page-header { padding: 64px 0 20px 0; }
.section-eyebrow { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 12.5px; color: var(--accent-text); margin-bottom: 10px; }
h1.page-title { font-size: 38px; font-weight: 800; letter-spacing: -0.4px; max-width: 20ch; }
@media (max-width: 560px) { h1.page-title { font-size: 29px; } }
p.page-lede { font-size: 16.5px; margin-top: 16px; max-width: 56ch; }
h2.section-title { font-size: 28px; font-weight: 800; letter-spacing: -0.3px; max-width: 16ch; }
p.section-body { font-size: 15.5px; margin-top: 16px; max-width: 48ch; }

/* ---------- Hero (home) ---------- */
.hero { padding: 76px 0 60px 0; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 40px; } }
.hero h1 { font-size: 44px; font-weight: 800; letter-spacing: -0.5px; max-width: 12ch; }
@media (max-width: 500px) { .hero h1 { font-size: 33px; } }
.hero p.lede { font-size: 17.5px; margin-top: 20px; max-width: 46ch; }
.hero-ctas { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }

/* phone mock */
.phone { background: var(--ink); border-radius: 30px; padding: 16px; box-shadow: 0 30px 60px -20px rgba(16,28,51,0.35); max-width: 340px; margin: 0 auto; }
.phone-screen { background: #fff; border-radius: 18px; padding: 18px 14px 22px 14px; }
:root[data-theme="dark"] .phone-screen { background: #1A253D; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .phone-screen { background: #1A253D; } }
.phone-bar { display: flex; align-items: center; gap: 8px; padding-bottom: 12px; border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.phone-avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--amber); display: flex; align-items: center; justify-content: center; font-family: 'Poppins',sans-serif; font-weight: 700; font-size: 12px; color: #1F1300; }
.phone-name { font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 13.5px; color: var(--text); }
.phone-sub { font-size: 11px; color: var(--slate-light); }
.bubble { max-width: 82%; padding: 10px 13px; border-radius: 14px; font-size: 12.8px; line-height: 1.45; margin-bottom: 9px; }
.bubble.in { background: var(--cream); color: var(--text); border-bottom-left-radius: 4px; }
.bubble.out { background: var(--ink); color: #fff; margin-left: auto; border-bottom-right-radius: 4px; }
.bubble.tag { font-size: 9.5px; text-transform: uppercase; letter-spacing: .5px; color: var(--accent-text); font-weight: 700; margin-bottom: 3px; }

/* ---------- Stat bar ---------- */
.statbar { background: var(--ink); color: #fff; }
.stat-lede { max-width: 60ch; font-size: 15.5px; color: #C7D2E3; margin-bottom: 40px; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
@media (max-width: 780px) { .stat-grid { grid-template-columns: repeat(2, 1fr); } }
.stat-num { font-family: 'Poppins', sans-serif; font-weight: 800; font-size: 34px; color: #fff; }
.stat-label { font-size: 13.5px; color: #9CB4DA; margin-top: 6px; line-height: 1.4; }
.stat-note { font-size: 11.5px; color: #6B84AC; margin-top: 36px; }

/* ---------- Problem ---------- */
.problem-grid { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 56px; align-items: center; }
@media (max-width: 900px) { .problem-grid { grid-template-columns: 1fr; } }
.schedule-mock { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 22px; }
.sm-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.sm-row:last-child { border-bottom: none; }
.sm-time { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 12.5px; color: var(--slate-light); width: 58px; flex-shrink: 0; }
.sm-job { font-size: 13.5px; color: var(--text); font-weight: 600; }
.sm-sub { font-size: 12px; color: var(--slate-light); margin-top: 2px; }
.sm-flag { margin-left: auto; font-size: 10.5px; font-weight: 700; padding: 3px 8px; border-radius: 5px; background: var(--cream); color: var(--accent-text); white-space: nowrap; }

/* ---------- Feature rows ---------- */
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; padding: 56px 0; border-bottom: 1px solid var(--line); }
.feature-row:last-child { border-bottom: none; }
@media (max-width: 860px) { .feature-row { grid-template-columns: 1fr; gap: 30px; } .feature-row .visual { order: -1; } }
.feature-row.reverse .visual { order: 2; }
.feature-row.reverse .copy { order: 1; }
@media (max-width: 860px) { .feature-row.reverse .visual, .feature-row.reverse .copy { order: -1; } }
.feature-kicker { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 12px; letter-spacing: .3px; color: var(--accent-text); margin-bottom: 8px; }
.feature-row h3 { font-size: 23px; font-weight: 700; }
.feature-row p { margin-top: 12px; font-size: 15px; max-width: 42ch; }
.visual-card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 20px; }

.tracker-mock table { width: 100%; border-collapse: collapse; font-size: 11.5px; }
.tracker-mock th { text-align: left; color: #fff; background: var(--ink); font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 10.5px; padding: 7px 8px; }
.tracker-mock td { padding: 7px 8px; border-bottom: 1px solid var(--line); color: var(--text); }
.pill { font-size: 9.5px; font-weight: 700; padding: 2px 7px; border-radius: 5px; }
.pill.paid { background: #E4F3E7; color: #1F7A34; }
.pill.unpaid { background: var(--cream); color: var(--accent-text); }

/* ---------- Steps ---------- */
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; margin-top: 40px; }
@media (max-width: 860px) { .steps-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps-grid { grid-template-columns: 1fr; } }
.step-card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 22px; }
.step-num { font-family: 'Poppins', sans-serif; font-weight: 800; font-size: 13px; color: var(--accent-text); background: var(--cream); width: 28px; height: 28px; border-radius: 8px; display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.step-card h4 { font-family: 'Poppins', sans-serif; font-size: 15.5px; font-weight: 700; margin: 0; }
.step-card p { font-size: 13.5px; margin-top: 8px; }

/* ---------- Benefits ---------- */
.benefits-wrap { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: start; }
@media (max-width: 860px) { .benefits-wrap { grid-template-columns: 1fr; } }
.benefit-item { display: flex; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.benefit-item:last-child { border-bottom: none; }
.benefit-arrow { flex-shrink: 0; width: 20px; height: 20px; margin-top: 2px; }
.benefit-item h4 { font-family: 'Inter', sans-serif; font-weight: 700; font-size: 15px; color: var(--text); margin: 0 0 3px 0; }
.benefit-item p { font-size: 14px; }

/* ---------- Icon grid ---------- */
.icon-grid-section { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.icon-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 44px; }
@media (max-width: 860px) { .icon-grid { grid-template-columns: 1fr; gap: 32px; } }
.icon-badge { width: 44px; height: 44px; border-radius: 10px; background: var(--cream); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.icon-card h4 { font-family: 'Poppins', sans-serif; font-size: 16.5px; font-weight: 700; color: var(--text); }
.icon-card p { margin-top: 8px; font-size: 14.5px; }

/* ---------- Pricing ---------- */
.price-card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 40px; max-width: 460px; margin: 0 auto; text-align: center; }
.price-num { font-family: 'Poppins', sans-serif; font-weight: 800; font-size: 46px; color: var(--text); }
.price-sub { font-size: 13.5px; color: var(--slate-light); margin-top: 2px; }
.price-list { text-align: left; margin: 26px 0; padding: 0; list-style: none; }
.price-list li { display: flex; gap: 10px; padding: 8px 0; font-size: 14px; color: var(--text); }
.trust-line { font-size: 13px; font-weight: 600; color: var(--text); margin-top: 18px; }
.secure-row { display: flex; align-items: center; justify-content: center; gap: 7px; font-size: 12px; color: var(--slate-light); margin-top: 12px; }

.compare-table { width: 100%; border-collapse: collapse; margin-top: 30px; }
.compare-table th, .compare-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; font-size: 13.5px; color: var(--text); }
.compare-table th { font-family: 'Poppins', sans-serif; font-size: 12px; color: var(--slate-light); font-weight: 600; }
.compare-table td:last-child, .compare-table th:last-child { color: var(--accent-text); font-weight: 700; }

.founder-box { display: flex; gap: 22px; align-items: flex-start; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 30px; }
@media (max-width: 560px) { .founder-box { flex-direction: column; align-items: center; text-align: center; } }
.founder-avatar { width: 56px; height: 56px; border-radius: 50%; background: var(--ink); color: #fff; display: flex; align-items: center; justify-content: center; font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 18px; flex-shrink: 0; object-fit: cover; }
.founder-name { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 14.5px; color: var(--text); }
.founder-role { font-size: 12.5px; color: var(--slate-light); margin-bottom: 10px; }

details.faq { border-bottom: 1px solid var(--line); padding: 16px 0; }
details.faq summary { font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 15px; cursor: pointer; color: var(--text); list-style: none; display: flex; justify-content: space-between; align-items: center; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; font-size: 20px; color: var(--accent-text); }
details.faq[open] summary::after { content: "\2212"; }
details.faq p { margin-top: 10px; font-size: 14px; max-width: 60ch; }

/* ---------- Closing CTA ---------- */
.cta-band { background: linear-gradient(135deg, #1D242C 0%, #2E3B4E 100%); color: #fff; border-radius: 20px; padding: 56px 48px; text-align: center; margin: 0 28px; }
@media (max-width: 640px) { .cta-band { padding: 40px 26px; margin: 0 16px; } }
.cta-band h2 { color: #fff; font-size: 28px; max-width: 26ch; margin: 0 auto; }
.cta-band p { color: #C7D2E3; margin-top: 14px; }
.cta-band .hero-ctas { justify-content: center; margin-top: 26px; }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--line); padding: 48px 0 calc(36px + env(safe-area-inset-bottom, 0px)) 0; }
.foot-grid { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 30px; }
.foot-links { display: flex; gap: 26px; flex-wrap: wrap; }
.foot-links a { font-size: 13.5px; color: var(--slate); }
.foot-bottom { display: flex; justify-content: space-between; margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--slate-light); flex-wrap: wrap; gap: 10px; }
.foot-legal { font-size: 11.5px; color: var(--slate-light); margin-top: 14px; max-width: 70ch; }

/* ---------- Exit intent modal ---------- */
.modal-overlay { position: fixed; inset: 0; background: rgba(29,36,44,0.55); display: flex; align-items: center; justify-content: center; padding: 20px; z-index: 100; opacity: 0; pointer-events: none; transition: opacity .25s ease; }
.modal-overlay.show { opacity: 1; pointer-events: auto; }
.modal-card { background: var(--card); border-radius: 16px; max-width: 440px; width: 100%; padding: 34px 30px; position: relative; transform: translateY(12px); transition: transform .25s ease; box-shadow: 0 40px 80px rgba(16,28,51,0.35); }
.modal-overlay.show .modal-card { transform: translateY(0); }
.modal-close { position: absolute; top: 16px; right: 16px; background: none; border: none; cursor: pointer; color: var(--slate-light); font-size: 20px; line-height: 1; padding: 4px; }
.modal-eyebrow { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 11.5px; color: var(--accent-text); }
.modal-card h3 { font-size: 21px; margin-top: 8px; max-width: 20ch; }
.modal-card p.mtext { font-size: 14px; margin-top: 10px; }
.form-row { margin-top: 16px; }
.form-row label { display: block; font-size: 12.5px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.form-row input, .form-row select { width: 100%; padding: 11px 13px; border-radius: 8px; border: 1.5px solid var(--line); font-family: 'Inter', sans-serif; font-size: 14px; background: var(--bg); color: var(--text); }
.form-row input:focus, .form-row select:focus { outline: 2px solid var(--amber); outline-offset: 1px; border-color: var(--amber); }
.modal-submit { width: 100%; margin-top: 20px; padding: 13px; }
.modal-fine { font-size: 11.5px; color: var(--slate-light); margin-top: 12px; text-align: center; }
.modal-success { display: none; text-align: center; padding: 10px 0 4px 0; }
.modal-success .icon-badge { margin: 0 auto 16px auto; }
.modal-success h3 { max-width: none; }

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