:root {
  --bg: #fbfbfa;
  --surface: #ffffff;
  --surface-2: #f5f6f4;
  --text: #1a1a18;
  --muted: #6b7280;
  --faint: #9ca3af;
  --line: #ececec;
  --line-strong: #e0e0df;
  --accent: #1f7a5c;
  --accent-dark: #18624a;
  --accent-soft: #eaf4ef;
  --danger: #b4453a;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(20, 24, 22, 0.04), 0 1px 3px rgba(20, 24, 22, 0.06);
  --shadow: 0 6px 24px rgba(20, 24, 22, 0.06), 0 2px 6px rgba(20, 24, 22, 0.04);
  --shadow-lg: 0 20px 50px rgba(20, 24, 22, 0.10);
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.01em; margin: 0; }
p { margin: 0; }

/* ============ Brand ============ */
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; }
.brand-mark {
  width: 30px; height: 30px; border-radius: 8px;
  background: var(--accent); color: #fff;
  display: grid; place-items: center;
  font-size: 13px; font-weight: 700; letter-spacing: 0.02em;
}
.brand-name { font-size: 17px; font-weight: 650; }

/* ============ Buttons ============ */
.btn-primary, .btn-secondary, button.primary, .button.primary {
  display: inline-flex; align-items: center; justify-content: center;
  font: inherit; font-weight: 600; cursor: pointer;
  border-radius: var(--radius-sm); border: 1px solid transparent;
  padding: 12px 22px; transition: background .15s ease, box-shadow .15s ease, transform .05s ease;
}
.btn-primary, button.primary, .button.primary {
  background: var(--accent); color: #fff; box-shadow: var(--shadow-sm);
}
.btn-primary:hover, button.primary:hover, .button.primary:hover { background: var(--accent-dark); }
.btn-primary:active { transform: translateY(1px); }
.btn-primary.large { padding: 14px 28px; font-size: 16px; }

.btn-secondary {
  background: var(--surface); color: var(--text); border-color: var(--line-strong);
  box-shadow: var(--shadow-sm);
}
.btn-secondary:hover { background: var(--surface-2); }

.btn-primary.is-disabled,
.btn-primary[disabled], button[disabled] {
  background: var(--surface-2); color: var(--faint);
  border-color: var(--line); box-shadow: none; cursor: not-allowed; pointer-events: none;
}

.quiet-link {
  background: none; border: none; font: inherit; color: var(--muted);
  cursor: pointer; padding: 8px 4px; font-weight: 500;
}
.quiet-link:hover { color: var(--text); text-decoration: underline; }

/* ============ Marketing / Landing ============ */
.marketing-page { background: var(--bg); }

.site-nav {
  max-width: 1080px; margin: 0 auto; padding: 22px 24px;
  display: flex; justify-content: space-between; align-items: center; gap: 18px;
}
.site-nav nav { display: flex; align-items: center; gap: 22px; font-weight: 500; color: var(--muted); }
.site-nav nav a:hover { color: var(--text); }
.site-nav form { margin: 0; }

.hero-band {
  max-width: 1080px; margin: 0 auto; padding: 64px 24px 56px;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center;
}
.hero-eyebrow {
  display: inline-block; font-size: 13px; font-weight: 600; color: var(--accent);
  background: var(--accent-soft); padding: 5px 12px; border-radius: 999px; margin-bottom: 18px;
}
.hero-copy h1 {
  font-size: 52px; font-weight: 680; letter-spacing: -0.025em; margin-bottom: 18px;
}
.hero-copy p { font-size: 18px; color: var(--muted); max-width: 30em; }
.hero-actions { display: flex; align-items: center; gap: 18px; margin-top: 30px; }
.hero-actions form { margin: 0; }
.secondary-link { color: var(--muted); font-weight: 500; }
.secondary-link:hover { color: var(--text); }
.hero-trust { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.hero-trust li { color: var(--muted); font-size: 14px; font-weight: 500; display: flex; align-items: center; gap: 7px; }
.hero-trust li::before { content: "✓"; color: var(--accent); font-weight: 700; }

/* Deadline hook: turns "14 days" from a fact into THEIR deadline */
.deadline-hook {
  margin-top: 24px; padding: 16px 18px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow-sm);
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
}
.deadline-hook label { font-size: 14px; font-weight: 600; color: var(--text); }
.deadline-hook input {
  font: inherit; font-size: 14px; padding: 8px 10px;
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface);
}
.deadline-hook input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(31,122,92,.15); }
.deadline-result { flex-basis: 100%; margin: 0; font-size: 14px; color: var(--accent-dark); }
.deadline-result strong { font-weight: 700; }

