:root {
  --ink: #26352e;
  --muted: #596860;
  --paper: #fffaf2;
  --cream: #f5eee2;
  --line: #d8cbbb;
  --brick: #934d39;
  --brick-dark: #713626;
  --sage: #667a68;
  --white: #ffffff;
  --focus: #165f7a;
  --envelope: #d99b82;
  --envelope-flap: #efb8a1;
  --envelope-edge: #b97861;
  --envelope-ink: #603528;
  --letter: #fffdf7;
  --sage-soft: #eef4eb;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); font-size: 18px; line-height: 1.55; }
html, body { max-width: 100%; overflow-x: clip; }
button, input, textarea { font: inherit; }
button, label { -webkit-tap-highlight-color: transparent; }
a { color: var(--brick-dark); text-underline-offset: .18em; }
[hidden] { display: none !important; }

.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 100; padding: .75rem 1rem; background: var(--ink); color: white; }
.skip-link:focus { top: 1rem; }
:focus-visible { outline: 4px solid var(--focus); outline-offset: 3px; }

.site-header { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; max-width: 1200px; margin: auto; padding: 1rem clamp(1rem, 4vw, 3rem); border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; gap: .55rem; align-items: center; color: var(--ink); font-family: Georgia, serif; font-size: 1.28rem; font-weight: 700; text-decoration: none; }
.brand span { color: var(--brick); font-size: 1.5rem; }
.site-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .25rem .4rem; }
.site-nav-link { display: inline-flex; align-items: center; min-height: 44px; padding: .35rem .7rem; border-radius: 999px; color: var(--ink); font-size: .98rem; font-weight: 650; text-decoration: none; }
.site-nav-link:hover { color: var(--brick-dark); text-decoration: underline; }
.site-nav-link[aria-current="page"] { color: var(--brick-dark); text-decoration: underline; text-decoration-thickness: 2px; }

