/* HourMason — Theme A: Serif analytics
   Reference: Steep (styles.refero.design) — serif display on near-white,
   one warm peach accent rationed to functional emphasis.
   Class names match theme-eggshell.css; only the visual world differs. */

:root {
  --paper: #FFFFFF;
  --paper-2: #FAFAFB;
  --card: #F2F2F3;
  --ink: #17191C;
  --ink-2: #55585F;
  --ink-3: #64686F;
  --rule: #E6E6E8;
  --rule-strong: #C9CACE;
  --accent: #8A3D22;
  --accent-wash: #FBE1D1;
  --on-accent-wash: #5D2A1A;
  --on-accent: #FFFFFF;

  --sans: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;

  --measure: 68ch;
  --gut: clamp(20px, 5vw, 40px);
  --radius: 100px;
  --radius-card: 20px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-mode="light"]) {
    --paper: #121316;
    --paper-2: #17191C;
    --card: #1D1F23;
    --ink: #F2F2F3;
    --ink-2: #B9BCC3;
    --ink-3: #9196A0;
    --rule: #2A2D33;
    --rule-strong: #3E424A;
    --accent: #F0B493;
    --accent-wash: #33231A;
    --on-accent-wash: #F7D9C4;
    --on-accent: #17191C;
  }
}
:root[data-mode="dark"] {
  --paper: #121316;
  --paper-2: #17191C;
  --card: #1D1F23;
  --ink: #F2F2F3;
  --ink-2: #B9BCC3;
  --ink-3: #9196A0;
  --rule: #2A2D33;
  --rule-strong: #3E424A;
  --accent: #F0B493;
  --accent-wash: #33231A;
  --on-accent-wash: #F7D9C4;
  --on-accent: #17191C;
}

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

body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: 17px; line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--accent-wash); color: var(--on-accent-wash); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }

a { color: var(--ink); text-decoration-color: var(--rule-strong); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--accent); }

.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: var(--paper); padding: 10px 16px; z-index: 50; }
.skip:focus { left: 8px; top: 8px; }

/* Display type: upright serif. No italics anywhere — long italic
   passages measurably slow dyslexic readers (Rello & Baeza-Yates),
   and WCAG carries an advisory technique against chunks of italic
   text. Presence comes from weight and tracking instead of slant. */
h1, h2 {
  font-family: var(--serif); font-weight: 600; font-style: normal;
  letter-spacing: -0.018em; line-height: 1.22; margin: 0; text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 6vw, 4.3rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); }
h3 { font-family: var(--sans); font-size: 1.1rem; font-weight: 600; letter-spacing: -0.004em; line-height: 1.4; margin: 0; }

p { margin: 0 0 1.1em; max-width: var(--measure); }
.lede { font-size: clamp(1.12rem, 2vw, 1.3rem); line-height: 1.6; color: var(--ink-2); }

.wrap { max-width: 1140px; margin: 0 auto; padding-inline: var(--gut); }
.narrow { max-width: 790px; }

.masthead { border-bottom: 1px solid var(--rule); background: var(--paper); position: sticky; top: 0; z-index: 20; }
.masthead .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; }
.brand {
  font-family: var(--serif); font-size: 1.32rem; font-weight: 600; font-style: normal;
  letter-spacing: -0.018em; text-decoration: none; color: var(--ink);
  display: inline-flex; align-items: center; gap: 9px; white-space: nowrap;
}
.brand svg { flex: none; color: var(--accent); }
nav.primary { display: flex; align-items: center; gap: 26px; }
nav.primary a { font-size: 0.94rem; text-decoration: none; color: var(--ink-2); padding: 6px 0; border-bottom: 1.5px solid transparent; }
nav.primary a:hover { color: var(--ink); border-bottom-color: var(--rule-strong); }
nav.primary a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }
@media (max-width: 780px) {
  .masthead .wrap { flex-wrap: wrap; min-height: 56px; padding-block: 9px; }
  nav.primary { order: 3; width: 100%; gap: 17px; flex-wrap: wrap; border-top: 1px solid var(--rule); padding-top: 10px; }
  nav.primary a { font-size: 0.88rem; }
}