.hero-founding { margin-top: 18px; font-size: 14px; color: var(--muted); }
.hero-founding a { color: var(--accent); font-weight: 600; }

.packet-demo {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow);
  display: grid; gap: 12px; color: inherit;
  transition: box-shadow .15s ease, transform .15s ease;
}
a.packet-demo:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.demo-cta { color: var(--accent) !important; font-size: 13px !important; font-weight: 650; }
.demo-head { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--muted); padding-bottom: 4px; border-bottom: none !important; }
.demo-dot { width: 9px; height: 9px; border-radius: 999px; background: var(--accent); }
.packet-demo > div:not(.demo-head) {
  display: flex; justify-content: space-between; align-items: baseline;
  padding-bottom: 12px; border-bottom: 1px solid var(--line);
}
.packet-demo span { color: var(--muted); font-size: 14px; }
.packet-demo strong { font-size: 20px; font-weight: 650; }
.demo-deadline { color: var(--accent); }
.packet-demo pre {
  margin: 0; font-family: var(--font); white-space: pre-wrap;
  background: var(--accent-soft); color: var(--accent-dark);
  padding: 14px; border-radius: var(--radius-sm); font-size: 13px; line-height: 1.5;
}

.section-band { max-width: 1080px; margin: 0 auto; padding: 40px 24px 56px; }
.section-band h2 { font-size: 30px; font-weight: 650; margin-bottom: 12px; }
.section-sub { color: var(--muted); font-size: 16px; max-width: 44em; margin-bottom: 32px; }

/* How-it-works animated flow */
.flow { display: flex; align-items: stretch; gap: 12px; flex-wrap: wrap; }
.flow-step {
  flex: 1; min-width: 180px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px; display: grid; gap: 8px; align-content: start;
  opacity: 0; transform: translateY(12px); animation: flow-in .5s ease forwards;
  animation-delay: calc(var(--i) * 0.12s);
}
.flow-icon { font-size: 26px; }
.flow-step strong { font-size: 15px; font-weight: 650; }
.flow-step span { color: var(--muted); font-size: 14px; }
.flow-arrow {
  display: flex; align-items: center; color: var(--faint); font-size: 22px; font-weight: 700;
  opacity: 0; animation: flow-in .5s ease forwards; animation-delay: calc(var(--i) * 0.12s);
}
@keyframes flow-in { to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) {
  .flow-step, .flow-arrow { animation: none; opacity: 1; transform: none; }
}

/* Sample packet preview */
.sample-band { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.sample-copy h2 { margin-bottom: 14px; }
.sample-copy p { color: var(--muted); font-size: 16px; }
.check-list { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 12px; }
.check-list li { display: flex; gap: 10px; font-size: 15px; }
.check-list li::before { content: "✓"; color: var(--accent); font-weight: 700; flex-shrink: 0; }
.sample-doc {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 28px; transform: rotate(-1deg);
}
.sample-doc-head { font-size: 11px; font-weight: 700; letter-spacing: .06em; color: var(--muted); }
.sample-doc-title { display: block; font-size: 20px; font-weight: 680; margin: 8px 0 16px; }
.sample-doc-meta { display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; font-size: 13px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.sample-doc-meta span { color: var(--muted); }
.sample-doc-meta b { text-align: right; }
.sample-doc-section { font-size: 13px; font-weight: 650; margin: 16px 0 6px; }
.sample-doc-text { color: var(--muted); font-size: 13px; line-height: 1.55; }
.sample-doc { display: block; transition: transform .2s ease, box-shadow .2s ease; }
.sample-doc:hover { transform: rotate(-1deg) translateY(-3px); box-shadow: 0 24px 56px rgba(20,24,22,.14); }
.sample-evidence { display: grid; gap: 10px; }
.sample-evidence article { display: flex; align-items: center; gap: 12px; }
.sample-evidence img { width: 52px; height: 40px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); flex-shrink: 0; }
.sample-evidence strong { display: block; font-size: 12.5px; }
.sample-evidence span { color: var(--muted); font-size: 11.5px; }
.sample-doc-cta { display: inline-block; margin-top: 16px; color: var(--accent); font-size: 13px; font-weight: 650; }
.sample-link { display: inline-block; margin-top: 22px; color: var(--accent); font-weight: 650; }
.sample-link:hover { text-decoration: underline; }

/* Sample export banner */
.sample-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  background: var(--accent-soft); border: 1px solid #cfe6db; border-radius: var(--radius-sm);
  padding: 14px 18px; margin-bottom: 22px;
}
.sample-banner span { font-size: 14px; font-weight: 600; color: var(--accent-dark); }
.sample-banner form { margin: 0; }
.sample-banner .btn-primary { padding: 9px 18px; }

