:root {
  --paper: #f3f1eb;
  --ink: #171717;
  --muted: #6f6b63;
  --line: #e3ddd2;
  --card: #ffffff;
  --chip: #faf8f4;
  --black: #111111;
  --soft: #ece8df;
  --max: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Instrument Sans", "Helvetica Neue", Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.45;
}

a { color: inherit; text-decoration: none; }

button, .btn {
  border: 0;
  background: var(--black);
  color: #fff;
  font: 500 15px/1 "Instrument Sans", "Helvetica Neue", Helvetica, sans-serif;
  padding: 14px 18px;
  border-radius: 10px;
  cursor: pointer;
  text-align: center;
}

.btn { display: inline-block; }
.btn-block { width: 100%; }
.btn-quiet { background: var(--soft); color: var(--ink); }
.text-btn, button.text-btn {
  background: transparent;
  color: var(--ink);
  padding: 0;
  border-radius: 0;
  font-weight: 500;
}
button:hover, .btn:hover { filter: brightness(1.08); }
.btn-quiet:hover { filter: brightness(0.97); }

.frame {
  width: min(var(--max), calc(100% - 80px));
  margin: 0 auto;
}

.mark { width: 22px; height: 22px; display: block; flex: none; }
.mark rect { fill: var(--ink); }
.mark path { stroke: var(--paper); fill: none; stroke-width: 1.7; stroke-linecap: round; }

.top {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(243, 241, 235, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.top .frame {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.nav-links {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 14.5px;
}

.top-actions { display: flex; align-items: center; gap: 22px; }

.hero {
  display: grid;
  grid-template-columns: 1fr minmax(320px, 460px);
  gap: 64px;
  align-items: center;
  padding: 72px 0 36px;
}

h1, .serif {
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  letter-spacing: -0.03em;
}

.hero h1 {
  margin: 0 0 22px;
  font-size: clamp(52px, 5.5vw, 76px);
  line-height: 0.96;
  max-width: 11ch;
}

.lede {
  margin: 0;
  max-width: 38em;
  font-size: 17px;
  color: #2f2d29;
}

.card, .panel-card, .auth-card, .sample {
  background: var(--card);
  border: 1px solid #ece8de;
  border-radius: 18px;
  box-shadow: 0 1px 0 rgba(23, 23, 23, 0.03);
}

.card { padding: 28px 24px 22px; }

.card h2, .check-card h2 {
  margin: 0 0 18px;
  font-size: clamp(28px, 3vw, 34px);
  line-height: 1.12;
}

fieldset { border: 0; margin: 0 0 16px; padding: 0; }
legend {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 8px;
  padding: 0;
}

.chips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }

.chip {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  border: 1px solid #e6e1d6;
  background: var(--chip);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
  cursor: pointer;
}

.chip:has(input:checked) {
  border-color: var(--ink);
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--ink);
}

.chip input { width: 15px; height: 15px; margin: 0; accent-color: var(--ink); }

.fine, .muted { color: var(--muted); }
.fine { margin: 12px 0 0; font-size: 13px; text-align: center; }

.section { padding: 28px 0 10px; }
.section-title {
  margin: 0 0 22px;
  font-size: clamp(40px, 5vw, 56px);
  line-height: 1.02;
}

.stats { padding: 28px 0 10px; }
.stat-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 760px;
}
.stat-row strong {
  display: block;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(40px, 5vw, 60px);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1;
}
.stat-row span { display: block; margin-top: 8px; color: var(--muted); font-size: 14px; }
.stats-note { max-width: 46em; color: #2f2d29; margin: 22px 0 8px; }

.steps ol, .people, .faq-grid, .terms-grid, .sample-grid, .dash-grid, .intake-layout {
  list-style: none;
  margin: 0;
  padding: 0;
}

.steps ol {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
}
.steps li { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; }
.num {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 32px;
  color: #b7b1a6;
  line-height: 1;
}
.steps strong { display: block; font-size: 18px; margin-bottom: 6px; }
.steps p, .people p, .q p { margin: 0; color: #3a3833; }

.sample { padding: 16px; margin: 28px 0 10px; }
.sample-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.mini {
  border: 1px solid #ece8de;
  border-radius: 12px;
  padding: 14px;
  display: grid;
  gap: 4px;
  background: #fff;
}
.badge {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--paper);
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 600;
}
.mini strong { font-size: 14px; }
.mini span, .meta { color: var(--muted); font-size: 13px; }
.sample-foot { padding: 8px 8px 10px; }
.sample-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 14px;
  margin-top: 18px;
}
.price {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(44px, 5vw, 60px);
  margin: 6px 0 8px;
  letter-spacing: -0.03em;
}
.sample-actions { display: flex; gap: 10px; margin-top: 14px; }
.sample-actions .btn { width: auto; }

