/* Credential Case founding-list page. Editorial, paper-and-ink. No frameworks. */

/* Credential Case founding list.
   Layout: asymmetric hero (copy left, photo bleeding right) with a manila "folder tab" product card; field-kit palette.
   Fog (hospital wall / scrub fabric) ground, navy-scrub ink, olive for state, manila only where paper would be. */

@font-face {
  font-family: "Archivo";
  src: url("/fonts/archivo-var.woff2") format("woff2");
  font-weight: 400 800; font-stretch: 62% 125%; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Plex Sans";
  src: url("/fonts/plex-sans-var.woff2") format("woff2");
  font-weight: 300 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Plex Mono";
  src: url("/fonts/plex-mono-500.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}

:root {
  --paper: #FBFBF7;      /* fog */
  --paper-2: #F0F1EA;
  --card: #FFFFFF;
  --ink: #0F1B27;        /* navy scrub */
  --ink-2: #2C3A46;
  --ink-3: #55616B;
  --line: #DDE0D7;
  --olive: #3F5B24;      /* field olive: state + labels */
  --manila: #F3E0A8;     /* folder stock */
  --manila-2: #DFC176;
  --brick: #0F1B27;      /* legacy alias: primary action = ink */
  --brick-ink: #2A3A4A;
  --sage: #3F5B24;
  --ok: #3F5B24;

  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --serif: var(--display);
  --sans: "Plex Sans", "Helvetica Neue", Arial, sans-serif;
  --mono: "Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --gutter: clamp(20px, 4.2vw, 64px);
  --max: 1320px;
  --r: 2px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  font-feature-settings: "ss02";
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}


img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--olive); }
:focus-visible { outline: 2px solid var(--olive); outline-offset: 3px; }

