/* Black and white editorial, with one streak of neon pink. */

:root {
  --bg: #ffffff;
  --ink: #0a0a0a;
  --ink-soft: #5c5c5c;
  --line: #0a0a0a;
  --hair: #d9d9d9;
  --field: #f5f5f5;
  --pink: #ff1f8e;
  --pink-on-light: #e0007a;
  --on-pink: #0a0a0a;
  --serif: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --num: "Geist", "Inter", -apple-system, "Segoe UI", sans-serif;
  --sans: "Jost", "Futura", "Avenir Next", -apple-system, "Segoe UI", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0a0a;
    --ink: #f7f7f7;
    --ink-soft: #a3a3a3;
    --line: #f7f7f7;
    --hair: #333333;
    --field: #161616;
    --pink: #ff3d9e;
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }

body {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--pink); color: var(--on-pink); }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }

/* Spaced capitals, used for labels throughout */
.eyebrow, .card-kicker, .field > span, .step h2, .masthead-row, .figures dt, .disclaimer, .chips button, .snap-btn small {
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* Masthead */
.masthead { border-bottom: 1px solid var(--line); }
.masthead-row {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding-top: 14px; padding-bottom: 14px; font-size: 11px; font-weight: 500;
}
.masthead-title {
  font-family: var(--serif); font-size: 22px; font-weight: 500; letter-spacing: 0.3em; text-transform: uppercase;
}
@media (max-width: 640px) {
  .masthead-row span:not(.masthead-title) { display: none; }
  .masthead-row { justify-content: center; }
  .masthead-title { font-size: 18px; }
}

/* Hero */
.hero-body { padding-top: 64px; padding-bottom: 56px; text-align: center; }
.eyebrow { font-size: 12px; font-weight: 500; }
.eyebrow::before, .eyebrow::after {
  content: ""; display: inline-block; width: 32px; height: 2px; background: var(--pink);
  vertical-align: middle; margin: 0 14px;
}
@media (max-width: 640px) { .eyebrow::before, .eyebrow::after { display: none; } }
h1 {
  font-family: var(--serif); font-weight: 400; font-size: clamp(56px, 11vw, 132px);
  line-height: 0.95; letter-spacing: -0.02em; margin: 22px 0 28px;
}
h1 em {
  font-style: italic;
  background: linear-gradient(transparent 70%, var(--pink) 70%, var(--pink) 86%, transparent 86%);
  padding: 0 0.06em;
}
.lede { max-width: 600px; margin: 0 auto; font-size: 18px; font-weight: 300; color: var(--ink-soft); }

/* Layout */
/* One column, read top to bottom: the answer is at the end */
.layout { max-width: 720px; padding-bottom: 96px; border-top: 1px solid var(--line); }
.hero + .layout { margin-top: 0; }

/* Steps */
.step { padding: 36px 0; border-bottom: 1px solid var(--hair); }
.step:last-child { border-bottom: 0; }
.step h2 {
  font-family: var(--sans); font-weight: 500; font-size: 12px; margin-bottom: 26px;
  display: flex; align-items: baseline; gap: 14px;
}
.num {
  font-family: var(--serif); font-style: italic; font-size: 36px; font-weight: 400;
  letter-spacing: 0; line-height: 1; text-transform: none;
}

.field { display: block; margin-bottom: 24px; }
.field:last-child { margin-bottom: 0; }
.field > span {
  display: flex; justify-content: space-between; gap: 8px; align-items: baseline;
  font-size: 11px; font-weight: 500; margin-bottom: 10px;
}
.field small { font-weight: 400; color: var(--ink-soft); letter-spacing: 0.08em; }
.field output { font-family: var(--serif); font-size: 18px; font-style: italic; letter-spacing: 0; text-transform: none; }

.row { display: flex; gap: 0 24px; flex-wrap: wrap; }
.row .grow { flex: 1 1 200px; }
.row .field, .row .field:last-child { margin-bottom: 24px; }

input[type="text"], input[type="number"], select {
  width: 100%; font: 400 17px var(--sans); color: var(--ink); background-color: transparent;
  border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 8px 0; min-height: 44px;
  -webkit-appearance: none; appearance: none;
}
select {
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 10px) 52%, calc(100% - 5px) 52%;
  background-size: 5px 5px; background-repeat: no-repeat; padding-right: 24px;
}
select option { background: var(--bg); color: var(--ink); }
input::placeholder { color: var(--ink-soft); opacity: 0.7; }
input:focus, select:focus { outline: none; border-bottom: 2px solid var(--pink); }
.chips button:focus-visible, .snap-btn:focus-within, .peek:focus-visible { outline: 2px solid var(--pink); outline-offset: 2px; }

