:root {
  --charcoal: #17191D;
  --charcoal-2: #1F2227;
  --charcoal-3: #2A2E35;
  --ivory: #F0EAE0;
  --ivory-2: #E6DED1;
  --ink-soft: #4A4D53;          /* on ivory: 8.1:1 */
  --ivory-soft: #C9C2B6;        /* on charcoal: 10.4:1 */
  --ivory-mute: #A39D93;        /* on charcoal: 6.6:1 */
  --line-dark: rgba(240, 234, 224, .16);
  --line-light: rgba(23, 25, 29, .14);
  --danger-on-dark: #F2A38F;    /* on charcoal-2: 7.9:1 */
  --serif: "Inter", -apple-system, "Helvetica Neue", Arial, sans-serif; /* headings: bold sans */
  --sans: "Inter", -apple-system, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--charcoal);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { margin: 0; font-weight: 600; }
p { margin: 0; }
button, input { font: inherit; }
.nowrap { white-space: nowrap; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
@media (max-width: 359px) { .wrap { padding: 0 16px; } }

:focus-visible { outline: 2px solid var(--ivory); outline-offset: 3px; }
.sec :focus-visible, .foot :focus-visible { outline-color: var(--charcoal); }

/* ---------- Masthead ---------- */
.masthead { background: var(--charcoal); color: var(--ivory); }
.masthead .wrap { height: 56px; display: flex; align-items: center; }
.wordmark { font-family: var(--sans); font-weight: 700; letter-spacing: .14em; font-size: 16px; font-weight: 800; }
.wordmark-sm { font-size: 12px; }

/* ---------- Hero ---------- */
.hero { background: var(--charcoal); color: var(--ivory); padding: 8px 0 40px; }
.hero-grid { display: grid; gap: 22px; }
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(30px, 8.4vw, 64px); font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.035em;

  text-wrap: balance;
}
.hero-sub { margin-top: 12px; color: var(--ivory-soft); font-size: 16.5px; line-height: 1.5; max-width: 34em; }

/* ---------- Quiz panel ---------- */
.panel {
  background: var(--charcoal-2);
  border: 1px solid var(--line-dark);
  border-radius: 14px;
  padding: 18px 16px 20px;
  scroll-margin-top: 16px;
}
.panel-hook {
  font-size: 15.5px; line-height: 1.4; color: var(--ivory-soft);
  padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px solid var(--line-dark);
}
.panel-hook strong { color: var(--ivory); font-weight: 700; }
.panel.is-done .panel-hook { display: none; }
.panel-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 0; }
.panel-top.has-controls { min-height: 32px; margin-bottom: 12px; }
.back {
  background: none; border: 0; color: var(--ivory-soft); padding: 6px 8px 6px 0; cursor: pointer;
  font-size: 15px; font-weight: 500; display: inline-flex; gap: 6px; align-items: center; min-height: 32px;
}
.back:hover { color: var(--ivory); }
.progress { display: flex; align-items: center; gap: 10px; margin-left: auto; color: var(--ivory-mute); font-size: 13px; font-weight: 500; letter-spacing: .02em; }
.progress-track { width: 64px; height: 2px; background: var(--line-dark); position: relative; overflow: hidden; }
.progress-fill { position: absolute; inset: 0 auto 0 0; width: 33%; background: var(--ivory); transition: width .35s var(--ease); }

.steps { position: relative; transition: height .3s var(--ease); }
.steps.is-animating { overflow: hidden; }
.step { border: 0; margin: 0; padding: 0; min-width: 0; }
.step[hidden] { display: none; }
.step.is-entering { animation: stepIn .32s var(--ease) both; }
@keyframes stepIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.q {
  display: block; padding: 0; float: none; width: 100%;
  font-family: var(--sans); font-size: 19px; line-height: 1.32; font-weight: 600; color: var(--ivory);
  margin-bottom: 14px; letter-spacing: -.005em;
}
.q:focus { outline: none; }
.q:focus-visible { outline: 2px solid var(--ivory); outline-offset: 4px; }
.q-count { display: block; font-size: 12.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ivory-mute); margin-bottom: 6px; }

