:root {
  color-scheme: dark;
  --bg: #050506;
  --surface: #0c0c0e;
  --surface-2: #121216;
  --line: rgba(255,255,255,.11);
  --text: #f4f4f6;
  --muted: #92929b;
  --accent: #4f7cff;
  --accent-soft: #8eaaff;
  --radius: 24px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: radial-gradient(900px 500px at 50% -10%, rgba(65,107,255,.16), transparent 70%), var(--bg); color: var(--text); }
button, input { font: inherit; }
.shell { width: min(1120px, calc(100% - 32px)); margin: 0 auto; padding: 72px 0 100px; }
.hero { max-width: 840px; margin-bottom: 48px; }
.eyebrow { margin: 0 0 18px; color: var(--accent-soft); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
h1 { margin: 0; font-size: clamp(48px, 8vw, 96px); line-height: .98; letter-spacing: -.065em; }
.hero-copy { max-width: 640px; margin: 28px 0 0; color: var(--muted); font-size: clamp(17px, 2vw, 21px); line-height: 1.65; }
.generator-card { padding: clamp(24px, 5vw, 56px); border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(145deg, rgba(255,255,255,.035), transparent 35%), var(--surface); box-shadow: 0 30px 100px rgba(0,0,0,.35); }
fieldset { margin: 0; padding: 0 0 42px; border: 0; }
fieldset + fieldset { padding-top: 38px; border-top: 1px solid var(--line); }
legend { width: 100%; margin-bottom: 22px; font-size: clamp(22px, 3vw, 32px); font-weight: 700; letter-spacing: -.035em; }
legend span { display: inline-grid; place-items: center; width: 34px; height: 34px; margin-right: 10px; border-radius: 50%; background: #1b1b22; color: var(--accent-soft); font-size: 12px; letter-spacing: 0; vertical-align: 4px; }
.choice-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.choice-grid--two { grid-template-columns: repeat(2, 1fr); }
.choice-grid--four { grid-template-columns: repeat(4, 1fr); }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span { display: flex; min-height: 116px; padding: 22px; flex-direction: column; justify-content: space-between; gap: 12px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface-2); transition: border-color .2s, background .2s, transform .2s; }
.choice b { font-size: 18px; }
.choice small { color: var(--muted); font-size: 14px; line-height: 1.5; }
.choice:hover span { transform: translateY(-2px); border-color: rgba(255,255,255,.24); }
.choice input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }
.choice input:checked + span { border-color: var(--accent); background: rgba(79,124,255,.1); box-shadow: inset 0 0 0 1px rgba(79,124,255,.3); }
.email-field input { width: 100%; padding: 20px 22px; border: 1px solid var(--line); border-radius: 14px; outline: none; background: #111115; color: var(--text); font-size: 18px; }
.email-field input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(79,124,255,.16); }
.privacy-note { margin: 12px 0 0; color: #74747d; font-size: 13px; }
.submit-btn { display: flex; width: 100%; padding: 20px 24px; justify-content: space-between; border: 0; border-radius: 14px; background: linear-gradient(180deg, #668dff, #416ff0); color: white; font-weight: 800; cursor: pointer; box-shadow: 0 16px 40px rgba(47,91,220,.28); }
.submit-btn:disabled { opacity: .55; cursor: wait; }
.form-status { min-height: 24px; margin: 14px 0 0; color: var(--muted); }
.results { margin-top: 72px; }
.results-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.results h2 { margin: 0; font-size: clamp(36px, 5vw, 62px); letter-spacing: -.055em; text-wrap: balance; }
.secondary-btn, .download-btn { padding: 12px 16px; border: 1px solid var(--line); border-radius: 10px; background: #121216; color: var(--text); cursor: pointer; }
.delivery-note { margin: 0 0 26px; padding: 14px 16px; border: 1px solid rgba(142,170,255,.25); border-radius: 12px; background: rgba(79,124,255,.08); color: #b7c8ff; }
.email-preview { margin-bottom: 26px; padding: clamp(22px, 4vw, 34px); border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(145deg, rgba(79,124,255,.08), transparent 42%), var(--surface); }
.email-preview__top { display: flex; align-items: start; justify-content: space-between; gap: 20px; }
.email-preview__top h3 { margin: 0; font-size: clamp(23px, 3vw, 32px); letter-spacing: -.035em; }
.preview-badge { flex: none; padding: 7px 10px; border: 1px solid rgba(255,189,133,.25); border-radius: 999px; background: rgba(180,106,49,.12); color: #ffbd85; font-size: 12px; font-weight: 700; }
.email-meta { margin: 28px 0 0; border-top: 1px solid var(--line); }
.email-meta div { display: grid; grid-template-columns: 76px 1fr; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.email-meta dt { color: var(--muted); font-size: 13px; }
.email-meta dd { margin: 0; overflow-wrap: anywhere; font-size: 14px; }
.email-body-preview { margin-top: 22px; color: #c7c7ce; font-size: 14px; line-height: 1.7; }
.email-body-preview p { margin: 0 0 10px; }
.email-body-preview ol { margin: 0; padding-left: 20px; }
.attachment-preview { margin-top: 22px; padding: 16px; border-radius: 12px; background: rgba(255,255,255,.035); }
.attachment-preview p { display: flex; justify-content: space-between; gap: 12px; margin: 0 0 12px; font-size: 13px; }
.attachment-preview p span { color: var(--muted); }
.attachment-list { display: flex; flex-wrap: wrap; gap: 8px; }
.attachment-list span { padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: #101014; color: #bfcaff; font-size: 12px; }
.result-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.result-card { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 20px; padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.poster { display: block; width: 100%; aspect-ratio: 4 / 5; border-radius: 12px; background: #111; }
.copy { display: flex; min-width: 0; flex-direction: column; }
.copy h3 { margin: 4px 0 12px; font-size: 23px; letter-spacing: -.035em; }
.caption { flex: 1; margin: 0 0 16px; color: #b6b6be; font-size: 14px; line-height: 1.72; white-space: pre-line; }
.tags { margin: 0 0 16px; color: var(--accent-soft); font-size: 13px; }
.boundary-note { margin-top: 28px; padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: #09090b; }
.boundary-note b { font-size: 18px; }
.boundary-note p { margin: 10px 0 0; color: var(--muted); line-height: 1.65; }
.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: 960px) { .choice-grid--four { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 860px) { .choice-grid, .choice-grid--two, .result-list { grid-template-columns: 1fr; } .result-card { grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); } }
@media (max-width: 580px) { .shell { width: min(100% - 20px, 1120px); padding-top: 40px; } .generator-card { padding: 22px 16px; border-radius: 18px; } .choice-grid--four { grid-template-columns: 1fr; } .result-card { grid-template-columns: 1fr; } .poster { max-width: 320px; margin: 0 auto; } .results-head { align-items: stretch; flex-direction: column; } .email-preview__top { flex-direction: column; } .email-meta div { grid-template-columns: 1fr; gap: 5px; } }
