/* =========================================================
   Aahiste · Evening light
   Calm, photo-led, editorial. Dusk ink on Mist, Marigold only for
   today's match, Rose only for moments of connection.
   ========================================================= */

:root {
  /* Brand constants (identical in both themes) */
  --brand-dusk: #2b2350;
  --brand-marigold: #f2a93b;
  --brand-mist: #f6f3fa;

  /* Mist theme */
  --bg: #f6f3fa;
  --paper: #ffffff;
  --ink: #1d1834;
  --ink-2: #5b5574;
  --ink-3: #857f9c;
  --line: rgba(43, 35, 80, 0.12);
  --tint: #ede8f7;
  --switch-off: #d6d0e3;
  --primary-bg: #2b2350;
  --primary-fg: #ffffff;
  --marigold-ink: #94600f;
  --marigold-soft: #fbecd3;
  --rose: #d9455f;
  --rose-soft: #fbe3e7;
  --leaf: #2f8f6f;
  --leaf-soft: #dff1ea;
  --dusk-surface: #2b2350;
  --on-dusk: #f6f3fa;
  --on-dusk-2: #bdb6da;
  --stage: #e9e4f1;
  --stage-glow: rgba(242, 169, 59, 0.2);
  --shadow: 0 1px 2px rgba(43, 35, 80, 0.06), 0 8px 24px rgba(43, 35, 80, 0.08);
  --bezel: #17132a;

  --font-display: 'Young Serif', Georgia, 'Times New Roman', serif;
  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-deva: 'Tiro Devanagari Hindi', 'Noto Serif Devanagari', 'Nirmala UI', serif;

  color-scheme: light;
}

/* Night theme, used for an explicit choice and for a dark system setting */
:root[data-theme="dark"] {
  --bg: #14111f;
  --paper: #1d1930;
  --ink: #f1eef8;
  --ink-2: #aea8c6;
  --ink-3: #7d7797;
  --line: rgba(255, 255, 255, 0.1);
  --tint: #262040;
  --switch-off: #3a3452;
  --primary-bg: #f1eef8;
  --primary-fg: #14111f;
  --marigold-ink: #f2a93b;
  --marigold-soft: #3a2f1a;
  --rose: #e8607a;
  --rose-soft: #3d1f2a;
  --leaf: #48c498;
  --leaf-soft: #173329;
  --dusk-surface: #221b42;
  --stage: #0e0c17;
  --stage-glow: rgba(242, 169, 59, 0.08);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.35);
  --bezel: #000000;
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #14111f;
    --paper: #1d1930;
    --ink: #f1eef8;
    --ink-2: #aea8c6;
    --ink-3: #7d7797;
    --line: rgba(255, 255, 255, 0.1);
    --tint: #262040;
    --switch-off: #3a3452;
    --primary-bg: #f1eef8;
    --primary-fg: #14111f;
    --marigold-ink: #f2a93b;
    --marigold-soft: #3a2f1a;
    --rose: #e8607a;
    --rose-soft: #3d1f2a;
    --leaf: #48c498;
    --leaf-soft: #173329;
    --dusk-surface: #221b42;
    --stage: #0e0c17;
    --stage-glow: rgba(242, 169, 59, 0.08);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.35);
    --bezel: #000000;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  background: var(--stage);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
button { font: inherit; color: inherit; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--brand-marigold); outline-offset: 2px; }
[hidden] { display: none !important; }

