/* DeductSam — Landing Page Styles */

@font-face {
  font-family: 'Libre Franklin';
  src: url('assets/LibreFranklin.ttf') format('truetype-variations');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Libre Franklin';
  src: url('assets/LibreFranklin-Italic.ttf') format('truetype-variations');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Coolvetica';
  src: url('assets/Coolvetica.otf') format('opentype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Coolvetica';
  src: url('assets/Coolvetica-Heavy.otf') format('opentype');
  font-weight: 800;
  font-display: swap;
}
@font-face {
  font-family: 'Coolvetica Cond';
  src: url('assets/Coolvetica-Cond.otf') format('opentype');
  font-weight: 400;
  font-display: swap;
}

:root {
  --ink: #0E2A35;
  --ink-soft: #2A4651;
  --ink-mute: #5A6E76;
  --teal: #175B73;
  --teal-deep: #0F4658;
  --teal-ink: #0a3645;
  --gold: #CCB25D;
  --gold-bright: #D9BE6A;
  --gold-deep: #A78D3F;
  --gold-aa-dark: #E8CB6E;   /* accessible gold for dark/teal backgrounds — 4.75:1 on teal */
  --gold-aa-light: #7D6318;  /* accessible gold for light/paper backgrounds — 5.45:1 on paper */
  --sky: #C1DDF3;
  --sky-soft: #E5F0FA;
  --paper: #FBF9F3;
  --paper-warm: #F4EFE2;
  --line: rgba(14, 42, 53, 0.12);
  --line-soft: rgba(14, 42, 53, 0.06);
  --shadow-card: 0 1px 0 rgba(14,42,53,0.04), 0 20px 50px -30px rgba(14,42,53,0.25);
  --shadow-lift: 0 30px 80px -40px rgba(23, 91, 115, 0.55);
  --radius: 14px;
  --radius-lg: 24px;
  --radius-xl: 40px;
  --container: 1240px;
  --gutter: clamp(20px, 4vw, 56px);
  --section: clamp(72px, 9vw, 140px);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: 'Libre Franklin', system-ui, -apple-system, sans-serif;
  font-feature-settings: "ss01", "cv11";
  color: var(--ink);
  background: var(--paper);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

/* ---------- Typography ---------- */
.eyebrow {
  font-family: 'Libre Franklin', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-aa-dark);  /* 4.75:1 on teal — WCAG AA */
}
.eyebrow.on-light { color: var(--gold-aa-light); }  /* 5.45:1 on paper — WCAG AA */

.display {
  font-family: 'Coolvetica', 'Libre Franklin', sans-serif;
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 0.94;
  color: #fff;
}
.display.on-light { color: var(--ink); }

h1.display { font-size: clamp(40px, 5.4vw, 76px); }
h2.display { font-size: clamp(40px, 6vw, 80px); line-height: 0.98; }
h3.display { font-size: clamp(28px, 3.4vw, 44px); line-height: 1.04; }

.lede {
  font-size: clamp(16px, 1.4vw, 19px);
  color: rgba(255,255,255,0.78);
  line-height: 1.55;
  max-width: 58ch;
}
.lede.on-light { color: var(--ink-soft); }

/* Gold hand-drawn circle around a word */
.circle-mark {
  position: relative;
  display: inline-block;
  padding: 0 0.18em;
  isolation: isolate;
}
.circle-mark svg {
  position: absolute;
  inset: -10% -6% -10% -6%;
  width: 112%;
  height: 120%;
  pointer-events: none;
  z-index: 0;
  overflow: visible;
}
.circle-mark > *:not(svg) { position: relative; z-index: 1; }
.circle-mark svg path {
  fill: none;
  stroke: var(--gold);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
.hero-circle path {
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  animation: drawCircle 1.4s cubic-bezier(.5,.05,.2,1) 0.4s forwards;
}
@keyframes drawCircle {
  to { stroke-dashoffset: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-circle path { animation: none; stroke-dashoffset: 0; }
}
.hero-circle.is-drawn path { stroke-dashoffset: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.005em;
  transition: transform .25s cubic-bezier(.2,.7,.2,1), background-color .2s, color .2s, box-shadow .25s;
  white-space: nowrap;
  user-select: none;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.btn-gold { background: var(--gold); color: var(--teal-ink); }
.btn-gold:hover { background: var(--gold-bright); box-shadow: 0 10px 30px -10px rgba(204,178,93,0.6); }

.btn-teal { background: var(--teal); color: #fff; }
.btn-teal:hover { background: var(--teal-deep); box-shadow: 0 10px 30px -10px rgba(23,91,115,0.55); }

.btn-ghost-light { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.3); }
.btn-ghost-light:hover { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.6); }

.btn-ghost-dark { background: transparent; color: var(--teal); border: 1px solid var(--teal); }
.btn-ghost-dark:hover { background: var(--teal); color: #fff; }

/* Large CTA button variant */
.btn-lg {
  padding: 18px 32px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--teal-ink);
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 18px;
}
.nav-logo img { height: 116px; width: auto; margin-block: -44px; }
.nav-links { display: flex; align-items: center; gap: 32px; font-size: 14px; }
.nav-links a { opacity: 0.78; transition: opacity .2s; }
.nav-links a:hover { opacity: 1; }
.nav-right { display: flex; align-items: center; gap: 16px; }
.nav-right .btn { padding: 10px 18px; font-size: 14px; }
.nav-login { font-size: 14px; color: rgba(255,255,255,0.78); font-weight: 500; text-decoration: none; transition: color .2s; }
.nav-login:hover { color: #fff; }

/* Hamburger button */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 6px;
  border-radius: 8px;
  background: rgba(255,255,255,0.06);
  transition: background .2s;
}
.nav-hamburger:hover { background: rgba(255,255,255,0.12); }
.nav-hamburger .bar {
  width: 100%;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform .3s cubic-bezier(.2,.7,.2,1), opacity .2s;
}
.nav-hamburger[aria-expanded="true"] .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger[aria-expanded="true"] .bar:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger[aria-expanded="true"] .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 880px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
}

/* Mobile full-screen menu */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  top: 0;
  z-index: 49;
  background: var(--teal-ink);
  padding: 120px var(--gutter) 48px;
  flex-direction: column;
  gap: 8px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-size: 24px;
  font-family: 'Coolvetica', sans-serif;
  color: rgba(255,255,255,0.85);
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: color .2s;
}
.mobile-menu a:last-of-type { border-bottom: none; }
.mobile-menu a:hover { color: #fff; }
.mobile-menu .mobile-cta { margin-top: 28px; display: flex; }
.mobile-menu .mobile-cta .btn { width: 100%; justify-content: center; }

/* ---------- Hero ---------- */
.hero {
  background: var(--teal);
  color: #fff;
  padding-top: clamp(48px, 7vw, 88px);
  padding-bottom: clamp(64px, 9vw, 120px);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 80% 0%, rgba(204,178,93,0.10), transparent 60%),
    radial-gradient(ellipse 50% 50% at 0% 100%, rgba(193,221,243,0.06), transparent 60%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
.hero-eyebrow { color: var(--gold-aa-dark); margin-bottom: 22px; display: inline-flex; align-items: center; gap: 10px; }
.hero-eyebrow .dot { width: 6px; height: 6px; background: var(--gold); border-radius: 50%; }
.hero h1 { margin: 0 0 28px; }
.hero .lede { margin-bottom: 36px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-bottom: 28px; }
.hero-trust {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  font-size: 14px; color: rgba(255,255,255,0.75);
}
.hero-trust .pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 16px; border-radius: 999px;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12);
  font-size: 13px;
}
.hero-trust .pill svg { width: 14px; height: 14px; flex-shrink: 0; color: var(--gold); }
.hero-trust .pill strong { color: #fff; font-weight: 600; }

.hero-visual {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: 200px 200px 28px 28px;
  background: linear-gradient(180deg, #1d6e89, #0f4658);
  overflow: hidden;
  box-shadow: var(--shadow-lift);
  max-height: 640px;
}

@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { aspect-ratio: 4/3; border-radius: 28px; max-width: 520px; }
}

/* Phone mock inside hero visual */
.phone-mock {
  position: absolute;
  inset: 8% 14% -2% 14%;
  background: #0a2532;
  border-radius: 38px 38px 28px 28px;
  padding: 12px 12px 0 12px;
  box-shadow: 0 60px 120px -40px rgba(0,0,0,0.6);
  display: flex;
  flex-direction: column;
}
.phone-screen {
  background: var(--paper);
  border-radius: 28px 28px 14px 14px;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.phone-status {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 11px; font-weight: 600; color: var(--ink-soft);
  padding-block: 4px;
}
.phone-status .notch { width: 50px; height: 18px; background: #0a2532; border-radius: 999px; }
.phone-header { display: flex; align-items: center; justify-content: space-between; padding: 8px 2px 12px; border-bottom: 1px solid var(--line-soft); }
.phone-header h4 { margin: 0; font-family: 'Coolvetica', sans-serif; font-size: 18px; font-weight: 400; letter-spacing: -0.01em; }
.phone-header .avatar { width: 26px; height: 26px; border-radius: 50%; background: var(--sky); }
.phone-stat {
  background: linear-gradient(160deg, var(--teal), var(--teal-deep));
  border-radius: 18px; padding: 14px 16px; color: #fff;
  display: flex; flex-direction: column; gap: 4px;
}
.phone-stat .label { font-size: 10px; opacity: 0.7; text-transform: uppercase; letter-spacing: 0.1em; }
.phone-stat .value { font-family: 'Coolvetica', sans-serif; font-size: 24px; }
.phone-stat .delta { color: var(--gold-aa-dark); font-size: 11px; font-weight: 600; }
.phone-list { display: flex; flex-direction: column; gap: 8px; }
.phone-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px; border-radius: 12px; background: #fff;
  border: 1px solid var(--line-soft);
  font-size: 11px;
  animation: fadeInUp .5s both;
}
.phone-item .icon { width: 28px; height: 28px; border-radius: 8px; background: var(--sky-soft); display: grid; place-items: center; flex-shrink: 0; }
.phone-item .icon svg { width: 14px; height: 14px; stroke: var(--teal); fill: none; }
.phone-item .title { flex: 1; font-weight: 500; }
.phone-item .amt { font-family: 'Coolvetica', sans-serif; color: var(--teal); font-size: 13px; }
.phone-item .amt::before { content: '+ '; color: var(--gold-aa-light); }

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Trust strip ---------- */
.trust-strip {
  background: #fff;
  border-block: 1px solid var(--line-soft);
  padding-block: 22px;
  overflow: hidden;
}
.trust-strip-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(16px, 3vw, 40px);
  flex-wrap: wrap;
}
.trust-strip-item {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; color: var(--ink-mute); font-weight: 500;
  letter-spacing: 0.01em;
}
.trust-strip-item svg { width: 18px; height: 18px; color: var(--teal); }
.trust-strip-item a { color: var(--teal); text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Sections ---------- */
section { position: relative; }
.section-pad { padding-block: var(--section); }
.section { padding-block: var(--section); }

.section-header { max-width: 760px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-header .eyebrow { margin-bottom: 16px; display: inline-block; }
.section-header h2 { margin: 0 0 18px; }
.section-header p { margin: 0; }

/* ---------- Calculator ---------- */
.calc-section { background: var(--paper); }
.calc-card {
  position: relative;
  background: #fff;
  border-radius: var(--radius-xl);
  padding: clamp(28px, 4vw, 56px);
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(28px, 4vw, 56px);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--line-soft);
  overflow: hidden;
}
.calc-card::before {
  content: "";
  position: absolute;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(193,221,243,0.55), transparent 60%);
  right: -120px; top: -120px;
  pointer-events: none;
}
@media (max-width: 920px) {
  .calc-card { grid-template-columns: 1fr; }
}

.calc-inputs { display: flex; flex-direction: column; gap: 20px; position: relative; }
.calc-inputs .calc-title {
  font-family: 'Coolvetica', sans-serif;
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1;
  margin: 0 0 6px;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.calc-inputs .calc-sub { font-size: 14px; color: var(--ink-mute); margin: 0 0 12px; }

.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-mute); }

.range-field { display: flex; flex-direction: column; gap: 6px; }
.range-field .range-head { display: flex; justify-content: space-between; align-items: baseline; }
.range-field .range-val { font-family: 'Coolvetica', sans-serif; font-size: 20px; color: var(--teal); }
.range-field input[type="range"] {
  appearance: none; width: 100%; height: 6px; background: var(--line-soft); border-radius: 999px; outline: none;
  margin-top: 8px;
}
.range-field input[type="range"]::-webkit-slider-thumb {
  appearance: none; width: 20px; height: 20px; border-radius: 50%; background: var(--teal); border: 3px solid #fff; box-shadow: 0 2px 8px rgba(0,0,0,0.2); cursor: pointer;
}
.range-field input[type="range"]::-moz-range-thumb {
  width: 20px; height: 20px; border-radius: 50%; background: var(--teal); border: 3px solid #fff; box-shadow: 0 2px 8px rgba(0,0,0,0.2); cursor: pointer;
}

.chip-group { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 9px 14px;
  border-radius: 999px;
  background: var(--paper);
  border: 1.5px solid var(--line);
  font-size: 13px; font-weight: 500;
  color: var(--ink-soft);
  transition: all .2s;
}
.chip:hover { border-color: var(--teal); color: var(--teal); }
.chip.active { background: var(--teal); color: #fff; border-color: var(--teal); }

/* Result side */
.calc-result {
  background: linear-gradient(165deg, #145068 0%, #0a3645 100%);
  border-radius: 28px;
  padding: clamp(24px, 3vw, 36px);
  color: #fff;
  position: relative;
  overflow: hidden;
  display: flex; flex-direction: column;
  min-height: 460px;
}
.calc-result::before {
  content: "";
  position: absolute; right: -80px; bottom: -80px;
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(204,178,93,0.20), transparent 65%);
  pointer-events: none;
}

.scan-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.scan-status { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gold-aa-dark); }
.scan-status .pulse {
  width: 8px; height: 8px; border-radius: 50%; background: var(--gold);
  box-shadow: 0 0 0 0 rgba(204,178,93,0.7);
  animation: pulse 1.6s infinite;
}
@keyframes pulse { 70% { box-shadow: 0 0 0 12px rgba(204,178,93,0); } 100% { box-shadow: 0 0 0 0 rgba(204,178,93,0); } }
.scan-status.idle .pulse { background: rgba(255,255,255,0.5); animation: none; }
.scan-status.done { color: var(--sky); }
.scan-status.done .pulse { background: var(--sky); animation: none; }

.scan-bar {
  height: 4px; border-radius: 999px;
  background: rgba(255,255,255,0.08); overflow: hidden;
  margin-bottom: 22px;
}
.scan-bar .fill {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-bright) 50%, var(--sky) 100%);
  transition: width .25s ease;
}

