/* ── Dispute Letters — Design System ─────────────────────────────────────── */

/* ── Variables ───────────────────────────────────────────────────────────── */
:root {
  --navy:       #0d1b2a;
  --navy-mid:   #1a3a5c;
  --teal:       #0a6e78;
  --teal-lt:    #13a399;
  --teal-bg:    #f0f9fa;
  --blue:       #1e40af;
  --blue-lt:    #3b82f6;
  --success:    #059669;
  --amber:      #d97706;
  --danger:     #dc2626;
  --bg:         #f1f5f9;
  --bg-2:       #f2f4f7;
  --surface:    #ffffff;
  --white:      #ffffff;
  --border:     #e2e8f0;
  --border-dk:  #cbd5e1;
  --text-1:     #0d1b2a;
  --text-2:     #334155;
  --text-3:     #64748b;
  --text-4:     #94a3b8;
  --r:          12px;
  --r-sm:       8px;
  --r-lg:       20px;
  --sh:         0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.05);
  --sh-md:      0 4px 6px -1px rgba(0,0,0,.08), 0 2px 4px -1px rgba(0,0,0,.05);
  --sh-lg:      0 10px 15px -3px rgba(0,0,0,.08), 0 4px 6px -2px rgba(0,0,0,.04);
  --sh-xl:      0 20px 25px -5px rgba(0,0,0,.08), 0 10px 10px -5px rgba(0,0,0,.03);
}

/* ── Reset & Base ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text-1);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
input, textarea, select { font-family: inherit; }
a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Typography ───────────────────────────────────────────────────────────── */
.t-display { font-size: clamp(2.25rem, 5vw, 3.5rem); font-weight: 800; line-height: 1.08; letter-spacing: -0.04em; }
.t-h1      { font-size: clamp(1.75rem, 3.5vw, 2.5rem); font-weight: 800; line-height: 1.12; letter-spacing: -0.035em; }
.t-h2      { font-size: clamp(1.4rem, 2.5vw, 1.875rem); font-weight: 700; line-height: 1.2; letter-spacing: -0.03em; }
.t-h3      { font-size: 1.2rem; font-weight: 700; line-height: 1.3; letter-spacing: -0.02em; }
.t-body    { font-size: 1rem; line-height: 1.65; color: var(--text-2); }
.t-small   { font-size: 0.875rem; line-height: 1.55; color: var(--text-3); }
.t-xs      { font-size: 0.8125rem; color: var(--text-4); }

/* ── Layout ───────────────────────────────────────────────────────────────── */
.container        { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.container--sm    { max-width: 720px;  margin: 0 auto; padding: 0 24px; }
.container--lg    { max-width: 1320px; margin: 0 auto; padding: 0 24px; }

/* ── Buttons ──────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px;
  font-size: 0.9375rem; font-weight: 600; line-height: 1;
  border-radius: var(--r-sm);
  transition: all 0.18s ease;
  text-decoration: none;
  cursor: pointer;
  border: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--teal);
  color: var(--white);
  box-shadow: 0 1px 2px rgba(10,110,120,.2), 0 4px 12px rgba(10,110,120,.25);
}
.btn-primary:hover { background: #086068; transform: translateY(-1px); box-shadow: 0 2px 4px rgba(10,110,120,.25), 0 8px 20px rgba(10,110,120,.3); text-decoration: none; color: white; }
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  background: white;
  color: var(--text-1);
  border: 1.5px solid var(--border-dk);
  box-shadow: var(--sh);
}
.btn-secondary:hover { border-color: var(--teal); color: var(--teal); transform: translateY(-1px); text-decoration: none; }

.btn-ghost {
  background: rgba(255,255,255,.12);
  color: white;
  border: 1.5px solid rgba(255,255,255,.25);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { background: rgba(255,255,255,.2); text-decoration: none; color: white; }

.btn-lg { padding: 16px 36px; font-size: 1rem; border-radius: var(--r-sm); }
.btn-sm { padding: 10px 18px; font-size: 0.8125rem; }
.btn-full { width: 100%; }

.btn-icon { padding: 10px; border-radius: var(--r-sm); }

/* ── Badges ───────────────────────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.02em;
  border-radius: 100px;
}
.badge-teal    { background: rgba(10,110,120,.1); color: var(--teal); }
.badge-navy    { background: rgba(13,27,42,.08); color: var(--navy); }
.badge-amber   { background: rgba(217,119,6,.1); color: var(--amber); }
.badge-success { background: rgba(5,150,105,.1); color: var(--success); }
.badge-white   { background: rgba(255,255,255,.15); color: white; border: 1px solid rgba(255,255,255,.25); }

/* ── Site Header ──────────────────────────────────────────────────────────── */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(13,27,42,.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.site-header__logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none;
}
.site-header__logo-mark {
  width: 34px; height: 34px;
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-lt) 100%);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 800; color: white; letter-spacing: -0.03em;
}
.site-header__logo-text {
  font-size: 1rem; font-weight: 700; color: white; letter-spacing: -0.02em;
  line-height: 1.2;
}
.site-header__logo-text span { display: block; font-size: 0.7rem; font-weight: 400; color: rgba(255,255,255,.5); letter-spacing: 0; }

