/* Postdated — an airmail-envelope studio look */
:root {
  --bg: #EDF0F5;
  --surface: #FFFFFF;
  --field: #F5F7FB;
  --ink: #101B33;
  --muted: #55627C;
  --line: #CFD6E3;
  --red: #D2293F;
  --on-red: #FFFFFF;
  --blue: #1D5FC4;
  --focus: #1D5FC4;
  --paper: #FCFCFA;
  --paper-ink: #1B2744;
  --paper-line: #DDE3EE;
  --ok: #1F7A4D;
  --danger: #B3261E;
  --shadow: 0 18px 34px -18px rgba(8, 14, 30, 0.45);
  --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body: "Figtree", "Segoe UI", system-ui, sans-serif;
  --font-hand: "Kalam", "Segoe Print", "Comic Sans MS", cursive;
  --font-mono: "DM Mono", ui-monospace, Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0C1424; --surface: #141E33; --field: #101A2E; --ink: #EAF0FB; --muted: #9AA9C6; --line: #2A3858;
    --red: #FF5C72; --on-red: #1A0A0E; --blue: #6EA2FF; --focus: #8DB6FF;
    --paper: #E9EDF5; --paper-ink: #18233F; --paper-line: #C6CEDF;
    --ok: #5BD08F; --danger: #FF8A80;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.55 var(--font-body);
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  padding-bottom: 56px;
}

.wrap { max-width: 1180px; margin: 0 auto; }
h1, h2, h3 { font-family: var(--font-display); margin: 0; text-wrap: balance; letter-spacing: -0.015em; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.mono { font-family: var(--font-mono); }
.label-caps { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.hidden { display: none !important; }

/* airmail rule */
.stripe { height: 10px; background: repeating-linear-gradient(135deg, var(--red) 0 12px, transparent 12px 20px, var(--blue) 20px 32px, transparent 32px 40px); margin-block: 4px; }

/* top bar */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 18px; flex-wrap: wrap; }
.brand { font-family: var(--font-display); font-weight: 800; font-size: 2.2rem; letter-spacing: -0.02em; text-decoration: none; color: var(--ink); }
.brand span { color: var(--red); }
.top nav { display: flex; gap: 20px; align-items: center; font-size: 0.95rem; }
.top nav a { color: var(--muted); text-decoration: none; font-weight: 500; }
.top nav a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }

/* hero */
.hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: 48px; align-items: center; padding-block: 60px 80px; }
.hero h1 { font-size: clamp(3rem, 8vw, 5.2rem); font-weight: 900; line-height: 0.95; margin-top: 16px; color: var(--ink); }
.hero h1 em { font-style: normal; color: var(--red); display: block; }
.hero .lede { margin-top: 24px; max-width: 50ch; font-size: 1.2rem; color: var(--muted); line-height: 1.45; }
.steps { list-style: none; padding: 0; margin: 48px 0 0; display: flex; gap: 12px 32px; flex-wrap: wrap; }
.steps li { display: flex; gap: 12px; align-items: baseline; font-weight: 600; font-size: 1.05rem; }
.steps .n { font-family: var(--font-mono); font-size: 0.95rem; color: var(--red); font-weight: 700; }
.hero-art { display: grid; place-items: center; min-width: 0; }