.paid-banner {
  background: var(--accent-soft); border: 1px solid #cfe6db; border-radius: var(--radius-sm);
  padding: 14px 18px; margin-bottom: 22px;
}
.paid-banner span { font-size: 14px; font-weight: 600; color: var(--accent-dark); }
.paid-banner a { color: var(--accent-dark); text-decoration: underline; }

/* Trust grid */
/* DIY objection band */
.diy-band h2 { max-width: 26em; }
.diy-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.diy-grid article {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 22px; display: grid; gap: 8px; align-content: start; box-shadow: var(--shadow-sm);
}
.diy-grid strong { font-size: 16px; font-weight: 650; color: var(--accent-dark); }
.diy-grid span { color: var(--muted); font-size: 14.5px; }
.diy-close { margin-top: 22px; font-size: 15px; font-weight: 550; color: var(--text); }

.guarantee-line { margin-top: 10px; font-size: 14px; color: var(--accent-dark); font-weight: 550; }

.trust-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.trust-grid article {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px; display: grid; gap: 8px; align-content: start;
}
.trust-icon { font-size: 24px; }
.trust-grid strong { font-size: 16px; font-weight: 650; }
.trust-grid span { color: var(--muted); font-size: 14.5px; }

/* Founder's note */
.founder-note {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 32px; max-width: 720px;
}
.founder-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.founder-avatar {
  width: 46px; height: 46px; border-radius: 999px; background: var(--accent); color: #fff;
  display: grid; place-items: center; font-weight: 700; font-size: 15px; flex-shrink: 0;
}
.founder-head strong { display: block; font-size: 16px; }
.founder-head small { color: var(--muted); font-size: 13px; }
.founder-note p { font-size: 16px; line-height: 1.6; color: var(--text); margin-bottom: 14px; }
.founder-sign { color: var(--muted); font-weight: 600; }

/* Founding-host offer */
.founding-offer {
  background: var(--accent-soft); border: 1px solid #cfe6db; border-radius: var(--radius);
  padding: 36px; text-align: center;
}
.founding-badge {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: var(--accent-dark); background: var(--surface); padding: 5px 12px; border-radius: 999px; margin-bottom: 14px;
}
.founding-offer h2 { font-size: 28px; margin-bottom: 10px; }
.founding-offer p { color: var(--accent-dark); font-size: 16px; max-width: 40em; margin: 0 auto 22px; }
.founding-offer form { display: flex; justify-content: center; margin: 0; }
.founding-note { display: block; color: var(--accent-dark); font-size: 13px; margin-top: 14px; }

/* FAQ */
.faq { display: grid; gap: 10px; max-width: 760px; }
.faq details {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 4px 18px;
}
.faq summary {
  list-style: none; cursor: pointer; font-weight: 600; font-size: 15px; padding: 14px 0;
  display: flex; justify-content: space-between; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--faint); font-size: 20px; font-weight: 400; }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--muted); font-size: 14.5px; padding: 0 0 16px; }

.pricing-band {
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 34px 36px; box-shadow: var(--shadow);
}
.pricing-band h2 { font-size: 28px; margin-bottom: 6px; }
.pricing-band p { color: var(--muted); }
.pricing-band form { margin: 0; }

.site-footer {
  max-width: 1080px; margin: 0 auto; padding: 32px 24px 48px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  border-top: 1px solid var(--line); color: var(--muted); font-size: 13px;
}
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--text); }

/* ============ Builder (wizard) ============ */
.app-page { background: var(--bg); }

