/* ------------------------------------------------------------------
   The hours you could hand off  ·  Better by Design AI, LLC
   v3. One quadrant per screen. Full-bleed navy bands carry each
   step. Gold is reserved for progress and for the number.
   ------------------------------------------------------------------ */

:root {
  --navy:       #1C3154;
  --navy-2:     #243A5E;
  --gold:       #B8922A;
  --gold-light: #D4AA4A;
  --gold-tint:  #F0CC80;
  --charcoal:   #2B2E34;
  --gray:       #F5F6FA;
  --white:      #FFFFFF;
  --rule:       #DBDFE8;
  --ink-soft:   #5A6070;
  --border:     #6B7280;
  --on-navy:    #C9D3E4;

  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;

  --s1: .5rem; --s2: .75rem; --s3: 1rem; --s4: 1.5rem;
  --s5: 2rem;  --s6: 3rem;   --s7: 4rem;

  --pad: 1.25rem;
  --shadow: -3px 2px 16px rgba(28, 49, 84, .08);
  --measure: 34rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0; padding: 0 0 4.75rem;
  background: var(--white); color: var(--charcoal);
  font-family: var(--sans); font-size: 1.125rem; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

p { margin: 0 0 var(--s3); max-width: var(--measure); }
cite { font-style: italic; }
.wrap { max-width: 44rem; margin: 0 auto; padding: 0 var(--pad); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--navy); color: var(--white); padding: var(--s2) var(--s3); text-decoration: none;
}
.skip-link:focus { left: var(--s1); top: var(--s1); }
.noscript { margin: var(--s4) var(--pad); padding: var(--s3); background: var(--gold-tint); }

:where(a, button, input, summary):focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; }
.band :focus-visible, .totalbar :focus-visible, .result__figure :focus-visible { outline-color: var(--gold-light); }

/* ---- Progress and reset ------------------------------------------ */
.progress {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  display: flex; gap: 2px; height: 4px; background: var(--rule);
}
.progress__seg { flex: 1; background: transparent; transition: background .3s ease; }
.progress__seg[data-done="true"] { background: var(--navy); }

.homelink {
  position: fixed; top: .75rem; left: .75rem; z-index: 60; padding: .5rem .85rem;
  font: 600 1rem/1 var(--serif, 'Cormorant Garamond', serif); color: var(--navy); text-decoration: none;
  background: rgba(255,255,255,.92); border: 1px solid var(--rule);
}
.homelink em { font-style: italic; font-weight: 400; }
.homelink:hover { border-color: var(--navy); }
.resetbar { position: fixed; top: .75rem; right: .75rem; z-index: 60; display: flex; gap: .35rem; }
.btn-reset {
  font: 500 .875rem/1 var(--sans); color: var(--navy); background: rgba(255,255,255,.92);
  border: 1px solid var(--rule); padding: .5rem .85rem; cursor: pointer;
}
.btn-reset:hover { border-color: var(--navy); }
.btn-reset--yes { background: var(--navy); color: var(--white); border-color: var(--navy); }
.reset-confirm {
  display: flex; align-items: center; gap: .35rem; background: var(--white);
  border: 1px solid var(--rule); padding: .3rem .45rem; font-size: .875rem; box-shadow: var(--shadow);
}
.reset-confirm[hidden] { display: none; }
.band .btn-reset { background: rgba(255,255,255,.12); color: var(--white); border-color: rgba(255,255,255,.4); }

/* ---- Steps -------------------------------------------------------- */
.step[hidden] { display: none; }

.band {
  background: var(--navy); color: var(--white);
  padding: 4.25rem 0 var(--s5);
  margin-bottom: var(--s5);
}
.band__meta {
  display: flex; align-items: center; gap: var(--s2);
  font-size: .8rem; font-weight: 600; letter-spacing: .06em; color: var(--gold-tint);
  margin-bottom: var(--s3);
}
.band__meta::after {
  content: ''; flex: 1; height: 1px; background: rgba(212,170,74,.45);
}
.band__title {
  font-family: var(--serif); font-weight: 700; line-height: .98; letter-spacing: -.02em;
  font-size: clamp(2.8rem, 12vw, 4.25rem); color: var(--white);
  margin: 0 0 .35rem; max-width: 14ch;
}
.band__sub {
  font-size: .95rem; font-weight: 600; letter-spacing: .04em; color: var(--gold-tint);
  margin: 0 0 var(--s4);
}
.band__blurb { font-size: 1.0625rem; line-height: 1.55; color: var(--on-navy); margin: 0; max-width: 44ch; }
.band__intro {
  margin: var(--s4) 0 0; padding-top: var(--s3);
  border-top: 1px solid rgba(255,255,255,.18);
  font-size: .95rem; color: var(--on-navy); max-width: 44ch;
}
.band__intro b { color: var(--white); font-weight: 600; }
.band__jump {
  display: inline-block; margin-top: var(--s4); padding: .55rem .9rem;
  font-size: .9rem; font-weight: 600; color: var(--navy); background: var(--gold-tint);
  text-decoration: none; border-radius: 2px;
}
.band__jump:hover { background: var(--gold-light); }
.band__jump[hidden], .emailme[hidden] { display: none; }
.emailme { scroll-margin-top: 1.5rem; }

/* the little 2x2 that keeps the matrix on screen without a table */
.glyph { width: 30px; height: 30px; flex: 0 0 auto; }
.glyph rect { fill: rgba(255,255,255,.22); }
.glyph rect.on { fill: var(--gold-light); }

