/* ==========================================================================
   PRV — Design V2 onboarding & authentication
   ==========================================================================

   Ported from the Figma Make reconstruction (`Mobile Home Page.make` →
   App.final.tsx) via design_v2_preview_onboarding.html.

   React's `T = isDark ? DARK : LIGHT` inline-style object becomes CSS custom
   properties keyed off html[data-theme], which is the mechanism app.js already
   uses (see applyTheme / setTheme).

   Everything here is namespaced:
     · custom properties  --dv2-*
     · classes            .dv2-*
   style.css owns generic names such as --accent and, critically,
   `.mesh, .blob { display: none !important }` — hence the prefixes. Nothing in
   this file may affect any surface other than the signed-out onboarding flow.
   ========================================================================== */


/* ── Tokens ────────────────────────────────────────────────────────────────
   Moved to design-v2-app.css, which declares the same values on the same
   `html[data-theme="…"] .dv2` selector plus the two new Design V2 hosts. The
   values did not change and nothing else in the codebase defines a `--dv2-*`
   property, so onboarding renders identically. See that file for the set. */



/* ── Host overrides ────────────────────────────────────────────────────── */
/* app.js `show()` sets body.dv2-landing while the signed-out flow is on
   screen. Onboarding is full-bleed, so the app chrome that surrounds every
   other view has to stand down for the duration. */

body.dv2-landing {
  padding: 0;
  background: #06001a;
}
html[data-theme="light"] body.dv2-landing { background: #EEF2FF; }
body.dv2-landing .mesh { display: none; }
body.dv2-landing #view-landing { max-width: none; margin: 0; }
body.dv2-landing .view:not([hidden]) { padding-bottom: 0; }
body.dv2-landing .tabbar,
body.dv2-landing .bottom-nav { display: none !important; }


/* ── Root & aurora ─────────────────────────────────────────────────────── */

.dv2 {
  position: relative;
  min-height: 100dvh;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
}
.dv2 *, .dv2 *::before, .dv2 *::after { box-sizing: border-box; }

/* Several layout classes below set display:flex, which outranks the user-agent
   [hidden] rule. Screens are toggled with .hidden, so this has to win. */
.dv2 [hidden] { display: none !important; }

.dv2-aurora {
  position: fixed; inset: 0; z-index: 0;
  overflow: hidden; pointer-events: none;
  background: var(--dv2-bg-grad);
}
.dv2-blob { position: absolute; border-radius: 9999px; }
.dv2-blob-1 { width:380px; height:380px; top:-80px;    left:-60px;  background: radial-gradient(circle,var(--dv2-blob1) 0%,transparent 70%); filter: blur(60px); animation: dv2Aurora1 14s ease-in-out infinite; }
.dv2-blob-2 { width:340px; height:340px; bottom:40px;  right:-80px; background: radial-gradient(circle,var(--dv2-blob2) 0%,transparent 70%); filter: blur(60px); animation: dv2Aurora2 18s ease-in-out infinite; }
.dv2-blob-3 { width:260px; height:260px; top:60px;     right:-30px; background: radial-gradient(circle,var(--dv2-blob3) 0%,transparent 70%); filter: blur(50px); animation: dv2Aurora3 22s ease-in-out infinite; }
.dv2-blob-4 { width:300px; height:300px; bottom:150px; left:-60px;  background: radial-gradient(circle,var(--dv2-blob4) 0%,transparent 70%); filter: blur(55px); animation: dv2Aurora1 26s ease-in-out infinite reverse; }

@keyframes dv2Aurora1 { 0%,100%{transform:translate(0,0) scale(1)} 33%{transform:translate(40px,-30px) scale(1.08)} 66%{transform:translate(-20px,20px) scale(0.95)} }
@keyframes dv2Aurora2 { 0%,100%{transform:translate(0,0) scale(1)} 40%{transform:translate(-50px,30px) scale(1.1)} 70%{transform:translate(25px,-15px) scale(0.92)} }
@keyframes dv2Aurora3 { 0%,100%{transform:translate(0,0) scale(1)} 50%{transform:translate(30px,40px) scale(1.06)} }
@keyframes dv2FadeUp  { from{opacity:0;transform:translateY(18px)} to{opacity:1;transform:translateY(0)} }
@keyframes dv2ScaleIn { from{opacity:0;transform:scale(0.92)} to{opacity:1;transform:scale(1)} }
@keyframes dv2Spin    { to { transform: rotate(360deg) } }


/* ── Screen shell ──────────────────────────────────────────────────────── */
/* The Make source draws a fixed 390×844 device frame with a mock status bar.
   Production is fluid and the real status bar is the OS's, so the mock is
   dropped and its space becomes the safe-area inset. */

.dv2-screen {
  position: relative; z-index: 10;
  display: flex; flex-direction: column;
  min-height: 100dvh;
  width: 100%; max-width: 430px; margin: 0 auto;
  padding-top: max(env(safe-area-inset-top), 14px);
}


/* ── ProgressBar ───────────────────────────────────────────────────────── */

.dv2-progress { padding: 0 24px; margin-top: 12px; }
.dv2-progress__track { display: flex; gap: 6px; }
.dv2-progress__seg { flex:1; height:3px; border-radius:9999px; background:var(--dv2-progress-bg); }
.dv2-progress__seg.is-filled { background: var(--dv2-progress-fill); }
.dv2-progress__label { font-size:11px; color:var(--dv2-text-muted); margin:5px 0 0; font-family:'Inter',sans-serif; letter-spacing:0.04em; }


/* ── Nav row (back + theme toggle) ─────────────────────────────────────── */

.dv2-nav { display:flex; align-items:center; justify-content:space-between; padding:0 24px; margin-top:16px; }
.dv2-nav--tight { margin-top: 12px; }
.dv2-nav--end { justify-content: flex-end; }

.dv2-toggle {
  width:36px; height:36px; border-radius:9999px; padding:0;
  display:flex; align-items:center; justify-content:center;
  background:var(--dv2-toggle-bg); border:1px solid var(--dv2-toggle-bd);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.3);
  color:var(--dv2-toggle-ic); cursor:pointer;
  transition: transform .3s, background .3s, border-color .3s;
}
.dv2-toggle:active { transform: scale(0.9); }
.dv2-toggle:focus-visible { outline:2px solid var(--dv2-link); outline-offset:2px; }
.dv2-welcome-toggle { position:absolute; top:max(env(safe-area-inset-top),14px); right:24px; z-index:11; }