.scan-categories { display: flex; flex-direction: column; gap: 8px; flex: 1; }
.scan-cat {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  font-size: 13px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .35s ease, transform .35s ease;
}
.scan-cat.visible { opacity: 1; transform: translateY(0); }
.scan-cat .check {
  width: 22px; height: 22px; border-radius: 50%;
  background: rgba(204,178,93,0.16);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.scan-cat .check svg { width: 12px; height: 12px; stroke: var(--gold); stroke-width: 3; fill: none; }
.scan-cat .cat-name { flex: 1; color: rgba(255,255,255,0.9); }
.scan-cat .cat-amt {
  font-family: 'Coolvetica', sans-serif;
  font-size: 15px;
  color: var(--gold-bright);
}

.result-final {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.result-final .result-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  margin-bottom: 6px;
}
.result-final .big-num {
  font-family: 'Coolvetica', sans-serif;
  font-size: clamp(56px, 8vw, 96px);
  line-height: 0.94;
  color: var(--gold);
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  margin: 4px 0 8px;
}
.result-final .big-num .cents { font-size: 0.4em; color: rgba(204,178,93,0.7); }
.result-final .disclaim { font-size: 11px; color: rgba(255,255,255,0.72); line-height: 1.5; max-width: 36ch; margin-bottom: 18px; }
.result-final .cta-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* ---------- How it works ---------- */
.how-section { background: var(--sky-soft); }
.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 32px);
}
@media (max-width: 880px) {
  .how-grid { grid-template-columns: 1fr; }
}
.step-card {
  background: #fff;
  border-radius: 28px;
  padding: clamp(28px, 3vw, 40px);
  border: 1px solid var(--line-soft);
  position: relative;
  display: flex; flex-direction: column; gap: 16px;
  transition: transform .3s cubic-bezier(.2,.7,.2,1), box-shadow .3s;
}
.step-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.step-card .step-num {
  font-family: 'Coolvetica', sans-serif;
  font-size: 64px;
  line-height: 0.9;
  color: var(--sky);
  letter-spacing: -0.04em;
}
.step-card .step-icon-wrap {
  width: 56px; height: 56px;
  border-radius: 16px;
  background: var(--paper-warm);
  display: grid; place-items: center;
  position: absolute; top: clamp(28px, 3vw, 40px); right: clamp(28px, 3vw, 40px);
}
.step-card .step-icon-wrap svg { width: 26px; height: 26px; color: var(--teal); }
.step-card h3 { font-family: 'Coolvetica', sans-serif; font-weight: 400; font-size: 28px; margin: 4px 0 0; letter-spacing: -0.01em; color: var(--ink); }
.step-card p { margin: 0; color: var(--ink-soft); font-size: 15px; line-height: 1.55; }

