/* NO BS Power Wash — one hand-written stylesheet, no framework.
   The palette is lifted straight off the logo: deep navy ink, electric blue as
   the brand, and the trigger orange reserved for the one thing on a page that
   must be acted on. Barlow Condensed for display, Barlow for everything else,
   because the logo is a heavy condensed italic and the type should agree.
   The audience opens this on a phone in a driveway, so the payload stays small
   and there is no client framework. */

:root {
  /* Ground and surfaces */
  --ground: #f4f7fa;
  --surface: #ffffff;
  --surface-2: #eef3f8;
  --surface-3: #e0e9f2;

  /* Ink */
  --ink: #0e2033;
  --ink-2: #14293f;
  --slate: #3a5570;
  --muted: #67819a;
  --faint: #93a8bd;

  /* ProWash blue */
  --brand: #29abe2;
  --brand-deep: #0e7cb0;   /* passes contrast as text on white */
  --brand-light: #59c8f5;
  --brand-wash: #e7f5fd;
  --brand-edge: #b6e3f8;

  /* Trigger orange, straight off the logo. Used only where the logo uses it:
     the primary action and the one thing on a page that must be looked at. */
  --orange: #f26522;
  --orange-deep: #cf4f10;
  --orange-light: #ff8a4c;
  --orange-wash: #fff1e9;
  --orange-edge: #ffd6bf;

  /* Deep navy from the logo lockup, for inverted bands */
  --navy: #14293f;
  --navy-deep: #0e2033;

  /* Support */
  --gold: #f5a524;
  --green: #12925a;
  --green-wash: #e6f6ef;
  --red: #d7263d;
  --red-wash: #fdecee;

  --line: #dfe7ef;
  --line-2: #c6d4e2;

  --radius: 14px;
  --radius-sm: 9px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(14, 32, 51, .06), 0 2px 8px -4px rgba(14, 32, 51, .1);
  --shadow: 0 2px 4px rgba(14, 32, 51, .04), 0 12px 28px -12px rgba(14, 32, 51, .18);
  --shadow-lg: 0 24px 60px -24px rgba(14, 32, 51, .3);

  --max: 1180px;
  --font: "Barlow", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --display: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  --serif: "Barlow", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--ground);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-deep); text-decoration: none; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3, h4 { line-height: 1.08; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.015em; text-wrap: balance; }
h1, h2 { font-family: var(--display); font-weight: 800; text-transform: uppercase; letter-spacing: .002em; }
h1 { font-size: clamp(2.5rem, 6.4vw, 4.4rem); font-weight: 800; }
h2 { font-size: clamp(1.85rem, 4vw, 2.8rem); }
h3 { font-size: 1.16rem; font-weight: 650; }
h4 { font-size: .98rem; }
p { margin: 0 0 1em; }

code {
  background: var(--surface-2); padding: .12em .42em; border-radius: 5px;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: .88em; color: var(--brand-deep);
}

