:root{color-scheme:only light}
:where(html,body){color:#14213d;background-color:#ffffff;}
/* returntocode.com - offer page identity (body.intake-flow)
   Loaded after static/styles.css. A deliberately different system from the editorial pages:
   tinted page ground, rounded white cards, a solid cobalt intro panel, large tap-card answers. */

.intake-flow [hidden] { display: none !important; }

.intake-flow {
  background-color: var(--surface);
  color: var(--ink);
}

.intake-flow .footer { background-color: var(--bg); }

/* ---------- slim header ---------- */
.intake-head {
  background-color: var(--bg);
  color: var(--ink);
  border-bottom: 1px solid var(--rule);
}
.intake-head-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 64px;
}
.intake-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--ink);
  font-weight: 800;
  font-size: 1.0625rem;
  letter-spacing: -0.005em;
  text-decoration: none;
}
.intake-brand:hover { color: var(--accent); text-decoration: none; }
.intake-brand .mark { width: 28px; height: 28px; color: var(--ink); }
.intake-back {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 0.9375rem;
  font-weight: 600;
}

/* ---------- shell ---------- */
.intake-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  padding-block: 24px 56px;
}
.intake-intro {
  background-color: var(--accent);
  color: var(--accent-ink);
  border-radius: 16px;
  padding: 28px 22px 30px;
}
.intake-kicker {
  margin-bottom: 14px;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-ink);
}
.intake-intro h1 {
  font-family: var(--f-body);
  font-weight: 800;
  font-size: clamp(1.75rem, 1.3rem + 2vw, 2.5rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--accent-ink);
  overflow-wrap: break-word;
}
.intake-lede {
  margin-top: 16px;
  font-size: 1.125rem;
  line-height: 1.55;
  color: var(--accent-ink);
}
.intake-points { margin-top: 24px; border-top: 1px solid var(--accent-ink); }
.intake-points li {
  position: relative;
  padding: 14px 0 14px 34px;
  border-bottom: 1px solid var(--accent-ink);
  font-weight: 600;
  line-height: 1.4;
  color: var(--accent-ink);
}
.intake-points li::before {
  content: "";
  position: absolute; left: 0; top: 16px;
  width: 20px; height: 20px;
  border: 2px solid var(--accent-ink);
  border-radius: 50%;
}
.intake-points li::after {
  content: "";
  position: absolute; left: 7px; top: 20px;
  width: 6px; height: 10px;
  border: solid var(--accent-ink);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.intake-desk {
  margin-top: 22px;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--accent-ink);
}

