/* Pages: layouts and page-specific pieces. */

/* ---------- Home ---------- */
.hero { position: relative; overflow: hidden; background: radial-gradient(900px 460px at 80% 26%, color-mix(in srgb, var(--brand) 12%, transparent), transparent 68%), radial-gradient(620px 360px at 8% 62%, color-mix(in srgb, var(--warm) 10%, transparent), transparent 66%); }
.hero-in { display: grid; grid-template-columns: 1.02fr 0.98fr; gap: clamp(24px, 5vw, 64px); align-items: center; padding-block: clamp(36px, 7vw, 92px); }
.display { font-size: var(--fs-3xl); line-height: 1.04; letter-spacing: -0.03em; margin: 18px 0 20px; }
.display em { font-style: italic; color: var(--brand); font-weight: 500; }
.hero-visual { position: relative; }
.hero-art { width: 100%; height: auto; }
.float { position: absolute; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow-3); padding: 12px 14px; font-size: var(--fs-sm); }
.float.f1 { top: 4%; right: 0; width: 232px; display: grid; gap: 8px; }
.float.f2 { bottom: 6%; left: 0; display: flex; gap: 10px; align-items: center; line-height: 1.3; }
.float.f2 .icon { width: 22px; height: 22px; color: var(--brand); }
.mini-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-weight: 600; font-size: 0.8125rem; }
.mini-sw { width: 34px; height: 20px; border-radius: 999px; background: var(--line-2); position: relative; flex: none; }
.mini-sw::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgb(0 0 0 / 25%); }
.mini-sw.on { background: var(--brand); } .mini-sw.on::after { left: 16px; }
@media (max-width: 900px) { .hero-in { grid-template-columns: 1fr; } .hero-visual { max-width: 460px; margin-inline: auto; } .float.f1 { right: -4px; width: 200px; } }
@media (max-width: 480px) { .float.f1, .float.f2 { display: none; } }