.builder { max-width: 760px; margin: 0 auto; padding: 0 20px 80px; }

.builder-bar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 0 18px; gap: 16px;
}
.builder-meta { display: flex; align-items: center; gap: 14px; }
.pill {
  background: var(--accent-soft); color: var(--accent-dark);
  font-size: 13px; font-weight: 600; padding: 5px 11px; border-radius: 999px; white-space: nowrap;
}

.packet-switch { position: relative; }
.packet-switch summary {
  list-style: none; cursor: pointer; font-weight: 600; font-size: 14px;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  background: var(--surface); max-width: 240px;
}
.packet-switch summary::-webkit-details-marker { display: none; }
.packet-switch summary span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chev { color: var(--faint); font-size: 11px; }
.packet-menu {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 20;
  background: var(--surface); border: 1px solid var(--line-strong);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: 8px; width: 300px; max-height: 60vh; overflow-y: auto;
}
.menu-new {
  width: 100%; text-align: left; background: var(--accent-soft); color: var(--accent-dark);
  border: none; border-radius: var(--radius-sm); padding: 10px 12px; font: inherit; font-weight: 600;
  cursor: pointer; margin-bottom: 6px;
}
.menu-new:hover { background: #ddeee6; }
.menu-item { display: block; padding: 9px 12px; border-radius: var(--radius-sm); }
.menu-item:hover { background: var(--surface-2); }
.menu-item.current { background: var(--accent-soft); }
.menu-item strong { display: block; font-size: 14px; font-weight: 600; }
.menu-item small { color: var(--muted); font-size: 12px; }

/* Stepper */
.stepper {
  list-style: none; margin: 0 0 28px; padding: 0;
  display: flex; align-items: center; gap: 0;
}
.stepper .step { flex: 1; display: flex; align-items: center; }
.stepper .step a, .stepper .step > span {
  display: inline-flex; align-items: center; gap: 9px; color: var(--faint); font-weight: 600; font-size: 14px;
}
.stepper .step.current a, .stepper .step.current > span { color: var(--text); }
.stepper .step.done a, .stepper .step.done > span { color: var(--accent); }
.step-dot {
  width: 26px; height: 26px; border-radius: 999px; display: grid; place-items: center;
  font-size: 13px; border: 1.5px solid currentColor; flex-shrink: 0;
}
.stepper .step.current .step-dot { background: var(--accent); color: #fff; border-color: var(--accent); }
.stepper .step.done .step-dot { background: var(--accent); color: #fff; border-color: var(--accent); }
.stepper .step:not(:last-child)::after {
  content: ""; flex: 1; height: 1.5px; background: var(--line-strong); margin: 0 12px;
}
.stepper .step.done:not(:last-child)::after { background: var(--accent); }
.step-label { white-space: nowrap; }

/* Flash messages */
.flash {
  border-radius: var(--radius-sm); padding: 12px 16px; margin-bottom: 20px;
  font-size: 14px; font-weight: 500; background: var(--surface-2); border: 1px solid var(--line-strong);
}
.flash.success { background: var(--accent-soft); border-color: #cfe6db; color: var(--accent-dark); }

/* Step card */
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 18px; box-shadow: var(--shadow); padding: 36px;
}
.step-head { margin-bottom: 26px; }
.step-head h1 { font-size: 28px; font-weight: 680; letter-spacing: -0.02em; }
.step-head p { color: var(--muted); margin-top: 8px; font-size: 15px; }

/* Forms */
.stack-form { display: grid; gap: 18px; }
.field { display: grid; gap: 7px; }
.field[hidden] { display: none; }
.field > span { font-size: 14px; font-weight: 600; }
.field > span em { color: var(--faint); font-weight: 500; font-style: normal; }
.field input, .field textarea, .field select {
  font: inherit; color: var(--text); background: var(--surface);
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  padding: 11px 13px; width: 100%; transition: border-color .15s ease, box-shadow .15s ease;
}
.field input::placeholder, .field textarea::placeholder { color: var(--faint); }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft);
}
.field textarea { resize: vertical; min-height: 60px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field-row:has(.field:nth-child(3)) { grid-template-columns: 1fr 1fr 1fr; }
.field-hint { color: var(--muted); font-size: 12.5px; }

.money-input { display: flex; align-items: center; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); overflow: hidden; }
.money-input:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.money-prefix { padding: 0 4px 0 13px; color: var(--muted); }
.money-input input { border: none; box-shadow: none !important; padding-left: 4px; }

/* Dropzone */
.dropzone {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  padding: 36px 20px; border: 1.5px dashed var(--line-strong); border-radius: var(--radius);
  background: var(--surface-2); cursor: pointer; text-align: center;
  transition: border-color .15s ease, background .15s ease;
}
.dropzone:hover { border-color: var(--accent); background: var(--accent-soft); }
.dropzone.dragging { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 4px var(--accent-soft); }
.dropzone-icon { font-size: 28px; }
.dropzone-title { font-weight: 650; font-size: 15px; }
.dropzone-hint { color: var(--muted); font-size: 13px; }

.upload-status { margin-top: 14px; font-size: 14px; color: var(--muted); font-weight: 500; }
.upload-status.error { color: var(--danger); }

/* Cost-status segmented toggle (paid vs quoted) */
.cost-status { display: inline-flex; padding: 3px; gap: 3px; background: var(--surface-2); border-radius: var(--radius-sm); border: 1px solid var(--line); }
.cost-status[hidden] { display: none; }
.seg {
  font: inherit; cursor: pointer; border: none; background: none; color: var(--muted);
  font-size: 13px; font-weight: 600; padding: 6px 14px; border-radius: 7px; transition: all .12s ease;
}
.seg.active { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }

/* Evidence list (editable cards) */
.evidence-list { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.list-title { font-size: 14px; font-weight: 650; color: var(--muted); display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.list-title .count { background: var(--surface-2); border-radius: 999px; padding: 1px 9px; font-size: 12px; color: var(--text); }

.evidence-card {
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
  padding: 16px; margin-bottom: 12px; position: relative;
}
.card-top { display: flex; gap: 14px; align-items: flex-start; }
.evidence-thumb {
  width: 48px; height: 48px; border-radius: 8px; object-fit: cover; flex-shrink: 0;
  background: var(--surface-2); display: grid; place-items: center; font-size: 22px;
}
.evidence-thumb.placeholder { border: 1px solid var(--line); }
.card-main { flex: 1; min-width: 0; display: grid; gap: 4px; }
.card-label {
  font: inherit; font-weight: 650; font-size: 15px; color: var(--text);
  border: 1px solid transparent; border-radius: 7px; padding: 5px 8px; margin: -5px -8px; width: 100%;
  background: transparent; transition: border-color .12s ease, background .12s ease;
}
.card-label:hover { border-color: var(--line); }
.card-label:focus { outline: none; border-color: var(--accent); background: var(--surface); box-shadow: 0 0 0 3px var(--accent-soft); }
.card-kind { color: var(--muted); font-size: 13px; }
.card-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex-shrink: 0; }
.icon-link { background: none; border: none; font: inherit; color: var(--muted); cursor: pointer; font-size: 13px; font-weight: 500; padding: 0; }
.icon-link:hover { color: var(--text); text-decoration: underline; }

.cost-check {
  display: flex; align-items: center; gap: 9px; margin-top: 14px; cursor: pointer;
  font-size: 14px; font-weight: 500; color: var(--text);
}
.cost-check input { width: 17px; height: 17px; accent-color: var(--accent); cursor: pointer; }
.cost-detail { display: flex; align-items: flex-end; gap: 12px; margin-top: 12px; flex-wrap: wrap; }
.cost-detail[hidden] { display: none; }
.cost-detail .money-input { max-width: 140px; height: 40px; }
.cost-detail .cost-status { height: 40px; align-items: center; }
.cost-date { display: flex; flex-direction: column; gap: 4px; }
.cost-date span { font-size: 12px; color: var(--muted); font-weight: 500; }
.cost-date input { height: 40px; }
.cost-date input {
  font: inherit; border: 1px solid var(--line-strong); border-radius: 7px; padding: 8px 10px; color: var(--text); background: var(--surface);
}
.cost-date input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

.card-saved {
  position: absolute; bottom: 12px; right: 16px; font-size: 12px; font-weight: 600; color: var(--accent);
  opacity: 0; transition: opacity .2s ease; pointer-events: none;
}
.card-saved.show { opacity: 1; }

.empty-hint {
  margin-top: 24px; padding: 22px; text-align: center; color: var(--muted);
  border: 1px dashed var(--line-strong); border-radius: var(--radius-sm); font-size: 14px;
}
.empty-hint[hidden] { display: none; }

/* Step actions */
.step-actions {
  display: flex; align-items: center; gap: 16px; margin-top: 30px;
  padding-top: 24px; border-top: 1px solid var(--line); flex-wrap: wrap;
}
.running-total { margin-left: auto; color: var(--muted); font-size: 14px; }
.running-total strong { color: var(--text); }

/* Review */
.review-summary {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-sm);
  overflow: hidden; margin-bottom: 24px;
}
.review-summary > div { background: var(--surface); padding: 14px 16px; }
.review-summary span { display: block; color: var(--muted); font-size: 12.5px; margin-bottom: 3px; }
.review-summary strong { font-size: 16px; font-weight: 650; }

.narrative-block { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.narrative-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px; background: var(--surface-2); border-bottom: 1px solid var(--line);
}
.narrative-head h2 { font-size: 14px; font-weight: 650; color: var(--muted); }
.ai-badge { font-size: 12px; font-weight: 600; color: var(--accent); background: var(--accent-soft); padding: 3px 10px; border-radius: 999px; }
.narrative-body { padding: 22px 24px; }
.narrative-body p { margin-bottom: 14px; }
.narrative-body p:last-child { margin-bottom: 0; }
.narrative-body ul { margin: 0 0 14px; padding-left: 20px; }
.narrative-body li { margin-bottom: 5px; }
.narrative-body .muted { color: var(--muted); }

.reassure { margin-top: 16px; color: var(--faint); font-size: 13px; text-align: center; }
.draft-hint { margin-top: 14px; color: var(--muted); font-size: 13px; }

/* Inline narrative editing (Step 3, unpaid only) */
.narrative-head { gap: 10px; }
.narrative-head .ai-badge { margin-left: auto; }
.narrative-edit-btn { font-size: 13px; font-weight: 600; }
.narrative-editor { padding: 16px 18px; }
.narrative-editor textarea {
  width: 100%; font: inherit; font-size: 14.5px; line-height: 1.55; padding: 12px 14px;
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface);
  resize: vertical;
}
.narrative-editor textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(31,122,92,.15); }
.editor-actions { display: flex; gap: 14px; align-items: center; margin-top: 12px; }