/* ── Cadmus brand: Fraunces serif wordmark + mark ───────────────────────────── */
.brand-wordmark { font-family: 'Fraunces', Georgia, serif; font-weight: 600; letter-spacing: -0.005em; }
.site-header__logo-mark, .interview-header__logo-mark, .footer-brand .site-header__logo-mark {
  font-family: 'Fraunces', Georgia, serif; font-weight: 700;
}
.site-header__nav { display: flex; align-items: center; gap: 8px; }

/* ── Hero ─────────────────────────────────────────────────────────────────── */
.hero {
  padding: 140px 0 100px;
  background: linear-gradient(145deg, var(--navy) 0%, #1a3a5c 55%, #0a4a54 100%);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 40%, rgba(10,110,120,.18) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 10% 80%, rgba(26,64,175,.12) 0%, transparent 60%);
}
.hero::after {
  content: '';
  position: absolute; bottom: -1px; left: 0; right: 0; height: 140px;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,.55) 70%, #fff);
}
.hero__inner { position: relative; z-index: 1; }
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  margin-bottom: 24px;
}
.hero__title { color: white; margin-bottom: 24px; }
.hero__title em { font-style: normal; color: var(--teal-lt); }
.hero__sub {
  font-size: 1.125rem; line-height: 1.7;
  color: rgba(255,255,255,.72);
  max-width: 580px;
  margin-bottom: 36px;
}
.hero__actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 56px; }
.hero__stats { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; }
.hero__stat { display: flex; flex-direction: column; gap: 2px; }
.hero__stat-value { font-size: 1.5rem; font-weight: 800; color: white; letter-spacing: -0.03em; }
.hero__stat-label { font-size: 0.8rem; color: rgba(255,255,255,.5); }
.hero__stat-divider { width: 1px; height: 36px; background: rgba(255,255,255,.15); }

/* ── Trust Bar ────────────────────────────────────────────────────────────── */
.trust-bar {
  background: white;
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}
.trust-bar__inner {
  display: flex; align-items: center; justify-content: center;
  gap: 40px; flex-wrap: wrap;
}
.trust-item {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.875rem; font-weight: 500; color: var(--text-2);
}
.trust-item__icon {
  width: 20px; height: 20px;
  color: var(--teal);
  flex-shrink: 0;
}

/* ── Section ──────────────────────────────────────────────────────────────── */
.section { padding: 80px 0; }
.section--alt { background: white; }
.section__eyebrow {
  font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--teal);
  margin-bottom: 12px;
}
.section__title { margin-bottom: 16px; }
.section__sub {
  font-size: 1.0625rem; color: var(--text-3); line-height: 1.65;
  max-width: 560px;
}
.section__header { margin-bottom: 56px; }
.section__header--center { text-align: center; }
.section__header--center .section__sub { margin: 0 auto; }

/* ── How It Works ─────────────────────────────────────────────────────────── */
.how-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
}
.how-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 36px 28px;
  position: relative;
  box-shadow: var(--sh);
}
.how-card__number {
  position: absolute; top: -16px; left: 28px;
  width: 32px; height: 32px;
  background: var(--teal);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.875rem; font-weight: 700; color: white;
}
.how-card__icon { color: var(--teal); margin-bottom: 20px; line-height: 0; }
.how-card__icon svg { width: 40px; height: 40px; }
.how-card__title { font-size: 1.1rem; font-weight: 700; margin-bottom: 10px; color: var(--text-1); }
.how-card__desc { font-size: 0.9375rem; color: var(--text-3); line-height: 1.65; }