.money { display: flex; gap: 12px; }
.money select { width: 56px; flex: none; }

input[type="range"] { width: 100%; accent-color: var(--pink); height: 28px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips button {
  font: 500 11px var(--sans); color: var(--ink); background: transparent;
  border: 1px solid var(--line); border-radius: 0; padding: 11px 14px; cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.chips button:hover { background: var(--field); }
.chips button.on { background: var(--ink); color: var(--bg); }

.note { font-size: 14px; font-weight: 300; color: var(--ink-soft); margin-top: 14px; }

/* Snap the tag */
.snap { margin-bottom: 32px; }
.snap-btn {
  display: flex; align-items: center; gap: 16px; cursor: pointer; padding: 18px 20px;
  background: var(--ink); color: var(--bg); border-left: 6px solid var(--pink);
  transition: transform 0.15s;
}
.snap-btn:hover { transform: translateX(3px); }
.snap-btn svg { flex: none; }
.snap-btn span { display: grid; gap: 2px; }
.snap-btn strong { font-family: var(--num); font-size: 20px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.2; }
.snap-btn small { font-size: 10px; font-weight: 500; opacity: 0.75; }
.snap.busy .snap-btn { opacity: 0.6; pointer-events: none; }
.snap-thumbs { display: flex; gap: 8px; margin-top: 12px; }
.snap-thumbs:empty { display: none; }
.snap-thumbs img { width: 56px; height: 56px; object-fit: cover; border: 1px solid var(--line); filter: grayscale(1); }
.snap.busy .snap-thumbs img { animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.4; } }
.snap-status { font-size: 14px; margin-top: 10px; }
.snap-status:empty { display: none; }
.snap-status.ok::before { content: "✓  "; color: var(--pink); font-weight: 600; }
.snap-status.err { border-left: 3px solid var(--pink); padding-left: 10px; }
.filled { border-bottom: 2px solid var(--pink) !important; }

/* Step 4: the partner questions */
.step h2 em { font-family: var(--serif); font-size: 20px; font-style: italic; letter-spacing: 0; text-transform: none; color: var(--pink); }
.step h2 .opt { margin-left: auto; font-size: 10px; font-weight: 500; color: var(--ink-soft); }
.partner-intro { font-family: var(--serif); font-size: 20px; font-style: italic; margin: -8px 0 24px; }
.pq { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; margin: 0; border-top: 1px solid var(--hair); }
.pq > span { margin: 0; font-size: 15px; font-weight: 400; letter-spacing: 0; text-transform: none; }
.pq .chips { flex: none; flex-wrap: nowrap; }
.pq .chips button { min-width: 56px; }
.pq .chips button[data-good].on { background: var(--pink); border-color: var(--pink); color: var(--on-pink); }
@media (max-width: 480px) { .pq { flex-direction: column; align-items: flex-start; gap: 10px; } }

/* Result: a solid contrast block */
.result { padding: 8px 0 12px; }
.final { padding-top: 8px; }
.card-final { border-top: 6px solid var(--pink); }
.final-empty { font-family: var(--num); font-size: 20px; font-weight: 400; font-style: italic; line-height: 1.4; margin-top: 14px; opacity: 0.85; }
.offline .card { opacity: 0.5; transition: opacity 0.2s; }
.final .figures { margin-top: 26px; }
.final .partner-says { margin: 26px 0 20px; }
.final .verdict { margin-bottom: 0; border-bottom: 0; padding-bottom: 0; }
.muted { opacity: 0.35; pointer-events: none; }

.card { background: var(--ink); color: var(--bg); padding: 34px 30px; }
.card-kicker { font-size: 11px; font-weight: 500; opacity: 0.7; overflow-wrap: anywhere; }
.big {
  font-family: var(--num); font-size: 80px; font-weight: 300; line-height: 1; margin: 16px 0 6px;
  font-variant-numeric: tabular-nums; letter-spacing: -0.05em;
}
.big small {
  display: block; font: 500 11px var(--sans); letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--pink); margin-top: 12px;
}
.sub { font-size: 15px; font-weight: 300; opacity: 0.75; }