/* ---------- Pricing ---------- */
.pricing-section { background: var(--paper); }

/* Billing toggle */
.billing-toggle {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 6px 8px 6px 16px;
  font-size: 14px;
  color: var(--ink-soft);
  margin-bottom: 40px;
}
.billing-toggle .toggle-option { padding: 6px 12px; border-radius: 999px; cursor: pointer; transition: all .2s; font-weight: 500; }
.billing-toggle .toggle-option.active { background: var(--teal); color: #fff; }
.billing-toggle .save-badge { font-size: 11px; font-weight: 700; color: var(--teal-ink); background: var(--gold); padding: 3px 9px; border-radius: 999px; letter-spacing: 0.04em; }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2vw, 24px);
  align-items: stretch;
}
@media (max-width: 880px) {
  .pricing-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
}

.plan {
  display: flex; flex-direction: column;
  padding: clamp(28px, 3vw, 36px);
  border-radius: 24px;
  background: #fff;
  border: 1.5px solid var(--line);
  transition: transform .3s, box-shadow .3s, border-color .3s;
}
.plan:hover { transform: translateY(-2px); box-shadow: var(--shadow-card); }

.plan.featured {
  background: var(--teal);
  color: #fff;
  border-color: var(--teal);
  position: relative;
  box-shadow: var(--shadow-lift);
  transform: translateY(-8px);
}
@media (max-width: 880px) { .plan.featured { transform: none; } }
.plan.featured:hover { transform: translateY(-12px); }