/* ── Letter Type Cards ────────────────────────────────────────────────────── */
.letter-category { margin-bottom: 48px; }
.letter-category:last-child { margin-bottom: 0; }
.letter-category__header {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--border);
}
.letter-category__title {
  font-size: 1.1rem; font-weight: 700; color: var(--text-1);
}
.letter-category__count {
  font-size: 0.8125rem; color: var(--text-3);
}
.letter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}
.letter-card {
  background: white;
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  padding: 28px;
  display: flex; flex-direction: column; gap: 16px;
  transition: all 0.2s ease;
  box-shadow: var(--sh);
  text-decoration: none; color: inherit;
  cursor: pointer;
}
.letter-card:hover {
  border-color: var(--teal);
  transform: translateY(-3px);
  box-shadow: var(--sh-lg), 0 0 0 1px rgba(10,110,120,.1);
  text-decoration: none;
}
.letter-card__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.letter-card__icon {
  width: 48px; height: 48px;
  background: var(--teal-bg);
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}
.letter-card__price {
  font-size: 1.1rem; font-weight: 800; color: var(--text-1);
  white-space: nowrap;
}
.letter-card__price span { font-size: 0.75rem; font-weight: 500; color: var(--text-3); }
.letter-card__title { font-size: 1rem; font-weight: 700; color: var(--text-1); }
.letter-card__desc { font-size: 0.875rem; color: var(--text-3); line-height: 1.6; flex: 1; }
.letter-card__cta {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.875rem; font-weight: 600; color: var(--teal);
  margin-top: 4px;
}
.letter-card__cta svg { width: 16px; height: 16px; transition: transform 0.15s; }
.letter-card:hover .letter-card__cta svg { transform: translateX(3px); }

/* ── Pricing Section ──────────────────────────────────────────────────────── */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: start; }
.pricing-card {
  background: white;
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  padding: 36px 32px;
  box-shadow: var(--sh);
  position: relative;
}
.pricing-card--featured {
  border-color: var(--teal);
  box-shadow: var(--sh-lg), 0 0 0 1px rgba(10,110,120,.15);
}
.pricing-card__popular {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--teal);
  color: white;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.04em;
  padding: 4px 14px; border-radius: 100px;
  white-space: nowrap;
}
.pricing-card__name { font-size: 0.875rem; font-weight: 600; color: var(--text-3); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.06em; }
.pricing-card__price {
  font-size: 2.5rem; font-weight: 800; color: var(--text-1); letter-spacing: -0.04em;
  margin-bottom: 4px; line-height: 1;
}
.pricing-card__price sup { font-size: 1.2rem; font-weight: 700; vertical-align: super; }
.pricing-card__period { font-size: 0.875rem; color: var(--text-3); margin-bottom: 24px; }
.pricing-card__desc { font-size: 0.9375rem; color: var(--text-2); line-height: 1.6; margin-bottom: 24px; }
.pricing-card__features { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }
.pricing-card__features li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 0.9rem; color: var(--text-2);
}
.pricing-card__features li::before {
  content: '';
  width: 18px; height: 18px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%230a6e78'%3E%3Cpath fill-rule='evenodd' d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z' clip-rule='evenodd'/%3E%3C/svg%3E") center/cover;
  flex-shrink: 0; margin-top: 1px;
}

/* ── FAQ ──────────────────────────────────────────────────────────────────── */
.faq-list { display: flex; flex-direction: column; gap: 0; }
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-item:first-child { border-top: 1px solid var(--border); }
.faq-btn {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px 0;
  text-align: left;
  background: none; border: none; cursor: pointer;
}
.faq-btn__q { font-size: 1rem; font-weight: 600; color: var(--text-1); }
.faq-btn__icon {
  width: 24px; height: 24px; flex-shrink: 0;
  color: var(--text-3);
  transition: transform 0.2s;
}
.faq-item.open .faq-btn__icon { transform: rotate(45deg); }
.faq-answer {
  display: none;
  padding: 0 0 22px;
  font-size: 0.9375rem; color: var(--text-3); line-height: 1.7;
  max-width: 680px;
}
.faq-item.open .faq-answer { display: block; }