.welcome { max-width: 1160px; margin: auto; padding: 4rem clamp(1.25rem, 5vw, 4rem); display: grid; grid-template-columns: 1.08fr .92fr; align-items: center; gap: clamp(2rem, 7vw, 7rem); }
.eyebrow { margin: 0 0 .75rem; color: var(--brick); font-size: .82rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
h1, h2, legend { font-family: Georgia, "Times New Roman", serif; color: var(--ink); line-height: 1.12; }
h1 { margin: 0 0 1.25rem; font-size: clamp(2.55rem, 6vw, 4.8rem); letter-spacing: -.035em; }
.lead { max-width: 680px; margin: 0 0 2rem; color: var(--muted); font-size: clamp(1.08rem, 2vw, 1.3rem); }
.resume-box { max-width: 560px; padding: 1.1rem 1.2rem; border: 1px solid var(--line); border-radius: 14px; background: var(--white); }
.resume-title { margin: 0 0 .8rem; font-family: Georgia, serif; font-size: 1.2rem; font-weight: 700; }
.time-note { color: var(--muted); font-size: .95rem; }
.time-note span { color: var(--sage); margin-right: .4rem; }

.hero-card { position: relative; height: 430px; }
.hero-envelope, .hero-paper { position: absolute; border-radius: 5px; box-shadow: 0 25px 60px rgba(74, 54, 42, .15); }
.hero-envelope { inset: 18% 1% 4% 2%; display: grid; place-items: end center; padding-bottom: 2rem; background: var(--envelope); color: var(--envelope-ink); font-family: Georgia, serif; border: 1px solid var(--envelope-edge); }
.hero-envelope::before, .hero-envelope::after { content: ""; position: absolute; inset: 0; clip-path: polygon(0 0, 50% 62%, 100% 0); background: var(--envelope-flap); }
.hero-paper { inset: 1% 14% 20% 14%; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; background: #fffdf7; border: 1px solid #e2d5c4; transform: rotate(-2deg); color: var(--brick); font-family: Georgia, serif; font-size: 1.8rem; }
.hero-paper::before, .hero-paper::after { content: "❦"; color: var(--sage); font-size: 2rem; margin: .5rem; }
.hero-paper small { margin-top: 2rem; color: var(--muted); font: .72rem Inter, sans-serif; letter-spacing: .12em; text-transform: uppercase; }

.button { min-height: 48px; border: 2px solid transparent; border-radius: 999px; padding: .72rem 1.25rem; font-weight: 750; cursor: pointer; transition: transform .15s ease, background .15s ease; }
.button:hover { transform: translateY(-1px); }
.button:disabled { cursor: wait; opacity: .62; transform: none; }
a.button { display: inline-flex; align-items: center; gap: .45rem; text-decoration: none; }
.page-action { margin-top: 2.5rem; }
.button.large { min-height: 58px; padding-inline: 1.7rem; }
.primary { color: white; background: var(--brick); box-shadow: 0 6px 16px rgba(113, 54, 38, .16); }
.primary:hover { background: var(--brick-dark); }
.secondary { color: var(--ink); background: var(--white); border-color: var(--line); }
.secondary:hover { border-color: var(--sage); }
.text-button { color: var(--brick-dark); background: transparent; text-decoration: underline; text-underline-offset: .2em; }

.creator { max-width: 1240px; margin: auto; padding: 1.4rem clamp(1rem, 3vw, 2.2rem) 4rem; }
.progress-wrap { overflow-x: auto; padding: .25rem 0 1.2rem; }
.progress { min-width: 520px; display: flex; justify-content: space-between; gap: .35rem; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.progress li { flex: 1; position: relative; padding-top: 1.75rem; color: #6b746f; font-size: .75rem; text-align: center; }
.progress li::before { counter-increment: step; content: counter(step); position: absolute; top: 0; left: calc(50% - .72rem); z-index: 2; width: 1.45rem; height: 1.45rem; border-radius: 50%; display: grid; place-items: center; background: var(--cream); border: 1px solid var(--line); font-weight: 800; }
.progress li::after { content: ""; position: absolute; top: .7rem; left: -50%; width: 100%; border-top: 2px solid var(--line); }
.progress li:first-child::after { display: none; }
.progress li.active { color: var(--ink); font-weight: 750; }
.progress li.active::before, .progress li.complete::before { background: var(--brick); border-color: var(--brick); color: white; }
.progress li.complete::after, .progress li.active::after { border-color: var(--brick); }
.progress-step-button { position: absolute; inset: 0; z-index: 3; width: 100%; min-height: 44px; padding: 1.75rem .1rem 0; border: 0; background: transparent; color: inherit; font: inherit; cursor: pointer; }
.progress-bar { display: none; height: 6px; border-radius: 999px; background: var(--line); overflow: hidden; }
.progress-bar span { display: block; height: 100%; width: 0; background: var(--brick); transition: width .2s ease; }
.progress-step-button:hover { color: var(--brick-dark); text-decoration: underline; text-underline-offset: .18em; }

.creator-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(310px, .75fr); gap: 2rem; align-items: start; }
.panel, .preview-panel { background: rgba(255,255,255,.78); border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 12px 35px rgba(54, 45, 38, .08); }
.panel { min-height: 630px; padding: clamp(1.25rem, 4vw, 2.5rem); display: flex; flex-direction: column; }
.step-heading h2 { margin: 0 0 1.25rem; font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -.035em; }
.step-heading > p:last-child { margin-top: -.4rem; color: var(--muted); }
.step { flex: 1; }
fieldset { margin: 0; padding: 0; border: 0; }
legend { width: 100%; margin-bottom: 1rem; font-size: 1.3rem; font-weight: 700; }
.field-group { margin-top: 2rem; }
.field-help { margin: -.5rem 0 1rem; color: var(--muted); font-size: .94rem; }
.choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
.choice-grid.compact { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.choice-card { position: relative; min-height: 92px; display: flex; flex-direction: column; justify-content: center; padding: 1rem; border: 2px solid var(--line); border-radius: 12px; background: var(--white); cursor: pointer; }
.choice-card:hover { border-color: var(--sage); }
.choice-card:has(input:checked) { border-color: var(--brick); box-shadow: 0 0 0 2px rgba(147,77,57,.13); background: #fff8f3; }
.choice-card:has(input:focus-visible), .message-choice:has(input:focus-visible) { outline: 4px solid var(--focus); outline-offset: 3px; }
.choice-card input, .message-choice input { position: absolute; width: 1px; height: 1px; min-height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.choice-card strong { line-height: 1.25; }
.choice-card small { color: var(--muted); }
.stacked-choices { display: grid; gap: .55rem; }
.stacked-choices .choice-card { min-height: 56px; }
.tone-fieldset legend { margin-bottom: .6rem; }
.tone-fieldset .field-help { margin: 0 0 .8rem; }
.tone-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.tone-chip { position: relative; display: inline-flex; align-items: center; min-height: 48px; padding: .55rem 1.05rem; border: 2px solid var(--line); border-radius: 999px; background: var(--white); font-weight: 700; cursor: pointer; }
.tone-chip:hover { border-color: var(--sage); }
.tone-chip span { color: inherit; font-size: 1rem; font-weight: inherit; }
.tone-chip:has(input:checked) { color: white; background: var(--brick); border-color: var(--brick); }
.tone-chip:has(input:focus-visible) { outline: 4px solid var(--focus); outline-offset: 3px; }
.tone-chip input { position: absolute; width: 1px; height: 1px; min-height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.message-list { display: grid; gap: .85rem; }
.message-choice { position: relative; display: block; padding: 1.15rem; background: white; border: 2px solid var(--line); border-radius: 12px; cursor: pointer; }
.message-choice:has(input:checked) { border-color: var(--brick); background: #fff8f3; }
.message-choice p { margin: 0; font-family: Georgia, serif; font-size: 1.06rem; }
.refinement { margin-top: 1.35rem; padding: 1rem; border-radius: 12px; background: var(--cream); }
.refinement p { margin: 0 0 .45rem; }
.button-row, .finish-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.refine { font-size: .9rem; }

.input-group { position: relative; margin-bottom: 1.25rem; }
.input-group label, .email-panel label { display: block; margin-bottom: .4rem; font-weight: 750; }
label span { color: var(--muted); font-size: .85rem; font-weight: 500; }
input, textarea { width: 100%; min-height: 52px; padding: .72rem .85rem; color: var(--ink); background: white; border: 2px solid #b9b3aa; border-radius: 9px; font-size: 1rem; }
textarea { resize: vertical; line-height: 1.5; }
input:focus, textarea:focus { border-color: var(--focus); }
.count { margin: .2rem .2rem 0; color: var(--muted); font-size: .78rem; text-align: right; }
.prompt-box { margin: .25rem 0 1.2rem; padding: 1rem; border-left: 4px solid var(--sage); background: #eff3ec; }
.prompt-box p { margin: 0; }
.prompt-label { color: var(--sage); font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }

/* Look & finish: one gallery of finished cards. */
.card-gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .8rem; }
.gallery-card { position: relative; display: block; overflow: hidden; border: 2px solid var(--line); border-radius: 12px; background: white; cursor: pointer; }
.gallery-card:hover { border-color: var(--sage); }
.gallery-card:has(input:checked) { border-color: var(--brick); box-shadow: 0 0 0 2px rgba(147,77,57,.13); }
.gallery-card:has(input:focus-visible) { outline: 4px solid var(--focus); outline-offset: 3px; }
.gallery-card input { position: absolute; width: 1px; height: 1px; min-height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.gallery-card img { width: 100%; height: auto; aspect-ratio: 24 / 31; display: block; object-fit: cover; border-bottom: 1px solid var(--line); }
/* The generic "label span" rule is for "optional" hints; these spans hold the real label text. */
.gallery-card span { display: block; padding: .55rem .6rem .65rem; color: var(--ink); font-size: 1rem; font-weight: 400; line-height: 1.25; }
.gallery-card strong { display: block; font-family: Georgia, serif; font-size: .95rem; }
.gallery-card small { display: block; margin-top: .15rem; color: var(--muted); font-size: .8rem; }
.print-options { margin-top: 1.75rem; }
.print-options legend { margin-bottom: .25rem; font-size: 1.1rem; }
.print-option { position: relative; display: block; margin-top: 1.25rem; padding: 1rem; border: 2px solid var(--line); border-radius: 12px; background: white; cursor: pointer; }
.print-option:has(input:checked) { border-color: var(--brick); background: #f3e4d9; box-shadow: 0 0 0 2px rgba(147,77,57,.13); }
.print-option:has(input:focus-visible) { outline: 4px solid var(--focus); outline-offset: 3px; }
.print-option input { position: absolute; width: 1px; height: 1px; min-height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.print-option > span { color: var(--ink); font-size: 1rem; font-weight: 400; }
.print-option strong, .print-option small { display: block; }
.print-option small { margin-top: .25rem; color: var(--muted); }

.navigation { position: sticky; bottom: 0; z-index: 5; display: flex; justify-content: space-between; gap: 1rem; margin: 1.5rem calc(-1 * clamp(1.25rem, 4vw, 2.5rem)) calc(-1 * clamp(1.25rem, 4vw, 2.5rem)); padding: 1rem clamp(1.25rem, 4vw, 2.5rem) max(1rem, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); border-radius: 0 0 20px 20px; background: #fffdf9; }
.navigation.only-back { position: static; }
.error { margin-bottom: 1rem; padding: .85rem 1rem; border-left: 5px solid #a32d2d; background: #fff0ef; color: #742020; }
.status { min-height: 1.5rem; margin-top: 1rem; color: var(--muted); }
.finish-copy { text-align: center; margin: 2rem auto 1rem; max-width: 520px; }
.finish-copy h2 { margin: .5rem 0; font-size: 2.2rem; }
.success-mark { width: 54px; height: 54px; display: inline-grid; place-items: center; border-radius: 50%; background: #e3eee2; color: #2e643a; font-size: 1.8rem; }
.finish-actions { justify-content: center; margin-top: 1.75rem; }
.print-help { margin: 1.75rem auto 0; padding: 1.2rem; border: 1px solid var(--line); border-radius: 12px; background: var(--white); }
.print-help h3 { margin: 0 0 .75rem; font-family: Georgia, "Times New Roman", serif; font-size: 1.25rem; }
.fold-diagram { display: block; width: 100%; max-width: 320px; height: auto; margin: 0 auto 1rem; color: var(--sage); }
.print-help ol { margin: 0; padding-left: 1.4rem; }
.print-help li + li { margin-top: .45rem; }
.new-card-action { margin: 1.5rem auto 0; padding-top: 1.25rem; border-top: 1px solid var(--line); text-align: center; }
.new-card-action p { margin: .45rem 0 0; color: var(--muted); font-size: .82rem; }
.email-panel { margin-top: 1.4rem; padding: 1.2rem; border: 1px solid var(--line); border-radius: 12px; background: var(--cream); }
.email-panel .field-help { margin-top: 1rem; }
.email-panel h3 { margin: 0 0 .75rem; font-family: Georgia, "Times New Roman", serif; font-size: 1.25rem; }
.email-panel p { margin: 0 0 .75rem; }
.email-panel .button { margin-top: .5rem; }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.turnstile { margin: .25rem 0; }
.demo-badge { margin-bottom: 1rem; padding: .55rem .75rem; background: #fff4cf; border: 1px solid #a88126; border-radius: 6px; color: #634b13; font-size: .87rem; font-weight: 750; }

.preview-panel { position: sticky; top: 1rem; padding: 1rem; }
.preview-toggle { display: none; width: 100%; }
.preview-toolbar { display: flex; justify-content: space-between; margin-bottom: .75rem; color: var(--muted); font-size: .78rem; font-weight: 750; text-transform: uppercase; letter-spacing: .08em; }
.card-preview { position: relative; aspect-ratio: 17 / 22; max-height: 540px; display: flex; flex-direction: column; align-items: center; justify-content: center; margin: auto; padding: clamp(1.25rem, 4vw, 2.5rem); padding-bottom: 3rem; overflow: hidden; border: 2px solid var(--brick); background: #fffdf7; text-align: center; box-shadow: 0 10px 22px rgba(52, 40, 32, .12); font-family: Georgia, serif; }
.card-preview.warm { background: #f8e8dc; border-color: #a4523c; }
.card-preview.floral { background: #fbf8ee; border-color: #65785b; }
.card-preview.floral-vintage-roses { background-image: url("../../assets/artwork/floral/floral-vintage-roses.webp"); }
.card-preview.floral-vintage-meadow { background-image: url("../../assets/artwork/floral/floral-vintage-meadow.webp"); }
.card-preview.floral-vintage-lily-of-the-valley { background-image: url("../../assets/artwork/floral/floral-vintage-lily-of-the-valley.webp"); }
.card-preview.no-colored-background { background-color: white; }
.card-preview.no-colored-background.warm, .card-preview.no-colored-background.modern { background: white; }
.card-preview.no-colored-background.floral-vintage-roses { background-image: url("../../assets/artwork/floral/floral-vintage-roses-print.webp"); }
.card-preview.no-colored-background.floral-vintage-meadow { background-image: url("../../assets/artwork/floral/floral-vintage-meadow-print.webp"); }
.card-preview.no-colored-background.floral-vintage-lily-of-the-valley { background-image: url("../../assets/artwork/floral/floral-vintage-lily-of-the-valley-print.webp"); }
.card-preview[class*="floral-vintage-"] { background-size: cover; background-position: center; }
.card-preview[class*="floral-vintage-"] .preview-accent { visibility: hidden; }
.card-preview.modern { background: #f3f0ea; border-color: #344b43; }
.card-preview.modern::after { content: ""; position: absolute; width: 120px; height: 120px; border-radius: 50%; top: -45px; right: -35px; background: #d6a56f; opacity: .45; }
.card-preview.modern-soft-arches { background-image: url("../../assets/artwork/modern/modern-soft-arches.webp"); }
.card-preview.modern-contour-lines { background-image: url("../../assets/artwork/modern/modern-contour-lines.webp"); }
.card-preview.modern-rounded-shapes { background-image: url("../../assets/artwork/modern/modern-rounded-shapes.webp"); }
.card-preview.no-colored-background.modern-soft-arches { background-image: url("../../assets/artwork/modern/modern-soft-arches-print.webp"); }
.card-preview.no-colored-background.modern-contour-lines { background-image: url("../../assets/artwork/modern/modern-contour-lines-print.webp"); }
.card-preview.no-colored-background.modern-rounded-shapes { background-image: url("../../assets/artwork/modern/modern-rounded-shapes-print.webp"); }
.card-preview.modern[class*="modern-"] { background-size: cover; background-position: center; }
.card-preview.modern[class*="modern-"]::after { display: none; }
.card-preview.warm-soft-brushstrokes { background-image: url("../../assets/artwork/warm/warm-soft-brushstrokes.webp"); }
.card-preview.warm-gentle-waves { background-image: url("../../assets/artwork/warm/warm-gentle-waves.webp"); }
.card-preview.warm-woven-threads { background-image: url("../../assets/artwork/warm/warm-woven-threads.webp"); }
.card-preview.no-colored-background.warm-soft-brushstrokes { background-image: url("../../assets/artwork/warm/warm-soft-brushstrokes-print.webp"); }
.card-preview.no-colored-background.warm-gentle-waves { background-image: url("../../assets/artwork/warm/warm-gentle-waves-print.webp"); }
.card-preview.no-colored-background.warm-woven-threads { background-image: url("../../assets/artwork/warm/warm-woven-threads-print.webp"); }
.card-preview.warm[class*="warm-"] { background-size: cover; background-position: center; }
.card-preview.warm[class*="warm-"] .preview-accent { visibility: hidden; }
.card-preview.classic-corner-rules { background-image: url("../../assets/artwork/classic/classic-corner-rules.webp"); }
.card-preview.classic-printer-flourishes { background-image: url("../../assets/artwork/classic/classic-printer-flourishes.webp"); }
.card-preview.classic-laurel-sprigs { background-image: url("../../assets/artwork/classic/classic-laurel-sprigs.webp"); }
.card-preview.no-colored-background.classic-corner-rules { background-image: url("../../assets/artwork/classic/classic-corner-rules-print.webp"); }
.card-preview.no-colored-background.classic-printer-flourishes { background-image: url("../../assets/artwork/classic/classic-printer-flourishes-print.webp"); }
.card-preview.no-colored-background.classic-laurel-sprigs { background-image: url("../../assets/artwork/classic/classic-laurel-sprigs-print.webp"); }
.card-preview.classic[class*="classic-"] { background-size: cover; background-position: center; }
.card-preview.classic[class*="classic-"] .preview-accent { visibility: hidden; }
.preview-accent { color: var(--sage); font-size: 1.8rem; }
.modern .preview-accent { opacity: 0; }
.preview-occasion { margin: .6rem 0; color: var(--sage); font: 800 .68rem Inter, sans-serif; letter-spacing: .15em; text-transform: uppercase; }
.preview-name { margin: .2rem 0 1rem; color: var(--brick); font-size: clamp(1.25rem, 3vw, 2rem); font-weight: 700; }
.preview-message { font-size: clamp(.94rem, 2vw, 1.15rem); line-height: 1.45; white-space: pre-line; }
.preview-note { margin-top: .85rem; font-size: .88rem; font-style: italic; white-space: pre-line; }
.preview-signature { margin: .9rem 0 0; }
.card-preview > small { position: absolute; bottom: .45rem; color: var(--muted); font: .52rem Inter, sans-serif; letter-spacing: .1em; text-transform: uppercase; }
.preview-views { display: flex; gap: .4rem; margin-bottom: .75rem; }
.preview-view-button { flex: 1; min-height: 44px; padding: .45rem .8rem; color: var(--ink); background: var(--white); border: 2px solid var(--line); border-radius: 999px; font: inherit; font-size: .9rem; font-weight: 750; cursor: pointer; }
.preview-view-button:hover { border-color: var(--sage); }
.preview-view-button[aria-pressed="true"] { color: white; background: var(--brick); border-color: var(--brick); }
/* The inside view mirrors the PDF: personal note on the left panel, message and signature on the right. */
.preview-spread { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; max-width: 520px; margin: auto; }
/* Open (half-fold) card: note and signature on the left, occasion, name and message on the right, 5 x 7 panels. */
.preview-spread .open-only, .preview-body.half-fold .preview-views, .preview-body.half-fold .folded-only { display: none; }
.preview-body.half-fold .preview-spread .open-only { display: block; }
.preview-body.half-fold .preview-spread .card-preview { aspect-ratio: 5 / 7; }
.preview-body.half-fold .preview-spread .preview-name { font-size: clamp(.95rem, 1.8vw, 1.25rem); margin-bottom: .6rem; }
.preview-spread .card-preview { width: 100%; max-height: none; padding: clamp(.6rem, 2vw, 1.1rem); }
.preview-spread .preview-message { font-size: clamp(.72rem, 1.2vw, .85rem); }
.preview-spread .preview-note { margin-top: 0; font-size: clamp(.68rem, 1.1vw, .8rem); }
.preview-spread .preview-signature { margin-top: .5rem; font-size: clamp(.72rem, 1.15vw, .82rem); }
.preview-note-help { margin: .8rem .25rem 0; color: var(--muted); font-size: .78rem; text-align: center; }

.trust-strip { display: grid; grid-template-columns: repeat(3, 1fr); max-width: 1100px; margin: 0 auto 4rem; padding: 1.2rem; border-block: 1px solid var(--line); }
.trust-strip div { display: grid; grid-template-columns: auto 1fr; column-gap: .7rem; align-items: center; padding: .5rem 1.2rem; }
.trust-strip div + div { border-left: 1px solid var(--line); }
.trust-strip span { grid-row: 1 / 3; color: var(--brick); font-size: 1.5rem; }
.trust-strip small { color: var(--muted); }
.site-footer { padding: 2rem max(1rem, env(safe-area-inset-left)); background: #ebe3d7; color: var(--muted); text-align: center; font-size: .9rem; }
.site-footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: .2rem 1.2rem; margin: 1.2rem 0; padding: 0; list-style: none; }
.site-footer-links a { display: inline-flex; align-items: center; min-height: 44px; }
.privacy-copy { max-width: 860px; margin: auto; }
.legal-page { max-width: 760px; margin: auto; padding: 3rem 1.25rem; }
.legal-page h1 { margin-top: 1rem; font-size: clamp(2.4rem, 6vw, 4rem); }
.legal-page h2 { margin: 2rem 0 .5rem; font-size: 1.5rem; }
.legal-page li + li { margin-top: .4rem; }
.notice { padding: 1.2rem; border-left: 5px solid var(--sage); background: #eef4eb; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@media (max-width: 850px) {
  .welcome { grid-template-columns: 1fr; min-height: auto; text-align: center; }
  .welcome-copy { display: flex; flex-direction: column; align-items: center; }
  .hero-card { height: 330px; max-width: 430px; width: 100%; margin: auto; }
  .creator-layout { grid-template-columns: 1fr; }
  .preview-panel { position: static; order: -1; padding: .75rem 1rem; }
  .preview-toggle { display: block; }
  .preview-panel:not(.is-open) .preview-body, .preview-panel:not(.is-open) .preview-toolbar { display: none; }
  .resume-box .button-row { justify-content: center; }
  .preview-panel.is-open .preview-toggle { margin-bottom: .75rem; }
  .card-preview { max-height: 360px; width: min(100%, 260px); }
  .progress { display: none; }
  .progress-wrap { padding-bottom: .9rem; }
  .progress-bar { display: block; }
  .card-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .choice-grid.compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 520px) {
  body { font-size: 16px; }
  .site-header { flex-direction: column; align-items: flex-start; gap: .25rem; }
  .site-nav { justify-content: flex-start; margin-left: -.7rem; }
  .welcome { padding-top: 3.5rem; }
  .hero-card { height: 260px; }
  .panel { min-height: 0; border-radius: 14px; }
  .choice-grid { grid-template-columns: 1fr; }
  /* Thirteen relationships stay in two columns so the list does not become a long scroll. */
  .choice-grid.compact { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
  .choice-grid.compact .choice-card { min-height: 56px; padding: .7rem; }
  .card-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
  .navigation { border-radius: 0 0 14px 14px; }
  .choice-card { min-height: 68px; }
  .trust-strip { grid-template-columns: 1fr; }
  .trust-strip div + div { border-left: 0; border-top: 1px solid var(--line); }
  .navigation .button { flex: 1; }
  .finish-actions { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

@media print {
  .site-header, .progress-wrap, .panel, .trust-strip, .site-footer, .preview-toolbar, .preview-note-help { display: none !important; }
  @page { size: Letter portrait; margin: .5in; }
  body, .creator, .creator-layout, .preview-panel { margin: 0; padding: 0; border: 0; box-shadow: none; background: white; }
  .preview-panel { display: block !important; }
  .card-preview { width: 5in; height: 7in; max-height: none; margin: 0 auto; box-shadow: none; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
}