.plan-flag {
  position: absolute;
  top: -14px; left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: var(--teal-ink);
  font-size: 11px; font-weight: 700;
  padding: 6px 14px; border-radius: 999px;
  letter-spacing: 0.08em; text-transform: uppercase;
  white-space: nowrap;
}
.plan-name { font-family: 'Coolvetica', sans-serif; font-size: 24px; letter-spacing: -0.005em; }
.plan.featured .plan-name { color: var(--gold); }
.plan-tag { font-size: 13px; color: var(--ink-mute); margin-top: 4px; }
.plan.featured .plan-tag { color: rgba(255,255,255,0.7); }
.plan-price {
  display: flex; align-items: baseline; gap: 6px;
  margin: 22px 0 4px;
}
.plan-price .num {
  font-family: 'Coolvetica', sans-serif;
  font-size: 56px; line-height: 0.95;
  letter-spacing: -0.02em;
}
.plan-price .per { font-size: 13px; color: var(--ink-mute); }
.plan.featured .plan-price .per { color: rgba(255,255,255,0.7); }
.plan-annual { font-size: 12px; color: var(--ink-mute); margin-bottom: 6px; }
.plan.featured .plan-annual { color: rgba(255,255,255,0.78); }  /* 5.00:1 on teal — WCAG AA */
.plan-annual .save { color: var(--gold-aa-light); font-weight: 600; }  /* 5.45:1 on white/paper */
.plan.featured .plan-annual .save { color: var(--gold-aa-dark); }  /* 4.75:1 on teal */
.plan-trial-line { font-size: 13px; color: var(--gold-aa-light); font-weight: 600; margin-bottom: 24px; }  /* 5.45:1 on white */
.plan.featured .plan-trial-line { color: var(--gold-aa-dark); }  /* 4.75:1 on teal */
.plan-cta { margin-bottom: 24px; }
.plan-cta .btn { width: 100%; justify-content: center; }
.plan-features { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; flex: 1; }
.plan-features li { display: flex; gap: 10px; font-size: 14px; line-height: 1.45; }
.plan-features li svg { flex-shrink: 0; width: 18px; height: 18px; color: var(--teal); margin-top: 2px; }
.plan.featured .plan-features li svg { color: var(--gold); }

