:root {
  color-scheme: light;
  --rose-50: #fff7fa;
  --rose-100: #ffe9f1;
  --rose-300: #f7a9c2;
  --rose-500: #db4f83;
  --rose-700: #a72d5a;
  --ink: #34242b;
  --muted: #6f5b63;
  --white: #fff;
  --shadow: 0 18px 46px rgba(119, 44, 73, .13);
  --radius: 24px;
}

* { box-sizing: border-box; }

html { min-height: 100%; background: var(--rose-50); }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  padding: env(safe-area-inset-top) max(16px, env(safe-area-inset-right)) calc(84px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  font-family: Inter, ui-rounded, "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 0%, rgba(247, 169, 194, .3), transparent 32rem),
    linear-gradient(180deg, #fff 0, var(--rose-50) 58%);
}

button, input { font: inherit; }
button { touch-action: manipulation; }

.skip-link {
  position: fixed; left: 12px; top: -60px; z-index: 20;
  padding: 12px 16px; background: var(--ink); color: #fff; border-radius: 8px;
}
.skip-link:focus { top: 12px; }

.topbar {
  width: min(100%, 520px); margin: 0 auto; min-height: 56px;
  display: flex; align-items: center;
}

.progress-shell { flex: 1; }
.progress-track { height: 9px; overflow: hidden; border-radius: 999px; background: #f3dce5; }
.progress-track span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--rose-500), #ed79a4); transition: width .25s ease; }

main { width: min(100%, 520px); margin: 0 auto; }

.card {
  min-height: min(620px, calc(100dvh - 190px));
  padding: clamp(24px, 7vw, 38px);
  display: flex; flex-direction: column; justify-content: center;
  background: rgba(255,255,255,.96); border: 1px solid rgba(219,79,131,.12);
  border-radius: var(--radius); box-shadow: var(--shadow);
}

.step { animation: enter .24s ease both; }
.eyebrow { margin: 0 0 8px; color: var(--rose-700); font-weight: 800; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; }
h1 { margin: 0 0 14px; font-size: clamp(1.75rem, 7.6vw, 2.55rem); line-height: 1.1; letter-spacing: -.035em; }
.handoff-title { font-size: clamp(1.65rem, 6.8vw, 2.2rem); font-weight: 500; line-height: 1.18; letter-spacing: -.025em; }
p { line-height: 1.55; }
.lead { margin: 0 0 24px; color: var(--muted); font-size: 1.04rem; }
.hero-image { width: 100%; max-height: 250px; margin: 0 0 24px; border-radius: 20px; object-fit: cover; object-position: center 38%; background: var(--rose-100); }
.handoff-image { max-height: 210px; margin-bottom: 20px; }

.primary, .secondary, .choice, .text-button {
  min-height: 52px; border-radius: 15px; cursor: pointer; border: 0;
}
.primary { width: 100%; padding: 14px 20px; color: #fff; background: linear-gradient(135deg, var(--rose-700), var(--rose-500)); font-weight: 800; box-shadow: 0 8px 20px rgba(167,45,90,.22); }
.primary:hover { filter: brightness(1.04); }
.primary:disabled { cursor: wait; opacity: .65; }
.secondary { width: 100%; padding: 13px 18px; color: var(--rose-700); background: var(--rose-100); font-weight: 750; }
.text-button { padding: 10px 14px; min-height: 44px; color: var(--rose-700); background: transparent; font-weight: 700; text-decoration: underline; }
.button-stack { display: grid; gap: 12px; }

.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.choice-list { display: grid; gap: 12px; }
.choice { min-height: 84px; padding: 16px; text-align: left; color: var(--ink); background: #fff; border: 2px solid var(--rose-100); font-weight: 800; box-shadow: 0 6px 18px rgba(52,36,43,.06); }
.choice-grid .choice { min-height: 128px; text-align: center; font-size: 1.1rem; }
.choice-icon { display: block; margin-bottom: 7px; font-size: 2rem; }
.choice:hover, .choice:focus-visible { border-color: var(--rose-500); background: var(--rose-50); }

label { display: block; margin-bottom: 9px; font-weight: 800; }
input[type="text"] { width: 100%; min-height: 54px; padding: 12px 14px; border: 2px solid #ead6de; border-radius: 14px; color: var(--ink); background: #fff; }
input[type="text"]:focus { outline: 3px solid rgba(219,79,131,.2); border-color: var(--rose-500); }
.field-note { min-height: 22px; margin: 7px 0 18px; color: var(--muted); font-size: .9rem; }
.field-note.error { color: #a51e3f; font-weight: 700; }

.summary-box { margin: 10px 0 24px; padding: 22px; border-radius: 18px; color: #6e2441; background: linear-gradient(145deg, var(--rose-50), var(--rose-100)); font-size: 1.16rem; font-weight: 750; line-height: 1.55; }

.testimonial { margin: 8px 0 22px; padding: 18px; border: 1px solid var(--rose-100); border-radius: 18px; background: #fffafc; }
.testimonial-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.testimonial img { width: 72px; height: 72px; flex: 0 0 auto; border-radius: 50%; object-fit: cover; background: var(--rose-100); opacity: .35; transition: opacity .18s ease; }
.testimonial img.is-loaded { opacity: 1; }
.testimonial strong, .testimonial small { display: block; }
.testimonial small { margin-top: 4px; color: var(--muted); }
.testimonial blockquote { margin: 0; line-height: 1.55; color: #4d3840; }
.badge { display: inline-flex; margin-top: 14px; padding: 6px 10px; border-radius: 999px; color: var(--rose-700); background: var(--rose-100); font-size: .78rem; font-weight: 800; }
.empty-proof { margin: 10px 0 22px; padding: 20px; border-radius: 18px; color: var(--muted); background: #faf7f8; text-align: center; }
.loading-proof { min-height: 82px; display: grid; place-items: center; }

.back-button { position: fixed; left: max(16px, env(safe-area-inset-left)); bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 5; min-width: 92px; min-height: 48px; border: 1px solid #ead6de; border-radius: 999px; color: var(--ink); background: rgba(255,255,255,.96); box-shadow: 0 8px 24px rgba(52,36,43,.12); font-weight: 750; }
.status-message { position: fixed; right: 16px; bottom: calc(20px + env(safe-area-inset-bottom)); max-width: min(280px, 70vw); color: var(--muted); font-size: .82rem; text-align: right; pointer-events: none; }
.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; }

:focus-visible { outline: 3px solid #671b38; outline-offset: 3px; }
@keyframes enter { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

@media (max-width: 360px) {
  .card { padding: 22px 18px; }
  .choice-grid { grid-template-columns: 1fr; }
  .choice-grid .choice { min-height: 90px; }
}

@media (min-width: 760px) {
  body { padding-top: 20px; }
  .card { min-height: 610px; }
}

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