.dv2-back {
  width:40px; height:40px; border-radius:9999px; padding:0;
  display:flex; align-items:center; justify-content:center;
  color:var(--dv2-text-primary); cursor:pointer; transition:transform .15s;
  background: var(--dv2-g-09-bg); border:1px solid var(--dv2-g-09-bd); box-shadow: var(--dv2-g-shadow);
}
.dv2-back:active { transform: scale(0.9); }


/* ── Glass surfaces ────────────────────────────────────────────────────── */

.dv2-glass   { box-shadow: var(--dv2-g-shadow); border:1px solid var(--dv2-g-10-bd); background: var(--dv2-g-10-bg); }
.dv2-glass-s { box-shadow: var(--dv2-g-shadow); border:1px solid var(--dv2-g-16-bd); background: var(--dv2-g-09-bg); }
.dv2-glass-w { box-shadow: var(--dv2-g-shadow); border:1px solid var(--dv2-g-08-bd); background: var(--dv2-g-08-bg); }
.dv2-glass-f { box-shadow: var(--dv2-g-shadow); border:1px solid var(--dv2-g-07-bd); background: var(--dv2-g-07-bg); }
.dv2-glass-a { box-shadow: var(--dv2-g-shadow); border:1px solid var(--dv2-g-09-bd); background: var(--dv2-g-09-bg); }

@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
  .dv2-glass   { -webkit-backdrop-filter: blur(36px) saturate(var(--dv2-g-sat)); backdrop-filter: blur(36px) saturate(var(--dv2-g-sat)); }
  .dv2-glass-s,
  .dv2-glass-a { -webkit-backdrop-filter: blur(28px) saturate(var(--dv2-g-sat)); backdrop-filter: blur(28px) saturate(var(--dv2-g-sat)); }
  .dv2-glass-w { -webkit-backdrop-filter: blur(24px) saturate(var(--dv2-g-sat)); backdrop-filter: blur(24px) saturate(var(--dv2-g-sat)); }
  .dv2-glass-f { -webkit-backdrop-filter: blur(20px) saturate(var(--dv2-g-sat)); backdrop-filter: blur(20px) saturate(var(--dv2-g-sat)); }
  .dv2-back    { -webkit-backdrop-filter: blur(20px) saturate(var(--dv2-g-sat)); backdrop-filter: blur(20px) saturate(var(--dv2-g-sat)); }
}