h1, h2, h3 { font-family: var(--display); font-weight: 700; font-stretch: 108%; letter-spacing: -.02em; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(30px, 3.6vw, 50px); line-height: 1.02; }
h3 { font-size: 21px; line-height: 1.2; font-weight: 650; font-stretch: 100%; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
.mono { font-family: var(--mono); font-weight: 500; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.eyebrow { color: var(--olive) !important; margin-bottom: 18px !important; font-size: 12px !important; }

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

/* ---------- top bar ---------- */
.bar {
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--max); margin: 0 auto; padding: 22px var(--gutter);
}
.mark { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font: 750 19px/1 var(--display); font-stretch: 118%; letter-spacing: -.01em; text-transform: uppercase; }
.mark__glyph { width: 30px; height: 30px; border-radius: 7px; }
.mark { gap: 14px; }
.bar__short { display: none; }
.bar__cta { white-space: nowrap; }
.mark__seal { width: 64px; height: 64px; filter: drop-shadow(0 4px 10px rgba(20,32,43,.18)); }
.bar__cta { font-size: 14px; font-weight: 500; text-decoration: none; border-bottom: 1px solid var(--ink); padding-bottom: 2px; }
.bar__cta:hover { border-color: var(--brick); }

/* ---------- hero ---------- */
.hero {
  display: grid; grid-template-columns: minmax(0, 11fr) minmax(0, 13fr); gap: clamp(28px, 4vw, 64px);
  max-width: var(--max); margin: 0 auto; padding: clamp(16px, 4vw, 56px) 0 clamp(64px, 9vw, 120px) var(--gutter);
  align-items: start;
}
.hero__copy { padding-top: clamp(8px, 2.4vw, 32px); max-width: 560px; }
.kicker { font-size: 15px; font-weight: 500; color: var(--olive); margin-bottom: 20px; }
.hero__title {
  font-size: clamp(40px, 4.5vw, 66px); line-height: .98; letter-spacing: -.03em;
  font-weight: 760; font-stretch: 106%; margin-bottom: 28px;
}
.hero__lede { font-size: clamp(17px, 1.35vw, 19px); color: var(--ink-2); max-width: 32em; margin-bottom: 34px; }

.hero__media { position: relative; margin: 0; align-self: stretch; min-height: 480px; max-height: 760px; }
.hero__media picture, .hero__media img { display: block; width: 100%; height: 100%; }
.hero__media img { object-fit: cover; object-position: 62% 50%; }
.hero__media .hero__seal {
  position: absolute; z-index: 2; top: clamp(-36px, -2.4vw, -18px); right: clamp(20px, 3vw, 44px);
  width: clamp(150px, 15vw, 224px); height: auto; object-fit: contain;
  filter: drop-shadow(0 18px 30px rgba(20,32,43,.38)) drop-shadow(0 3px 6px rgba(20,32,43,.25));
}

/* product peek */
.peek {
  position: absolute; left: clamp(-56px, -3vw, -20px); bottom: clamp(-48px, -3vw, -24px);
  width: min(340px, 74%); background: var(--card); border: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(28,35,51,.04), 0 24px 48px -22px rgba(28,35,51,.35);
  padding: 16px 18px 12px;
}
.peek::before {
  content: "RN · ACLS · BLS"; position: absolute; left: -1px; top: -27px; height: 27px; padding: 7px 14px 0 12px;
  font: 500 10.5px/1 var(--mono); letter-spacing: .08em; color: var(--ink-2);
  background: var(--manila); border: 1px solid var(--manila-2); border-bottom: 0; border-radius: 3px 10px 0 0;
}
.peek__head { display: flex; justify-content: space-between; align-items: baseline; color: var(--ink-3); padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.peek__state { color: var(--olive); }
.peek__list { list-style: none; margin: 0; padding: 0; }
.peek__list li { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px dashed var(--line); }
.peek__list li:last-child { border-bottom: 0; }
.peek__name { flex: 1; font-size: 14.5px; font-weight: 500; line-height: 1.25; }
.peek__name small { display: block; font-weight: 400; font-size: 12.5px; color: var(--ink-3); }
.peek__due { font-family: var(--mono); font-size: 12px; color: var(--ink-3); white-space: nowrap; }
.peek__due b { font-family: var(--display); font-size: 21px; font-weight: 700; font-stretch: 100%; color: var(--ink); letter-spacing: -.01em; margin-right: 2px; font-variant-numeric: tabular-nums; }
.peek__due.is-soon b { color: #9A5B12; }
.peek__bar { width: 64px; height: 4px; background: var(--paper-2); position: relative; }
.peek__bar i { position: absolute; inset: 0 auto 0 0; width: calc(var(--p) * 100%); background: var(--sage); }
.peek__foot { margin: 8px 0 0; color: var(--ink-3); font-size: 10px; text-align: right; }

/* ---------- forms ---------- */
.signup { display: grid; gap: 12px; }
.signup__row { display: grid; grid-template-columns: 1.5fr 1fr; gap: 10px; }
.field { display: grid; gap: 6px; }
.field__label { font-size: 13px; font-weight: 500; color: var(--ink-2); }
.field__label i, .sms summary i { font-style: normal; font-weight: 400; color: var(--ink-3); }
.field input {
  font: inherit; font-size: 16px; color: var(--ink); width: 100%;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  padding: 13px 14px; transition: border-color .15s, box-shadow .15s;
}
.field input::placeholder { color: #9EA1A8; }
.field input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(28,35,51,.08); }
.field input[aria-invalid="true"] { border-color: #A2341F; }

.sms summary { cursor: pointer; font-size: 14px; color: var(--ink-2); list-style: none; display: inline-flex; gap: 8px; align-items: center; padding: 2px 0; }
.sms summary::-webkit-details-marker { display: none; }
.sms summary::before { content: "+"; font: 500 15px/1 var(--mono); color: var(--olive); width: 12px; }
.sms[open] summary::before { content: "–"; }
.sms__body { display: grid; gap: 12px; padding-top: 12px; }

.consent { display: grid; grid-template-columns: 20px 1fr; gap: 10px; font-size: 12.5px; line-height: 1.5; color: var(--ink-3); cursor: pointer; }
.consent input { appearance: none; width: 18px; height: 18px; margin: 1px 0 0; border: 1px solid var(--ink-3); border-radius: 2px; background: var(--card); display: grid; place-content: center; cursor: pointer; }
.consent input::after { content: ""; width: 9px; height: 5px; border: 2px solid var(--paper); border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); opacity: 0; }
.consent input:checked { background: var(--ink); border-color: var(--ink); }
.consent input:checked::after { opacity: 1; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: 600 16px/1 var(--sans); color: #F8F9F6; background: var(--ink);
  border: 0; border-radius: var(--r); padding: 17px 24px; cursor: pointer;
  box-shadow: inset 0 -2px 0 rgba(0,0,0,.14);
  transition: background .15s, transform .15s;
  justify-self: start;
}
.btn svg { width: 18px; height: 18px; transition: transform .2s; }
.btn:hover { background: var(--olive); color: #F8F9F6; }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn--block { justify-self: stretch; }
.signup__fine { font-size: 13px; color: var(--ink-3); margin: 2px 0 0; }
.signup__error { font-size: 14px; color: #A2341F; margin: 0; }
.turnstile:empty { display: none; }

/* ---------- problem ---------- */
.problem {
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 96px);
  max-width: var(--max); margin: 0 auto; padding: clamp(56px, 8vw, 112px) var(--gutter);
  border-top: 1px solid var(--line); align-items: center;
}
.problem__media { margin: 0; }
.problem__media img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.problem__copy { max-width: 600px; }
.problem__copy h2 { margin-bottom: 26px; }
.problem__copy p { color: var(--ink-2); }
.slip {
  display: grid; grid-template-columns: auto 1fr; column-gap: 22px; row-gap: 4px; align-items: baseline;
  margin-top: 30px; padding: 18px 22px; background: var(--manila); max-width: 520px;
  border-left: 1px dashed rgba(20,32,43,.35);
}
.slip__label { grid-column: 1 / -1; color: var(--ink-2); font-size: 11px; }
.slip__amt { font: 760 34px/1 var(--display); font-stretch: 108%; letter-spacing: -.03em; white-space: nowrap; }
.slip__note { font-size: 14px; color: var(--ink-2); line-height: 1.45; }
sup a { text-decoration: none; color: var(--olive); font-size: 10px; margin-left: 2px; }

/* ---------- how ---------- */
.how {
  display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); column-gap: clamp(32px, 6vw, 96px);
  max-width: var(--max); margin: 0 auto; padding: clamp(56px, 8vw, 112px) var(--gutter);
  background: var(--ink); color: #FFFDF6; position: relative;
}
.how::before { content: ""; position: absolute; inset: 0 calc(50% - 50vw); background: var(--ink); z-index: -1; }
.how .eyebrow { color: var(--manila) !important; }
.how__intro { grid-column: 1 / -1; max-width: 760px; margin-bottom: clamp(36px, 5vw, 64px); }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.steps li { display: grid; grid-template-columns: 56px 1fr; gap: 8px; padding: 26px 0; border-top: 1px solid rgba(237,231,219,.18); }
.steps li:last-child { border-bottom: 1px solid rgba(237,231,219,.18); }
.steps__n { font: 750 34px/1 var(--display); font-stretch: 112%; color: var(--manila); }
.steps h3 { margin-bottom: 8px; }
.steps p { color: #D5D6D0; margin: 0; max-width: 34em; }

.sheet {
  align-self: start; background: var(--manila); color: var(--ink); padding: 22px 24px 18px;
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.6);
  border-radius: 2px;
}
.sheet__head { display: grid; gap: 4px; padding-bottom: 14px; border-bottom: 1px solid rgba(20,32,43,.25); color: var(--ink-2); }
.sheet__route { font: 700 19px/1.25 var(--display); color: var(--ink); text-transform: none; letter-spacing: -.01em; }
.checks { list-style: none; margin: 0; padding: 0; }
.checks li { display: grid; grid-template-columns: 22px 1fr auto; gap: 10px; align-items: start; padding: 12px 0; border-bottom: 1px dashed rgba(20,32,43,.22); font-size: 15px; line-height: 1.4; }
.checks em { font-style: normal; color: var(--ink-2); font-size: 10.5px; padding-top: 3px; }
.box { width: 16px; height: 16px; border: 1.5px solid var(--ink-2); border-radius: 2px; margin-top: 2px; position: relative; }
.checks .is-done { color: var(--ink-2); text-decoration: line-through; text-decoration-color: rgba(20,32,43,.35); }
.checks .is-done .box { background: var(--ok); border-color: var(--ok); }
.checks .is-done .box::after { content: ""; position: absolute; left: 4px; top: 1px; width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.checks .is-done em { color: var(--ok); }
.sheet__note { margin: 12px 0 0; color: var(--ink-2); font-size: 10px; }

/* ---------- inside ---------- */
.inside {
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px);
  max-width: var(--max); margin: 0 auto; padding: clamp(64px, 9vw, 128px) var(--gutter);
}
.inside__head h2 { max-width: 9ch; }
.spec { margin: 0; border-top: 1px solid var(--ink); }
.spec div { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.spec dt { font: 650 19px/1.3 var(--display); letter-spacing: -.01em; }
.spec dd { margin: 0; color: var(--ink-2); }
.spec .is-next dt, .spec .is-next dd { color: var(--ink-3); }
.tag { display: inline-block; margin-left: 8px; padding: 4px 7px 3px; background: var(--manila); font-size: 10px; color: var(--ink); vertical-align: 3px; }

/* ---------- who ---------- */
.who__band { margin: 0; }
.who__band img { width: 100%; height: clamp(260px, 34vw, 480px); object-fit: cover; object-position: 60% 50%; }
.who__copy {
  max-width: var(--max); margin: 0 auto; padding: clamp(28px, 4vw, 48px) var(--gutter) 0;
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: baseline;
}
.who__copy p { color: var(--ink-2); font-size: 19px; max-width: 34em; margin: 0; }

/* ---------- privacy ---------- */
.privacy {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(32px, 6vw, 96px);
  max-width: var(--max); margin: 0 auto; padding: clamp(64px, 9vw, 128px) var(--gutter); align-items: center;
}
.privacy__copy { max-width: 560px; }
.privacy__copy h2 { margin-bottom: 22px; }
.privacy__copy p { color: var(--ink-2); font-size: 19px; }
.privacy__small { font-size: 15px !important; color: var(--ink-3) !important; border-left: 3px solid var(--manila-2); padding-left: 14px; }
.privacy__media { margin: 0; }
.privacy__media img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }

/* ---------- join ---------- */
.join {
  display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 96px);
  max-width: var(--max); margin: 0 auto; padding: clamp(56px, 8vw, 104px) var(--gutter);
  border-top: 1px solid var(--line); align-items: start;
}
.join h2 { font-size: clamp(42px, 5.4vw, 76px); line-height: .96; font-weight: 780; font-stretch: 112%; letter-spacing: -.035em; margin-bottom: 18px; }
.join__copy p { color: var(--ink-2); font-size: 19px; max-width: 26em; }
.signup--panel { background: var(--card); border: 1px solid var(--line); padding: clamp(20px, 3vw, 32px); }

/* ---------- faq + sources ---------- */
.faq { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter) clamp(56px, 8vw, 96px); display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); }
.faq__title { font-size: clamp(28px, 3vw, 38px); }
.faq__list { border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 36px 20px 0; position: relative; font: 600 18px/1.35 var(--display); letter-spacing: -.005em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 18px; font: 400 22px/1 var(--mono); color: var(--olive); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--ink-2); padding-right: 36px; }

