:root {
  --cream: #f4f3ee;
  --ink: #0e1b32;
  --ink-soft: #66707e;
  --navy: #14459c;
  --navy-dark: #0f3576;
  --navy-tint: rgba(20, 69, 156, 0.07);
  --navy-tint-strong: rgba(20, 69, 156, 0.14);
  --line: rgba(14, 27, 50, 0.1);
  --line-soft: rgba(14, 27, 50, 0.08);
  --radius: 14px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(14, 27, 50, 0.05);
  --max: 1120px;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --receipt-clip: polygon(0 0, 100% 0, 100% 88%, 83% 100%, 66% 88%, 50% 100%, 33% 88%, 16% 100%, 0 88%);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
}

a { color: inherit; }

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

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(244, 243, 238, 0.88);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}

.logo-mark {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.logo-mark .tab {
  width: 38%;
  height: 38%;
  background: var(--cream);
  clip-path: var(--receipt-clip);
}

.logo-mark.lg { width: 44px; height: 44px; border-radius: 11px; }

.wordmark {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.01em;
  color: var(--navy);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 15px;
  font-weight: 500;
}

.nav-links a {
  text-decoration: none;
  color: var(--ink-soft);
}

.nav-links a:hover { color: var(--navy); }

.nav-cta {
  display: flex;
  gap: 10px;
  align-items: center;
}

.nav-cta > a.btn-ghost-link {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 15px;
  font-weight: 500;
}

.nav-cta > a.btn-ghost-link:hover { color: var(--navy); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn-primary {
  background: var(--navy);
  color: var(--cream);
}

.btn-primary:hover { background: var(--navy-dark); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.btn-ghost:hover { border-color: var(--navy); color: var(--navy); }

.btn-sm { padding: 9px 18px; font-size: 14px; }
.btn-block { width: 100%; }

/* ---------- Hero ---------- */
.hero {
  padding: 96px 0 72px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(38px, 5vw, 60px);
  line-height: 1.05;
  margin: 0 0 20px;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-weight: 800;
}

.hero p.lead {
  font-size: 19px;
  color: var(--ink-soft);
  margin: 0 0 32px;
  max-width: 46ch;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.hero-note {
  font-size: 13px;
  color: var(--ink-soft);
}

/* phone mockup */
.phone {
  position: relative;
  margin-left: auto;
  width: 100%;
  max-width: 300px;
  aspect-ratio: 9 / 19;
  background: var(--ink);
  border-radius: 46px;
  padding: 12px;
}

.phone-island {
  position: absolute;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  width: 34%;
  height: 22px;
  background: var(--ink);
  border-radius: 999px;
  z-index: 5;
}

.phone-screen {
  background: var(--cream);
  height: 100%;
  border-radius: 34px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  padding: 44px 18px 20px;
}

.viewfinder {
  position: relative;
  flex: 1;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vf-corner {
  position: absolute;
  width: 22px;
  height: 22px;
  border-color: var(--navy);
  border-style: solid;
  border-width: 0;
}

.vf-corner.tl { top: 0; left: 0; border-top-width: 3px; border-left-width: 3px; border-top-left-radius: 6px; }
.vf-corner.tr { top: 0; right: 0; border-top-width: 3px; border-right-width: 3px; border-top-right-radius: 6px; }
.vf-corner.bl { bottom: 0; left: 0; border-bottom-width: 3px; border-left-width: 3px; border-bottom-left-radius: 6px; }
.vf-corner.br { bottom: 0; right: 0; border-bottom-width: 3px; border-right-width: 3px; border-bottom-right-radius: 6px; }

.vf-receipt {
  width: 66%;
  background: #ffffff;
  clip-path: var(--receipt-clip);
  padding: 16px 12px 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.vf-receipt .ln { height: 5px; background: var(--line-soft); border-radius: 3px; }
.vf-receipt .ln.w60 { width: 60%; }
.vf-receipt .ln.w80 { width: 80%; }
.vf-receipt .ln.w40 { width: 40%; }
.vf-receipt .ln.navy { background: var(--navy); opacity: 0.8; width: 45%; margin-top: 4px; }

.scan-caption {
  text-align: center;
  font-size: 12px;
  color: var(--ink-soft);
  margin-bottom: 18px;
}

.shutter {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  border: 3px solid var(--navy);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.shutter-inner {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: var(--navy);
}

/* ---------- Sections ---------- */
section { padding: 88px 0; }

.section-head {
  max-width: 620px;
  margin: 0 auto 44px;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(26px, 3.2vw, 34px);
  margin: 0 0 12px;
  letter-spacing: -0.01em;
  font-weight: 800;
}

.section-head p {
  color: var(--ink-soft);
  font-size: 16.5px;
  margin: 0;
}

.eyebrow {
  display: inline-block;
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 14px;
  letter-spacing: 0.02em;
}

/* feature strip */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.feature-card { text-align: left; }

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  border: 1px solid var(--line);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.feature-icon svg { width: 22px; height: 22px; }

.feature-card h3 { font-size: 17px; margin: 0 0 8px; font-weight: 700; }
.feature-card p { font-size: 14.5px; color: var(--ink-soft); margin: 0; }

/* social proof */
.proof {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.proof-card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-sm);
}

.proof-quote {
  font-size: 15px;
  color: var(--ink);
  margin: 0 0 16px;
  line-height: 1.6;
}

.proof-quote::before { content: "\201C"; }
.proof-quote::after { content: "\201D"; }

.proof-name {
  font-size: 13px;
  color: var(--ink-soft);
  font-weight: 600;
}

.pain-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 56px;
}

.pain-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
  background: var(--cream);
}

.pain-card h3 {
  font-size: 15.5px;
  font-weight: 700;
  margin: 0 0 6px;
  color: var(--ink);
}

.pain-card p {
  font-size: 14px;
  color: var(--ink-soft);
  margin: 0;
  line-height: 1.55;
}

/* pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 720px;
  margin: 0 auto;
}

.plan-card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.plan-card.recommended {
  border: 1.5px solid var(--navy);
}

.plan-badge {
  position: absolute;
  top: -13px;
  left: 32px;
  background: var(--navy);
  color: var(--cream);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
}

.plan-name { font-size: 15px; font-weight: 700; color: var(--ink-soft); margin: 0 0 10px; text-transform: uppercase; letter-spacing: 0.04em; }

.plan-price {
  font-size: 36px;
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 4px;
}

.plan-price span { font-size: 15px; font-weight: 500; color: var(--ink-soft); }

.plan-note { font-size: 13px; color: var(--ink-soft); margin: 0 0 22px; }

.plan-features {
  list-style: none;
  margin: 0 0 26px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.plan-features li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 14.5px;
  color: var(--ink);
}

.plan-features svg {
  width: 16px;
  height: 16px;
  color: var(--navy);
  flex: none;
  margin-top: 3px;
}

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--line);
  padding: 40px 0 28px;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 24px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 14px;
}

.footer-links a:hover { color: var(--navy); }

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12.5px;
  color: var(--ink-soft);
}

/* ---------- Legal pages ---------- */
.legal-hero {
  padding: 64px 0 32px;
  border-bottom: 1px solid var(--line);
}

.legal-hero h1 { font-size: clamp(28px, 4vw, 40px); margin: 0 0 10px; font-weight: 800; }
.legal-hero .updated { color: var(--ink-soft); font-size: 14px; }

.legal-body {
  max-width: 800px;
  margin: 0 auto;
  padding: 56px 24px 96px;
}

.legal-body h2 {
  font-size: 21px;
  margin: 40px 0 14px;
  letter-spacing: -0.01em;
  font-weight: 700;
}

.legal-body h2:first-child { margin-top: 0; }

.legal-body h3 {
  font-size: 16.5px;
  margin: 24px 0 10px;
}

.legal-body p, .legal-body li {
  color: var(--ink-soft);
  font-size: 15.5px;
  line-height: 1.7;
}

.legal-body ul, .legal-body ol {
  padding-left: 22px;
}

.legal-body strong { color: var(--ink); }

.toc {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  background: var(--cream);
  margin-bottom: 8px;
}

.toc h4 { margin: 0 0 12px; font-size: 14px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-soft); }
.toc ol { margin: 0; padding-left: 20px; }
.toc a { text-decoration: none; color: var(--navy); font-size: 14.5px; }
.toc li { margin-bottom: 6px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .phone { margin: 0 auto; }
  .features { grid-template-columns: 1fr; gap: 32px; }
  .proof { grid-template-columns: 1fr; }
  .pain-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .pricing-grid { grid-template-columns: 1fr; }
  .pain-grid { grid-template-columns: 1fr; }
  .footer-top { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 860px) {
  .nav-toggle { display: flex; }

  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    padding: 20px 24px 26px;
    box-shadow: var(--shadow-sm);
    display: none;
  }

  .nav-menu.open { display: flex; }

  .nav-links { flex-direction: column; gap: 16px; }
  .nav-cta { flex-direction: column; align-items: stretch; gap: 10px; }
}