/* ── PRV badge ─────────────────────────────────────────────────────────── */

.dv2-badge-wrap { position:relative; margin-bottom:24px; }
.dv2-badge {
  position:relative; width:80px; height:80px; border-radius:28px;
  display:flex; align-items:center; justify-content:center;
  background: conic-gradient(from 0deg,
    hsla(270,70%,60%,0.9), hsla(200,80%,60%,0.9), hsla(150,70%,55%,0.9),
    hsla(45,80%,60%,0.9),  hsla(330,70%,60%,0.9), hsla(270,70%,60%,0.9));
  box-shadow: 0 0 40px hsla(270,70%,50%,0.5), 0 0 80px hsla(200,80%,50%,0.2);
}
.dv2-badge__core {
  position:absolute; inset:3px; border-radius:24px;
  display:flex; align-items:center; justify-content:center;
  background: var(--dv2-badge-core);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  box-shadow: inset 0 1.5px 0 rgba(255,255,255,0.4);
}
.dv2-badge__text {
  font-size:24px; font-weight:800; letter-spacing:-0.03em;
  background: conic-gradient(from 0deg,hsla(270,80%,70%,1),hsla(200,90%,70%,1),hsla(150,80%,65%,1),hsla(270,80%,70%,1));
  -webkit-background-clip:text; background-clip:text;
  -webkit-text-fill-color:transparent; color:transparent;
}
.dv2-badge__glow {
  position:absolute; inset:-12px; border-radius:36px; z-index:-1;
  background: radial-gradient(circle,hsla(270,70%,55%,0.3) 0%,transparent 70%); filter: blur(8px);
}
.dv2-badge--sm {
  width:64px; height:64px; border-radius:22px; margin-bottom:20px;
  background: conic-gradient(from 0deg,hsla(270,70%,60%,0.9),hsla(200,80%,60%,0.9),hsla(330,70%,60%,0.9),hsla(270,70%,60%,0.9));
  box-shadow: 0 0 28px hsla(270,70%,50%,0.45);
}
.dv2-badge--sm .dv2-badge__core { inset:3px; border-radius:20px; background:var(--dv2-badge-core-signin); box-shadow:none; }
.dv2-badge--sm .dv2-badge__text {
  font-size:18px;
  background: conic-gradient(from 0deg,hsla(270,80%,70%,1),hsla(200,90%,70%,1),hsla(270,80%,70%,1));
  -webkit-background-clip:text; background-clip:text;
}


/* ── Typography ────────────────────────────────────────────────────────── */

.dv2-hero { display:flex; flex-direction:column; align-items:center; padding:40px 24px 0; }
.dv2-hero__art { line-height:0; }
.dv2-hero__copy { text-align:center; margin-top:8px; }
.dv2-hero__title { font-size:36px; font-weight:800; line-height:1.1; letter-spacing:-0.03em; color:var(--dv2-text-primary); margin:0; }
.dv2-hero__title em {
  font-style:normal;
  background: conic-gradient(from 45deg,hsla(270,80%,70%,1),hsla(200,90%,70%,1),hsla(330,70%,70%,1),hsla(270,80%,70%,1));
  -webkit-background-clip:text; background-clip:text;
  -webkit-text-fill-color:transparent; color:transparent;
}
.dv2-hero__sub { font-size:15px; color:var(--dv2-text-sub); margin:6px 0 0; font-weight:400; letter-spacing:0.01em; }

.dv2-head { padding: 0 24px; }
.dv2-head--m5 { margin-top: 20px; }
.dv2-head--m4 { margin-top: 16px; }
.dv2-head--m2 { margin-top: 8px; }
.dv2-t30 { font-size:30px; font-weight:800; color:var(--dv2-text-primary); letter-spacing:-0.03em; line-height:1.15; margin:0; }
.dv2-t28 { font-size:28px; font-weight:800; color:var(--dv2-text-primary); letter-spacing:-0.03em; line-height:1.15; margin:0; }
.dv2-t26 { font-size:26px; font-weight:800; color:var(--dv2-text-primary); letter-spacing:-0.03em; margin:0; }
.dv2-sub14 { font-size:14px; color:var(--dv2-text-sub); margin:5px 0 0; font-weight:400; line-height:1.5; }
.dv2-sub13 { font-size:13px; color:var(--dv2-text-sub); margin:3px 0 0; font-weight:400; }
.dv2-sub14 b, .dv2-sub13 b { font-weight:700; color:var(--dv2-text-primary); }