.sources { max-width: var(--max); margin: 0 auto; padding: 24px var(--gutter); border-top: 1px solid var(--line); }
.sources ol { margin: 0; padding-left: 18px; font-size: 12.5px; color: var(--ink-3); display: grid; gap: 4px; }

.foot { max-width: var(--max); margin: 0 auto; padding: 20px var(--gutter) calc(32px + env(safe-area-inset-bottom)); font-size: 12.5px; color: var(--ink-3); }
.foot p { margin: 0 0 4px; }

/* ---------- after-submit dialog ---------- */
.next { border: 0; padding: 0; background: var(--paper); color: var(--ink); width: min(640px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); box-shadow: 0 40px 80px -30px rgba(0,0,0,.5); }
.next::backdrop { background: rgba(28,35,51,.55); }
.next__inner { padding: clamp(24px, 4vw, 40px); display: grid; gap: 22px; }
.next__kicker { margin: 0; font-weight: 600; color: var(--olive); }
.next h2 { font-size: clamp(28px, 4vw, 40px); }
.next__lede { color: var(--ink-2); margin: -8px 0 0; }
.next fieldset { border: 0; margin: 0; padding: 0; }
.next legend { font-weight: 500; margin-bottom: 10px; font-size: 15px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { cursor: pointer; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span { display: inline-block; padding: 9px 13px; border: 1px solid var(--line); background: var(--card); font-size: 14px; border-radius: var(--r); transition: border-color .15s, background .15s; }
.chips input:checked + span { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chips input:focus-visible + span { outline: 2px solid var(--olive); outline-offset: 2px; }
.next__actions { display: flex; align-items: center; gap: 18px; }
.link { background: none; border: 0; font: inherit; font-size: 15px; color: var(--ink-3); text-decoration: underline; cursor: pointer; }
.next__thanks { color: var(--ok); font-weight: 500; margin: 0; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; padding-right: var(--gutter); }
  .hero__copy { max-width: 640px; }
  .hero__media { display: contents; }
  .hero__media picture { order: -2; margin: 0 calc(var(--gutter) * -1); width: auto; min-height: 0; }
  .hero__media img { aspect-ratio: 16 / 10; height: auto; }
  .hero__copy { padding-top: 0; }
  .peek { position: relative; left: auto; bottom: auto; width: 100%; max-width: 440px; margin-top: 8px; }
  .hero__media .hero__seal { position: relative; order: -1; top: auto; right: auto; justify-self: end; width: 150px; margin: -104px 6px -52px 0; }
  .problem, .inside, .privacy, .join, .faq { grid-template-columns: 1fr; }
  .how { grid-template-columns: 1fr; row-gap: 40px; }
  .privacy__media { order: -1; max-width: 420px; }
  .problem__media { max-width: 480px; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .bar { padding-top: 16px; padding-bottom: 16px; }
  .mark { gap: 10px; font-size: 16px; white-space: nowrap; }
  .bar__long { display: none; } .bar__short { display: inline; }
  .mark__seal { width: 48px; height: 48px; }
  .bar__cta { font-size: 13px; }
  .hero { row-gap: 22px; padding-top: 0; padding-bottom: 72px; }
  .hero__title { font-size: 40px; margin-bottom: 18px; }
  .peek { margin-top: 34px; }
  .kicker { margin-bottom: 14px; font-size: 13px; }
  .hero__lede { margin-bottom: 22px; }
  .signup__row { grid-template-columns: 1fr; }
  .btn { justify-self: stretch; }
  .spec div { grid-template-columns: 1fr; gap: 6px; }
  .slip { grid-template-columns: 1fr; }
  .who__copy { grid-template-columns: 1fr; gap: 12px; }
}

/* ---------- founder ---------- */
.founder {
  max-width: var(--max); margin: 0 auto; padding: clamp(48px, 7vw, 96px) var(--gutter);
  border-top: 1px solid var(--line);
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px);
}
.founder__title { font-size: clamp(28px, 3vw, 38px); }
.founder__note { max-width: 36em; }
.founder__note p { font-size: 19px; color: var(--ink-2); }
.founder__note p:last-child { margin-bottom: 0; }
@media (max-width: 960px) { .founder { grid-template-columns: 1fr; gap: 16px; } }



/* ==========================================================================
   Brightness, chrome, split-flap, focus-triggered motion, inner pages
   ========================================================================== */
:root { --gold: #D9B86A; --brass: #C9A35B; --gold-hi: #F0D892; --ease: cubic-bezier(.2,.75,.2,1); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
main img:not(.hero__seal) { filter: saturate(1.17) contrast(1.07) brightness(1.05); }

/* top bar: flat mark here, enamel seal stays the hero moment */
.topbar { position: sticky; top: 0; z-index: 50; background: rgba(251,251,247,.86); -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4); border-bottom: 1px solid rgba(15,27,39,.08); }
.topbar .bar { padding-top: 12px; padding-bottom: 12px; gap: 24px; }
.mark { gap: 11px; font-size: 17px; white-space: nowrap; }
.mark__icon { width: 34px; height: 34px; border-radius: 8px; }
.nav { display: flex; gap: clamp(16px, 2vw, 30px); margin-left: auto; font-size: 14.5px; font-weight: 500; }
.nav a { text-decoration: none; position: relative; padding: 4px 0; white-space: nowrap; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: var(--brass); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav a:hover { color: var(--ink); } .nav a:hover::after, .nav a[aria-current]::after { transform: scaleX(1); }
.bar__cta { border: 0; padding: 10px 16px; background: var(--ink); color: #FFFDF6; border-radius: 3px; font-weight: 600; transition: background .2s, color .2s, transform .2s; }
.bar__cta:hover { background: var(--gold); color: var(--ink); transform: translateY(-1px); }
.navm { display: none; position: relative; }
.navm summary { list-style: none; cursor: pointer; padding: 9px 10px; font-size: 13px; font-weight: 600; border: 1px solid var(--line); border-radius: 3px; }
.navm summary::-webkit-details-marker { display: none; }
.navm nav { position: absolute; right: 0; top: calc(100% + 8px); width: 230px; background: var(--card); border: 1px solid var(--line); box-shadow: 0 22px 44px -20px rgba(15,27,39,.4); display: grid; padding: 6px; }
.navm nav a { padding: 11px 12px; text-decoration: none; font-weight: 500; }
@media (max-width: 1060px) { .nav { display: none; } .navm { display: block; } .bar__cta { margin-left: auto; } }
@media (max-width: 760px) { .mark { font-size: 14.5px; gap: 8px; } .mark__icon { width: 30px; height: 30px; } .topbar .bar { gap: 8px; } .bar__cta { padding: 9px 11px; font-size: 12.5px; } .navm summary { padding: 8px 9px; font-size: 12.5px; } }
@media (max-width: 420px) { .mark { font-size: 12.5px; gap: 6px; letter-spacing: -.02em; } .mark__icon { width: 28px; height: 28px; } }
html { scroll-padding-top: 76px; }

.btn { background: linear-gradient(180deg, #EBCF86, var(--brass)); color: var(--ink); box-shadow: inset 0 1px 0 rgba(255,255,255,.55), 0 10px 22px -12px rgba(150,112,40,.8); transition: filter .2s, transform .2s var(--ease), box-shadow .2s; }
.btn:hover { background: linear-gradient(180deg, #F3DB9B, #D3AE66); color: var(--ink); transform: translateY(-1px) scale(1.012); }
.field input:focus { border-color: var(--brass); box-shadow: 0 0 0 3px rgba(201,163,91,.24); }
.kicker { color: var(--olive); font-weight: 600; }
.more { margin: 14px 0 0; font-size: 15px; font-weight: 600; }
.more a { text-decoration-color: var(--brass); text-decoration-thickness: 2px; }
.how .more a:hover { color: var(--gold); }
.problem__copy p a { font-weight: 600; text-decoration-color: var(--brass); }
.peek { box-shadow: 0 2px 0 rgba(15,27,39,.04), 0 34px 60px -24px rgba(15,27,39,.5); border-color: rgba(15,27,39,.14); }

/* split-flap board */
.flap { display: inline-flex; gap: 2px; align-items: center; vertical-align: middle; perspective: 240px; }
.flap__sep { font: 700 .9em/1 var(--display); padding: 0 1px; }
.fl { --h: 26px; position: relative; display: inline-block; width: 18px; height: var(--h); border-radius: 3px; background: #101C28; color: #FFF7E2; font: 700 17px/var(--h) var(--mono); text-align: center; box-shadow: 0 1px 2px rgba(15,27,39,.4); transform-style: preserve-3d; }
.fl > span { position: absolute; left: 0; right: 0; height: 50%; overflow: hidden; background: #16263A; backface-visibility: hidden; }
.fl u { position: absolute; left: 0; right: 0; height: var(--h); line-height: var(--h); text-decoration: none; }
.fl__t, .fl__ft { top: 0; border-radius: 3px 3px 0 0; transform-origin: 50% 100%; }
.fl__t u, .fl__ft u { top: 0; }
.fl__b, .fl__fb { bottom: 0; border-radius: 0 0 3px 3px; background: #101C28 !important; transform-origin: 50% 0; }
.fl__b u, .fl__fb u { bottom: 0; }
.fl__ft, .fl__fb { visibility: hidden; z-index: 2; }
.fl::after { content: ""; position: absolute; z-index: 3; left: 0; right: 0; top: calc(50% - .5px); height: 1px; background: rgba(0,0,0,.72); }
.peek__due.is-soon .fl { color: var(--gold-hi); }
.peek__due b.is-flap { margin-right: 4px; }
.slip__amt b { font-weight: inherit; }
.slip .fl { --h: 38px; width: 26px; font-size: 25px; }
.slip .flap__sep { font-size: 30px; }
.motion .peek__due b:not(.is-flap), .motion .slip__amt b:not(.is-flap) { visibility: hidden; }

/* CE bar: one segment for each CE hour */
.peek__list li.peek__ce { display: grid; grid-template-columns: 1fr auto; row-gap: 9px; }
.peek__bar { grid-column: 1 / -1; width: 100%; height: 8px; background: var(--paper-2); border-radius: 2px; overflow: hidden; }
.peek__bar i { background: linear-gradient(90deg, var(--olive), #6E8A3B); }
.peek__bar.is-seg { display: grid; grid-template-columns: repeat(30, 1fr); gap: 2px; background: none; position: relative; overflow: hidden; }
.peek__bar.is-seg i { position: static; width: auto; background: #E5E7DF; border-radius: 1px; transform-origin: 50% 100%; transition: background .18s; }
.peek__bar.is-seg i.on { background: linear-gradient(180deg, #EBCF86, var(--brass)); animation: seg .34s var(--ease); }
.peek__bar.is-seg i.is-head { box-shadow: 0 0 9px 2px rgba(217,184,106,.9); }
.peek__bar.is-done::after { content: ""; position: absolute; top: 0; bottom: 0; left: -24%; width: 22%; background: linear-gradient(90deg, transparent, rgba(255,255,255,.95), transparent); animation: glint 1.05s .05s var(--ease) forwards; }
@keyframes seg { 0% { transform: scaleY(.1); filter: brightness(1.7); } 60% { transform: scaleY(1.55); } 100% { transform: scaleY(1); } }
@keyframes glint { to { left: 62%; opacity: .1; } }

/* steps */
.steps > li, .numlist > li { position: relative; }
.motion .step { transition: opacity .75s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--i, 0) * 230ms); opacity: .16; transform: translateY(22px); }
.motion .step.is-in { opacity: 1; transform: none; }
.motion .steps__n, .motion .numlist__n { display: inline-block; transition: transform .75s var(--ease), color .6s; transition-delay: calc(var(--i, 0) * 230ms + 80ms); transform: translateY(16px) scale(.8); }
.motion .step.is-in .steps__n, .motion .step.is-in .numlist__n { transform: none; }
.motion .steps > li.step { border-top-color: transparent; }
.motion .steps > li.step::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform 1s var(--ease); transition-delay: calc(var(--i, 0) * 230ms); }
.motion .steps > li.step.is-in::before { transform: scaleX(1); }

/* checklist */
.checks > li { position: relative; }
.ck__t { position: relative; }
.box svg { position: absolute; inset: -1.5px; width: 16px; height: 16px; fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.box svg path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .3s .05s ease-out; }
.checks .is-done .box svg { display: none; }
.checks .is-checked { color: var(--ink-2); }
.checks .is-checked.is-plain .ck__t { text-decoration: line-through; }
.checks .is-checked .box { background: var(--ok); border-color: var(--ok); transition: background .16s, border-color .16s; animation: tick .34s var(--ease); }
.checks .is-checked .box svg path { stroke-dashoffset: 0; }
.checks .is-checked em { color: var(--ok); }
.ck__strike { position: absolute; left: 0; top: 0; pointer-events: none; overflow: visible; }
.ck__strike path { fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; opacity: .8; }
@keyframes tick { 0% { transform: scale(.7); } 60% { transform: scale(1.22); } 100% { transform: scale(1); } }
.sheet { position: relative; }
.hand { position: absolute; left: 0; top: 0; z-index: 5; width: 30px; height: 38px; opacity: 0; pointer-events: none; }
.hand svg { width: 100%; height: 100%; fill: #fff; stroke: var(--ink); stroke-width: 1.7; stroke-linejoin: round; transform-origin: 12px 4px; filter: drop-shadow(0 5px 7px rgba(15,27,39,.42)); }

/* section reveals */
.motion .rv { opacity: .16; transform: translateY(20px); transition: opacity .8s var(--ease), transform .85s var(--ease); transition-delay: calc(var(--i, 0) * 95ms); }
.motion .rv.is-in { opacity: 1; transform: none; }
.motion .rv-img { overflow: hidden; }
.motion .rv-img img { filter: saturate(.6) brightness(1.08); transform: scale(1.05); transition: filter 1.2s var(--ease), transform 1.5s var(--ease); }
.motion .rv-img.is-in img { filter: saturate(1.17) contrast(1.07) brightness(1.05); transform: none; }
.motion .slip { opacity: 1; }

/* inner pages */
.crumbs { max-width: var(--max); margin: 0 auto; padding: 18px var(--gutter) 0; font-size: 13px; color: var(--ink-3); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line); }
.crumbs a { text-decoration: none; }
.page__hero { background: var(--ink); color: #FFFDF6; margin-top: 16px; }
.page__hero > div { max-width: var(--max); margin: 0 auto; padding: clamp(44px, 7vw, 92px) var(--gutter); }
.page__hero .kicker { color: var(--gold); margin-bottom: 14px; }
.page__hero h1 { font-size: clamp(36px, 5vw, 68px); line-height: 1; letter-spacing: -.03em; font-weight: 760; max-width: 16em; }
.page__hero p:last-child { color: #DDDED8; font-size: clamp(17px, 1.5vw, 20px); max-width: 38em; margin: 20px 0 0; }
.article { max-width: 780px; margin: 0 auto; padding: clamp(36px, 5vw, 64px) var(--gutter) 0; }
.article.wide { max-width: var(--max); }
.page__section { margin-bottom: clamp(36px, 5vw, 56px); }
.page__section h2 { font-size: clamp(26px, 3vw, 38px); margin-bottom: 16px; }
.page__section h3 { margin: 20px 0 8px; }
.page__section p, .page__section li { color: var(--ink-2); }
.page__section ul { padding-left: 20px; margin: 0 0 1em; } .page__section li { margin-bottom: 6px; }
.page__section a { font-weight: 500; text-decoration-color: var(--brass); }
.answer { background: var(--manila); padding: 16px 20px; border-left: 3px solid var(--brass); color: var(--ink) !important; }
.reviewed { font-size: 13px; color: var(--ink-3) !important; }
.numlist { list-style: none; margin: 0; padding: 0; }
.numlist > li { display: grid; grid-template-columns: 54px 1fr; padding: 20px 0; border-top: 1px solid var(--line); }
.numlist__n { font: 750 30px/1 var(--display); color: var(--brass); }
.numlist h3 { margin: 0 0 6px; }
.numlist p { margin: 0; }
.cardgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: clamp(36px, 5vw, 56px); }
.card { display: block; background: var(--card); border: 1px solid var(--line); padding: 24px; text-decoration: none; transition: transform .25s var(--ease), box-shadow .25s, border-color .25s; }
a.card:hover { color: inherit; transform: translateY(-3px); border-color: var(--brass); box-shadow: 0 22px 40px -26px rgba(15,27,39,.5); }
.card h2, .card h3 { font-size: 21px; line-height: 1.2; font-weight: 650; margin: 0 0 8px; letter-spacing: -.01em; }
.card p { margin: 0; color: var(--ink-2); font-size: 15.5px; }
.pagefaq details { border-bottom: 1px solid var(--line); }
.pagefaq summary { cursor: pointer; padding: 16px 0; font: 600 18px/1.35 var(--display); }
.related { margin-bottom: 40px; }
.related h2 { font-size: 22px; margin-bottom: 12px; }
.related ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.related a { font-weight: 600; text-decoration-color: var(--brass); }
.ctaband { background: var(--ink); color: #FFFDF6; margin-top: clamp(24px, 4vw, 48px); padding: clamp(36px, 5vw, 60px) var(--gutter); text-align: center; }
.ctaband h2 { font-size: clamp(28px, 3.6vw, 46px); margin-bottom: 10px; }
.ctaband p { color: #DDDED8; margin-bottom: 22px; }
.ctaband .btn { text-decoration: none; }
.footnav { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 12px !important; font-weight: 500; color: var(--ink-2); }
.footnav a { text-decoration: none; }
.footnav a:hover { text-decoration: underline; }
.foot { border-top: 1px solid var(--line); padding-top: 26px; }
@media (max-width: 960px) { .cardgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .cardgrid { grid-template-columns: 1fr; } }
.notfound { text-align: center; padding: clamp(64px, 12vw, 140px) var(--gutter); }
.notfound h1 { font-size: clamp(38px, 6vw, 72px); line-height: 1; margin-bottom: 14px; }

[hidden] { display: none !important; }
@media (prefers-reduced-motion: reduce) { .btn, .card, .bar__cta { transform: none !important; } }

.no-tr, .no-tr * { transition: none !important; }

/* Full-bleed bands use 100vw, which includes a classic scrollbar. Clip keeps the sticky header working. */
html, body { overflow-x: clip; }