/* Pill controls, flat against the surface. */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font: inherit; font-size: 0.96rem; font-weight: 500;
  padding: 13px 26px; border-radius: var(--radius);
  text-decoration: none; cursor: pointer;
  border: 1px solid var(--ink); background: var(--ink); color: var(--paper);
  transition: background .15s ease, border-color .15s ease, color .15s ease, transform .08s ease;
}
.btn:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: var(--accent-wash); color: var(--on-accent-wash); border-color: var(--accent-wash); }
.btn.ghost:hover { background: var(--accent-wash); border-color: var(--accent); color: var(--on-accent-wash); }

section { padding-block: clamp(22px, 2.75vw, 34px); }
section + section { border-top: 1px solid var(--rule); }
.sec-head { margin-bottom: 28px; }
.sec-head p { color: var(--ink-2); margin-top: 14px; }

.hero { padding-block: clamp(34px, 4.5vw, 58px); }
.hero h1 { max-width: 16ch; }
.hero .lede { max-width: 55ch; margin-top: 24px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero .sub { font-size: 0.89rem; color: var(--ink-3); margin-top: 20px; }

.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.steps > li {
  counter-increment: s; display: grid; grid-template-columns: 2.6rem 1fr; gap: 0 22px;
  padding: 24px 0; border-top: 1px solid var(--rule);
}
.steps > li::before {
  content: counter(s); font-family: var(--serif); font-style: normal; font-weight: 600;
  font-size: 1.6rem; color: var(--accent); line-height: 1.2; font-variant-numeric: lining-nums;
}
.steps h3 { margin-bottom: 6px; }
.steps p { margin: 0; color: var(--ink-2); font-size: 0.96rem; }
@media (max-width: 560px) { .steps > li { grid-template-columns: 1.9rem 1fr; gap: 0 14px; } }

.rows > div {
  padding: 24px 0; border-top: 1px solid var(--rule);
  display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.5fr); gap: 7px 40px;
}
.rows > div h3 { margin: 0; }
.rows > div p { margin: 0; color: var(--ink-2); font-size: 0.96rem; }
@media (max-width: 720px) { .rows > div { grid-template-columns: 1fr; gap: 5px; } }

.tscroll { overflow-x: auto; }
.ptable { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.ptable caption { text-align: left; color: var(--ink-3); font-size: 0.86rem; padding-bottom: 12px; }
.ptable th, .ptable td { text-align: left; padding: 16px 18px 16px 0; border-top: 1px solid var(--rule); vertical-align: top; }
.ptable thead th {
  border-top: none; border-bottom: 1px solid var(--rule-strong);
  font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink-3); font-weight: 600;
}
.ptable td.price {
  font-family: var(--serif); font-style: normal; font-weight: 600; font-size: 1.22rem; color: var(--ink);
  font-variant-numeric: tabular-nums lining-nums; white-space: nowrap;
}
.ptable td:last-child, .ptable th:last-child { padding-right: 0; }
@media (max-width: 680px) { .ptable { min-width: 580px; } }

/* Large soft-edged cards, no borders. */
.note { background: var(--card); border: none; border-radius: var(--radius-card); padding: 26px 28px; }
.note p:last-child { margin-bottom: 0; }
.note h3 { margin-bottom: 9px; }

.pull {
  font-family: var(--serif); font-style: normal; font-weight: 600;
  font-size: clamp(1.5rem, 3.2vw, 2.2rem);
  line-height: 1.38; letter-spacing: -0.014em; color: var(--ink);
  max-width: 24ch; margin: 0;
}