.pricing-foot { text-align: center; margin-top: 40px; font-size: 14px; color: var(--ink-mute); }
.pricing-foot strong { color: var(--ink); }

/* ---------- Final CTA Band ---------- */
.final-cta {
  background: var(--teal);
  color: #fff;
  padding-block: clamp(80px, 10vw, 140px);
  position: relative;
  overflow: hidden;
}
.final-cta::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle 60% at 50% 100%, rgba(204,178,93,0.18), transparent 60%);
  pointer-events: none;
}
.final-cta-inner { text-align: center; max-width: 780px; margin: 0 auto; position: relative; }
.final-cta h2 { margin: 0 0 22px; }
.final-cta .lede { margin: 0 auto 40px; max-width: 56ch; }
.final-cta .cta-main { margin-bottom: 32px; }

/* Email capture */
.email-capture { max-width: 480px; margin: 0 auto; }
.email-capture-label {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}
.email-capture-row {
  display: flex;
  gap: 8px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.20);
  border-radius: 999px;
  padding: 6px 6px 6px 20px;
}
.email-capture-row input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: #fff;
  font-size: 15px;
}
.email-capture-row input::placeholder { color: rgba(255,255,255,0.45); }
.email-capture-row .btn { padding: 12px 20px; font-size: 14px; flex-shrink: 0; }
.email-capture-success {
  display: none;
  color: var(--gold-aa-dark);  /* 4.75:1 on teal — WCAG AA */
  font-size: 14px;
  font-weight: 600;
  margin-top: 14px;
  text-align: center;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--teal-ink);
  color: rgba(255,255,255,0.7);
  padding-block: 64px 32px;
  font-size: 14px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