/* Danger zone: delete an unpaid packet */
.danger-zone { margin-top: 22px; padding-top: 14px; border-top: 1px solid var(--line); text-align: right; }
.quiet-link.danger { color: var(--danger); font-size: 13px; }
.quiet-link.danger:hover { color: var(--danger); }

/* Access-link recovery box (paid state) */
.recovery-box {
  margin-top: 24px; padding: 20px; background: var(--accent-soft);
  border: 1px solid #cfe6db; border-radius: var(--radius);
}
.recovery-box > strong { font-size: 15px; }
.recovery-box > p { color: var(--accent-dark); font-size: 14px; margin: 6px 0 14px; }
.recovery-email { display: flex; gap: 8px; align-items: center; }
.recovery-email input {
  flex: 1; max-width: 320px; font: inherit; font-size: 14px; padding: 10px 12px;
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface);
}
.recovery-email input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(31,122,92,.15); }
.recovery-email .btn-secondary { white-space: nowrap; }
.recovery-status { margin-top: 10px; font-size: 13px; color: var(--accent-dark); font-weight: 500; min-height: 1px; }
.recovery-status.error { color: var(--danger); }

/* Secondary: the raw access link, tucked into a disclosure */
.recovery-advanced { margin-top: 14px; }
.recovery-advanced summary {
  list-style: none; cursor: pointer; font-size: 13px; font-weight: 600; color: var(--accent-dark);
}
.recovery-advanced summary::-webkit-details-marker { display: none; }
.recovery-advanced summary::before { content: "+ "; }
.recovery-advanced[open] summary::before { content: "− "; }
.recovery-link { display: flex; gap: 8px; margin-top: 10px; }
.recovery-link input {
  flex: 1; font: inherit; font-size: 12.5px; padding: 9px 11px; color: var(--muted);
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface);
}
.recovery-link .btn-secondary { padding: 9px 16px; white-space: nowrap; }
.recovery-hint { display: block; margin-top: 8px; color: var(--accent-dark); font-size: 12px; opacity: .8; }
.status-line { color: var(--danger); font-size: 14px; margin-top: 12px; min-height: 1px; }