.dv2-centered { display:flex; flex-direction:column; align-items:center; padding:0 24px; }


/* ── SVG illustrations ─────────────────────────────────────────────────── */

.dv2-familysvg { stroke: var(--dv2-svg-stroke); }
.dv2-familysvg .fs-fill { fill: var(--dv2-svg-fill); }
.dv2-familysvg .fs-dot  { fill: var(--dv2-svg-stroke); stroke:none; }

.dv2-housesvg { stroke: var(--dv2-house-stroke); }
.dv2-housesvg .h-fill { fill: var(--dv2-house-fill); }
.dv2-housesvg .h-door { fill: var(--dv2-house-door); }
.dv2-housesvg .h-knob { fill: var(--dv2-house-stroke); stroke:none; opacity:0.7; }

.dv2-celsvg { stroke: var(--dv2-cel-stroke); }
.dv2-celsvg .c-fill  { fill: var(--dv2-cel-fill); }
.dv2-celsvg .c-door  { fill: var(--dv2-cel-door); }
.dv2-celsvg .c-plate { fill: var(--dv2-cel-plate); }
.dv2-celsvg .c-knob  { fill: var(--dv2-cel-stroke); stroke:none; opacity:0.65; }
.dv2-celsvg .c-text  { fill: var(--dv2-cel-text); stroke:none; }
.dv2-balloon { animation: dv2Balloon calc(1.8s + var(--i) * 0.3s) ease-in-out infinite; animation-delay: calc(var(--i) * 0.12s); }
@keyframes dv2Balloon { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-8px)} }

/* S2/S3 fix — the source's viewBox is shorter than the house body it draws, so
   two-thirds of every body was clipped, and the fills were hardcoded white in
   both themes. Geometry now fits, fills follow the theme. */
.dv2-strip { margin:20px 24px 0; border-radius:16px; overflow:hidden; display:flex; align-items:center; justify-content:center; padding:16px 0; }
.dv2-strip__row { display:flex; gap:12px; align-items:flex-end; opacity:0.75; }
.dv2-strip svg { stroke: var(--dv2-house-stroke); }
.dv2-strip .hs-fill { fill: var(--dv2-house-fill); }
.dv2-strip .hs-door { fill: var(--dv2-house-door); }


/* ── Feature cards ─────────────────────────────────────────────────────── */

.dv2-features { padding:0 24px; margin-top:28px; display:flex; flex-direction:column; gap:10px; }
.dv2-feature { display:flex; align-items:center; gap:14px; padding:12px 16px; border-radius:16px; }
.dv2-feature__tile {
  width:36px; height:36px; border-radius:12px; flex-shrink:0;
  display:flex; align-items:center; justify-content:center;
  background: hsla(var(--hue),65%,var(--dv2-tile-bg-l),0.18);
  border: 1px solid hsla(var(--hue),65%,var(--dv2-tile-bd-l),0.25);
  color: hsla(var(--hue),70%,var(--dv2-tile-ic-l),1);
}
.dv2-feature__label { font-size:14px; font-weight:500; color:var(--dv2-text-primary); letter-spacing:0.01em; }
.dv2-feature__check { margin-left:auto; flex-shrink:0; color: hsla(var(--hue),65%,var(--dv2-tile-ck-l),0.8); }


/* ── Choice cards ──────────────────────────────────────────────────────── */

.dv2-choices { padding:0 24px; margin-top:20px; display:flex; flex-direction:column; gap:12px; flex:1; }
.dv2-choice {
  width:100%; display:flex; align-items:center; gap:16px;
  padding:20px; border-radius:24px; text-align:left; cursor:pointer;
  border-left: 3px solid hsla(var(--hue),70%,var(--dv2-choice-edge-l),0.6);
  transition: transform .15s;
}
.dv2-choice:active { transform: scale(0.98); }
.dv2-choice__tile {
  width:56px; height:56px; border-radius:16px; flex-shrink:0;
  display:flex; align-items:center; justify-content:center;
  background: hsla(var(--hue),65%,var(--dv2-choice-bg-l),0.18);
  border: 1px solid hsla(var(--hue),65%,var(--dv2-choice-bd-l),0.3);
  color: hsla(var(--hue),70%,var(--dv2-choice-ic-l),1);
}
/* Stacks a title over its subtitle. Flex (not block) because the production
   markup uses <span> children — inline boxes would run title and sub together. */