/* ── Review CTA Band ──────────────────────────────────────────────────────── */
.review-band {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  border-radius: var(--r-lg);
  padding: 56px 48px;
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  flex-wrap: wrap;
}
.review-band__text { flex: 1; min-width: 280px; }
.review-band__eyebrow { font-size: 0.8125rem; font-weight: 600; color: rgba(255,255,255,.5); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 10px; }
.review-band__title { font-size: 1.5rem; font-weight: 700; color: white; margin-bottom: 12px; letter-spacing: -0.025em; }
.review-band__sub { font-size: 0.9375rem; color: rgba(255,255,255,.65); line-height: 1.6; }
.review-band__price { font-size: 1.75rem; font-weight: 800; color: white; margin-top: 16px; letter-spacing: -0.03em; }
.review-band__price span { font-size: 0.9rem; font-weight: 400; color: rgba(255,255,255,.5); }

/* ── Footer ───────────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--navy);
  padding: 56px 0 32px;
}
.site-footer__grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px;
  margin-bottom: 48px;
}
.footer-brand__desc {
  font-size: 0.9rem; color: rgba(255,255,255,.5); line-height: 1.6;
  max-width: 300px; margin-top: 16px;
}
.footer-brand__powered {
  margin-top: 20px;
  font-size: 0.8125rem; color: rgba(255,255,255,.35);
}
.footer-brand__powered a { color: rgba(255,255,255,.6); font-weight: 600; }
.footer-brand__powered a:hover { color: white; }
.footer-col__heading { font-size: 0.8125rem; font-weight: 700; color: rgba(255,255,255,.5); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 16px; }
.footer-col__links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col__links a { font-size: 0.9rem; color: rgba(255,255,255,.55); transition: color 0.15s; }
.footer-col__links a:hover { color: white; text-decoration: none; }
.site-footer__bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 28px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
}
.site-footer__copyright { font-size: 0.8125rem; color: rgba(255,255,255,.3); }
.site-footer__disclaimer { font-size: 0.75rem; color: rgba(255,255,255,.25); max-width: 560px; line-height: 1.55; }

/* ── Interview Page ───────────────────────────────────────────────────────── */
.interview-page {
  min-height: 100vh;
  padding: 80px 0 60px;
  background: var(--bg);
}
.interview-header {
  background: white;
  border-bottom: 1px solid var(--border);
  height: 64px;
  display: flex; align-items: center;
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  box-shadow: var(--sh);
}
.interview-header > .container { width: 100%; }
.interview-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
}
.interview-header__price-group { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.interview-header__brand {
  display: flex; align-items: center; gap: 10px; text-decoration: none;
}
.interview-header__logo-mark {
  width: 30px; height: 30px;
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-lt) 100%);
  border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 800; color: white;
}
.interview-header__title { font-size: 0.9375rem; font-weight: 700; color: var(--text-1); }
.interview-header__type { font-size: 0.8125rem; color: var(--text-3); }

/* Flow pages (interview / preview / success): carry a soft brand tint behind the cards
   instead of flat grey, fading into the page background. */
body.flow-bg {
  background: linear-gradient(180deg, #e6eff1 0%, #eef3f6 220px, var(--bg) 480px);
  background-attachment: fixed;
}

.interview-main {
  max-width: 680px; margin: 0 auto; padding: 40px 24px;
}

/* Progress */
.progress-track {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 20px 24px;
  margin-bottom: 28px;
  box-shadow: var(--sh);
}
.progress-meta {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 10px;
}
.progress-label { font-size: 0.8125rem; font-weight: 600; color: var(--text-2); }
.progress-count { font-size: 0.8125rem; color: var(--text-3); }
.progress-bar-outer {
  height: 6px; background: var(--border); border-radius: 100px; overflow: hidden;
}
.progress-bar-inner {
  height: 100%;
  background: linear-gradient(90deg, var(--teal) 0%, var(--teal-lt) 100%);
  border-radius: 100px;
  transition: width 0.35s cubic-bezier(.4,0,.2,1);
}

/* Step card */
.step-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 36px;
  box-shadow: var(--sh-md);
}
.step-card__eyebrow {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--teal);
  margin-bottom: 8px;
}
.step-card__title { font-size: 1.3rem; font-weight: 700; color: var(--text-1); margin-bottom: 6px; letter-spacing: -0.025em; }
.step-card__sub { font-size: 0.9rem; color: var(--text-3); margin-bottom: 32px; line-height: 1.6; }