/* ============ Guides ============ */
.guide-shell { max-width: 760px; margin: 0 auto; padding: 32px 24px 72px; }
.guide-shell h1 { font-size: 38px; font-weight: 680; letter-spacing: -0.02em; margin-bottom: 12px; }
.guide-intro { color: var(--muted); font-size: 17px; margin-bottom: 32px; }
.guide-back { display: inline-block; color: var(--accent); font-weight: 600; font-size: 14px; margin-bottom: 18px; }
.guide-meta { color: var(--faint); font-size: 13.5px; margin-bottom: 28px; }
.guide-article h2 { font-size: 23px; font-weight: 650; margin: 34px 0 12px; }
.guide-article p { color: var(--text); font-size: 16.5px; line-height: 1.65; margin-bottom: 16px; }
.guide-article ul, .guide-article ol { margin: 0 0 18px; padding-left: 24px; }
.guide-article li { font-size: 16px; line-height: 1.6; margin-bottom: 9px; color: var(--text); }
.guide-article a { color: var(--accent); font-weight: 550; text-decoration: underline; text-decoration-color: rgba(31,122,92,.35); }
.guide-article a:hover { text-decoration-color: var(--accent); }
.guide-checklist { list-style: none; padding-left: 2px; }
.guide-checklist li { padding-left: 30px; position: relative; }
.guide-checklist li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 17px; height: 17px;
  border: 2px solid var(--accent); border-radius: 5px; background: var(--accent-soft);
}
.template-block {
  background: var(--surface); border: 1px solid var(--line-strong); border-left: 4px solid var(--accent);
  border-radius: var(--radius-sm); padding: 20px 22px; margin: 0 0 18px;
}
.template-block p { font-size: 15px; color: var(--muted); font-style: italic; }
.template-block p:last-child { margin-bottom: 0; }