.split { display: flex; height: 4px; overflow: hidden; margin: 30px 0 18px; background: #555; }
.split-cost { background: var(--bg); transition: width 0.3s; }
.split-back { background: var(--pink); transition: width 0.3s; }

.figures { display: grid; gap: 10px; }
.figures div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.figures dt { font-size: 11px; font-weight: 500; opacity: 0.75; display: flex; align-items: center; gap: 8px; }
.figures dd { white-space: nowrap; font-family: var(--num); font-size: 18px; font-weight: 500; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.figures div:nth-child(1) dt::before,
.figures div:nth-child(2) dt::before { content: ""; width: 12px; height: 2px; }
.figures div:nth-child(1) dt::before { background: var(--bg); }
.figures div:nth-child(2) dt::before { background: var(--pink); }
.figures div:nth-child(3) { border-top: 1px solid #444; padding-top: 10px; }

.net { margin: 28px 0; }
.net p:first-child { font-weight: 300; }
.net strong { font-family: var(--num); font-size: 30px; font-weight: 600; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; margin-right: 4px; }
.small { font-size: 13px; font-weight: 300; opacity: 0.75; margin-top: 4px; }

.verdict { padding: 20px 0; border-top: 1px solid currentColor; border-bottom: 1px solid currentColor; margin-bottom: 16px; }
.verdict-title { font-family: var(--num); font-size: 30px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; margin-bottom: 6px; }
.verdict p:last-child { font-size: 14px; font-weight: 300; }
.verdict[data-v="yes"] .verdict-title,
.verdict[data-v="good"] .verdict-title { color: var(--pink); }
.verdict[data-v="no"] .verdict-title { text-decoration: line-through; text-decoration-color: var(--pink); text-decoration-thickness: 3px; }

.partner-says { margin: 4px 0 18px; padding-left: 16px; border-left: 3px solid var(--pink); }
.partner-label { font-size: 11px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; opacity: 0.7; }
.partner-says blockquote { font-family: var(--num); font-size: 19px; font-weight: 500; letter-spacing: -0.01em; line-height: 1.35; margin: 8px 0; }
.partner-final { font-size: 14px; font-weight: 500; }

.warn { font-size: 13px; font-weight: 300; border-left: 3px solid var(--pink); padding: 2px 0 2px 12px; margin-bottom: 14px; }
.disclaimer { font-size: 10px; font-weight: 500; color: var(--ink-soft); margin-top: 16px; line-height: 1.8; }

/* Dark mode: the card becomes a white block, pink deepened for contrast on white */
@media (prefers-color-scheme: dark) {
  .card { background: #f7f7f7; color: #0a0a0a; }
  .split { background: #c4c4c4; }
  .split-cost, .figures div:nth-child(1) dt::before { background: #0a0a0a; }
  .split-back, .figures div:nth-child(2) dt::before { background: var(--pink-on-light); }
  .figures div:nth-child(3) { border-top-color: #c4c4c4; }
  .big small, .verdict[data-v="yes"] .verdict-title, .verdict[data-v="good"] .verdict-title { color: var(--pink-on-light); }
}

@media (prefers-reduced-motion: reduce) {
  .snap.busy .snap-thumbs img { animation: none; }
  .snap-btn, .split div { transition: none; }
}
