@font-face {
  font-family: 'Fraunces';
  src: url('/fonts/fraunces.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('/fonts/inter.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f8f3e7;
  --paper-2: #efe6d4;
  --paper-3: #e7dbc3;
  --card: #fffdf7;
  --ink: #1a2a23;
  --ink-soft: #34463d;
  --muted: #65736b;
  --line: #ded3be;
  --line-strong: #c9bda5;
  --pine: #10382b;
  --pine-2: #1b5340;
  --pine-3: #2b6b53;
  --red: #c0452f;
  --red-dark: #9c2f1e;
  --gold: #b9842f;
  --gold-soft: #f1e2bd;
  --mint: #dce9d7;
  --blue: #4e6f8e;
  --danger-bg: #f8e2db;
  --ok-bg: #e2efdb;
  --warn-bg: #fbefcf;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 24px 60px -38px rgba(16, 56, 43, 0.55);
  --shadow-sm: 0 10px 30px -22px rgba(16, 56, 43, 0.5);
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    radial-gradient(circle at 15% 10%, rgba(255, 255, 255, 0.65), transparent 42%),
    radial-gradient(circle at 85% 0%, rgba(220, 233, 215, 0.55), transparent 38%),
    radial-gradient(circle at 50% 100%, rgba(231, 219, 195, 0.5), transparent 55%);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body.no-scroll { overflow: hidden; }
::selection { background: var(--gold-soft); color: var(--pine); }
img, svg { max-width: 100%; }
a { color: var(--pine-2); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--red-dark); }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.05; letter-spacing: -0.02em; margin: 0; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
hr { border: 0; border-top: 1px solid var(--line); margin: 24px 0; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; top: 10px; left: 10px; z-index: 200; transform: translateY(-150%);
  background: var(--pine); color: var(--paper); padding: 10px 16px; border-radius: 10px;
}
.skip-link:focus { transform: none; }

.wrap { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.narrow { width: min(760px, calc(100% - 40px)); margin-inline: auto; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  border: 1px solid transparent; border-radius: 999px;
  padding: 12px 22px; min-height: 46px;
  background: var(--pine); color: #fffdf5;
  font-weight: 600; font-size: 14.5px; line-height: 1.1; text-decoration: none;
  transition: transform 0.16s ease, background 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
  box-shadow: 0 8px 20px -14px rgba(16, 56, 43, 0.9);
}
.btn:hover { background: var(--pine-2); color: #fff; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn[disabled], .btn.is-disabled { opacity: 0.55; pointer-events: none; }
.btn svg { width: 17px; height: 17px; flex: 0 0 auto; }
.btn-secondary {
  background: transparent; color: var(--pine); border-color: var(--line-strong);
  box-shadow: none;
}
.btn-secondary:hover { background: var(--paper-2); color: var(--pine); border-color: var(--pine-3); }
.btn-ghost { background: transparent; color: var(--pine); box-shadow: none; border-color: transparent; padding-inline: 12px; }
.btn-ghost:hover { background: rgba(16, 56, 43, 0.07); }
.btn-danger { background: var(--red); }
.btn-danger:hover { background: var(--red-dark); }
.btn-sm { min-height: 36px; padding: 8px 15px; font-size: 13px; }
.btn-lg { min-height: 54px; padding: 16px 28px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-link {
  display: inline-flex; align-items: center; gap: 7px; background: none; border: 0;
  color: var(--pine-2); font-weight: 600; font-size: 14px; padding: 4px; text-decoration: none;
}
.btn-link:hover { color: var(--red-dark); }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px;
  border-radius: 50%; border: 1px solid transparent; background: transparent; color: inherit;
}
.icon-btn:hover { background: rgba(16, 56, 43, 0.08); }
.icon-btn svg { width: 19px; height: 19px; }

/* ---------- bits ---------- */
.eyebrow {
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--red); display: inline-flex; align-items: center; gap: 9px;
}
.eyebrow::before { content: ''; width: 22px; height: 1px; background: currentColor; display: inline-block; }
.eyebrow.plain::before { display: none; }
.lede { font-size: clamp(17px, 2.1vw, 20px); line-height: 1.55; color: var(--ink-soft); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.tiny { font-size: 11.5px; letter-spacing: 0.04em; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; }
.nowrap { white-space: nowrap; }
.center { text-align: center; }
.stack { display: grid; gap: 16px; }
.stack-sm { display: grid; gap: 9px; }
.row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.spacer { flex: 1 1 auto; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 36px; }
.mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }
.hide { display: none !important; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.text-red { color: var(--red-dark); }
.text-ok { color: var(--pine-2); }
.divider { height: 1px; background: var(--line); margin: 20px 0; }

.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px; background: var(--paper-2);
  color: var(--ink-soft); font-size: 11.5px; font-weight: 600; letter-spacing: 0.02em;
  white-space: nowrap;
}
.pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: 0.7; }
.pill.plain::before { display: none; }
.pill.ok { background: var(--ok-bg); color: #265c3c; }
.pill.warn { background: var(--warn-bg); color: #76551a; }
.pill.bad { background: var(--danger-bg); color: #8c2c18; }
.pill.info { background: #e0e9ee; color: #34576e; }
.pill.dark { background: var(--pine); color: var(--paper); }
.pill.gold { background: var(--gold-soft); color: #6d4b12; }
.pill.no-dot::before { display: none; }

.avatar {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%; flex: 0 0 auto;
  background: var(--mint); color: var(--pine); font-weight: 700; font-size: 12px;
  border: 1px solid rgba(16, 56, 43, 0.12);
}
.avatar.red { background: var(--danger-bg); color: var(--red-dark); }
.avatar.gold { background: var(--gold-soft); color: #6d4b12; }
.avatar.lg { width: 46px; height: 46px; font-size: 15px; }
.avatar.sm { width: 26px; height: 26px; font-size: 10px; }
.avatar-stack { display: flex; }
.avatar-stack .avatar { margin-left: -9px; border: 2px solid var(--card); }
.avatar-stack .avatar:first-child { margin-left: 0; }

.card {
  background: rgba(255, 253, 247, 0.86);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.card-pad { padding: 26px; }
.card-flat { box-shadow: none; }
.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.card-head h2, .card-head h3 { font-size: 22px; }
.card-title { font-family: var(--font-display); font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.card-note { font-size: 13px; color: var(--muted); margin-top: 3px; }

.notice {
  display: flex; gap: 12px; align-items: flex-start;
  border: 1px solid var(--line); background: var(--card);
  border-radius: var(--radius-sm); padding: 14px 16px; font-size: 13.5px; color: var(--ink-soft);
}
.notice svg { width: 19px; height: 19px; flex: 0 0 auto; margin-top: 1px; }
.notice.warn { background: var(--warn-bg); border-color: #ead7a6; }
.notice.bad { background: var(--danger-bg); border-color: #ecc4b8; }
.notice.ok { background: var(--ok-bg); border-color: #c9dfc1; }
.notice.info { background: #eaf1f4; border-color: #cfdfe7; }

/* ---------- forms ---------- */
.field { display: grid; gap: 6px; }
.field > label, .label {
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-soft);
}
.field .hint { font-size: 12.5px; color: var(--muted); line-height: 1.5; text-transform: none; letter-spacing: 0; font-weight: 400; }
.input, .select, .textarea {
  width: 100%; border: 1px solid var(--line-strong); border-radius: 12px;
  background: #fffdf8; padding: 12px 14px; min-height: 46px;
  font-size: 15px; line-height: 1.4; color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.textarea { min-height: 120px; resize: vertical; }
.input:hover, .select:hover, .textarea:hover { border-color: #b3a68b; }
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--pine-3); box-shadow: 0 0 0 4px rgba(43, 107, 83, 0.13);
}
.input::placeholder, .textarea::placeholder { color: #9b9a8f; }
.select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink-soft) 50%), linear-gradient(135deg, var(--ink-soft) 50%, transparent 50%); background-position: calc(100% - 19px) 20px, calc(100% - 14px) 20px; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 38px; }
.input[aria-invalid="true"], .textarea[aria-invalid="true"], .select[aria-invalid="true"] { border-color: var(--red); background: #fff7f4; }
.field-error { color: var(--red-dark); font-size: 12.5px; font-weight: 500; }
.form-error {
  border-radius: 12px; background: var(--danger-bg); border: 1px solid #ecc4b8; color: #7d2817;
  padding: 12px 14px; font-size: 13.5px;
}
.form-grid { display: grid; gap: 16px; }
.form-grid.two { grid-template-columns: 1fr 1fr; }
.form-grid.three { grid-template-columns: repeat(3, 1fr); }
.checkline { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; line-height: 1.45; }
.checkline input[type="checkbox"], .checkline input[type="radio"] { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--pine); flex: 0 0 auto; }
.check-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.check-card {
  display: flex; align-items: flex-start; gap: 10px; padding: 11px 13px;
  border: 1px solid var(--line); border-radius: 12px; background: #fffdf8; font-size: 14px;
  cursor: pointer; transition: border-color 0.15s ease, background 0.15s ease;
}
.check-card:hover { border-color: var(--pine-3); }
.check-card input { accent-color: var(--pine); margin-top: 2px; }
.check-card.checked { border-color: var(--pine-3); background: var(--mint); }
.switch-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.switch-row:last-child { border-bottom: 0; }
.switch-row strong { display: block; font-size: 14.5px; }
.switch-row p { color: var(--muted); font-size: 13px; margin-top: 2px; }
.switch { position: relative; width: 46px; height: 26px; flex: 0 0 auto; }
.switch input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.switch span { position: absolute; inset: 0; border-radius: 999px; background: var(--line-strong); transition: background 0.18s ease; pointer-events: none; }
.switch span::after { content: ''; position: absolute; width: 20px; height: 20px; border-radius: 50%; top: 3px; left: 3px; background: #fff; transition: transform 0.18s ease; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2); }
.switch input:checked + span { background: var(--pine-2); }
.switch input:checked + span::after { transform: translateX(20px); }
.switch input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }

/* ---------- landing ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(248, 243, 231, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(222, 211, 190, 0.7);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 74px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--pine); text-decoration: none; font-family: var(--font-display); font-weight: 700; font-size: 20px; letter-spacing: -0.02em; }
.brand:hover { color: var(--pine); }
.brand-mark { width: 34px; height: 34px; flex: 0 0 auto; }
.brand small { display: block; font-family: var(--font-body); font-size: 9px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-top: 1px; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a { color: var(--ink-soft); text-decoration: none; font-size: 14px; font-weight: 500; }
.site-nav a:hover { color: var(--red-dark); }
.nav-actions { display: flex; align-items: center; gap: 14px; }
.nav-actions .signin { font-size: 14px; font-weight: 600; color: var(--pine); text-decoration: none; }
.menu-toggle { display: none; }

.hero { padding: clamp(44px, 7vw, 92px) 0 clamp(54px, 8vw, 104px); position: relative; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr); gap: clamp(36px, 6vw, 80px); align-items: center; }
.hero h1 { font-size: clamp(46px, 7.2vw, 88px); margin: 18px 0 22px; letter-spacing: -0.045em; }
.hero h1 em { font-style: italic; color: var(--red); font-weight: 500; }
.hero .lede { max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 30px; }
.hero-points { list-style: none; padding: 0; margin: 34px 0 0; display: flex; flex-wrap: wrap; gap: 9px 20px; }
.hero-points li { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; color: var(--ink-soft); }
.hero-points svg { width: 15px; height: 15px; color: var(--pine-3); }
.hero-meta { margin-top: 26px; font-size: 12px; color: var(--muted); }

.hero-art { position: relative; min-height: 480px; display: grid; place-items: center; }
.hero-art::before {
  content: ''; position: absolute; inset: 5% 8%; border-radius: 50%;
  background: radial-gradient(circle, rgba(220, 233, 215, 0.9), rgba(241, 226, 189, 0.2) 60%, transparent 70%);
  filter: blur(2px);
}
.tag-card {
  position: relative; width: min(360px, 92%); background: var(--card);
  border: 1px solid var(--line-strong); border-radius: 6px 24px 24px 24px;
  padding: 34px 30px 46px; box-shadow: var(--shadow);
  transform: rotate(-2.4deg);
  z-index: 2;
}
.tag-card::before {
  content: ''; position: absolute; top: 17px; left: 22px; width: 14px; height: 14px;
  border-radius: 50%; background: var(--paper); border: 1px solid var(--line-strong);
  box-shadow: inset 0 0 0 4px var(--paper);
}
.tag-card::after {
  content: ''; position: absolute; top: 24px; right: 24px; width: 70px; height: 26px;
  border: 1.5px dashed var(--red); border-radius: 3px; opacity: 0.5; transform: rotate(7deg);
}
.tag-string {
  position: absolute; top: -46px; left: 50%; width: 70px; height: 70px;
  border-left: 1.5px solid var(--line-strong); border-top: 1.5px solid var(--line-strong);
  border-radius: 60px 0 0 0; transform: rotate(18deg); z-index: 1; opacity: 0.9;
}
.tag-kicker { font-size: 10px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--red); }
.tag-name { font-family: var(--font-display); font-size: clamp(30px, 4vw, 39px); line-height: 1.02; margin: 14px 0 6px; letter-spacing: -0.03em; }
.tag-name em { font-style: italic; }
.tag-sub { font-size: 13px; color: var(--muted); }
.tag-rule { border: 0; border-top: 1px dashed var(--line-strong); margin: 20px 0; }
.tag-line { display: flex; justify-content: space-between; gap: 14px; font-size: 12px; padding: 5px 0; }
.tag-line span:first-child { color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; font-size: 9.5px; font-weight: 700; padding-top: 2px; }
.tag-line strong { font-weight: 600; text-align: right; }
.tag-stamp {
  position: absolute; right: -30px; bottom: -36px; background: var(--red); color: #fff7ea;
  border-radius: 50%; width: 84px; height: 84px; display: grid; place-items: center; text-align: center;
  font-size: 9px; font-weight: 800; letter-spacing: 0.08em; line-height: 1.25; text-transform: uppercase;
  transform: rotate(9deg); box-shadow: 0 8px 18px -10px rgba(156, 47, 30, 0.9);
  border: 2px solid #f8e7d3; outline: 1px dashed rgba(255, 247, 234, 0.6); outline-offset: -6px;
}
.sticky-note {
  position: absolute; right: 0; top: 12%; z-index: 3; width: 168px;
  background: #f6e6ae; padding: 14px 15px; transform: rotate(4deg);
  box-shadow: 0 10px 24px -18px rgba(16, 56, 43, 0.6);
  font-size: 12px; color: #5e4e21; border-radius: 2px;
}
.sticky-note::before { content: ''; position: absolute; top: -8px; left: 18px; width: 42px; height: 14px; background: rgba(255, 255, 255, 0.5); transform: rotate(-3deg); }
.sticky-note strong { display: block; font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 5px; color: #7a6226; }
.floating-tag {
  position: absolute; left: -6%; bottom: 6%; z-index: 3; background: var(--pine); color: var(--paper);
  border-radius: 10px; padding: 12px 16px; transform: rotate(3deg); font-size: 11.5px;
  box-shadow: var(--shadow-sm); display: flex; align-items: center; gap: 9px;
}
.floating-tag svg { width: 16px; height: 16px; color: #e7c980; }
.snow { position: absolute; color: var(--pine-3); opacity: 0.3; }
.snow.s1 { top: 8%; left: 4%; width: 26px; } .snow.s2 { bottom: 14%; right: 3%; width: 18px; } .snow.s3 { top: 44%; left: -2%; width: 12px; }

.marquee { border-block: 1px solid var(--line); background: var(--paper-2); padding: 12px 0; overflow: hidden; }
.marquee-track { display: flex; gap: 38px; width: max-content; animation: marquee 34s linear infinite; }
.marquee span { font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-soft); display: inline-flex; align-items: center; gap: 12px; white-space: nowrap; }
.marquee span::after { content: '✳'; color: var(--red); font-size: 12px; }
@keyframes marquee { to { transform: translateX(-50%); } }

.section { padding: clamp(60px, 8vw, 108px) 0; }
.section-tight { padding: clamp(44px, 6vw, 76px) 0; }
.section-head { max-width: 700px; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(34px, 4.6vw, 54px); margin: 14px 0 16px; letter-spacing: -0.035em; }
.section-head p { color: var(--ink-soft); font-size: 17px; max-width: 620px; }
.section-alt { background: rgba(239, 230, 212, 0.55); border-block: 1px solid var(--line); }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; }
.step {
  position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 22px 24px; min-height: 218px;
}
.step-num {
  font-family: var(--font-display); font-size: 38px; line-height: 1; color: var(--red);
  font-weight: 500; font-style: italic;
}
.step h3 { font-size: 22px; margin: 18px 0 8px; }
.step p { font-size: 13.5px; color: var(--muted); }
.step::after { content: ''; position: absolute; right: -14px; top: 34px; width: 10px; height: 1px; background: var(--line-strong); }
.step:last-child::after { display: none; }

.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }
.bento .card { padding: 28px; min-height: 220px; }
.bento .span-7 { grid-column: span 7; } .bento .span-5 { grid-column: span 5; }
.bento .span-4 { grid-column: span 4; } .bento .span-8 { grid-column: span 8; }
.bento h3 { font-size: 25px; margin: 16px 0 8px; }
.bento p { font-size: 14px; color: var(--muted); }
.feature-icon {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: var(--mint); color: var(--pine); border: 1px solid rgba(16, 56, 43, 0.1);
}
.feature-icon svg { width: 21px; height: 21px; }
.feature-icon.red { background: var(--danger-bg); color: var(--red-dark); }
.feature-icon.gold { background: var(--gold-soft); color: #6d4b12; }
.mini-ui { margin-top: 22px; border: 1px solid var(--line); border-radius: 12px; background: #fffdf8; overflow: hidden; }
.mini-bar { display: flex; align-items: center; gap: 6px; padding: 8px 11px; border-bottom: 1px solid var(--line); background: var(--paper-2); }
.mini-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--line-strong); }
.mini-body { padding: 15px; display: grid; gap: 9px; }
.mini-row { display: flex; align-items: center; gap: 9px; font-size: 12px; }
.mini-line { height: 7px; border-radius: 5px; background: var(--paper-2); flex: 1; }
.mini-line.w40 { max-width: 40%; } .mini-line.w60 { max-width: 60%; } .mini-line.w80 { max-width: 80%; }
.mini-chip { font-size: 9px; padding: 2px 7px; border-radius: 99px; background: var(--mint); color: var(--pine); font-weight: 700; }

.zone-visual { display: grid; gap: 9px; margin-top: 20px; }
.zone-bar { display: grid; grid-template-columns: 84px 1fr 30px; gap: 10px; align-items: center; font-size: 10.5px; color: var(--muted); }
.zone-bar .bar { height: 7px; background: var(--paper-2); border-radius: 99px; overflow: hidden; }
.zone-bar .bar span { display: block; height: 100%; background: var(--pine-3); border-radius: inherit; }

.draft-peek { background: #fffdf8; border: 1px solid var(--line); border-radius: 10px; padding: 16px; font-size: 11.5px; margin-top: 18px; box-shadow: 0 12px 22px -24px rgba(16, 56, 43, 0.8); }
.draft-peek .draft-head { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); padding-bottom: 9px; margin-bottom: 9px; }
.draft-peek p { color: var(--ink-soft); margin: 4px 0; line-height: 1.5; }

.quote-band { background: var(--pine); color: var(--paper); padding: 62px 0; position: relative; overflow: hidden; }
.quote-band::before { content: '“'; position: absolute; font-family: var(--font-display); font-size: 360px; line-height: 1; opacity: 0.06; left: 2%; top: -70px; }
.quote-band blockquote { font-family: var(--font-display); font-size: clamp(26px, 3.4vw, 40px); line-height: 1.2; max-width: 820px; margin: 0; letter-spacing: -0.02em; }
.quote-band cite { display: block; margin-top: 22px; font-family: var(--font-body); font-style: normal; font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; color: #b9c9b7; }

.faq { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 60px; align-items: start; }
.faq-list { border-top: 1px solid var(--line-strong); }
.faq-item { border-bottom: 1px solid var(--line-strong); }
.faq-item summary { list-style: none; cursor: pointer; padding: 20px 0; display: flex; align-items: center; justify-content: space-between; gap: 20px; font-weight: 600; font-size: 16px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-family: var(--font-display); font-size: 24px; color: var(--red); line-height: 1; transition: transform 0.2s ease; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding: 0 40px 20px 0; color: var(--muted); font-size: 14px; max-width: 620px; }

.cta-band { padding: clamp(56px, 8vw, 100px) 0; }
.cta-card {
  background: var(--pine); color: var(--paper); border-radius: 28px; padding: clamp(36px, 6vw, 70px);
  position: relative; overflow: hidden; display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 40px; align-items: center;
}
.cta-card::after { content: ''; position: absolute; width: 400px; height: 400px; border: 1px solid rgba(248, 243, 231, 0.16); border-radius: 50%; right: -140px; bottom: -220px; }
.cta-card h2 { font-size: clamp(34px, 5vw, 54px); letter-spacing: -0.035em; }
.cta-card p { color: #c9d6c6; margin-top: 14px; max-width: 540px; }
.cta-card .btn { background: var(--paper); color: var(--pine); }
.cta-card .btn:hover { background: #fff; color: var(--pine); }
.cta-card .btn-ghost { background: transparent; color: var(--paper); border-color: rgba(248, 243, 231, 0.45); }
.cta-card .btn-ghost:hover { background: rgba(248, 243, 231, 0.12); color: #fff; }
.cta-tag { justify-self: end; transform: rotate(6deg); border: 1.5px dashed rgba(248, 243, 231, 0.45); border-radius: 12px; padding: 20px 24px; font-family: var(--font-display); font-size: 24px; line-height: 1.15; color: var(--gold-soft); }

.site-footer { border-top: 1px solid var(--line); padding: 34px 0 42px; }
.site-footer .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.site-footer p { font-size: 12px; color: var(--muted); }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { font-size: 12px; color: var(--ink-soft); text-decoration: none; }
.footer-links a:hover { color: var(--red-dark); }

/* ---------- auth ---------- */
.auth-shell { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-aside {
  background: var(--pine); color: var(--paper); padding: 46px clamp(34px, 6vw, 76px);
  display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden;
}
.auth-aside::before { content: ''; position: absolute; width: 560px; height: 560px; border: 1px solid rgba(248, 243, 231, 0.12); border-radius: 50%; right: -260px; top: -140px; }
.auth-aside::after { content: ''; position: absolute; width: 360px; height: 360px; border: 1px solid rgba(248, 243, 231, 0.1); border-radius: 50%; right: -150px; top: -30px; }
.auth-aside .brand { color: var(--paper); position: relative; z-index: 1; }
.auth-aside .brand small { color: #a9bcae; }
.auth-copy { position: relative; z-index: 1; max-width: 440px; }
.auth-copy h1 { font-size: clamp(40px, 5vw, 62px); letter-spacing: -0.04em; margin-bottom: 18px; }
.auth-copy h1 em { font-style: italic; color: var(--gold-soft); }
.auth-copy p { color: #c6d4c4; font-size: 15px; }
.auth-points { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 12px; }
.auth-points li { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; color: #dbe5d8; }
.auth-points svg { width: 16px; height: 16px; color: var(--gold-soft); flex: 0 0 auto; margin-top: 2px; }
.auth-main { display: grid; place-items: center; padding: 38px 24px; }
.auth-card { width: min(430px, 100%); }
.auth-card h1 { font-size: 40px; letter-spacing: -0.035em; margin-bottom: 8px; }
.auth-card > p { color: var(--muted); font-size: 14px; }
.auth-form { display: grid; gap: 17px; margin-top: 28px; }
.auth-alt { margin-top: 22px; font-size: 13.5px; color: var(--muted); text-align: center; }
.auth-alt a { font-weight: 600; }
.auth-note { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 11.5px; color: var(--muted); line-height: 1.6; }
.pw-wrap { position: relative; }
.pw-wrap .input { padding-right: 48px; }
.pw-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: none; padding: 8px; color: var(--muted); display: inline-flex; }
.pw-toggle svg { width: 18px; height: 18px; }
.pw-meter { display: flex; gap: 5px; margin-top: 7px; }
.pw-meter span { height: 4px; flex: 1; border-radius: 99px; background: var(--line); }
.pw-meter span.on { background: var(--pine-3); }
.pw-meter span.mid { background: var(--gold); }
.pw-meter span.weak { background: var(--red); }

/* ---------- app shell ---------- */
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 264px minmax(0, 1fr); }
.sidebar {
  position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column;
  background: var(--pine); color: var(--paper); padding: 22px 18px; z-index: 50;
}
.sidebar .brand { color: var(--paper); font-size: 18px; }
.sidebar .brand small { color: #9fb4a5; }
.side-top { padding: 0 6px 18px; border-bottom: 1px solid rgba(248, 243, 231, 0.14); }
.side-section { padding: 20px 8px 7px; font-size: 9.5px; letter-spacing: 0.18em; text-transform: uppercase; color: #91a896; font-weight: 700; }
.side-nav { display: grid; gap: 2px; }
.side-link {
  display: flex; align-items: center; gap: 11px; padding: 9px 11px; border-radius: 9px;
  color: #d5e0d2; text-decoration: none; font-size: 13.5px; font-weight: 500; line-height: 1.25;
  transition: background 0.15s ease, color 0.15s ease;
}
.side-link svg { width: 17px; height: 17px; opacity: 0.8; flex: 0 0 auto; }
.side-link:hover { background: rgba(248, 243, 231, 0.09); color: #fff; }
.side-link.active { background: rgba(248, 243, 231, 0.14); color: #fff; font-weight: 600; }
.side-link.active svg { opacity: 1; }
.side-group-name { padding: 14px 11px 4px; font-family: var(--font-display); font-size: 17px; line-height: 1.15; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-badge { margin-left: auto; background: rgba(248, 243, 231, 0.16); border-radius: 99px; font-size: 10px; padding: 1px 7px; font-weight: 700; }
.side-foot { margin-top: auto; border-top: 1px solid rgba(248, 243, 231, 0.14); padding-top: 15px; }
.side-user { display: flex; align-items: center; gap: 10px; padding: 6px; border-radius: 10px; }
.side-user .avatar { background: rgba(248, 243, 231, 0.16); color: var(--paper); border-color: transparent; }
.side-user-info { min-width: 0; }
.side-user-info strong { display: block; font-size: 12.5px; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-user-info span { display: block; font-size: 10.5px; color: #a6baa9; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-user .icon-btn { color: #c7d6c5; margin-left: auto; }
.app-main { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 14px;
  min-height: 62px; padding: 10px clamp(18px, 4vw, 42px);
  background: rgba(248, 243, 231, 0.88); backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(222, 211, 190, 0.75);
}
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); min-width: 0; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--pine); }
.breadcrumb .sep { opacity: 0.5; }
.breadcrumb strong { color: var(--ink); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.view { padding: clamp(24px, 3.4vw, 44px) clamp(18px, 4vw, 42px) 80px; width: min(1180px, 100%); margin: 0 auto; }
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 22px; flex-wrap: wrap; margin-bottom: 28px; }
.page-head h1 { font-size: clamp(30px, 3.5vw, 44px); letter-spacing: -0.035em; }
.page-head p { color: var(--muted); font-size: 14px; margin-top: 7px; max-width: 640px; }
.page-head .eyebrow { margin-bottom: 9px; }
.head-actions { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.menu-btn { display: none; }
.sidebar-backdrop { display: none; }

.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 17px 18px; }
.stat-label { font-size: 10px; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--muted); }
.stat-value { font-family: var(--font-display); font-size: 30px; line-height: 1; margin-top: 8px; letter-spacing: -0.02em; }
.stat-sub { font-size: 11px; color: var(--muted); margin-top: 5px; }

.progress { height: 8px; background: var(--paper-2); border-radius: 99px; overflow: hidden; }
.progress > span { display: block; height: 100%; border-radius: inherit; background: var(--pine-3); transition: width 0.4s ease; }
.progress.red > span { background: var(--red); }
.progress.gold > span { background: var(--gold); }

.group-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.group-card {
  display: flex; flex-direction: column; gap: 18px; padding: 24px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); text-decoration: none; color: inherit; position: relative;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}
.group-card:hover { transform: translateY(-2px); border-color: var(--line-strong); color: inherit; box-shadow: var(--shadow); }
.group-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.group-card h2 { font-size: 25px; line-height: 1.12; }
.group-card .meta { font-size: 12px; color: var(--muted); margin-top: 6px; display: flex; flex-wrap: wrap; gap: 6px 12px; }
.group-card .meta span { display: inline-flex; align-items: center; gap: 5px; }
.group-card .meta svg { width: 13px; height: 13px; }
.group-progress { display: grid; gap: 7px; }
.group-progress .labels { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); }
.group-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); padding-top: 14px; }
.next-step { font-size: 12px; color: var(--ink-soft); display: inline-flex; align-items: center; gap: 6px; }

.empty-state { text-align: center; padding: 60px 24px; border: 1px dashed var(--line-strong); border-radius: var(--radius); background: rgba(255, 253, 247, 0.5); }
.empty-state .empty-art { width: 92px; height: 92px; margin: 0 auto 20px; }
.empty-state h2 { font-size: 30px; margin-bottom: 8px; }
.empty-state p { color: var(--muted); max-width: 430px; margin: 0 auto 22px; font-size: 14px; }

.stepper { display: flex; align-items: center; gap: 0; margin: 0 0 28px; padding: 0; list-style: none; border: 1px solid var(--line); background: var(--card); border-radius: 999px; overflow: hidden; }
.stepper li { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 12px; font-size: 11.5px; font-weight: 600; color: var(--muted); border-right: 1px solid var(--line); white-space: nowrap; }
.stepper li:last-child { border-right: 0; }
.stepper li .n { width: 19px; height: 19px; border-radius: 50%; display: grid; place-items: center; background: var(--paper-2); color: var(--muted); font-size: 10px; font-weight: 700; }
.stepper li.active { background: var(--mint); color: var(--pine); }
.stepper li.active .n { background: var(--pine); color: var(--paper); }
.stepper li.done { color: var(--pine-2); }
.stepper li.done .n { background: var(--pine-2); color: var(--paper); }

.overview-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.75fr); gap: 18px; align-items: start; }
.overview-main { display: grid; gap: 18px; }
.overview-side { display: grid; gap: 18px; }
.checklist { display: grid; gap: 2px; }
.check-item { display: flex; align-items: flex-start; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; }
.check-item:last-child { border-bottom: 0; }
.check-item .check-mark { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line-strong); display: grid; place-items: center; flex: 0 0 auto; color: transparent; margin-top: 1px; }
.check-item.done .check-mark { background: var(--pine); border-color: var(--pine); color: var(--paper); }
.check-item .check-mark svg { width: 12px; height: 12px; }
.check-item strong { display: block; font-size: 13.5px; }
.check-item span { display: block; font-size: 11.5px; color: var(--muted); margin-top: 1px; }
.check-item:hover strong { color: var(--red-dark); }

.admin-list { display: grid; gap: 11px; }
.admin-person { display: flex; align-items: center; gap: 10px; }
.admin-person .info { min-width: 0; }
.admin-person strong { display: block; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-person span { display: block; font-size: 11px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-person .pill { margin-left: auto; }

.zone-tags { display: flex; flex-wrap: wrap; gap: 6px; }

/* tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--card); }
table.data { width: 100%; border-collapse: collapse; font-size: 13px; }
table.data th { text-align: left; font-size: 9.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-weight: 700; padding: 12px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; background: rgba(239, 230, 212, 0.35); }
table.data td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.data tr:last-child td { border-bottom: 0; }
table.data tr:hover td { background: rgba(239, 230, 212, 0.22); }
.cell-person { display: flex; align-items: center; gap: 10px; min-width: 180px; }
.cell-person .info { min-width: 0; }
.cell-person strong { display: block; font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cell-person span { display: block; font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-actions { display: flex; align-items: center; gap: 4px; justify-content: flex-end; }
.row-actions .icon-btn { width: 32px; height: 32px; }
.row-actions svg { width: 15px; height: 15px; }
.table-note { padding: 12px 16px; font-size: 11.5px; color: var(--muted); border-top: 1px solid var(--line); background: rgba(239, 230, 212, 0.2); }

/* toolbar */
.toolbar { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin-bottom: 16px; }
.toolbar .search { position: relative; flex: 1 1 220px; max-width: 320px; }
.toolbar .search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 15px; height: 15px; color: var(--muted); }
.toolbar .search .input { padding-left: 36px; min-height: 40px; font-size: 13px; }
.chips { display: flex; gap: 7px; flex-wrap: wrap; }
.chip { border: 1px solid var(--line-strong); background: transparent; border-radius: 999px; padding: 6px 13px; font-size: 12px; font-weight: 500; color: var(--ink-soft); }
.chip:hover { border-color: var(--pine-3); }
.chip.active { background: var(--pine); color: var(--paper); border-color: var(--pine); }

/* survey builder */
.survey-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr); gap: 18px; align-items: start; }
.q-list { display: grid; gap: 10px; }
.q-card { display: flex; gap: 14px; padding: 17px 16px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; align-items: flex-start; }
.q-card .drag { color: var(--line-strong); padding-top: 3px; cursor: grab; }
.q-card .drag svg { width: 16px; height: 16px; }
.q-main { flex: 1; min-width: 0; }
.q-main .q-label { font-weight: 600; font-size: 14px; }
.q-main .q-help { font-size: 12px; color: var(--muted); margin-top: 3px; }
.q-meta { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.q-actions { display: flex; gap: 2px; }
.q-actions .icon-btn { width: 30px; height: 30px; color: var(--muted); }
.q-actions .icon-btn:hover { color: var(--red-dark); background: var(--danger-bg); }
.q-actions svg { width: 14px; height: 14px; }
.preview-panel { position: sticky; top: 82px; }
.preview-card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 22px; }
.preview-card .tag { font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--red); font-weight: 700; }
.preview-card h3 { font-size: 23px; margin: 8px 0 4px; }
.preview-q { padding: 13px 0; border-bottom: 1px solid var(--line); }
.preview-q:last-child { border-bottom: 0; }
.preview-q label { display: block; font-size: 12.5px; font-weight: 600; margin-bottom: 6px; }
.preview-q .fake-input { height: 36px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); }
.preview-q .fake-area { height: 62px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); }
.option-editor { display: grid; gap: 7px; }
.option-row { display: flex; gap: 7px; }
.option-row .input { min-height: 38px; padding: 8px 11px; font-size: 13px; }

/* match / pools */
.match-layout { display: grid; gap: 18px; }
.pool-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pool {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; min-height: 240px;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.pool.drag-over { border-color: var(--pine-3); background: var(--mint); }
.pool-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.pool-head h3 { font-size: 18px; }
.pool-head p { font-size: 11px; color: var(--muted); margin-top: 3px; }
.pool-count { font-family: var(--font-display); font-size: 24px; line-height: 1; }
.pool-list { display: flex; flex-wrap: wrap; gap: 7px; min-height: 50px; }
.person-chip {
  display: inline-flex; align-items: center; gap: 7px; padding: 5px 9px 5px 5px;
  border: 1px solid var(--line); border-radius: 999px; background: #fffdf8; font-size: 12px;
  cursor: grab; user-select: none;
}
.person-chip .avatar { width: 23px; height: 23px; font-size: 9px; }
.person-chip .z { font-size: 9px; color: var(--muted); background: var(--paper-2); border-radius: 99px; padding: 1px 5px; }
.person-chip.dragging { opacity: 0.4; }
.person-chip.admin { border-color: var(--gold); background: var(--gold-soft); }
.pool-empty { color: var(--muted); font-size: 12px; padding: 16px 0; text-align: center; width: 100%; }
.pool-actions { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.match-summary { display: flex; gap: 16px; flex-wrap: wrap; }
.match-stat { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.match-stat strong { color: var(--ink); font-weight: 600; }
.assignment-table .arrow { color: var(--line-strong); text-align: center; width: 30px; }
.tracking { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; }
.tracking a { display: inline-flex; align-items: center; gap: 3px; }

/* emails */
.email-layout { display: grid; grid-template-columns: minmax(300px, 0.8fr) minmax(0, 1.2fr); gap: 18px; align-items: start; }
.draft-list { display: grid; gap: 7px; max-height: 70vh; overflow-y: auto; padding-right: 3px; }
.draft-item { text-align: left; width: 100%; border: 1px solid var(--line); background: var(--card); border-radius: 12px; padding: 13px 14px; display: grid; gap: 5px; }
.draft-item:hover, .draft-item.active { border-color: var(--pine-3); background: var(--mint); }
.draft-item .draft-to { font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.draft-item strong { font-size: 13px; font-weight: 600; line-height: 1.3; }
.draft-item .draft-sub { font-size: 11.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.draft-item .draft-foot { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: 2px; }
.email-editor { position: sticky; top: 82px; }
.email-editor .subject-input { font-family: var(--font-display); font-size: 20px; font-weight: 600; padding: 10px 13px; }
.email-body {
  width: 100%; min-height: 480px; border: 1px solid var(--line-strong); border-radius: 12px;
  background: #fffdf8; padding: 16px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12.5px; line-height: 1.65; white-space: pre-wrap; resize: vertical;
}
.email-body:focus { outline: none; border-color: var(--pine-3); box-shadow: 0 0 0 4px rgba(43, 107, 83, 0.13); }
.email-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.copy-tabs { display: flex; gap: 6px; }
.copy-tabs .chip { padding: 4px 10px; font-size: 11px; }
.email-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; align-items: center; }
.send-hint { font-size: 11.5px; color: var(--muted); max-width: 330px; }

/* responses */
.response-card { padding: 0; overflow: hidden; }
.response-head { display: flex; align-items: center; gap: 12px; padding: 16px 18px; cursor: pointer; }
.response-head:hover { background: rgba(239, 230, 212, 0.25); }
.response-head .info { min-width: 0; flex: 1; }
.response-head strong { display: block; font-size: 14px; }
.response-head span { display: block; font-size: 11.5px; color: var(--muted); }
.response-body { display: none; padding: 0 18px 18px; border-top: 1px solid var(--line); }
.response-card.open .response-body { display: block; }
.answer-row { display: grid; grid-template-columns: 190px 1fr; gap: 18px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.answer-row:last-child { border-bottom: 0; }
.answer-row dt { color: var(--muted); font-size: 11.5px; font-weight: 600; }
.answer-row dd { margin: 0; white-space: pre-wrap; }
.sealed { text-align: center; padding: 60px 24px; }
.sealed .lock-art { width: 74px; height: 74px; margin: 0 auto 18px; color: var(--pine); }
.sealed h2 { font-size: 30px; margin-bottom: 8px; }
.sealed p { color: var(--muted); max-width: 480px; margin: 0 auto 20px; font-size: 14px; }

/* group settings */
.settings-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: start; }

/* modal / toast */
dialog.modal {
  border: 0; padding: 0; background: transparent; width: min(620px, calc(100% - 32px)); max-height: 88vh;
}
dialog.modal::backdrop { background: rgba(16, 56, 43, 0.5); backdrop-filter: blur(3px); }
.modal-card {
  background: var(--paper); border: 1px solid var(--line-strong); border-radius: 22px;
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.5); max-height: 88vh; overflow-y: auto;
}
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 24px 24px 0; }
.modal-head h2 { font-size: 29px; letter-spacing: -0.03em; }
.modal-head p { font-size: 13px; color: var(--muted); margin-top: 5px; }
.modal-body { padding: 22px 24px 24px; }
.modal-foot { display: flex; align-items: center; justify-content: flex-end; gap: 9px; padding: 0 24px 24px; flex-wrap: wrap; }
.modal.wide { width: min(820px, calc(100% - 32px)); }
.modal-x { border: 0; background: transparent; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); }
.modal-x:hover { background: var(--paper-2); color: var(--ink); }
.modal-x svg { width: 19px; height: 19px; }

.toast-wrap { position: fixed; right: 18px; bottom: 18px; z-index: 200; display: grid; gap: 8px; max-width: min(380px, calc(100% - 36px)); }
.toast {
  display: flex; align-items: flex-start; gap: 10px; padding: 13px 15px;
  background: var(--pine); color: var(--paper); border-radius: 12px; font-size: 13px;
  box-shadow: 0 18px 45px -20px rgba(0, 0, 0, 0.6); animation: toast-in 0.25s ease;
}
.toast.error { background: var(--red-dark); }
.toast svg { width: 17px; height: 17px; flex: 0 0 auto; margin-top: 1px; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* loading */
.loading { display: grid; place-items: center; padding: 80px 0; color: var(--muted); gap: 13px; font-size: 13px; }
.spinner { width: 26px; height: 26px; border: 2px solid var(--line); border-top-color: var(--pine); border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.skeleton { background: linear-gradient(90deg, var(--paper-2), #f4ecdc, var(--paper-2)); background-size: 200% 100%; animation: shimmer 1.3s infinite; border-radius: 9px; }
@keyframes shimmer { to { background-position: -200% 0; } }

.fade-up { animation: fade-up 0.45s ease both; }
@keyframes fade-up { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- participant ---------- */
.participant-page { min-height: 100vh; padding-bottom: 70px; }
.participant-head { border-bottom: 1px solid var(--line); background: rgba(248, 243, 231, 0.9); position: sticky; top: 0; z-index: 20; backdrop-filter: blur(10px); }
.participant-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 66px; }
.participant-head .group-name { font-family: var(--font-display); font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.participant-head .private { display: inline-flex; align-items: center; gap: 6px; font-size: 10.5px; color: var(--muted); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.participant-head .private svg { width: 13px; height: 13px; }
.participant-main { width: min(760px, calc(100% - 36px)); margin: 34px auto 0; }
.participant-hero { margin-bottom: 26px; }
.participant-hero .eyebrow { margin-bottom: 10px; }
.participant-hero h1 { font-size: clamp(32px, 5vw, 46px); letter-spacing: -0.04em; }
.participant-hero p { color: var(--muted); font-size: 14px; margin-top: 10px; max-width: 600px; }
.form-section { padding: 26px; }
.form-section + .form-section { margin-top: 16px; }
.form-section h2 { font-size: 23px; }
.section-sub { font-size: 13px; color: var(--muted); margin-top: 4px; }
.progress-line { display: flex; align-items: center; gap: 10px; font-size: 11.5px; color: var(--muted); }
.progress-line .progress { flex: 1; }
.sticky-actions {
  position: static; margin-top: 16px; padding: 14px;
  background: rgba(248, 243, 231, 0.94);
  border: 1px solid var(--line); display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  border-radius: 14px;
}
.submitted-card { text-align: center; padding: 46px 28px; }
.submitted-card .big-check { width: 66px; height: 66px; margin: 0 auto 18px; border-radius: 50%; background: var(--mint); display: grid; place-items: center; color: var(--pine); }
.submitted-card .big-check svg { width: 30px; height: 30px; }
.match-card { overflow: hidden; }
.match-card .match-top { background: var(--pine); color: var(--paper); padding: 26px 26px 22px; position: relative; overflow: hidden; }
.match-card .match-top::after { content: ''; position: absolute; width: 260px; height: 260px; border: 1px solid rgba(248, 243, 231, 0.15); border-radius: 50%; right: -120px; top: -140px; }
.match-card .match-top .eyebrow { color: var(--gold-soft); }
.match-card .match-top h2 { font-size: 34px; margin: 10px 0 4px; color: #fff; }
.match-card .match-top p { color: #c6d4c4; font-size: 13px; }
.match-body { padding: 26px; display: grid; gap: 22px; }
.santee-name { font-size: 25px; }
.detail-list { display: grid; gap: 13px; }
.detail-row { display: grid; grid-template-columns: 120px 1fr; gap: 16px; font-size: 13.5px; }
.detail-row dt { font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); font-weight: 700; padding-top: 2px; }
.detail-row dd { margin: 0; white-space: pre-wrap; }
.answers { display: grid; gap: 14px; }
.answer { border-top: 1px solid var(--line); padding-top: 13px; }
.answer:first-child { border-top: 0; padding-top: 0; }
.answer .q { font-size: 11px; font-weight: 700; letter-spacing: 0.04em; color: var(--muted); text-transform: uppercase; margin-bottom: 4px; }
.answer .a { font-size: 14px; white-space: pre-wrap; }
.contact-card { background: var(--paper-2); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; }
.contact-card h3 { font-size: 17px; margin-bottom: 6px; }
.contact-card p { font-size: 12.5px; color: var(--muted); }
.tracking-box { border: 1px dashed var(--line-strong); border-radius: 12px; padding: 18px; background: rgba(255, 253, 247, 0.7); }
.tracking-box h3 { font-size: 18px; margin-bottom: 4px; }
.tracking-status { display: flex; align-items: center; gap: 9px; font-size: 13px; }
.big-status { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-radius: 14px; background: var(--mint); border: 1px solid #c9dfc1; }
.big-status.gold { background: var(--warn-bg); border-color: #ead7a6; }
.big-status svg { width: 24px; height: 24px; flex: 0 0 auto; }
.big-status strong { display: block; font-size: 14px; }
.big-status span { display: block; font-size: 12px; color: var(--muted); }
.participant-foot { text-align: center; margin-top: 36px; font-size: 11px; color: var(--muted); }
.participant-foot a { color: var(--muted); }

/* invite / misc */
.invite-box { display: flex; gap: 8px; align-items: center; }
.invite-box .input { font-size: 12px; font-family: ui-monospace, monospace; background: var(--paper); }
.copy-link { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; }
.badge-count { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; border-radius: 99px; background: var(--red); color: #fff; font-size: 9px; font-weight: 700; padding: 0 5px; }

.tag-print { border: 1px dashed var(--line-strong); border-radius: 8px; padding: 9px 12px; font-size: 11.5px; background: var(--card); }
.kbd { border: 1px solid var(--line-strong); border-bottom-width: 2px; border-radius: 5px; padding: 1px 5px; font-size: 10px; background: var(--paper); }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
  .hero-art { min-height: 420px; order: 2; }
  .hero-copy { order: 1; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step:nth-child(2)::after { display: none; }
  .bento .span-7, .bento .span-5, .bento .span-4, .bento .span-8 { grid-column: span 12; }
  .bento .span-6 { grid-column: span 12; }
  .overview-grid { grid-template-columns: 1fr; }
  .overview-side { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .survey-layout { grid-template-columns: 1fr; }
  .preview-panel { position: static; }
  .email-layout { grid-template-columns: 1fr; }
  .email-editor { position: static; }
  .draft-list { max-height: 360px; }
  .settings-grid { grid-template-columns: 1fr; }
  .quote-band blockquote { font-size: 30px; }
}
@media (max-width: 920px) {
  .site-nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .site-header .wrap { min-height: 64px; }
  .nav-actions .signin { display: none; }
  .site-header.open .site-nav {
    display: flex; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column;
    gap: 0; background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px 24px 18px;
    box-shadow: var(--shadow-sm);
  }
  .site-header.open .site-nav a { padding: 11px 0; border-bottom: 1px solid var(--line); width: 100%; }
  .auth-shell { grid-template-columns: 1fr; }
  .auth-aside { display: none; }
  .auth-main { min-height: 100vh; }
  .app-shell { grid-template-columns: 1fr; }
  .sidebar {
    position: fixed; left: 0; top: 0; bottom: 0; width: 280px; height: 100dvh;
    transform: translateX(-102%); transition: transform 0.22s ease; box-shadow: 0 0 60px rgba(0, 0, 0, 0.3);
  }
  .sidebar.open { transform: none; }
  .sidebar-backdrop { display: block; position: fixed; inset: 0; background: rgba(16, 56, 43, 0.42); z-index: 45; opacity: 0; pointer-events: none; transition: opacity 0.2s ease; }
  .sidebar-backdrop.open { opacity: 1; pointer-events: auto; }
  .menu-btn { display: inline-flex; }
  .topbar { padding-inline: 16px; }
  .view { padding-inline: 16px; }
  .overview-side { grid-template-columns: 1fr; }
  .group-grid { grid-template-columns: 1fr; }
  .faq { grid-template-columns: 1fr; gap: 26px; }
  .cta-card { grid-template-columns: 1fr; }
  .cta-tag { justify-self: start; }
  .pool-grid { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .wrap { width: calc(100% - 32px); }
  .narrow { width: calc(100% - 32px); }
  .section-head h2 { font-size: 34px; }
  .hero { padding-top: 38px; }
  .hero h1 { font-size: clamp(42px, 12vw, 62px); }
  .hero-art { min-height: 360px; }
  .sticky-note { right: -4px; top: 2%; width: 138px; font-size: 10.5px; padding: 11px; }
  .floating-tag { left: 0; bottom: 0; font-size: 10.5px; }
  .tag-card { padding: 28px 22px 40px; }
  .tag-stamp { right: -12px; bottom: -28px; width: 70px; height: 70px; font-size: 8px; }
  .steps { grid-template-columns: 1fr; }
  .step { min-height: 0; }
  .step::after { display: none; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat { padding: 13px 14px; }
  .stat-value { font-size: 26px; }
  .form-grid.two, .form-grid.three { grid-template-columns: 1fr; }
  .check-grid { grid-template-columns: 1fr; }
  .page-head h1 { font-size: 32px; }
  .page-head .head-actions { width: 100%; }
  .page-head .head-actions .btn { flex: 1 1 auto; }
  .stepper { overflow-x: auto; border-radius: 14px; }
  .stepper li { padding: 10px 9px; font-size: 10px; flex: 0 0 auto; }
  .card-pad { padding: 20px; }
  .group-card { padding: 19px; }
  .group-card h2 { font-size: 22px; }
  .answer-row { grid-template-columns: 1fr; gap: 3px; }
  .detail-row { grid-template-columns: 1fr; gap: 2px; }
  .participant-main { width: calc(100% - 28px); margin-top: 22px; }
  .form-section { padding: 20px; }
  .participant-hero h1 { font-size: 34px; }
  .sticky-actions { padding: 10px; }
  .sticky-actions .btn { flex: 1; }
  .toast-wrap { left: 12px; right: 12px; bottom: 12px; max-width: none; }
  .table-wrap { border: 0; background: transparent; overflow: visible; }
  table.data thead { display: none; }
  table.data, table.data tbody, table.data tr, table.data td { display: block; width: 100%; }
  table.data tr { background: var(--card); border: 1px solid var(--line); border-radius: 14px; margin-bottom: 9px; padding: 6px 4px; }
  table.data td { border-bottom: 1px solid var(--line); padding: 10px 12px; }
  table.data tr td:last-child { border-bottom: 0; }
  table.data td::before { content: attr(data-label); display: block; font-size: 9px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-bottom: 3px; }
  table.data td.cell-actions { display: flex; justify-content: flex-end; }
  table.data td.cell-actions::before { display: none; }
  .email-body { min-height: 360px; font-size: 12px; }
  .modal-head, .modal-body, .modal-foot { padding-inline: 18px; }
  .modal-head { padding-top: 20px; }
  .modal-head h2 { font-size: 25px; }
  .cta-card { padding: 30px 22px; }
  .cta-card h2 { font-size: 36px; }
  .site-footer .wrap { flex-direction: column; align-items: flex-start; }
  .hero-actions .btn { width: 100%; }
  .hero-actions .btn-link { width: auto; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .marquee-track { animation: none; }
}

/* ---------- late additions ---------- */
.auth-mobile-brand { display: none; }
.empty-state .empty-art svg { width: 100%; height: 100%; }
.card summary, details > summary { list-style: none; }
.card summary::-webkit-details-marker, details > summary::-webkit-details-marker { display: none; }
.survey-q { padding: 17px 0; border-bottom: 1px solid var(--line); }
.survey-q:last-child { border-bottom: 0; padding-bottom: 3px; }
.survey-q .label { text-transform: none; letter-spacing: 0; font-size: 14.5px; color: var(--ink); }
.survey-q .hint { text-transform: none; letter-spacing: 0; font-weight: 400; }
.chip-move { transition: color .15s ease, transform .15s ease; }
.chip-move:hover { color: var(--red-dark) !important; transform: translateX(1px); }
.response-head .icon-btn { transition: transform .18s ease; }
.response-head[aria-expanded="true"] .icon-btn { transform: rotate(180deg); }
.big-status { flex-wrap: wrap; }
.big-status > div { min-width: 0; }
.participant-main details summary { font-size: 13px; }
.participant-main details[open] summary { margin-bottom: 6px; }
.match-card .contact-card a { word-break: break-word; }
.draft-item { font: inherit; color: inherit; }
@media (max-width: 920px) {
  .auth-mobile-brand { display: inline-flex; margin-bottom: 30px; }
}


/* participant header */
.participant-head .brand { white-space: nowrap; flex: 0 0 auto; }
.participant-head .wrap { min-width: 0; }
.participant-head .group-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1 1 auto; text-align: right; }
.participant-head .private { flex: 0 0 auto; white-space: nowrap; }
@media (max-width: 560px) {
  .participant-head .brand span { display: none; }
  .participant-head .wrap { gap: 10px; }
  .participant-head .group-name { font-size: 15px; text-align: left; }
  .participant-head .private { font-size: 0; gap: 0; }
  .participant-head .private svg { width: 16px; height: 16px; }
}

@media (max-width: 680px) {
  .site-header .brand small { display: none; }
  .site-header .brand { font-size: 18px; gap: 8px; }
  .site-header .brand-mark { width: 30px; height: 30px; }
  .site-header .nav-actions { gap: 8px; }
  .site-header .nav-actions .btn { white-space: nowrap; padding: 8px 13px; font-size: 12.5px; min-height: 38px; }
  .site-header .wrap { gap: 10px; }
}

.sealed .lock-art svg { width: 100%; height: 100%; }
.draft-item[disabled], .btn[disabled] { cursor: not-allowed; }