.guide-list { display: grid; gap: 16px; }
.guide-card {
  display: grid; gap: 8px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px 24px; box-shadow: var(--shadow-sm); color: inherit;
  transition: box-shadow .15s ease, transform .15s ease;
}
.guide-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.guide-card strong { font-size: 18px; font-weight: 650; }
.guide-card span { color: var(--muted); font-size: 14.5px; }
.guide-card em { color: var(--accent); font-style: normal; font-weight: 650; font-size: 13.5px; }

.guide-cta {
  margin-top: 48px; padding: 28px; background: var(--accent-soft);
  border: 1px solid #cfe6db; border-radius: var(--radius);
}
.guide-cta h2 { font-size: 22px; font-weight: 650; margin-bottom: 8px; }
.guide-cta p { color: var(--accent-dark); font-size: 15px; margin-bottom: 18px; }
.guide-cta-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.guide-cta-actions form { margin: 0; }

/* ============ Export / packet ============ */
.export-page { background: var(--surface-2); }
.export-shell {
  max-width: 800px; margin: 28px auto; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 40px 48px;
}
.export-shell header {
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 18px; border-bottom: 1px solid var(--line); margin-bottom: 22px;
}
.export-shell header strong { font-size: 14px; color: var(--muted); font-weight: 600; }
.export-header-actions { display: flex; align-items: center; gap: 14px; }
.export-header-actions .btn-primary { padding: 9px 18px; }
.ghost {
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  padding: 8px 16px; font: inherit; font-weight: 600; cursor: pointer;
}
.ghost:hover { background: var(--surface-2); }
.pdf-help {
  background: var(--accent-soft); border-radius: var(--radius-sm); padding: 16px 18px;
  margin-bottom: 24px; display: grid; gap: 4px;
}
.pdf-help strong { font-size: 13px; color: var(--accent-dark); }
.pdf-help span { font-size: 13px; color: var(--accent-dark); }
.export-shell h1 { font-size: 30px; font-weight: 680; margin-bottom: 22px; letter-spacing: -0.02em; }
.export-meta {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-sm);
  overflow: hidden; margin: 0 0 30px;
}
.export-meta > div { background: var(--surface); padding: 12px 16px; display: flex; justify-content: space-between; gap: 12px; }
/* When there's an odd number of fields, let the last one span both columns so
   there's never an empty gray half-cell. */