.dv2-body { flex:1; min-width:0; display:flex; flex-direction:column; }
.dv2-choice__title { font-size:17px; font-weight:700; color:var(--dv2-text-primary); line-height:1.2; margin:0; }
.dv2-choice__sub { font-size:13px; color:var(--dv2-text-sub); margin:3px 0 0; font-weight:400; line-height:1.4; }
.dv2-chev { color: var(--dv2-text-muted); flex-shrink:0; }


/* ── Cards / inputs / buttons ──────────────────────────────────────────── */

.dv2-card    { margin:32px 24px 0; padding:20px; border-radius:24px; display:flex; flex-direction:column; gap:12px; }
.dv2-card--m6 { margin-top: 24px; }
.dv2-card--m4 { margin-top: 16px; }
.dv2-card--m8 { margin-top: 32px; }
.dv2-card--gap5 { gap: 20px; }
.dv2-card--gap4 { gap: 16px; }

.dv2-input {
  display:flex; align-items:center; gap:12px;
  height:56px; padding:0 16px; border-radius:16px;
  background:var(--dv2-input-bg); border:1px solid var(--dv2-input-bd);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  box-shadow: inset 0 1.5px 0 rgba(255,255,255,0.2);
  color: var(--dv2-input-ph);
}
.dv2-input svg { flex-shrink: 0; }
/* style.css styles bare inputs as "subtle rounded glass" (a backdrop blur plus an
   accent focus ring). Both leak through onto a field that is already inside a
   glass wrapper, so they are explicitly cancelled here. */
.dv2-input input {
  flex:1; min-width:0; background:transparent; border:none; outline:none;
  font-size:15px; font-family:'Inter',-apple-system,sans-serif; font-weight:400; color:var(--dv2-input-text);
  height: 100%; padding: 0;
  -webkit-appearance:none; appearance:none;
  -webkit-backdrop-filter:none; backdrop-filter:none;
  box-shadow:none; border-radius:0;
}
.dv2-input input:focus { box-shadow:none; outline:none; }
.dv2-input:focus-within { border-color: var(--dv2-link); }
.dv2-input input::placeholder { color: var(--dv2-input-ph); opacity:1; }
.dv2-input__reveal { background:none; border:none; padding:0; display:flex; color:var(--dv2-input-ph); cursor:pointer; flex-shrink:0; }
.dv2-input.is-locked { opacity: 0.6; }

.dv2-btn {
  width:100%; height:56px; border-radius:16px; border:none;
  background:var(--dv2-btn-primary); box-shadow:var(--dv2-btn-shadow);
  color:#fff; font-family:'Plus Jakarta Sans',sans-serif;
  font-size:16px; font-weight:700; letter-spacing:0.02em;
  cursor:pointer; transition: transform .15s;
}
.dv2-btn:active { transform: scale(0.98); }
.dv2-btn:disabled {
  background: var(--dv2-btn-disabled-bg);
  color: var(--dv2-btn-disabled-tx);
  box-shadow:none; cursor:default; transform:none;
}

.dv2-btn2 {
  width:100%; height:52px; border-radius:16px; border:none;
  display:flex; align-items:center; justify-content:center; cursor:pointer; transition:transform .15s;
}
.dv2-btn2 span { font-size:15px; font-weight:600; color:var(--dv2-text-sub); }
.dv2-btn2:active { transform: scale(0.98); }

.dv2-link {
  width:100%; text-align:center; padding:8px 0;
  background:none; border:none; cursor:pointer;
  font-family:'Inter',-apple-system,sans-serif; font-size:14px; font-weight:600; color:var(--dv2-link);
}
.dv2-muted {
  width:100%; text-align:center; padding:8px 0;
  background:none; border:none; cursor:pointer;
  font-family:'Inter',-apple-system,sans-serif; font-size:13px; color:var(--dv2-text-muted);
}

.dv2-cta { padding:0 24px calc(env(safe-area-inset-bottom) + 40px); margin-top:auto; display:flex; flex-direction:column; gap:12px; }
.dv2-cta--tight { gap:8px; padding-top:8px; }