.opts { display: grid; gap: 8px; }
.opt {
  width: 100%; min-height: 54px; text-align: left; cursor: pointer;
  background: transparent; color: var(--ivory);
  border: 1px solid rgba(240, 234, 224, .44); border-radius: 10px;
  padding: 13px 44px 13px 16px; font-size: 16.5px; font-weight: 500; line-height: 1.3;
  position: relative;
  transition: background-color .15s, border-color .15s, color .15s;
  -webkit-tap-highlight-color: transparent;
}
.opt::after {
  content: ""; position: absolute; right: 16px; top: 50%; width: 16px; height: 16px; margin-top: -8px;
  border: 1.5px solid rgba(240, 234, 224, .5); border-radius: 50%;
  transition: background-color .15s, border-color .15s;
}
.opt:hover { border-color: var(--ivory); background: rgba(240, 234, 224, .06); }
.opt:focus-visible { outline: 2px solid var(--ivory); outline-offset: 2px; }
.opt[aria-pressed="true"] { background: var(--ivory); color: var(--charcoal); border-color: var(--ivory); }
.opt[aria-pressed="true"]::after {
  border-color: var(--charcoal); background: var(--charcoal)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.3 2.3 4.7-4.9' fill='none' stroke='%23F0EAE0' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat;
}
.opt:focus-visible[aria-pressed="true"] { outline-color: var(--ivory); }

/* Form */
.form-intro { color: var(--ivory-soft); font-size: 16px; margin: -4px 0 16px; }
.field { margin-bottom: 12px; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; color: var(--ivory); }
.field input {
  width: 100%; min-height: 50px; padding: 12px 14px; font-size: 17px;
  background: var(--charcoal); color: var(--ivory);
  border: 1px solid rgba(240, 234, 224, .44); border-radius: 10px;
}
.field input:focus { outline: none; border-color: var(--ivory); box-shadow: 0 0 0 1px var(--ivory); }
.field input[aria-invalid="true"] { border-color: var(--danger-on-dark); box-shadow: 0 0 0 1px var(--danger-on-dark); }
.err { color: var(--danger-on-dark); font-size: 14px; min-height: 0; margin-top: 4px; }
.err:empty { display: none; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-error {
  background: rgba(242, 163, 143, .12); border: 1px solid var(--danger-on-dark); color: var(--ivory);
  border-radius: 10px; padding: 10px 12px; font-size: 15px; margin: 4px 0 12px;
}
.submit {
  width: 100%; min-height: 54px; margin-top: 4px; cursor: pointer;
  background: var(--ivory); color: var(--charcoal); border: 0; border-radius: 10px;
  font-size: 17px; font-weight: 700; letter-spacing: .01em;
  transition: background-color .15s, opacity .15s;
}
.submit:hover { background: #fff; }
.submit:focus-visible { outline: 2px solid var(--ivory); outline-offset: 3px; }
.submit[disabled] { opacity: .6; cursor: progress; }
.fine { color: var(--ivory-mute); font-size: 13.5px; line-height: 1.45; margin-top: 12px; }

/* Done */
.done { padding: 6px 0 2px; }
.done-mark {
  width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--ivory);
  display: flex; align-items: center; justify-content: center; font-size: 18px; margin-bottom: 14px;
}
.done .q { font-size: 22px; line-height: 1.3; font-weight: 700; }
.calendly-link {
  display: inline-block; margin-top: 4px; color: var(--ivory-soft); font-size: 15px;
  text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(240,234,224,.4);
  padding: 6px 0;
}
.calendly-link:hover { color: var(--ivory); }

/* ---------- Sections ---------- */
.sec { padding: 56px 0; }
.sec-line { border-top: 1px solid var(--line-light); }
.sec-title {
  font-family: var(--serif); font-weight: 800; letter-spacing: -.03em;
  font-size: clamp(28px, 6.6vw, 46px); line-height: 1.1; max-width: 15em; text-wrap: balance;

}
.sec-lede { margin-top: 14px; color: var(--ink-soft); max-width: 30em; }
.cols { display: grid; gap: 32px; margin-top: 40px; }
.col { border-top: 1px solid var(--charcoal); padding-top: 16px; }
.col-num { font-size: 13px; font-weight: 600; letter-spacing: .12em; color: var(--ink-soft); }
.col h3 { font-family: var(--serif); font-size: 22px; letter-spacing: -.02em; margin: 6px 0 8px; font-weight: 700; }
.col p:last-child { color: var(--ink-soft); }

.split { display: grid; gap: 28px; }
.agenda { list-style: none; counter-reset: a; margin: 0; padding: 0; }
.agenda li { counter-increment: a; position: relative; padding: 18px 0 18px 44px; border-top: 1px solid var(--line-light); color: var(--ink-soft); }
.agenda li:last-child { border-bottom: 1px solid var(--line-light); }
.agenda li::before { content: counter(a, decimal-leading-zero); position: absolute; left: 0; top: 19px; font-size: 13px; font-weight: 600; letter-spacing: .1em; color: var(--charcoal); }
.agenda strong { color: var(--charcoal); font-weight: 600; }

.faq { border-top: 1px solid var(--line-light); }
.faq details { border-bottom: 1px solid var(--line-light); }
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 40px 18px 0; position: relative;
  font-weight: 600; font-size: 17.5px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 13px; font-size: 24px; font-weight: 400; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 20px; color: var(--ink-soft); max-width: 38em; }