/* ---- A day in the life ---------------------------------------------- */
.day__owner { margin: 0 0 var(--s5); padding: var(--s3) var(--s4); background: var(--gray); max-width: var(--measure); }
.day__ownerlabel { font-size: .8rem; font-weight: 700; letter-spacing: .06em; color: var(--gold); margin: 0 0 .3rem; }
.day__ownertext { margin: 0; font-size: 1rem; }
.day { list-style: none; margin: 0; padding: 0; max-width: var(--measure); }
.day__moment { position: relative; padding: 0 0 var(--s4) 1.6rem; border-left: 2px solid var(--rule); }
.day__moment::before {
  content: ''; position: absolute; left: -7px; top: .35rem; width: 12px; height: 12px;
  border-radius: 50%; background: var(--gold-light); border: 2px solid var(--white);
}
.day__moment:last-child { border-left-color: transparent; }
.day__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem .6rem; margin-bottom: .35rem; }
.day__time { font-family: var(--serif); font-weight: 700; font-size: 1.15rem; color: var(--gold); font-variant-numeric: lining-nums; }
.day__title { font-weight: 600; color: var(--navy); font-size: 1.05rem; }
.day__tag { font-size: .72rem; font-weight: 600; letter-spacing: .02em; color: var(--ink-soft); background: var(--gray); padding: .15rem .5rem; border-radius: 2px; }
.day__ai, .day__you { margin: 0 0 .3rem; font-size: .95rem; line-height: 1.5; }
.day__label { font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; margin-right: .2rem; }
.day__ai .day__label { color: var(--gold); }
.day__you .day__label { color: var(--navy); }
.day__total {
  font-family: var(--serif); font-weight: 700; font-size: clamp(1.5rem, 5.5vw, 2rem); line-height: 1.1;
  color: var(--navy); margin: var(--s4) 0 var(--s2); border-left: 3px solid var(--gold); padding-left: var(--s3);
}
.day__note { font-size: 1rem; margin: 0 0 var(--s3); }
.day__ask { font-size: .95rem; color: var(--ink-soft); margin: 0; }

/* ---- Several quadrants on one screen -------------------------------- */
.qsec { margin: 0 0 var(--s6); padding-top: var(--s4); border-top: 1px solid var(--rule); }
.qsec:first-child { border-top: 0; padding-top: 0; }
.qsec__head { display: flex; align-items: center; gap: var(--s2); margin: 0 0 .5rem; }
.qsec__head .glyph rect { fill: var(--rule); }
.qsec__head .glyph rect.on { fill: var(--navy); }
.qsec__title {
  font-family: var(--serif); font-weight: 700; font-size: clamp(1.7rem, 6.5vw, 2.3rem);
  line-height: 1; color: var(--navy); margin: 0; letter-spacing: -.01em;
}
.qsec__sub { font-size: .85rem; font-weight: 600; letter-spacing: .04em; color: var(--gold); margin: .15rem 0 0; }
.qsec__blurb { font-size: .95rem; color: var(--ink-soft); margin: 0 0 var(--s3); }
.row__hint { grid-column: 1 / -1; margin: 0; max-width: none; font-size: .85rem; color: var(--gold); }
.row__hint:empty { display: none; }
.typical__source { font-size: .8rem; color: var(--ink-soft); margin: var(--s4) 0 0; }

/* ---- Folded sections on the result ----------------------------------- */
.fold { max-width: none; margin: var(--s4) 0 0; }
.fold[hidden] { display: none; }
.fold__summary {
  cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: var(--s2);
  font-family: var(--serif); font-weight: 700; font-size: clamp(1.25rem, 4.5vw, 1.5rem); color: var(--navy);
  padding: var(--s3) var(--pad); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
}
.fold__summary::-webkit-details-marker { display: none; }
.fold__summary::after { content: '+'; color: var(--gold); font-size: 1.4rem; line-height: 1; }
.fold[open] .fold__summary::after { content: '\2212'; }
.wrap .fold__summary { padding-left: 0; padding-right: 0; }

