/* ============================================================
   Oncancel · shared styles
   Palette sampled from app screens:
   pine #4F6338 · fern #6C7E50 · sage #8FA662 · cream #F7F6F1
   panel #EFEDE2 · ink #1A1F14 · muted #6E7263 · alert #C94F3D
   ============================================================ */

:root {
  --pine: #4F6338;
  --pine-deep: #3E4F2B;
  --fern: #6C7E50;
  --sage: #8FA662;
  --sage-soft: #DDE5CB;
  --cream: #F7F6F1;
  --panel: #EFEDE2;
  --card: #FFFFFF;
  --ink: #1A1F14;
  --muted: #6E7263;
  --line: #E4E1D6;
  --alert: #C94F3D;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --font-display: "Bricolage Grotesque", "Inter", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html { scroll-behavior: smooth; }

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

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

a { color: inherit; }

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

/* ---------- type ---------- */

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fern);
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(30px, 4.5vw, 44px);
  max-width: 620px;
}

.section-sub {
  color: var(--muted);
  max-width: 560px;
  margin-top: 14px;
  font-size: 17px;
}

.num {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  border-radius: 999px;
  padding: 14px 26px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.btn:focus-visible { outline: 3px solid var(--sage); outline-offset: 2px; }

.btn-primary {
  background: var(--pine);
  color: #FDFDF9;
  box-shadow: 0 6px 18px rgba(79, 99, 56, 0.28);
}
.btn-primary:hover { background: var(--pine-deep); transform: translateY(-1px); }

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--line);
}
.btn-secondary:hover { border-color: var(--fern); background: #FFFFFF; }

.btn-light {
  background: #FDFDF9;
  color: var(--pine-deep);
}
.btn-light:hover { background: #FFFFFF; transform: translateY(-1px); }

/* ---------- nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 246, 241, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.logo { letter-spacing: -0.035em; }
.logo .logo-mark-svg { flex-shrink: 0; display: block; }
.nav-links {
  display: flex;
  gap: 30px;
  list-style: none;
}
.nav-links a {
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.15s ease;
}
.nav-links a:hover { color: var(--ink); }
.nav .btn { padding: 10px 20px; font-size: 14px; }

/* ---------- hero ---------- */

.hero {
  padding: 72px 0 40px;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(38px, 5.6vw, 60px);
  margin-bottom: 20px;
}
.hero h1 .accent { color: var(--pine); }
.hero-sub {
  font-size: 18px;
  color: var(--muted);
  max-width: 480px;
  margin-bottom: 30px;
}
.hero-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.hero-trust {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: var(--muted);
}
.hero-trust svg { flex-shrink: 0; }

/* store badges */
.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--ink);
  color: #FDFDF9;
  border-radius: 14px;
  padding: 11px 20px;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease;
}
.store-btn:hover { transform: translateY(-1px); background: #2A3122; }
.store-btn .store-label { line-height: 1.2; }
.store-btn .store-label small {
  display: block;
  font-size: 10.5px;
  font-weight: 400;
  opacity: 0.75;
}
.store-btn .store-label span { font-size: 15.5px; font-weight: 600; }

/* ---------- phone mockup ---------- */

.phone-wrap {
  display: flex;
  justify-content: center;
  position: relative;
}
.phone-glow {
  position: absolute;
  inset: 10% 8%;
  background: radial-gradient(closest-side, var(--sage-soft), transparent 75%);
  z-index: 0;
}
.phone {
  position: relative;
  z-index: 1;
  width: 320px;
  background: #10130C;
  border-radius: 44px;
  padding: 10px;
  box-shadow: 0 30px 70px rgba(26, 31, 20, 0.28);
}
.phone-screen {
  background: #FBFAF6;
  border-radius: 36px;
  overflow: hidden;
  padding: 18px 16px 16px;
  min-height: 600px;
}
.p-status {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--ink);
}
.p-greet { font-size: 13px; color: var(--muted); margin-bottom: 2px; }
.p-spend-label { font-size: 13.5px; color: var(--muted); }
.p-spend {
  font-family: var(--font-display);
  font-size: 33px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 2px 0 14px;
}
.p-spend small { font-size: 14px; font-weight: 500; color: var(--muted); }

.p-savings {
  background: var(--panel);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-bottom: 18px;
}
.p-savings-label { font-size: 12px; color: var(--fern); font-weight: 600; }
.p-savings-num {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  color: var(--pine);
}
.p-savings-link { font-size: 12px; color: var(--muted); }

.p-section {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 10px;
}
.p-section span { font-size: 12px; font-weight: 500; color: var(--fern); }