.terms-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.terms-grid div { border-top: 1px solid #ddd6c8; padding: 18px 28px 28px 0; }
.terms-grid dt { color: var(--muted); font-size: 14px; margin-bottom: 8px; }
.terms-grid dd { margin: 0; font-weight: 600; max-width: 34ch; }
.term-actions { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; padding: 8px 0 20px; }
.term-actions a:not(.btn) { text-decoration: underline; text-underline-offset: 3px; font-size: 15px; }

.team { background: #111; color: #f6f3ec; padding: 88px 0; margin-top: 20px; }
.team h2 { margin: 0 0 16px; font-size: clamp(40px, 5vw, 60px); max-width: 16ch; line-height: 1; color: #fff; }
.team .lede { color: #c9c4b8; margin-bottom: 32px; }
.people { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; max-width: 820px; }
.avatar {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  background: #2a2a2a;
  display: grid;
  place-items: center;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 32px;
  margin-bottom: 14px;
}
.people h3 { margin: 0 0 4px; font-size: 22px; }
.role { color: #b7b1a6 !important; margin-bottom: 8px !important; }

.faq { padding-top: 72px; }
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: 56px; }
.q { border-top: 1px solid #ddd6c8; padding: 22px 0 26px; }
.q h3 { margin: 0 0 8px; font-size: 18px; letter-spacing: -0.02em; }
.more-links { display: grid; gap: 12px; padding: 8px 0 28px; }
.more-links a { text-decoration: underline; text-underline-offset: 3px; }

.closer { text-align: center; padding: 72px 0 88px; }
.closer h2 { margin: 0 auto 12px; font-size: clamp(40px, 5vw, 58px); max-width: 16ch; line-height: 1.02; }
.closer p { margin: 0 auto 22px; max-width: 36em; color: #3a3833; }

.site-foot { border-top: 1px solid var(--line); padding: 22px 0 36px; color: var(--muted); font-size: 14px; }
.site-foot .frame { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.site-foot nav { display: flex; gap: 18px; }

.field { display: grid; gap: 8px; margin: 0 0 14px; font-size: 14px; color: #3c3933; }
.field input, .field select, .field textarea, .line-input {
  width: 100%;
  border: 1px solid #e4dfd4;
  background: #faf8f4;
  color: var(--ink);
  font: 16px/1.4 "Instrument Sans", "Helvetica Neue", Helvetica, sans-serif;
  border-radius: 12px;
  padding: 14px 16px;
}
.field textarea { min-height: 96px; resize: vertical; }
.field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #171717 50%), linear-gradient(135deg, #171717 50%, transparent 50%);
  background-position: calc(100% - 18px) 22px, calc(100% - 12px) 22px;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--ink);
  background: #fff;
}
.label-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }

.check-page { padding: 42px 0 72px; }
.check-page h1 { margin: 0 0 18px; font-size: clamp(48px, 6vw, 68px); line-height: 0.98; }
.stepper { display: flex; gap: 22px; list-style: none; margin: 0 0 18px; padding: 0; }
.stepper li { display: flex; align-items: center; gap: 8px; color: #8a857c; background: none; padding: 0; font: 500 16px/1 "Instrument Sans", sans-serif; }
.stepper .dot {
  width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center;
  background: #fff; border: 1px solid #ddd6c8; font-size: 13px;
}
.stepper li.on { color: var(--ink); }
.stepper li.on .label { text-decoration: underline; text-underline-offset: 4px; }
.stepper li.on .dot, .stepper li.done .dot { background: var(--ink); color: #fff; border-color: var(--ink); }
.check-card { width: min(720px, 100%); padding: 26px 26px 22px; }
.bar-row { display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: 14px; margin-bottom: 18px; }
.bar { flex: 1; height: 3px; background: #e6e1d6; border-radius: 99px; overflow: hidden; }
.bar span { display: block; height: 100%; background: var(--ink); width: 33%; }
.actions { display: flex; align-items: center; margin-top: 8px; }
.actions .btn { width: auto; min-width: 132px; margin-left: auto; }
.alt-links { text-align: center; color: var(--muted); margin-top: 22px; }
.alt-links a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.see-all { display: inline-block; margin: 4px 0 12px; text-decoration: underline; text-underline-offset: 3px; font-size: 15px; }
.error { color: #8a2a1a; font-size: 14px; margin: 0 0 10px; }
.group-title { margin: 18px 0 8px; font-size: 18px; }

.auth-wrap { display: grid; place-items: start center; padding: 56px 20px 80px; }
.auth-card { width: min(460px, 100%); padding: 28px 26px 24px; }
.auth-card h1 { margin: 0 0 8px; font-size: 42px; }
.auth-card .lede { margin-bottom: 18px; }

.app { display: flex; min-height: 100vh; background: var(--paper); }
.side {
  width: 232px;
  flex: none;
  background: #141414;
  color: #f3f0e8;
  padding: 18px 12px 28px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.side-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 600;
  letter-spacing: -0.03em;
  padding: 8px 10px 18px;
}
.side .mark rect { fill: #f4f1ea; }
.side .mark path { stroke: #171717; }
.side a.nav {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  color: #d8d3c9;
  font-size: 14.5px;
}
.side a.nav.on { background: #2c2c2c; color: #fff; }
.side .group {
  margin: 18px 12px 6px;
  font-size: 12px;
  color: #8d887e;
}
.app-main { flex: 1; padding: 22px 36px 72px; min-width: 0; }
.app-top { display: flex; justify-content: flex-end; align-items: center; gap: 16px; min-height: 48px; }
.userchip { display: flex; align-items: center; gap: 10px; text-align: right; }
.userchip strong, .userchip span { display: block; }
.userchip span { color: var(--muted); font-size: 13px; }
.initials {
  width: 36px; height: 36px; border-radius: 50%;
  background: #2a2a2a; color: #fff;
  display: grid; place-items: center; font-size: 12px; font-weight: 600;
}
.app-main h1 { margin: 18px 0 8px; font-size: clamp(40px, 5vw, 56px); line-height: 1; }
.dash-grid, .intake-layout { display: grid; grid-template-columns: 1.45fr 0.9fr; gap: 16px; align-items: start; }
.panel-card { padding: 22px; }
.panel-card h2 { margin: 8px 0; font-size: 22px; font-family: "Instrument Sans", sans-serif; font-weight: 600; letter-spacing: -0.02em; }
.kicker { margin: 0; color: var(--muted); font-size: 13px; }
.panel-card p { margin: 0 0 14px; color: #34322d; }
.panel-card .btn { width: auto; }

.tabs { display: flex; gap: 22px; border-bottom: 1px solid var(--line); margin: 28px 0 14px; overflow: auto; }
.tabs button {
  background: transparent;
  color: #6f6b63;
  width: auto;
  border-radius: 0;
  padding: 12px 0;
  font-weight: 500;
}
.tabs button.on { color: var(--ink); box-shadow: inset 0 -2px 0 #111; }
.checks { list-style: none; margin: 8px 0 0; padding: 0; }
.checks li {
  display: grid;
  grid-template-columns: 22px 1fr auto;
  gap: 12px;
  align-items: start;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}
.tick {
  width: 18px; height: 18px; border-radius: 50%;
  border: 1.5px solid #c9c3b6; margin-top: 2px;
}
.checks li.done .tick { background: var(--ink); border-color: var(--ink); box-shadow: inset 0 0 0 3px #fff; }
.checks strong { display: block; }
.checks p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.checks em { font-style: normal; color: var(--muted); font-size: 14px; }

.progress-label { display: flex; justify-content: space-between; color: var(--muted); font-size: 14px; }
.sys-jump { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 28px; }
.sys-jump a, .pill {
  border: 1px solid #e4dfd4;
  background: #f7f4ee;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 14px;
}
.guide h2 { margin: 28px 0 8px; font-size: 36px; }
.guide article { border-top: 1px solid var(--line); padding: 16px 0; }
.guide h3 { margin: 0 0 4px; font-size: 18px; }
.guide article p { margin: 0; color: #3f3c36; }
.guide > p { max-width: 68ch; }

.acc details { border-bottom: 1px solid var(--line); }
.acc summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  font-weight: 600;
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary:after { content: "›"; color: #8a857c; font-weight: 400; }
.acc details[open] summary:after { content: "⌄"; }
.acc details p { margin: 0 0 16px; max-width: 70ch; }

.list { display: grid; gap: 10px; margin-top: 16px; }
.list article {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  background: #fff;
}
.owner {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin: 10px 0 18px;
}

[hidden] { display: none !important; }

@media (max-width: 900px) {
  .frame { width: min(var(--max), calc(100% - 32px)); }
  .hero, .steps ol, .people, .faq-grid, .terms-grid, .sample-grid, .dash-grid, .intake-layout, .stat-row {
    grid-template-columns: 1fr;
  }
  .hero { padding-top: 32px; gap: 28px; }
  .hero h1 { max-width: none; }
  .nav-links { display: none; }
  .app { display: block; }
  .side {
    width: auto;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    padding: 10px;
  }
  .side-brand { padding: 8px; }
  .side .group { display: none; }
  .app-main { padding: 16px 16px 48px; }
  .chips { grid-template-columns: 1fr 1fr; }
  .check-card { padding: 18px 14px; }
}