/* Fields */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 20px; }
.field:last-child { margin-bottom: 0; }
.field-label {
  font-size: 0.875rem; font-weight: 600; color: var(--text-1);
}
.field-label span { font-weight: 400; color: var(--text-4); }
.field-input {
  width: 100%;
  padding: 11px 14px;
  font-size: 0.9375rem; color: var(--text-1);
  background: white;
  border: 1.5px solid var(--border-dk);
  border-radius: var(--r-sm);
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
}
.field-input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(10,110,120,.12);
}
.field-input::placeholder { color: var(--text-4); }
textarea.field-input { resize: vertical; min-height: 96px; line-height: 1.5; }

/* Select — replace the OS-default control with a clean custom chevron */
select.field-input {
  cursor: pointer;
  appearance: none; -webkit-appearance: none; -moz-appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
}
select.field-input:focus { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%230a6e78' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); }

/* Number — hide the up/down spinners for a cleaner field */
input[type="number"].field-input { -moz-appearance: textfield; appearance: textfield; }
input[type="number"].field-input::-webkit-outer-spin-button,
input[type="number"].field-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* Date — consistent height; tidy the native calendar button */
input[type="date"].field-input { min-height: 44px; }
input[type="date"].field-input::-webkit-calendar-picker-indicator { cursor: pointer; opacity: .55; }
input[type="date"].field-input::-webkit-calendar-picker-indicator:hover { opacity: .9; }
.field-hint { font-size: 0.8125rem; color: var(--text-3); }
.field-error { font-size: 0.8125rem; color: var(--danger); display: none; }
.field-input.is-error { border-color: var(--danger); }
.field-input.is-error + .field-error { display: block; }

/* ── Native date input ──────────────────────────────────────────────────────── */
.dl-date { cursor: pointer; }

/* ── Type chooser (interview step 1) ────────────────────────────────────────── */
.type-group { margin-top: 28px; }
.type-group:first-of-type { margin-top: 20px; }
.type-group__header { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.type-group__title { font-size: 1rem; font-weight: 700; color: var(--text-1, #101828); margin: 0; }
.type-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.type-card {
  display: flex; align-items: center; gap: 12px; text-align: left;
  padding: 16px; background: white; cursor: pointer;
  border: 1.5px solid var(--border-dk, #e2e5ea); border-radius: var(--r-sm, 10px);
  transition: border-color .15s, box-shadow .15s, transform .05s;
}
.type-card:hover { border-color: var(--teal, #0d9488); box-shadow: 0 4px 14px rgba(16,24,40,.08); }
.type-card:active { transform: translateY(1px); }
.type-card__icon { color: var(--teal); flex: 0 0 auto; display: inline-flex; align-items: center; line-height: 0; }
.type-card__label { flex: 1 1 auto; font-size: .9375rem; font-weight: 600; color: var(--text-1, #1d2939); line-height: 1.3; }
.type-card__price { flex: 0 0 auto; font-size: .875rem; font-weight: 700; color: var(--teal, #0d9488); }

/* ── "Saved on this device" hint ────────────────────────────────────────────── */
.step-saved-hint {
  font-size: 0.8125rem; color: var(--text-2, #475467);
  background: var(--bg-2, #f2f4f7); border-radius: var(--r-sm, 10px);
  padding: 8px 12px; margin: 4px 0 16px;
}
.link-btn {
  background: none; border: none; padding: 0; cursor: pointer;
  font-size: inherit; font-weight: 600; color: var(--teal, #0d9488); text-decoration: underline;
}
.link-btn:hover { opacity: .8; }

/* ── Letterhead upload ──────────────────────────────────────────────────────── */
.dl-lh__guide { font-size: 0.8125rem; color: var(--text-3); line-height: 1.5; margin-bottom: 12px; }
.dl-lh__row { display: flex; align-items: center; gap: 14px; }
.dl-lh__preview {
  margin-top: 12px; padding: 12px; border: 1px dashed var(--border-dk, #e2e5ea);
  border-radius: var(--r-sm, 10px); background: var(--bg-2, #f7f8fa); display: inline-block;
}
.dl-lh__preview img { max-width: 100%; max-height: 110px; display: block; }

/* ── Info callouts (display-only warnings) ──────────────────────────────────── */
.dl-info {
  font-size: 0.9375rem; line-height: 1.5; padding: 14px 16px; border-radius: var(--r-sm, 10px);
  background: var(--bg-2, #f2f4f7); color: var(--text-1, #1d2939); border-left: 4px solid var(--text-3, #8a93a3);
}
.dl-info--warn   { background: #fff7ed; border-left-color: #f59e0b; color: #7c4a03; }
.dl-info--danger { background: #fef2f2; border-left-color: var(--danger, #dc2626); color: #991b1b; }

/* ── Money input ────────────────────────────────────────────────────────────── */
.dl-money { position: relative; }
.dl-money__sym { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--text-3, #8a93a3); font-weight: 600; }
.dl-money__input { padding-left: 26px; }

/* Radio groups */
.radio-group { display: flex; flex-direction: column; gap: 10px; }
.radio-option {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px;
  background: white;
  border: 1.5px solid var(--border-dk);
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: all 0.15s;
}
.radio-option:hover { border-color: var(--teal); background: var(--teal-bg); }
.radio-option.selected { border-color: var(--teal); background: var(--teal-bg); }
.radio-option input[type="radio"] { display: none; }
.radio-dot {
  width: 18px; height: 18px; flex-shrink: 0;
  border: 2px solid var(--border-dk);
  border-radius: 50%;
  transition: all 0.15s;
  position: relative;
}
.radio-option.selected .radio-dot {
  border-color: var(--teal);
  background: var(--teal);
}
.radio-option.selected .radio-dot::after {
  content: '';
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 7px; height: 7px;
  background: white;
  border-radius: 50%;
}
.radio-option__label { font-size: 0.9375rem; color: var(--text-1); font-weight: 500; }

/* Navigation */
.step-nav {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 28px; padding-top: 24px;
  border-top: 1px solid var(--border);
}
.step-nav__back {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.9rem; font-weight: 500; color: var(--text-3);
  background: none; border: none; cursor: pointer;
  padding: 8px 0;
  transition: color 0.15s;
}
.step-nav__back:hover { color: var(--text-1); }
.step-nav__back svg { width: 16px; height: 16px; }
.step-nav__back:disabled { opacity: 0; pointer-events: none; }

/* ── Preview Page ─────────────────────────────────────────────────────────── */
.preview-page {
  min-height: 100vh;
  padding: 80px 0 60px;
}
.preview-main {
  max-width: 900px; margin: 0 auto; padding: 40px 24px;
  display: grid; grid-template-columns: 1fr 360px; gap: 32px; align-items: start;
}
.preview-panel { }

/* Letter mockup */
.letter-mockup {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--sh-lg);
  position: relative;
}
.letter-mockup__bar {
  height: 8px;
  background: linear-gradient(90deg, var(--teal) 0%, var(--teal-lt) 100%);
}
.letter-mockup__body { padding: 36px 40px; }
.letter-mockup__visible { }
.letter-mockup__date { font-size: 0.875rem; color: var(--text-3); margin-bottom: 24px; }
.letter-mockup__address { font-size: 0.9rem; color: var(--text-2); line-height: 1.7; margin-bottom: 20px; }
.letter-mockup__re {
  font-size: 0.9375rem; font-weight: 700; color: var(--text-1);
  margin-bottom: 16px; padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.letter-mockup__salutation { font-size: 0.9375rem; color: var(--text-1); margin-bottom: 16px; }
.letter-mockup__blurred { position: relative; }
.letter-mockup__blur-content {
  filter: blur(4.5px);
  user-select: none;
  pointer-events: none;
}
.letter-mockup__blur-content p {
  font-size: 0.9rem; color: var(--text-2); line-height: 1.75;
  margin-bottom: 14px;
}
.letter-mockup__fade {
  position: absolute; bottom: 0; left: 0; right: 0; height: 180px;
  background: linear-gradient(to bottom, transparent, white 85%);
}
.letter-mockup__lock {
  position: absolute; bottom: 0; left: 0; right: 0;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding-bottom: 24px;
  z-index: 1;
}
.letter-mockup__lock-icon {
  width: 40px; height: 40px;
  background: var(--navy);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.letter-mockup__lock-text { font-size: 0.8125rem; font-weight: 600; color: var(--text-3); }
.letter-pages-indicator {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 12px;
  background: var(--bg);
  border-top: 1px solid var(--border);
  font-size: 0.8125rem; color: var(--text-3);
}

/* Payment card */
.payment-card {
  background: white;
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  padding: 28px;
  box-shadow: var(--sh-md);
  position: sticky; top: 88px;
}
.payment-card__title { font-size: 1.05rem; font-weight: 700; color: var(--text-1); margin-bottom: 4px; }
.payment-card__type { font-size: 0.875rem; color: var(--text-3); margin-bottom: 20px; }
.payment-card__price-row {
  display: flex; align-items: baseline; gap: 6px;
  margin-bottom: 20px; padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.payment-card__price { font-size: 2.25rem; font-weight: 800; color: var(--text-1); letter-spacing: -0.04em; }
.payment-card__currency { font-size: 1rem; font-weight: 700; color: var(--text-3); }
.payment-card__includes { display: flex; flex-direction: column; gap: 8px; margin-bottom: 24px; }
.payment-card__includes-item {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.875rem; color: var(--text-2);
}
.payment-card__includes-item svg { color: var(--success); width: 17px; height: 17px; flex-shrink: 0; }
.payment-card__secure {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  font-size: 0.8125rem; color: var(--text-4);
  margin-top: 12px;
}
.payment-card__secure svg { width: 14px; height: 14px; }

/* ── Success Page ─────────────────────────────────────────────────────────── */
.success-page {
  min-height: 100vh; background: var(--bg);
  padding: 80px 0 60px;
}
.success-main {
  max-width: 720px; margin: 0 auto; padding: 48px 24px;
}
.success-header {
  text-align: center; margin-bottom: 40px;
}
.success-icon {
  width: 64px; height: 64px;
  background: linear-gradient(135deg, var(--success), #10b981);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 8px 24px rgba(5,150,105,.25);
}
.success-title { font-size: 2rem; font-weight: 800; color: var(--text-1); margin-bottom: 8px; letter-spacing: -0.035em; }
.success-sub { font-size: 1.05rem; color: var(--text-3); }
.success-loading {
  background: white; border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 48px 36px; text-align: center;
  box-shadow: var(--sh-md);
}
.success-loading__spinner {
  width: 48px; height: 48px;
  border: 3px solid var(--border);
  border-top-color: var(--teal);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 20px;
}
@keyframes spin { to { transform: rotate(360deg); } }
.success-loading__title { font-size: 1.1rem; font-weight: 700; color: var(--text-1); margin-bottom: 6px; }
.success-loading__sub { font-size: 0.9rem; color: var(--text-3); }
.download-card {
  background: white; border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 32px;
  box-shadow: var(--sh-md);
  margin-bottom: 20px;
}
.download-card__header {
  display: flex; align-items: flex-start; gap: 16px;
  margin-bottom: 24px;
}
.download-card__icon {
  width: 48px; height: 48px;
  background: var(--teal-bg);
  color: var(--teal);
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.download-card__title { font-size: 1.1rem; font-weight: 700; color: var(--text-1); margin-bottom: 2px; }
.download-card__meta { font-size: 0.875rem; color: var(--text-3); }
.download-card__actions { display: flex; flex-direction: column; gap: 10px; }
.download-instructions {
  background: var(--teal-bg); border: 1px solid rgba(10,110,120,.15);
  border-radius: var(--r-sm);
  padding: 14px 16px;
  font-size: 0.875rem; color: var(--teal);
  margin-top: 16px; line-height: 1.6;
}

/* Upsell card */
.upsell-group { margin-top: 28px; display: flex; flex-direction: column; gap: 16px; }
.upsell-group__eyebrow { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); margin: 0 0 2px; }
.upsell-card {
  border: 2px solid var(--navy);
  border-radius: var(--r);
  padding: 32px;
  background: linear-gradient(145deg, #f8fafc, white);
  position: relative; overflow: hidden;
}
.upsell-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--teal-lt));
}
.upsell-card__eyebrow {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--teal); margin-bottom: 10px;
}
.upsell-card__title { font-size: 1.15rem; font-weight: 700; color: var(--text-1); margin-bottom: 10px; letter-spacing: -0.02em; }
.upsell-card__body { font-size: 0.9rem; color: var(--text-3); line-height: 1.65; margin-bottom: 20px; }
.upsell-card__price-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
}
.upsell-card__price { font-size: 1.5rem; font-weight: 800; color: var(--text-1); letter-spacing: -0.03em; }
.upsell-card__price span { font-size: 0.875rem; font-weight: 500; color: var(--text-3); }

/* ── Policy Pages ─────────────────────────────────────────────────────────── */
.policy-header {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  padding: 20px 0;
}
.policy-header__inner { display: flex; align-items: center; justify-content: space-between; }
.policy-header__logo { font-size: 1rem; font-weight: 700; color: white; }
.policy-header__back { font-size: 0.875rem; color: rgba(255,255,255,.75); transition: color 0.15s; }
.policy-header__back:hover { color: white; text-decoration: none; }
.policy-body { max-width: 680px; margin: 0 auto; padding: 56px 24px 80px; }
.policy-body h1 { font-size: 2rem; font-weight: 800; color: var(--text-1); margin-bottom: 6px; letter-spacing: -0.035em; }
.policy-body .meta { font-size: 0.875rem; color: var(--text-3); margin-bottom: 40px; }
.policy-body h2 { font-size: 1.1rem; font-weight: 700; color: var(--text-1); margin: 32px 0 10px; }
.policy-body p, .policy-body li { font-size: 0.9375rem; color: var(--text-2); line-height: 1.75; margin-bottom: 12px; }
.policy-body ul { padding-left: 1.25rem; }

/* ── Repeater ─────────────────────────────────────────────────────────────── */
.repeater { display: flex; flex-direction: column; gap: 12px; }
.repeater-item {
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: var(--surface);
  overflow: hidden;
}
.repeater-item__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.repeater-item__label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.repeater-item__remove {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--danger);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: var(--r-sm);
  transition: background 0.15s;
}
.repeater-item__remove:hover { background: rgba(220,38,38,.08); }
.repeater-item__remove svg { flex-shrink: 0; }
.repeater-item__body { padding: 16px; display: flex; flex-direction: column; gap: 14px; }

/* Success-page disclaimer (shown for every generated document; replaces the in-document footer) */
.success-disclaimer {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 16px 18px; margin-bottom: 24px;
  background: #fffbeb; border: 1px solid #fde68a; border-left: 4px solid var(--amber);
  border-radius: var(--r-sm); color: var(--text-2); font-size: 0.9375rem; line-height: 1.55;
}
.success-disclaimer svg { color: var(--amber); flex-shrink: 0; margin-top: 2px; }
.success-disclaimer strong { color: var(--text-1); }

/* "Edit my answers" back link on the preview page */
.preview-back { display: inline-block; margin: 0 0 16px; color: var(--teal); font-size: 0.875rem; font-weight: 600; text-decoration: none; }
.preview-back:hover { text-decoration: underline; }
.repeater-add-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--teal);
  background: var(--teal-bg);
  border: 1.5px dashed rgba(10,110,120,.3);
  border-radius: var(--r);
  padding: 11px 18px;
  cursor: pointer;
  width: 100%;
  justify-content: center;
  transition: background 0.15s, border-color 0.15s;
}
.repeater-add-btn:hover { background: rgba(10,110,120,.12); border-color: var(--teal); }
.repeater-add-btn svg { flex-shrink: 0; }

/* ── Letter Document ──────────────────────────────────────────────────────── */
.letter-document-page {
  background: white; min-height: 100vh;
  padding: 60px 0;
}
.letter-document {
  max-width: 780px; margin: 0 auto; padding: 0 24px;
}
.letter-document p { font-size: 1rem; line-height: 1.8; margin-bottom: 1em; color: #1a1a1a; }
.letter-document strong { font-weight: 700; }
.letter-document hr { border: none; border-top: 1px solid #e5e5e5; margin: 24px 0; }
.letter-document .letter-header { margin-bottom: 36px; }
.letter-document .letter-footer { margin-top: 48px; border-top: 1px solid #e5e5e5; padding-top: 24px; font-size: 0.8125rem; color: #888; }
@media print {
  .letter-document-page { padding: 0; }
  .letter-actions { display: none !important; }
  .letter-document { max-width: 100%; padding: 0 40px; }
}

/* ── Utilities ────────────────────────────────────────────────────────────── */
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.text-center { text-align: center; }
.text-teal { color: var(--teal); }
.text-white { color: white; }

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .how-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .preview-main { grid-template-columns: 1fr; }
  .payment-card { position: static; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .review-band { flex-direction: column; text-align: center; }
}
@media (max-width: 640px) {
  .hero { padding: 110px 0 80px; }
  .hero__actions { flex-direction: column; align-items: flex-start; }
  .section { padding: 56px 0; }
  .step-card { padding: 28px 20px; }
  .letter-mockup__body { padding: 28px 24px; }
  .pricing-card { padding: 28px 24px; }
  .site-footer__grid { grid-template-columns: 1fr; }
  .site-footer__bottom { flex-direction: column; text-align: center; }
}