.dv2-foot { text-align:center; margin-top:auto; padding:0 24px calc(env(safe-area-inset-bottom) + 40px); }
.dv2-foot p { font-size:13px; color:var(--dv2-text-muted); font-family:'Inter',-apple-system,sans-serif; margin:0; }
.dv2-foot button { color:var(--dv2-link); font-weight:600; font-size:13px; background:none; border:none; padding:0; cursor:pointer; font-family:inherit; }

.dv2-spacer { padding-bottom: calc(env(safe-area-inset-bottom) + 40px); }

/* Inline error — production surfaces real API failures, the mock never did. */
.dv2-err {
  margin:12px 24px 0; padding:11px 14px; border-radius:14px;
  font-size:13px; font-weight:600; line-height:1.45;
  font-family:'Inter',-apple-system,sans-serif;
  color:var(--dv2-danger); background:var(--dv2-danger-bg); border:1px solid var(--dv2-danger-bd);
}
.dv2-err--inline { margin:0; }


/* ── Privacy note ──────────────────────────────────────────────────────── */

.dv2-note { margin:12px 24px 0; padding:12px 16px; border-radius:16px; display:flex; align-items:center; gap:12px; }
.dv2-note svg { flex-shrink:0; color: hsla(175,65%,var(--dv2-tile-ic-l),0.9); }
.dv2-note p { font-size:12px; color:var(--dv2-text-sub); font-family:'Inter',-apple-system,sans-serif; line-height:1.5; margin:0; }


/* ── Passcode dots + keypad ────────────────────────────────────────────── */

.dv2-dots { display:flex; justify-content:center; gap:16px; padding:8px 0; }
.dv2-dots--wide { gap:20px; padding:0; }
.dv2-dot { width:14px; height:14px; border-radius:50%; background:transparent; border:2px solid var(--dv2-dot-empty-bd); }
.dv2-dot--lg { width:16px; height:16px; }
.dv2-dot.is-on { background: hsla(270,70%,var(--dv2-check-l),1); border-color: hsla(270,70%,var(--dv2-check-l),1); }

.dv2-keypad { display:flex; flex-direction:column; gap:8px; }
.dv2-keypad__row { display:flex; gap:8px; }
.dv2-key {
  flex:1; height:56px; border-radius:16px; border:none;
  display:flex; align-items:center; justify-content:center;
  background: var(--dv2-key-bg); color: var(--dv2-text-primary);
  font-size:22px; font-weight:600; font-family:inherit; cursor:pointer;
  transition: transform .15s;
}
.dv2-key:active { transform: scale(0.9); }
.dv2-key--del { font-size:20px; }
.dv2-key--empty { background:transparent; cursor:default; }


/* ── Invite screen ─────────────────────────────────────────────────────── */

.dv2-scroll { flex:1; overflow-y:auto; padding:0 24px 16px; margin-top:16px; display:flex; flex-direction:column; gap:12px; -webkit-overflow-scrolling:touch; touch-action: pan-y; }
.dv2-scroll::-webkit-scrollbar { display:none; }

.dv2-list-card { padding:16px; border-radius:16px; }
.dv2-eyebrow { font-size:10px; font-weight:700; color:var(--dv2-text-muted); letter-spacing:0.1em; text-transform:uppercase; margin:0 0 10px; font-family:'Inter',-apple-system,sans-serif; }
.dv2-eyebrow--11 { font-size:11px; padding-left:4px; margin-bottom:0; }

.dv2-person { display:flex; align-items:center; gap:12px; }
.dv2-person + .dv2-person { margin-top: 12px; }
.dv2-person__avatar {
  width:36px; height:36px; border-radius:50%; flex-shrink:0;
  display:flex; align-items:center; justify-content:center;
  background: hsla(var(--hue),65%,var(--dv2-choice-bg-l),0.2);
  border: 1px solid hsla(var(--hue),65%,var(--dv2-choice-bd-l),0.35);
  font-size:14px; font-weight:800; color: hsla(var(--hue),70%,var(--dv2-choice-ic-l),1);
}
.dv2-person__name { font-size:15px; font-weight:700; color:var(--dv2-text-primary); margin:0; }
.dv2-person__meta { font-size:12px; color:var(--dv2-text-sub); font-family:'Inter',-apple-system,sans-serif; margin:0; }
.dv2-pill {
  font-size:11px; font-weight:700; padding:3px 10px; border-radius:20px; flex-shrink:0;
  background: hsla(270,60%,var(--dv2-choice-bg-l),0.18);
  border: 1px solid hsla(270,60%,var(--dv2-choice-bd-l),0.3);
  color: hsla(270,65%,var(--dv2-tile-ic-l),1); font-family:'Inter',-apple-system,sans-serif;
}
.dv2-pill--kid {
  background: hsla(35,70%,var(--dv2-choice-bg-l),0.18);
  border-color: hsla(35,70%,var(--dv2-choice-bd-l),0.3);
  color: hsla(35,75%,var(--dv2-tile-ic-l),1);
}
.dv2-remove { background:none; border:none; padding:4px; display:flex; color:var(--dv2-text-muted); cursor:pointer; flex-shrink:0; }