@media (max-width: 880px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .footer-top { grid-template-columns: 1fr; }
}
.footer-brand img { height: 72px; margin-block: -24px 0; }
.footer-brand p { margin: 18px 0 28px; max-width: 36ch; line-height: 1.5; }
.footer-brand .footer-cta .btn { font-size: 14px; padding: 12px 22px; }

.footer-col h5 {
  font-family: 'Libre Franklin', sans-serif;
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 18px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { transition: color .2s; }
.footer-col a:hover { color: #fff; }

.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding-top: 28px; flex-wrap: wrap;
  font-size: 12px; color: rgba(255,255,255,0.65);
}
.footer-bottom .badge-row { display: flex; align-items: center; gap: 14px; }
.footer-bottom .sec-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 10px; border-radius: 8px;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
}
.footer-bottom .sec-badge svg { width: 14px; height: 14px; color: var(--gold); }
.footer-compliance { max-width: 520px; line-height: 1.5; }

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  background: var(--teal-ink);
  color: rgba(255,255,255,0.85);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: 0 20px 60px -20px rgba(0,0,0,0.6);
  max-width: min(580px, calc(100vw - 32px));
  width: 100%;
  font-size: 13px;
}
.cookie-banner p { margin: 0; flex: 1; line-height: 1.5; }
.cookie-banner a { color: var(--gold); text-decoration: underline; text-underline-offset: 2px; }
.cookie-actions { display: flex; gap: 8px; flex-shrink: 0; }
.cookie-actions .btn { padding: 9px 16px; font-size: 13px; }
@media (max-width: 600px) {
  .cookie-banner { flex-direction: column; align-items: flex-start; }
  .cookie-actions { width: 100%; }
  .cookie-actions .btn { flex: 1; justify-content: center; }
}
/* Override: display:flex on .cookie-banner beats the [hidden] attribute's default.
   This rule restores the expected hide behaviour when JS sets hidden. */