/* about and pricing */
.home-section { margin-top: 28px; }
.section-topline { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.section-note { color: var(--muted); font-size: 0.9rem; }
.about-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.9fr); gap: clamp(32px, 7vw, 96px); align-items: center; padding: 38px 4px 46px; }
.about-copy h2, .pricing-copy h2 { max-width: 15ch; font-size: clamp(2rem, 4vw, 3.35rem); line-height: 1.02; }
.about-copy p, .pricing-copy > p:last-of-type { max-width: 57ch; color: var(--muted); font-size: 1.05rem; line-height: 1.65; margin-top: 18px; }
.about-letter { min-height: 250px; padding: 22px 24px; display: flex; flex-direction: column; justify-content: space-between; gap: 20px; position: relative; overflow: hidden; color: #1B2744; background-color: #FCFCFA; background-image: linear-gradient(transparent 31px, #DDE3EE 32px); background-size: 100% 32px; box-shadow: 0 14px 28px -22px rgba(8, 14, 30, 0.7); transform: rotate(2deg); }
.about-letter::after { content: ""; position: absolute; top: 0; right: 0; width: 30px; height: 30px; background: linear-gradient(225deg, var(--bg) 49%, #E4E8EE 50%, #FCFCFA 54%); }
.about-letter-head, .about-letter-foot { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; font: 500 0.64rem/1.5 var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; }
.about-letter > p { font: 700 1.45rem var(--font-hand); }
.letter-lines { display: grid; gap: 17px; margin-right: 22%; }
.letter-lines i { height: 1px; background: #C8D1DF; }
.about-letter-foot { align-items: end; color: #55627C; }
.about-stamp { display: grid; place-items: center; width: 70px; height: 54px; border: 1.5px dashed var(--red); color: var(--red); text-align: center; transform: rotate(-8deg); }
.pricing-section { padding: 34px clamp(22px, 5vw, 64px) 40px; background: #E1E8EF; }
.pricing-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 0.72fr); gap: clamp(32px, 8vw, 112px); align-items: center; padding-top: 32px; }
.pricing-copy > .label-caps { margin-bottom: 12px; color: var(--blue); }
.pricing-copy > p:last-of-type { margin-top: 12px; }
.included-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 20px; }
.included-list li { display: flex; align-items: flex-start; gap: 10px; color: var(--ink); font-size: 0.92rem; }
.included-list li span { color: var(--ok); font-weight: 700; }
.price-card { padding: 26px 28px 22px; background: var(--surface); border: 1px solid #C5CFDB; border-top: 4px solid var(--red); box-shadow: 0 18px 30px -26px rgba(8, 14, 30, 0.55); }
.price-card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.price-kicker { font: 500 0.7rem var(--font-mono); color: var(--muted); }
.price-badge { padding: 5px 8px; background: #FBE8E9; color: #A51F31; font: 500 0.62rem var(--font-mono); }
.price-amount { display: flex; align-items: center; gap: 14px; margin-top: 18px; }
.price-amount strong { font: 800 4.5rem/1 var(--font-display); letter-spacing: -0.04em; }
.price-amount span { padding-left: 14px; border-left: 1px solid var(--line); color: var(--muted); font-size: 0.88rem; line-height: 1.35; }
.price-caption { color: var(--muted); margin: 10px 0 22px; }
.price-card .btn { gap: 12px; }
.price-card .btn span { font-size: 1.25rem; transition: transform 180ms ease; }
.price-card .btn:hover span { transform: translateX(4px); }
.price-footnote { color: var(--muted); font-size: 0.78rem; text-align: center; margin-top: 12px; }
.support-section { padding: 34px clamp(22px, 5vw, 64px) 40px; background: var(--surface); }
.support-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(300px, 1fr); gap: clamp(28px, 7vw, 90px); padding-top: 28px; }
.support-grid h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); line-height: 1.05; }
.support-grid > div > p { color: var(--muted); margin-top: 12px; line-height: 1.6; }
.support-form { display: grid; gap: 14px; }
.orders-screen { min-height: calc(100vh - 56px); padding-bottom: 40px; }
.orders-content { padding-top: 26px; }
.orders-content h1 { font-size: clamp(2rem, 4vw, 3rem); margin-top: 24px; }
.orders-intro { color: var(--muted); margin-top: 8px; }
.orders-list { display: grid; gap: 14px; margin-top: 20px; }
.customer-order { padding: 18px; border: 1px solid var(--line); background: var(--surface); }
.customer-order-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.customer-order-head h2 { font-size: 1.2rem; margin-top: 4px; }
.status-badge { display: inline-flex; align-items: center; padding: 6px 9px; border: 1px solid var(--line); border-radius: 3px; color: var(--muted); font-size: 0.75rem; text-transform: capitalize; white-space: nowrap; }
.status-ready_for_print, .status-printing { color: #155E39; border-color: #8FC5A4; background: #EAF5EE; }
.status-dispatched { color: #174B87; border-color: #9CBCE0; background: #EDF4FB; }
.status-on_hold { color: #9C3D25; border-color: #D9AA91; background: #FBF1EC; }
.order-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.order-detail { display: grid; gap: 3px; min-width: 0; }
.order-detail span { color: var(--muted); font-size: 0.76rem; }
.order-detail strong { overflow-wrap: anywhere; font-size: 0.9rem; }
.customer-order-actions { margin-top: 16px; }

/* postmark */
.pm { --pm: 180px; width: var(--pm); height: var(--pm); border-radius: 50%; border: 2.5px solid var(--blue); color: var(--blue); display: grid; place-items: center; text-align: center; position: relative; transform: rotate(-12deg); flex: none; }
.pm::before { content: ""; position: absolute; inset: 4px; border-radius: 50%; border: 1px solid var(--blue); }
.pm-in { display: grid; gap: 4px; padding: 0 12px; position: relative; }
.pm-top, .pm-bot { font-family: var(--font-mono); font-size: calc(var(--pm) * 0.065); letter-spacing: 0.2em; text-transform: uppercase; font-weight: 600; }
.pm-date { font-family: var(--font-mono); font-weight: 700; font-size: calc(var(--pm) * 0.13); line-height: 1.1; letter-spacing: -0.02em; }
.pm-rule { height: 1px; background: var(--blue); margin: 2px 0; }

/* auth screens */
.auth-screen { min-height: calc(100svh - 56px); display: grid; place-items: center; padding: 28px 0; }
.auth-layout { width: min(1100px, 100%); display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); background: var(--surface); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; box-shadow: var(--shadow); }
.auth-card { min-width: 0; background: var(--surface); }
.auth-inner { padding: 36px 42px 40px; }
.auth-brand { display: inline-block; font-size: 2rem; line-height: 1; margin-bottom: 18px; }
.auth-tagline { margin-bottom: 10px; }
.auth-heading { font-size: clamp(1.85rem, 3vw, 2.45rem); line-height: 1.08; max-width: 14ch; }
.auth-intro { color: var(--muted); margin-top: 12px; margin-bottom: 24px; }
.auth-toggle { display: flex; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; margin-bottom: 20px; }
.auth-toggle button { flex: 1; border: 0; background: var(--field); padding: 10px; cursor: pointer; font-weight: 600; }
.auth-toggle button.active { background: var(--ink); color: var(--bg); }
.auth-form { display: grid; gap: 14px; }
.password-control { position: relative; }
.password-control input { padding-right: 64px; }
.password-toggle { position: absolute; inset: 1px 1px 1px auto; min-width: 56px; border: 0; background: transparent; color: var(--blue); font-weight: 700; cursor: pointer; }
.auth-form-note { color: var(--muted); font-size: 0.87rem; line-height: 1.45; }
.password-policy { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px 12px; padding: 10px 0 0; margin: -6px 0 0; color: var(--muted); font-size: 0.8rem; }
.password-policy li { display: flex; gap: 7px; align-items: center; min-width: 0; }
.password-policy li span { color: var(--line); font-size: 1rem; line-height: 1; }
.password-policy li.is-met { color: var(--ok); }
.password-policy li.is-met span { color: var(--ok); }
.auth-link { justify-self: start; padding: 0; border: 0; background: transparent; color: var(--blue); font-size: 0.84rem; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.auth-link:disabled { cursor: progress; opacity: 0.7; }
.auth-form .error:empty { min-height: 0; }
.auth-form .error.success-note { color: var(--ok); }
.auth-form .btn:disabled { cursor: progress; opacity: 0.75; }
.auth-story { min-width: 0; padding: 38px 42px 32px; background: #EAF0F5; color: #101B33; display: grid; grid-template-rows: auto auto 1fr; position: relative; overflow: hidden; }
.auth-story::before { content: ""; position: absolute; inset: 0; opacity: 0.28; pointer-events: none; background-image: radial-gradient(#8FA2B6 0.7px, transparent 0.7px); background-size: 18px 18px; }
.auth-story-copy, .auth-mail-scene, .auth-trust-list { position: relative; z-index: 1; }
.auth-story-copy .label-caps { color: #43556D; }
.auth-story-copy h2 { font-size: clamp(2rem, 3.5vw, 3rem); line-height: 0.98; margin-top: 12px; }
.auth-story-copy > p:last-child { max-width: 40ch; color: #43556D; margin-top: 14px; }
.auth-mail-scene { height: 216px; display: grid; place-items: center; perspective: 800px; }
.mail-trail { position: absolute; width: 68%; height: 1px; border-top: 2px dashed #9DABBC; transform: rotate(-9deg) translateY(4px); }
.auth-envelope { position: relative; width: 228px; height: 144px; filter: drop-shadow(0 14px 9px rgba(16, 27, 51, 0.16)); transform: rotate(-5deg); animation: envelope-float 4.8s ease-in-out infinite; }
.auth-envelope-back, .auth-envelope-front { position: absolute; inset: 0; background: #FCFCFA; border: 1px solid #D1D8E2; border-radius: 3px; }
.auth-envelope-back { background: #F9FAF8; }
.auth-envelope-front { clip-path: polygon(0 0, 50% 59%, 100% 0, 100% 100%, 0 100%); background: linear-gradient(145deg, #F5F6F2, #FFFFFF 52%, #E7ECF1); }
.auth-envelope-flap { position: absolute; z-index: 3; inset: 0 0 auto; height: 78%; background: #E6EBF0; clip-path: polygon(0 0, 100% 0, 50% 76%); transform-origin: top center; animation: flap-rest 4.8s ease-in-out infinite; }
.auth-letter { position: absolute; z-index: 2; left: 17%; right: 17%; top: 10px; height: 110px; padding: 15px 13px; background: #FFFDF6; color: #43556D; box-shadow: 0 2px 4px rgba(16, 27, 51, 0.12); font: 0.75rem var(--font-mono); animation: letter-peek 4.8s ease-in-out infinite; }
.auth-letter span { display: block; margin-bottom: 11px; }
.auth-letter i { display: block; height: 1px; background: #D8DEE6; margin-top: 9px; }
.auth-envelope-seal { position: absolute; z-index: 4; width: 34px; height: 34px; border-radius: 50%; left: calc(50% - 17px); top: 56px; display: grid; place-items: center; background: var(--red); color: white; font: 800 0.95rem var(--font-display); box-shadow: 0 2px 5px rgba(16, 27, 51, 0.2); }
.auth-postmark { position: absolute; top: 14px; right: 2%; padding: 8px 10px; border: 1px solid var(--blue); border-radius: 50%; color: var(--blue); font: 500 0.6rem/1.5 var(--font-mono); text-align: center; transform: rotate(10deg); }
.auth-trust-list { display: grid; align-content: end; gap: 12px; }
.auth-trust-list > div { display: flex; align-items: center; gap: 12px; padding-top: 12px; border-top: 1px solid #C7D1DD; }
.trust-mark { color: var(--red); font: 500 0.7rem var(--font-mono); }
.auth-trust-list p { display: grid; gap: 1px; }
.auth-trust-list strong { font-size: 0.9rem; }
.auth-trust-list p span { color: #43556D; font-size: 0.82rem; }
.auth-screen.is-sending .auth-envelope { animation: envelope-flight 850ms cubic-bezier(0.22, 0.8, 0.3, 1) forwards; }
.auth-screen.is-sending .auth-letter { animation: letter-send 650ms ease-in forwards; }
.auth-screen.is-sending .mail-trail { animation: trail-fade 850ms ease-out forwards; }

@keyframes envelope-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -7px; } }
@keyframes letter-peek { 0%, 12%, 78%, 100% { transform: translateY(18px); } 35%, 62% { transform: translateY(-7px); } }
@keyframes flap-rest { 0%, 20%, 76%, 100% { transform: rotateX(0); } 36%, 60% { transform: rotateX(18deg); } }
@keyframes envelope-flight { to { transform: translate(145px, -98px) rotate(18deg) scale(0.56); opacity: 0; } }
@keyframes letter-send { to { transform: translateY(-65px) rotate(-8deg); opacity: 0; } }
@keyframes trail-fade { to { transform: translate(90px, -42px) rotate(-9deg); opacity: 0; } }

/* builder / wizard */
.builder { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: 36px; align-items: start; padding-top: 28px; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 24px; margin-bottom: 22px; min-width: 0; }
.step-h { display: flex; align-items: baseline; gap: 12px; margin-bottom: 4px; }
.step-h .n { font-family: var(--font-mono); font-size: 0.85rem; color: var(--red); }
.step-h h2 { font-size: 1.4rem; font-weight: 700; }
.step .hint { color: var(--muted); font-size: 0.92rem; margin-bottom: 16px; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.field { display: grid; gap: 6px; align-content: start; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label, .field .lbl { font-size: 0.86rem; font-weight: 600; }
.field .opt { font-weight: 400; color: var(--muted); }
input[type="text"], input[type="email"], input[type="password"], input[type="date"], input[type="tel"], input[type="number"], select, textarea {
  width: 100%; padding: 10px 12px; background: var(--field); border: 1px solid var(--line); border-radius: 4px; color: var(--ink); min-width: 0;
}
input::placeholder, textarea::placeholder { color: var(--muted); opacity: 0.8; }
[aria-invalid="true"] { border-color: var(--danger); }
.error { color: var(--danger); font-size: 0.84rem; min-height: 1.2em; }

.letter-box { font-family: var(--font-hand); font-size: 1.12rem; line-height: 2rem; min-height: 280px; resize: vertical; background-color: var(--paper); color: var(--paper-ink); border-color: var(--paper-line);
  padding: 0.75rem 16px 1rem; background-image: linear-gradient(transparent calc(2rem - 1px), var(--paper-line) 1px); background-size: 100% 2rem; background-position: 0 0.75rem; background-attachment: local; }
.letter-box::placeholder { color: var(--paper-ink); opacity: 0.45; }
.meta-row { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 0.84rem; color: var(--muted); margin-top: 6px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.chip { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 6px 12px; font-size: 0.86rem; cursor: pointer; }
.chip:hover { border-color: var(--ink); }
.chip.active { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.sub-h { font-family: var(--font-display); font-weight: 700; font-size: 1.02rem; margin: 26px 0 4px; }

.when { margin-top: 16px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.countdown { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; line-height: 1.15; }
.countdown small { display: block; font-family: var(--font-body); font-weight: 400; font-size: 0.86rem; color: var(--muted); margin-top: 2px; }

.btn { border: 0; border-radius: 4px; padding: 14px 22px; font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; background: var(--red); color: var(--on-red); cursor: pointer; display: inline-flex; justify-content: center; align-items: center; }
.btn:hover { filter: brightness(1.07); }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.btn.btn-sm { padding: 8px 14px; font-size: 0.9rem; }
.btn-block { width: 100%; }

/* preview */
.preview { position: sticky; top: calc(16px + env(safe-area-inset-top, 0px)); min-width: 0; }
.preview-h { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.sheet { background: var(--paper); color: var(--paper-ink); font-family: var(--font-hand); padding: 22px 24px 24px; box-shadow: 0 1px 0 var(--line), 0 18px 34px -18px rgba(8, 14, 30, 0.45); min-height: 360px; display: grid; grid-template-rows: auto 1fr auto; gap: 10px; min-width: 0; }
.sheet .written { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.7; display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.sheet .body { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 1.1rem; line-height: 2rem; max-height: 330px; overflow-y: auto; background-image: linear-gradient(transparent calc(2rem - 1px), var(--paper-line) 1px); background-size: 100% 2rem; background-attachment: local; }
.is-sample { opacity: 0.5; }

.env-out { padding: 9px; background: repeating-linear-gradient(135deg, var(--red) 0 16px, var(--paper) 16px 24px, var(--blue) 24px 40px, var(--paper) 40px 48px); box-shadow: 0 18px 34px -18px rgba(8, 14, 30, 0.45); }
.env { background: var(--paper); color: var(--paper-ink); font-family: var(--font-hand); padding: 18px 20px 20px; min-height: 300px; display: flex; flex-direction: column; gap: 14px; position: relative; overflow: hidden; }
.env-top { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.from { font-size: 0.95rem; line-height: 1.35; max-width: 55%; overflow-wrap: anywhere; }
.from .label-caps { color: var(--paper-ink); opacity: 0.6; display: block; }
.stamp { width: 74px; height: 88px; padding: 6px; background: var(--paper); outline: 2px dashed var(--red); outline-offset: -3px; display: grid; place-items: center; text-align: center; color: var(--red); font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.08em; line-height: 1.3; position: relative; flex: none; margin-right: 6px; }
.stamp b { display: block; font-family: var(--font-display); font-size: 1.5rem; letter-spacing: 0; }
.env .pm { --pm: 104px; position: absolute; right: 52px; top: 22px; background: color-mix(in srgb, var(--paper) 55%, transparent); }
.addr { margin-top: auto; padding-left: 8%; font-size: 1.2rem; line-height: 1.5; overflow-wrap: anywhere; white-space: pre-line; }
.env-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.env-foot .open { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.75; }
.gift-tag { font-family: var(--font-body); font-size: 0.8rem; font-weight: 600; padding: 4px 10px; border: 1.5px solid var(--red); color: var(--red); border-radius: 3px; transform: rotate(-2deg); }

/* wizard progress */
.progress-wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.progress-left { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.progress-dots { display: flex; gap: 8px; }
.progress-dot { width: 40px; height: 6px; background: var(--line); border-radius: 3px; transition: background 0.3s ease; }
.progress-dot.active { background: var(--red); }

/* success screen */
.success-screen { padding-block: 40px; }
.success-box { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 48px 32px; box-shadow: var(--shadow); }
.receipt-box { max-width: 600px; margin: 0 auto; display: grid; gap: 24px; }
.confirm-anim { position: relative; width: 80px; height: 80px; margin: 0 auto 12px; }
.confirm-seal { width: 80px; height: 80px; background: var(--red); color: white; border-radius: 50%; display: grid; place-items: center; font-size: 2rem; }
.total-amount { font-family: var(--font-display); font-weight: 800; font-size: 2.2rem; letter-spacing: -0.04em; }

/* toast */
.toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); background: var(--ink); color: white; padding: 12px 24px; border-radius: 6px; font-weight: 500; z-index: 100; box-shadow: var(--shadow); }

@media (max-width: 920px) {
  .hero { grid-template-columns: 1fr; }
  .builder { grid-template-columns: 1fr; }
  .preview { position: static; margin-top: 32px; }
  .fields { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr 0.8fr; gap: 32px; }
  .pricing-grid { grid-template-columns: 1fr 0.8fr; gap: 28px; }
}

@media (max-width: 850px) {
  .auth-screen { min-height: auto; }
  .auth-layout { max-width: 620px; grid-template-columns: 1fr; }
  .auth-inner { padding: 32px clamp(22px, 7vw, 42px) 36px; }
  .auth-story { padding: 30px clamp(22px, 7vw, 42px) 28px; }
  .auth-story-copy h2 { font-size: 2.5rem; }
  .auth-mail-scene { height: 190px; }
  .auth-trust-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .auth-trust-list > div { align-items: flex-start; gap: 8px; }
}

@media (max-width: 600px) {
  .top { justify-content: center; }
  .hero h1 { font-size: 2.5rem; }
  .pm { --pm: 120px; }
  .success-box { padding: 32px 16px; }
  .auth-screen { padding-block: 12px; }
  .auth-brand { font-size: 1.85rem; }
  .auth-heading { font-size: 1.9rem; }
  .auth-story-copy h2 { font-size: 2.1rem; }
  .auth-mail-scene { height: 174px; }
  .auth-envelope { transform: rotate(-5deg) scale(0.88); }
  .auth-trust-list { grid-template-columns: 1fr; gap: 0; }
  .auth-trust-list > div { align-items: center; }
  .home-section { margin-top: 20px; }
  .section-topline { align-items: flex-start; }
  .section-note { font-size: 0.82rem; }
  .about-grid, .pricing-grid { grid-template-columns: 1fr; gap: 28px; padding-top: 28px; }
  .about-copy h2, .pricing-copy h2 { font-size: 2.25rem; }
  .about-letter { min-height: 225px; margin: 0 8px; }
  .pricing-section { padding: 26px 18px 28px; }
  .included-list { grid-template-columns: 1fr; gap: 10px; }
  .price-card { padding: 22px 20px 18px; }
  .price-amount strong { font-size: 4rem; }
  .support-section { padding: 26px 18px 28px; }
  .support-grid { grid-template-columns: 1fr; }
  .customer-order-head { flex-direction: column; }
  .order-details { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .auth-envelope, .auth-letter, .auth-envelope-flap { animation: none !important; }
  .auth-screen.is-sending .auth-envelope { transition: opacity 150ms ease; opacity: 0; }
  .auth-screen.is-sending .mail-trail { opacity: 0; }
}