.two { display: grid; grid-template-columns: minmax(0,0.62fr) minmax(0,1fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
/* A column holding only a heading does not need a 40% track. */
.two.lede-left { grid-template-columns: minmax(0,0.44fr) minmax(0,1fr); }
.two > :first-child > h2, .two > :first-child > .pull { position: sticky; top: 92px; }
.two.even { grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
@media (max-width: 920px) {
  .two, .two.even { grid-template-columns: 1fr; gap: 20px; }
  .two > :first-child > h2, .two > :first-child > .pull { position: static; }
}

.ticks { list-style: none; margin: 0; padding: 0; }
.ticks li { position: relative; padding-left: 29px; margin-bottom: 12px; color: var(--ink-2); font-size: 0.96rem; max-width: var(--measure); }
.ticks li svg { position: absolute; left: 0; top: 4px; color: var(--accent); }
.ticks.no li svg { color: var(--ink-3); }

footer { border-top: 1px solid var(--rule); background: var(--paper-2); padding-block: 46px; font-size: 0.9rem; color: var(--ink-2); }
footer .cols { display: grid; grid-template-columns: minmax(0,1.5fr) repeat(2, minmax(0,1fr)); gap: 32px 48px; align-items: start; }
footer nav { grid-column: span 2; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px 32px; align-content: start; }
footer nav > div { display: grid; gap: 10px; align-content: start; }
@media (max-width: 760px) { footer .cols { grid-template-columns: 1fr; } footer nav { grid-column: auto; } }
footer a { color: var(--ink-2); }
footer nav { display: grid; gap: 9px; }
footer .fine { margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--rule); color: var(--ink-3); font-size: 0.84rem; }
footer .fine p { max-width: 72ch; margin-bottom: 0; }

.stack > * + * { margin-top: 15px; }
.muted { color: var(--ink-3); font-size: 0.89rem; }
.tag {
  display: inline-block; font-size: 0.76rem; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--on-accent-wash); font-weight: 600; background: var(--accent-wash);
  border: none; padding: 5px 13px; border-radius: var(--radius);
}


/* ---------- quote form ---------- */
.quote-form { max-width: none; }
.fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px 24px; margin-bottom: 18px; }
.field { display: grid; gap: 7px; }
.field label { font-size: 0.9rem; font-weight: 500; color: var(--ink); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 0.96rem; color: var(--ink);
  background: var(--paper); border: 1px solid var(--rule-strong);
  border-radius: 10px; padding: 11px 14px; width: 100%;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { resize: vertical; min-height: 110px; border-radius: 14px; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-3); }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--ink-3); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-wash);
}
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 22px; }
.form-actions .muted { margin: 0; max-width: 46ch; }


/* ---------- contact form layout ---------- */
.formgrid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,0.52fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.formside { border-left: 1px solid var(--rule); padding-left: clamp(20px, 2.4vw, 34px); }
.formside h3 { margin: 0 0 14px; font-size: 1rem; }
.steps-min { margin: 0 0 18px; padding-left: 1.1em; }
.steps-min li { color: var(--ink-2); font-size: 0.94rem; margin-bottom: 10px; }
.formside .muted { margin-bottom: 0; }
@media (max-width: 920px) {
  .formgrid { grid-template-columns: 1fr; gap: 32px; }
  .formside { border-left: none; border-top: 1px solid var(--rule); padding-left: 0; padding-top: 26px; }
}


/* "Generally:" transferable framing under a concrete example. */
.rows p > .muted, .stack p > .muted { display: block; margin-top: 7px; }


/* Inline body links: tappable without disturbing the text line.
   Padding only, no min-height, so line-height in running prose is unchanged. */
@media (hover: none) {
  main p > a, main li > a, .rows h3 > a, .stack p > a {
    padding-block: 12px; margin-block: -12px;
    display: inline-block;
  }
}


/* ---------- before/after carousel ----------
   Scroll-snap carriage: works with no JavaScript (swipe / shift-scroll),
   and the buttons below just drive scrollTo when JS is available. */