.dv2-add-group { display:flex; flex-direction:column; gap:8px; }
.dv2-add-row {
  width:100%; display:flex; align-items:center; gap:16px;
  padding:16px 20px; border-radius:16px; text-align:left; border:none; cursor:pointer;
  transition: transform .15s;
}
.dv2-add-row:active { transform: scale(0.98); }
.dv2-add-row__emoji { font-size:24px; flex-shrink:0; }
.dv2-add-row__title { font-size:15px; font-weight:700; color:var(--dv2-text-primary); margin:0; }
.dv2-add-row__sub { font-size:12px; color:var(--dv2-text-sub); font-family:'Inter',-apple-system,sans-serif; margin:0; }

.dv2-add-form { padding:16px; border-radius:16px; display:flex; flex-direction:column; gap:10px; }
.dv2-add-form .dv2-input { height:50px; }
.dv2-add-actions { display:flex; gap:8px; }
.dv2-add-actions .dv2-btn { height:46px; font-size:15px; }
.dv2-add-actions .dv2-btn2 { height:46px; }


/* ── Join search results ───────────────────────────────────────────────── */

.dv2-results { margin:12px 24px 0; border-radius:16px; overflow:hidden; }
.dv2-result {
  width:100%; display:flex; align-items:center; gap:16px; padding:16px;
  text-align:left; border:none; background:transparent; cursor:pointer;
}
.dv2-result__tile {
  width:44px; height:44px; border-radius:14px; flex-shrink:0;
  display:flex; align-items:center; justify-content:center; font-size:20px;
  background: hsla(175,60%,50%,0.2); border:1px solid hsla(175,65%,55%,0.3);
}
.dv2-result + .dv2-result { border-top: 1px solid var(--dv2-divider); }
.dv2-result.is-sel { background: hsla(270,60%,55%,0.14); }
.dv2-empty { margin:12px 24px 0; font-size:13px; color:var(--dv2-text-sub); font-family:'Inter',-apple-system,sans-serif; padding:0 4px; }


/* ── Ready screen ──────────────────────────────────────────────────────── */

.dv2-stepdots { display:flex; align-items:center; justify-content:center; gap:8px; padding-top:20px; }
.dv2-stepdot {
  width:22px; height:22px; border-radius:50%; flex-shrink:0;
  display:flex; align-items:center; justify-content:center;
  background: hsla(152,65%,var(--dv2-choice-bg-l),0.22);
  border: 1px solid hsla(152,65%,var(--dv2-choice-bd-l),0.5);
  color: hsla(152,65%,var(--dv2-check-l),1);
}
.dv2-stepcount { font-size:13px; font-weight:700; color:var(--dv2-text-sub); font-family:'Inter',-apple-system,sans-serif; margin-left:2px; }

.dv2-ready-eyebrow { font-size:13px; font-weight:600; color:var(--dv2-text-sub); letter-spacing:0.1em; text-transform:uppercase; margin:0 0 6px; font-family:'Inter',-apple-system,sans-serif; }
.dv2-ready-title { font-size:28px; font-weight:800; color:var(--dv2-text-primary); letter-spacing:-0.03em; line-height:1.15; margin:0; }