.section { padding-block: clamp(48px, 8vw, 96px); }
.section.band { background: var(--paper-2); border-block: 1px solid var(--line); }
.section-head { max-width: 720px; margin-bottom: clamp(24px, 4vw, 40px); }
.section-head h2 { margin-top: 10px; }
.section-head .lead { margin-top: 14px; }
.step-card { position: relative; padding-top: 34px; }
.step-n { position: absolute; top: -18px; left: 24px; width: 40px; height: 40px; border-radius: 50%; background: var(--brand); color: var(--brand-ink); display: grid; place-items: center; font-family: var(--font-serif); font-size: 1.25rem; font-weight: 600; box-shadow: 0 0 0 6px var(--paper); }
.step-card h3 { margin-bottom: 8px; }
.trust { --gap: clamp(20px, 3vw, 36px); }
.trust-item { display: flex; gap: 16px; align-items: flex-start; }
.trust-item h3 { margin-bottom: 4px; }
.trust-ic { width: 44px; height: 44px; flex: none; border-radius: 14px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); }
.trust-ic .icon { width: 22px; height: 22px; }
.field-card { display: flex; flex-direction: column; justify-content: space-between; gap: 16px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; }
.stat { min-width: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px 18px; display: flex; flex-direction: column; gap: 2px; }
.stat b { font-family: var(--font-serif); font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.4rem); font-weight: 600; line-height: 1.1; letter-spacing: -0.02em; }
.stat .l { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-sm); color: var(--ink-2); font-weight: 600; }
.cta-band { display: flex; justify-content: space-between; align-items: center; gap: 28px; flex-wrap: wrap; padding: clamp(28px, 5vw, 52px); border-radius: var(--r-xl); color: #fff; background: radial-gradient(600px 260px at 90% 0%, rgb(255 255 255 / 12%), transparent 70%), linear-gradient(135deg, #0d5c50, #073a33); }
.cta-band h2 { font-size: var(--fs-2xl); margin-bottom: 8px; color: #fff; }
.cta-band { position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; right: -60px; top: 50%; width: 360px; height: 360px; transform: translateY(-50%); background: url(/assets/halves-light.svg) center / contain no-repeat; opacity: 0.16; pointer-events: none; }
.cta-band > * { position: relative; z-index: 1; }
.cta-band .lead { max-width: 44ch; }
.btn.inverse { --b-bg: #fff; --b-fg: #073a33; --b-bd: #fff; }
.btn.inverse:hover { --b-bg: #e7f3ef; --b-bd: #e7f3ef; --b-fg: #073a33; }
.btn.ghost-inverse { --b-bg: transparent; --b-fg: #fff; --b-bd: rgb(255 255 255 / 55%); }
.btn.ghost-inverse:hover { --b-bg: rgb(255 255 255 / 12%); --b-fg: #fff; --b-bd: #fff; }

/* ---------- Network ---------- */
.cloud { margin: 12px 0 8px; }
.bubbles { width: 100%; height: auto; max-height: 520px; }
.bubble { cursor: pointer; outline: none; }
.bubble circle { fill: var(--brand-soft); stroke: var(--brand-line); stroke-width: 1.5; transition: fill 0.15s, stroke 0.15s; }
.bubble:hover circle { fill: color-mix(in srgb, var(--brand) 22%, var(--card)); stroke: var(--brand); }
.bubble:focus-visible circle { stroke: var(--brand); stroke-width: 4; }
.bubble.on circle { fill: var(--brand); stroke: var(--brand); }
.bn { font: 600 22px var(--font-serif); fill: var(--ink); pointer-events: none; }
.bl { font: 600 11.5px var(--font-sans); fill: var(--ink-2); pointer-events: none; }
.bubble.on .bn, .bubble.on .bl { fill: var(--brand-ink); }
.field-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chip-btn { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; border: 1.5px solid var(--line-2); background: var(--card); font-size: var(--fs-sm); font-weight: 600; color: var(--ink); }
.chip-btn:hover { border-color: var(--ink-3); }
.chip-btn .n { font-size: var(--fs-xs); color: var(--ink-3); font-variant-numeric: tabular-nums; }
.chip-btn[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); } .chip-btn[aria-pressed="true"] .n { color: inherit; opacity: 0.85; }
@media (min-width: 721px) { .field-chips { display: none; } }
@media (max-width: 720px) { .only-wide { display: none; } .field-chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 8px; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: thin; } .chip-btn { flex: none; } }
.filters { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end; margin: 24px 0 18px; }
.filters .field { margin: 0 !important; min-width: 150px; }
.filters .field.grow { min-width: 220px; }
.member-list { padding: 0; overflow: hidden; }
.member-row { position: relative; display: grid; grid-template-columns: 92px 1fr auto; gap: 16px; padding: 18px 22px; border-bottom: 1px solid var(--line); align-items: start; transition: background 0.15s; }
.member-row:last-child { border-bottom: 0; } .member-row:hover { background: var(--paper-2); }
.who-link { position: absolute; inset: 0; z-index: 1; }
.who-link:focus-visible { outline-offset: -3px; }
.member-kind { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: var(--fs-xs); font-weight: 650; color: var(--ink-2); text-align: center; }
.member-name { font-size: var(--fs-md); }
.member-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; text-align: right; }
@media (max-width: 640px) { .member-row { grid-template-columns: 64px 1fr; padding: 16px; } .member-side { grid-column: 2; flex-direction: row; align-items: center; justify-content: flex-start; text-align: left; } }
.legend-list { list-style: none; padding: 0; margin-top: 12px; display: grid; gap: 10px; } .legend-list li { display: flex; gap: 12px; align-items: flex-start; font-size: var(--fs-sm); color: var(--ink-2); } .legend-list svg { margin-top: 2px; flex: none; }
.attr { white-space: pre-wrap; font: 0.78rem/1.5 ui-monospace, Menlo, monospace; background: var(--paper-2); padding: 14px; border-radius: var(--r-md); margin-top: 10px; overflow-x: auto; color: var(--ink-2); }
details.plain { border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px 18px; background: var(--card); }
.person-head { display: flex; gap: 18px; align-items: center; margin-top: 22px; }
.person-head h1 { font-size: var(--fs-xl); word-break: break-word; }

/* ---------- Sign in ---------- */
.auth-card { max-width: 480px; margin: clamp(0px, 4vw, 40px) auto 0; }

/* ---------- Joining ---------- */
.wiz { max-width: 1040px; }
.wiz-top { max-width: 720px; }
.wiz-grid { display: grid; grid-template-columns: minmax(0, 720px) 1fr; gap: 32px; align-items: start; }
.wiz-aside { position: sticky; top: calc(var(--header-h) + 24px); padding: 8px 4px; }
.wiz-aside h3 { font-size: var(--fs-md); margin-bottom: 6px; }
.wiz-card h2 { font-size: var(--fs-xl); font-family: var(--font-serif); letter-spacing: -0.02em; }
@media (max-width: 980px) { .wiz-grid { grid-template-columns: minmax(0, 1fr); } .wiz-aside { display: none; } }
.draft-box { border-left: 4px solid var(--warn); padding: 4px 0 4px 18px; margin: 18px 0 20px; }
.progress-pill { position: sticky; top: calc(var(--header-h) + 8px); z-index: 5; margin: 16px 0; display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; background: var(--card); border: 1px solid var(--line-2); border-radius: 999px; box-shadow: var(--shadow-2); font-size: var(--fs-sm); }
.progress-pill .icon { color: var(--ok); }
.cases { display: grid; gap: 18px; }
.case { padding: 20px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--paper); }
.case-n { font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand); margin-bottom: 4px; }
.numbered { padding-left: 0; list-style: none; counter-reset: n; display: grid; gap: 14px; }
.numbered li { counter-increment: n; display: flex; gap: 14px; margin: 0; }
.numbered li::before { content: counter(n); flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; font-weight: 700; font-size: var(--fs-sm); }
.welcome { text-align: left; }

/* ---------- Legal ---------- */
.prose { max-width: 68ch; }
.prose h1 { font-size: var(--fs-2xl); margin-bottom: 16px; } .prose h2 { font-size: var(--fs-lg); font-family: var(--font-sans); margin: 32px 0 8px; } .prose p, .prose ul, .prose blockquote { margin-top: 12px; color: var(--ink-2); }
.prose blockquote { margin-inline: 0; padding: 4px 18px; border-left: 3px solid var(--line-2); }
.legal-scroll { max-height: 340px; overflow: auto; padding: 8px 18px; margin: 0 4px 12px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--paper); }
.legal-scroll h3 { font-size: var(--fs-lg); font-family: var(--font-sans); margin-top: 8px; } .legal-scroll h4 { font-size: var(--fs-md); margin-top: 18px; }
.promises { list-style: none; padding: 0; display: grid; gap: 14px; } .promises li { display: flex; gap: 14px; margin: 0; } .promises .icon { width: 22px; height: 22px; color: var(--brand); margin-top: 2px; }