.cookie-banner[hidden] { display: none !important; }

/* ---------- Reveal-on-scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1);
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* Stagger reveals */
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }

/* Footnote asterisk */
.asterisk-note {
  font-size: 12px;
  color: var(--ink-mute);
  margin-top: 32px;
}
.asterisk-note.light { color: rgba(255,255,255,0.70); }

/* ============================================================
   Inner pages — shared styles
   ============================================================ */

/* Simple teal hero for non-homepage pages */
.page-hero {
  background: var(--teal);
  color: #fff;
  padding: clamp(72px, 9vw, 120px) 0 clamp(56px, 7vw, 96px);
  position: relative;
  overflow: hidden;
  text-align: center;
}
.page-hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 55% 60% at 80% 0%, rgba(204,178,93,0.09), transparent 55%),
    radial-gradient(ellipse 45% 50% at 10% 100%, rgba(193,221,243,0.06), transparent 55%);
  pointer-events: none;
}
.page-hero-inner { position: relative; max-width: 720px; margin: 0 auto; }
.page-hero .eyebrow { margin-bottom: 14px; display: inline-block; }
.page-hero h1 { margin: 0 0 18px; font-size: clamp(36px, 5vw, 64px); }
.page-hero .lede { margin: 0 auto; }

/* Prose content area (legal pages) */
.prose {
  max-width: 760px;
  margin: 0 auto;
  padding-block: clamp(56px, 7vw, 96px);
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.7;
}
.prose h2 {
  font-family: 'Coolvetica', sans-serif;
  font-weight: 400;
  font-size: clamp(24px, 2.8vw, 34px);
  color: var(--ink);
  letter-spacing: -0.01em;
  margin: 48px 0 16px;
  padding-top: 48px;
  border-top: 1px solid var(--line-soft);
}
.prose h2:first-child { margin-top: 0; padding-top: 0; border-top: none; }
.prose h3 {
  font-family: 'Libre Franklin', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  margin: 28px 0 10px;
}
.prose p { margin: 0 0 18px; }
.prose p:last-child { margin-bottom: 0; }
.prose ul, .prose ol {
  padding-left: 22px;
  margin: 0 0 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.prose a { color: var(--teal); text-decoration: underline; text-underline-offset: 2px; }
.prose a:hover { color: var(--teal-deep); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose .meta {
  font-size: 13px;
  color: var(--ink-mute);
  margin-bottom: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line-soft);
}
.prose .disclaimer-box {
  background: var(--sky-soft);
  border: 1px solid rgba(23,91,115,0.12);
  border-radius: 14px;
  padding: 20px 24px;
  margin: 24px 0;
  font-size: 14px;
  color: var(--ink-soft);
}
.prose .disclaimer-box strong { color: var(--teal); }

/* Two-column layout utility */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}
@media (max-width: 880px) { .two-col { grid-template-columns: 1fr; } }

/* CPA page specific */
.cpa-value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2.5vw, 28px);
  margin-top: clamp(40px, 5vw, 64px);
}
@media (max-width: 880px) { .cpa-value-grid { grid-template-columns: 1fr; } }

.value-card {
  background: #fff;
  border-radius: 20px;
  padding: clamp(24px, 3vw, 36px);
  border: 1.5px solid var(--line);
  transition: transform .3s cubic-bezier(.2,.7,.2,1), box-shadow .3s;
}
.value-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-card); }
.value-card .vc-icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  background: var(--sky-soft);
  display: grid; place-items: center;
  margin-bottom: 18px;
}
.value-card .vc-icon svg { width: 24px; height: 24px; color: var(--teal); }
.value-card h3 { font-family: 'Coolvetica', sans-serif; font-size: 22px; font-weight: 400; margin: 0 0 10px; color: var(--ink); letter-spacing: -0.01em; }
.value-card p { margin: 0; color: var(--ink-soft); font-size: 15px; line-height: 1.55; }