.ic { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ================= Prototype bar ================= */
.proto-bar {
  position: sticky; top: 0; z-index: 10;
  height: 56px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.proto-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.proto-word { font: 400 22px/1 var(--font-display); }
.app-ic {
  width: 34px; height: 34px; border-radius: 10px;
  background: var(--brand-dusk); color: var(--brand-marigold);
  display: grid; place-items: center;
  font: 400 22px/1 var(--font-deva); padding-top: 2px;
  flex: none;
}
.proto-nav { display: flex; align-items: center; gap: 8px; min-width: 0; }
.proto-btn {
  height: 36px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--paper); color: var(--ink);
  font: 600 13px var(--font-body); text-decoration: none; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
}
.proto-btn .ic { width: 17px; height: 17px; }
.proto-btn.icon-only { width: 36px; padding: 0; justify-content: center; }
.proto-btn[aria-disabled] { opacity: 0.35; pointer-events: none; }
.proto-label { font: 500 13px var(--font-body); color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 240px; font-variant-numeric: tabular-nums; }
body[data-view="overview"] #prevBtn, body[data-view="overview"] #nextBtn { display: none; }
@media (max-width: 720px) { .proto-label, .proto-btn span { display: none; } .proto-btn { width: 36px; padding: 0; justify-content: center; } }

/* ================= Stage & phone ================= */
.stage {
  min-height: calc(100dvh - 56px);
  display: grid; place-items: center;
  padding-block: 24px 32px;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  background: radial-gradient(ellipse 70% 50% at 50% 0%, var(--stage-glow), transparent 70%), var(--stage);
}
body[data-view="overview"] .stage { display: block; place-items: normal; padding: 0; }

.phone-wrap { --s: 1; width: calc(390px * var(--s)); height: calc(844px * var(--s)); }
.phone {
  width: 390px; height: 844px;
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
  background: var(--bg); color: var(--ink);
  border-radius: 54px;
}
.phone-wrap > .phone {
  transform: scale(var(--s)); transform-origin: top left;
  box-shadow: 0 0 0 11px var(--bezel), 0 0 0 12px rgba(255, 255, 255, 0.08), 0 40px 90px rgba(20, 16, 40, 0.35);
}
.phone.is-dusk { background: var(--dusk-surface); color: var(--on-dusk); }

.statusbar {
  height: 54px; flex: none;
  display: flex; align-items: flex-end; justify-content: space-between;
  padding: 0 34px 10px;
  font: 600 15px var(--font-body); font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.phone.is-dusk .statusbar { color: var(--on-dusk); }
.statusbar { position: relative; z-index: 5; }
.sb-icons { display: flex; gap: 6px; align-items: center; }
.sb-icons svg { height: 12px; width: auto; fill: currentColor; }

.screen { flex: 1; min-height: 0; display: flex; flex-direction: column; position: relative; }
.home-ind { position: absolute; bottom: 8px; left: 50%; width: 134px; height: 5px; border-radius: 3px; background: var(--ink); opacity: 0.8; transform: translateX(-50%); z-index: 6; }
.phone.is-dusk .home-ind { background: var(--on-dusk); }

.tabbar { flex: none; display: flex; justify-content: space-around; padding: 8px 8px 30px; background: var(--paper); border-top: 1px solid var(--line); }
.tab { display: flex; flex-direction: column; align-items: center; gap: 4px; flex: 1; min-width: 0; padding: 4px 0; background: none; border: 0; font: 500 11px var(--font-body); color: var(--ink-3); cursor: pointer; }
.tab.is-on { color: var(--ink); }
.tab.is-on .ic { stroke-width: 2; }
.tab-ic { position: relative; display: inline-flex; }
.badge { position: absolute; top: -5px; right: -9px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--rose); color: #fff; font: 700 11px/18px var(--font-body); text-align: center; box-shadow: 0 0 0 2px var(--paper); }

/* Phones: show the app full-bleed, no frame */
@media (max-width: 520px) {
  /* minmax(0, 1fr) stops the grid track from growing to fit wide content */
  body[data-view="screen"] .stage { padding: 0; place-items: stretch; grid-template-columns: minmax(0, 1fr); }
  .phone-wrap { width: 100%; height: calc(100dvh - 56px); }
  .phone-wrap > .phone { width: 100%; height: 100%; transform: none; border-radius: 0; box-shadow: none; }
  .phone-wrap > .phone .statusbar { height: 12px; padding: 0; visibility: hidden; }
  .phone-wrap > .phone .home-ind { display: none; }
  .phone-wrap > .phone .tabbar { padding-bottom: max(10px, env(safe-area-inset-bottom, 0px)); }
}

/* ================= Screen layout ================= */
.sh { flex: none; display: grid; grid-template-columns: 44px 1fr minmax(44px, auto); align-items: center; gap: 4px; min-height: 52px; padding: 2px 12px; }
.sh-title { font: 600 16px var(--font-body); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sh-right { display: flex; justify-content: flex-end; }
.icon-btn { width: 44px; height: 44px; border-radius: 50%; border: 0; background: none; display: grid; place-items: center; cursor: pointer; color: inherit; }
.icon-btn:hover { background: var(--tint); }
.text-btn { height: 44px; padding: 0 10px; border: 0; background: none; font: 600 15px var(--font-body); color: var(--ink); cursor: pointer; }

.body { flex: 1; min-height: 0; overflow-y: auto; padding: 8px 24px 24px; display: flex; flex-direction: column; gap: 20px; scrollbar-width: none; }
.body::-webkit-scrollbar { display: none; }
.body.center { align-items: center; text-align: center; justify-content: center; }
/* Soft fade where scrolling content meets the action area, so a cut-off line reads as "more below" */
.body:has(+ .actions), .body:has(+ .composer), .body:has(+ .suggest) { -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(to bottom, #000 calc(100% - 28px), transparent); }
.actions { flex: none; padding: 12px 24px 36px; display: flex; flex-direction: column; gap: 10px; }
.phone.has-tabs .actions { padding-bottom: 14px; }
.phone.is-dusk .actions { background: none; }

.progress { flex: none; height: 3px; margin: 0 24px 4px; background: var(--line); border-radius: 2px; overflow: hidden; }
.progress span { display: block; height: 100%; background: var(--ink); border-radius: 2px; }

/* ================= Type ================= */
.display { font: 400 34px/1.1 var(--font-display); letter-spacing: -0.01em; margin: 0; text-wrap: balance; }
.display.sm { font-size: 28px; }
.h1 { font: 400 28px/1.15 var(--font-display); letter-spacing: -0.005em; margin: 0; text-wrap: balance; }
.h2 { font: 400 21px/1.25 var(--font-display); margin: 0; text-wrap: balance; }
.lead { font-size: 15.5px; line-height: 1.55; color: var(--ink-2); }
.phone.is-dusk .lead { color: var(--on-dusk-2); }
.eyebrow { font: 600 11.5px/1.2 var(--font-body); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); margin: 0; }
.eyebrow.warm { color: var(--marigold-ink); }
.serif-lg { font: 400 19px/1.45 var(--font-display); }
.serif-md { font: 400 17px/1.45 var(--font-display); }
.micro { font-size: 12.5px; color: var(--ink-3); text-align: center; }
.micro.left { text-align: left; }
.phone.is-dusk .micro { color: var(--on-dusk-2); }
.q-head { display: flex; flex-direction: column; gap: 10px; padding-top: 6px; }
.name-block { display: flex; flex-direction: column; gap: 4px; }
.split { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.chip-count { font-weight: 600; color: var(--ink); }

/* ================= Buttons ================= */
.btn {
  width: 100%; height: 54px; padding: 0 22px;
  border: 0; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 15.5px var(--font-body); cursor: pointer;
  transition: transform 0.15s ease, opacity 0.2s ease;
}
.btn:active { transform: scale(0.98); }
.btn .ic { width: 20px; height: 20px; }
.btn-primary { background: var(--primary-bg); color: var(--primary-fg); }
.btn-rose { background: var(--rose); color: #ffffff; }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-quiet { background: none; color: var(--ink-2); height: 44px; }
.btn-light { background: var(--brand-mist); color: var(--brand-dusk); }
.btn-dusk-ghost { background: transparent; color: var(--on-dusk); box-shadow: inset 0 0 0 1.5px rgba(246, 243, 250, 0.3); }
.btn-sm { height: 42px; font-size: 14px; padding: 0 16px; }
.btn-row { display: flex; gap: 10px; }
.btn-row .btn { flex: 1; }
.linkish { align-self: flex-start; background: none; border: 0; padding: 0; font: 600 14px var(--font-body); color: var(--ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* ================= Choices ================= */
.opts { display: flex; flex-direction: column; gap: 10px; }
.opt {
  width: 100%; display: flex; align-items: center; gap: 14px;
  padding: 16px 18px; text-align: left;
  background: var(--paper); border: 1.5px solid var(--line); border-radius: 18px;
  cursor: pointer; transition: border-color 0.2s, background 0.2s;
}
.opt-text { flex: 1; min-width: 0; }
.opt b { display: block; font-weight: 600; font-size: 15.5px; }
.opt small { display: block; margin-top: 2px; font-size: 13px; color: var(--ink-2); }
.opt-dot { width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--line); display: grid; place-items: center; color: transparent; flex: none; }
.opt-dot .ic { width: 14px; height: 14px; stroke-width: 2.6; }
.opt.is-on { border-color: var(--ink); background: var(--tint); }
.opt.is-on .opt-dot { background: var(--ink); border-color: var(--ink); color: var(--bg); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { height: 40px; padding: 0 16px; border-radius: 999px; background: var(--paper); border: 1.5px solid var(--line); font: 500 14px var(--font-body); color: var(--ink); cursor: pointer; transition: background 0.2s, color 0.2s; }
.chip.is-on { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.chip.static { height: 32px; padding: 0 12px; font-size: 13px; cursor: default; display: inline-flex; align-items: center; background: var(--tint); border-color: transparent; color: var(--ink-2); }

.tag { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 999px; font: 600 12px var(--font-body); background: var(--tint); color: var(--ink-2); white-space: nowrap; }
.tag .ic { width: 14px; height: 14px; stroke-width: 2; }
.tag.leaf { background: var(--leaf-soft); color: var(--leaf); }
.tag.warm { background: var(--marigold-soft); color: var(--marigold-ink); }
.tag.rose { background: var(--rose-soft); color: var(--rose); }
.tag.on-photo { background: rgba(255, 255, 255, 0.92); color: var(--brand-dusk); }

.seg { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--tint); }
.seg button { flex: 1; height: 38px; border: 0; border-radius: 999px; background: transparent; font: 600 13.5px var(--font-body); color: var(--ink-2); cursor: pointer; }
.seg button.is-on { background: var(--paper); color: var(--ink); box-shadow: var(--shadow); }
.seg-field { display: flex; flex-direction: column; gap: 8px; }
.seg-field > span { font: 600 13px var(--font-body); color: var(--ink-2); }

.range { display: flex; flex-direction: column; gap: 10px; }
.range-head { display: flex; justify-content: space-between; font: 600 13px var(--font-body); color: var(--ink-2); }
.range-head b { color: var(--ink); font-variant-numeric: tabular-nums; }
.range input { width: 100%; accent-color: var(--ink); margin: 0; }
.range-labels { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--ink-3); }

/* ================= Lists ================= */
.group { display: flex; flex-direction: column; gap: 10px; }
.rows { background: var(--paper); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; flex: none; }
.row { width: 100%; min-height: 58px; display: flex; align-items: center; gap: 14px; padding: 12px 16px; background: none; border: 0; border-bottom: 1px solid var(--line); text-align: left; color: var(--ink); cursor: pointer; }
.rows > .row:last-child { border-bottom: 0; }
div.row { cursor: default; }
button.row:hover { background: var(--tint); }
.row-ic { width: 36px; height: 36px; border-radius: 12px; background: var(--tint); display: grid; place-items: center; flex: none; }
.row-ic .ic { width: 19px; height: 19px; }
.row-main { flex: 1; min-width: 0; }
.row-main b { display: block; font-weight: 600; font-size: 15px; }
.row-main small { display: block; margin-top: 1px; font-size: 13px; color: var(--ink-2); }
.row-val { font-size: 14px; color: var(--ink-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.row-chev { width: 18px; height: 18px; color: var(--ink-3); }
.row.danger, .row.danger .row-main b { color: var(--rose); }
.row.danger .row-ic { background: var(--rose-soft); color: var(--rose); }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--rose); flex: none; }

.switch { width: 50px; height: 30px; flex: none; border: 0; border-radius: 999px; background: var(--switch-off); position: relative; cursor: pointer; transition: background 0.2s; }
.switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #ffffff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25); transition: transform 0.2s; }
.switch[aria-checked="true"] { background: var(--leaf); }
.switch[aria-checked="true"]::after { transform: translateX(20px); }

/* ================= Form fields ================= */
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field-label { font: 600 13px var(--font-body); color: var(--ink-2); }
.field-box { display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 0 18px; background: var(--paper); border: 1.5px solid var(--line); border-radius: 16px; }
.field-box.area { align-items: flex-start; padding: 14px 18px; }
.field-box:focus-within { border-color: var(--ink); }
.field input, .field textarea { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: 500 17px var(--font-body); color: var(--ink); resize: none; line-height: 1.5; }
.field textarea { font-size: 15.5px; }
.field-prefix { font-weight: 600; color: var(--ink-2); padding-right: 12px; border-right: 1px solid var(--line); }
.field small { font-size: 12.5px; color: var(--ink-3); }
.dob { display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: 10px; }
.otp { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.otp input { width: 100%; min-width: 0; height: 58px; text-align: center; font: 400 24px var(--font-display); color: var(--ink); background: var(--paper); border: 1.5px solid var(--line); border-radius: 14px; outline: 0; }
.otp input:focus { border-color: var(--ink); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 13.5px; line-height: 1.5; color: var(--ink-2); }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--ink); flex: none; }
.search { display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 16px; border-radius: 999px; background: var(--tint); color: var(--ink-3); }
.search input { flex: 1; border: 0; outline: 0; background: transparent; font: 15px var(--font-body); color: var(--ink); }

.note { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.5; color: var(--ink-2); }
.note .ic { width: 17px; height: 17px; margin-top: 1px; color: var(--ink-3); }

/* ================= Cards & content ================= */
.card { background: var(--paper); border: 1px solid var(--line); border-radius: 22px; padding: 18px; display: flex; flex-direction: column; gap: 10px; flex: none; }
.card.leaf-card { background: var(--leaf-soft); border-color: transparent; }
.card.intro { gap: 14px; }
.who-row { display: flex; align-items: center; gap: 12px; }
.who-row b { display: block; font-weight: 600; }
.who-row small { display: block; font-size: 13px; color: var(--ink-2); }

.av { width: 44px; height: 44px; border-radius: 50%; display: inline-grid; place-items: center; flex: none; object-fit: cover; font: 600 15px var(--font-body); }
.av-lg { width: 76px; height: 76px; font-size: 24px; }
.av-xl { width: 120px; height: 120px; font: 400 44px var(--font-display); }
.av-a { background: var(--marigold-soft); color: var(--marigold-ink); }
.av-b { background: var(--rose-soft); color: var(--rose); }
.av-c { background: var(--leaf-soft); color: var(--leaf); }
.av-d { background: var(--tint); color: var(--ink-2); }

.photo { position: relative; display: block; width: 100%; padding: 0; border: 0; border-radius: 28px; overflow: hidden; aspect-ratio: 4 / 5; background: var(--tint); flex: none; cursor: pointer; }
.photo.wide { aspect-ratio: 3 / 1; cursor: default; }
.photo.today { aspect-ratio: 4 / 3; }
.photo.today img { object-position: center 30%; }

/* Today home feed */
.circle-status { flex: none; display: flex; flex-direction: column; gap: 8px; padding: 18px; border-radius: 22px; background: var(--brand-dusk); color: var(--on-dusk); }
.circle-status .eyebrow { color: var(--brand-marigold); }
.circle-status .micro { color: var(--on-dusk); opacity: 0.75; }
.circle-status .meter { background: rgba(255, 255, 255, 0.16); }
.highlights { display: flex; flex-wrap: wrap; gap: 6px; }
/* Photo stand-in: one quiet evening gradient for every member, so no colour competes with Rose or Marigold */
.portrait { display: grid; place-items: center; width: 100%; height: 92px; border-radius: 12px; background: linear-gradient(170deg, var(--tint) 35%, var(--paper) 100%); border: 1px solid var(--line); color: var(--ink-3); font: 400 30px var(--font-display); }
.portrait.sm { width: 48px; height: 48px; border-radius: 14px; font-size: 20px; flex: none; }
.portrait.lg { position: absolute; inset: 0; width: auto; height: auto; place-items: start center; padding-top: 16%; border: 0; border-radius: 0; font-size: 96px; }
img.portrait { display: block; object-fit: cover; object-position: center 25%; }
img.portrait.lg { width: 100%; height: 100%; padding: 0; }
.circle-row { gap: 12px; }

/* Today's Circle: Ava's pick, a sideways strip of the rest, and two plan perks */
.pick-row { margin-top: -6px; }
.pick-row .btn { width: auto; flex: none; }
.circle { display: flex; gap: 10px; overflow-x: auto; margin: 0 -24px; padding: 2px 24px 4px; scroll-padding-inline: 24px; scroll-snap-type: x mandatory; scrollbar-width: none; flex: none; }
.circle::-webkit-scrollbar { display: none; }
.circle-card { flex: none; width: 128px; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 8px 8px 12px; border-radius: 18px; background: var(--paper); border: 1px solid var(--line); text-align: left; color: var(--ink); scroll-snap-align: start; cursor: pointer; }
.circle-card b { font-size: 14px; font-weight: 600; }
.circle-card small { font-size: 12px; line-height: 1.35; color: var(--ink-2); }
.circle-card.more { padding: 12px; background: var(--tint); border-color: transparent; justify-content: center; }
.circle-card.more .ic { width: 22px; height: 22px; color: var(--ink-2); }
p.circle-card.more { margin: 0; cursor: default; }
.perks { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; flex: none; }
.perk { display: grid; grid-template-columns: auto 1fr; gap: 2px 8px; align-items: center; padding: 12px; border-radius: 16px; background: var(--paper); border: 1px solid var(--line); text-align: left; color: var(--ink); cursor: pointer; }
.perk .ic { width: 18px; height: 18px; color: var(--ink-2); }
.perk b { font-size: 14px; font-weight: 600; }
.perk small { grid-column: 1 / -1; font-size: 12px; color: var(--ink-2); }
.perk.is-locked { background: var(--tint); border-color: transparent; }
/* Discover · Swipe: one card at a time over a hint of the stack */
.deck { position: relative; flex: 1; min-height: 330px; display: flex; }
.deck::before, .deck::after { content: ''; position: absolute; left: 14px; right: 14px; bottom: -8px; height: 40px; border-radius: 28px; background: var(--paper); border: 1px solid var(--line); z-index: 0; }
.deck::after { left: 28px; right: 28px; bottom: -15px; opacity: 0.6; z-index: -1; }
.swipe-card { position: relative; z-index: 1; flex: 1; background: linear-gradient(170deg, var(--tint) 35%, var(--paper) 100%); color: var(--ink-3); display: flex; flex-direction: column; justify-content: flex-end; border-radius: 28px; overflow: hidden; box-shadow: var(--shadow); }

/* Details sit on a Dusk gradient over the photo, so the photo stays visible */
.swipe-verified { position: absolute; top: 14px; left: 14px; z-index: 1; }
.swipe-more { position: absolute; top: 10px; right: 10px; z-index: 1; background: rgba(255, 255, 255, 0.92); color: var(--brand-dusk); }
.swipe-more:hover { background: #fff; }
.swipe-info { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 64px 18px 18px; background: linear-gradient(to top, rgba(28, 22, 52, 0.92) 0%, rgba(28, 22, 52, 0.7) 55%, rgba(28, 22, 52, 0) 100%); color: #fff; }
.swipe-info .h2 { color: #fff; }
.swipe-info p { font-size: 13.5px; color: rgba(255, 255, 255, 0.85); }
.swipe-info .chips { gap: 6px; }
.swipe-info .chip.static { height: 26px; font-size: 12.5px; background: rgba(255, 255, 255, 0.16); color: #fff; }
.swipe-info .swipe-why { display: inline-flex; align-items: center; gap: 6px; color: #fff; font-weight: 600; }
.swipe-why .ic { width: 16px; height: 16px; color: var(--brand-marigold); }
.swipe-actions { flex: none; display: flex; justify-content: center; align-items: center; gap: 16px; padding-top: 6px; }
.swipe-btn { position: relative; width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); border: 1px solid var(--line); color: var(--ink); box-shadow: var(--shadow); cursor: pointer; }
.swipe-btn .ic { width: 26px; height: 26px; }
.swipe-btn.sm { width: 46px; height: 46px; }
.swipe-btn.sm .ic { width: 20px; height: 20px; }
.swipe-btn.rose { background: var(--rose); border-color: transparent; color: #fff; }
.swipe-btn.is-locked { opacity: 0.55; }
.swipe-btn:disabled { opacity: 0.4; cursor: default; }
.swipe-lock { position: absolute; right: -4px; bottom: -4px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); border: 1px solid var(--line); color: var(--ink-2); }
.swipe-btn .swipe-lock .ic { width: 12px; height: 12px; }
.deck-end { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center; }
.deck-end .lead { max-width: 30ch; }
.deck-end .locked-ic { width: 56px; height: 56px; border-radius: 18px; background: var(--tint); }

/* Discover · Nearby: areas with counts, never people's positions */
.city-map { position: relative; flex: none; height: 172px; border-radius: 24px; overflow: hidden; background: var(--tint); }
.city-map .water { position: absolute; left: 24%; top: -10%; width: 12%; height: 120%; border-radius: 50%; background: var(--paper); opacity: 0.7; transform: rotate(8deg); }
.map-area { position: absolute; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 6px; padding: 6px 6px 6px 10px; border-radius: 999px; border: 0; background: var(--paper); color: var(--ink); font: 600 12px var(--font-body); white-space: nowrap; box-shadow: var(--shadow); cursor: pointer; }
.map-area b { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--tint); font: 700 11px/22px var(--font-body); text-align: center; }
.map-area.is-you { background: var(--brand-dusk); color: #fff; }
.map-area.is-you b { background: var(--brand-marigold); color: var(--brand-dusk); }
.map-area.is-you::before { content: ''; position: absolute; inset: -14px; border-radius: 999px; background: var(--brand-marigold); opacity: 0.18; z-index: -1; }

.faces { display: inline-flex; }
.faces .av { width: 28px; height: 28px; font-size: 10.5px; box-shadow: 0 0 0 2px var(--paper); }
.faces .av + .av { margin-left: -8px; }
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-tags { position: absolute; top: 14px; left: 14px; display: flex; gap: 6px; }

.ava-note { display: flex; gap: 12px; align-items: flex-start; }
.ava-note .av { width: 36px; height: 36px; }
.ava-note .who { font: 600 12px var(--font-body); letter-spacing: 0.04em; color: var(--ink-3); margin-bottom: 4px; }
.ava-note .quote { font: 400 17px/1.45 var(--font-display); }

.prompt { position: relative; flex: none; background: var(--paper); border: 1px solid var(--line); border-radius: 20px; padding: 16px 52px 16px 18px; display: flex; flex-direction: column; gap: 6px; }
.prompt-a { font: 400 18px/1.4 var(--font-display); }
.prompt .icon-btn { position: absolute; top: 6px; right: 6px; color: var(--ink-3); }
.prompt-empty { flex: none; width: 100%; height: 64px; border: 1.5px dashed var(--line); border-radius: 20px; background: none; display: flex; align-items: center; justify-content: center; gap: 8px; font: 600 14.5px var(--font-body); color: var(--ink-2); cursor: pointer; }

.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 22px; }
.steps li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; }
.step-n { width: 44px; height: 44px; border-radius: 50%; background: var(--tint); display: grid; place-items: center; font: 400 20px var(--font-display); }
.steps b { display: block; font-weight: 600; font-size: 16px; margin-bottom: 2px; }
.steps p { font-size: 14.5px; line-height: 1.5; color: var(--ink-2); }
.pledge .step-n { background: var(--leaf-soft); color: var(--leaf); width: 36px; height: 36px; }
.pledge li { grid-template-columns: 36px 1fr; }
.pledge .step-n .ic { width: 18px; height: 18px; stroke-width: 2.2; }

.bullets { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 8px; font-size: 14.5px; color: var(--ink-2); }

/* Photos placeholders for the user's own uploads */
.ph-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.ph-tile { position: relative; aspect-ratio: 3 / 4; border-radius: 16px; border: 1.5px dashed var(--line); background: var(--paper); display: grid; place-items: center; color: var(--ink-3); cursor: pointer; padding: 0; }
.ph-tile .ic { width: 28px; height: 28px; }
.ph-tile.sm { width: 64px; aspect-ratio: 3 / 4; }
.ph-tile.filled, .ph-thumb { border: 0; background: linear-gradient(160deg, #e7c39b, #a8735f); color: rgba(255, 255, 255, 0.85); }
.ph-tile.filled.b, .ph-thumb.b { background: linear-gradient(160deg, #b9c7d9, #5d6f8a); }
.ph-tile.filled.c, .ph-thumb.c { background: linear-gradient(160deg, #cfe0c3, #6f8f62); }
.ph-n { position: absolute; left: 9px; bottom: 7px; font: 600 12px var(--font-body); color: #ffffff; }
.ph-badge { position: absolute; top: 8px; right: 8px; width: 22px; height: 22px; border-radius: 50%; background: #ffffff; color: #2f8f6f; display: grid; place-items: center; }
.ph-badge .ic { width: 13px; height: 13px; stroke-width: 2.8; }
.ph-thumb { width: 40px; height: 52px; border-radius: 10px; flex: none; display: block; }
.ph-thumb.lg { width: 64px; height: 85px; border-radius: 14px; }
.ph-strip { display: flex; gap: 10px; }

.me-card { display: flex; flex-direction: column; gap: 14px; }
.me-photo { aspect-ratio: 16 / 9; border-radius: 28px; overflow: hidden; background: var(--tint); }
.me-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; display: block; }
.me-head { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding-top: 8px; }
.me-row { display: flex; align-items: center; gap: 16px; padding-top: 6px; }
.me-row .h1 { display: flex; align-items: center; gap: 8px; }
.verified { color: var(--leaf); display: inline-flex; }
.verified .ic { width: 22px; height: 22px; }
.links { display: flex; gap: 16px; margin-top: 6px; }
.split .linkish { white-space: nowrap; }
.meter { height: 6px; border-radius: 3px; background: var(--tint); overflow: hidden; }
.meter span { display: block; height: 100%; background: var(--brand-marigold); border-radius: 3px; }

/* Welcome */
.welcome-hero { flex: none; height: 330px; margin: -54px 0 0; border-radius: 0 0 36px 36px; overflow: hidden; }
.welcome-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.phone .welcome-hero + .body { padding-top: 24px; }

/* Notification preview */
.notif { display: flex; gap: 12px; padding: 14px 16px; border-radius: 20px; background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow); }
.notif b { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.notif p { font-size: 14.5px; }

/* Dusk screens */
.dusk-body { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 0 32px; text-align: center; color: var(--on-dusk); }
.splash-mark { font: 400 132px/1 var(--font-deva); color: var(--brand-marigold); }
.wordmark { font: 400 44px/1 var(--font-display); margin: 0; letter-spacing: -0.01em; }
.dusk-ic { width: 72px; height: 72px; border-radius: 50%; background: rgba(246, 243, 250, 0.1); display: grid; place-items: center; color: var(--brand-marigold); }
.dusk-ic .ic { width: 34px; height: 34px; }
.pair { display: flex; margin-bottom: 8px; }
.pair > * { width: 116px; height: 116px; border-radius: 50%; border: 4px solid var(--dusk-surface); object-fit: cover; }
.pair > :last-child { margin-left: -30px; }

/* Chat */
.chat { gap: 8px; }
.chat-time { text-align: center; font-size: 12px; color: var(--ink-3); margin: 4px 0; }
.bubble { max-width: 80%; padding: 10px 14px; border-radius: 20px; font-size: 15px; line-height: 1.45; flex: none; }
.bubble.them { align-self: flex-start; background: var(--paper); border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.bubble.me { align-self: flex-end; background: var(--primary-bg); color: var(--primary-fg); border-bottom-right-radius: 6px; }
.chat-who { display: flex; align-items: center; gap: 10px; background: none; border: 0; padding: 0; cursor: pointer; min-width: 0; justify-self: start; text-align: left; }
.chat-who .av { width: 36px; height: 36px; }
.chat-who b { display: block; font-weight: 600; font-size: 15px; }
.chat-who small { display: block; font-size: 12px; color: var(--ink-3); }
.ava-hint { display: flex; gap: 10px; align-items: flex-start; flex: none; margin-top: 8px; padding: 12px 14px; border-radius: 16px; background: var(--marigold-soft); font-size: 13.5px; line-height: 1.5; }
.ava-hint .ic { width: 18px; height: 18px; margin-top: 1px; color: var(--marigold-ink); }
.ava-hint .linkish { display: inline; font-size: 13.5px; }
.suggest { flex: none; padding: 0 16px 10px; }
.suggest .chip { height: 36px; font-size: 13.5px; }
.composer { flex: none; display: flex; align-items: center; gap: 8px; padding: 10px 16px 34px; background: var(--paper); border-top: 1px solid var(--line); }
.composer input { flex: 1; min-width: 0; height: 46px; padding: 0 18px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--bg); font: 15px var(--font-body); color: var(--ink); outline: 0; }
.composer input:focus { border-color: var(--ink); }
.send { width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--primary-bg); color: var(--primary-fg); display: grid; place-items: center; cursor: pointer; flex: none; }
.send .ic { width: 20px; height: 20px; }

/* Sheets */
.under { position: absolute; inset: 0; display: flex; flex-direction: column; }
.sheet-wrap { position: absolute; inset: 0; z-index: 4; display: flex; align-items: flex-end; background: rgba(20, 16, 40, 0.5); }
.sheet { width: 100%; max-height: 94%; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; padding: 10px 24px 36px; background: var(--bg); border-radius: 30px 30px 0 0; scrollbar-width: none; }
.grabber { width: 40px; height: 5px; border-radius: 3px; background: var(--line); margin: 0 auto 4px; flex: none; }

/* Events & dates */
.event { width: 100%; padding: 0; display: flex; flex-direction: column; text-align: left; background: var(--paper); border: 1px solid var(--line); border-radius: 24px; overflow: hidden; cursor: pointer; flex: none; }
.event img { width: 100%; height: 136px; object-fit: cover; display: block; }
.event-body { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 16px 18px; }
.event h3 { margin: 0; font: 400 20px/1.25 var(--font-display); }
.event-meta { font-size: 13.5px; color: var(--ink-2); }
.event.compact { flex-direction: row; }
.event.compact img { width: 104px; height: auto; align-self: stretch; flex: none; }
.event.compact .event-body { min-width: 0; padding: 14px 16px; }
.ratio { display: flex; gap: 3px; height: 10px; border-radius: 999px; overflow: hidden; }
.ratio span { flex: 1; }
.ratio span:first-child { background: var(--rose); }
.ratio span:last-child { background: var(--ink); }

.invite, .ticket { flex: none; display: flex; flex-direction: column; gap: 12px; padding: 24px; border-radius: 28px; background: var(--brand-dusk); color: var(--brand-mist); }
.invite .eyebrow, .ticket .eyebrow { color: var(--brand-marigold); }
.invite h1, .ticket h1 { margin: 0; font: 400 26px/1.2 var(--font-display); }
.invite-row { display: flex; align-items: center; gap: 10px; font-size: 14.5px; color: #d9d4ee; }
.invite-row .ic { width: 18px; height: 18px; color: var(--brand-marigold); }
.ticket { align-items: center; text-align: center; }
.ticket p { color: #d9d4ee; }
.ticket hr { width: 100%; border: 0; border-top: 1.5px dashed rgba(246, 243, 250, 0.3); margin: 6px 0; }
.ticket .micro { color: #bdb6da; }
.qr-box { background: #ffffff; padding: 14px; border-radius: 18px; }
.qr { width: 164px; height: 164px; display: block; fill: #1d1834; shape-rendering: crispEdges; }

/* Safety */
.alert { flex: none; display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: 20px; background: var(--marigold-soft); }
.alert-head { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.alert-head .ic { color: var(--marigold-ink); }

/* Plans & payment */
.plan .opt-text { display: flex; flex-direction: column; }
.plan-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 10px; }
.plan-top b { display: flex; align-items: center; gap: 8px; }
.price { font: 400 24px var(--font-display); white-space: nowrap; }
.price small { display: inline; font: 500 13px var(--font-body); color: var(--ink-2); }
.plan ul { margin: 8px 0 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; font-size: 13.5px; color: var(--ink-2); }
.micro-row { font-size: 14px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.split.total { padding-top: 10px; border-top: 1px solid var(--line); font-variant-numeric: tabular-nums; }

/* Toast */
.toast { position: absolute; left: 16px; right: 16px; bottom: 110px; z-index: 8; padding: 12px 16px; border-radius: 14px; background: var(--ink); color: var(--bg); font: 500 14px var(--font-body); text-align: center; opacity: 0; transform: translateY(8px); transition: opacity 0.25s, transform 0.25s; pointer-events: none; }
.toast.show { opacity: 1; transform: none; }

/* ================= Overview ================= */
.overview { --ms: 0.46; width: 100%; max-width: 1320px; margin: 0 auto; padding-block: 40px 80px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); display: flex; flex-direction: column; gap: 48px; }
.ov-head { display: flex; flex-direction: column; gap: 10px; max-width: 62ch; }
.ov-section { display: flex; flex-direction: column; gap: 18px; }
.ov-section-head { display: flex; align-items: baseline; gap: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.ov-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 28px 20px; }
.mini { display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: var(--ink); }
.mini-frame { position: relative; display: block; width: 100%; aspect-ratio: 390 / 844; border-radius: 22px; overflow: hidden; background: var(--bg); box-shadow: 0 0 0 1px var(--line), var(--shadow); transition: transform 0.2s ease, box-shadow 0.2s ease; }
.mini:hover .mini-frame { transform: translateY(-3px); box-shadow: 0 0 0 1.5px var(--ink), var(--shadow); }
.mini-frame .phone { position: absolute; top: 0; left: 0; transform: scale(var(--ms)); transform-origin: top left; border-radius: 0; pointer-events: none; }
.mini-label { display: flex; gap: 8px; font-size: 13.5px; color: var(--ink-2); }
.mini-label b { font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }

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

/* ================= Business plans ================= */
.proto-plan { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 6px 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); font: 600 13px var(--font-body); color: var(--ink-2); }
.proto-plan select { height: 28px; border: 0; border-radius: 999px; padding: 0 8px; background: var(--tint); color: var(--ink); font: 600 13px var(--font-body); cursor: pointer; }
@media (max-width: 720px) { .proto-plan { padding-left: 6px; } .proto-plan > span { display: none; } }
@media (max-width: 520px) { .proto-word { display: none; } .proto-plan select { max-width: 112px; } .proto-nav { gap: 4px; } }

/* Locked feature: shows what the plan unlocks, never a dead end */
.locked { flex: none; display: grid; grid-template-columns: auto 1fr; gap: 12px 14px; align-items: start; padding: 16px; border-radius: 20px; background: var(--tint); }
.locked-ic { width: 36px; height: 36px; border-radius: 12px; background: var(--paper); color: var(--ink); display: grid; place-items: center; }
.locked-ic .ic { width: 18px; height: 18px; }
.locked-text b { display: block; font-weight: 600; font-size: 15px; }
.locked-text p { font-size: 13.5px; line-height: 1.5; color: var(--ink-2); margin-top: 2px; }
.locked .btn { grid-column: 1 / -1; }
.hidden-intro .av { filter: blur(0.5px); }
.blur { filter: blur(6px); user-select: none; }
s, .was { color: var(--ink-3); font-weight: 400; }
.card-extra { padding-top: 10px; border-top: 1px solid var(--line); font-size: 14px; }
.card-extra span { display: inline-flex; align-items: center; gap: 6px; }
.card-extra .ic { width: 18px; height: 18px; color: var(--marigold-ink); }

/* Overview: plan tag and comparison table */
.mini-plan { align-self: flex-start; margin-top: -4px; padding: 2px 8px; border-radius: 999px; background: var(--marigold-soft); color: var(--marigold-ink); font: 600 11px var(--font-body); }
.ov-matrix { display: flex; flex-direction: column; gap: 14px; }
.mx-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); }
.mx { width: 100%; min-width: 620px; border-collapse: collapse; font-size: 14px; }
.mx th, .mx td { padding: 11px 16px; text-align: left; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.mx thead th { font: 600 12px var(--font-body); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
.mx tbody th { font-weight: 500; color: var(--ink); }
.mx tr:last-child th, .mx tr:last-child td { border-bottom: 0; }
.mx .mx-current { background: var(--tint); }
.mx thead .mx-current { color: var(--ink); }
.mx-yes { color: var(--leaf); display: inline-flex; }
.mx-yes .ic { width: 18px; height: 18px; stroke-width: 2.4; }
.mx-no { color: var(--ink-3); }
.mx a { color: var(--ink); font-weight: 600; text-underline-offset: 3px; }
.mx .mx-group th { padding-top: 18px; background: var(--bg); font: 600 12px var(--font-body); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); }