/* ---------- card ---------- */
.intake-card {
  background-color: var(--bg);
  color: var(--ink);
  border-radius: 16px;
  padding: 24px 18px 28px;
  box-shadow: 0 1px 0 rgba(20, 33, 61, 0.06), 0 14px 34px rgba(20, 33, 61, 0.08);
  min-width: 0;
}
.progress { display: none; margin-bottom: 26px; }
.js .progress { display: block; }
.progress-label {
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.progress-bar { display: flex; gap: 6px; margin-top: 10px; }
.seg { flex: 1; height: 6px; border-radius: 3px; background-color: var(--surface); transition: background-color 0.25s ease; }
.seg.is-on { background-color: var(--accent); }

.q-step { min-width: 0; margin: 0; padding: 0; border: 0; }
.q-step legend {
  display: block;
  width: 100%;
  margin-bottom: 20px;
  padding: 0;
  font-weight: 800;
  font-size: clamp(1.375rem, 1.15rem + 1vw, 1.75rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.q-step legend:focus { outline: none; }
.opts { display: grid; gap: 12px; }
.opt { position: relative; display: block; }
.opt input {
  position: absolute;
  opacity: 0;
  width: 1px; height: 1px;
  margin: 0;
}
.tile {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 62px;
  padding: 14px 16px;
  background-color: var(--bg);
  color: var(--ink);
  border: 2px solid var(--rule);
  border-radius: 12px;
  font-weight: 600;
  font-size: 1.0625rem;
  line-height: 1.3;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}
.tile::before {
  content: "";
  flex: none;
  width: 22px; height: 22px;
  border: 2px solid var(--muted);
  border-radius: 50%;
  background-color: var(--bg);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.tile:hover { border-color: var(--accent); }
.opt input:checked + .tile {
  background-color: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}
.opt input:checked + .tile::before {
  border-color: var(--accent-ink);
  background-color: var(--accent-ink);
  box-shadow: inset 0 0 0 4px var(--accent);
}
.opt input:focus-visible + .tile { outline: 3px solid var(--ink); outline-offset: 3px; }

/* ---------- buttons ---------- */
.ibtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 26px;
  background-color: var(--accent);
  color: var(--accent-ink);
  border: 2px solid var(--accent);
  border-radius: 12px;
  font-family: var(--f-body);
  font-weight: 700;
  font-size: 1.0625rem;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.ibtn:hover { background-color: var(--accent-ink); color: var(--accent); }
.ibtn:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.ibtn.ghost { background-color: var(--bg); color: var(--accent); }
.ibtn.ghost:hover { background-color: var(--accent); color: var(--accent-ink); }
.ibtn[disabled] {
  background-color: var(--surface);
  color: var(--muted);
  border-color: var(--rule);
  cursor: not-allowed;
}
.ibtn.block { width: 100%; }
.q-nav { display: none; gap: 12px; margin-top: 24px; }
.js .q-nav { display: flex; flex-direction: column-reverse; }
.js .q-nav .ibtn { width: 100%; }

/* ---------- details step ---------- */
.details-title {
  margin-bottom: 18px;
  font-family: var(--f-body);
  font-weight: 800;
  font-size: clamp(1.375rem, 1.15rem + 1vw, 1.75rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.details-title:focus { outline: none; }
.summary { display: none; }
.js .summary { display: block; }
.summary {
  margin-bottom: 24px;
  padding: 16px 18px 6px;
  background-color: var(--surface);
  color: var(--ink);
  border-radius: 12px;
}
.summary-list dt {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.summary-list dd { margin: 2px 0 12px; font-weight: 700; line-height: 1.35; }
.linkbtn {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin: 0 0 6px;
  padding: 0;
  background: none;
  border: 0;
  color: var(--accent);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: underline;
  text-underline-offset: 0.18em;
  cursor: pointer;
}
.linkbtn:hover { text-decoration-thickness: 2px; }

.field { margin-bottom: 18px; }
.field label, .field .lbl { display: block; margin-bottom: 6px; font-weight: 700; font-size: 1rem; }
.field .opt-tag { font-weight: 400; color: var(--muted); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field textarea {
  display: block;
  width: 100%;
  min-height: 54px;
  padding: 12px 14px;
  background-color: var(--bg);
  color: var(--ink);
  border: 2px solid rgba(20, 33, 61, 0.4);
  border-radius: 10px;
  font-size: 1.0625rem;
  line-height: 1.4;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field textarea { min-height: 112px; resize: vertical; }
.field input:hover, .field textarea:hover { border-color: var(--ink); }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.28);
}
.field input[aria-invalid="true"] { border-color: var(--ink); border-width: 3px; padding: 11px 13px; }
.field-error {
  margin-top: 8px;
  padding-left: 10px;
  border-left: 4px solid var(--accent);
  font-weight: 700;
  font-size: 0.9375rem;
  line-height: 1.4;
  color: var(--ink);
}
.consent {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 8px;
  padding: 14px 16px;
  background-color: var(--surface);
  color: var(--ink);
  border-radius: 10px;
  font-size: 1rem;
  line-height: 1.5;
  cursor: pointer;
}
.consent input { flex: none; width: 24px; height: 24px; margin: 2px 0 0; accent-color: var(--accent); cursor: pointer; }
.consent-wrap { margin-bottom: 22px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- post-submit message (shown through :target, no script needed) ---------- */
.success { display: none; padding: 8px 4px 4px; }
.success:target { display: block; }
.success:target ~ * { display: none; }
.success h2 {
  font-family: var(--f-body);
  font-weight: 800;
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  line-height: 1.2;
  color: var(--ink);
}
.success p { margin-top: 14px; max-width: 34rem; }
.success .ibtn { margin-top: 24px; text-decoration: none; }

@media (min-width: 480px) {
  .intake-card { padding: 30px 26px 34px; }
  .js .q-nav { flex-direction: row; justify-content: space-between; }
  .js .q-nav .ibtn { width: auto; min-width: 11rem; }
  .js .q-nav [data-next] { margin-left: auto; }
}
@media (min-width: 768px) {
  .intake-shell { gap: 28px; padding-block: 40px 80px; }
  .intake-intro { padding: 40px 36px 40px; }
  .intake-card { padding: 40px 40px 44px; }
}
@media (min-width: 1024px) {
  .intake-shell { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; gap: 36px; }
  .intake-intro { position: sticky; top: 24px; }
}