.cpa-referral-band {
  background: var(--teal-ink);
  color: #fff;
  border-radius: var(--radius-xl);
  padding: clamp(40px, 5vw, 64px);
  margin-top: clamp(40px, 6vw, 80px);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
}
@media (max-width: 760px) {
  .cpa-referral-band { grid-template-columns: 1fr; }
}
.cpa-referral-band h2 { font-family: 'Coolvetica', sans-serif; font-size: clamp(28px, 3.5vw, 44px); font-weight: 400; margin: 0 0 14px; color: var(--gold); letter-spacing: -0.01em; }
.cpa-referral-band p { margin: 0; color: rgba(255,255,255,0.75); font-size: 16px; line-height: 1.6; max-width: 52ch; }
.cpa-referral-band .cta-col { flex-shrink: 0; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
@media (max-width: 760px) { .cpa-referral-band .cta-col { align-items: stretch; } }

.packet-preview {
  background: #fff;
  border-radius: 24px;
  border: 1.5px solid var(--line);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.packet-preview-header {
  background: var(--teal);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.packet-preview-header .pp-logo { height: 32px; }
.packet-preview-header span { color: rgba(255,255,255,0.85); font-size: 13px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.packet-preview-body { padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.packet-row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; border-radius: 12px;
  background: var(--paper); border: 1px solid var(--line-soft);
  font-size: 13px;
}
.packet-row svg { width: 16px; height: 16px; color: var(--teal); flex-shrink: 0; }
.packet-row .pr-label { flex: 1; color: var(--ink-soft); }
.packet-row .pr-val { font-family: 'Coolvetica', sans-serif; font-size: 16px; color: var(--teal); }
.packet-row .pr-grade { font-weight: 700; font-size: 13px; }
.packet-row .pr-grade.a { color: #2d7d46; }
.packet-row .pr-grade.b { color: var(--gold-aa-light); }  /* 5.45:1 on paper — WCAG AA */

/* Security page */
.security-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(16px, 2.5vw, 28px);
}
@media (max-width: 760px) { .security-grid { grid-template-columns: 1fr; } }

.security-card {
  background: #fff;
  border-radius: 20px;
  padding: clamp(24px, 3vw, 36px);
  border: 1.5px solid var(--line);
}
.security-card .sc-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--sky-soft);
  display: grid; place-items: center;
  margin-bottom: 16px;
}
.security-card .sc-icon svg { width: 22px; height: 22px; color: var(--teal); }
.security-card h3 { font-family: 'Coolvetica', sans-serif; font-size: 20px; font-weight: 400; margin: 0 0 10px; letter-spacing: -0.01em; color: var(--ink); }
.security-card p { margin: 0; color: var(--ink-soft); font-size: 14px; line-height: 1.6; }

/* Invite page */
.invite-hero {
  background: var(--teal);
  color: #fff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(80px, 10vw, 120px) var(--gutter);
  position: relative;
  overflow: hidden;
}
.invite-hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 70% 10%, rgba(204,178,93,0.12), transparent 55%),
    radial-gradient(ellipse 50% 50% at 20% 90%, rgba(193,221,243,0.07), transparent 55%);
  pointer-events: none;
}
.invite-inner { position: relative; max-width: 600px; }
.invite-avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  display: grid; place-items: center;
  margin: 0 auto 24px;
  overflow: hidden;
}
.invite-from { font-size: 14px; color: rgba(255,255,255,0.65); margin-bottom: 8px; }
.invite-from strong { color: var(--gold-aa-dark); }  /* 4.75:1 on teal — WCAG AA */
.invite-hero h1 { margin: 0 0 20px; font-size: clamp(36px, 5vw, 60px); }
.invite-hero .lede { margin: 0 auto 36px; }
.invite-hero .micro { margin-top: 20px; font-size: 12px; color: rgba(255,255,255,0.70); }