.p-row {
  display: flex;
  align-items: center;
  gap: 11px;
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 11px 12px;
  margin-bottom: 9px;
  position: relative;
}
.p-logo {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: #FFFFFF;
  border: 1px solid var(--line);
  padding: 5px;
  box-sizing: border-box;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.p-logo svg.brand {
  width: 100%;
  height: 100%;
  display: block;
}
.p-row-body { flex: 1; min-width: 0; }
.p-row-name { font-size: 13.5px; font-weight: 600; line-height: 1.3; }
.p-row-meta { font-size: 11.5px; color: var(--muted); }
.p-row-amt { font-size: 13.5px; font-weight: 600; }

.p-row.cancelled .p-row-name,
.p-row.cancelled .p-row-amt { text-decoration: line-through; color: var(--muted); }
.cancel-pill {
  position: absolute;
  right: 10px;
  top: -9px;
  background: var(--pine);
  color: #FDFDF9;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 3px 9px;
  border-radius: 999px;
  opacity: 0;
  transform: scale(0.7) rotate(-4deg);
}
.p-row.cancelled .cancel-pill {
  animation: stamp 0.35s cubic-bezier(0.2, 1.4, 0.4, 1) 1.6s forwards;
}
@keyframes stamp {
  to { opacity: 1; transform: scale(1) rotate(-4deg); }
}

.p-cta {
  margin-top: 14px;
  background: var(--pine);
  color: #FDFDF9;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  border-radius: 999px;
  padding: 13px;
}

/* ---------- stat strip ---------- */

.stats {
  padding: 44px 0 8px;
}
.stats-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 30px 0;
}
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.6vw, 40px);
  font-weight: 700;
  color: var(--pine);
  letter-spacing: -0.02em;
}
.stat-label { font-size: 14px; color: var(--muted); margin-top: 2px; }

/* ---------- sections ---------- */

.section { padding: 88px 0; }
.section-head { margin-bottom: 48px; }
.section-head.center { text-align: center; }
.section-head.center .section-title,
.section-head.center .section-sub { margin-left: auto; margin-right: auto; }