.dv2-hub { margin:24px 24px 0; padding:20px; border-radius:24px; display:flex; align-items:center; gap:16px; }
.dv2-hub__tile {
  width:56px; height:56px; border-radius:18px; flex-shrink:0;
  display:flex; align-items:center; justify-content:center; color:#fff;
  background: conic-gradient(from 0deg,hsla(270,70%,60%,0.9),hsla(200,80%,60%,0.9),hsla(150,70%,55%,0.9),hsla(270,70%,60%,0.9));
  box-shadow: 0 0 24px hsla(270,70%,50%,0.35);
}
.dv2-hub__name { font-size:18px; font-weight:800; color:var(--dv2-text-primary); letter-spacing:-0.02em; margin:0; }
.dv2-hub__sub { font-size:12px; color:var(--dv2-text-sub); font-family:'Inter',-apple-system,sans-serif; margin:2px 0 0; }

.dv2-spin { position:relative; width:96px; height:96px; }
.dv2-spin__arc {
  position:absolute; inset:0; border-radius:50%;
  background: conic-gradient(from 0deg,hsla(270,70%,65%,0),hsla(270,70%,65%,1),hsla(200,80%,65%,1),hsla(152,70%,60%,0.3),hsla(270,70%,65%,0));
  animation: dv2Spin 1.2s linear infinite;
}
.dv2-spin__core { position:absolute; inset:3px; border-radius:50%; background: var(--dv2-ring-core); }
.dv2-spin__icon { position:absolute; inset:0; display:flex; align-items:center; justify-content:center; font-size:28px; }

.dv2-disc { position:relative; width:80px; height:80px; }
.dv2-disc__glow { position:absolute; inset:-12px; border-radius:50%; background: radial-gradient(circle,hsla(152,70%,55%,0.4) 0%,transparent 70%); filter: blur(8px); }
.dv2-disc__face {
  position:absolute; inset:0; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  background: var(--dv2-disc-bg); border:1.5px solid hsla(152,65%,var(--dv2-disc-bd-l),0.5);
  -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
  box-shadow: inset 0 1.5px 0 rgba(255,255,255,0.5), 0 0 24px hsla(152,65%,55%,0.3);
}

.dv2-fill { flex:1; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:24px; padding:0 24px; }
.dv2-loaddots { display:flex; gap:8px; }
.dv2-loaddot { width:8px; height:8px; border-radius:50%; background: hsla(270,65%,var(--dv2-check-l),0.9); animation: dv2Pulse 1.2s ease-in-out infinite; }
.dv2-loaddot:nth-child(2) { animation-delay: .15s; }
.dv2-loaddot:nth-child(3) { animation-delay: .3s; }
@keyframes dv2Pulse { 0%,100%{opacity:.35;transform:scale(.8)} 50%{opacity:1;transform:scale(1)} }

.dv2-center-row { display:flex; justify-content:center; }
/* S4 fix — the source's -mt-3 pulled the check disc over the house name plate,
   hiding the home name rendered inside the illustration. */
.dv2-center-row--disc { margin-top: 4px; }


/* ── Entrance animation ────────────────────────────────────────────────── */

.dv2-a { animation: dv2FadeUp  .5s ease both; }
.dv2-b { animation: dv2ScaleIn .6s ease .1s both; }
.dv2-c { animation: dv2FadeUp  .5s ease .2s both; }
.dv2-d { animation: dv2FadeUp  .5s ease .35s both; }
.dv2-e { animation: dv2FadeUp  .5s ease .5s both; }

@media (prefers-reduced-motion: reduce) {
  .dv2-blob, .dv2-spin__arc, .dv2-balloon, .dv2-loaddot,
  .dv2-a, .dv2-b, .dv2-c, .dv2-d, .dv2-e { animation: none; opacity:1; transform:none; }
}

/* Deterministic screenshots — set by ?dv2static=1, never in normal use. */
html[data-dv2-static="1"] .dv2-blob,
html[data-dv2-static="1"] .dv2-balloon,
html[data-dv2-static="1"] .dv2-loaddot,
html[data-dv2-static="1"] .dv2-spin__arc { animation: none; }
html[data-dv2-static="1"] .dv2-a,
html[data-dv2-static="1"] .dv2-b,
html[data-dv2-static="1"] .dv2-c,
html[data-dv2-static="1"] .dv2-d,
html[data-dv2-static="1"] .dv2-e { animation: none; opacity:1; transform:none; }


/* ── Small phones ──────────────────────────────────────────────────────── */

@media (max-height: 700px) {
  .dv2-hero { padding-top: 20px; }
  .dv2-badge-wrap { margin-bottom: 14px; }
  .dv2-features { margin-top: 16px; gap: 8px; }
  .dv2-hero__title { font-size: 30px; }
}
