@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700&family=Unbounded:wght@500;600&display=swap');

:root {
  --ink: #17130f;
  --paper: #f4f0e8;
  --cream: #fffcf6;
  --red: #df3b2f;
  --red-dark: #b82a21;
  --gold: #d5aa58;
  --line: rgba(23, 19, 15, .14);
  --muted: #746d63;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { min-width: 320px; background: var(--ink); }
body { margin: 0; font-family: Manrope, system-ui, sans-serif; color: var(--ink); background: var(--paper); }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }

.page-shell { min-height: 100svh; display: grid; grid-template-columns: minmax(320px, 38%) 1fr; }
.intro-panel { position: sticky; top: 0; height: 100svh; padding: clamp(28px, 4vw, 64px); overflow: hidden; color: #fff9ef; background: #17130f; display: flex; flex-direction: column; justify-content: space-between; }
.intro-panel::before { content: ""; position: absolute; inset: -15%; opacity: .16; background: radial-gradient(circle at 30% 25%, var(--red) 0 16%, transparent 17%), repeating-linear-gradient(115deg, transparent 0 45px, rgba(255,255,255,.08) 46px, transparent 48px); transform: rotate(-8deg); }
.brand, .intro-copy, .time-note { position: relative; z-index: 2; }
.brand { display: flex; align-items: center; gap: 13px; font: 600 15px/1 Unbounded, sans-serif; letter-spacing: .16em; }
.brand-mark { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid rgba(255,255,255,.28); border-radius: 50%; color: #f6d49b; font: 500 20px serif; }
.intro-copy { max-width: 520px; }
.eyebrow, .kicker { text-transform: uppercase; letter-spacing: .18em; font-size: 11px; font-weight: 700; }
.eyebrow { color: #ef746b; }
.intro-copy h1 { margin: 16px 0 22px; font: 600 clamp(36px, 5vw, 70px)/1.03 Unbounded, sans-serif; letter-spacing: -.045em; }
.intro-copy p:last-child { max-width: 470px; color: rgba(255,249,239,.68); font-size: clamp(15px, 1.5vw, 18px); line-height: 1.65; }
.time-note { display: flex; align-items: center; gap: 10px; font-size: 13px; color: rgba(255,249,239,.62); }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: #7bd891; box-shadow: 0 0 0 6px rgba(123,216,145,.12); }
.brush-stroke { position: absolute; right: -120px; bottom: 5%; width: 420px; height: 120px; border: 35px solid rgba(223,59,47,.28); border-left-color: transparent; border-radius: 50%; transform: rotate(-18deg); }

.form-panel { min-height: 100svh; padding: clamp(24px, 5vw, 72px) clamp(22px, 7vw, 110px); background: var(--cream); }
.form-topbar { max-width: 780px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 12px; }
.form-topbar div { display: flex; gap: 12px; align-items: baseline; }
.form-topbar strong { color: var(--red); text-transform: uppercase; letter-spacing: .14em; font-size: 10px; }
.text-button { border: 0; background: none; color: var(--muted); padding: 8px 0; text-decoration: underline; text-underline-offset: 4px; }
.progress { max-width: 780px; height: 3px; margin: 18px auto clamp(42px, 8vh, 90px); background: #e5dfd4; overflow: hidden; }
.progress span { display: block; height: 100%; width: 12.5%; background: var(--red); transition: width .35s ease; }
#briefForm { max-width: 780px; margin: 0 auto; }
.step { display: none; animation: appear .3s ease both; }
.step.active { display: block; }
@keyframes appear { from { opacity: 0; transform: translateY(10px); } }
.kicker { color: var(--red); margin: 0 0 12px; }
h2 { margin: 0 0 12px; font: 600 clamp(28px, 4vw, 46px)/1.12 Unbounded, sans-serif; letter-spacing: -.04em; }
.hint { margin: 0 0 28px; color: var(--muted); }

.option-grid { display: grid; gap: 12px; margin-top: 28px; }
.two-col { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.option input, .chips input, .mood input { position: absolute; opacity: 0; pointer-events: none; }
.option { position: relative; min-height: 92px; display: flex; align-items: center; padding: 18px 20px; border: 1px solid var(--line); background: #fff; cursor: pointer; transition: .2s ease; }
.option::after { content: ""; flex: 0 0 auto; width: 18px; height: 18px; margin-left: auto; border: 1px solid #bdb5a9; border-radius: 50%; }
.option:hover { border-color: rgba(223,59,47,.5); transform: translateY(-2px); box-shadow: 0 12px 30px rgba(36,24,13,.07); }
.option:has(input:checked) { border-color: var(--red); background: #fff8f4; box-shadow: inset 4px 0 var(--red); }
.option:has(input:checked)::after { background: var(--red); border-color: var(--red); box-shadow: inset 0 0 0 4px #fff; }
.option span { display: grid; gap: 5px; padding-right: 14px; }
.option b { font-size: 14px; }
.option small { color: var(--muted); line-height: 1.35; }

.field-row { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.field { display: grid; gap: 9px; margin-top: 22px; }
.field > span, .field-title { color: #514b43; font-size: 13px; font-weight: 700; }
.field input, .field textarea, .field select { width: 100%; border: 1px solid var(--line); border-radius: 0; background: #fff; color: var(--ink); padding: 15px 16px; outline: none; transition: .2s; }
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(223,59,47,.09); }
.field-group { margin-top: 26px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0; }
.chips label { cursor: pointer; }
.chips span { display: block; padding: 12px 16px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 13px; font-weight: 600; transition: .2s; }
.chips label:hover span { border-color: rgba(223,59,47,.5); }
.chips label:has(input:checked) span { color: #fff; background: var(--red); border-color: var(--red); }
.chips.compact { margin: 12px 0; }
.toggle-line { display: flex; align-items: center; gap: 12px; margin-top: 22px; cursor: pointer; }
.toggle-line input { width: 20px; height: 20px; accent-color: var(--red); }
.toggle-line.spaced { margin-top: 34px; padding-top: 24px; border-top: 1px solid var(--line); align-items: flex-start; }
.toggle-line span { display: grid; gap: 4px; }
.toggle-line small { color: var(--muted); }

.mood-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; margin-top: 28px; }
.mood { position: relative; min-height: 165px; padding: 18px; overflow: hidden; border: 2px solid transparent; cursor: pointer; display: flex; flex-direction: column; justify-content: flex-end; transition: .2s; }
.mood b, .mood small { position: relative; z-index: 2; }
.mood small { margin-top: 4px; opacity: .68; }
.mood:has(input:checked) { border-color: var(--red); transform: translateY(-2px); box-shadow: 0 12px 30px rgba(36,24,13,.1); }
.mood-art { position: absolute; inset: 0; }
.premium { color: #f7e5c7; background: #221d19; }
.premium .mood-art { background: radial-gradient(circle at 75% 28%, rgba(213,170,88,.5) 0 4%, transparent 5%), linear-gradient(135deg, transparent 35%, rgba(213,170,88,.17) 36% 37%, transparent 38%); }
.night { color: #f8f1ff; background: #241134; }
.night .mood-art { background: radial-gradient(circle at 80% 28%, #ff416c 0 12%, transparent 13%), linear-gradient(145deg, transparent 30%, rgba(22,225,255,.34) 31% 33%, transparent 34%); }
.bright { color: #17130f; background: #ffd64d; }
.bright .mood-art { background: radial-gradient(circle at 80% 18%, #ef3f36 0 13%, transparent 14%), repeating-linear-gradient(45deg, transparent 0 18px, rgba(255,255,255,.35) 19px 21px); }
.clean { color: #17130f; background: #eee9df; }
.clean .mood-art { background: radial-gradient(circle at 77% 25%, transparent 0 13%, #151515 14% 15%, transparent 16%); }
.range-field { display: grid; gap: 12px; margin-top: 32px; }
.range-field > span:first-child { display: flex; justify-content: space-between; align-items: center; }
.range-field output { color: var(--red); font-size: 13px; font-weight: 700; }
.range-field input { width: 100%; accent-color: var(--red); }
.range-labels { display: flex; justify-content: space-between; color: var(--muted); font-size: 11px; }
.range-labels i { font-style: normal; }

.privacy-note { margin-top: 22px; padding: 14px 16px; border-left: 3px solid var(--gold); background: #f4eee2; color: #655d53; font-size: 12px; line-height: 1.5; }
.form-actions { display: flex; align-items: center; justify-content: space-between; margin-top: clamp(34px, 7vh, 70px); padding-top: 20px; border-top: 1px solid var(--line); }
.back, .next, .primary, .secondary { min-height: 48px; border: 0; padding: 0 24px; font-weight: 700; transition: .2s; }
.back { background: none; color: var(--muted); padding-left: 0; }
.back:disabled { opacity: 0; pointer-events: none; }
.next, .primary { color: #fff; background: var(--red); }
.next:hover, .primary:hover { background: var(--red-dark); transform: translateY(-1px); }
.next span { margin-left: 12px; }
.validation { min-height: 20px; margin: 10px 0 0; color: var(--red); font-size: 12px; text-align: right; }

.result-lead { color: var(--muted); line-height: 1.6; max-width: 620px; }
.summary { margin-top: 28px; border-top: 1px solid var(--line); }
.summary-group { padding: 18px 0; border-bottom: 1px solid var(--line); }
.summary-group h3 { margin: 0 0 10px; color: var(--red); font-size: 11px; letter-spacing: .15em; text-transform: uppercase; }
.summary-row { display: grid; grid-template-columns: 190px 1fr; gap: 14px; margin-top: 7px; font-size: 13px; line-height: 1.45; }
.summary-row span:first-child { color: var(--muted); }
.result-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.send-button { min-width: 220px; }
.send-button:disabled { opacity: .65; cursor: wait; transform: none; }
.secondary { color: var(--ink); background: #ece5d9; }
.send-status { min-height: 22px; margin-top: 14px; color: var(--muted); font-size: 13px; }
.send-status.success { color: #297341; font-weight: 700; }
.send-status.error { color: var(--red); }
.edit-button { margin-top: 20px; }

@media (max-width: 860px) {
  .page-shell { display: block; }
  .intro-panel { position: relative; height: auto; min-height: 310px; padding: 28px 24px 34px; }
  .intro-copy { margin: 55px 0 36px; }
  .intro-copy h1 { font-size: clamp(34px, 9vw, 54px); max-width: 650px; }
  .intro-copy p:last-child { margin-bottom: 0; }
  .form-panel { min-height: 720px; padding: 28px 22px 52px; }
  .progress { margin-bottom: 48px; }
}

@media (max-width: 560px) {
  .intro-panel { min-height: 280px; }
  .intro-copy { margin: 38px 0 22px; }
  .intro-copy h1 { font-size: 33px; }
  .intro-copy p:last-child { font-size: 14px; }
  .two-col, .field-row, .mood-grid { grid-template-columns: 1fr; }
  h2 { font-size: 28px; }
  .option { min-height: 78px; }
  .summary-row { grid-template-columns: 1fr; gap: 3px; }
  .result-actions { display: grid; }
  .primary, .secondary { width: 100%; }
}

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