/* ---------- My space ---------- */
.space { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(20px, 4vw, 48px); align-items: start; }
.space-nav { min-width: 0; position: sticky; top: calc(var(--header-h) + 24px); }
.space-who { display: flex; gap: 14px; align-items: center; padding-bottom: 18px; margin-bottom: 14px; border-bottom: 1px solid var(--line); }
.space-handle { display: block; font-size: var(--fs-md); word-break: break-word; }
.space-nav nav { display: grid; gap: 4px; }
.space-nav nav a { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: var(--r-md); color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: var(--fs-sm); }
.space-nav nav a:hover { background: var(--paper-2); color: var(--ink); }
.space-nav nav a.on { background: var(--brand-soft); color: var(--brand); }
.space-nav nav a .soon { margin-left: auto; } .space-nav nav a .count-dot { margin-left: auto; }
.space-main { min-width: 0; }
@media (max-width: 900px) {
  .space { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .space-nav { position: static; }
  .space-who { padding-bottom: 14px; }
  .space-who .avatar.lg { --size: 44px; }
  .space-nav nav { display: flex; overflow-x: auto; gap: 6px; margin-inline: calc(var(--gutter) * -1); padding: 2px var(--gutter) 8px; scrollbar-width: none; }
  .space-nav nav::-webkit-scrollbar { display: none; }
  .space-nav nav a { flex: none; padding: 9px 14px; border: 1px solid var(--line); background: var(--card); }
  .space-nav nav a.on { border-color: var(--brand-line); }
  .space-nav nav a .soon { display: none; }
}
.allclear { display: flex; gap: 14px; align-items: center; margin-top: 12px; } .allclear .icon { width: 28px; height: 28px; color: var(--ok); }
.waiting { list-style: none; padding: 0; margin: 12px 0 14px; } .waiting li { font-size: var(--fs-md); } .waiting b { font-family: var(--font-serif); font-size: 1.4em; margin-right: 4px; }
.perms .perm { display: flex; gap: 20px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.perms .perm:last-child { border-bottom: 0; padding-bottom: 0; } .perms .perm:first-child { padding-top: 4px; }
.perm .t { font-weight: 650; display: block; cursor: pointer; }
.compare { display: grid; }
.compare-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 12px 0 12px 22px; border-left: 2px solid var(--line-2); position: relative; margin: 0; }
.timeline li::before { content: ""; position: absolute; left: -6px; top: 20px; width: 10px; height: 10px; border-radius: 50%; background: var(--card); border: 2px solid var(--brand); }
.strengths .bar-row:first-child { margin-top: 0; }
.kind-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; margin-top: 18px; }
.kind-card { display: flex; gap: 14px; align-items: flex-start; text-align: left; padding: 16px; border: 1.5px solid var(--line); border-radius: var(--r-md); background: var(--card); transition: border-color 0.15s, transform 0.2s var(--ease), box-shadow 0.2s; }
.kind-card:hover { border-color: var(--brand); transform: translateY(-2px); box-shadow: var(--shadow-2); }
.ev-row { display: grid; grid-template-columns: 150px 1fr 1fr; gap: 8px; margin-top: 8px; }
@media (max-width: 700px) { .ev-row { grid-template-columns: 1fr; } }
dl.story { margin: 10px 0 0; } dl.story dt { font-size: var(--fs-xs); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-3); margin-top: 10px; } dl.story dd { margin: 2px 0 0; }
.case-card { border-left: 4px solid var(--line-2); }
.review-box, .answer-box { margin-top: 16px; padding: 16px; border-radius: var(--r-md); background: var(--paper-2); }
.review-line { display: flex; gap: 8px; align-items: flex-start; margin-top: 10px; } .review-line .icon { margin-top: 3px; width: 1em; height: 1em; }
.how-list { list-style: none; padding: 0; display: grid; gap: 18px; margin-top: 18px; } .how-list li { display: flex; gap: 16px; align-items: flex-start; margin: 0; }
.danger-zone { border-color: color-mix(in srgb, var(--bad) 40%, var(--line)); }
.recover { border: 2px solid var(--warn); }
.code-box .input-code { font-size: var(--fs-lg); }

