:root {
  --paper: #f3efe6;
  --paper-deep: #e7e0d2;
  --card: #fffdf8;
  --ink: #1a2332;
  --ink-soft: #4a5568;
  --line: #ddd4c4;
  --teal: #0c6b66;
  --teal-deep: #084743;
  --amber: #c9842a;
  --danger: #8c3a32;
  --ok: #1f6b45;
  --shadow: 0 18px 40px rgba(26, 35, 50, 0.08);
  --serif: "Fraunces", "Iowan Old Style", Palatino, Georgia, serif;
  --sans: "Outfit", "Avenir Next", "Segoe UI", sans-serif;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.45), transparent 220px),
    repeating-linear-gradient(0deg, transparent, transparent 27px, rgba(26, 35, 50, 0.025) 28px),
    var(--paper);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--teal-deep); }
a:hover { color: var(--teal); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid #e7b15a; outline-offset: 2px; }

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--ink);
  color: white;
  padding: 8px 12px;
  z-index: 20;
}
.skip:focus { top: 12px; }

.wrap { width: min(var(--max), calc(100% - 32px)); margin: 0 auto; }
.topbar, .site-footer { background: transparent; }
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0 8px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
}
.brand svg { width: 34px; height: 34px; }
.brand small {
  display: block;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 11px;
  color: var(--teal-deep);
}
.nav { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.nav a { text-decoration: none; font-size: 15px; color: var(--ink); }
.nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--teal); }

.banner {
  background: var(--ink);
  color: #f6f1e7;
  font-size: 14px;
  padding: 10px 16px;
  text-align: center;
}
.banner a { color: #f0d7a4; }
.banner.coach { background: #084743; }

.hero { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 36px; align-items: start; padding: 28px 0 48px; }
.kicker {
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 600;
  color: var(--teal-deep);
  margin: 0 0 10px;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 560; letter-spacing: -0.03em; line-height: 1.08; }
h1 { font-size: clamp(40px, 5vw, 64px); margin: 0 0 14px; }
h2 { font-size: clamp(28px, 3vw, 40px); margin: 0 0 10px; }
h3 { font-size: 24px; margin: 0 0 8px; }
.lede { font-size: 19px; color: var(--ink-soft); margin: 0 0 18px; }
.fine { color: var(--ink-soft); font-size: 14px; }

.card, .quiz-card, .panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}
.quiz-card, .panel { padding: 22px; }
.progress {
  height: 6px;
  background: var(--paper-deep);
  border-radius: 99px;
  overflow: hidden;
  margin: 8px 0 18px;
}
.progress span { display: block; height: 100%; background: var(--teal); width: 0; }

.choices { display: grid; gap: 10px; }
.choice {
  text-align: left;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
}
.choice[aria-pressed="true"] {
  border-color: var(--teal);
  background: #f3faf8;
  box-shadow: inset 3px 0 0 var(--teal);
}
select, input[type="text"], input[type="email"], input[type="date"], input[type="tel"], textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  padding: 12px 14px;
}
textarea { min-height: 96px; resize: vertical; }
label.field { display: grid; gap: 6px; font-size: 14px; font-weight: 600; margin-bottom: 12px; }
.row-actions, .quiz-nav, .btn-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 16px; }

.btn, button.btn {
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--ink);
  color: #f6f1e7;
  font-weight: 600;
}
.btn.secondary { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.btn.ghost { background: transparent; color: var(--ink-soft); border: 0; padding-inline: 8px; }
.btn.amber { background: #e7b15a; color: var(--ink); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.price { font-family: var(--serif); font-size: 42px; margin: 0; }
.price span { font-family: var(--sans); font-size: 16px; color: var(--ink-soft); }

.grid-3, .grid-2 { display: grid; gap: 16px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: 1fr 1fr; }
.card { padding: 18px; }
.card p:last-child { margin-bottom: 0; }
.tag {
  display: inline-block;
  border-radius: 99px;
  padding: 3px 9px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: #efe7d8;
}
.tag.ok { background: #e5f3ea; color: var(--ok); }
.tag.warn { background: #f8e7e4; color: var(--danger); }
.tag.teal { background: #e5f3f1; color: var(--teal-deep); }

.callout {
  border-left: 4px solid var(--amber);
  background: #fff8ec;
  padding: 12px 14px;
  border-radius: 0 12px 12px 0;
  margin: 14px 0;
}
.callout.danger { border-left-color: var(--danger); background: #fbf1ef; }
.callout.ok { border-left-color: var(--ok); background: #f1f8f3; }

.site-footer { padding: 28px 0 48px; color: var(--ink-soft); font-size: 14px; }
.site-footer .wrap { border-top: 1px solid var(--line); padding-top: 18px; }

.member-shell { display: grid; grid-template-columns: 230px 1fr; gap: 22px; padding: 18px 0 48px; }
.side {
  position: sticky;
  top: 12px;
  align-self: start;
  display: grid;
  gap: 6px;
}
.side a, .side button {
  text-align: left;
  text-decoration: none;
  background: transparent;
  border: 0;
  border-radius: 10px;
  padding: 9px 10px;
  color: var(--ink);
}
.side a[aria-current="page"], .side button[aria-current="page"] { background: var(--ink); color: #f6f1e7; }
.locked { opacity: 0.72; }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.checklist li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 8px;
  align-items: start;
}
.steps { margin: 0; padding-left: 18px; }
.steps li { margin: 8px 0; }
.meta { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0 14px; }

table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
.draft-tools { margin-top: 18px; font-size: 14px; color: var(--ink-soft); }
.draft-tools summary { cursor: pointer; }

@media (max-width: 860px) {
  .hero, .grid-3, .grid-2, .member-shell { grid-template-columns: 1fr; }
  .side { position: static; grid-auto-flow: column; overflow: auto; }
  h1 { font-size: 38px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