/* ---- Priority badges and the prompt under a workflow ----------------- */
.badges { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 var(--s2); max-width: none; }
.badge { font-size: .72rem; font-weight: 700; letter-spacing: .03em; padding: .2rem .55rem; border-radius: 2px; }
.badge--ease-3 { color: #1F5A2B; background: #DDF1E1; }
.badge--ease-2 { color: #6B5310; background: var(--gold-tint); }
.badge--ease-1 { color: var(--navy); background: var(--rule); }
.badge--imp-3 { color: var(--white); background: var(--navy); }
.badge--imp-2 { color: var(--navy); background: #D6DEEC; }
.badge--imp-1 { color: var(--ink-soft); background: var(--gray); }
.workflow__prompt { padding: 0 var(--s3) var(--s3); display: grid; gap: .3rem; }
.workflow__prompt .workflow__label { padding-top: 0; }
.close__cohort { font-size: 1rem; font-weight: 600; color: var(--gold-tint); margin: 0 0 var(--s4); }

/* ---- Quadrant 2 areas ------------------------------------------------ */
.group { margin: 0 0 var(--s5); padding-top: var(--s4); border-top: 1px solid var(--rule); }
.group:first-child { border-top: 0; padding-top: 0; }
.group__title {
  font-family: var(--serif); font-weight: 700; font-size: clamp(1.5rem, 5.5vw, 1.9rem);
  line-height: 1.1; color: var(--navy); margin: 0 0 .3rem; letter-spacing: -.01em;
}
.group__blurb { font-size: .95rem; color: var(--ink-soft); margin: 0 0 var(--s3); }
.group .btn-add { margin-top: var(--s3); }

/* ---- Chips and ledger --------------------------------------------- */
.chips__label { font-size: .8rem; font-weight: 600; letter-spacing: .03em; color: var(--navy); margin: 0 0 var(--s2); }
.chips { display: flex; flex-wrap: wrap; gap: .45rem; margin: 0 0 var(--s5); padding: 0; list-style: none; }
.chip {
  font: 400 1rem/1.3 var(--sans); color: var(--navy); background: var(--white);
  border: 1px solid var(--border); border-radius: 999px; padding: .55rem 1rem; cursor: pointer;
  transition: background .12s ease, color .12s ease, border-color .12s ease;
}
.chip:hover { background: var(--navy); border-color: var(--navy); color: var(--white); }
.chip[data-added="true"] { background: var(--gray); border-color: var(--rule); color: var(--ink-soft); }

.rows { list-style: none; margin: 0; padding: 0; }
.row {
  border-top: 1px solid var(--rule); padding: var(--s3) 0;
  display: grid; grid-template-columns: 1fr auto; gap: var(--s2) var(--s3); align-items: end;
}
.row:last-child { border-bottom: 1px solid var(--rule); }

.field { display: flex; flex-direction: column; gap: .3rem; min-width: 0; }
.field label, .field legend, .weeks-edit label, .rate label {
  font-size: .78rem; font-weight: 600; letter-spacing: .03em; color: var(--navy);
}
.field-task { grid-column: 1; }
.field-hours { grid-column: 1; max-width: 8rem; }
.field-share { grid-column: 1 / -1; }

input[type="text"], input[type="number"], input[type="email"] {
  font: 400 1.0625rem/1.4 var(--sans); color: var(--charcoal); background: var(--white);
  border: 1px solid var(--border); border-radius: 0; padding: .65rem; width: 100%; min-height: 48px;
}
input[type="number"] { font-variant-numeric: tabular-nums; }
input::placeholder { color: var(--border); }
input:focus { border-color: var(--navy); }

fieldset.field { border: 0; margin: 0; padding: 0; }
fieldset.field legend { padding: 0; margin-bottom: .3rem; }

.segmented { display: flex; flex-wrap: wrap; }
.segmented input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.segmented label {
  font: 400 .9375rem/1 var(--sans); color: var(--charcoal); letter-spacing: 0;
  border: 1px solid var(--border); margin-left: -1px; padding: 0 .85rem; min-height: 48px;
  display: flex; align-items: center; cursor: pointer; transition: background .12s ease;
}
.segmented label:first-of-type { margin-left: 0; }
.segmented input:checked + label {
  background: var(--navy); border-color: var(--navy); color: var(--white); font-weight: 600;
  position: relative; z-index: 1;
}
.segmented input:focus-visible + label { outline: 3px solid var(--navy); outline-offset: 2px; z-index: 2; }

.row__readout {
  grid-column: 1 / -1; margin: 0; max-width: none;
  font-size: .9rem; color: var(--ink-soft); font-variant-numeric: tabular-nums;
}
.row__readout:empty { display: none; }

.row-remove {
  grid-column: 2; grid-row: 1; align-self: start;
  font: 400 .85rem/1 var(--sans); color: var(--ink-soft); background: none;
  border: 0; border-bottom: 1px solid var(--rule); padding: .3rem 0; cursor: pointer;
}
.row-remove:hover { color: var(--navy); border-bottom-color: var(--navy); }

.btn-add {
  font: 600 1rem/1 var(--sans); color: var(--navy); background: none;
  border: 1px dashed var(--border); padding: .85rem 1.3rem; margin-top: var(--s4); cursor: pointer;
}
.btn-add:hover { border-style: solid; }

/* ---- Step navigation ---------------------------------------------- */
.stepnav {
  display: flex; align-items: center; gap: var(--s3);
  margin: var(--s6) 0 var(--s5); padding-top: var(--s4); border-top: 1px solid var(--rule);
}
.btn-next {
  font: 600 1.0625rem/1 var(--sans); color: var(--white); background: var(--navy);
  border: 0; padding: 1.05rem 2.25rem; cursor: pointer; transition: background .15s ease;
}
.btn-next:hover { background: var(--navy-2); }
.btn-next[disabled] { opacity: .45; cursor: not-allowed; }
.btn-next[disabled]:hover { background: var(--navy); }
/* The intro's one Start button, up in the navy band */
.btn-next--band { display: block; margin-top: var(--s4); background: var(--gold-tint); color: var(--navy); }
.btn-next--band:hover { background: var(--gold-light); }
.stepnav { flex-wrap: wrap; }
.stepnav__hint { flex-basis: 100%; margin: 0; font-size: .9rem; color: var(--ink-soft); }
.stepnav__hint[hidden] { display: none; }
.btn-back {
  font: 500 1rem/1 var(--sans); color: var(--ink-soft); background: none; border: 0;
  padding: .5rem 0; cursor: pointer; border-bottom: 1px solid transparent;
}
.btn-back:hover { color: var(--navy); border-bottom-color: var(--navy); }
.btn-back[hidden] { display: none; }

/* ---- Running total ------------------------------------------------- */
.totalbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 55;
  background: var(--navy); color: var(--white);
  padding: .5rem var(--pad);
  padding-bottom: calc(.5rem + env(safe-area-inset-bottom, 0px));
  display: flex; align-items: center; justify-content: space-between; gap: var(--s3);
  border-top: 2px solid var(--gold);
  /* Promote to its own layer. Without this, iOS Safari repaints fixed
     elements only after a scroll settles, so the bar appears to float
     halfway up the page mid-scroll. */
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  will-change: transform;
}
.totalbar[hidden] { display: none !important; }
.totalbar__label { margin: 0; font-size: .8rem; line-height: 1.25; color: var(--on-navy); max-width: 20ch; }
.totalbar__value {
  margin: 0; font-family: var(--serif); font-weight: 700; font-size: 1.9rem; line-height: 1;
  font-variant-numeric: tabular-nums;
}

/* While a field is focused the on-screen keyboard already owns the bottom
   of the screen, so the bar is stealing room from the question being
   answered. The per-row readout carries the feedback instead. */
body.is-typing .totalbar { display: none; }

/* Keep a focused field clear of the bar when it does show */
.row input, .rate__field input, .weeks-edit input { scroll-margin-bottom: 7rem; scroll-margin-top: 1rem; }

/* ---- Result -------------------------------------------------------- */
.result__figure {
  background: var(--navy); color: var(--white);
  padding: 3.25rem 0 var(--s5);
}
.result__figure .band__meta { margin-bottom: var(--s3); }
.result__figure .band__meta::after { content: none; }
.result__kicker {
  font-size: .8rem; font-weight: 600; letter-spacing: .06em; color: var(--gold-tint); margin: 0 0 var(--s4);
}
.result__value {
  display: block; font-family: var(--serif); font-weight: 700;
  font-size: clamp(5.5rem, 30vw, 11rem); line-height: .9; letter-spacing: -.03em;
  color: var(--gold-light); margin: 0;
  /* lining figures: the old-style 3, 7 and 9 in this face hang below
     the baseline and ran into the label once the number hit four digits */
  font-variant-numeric: lining-nums;
}
.result__label { font-size: 1.125rem; color: var(--white); margin: var(--s3) 0 var(--s4); max-width: 20ch; }
.result__pair {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3) var(--s4);
  margin: 0 0 var(--s3); padding-top: var(--s3); border-top: 1px solid rgba(255,255,255,.2);
}
.result__stat { display: grid; gap: .15rem; min-width: 0; }
.result__statvalue {
  font-family: var(--serif); font-weight: 700; font-size: clamp(2.2rem, 9vw, 3rem); line-height: 1;
  color: var(--white); font-variant-numeric: lining-nums;
}
.result__stat:last-child .result__statvalue { color: var(--gold-tint); }
.result__statlabel { font-size: .95rem; line-height: 1.35; color: var(--on-navy); max-width: 16ch; }
.result__statsub { font-size: .8rem; line-height: 1.4; color: var(--gold-tint); margin-top: .25rem; }
.result__statsub:empty { display: none; }
.result__empty { font-size: 1.0625rem; color: var(--on-navy); margin: 0; }
.result__empty p { margin: 0; }

.assumption {
  font: 400 .875rem/1.4 var(--sans); color: var(--on-navy); background: none; border: 0;
  border-bottom: 1px dotted #8FA0BE; padding: 0 0 .1rem; cursor: pointer;
}
.assumption:hover { color: var(--white); border-bottom-color: var(--white); }
.weeks-edit { display: flex; flex-direction: column; gap: .3rem; margin: var(--s3) 0 0; max-width: 10rem; }
.weeks-edit { max-width: var(--measure); }
.weeks-edit input { max-width: 10rem; }
.weeks-note { font-size: .9rem; line-height: 1.5; color: var(--on-navy); margin: 0 0 var(--s2); max-width: 40ch; }
.weeks-source { color: var(--white); text-decoration: underline; text-underline-offset: 2px; }
.weeks-source:hover { color: var(--gold-tint); }
.weeks-edit[hidden] { display: none; }
.weeks-edit label { color: var(--white); }

/* the money question, warm on purpose so it reads as a different beat */
.rate { background: var(--gold-tint); color: var(--charcoal); padding: var(--s5) 0; }
.rate__kicker { font-size: .8rem; font-weight: 700; letter-spacing: .06em; color: #6B5310; margin: 0 0 var(--s2); }
.rate__heading {
  font-family: var(--serif); font-weight: 700; font-size: clamp(1.9rem, 7vw, 2.6rem);
  line-height: 1.05; color: var(--navy); margin: 0 0 var(--s2); max-width: 18ch;
}
.rate__help { font-size: .95rem; color: #514722; margin: 0 0 var(--s4); }
.rate__field { display: flex; flex-direction: column; gap: .3rem; max-width: 12rem; }
.rate__field label { font-size: .78rem; font-weight: 700; letter-spacing: .03em; color: var(--navy); }
.rate__out { margin: var(--s4) 0 0; max-width: none; }
.rate__out:empty { display: none; }
.rate__outkicker {
  display: block; font-size: .8rem; font-weight: 700; letter-spacing: .06em;
  color: #6B5310; margin-bottom: .35rem;
}
.rate__money {
  display: block; font-family: var(--serif); font-weight: 700;
  font-size: clamp(3rem, 14vw, 5rem); line-height: .95; color: var(--navy);
  font-variant-numeric: tabular-nums;
}
.rate__moneylabel { display: block; font-size: 1rem; color: #514722; margin-top: .5rem; max-width: 32ch; }
.rate__weekly { display: block; font-size: 1.0625rem; font-weight: 600; color: var(--navy); margin-top: var(--s2); }

/* ---- Insights: where the week goes, where the money goes, the plan ---- */
:root { --bar-off: #1C3154; --bar-kept: #A9B6CC; }

.insights { background: var(--gray); padding: var(--s5) 0 var(--s4); }
.insights[hidden] { display: none; }
.insight { padding: var(--s4) 0 var(--s5); }
.insight + .insight { border-top: 1px solid var(--rule); }
.insight[hidden] { display: none; }
.insight__kicker { font-size: .8rem; font-weight: 700; letter-spacing: .06em; color: var(--gold); margin: 0 0 var(--s2); }
.insight__heading {
  font-family: var(--serif); font-weight: 700; font-size: clamp(1.6rem, 5vw, 2.1rem);
  line-height: 1.1; color: var(--navy); margin: 0 0 var(--s2); letter-spacing: -.01em; max-width: 22ch;
}
.insight__intro { font-size: .95rem; color: var(--ink-soft); margin: 0 0 var(--s4); }
.insight__note {
  font-family: var(--serif); font-size: clamp(1.25rem, 4.5vw, 1.6rem); line-height: 1.3;
  color: var(--navy); border-left: 3px solid var(--gold); padding-left: var(--s3); margin: var(--s4) 0 0;
}
.insight__note:empty { display: none; }

/* legend: two swatches, text in ink, never in the bar colour */
.legend { display: flex; flex-wrap: wrap; gap: var(--s3); margin: 0 0 var(--s3); padding: 0; list-style: none; }
.legend__item { display: flex; align-items: center; gap: .4rem; font-size: .85rem; color: var(--ink-soft); }
.swatch { display: inline-block; width: 12px; height: 12px; border-radius: 2px; }
.swatch--off { background: var(--bar-off); }
.swatch--kept { background: var(--bar-kept); }

/* one bar per quadrant. Length is share of the week, split into
   the part AI could take and the part that stays. */
.qbars { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s3); }
.qbar__head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s3); margin-bottom: .35rem; }
.qbar__name { font-weight: 600; color: var(--navy); }
.qbar__pct { font-weight: 600; color: var(--navy); font-variant-numeric: tabular-nums; white-space: nowrap; }
.qbar__track { width: 100%; }
.qbar__bar { display: flex; height: 16px; gap: 2px; }
.qbar__seg { display: block; height: 100%; flex: 0 0 auto; }
.qbar__seg--off { background: var(--bar-off); }
.qbar__seg--kept { background: var(--bar-kept); }
.qbar__seg:last-child { border-radius: 0 4px 4px 0; }
.qbar__detail { font-size: .9rem; color: var(--ink-soft); margin: .4rem 0 0; max-width: none; font-variant-numeric: tabular-nums; }
.qbar__count { color: var(--border); }
.breakdown__total { font-size: .85rem; color: var(--ink-soft); margin: var(--s3) 0 0; font-variant-numeric: tabular-nums; }

/* the plan: ordered, with a workflow folded under each item */
.planlist { list-style: none; margin: 0; padding: 0; }
.planitem { border-top: 1px solid var(--rule); padding: var(--s3) 0 var(--s4); }
.planitem:last-child { border-bottom: 1px solid var(--rule); }
.planitem__tier {
  font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--gold); margin: 0 0 var(--s2);
}
.planitem__task {
  font-family: var(--serif); font-weight: 700; font-size: clamp(1.4rem, 5.5vw, 1.8rem);
  line-height: 1.15; color: var(--navy); margin: 0 0 .3rem; display: flex; gap: .6rem; align-items: baseline;
}
.planitem__rank { font-size: .95rem; font-family: var(--sans); font-weight: 600; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.planitem__meta { font-size: .9rem; color: var(--ink-soft); margin: 0 0 var(--s2); font-variant-numeric: tabular-nums; }
.planitem__why { font-size: 1rem; margin: 0 0 var(--s3); }

.workflow { border: 1px solid var(--rule); background: var(--white); padding: 0; max-width: var(--measure); }
.workflow summary {
  cursor: pointer; padding: .75rem var(--s3); font-size: .9rem; font-weight: 600; color: var(--navy);
  list-style: none; display: flex; align-items: center; justify-content: space-between; gap: var(--s2);
}
.workflow summary::-webkit-details-marker { display: none; }
.workflow summary::after { content: '+'; font-size: 1.2rem; line-height: 1; color: var(--gold); }
.workflow[open] summary::after { content: '\2212'; }
.workflow[open] summary { border-bottom: 1px solid var(--rule); }
.workflow__steps { list-style: none; margin: 0; padding: var(--s2) var(--s3) var(--s3); display: grid; gap: .6rem; }
.workflow__step { display: grid; grid-template-columns: 4.5rem minmax(0, 1fr); gap: var(--s2); font-size: .95rem; line-height: 1.5; }
.workflow__label { font-size: .75rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--gold); padding-top: .25rem; }
.workflow__step--auto { border-top: 1px solid var(--rule); padding-top: .6rem; margin-top: .2rem; }
.workflow__step--auto .workflow__label { color: var(--navy); }
.workflow summary { flex-wrap: wrap; }
.workflow__title { flex: 1 1 auto; }
.workflow__tag {
  font-size: .72rem; font-weight: 600; letter-spacing: .02em; color: var(--ink-soft);
  background: var(--gray); padding: .2rem .5rem; border-radius: 2px; white-space: nowrap;
}
.workflow__tag--bootcamp { color: #6B5310; background: var(--gold-tint); }
.workflow__note {
  margin: 0; padding: var(--s2) var(--s3) var(--s3); font-size: .875rem; line-height: 1.5;
  color: var(--ink-soft); max-width: none; border-top: 1px solid var(--rule);
}
.pairing .workflow__note { border: 0; padding: .2rem 0 0; }
.workflow__link { color: var(--navy); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.workflow__link:hover { color: var(--gold); }

/* take it with you: the roadmap by email, or as a link */
.emailme { margin-top: var(--s6); padding: var(--s5) var(--s4); background: var(--gray); max-width: var(--measure); }
.emailme__kicker { font-size: .8rem; font-weight: 700; letter-spacing: .06em; color: var(--gold); margin: 0 0 var(--s2); }
.emailme__heading {
  font-family: var(--serif); font-weight: 700; font-size: clamp(1.6rem, 6vw, 2.1rem);
  line-height: 1.1; color: var(--navy); margin: 0 0 var(--s2); letter-spacing: -.01em;
}
.emailme__body { font-size: .95rem; color: var(--ink-soft); margin: 0 0 var(--s4); }
.emailme__form { display: grid; gap: var(--s3); }
.emailme__form .field label { display: block; }
.field__opt { font-weight: 400; letter-spacing: 0; color: var(--ink-soft); text-transform: lowercase; }
.emailme__hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.emailme__consent { display: flex; gap: .6rem; align-items: flex-start; font-size: .9rem; color: var(--charcoal); cursor: pointer; }
.emailme__consent input { width: 1.15rem; height: 1.15rem; margin: .2rem 0 0; flex: 0 0 auto; accent-color: var(--navy); }
.emailme__form .btn-next { justify-self: start; }
.emailme__form .btn-next[disabled] { opacity: .6; cursor: default; }
.emailme__msg { font-size: .95rem; font-weight: 600; color: var(--navy); margin: 0; max-width: none; }
.emailme__msg:empty { display: none; }
.emailme__alt { margin: var(--s4) 0 0; padding-top: var(--s3); border-top: 1px solid var(--rule); font-size: .9rem; max-width: none; }
.emailme__link { color: var(--navy); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.emailme__link:hover { color: var(--gold); }
/* When no email is coming, the link is how you keep the roadmap */
.emailme__alt--lead { border-top: 0; padding-top: 0; }
.emailme__alt--lead .emailme__link {
  display: inline-block; margin-bottom: var(--s2); padding: .9rem 1.4rem;
  background: var(--navy); color: var(--white); text-decoration: none; font-size: 1rem;
}
.emailme__alt--lead .emailme__link:hover { background: var(--navy-2); color: var(--white); }
.emailme__hint { color: var(--ink-soft); }

/* the one call to action, at the very end */
.close { margin-top: var(--s6); padding: var(--s5) var(--s4); background: var(--navy); color: var(--white); max-width: var(--measure); }
.close__kicker { font-size: .8rem; font-weight: 700; letter-spacing: .06em; color: var(--gold-tint); margin: 0 0 var(--s2); }
.close__heading {
  font-family: var(--serif); font-weight: 700; font-size: clamp(1.6rem, 6vw, 2.2rem);
  line-height: 1.1; color: var(--white); margin: 0 0 var(--s3); letter-spacing: -.01em;
}
.close__body { font-size: 1rem; color: var(--on-navy); margin: 0 0 var(--s4); }
.btn-link {
  display: inline-block; font: 600 1.0625rem/1 var(--sans); color: var(--navy); background: var(--gold-light);
  padding: 1.05rem 2rem; text-decoration: none; transition: background .15s ease;
}
.btn-link:hover { background: var(--gold-tint); }
.close :focus-visible { outline-color: var(--gold-light); }

/* Defensive only. Anything injected site-wide is hidden here, because this
   page promises no third-party embeds. The only call to action is the
   first-party bootcamp link the page draws itself, at the very end. The
   real fix is to stop the injection reaching /hours at all. */
[class*="calendly"], [id*="calendly"] { display: none !important; }

.compare { padding: var(--s6) 0 0; }
.compare h2, .next h2 {
  font-family: var(--serif); font-weight: 700; font-size: clamp(1.6rem, 5vw, 2.1rem);
  line-height: 1.1; color: var(--navy); margin: 0 0 var(--s3); letter-spacing: -.01em;
}
.compare__line { font-size: 1.0625rem; }
.compare__verdict {
  font-family: var(--serif); font-size: clamp(1.4rem, 5vw, 1.85rem); line-height: 1.25;
  color: var(--navy); border-left: 3px solid var(--gold); padding-left: var(--s3); margin: var(--s4) 0 0;
}

.next { padding: var(--s6) 0 0; }
.framing {
  font-family: var(--serif); font-size: clamp(1.4rem, 5vw, 1.85rem); line-height: 1.25;
  color: var(--navy); margin-bottom: var(--s3); max-width: 24ch;
}
.pairings { list-style: none; margin: var(--s4) 0 0; padding: 0; }
.pairing { border-top: 1px solid var(--rule); padding: var(--s3) 0; max-width: var(--measure); display: grid; gap: .15rem; }
.pairing:last-child { border-bottom: 1px solid var(--rule); }
.pairing__task { font-weight: 600; color: var(--navy); }
.pairings__group {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem var(--s3);
  padding: var(--s4) 0 var(--s2); max-width: var(--measure);
}
.pairings__group:first-child { padding-top: 0; }
.pairings__groupname { font-family: var(--serif); font-weight: 700; font-size: clamp(1.35rem, 5vw, 1.7rem); line-height: 1.1; color: var(--navy); }
.pairings__grouphours { font-size: .85rem; font-weight: 600; letter-spacing: .03em; color: var(--gold); }
.next__kicker { font-size: .8rem; font-weight: 700; letter-spacing: .06em; color: var(--gold); margin: 0 0 var(--s2); }
.pairing { gap: .3rem; }
.pairing__ask { margin-top: .5rem; display: grid; gap: .3rem; }
.pairing__asklabel { font-size: .75rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--gold); }
.pairing__prompt {
  margin: 0; padding: .75rem var(--s3); background: var(--gray); border-left: 3px solid var(--navy);
  font-size: .95rem; line-height: 1.5; color: var(--charcoal); max-width: none;
}
.pairings__hint { font-size: .8rem; color: var(--ink-soft); margin: var(--s3) 0 0; }

/* ---- Intro ---------------------------------------------------------- */
/* The screen before step 1. No bars, no number, no glyph. The fixed
   progress and reset bars are flex/positioned, so the hidden attribute
   needs a hand here. */
.progress[hidden], .resetbar[hidden] { display: none; }

.intro__label {
  font-size: .8rem; font-weight: 700; letter-spacing: .06em; color: var(--gold);
  margin: 0 0 var(--s3);
}

/* How it works: four numbered steps, the number in the serif face */
.intro__steps {
  list-style: none; margin: 0 0 var(--s6); padding: 0; counter-reset: intro;
  display: grid; gap: var(--s4); max-width: var(--measure);
}
.intro__step {
  counter-increment: intro;
  display: grid; grid-template-columns: 2.25rem minmax(0, 1fr); gap: .2rem var(--s2);
}
.intro__step::before {
  content: counter(intro); grid-row: 1 / 3;
  font-family: var(--serif); font-weight: 700; font-size: 1.9rem; line-height: 1;
  color: var(--gold); font-variant-numeric: tabular-nums; padding-top: .1rem;
}
.intro__steptitle { font-weight: 700; color: var(--navy); line-height: 1.3; }
.intro__steptext { font-size: .95rem; line-height: 1.55; color: var(--ink-soft); }

/* What you leave with: the point of the page, so it gets the serif */
.intro__outcomes {
  list-style: none; margin: 0 0 var(--s6); padding: 0;
  display: grid; gap: var(--s3); max-width: var(--measure);
}
.intro__outcome {
  font-family: var(--serif); font-weight: 600; font-size: clamp(1.35rem, 5vw, 1.7rem);
  line-height: 1.25; color: var(--navy); border-left: 3px solid var(--gold); padding-left: var(--s3);
}

/* Before you start: three plain lines with a gold mark */
.intro__before { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; max-width: var(--measure); }
.intro__beforeitem { position: relative; padding-left: 1.1rem; font-size: .95rem; line-height: 1.55; }
.intro__beforeitem::before {
  content: ''; position: absolute; left: 0; top: .65em; width: .4rem; height: .4rem;
  background: var(--gold); border-radius: 50%;
}

.step--intro .stepnav { margin-top: var(--s6); }
.step--intro .pagefoot { margin-top: var(--s6); }

/* ---- v4: the audit ---------------------------------------------------- */
/* Which AI: big buttons, one tap */
.toolpicks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; margin: 0 0 var(--s3); }
.toolpick {
  display: grid; gap: .15rem; text-align: left; padding: 1rem 1rem .9rem; min-height: 4.5rem;
  background: var(--white); border: 2px solid var(--rule); color: var(--navy); cursor: pointer;
  font: inherit; transition: border-color .15s ease, background .15s ease;
}
.toolpick:hover { border-color: var(--navy); }
.toolpick[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: var(--white); }
.toolpick__name { font-family: var(--serif); font-weight: 700; font-size: 1.5rem; line-height: 1.05; }
.toolpick__by { font-size: .8rem; color: var(--ink-soft); }
.toolpick[aria-pressed="true"] .toolpick__by { color: var(--gold-tint); }
.pick__msg { font-size: .95rem; font-weight: 600; color: var(--gold); margin: 0 0 var(--s2); min-height: 1.4em; }

/* What to help with, what you would do: tap to pick, tap again to unpick */
.picks { display: grid; gap: .5rem; margin: 0 0 var(--s4); padding: 0; list-style: none; }
.pick {
  position: relative; display: block; width: 100%; text-align: left; padding: .85rem 3rem .85rem 1rem;
  background: var(--white); border: 2px solid var(--rule); color: var(--navy); cursor: pointer;
  font: 600 1rem/1.35 var(--sans); transition: border-color .15s ease, background .15s ease;
}
.pick:hover { border-color: var(--navy); }
.pick::after {
  content: ''; position: absolute; right: 1rem; top: 50%; width: 1.25rem; height: 1.25rem; margin-top: -.625rem;
  border: 2px solid var(--rule); border-radius: 50%; transition: background .15s ease, border-color .15s ease;
}
.pick[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: var(--white); }
.pick[aria-pressed="true"]::after {
  border-color: var(--gold-light); background: var(--gold-light);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='none' stroke='%231C3154' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round' d='M5 10.5l3.2 3.2L15 7'/%3E%3C/svg%3E");
  background-size: 80%; background-position: center; background-repeat: no-repeat;
}

/* Add your own: one line, one button */
.own { margin: 0 0 var(--s4); max-width: var(--measure); }
.own__label { display: block; font-size: .8rem; font-weight: 600; letter-spacing: .03em; color: var(--navy); margin: 0 0 .4rem; }
.own__row { display: flex; gap: .5rem; }
.own__input { flex: 1 1 auto; min-width: 0; }
.own .btn-add { margin: 0; white-space: nowrap; }

/* The numbers, folded under the picks */
.fold--adjust { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); margin: 0 0 var(--s4); }
.fold__count { font-size: .8rem; font-weight: 600; color: var(--gold); margin-left: .6rem; white-space: nowrap; }
.fold--adjust .fold__summary > span:first-child { flex: 1 1 auto; }
.fold__count:empty { display: none; }
.rows__empty { font-size: .9rem; color: var(--ink-soft); margin: 0 0 var(--s3); }
.rows__empty[hidden] { display: none; }
.fold--adjust .row:first-child { border-top: 0; }

/* Dana's day, below the fold on the intro */
.dayblock { margin-top: var(--s7); padding-top: var(--s5); border-top: 1px solid var(--rule); scroll-margin-top: 1rem; }
.dayblock__heading {
  font-family: var(--serif); font-weight: 700; font-size: clamp(1.9rem, 7vw, 2.6rem);
  line-height: 1.05; color: var(--navy); margin: 0 0 var(--s2); letter-spacing: -.01em; max-width: 18ch;
}
.dayblock__blurb { font-size: 1rem; color: var(--ink-soft); margin: 0 0 var(--s4); }
.dayblock .stepnav { margin-top: var(--s4); }
.intro__daylink {
  display: inline-block; margin-top: var(--s4); font-size: .95rem; font-weight: 600; color: var(--navy);
  text-decoration: underline; text-underline-offset: 3px;
}
.intro__daylink:hover { color: var(--gold); }
.intro__startlink { display: table; margin-top: var(--s6); }

/* The result: the starting point card */
.start { padding: var(--s5) 0 0; }
.start__cards { display: grid; gap: var(--s4); margin: 0 0 var(--s3); }
.card { background: var(--white); border: 1px solid var(--rule); border-top: 4px solid var(--gold); padding: var(--s4) var(--s3) var(--s3); max-width: var(--measure); }
.card__kicker { font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--gold); margin: 0 0 .4rem; }
.card__task {
  font-family: var(--serif); font-weight: 700; font-size: clamp(1.6rem, 6vw, 2.1rem);
  line-height: 1.1; color: var(--navy); margin: 0 0 .35rem; letter-spacing: -.01em;
}
.card__meta { font-size: .95rem; color: var(--ink-soft); margin: 0 0 var(--s2); font-variant-numeric: tabular-nums; }
.card__tool {
  font-family: var(--serif); font-weight: 700; font-size: 1.35rem; color: var(--navy);
  margin: var(--s3) 0 var(--s2); padding-top: var(--s3); border-top: 1px solid var(--rule);
}
.card__steps { padding: 0; }
.card__prompt { display: grid; gap: .4rem; margin: var(--s3) 0 0; }
.copybtn {
  justify-self: start; font: 600 .85rem/1 var(--sans); color: var(--navy); background: var(--white);
  border: 2px solid var(--navy); padding: .55rem .9rem; cursor: pointer;
}
.copybtn:hover { background: var(--navy); color: var(--white); }
.card__stick, .card__auto { display: grid; gap: .3rem; margin: var(--s3) 0 0; padding-top: var(--s3); border-top: 1px solid var(--rule); font-size: .95rem; line-height: 1.5; }
.card__auto .workflow__label { color: var(--navy); }
.card__free { font-size: .85rem; color: var(--ink-soft); margin: .5rem 0 0; }
.card .workflow__note { border-top: 0; padding: .6rem 0 0; }
.start__more { font-size: .95rem; margin: 0; max-width: var(--measure); }
.start__more:empty { display: none; }