.carousel { margin-top: 38px; }
.chead { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.chead h2 { margin: 0; font-size: clamp(1.3rem, 2.4vw, 1.75rem); }
.cnav { display: flex; gap: 8px; flex-shrink: 0; }
.cbtn {
  font: inherit; font-size: 1rem; line-height: 1; cursor: pointer;
  /* Fixed circle; padding stated so the inset is declared, not just rendered. */
  width: 40px; height: 40px; padding: 11px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  box-sizing: border-box;
  background: var(--paper); color: var(--ink);
  border: 1px solid var(--rule-strong);
}
.cbtn:hover { border-color: var(--accent); color: var(--accent); }
.cbtn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.cbtn[disabled] { opacity: .35; cursor: default; }

.ctrack {
  list-style: none; margin: 0; padding: 0 2px 4px;
  display: grid; grid-auto-flow: column; grid-auto-columns: min(100%, 440px);
  gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.ctrack::-webkit-scrollbar { display: none; }
.cslide {
  scroll-snap-align: start;
  background: var(--paper); border: 1px solid var(--rule);
  border-radius: 16px; padding: 22px 24px;
}
.cslide h3 { margin: 0 0 16px; font-size: 1.05rem; }
.cba { display: grid; gap: 16px; }
.cbefore, .cafter { display: grid; gap: 6px; }
.cafter { border-top: 1px solid var(--rule); padding-top: 14px; }
.clab {
  font-family: var(--sans); font-size: .72rem; letter-spacing: .09em;
  text-transform: uppercase; font-weight: 650; color: var(--ink-3); margin: 0;
}
.clab.on { color: var(--accent); }
.cslide p:not(.clab) { margin: 0; font-size: .92rem; color: var(--ink-2); line-height: 1.5; }

.cdots { display: flex; gap: 8px; justify-content: center; margin-top: 18px; }
.cdots button {
  width: 9px; height: 9px; padding: 0; border-radius: 50%; cursor: pointer;
  background: var(--rule-strong); border: none;
}
.cdots button[aria-current="true"] { background: var(--accent); }
.cdots button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
/* Dots stay visually small but carry a 44px hit area on touch. */
@media (hover: none) {
  .cbtn { width: 44px; height: 44px; }
  .cdots { gap: 0; }
  .cdots button {
    width: 44px; height: 44px; background: none; position: relative;
  }
  .cdots button::after {
    content: ""; position: absolute; inset: 50% auto auto 50%;
    transform: translate(-50%,-50%); width: 10px; height: 10px;
    border-radius: 50%; background: var(--rule-strong);
  }
  .cdots button[aria-current="true"]::after { background: var(--accent); }
}

/* On a dark band the carousel inverts. */
.band .cslide { background: rgba(250,248,244,.055); border-color: rgba(250,248,244,.16); }
.band .cslide h3 { color: var(--on-ground, #FAF8F4); }
.band .cslide p:not(.clab) { color: var(--on-ground-2, #BDC7D1); }
.band .clab { color: var(--on-ground-2, #BDC7D1); }
.band .clab.on, .band .cdots button[aria-current="true"] { color: var(--patina, #51B8A0); background-color: var(--patina, #51B8A0); }
.band .clab.on { background: none; }
.band .cafter { border-top-color: rgba(250,248,244,.16); }
.band .cbtn { background: transparent; color: var(--on-ground, #FAF8F4); border-color: rgba(250,248,244,.4); }

@media (prefers-reduced-motion: no-preference) { .ctrack { scroll-behavior: smooth; } }


/* ---- carousel in the hero: narrower track, sits beside the headline ---- */
.hero .wrap { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,0.92fr); gap: clamp(28px,4vw,52px); align-items: center; }
.hero-carousel { min-width: 0; }
.hero-carousel .carousel { margin-top: 0; }
.hero-carousel .chead h2 { font-size: 1.05rem; font-family: var(--sans); font-style: normal; font-weight: 600; letter-spacing: -.01em; }
.hero-carousel .ctrack { grid-auto-columns: 100%; }
.hero-carousel .cslide { padding: 20px 22px; }
.hero-carousel .cslide h3 { font-size: 1rem; }
/* The slide is a light card inside a dark hero: nothing in it may inherit the hero colour. */
.hero-carousel .cslide { color: var(--ink); }
@media (max-width: 920px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-carousel { order: 2; }
}


/* ---- per-slide before/after diagram ---- */
.dgm { width: 100%; height: auto; display: block; margin-top: 6px; }
.dgm-cap { font-family: var(--sans); font-size: 14.4px; letter-spacing: .14em; font-weight: 700; fill: var(--ink-3); }
.dgm-cap.on { fill: var(--accent); }
.dgm-rule { stroke: var(--rule); stroke-width: 1; }
.dgm-in rect { fill: var(--card); stroke: var(--rule-strong); stroke-width: .9; }
.dgm-in text { fill: var(--ink-2); font-size: 16px; text-anchor: middle; font-family: var(--sans); }
.dgm-slow rect { fill: var(--card); stroke: var(--rule-strong); stroke-width: 1.2; stroke-dasharray: 3.5 2.5; }
.dgm-slow text { fill: var(--ink-2); font-size: 16px; text-anchor: middle; font-family: var(--sans); font-weight: 600; }
.dgm-fast rect { fill: var(--accent-wash); stroke: var(--accent); stroke-width: 1.4; }
.dgm-fast text { fill: var(--on-accent-wash); font-size: 16px; text-anchor: middle; font-family: var(--sans); font-weight: 700; }
.dgm-sys rect { fill: var(--card); stroke: var(--rule-strong); stroke-width: .9; }
.dgm-sys.on rect { fill: var(--accent-wash); stroke: var(--accent); }
.dgm-sys text { fill: var(--ink-3); font-size: 7.5px; text-anchor: middle; font-family: var(--sans); }
.dgm-sys.on text { fill: var(--on-accent-wash); font-weight: 600; }
.dgm-arrow path { fill: none; stroke: var(--rule-strong); stroke-width: 1.2; color: var(--rule-strong); }
.dgm-arrow.on path { stroke: var(--accent); color: var(--accent); }
.dgm-cost { fill: var(--ink-3); font-size: 15.2px; text-anchor: middle; font-family: var(--sans); font-weight: 500; }
.dgm-gain { fill: var(--accent); font-size: 15.2px; text-anchor: middle; font-family: var(--sans); font-weight: 650; }

/* On a dark ground the diagram inverts. */
.band .dgm-in rect, .band .dgm-sys rect { fill: rgba(250,248,244,.07); stroke: rgba(250,248,244,.3); }
.band .dgm-in text, .band .dgm-sys text { fill: var(--on-ground-2, #BDC7D1); }
.band .dgm-slow rect { fill: rgba(250,248,244,.05); stroke: rgba(250,248,244,.34); }
.band .dgm-slow text { fill: var(--on-ground-2, #BDC7D1); }
.band .dgm-fast rect { fill: rgba(81,184,160,.2); stroke: var(--patina, #51B8A0); }
.band .dgm-fast text, .band .dgm-sys.on text { fill: #DCF2EC; }
.band .dgm-sys.on rect { fill: rgba(81,184,160,.2); stroke: var(--patina, #51B8A0); }
.band .dgm-arrow path { stroke: rgba(189,199,209,.5); color: rgba(189,199,209,.5); }
.band .dgm-arrow.on path, .band .dgm-cap.on, .band .dgm-gain { stroke: var(--patina, #51B8A0); color: var(--patina, #51B8A0); fill: var(--patina, #51B8A0); }
.band .dgm-cap, .band .dgm-cost { fill: var(--on-ground-2, #BDC7D1); }
.band .dgm-rule { stroke: rgba(250,248,244,.18); }


/* "optional" badge on service headings */
.opt {
  display: inline-block; vertical-align: middle; margin-left: 10px;
  font-family: var(--sans); font-size: 0.8rem; font-weight: 600;
  letter-spacing: .05em; text-transform: uppercase;
  color: var(--ink-3); background: var(--card);
  border: 1px solid var(--rule-strong); border-radius: 999px;
  padding: 4px 11px;
}
.band .opt { color: var(--on-ground-2, #BDC7D1); background: rgba(250,248,244,.07); border-color: rgba(250,248,244,.22); }


/* ---------- pricing plan cards ---------- */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); gap: 16px; align-items: start; }
.plan {
  position: relative; background: var(--paper);
  border: 1px solid var(--rule); border-radius: 18px;
  padding: 26px 24px 28px; display: grid; gap: 0;
}
.plan.featured { border-color: var(--accent); box-shadow: 0 14px 34px -18px rgba(20,27,36,.28); }
.plan-tag {
  position: absolute; top: -11px; left: 24px;
  font-family: var(--sans); font-size: 0.8rem; font-weight: 650;
  letter-spacing: .04em; text-transform: uppercase;
  color: var(--on-accent); background: var(--accent);
  border-radius: 999px; padding: 4px 12px;
}
/* Cards keep page ink even on a dark hero. */
.plan h3 { margin: 0 0 6px; font-size: 1.12rem; color: var(--ink); }
.plan .plan-for, .plan .plan-note { color: var(--ink-3); }
.plan .plan-price { color: var(--ink); }
.plan .plan-list li { color: var(--ink-2); }
.plan-for { margin: 0 0 18px; font-size: 0.9rem; color: var(--ink-3); min-height: 2.6em; }
.plan-price {
  margin: 0; font-family: var(--sans); font-size: 2.1rem; font-weight: 640;
  letter-spacing: -0.03em; color: var(--ink); line-height: 1;
}
.plan-note { margin: 7px 0 20px; font-size: 0.82rem; color: var(--ink-3); }
/* Cards carry their own button colours: inside .hero or .band the
   theme's hero button rules would otherwise win and go invisible. */
.plan .btn { justify-self: stretch; text-align: center; }
.plan .btn:not(.ghost),
.hero .plan .btn:not(.ghost),
.band .plan .btn:not(.ghost) { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.plan .btn.ghost,
.hero .plan .btn.ghost,
.band .plan .btn.ghost { background: var(--accent-wash); color: var(--on-accent-wash); border-color: transparent; }
/* Equal card heights regardless of list length. */
.plans { align-items: stretch; }
.plan { align-content: start; }
.plan-list { margin-top: auto; }
.plan-list { list-style: none; margin: 22px 0 0; padding: 20px 0 0; border-top: 1px solid var(--rule); display: grid; gap: 9px; }
.plan-list li { font-size: 0.89rem; color: var(--ink-2); padding-left: 20px; position: relative; line-height: 1.45; }
.plan-list li::before {
  content: ""; position: absolute; left: 0; top: 7px;
  width: 9px; height: 5px; border-left: 1.8px solid var(--accent);
  border-bottom: 1.8px solid var(--accent); transform: rotate(-45deg);
}
@media (max-width: 760px) { .plan-for { min-height: 0; } }


/* Pricing: hero and cards share one block, so the page gets to the
   prices fast instead of spending a screen on a title. */
.hero-tight { padding-block: clamp(24px, 2.8vw, 36px) clamp(26px, 3vw, 40px); }
/* Contact leads with the form, so the space above its headline is halved. */
.hero.hero-lead { padding-block: clamp(17px, 2.25vw, 29px) clamp(26px, 3vw, 40px); }
.hero-tight .wrap { display: block; }
.hero-tight h1 { max-width: none; }
.hero-tight .lede { max-width: 62ch; margin-top: 16px; }
.hero-tight .plans { margin-top: clamp(32px, 4vw, 48px); }

/* Visually hidden, still in the accessibility tree and the heading outline. */
.vh {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* Call-out: for the line that must not be skimmed past. */
.callout {
  margin-top: 28px; padding: 24px 26px;
  background: var(--accent-wash); border-radius: 16px;
  display: grid; gap: 10px; justify-items: start;
}
.callout-lead {
  margin: 0; font-family: var(--sans); font-weight: 650;
  font-size: 1.05rem; color: var(--on-accent-wash); letter-spacing: -0.01em;
}
.callout p { margin: 0; color: var(--on-accent-wash); max-width: 62ch; }
.callout .btn { margin-top: 6px; }
.callout .btn:not(.ghost),
.hero .callout .btn:not(.ghost),
.band .callout .btn:not(.ghost) { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.band .callout { background: rgba(250,248,244,.08); }
.band .callout p, .band .callout .callout-lead { color: var(--on-ground, #FAF8F4); }

/* Discounted price: old price struck, saving called out. */
.plan-price s {
  font-size: 0.56em; font-weight: 500; color: var(--ink-3);
  text-decoration-thickness: 1.5px; margin-right: 6px;
}
.plan-save {
  margin: 8px 0 0; font-family: var(--sans); font-size: 0.8rem;
  font-weight: 650; color: var(--on-accent-wash);
  background: var(--accent-wash); border-radius: 999px;
  padding: 5px 12px; justify-self: start;
}
.plan-terms {
  margin: 18px 0 0; font-size: 0.84rem; color: var(--ink-3); max-width: 76ch;
}
.hero .plan-terms, .band .plan-terms { color: var(--on-ground-2, #BDC7D1); }
.hero .plan-price s, .band .plan-price s,
.hero .plan-save, .band .plan-save { color: var(--on-accent-wash); }
.hero .plan-price s, .band .plan-price s { color: var(--ink-3); }

/* Launch offer: visible at the hero and beside closing CTAs. */
.offer-flag {
  display: inline-block; margin: 0 0 20px;
  font-family: var(--sans); font-size: 0.88rem; font-weight: 650;
  letter-spacing: 0.01em;
  /* Solid amber, not a translucent wash: it has to separate from both
     the slate hero and light sections. 9.3:1 on text, 9.3:1 against ground. */
  color: #141B24; background: #F0B429;
  border-radius: 999px; padding: 9px 18px;
}
.offer-flag strong { font-weight: 800; }
.hero .offer-flag, .band .offer-flag { background: #F0B429; color: #141B24; }
.offer-note {
  margin: 14px 0 0; font-family: var(--sans); font-size: 0.86rem;
  font-weight: 500; color: var(--ink-2);
}
.offer-note strong { color: var(--accent); font-weight: 700; }
.hero .offer-note, .band .offer-note { color: var(--on-ground-2, #BDC7D1); }
.hero .offer-note strong, .band .offer-note strong { color: var(--patina, #51B8A0); }

/* Announcement bar above the nav — the Ramp/Linear pattern. A coloured
   pill beside the headline reads as a warning label; a slim dark bar
   reads as an announcement and leaves the hero composition alone. */
.topbar {
  /* Clay ground, not slate: a dark bar above a dark hero disappears.
     This separates from the page at 5.9:1 and reads as its own band. */
  background: #AE3D29; color: #FFFFFF;
  border-bottom: none;
  /* The bar owns its vertical inset rather than delegating it to .wrap:
     a coloured full-bleed container with zero padding is one stylesheet
     change away from text sitting flush against its own edge. */
  padding: 10px 20px;
}
/* .wrap already centres and gutters; the bar's own 20px is the floor
   that guarantees text never reaches the edge at any width. */
.topbar .wrap { padding: 0; }
.topbar p {
  margin: 0; max-width: none; text-align: center;
  font-family: var(--sans); font-size: 0.9rem; font-weight: 500; color: #FFF0EC;
  line-height: 1.4;
}
.topbar strong { color: #FFFFFF; font-weight: 750; }
.topbar a {
  color: #FFFFFF; font-weight: 700; text-decoration: none;
  border-bottom: 1.5px solid rgba(255,255,255,.6); padding-bottom: 1px;
  margin-left: 6px; white-space: nowrap;
}
.topbar a:hover { border-bottom-color: #FFFFFF; }
@media (hover: none) { .topbar a { display: inline-block; padding-block: 13px; margin-block: -11px; } }
@media (max-width: 560px) { .topbar p { font-size: 0.82rem; } }

/* Inner-page heroes: two explicit columns, both top-aligned so the CTA
   sits under its own headline instead of being centred against a taller
   neighbour. The note belongs to the left column, with the buttons. */
.hero .hero-col { min-width: 0; }
.hero .wrap:has(.hero-col) { align-items: start; }
.hero .hero-col .actions { margin-top: 28px; }
.hero .hero-col .offer-note { margin-top: 16px; }
@media (max-width: 920px) {
  .hero .wrap:has(.hero-col) { grid-template-columns: 1fr; gap: 20px; }
  .hero .hero-col .actions { margin-top: 22px; }
  /* Stacked, the lede must precede the CTA: nobody should be asked to
     act before they have read what the page offers. */
  .hero .hero-col:first-child { display: contents; }
  .hero .hero-col:first-child h1 { order: 1; }
  .hero .hero-col:last-child { order: 2; }
  .hero .hero-col:first-child .actions { order: 3; }
  .hero .hero-col:first-child .offer-note { order: 4; }
}

/* Touch targets: nav and footer links get a 44px minimum on small screens. */
@media (max-width: 820px) {
  nav.primary { gap: 14px 18px; }
  nav.primary a {
    min-height: 44px; display: inline-flex; align-items: center;
    padding-block: 10px; border-bottom-width: 2px;
  }
  footer nav { gap: 0; }
  footer nav a {
    min-height: 44px; display: inline-flex; align-items: center;
  }
  .brand { min-height: 44px; }
  .ticks li { margin-bottom: 14px; }
}
@media (hover: none) {
  .btn { min-height: 48px; }
}

/* Theme switcher — delete this block and the markup once you pick one. */
.theme-switch {
  position: fixed; right: 16px; bottom: 16px; z-index: 40;
  display: flex; gap: 6px; align-items: center;
  background: var(--paper); border: 1px solid var(--rule-strong);
  border-radius: 100px; padding: 6px 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,.08), 0 1px 3px rgba(0,0,0,.06);
  font-size: 0.82rem;
}
.theme-switch span { color: var(--ink-3); padding-left: 7px; }
.theme-switch button {
  font: inherit; font-size: 0.82rem; cursor: pointer;
  border: 1px solid transparent; background: transparent; color: var(--ink-2);
  padding: 6px 12px; border-radius: 100px;
}
.theme-switch button:hover { background: var(--card); color: var(--ink); }
.theme-switch button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
@media (max-width: 620px) {
  .theme-switch {
    right: 8px; left: 8px; bottom: 8px; justify-content: center;
    flex-wrap: wrap; row-gap: 4px; font-size: 0.78rem; padding: 7px 9px;
  }
  .theme-switch button { font-size: 0.78rem; padding: 5px 10px; }
}

/* Phones: one nav row. Wrapping left "Contact" alone on a second line and doubled
   the height of a sticky header. The brand already links home, so Home is dropped
   here; the row scrolls sideways if a label ever overflows. */
@media (max-width: 560px) {
  nav.primary { flex-wrap: nowrap; justify-content: space-between; gap: 0 14px; overflow-x: auto; scrollbar-width: none; }
  nav.primary::-webkit-scrollbar { display: none; }
  nav.primary a { flex: none; font-size: 0.86rem; }
  nav.primary a[href="index.html"] { display: none; }
}