/* how it works */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.step {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
}
.step-num {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--sage);
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}
.step h3 { font-size: 20px; margin-bottom: 10px; }
.step p { font-size: 14.5px; color: var(--muted); }
.step-visual {
  margin-top: 22px;
  background: var(--panel);
  border-radius: var(--radius-md);
  padding: 16px;
}
.mini-quiz-opt {
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 9px 12px;
  font-size: 12.5px;
  font-weight: 500;
  margin-bottom: 7px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.mini-quiz-opt:last-child { margin-bottom: 0; }
.mini-radio {
  width: 14px; height: 14px;
  border: 1.5px solid var(--line);
  border-radius: 50%;
  flex-shrink: 0;
}
.mini-quiz-opt.sel { border-color: var(--pine); }
.mini-quiz-opt.sel .mini-radio { border-color: var(--pine); background: radial-gradient(circle at center, var(--pine) 45%, transparent 50%); }

.mini-connect {
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px 12px;
  font-size: 12.5px;
  font-weight: 600;
  margin-bottom: 7px;
  display: flex;
  align-items: center;
  gap: 9px;
}
.mini-connect:last-child { margin-bottom: 0; }
.mini-connect small { display: block; font-weight: 400; color: var(--muted); font-size: 11px; }
.mini-icon {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: var(--sage-soft);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: var(--pine);
}

.mini-track { font-size: 12.5px; }
.mini-track-row {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 6px 0;
}
.mini-dot {
  width: 16px; height: 16px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  background: #FFFFFF;
  flex-shrink: 0;
  display: grid;
  place-items: center;
}
.mini-dot.done { background: var(--sage); border-color: var(--sage); color: #FFF; font-size: 9px; font-weight: 700; }
.mini-track-row.faded { color: var(--muted); }

/* features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 26px;
}
.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: var(--sage-soft);
  color: var(--pine);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}
.feature h3 { font-size: 18px; margin-bottom: 8px; }
.feature p { font-size: 14.5px; color: var(--muted); }

/* security */
.security {
  background: var(--pine-deep);
  color: #F2F1E8;
  border-radius: 32px;
  padding: 72px 56px;
}
.security .eyebrow { color: var(--sage); }
.security .section-title { color: #FDFDF9; }
.security .section-sub { color: rgba(242, 241, 232, 0.72); }
.security-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 44px;
}
.security-card {
  background: rgba(253, 253, 249, 0.06);
  border: 1px solid rgba(253, 253, 249, 0.14);
  border-radius: var(--radius-md);
  padding: 24px;
}
.security-card h3 { font-size: 17px; margin-bottom: 8px; color: #FDFDF9; }
.security-card p { font-size: 14px; color: rgba(242, 241, 232, 0.72); }
.security-card .sec-icon {
  width: 38px; height: 38px;
  border-radius: 11px;
  background: rgba(143, 166, 98, 0.22);
  color: var(--sage);
  display: grid;
  place-items: center;
  margin-bottom: 14px;
}

/* tracker spotlight */
.tracker-band {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.tracker-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px 28px;
  box-shadow: 0 20px 50px rgba(26, 31, 20, 0.07);
}
.tracker-title {
  display: flex;
  align-items: center;
  gap: 11px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 8px;
}
.tracker-title .p-logo { width: 38px; height: 38px; }
.tracker-title strong { font-size: 15.5px; display: block; }
.tracker-title small { color: var(--muted); font-size: 12.5px; }
.t-step {
  display: flex;
  gap: 14px;
  position: relative;
  padding: 12px 0;
}
.t-step::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 34px;
  bottom: -12px;
  width: 2px;
  background: var(--line);
}
.t-step:last-child::before { display: none; }
.t-dot {
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 2px solid var(--line);
  background: #FFFFFF;
  flex-shrink: 0;
  margin-top: 2px;
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 700;
  color: #FFF;
}
.t-step.done .t-dot { background: var(--sage); border-color: var(--sage); }
.t-step.done::before { background: var(--sage); }
.t-step.active .t-dot { border-color: var(--pine); box-shadow: 0 0 0 4px var(--sage-soft); }
.t-step strong { font-size: 14px; display: block; }
.t-step small { font-size: 12.5px; color: var(--muted); }
.t-step.pending strong { color: var(--muted); }
.tracker-copy h2 { margin-bottom: 16px; }
.tracker-copy p { color: var(--muted); margin-bottom: 14px; }
.tracker-list { list-style: none; margin-top: 22px; }
.tracker-list li {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  font-size: 15px;
  margin-bottom: 12px;
}
.tracker-list svg { flex-shrink: 0; margin-top: 3px; }

/* pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 400px));
  justify-content: center;
  gap: 20px;
}
.plan {
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 34px 30px;
  position: relative;
}
.plan.popular {
  border-color: var(--pine);
  background: #FDFDF7;
  box-shadow: 0 20px 50px rgba(79, 99, 56, 0.12);
}
.plan-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--pine);
  color: #FDFDF9;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 999px;
  white-space: nowrap;
}
.plan-name { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.plan-price {
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.plan-price small { font-size: 15px; font-weight: 500; color: var(--muted); }
.plan-note { font-size: 13.5px; color: var(--fern); font-weight: 600; margin: 4px 0 20px; }
.plan-note.muted { color: var(--muted); font-weight: 400; }
.plan ul { list-style: none; margin-bottom: 26px; }
.plan li {
  display: flex;
  gap: 10px;
  font-size: 14.5px;
  margin-bottom: 11px;
  color: #3A4030;
}
.plan li svg { flex-shrink: 0; margin-top: 4px; }
.plan .btn { width: 100%; }
.pricing-foot {
  text-align: center;
  font-size: 13.5px;
  color: var(--muted);
  margin-top: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* faq */
.faq-list { max-width: 720px; margin: 0 auto; }
.faq-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 24px;
  font-weight: 600;
  font-size: 15.5px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 22px;
  font-weight: 400;
  color: var(--fern);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-body {
  padding: 0 24px 20px;
  font-size: 14.5px;
  color: var(--muted);
}

/* final cta */
.final-cta {
  background: var(--panel);
  border-radius: 32px;
  padding: 72px 40px;
  text-align: center;
}
.final-cta h2 {
  font-size: clamp(30px, 4.5vw, 44px);
  max-width: 640px;
  margin: 0 auto 16px;
}
.final-cta p { color: var(--muted); max-width: 480px; margin: 0 auto 30px; }
.final-cta .hero-ctas { justify-content: center; }

/* footer */
.footer {
  border-top: 1px solid var(--line);
  padding: 48px 0 36px;
  margin-top: 88px;
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  flex-wrap: wrap;
}
.footer-tag { font-size: 13.5px; color: var(--muted); margin-top: 10px; max-width: 280px; }
.footer-links {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}
.footer-col h4 {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 9px; }
.footer-col a {
  text-decoration: none;
  font-size: 14px;
  color: var(--ink);
}
.footer-col a:hover { color: var(--pine); }
.footer-bottom {
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

/* ---------- legal pages ---------- */

.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 72px 24px 40px;
}
.legal h1 { font-size: clamp(32px, 4.5vw, 44px); margin-bottom: 8px; }
.legal .legal-updated { color: var(--muted); font-size: 14px; margin-bottom: 40px; }
.legal h2 { font-size: 22px; margin: 40px 0 12px; }
.legal h3 { font-size: 17px; margin: 26px 0 8px; }
.legal p, .legal li { font-size: 15.5px; color: #3A4030; margin-bottom: 12px; }
.legal ul { padding-left: 22px; margin-bottom: 16px; }
.legal .legal-note {
  background: var(--panel);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 36px;
}

/* ---------- reveal on scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .cancel-pill { animation: none !important; }
  .p-row.cancelled .cancel-pill { opacity: 1; transform: scale(1) rotate(-4deg); }
  .btn, .store-btn { transition: none; }
}

/* ---------- responsive ---------- */

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero { padding-top: 52px; }
  .steps, .features-grid { grid-template-columns: 1fr 1fr; }
  .tracker-band { grid-template-columns: 1fr; gap: 40px; }
  .security { padding: 56px 32px; }
  .security-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto; }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .steps, .features-grid { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .stats-inner { grid-template-columns: 1fr; gap: 24px; text-align: center; }
  .phone { width: 290px; }
  .phone-screen { min-height: 560px; }
  .final-cta { padding: 56px 24px; }
  .security { border-radius: 24px; padding: 44px 24px; }
  .final-cta { border-radius: 24px; }
}