/* Make it real: a day */
.tryday { padding: var(--s5) 0 0; }
.tryday[hidden] { display: none; }
.daypicks { display: flex; flex-wrap: wrap; gap: .45rem; margin: 0 0 var(--s3); }
.daypick {
  font: 600 .9rem/1 var(--sans); color: var(--navy); background: var(--white); border: 2px solid var(--rule);
  padding: .65rem .95rem; cursor: pointer; transition: border-color .15s ease, background .15s ease;
}
.daypick:hover { border-color: var(--navy); }
.daypick[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: var(--white); }
.tryday__line {
  font-family: var(--serif); font-size: clamp(1.25rem, 4.5vw, 1.6rem); line-height: 1.3;
  color: var(--navy); border-left: 3px solid var(--gold); padding-left: var(--s3); margin: 0; max-width: var(--measure);
}
.tryday__line:empty { display: none; }

/* How the picks sort */
.reveal { padding: var(--s5) 0 0; }
.reveal[hidden] { display: none; }
.reveal__line {
  font-family: var(--serif); font-weight: 600; font-size: clamp(1.4rem, 5vw, 1.85rem); line-height: 1.25;
  color: var(--navy); margin: 0 0 var(--s2); max-width: var(--measure);
}
.reveal__why { font-size: 1rem; margin: 0; max-width: var(--measure); }
.reveal .fold { border-bottom: 1px solid var(--rule); }
.step--result .wrap > .fold { border-top: 1px solid var(--rule); margin-top: var(--s4); }
.step--result .wrap > .fold:last-of-type { border-bottom: 1px solid var(--rule); }
.step--result .wrap > .fold[hidden] { display: none; }
.money__btn { margin-top: var(--s4); }
.money__btn[hidden] { display: none; }
.rate[hidden] { display: none; }
.rate { scroll-margin-top: 1rem; }
.breakdown { padding: 0 0 var(--s3); }
.plan { padding: 0 0 var(--s3); }
.step--result .next { padding: 0 0 var(--s3); }