.export-meta > div:last-child:nth-child(odd) { grid-column: 1 / -1; }
.export-meta dt { color: var(--muted); font-size: 14px; }
.export-meta dd { margin: 0; font-weight: 600; font-size: 14px; text-align: right; }
.export-shell section { margin-bottom: 30px; }
.export-shell section h2 { font-size: 16px; font-weight: 650; margin-bottom: 12px; }
.export-narrative p { margin-bottom: 13px; }
.export-narrative ul { padding-left: 20px; margin: 0 0 13px; }
.export-evidence {
  border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px 18px; margin-bottom: 14px;
  display: grid; gap: 4px;
}
.export-evidence strong { font-size: 15px; }
.export-evidence span { color: var(--muted); font-size: 13px; }
.export-evidence p { font-size: 14px; }
.export-attachment { margin: 10px 0 0; }
.export-attachment img { max-width: 100%; border-radius: var(--radius-sm); border: 1px solid var(--line); }
.export-attachment figcaption { color: var(--muted); font-size: 12.5px; margin-top: 6px; }
.export-file-link { color: var(--accent); font-weight: 600; font-size: 14px; }

/* ============ Legal ============ */
.legal-page { background: var(--bg); }
.legal-shell { max-width: 680px; margin: 60px auto; padding: 0 24px; }
.legal-shell h1 { font-size: 32px; font-weight: 680; margin-bottom: 20px; }
.legal-shell p { color: var(--muted); margin-bottom: 16px; }
.back-link, .legal-shell a { color: var(--accent); font-weight: 600; }

/* ============ Responsive ============ */
@media (max-width: 860px) {
  .hero-band { grid-template-columns: 1fr; gap: 36px; padding-top: 40px; }
  .hero-copy h1 { font-size: 40px; }
  .sample-band { grid-template-columns: 1fr; gap: 32px; }
  .trust-grid { grid-template-columns: 1fr; }
  .diy-grid { grid-template-columns: 1fr; }
  .testimonial-grid { grid-template-columns: 1fr; }
  .flow { flex-direction: column; }
  .flow-arrow { transform: rotate(90deg); align-self: center; }
  .pricing-band { flex-direction: column; align-items: flex-start; gap: 18px; }
}

@media (max-width: 620px) {
  body { font-size: 15px; }
  .card { padding: 24px 20px; border-radius: 16px; }
  .builder { padding: 0 14px 60px; }
  .step-head h1 { font-size: 23px; }
  .field-row, .field-row:has(.field:nth-child(3)) { grid-template-columns: 1fr; }
  .review-summary { grid-template-columns: 1fr 1fr; }
  /* Export metadata pairs (label + long value) need a full row on mobile,
     otherwise values like the property name and amount get truncated. */
  .export-meta { grid-template-columns: 1fr; }
  .card-top { flex-wrap: wrap; }
  .stepper .step-label { display: none; }
  .stepper .step { flex: 0 0 auto; }
  .stepper .step.current { flex: 1; }
  .stepper .step.current .step-label { display: inline; }
  .step-actions { flex-direction: column; align-items: stretch; }
  .step-actions .btn-primary { width: 100%; }
  .running-total { margin-left: 0; text-align: center; }
  .feature-grid { grid-template-columns: 1fr; }
  .export-shell { padding: 28px 22px; margin: 0; border-radius: 0; }
  .hero-copy h1 { font-size: 34px; }
  /* Header polish: keep the packet-switcher title on one line (ellipsis) so it
     doesn't wrap to several lines and balloon the header on phones. */
  .packet-switch summary { max-width: 150px; }
  .builder-bar { flex-wrap: wrap; gap: 10px; }
  /* Tighter landing nav so links don't wrap awkwardly on small screens. */
  .site-nav { padding: 16px; flex-wrap: wrap; gap: 10px; }
  .site-nav nav { gap: 14px; font-size: 14px; }
}

/* ============ Print ============ */
@page { size: A4; margin: 16mm 14mm; }
@media print {
  html, body { background: #fff; }
  body { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .no-print, .ghost, .pdf-help { display: none !important; }
  .export-shell { box-shadow: none; border: none; max-width: 100%; margin: 0; padding: 0; }
  .export-evidence, .export-meta, .export-attachment img { break-inside: avoid; }
}
