/* Sunday Matchmaker
   Palette: rosewood night, blush, marigold. Type: Big Shoulders Display (clock + headings), Figtree (everything else). */

:root {
  --night: #2a1420;
  --night-2: #361a29;
  --night-3: #46243a;
  --line: #5c3149;
  --blush: #f2c4ce;
  --paper: #fbeff2;
  --muted: #c49aab;
  --marigold: #f6b23c;
  --marigold-hi: #ffc760;
  --danger: #ff8f8f;
  --ok: #9fe0b6;

  --display: 'Big Shoulders Display', 'Arial Narrow', sans-serif;
  --body: 'Figtree', system-ui, sans-serif;
  --script: 'La Belle Aurore', cursive;

  --r-panel: 18px;
  --r-field: 12px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--night);
  color: var(--paper);
  font: 400 1rem/1.6 var(--body);
  min-height: 100dvh;
}
img { max-width: 100%; display: block; }
a { color: var(--blush); }
:focus-visible { outline: 3px solid var(--marigold); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1.02; margin: 0 0 .5rem; letter-spacing: .005em; }
h1 { font-size: clamp(2.6rem, 7vw, 4.2rem); }
h2 { font-size: clamp(2rem, 5vw, 3rem); }
h3 { font-size: 1.6rem; }
p { margin: 0 0 1rem; max-width: 62ch; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }

/* ── Top bar ── */
.topbar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.1rem clamp(1.1rem, 4vw, 2.5rem);
}
.brand { font-family: var(--display); font-weight: 800; font-size: 1.35rem; color: var(--paper); text-decoration: none; letter-spacing: .02em; }
.topbar a:not(.brand), .linkbtn { color: var(--muted); font-size: .95rem; text-decoration: none; background: none; border: 0; cursor: pointer; font-family: inherit; padding: .25rem; }
.topbar a:not(.brand):hover, .linkbtn:hover { color: var(--paper); }
.topbar-links { display: flex; gap: 1rem; align-items: center; }
.topbar-links [hidden] { display: none; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font: 700 1.05rem/1 var(--body);
  padding: 1.05rem 1.9rem; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--marigold); color: var(--night); text-decoration: none;
  transition: background .15s, transform .1s;
}
.btn:hover { background: var(--marigold-hi); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn.ghost { background: transparent; color: var(--paper); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn.ghost:hover { box-shadow: inset 0 0 0 1.5px var(--blush); }
.btn.small { padding: .7rem 1.2rem; font-size: .95rem; }
.btn.big { padding: 1.3rem 2.6rem; font-size: 1.2rem; }

/* ── Countdown clock (the hero) ── */
.clock { display: flex; justify-content: center; gap: clamp(.4rem, 2.5vw, 1.6rem); font-variant-numeric: tabular-nums; }
.clock .unit { display: flex; flex-direction: column; align-items: center; }
.clock .num {
  font-family: var(--display); font-weight: 800; color: var(--blush);
  font-size: clamp(4.4rem, 17vw, 12.5rem); line-height: .86; letter-spacing: -.01em;
}
.clock .lbl { color: var(--muted); font-size: clamp(.8rem, 1.6vw, 1rem); margin-top: .5rem; }
.clock .colon { font-family: var(--display); font-weight: 800; color: var(--line); font-size: clamp(3rem, 12vw, 9rem); line-height: .95; }
.clock.mini .num { font-size: clamp(3rem, 11vw, 6rem); }
.clock.mini .colon { font-size: clamp(2.2rem, 8vw, 4.4rem); }

/* ── Landing ── */
.hero { text-align: center; padding: clamp(2rem, 7vh, 5rem) 1.2rem clamp(3rem, 8vh, 6rem); }
.hero .lead { font-size: clamp(1.1rem, 2.2vw, 1.3rem); color: var(--paper); margin: 0 auto 1.6rem; }
.hero .when { color: var(--muted); margin: 1.4rem auto 2.4rem; }
.hero .rotator { min-height: 1.6em; margin: 1rem auto .4rem; color: var(--blush); font-weight: 600; }
.hero .application-note { margin: 1.2rem auto 0; max-width: 46ch; color: var(--muted); font-size: .95rem; }
.reveal-load .clock .unit { animation: rise .9s cubic-bezier(.2,.7,.1,1) both; }
.reveal-load .clock .unit:nth-child(3) { animation-delay: .08s; }
.reveal-load .clock .unit:nth-child(5) { animation-delay: .16s; }
.reveal-load .clock .unit:nth-child(7) { animation-delay: .24s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.band { padding: clamp(3rem, 8vw, 5.5rem) clamp(1.2rem, 5vw, 3rem); border-top: 1px solid var(--night-3); }
.band .inner { max-width: 1040px; margin: 0 auto; }
.steps { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); counter-reset: step; }
.steps li { counter-increment: step; }
.steps li::before { content: counter(step); display: block; font-family: var(--display); font-weight: 800; font-size: 3.2rem; color: var(--marigold); line-height: 1; margin-bottom: .6rem; }
.steps h3 { font-size: 1.45rem; }
.steps p { color: var(--muted); }
.statement { font-family: var(--display); font-weight: 800; font-size: clamp(2.2rem, 6vw, 4rem); line-height: 1.02; max-width: 18ch; margin: 0 0 1.2rem; }
.split { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); align-items: end; }
.price { font-family: var(--display); font-weight: 800; font-size: clamp(3.5rem, 9vw, 6rem); color: var(--blush); line-height: .9; }
.price span { font-size: .38em; color: var(--muted); }
footer { padding: 2.5rem clamp(1.2rem, 5vw, 3rem); color: var(--muted); font-size: .875rem; border-top: 1px solid var(--night-3); display: flex; gap: 1.5rem; flex-wrap: wrap; }
footer a { color: var(--muted); }

/* ── Matchmaker's note (the human signature) ── */
.note {
  position: relative; max-width: 34rem;
  background: var(--paper); color: var(--night);
  border-radius: 6px; padding: 1.3rem 1.5rem 1.2rem;
  box-shadow: 0 22px 44px -20px rgba(0,0,0,.7);
  transform: rotate(-1.2deg);
}
.note.flat { transform: none; }
.note-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: .8rem; color: #85536a; font-size: .85rem; font-weight: 600; }
.seal { flex: none; width: 2.5rem; height: 2.5rem; border-radius: 50%; background: var(--marigold); color: var(--night); display: grid; place-items: center; font: 800 1rem/1 var(--display); box-shadow: inset 0 0 0 3px rgba(42,20,32,.12); }
.note p { color: var(--night); font-size: 1.05rem; line-height: 1.55; margin: 0 0 .7rem; max-width: none; }
.note .sig { font-family: var(--script); font-size: 1.8rem; line-height: 1.1; color: #8a2f4f; margin: .3rem 0 0; }
.note .sig small { display: block; font: 500 .8rem/1.4 var(--body); color: #85536a; margin-top: .1rem; }
.note.compact { padding: 1rem 1.2rem; }
.note.compact p { font-size: .98rem; }
.note.compact .sig { font-size: 1.5rem; }

/* Night-out light behind the clock */
.hero.glow { background:
  radial-gradient(55% 45% at 50% 0%, rgba(246,178,60,.17), transparent 72%),
  radial-gradient(40% 35% at 85% 12%, rgba(242,196,206,.10), transparent 70%); }
.promise { font-family: var(--display); font-weight: 800; font-size: clamp(1.6rem, 4vw, 2.2rem); line-height: 1.05; color: var(--paper); margin: 1.6rem auto .4rem; max-width: 22ch; }

/* Match arrival */
.arrival { text-align: center; padding: 1.5rem 0 2rem; }
.arrival h1 { font-size: clamp(3.2rem, 13vw, 5.5rem); margin-bottom: .4rem; }
.arrival .note { margin: 2rem auto 2.2rem; text-align: left; }

/* ── Forms ── */
.shell { max-width: 640px; margin: 0 auto; padding: 0 1.2rem 4rem; }
.progress { height: 6px; background: var(--night-3); border-radius: 999px; overflow: hidden; margin: .5rem 0 2.4rem; }
.progress > i { display: block; height: 100%; background: var(--marigold); border-radius: inherit; transition: width .35s ease; }
.step { animation: stepIn .35s ease both; }
@keyframes stepIn { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
.step h1 { margin-bottom: .8rem; }
.step .hint { color: var(--muted); margin-bottom: 1.8rem; }
label.field { display: block; margin-bottom: 1.3rem; }
label.field > span, .group-label { display: block; font-weight: 600; margin-bottom: .45rem; }
input[type=text], input[type=email], input[type=tel], input[type=date], input[type=number], input[type=datetime-local], select, textarea {
  width: 100%; font: inherit; color: var(--paper);
  background: var(--night-2); border: 1.5px solid var(--line); border-radius: var(--r-field);
  padding: .9rem 1rem;
}
input::placeholder, textarea::placeholder { color: #9b7385; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--marigold); }
textarea { min-height: 140px; resize: vertical; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 22px) 52%, calc(100% - 16px) 52%; background-size: 6px 6px; background-repeat: no-repeat; }
input[type=date]::-webkit-calendar-picker-indicator, input[type=datetime-local]::-webkit-calendar-picker-indicator { filter: invert(.8); }
.row { display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; }
.actions { display: flex; gap: .8rem; align-items: center; margin-top: 2rem; flex-wrap: wrap; }
.error { color: var(--danger); min-height: 1.4em; margin: .6rem 0 0; font-weight: 500; }
.count { color: var(--muted); font-size: .85rem; text-align: right; margin-top: .3rem; }

.chips { display: flex; flex-wrap: wrap; gap: .55rem; }
.chip {
  font: 500 .95rem/1 var(--body); color: var(--paper); cursor: pointer;
  padding: .7rem 1rem; border-radius: 999px; border: 1.5px solid var(--line); background: transparent;
}
.chip:hover { border-color: var(--blush); }
.chip[aria-pressed="true"] { background: var(--blush); border-color: var(--blush); color: var(--night); font-weight: 700; }

.photo-pick { display: flex; gap: 1rem; align-items: center; }
.photo-pick .preview { width: 84px; height: 84px; border-radius: 50%; background: var(--night-3) center/cover; border: 1.5px dashed var(--line); flex: none; }

/* Stats interstitial */
.stat { padding-top: 1rem; }
.stat .figure { font-family: var(--display); font-weight: 800; color: var(--marigold); font-size: clamp(6rem, 26vw, 11rem); line-height: .85; margin-bottom: 1rem; }
.stat .claim { font-size: clamp(1.3rem, 3.4vw, 1.7rem); line-height: 1.35; font-weight: 600; max-width: 28ch; }
.stat .source { color: var(--muted); font-size: .8rem; margin-top: -.4rem; }
.stat .lesson { border-left: 3px solid var(--blush); padding-left: 1rem; margin-top: 2rem; }

/* ── Member app ── */
.panel { background: var(--night-2); border: 1px solid var(--night-3); border-radius: var(--r-panel); padding: 1.4rem; margin-bottom: 1.2rem; }
.banner { border-radius: var(--r-field); padding: 1rem 1.2rem; margin: 0 0 1.4rem; background: var(--night-3); }
.banner.warn { box-shadow: inset 4px 0 0 var(--marigold); }
.banner.good { box-shadow: inset 4px 0 0 var(--ok); }
.dash-hero { text-align: center; padding: 1.5rem 0 2rem; }
.credits { display: inline-flex; align-items: baseline; gap: .5rem; margin: 1.6rem 0 1rem; }
.credits b { font-family: var(--display); font-size: 2.6rem; color: var(--blush); line-height: 1; }
.list { list-style: none; margin: 0; padding: 0; }
.list li a, .list li > div { display: flex; justify-content: space-between; gap: 1rem; padding: 1rem .2rem; border-bottom: 1px solid var(--night-3); color: var(--paper); text-decoration: none; }
.list li a:hover { color: var(--blush); }
.list li .tag { align-self: center; flex: none; }
.tag { font-size: .8rem; padding: .25rem .6rem; border-radius: 999px; background: var(--night-3); color: var(--muted); white-space: nowrap; }
.tag.live { background: var(--marigold); color: var(--night); font-weight: 700; }
.tag.met { background: var(--blush); color: var(--night); font-weight: 700; }

/* Match screen */
.match-head { position: sticky; top: 0; z-index: 5; background: var(--night); padding: .8rem 0 1rem; border-bottom: 1px solid var(--night-3); margin-bottom: 1rem; }
.match-head .timer { font-family: var(--display); font-weight: 800; font-size: clamp(2.2rem, 8vw, 3.2rem); color: var(--blush); line-height: 1; font-variant-numeric: tabular-nums; }
.unlock { margin-top: .8rem; }
.unlock .bar { height: 8px; background: var(--night-3); border-radius: 999px; overflow: hidden; }
.unlock .bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--blush), var(--marigold)); transition: width .4s ease; }
.unlock small { color: var(--muted); display: block; margin-top: .35rem; }

.prompt { border: 1.5px dashed var(--line); border-radius: var(--r-panel); padding: 1rem 1.2rem; margin-bottom: 1rem; }
.prompt b { color: var(--blush); }
.chat { display: flex; flex-direction: column; gap: .5rem; min-height: 200px; padding-bottom: 1rem; }
.bubble { max-width: 78%; padding: .7rem 1rem; border-radius: 18px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.bubble.mine { align-self: flex-end; background: var(--blush); color: var(--night); border-bottom-right-radius: 6px; }
.bubble.theirs { align-self: flex-start; background: var(--night-3); border-bottom-left-radius: 6px; }
.bubble time { display: block; font-size: .7rem; opacity: .6; margin-top: .2rem; }
.composer { position: sticky; bottom: 0; background: var(--night); padding: .8rem 0 1rem; display: flex; gap: .6rem; border-top: 1px solid var(--night-3); }
.composer textarea { min-height: 52px; height: 52px; }

.profile-card { display: grid; grid-template-columns: 96px 1fr; gap: 1.1rem; align-items: start; }
.profile-card .avatar { width: 96px; height: 96px; border-radius: 50%; background: var(--night-3) center/cover; }
.profile-card h3 { margin: 0; }
.stars { display: flex; gap: .3rem; }
.stars button { font-size: 2rem; line-height: 1; background: none; border: 0; color: var(--line); cursor: pointer; padding: .1rem; }
.stars button[aria-pressed="true"] { color: var(--marigold); }
.checkline { display: flex; gap: .7rem; align-items: center; font-weight: 600; margin: .5rem 0 1rem; }
.checkline input { width: 1.4rem; height: 1.4rem; accent-color: var(--marigold); }

/* Admin */
.admin-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.person { background: var(--night-2); border: 1.5px solid var(--night-3); border-radius: var(--r-panel); padding: 1rem; font-size: .92rem; }
.person.picked { border-color: var(--marigold); }
.person h3 { font-size: 1.4rem; margin-bottom: .2rem; }
.person dl { margin: .6rem 0 0; display: grid; grid-template-columns: auto 1fr; gap: .2rem .7rem; }
.person dt { color: var(--muted); }
.person dd { margin: 0; }
.adminbar { position: sticky; bottom: 0; background: var(--night); border-top: 1px solid var(--night-3); padding: 1rem 0; margin-top: 1rem; }

@media (max-width: 560px) {
  .row { grid-template-columns: 1fr; }
  .clock .lbl { font-size: .72rem; }
  .profile-card { grid-template-columns: 72px 1fr; }
  .profile-card .avatar { width: 72px; height: 72px; }
}

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


/* ── v2 visual system ("After") ─────────────────────────────
   Scoped under .v2 so the prototype can flip before/after.
   Night (dark) for anticipation: landing hero + match arrival.
   Petal (light) for the screens people spend time in.
   Gloock for headings, Big Shoulders for numbers only, Figtree for text.
   Marigold = actions only. Rose = romance signals (countdown, your messages, selections, progress). */

.v2 { --display2: 'Gloock', Georgia, serif; }

.v2 .theme-dark {
  --night: #2a1420; --night-2: #361a29; --night-3: #46243a;
  --line: #8a5a72; --blush: #f2c4ce; --paper: #fbeff2; --muted: #c9a1b1;
  --rose: #f2c4ce; --rose-ink: #2a1420; --hair: #4d2a3f;
}
.v2 .theme-light {
  --night: #fdf1f4; --night-2: #ffffff; --night-3: #f6e1e8;
  --line: #a97a8d; --blush: #b93a63; --paper: #2a1420; --muted: #76505f;
  --rose: #b93a63; --rose-ink: #ffffff; --hair: #efd6df;
}
.v2 .theme-dark, .v2 .theme-light { background: var(--night); color: var(--paper); }
.v2 #screen > .theme-dark, .v2 #screen > .theme-light { min-height: 100dvh; }

/* Type: one voice for words, one for numbers */
.v2 h1, .v2 h2, .v2 h3, .v2 .statement, .v2 .promise, .v2 .brand {
  font-family: var(--display2); font-weight: 400; letter-spacing: -.012em;
}
.v2 h1 { font-size: clamp(2.3rem, 6vw, 3.5rem); line-height: 1.06; }
.v2 h2 { font-size: clamp(1.9rem, 4.4vw, 2.6rem); line-height: 1.1; }
.v2 h3 { font-size: 1.4rem; line-height: 1.18; }
.v2 .brand { font-size: 1.3rem; letter-spacing: 0; }
.v2 .statement { font-size: clamp(2rem, 5vw, 3.1rem); line-height: 1.1; max-width: 17ch; }
.v2 .promise { font-size: clamp(1.45rem, 3.6vw, 1.95rem); line-height: 1.18; max-width: 22ch; }
.v2 .arrival h1 { font-size: clamp(2.7rem, 11vw, 4.4rem); }
.v2 .stat .claim { font-weight: 500; }

/* Colour roles */
.v2 .btn { color: #2a1420; }
.v2 .btn.ghost { color: var(--paper); box-shadow: inset 0 0 0 1.5px var(--line); }
.v2 .btn.ghost:hover { box-shadow: inset 0 0 0 1.5px var(--paper); }
.v2 .steps li::before, .v2 .stat .figure { color: var(--rose); }
.v2 .chip { border-color: var(--line); }
.v2 .chip[aria-pressed="true"] { background: var(--rose); border-color: var(--rose); color: var(--rose-ink); }
.v2 .bubble.mine { background: var(--rose); color: var(--rose-ink); }
.v2 .tag.live { background: var(--rose); color: var(--rose-ink); }
.v2 .tag.met { background: transparent; color: var(--paper); box-shadow: inset 0 0 0 1.5px var(--line); }
.v2 .progress > i, .v2 .unlock .bar i { background: var(--rose); }
.v2 .stars button { color: var(--hair); }
.v2 .stars button[aria-pressed="true"] { color: var(--rose); }
.v2 input::placeholder, .v2 textarea::placeholder { color: var(--muted); opacity: .8; }
.v2 .checkline input { accent-color: var(--rose); }

/* Light-surface details */
.v2 .theme-light .panel, .v2 .theme-light .person { border-color: var(--hair); box-shadow: 0 1px 2px rgba(90, 30, 60, .05); }
.v2 .theme-light .person.picked { border-color: var(--rose); box-shadow: 0 0 0 1px var(--rose); }
.v2 .theme-light .bubble.theirs { background: #fff; border: 1px solid var(--hair); }
.v2 .theme-light .prompt { border-color: #d9b3c1; }
.v2 .theme-light .band, .v2 .theme-light footer, .v2 .theme-light .match-head, .v2 .theme-light .composer, .v2 .theme-light .adminbar,
.v2 .theme-light .list li a, .v2 .theme-light .list li > div { border-color: var(--hair); }
.v2 .theme-light .clock .colon { color: #e3bfcd; }
.v2 .theme-light .banner { background: #fff; border: 1px solid var(--hair); }
.v2 .theme-light .progress, .v2 .theme-light .unlock .bar { background: var(--night-3); }
.v2 .theme-dark .band, .v2 .theme-dark .match-head { border-color: var(--hair); }

/* Back is a text link, so the next step is obvious */
.v2 .linkback {
  background: none; border: 0; color: var(--muted); cursor: pointer;
  font: 600 1rem/1 var(--body); padding: .6rem .3rem;
  text-decoration: underline; text-underline-offset: 4px;
}
.v2 .linkback:hover { color: var(--paper); }

/* The matchmaker's note: white stationery with a wax seal */
.v2 .note { background: #fff; color: #2a1420; }
.v2 .note p { color: #2a1420; }
.v2 .theme-light .note { border: 1px solid var(--hair); box-shadow: 0 20px 40px -24px rgba(90, 30, 60, .5); }
.v2 .note-head { color: #8b5a6f; }
.v2 .seal {
  width: 2.6rem; height: 2.6rem; border-radius: 52% 47% 50% 46%;
  background: radial-gradient(circle at 36% 30%, #cf5a84, #8a2f4f 68%, #6e2240);
  color: #fbe3ea; font: 400 .78rem/1 var(--display2); letter-spacing: .04em;
  box-shadow: 0 0 0 3px rgba(138, 47, 79, .16), inset 0 -2px 5px rgba(0, 0, 0, .3);
}
.v2 .hero-note { max-width: 25rem; margin: 2.4rem auto 0; text-align: left; }
.v2 .hero-note .note { transform: rotate(-1.6deg); }

/* Folded note in the chat */
.v2 .note-fold { margin: 0 0 1rem; }
.v2 .note-fold summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: .7rem;
  padding: .6rem 1rem .6rem .6rem; border-radius: 999px; background: var(--night-2);
  border: 1px solid var(--hair); font-weight: 600; width: fit-content; max-width: 100%;
}
.v2 .note-fold summary::-webkit-details-marker { display: none; }
.v2 .note-fold summary .seal { width: 1.9rem; height: 1.9rem; font-size: .6rem; }
.v2 .note-fold summary .chev { color: var(--muted); font-weight: 500; }
.v2 .note-fold[open] summary { margin-bottom: .8rem; }

/* Dashboard: what matters now goes first */
.v2 .match-now { padding: 1.6rem; }
.v2 .match-now h2 { margin: .1rem 0 .3rem; }
.v2 .match-now .timer { font-family: var(--display); font-weight: 800; font-size: 2.4rem; color: var(--rose); line-height: 1; font-variant-numeric: tabular-nums; margin: .4rem 0 1.2rem; }
.v2 .dash-hero.secondary { padding-top: .6rem; }
.v2 .dash-hero.secondary .clock .num { font-size: clamp(2.4rem, 9vw, 4rem); }
.v2 .dash-hero.secondary .clock .colon { font-size: clamp(1.8rem, 6vw, 3rem); }

/* Landing: one idea per band */
.v2 .stack { max-width: 42rem; }

.v2 .hero.glow.theme-dark { background:
  radial-gradient(55% 45% at 50% 0%, rgba(246,178,60,.17), transparent 72%),
  radial-gradient(40% 35% at 85% 12%, rgba(242,196,206,.10), transparent 70%),
  var(--night); }

body.v2.page-light { background: #fdf1f4; }
body.v2.page-dark { background: #2a1420; }

/* ── Landing v2: photo-led ─────────────────────────────── */
/* Photo placeholders: clearly marked, replace with real photography */
.v2 .ph {
  position: relative; overflow: hidden; border-radius: 14px;
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,.05) 0 12px, transparent 12px 24px),
    linear-gradient(160deg, #6b3a4f, #3a1d2c 60%, #2a1420);
  border: 2px dashed rgba(242,196,206,.55);
  display: flex; align-items: flex-end;
}
.v2 .theme-light .ph {
  background:
    repeating-linear-gradient(135deg, rgba(185,58,99,.07) 0 12px, transparent 12px 24px),
    linear-gradient(160deg, #f3d6df, #e9c0ce);
  border-color: rgba(185,58,99,.45);
}
.v2 .ph-label {
  margin: .7rem; padding: .45rem .7rem; border-radius: 8px;
  background: rgba(20,8,14,.78); color: #fbeff2;
  font: 600 .75rem/1.35 var(--body); max-width: calc(100% - 1.4rem);
}
.v2 .ph-label b { color: var(--marigold); }

/* Hero over a full-bleed photo */
.v2 .hero2 { position: relative; min-height: 92svh; display: flex; flex-direction: column; }
.v2 .hero2 .ph.bg { position: absolute; inset: 0; border-radius: 0; border-width: 0 0 2px; }
.v2 .hero2 .ph.bg::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(70% 60% at 50% 45%, rgba(42,20,32,.35), rgba(42,20,32,.85));
}
.v2 .hero2 .ph.bg .ph-label { position: absolute; right: 0; bottom: 0; z-index: 1; }
.v2 .hero2 .topbar, .v2 .hero2 .hero2-body { position: relative; z-index: 2; }
.v2 .hero2-body { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 1rem 1.2rem 4.5rem; }
.v2 .hero2 h1 { font-size: clamp(2.4rem, 7vw, 4.4rem); line-height: 1.04; max-width: 15ch; margin: 0 auto 2rem; }
.v2 .hero2 .clock .num { font-size: clamp(3.6rem, 13vw, 9rem); }
.v2 .hero2 .clock .colon { font-size: clamp(2.6rem, 9vw, 6.4rem); }
.v2 .hero2 .when { margin: 1rem auto 2rem; color: var(--paper); opacity: .85; }
.v2 .hero2 .fine { margin: 1.1rem auto 0; color: var(--muted); font-size: .92rem; }

/* Meet your matchmaker */
.v2 .mm { display: grid; gap: clamp(1.5rem, 4vw, 3.5rem); grid-template-columns: minmax(220px, 380px) 1fr; align-items: center; }
.v2 .mm .ph { aspect-ratio: 4 / 5; }
.v2 .mm .letter p { font-size: 1.15rem; line-height: 1.6; max-width: 34ch; }
.v2 .mm .letter .sig { font-family: var(--script); font-size: 2.3rem; color: var(--rose); line-height: 1; margin: .4rem 0 0; }
.v2 .mm .letter .sig small { display: block; font: 500 .85rem/1.4 var(--body); color: var(--muted); margin-top: .3rem; }

/* How it works, told in photos */
.v2 .story { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: 1.6rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.v2 .story .ph { aspect-ratio: 4 / 3; margin-bottom: 1rem; }
.v2 .story h3 { margin-bottom: .3rem; }
.v2 .story p { color: var(--muted); margin: 0; }
.v2 .story .n { font: 800 1rem/1 var(--display); color: var(--rose); display: block; margin-bottom: .35rem; }

.v2 .note-demo { display: grid; gap: 2rem; grid-template-columns: 1fr minmax(260px, 420px); align-items: center; }
.v2 .closing { text-align: center; }
.v2 .closing .stack { margin: 0 auto; }
.v2 .closing p { margin-left: auto; margin-right: auto; }

@media (max-width: 720px) {
  .v2 .mm, .v2 .note-demo { grid-template-columns: 1fr; }
  .v2 .mm .ph { max-width: 320px; }
}

/* ── Logo ── */
.v2 .brand { display: inline-flex; align-items: center; gap: .55rem; }
.v2 .brand-mark { display: inline-flex; color: currentColor; }
.v2 .brand-mark svg { height: 1.05em; width: auto; }
.v2 .seal-img { width: 2.9rem; height: 2.9rem; flex: none; }
.v2 .note-fold summary .seal-img { width: 2rem; height: 2rem; }

/* Brand sheet */
.v2 .brand-sheet h2 { margin-top: 3rem; }
.v2 .bs-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); margin-top: 1rem; }
.v2 .bs-tile { margin: 0; border-radius: 16px; padding: 2rem 1.6rem 1rem; display: flex; flex-direction: column; justify-content: space-between; min-height: 220px; }
.v2 .bs-tile.wide { grid-column: span 1; }
.v2 .bs-tile.light { background: #fff; border: 1px solid var(--hair); }
.v2 .bs-tile.dark { background: #2a1420; color: #fbeff2; }
.v2 .bs-art svg { width: 100%; height: auto; max-height: 180px; display: block; }
.v2 .bs-tile figcaption { font-size: .85rem; color: var(--muted); margin-top: 1rem; }
.v2 .bs-tile.dark figcaption { color: #c9a1b1; }
.v2 .bs-row { display: flex; flex-wrap: wrap; gap: 1.6rem; align-items: flex-end; padding: 2rem; border-radius: 16px; background: #fff; border: 1px solid var(--hair); margin-top: 1rem; }
.v2 .sms { background: #3a1f2e; border-radius: 18px; padding: .9rem 1.1rem; font-size: .95rem; line-height: 1.45; max-width: 30ch; }
.v2 .bs-rules { padding-left: 1.2rem; line-height: 1.8; }
.v2 .brand-mark svg { height: 1.5em; }
.v2 .seal-img { width: 3.1rem; height: 3.1rem; }

/* Countdown set in Gloock (comparison) */
.v2 .num-serif .clock .num { font-family: var(--display2); font-weight: 400; letter-spacing: -.03em; line-height: .9; }
.v2 .num-serif .hero2 .clock .num { font-size: clamp(3.2rem, 12vw, 8.4rem); }
.v2 .num-serif .clock .colon { font-family: var(--display2); font-weight: 400; }
.v2 .num-serif .clock .lbl { margin-top: .7rem; }

/* ── Landing v4 ───────────────────────────────────────── */
.v2 .hero2 .sub { font-size: clamp(1.05rem, 2.4vw, 1.25rem); line-height: 1.5; max-width: 36ch; margin: -1rem auto 2.2rem; color: var(--paper); opacity: .92; }
.v2 .hero2 .clock-label { color: var(--muted); font-size: .95rem; margin: 0 auto .6rem; }
.v2 .hero2 .when { margin: .9rem auto 1.8rem; }
.v2 .num-serif .hero2 .clock .num { font-size: clamp(3.8rem, 15vw, 8.4rem); }
.v2 .num-serif .hero2 .clock .colon { font-size: clamp(2.6rem, 10vw, 6rem); }

.v2 .team { display: grid; gap: clamp(2rem, 5vw, 4rem); grid-template-columns: 1fr minmax(280px, 420px); align-items: center; }
.v2 .team p { font-size: 1.1rem; max-width: 40ch; }

.v2 .story.compact .ph { aspect-ratio: 16 / 10; }

.v2 .why { display: grid; gap: 2rem 2.5rem; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); margin-top: 2rem; }
.v2 .why h3 { font-size: 1.35rem; margin-bottom: .35rem; }
.v2 .why p { color: var(--muted); margin: 0; }
.v2 .why .mark { display: block; width: 2rem; height: 2rem; margin-bottom: .8rem; color: var(--rose); }
.v2 .why .mark svg { width: 100%; height: 100%; }

.v2 .fit { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin-top: 1.8rem; }
.v2 .fit > div { background: var(--night-2); border: 1px solid var(--hair); border-radius: 16px; padding: 1.4rem 1.5rem; }
.v2 .fit h3 { font-size: 1.25rem; }
.v2 .fit ul { margin: .6rem 0 0; padding-left: 1.1rem; line-height: 1.85; }
.v2 .fit .no { color: var(--muted); }

.v2 .plan { max-width: 30rem; margin: 2rem auto 0; background: var(--night-2); border: 1px solid var(--hair); border-radius: 20px; padding: 2rem 1.8rem; text-align: left; box-shadow: 0 24px 50px -30px rgba(90,30,60,.45); }
.v2 .plan .price { margin-bottom: .3rem; }
.v2 .plan ul { list-style: none; padding: 0; margin: 1.2rem 0 1.6rem; }
.v2 .plan li { padding: .55rem 0 .55rem 1.8rem; border-top: 1px solid var(--hair); position: relative; }
.v2 .plan li::before { content: ''; position: absolute; left: .2rem; top: 1.05rem; width: .7rem; height: .4rem; border-left: 2px solid var(--rose); border-bottom: 2px solid var(--rose); transform: rotate(-45deg); }
.v2 .plan .btn { width: 100%; }

.v2 .faq { max-width: 46rem; margin-top: 1.6rem; }
.v2 .faq details { border-top: 1px solid var(--hair); }
.v2 .faq details:last-child { border-bottom: 1px solid var(--hair); }
.v2 .faq summary { list-style: none; cursor: pointer; padding: 1.15rem 2.5rem 1.15rem 0; font-weight: 600; font-size: 1.08rem; position: relative; }
.v2 .faq summary::-webkit-details-marker { display: none; }
.v2 .faq summary::after { content: '+'; position: absolute; right: .3rem; top: .9rem; font: 400 1.6rem/1 var(--body); color: var(--rose); transition: transform .2s; }
.v2 .faq details[open] summary::after { transform: rotate(45deg); }
.v2 .faq details p { margin: 0 0 1.2rem; color: var(--muted); max-width: 60ch; }

.v2 .final { text-align: center; }
.v2 .final h2 { margin-bottom: 1.4rem; }
.v2 .final .clock .num { font-size: clamp(2.6rem, 9vw, 4.6rem); }
.v2 .final .clock .colon { font-size: clamp(2rem, 6vw, 3.4rem); }
.v2 .final .btn { margin-top: 1.8rem; }

.v2 footer .links { display: flex; gap: 1.4rem; flex-wrap: wrap; }

@media (max-width: 720px) {
  .v2 .team { grid-template-columns: 1fr; }
  .v2 .story.compact { grid-template-columns: 1fr; }
}
.v2 .hero2 .clock-label { color: var(--paper); opacity: .85; }
.v2 .why { grid-template-columns: repeat(auto-fit, minmax(175px, 1fr)); }

/* Hero photo: Pellegrini's at night */
.v2 .hero2 .hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 66%; }
.v2 .hero2 .hero-shade { position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(42,20,32,.72) 0%, rgba(42,20,32,.55) 40%, rgba(42,20,32,.82) 100%),
    radial-gradient(70% 55% at 50% 45%, rgba(42,20,32,.15), rgba(42,20,32,.6)); }
@media (min-width: 900px) { .v2 .hero2 .hero-photo { object-position: 50% 70%; } }

/* Steps without photos */
.v2 .story.text li { border-top: 1px solid var(--hair); padding-top: 1.2rem; }
.v2 .story.text .n { font: 400 2.6rem/1 var(--display2); color: var(--rose); margin-bottom: .6rem; }
.v2 .hero2 .hero-shade { background:
    linear-gradient(180deg, rgba(42,20,32,.7) 0%, rgba(42,20,32,.42) 42%, rgba(42,20,32,.85) 100%); }
@media (min-width: 900px) {
  .v2 .hero2 { background: var(--night); }
  .v2 .hero2 .hero-photo { left: auto; right: 0; width: 48%; object-position: 50% 62%; }
  .v2 .hero2 .hero-shade { left: auto; right: 0; width: 48%;
    background:
      linear-gradient(90deg, #2a1420 0%, rgba(42,20,32,.55) 18%, rgba(42,20,32,.1) 45%, rgba(42,20,32,.25) 100%),
      linear-gradient(180deg, rgba(42,20,32,.35) 0%, transparent 25%, transparent 75%, rgba(42,20,32,.5) 100%); }
  .v2 .hero2-body { padding-right: 48%; }
  .v2 .hero2 h1 { font-size: clamp(2.6rem, 4.6vw, 4rem); }
  .v2 .num-serif .hero2 .clock .num { font-size: clamp(3.4rem, 6.4vw, 6.2rem); }
  .v2 .num-serif .hero2 .clock .colon { font-size: clamp(2.4rem, 4.4vw, 4.2rem); }
}
@media (max-width: 899px) {
  .v2 .hero2 { min-height: 0; background: var(--night); }
  .v2 .hero2-body { justify-content: flex-start; padding: 1.4rem 1.2rem calc(86vw - 3rem); }
  .v2 .hero2 .hero-photo, .v2 .hero2 .hero-shade { top: auto; bottom: 0; height: 92vw; }
  .v2 .hero2 .hero-photo { object-position: 58% 60%; }
  .v2 .hero2 .hero-shade { background:
    linear-gradient(180deg, #2a1420 0%, rgba(42,20,32,.6) 22%, rgba(42,20,32,.08) 50%, rgba(42,20,32,.35) 100%); }
}

/* Why it's different: line icons beside headings */
.v2 .why > div { display: grid; grid-template-columns: 2.4rem 1fr; column-gap: 1rem; align-items: start; }
.v2 .why .ico { grid-row: span 2; width: 2.4rem; height: 2.4rem; border-radius: 50%; display: grid; place-items: center;
  background: rgba(242,196,206,.1); color: var(--rose); box-shadow: inset 0 0 0 1px rgba(242,196,206,.25); }
.v2 .why .ico svg { width: 1.3rem; height: 1.3rem; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.v2 .why h3 { margin: .35rem 0 .3rem; }
@media (max-width: 720px) {
  .v2 .why { gap: 1.6rem; }
  .v2 .team > div:last-child { padding: .4rem 0 !important; }
  .v2 .team .note { max-width: none; }
}
.v2 .team .note { margin: 0; }
.v2 .why { grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 2.2rem 3rem; }
.v2 .note-fold .note { margin: 0; max-width: none; }

/* ── Matchmaker console: suitability ── */
.v2 .fit-badge { display: inline-block; font: 700 .78rem/1 var(--body); padding: .4rem .65rem; border-radius: 999px; }
.v2 .fit-badge.strong { background: #e3f4e6; color: #1f6b35; }
.v2 .fit-badge.good { background: #eef6e6; color: #46661f; }
.v2 .fit-badge.possible { background: #f6efe2; color: #7a5a1a; }
.v2 .fit-badge.clash { background: #fbe3e6; color: #a1263f; }
.v2 .fit-badge.anchor { background: var(--rose); color: #fff; }
.v2 .person.fit-clash { opacity: .72; }
.v2 .fit-list { list-style: none; padding: 0; margin: .6rem 0 0; font-size: .88rem; line-height: 1.45; }
.v2 .fit-list li { padding: .15rem 0 .15rem 1.3rem; position: relative; }
.v2 .fit-list li::before { position: absolute; left: 0; top: .15rem; font-weight: 700; }
.v2 .fit-list .clash { color: #a1263f; } .v2 .fit-list .clash::before { content: '✕'; }
.v2 .fit-list .caution { color: #7a5a1a; } .v2 .fit-list .caution::before { content: '!'; left: .25rem; }
.v2 .fit-list .shared { color: #1f6b35; } .v2 .fit-list .shared::before { content: '✓'; }
.v2 .fit-list .check { color: var(--muted); } .v2 .fit-list .check::before { content: '?'; left: .15rem; }
.v2 .person.picked { border-color: var(--rose); box-shadow: 0 0 0 1px var(--rose); }
.v2 .builder { margin: 0 0 1.6rem; border-color: var(--rose); }
.v2 .pickbar { position: sticky; bottom: 0; z-index: 5; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  margin-top: 1rem; padding: .9rem 1.2rem; background: #fff; border: 1px solid var(--rose); border-radius: 14px; box-shadow: 0 10px 30px -18px rgba(90,30,60,.5); }
.v2 .panel.missed { border-color: var(--rose); }
.v2 .panel.missed h2 { margin-top: 0; }
/* "About you" step and revealed facts */
.v2 [hidden] { display: none !important; }
.v2 .step .q { margin-top: 1.2rem; }
.v2 .step .q .group-label .muted { font-weight: 400; }
.v2 .checklist { display: grid; gap: .1rem; }
.v2 .checklist .checkline { margin: 0; padding: .55rem 0; border-bottom: 1px solid rgba(90,30,60,.08); }
.v2 .facts { list-style: none; padding: 0; margin: 0 0 .8rem; display: flex; flex-wrap: wrap; gap: .35rem .9rem; font-size: .92rem; color: var(--ink-2, #5a3a4a); }
.v2 .facts li::before { content: "·"; margin-right: .45rem; color: var(--rose); }
.v2 .facts li:first-child::before { content: none; }
/* Age range: two handles on one track */
.v2 .agerange .group-label { display: flex; justify-content: space-between; align-items: baseline; }
.v2 .agerange output { font-family: 'Big Shoulders Display', sans-serif; font-weight: 700; font-size: 1.5rem; color: var(--rose); }
.v2 .dual { position: relative; height: 44px; margin-top: .3rem; }
.v2 .dual .track { position: absolute; left: 0; right: 0; top: 50%; height: 6px; margin-top: -3px; border-radius: 3px; background: rgba(90,30,60,.15); }
.v2 .dual .fill { position: absolute; top: 0; bottom: 0; border-radius: 3px; background: var(--rose); }
.v2 .dual input[type=range] { position: absolute; inset: 0; width: 100%; height: 44px; margin: 0; background: none; pointer-events: none; -webkit-appearance: none; appearance: none; z-index: 2; }
.v2 .dual input[type=range]::-webkit-slider-runnable-track { background: none; border: 0; }
.v2 .dual input[type=range]::-moz-range-track { background: none; border: 0; }
.v2 .dual input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; pointer-events: auto; width: 30px; height: 30px; border-radius: 50%; background: #fff; border: 2px solid var(--rose); box-shadow: 0 2px 8px -2px rgba(90,30,60,.4); cursor: grab; }
.v2 .dual input[type=range]::-moz-range-thumb { pointer-events: auto; width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 2px solid var(--rose); box-shadow: 0 2px 8px -2px rgba(90,30,60,.4); cursor: grab; }
.v2 .dual input[type=range]:focus-visible::-webkit-slider-thumb { outline: 3px solid var(--marigold, #f5b13d); outline-offset: 2px; }
.v2 .agerange .ends { display: flex; justify-content: space-between; margin-top: -.2rem; }
/* Revealed profile: photo first, then the facts */
.v2 .profile-card { display: block; padding: 0; overflow: hidden; }
.v2 .profile-card .avatar { width: 100%; height: auto; aspect-ratio: 4 / 5; max-height: 440px; border-radius: 0; background: var(--night-3, #f3dde5) center/cover; }
.v2 .profile-card .avatar.empty { display: grid; place-items: center; font-family: 'Gloock', serif; font-size: 5rem; color: var(--rose); background: linear-gradient(160deg, #f7e3ea, #efd3dd); }
.v2 .profile-card .who { padding: 1.2rem 1.3rem 0; }
.v2 .profile-card h3 { font-size: 1.7rem; margin: 0; }
.v2 .profile-card .job { margin: .25rem 0 0; font-weight: 500; }
.v2 .profile-card .where { margin: .2rem 0 0; }
.v2 .profile-card .facts { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem 1rem; margin: 1.1rem 1.3rem 0; padding: 1rem 0 0; border-top: 1px solid rgba(90,30,60,.1); font-size: .95rem; }
.v2 .profile-card .facts dt { font-size: .78rem; color: var(--ink-3, #8a6b79); margin: 0 0 .1rem; }
.v2 .profile-card .facts dd { margin: 0; }
.v2 .profile-card .chips.small { margin: 1.1rem 1.3rem 0; gap: .35rem; }
.v2 .profile-card .chips.small .chip { padding: .35rem .8rem; font-size: .88rem; }
.v2 .profile-card .aspire { margin: 1.1rem 1.3rem 1.3rem; }
.v2 .profile-card .aspire p { margin: .15rem 0 0; }
.v2 .profile-card > :last-child { margin-bottom: 1.3rem; }
@media (min-width: 700px) {
  .v2 .profile-card { display: grid; grid-template-columns: 260px 1fr; }
  .v2 .profile-card .avatar { grid-row: 1 / span 5; height: 100%; max-height: none; }
}
/* Photo step */
.v2 .filebtn { position: relative; cursor: pointer; display: inline-flex; }
.v2 .filebtn:focus-within { outline: 3px solid var(--marigold, #f5b13d); outline-offset: 2px; }
.v2 .photo-status { min-height: 1.3em; margin: .5rem 0 0; }
.v2 .photo-status .good { color: #2f7a4b; }
.v2 .photo-status .good::before { content: "✓ "; }
.v2 .photo-status .bad { color: var(--rose); }
/* Console photos */
.v2 .person .pc-photo { margin: -1rem -1rem .9rem; aspect-ratio: 4 / 3; background: #f3dde5; border-radius: calc(var(--r-panel) - 1.5px) calc(var(--r-panel) - 1.5px) 0 0; overflow: hidden; display: grid; place-items: center; }
.v2 .person .pc-photo a { display: block; width: 100%; height: 100%; background: center 25% / cover no-repeat; }
.v2 .person .pc-photo span { color: var(--rose); font-size: .9rem; }
.v2 .person .photo-asked { color: var(--rose); margin: -.4rem 0 .6rem; }
.v2 .person .askphoto { margin: -.4rem 0 .6rem; font-size: .88rem; }
.v2 .person .askphoto summary { cursor: pointer; color: var(--ink-3, #8a6b79); text-decoration: underline; }
.v2 .person .askphoto select { margin: .5rem 0; width: 100%; }
.v2 .note-tools { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; margin-top: 1rem; }
/* Verification selfie */
.v2 .verify-cam { position: relative; border-radius: 18px; overflow: hidden; background: #2a1520; aspect-ratio: 3 / 4; max-height: 56vh; margin: 1rem 0; }
.v2 .verify-cam video, .v2 .verify-cam img { width: 100%; height: 100%; object-fit: cover; display: block; }
.v2 .verify-cam video { transform: scaleX(-1); }
.v2 .verify-cam.off video { display: none; }
.v2 .verify-cam .pose { position: absolute; left: .8rem; right: .8rem; bottom: .8rem; margin: 0; padding: .7rem .9rem; border-radius: 12px; background: rgba(255,255,255,.94); display: grid; gap: .1rem; }
.v2 .verify-cam .pose b { font-size: 1.15rem; }
.v2 .verify-done { padding: 1rem 1.1rem; border-radius: 14px; background: #e8f4ec; color: #22573a; }
.v2 .verified-mark { display: inline-block; vertical-align: middle; margin-left: .4rem; padding: .15rem .55rem; border-radius: 99px; background: #e8f4ec; color: #22573a; font: 600 .75rem/1.4 'Figtree', sans-serif; }
.v2 .verified-mark::before { content: "✓ "; }
.v2 .person .verify-ok { color: #2f7a4b; margin: -.4rem 0 .6rem; }
.v2 .person .verify-review { display: grid; grid-template-columns: 84px 1fr; gap: .7rem; align-items: start; margin: -.3rem 0 .8rem; padding: .7rem; border-radius: 12px; background: #fff7e6; }
.v2 .person .verify-review a { display: block; width: 84px; aspect-ratio: 3 / 4; border-radius: 8px; background: center / cover no-repeat #ddd; }
.v2 .verify-cam .hold { height: 5px; border-radius: 3px; background: rgba(90,30,60,.12); overflow: hidden; margin-top: .4rem; }
.v2 .verify-cam .hold i { display: block; height: 100%; width: 0; background: #2f7a4b; transition: width .1s linear; }

/* Suburb picker */
div.field { margin-bottom: 1.3rem; }
div.field > label > span { display: block; font-weight: 600; margin-bottom: .45rem; }
.combo { position: relative; }
.combo-list {
  position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 4px);
  margin: 0; padding: .3rem; list-style: none;
  background: var(--night-2); border: 1.5px solid var(--line); border-radius: var(--r-field);
  box-shadow: 0 10px 28px rgba(42, 20, 32, .18); max-height: 18rem; overflow-y: auto;
}
.combo-list li { padding: .7rem .8rem; border-radius: 8px; cursor: pointer; }
.combo-list li[aria-selected="true"], .combo-list li:hover { background: var(--night-3); }
.linkbtn.locate { margin-top: .5rem; padding-left: 0; text-decoration: underline; text-underline-offset: 3px; }
#locate-msg { margin: .2rem 0 0; min-height: 1.2em; }

/* Date of birth: day / month / year */
fieldset.field { border: 0; padding: 0; margin: 0 0 1.3rem; min-width: 0; }
fieldset.field legend { padding: 0; }
.dob-row { display: grid; grid-template-columns: 4.2rem 1fr 5.6rem; gap: .5rem; }
.dob-row input { text-align: center; }
/* Text box with a button beside it */
.add-row { display: flex; gap: .5rem; align-items: stretch; }
.add-row input { flex: 1; }
.add-row .btn { flex: none; }

/* ── Install card ── */
.panel.install { text-align: center; }
.panel.install h3 { margin-top: 0; }

/* ── Metrics (matchmakers only) ── */
.metrics { --g1: #3987e5; --g2: #d95926; --g3: #199e70; --bar: var(--blush); }
.metrics h1 { margin: 0; }
.metrics h2 { font-size: 1.15rem; margin: 0 0 1rem; }
.metrics h3 { font-size: 1rem; margin: 0 0 .8rem; color: var(--muted); font-weight: 600; }
.metrics-head { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; margin: 1rem 0 1.4rem; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: .8rem; margin-bottom: 1.2rem; }
.stat-tile { background: var(--night-2); border: 1px solid var(--night-3); border-radius: var(--r-field); padding: 1rem; display: flex; flex-direction: column; gap: .2rem; }
.panel .stat-tile { background: var(--night-3); border-color: var(--line); }
.stat-label { color: var(--muted); font-size: .85rem; }
.stat-value { font-family: var(--display); font-weight: 800; font-size: 1.7rem; color: var(--paper); line-height: 1.15; }
.stat-note { color: var(--muted); font-size: .78rem; }
.two-up { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 0 1.2rem; }

.hbars { display: grid; gap: .45rem; }
.hbar { display: grid; grid-template-columns: minmax(90px, 32%) 1fr auto; gap: .7rem; align-items: center; outline-offset: 2px; }
.hbar-label { font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hbar-track { height: 14px; display: block; }
.hbar-fill { display: block; height: 100%; background: var(--bar); border-radius: 0 4px 4px 0; }
.hbar:hover .hbar-fill, .hbar:focus .hbar-fill { filter: brightness(1.08); }
.hbar-value { font-size: .85rem; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }

.vbars { display: flex; gap: 6px; align-items: flex-end; height: 190px; }
.vbar { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; height: 100%; gap: .3rem; outline-offset: 2px; }
.vbar-col { flex: 1; width: 100%; max-width: 46px; display: flex; align-items: flex-end; }
.vbar-fill { width: 100%; background: var(--bar); border-radius: 4px 4px 0 0; display: block; }
.vbar-value, .vbar-label { font-size: .75rem; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }

.line-chart { width: 100%; height: auto; display: block; }
.line-chart .grid { stroke: var(--night-3); stroke-width: 1; }
.line-chart .axis { fill: var(--muted); font-size: 11px; font-family: inherit; }
.line-chart .line { fill: none; stroke: var(--bar); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.line-chart .cross { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 3 3; }
.line-chart .dot { fill: var(--bar); stroke: var(--night-2); stroke-width: 2; }
.line-chart .hit { fill: transparent; cursor: crosshair; outline: none; }

.legend { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; margin-bottom: 1rem; font-size: .88rem; }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: .4rem; vertical-align: -1px; }
.stack-rows { display: grid; gap: 1.2rem; }
.stack-head { display: flex; flex-wrap: wrap; gap: .3rem .8rem; align-items: baseline; margin-bottom: .45rem; }
.gbar { display: flex; gap: 2px; height: 28px; width: 100%; }
.gbar .seg { display: flex; align-items: center; justify-content: center; min-width: 26px; color: #2a1420; font-weight: 700; font-size: .85rem; outline-offset: 2px; }
.gbar .seg:first-child { border-radius: 4px 0 0 4px; }
.gbar .seg:last-child { border-radius: 0 4px 4px 0; }

.viz-tip { position: fixed; z-index: 50; pointer-events: none; background: var(--paper); color: var(--night); padding: .5rem .7rem; border-radius: 8px; font-size: .85rem; line-height: 1.35; box-shadow: 0 4px 18px rgba(0,0,0,.35); max-width: 240px; }
.table-view { margin-top: .8rem; font-size: .88rem; }
.table-view summary { cursor: pointer; color: var(--muted); }
table.data, .table-view table { width: 100%; border-collapse: collapse; font-size: .88rem; font-variant-numeric: tabular-nums; }
table.data th, table.data td, .table-view th, .table-view td { text-align: left; padding: .45rem .4rem; border-bottom: 1px solid var(--night-3); }
table.data th, .table-view th { color: var(--muted); font-weight: 600; }
@media (max-width: 520px) { .stat-value { font-size: 1.4rem; } .stat-tile { padding: .8rem; } .two-up { grid-template-columns: 1fr; } .hbar { grid-template-columns: minmax(80px, 38%) 1fr auto; } }

.page-light .metrics { --g1: #2a78d6; --g2: #eb6834; --g3: #1baf7a; }