/* Two doors */
.doors { padding: var(--s6) 0 0; }
.doorpicks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; margin: 0 0 var(--s3); max-width: var(--measure); }
.doorpick {
  font: 600 1.05rem/1.2 var(--sans); color: var(--navy); background: var(--white); border: 2px solid var(--rule);
  padding: 1rem; cursor: pointer; transition: border-color .15s ease, background .15s ease;
}
.doorpick:hover { border-color: var(--navy); }
.doorpick[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: var(--white); }
.door { margin-top: 0; }
.door[hidden] { display: none; }
.door__alt { margin: var(--s3) 0 0; font-size: .9rem; }
.door__alt .workflow__link { color: var(--gold-tint); }
.door__alt .workflow__link:hover { color: var(--white); }
.step--result .stepnav { margin-top: var(--s5); }

/* ---- Dana's day as pictures ------------------------------------------ */
.day__pics { display: grid; gap: var(--s3); margin: 0 0 var(--s4); max-width: 44rem; }
.day__pic { display: block; width: 100%; height: auto; border-radius: 12px; box-shadow: 0 8px 28px rgba(28, 49, 84, .12); }
.fold--daytext { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); margin: 0 0 var(--s4); }
.day__text { padding: var(--s3) 0 var(--s2); }

/* ---- Footer -------------------------------------------------------- */
.pagefoot { margin-top: var(--s7); padding: var(--s4) 0 var(--s5); border-top: 1px solid var(--rule); }
.pagefoot p { font-size: .8rem; line-height: 1.55; color: var(--ink-soft); margin: 0 0 var(--s2); }