/* ---------- Close ---------- */
.close { background: var(--charcoal); color: var(--ivory); padding: 56px 0; }
.close-in { display: grid; gap: 24px; justify-items: start; }
.close h2 { font-family: var(--serif); font-weight: 800; font-size: clamp(30px, 7.6vw, 52px); line-height: 1.1; letter-spacing: -.03em; max-width: 12em; text-wrap: balance; }
.cta {
  display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 28px;
  background: var(--ivory); color: var(--charcoal); text-decoration: none; font-weight: 700; border-radius: 10px;
  width: 100%;
}
.cta:hover { background: #fff; }

.foot { background: var(--charcoal); color: var(--ivory-mute); border-top: 1px solid var(--line-dark); font-size: 13px; }
.foot-in { display: flex; justify-content: space-between; align-items: center; height: 64px; }
.foot .wordmark { color: var(--ivory); }

/* ---------- Desktop ---------- */
@media (min-width: 900px) {
  .masthead .wrap { height: 72px; }
  .hero { padding: 40px 0 96px; }
  .hero-grid { grid-template-columns: minmax(0, 1.1fr) minmax(380px, .9fr); gap: 72px; align-items: center; }
  .hero h1 { font-size: clamp(44px, 3.9vw, 58px); }
  .hero-sub { font-size: 19px; margin-top: 22px; }
  .panel { padding: 28px 28px 30px; }
  .q { font-size: 21px; }
  .sec { padding: 88px 0; }
  .cols { grid-template-columns: repeat(3, 1fr); gap: 48px; margin-top: 56px; }
  .split { grid-template-columns: 5fr 7fr; gap: 72px; align-items: start; }
  .close { padding: 88px 0; }
  .close-in { grid-template-columns: 1fr auto; align-items: end; }
  .cta { width: auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Privacy links */
.fine a { color: var(--ivory-soft); text-decoration: underline; text-underline-offset: 2px; }
.foot-links { display: inline-flex; gap: 18px; align-items: center; }
.foot-links a { color: var(--ivory-soft); text-decoration: underline; text-underline-offset: 3px; }
.foot-links a:hover, .fine a:hover { color: var(--ivory); }
.foot :focus-visible { outline-color: var(--ivory); }
