/* Legacy Platform — heirloom theme (Michael's design direction, Aug 2026):
   deep ink-navy ground with a warm vignette, antique gold as the only accent,
   serif for everything read slowly (EB Garamond), Manrope for UI. Older-adult
   first: 17–18px body, 48px targets, high contrast. NOTE: --gold/--accent are
   the same antique gold; --navy now carries the gold BUTTON fill for legacy
   selectors (primary buttons, active nav). */
:root {
  --bg: #070c16;
  --bg-panel: #0e1626;
  --bg-panel-2: #131d30;
  --ink: #f1ece2;
  --ink-dim: #b9b0a1;
  --ink-faint: #7f786c;
  --gold: #c9a96b;
  --accent: #c9a96b;
  --gold-strong: #b8965a;
  --gold-soft: rgba(201, 169, 107, 0.14);
  --navy: #b8965a;
  --navy-line: rgba(201, 169, 107, 0.55);
  --line: rgba(241, 236, 226, 0.10);
  --line-2: rgba(241, 236, 226, 0.18);
  --ok: #9ec49a;
  --error: #d6796a;
  --serif: 'EB Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { min-height: 100%; }
body {
  background:
    radial-gradient(1200px 620px at 50% -220px, #182746 0%, rgba(24,39,70,0) 70%),
    radial-gradient(900px 900px at 100% 100%, rgba(201,169,107,0.05) 0%, rgba(201,169,107,0) 60%),
    var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-size: 17px;
  line-height: 1.55;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Topbar — navy gradient band per the mockup header */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 28px;
  background: linear-gradient(180deg, rgba(20, 31, 55, 0.92), rgba(7, 12, 22, 0.35));
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.topbar .brand {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--serif);
  font-size: 1.5rem; letter-spacing: 0.02em; color: var(--ink); font-weight: 400;
}
.topbar .brand img { height: 30px; width: auto; display: block; }
.topbar nav { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.topbar nav a { color: var(--ink-dim); }
.topbar nav a:hover { color: var(--ink); text-decoration: none; }
.topbar nav a.cta {
  color: #14110a;
  background: var(--gold-strong);
  border: 1px solid var(--gold-strong);
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 6px;
}
.topbar nav a.cta:hover { filter: brightness(1.25); }

/* Mobile menu (marketing + customer topbar) */
.nav-toggle {
  display: none; background: none; border: 0; padding: 8px; cursor: pointer;
  flex-direction: column; gap: 5px; width: 42px;
}
.nav-toggle span { display: block; height: 2px; width: 22px; background: var(--ink); border-radius: 2px; transition: transform 0.2s, opacity 0.2s; }
.topbar.open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.topbar.open .nav-toggle span:nth-child(2) { opacity: 0; }
.topbar.open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 760px) {
  .topbar { flex-wrap: wrap; }
  .nav-toggle { display: flex; }
  .topbar nav { display: none; flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 0; margin-top: 8px; }
  .topbar.open nav { display: flex; }
  .topbar nav a { padding: 13px 6px; border-top: 1px solid var(--line); }
  .topbar nav a.cta { border: 1px solid var(--navy-line); border-radius: 6px; margin-top: 10px; text-align: center; }
}

/* Pages */
.page { flex: 1; width: 100%; max-width: 1080px; margin: 0 auto; padding: 40px 24px 64px; }
.page.narrow { max-width: 560px; }
.page.wide { max-width: 1280px; }
.page h1 { font-weight: 300; font-size: 2rem; margin-bottom: 18px; }
.page h2 { font-weight: 600; font-size: 1.15rem; margin: 18px 0 10px; }
.lede { color: var(--ink-dim); max-width: 46rem; margin-bottom: 24px; }
.center { text-align: center; }
.muted { color: var(--ink-dim); font-size: 0.92rem; }

/* Hero (landing) */
.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 24px;
  gap: 14px;
}
.hero h1 { font-size: clamp(2.4rem, 6vw, 4rem); font-weight: 300; letter-spacing: 0.04em; }
.tagline { color: var(--gold); font-size: 1.15rem; letter-spacing: 0.12em; text-transform: uppercase; }
.sub { color: var(--ink-dim); max-width: 34rem; line-height: 1.6; }

.orb {
  width: 110px; height: 110px; border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #6fd6f5 0%, #2a7fb8 40%, #123a63 75%, transparent 100%);
  box-shadow: 0 0 60px 8px rgba(201, 169, 107, 0.35), inset 0 0 30px rgba(255, 255, 255, 0.15);
  animation: breathe 5s ease-in-out infinite;
}
@keyframes breathe {
  0%, 100% { transform: scale(1); opacity: 0.92; }
  50% { transform: scale(1.06); opacity: 1; }
}

/* Cards + forms */
.card {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 24px;
  margin-bottom: 20px;
}
/* Vertical rhythm inside cards — keeps buttons off the text above them. */
.card > :first-child { margin-top: 0; }
.card p { margin-bottom: 12px; }
.card p:last-child { margin-bottom: 0; }
.card .btn { margin-top: 6px; }
.card h3 + .btn, .card p + .btn { margin-top: 10px; }
.card .btn + p { margin-top: 16px; }
.form label { display: block; margin-bottom: 16px; color: var(--ink-dim); font-size: 0.95rem; }
.form input[type=text], .form input[type=email], .form input[type=password] {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 12px 14px;
  font-size: 1.05rem;
  color: var(--ink);
  background: #111a2b;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-family: inherit;
}
.form input:focus { outline: 2px solid var(--accent); border-color: transparent; }
.form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hint { font-size: 0.8rem; color: var(--ink-dim); }
.code-input { letter-spacing: 0.2em; text-transform: uppercase; }

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #101a2c;
  color: var(--ink);
  font-size: 1rem;
  font-family: inherit;
  cursor: pointer;
}
.btn:hover { text-decoration: none; filter: brightness(1.15); }
.btn.primary { background: var(--gold-strong); border-color: var(--gold-strong); color: #14110a; font-weight: 600; }
.btn.primary:hover { filter: brightness(1.08); }
.btn { text-align: center; }  /* a full-width link button left its label at the left edge */
.btn.wide { width: 100%; }

.alert { padding: 12px 16px; border-radius: 8px; margin-bottom: 18px; }
.alert.error { background: rgba(224, 82, 110, 0.12); border: 1px solid var(--error); color: #f2b9c6; }
.alert.ok { background: rgba(63, 191, 127, 0.12); border: 1px solid var(--ok); color: #b9e8cf; }

/* Pricing */
.tier-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin-bottom: 24px; }
.tier { position: relative; display: flex; flex-direction: column; }
.tier.featured { border-color: var(--gold); }
.tier .badge, .tier-teaser .badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #02121c; font-size: 0.75rem; letter-spacing: 0.08em;
  font-weight: 600; padding: 4px 12px; border-radius: 999px; text-transform: uppercase;
}
.tier .price { font-size: 2.2rem; font-weight: 300; margin: 6px 0 14px; }
.tier ul { list-style: none; margin-bottom: 18px; flex: 1; }
.tier li { padding: 6px 0; border-bottom: 1px solid var(--line); color: var(--ink-dim); font-size: 0.95rem; }
.gift-toggle { display: block; margin-bottom: 12px; color: var(--ink-dim); font-size: 0.9rem; }
.gift-toggle input { margin-right: 8px; }

.gift-code { font-size: 2rem; letter-spacing: 0.15em; color: var(--gold); margin: 10px 0; }

/* Account */
.project-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.project-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.mini-facts { list-style: none; display: flex; gap: 14px; margin: 10px 0 16px; color: var(--ink-dim); font-size: 0.9rem; flex-wrap: wrap; }
.pill {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  background: #101a2c; border: 1px solid var(--line); font-size: 0.8rem; color: var(--ink-dim);
}
.tier-pill { border-color: var(--gold); color: var(--gold); }

/* ----------  Admin ops console shell  ---------- */
.admin-body { display: block; }
.admin-shell { display: grid; grid-template-columns: 232px minmax(0, 1fr); min-height: 100vh; }
.admin-side {
  background: linear-gradient(180deg, #071021 0%, #040810 40%);
  border-right: 1px solid var(--line);
  padding: 22px 14px 18px;
  display: flex; flex-direction: column; gap: 2px;
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.admin-brand { display: flex; align-items: center; gap: 10px; margin: 0 8px 18px; color: var(--ink); }
.admin-brand img { height: 26px; }
.admin-brand span { font-family: Georgia, 'Times New Roman', serif; font-size: 1.2rem; }
.admin-brand em { color: var(--accent); font-style: normal; font-size: 0.8rem; letter-spacing: 0.2em; text-transform: uppercase; margin-left: 4px; }
.admin-brand:hover { text-decoration: none; }
.admin-group {
  margin: 14px 8px 4px; font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-dim); opacity: 0.7;
}
.admin-item {
  display: block; padding: 7px 10px; border-radius: 7px; color: var(--ink-dim); font-size: 0.92rem;
}
.admin-item:hover { color: var(--ink); background: rgba(201, 169, 107, 0.06); text-decoration: none; }
.admin-item.active { color: var(--ink); background: var(--navy); }
.admin-side-foot { margin-top: auto; padding: 16px 8px 0; display: flex; flex-direction: column; gap: 4px; font-size: 0.8rem; }
.admin-content { min-width: 0; display: flex; flex-direction: column; }
.admin-topstrip {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 16px 28px; border-bottom: 1px solid var(--line); flex-wrap: wrap;
}
.admin-topstrip h1 { font-weight: 300; font-size: 1.4rem; margin: 0; }
.admin-topstrip-right { display: flex; align-items: center; gap: 16px; font-size: 0.9rem; }
.admin-main { padding: 24px 28px 60px; flex: 1; }
.admin-nav-toggle {
  display: none; background: none; border: 1px solid var(--line); border-radius: 7px;
  color: var(--ink); font-size: 1.15rem; line-height: 1; padding: 7px 11px; cursor: pointer;
}
.admin-backdrop { display: none; }
@media (max-width: 900px) {
  .admin-shell { grid-template-columns: 1fr; }
  .admin-side {
    position: fixed; top: 0; left: 0; bottom: 0; height: 100vh; width: 250px; z-index: 60;
    transform: translateX(-100%); transition: transform 0.22s ease;
  }
  .admin-shell.nav-open .admin-side { transform: translateX(0); box-shadow: 0 0 50px rgba(0,0,0,0.65); }
  .admin-shell.nav-open .admin-backdrop { display: block; position: fixed; inset: 0; background: rgba(0,0,0,0.55); z-index: 55; }
  .admin-nav-toggle { display: inline-flex; align-items: center; }
  .admin-topstrip { position: sticky; top: 0; background: var(--bg); z-index: 30; }
  .admin-topstrip h1 { font-size: 1.1rem; }
}
@media (max-width: 560px) {
  .admin-topstrip-right .muted { display: none; }
}

/* Admin widgets */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
@media (max-width: 1100px) { .two-col { grid-template-columns: 1fr; } }
.sev { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 0.75rem; border: 1px solid var(--line); }
.sev[data-s=critical] { background: rgba(224, 82, 110, 0.25); border-color: var(--error); color: #f2b9c6; }
.sev[data-s=error] { background: rgba(224, 82, 110, 0.12); border-color: var(--error); color: #f2b9c6; }
.sev[data-s=warning] { background: rgba(245, 194, 107, 0.12); border-color: #f5c26b; color: #f5d9a8; }
.sev[data-s=info] { color: var(--ink-dim); }
/* Errors & Health: a resolved entry stays as history but reads settled —
   muted row, severity pill drained of colour, a small check beside the message. */
.data tr.resolved td { opacity: 0.55; }
.data tr.resolved .sev { background: transparent; border-color: var(--line); color: var(--ink-dim); }
.resolved-mark { margin-left: 8px; font-size: 0.75rem; color: var(--ok); white-space: nowrap; cursor: help; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--ink-dim); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.link-btn:hover { color: var(--ink); }
.pill.ok { border-color: var(--ok); color: var(--ok); }
.pill.bad { border-color: var(--error); color: #f2b9c6; }
.pill.warn { border-color: #f5c26b; color: #f5d9a8; }
.funnel-row { display: grid; grid-template-columns: 240px 1fr 90px 90px; gap: 12px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 0.92rem; }
.funnel-row.funnel-head { padding: 0 0 6px; }
.funnel-row.funnel-head strong { color: var(--ink-dim); font-weight: 400; }
.funnel-bar { height: 14px; border-radius: 4px; background: linear-gradient(90deg, var(--navy), var(--accent)); min-width: 2px; }
@media (max-width: 760px) { .funnel-row { grid-template-columns: 1fr 70px 60px; } .funnel-row .funnel-bar { display: none; } }
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.kpi { padding: 16px 18px; }
.kpi .kpi-n { font-size: 1.6rem; font-weight: 300; }
.kpi .kpi-sub { font-size: 0.82rem; font-weight: 400; white-space: nowrap; }
.alert.note { background: rgba(201,169,107,0.08); border: 1px solid rgba(201,169,107,0.35); color: var(--ink); }
.kpi .kpi-target { font-size: 0.8rem; color: var(--ink-dim); }
.progress-cell { display: flex; align-items: center; gap: 8px; min-width: 120px; }
.progress-track { flex: 1; height: 8px; border-radius: 4px; background: #1c2438; overflow: hidden; }
.progress-fill { height: 100%; background: linear-gradient(90deg, var(--navy), var(--accent)); }
.stalled-badge { color: #f5c26b; font-size: 0.8rem; white-space: nowrap; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin-bottom: 26px; }
.stat { text-align: center; padding: 18px 10px; }
.stat-n { display: block; font-size: 1.7rem; font-weight: 300; color: var(--gold); }
.table-card { overflow-x: auto; padding: 10px; }
table.data { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
table.data th { text-align: left; color: var(--ink-dim); font-weight: 600; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.data td { padding: 9px 12px; border-bottom: 1px solid var(--line); }

/* Checkout / cart */
.checkout-page h1 { margin-bottom: 24px; }
.checkout-grid { display: grid; grid-template-columns: 1fr 340px; gap: 24px; align-items: start; }
.cart-item { display: flex; gap: 20px; align-items: flex-start; }
.cart-orb {
  flex: 0 0 64px; width: 64px; height: 64px; border-radius: 50%;
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(241,236,226,0.10), rgba(241,236,226,0) 60%),
    repeating-linear-gradient(0deg, rgba(20,17,10,0.18) 0 1px, transparent 1px 8px),
    linear-gradient(160deg, #d9c9a6 0%, #b8a27a 55%, #8f7b55 100%);
  box-shadow: 0 8px 22px rgba(0,0,0,0.4), inset 0 0 0 1px rgba(255,255,255,0.08);
}
.cart-item-body { flex: 1; min-width: 0; }
.cart-item-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.cart-item-head h2 { font-weight: 300; font-size: 1.5rem; margin: 0; }
.cart-item-head .price { font-size: 1.5rem; font-weight: 300; color: var(--gold); }
.cart-features { list-style: none; margin: 10px 0 12px; }
.cart-features li { padding: 5px 0; color: var(--ink-dim); font-size: 0.95rem; border-bottom: 1px solid var(--line); }
.gift-link { display: inline-block; margin-top: 10px; font-size: 0.9rem; }

.choice {
  display: flex; gap: 12px; align-items: flex-start; padding: 14px;
  border: 1px solid var(--line); border-radius: 8px; margin-bottom: 12px; cursor: pointer;
}
.choice.selected { border-color: var(--accent); background: rgba(201, 169, 107, 0.06); }
.choice input { margin-top: 5px; }
.choice span { display: block; font-size: 0.88rem; margin-top: 2px; }
.form-label { display: block; color: var(--ink-dim); font-size: 0.95rem; }
.form-label textarea, .form-label input[type=text], .form-label input[type=email], .form-label input[type=password], .form-label input[type=date], .form-label select {
  display: block; width: 100%; margin-top: 6px; padding: 12px 14px; font-size: 1rem;
  color: var(--ink); background: #111a2b; border: 1px solid var(--line); border-radius: 8px;
  font-family: inherit; resize: vertical;
}
.refund-reason {
  background: #111a2b; color: var(--ink); border: 1px solid var(--line);
  border-radius: 6px; padding: 4px 8px; font-family: inherit; font-size: 0.85rem; width: 160px;
}
.refund-confirm { white-space: nowrap; }
.total-row { border-top: 1px solid var(--gold); border-bottom: none; padding-top: 12px; margin: 6px 0 16px; font-size: 1.1rem; }
.hidden-block { display: none !important; }
@media (max-width: 820px) { .checkout-grid { grid-template-columns: 1fr; } }

/* Dashboard chapter map (the writing desk itself moved to /book, v0.30) */
.ms-actions { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.btn.ghost { background: transparent; border: 1px solid var(--navy-line); color: var(--gold); }
.btn.ghost:hover { border-color: var(--accent); color: var(--accent); }
.i { width: 18px; height: 18px; flex: none; }

/* Dashboard notifier — unread in-app notices (e.g. a chapter is ready) */
.notifier { display: flex; flex-direction: column; gap: 12px; margin: 0 0 24px; }
.notifier-item {
  display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 10px;
  background: rgba(201,169,107,0.08); border: 1px solid var(--accent);
}
.notifier-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); flex: none; box-shadow: 0 0 10px var(--accent); }
.notifier-body { flex: 1; min-width: 0; }
.notifier-title { font-weight: 600; }
.notifier-text { color: var(--ink-dim); font-size: 0.92rem; margin-top: 2px; }
.btn.small { padding: 8px 14px; font-size: 0.9rem; }
.notifier-open { background: var(--accent); border-color: var(--accent); color: #02121c; flex: none; }
.notifier-dismiss { background: none; border: none; color: var(--ink-dim); font-size: 1.4rem; line-height: 1; cursor: pointer; padding: 4px 8px; flex: none; }
.notifier-dismiss:hover { color: var(--ink); }
@media (max-width: 560px) {
  /* Phone: dot + text + dismiss on the first line, the button on its own line under the text. */
  .notifier-item { flex-wrap: wrap; align-items: flex-start; gap: 10px 14px; }
  .notifier-dot { margin-top: 6px; }
  .notifier-body { flex: 1 1 70%; }
  .notifier-open { order: 3; margin-left: 24px; }
}

/* Admin assign-project inline form */
.assign-form { display: inline-flex; align-items: center; gap: 6px; }
.assign-form select {
  background: #111a2b; color: var(--ink); border: 1px solid var(--line);
  border-radius: 6px; padding: 4px 6px; font-family: inherit; font-size: 0.85rem;
}
.inline-check { color: var(--ink-dim); font-size: 0.8rem; white-space: nowrap; }

/* Impersonation banner */
.impersonation-banner {
  display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap;
  background: linear-gradient(90deg, rgba(201, 169, 107, 0.22), rgba(23, 51, 92, 0.35));
  border-bottom: 1px solid var(--gold);
  color: var(--ink); padding: 8px 16px; font-size: 0.9rem;
}
.impersonation-banner .linklike { color: var(--gold); font-weight: 600; }

/* Admin user management */
.inline-form .row4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.actions-cell { white-space: nowrap; }
.actions-cell form { display: inline-block; margin-right: 10px; }
@media (max-width: 900px) { .inline-form .row4 { grid-template-columns: 1fr 1fr; } }

/* Storyteller dashboard (mockup layout) */
.story-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.story-side { display: flex; flex-direction: column; gap: 0; }
.story-layout > * { min-width: 0; }
.story-main pre, .story-main .turn-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.section-title { font-weight: 600; font-size: 1.1rem; margin: 26px 0 12px; }

.upnext { display: flex; gap: 22px; align-items: center; padding: 28px; }
.upnext-kicker { color: var(--ink-dim); letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.8rem; }
.upnext-title { font-weight: 300; font-size: 1.9rem; margin: 4px 0 6px; }
.upnext .btn { margin-top: 12px; }
.continue-orb {
  flex: 0 0 84px; width: 84px; height: 84px; border-radius: 50%;
  border: 2px solid var(--accent); display: flex; align-items: center; justify-content: center;
  color: var(--accent); font-size: 1.8rem; text-decoration: none;
  box-shadow: 0 0 24px rgba(201, 169, 107, 0.25);
}
.continue-orb:hover { background: rgba(201, 169, 107, 0.1); text-decoration: none; }

.session-card { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 18px 22px; margin-bottom: 12px; }
.session-date { color: var(--ink-dim); font-size: 0.85rem; }
.session-title { font-size: 1.15rem; font-weight: 300; margin-top: 2px; display: flex; align-items: center; gap: 10px; }
.tick { color: var(--ok); font-weight: 700; }
.linklike { background: none; border: none; color: var(--accent); cursor: pointer; font-family: inherit; font-size: 0.95rem; padding: 6px; white-space: nowrap; }
.linklike:hover { text-decoration: underline; }

.ring {
  --pct: 0;
  width: 110px; height: 110px; border-radius: 50%; margin: 6px auto 14px;
  background: conic-gradient(var(--accent) calc(var(--pct) * 1%), #243049 0);
  display: flex; align-items: center; justify-content: center;
}
.ring span {
  width: 82px; height: 82px; border-radius: 50%; background: var(--bg-panel);
  display: flex; align-items: center; justify-content: center; font-size: 1.3rem; font-weight: 300;
}
.small-p { font-size: 0.88rem; line-height: 1.55; }

/* Legacy Contact card — collapsible, with a comfortable intro */
.lc-card { position: relative; }
.lc-title { margin: 0 40px 12px 0; }
.lc-intro { font-size: 0.92rem; line-height: 1.7; margin: 0 0 20px; color: var(--ink-dim); }
.lc-close {
  position: absolute; top: 12px; right: 14px; background: none; border: none;
  color: var(--ink-dim); font-size: 1.6rem; line-height: 1; cursor: pointer; padding: 4px 8px;
}
.lc-close:hover { color: var(--ink); }

/* Cart / order review */
.cart-card { max-width: 520px; }
.cart-table { width: 100%; border-collapse: collapse; margin-bottom: 8px; }
.cart-table td { padding: 12px 0; border-bottom: 1px solid var(--line); }
.cart-table .ta-right { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cart-table tfoot .cart-total td { border-bottom: none; border-top: 2px solid var(--navy-line); font-weight: 600; font-size: 1.1rem; padding-top: 14px; }
.accent { color: var(--accent); }
.detail-row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 0.93rem; }
.detail-row span { color: var(--ink-dim); }
.quote-card p { font-style: italic; color: var(--ink-dim); line-height: 1.6; margin-bottom: 10px; }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; }

/* Admin transcript replay */
.turn { padding: 16px 20px; margin-bottom: 10px; }
.turn-guide { border-left: 3px solid var(--accent); }
.turn-user { border-left: 3px solid var(--gold); }
.turn-meta { display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; font-size: 0.85rem; margin-bottom: 6px; }
.turn-text { line-height: 1.6; }
.flag-line { margin-top: 8px; font-size: 0.85rem; padding: 4px 10px; border-radius: 6px; display: inline-block; }
.flag-line[data-severity=problem] { background: rgba(224, 82, 110, 0.15); color: #f2b9c6; }
.flag-line[data-severity=good_moment] { background: rgba(63, 191, 127, 0.15); color: #b9e8cf; }
.flag-line[data-severity=question] { background: rgba(201, 169, 107, 0.15); color: #aadff0; }
.note-line { margin-top: 6px; font-size: 0.85rem; color: var(--ink-dim); }

/* Dossier (admin project view) */
.dossier-card { padding: 16px 20px; margin-bottom: 12px; }
.dossier-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.fact-list { list-style: none; margin-top: 8px; }
.fact-list li { padding: 6px 0; border-top: 1px solid var(--line); font-size: 0.92rem; line-height: 1.5; }
.fact-list .evidence { font-size: 0.8rem; margin-left: 8px; white-space: nowrap; }
.turn:target { outline: 2px solid var(--gold); }

/* Stage bar (admin project view) */
.stage-bar-wrap { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.stage-bar { display: flex; gap: 4px; flex: 1; }
.stage-seg { flex: 1; height: 10px; border-radius: 4px; background: #243049; }
.stage-seg.zero { flex: 0.6; outline: 1px dashed #3a4661; outline-offset: -1px; }
.stage-seg[data-status=in_progress] { background: var(--gold); }
.stage-seg[data-status=core_covered] { background: var(--accent); }
.stage-seg[data-status=complete] { background: var(--ok); }
.stage-bar-label { color: var(--ink-dim); font-size: 0.85rem; white-space: nowrap; }
.stage-legend { display: flex; gap: 14px; flex-wrap: wrap; margin: 6px 0 12px; }
.stage-legend .swatch { color: var(--ink-dim); font-size: 0.8rem; padding-left: 18px; position: relative; }
.stage-legend .swatch::before { content: ''; position: absolute; left: 0; top: 3px; width: 12px; height: 12px; border-radius: 3px; background: #243049; }
.stage-legend .swatch[data-status=in_progress]::before { background: var(--gold); }
.stage-legend .swatch[data-status=core_covered]::before { background: var(--accent); }
.stage-legend .swatch[data-status=complete]::before { background: var(--ok); }

@media (max-width: 900px) {
  .story-layout { grid-template-columns: 1fr; }
}

.site-footer {
  padding: 18px 24px;
  text-align: center;
  color: var(--ink-dim);
  font-size: 0.78rem;
  border-top: 1px solid var(--line);
}
.footer-nav { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; margin-bottom: 10px; }
.footer-nav a { color: var(--ink-dim); font-size: 0.85rem; }
.footer-nav a:hover { color: var(--ink); }

/* ----------  Marketing / landing  ---------- */
.landing { flex: 1; }

/* Hero — split: copy left, layered photo composition right */
.landing .hero {
  min-height: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 56px;
  align-items: center; text-align: left;
  max-width: 1180px; margin: 0 auto; padding: 72px 24px 60px;
}
.hero-copy { max-width: 34rem; }
.hero-eyebrow { color: var(--accent); font-size: 0.82rem; letter-spacing: 0.22em; text-transform: uppercase; margin-bottom: 18px; }
.landing .hero h1 {
  font-size: clamp(2.1rem, 3.6vw, 3.2rem); font-weight: 500; letter-spacing: -0.01em;
  line-height: 1.14; margin-bottom: 22px; text-align: left;
}
.landing .hero .sub {
  color: var(--ink-dim); font-size: 1.1rem; line-height: 1.65; max-width: 32rem; margin: 0 0 28px;
}
.hero-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin: 8px 0; }
.hero-copy .hero-ctas { justify-content: flex-start; margin: 0 0 16px; }
.trust-line { color: var(--ink-dim); font-size: 0.9rem; text-align: left; }

/* Image placeholders — swap for photography later */
.img-frame {
  margin: 0; border: 1px solid var(--line); border-radius: 14px;
  background: linear-gradient(135deg, rgba(201,169,107,0.05), rgba(23,51,92,0.14)), var(--bg-panel);
  aspect-ratio: 16 / 9; display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.img-frame-note { color: var(--ink-dim); font-size: 0.78rem; letter-spacing: 0.24em; text-transform: uppercase; opacity: 0.45; }

/* Hero layered composition (right side) */
.hero-media { position: relative; min-height: 470px; }
.hero-media-glow {
  position: absolute; inset: 4% 2%; border-radius: 28px;
  background: radial-gradient(115% 115% at 32% 22%, rgba(201,169,107,0.20), rgba(23,51,92,0.12) 52%, transparent 74%);
  filter: blur(4px);
}
.hero-main {
  position: absolute; top: 0; left: 2%; width: 70%; aspect-ratio: 4 / 5;
  box-shadow: 0 26px 60px rgba(0,0,0,0.5); z-index: 1;
}
.hero-inset {
  position: absolute; bottom: 0; right: 2%; width: 46%; aspect-ratio: 3 / 4;
  box-shadow: 0 22px 48px rgba(0,0,0,0.55); z-index: 2;
}

/* Sub-page hero (gifting, pricing, faq, how-it-works) — copy + one image */
.subhero {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center;
  max-width: 1120px; margin: 0 auto; padding: 60px 24px 44px;
}
.subhero-copy { max-width: 34rem; }
.subhero-copy h1 {
  text-align: left; font-weight: 500; font-size: clamp(1.9rem, 3.2vw, 2.7rem);
  line-height: 1.15; letter-spacing: -0.01em; margin-bottom: 16px;
}
.subhero-copy .lede { text-align: left; margin: 0 0 22px; max-width: none; }
.subhero .img-frame { aspect-ratio: 4 / 3; }
.subhero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
@media (max-width: 820px) {
  .subhero { grid-template-columns: 1fr; gap: 26px; padding-top: 40px; }
  .subhero-copy { max-width: 100%; }
  .subhero-copy h1, .subhero-copy .lede { text-align: center; }
  .subhero-copy .lede { margin-left: auto; margin-right: auto; }
  .subhero-ctas { justify-content: center; }
  .subhero .img-frame { max-width: 480px; margin: 0 auto; width: 100%; }
}

/* Sections */
.band { max-width: 1080px; margin: 0 auto; padding: 64px 24px; border-top: 1px solid var(--line); }
.hero + .band, .subhero + .band { border-top: none; }
.band-title { font-weight: 300; font-size: 1.8rem; text-align: center; margin-bottom: 16px; letter-spacing: -0.01em; }
.center-lede { text-align: center; margin: 0 auto 34px; }

/* Split — image beside text (alternating) */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 46px; align-items: center; }
.split .img-frame { aspect-ratio: 4 / 3; }
.split-copy h2 { font-weight: 300; font-size: 1.75rem; letter-spacing: -0.01em; margin-bottom: 16px; }
.split-copy p { color: var(--ink-dim); margin-bottom: 14px; line-height: 1.7; }

/* Feature cards */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.card.feature { margin-bottom: 0; }
.card.feature h3 { font-weight: 600; font-size: 1.1rem; margin-bottom: 10px; color: var(--ink); }
.card.feature p { color: var(--ink-dim); font-size: 0.98rem; line-height: 1.65; }

/* Steps */
.steps { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; margin-bottom: 30px; }
.card.step { margin-bottom: 0; position: relative; padding-top: 32px; }
.card.step h3 { font-weight: 600; font-size: 1.1rem; margin-bottom: 8px; }
.card.step p { color: var(--ink-dim); font-size: 0.96rem; line-height: 1.6; }
.step-n {
  position: absolute; top: -16px; left: 22px;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--bg-panel); color: var(--accent); font-weight: 600;
  border: 2px solid var(--accent);
  display: flex; align-items: center; justify-content: center;
}

/* Pricing teaser */
.tier-teaser-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; margin-bottom: 24px; }
.card.tier-teaser { margin-bottom: 0; position: relative; text-align: center; color: var(--ink); display: block; padding-top: 30px; }
.card.tier-teaser:hover { text-decoration: none; border-color: var(--accent); }
.card.tier-teaser.featured { border-color: var(--accent); }
.card.tier-teaser h3 { font-weight: 600; font-size: 1rem; }
.card.tier-teaser .price { font-size: 2rem; font-weight: 300; margin: 6px 0 8px; }

/* Gifting band */
.gift-card-wide { display: flex; align-items: center; gap: 30px; justify-content: space-between; flex-wrap: wrap; padding: 36px; border-color: var(--accent); }
.gift-card-wide h2 { font-weight: 300; font-size: 1.6rem; margin-bottom: 12px; }
.gift-card-wide p { color: var(--ink-dim); max-width: 34rem; margin-bottom: 20px; line-height: 1.7; }
.gift-code-demo {
  font-size: 1.6rem; letter-spacing: 0.15em; color: var(--accent);
  border: 1px dashed var(--accent); border-radius: 10px; padding: 18px 26px; white-space: nowrap;
}

/* FAQ */
.faq-teaser details.card, .faq-page details.card { margin-bottom: 12px; padding: 0; overflow: hidden; }
details.card summary {
  cursor: pointer; padding: 18px 22px; font-weight: 600; font-size: 1rem; list-style: none;
  position: relative; padding-right: 46px;
}
details.card summary::-webkit-details-marker { display: none; }
details.card summary::after {
  content: '+'; position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
  color: var(--accent); font-size: 1.3rem; font-weight: 300;
}
details.card[open] summary::after { content: '\2212'; }
details.card p { padding: 0 22px 20px; color: var(--ink-dim); font-size: 0.97rem; line-height: 1.65; }
.faq-section { font-weight: 300; font-size: 1.4rem; margin: 40px 0 16px; color: var(--ink); }

/* Final CTA */
.final-cta { text-align: center; padding-bottom: 84px; }

@media (max-width: 860px) {
  .landing .hero { grid-template-columns: 1fr; gap: 30px; text-align: center; padding-top: 48px; }
  .hero-copy { max-width: 100%; }
  .hero-eyebrow, .landing .hero h1, .landing .hero .sub, .trust-line { text-align: center; }
  .landing .hero .sub { margin-left: auto; margin-right: auto; }
  .hero-copy .hero-ctas { justify-content: center; }
  .hero-media { min-height: 360px; max-width: 440px; width: 100%; margin: 0 auto; }
}
@media (max-width: 760px) {
  .split { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 420px) {
  .hero-media { min-height: 300px; }
}

/* How-it-works journey */
.journey { margin-top: 26px; }
.card.journey-step { display: flex; gap: 20px; align-items: flex-start; }
.card.journey-step .step-n { position: static; flex: 0 0 34px; }
.card.journey-step h2 { margin-top: 2px; }
.card.journey-step p { color: var(--ink-dim); margin-bottom: 8px; }
.card.journey-step p:last-child { margin-bottom: 0; }

/* Gifting page */
.gift-steps { margin: 14px 0 20px 20px; }
.gift-steps li { padding: 8px 0; color: var(--ink-dim); }
.gift-steps li strong { color: var(--ink); }
.gift-code-inline { color: var(--gold); letter-spacing: 0.12em; }
.gift-box-list, .plain-list { list-style: none; margin: 12px 0; }
.gift-box-list li { padding: 6px 0 6px 24px; position: relative; color: var(--ink-dim); }
.gift-box-list li::before { content: '\2713'; position: absolute; left: 0; color: var(--gold); }
.plain-list li { padding: 8px 0; color: var(--ink-dim); border-bottom: 1px solid var(--line); }
.plain-list li:last-child { border-bottom: none; }
.plain-list li strong { color: var(--ink); }
.gift-how { border-color: var(--gold); }

@media (max-width: 640px) {
  .band { padding: 40px 16px; }
  .gift-card-wide { justify-content: center; text-align: center; }
}

@media (max-width: 640px) {
  .form .row2 { grid-template-columns: 1fr; }
  .page { padding: 28px 16px 48px; }
}

/* Checkout: gift delivery sub-choices, Founding 100 treatment (v0.13) */
.choice.sub-choice { padding: 10px 12px; margin: 6px 0; }
.founding-note { margin: 10px 0 6px; padding: 10px 12px; border-left: 3px solid var(--accent); background: rgba(201, 169, 107, 0.06); font-size: 0.95rem; }
.detail-row.founding-row strong { color: var(--accent); }
.gift-status-list { list-style: none; padding: 0; margin: 0; }
.gift-status-list li { display: flex; gap: 12px; align-items: baseline; padding: 6px 0; border-bottom: 1px solid rgba(255,255,255,0.06); }
.gift-status-list li:last-child { border-bottom: 0; }
.gift-status-list .dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.18); flex: 0 0 10px; position: relative; top: -1px; }
.gift-status-list .dot.on { background: var(--accent); box-shadow: 0 0 0 4px rgba(201, 169, 107, 0.15); }
.inline-form { display: inline; }
.confirm-card { max-width: 720px; margin: 0 auto; text-align: left; }
.confirm-card .lede { margin-bottom: 18px; }
.confirm-card ul { margin: 12px 0 18px 20px; line-height: 1.6; }
.trust-line.founding-line { color: var(--accent); font-size: 0.95rem; margin-top: 4px; }
/* Storytelling milestones (Michael: progress by milestones, never counts) */
/* Your Conversations — quiet transcript reading page */
.section-title-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.section-title-row .section-title { margin-bottom: 0; }
.tr-session { padding: 22px 26px; margin-bottom: 18px; scroll-margin-top: 24px; }
.tr-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; border-bottom: 1px solid rgba(255,255,255,0.08); padding-bottom: 12px; margin-bottom: 6px; }
.tr-title { font-size: 1.25rem; margin: 2px 0 0; }
.tr-turn { padding: 13px 0; border-bottom: 1px solid rgba(255,255,255,0.05); }
.tr-turn:last-child { border-bottom: 0; }
.tr-who { display: block; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 5px; }
.tr-guide .tr-who { color: var(--accent); }
.tr-teller .tr-who { color: var(--ink-dim); }
.tr-text { color: var(--ink); font-size: 1.02rem; line-height: 1.72; max-width: 62ch; }
.tr-guide .tr-text { color: var(--ink-dim); }
.tr-intro { max-width: 46em; margin: 0 0 30px; }
.tr-note { margin: 12px 0 2px; padding: 12px 16px 10px; background: rgba(201,169,107,0.07); border-left: 3px solid var(--accent); border-radius: 0 10px 10px 0; max-width: 62ch; }
.tr-note-label { display: block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin-bottom: 4px; }
.tr-note-text { color: var(--ink); font-size: 0.98rem; line-height: 1.65; }
.tr-note-remove { margin-top: 2px; }
.tr-note-remove .linklike { font-size: 0.8rem; color: var(--ink-faint); padding: 2px 0; }
.tr-note-remove .linklike:hover { color: var(--accent); }
.tr-addnote { margin-top: 6px; font-size: 0.85rem; color: var(--ink-faint); padding: 4px 0; }
.tr-addnote:hover { color: var(--accent); }
.tr-inline-form { margin-top: 10px; display: grid; gap: 10px; max-width: 62ch; justify-items: start; }
.tr-inline-form textarea, .tr-inline-form input[type=text] { width: 100%; background: var(--bg-panel-2); border: 1px solid rgba(255,255,255,0.14); border-radius: 10px; padding: 12px 14px; color: var(--ink); font-family: inherit; font-size: 1rem; }
.tr-inline-form textarea:focus, .tr-inline-form input[type=text]:focus { outline: 2px solid rgba(201,169,107,0.55); border-color: transparent; }
.tr-chtitle { margin-top: 8px; }
.tr-chtitle .tr-toggle { padding-left: 0; font-size: 0.88rem; }
.tr-chtitle-current { color: var(--accent); font-size: 0.9rem; margin-right: 8px; }

.milestone-list { list-style: none; margin: 0; padding: 0; }
.milestone-list li { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,0.06); }
.milestone-list li:last-child { border-bottom: 0; }
.milestone-list .ms-dot { width: 22px; height: 22px; border-radius: 50%; background: rgba(255,255,255,0.14); flex: 0 0 22px; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; line-height: 1; color: var(--bg); }
.milestone-list li.now .ms-dot { background: var(--accent); box-shadow: 0 0 0 4px rgba(201,169,107,0.16); }
.milestone-list li.done .ms-dot { background: transparent; }
.milestone-list .ms-jump-form { display: contents; }
.milestone-list button.ms-jump { background: transparent; border: 1.5px dashed rgba(255,255,255,0.35); color: var(--ink-dim); font-size: 16px; font-weight: 600; cursor: pointer; padding: 0; transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease; }
.milestone-list button.ms-jump:hover, .milestone-list button.ms-jump:focus-visible { border-color: var(--accent); border-style: solid; color: var(--accent); background: rgba(201,169,107,0.12); }
.milestone-list li.now button.ms-jump { border-color: var(--accent); border-style: solid; color: var(--accent); background: rgba(201,169,107,0.1); box-shadow: 0 0 0 4px rgba(201,169,107,0.16); }
.milestone-list .ms-name { flex: 1; }
.milestone-list li.done .ms-name { color: var(--ink); }
.milestone-list .ms-state { font-size: 0.85rem; color: var(--ink-dim); }
.milestone-list li.now .ms-state { color: var(--accent); }
.milestone-list a.ms-state-link { color: var(--accent); text-decoration: none; border: 1px solid rgba(201,169,107,0.4); border-radius: 20px; padding: 4px 13px; line-height: 1.5; white-space: nowrap; transition: background 0.15s ease, border-color 0.15s ease; }
.milestone-list a.ms-state-link:hover, .milestone-list a.ms-state-link:focus-visible { background: rgba(201,169,107,0.14); border-color: rgba(201,169,107,0.7); }

/* Delivery: shipping forms (v0.17) */
.ship-form label { display:block; margin-bottom:10px; color: var(--ink-dim); font-size:.95rem; }
.ship-form input[type=text] { display:block; width:100%; margin-top:5px; padding:10px 12px; font-size:1rem; color:var(--ink); background:#111a2b; border:1px solid var(--line); border-radius:8px; font-family:inherit; }
.ship-row { display:grid; grid-template-columns: 2fr 1fr 1fr; gap:10px; }
@media (max-width: 480px) { .ship-row { grid-template-columns: 1fr; } }


/* =====================================================================
   HEIRLOOM BRAND LAYER (Aug 2026) — the look of Michael's dashboard mock,
   applied over the existing structure. Serif for reading, gold restrained.
   ===================================================================== */
body { font-size: 17.5px; line-height: 1.6; }
h1, h2, h3, .page h1, .page h2, .band-title, .faq-section, .upnext-title, .ms-title, .gen-modal-title, .confirm-card h1,
.tier h2, .card.tier-teaser h3, .price, .stat-n, .gift-code, .gift-code-demo, .quote-card p, .ring span, .hero h1, .subhero h1, .cart-item-head h2 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: 0.005em;
}
.page h1 { font-size: 2.35rem; line-height: 1.12; }
.page h2 { font-size: 1.35rem; font-weight: 400; }
.section-title { font-family: var(--serif); font-weight: 400; font-size: 1.45rem; letter-spacing: 0.005em; }
.card h3 { font-family: var(--serif); font-weight: 400; font-size: 1.28rem; }
.hero h1, .subhero h1 { font-weight: 400; letter-spacing: 0; }
.hero-eyebrow, .tagline, .upnext-kicker, .ms-draft-label, .eyebrow { color: var(--gold); font-family: var(--sans); font-weight: 500; }
.lede, .sub { font-family: var(--sans); }
.quote-card p { font-style: italic; font-size: 1.15rem; line-height: 1.55; }
.quote-card .accent { font-family: var(--serif); font-style: italic; text-transform: none; letter-spacing: 0; }
.quote-card .accent::before { content: none; }

/* Cards: ink panels, hairline, soft inner top light like the mock */
.card {
  background: linear-gradient(180deg, rgba(241,236,226,0.025), rgba(241,236,226,0) 40%), var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 1px 0 rgba(241,236,226,0.03) inset;
}
.card.featured, .tier.featured, .card.tier-teaser.featured, .ms-finalize.ready, .ms-chapter.ms-just-generated { border-color: rgba(201,169,107,0.55); box-shadow: 0 0 0 1px rgba(201,169,107,0.18), 0 0 30px rgba(201,169,107,0.06); }
.badge { background: transparent; border: 1px solid var(--gold); color: var(--gold); letter-spacing: 0.12em; }
.pill { border: 1px solid rgba(201,169,107,0.55); color: var(--gold); background: transparent; border-radius: 999px; font-family: var(--sans); }
.pill.tier-pill { border-color: rgba(201,169,107,0.55); color: var(--gold); }
.approved-badge, .tick { color: var(--gold); }
a { color: var(--gold); }

/* Buttons: primary = gold, quiet = hairline, all ≥ 46px tall */
.btn { min-height: 46px; padding: 11px 20px; border-radius: 10px; font-size: 1rem; font-family: var(--sans); }
.btn.small { min-height: 36px; padding: 6px 14px; }
.btn.primary .i, .btn.primary svg { color: #14110a; }
.linklike, .accent { color: var(--gold); }
.notifier-open { background: var(--gold-strong); border-color: var(--gold-strong); color: #14110a; }
.notifier-dot { background: var(--gold); }
.notifier-item { border-color: rgba(201,169,107,0.35); }

/* Progress ring — gold arc on ink */
.ring { background: conic-gradient(var(--gold) calc(var(--pct) * 1%), rgba(241,236,226,0.10) 0); }
.ring::before { background: var(--bg-panel); }
.ring span { font-size: 1.7rem; }

/* Milestones — check circles on a dotted spine (mock) */
.milestone-list li { position: relative; padding: 12px 0 12px 44px; border-bottom: 1px solid var(--line); }
.milestone-list li::before { content: ''; position: absolute; left: 13px; top: 42px; bottom: -12px; border-left: 1px dashed rgba(201,169,107,0.35); }
.milestone-list li:last-child::before { display: none; }
.milestone-list .ms-dot { position: absolute; left: 0; top: 11px; width: 28px; height: 28px; border-radius: 50%; background: transparent; border: 1.5px solid rgba(201,169,107,0.45); box-shadow: none; display: flex; align-items: center; justify-content: center; color: var(--gold); font-size: 0.85rem; }
.milestone-list li.done .ms-dot { border-color: var(--gold); }
.milestone-list li.done .ms-dot::after { content: '\2713'; }
.milestone-list li.now .ms-dot { border-color: var(--gold); background: var(--gold-soft); box-shadow: 0 0 0 4px rgba(201,169,107,0.10); }
.milestone-list .ms-name { font-family: var(--serif); font-size: 1.15rem; }
.milestone-list .ms-state { border: 1px solid rgba(201,169,107,0.45); border-radius: 999px; padding: 3px 12px; font-size: 0.8rem; color: var(--gold); }
.milestone-list li.now .ms-state { color: var(--gold); }
.milestone-list li:not(.done):not(.now) .ms-state { border-color: var(--line-2); color: var(--ink-dim); }

/* Continue-your-story hero card */
.upnext { position: relative; overflow: hidden; padding: 30px 30px 30px 26px; }
.upnext .continue-orb {
  width: 132px; height: 132px; border-radius: 12px; flex: none;
  background:
    linear-gradient(135deg, rgba(241,236,226,0.10), rgba(241,236,226,0) 60%),
    repeating-linear-gradient(0deg, rgba(20,17,10,0.18) 0 1px, transparent 1px 9px),
    linear-gradient(160deg, #d9c9a6 0%, #b8a27a 55%, #8f7b55 100%);
  box-shadow: 0 10px 30px rgba(0,0,0,0.45), inset 0 0 0 1px rgba(255,255,255,0.08);
  color: #14110a; font-size: 2rem; display: flex; align-items: center; justify-content: center;
}
.upnext .continue-orb span { opacity: 0.85; }
/* per-chapter line drawing (chapter_art()); a gilt plate with the mark pressed into it */
.upnext .continue-orb .chapter-art { width: 76px; height: 76px; opacity: 0.86; transition: transform 0.35s ease; }
.upnext .continue-orb:hover .chapter-art { transform: scale(1.06); }
.upnext-title { font-size: 2.2rem; }
.upnext .btn.primary { margin-top: 12px; }

/* Session cards, detail rows */
.session-title { font-family: var(--serif); font-size: 1.25rem; }
.detail-row strong { color: var(--ink); }
.detail-row .accent { color: var(--gold); }

/* Inputs */
.form input[type=text], .form input[type=email], .form input[type=password], .form-label textarea, .form-label input, .box-input, .ship-form input[type=text], .ms-ask .ask-text, .title-input, textarea {
  background: #0b1322; border: 1px solid var(--line-2); color: var(--ink); border-radius: 10px;
}
.form input:focus, .box-input:focus, textarea:focus, .ship-form input:focus { outline: 2px solid rgba(201,169,107,0.55); border-color: transparent; }
.choice.selected { border-color: rgba(201,169,107,0.7); background: var(--gold-soft); }

/* Marketing bands and image frames */
.band { border-top: 1px solid var(--line); }
.img-frame { background: linear-gradient(160deg, #1a2438, #0f1626); border: 1px solid var(--line-2); border-radius: 12px; }
.img-frame-note { color: var(--ink-faint); }
.card.step .step-n { background: var(--gold-strong); color: #14110a; font-family: var(--serif); font-weight: 600; }
.gift-code-demo { color: var(--gold); border-color: rgba(201,169,107,0.45); }
.tier .price { font-size: 2.4rem; }
.hero-media-glow { background: radial-gradient(closest-side, rgba(201,169,107,0.18), rgba(201,169,107,0)); }
.trust-line.founding-line { color: var(--gold); }
.founding-note { border-left-color: var(--gold); background: var(--gold-soft); }
.detail-row.founding-row strong { color: var(--gold); }
.total-row { border-top-color: rgba(201,169,107,0.5); }
.gift-status-list .dot.on { background: var(--gold); box-shadow: 0 0 0 4px rgba(201,169,107,0.15); }
.alert.ok { background: rgba(158,196,154,0.10); border-color: rgba(158,196,154,0.4); color: #d7e6d4; }
.alert.error { background: rgba(214,121,106,0.10); border-color: rgba(214,121,106,0.45); color: #f0cfc7; }

/* Site footer */
.site-footer { border-top: 1px solid var(--line); color: var(--ink-faint); }
.footer-nav a { color: var(--ink-dim); }

/* Admin shell — same materials, gold active state, serif page titles */
.admin-side { background: linear-gradient(180deg, #0f1829, #0a1120); border-right: 1px solid var(--line); }
.admin-item { color: var(--ink-dim); border-radius: 8px; }
.admin-item.active { background: var(--gold-soft); color: var(--gold); border: 1px solid rgba(201,169,107,0.35); }
.admin-item:hover { color: var(--ink); background: rgba(241,236,226,0.04); }
.admin-brand { font-family: var(--serif); font-size: 1.25rem; }
.admin-topstrip { border-bottom: 1px solid var(--line); background: rgba(14,22,38,0.7); }
.admin-main h1, .admin-main h2 { font-family: var(--serif); font-weight: 400; }
/* Intro and footnote paragraphs that sit directly on the page (not in a card).
   The global reset leaves <p> with no margin, so these touched whatever came
   next — the same crowding on every admin page. */
.admin-main > p.muted { margin: 0 0 24px; line-height: 1.6; max-width: 60em; }
.admin-main > .card + p.muted, .admin-main > div + p.muted, .admin-main > table + p.muted, .admin-main > form + p.muted { margin-top: 18px; }
.table th { color: var(--ink-dim); font-weight: 500; letter-spacing: 0.04em; font-size: 0.8rem; text-transform: uppercase; }
.funnel-bar, .progress-fill { background: linear-gradient(90deg, var(--gold-strong), var(--gold)); }
.stat-n { color: var(--gold); }
.pill.warn { border-color: #d9b56b; color: #e9d3a3; }
.pill.ok { border-color: var(--ok); color: var(--ok); }
.pill.bad { border-color: var(--error); color: #f0cfc7; }
.sev { border: 1px solid var(--line-2); }

/* Interview handoff, welcome, directing pages pick up tokens */
.directing .count { color: var(--gold); font-family: var(--serif); }
.directing h1 { font-family: var(--serif); }
.welcome-page { --cyan: var(--gold); --navy: var(--gold-strong); --navy-line: rgba(201,169,107,0.55); --ink: #f1ece2; --dim: #b9b0a1; --faint: #7f786c; --line: rgba(241,236,226,0.12); }
.welcome-page .prompt, .welcome-page .welcome-word, .welcome-page .guide b { font-family: var(--serif); }
.welcome-page .btn.primary, .welcome-page .btn { color: #14110a; }
.welcome-page .btn { background: var(--gold-strong); border-color: var(--gold-strong); color: #14110a; font-weight: 600; }
.welcome-page .guide.on { border-color: var(--gold); background: var(--gold-soft); box-shadow: 0 0 0 3px rgba(201,169,107,0.12); }
.welcome-page .guide .hear { color: var(--gold); border-color: rgba(201,169,107,0.45); }
.welcome-page .dot.on { background: var(--gold); }
.welcome-page .dot.done { background: rgba(201,169,107,0.45); }
.welcome-page .field input:focus { border-bottom-color: var(--gold); }
.welcome-page.listening .mic { background: var(--gold); color: #14110a; box-shadow: 0 0 24px rgba(201,169,107,0.55); }
.welcome-page .mic { color: var(--gold); border-color: rgba(201,169,107,0.45); background: var(--gold-soft); }
.welcome-page .chip { background: var(--gold-soft); border-color: rgba(201,169,107,0.35); }
.welcome-page .explain { border-color: var(--line-2); }
.welcome-page .eyebrow { color: var(--gold); }

/* Mobile / responsive hardening (Aug 15 QA) */
.admin-main .card { overflow-x: auto; }
.admin-main .table-wrap { overflow-x: auto; }
.two-col > *, .admin-main .row2 > *, .checkout-grid > *, .stat-grid > * { min-width: 0; }
.admin-topstrip h1 { font-size: 1.25rem; }
@media (max-width: 900px) {
  .admin-main .row2, .two-col { grid-template-columns: 1fr !important; }
  .admin-topstrip { flex-wrap: wrap; gap: 8px; }
}
@media (max-width: 760px) {
  .checkout-grid { grid-template-columns: 1fr; }
  .story-layout { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .upnext { flex-direction: column; align-items: flex-start; }
  .upnext .continue-orb { width: 96px; height: 96px; }
  .upnext .continue-orb .chapter-art { width: 56px; height: 56px; }
  .upnext-title { font-size: 1.7rem; }
  .cart-item { flex-direction: column; }
  .cart-orb { display: none; }
  .gift-card-wide { flex-direction: column; text-align: center; }
  .hero-media { min-height: 320px; }
  .row4 { grid-template-columns: 1fr !important; }
  .page h1 { font-size: 1.9rem; }
  .btn.wide { white-space: normal; }
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  table { font-size: 0.9rem; }
  .milestone-list li { padding-left: 40px; }
  .milestone-list .ms-name { font-size: 1.05rem; }
  .detail-row { flex-wrap: wrap; }
  .directing .count { font-size: 84px; }
}

.cart-item-head .badge, h2 .badge, h1 .badge { font-family: var(--sans); font-size: 0.68rem; letter-spacing: 0.12em; padding: 3px 10px; vertical-align: middle; }
.orb { background: radial-gradient(circle at 34% 30%, #f6ead0 0%, #c9a96b 40%, #7a5f33 75%, transparent 100%); box-shadow: 0 0 60px 8px rgba(201,169,107,0.28), inset 0 0 30px rgba(255,255,255,0.15); }

.topbar.open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.topbar.open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-toggle span { transform-origin: center; }
/* Admin: logomark visible on the mobile top strip (sidebar hidden) */
.admin-topmark { display: none; }
@media (max-width: 900px) {
  .admin-topmark { display: inline-flex; align-items: center; }
  .admin-topmark img { height: 22px; width: auto; }
  .admin-main { overflow-x: hidden; }
  .admin-main .card, .admin-main table { max-width: 100%; }
}
/* Directing page: source survey controls sized for older adults */
select.box-input, .directing select { appearance: none; -webkit-appearance: none; padding: 12px 40px 12px 14px; font: inherit; font-size: 1rem; min-height: 46px; color: var(--ink); background-color: #0b1322;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' fill='none' stroke='%23c9a96b' stroke-width='1.6'/></svg>"); background-repeat: no-repeat; background-position: right 14px center; }
.directing form { flex-direction: column; }
.directing form .box-input { width: 100%; max-width: 420px; }
.directing form .btn { min-height: 46px; font-size: 1rem; }
/* Admin polish (Aug 17): every table + every input in the admin shares one look */
.admin-main table.table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.admin-main table.table th { text-align: left; color: var(--ink-dim); font-weight: 600; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; }
.admin-main table.table td { padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.admin-main table.table tbody tr:last-child td { border-bottom: 0; }
.admin-main table.data th { font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; }
.admin-main .card h3 { margin-bottom: 8px; }
.admin-main .card .small-p { margin-bottom: 12px; }
.admin-main .form.inline-form { display: block; }
.admin-main .form.inline-form label { display: block; margin: 0 0 12px; font-size: 0.9rem; }
.admin-main .form.inline-form .row4 { margin-bottom: 4px; }
.admin-main .form.inline-form .row4 label { margin-bottom: 0; }
.admin-main .form.inline-form .btn { margin-top: 12px; }
.form input[type=date], .form input[type=number], .form input[type=url], .form input[type=tel], .form select, .form textarea,
.admin-main input[type=date], .admin-main input[type=number], .admin-main input[type=url], .admin-main select {
  display: block; width: 100%; margin-top: 6px; padding: 11px 14px; font-size: 1rem; color: var(--ink);
  background: #0b1322; border: 1px solid var(--line-2); border-radius: 10px; font-family: inherit; color-scheme: dark;
}
.admin-main .refund-reason { display: inline-block; width: auto; margin-top: 0; padding: 6px 10px; font-size: 0.85rem; border-radius: 6px; }
.admin-main input[type=date]::-webkit-calendar-picker-indicator { filter: invert(0.8) sepia(0.4) saturate(2) hue-rotate(5deg); cursor: pointer; }
.admin-main .row2 { align-items: stretch; margin-bottom: 20px; }
.admin-main .row2 > .card { margin-bottom: 0; }
.admin-main .detail-row { padding: 8px 0; }
.admin-main .actions-cell select, .admin-main .actions-cell input[type=text], .admin-main table select { display: inline-block; width: auto; margin-top: 0; padding: 5px 8px; font-size: 0.85rem; border-radius: 6px; }

/* ---- Mock payment page (sandbox) — v0.21.0 ---- */
.pay-grid{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);gap:24px;align-items:start;max-width:920px;margin:0 auto}
.pay-grid > *{min-width:0}
.pay-card .form-label{display:block}
.pay-card .row2{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.pay-card .row2 > *{min-width:0}
.pay-input-wrap{position:relative;display:block}
.pay-input-wrap .box-input{padding-right:140px}
.pay-brands{position:absolute;right:10px;top:50%;transform:translateY(-50%);display:flex;gap:6px;pointer-events:none}
.pay-brands span{font-size:10px;font-weight:700;letter-spacing:.04em;padding:3px 6px;border-radius:4px;border:1px solid rgba(255,255,255,.18);color:var(--ink-dim);background:rgba(255,255,255,.04)}
.pay-summary h3{margin-top:0}
@media (max-width:760px){.pay-grid{grid-template-columns:1fr}.pay-card .row2{grid-template-columns:1fr}.pay-input-wrap .box-input{padding-right:12px}.pay-brands{display:none}}

/* ---- Dashboard source-survey card — v0.21.1 ---- */
.survey-card{margin:34px 0 0;position:relative}
.survey-form{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.survey-skip{margin:8px 0 0}
.survey-skip .linklike{background:none;border:0;padding:0;color:var(--ink-dim);font-size:13px;cursor:pointer;text-decoration:underline}

/* ---- Admin: jump bar, assign form, delete, checkbox — v0.22.0 ---- */
.jump-bar{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 16px}
.jump-bar a{display:inline-flex;align-items:center;gap:6px;padding:7px 12px;border:1px solid var(--line);border-radius:999px;color:var(--ink-dim);font-size:.85rem;text-decoration:none}
.jump-bar a:hover{color:var(--ink);border-color:var(--gold)}
.jump-bar .count{background:rgba(184,150,90,.18);color:var(--gold);border-radius:999px;padding:1px 7px;font-size:.75rem}
.admin-main [id]{scroll-margin-top:24px}
.assign-form{flex-wrap:wrap}
.assign-lbl{color:var(--ink-dim);font-size:.8rem;white-space:nowrap}
.inline-check{display:inline-flex;align-items:center;gap:6px;cursor:pointer}
.inline-check input[type=checkbox]{appearance:none;-webkit-appearance:none;width:16px;height:16px;margin:0;border:1px solid var(--line);border-radius:4px;background:#111a2b;display:inline-grid;place-items:center;cursor:pointer}
.inline-check input[type=checkbox]:checked{border-color:var(--gold);background:var(--gold)}
.inline-check input[type=checkbox]:checked::after{content:"";width:5px;height:9px;border:solid #14110a;border-width:0 2px 2px 0;transform:translateY(-1px) rotate(45deg)}
.admin-main .actions-cell form{display:inline-block;margin:0 6px 4px 0}
.linklike.danger{color:#d9736a}
.linklike.danger:hover{color:#ef8f86}

.jump-bar a.on{color:var(--ink);border-color:var(--gold);background:rgba(184,150,90,.12)}

.admin-main { overflow-x: hidden; }
.dossier-card .dossier-fact { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: baseline; }
@media (max-width: 1100px) { .story-layout { grid-template-columns: minmax(0,1fr); } }

/* Full transcript (admin support view) */
.transcript-card{padding:8px 22px 18px}
.tl-turn{padding:12px 0;border-bottom:1px solid var(--line)}
.tl-turn:last-of-type{border-bottom:0}
.tl-who{font-size:.78rem;letter-spacing:.12em;text-transform:uppercase;color:var(--gold);margin-bottom:4px}
.tl-user .tl-who{color:var(--ink-dim)}
.tl-text{font-size:1rem;line-height:1.6;max-width:80ch}
.tl-user .tl-text{color:var(--ink)}
.tl-guide .tl-text{color:var(--ink-dim)}
#latest{background:rgba(184,150,90,.08);margin:0 -22px;padding:12px 22px;border-left:3px solid var(--gold)}
.tl-now{margin-top:12px;color:var(--gold);font-size:.9rem}

.steps-cta{margin-top:10px}
.steps-cta .btn{margin:4px 6px}
.steps{margin-bottom:36px}
.checkout-page .row2{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.checkout-page .row2 > *{min-width:0}
@media (max-width:640px){.checkout-page .row2{grid-template-columns:1fr}}

/* ---- Checkout polish (v0.25.4): sticky summary, branded radios, copies row, mobile bar ---- */
.checkout-side{position:sticky;top:24px}
.choice{position:relative;align-items:flex-start}
.choice input[type=radio]{appearance:none;-webkit-appearance:none;flex:0 0 22px;width:22px;height:22px;margin:2px 0 0;border:2px solid var(--line-2,rgba(241,236,226,.25));border-radius:50%;background:#0b1322;display:inline-grid;place-items:center;cursor:pointer;transition:border-color .15s}
.choice input[type=radio]::after{content:"";width:10px;height:10px;border-radius:50%;background:var(--gold);transform:scale(0);transition:transform .15s}
.choice input[type=radio]:checked{border-color:var(--gold)}
.choice input[type=radio]:checked::after{transform:scale(1)}
.choice input[type=radio]:focus-visible{outline:2px solid rgba(201,169,107,.55);outline-offset:2px}
.choice:hover{border-color:rgba(201,169,107,.45)}
.copies-row{display:flex;align-items:center;gap:14px;margin-top:14px;flex-wrap:wrap}
.copies-label{margin:0;font-weight:500}
.copies-select{width:110px;min-width:110px}
.copies-note{font-size:.9rem}
.checkout-mobilebar{display:none}
@media (max-width:820px){
  .checkout-side{position:static}
  .checkout-page{padding-bottom:96px}
  .checkout-mobilebar{display:flex;position:fixed;left:0;right:0;bottom:0;z-index:50;align-items:center;justify-content:space-between;gap:14px;padding:12px 16px calc(12px + env(safe-area-inset-bottom,0px));background:rgba(7,12,22,.96);border-top:1px solid var(--line);backdrop-filter:blur(8px)}
  .checkout-mobilebar strong{display:block;font-size:1.15rem}
  .checkout-mobilebar .btn{white-space:nowrap}
  .copies-row{align-items:flex-start;flex-direction:column;gap:8px}
}

.upgrade-grid .current-tier{opacity:.85;border-style:dashed}
.badge.muted-badge{background:transparent;border:1px solid var(--line);color:var(--ink-dim)}

.recipient-row{display:grid;grid-template-columns:1fr 1.3fr auto;gap:8px;align-items:center;margin-bottom:8px}
.recipient-remove{width:36px;height:36px;border-radius:999px;border:1px solid var(--line);background:transparent;color:var(--ink-dim);font-size:18px;cursor:pointer}
.recipient-remove:hover{color:var(--ink);border-color:var(--gold)}
@media (max-width:640px){.recipient-row{grid-template-columns:1fr auto}.recipient-row .rcp-email{grid-column:1}.recipient-row .recipient-remove{grid-row:1;grid-column:2}}

.recipient-row{grid-template-columns:1fr 1.3fr auto;row-gap:8px}
.recipient-row .box-input{width:100%;padding:12px 14px;font:inherit;font-size:1rem;min-height:46px}
.recipient-row .rcp-date{grid-column:1 / -1;display:flex;align-items:center;gap:10px}
.recipient-row .rcp-date input{max-width:220px}
#recipients{margin-bottom:4px}
#addRecipient{font-size:.95rem;padding:6px 0}
.seg-choice{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.seg-choice .choice.sub-choice{margin:0}
@media (max-width:640px){.seg-choice{grid-template-columns:1fr}.recipient-row .rcp-date{grid-column:1}}
/* Consistent breathing room above buttons that follow text */
.page p + p.center, .page .card + p.center, .page ul + p.center, .page .lede + p.center, .page .muted + p.center{margin-top:28px}
.page p.center .btn{margin-top:0}
.page .card p.muted + form, .page .card p.small-p + form{margin-top:14px}
.recipient-row{grid-template-columns:1fr 1.3fr 36px;padding:10px 12px;border:1px solid var(--line);border-radius:12px;margin-bottom:10px}
.recipient-row .recipient-remove{grid-column:3;grid-row:1}
.recipient-row .rcp-date{grid-column:1 / 3}
@media (max-width:640px){.recipient-row{grid-template-columns:1fr 36px}.recipient-row .rcp-email{grid-column:1}.recipient-row .recipient-remove{grid-column:2;grid-row:1}.recipient-row .rcp-date{grid-column:1}}
input[type=date].box-input{color-scheme:dark}
input[type=date].box-input::-webkit-calendar-picker-indicator{filter:invert(1) opacity(.8);cursor:pointer}


/* Milestone action pills (Add more / Mark Complete) */
.ms-actions { display: inline-flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.ms-actions form { display: inline-flex; margin: 0; }
button.ms-state { background: transparent; cursor: pointer; font-family: inherit; line-height: 1.5; }
button.ms-state:hover { background: rgba(201,169,107,0.12); }

/* Milestone rows: identical height and centering whether the pill area holds
   a state span, an action button, or both; the + form never adds a stray box */
.milestone-list .ms-state { line-height: 1.5; display: inline-flex; align-items: center; }
.milestone-list li { align-items: center; }
.milestone-list .ms-dot, .milestone-list button.ms-jump { top: 50%; transform: translateY(-50%); }

/* Gift-box link (pricing): whole row clickable, icon + label together */
.gift-link { display: flex; align-items: center; justify-content: center; gap: 9px; width: 100%; margin-top: 12px; padding: 9px 12px; border: 1px solid rgba(201,169,107,0.35); border-radius: 10px; font-size: 0.95rem; text-decoration: none; transition: background 0.15s ease, border-color 0.15s ease; }
.gift-link:hover, .gift-link:focus-visible { background: rgba(201,169,107,0.12); border-color: rgba(201,169,107,0.7); }
.gift-link .gift-icon { flex: 0 0 20px; }
/* What each higher package adds */
.tier-adds { color: var(--gold); font-size: 0.92rem; line-height: 1.5; margin: 0 0 10px; padding-bottom: 10px; border-bottom: 1px solid rgba(201,169,107,0.25); }
/* Short reassurance rows under the pricing grid */
.reassure-rows { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 30px auto 0; max-width: 980px; }
@media (max-width: 760px) { .reassure-rows { grid-template-columns: 1fr; } }
.reassure-row h3 { font-size: 1rem; margin: 0 0 5px; }
.reassure-row p { color: var(--ink-dim); font-size: 0.92rem; line-height: 1.6; margin: 0; }
/* Footer legal row sits under the main footer nav */
.footer-legal { margin-top: 6px; opacity: 0.8; font-size: 0.88rem; }

/* Admin → Connections: is each third-party service actually live? */
.int-summary { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; flex-wrap: wrap; margin-bottom: 18px; }
.int-big { display: block; font-family: var(--serif); font-size: 2.1rem; color: var(--gold); line-height: 1.1; }
.int-note { margin: 8px 0 0; font-size: 0.92rem; }
.int-note.good { color: #67b98b; } .int-note.bad { color: #d98b7d; } .int-note.warn { color: #d9b26a; }
.int-actions { text-align: right; }
.int-actions .small-p { margin: 0 0 8px; }
.int-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.int-card { padding: 18px 20px; border-left: 3px solid var(--line-2); }
.int-card.int-ok { border-left-color: #67b98b; }
.int-card.int-fail { border-left-color: #d98b7d; }
.int-card.int-warn { border-left-color: #d9b26a; }
.int-card.int-missing { border-left-color: rgba(255,255,255,0.18); }
.int-card.int-ready, .card.int-ready { border-left: 3px dashed rgba(201,169,107,0.55); }
.card.int-ready fieldset:disabled { opacity: 0.55; }
.int-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.int-head h3 { margin: 0; font-size: 1.05rem; }
.int-pill { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.int-pill-ok { color: #67b98b; border: 1px solid rgba(103,185,139,0.5); background: rgba(103,185,139,0.1); }
.int-pill-fail { color: #d98b7d; border: 1px solid rgba(217,139,125,0.5); background: rgba(217,139,125,0.1); }
.int-pill-warn { color: #d9b26a; border: 1px solid rgba(217,178,106,0.5); background: rgba(217,178,106,0.1); }
.int-pill-missing { color: var(--ink-dim); border: 1px solid var(--line-2); }
.int-pill-ready { color: var(--gold); border: 1px dashed rgba(201,169,107,0.55); background: rgba(201,169,107,0.06); }
.int-what { color: var(--ink-dim); font-size: 0.92rem; margin: 8px 0 0; line-height: 1.55; }
.int-detail { color: var(--ink); font-size: 0.88rem; margin: 8px 0 0; line-height: 1.55; }
.int-foot { display: flex; justify-content: space-between; gap: 10px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.int-foot .small-p { margin: 0; }
.int-action { font-size: 0.86rem; line-height: 1.55; margin: 10px 0 0; padding: 9px 12px; background: rgba(201,169,107,0.08); border-radius: 8px; color: var(--ink-dim); }
.int-action strong { color: var(--gold); }

/* Dashboard compaction (v0.31.3): fewer things competing above the fold */
.notifier-item[hidden] { display: none; } /* .notifier-item's display:flex would otherwise beat the UA [hidden] rule */
.notifier-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 0 6px; }
.notifier-foot .linklike { font-size: 0.9rem; padding: 2px 4px; }
.notifier-foot .notifier-clear { color: var(--ink-dim); }
.notifier-foot .notifier-clear:hover { color: var(--gold); }
/* Chapter rows: one pill, one quiet action */
.ms-actions .ms-quiet { font-size: 0.85rem; color: var(--ink-dim); padding: 4px 6px; }
.ms-actions .ms-quiet:hover { color: var(--gold); text-decoration: underline; }
.milestone-list .ms-actions { margin-bottom: 0; } /* the other .ms-actions (line ~339) carries a 20px bottom margin that lifted the pills off centre */
.milestone-list li:not(.done) .ms-state.ms-state-quiet { /* must outrank li:not(.done):not(.now) .ms-state above */ border-color: transparent; padding-left: 0; padding-right: 0; color: var(--ink-faint, var(--ink-dim)); }
/* Recent conversations: a short list in one card instead of a card per sitting */
.session-list { list-style: none; margin: 0; padding: 0; }
.session-list li { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.session-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.session-list li:first-child { padding-top: 0; }
.session-list-mark { flex: 0 0 16px; text-align: center; }
.session-list-name { flex: 1; min-width: 0; font-family: var(--serif); font-size: 1.08rem; color: var(--ink); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.session-list-name:hover { color: var(--gold); }
.session-list .session-date { flex: none; }
.session-list .pill { flex: none; }
@media (max-width: 560px) {
  .session-list li { flex-wrap: wrap; }
  .session-list .session-date { flex-basis: 100%; padding-left: 26px; margin-top: -4px; }
}


/* ==========================================================================
   Mobile menu (v0.36.0). Full-screen heirloom overlay, replaces the push-down list.
   Same markup: .topbar > .brand + .nav-toggle + nav. Opens with .topbar.open and
   body.nav-open (scroll lock). Desktop is untouched.
   ========================================================================== */
.nav-toggle { width: 48px; height: 48px; padding: 0; align-items: center; justify-content: center; border-radius: 12px; -webkit-tap-highlight-color: transparent; }
.nav-toggle:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.nav-toggle span { width: 24px; }

@media (max-width: 760px) {
  body.nav-open { overflow: hidden; }
  .topbar { flex-wrap: nowrap; position: relative; z-index: 70; }
  .topbar.open { position: sticky; top: 0; }
  .topbar .brand, .topbar .nav-toggle { position: relative; z-index: 72; }

  .topbar nav {
    display: flex; position: fixed; inset: 0; z-index: 71;
    flex-direction: column; align-items: stretch; justify-content: flex-start; flex-wrap: nowrap; gap: 0;
    margin: 0; padding: 104px 28px calc(28px + env(safe-area-inset-bottom));
    background:
      radial-gradient(120% 60% at 50% 0%, rgba(201, 169, 107, 0.13) 0%, rgba(201, 169, 107, 0) 60%),
      linear-gradient(180deg, #0b1322 0%, #070c16 70%);
    overflow-y: auto; overscroll-behavior: contain;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity 0.28s ease, transform 0.28s ease, visibility 0s linear 0.28s;
  }
  .topbar.open nav { opacity: 1; visibility: visible; transform: none; transition: opacity 0.28s ease, transform 0.28s ease, visibility 0s; }

  /* The logomark, large and faint, behind the links. */
  .topbar nav::after {
    content: ""; position: absolute; left: 50%; bottom: 8%; width: 260px; height: 260px; transform: translateX(-50%);
    background: url('/assets/img/legacy-mark.png') center / contain no-repeat; opacity: 0.05; pointer-events: none;
  }

  .topbar nav a {
    position: relative; z-index: 1;
    font-family: var(--serif); font-size: 2rem; line-height: 1.15; font-weight: 400; letter-spacing: 0.005em;
    color: var(--ink); padding: 18px 2px; min-height: 48px;
    border-top: 0; border-bottom: 1px solid rgba(201, 169, 107, 0.22);
    opacity: 0; transform: translateY(14px);
    transition: opacity 0.4s ease, transform 0.4s ease, color 0.15s ease;
  }
  .topbar nav a:hover, .topbar nav a:focus-visible { color: var(--gold); text-decoration: none; outline: none; }
  .topbar.open nav a { opacity: 1; transform: none; }
  .topbar.open nav a:nth-child(1) { transition-delay: 0.06s; }
  .topbar.open nav a:nth-child(2) { transition-delay: 0.11s; }
  .topbar.open nav a:nth-child(3) { transition-delay: 0.16s; }
  .topbar.open nav a:nth-child(4) { transition-delay: 0.21s; }
  .topbar.open nav a:nth-child(5) { transition-delay: 0.26s; }
  .topbar.open nav a:nth-child(6) { transition-delay: 0.31s; }
  .topbar.open nav a:nth-child(7) { transition-delay: 0.36s; }

  /* Account links read as quiet utilities, not as chapters of the menu. */
  .topbar nav a[href="/login"], .topbar nav a[href="/logout"] {
    font-family: var(--sans); font-size: 1rem; font-weight: 500; letter-spacing: 0.04em;
    color: var(--ink-dim); border-bottom: 0; padding: 16px 2px; margin-top: 10px;
  }
  .topbar nav a[href="/account"], .topbar nav a[href="/admin"] { color: var(--gold); }

  /* The one call to action sits at the foot of the screen. */
  .topbar nav a.cta {
    margin-top: auto; border: 1px solid var(--gold-strong); border-radius: 10px;
    font-family: var(--sans); font-size: 1.05rem; font-weight: 600; letter-spacing: 0.02em;
    color: #14110a; background: var(--gold-strong); text-align: center; padding: 16px 20px; min-height: 54px;
    display: flex; align-items: center; justify-content: center;
  }
  .topbar nav a.cta:hover, .topbar nav a.cta:focus-visible { color: #14110a; filter: brightness(1.08); }
}

@media (max-width: 760px) and (max-height: 620px) {
  .topbar nav { padding-top: 84px; }
  .topbar nav a { font-size: 1.6rem; padding: 13px 2px; }
}

@media (prefers-reduced-motion: reduce) {
  .topbar nav, .topbar nav a, .nav-toggle span { transition: none !important; }
  .topbar nav a { transform: none; }
}


/* Design pass, Sept 18 (v0.36.1) */
/* Mobile menu: the logomark sits lower and quieter so it never competes with the links. */
@media (max-width: 760px) {
  .topbar nav::after { bottom: 3%; width: 220px; height: 220px; opacity: 0.032; }
}
/* How it works: a two-line step heading was set too loose and sat on top of its paragraph. */
.card.journey-step { gap: 18px; }
.card.journey-step h2 { font-size: 1.5rem; line-height: 1.2; margin: 3px 0 10px; }
.card.journey-step p { line-height: 1.65; max-width: 62ch; }
.card.journey-step + .card.journey-step { margin-top: 18px; }
@media (max-width: 560px) {
  .card.journey-step { gap: 14px; padding: 20px 18px; }
  .card.journey-step h2 { font-size: 1.32rem; }
  .card.journey-step .step-n { flex-basis: 30px; width: 30px; height: 30px; font-size: 0.9rem; margin-top: 2px; }
}


/* Photography in the frames (v0.37.0). The frame keeps its ratio; the photo fills it. */
.img-frame.has-photo { display: block; background: #0b1220; }
.img-frame.has-photo img { width: 100%; height: 100%; display: block; object-fit: cover; }
.img-frame.has-photo::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(241, 236, 226, 0.08); pointer-events: none; }
.img-frame.has-photo { position: relative; }
.hero-main.has-photo, .hero-inset.has-photo { position: absolute; }


/* ==========================================================================
   Header navigation (v0.38.0): links centred, account actions as buttons on the right.
   ========================================================================== */
.topbar .nav-main, .topbar .nav-actions { display: contents; }
.nav-avatar {
  display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%;
  background: var(--gold-soft); color: var(--gold); border: 1px solid var(--navy-line);
  font-family: var(--serif); font-size: 0.95rem; line-height: 1;
}
@media (min-width: 761px) {
  .topbar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; column-gap: 24px; }
  .topbar .brand { justify-self: start; }
  .topbar nav { display: contents; }
  .topbar .nav-main { display: flex; align-items: center; gap: 6px; justify-self: center; grid-column: 2; }
  .topbar .nav-actions { display: flex; align-items: center; gap: 10px; justify-self: end; grid-column: 3; }

  .topbar .nav-main a {
    position: relative; padding: 9px 14px; border-radius: 999px; color: var(--ink-dim);
    font-size: 0.95rem; font-weight: 500; letter-spacing: 0.01em; transition: color 0.18s ease, background 0.18s ease;
  }
  .topbar .nav-main a::after {
    content: ""; position: absolute; left: 14px; right: 14px; bottom: 5px; height: 1px; background: var(--gold);
    transform: scaleX(0); transform-origin: left; transition: transform 0.25s ease;
  }
  .topbar .nav-main a:hover { color: var(--ink); }
  .topbar .nav-main a:hover::after, .topbar .nav-main a[aria-current="page"]::after { transform: scaleX(1); }
  .topbar .nav-main a[aria-current="page"] { color: var(--ink); }

  .topbar nav a.nav-account {
    display: inline-flex; align-items: center; gap: 9px; padding: 8px 16px 8px 10px; border-radius: 999px;
    border: 1px solid var(--line-2); background: rgba(241, 236, 226, 0.03); color: var(--ink);
    font-size: 0.93rem; font-weight: 500; transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
  }
  .topbar nav a.nav-account svg { color: var(--gold); margin-left: 4px; }
  .topbar nav a.nav-account:hover { border-color: var(--navy-line); background: var(--gold-soft); text-decoration: none; }
  .topbar nav a.nav-quiet { color: var(--ink-faint); font-size: 0.86rem; padding: 8px 6px; }
  .topbar nav a.nav-quiet:hover { color: var(--ink); }
  .topbar nav a.cta {
    border-radius: 999px; padding: 9px 20px; font-size: 0.93rem; letter-spacing: 0.01em;
    box-shadow: 0 6px 18px rgba(184, 150, 90, 0.22); transition: filter 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
  }
  .topbar nav a.cta:hover { filter: brightness(1.08); transform: translateY(-1px); box-shadow: 0 10px 24px rgba(184, 150, 90, 0.3); }
  .topbar nav a:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
}
@media (max-width: 760px) {
  /* Inside the full-screen menu the account link is a quiet utility again. */
  .topbar nav a.nav-account { font-family: var(--sans); font-size: 1rem; font-weight: 500; letter-spacing: 0.04em; color: var(--gold); border-bottom: 0; padding: 16px 2px; margin-top: 10px; display: flex; align-items: center; gap: 10px; }
  .topbar nav a.nav-quiet { font-family: var(--sans); font-size: 1rem; font-weight: 500; letter-spacing: 0.04em; color: var(--ink-dim); border-bottom: 0; padding: 12px 2px; }
  .topbar.open nav .nav-actions a { transition-delay: 0.3s; }
}


/* ==========================================================================
   Homepage hero, centred, with the tablet as the centrepiece (v0.38.0).
   ========================================================================== */
.landing .hero.hero-center { display: block; max-width: none; padding: 78px 0 64px; text-align: center; overflow: hidden; }
.landing .hero.hero-center .hero-copy { max-width: 46rem; margin: 0 auto; padding: 0 24px; }
.landing .hero.hero-center h1 { text-align: center; font-size: clamp(2.3rem, 4.6vw, 3.9rem); font-weight: 400; line-height: 1.08; letter-spacing: -0.012em; margin-bottom: 20px; }
.landing .hero.hero-center .sub { text-align: center; max-width: 38rem; margin: 0 auto 30px; font-size: 1.16rem; line-height: 1.6; }
.landing .hero.hero-center .hero-ctas { justify-content: center; margin: 0 0 14px; }
.landing .hero.hero-center .trust-line { text-align: center; }
.landing .hero.hero-center .hero-ctas .btn { min-width: 170px; border-radius: 999px; padding: 13px 28px; }
.landing .hero.hero-center .hero-ctas .btn.primary { box-shadow: 0 10px 28px rgba(184, 150, 90, 0.28); }
@media (max-width: 760px) { .landing .hero.hero-center { padding: 46px 0 44px; } .landing .hero.hero-center .sub { font-size: 1.05rem; } }


/* ==========================================================================
   Logo opening like a book (v0.39.0). Built by /assets/js/logo-open.js.
   Until it plays the strips are closed and invisible; .is-still shows the finished mark.
   ========================================================================== */
.logo-open { position: relative; display: inline-block; vertical-align: middle; perspective: 1400px; perspective-origin: 50% 50%; }
.logo-open .lo-pages { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateX(16deg) scale(0.9); }
.logo-open .lo-pg {
  position: absolute; top: 0; height: var(--mh); opacity: 0; transform: rotateY(var(--from)); backface-visibility: visible;
  background: linear-gradient(180deg, #ecdcb4, var(--gold) 55%, #b08d4f);
  -webkit-mask-image: url('/assets/img/legacy-mark-720.png'); mask-image: url('/assets/img/legacy-mark-720.png');
  -webkit-mask-size: var(--mw) var(--mh); mask-size: var(--mw) var(--mh); -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
}
.logo-open .lo-sheen {
  position: absolute; inset: 0; opacity: 0; pointer-events: none;
  -webkit-mask-image: url('/assets/img/legacy-mark-720.png'); mask-image: url('/assets/img/legacy-mark-720.png');
  -webkit-mask-size: var(--mw) var(--mh); mask-size: var(--mw) var(--mh); -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 250, 235, 0.75) 50%, transparent 65%); background-size: 300% 100%;
}
.logo-open.is-playing .lo-pages { animation: loSettle 2.4s cubic-bezier(0.16, 1, 0.3, 1) both; }
.logo-open.is-playing .lo-pg { animation: loOpen 1.2s cubic-bezier(0.16, 1, 0.3, 1) var(--d) both; }
.logo-open.is-playing .lo-sheen { animation: loSheen 1.3s ease-in-out 1.9s both; }
.logo-open.is-still .lo-pages { transform: none; }
.logo-open.is-still .lo-pg { opacity: 1; transform: none; }
.logo-open.white .lo-pg { background: linear-gradient(180deg, #ffffff, #f1ece2 60%, #d9d2c3); }
@keyframes loSettle { from { transform: rotateX(16deg) scale(0.9); } to { transform: rotateX(0) scale(1); } }
@keyframes loOpen { 0% { transform: rotateY(var(--from)); opacity: 0; } 25% { opacity: 1; } 100% { transform: rotateY(0); opacity: 1; } }
@keyframes loSheen { 0% { background-position: 120% 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { background-position: -120% 0; opacity: 0; } }

/* Homepage: the mark opens above the headline as the page arrives. */
.hero-mark { display: block; margin: 0 auto 22px; }
.hero-mark-wrap { display: flex; justify-content: center; }

/* Mobile menu: the mark opens at the foot each time the menu does (replaces the static watermark). */
.nav-mark { display: none; }
@media (max-width: 760px) {
  .topbar nav::after { display: none; }
  .topbar nav .nav-mark { display: block; order: 5; margin: auto auto 0; padding-top: 26px; opacity: 0.9; }
  .topbar nav a.cta { order: 6; margin-top: 22px; }
}


/* ==========================================================================
   Homepage body (v0.40.0): larger section headings, editorial "why" rows, photographed closing band.
   ========================================================================== */
.landing .band { max-width: 1160px; padding: 88px 24px; }
.landing .band-title { font-size: clamp(1.9rem, 3vw, 2.6rem); font-weight: 400; line-height: 1.15; letter-spacing: -0.012em; margin-bottom: 14px; }
.band-eyebrow { text-align: center; color: var(--gold); font-family: var(--sans); font-weight: 500; font-size: 0.8rem; letter-spacing: 0.22em; text-transform: uppercase; margin: 0 0 14px; }
.landing .band.split { padding-top: 72px; }

.why-band .band-title { margin-bottom: 56px; }
.why-row { display: grid; grid-template-columns: 1.15fr 1fr; gap: 64px; align-items: center; }
.why-row + .why-row { margin-top: 72px; }
.why-row.is-flipped .why-photo { order: 2; }
.why-photo { aspect-ratio: 3 / 2; border-radius: 16px; box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5); }
.why-copy { max-width: 30rem; }
.why-n { display: block; font-family: var(--serif); font-size: 1.05rem; letter-spacing: 0.18em; color: var(--gold); margin-bottom: 14px; }
.why-n::after { content: ""; display: inline-block; vertical-align: middle; width: 44px; height: 1px; margin-left: 14px; background: rgba(201, 169, 107, 0.55); }
.why-copy h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.6rem, 2.4vw, 2.1rem); line-height: 1.18; margin: 0 0 14px; }
.why-copy p { color: var(--ink-dim); font-size: 1.08rem; line-height: 1.7; margin: 0; }
@media (max-width: 860px) {
  .landing .band { padding: 60px 20px; }
  .why-band .band-title { margin-bottom: 36px; }
  .why-row, .why-row.is-flipped { grid-template-columns: 1fr; gap: 22px; }
  .why-row.is-flipped .why-photo { order: 0; }
  .why-row + .why-row { margin-top: 48px; }
  .why-copy { max-width: none; }
}

.final-cta.has-bg { position: relative; max-width: none; padding: 120px 24px 128px; overflow: hidden; isolation: isolate; border-top: 0; }
.final-bg { position: absolute; inset: 0; z-index: -1; }
.final-bg img { width: 100%; height: 100%; object-fit: cover; display: block; filter: saturate(0.85); }
.final-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, #070c16 0%, rgba(7, 12, 22, 0.55) 30%, rgba(7, 12, 22, 0.55) 68%, #070c16 100%), radial-gradient(60% 80% at 50% 50%, rgba(7, 12, 22, 0.55), rgba(7, 12, 22, 0.15)); }
.final-cta.has-bg .band-title { font-size: clamp(2.1rem, 4vw, 3.2rem); }
.final-cta.has-bg .center-lede { color: var(--ink); opacity: 0.9; max-width: 34rem; margin-left: auto; margin-right: auto; }
.final-cta.has-bg .hero-ctas { margin-top: 26px; }
.final-cta.has-bg .hero-ctas .btn { border-radius: 999px; padding: 13px 28px; min-width: 170px; }
@media (max-width: 760px) { .final-cta.has-bg { padding: 84px 20px 92px; } }


/* Footer (v0.40.1) */
.site-footer.site-footer-v2 { display: block; text-align: left; padding: 0; border-top: 1px solid var(--line); background: linear-gradient(180deg, rgba(14, 22, 38, 0.0), rgba(14, 22, 38, 0.55)); }
.sf-inner { max-width: 1160px; margin: 0 auto; padding: 64px 24px 44px; display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.sf-logo { display: inline-flex; align-items: center; gap: 12px; font-family: var(--serif); font-size: 1.6rem; color: var(--ink); }
.sf-logo img { height: 30px; width: auto; }
.sf-logo:hover { text-decoration: none; }
.sf-brand p { color: var(--ink-dim); font-size: 0.98rem; line-height: 1.6; max-width: 22rem; margin: 14px 0 0; }
.sf-col { display: flex; flex-direction: column; gap: 11px; }
.sf-h { font-family: var(--sans); font-size: 0.74rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin-bottom: 6px; }
.sf-col a { color: var(--ink-dim); font-size: 0.95rem; width: fit-content; transition: color 0.15s ease; }
.sf-col a:hover { color: var(--ink); text-decoration: none; }
.sf-base { max-width: 1160px; margin: 0 auto; padding: 20px 24px 28px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--ink-faint); font-size: 0.84rem; }
.sf-ver { opacity: 0.6; }
@media (max-width: 860px) {
  .sf-inner { grid-template-columns: 1fr 1fr; gap: 34px 24px; padding: 48px 20px 32px; }
  .sf-brand { grid-column: 1 / -1; }
  .sf-col a { padding: 4px 0; }
}


/* Hero lockup (v0.41.0): the mark opens, the wordmark resolves under it, then the title. */
.hero-brand { display: flex; flex-direction: column; align-items: center; gap: 14px; margin: 0 auto 30px; }
.hero-brand .hero-mark { margin: 0; }
.hero-wordmark { font-family: var(--serif); font-weight: 400; font-size: clamp(2.2rem, 3.4vw, 3rem); line-height: 1; letter-spacing: 0.04em; color: var(--ink); opacity: 0; filter: blur(8px); transform: translateY(6px); }
.logo-open.is-playing + .hero-wordmark { animation: hwIn 1.3s cubic-bezier(0.16, 1, 0.3, 1) 0.9s both; }
.logo-open.is-still + .hero-wordmark { opacity: 1; filter: none; transform: none; }
@keyframes hwIn { from { opacity: 0; filter: blur(8px); transform: translateY(6px); letter-spacing: 0.14em; } to { opacity: 1; filter: blur(0); transform: none; letter-spacing: 0.04em; } }
.landing .hero.hero-center h1 { font-size: clamp(2.8rem, 6vw, 4.8rem); letter-spacing: -0.018em; margin-bottom: 18px; }
.landing .hero.hero-center { padding-top: 58px; }
@media (max-width: 760px) { .hero-brand { margin-bottom: 22px; gap: 10px; } .landing .hero.hero-center { padding-top: 36px; } }
@media (prefers-reduced-motion: reduce) { .hero-wordmark { opacity: 1; filter: none; transform: none; animation: none !important; } }


/* ==========================================================================
   Scroll reveal + Gifting page (v0.43.0)
   ========================================================================== */
.has-reveal [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
.has-reveal [data-reveal].is-in { opacity: 1; transform: none; }

.gift-page .subhero h1 { font-size: clamp(2.3rem, 4.4vw, 3.6rem); line-height: 1.08; }
.gift-page .subhero .lede { font-size: 1.2rem; max-width: 26rem; }
.gift-page .subhero-ctas .btn { border-radius: 999px; padding: 13px 26px; }

/* four steps on one line, joined by a rule that draws itself */
.gp-how .band-title { margin-bottom: 52px; }
.gp-line { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 36px; position: relative; counter-reset: none; }
.gp-line::before { content: ""; position: absolute; left: 22px; right: 22px; top: 21px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--gold), rgba(201, 169, 107, 0.45)); transform: scaleX(0); transform-origin: left; transition: transform 1.6s cubic-bezier(0.16, 1, 0.3, 1) 0.2s; }
.gp-line.is-in::before, html:not(.has-reveal) .gp-line::before { transform: scaleX(1); }
.gp-line li { position: relative; padding-top: 70px; }
.gp-n { position: absolute; top: 0; left: 0; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); border: 1px solid var(--gold); color: var(--gold); font-family: var(--serif); font-size: 1.25rem; }
.gp-line h3 { font-family: var(--serif); font-weight: 400; font-size: 1.45rem; line-height: 1.2; margin: 0 0 10px; }
.gp-line p { color: var(--ink-dim); font-size: 1rem; line-height: 1.65; margin: 0; }
.has-reveal .gp-line li { opacity: 0; transform: translateY(14px); transition: opacity 0.7s ease, transform 0.7s ease; }
.has-reveal .gp-line.is-in li { opacity: 1; transform: none; }
.has-reveal .gp-line.is-in li:nth-child(2) { transition-delay: 0.25s; } .has-reveal .gp-line.is-in li:nth-child(3) { transition-delay: 0.5s; } .has-reveal .gp-line.is-in li:nth-child(4) { transition-delay: 0.75s; }

/* the invitation, and what is inside it */
.gp-receive { display: grid; grid-template-columns: 1fr 1.1fr; gap: 72px; align-items: center; }
.gp-card-wrap { display: grid; place-items: center; perspective: 1200px; }
.gp-invite { width: min(360px, 100%); aspect-ratio: 5 / 6.400; border-radius: 14px; padding: 38px 30px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center; background: linear-gradient(160deg, #f6efdf, #ece1c9); color: #2a2419; box-shadow: 0 40px 90px rgba(0, 0, 0, 0.6), inset 0 0 0 1px rgba(168, 135, 74, 0.35), inset 0 0 0 9px #f4ecdc, inset 0 0 0 10px rgba(168, 135, 74, 0.4); animation: gpFloat 8s ease-in-out infinite; }
.gp-invite .logo-open .lo-pg { background: linear-gradient(180deg, #c9a96b, #a8874a 60%, #8a6c37); }
.gp-invite-k { font-family: var(--sans); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.26em; text-transform: uppercase; color: #a8874a; margin-top: 6px; }
.gp-invite-t { font-family: var(--serif); font-size: 2rem; line-height: 1.12; color: #231d13; }
.gp-invite-code { font-family: var(--serif); font-size: 1.25rem; letter-spacing: 0.2em; color: #231d13; border-top: 1px solid rgba(168, 135, 74, 0.5); border-bottom: 1px solid rgba(168, 135, 74, 0.5); padding: 12px 6px; margin: 10px 0 4px; }
.gp-invite-f { font-family: var(--serif); font-style: italic; font-size: 1.05rem; color: #6d5f48; }
@keyframes gpFloat { 0%, 100% { transform: rotate(-3deg) translateY(0); } 50% { transform: rotate(-1.500deg) translateY(-12px); } }
.gp-receive-copy h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.8rem, 2.8vw, 2.4rem); line-height: 1.15; margin: 0 0 22px; }
.gp-ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.gp-ticks li { position: relative; padding-left: 36px; color: var(--ink); font-size: 1.08rem; line-height: 1.6; }
.gp-ticks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%; border: 1px solid var(--gold); background: var(--gold-soft); }
.gp-ticks li::after { content: ""; position: absolute; left: 7px; top: 8px; width: 5px; height: 9px; border: solid var(--gold); border-width: 0 1.500px 1.500px 0; transform: rotate(42deg); }
.gp-note { margin: 26px 0 0; color: var(--ink-dim); font-size: 0.98rem; }

/* good to know: room to breathe, the policy link on its own line */
.gp-know .band-title { margin-bottom: 50px; }
.gp-know-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px 64px; max-width: 960px; margin: 0 auto; }
.gp-know-item { display: flex; gap: 20px; align-items: flex-start; }
.gp-ico { flex: none; width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; color: var(--gold); background: var(--gold-soft); border: 1px solid rgba(201, 169, 107, 0.35); }
.gp-ico svg { width: 23px; height: 23px; }
.gp-know-item h3 { font-family: var(--serif); font-weight: 400; font-size: 1.4rem; line-height: 1.2; margin: 3px 0 8px; }
.gp-know-item p { color: var(--ink-dim); font-size: 1.02rem; line-height: 1.65; margin: 0; }
.gp-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; color: var(--gold); font-weight: 500; font-size: 0.98rem; }
.gp-link span { transition: transform 0.2s ease; }
.gp-link:hover { text-decoration: none; } .gp-link:hover span { transform: translateX(4px); }

@media (max-width: 860px) {
  .gp-how .band-title, .gp-know .band-title { margin-bottom: 34px; }
  .gp-line { grid-template-columns: 1fr; gap: 30px; }
  .gp-line::before { left: 22px; right: auto; top: 22px; bottom: 22px; width: 2px; height: auto; transform: scaleY(0); transform-origin: top; background: linear-gradient(180deg, var(--gold), rgba(201, 169, 107, 0.2)); }
  .gp-line.is-in::before, html:not(.has-reveal) .gp-line::before { transform: scaleY(1); }
  .gp-line li { padding: 0 0 0 66px; min-height: 44px; }
  .gp-receive { grid-template-columns: 1fr; gap: 44px; }
  .gp-know-grid { grid-template-columns: 1fr; gap: 34px; }
}
@media (prefers-reduced-motion: reduce) { .gp-invite { animation: none; transform: rotate(-2deg); } .gp-line::before { transition: none; transform: none; } }


/* ==========================================================================
   Spacing pass (v0.43.1): button groups and the space under section headings.
   ========================================================================== */
/* Any group of buttons: a row with real gaps, so they never touch when they wrap. */
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; align-items: center; }
.btn-row.center { justify-content: center; }
.btn-row .btn, .hero-ctas .btn, .subhero-ctas .btn { margin: 0; }
.hero-ctas, .subhero-ctas { gap: 14px; row-gap: 14px; }
.steps-cta.btn-row { margin-top: 36px; }
.landing .btn-row .btn { border-radius: 999px; padding: 12px 26px; }
/* stray adjacent buttons anywhere else on the public site */
.landing .btn + .btn { margin-left: 0; }
.landing p > .btn + .btn, .landing .split-copy > .btn + .btn { margin-top: 14px; }

/* Headings need air before a row of cards (the numbered badges overhang, which made it worse). */
.landing .band-title { margin-bottom: 44px; }
.landing .band-title + .lede, .landing .band-title + .center-lede, .landing .band-title + p.lede { margin-top: -26px; margin-bottom: 44px; }
.landing .band-title + .steps { margin-top: 56px; }
.landing .why-band .band-title { margin-bottom: 60px; }
.landing .final-cta .band-title { margin-bottom: 16px; }
.landing .final-cta .band-title + .lede { margin-top: 0; margin-bottom: 0; }
.landing .faq-section { margin: 44px 0 18px; }
.landing .split-copy h2 { margin-bottom: 16px; }
.landing .split-copy p + p { margin-top: 12px; }
@media (max-width: 760px) {
  .landing .band-title { margin-bottom: 32px; }
  .landing .band-title + .steps { margin-top: 44px; }
  .landing .band-title + .lede, .landing .band-title + .center-lede { margin-top: -18px; margin-bottom: 32px; }
  .btn-row { gap: 12px; margin-top: 22px; }
  .btn-row .btn, .hero-ctas .btn, .subhero-ctas .btn { flex: 1 1 100%; text-align: center; }
  .landing .hero.hero-center .hero-ctas .btn { flex: 0 1 auto; min-width: 210px; }
}


/* ==========================================================================
   How it works + Pricing + FAQ bodies (v0.44.0)
   ========================================================================== */
.hw-page .subhero h1, .pr-page .subhero h1 { font-size: clamp(2.3rem, 4.4vw, 3.6rem); line-height: 1.08; }
.hw-page .subhero .lede { font-size: 1.2rem; max-width: 27rem; }
.hw-page .subhero-ctas .btn, .pr-page .subhero-ctas .btn { border-radius: 999px; padding: 13px 26px; }

.hw-band { padding-top: 40px !important; }
.hw-line { list-style: none; margin: 0 auto; padding: 0; max-width: 1040px; position: relative; }
.hw-line::before { content: ""; position: absolute; left: 25px; top: 26px; bottom: 60px; width: 2px; border-radius: 2px; background: linear-gradient(180deg, var(--gold), rgba(201, 169, 107, 0.12)); }
.hw-step { position: relative; display: grid; grid-template-columns: 1fr minmax(0, 440px); gap: 56px; align-items: center; padding: 0 0 84px 96px; }
.hw-step:last-child { padding-bottom: 0; }
.hw-n { position: absolute; left: 0; top: 0; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); border: 1px solid var(--gold); color: var(--gold); font-family: var(--serif); font-size: 1.45rem; box-shadow: 0 0 0 8px var(--bg); }
.hw-copy h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.7rem, 2.6vw, 2.2rem); line-height: 1.15; margin: 6px 0 14px; }
.hw-copy p { color: var(--ink-dim); font-size: 1.08rem; line-height: 1.7; margin: 0; max-width: 32rem; }
.hw-copy p + p { margin-top: 12px; }
.hw-copy a { color: var(--gold); }
.hw-visual { margin: 0; border-radius: 16px; }
figure.hw-visual { aspect-ratio: 3 / 2; box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5); }

.hw-prices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.hw-prices span { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 24px 10px; border-radius: 14px; border: 1px solid var(--line-2); background: rgba(14, 22, 38, 0.6); font-family: var(--serif); font-size: 1.9rem; color: var(--ink); }
.hw-prices b { font-family: var(--sans); font-weight: 600; font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-dim); }
.hw-prices .is-rec { border-color: var(--gold); background: var(--gold-soft); transform: translateY(-6px); }
.hw-prices .is-rec b { color: var(--gold); }

.hw-voice { display: flex; align-items: center; gap: 26px; padding: 30px; border: 1px solid var(--line-2); background: rgba(14, 22, 38, 0.6); }
.hw-orb { flex: none; width: 84px; height: 84px; border-radius: 50%; background: radial-gradient(circle at 34% 30%, #f6ead0 0%, #c9a96b 40%, #7a5f33 75%, rgba(122, 95, 51, 0) 100%); box-shadow: 0 0 44px 6px rgba(201, 169, 107, 0.28); animation: hwBreath 3.200s ease-in-out infinite; }
.hw-voice div { display: grid; gap: 10px; flex: 1; }
.hw-voice div span { padding: 13px 18px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--ink-dim); font-size: 0.98rem; }
.hw-voice div .is-on { border-color: var(--gold); color: var(--ink); background: var(--gold-soft); }
@keyframes hwBreath { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.070); } }

.hw-page .hw-page, .hw-visual.hw-page { background: linear-gradient(160deg, #f6efdf, #ece1c9); color: #2a2419; padding: 34px 34px 30px; display: flex; flex-direction: column; align-items: center; gap: 11px; box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5); }
.hw-page-k { font-family: var(--sans); font-size: 0.68rem; letter-spacing: 0.3em; text-transform: uppercase; color: #a8874a; }
.hw-visual.hw-page b { font-family: var(--serif); font-weight: 400; font-size: 1.7rem; margin-bottom: 8px; color: #231d13; }
.hw-visual.hw-page i { display: block; width: 100%; height: 7px; border-radius: 9px; background: rgba(42, 36, 25, 0.16); transform-origin: left; }
.hw-visual.hw-page i.is-short { width: 62%; align-self: flex-start; }
.has-reveal .hw-step .hw-page i { transform: scaleX(0); transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1); }
.has-reveal .hw-step.is-in .hw-page i { transform: scaleX(1); }
.has-reveal .hw-step.is-in .hw-page i:nth-of-type(2) { transition-delay: 0.18s; } .has-reveal .hw-step.is-in .hw-page i:nth-of-type(3) { transition-delay: 0.36s; } .has-reveal .hw-step.is-in .hw-page i:nth-of-type(4) { transition-delay: 0.54s; }
.hw-page-btn { margin-top: 12px; font-family: var(--sans); font-weight: 600; font-size: 0.9rem; color: #14110a; background: #b8965a; border-radius: 999px; padding: 11px 24px; }

.hw-private { display: flex; gap: 22px; align-items: flex-start; max-width: 760px !important; }
.hw-private h2 { font-family: var(--serif); font-weight: 400; font-size: 1.6rem; margin: 4px 0 8px; }
.hw-private p { color: var(--ink-dim); font-size: 1.05rem; line-height: 1.65; margin: 0; }
.hw-private a { color: var(--gold); }

@media (max-width: 900px) {
  .hw-line::before { left: 21px; }
  .hw-step { grid-template-columns: 1fr; gap: 24px; padding: 0 0 60px 68px; }
  .hw-n { width: 44px; height: 44px; font-size: 1.25rem; box-shadow: 0 0 0 6px var(--bg); }
  .hw-copy h2 { margin-top: 3px; }
  .hw-voice { padding: 22px; gap: 18px; } .hw-orb { width: 64px; height: 64px; }
  .hw-prices span { font-size: 1.5rem; padding: 18px 6px; }
}
@media (prefers-reduced-motion: reduce) { .hw-orb { animation: none; } }

/* Pricing */
.pr-page .tier-grid { gap: 22px; align-items: stretch; }
.pr-page .card.tier { padding: 34px 28px 28px; border-radius: 16px; display: flex; flex-direction: column; transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease; }
.pr-page .card.tier:hover { transform: translateY(-4px); border-color: var(--navy-line); box-shadow: 0 26px 60px rgba(0, 0, 0, 0.45); }
.pr-page .card.tier h2 { font-size: 1.7rem; margin-bottom: 6px; }
.pr-page .card.tier .price { font-size: 2.8rem; margin: 4px 0 14px; }
.pr-page .card.tier ul { margin: 14px 0 18px; }
.pr-page .card.tier ul li { padding: 11px 0; }
.pr-page .card.tier .btn.wide { border-radius: 999px; padding: 14px 20px; margin-top: auto; }
.pr-page .card.tier .gift-link { margin-top: 14px; }
.pr-know { margin-top: 84px !important; }
@media (max-width: 760px) { .pr-know { margin-top: 56px !important; } }

/* FAQ */
.landing details.card { padding: 0; border-radius: 12px; transition: border-color 0.2s ease, background 0.2s ease; }
.landing details.card + details.card { margin-top: 12px; }
.landing details.card summary { padding: 20px 24px; font-size: 1.08rem; cursor: pointer; }
.landing details.card[open] { border-color: var(--navy-line); background: rgba(201, 169, 107, 0.05); }
.landing details.card > p { padding: 0 24px; margin: 0 0 14px; color: var(--ink-dim); line-height: 1.7; max-width: 62rem; }
.landing details.card > p:last-child { padding-bottom: 22px; margin-bottom: 0; }

/* How it works: number, copy and visual all start on the same line (v0.44.1) */
.hw-step { align-items: start; }
.hw-copy h2 { margin-top: 8px; }
@media (min-width: 901px) { .hw-visual { margin-top: 4px; } }


/* ==========================================================================
   Account page right column as one accordion (v0.45.0)
   ========================================================================== */
@media (min-width: 1100px) { .story-layout { grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; } }
.side-acc { border: 1px solid var(--line-2); border-radius: 14px; background: var(--bg-panel); overflow: hidden; margin-bottom: 18px; }
.side-acc-item + .side-acc-item { border-top: 1px solid var(--line); }
.side-acc-item { scroll-margin-top: 90px; }
.side-acc-head { width: 100%; display: flex; align-items: center; gap: 10px; padding: 18px 20px; background: none; border: 0; cursor: pointer; text-align: left; color: var(--ink); font-family: var(--serif); font-size: 1.22rem; line-height: 1.2; transition: background 0.18s ease; }
.side-acc-head:hover { background: rgba(241, 236, 226, 0.035); }
.side-acc-head:focus-visible { outline: 2px solid var(--gold); outline-offset: -2px; }
.side-acc-title { flex: 1; min-width: 0; }
.side-acc-pill { flex: none; font-family: var(--sans); font-size: 0.68rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; color: var(--ink-dim); border: 1px solid var(--line-2); }
.side-acc-pill.is-warn { color: #14110a; background: var(--gold); border-color: var(--gold); }
.side-acc-chev { flex: none; width: 9px; height: 9px; border-right: 1.500px solid var(--ink-dim); border-bottom: 1.500px solid var(--ink-dim); transform: rotate(45deg) translate(-2px, -2px); transition: transform 0.28s ease; }
.side-acc-item.is-open .side-acc-chev { transform: rotate(-135deg) translate(-2px, -2px); }
.side-acc-item.is-open .side-acc-head { background: rgba(201, 169, 107, 0.06); }
.side-acc-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.32s cubic-bezier(0.16, 1, 0.3, 1); }
.side-acc-item.is-open .side-acc-body { grid-template-rows: 1fr; }
.side-acc-inner { min-height: 0; overflow: hidden; padding: 0 20px; visibility: hidden; transition: padding 0.32s ease, visibility 0s linear 0.32s; }
.side-acc-item.is-open .side-acc-inner { padding: 4px 20px 22px; visibility: visible; transition: padding 0.32s ease, visibility 0s; }
.side-acc-inner > :first-child { margin-top: 0; }
.side-acc-inner .btn.wide + .btn.wide, .side-acc-inner .btn + .btn.wide { margin-top: 10px; }
.side-acc-inner .ship-form label { margin-top: 10px; }
.side-acc-inner .ship-form .btn { margin-top: 14px; width: 100%; }
.side-acc-inner audio { margin-top: 10px !important; }
.dl-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 6px; }
.dl-pair .btn { padding: 11px 10px; }
.dl-pair .btn:only-child { grid-column: 1 / -1; }
.dl-hint { margin: 10px 0 2px; }
@media (prefers-reduced-motion: reduce) { .side-acc-body, .side-acc-inner, .side-acc-chev { transition: none; } }


/* Connections: key entry (v0.46.0) */
.int-keys { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 12px; }
.int-keys > summary { cursor: pointer; color: var(--gold); font-weight: 600; font-size: 0.95rem; list-style: none; display: inline-flex; align-items: center; gap: 8px; }
.int-keys > summary::-webkit-details-marker { display: none; }
.int-keys > summary::before { content: ""; width: 7px; height: 7px; border-right: 1.500px solid currentColor; border-bottom: 1.500px solid currentColor; transform: rotate(-45deg); transition: transform 0.2s ease; }
.int-keys[open] > summary::before { transform: rotate(45deg); }
.int-keys form { display: grid; gap: 14px; margin-top: 16px; }
.int-key-row { display: grid; gap: 6px; font-size: 0.92rem; }
.int-key-label { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; color: var(--ink); font-weight: 600; }
.int-src { font-style: normal; font-weight: 400; font-size: 0.78rem; color: var(--ink-faint); }
.int-src-admin { color: var(--gold); } .int-src-none { color: var(--error); }
.int-key-row input, .int-key-row select { width: 100%; padding: 10px 12px; border-radius: 8px; border: 1px solid var(--line-2); background: #0a1120; color: var(--ink); font: inherit; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.9rem; }
.int-key-row select { font-family: inherit; }
.int-key-row input:focus, .int-key-row select:focus { outline: none; border-color: var(--gold); }
.int-clear { display: flex; gap: 8px; align-items: center; font-size: 0.82rem; color: var(--ink-dim); font-weight: 400; }
.int-clear input { width: auto; }
.int-key-confirm { border-top: 1px dashed var(--line-2); padding-top: 14px; }

.int-guide { border-color: var(--navy-line); background: var(--gold-soft); }
.int-guide ol { margin: 10px 0 0 20px; display: grid; gap: 6px; color: var(--ink-dim); line-height: 1.55; }
.int-guide em { font-style: normal; color: var(--ink); font-weight: 600; }
.int-howto { margin-top: 14px; padding: 14px 16px; border-radius: 10px; background: rgba(241, 236, 226, 0.04); border: 1px solid var(--line); }
.int-howto-intro { margin: 0 0 8px; color: var(--ink); font-size: 0.93rem; line-height: 1.55; }
.int-howto details > summary { cursor: pointer; color: var(--gold); font-size: 0.9rem; font-weight: 600; }
.int-howto ol { margin: 12px 0 0 20px; display: grid; gap: 8px; color: var(--ink-dim); font-size: 0.92rem; line-height: 1.55; }
.int-howto-after { margin: 12px 0 0; color: var(--ink-dim); font-size: 0.9rem; line-height: 1.55; border-top: 1px dashed var(--line-2); padding-top: 10px; }
.int-copy { margin: 0; font-size: 0.88rem; color: var(--ink-dim); }
.int-copy code { user-select: all; color: var(--gold); word-break: break-all; }


/* Reports funnel (v0.46.1): a track behind every bar, so a full bar reads as "everyone" and an empty one as "no one yet". */
.funnel-row { grid-template-columns: 250px minmax(120px, 560px) 96px 96px 130px; gap: 16px; padding: 12px 0; }
.funnel-track { height: 12px; border-radius: 999px; background: rgba(241, 236, 226, 0.07); box-shadow: inset 0 0 0 1px rgba(241, 236, 226, 0.06); overflow: hidden; }
.funnel-track .funnel-bar { height: 100%; min-width: 0; border-radius: 999px; background: linear-gradient(90deg, var(--gold-strong), var(--gold)); }
.funnel-row.is-empty strong, .funnel-row.is-empty > span:first-child { opacity: 0.6; }
@media (max-width: 1100px) { .funnel-row { grid-template-columns: 200px 1fr 70px 70px; } .funnel-row > :nth-child(5) { display: none; } }
@media (max-width: 760px) { .funnel-row { grid-template-columns: 1fr 60px 60px; } .funnel-row .funnel-track { display: none; } }

/* Connections: an open key form gets room, and closed cards do not stretch to match it (v0.46.1) */
.int-grid { align-items: start; }
/* Cards keep their place when opened. (An open card used to span two columns, which pushed a card in the last column down to the next row.) */
.int-grid { grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); }
.int-card { min-width: 0; scroll-margin-top: 90px; }

/* ==========================================================================
   Homepage hero: writing desk and bookshelves, far in the background (v0.47.0).
   Switched on by .hero-desk on the section; without it the floating photographs return.
   ========================================================================== */
.landing .hero.hero-center { position: relative; }
.landing .hero.hero-center .hero-copy, .landing .hero.hero-center .lt-stage { position: relative; z-index: 1; }
.hero-desk .lt-print { display: none; }
.hero-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; transform: translate3d(0, var(--py, 0px), 0); will-change: transform; }
.hero-bg span { position: absolute; top: -5%; height: 112%; width: min(38vw, 640px); background-size: cover; background-repeat: no-repeat; opacity: 0.4; filter: saturate(0.78) sepia(0.12); animation: heroBgDrift 46s ease-in-out infinite alternate; }
.hero-bg-l { left: 0; background-image: url('/assets/img/site/hero-desk-left.jpg'); background-position: 30% 38%; }
.hero-bg-r { right: 0; background-image: url('/assets/img/site/hero-desk-right.jpg'); background-position: 70% 30%; animation-delay: -23s; }
.hero-bg::after { content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, var(--bg) 0%, rgba(7,12,22,0) 12%, rgba(7,12,22,0) 72%, var(--bg) 97%),
    linear-gradient(90deg, rgba(7,12,22,0.18) 0%, rgba(7,12,22,0.86) 27%, var(--bg) 40%, var(--bg) 60%, rgba(7,12,22,0.86) 73%, rgba(7,12,22,0.18) 100%); }
@keyframes heroBgDrift { from { transform: translate3d(0, -1.6%, 0) scale(1.02); } to { transform: translate3d(0, 1.6%, 0) scale(1.05); } }
@media (max-width: 1000px) { .hero-bg span { width: 46vw; opacity: 0.26; } }
@media (prefers-reduced-motion: reduce) { .hero-bg span { animation: none; } }

/* Logo: after it has opened, the pages ripple and catch the light every few seconds (logo-open.js). */
.logo-open.is-open .lo-pages { transform: none; }
.logo-open.is-open .lo-pg { opacity: 1; transform: none; }
.logo-open.is-open + .hero-wordmark { opacity: 1; filter: none; transform: none; }
.logo-open.is-glint .lo-pg { animation: loRipple 1.5s cubic-bezier(0.4, 0, 0.2, 1) var(--d) both; }
.logo-open.is-glint .lo-sheen { animation: loSheen 1.4s ease-in-out 0.45s both; }
@keyframes loRipple { 0% { transform: rotateY(0); } 42% { transform: rotateY(calc(var(--from) * 0.17)); } 100% { transform: rotateY(0); } }
/* Hero background: fade the whole layer out with a mask (true transparency) so no edge shows at the bottom, whatever sits behind it (v0.47.1) */
.hero-bg { -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 11%, #000 66%, transparent 93%); mask-image: linear-gradient(180deg, transparent 0%, #000 11%, #000 66%, transparent 93%); }

/* Policy pages: headings and lists inside the text (v0.48.0) */
.page .prose h2 { font-family: var(--serif); font-weight: 400; font-size: 1.5rem; line-height: 1.25; color: var(--ink); margin: 38px 0 12px; }
.page .prose p, .page .prose li { line-height: 1.7; }
.page .prose ul { margin: 0 0 18px; padding-left: 1.25rem; }
.page .prose li { margin-bottom: 8px; }
.page .prose li::marker { color: var(--gold); }

/* Homepage on a phone: tighter joins between the hero, the first band and the closing call (v0.48.0) */
@media (max-width: 640px) {
  .landing .hero.hero-center { padding-bottom: 34px; }
  .landing .hero.hero-center .hero-brand { margin-bottom: 22px; }
  .landing .hero.hero-center .hero-ctas .btn { min-width: 210px; }
  .lt-steps button { align-items: center; }
  .landing .final-cta { padding-top: 64px; padding-bottom: 64px; }
}

/* Support page with the contact form (v0.49.0) */
.support-page { max-width: 1040px; }
.support-page .lede { max-width: 40rem; }
.support-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 32px; margin-top: 34px; align-items: start; }
.support-form-card { background: var(--bg-panel); border: 1px solid var(--line); border-radius: 16px; padding: 30px; }
.support-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.support-form .form-label { margin-bottom: 18px; }
.support-form .form-label input, .support-form .form-label select, .support-form .form-label textarea { display: block; width: 100%; margin-top: 7px; font-size: 1.02rem; }
.support-form textarea { resize: vertical; min-height: 150px; line-height: 1.55; }
.support-check { display: flex; align-items: center; gap: 10px; margin: 2px 0 24px; color: var(--ink-dim); font-size: 0.98rem; cursor: pointer; }
.support-check input { width: 18px; height: 18px; accent-color: var(--gold); }
.support-form .btn { min-width: 190px; }
.support-hp { position: absolute; left: -9999px; top: -9999px; width: 0; height: 0; opacity: 0; }
.support-sent h2 { font-family: var(--serif); font-weight: 400; font-size: 1.7rem; margin: 0 0 12px; }
.support-sent p { line-height: 1.65; }
.support-side h2 { font-family: var(--serif); font-weight: 400; font-size: 1.4rem; margin: 6px 0 14px; }
.support-links { list-style: none; margin: 0 0 22px; padding: 0; }
.support-links li { padding: 14px 0; border-bottom: 1px solid var(--line); }
.support-links a { display: block; color: var(--ink); font-weight: 600; text-decoration: none; }
.support-links a:hover { color: var(--gold); }
.support-links span { display: block; color: var(--ink-dim); font-size: 0.93rem; margin-top: 3px; }
@media (max-width: 820px) { .support-grid { grid-template-columns: 1fr; gap: 26px; } .support-form-card { padding: 22px 18px; } .support-row { grid-template-columns: 1fr; gap: 0; } .support-form .btn { width: 100%; } }