.wrap { width: min(100% - 2.4rem, var(--max)); margin-inline: auto; }
.wrap-narrow { width: min(100% - 2.4rem, 760px); margin-inline: auto; }
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section--tight { padding: clamp(2rem, 4vw, 3rem) 0; }
.section--alt { background: var(--surface); border-block: 1px solid var(--line); }
.center { text-align: center; }
.muted { color: var(--muted); }
.dim { color: var(--faint); }
.serif { font-family: var(--serif); }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.mt-1 { margin-top: .6rem; } .mt-2 { margin-top: 1.2rem; } .mt-3 { margin-top: 2rem; }
.hide { display: none !important; }
.num { font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------------ nav -- */

.nav {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav__inner { display: flex; align-items: center; gap: 1.1rem; height: 96px; }
.brand { display: flex; align-items: center; gap: .65rem; color: var(--ink); flex: none; }
.brand__logo { height: 74px; width: auto; max-width: 300px; object-fit: contain; }
@media (max-width: 960px) { .brand__logo { height: 62px; max-width: 250px; } }
@media (max-width: 480px) { .brand__logo { height: 52px; max-width: 210px; } }
/* Fallback lockup when no logo image is set in admin settings */
.brand__text { font-family: var(--display); font-weight: 800; font-size: 1.35rem; text-transform: uppercase; letter-spacing: .01em; line-height: 1; }
.brand__text small { display: block; font-family: var(--font); font-size: .62rem; font-weight: 600; color: var(--brand-deep); letter-spacing: .18em; margin-top: 3px; }
.nav__links { display: flex; gap: .15rem; margin-left: auto; align-items: center; }
.nav__links a { color: var(--slate); padding: .5rem .7rem; border-radius: 8px; font-size: .93rem; font-weight: 500; }
.nav__links a:hover { color: var(--ink); background: var(--surface-2); }
.nav__links a.is-active { color: var(--brand-deep); }
.nav__toggle {
  display: none; margin-left: auto; background: var(--surface); border: 1px solid var(--line-2);
  color: var(--ink); width: 44px; height: 40px; border-radius: 10px; font-size: 1.1rem; cursor: pointer;
}
.nav__phone { font-weight: 700; color: var(--ink); white-space: nowrap; }

@media (max-width: 960px) {
  .nav__inner { height: 84px; }
  .nav__toggle { display: block; }
  .nav__links {
    position: absolute; top: 84px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    background: var(--surface); border-bottom: 1px solid var(--line); padding: .6rem; gap: .1rem; display: none;
    box-shadow: var(--shadow);
  }
  .nav__links.is-open { display: flex; }
  .nav__links a { padding: .75rem .8rem; }
  .nav__links .btn { text-align: center; justify-content: center; }
}

/* --------------------------------------------------------------- buttons -- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .78rem 1.3rem; border-radius: 10px; font-weight: 650; font-size: .95rem;
  border: 1px solid transparent; cursor: pointer; font-family: inherit; line-height: 1.2; text-align: center;
  transition: transform .12s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn--primary {
  background: linear-gradient(160deg, var(--orange-light), var(--orange));
  color: #fff; box-shadow: 0 4px 14px -4px rgba(242, 101, 34, .5);
}
.btn--primary:hover { color: #fff; box-shadow: 0 9px 24px -6px rgba(242, 101, 34, .62); }
.btn--blue {
  background: linear-gradient(160deg, var(--brand-light), var(--brand));
  color: #fff; box-shadow: 0 4px 14px -4px rgba(41, 171, 226, .5);
}
.btn--blue:hover { color: #fff; box-shadow: 0 9px 24px -6px rgba(41, 171, 226, .62); }
.btn--ghost { background: var(--surface); border-color: var(--line-2); color: var(--ink); }
.btn--ghost:hover { border-color: var(--brand); color: var(--brand-deep); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: var(--ink-2); color: #fff; }
.btn--soft { background: var(--brand-wash); color: var(--brand-deep); border-color: var(--brand-edge); }
.btn--soft:hover { background: #d9f1fd; color: var(--brand-deep); }
.btn--danger { background: transparent; border-color: rgba(215, 38, 61, .4); color: var(--red); }
.btn--sm { padding: .45rem .8rem; font-size: .85rem; border-radius: 8px; }
.btn--lg { padding: 1rem 1.8rem; font-size: 1.03rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ----------------------------------------------------------------- hero --- */

.hero { position: relative; overflow: hidden; padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(2.5rem, 6vw, 4rem); }
.hero::before {
  content: ""; position: absolute; inset: -40% -20% auto -20%; height: 700px; pointer-events: none;
  background:
    radial-gradient(45% 55% at 25% 35%, rgba(0, 168, 232, .16), transparent 70%),
    radial-gradient(40% 50% at 85% 15%, rgba(77, 201, 246, .18), transparent 70%);
}
.hero__grid { display: grid; gap: 2.6rem; grid-template-columns: 1.08fr .92fr; align-items: center; position: relative; }
@media (max-width: 1000px) { .hero__grid { grid-template-columns: 1fr; } }
.hero h1 { margin-bottom: .5rem; }
.hero h1 em { font-style: normal; color: var(--brand-deep); }
.hero__lede { font-size: clamp(1.02rem, 1.9vw, 1.16rem); color: var(--slate); max-width: 34em; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.5rem; }
.hero__points { display: grid; gap: .5rem; margin: 1.5rem 0 0; padding: 0; list-style: none; }
.hero__points li { display: flex; gap: .6rem; align-items: flex-start; color: var(--slate); font-size: .95rem; }
.hero__points li::before {
  content: "✓"; color: var(--brand-deep); font-weight: 800; flex: none;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem; text-transform: uppercase; letter-spacing: .15em;
  font-size: .72rem; font-weight: 700; color: var(--brand-deep); margin-bottom: .9rem;
}
.eyebrow::before { content: ""; width: 24px; height: 2px; background: var(--brand); border-radius: 2px; }
.eyebrow--center { justify-content: center; }

/* Google-style rating row, matching the ProWash site */
.rating { display: inline-flex; align-items: center; gap: .55rem; font-size: .9rem; color: var(--slate); font-weight: 500; }
.stars { color: var(--gold); letter-spacing: .06em; font-size: .95rem; }

/* ---------------------------------------------------------------- cards --- */

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.35rem; box-shadow: var(--shadow-sm);
}
.card--pad { padding: 1.85rem; }
.card--flat { box-shadow: none; }
.card--brand { background: var(--brand-wash); border-color: var(--brand-edge); }
.grid { display: grid; gap: 1.1rem; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.15rem 1.25rem; }
.stat__n { font-size: 1.9rem; font-weight: 800; letter-spacing: -.035em; color: var(--ink); line-height: 1.05; font-variant-numeric: tabular-nums; }
.stat__l { font-size: .76rem; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; margin-top: .3rem; font-weight: 600; }

.chip {
  display: inline-block; padding: .22rem .62rem; border-radius: 999px; font-size: .71rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .07em; background: var(--brand-wash); color: var(--brand-deep);
  border: 1px solid var(--brand-edge);
}
.chip--green { background: var(--green-wash); color: var(--green); border-color: #b9e6d1; }
.chip--gold { background: #fef5e4; color: #a06a08; border-color: #f6dfb5; }
.chip--grey { background: var(--surface-2); color: var(--muted); border-color: var(--line); }
.chip--red { background: var(--red-wash); color: var(--red); border-color: #f6ccd2; }

/* ------------------------------------------------- before / after slider -- */
/* The source photos are 50/50 composites, so both halves come from one file:
   the layer is sized to 200% width and shifted, and the top layer is clipped. */

.ba {
  position: relative; aspect-ratio: 1 / 1; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); background: var(--surface-3); touch-action: pan-y;
  cursor: ew-resize; user-select: none; box-shadow: var(--shadow-sm);
}
.ba__layer { position: absolute; inset: 0; background-size: 200% 100%; background-repeat: no-repeat; }
.ba__after { background-position: 100% 50%; }
.ba__before { background-position: 0 50%; width: 50%; border-right: 2px solid #fff; }
.ba__handle {
  position: absolute; top: 0; bottom: 0; left: 50%; width: 44px; transform: translateX(-50%);
  display: grid; place-items: center; pointer-events: none;
}
.ba__grip {
  width: 40px; height: 40px; border-radius: 50%; background: #fff; box-shadow: var(--shadow);
  display: grid; place-items: center; color: var(--brand-deep); font-size: .95rem; font-weight: 800;
}
.ba__tag {
  position: absolute; bottom: .7rem; font-size: .68rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; padding: .25rem .6rem; border-radius: 999px;
  background: rgba(14, 32, 51, .72); color: #fff; backdrop-filter: blur(4px);
}
.ba__tag--before { left: .7rem; }
.ba__tag--after { right: .7rem; }
.ba__caption { font-size: .88rem; color: var(--muted); margin-top: .6rem; }
.ba:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
@media (max-width: 900px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .gallery { grid-template-columns: 1fr; } }

.photo { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo--tall { aspect-ratio: 3 / 4; }
.photo--wide { aspect-ratio: 16 / 10; }

/* ----------------------------------------------------------- curriculum --- */

.phase-label { font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin: 2rem 0 .8rem; font-weight: 700; }
.module { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); margin-bottom: .75rem; overflow: hidden; box-shadow: var(--shadow-sm); }
.module__head {
  display: flex; gap: 1rem; align-items: center; padding: 1.05rem 1.2rem; cursor: pointer; width: 100%;
  background: none; border: 0; color: inherit; font: inherit; text-align: left;
}
.module__head:hover { background: var(--surface-2); }
.module__n {
  width: 40px; height: 40px; flex: none; border-radius: 10px; background: var(--brand-wash);
  border: 1px solid var(--brand-edge); display: grid; place-items: center; font-weight: 800;
  color: var(--brand-deep); font-size: .92rem;
}
.module.is-done .module__n { background: var(--green-wash); border-color: #b9e6d1; color: var(--green); }
.module__title { font-weight: 650; font-size: 1.02rem; letter-spacing: -.015em; }
.module__meta { color: var(--muted); font-size: .82rem; margin-top: .1rem; }
.module__right { margin-left: auto; display: flex; align-items: center; gap: .8rem; color: var(--muted); font-size: .85rem; }
.module__body { display: none; border-top: 1px solid var(--line); padding: .4rem .5rem .7rem; }
.module.is-open .module__body { display: block; }
.module.is-open .module__chev { transform: rotate(180deg); }
.module__chev { transition: transform .18s ease; color: var(--faint); }

.lesson-row {
  display: flex; gap: .8rem; align-items: center; padding: .6rem .75rem; border-radius: var(--radius-sm);
  color: var(--slate); font-size: .93rem;
}
.lesson-row:hover { background: var(--surface-2); color: var(--ink); }
.lesson-row__icon { width: 22px; flex: none; text-align: center; color: var(--faint); }
.lesson-row.is-complete .lesson-row__icon { color: var(--green); }
.lesson-row__meta { margin-left: auto; font-size: .8rem; color: var(--faint); display: flex; gap: .5rem; align-items: center; white-space: nowrap; }
.lesson-row.is-locked { opacity: .6; }

.progress { height: 8px; background: var(--surface-3); border-radius: 99px; overflow: hidden; }
.progress__bar { height: 100%; background: linear-gradient(90deg, var(--brand), var(--brand-light)); border-radius: 99px; transition: width .5s cubic-bezier(.4, 0, .2, 1); }
.progress--thin { height: 5px; }

/* Animated progress ring for the dashboard */
.ring { display: grid; place-items: center; position: relative; width: 108px; height: 108px; }
.ring svg { transform: rotate(-90deg); width: 108px; height: 108px; }
.ring circle { fill: none; stroke-width: 9; stroke-linecap: round; }
.ring__track { stroke: var(--surface-3); }
.ring__value { stroke: url(#ringGradient); transition: stroke-dashoffset 1.1s cubic-bezier(.4, 0, .2, 1); }
.ring__label { position: absolute; text-align: center; }
.ring__pct { font-size: 1.45rem; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.ring__sub { font-size: .68rem; color: var(--muted); text-transform: uppercase; letter-spacing: .09em; font-weight: 600; }

/* --------------------------------------------------------------- pricing -- */

.plans { display: grid; gap: 1.2rem; grid-template-columns: repeat(3, 1fr); align-items: start; }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; } }
.plan { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.8rem; box-shadow: var(--shadow-sm); }
.plan--popular { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-wash), var(--shadow); }
.plan__badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(160deg, var(--brand-light), var(--brand)); color: #fff; font-size: .69rem;
  font-weight: 800; padding: .3rem .85rem; border-radius: 999px; text-transform: uppercase;
  letter-spacing: .08em; white-space: nowrap; box-shadow: 0 4px 12px -4px rgba(0, 168, 232, .6);
}
.plan__price { font-size: 2.6rem; font-weight: 800; letter-spacing: -.04em; color: var(--ink); line-height: 1; margin: .8rem 0 .3rem; }
.plan__compare { color: var(--faint); text-decoration: line-through; font-size: 1rem; margin-left: .4rem; font-weight: 500; }
.plan__features { list-style: none; padding: 0; margin: 1.2rem 0; display: grid; gap: .55rem; }
.plan__features li { display: flex; gap: .55rem; font-size: .92rem; color: var(--slate); align-items: flex-start; }
.plan__features li::before { content: "✓"; color: var(--brand-deep); font-weight: 800; flex: none; }

/* ----------------------------------------------------------------- forms -- */

label { display: block; font-size: .85rem; font-weight: 600; color: var(--slate); margin-bottom: .35rem; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=tel], input[type=url],
input[type=date], select, textarea {
  width: 100%; padding: .72rem .85rem; border-radius: 10px; background: var(--surface); color: var(--ink);
  border: 1px solid var(--line-2); font-family: inherit; font-size: .95rem;
}
/* A background shorthand here would wipe the custom chevron — set the image only. */
select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='%236b7a8d' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .85rem center; background-size: 11px;
  padding-right: 2.2rem;
}
textarea { min-height: 120px; resize: vertical; line-height: 1.55; }
input:focus, select:focus, textarea:focus { outline: 3px solid var(--brand-wash); border-color: var(--brand); }
.field { margin-bottom: 1rem; }
.field__hint { font-size: .8rem; color: var(--muted); margin-top: .3rem; }
.field-row { display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; }
@media (max-width: 620px) { .field-row { grid-template-columns: 1fr; } }
.check { display: flex; gap: .6rem; align-items: flex-start; font-size: .92rem; color: var(--slate); margin-bottom: .6rem; }
.check input { margin-top: .25rem; width: 17px; height: 17px; accent-color: var(--brand); flex: none; }

/* Range slider paired with a number box */
.slider-row { display: grid; grid-template-columns: 1fr 5.2rem; gap: .7rem; align-items: center; }
input[type=range] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 99px;
  background: var(--surface-3); outline: none; margin: 0;
}
input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 22px; height: 22px; border-radius: 50%;
  background: #fff; border: 3px solid var(--brand); cursor: grab; box-shadow: var(--shadow-sm);
}
input[type=range]::-moz-range-thumb {
  width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 3px solid var(--brand);
  cursor: grab; box-shadow: var(--shadow-sm);
}
input[type=range]:active::-webkit-slider-thumb { cursor: grabbing; }
.slider-row input[type=number] { padding: .5rem .6rem; text-align: center; font-variant-numeric: tabular-nums; }

.flash { padding: .85rem 1.1rem; border-radius: 10px; margin-bottom: 1.2rem; font-size: .93rem; border: 1px solid; }
.flash--success { background: var(--green-wash); border-color: #b9e6d1; color: #0c6b42; }
.flash--error { background: var(--red-wash); border-color: #f6ccd2; color: #a51828; }

/* ----------------------------------------------------------------- video -- */

.video { position: relative; aspect-ratio: 16 / 9; background: var(--surface-3); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.video iframe, .video video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video--placeholder { display: grid; place-items: center; text-align: center; padding: 1.5rem; background: linear-gradient(160deg, var(--brand-wash), var(--surface-2)); }
.video--placeholder p { color: var(--muted); font-size: .9rem; max-width: 34em; margin: .8rem auto 0; }

/* ------------------------------------------------------------------ app --- */

body.app { background: var(--ground); }
.app-shell { display: grid; grid-template-columns: 256px 1fr; min-height: 100vh; }
@media (max-width: 980px) { .app-shell { grid-template-columns: 1fr; } }
.side { background: var(--surface); border-right: 1px solid var(--line); padding: 1.1rem .9rem; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
@media (max-width: 980px) { .side { position: static; height: auto; border-right: 0; border-bottom: 1px solid var(--line); } }
.side__group { margin-bottom: 1.3rem; }
.side__label { font-size: .69rem; letter-spacing: .15em; text-transform: uppercase; color: var(--faint); padding: 0 .6rem; margin-bottom: .45rem; font-weight: 700; }
.side a { display: flex; align-items: center; gap: .6rem; padding: .55rem .65rem; border-radius: 9px; color: var(--slate); font-size: .92rem; font-weight: 500; }
.side a:hover { background: var(--surface-2); color: var(--ink); }
.side a.is-active { background: var(--brand-wash); color: var(--brand-deep); font-weight: 600; }
.main { padding: clamp(1.2rem, 3vw, 2.2rem); max-width: 100%; overflow-x: hidden; }
.main--narrow { max-width: 900px; }

.page-head { display: flex; flex-wrap: wrap; gap: 1rem; align-items: flex-end; margin-bottom: 1.6rem; }
.page-head h1 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 0; }
.page-head__actions { margin-left: auto; display: flex; gap: .6rem; flex-wrap: wrap; }

/* ---------------------------------------------------------------- search -- */

.searchbar { position: relative; margin-bottom: 1.2rem; }
.searchbar input { padding-left: 2.5rem; }
.searchbar::before {
  content: "⌕"; position: absolute; left: .85rem; top: 50%; transform: translateY(-50%);
  color: var(--faint); font-size: 1.2rem; pointer-events: none;
}
.filter-row { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-bottom: 1.2rem; }
.filter-btn {
  padding: .42rem .85rem; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface);
  color: var(--slate); font-size: .85rem; font-weight: 600; cursor: pointer; font-family: inherit;
}
.filter-btn:hover { border-color: var(--brand); color: var(--brand-deep); }
.filter-btn.is-active { background: var(--brand); border-color: var(--brand); color: #fff; }
.result-count { font-size: .85rem; color: var(--muted); margin-left: auto; }

/* Command palette */
.palette-backdrop {
  position: fixed; inset: 0; background: rgba(14, 32, 51, .45); backdrop-filter: blur(3px);
  z-index: 200; display: grid; place-items: start center; padding: 12vh 1rem 1rem;
}
.palette { width: min(100%, 620px); background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden; }
.palette input { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 1.05rem 1.2rem; font-size: 1.02rem; }
.palette input:focus { outline: none; border-color: var(--brand); }
.palette__results { max-height: 52vh; overflow-y: auto; }
.palette__item { display: flex; gap: .8rem; align-items: center; padding: .7rem 1.2rem; cursor: pointer; border-bottom: 1px solid var(--surface-2); }
.palette__item:hover, .palette__item.is-active { background: var(--brand-wash); }
.palette__item strong { font-size: .93rem; font-weight: 600; display: block; }
.palette__item span { font-size: .8rem; color: var(--muted); }
.palette__kind { margin-left: auto; font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; color: var(--faint); font-weight: 700; white-space: nowrap; }
.palette__empty { padding: 1.6rem 1.2rem; color: var(--muted); font-size: .92rem; text-align: center; }
.kbd {
  display: inline-block; padding: .1rem .38rem; border-radius: 5px; border: 1px solid var(--line-2);
  background: var(--surface-2); font-size: .72rem; font-family: ui-monospace, Menlo, monospace; color: var(--muted);
}

/* ---------------------------------------------------------------- tables -- */

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 520px; }
th, td { padding: .7rem .85rem; text-align: left; border-bottom: 1px solid var(--line); }
th { background: var(--surface-2); font-size: .73rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }
tbody tr:hover { background: var(--surface-2); }
tbody tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }

/* ----------------------------------------------------------------- prose -- */

.prose { font-family: var(--serif); font-size: 1.12rem; line-height: 1.72; color: var(--ink-2); }
.prose h2 { font-family: var(--font); font-size: 1.5rem; margin-top: 2.2rem; color: var(--ink); }
.prose h3 { font-family: var(--font); font-size: 1.18rem; margin-top: 1.9rem; color: var(--ink); }
.prose h4 { font-family: var(--font); font-size: 1rem; margin-top: 1.4rem; color: var(--brand-deep); }
.prose ul, .prose ol { padding-left: 1.3rem; margin: 0 0 1.1rem; }
.prose li { margin-bottom: .45rem; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose blockquote {
  margin: 1.4rem 0; padding: .9rem 1.2rem; border-left: 3px solid var(--brand);
  background: var(--brand-wash); border-radius: 0 10px 10px 0; color: var(--slate); font-style: italic;
}
.prose table { min-width: 420px; font-family: var(--font); }
.prose code { font-family: ui-monospace, Menlo, monospace; }
.callout {
  background: #fff8ea; border: 1px solid #f6dfb5; border-left: 3px solid var(--gold); border-radius: 0 12px 12px 0;
  padding: 1rem 1.15rem; margin: 1.4rem 0; color: #7a5410; font-size: .98rem; font-family: var(--font);
}

/* --------------------------------------------------------------- lesson --- */

.lesson-grid { display: grid; grid-template-columns: 1fr 330px; gap: 1.8rem; align-items: start; }
@media (max-width: 1080px) { .lesson-grid { grid-template-columns: 1fr; } }
.lesson-aside { position: sticky; top: 1rem; display: grid; gap: 1rem; }
.action-item { display: flex; gap: .65rem; align-items: flex-start; padding: .55rem 0; border-bottom: 1px solid var(--line); font-size: .93rem; }
.action-item:last-child { border-bottom: 0; }
.action-item input { margin-top: .25rem; width: 18px; height: 18px; accent-color: var(--green); flex: none; }
.action-item.is-done span { text-decoration: line-through; color: var(--faint); }
.lesson-nav { display: flex; gap: .8rem; justify-content: space-between; margin-top: 2rem; flex-wrap: wrap; }

/* Reading progress bar pinned to the top of a lesson */
.readbar { position: fixed; top: 0; left: 0; height: 3px; background: linear-gradient(90deg, var(--brand), var(--brand-light)); z-index: 100; width: 0; }

/* ---------------------------------------------------------------- tools --- */

.tool-grid { display: grid; grid-template-columns: 390px 1fr; gap: 1.6rem; align-items: start; }
@media (max-width: 980px) { .tool-grid { grid-template-columns: 1fr; } }
.result-big { font-size: 2.6rem; font-weight: 800; color: var(--brand-deep); letter-spacing: -.04em; line-height: 1; }
.result-row { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.result-row:last-child { border-bottom: 0; }
.result-row strong { font-variant-numeric: tabular-nums; }
.range-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; text-align: center; margin-bottom: 1.1rem; }
.range-row > div { background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: .9rem .5rem; }
.range-row b { display: block; font-size: 1.3rem; color: var(--ink); margin-top: .2rem; font-variant-numeric: tabular-nums; letter-spacing: -.03em; }
.range-row .lbl { font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.range-row .is-pick { background: var(--brand-wash); border-color: var(--brand); }
.range-row .is-pick b { color: var(--brand-deep); }

/* Price scale: floor → quote → stretch */
.pricebar { position: relative; height: 46px; margin: 1.2rem 0 1.6rem; }
.pricebar__track { position: absolute; top: 18px; left: 0; right: 0; height: 8px; border-radius: 99px; background: linear-gradient(90deg, #f6dfb5, var(--brand-light), var(--brand)); }
.pricebar__pin { position: absolute; top: 6px; width: 2px; height: 32px; background: var(--ink); border-radius: 2px; transition: left .35s ease; }
.pricebar__pin::after {
  content: attr(data-label); position: absolute; top: -18px; left: 50%; transform: translateX(-50%);
  font-size: .66rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); white-space: nowrap;
}

/* --------------------------------------------------------------- footer --- */

.footer { border-top: 1px solid var(--line); padding: 3rem 0 2rem; margin-top: 3rem; background: var(--surface); }
.footer__grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 2rem; }
@media (max-width: 820px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
.footer h4 { font-size: .75rem; text-transform: uppercase; letter-spacing: .12em; color: var(--faint); margin-bottom: .7rem; }
.footer a { display: block; color: var(--slate); font-size: .9rem; padding: .2rem 0; }
.footer a:hover { color: var(--brand-deep); }
.footer__base { border-top: 1px solid var(--line); margin-top: 2rem; padding-top: 1.2rem; color: var(--muted); font-size: .82rem; display: flex; flex-wrap: wrap; gap: .8rem; justify-content: space-between; }

/* ------------------------------------------------------------ utilities --- */

.split { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.split--between { justify-content: space-between; }
.tabs { display: flex; gap: .3rem; border-bottom: 1px solid var(--line); margin-bottom: 1.4rem; overflow-x: auto; }
.tabs a, .tabs button {
  padding: .6rem .9rem; color: var(--muted); font-size: .9rem; font-weight: 600; border: 0; background: none;
  cursor: pointer; border-bottom: 2px solid transparent; white-space: nowrap; font-family: inherit;
}
.tabs a.is-active, .tabs button.is-active { color: var(--brand-deep); border-bottom-color: var(--brand); }
details.acc { border: 1px solid var(--line); border-radius: 12px; padding: 1rem 1.2rem; background: var(--surface); margin-bottom: .7rem; }
details.acc summary { cursor: pointer; font-weight: 600; list-style: none; }
details.acc summary::-webkit-details-marker { display: none; }
details.acc summary::after { content: "+"; float: right; color: var(--brand); font-weight: 800; }
details.acc[open] summary::after { content: "–"; }
details.acc p { margin: .9rem 0 0; color: var(--slate); font-size: .95rem; }

.avatar {
  width: 40px; height: 40px; border-radius: 50%; background: var(--brand-wash); border: 1px solid var(--brand-edge);
  display: grid; place-items: center; font-weight: 700; color: var(--brand-deep); font-size: .85rem; flex: none;
}

.locked-note { background: var(--surface); border: 1px dashed var(--line-2); border-radius: var(--radius); padding: 2rem; text-align: center; }

.quote-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow-sm); }
.quote-card p { font-family: var(--serif); font-size: 1.02rem; color: var(--ink-2); }

/* Toast for saved states and completions */
.toast {
  position: fixed; left: 50%; bottom: 1.5rem; transform: translate(-50%, 120%);
  background: var(--ink); color: #fff; padding: .8rem 1.3rem; border-radius: 999px; font-size: .92rem;
  font-weight: 600; box-shadow: var(--shadow-lg); z-index: 300; transition: transform .35s cubic-bezier(.2, .8, .2, 1);
  display: flex; align-items: center; gap: .6rem;
}
.toast.is-up { transform: translate(-50%, 0); }

@media print {
  body { background: #fff; }
  .no-print, .nav, .footer, .side, .readbar { display: none !important; }
  .card, .table-wrap { border-color: #ddd; box-shadow: none; }
}

/* ------------------------------------------------- NO BS identity pieces -- */

/* Inverted navy band, echoing the plate the logo sits on. */
.band-navy {
  background:
    radial-gradient(60% 90% at 85% 10%, rgba(41, 171, 226, .22), transparent 65%),
    linear-gradient(160deg, var(--navy), var(--navy-deep));
  color: #fff;
  border-block: 0;
}
.band-navy h1, .band-navy h2, .band-navy h3, .band-navy h4 { color: #fff; }
.band-navy p { color: #c3d3e2; }
.band-navy .muted, .band-navy .dim { color: #93a8bd; }
.band-navy .eyebrow { color: var(--brand-light); }
.band-navy .eyebrow::before { background: var(--orange); }
.band-navy .card { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .14); box-shadow: none; }
.band-navy .card p { color: #b9cbdb; }
.band-navy .stat { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .14); }
.band-navy .stat__n { color: #fff; }
.band-navy .stat__l { color: #93a8bd; }
.band-navy a { color: var(--brand-light); }
.band-navy .btn--ghost { background: transparent; border-color: rgba(255, 255, 255, .3); color: #fff; }
.band-navy .btn--ghost:hover { border-color: var(--brand-light); color: var(--brand-light); }

/* The house voice: a blunt statement set in the display face. */
.shout {
  font-family: var(--display);
  font-weight: 800;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: .01em;
  line-height: 1.02;
  font-size: clamp(1.7rem, 3.6vw, 2.6rem);
}
.shout em { font-style: italic; color: var(--brand); }
.band-navy .shout em { color: var(--brand-light); }

/* Orange rule used to mark the one thing that matters in a block. */
.rule-orange { width: 54px; height: 4px; background: var(--orange); border-radius: 3px; margin-bottom: 1.1rem; }

.chip--orange { background: var(--orange-wash); color: var(--orange-deep); border-color: var(--orange-edge); }

/* Section eyebrows sit in the condensed face too. */
.eyebrow { font-family: var(--display); font-size: .86rem; letter-spacing: .18em; }

/* The plan badge and the ring pick up the orange so the eye lands there. */
.plan--popular { border-color: var(--orange); box-shadow: 0 0 0 3px var(--orange-wash), var(--shadow); }
.plan__badge { background: linear-gradient(160deg, var(--orange-light), var(--orange)); box-shadow: 0 4px 12px -4px rgba(242, 101, 34, .6); }
.plan__price { font-family: var(--display); font-size: 3.1rem; }

.stat__n, .result-big, .ring__pct, .range-row b { font-family: var(--display); }
.module__n { font-family: var(--display); font-size: 1.05rem; }
.module__title { font-weight: 600; }
.filter-btn.is-active { background: var(--navy); border-color: var(--navy); }
.ba__grip { color: var(--orange); }
.ba__tag--after { background: rgba(41, 171, 226, .92); }

/* Prose is set in Barlow at a slightly larger size — no serif in this brand. */
.prose { font-size: 1.07rem; line-height: 1.7; }
.prose h2, .prose h3 { text-transform: none; letter-spacing: -.015em; font-family: var(--font); font-weight: 700; }
.prose blockquote { font-style: normal; border-left-color: var(--orange); background: var(--orange-wash); color: var(--slate); }