/* ---- Desktop -------------------------------------------------------- */
@media (min-width: 768px) {
  body { font-size: 1.1875rem; padding-bottom: 5rem; }
  body.is-typing .totalbar { display: flex; }
  .totalbar__value { font-size: 2.6rem; }
  .totalbar__label { font-size: .85rem; max-width: 24ch; }
  .wrap { max-width: 46rem; padding: 0 2rem; }
  .band { padding: 4.75rem 0 var(--s6); margin-bottom: var(--s6); }
  .band__title { font-size: clamp(3.4rem, 6vw, 4.5rem); }
  .result__figure { padding: 4rem 0 var(--s6); }
  .result__value { font-size: clamp(7rem, 13vw, 11rem); }
  .totalbar { padding: .7rem 2rem; }
  .totalbar__value { font-size: 2.6rem; }
  .row { grid-template-columns: minmax(0, 1fr) 8rem auto; }
  .field-hours { grid-column: 2; max-width: none; }
  .field-share { grid-column: 1 / -1; }
  .row-remove { grid-column: 3; grid-row: 1; align-self: end; padding-bottom: .8rem; }
  .insights { padding: var(--s6) 0 var(--s5); }
  .qbar__bar { height: 18px; }
  .day__moment { padding-left: 2rem; }
  .workflow__step { grid-template-columns: 5rem minmax(0, 1fr); }
  .intro__step { grid-template-columns: 2.75rem minmax(0, 1fr); }
  .intro__step::before { font-size: 2.2rem; }
  .toolpicks { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .picks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .picks li:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .card { padding: var(--s4) var(--s4) var(--s4); }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