@media (max-width: 560px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .stat { padding: 14px; } }
#recover:not(:empty) { margin-bottom: 28px; }

/* ---- Reviewing: the inbox and one request ----------------------------------------------------------------------------------------------------- */
.reqs { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 12px; }
.req { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--card); }
.req h3 { font-family: var(--font-sans); font-size: var(--fs-md); margin-top: 8px; }
.req-main { min-width: 0; }
.clock { font-variant-numeric: tabular-nums; font-weight: 700; }
.lease-bar { border-color: var(--brand-line); }
.clock-wrap { text-align: right; }
.brief.sealed { border-style: dashed; }
.brief h2 { display: flex; align-items: center; gap: 8px; }
.seats { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.seat { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
@media (max-width: 560px) { .req { flex-direction: column; align-items: stretch; } .clock-wrap { text-align: left; } }

/* ---------- My twin, in full; Memory ---------- */
.big { font-family: var(--font-serif); font-size: var(--fs-2xl); }
.card.sub { background: var(--paper); box-shadow: none; }
.mems { list-style: none; padding: 0; margin: 10px 0 0; }
.mem { display: flex; gap: 16px; align-items: flex-start; justify-content: space-between; padding: 14px 0; border-top: 1px solid var(--line); }
.mem:first-child { border-top: 0; }
.mem .grow { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 600px) { .mem { flex-direction: column; } }

/* Decision-model builder */
.rules { list-style: none; padding: 0; margin: 12px 0; display: grid; gap: 10px; counter-reset: rule; }
ol.rules { list-style: none; }
.rule { padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--card); min-width: 0; }
.rule-line { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; }
.rule-line .input { width: auto; max-width: 100%; min-width: 0; } .rule-line .narrow-input { width: 96px; }
.rule-n { font-weight: 700; } .rule .tools { margin-top: 10px; gap: 8px; }
.case-q { border: 1px solid var(--line); border-radius: var(--r-md); padding: 10px 14px; margin: 0; min-width: 0; }
.check { display: inline-flex; gap: 8px; align-items: center; margin-right: 14px; }
