/* Work Wives — "Purple Circle".
   Layout concept: a white page held in a soft lavender frame, rounded cards and bands,
   deep plum for the big moments, black for text and action.
   Type: Fraunces Light for headlines (its italic for emphasis), Outfit for everything else.
   Deliberately light-only. */
:root {
  --frame: #DCCBF2;
  --bg: #FFFFFF;
  --ink: #141414;
  --muted: #5C5C5C;
  --line: #ECE4F5;
  --plum: #4B1F63;
  --lav: #DCCBF2;
  --lilac: #C7AEE6;
  --mist: #EFE6FA;
  --whisper: #F8F4FD;
  --on-plum: #FFFFFF;
  --on-plum-soft: #E9DFF5;
  --scrim: rgba(20, 20, 20, .45);

  /* Older names still used by app screens, mapped onto the palette */
  --cream: var(--whisper);
  --wine: var(--ink);
  --wine-2: #000000;
  --on-wine: #FFFFFF;
  --pink: var(--lav);
  --pink-soft: var(--mist);
  --lilac-soft: var(--whisper);
  --lime: var(--lav);
  --lime-soft: var(--mist);
  --orange: var(--ink);
  --ok: var(--plum); --ok-soft: var(--mist);
  --danger: var(--ink); --danger-soft: var(--mist);

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-serif: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;

  --step--1: .8125rem;
  --step-0: 1rem;
  --step-1: 1.125rem;
  --step-2: 1.5rem;
  --step-3: clamp(1.9rem, 1.3rem + 2vw, 2.7rem);
  --step-4: clamp(2.3rem, 1.4rem + 3vw, 3.5rem);

  --r-sm: 12px;
  --r-md: 22px;
  --r-lg: 28px;
  --shadow: 0 1px 2px rgba(20, 20, 20, .05), 0 18px 40px -26px rgba(75, 31, 99, .35);
  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: var(--step-0); line-height: 1.6; -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 40; background: var(--bg); }
img { max-width: 100%; display: block; }
a { color: var(--ink); text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 300; line-height: 1.1; margin: 0; text-wrap: balance; letter-spacing: -.015em; }
h1 em, h2 em, h3 em, .serif { font-family: var(--font-serif); font-style: italic; font-weight: 300; }
p { margin: 0; }
mark { background: var(--lav); color: inherit; padding: 1px 5px; border-radius: 4px; }
:focus-visible { outline: 3px solid var(--plum); outline-offset: 2px; border-radius: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: 1160px; margin-inline: auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }

/* ---------- Brand ---------- */
.brand { display: inline-flex; align-items: center; text-decoration: none; flex: none; }
.brand img { height: 50px; width: auto; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 22px; border-radius: 999px; border: 1.5px solid transparent; font-weight: 500; font-size: .95rem; text-decoration: none; cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s, color .15s, transform .15s; }
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #000; }
.btn-plum { background: var(--plum); color: #fff; }
.btn-lav { background: var(--lav); color: #1E0A2A; }
.btn-lav:hover { background: #CDB6EC; }
.btn-lime { background: var(--plum); color: #fff; }
.btn-ghost { background: #fff; border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-outline-light { background: transparent; border-color: var(--lav); color: #fff; }
.btn-soft { background: var(--mist); color: var(--ink); }
.btn-soft:hover { background: var(--lav); }
.btn-white { background: #fff; color: var(--ink); }
.btn-danger { background: var(--mist); color: var(--ink); border-color: var(--ink); }
.btn-sm { min-height: 38px; padding: 6px 16px; font-size: .875rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }
.link-btn { background: none; border: 0; padding: 0; color: var(--ink); text-decoration: underline; cursor: pointer; font-weight: 500; }

/* ---------- Demo bar ---------- */
.demo-bar { background: var(--mist); color: var(--ink); font-size: .8125rem; padding-top: 8px; padding-bottom: 8px; }
.demo-bar .wrap { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; justify-content: center; text-align: center; }
.demo-bar button { background: none; border: 0; color: inherit; text-decoration: underline; cursor: pointer; padding: 2px; font: inherit; font-weight: 500; }

.sparkle { position: absolute; width: 26px; height: 26px; color: var(--plum); pointer-events: none; }
.sparkle svg { width: 100%; height: 100%; }

/* ---------- Landing (homepage 5) ---------- */
.frame { background: #fff; }
.page { background: #fff; overflow: hidden; }
.pad { padding-left: max(18px, min(3.4vw, 44px)); padding-right: max(18px, min(3.4vw, 44px)); }
.topbar { background: var(--ink); color: #fff; text-align: center; font-size: 13px; letter-spacing: .04em; padding: 10px 16px; }
.site-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; padding-top: 20px; padding-bottom: 20px; }
.site-head nav { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; font-size: 15px; }
.site-head nav .plain { text-decoration: none; }

.hero { position: relative; border-radius: var(--r-lg); overflow: hidden; background: var(--plum); display: grid; grid-template-columns: 1.05fr .95fr; min-height: 500px; }
.hero-copy { padding: clamp(36px, 5vw, 64px) clamp(24px, 4vw, 56px); display: flex; flex-direction: column; justify-content: center; gap: 22px; color: #fff; }
.hero-kicker { font-family: var(--font-serif); font-style: italic; font-weight: 300; font-size: 20px; color: var(--lav); }
.hero h1 { font-size: var(--step-4); line-height: 1.08; color: #fff; }
.hero h1 em { color: var(--lav); }
.hero .lede { font-size: 17px; line-height: 1.55; max-width: 38ch; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero .fine { font-size: 13px; color: var(--on-plum-soft); }
.hero-art { position: relative; margin: 0; min-height: 440px; background: #8E6BB0; overflow: hidden; }
.hero-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.ex { background: #fff; color: var(--ink); border-radius: var(--r-md); padding: 18px 20px; box-shadow: var(--shadow); }
.hero-art .ex { position: absolute; left: 24px; right: 24px; bottom: 24px; max-width: 330px; transform: rotate(-2deg); }
.ex .top { display: flex; gap: 12px; align-items: center; }
.ex b { font-family: var(--font-display); font-weight: 400; font-size: 1.15rem; display: block; line-height: 1.2; }
.ex small { color: var(--muted); font-size: .8rem; }
.ex p { font-size: .9rem; margin-top: 10px; line-height: 1.5; }
.ex .tag { display: inline-block; margin-top: 10px; font-size: .7rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--plum); }

.band { background: var(--mist); padding-top: 72px; padding-bottom: 72px; margin-top: 56px; }
.lonely { text-align: center; line-height: 1.05; }
.lonely span { display: block; }
.lonely .a { font-family: var(--font-body); font-weight: 600; font-size: clamp(26px, 3vw, 36px); letter-spacing: -.02em; }
.lonely .b { font-family: var(--font-serif); font-style: italic; font-weight: 300; font-size: clamp(30px, 3.6vw, 44px); letter-spacing: -.02em; }
.cards3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; margin-top: 44px; }
.card-w { background: #fff; border-radius: var(--r-md); padding: 28px 26px; }
.card-w h3 { font-size: 21px; }
.card-w p { margin-top: 10px; font-size: 15px; color: #4A4A4A; }

.section { padding-top: 72px; padding-bottom: 0; }
.pill-label { display: inline-block; background: var(--lav); font-weight: 600; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; }
.h2 { font-size: clamp(30px, 3.4vw, 42px); }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 48px 0 0; padding: 0; list-style: none; }
.step { padding: 0 24px; border-left: 1px solid var(--lav); display: flex; flex-direction: column; gap: 14px; }
.step:first-child { padding-left: 0; border-left: 0; }
.step .num { display: flex; align-items: flex-start; gap: 6px; }
.step .num i { font-style: normal; font-size: 20px; }
.step .num span { font-family: var(--font-display); font-weight: 300; font-size: 72px; line-height: .9; letter-spacing: -.03em; }
.step .label { align-self: flex-start; background: var(--mist); font-weight: 500; font-size: 14px; padding: 3px 8px; border-radius: 4px; }
.step p { font-size: 14px; color: #4A4A4A; }

.plum-block { background: var(--ink); color: #fff; border-radius: var(--r-lg); padding: clamp(32px, 4vw, 52px) clamp(24px, 4vw, 52px) 56px; }
.plum-block h2 { font-size: clamp(26px, 2.6vw, 34px); }
.find { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 36px 28px; margin-top: 40px; text-align: center; }
.find > div { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.find h3 { font-size: 20px; }
.find p { font-size: 14px; line-height: 1.55; color: var(--on-plum-soft); max-width: 24ch; }

.about { display: flex; flex-wrap: wrap; gap: 24px; }
.about .quote { flex: 1 1 340px; min-height: 460px; border-radius: var(--r-lg); background: #D9D9D9; display: flex; align-items: flex-end; position: relative; overflow: hidden; }
.about .quote img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.about .qbox { position: relative; margin: 20px; padding: 22px 24px; background: rgba(255, 255, 255, .94); border-radius: 18px; }
.about .qbox p { font-family: var(--font-display); font-weight: 300; font-size: clamp(22px, 2.2vw, 28px); line-height: 1.15; letter-spacing: -.01em; padding-inline-end: 28px; }
.about .qbox p em { color: var(--plum); }
.about .qbox .sparkle { top: 18px; right: 18px; width: 22px; height: 22px; color: var(--plum); }
.about .copy { flex: 1.3 1 420px; background: var(--mist); border-radius: var(--r-lg); padding: clamp(32px, 4vw, 52px); display: flex; flex-direction: column; gap: 22px; }
.about .copy h2 { font-size: clamp(36px, 4vw, 52px); line-height: 1; }
.about .copy p { font-size: 16px; max-width: 46ch; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; background: #fff; border: 1.5px solid var(--ink); border-radius: 999px; text-decoration: none; font-size: 15px; }
.chip-link:hover { background: var(--ink); color: #fff; }

.duo { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.duo > div { border-radius: var(--r-lg); padding: 32px 32px 30px; display: flex; flex-direction: column; gap: 16px; min-height: 230px; }
.duo > div:nth-child(1) { background: var(--mist); }
.duo > div:nth-child(2) { background: var(--lilac); }
.duo h2 { font-size: 28px; }
.duo p { font-size: 15px; max-width: 34ch; }
.duo .btn { margin-top: auto; align-self: flex-start; }

.closing { margin-top: 72px; background: var(--ink); color: #fff; border-radius: var(--r-lg); padding: clamp(48px, 6vw, 80px) clamp(24px, 5vw, 64px); display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 32px; }
.closing h2 { font-size: clamp(40px, 5.4vw, 68px); line-height: 1; letter-spacing: -.025em; max-width: 12ch; }
.closing h2 em { color: var(--lav); }
.closing .ask { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--lav); }
.closing > div { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.site-foot { margin-top: 56px; border-top: 1px solid var(--mist); padding-top: 24px; padding-bottom: 40px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; font-size: 13px; color: var(--muted); }
.site-foot img { height: 40px; }

/* ---------- App shell ---------- */
.app-head { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: #fff; border-bottom: 1px solid var(--line); }
.app-head .wrap { display: flex; align-items: center; gap: 18px; min-height: 72px; }
.app-nav { display: flex; gap: 4px; margin-inline-start: auto; align-items: center; }
.app-nav a { position: relative; text-decoration: none; color: var(--ink); font-size: .95rem; padding: 9px 16px; border-radius: 999px; }
.app-nav a:hover { background: var(--mist); }
.app-nav a[aria-current="page"] { background: var(--ink); color: #fff; }
.badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--plum); color: #fff; font-size: .7rem; font-weight: 600; margin-inline-start: 6px; font-variant-numeric: tabular-nums; }
.head-me { display: flex; align-items: center; gap: 10px; }
.head-me a { text-decoration: none; }
.app-main { padding-block: 36px 120px; }
.tabbar { display: none; position: fixed; inset: auto 0 0 0; z-index: 30; background: #fff; border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom, 0px); padding-left: env(safe-area-inset-left, 0px); padding-right: env(safe-area-inset-right, 0px); }
.tabbar nav { display: grid; grid-template-columns: repeat(var(--tabs, 4), 1fr); }
.tabbar a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 10px 4px 9px; text-decoration: none; color: var(--muted); font-size: .72rem; font-weight: 500; position: relative; }
.tabbar a svg { width: 23px; height: 23px; }
.tabbar a[aria-current="page"] { color: var(--plum); }
.tabbar a[aria-current="page"]::before { content: ""; position: absolute; top: 0; left: 30%; right: 30%; height: 3px; border-radius: 0 0 3px 3px; background: var(--plum); }
.tabbar .badge { position: absolute; top: 5px; inset-inline-start: calc(50% + 6px); margin: 0; }
.page-title { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.page-title h1 { font-size: var(--step-3); }
.page-title h1 em { color: var(--plum); }
.page-title p { color: var(--muted); margin-top: 8px; max-width: 58ch; font-size: 1.05rem; }

/* ---------- Avatars ---------- */
.avatar { flex: none; width: var(--s, 48px); aspect-ratio: 1; overflow: hidden; display: grid; place-items: center; font-family: var(--font-display); font-weight: 400; color: var(--plum); font-size: calc(var(--s, 48px) * .38); position: relative; border-radius: 50%; background: var(--lav); }
.avatar.t2 { background: var(--lilac); }
.avatar.t3 { background: var(--mist); }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.mcard .avatar, .profile-hero .avatar { background: #fff; }

/* ---------- Cards, chips ---------- */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 22px; min-width: 0; }
.card-title { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.card-title h2 { font-size: var(--step-2); }
.card-title h2 em { color: var(--plum); }
.kicker { font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: var(--mist); font-size: .8125rem; font-weight: 500; line-height: 1.35; }
.chip.wine { background: var(--ink); color: #fff; }
.chip.ok { background: var(--mist); color: var(--plum); }
.chip.warn { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.chip.danger { background: var(--ink); color: #fff; }
.chip.lilac { background: var(--lav); }
.muted { color: var(--muted); }
.small { font-size: var(--step--1); }
.stack { display: flex; flex-direction: column; gap: var(--g, 14px); }
.row { display: flex; flex-wrap: wrap; gap: var(--g, 10px); align-items: center; }
.spread { justify-content: space-between; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.divider { height: 1px; background: var(--line); border: 0; margin: 4px 0; }

.mcard { position: relative; display: flex; flex-direction: column; gap: 14px; border-radius: var(--r-md); padding: 22px; min-width: 0; background: var(--whisper); }
.mcard.t2 { background: var(--mist); }
.mcard.t3 { background: #F3EEF9; }
@media (hover: hover) { .mcard:hover { box-shadow: var(--shadow); } }
.mcard-head { display: flex; gap: 14px; align-items: center; }
.mcard-head > div { min-width: 0; }
.mcard h3 { font-size: 1.45rem; font-weight: 400; line-height: 1.1; }
.mcard h3 a { color: inherit; text-decoration: none; }
.mcard h3 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--r-md); }
.mcard .meta { font-size: .85rem; color: var(--muted); margin-top: 3px; }
.mcard .headline { font-size: .98rem; overflow-wrap: anywhere; }
.mcard .label { font-size: .7rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 7px; }
.mcard .chip { background: #fff; }
.mcard .chip.wine { background: var(--ink); }
.mcard .chip.warn { background: #fff; }
.mcard .chip.lilac { background: var(--lav); }
.mcard .actions { margin-top: auto; display: flex; flex-wrap: wrap; gap: 8px; position: relative; z-index: 1; }

.why { background: #fff; border-radius: var(--r-sm); padding: 14px 16px; display: grid; gap: 9px; }
.why .kicker { color: var(--plum); display: flex; align-items: center; gap: 6px; }
.why .kicker svg { width: 14px; height: 14px; }
.why ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.why li { display: grid; grid-template-columns: 12px 1fr; gap: 8px; font-size: .92rem; line-height: 1.45; }
.why li::before { content: ""; width: 7px; height: 7px; margin-top: .5em; border-radius: 50%; background: var(--plum); }
.why.note { background: var(--plum); color: #fff; }
.why.note .kicker { color: var(--lav); }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field > label, .field > .flabel { font-weight: 500; font-size: 1rem; }
.field .hint { font-size: .88rem; color: var(--muted); }
.field .count { font-size: .75rem; color: var(--muted); align-self: flex-end; font-variant-numeric: tabular-nums; }
.input, .select, .textarea { width: 100%; border: 1.5px solid #DDD3E8; background: #fff; border-radius: var(--r-sm); padding: 12px 15px; min-height: 50px; font-size: 1rem; transition: border-color .15s, box-shadow .15s; }
.textarea { min-height: 116px; resize: vertical; line-height: 1.5; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--plum); box-shadow: 0 0 0 4px var(--mist); }
.field.err .input, .field.err .textarea, .field.err .select { border-color: #B42318; }
.field .errmsg { color: #B42318; font-size: .86rem; font-weight: 500; }
.pick { display: flex; flex-wrap: wrap; gap: 8px; }
.pick label { cursor: pointer; }
.pick input { position: absolute; opacity: 0; pointer-events: none; }
.pick span { display: inline-flex; align-items: center; gap: 6px; padding: 9px 15px; border-radius: 999px; border: 1.5px solid #DDD3E8; background: #fff; font-size: .9rem; transition: all .12s; }
.pick span:hover { border-color: var(--plum); }
.pick input:checked + span { background: var(--plum); border-color: var(--plum); color: #fff; }
.pick input:focus-visible + span { outline: 3px solid var(--lilac); outline-offset: 2px; }
.add-own { display: flex; gap: 8px; margin-top: 8px; max-width: 420px; }
.add-own .input { min-height: 40px; padding: 7px 13px; font-size: .9rem; }
.choice-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.choice-cards label { position: relative; cursor: pointer; }
.choice-cards input { position: absolute; opacity: 0; }
.choice-cards .cc { display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 16px 18px; border: 1.5px solid #DDD3E8; border-radius: var(--r-sm); background: #fff; transition: all .12s; }
.choice-cards .cc:hover { border-color: var(--plum); }
.choice-cards .cc b { font-weight: 400; font-family: var(--font-display); font-size: 1.15rem; }
.choice-cards .cc small { color: var(--muted); font-size: .86rem; line-height: 1.4; }
.choice-cards input:checked + .cc { border-color: var(--plum); background: var(--mist); box-shadow: inset 0 0 0 1.5px var(--plum); }
.choice-cards input:focus-visible + .cc { outline: 3px solid var(--lilac); outline-offset: 2px; }
.toggle { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; }
.toggle input { width: 20px; height: 20px; accent-color: var(--plum); margin-top: 2px; flex: none; }
.subpanel { border-radius: var(--r-md); padding: 22px; background: var(--whisper); }
.subpanel.lime { background: var(--mist); }
.subpanel.pink { background: var(--mist); }
.subpanel h3 { font-size: 1.3rem; font-weight: 400; }
.photo-row { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }

.ob { max-width: 760px; margin-inline: auto; }
.progress { display: grid; grid-template-columns: repeat(var(--n), 1fr); gap: 6px; margin-bottom: 12px; }
.progress i { height: 6px; border-radius: 6px; background: var(--mist); }
.progress i.on { background: var(--plum); }
.ob-head { margin-block: 14px 28px; }
.ob-head h1 { font-size: var(--step-3); }
.ob-head h1 em { color: var(--plum); }
.ob-head p { margin-top: 12px; color: var(--muted); max-width: 56ch; font-size: 1.05rem; }
.ob-foot { display: flex; justify-content: space-between; gap: 12px; margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--line); }

/* ---------- Auth & status ---------- */
.auth-page { background: var(--frame); min-height: calc(100vh - 80px); }
.auth { display: grid; place-items: center; padding-block: 56px; }
.auth-split { display: grid; grid-template-columns: 1fr 1fr; min-height: calc(100vh - 82px); }
.auth-photo { position: relative; overflow: hidden; background: var(--plum); }
.auth-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.auth-photo p { position: absolute; left: 32px; right: 32px; bottom: 32px; font-family: var(--font-display); font-weight: 300; font-size: clamp(24px, 2.4vw, 32px); line-height: 1.15; color: #fff; text-shadow: 0 2px 18px rgba(0,0,0,.45); }
.auth-photo p em { color: var(--lav); }
.auth-card { width: 100%; max-width: 460px; background: #fff; border-radius: var(--r-lg); padding: 40px 30px 32px; box-shadow: var(--shadow); text-align: center; }
.auth-card h1 { font-size: 2.3rem; }
.auth-card h1 em { color: var(--plum); }
.auth-card > p { color: var(--muted); margin-top: 12px; }
.auth-card form { margin-top: 24px; text-align: start; }
.bare-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 16px; padding-bottom: 16px; }

/* ---------- Profile page ---------- */
.profile-hero { border-radius: var(--r-lg); padding: 32px; display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center; background: var(--plum); color: #fff; }
.profile-hero.t2 { background: var(--plum); }
.profile-hero.t3 { background: var(--plum); }
.profile-hero > * { min-width: 0; }
.profile-hero .avatar { width: 150px; font-size: 3rem; }
.profile-hero h1 { font-size: var(--step-3); color: #fff; }
.profile-hero .headline { font-size: var(--step-1); margin-top: 8px; max-width: 46ch; color: var(--on-plum-soft); }
.profile-hero .meta { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 6px; }
.profile-hero .meta .chip { background: rgba(255, 255, 255, .14); color: #fff; }
.profile-hero .cta { display: flex; flex-direction: column; gap: 10px; min-width: 210px; }
.profile-hero .btn-primary { background: #fff; color: var(--ink); }
.profile-body { display: grid; grid-template-columns: 1fr 300px; gap: 40px; margin-top: 32px; align-items: start; }
.profile-body > * { min-width: 0; }
.facts { display: grid; gap: 16px; font-size: .95rem; background: var(--whisper); border-radius: var(--r-md); padding: 22px; margin: 0; }
.facts div { display: grid; gap: 2px; }
.facts dt { color: var(--muted); font-size: .7rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.facts dd { margin: 0; font-weight: 500; }
.prose { max-width: 65ch; white-space: pre-line; font-size: 1.05rem; }
.sec { padding-block: 26px; border-top: 1px solid var(--line); display: grid; gap: 12px; }
.sec:first-child { border-top: 0; padding-top: 0; }
.sec h2 { font-size: 1.5rem; }
.sub-label { font-size: .7rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.terms { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; margin: 0; }
.terms > div { background: var(--whisper); border-radius: var(--r-sm); padding: 14px 16px; }
.terms dt { font-size: .75rem; color: var(--muted); font-weight: 500; }
.terms dd { margin: 3px 0 0; font-weight: 500; }
.paid-flag { justify-self: start; display: inline-flex; align-items: center; gap: 8px; background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); font-weight: 500; font-size: .85rem; padding: 6px 14px; border-radius: 999px; }

.tabs { display: flex; gap: 6px; margin-bottom: 24px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.tabs button { background: #fff; border: 1px solid var(--line); padding: 9px 18px; color: var(--ink); cursor: pointer; border-radius: 999px; white-space: nowrap; }
.tabs button[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }

.req { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: start; }
.req > a { text-decoration: none; }
.req > div { min-width: 0; }
.req .msg { margin-top: 12px; padding: 14px 16px; background: var(--whisper); border-radius: 4px var(--r-sm) var(--r-sm) var(--r-sm); font-size: .98rem; white-space: pre-line; overflow-wrap: anywhere; }
.req .acts { display: flex; gap: 8px; flex-wrap: wrap; }
.contact-reveal { margin-top: 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 14px 16px; border-radius: var(--r-sm); background: var(--plum); color: #fff; }
.contact-reveal code { font-family: var(--font-body); font-weight: 600; font-size: 1.05rem; user-select: all; overflow-wrap: anywhere; }

.empty { position: relative; overflow: hidden; text-align: center; padding: 48px 24px; background: var(--whisper); border-radius: var(--r-lg); display: grid; justify-items: center; gap: 12px; }
.empty .icon { width: 52px; height: 52px; color: var(--plum); }
.empty h3 { font-size: var(--step-2); }
.empty p { color: var(--muted); max-width: 48ch; }
.empty .row { justify-content: center; }

.dash { display: grid; grid-template-columns: 1fr 340px; gap: 30px; align-items: start; }
.dash > * { min-width: 0; }
.needs-card { background: var(--plum); color: #fff; border-radius: var(--r-lg); padding: 26px; position: relative; overflow: hidden; }
.needs-card h2 { font-size: 1.7rem; padding-inline-end: 30px; }
.needs-card p { margin-top: 8px; font-size: .98rem; color: var(--on-plum-soft); }
.needs-card .chip { background: rgba(255, 255, 255, .14); color: #fff; }
.needs-card .btn { margin-top: 18px; }
.needs-card .btn-primary { background: #fff; color: var(--ink); }
.needs-card .sparkle { top: 22px; right: 22px; color: var(--lav); }

.filters { display: grid; grid-template-columns: 2fr repeat(4, 1fr); gap: 10px; align-items: end; margin-bottom: 14px; padding: 18px; background: var(--whisper); border-radius: var(--r-md); }
.filters .field label { font-size: .7rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.filter-toggle { display: none; }
.result-meta { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 18px; flex-wrap: wrap; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-md); background: #fff; }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th, td { text-align: start; padding: 13px 15px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; background: var(--whisper); }
tr:last-child td { border-bottom: 0; }
.app-detail { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px 24px; font-size: .94rem; }
.app-detail .k { font-size: .7rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }

.scrim { position: fixed; inset: 0; background: var(--scrim); z-index: 50; display: grid; place-items: center; padding: 16px; animation: fade .15s ease; }
.modal { width: 100%; max-width: 560px; max-height: calc(100vh - 32px); overflow-y: auto; background: #fff; border-radius: var(--r-lg); padding: 30px; box-shadow: 0 30px 80px -30px rgba(20, 20, 20, .5); }
.modal h2 { font-size: 2rem; }
.modal h2 em { color: var(--plum); }
.modal .sub { color: var(--muted); margin-top: 8px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; margin-top: 24px; flex-wrap: wrap; }
.toast { position: fixed; z-index: 60; inset-inline: 0; bottom: calc(92px + env(safe-area-inset-bottom, 0px)); display: flex; justify-content: center; pointer-events: none; padding-inline: 16px; }
.toast div { background: var(--ink); color: #fff; padding: 13px 20px; border-radius: 999px; font-weight: 500; font-size: .93rem; animation: rise .2s ease; box-shadow: var(--shadow); }
.menu { position: relative; }
.menu-list { position: absolute; inset-inline-end: 0; top: calc(100% + 6px); background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: var(--r-sm); box-shadow: var(--shadow); padding: 6px; min-width: 200px; z-index: 15; }
.menu-list button { display: block; width: 100%; text-align: start; padding: 10px 12px; border: 0; background: none; border-radius: 8px; cursor: pointer; font-size: .93rem; }
.menu-list button:hover { background: var(--mist); }
.notice { padding: 14px 18px; border-radius: var(--r-sm); background: var(--mist); font-size: .95rem; }

@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { transform: translateY(8px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; }
  .hero-art { min-height: 400px; }
  .auth-split { grid-template-columns: 1fr; }
  .auth-photo { display: none; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 36px; }
  .step:nth-child(3) { padding-left: 0; border-left: 0; }
  .dash { grid-template-columns: 1fr; }
  .profile-hero { grid-template-columns: auto 1fr; }
  .profile-hero .cta { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; }
  .profile-hero .cta > * { flex: 1 1 200px; }
  .profile-body { grid-template-columns: 1fr; }
  .facts { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
  .filters { grid-template-columns: 1fr 1fr; }
  .filters .field:first-child { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .app-nav, .head-me .desk { display: none; }
  .head-me { margin-inline-start: auto; }
  .tabbar { display: block; }
  .app-main { padding-block: 24px 110px; }
  .brand img { height: 42px; }
  .site-head nav .plain { display: none; }
  .site-head nav { gap: 8px; }
  .site-head nav .btn { min-height: 40px; padding: 6px 16px; font-size: .875rem; }
  .grid-2 { grid-template-columns: 1fr; }
  .band { padding-top: 56px; padding-bottom: 56px; }
  .section { padding-top: 56px; }
  .filter-toggle { display: inline-flex; }
  .filters { grid-template-columns: 1fr; padding: 14px; }
  .filters.collapsed .field:not(:first-child) { display: none; }
  .req { grid-template-columns: auto 1fr; }
  .req .acts { grid-column: 1 / -1; }
  .profile-hero { padding: 24px; gap: 18px; }
  .profile-hero .avatar { width: 96px; font-size: 2rem; }
  .scrim { align-items: end; padding: 0; }
  .modal { border-radius: var(--r-lg) var(--r-lg) 0 0; max-height: 92vh; padding: 26px 22px calc(26px + env(safe-area-inset-bottom, 0px)); }
  .ob-foot { position: sticky; bottom: 0; background: #fff; padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px)); }
  .hero-art .ex { transform: none; max-width: none; }
}
@media (max-width: 520px) {
  .steps { grid-template-columns: 1fr; }
  .step, .step:nth-child(n) { padding-left: 0; border-left: 0; }
  .grid-cards { grid-template-columns: 1fr; }
  .profile-hero { grid-template-columns: 1fr; }
  .closing { padding: 40px 24px; }
}
