/* home.css (FR-127). Page-owned. Layout for the home page, drawn from the approved third-draft mock
   of 2026-11-16. Colours and fonts come from the site's own custom properties (set by the skin and
   swapped by chrome.js in dark mode), so nothing here repeats a theme token. The --hm-* names are
   page-local: 6px controls, 10px cards, 4px checks, nothing a pill. Text on a tinted panel or a
   band is full ink (or the band's own text token), never the muted ink, so both modes clear 4.5 to 1. */
.hm {
  --hm-radius-control: 6px; --hm-radius-card: 10px; --hm-radius-check: 4px;
  --hm-paper: color-mix(in srgb, var(--highlight) 12%, var(--surface));
  --hm-amber: color-mix(in srgb, var(--highlight) 26%, var(--surface));
  --hm-sage: color-mix(in srgb, var(--accent-assessments) 20%, var(--surface));
  --hm-blue: color-mix(in srgb, var(--primary) 18%, var(--surface));
  --hm-shadow: 0 2px 10px rgba(16, 41, 74, .12);
  --hm-shadow-lg: 0 16px 40px rgba(16, 41, 74, .18);
  font-family: 'Lexend', system-ui, sans-serif; font-size: 17px; line-height: 1.6; color: var(--ink);
  overflow-x: clip;
}
.hm * { box-sizing: border-box; }
.hm a { color: var(--primary); }
.hm a:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.hm [id] { scroll-margin-top: var(--ct-topbar-height, 110px); }
.hm-wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.hm h1, .hm h2, .hm h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.08; margin: 0; letter-spacing: .005em; }
.hm p { margin: 0; }
.hm-eyebrow { font: 600 .78rem/1 'Lexend', system-ui, sans-serif; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); margin: 0 0 1rem; }

/* buttons */
.hm a.hm-btn { display: inline-flex; align-items: center; gap: .6rem; background: var(--primary); color: var(--reverse-text); border-radius: var(--hm-radius-control); font: 700 1.05rem/1 'Lexend', system-ui, sans-serif; padding: 1.05rem 1.5rem; text-decoration: none; box-shadow: 0 2px 0 rgba(0, 0, 0, .18); transition: transform .15s; }
.hm a.hm-btn:hover { transform: translateY(-2px); }
.hm .hm-arr { font-size: 1.2em; transition: transform .15s; }
.hm a.hm-btn:hover .hm-arr { transform: translateX(4px); }
.hm a.hm-btn.hm-lg { font-size: 1.2rem; padding: 1.25rem 1.9rem; }
.hm a.hm-btn.hm-on-dark { background: var(--highlight); color: var(--chrome); }
.hm a.hm-textlink { font: 600 1rem 'Lexend', system-ui, sans-serif; color: var(--primary); text-underline-offset: 4px; }

/* 1. hero */
.hm-hero { position: relative; padding: 4.5rem 0 5rem; overflow: hidden; }
.hm-hero::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(900px 420px at 88% 8%, color-mix(in srgb, var(--primary) 14%, transparent), transparent 70%),
              radial-gradient(600px 360px at 4% 100%, color-mix(in srgb, var(--highlight) 18%, transparent), transparent 70%); }
.hm-hero-grid { position: relative; display: grid; grid-template-columns: 1.12fr .88fr; gap: 3.5rem; align-items: center; }
.hm-hero h1 { font-size: clamp(2.6rem, 5.4vw, 4.6rem); margin-bottom: 1.4rem; }
.hm-hero h1 em { font-style: normal; background: linear-gradient(transparent 62%, var(--highlight) 62%, var(--highlight) 92%, transparent 92%); padding: 0 .1em; }
.hm-lede { font-size: 1.2rem; color: var(--ink-soft); max-width: 34rem; margin-bottom: 2rem; }
.hm-cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 1.4rem 1.8rem; }
.hm-ticks { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; list-style: none; padding: 0; margin: 1.4rem 0 0; font: 600 .88rem 'Lexend', system-ui, sans-serif; color: var(--ink-soft); }
.hm-ticks li::before { content: ""; display: inline-block; width: .55rem; height: .55rem; border-radius: var(--hm-radius-check); background: var(--accent-assessments); margin-right: .5rem; vertical-align: .05em; }

.hm-notes { position: relative; min-height: 470px; }
.hm a.hm-note { position: absolute; width: 88%; background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--hm-radius-card); padding: 1.3rem 1.4rem 1.1rem; box-shadow: var(--hm-shadow); text-decoration: none; color: var(--ink); transition: transform .25s; }
.hm-note q { display: block; quotes: none; font: 700 1.18rem/1.35 'Lexend', system-ui, sans-serif; margin-bottom: .9rem; }
.hm-tag { font: 600 .76rem/1 'Lexend', system-ui, sans-serif; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); display: flex; align-items: center; gap: .5rem; }
.hm-tag::before { content: ""; width: 1.6rem; height: 2px; background: var(--highlight); }
.hm-n1 { top: 0; left: 0; transform: rotate(-2.4deg); }
.hm-n2 { top: 150px; right: 0; transform: rotate(1.8deg); z-index: 2; }
.hm-n3 { top: 310px; left: 2%; transform: rotate(-1.2deg); z-index: 3; }
.hm a.hm-note:hover { transform: rotate(0) translateY(-4px); }
.hm-notes-cap { position: absolute; right: 0; bottom: -6px; font: 600 .8rem 'Lexend', system-ui, sans-serif; color: var(--ink-soft); text-align: right; max-width: 15rem; }

/* 2. what it is */
.hm-band { background: var(--chrome); color: var(--chrome-text); padding: 5rem 0; }
.hm-band .hm-eyebrow { color: var(--chrome-muted); }
.hm-band h2 { font-size: clamp(2rem, 3.8vw, 3.2rem); max-width: 50rem; margin-bottom: 3rem; }
.hm-trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid color-mix(in srgb, var(--chrome-text) 25%, transparent); }
.hm-trio > div { padding: 1.8rem 2rem 0 0; }
.hm-trio > div + div { padding-left: 2rem; border-left: 1px solid color-mix(in srgb, var(--chrome-text) 25%, transparent); }
.hm-num { font: 400 clamp(3.4rem, 6vw, 5.2rem)/1 var(--font-display); color: var(--highlight); display: block; margin-bottom: .5rem; }
.hm-num.hm-word { font-size: clamp(1.9rem, 3.2vw, 2.6rem); line-height: 1.02; display: flex; align-items: flex-end; min-height: clamp(3.4rem, 6vw, 5.2rem); }
.hm-trio h3 { font: 700 1.15rem/1.3 'Lexend', system-ui, sans-serif; margin-bottom: .5rem; }
.hm-trio p { color: var(--chrome-muted); font-size: 1rem; }
.hm-band .hm-foot { margin-top: 2.6rem; font-size: 1.05rem; color: var(--chrome-muted); max-width: 44rem; }
.hm-band .hm-foot.hm-grow { margin-top: 1rem; color: var(--chrome-text); font-weight: 600; }

/* 3. worked example */
.hm-example { background: var(--hm-paper); padding: 5.5rem 0; border-bottom: 1px solid var(--border-soft); }
.hm-example-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 4rem; align-items: start; }
.hm-example h2 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); margin-bottom: 1.4rem; }
.hm-reframe { font-size: 1.12rem; color: var(--ink); margin-bottom: 1.6rem; }
.hm-rx { font: 700 1.5rem/1.3 'Lexend', system-ui, sans-serif; border-left: 5px solid var(--highlight); padding: .2rem 0 .2rem 1.2rem; margin: 0 0 2rem; }
.hm-rx small { display: block; font: 600 .78rem 'Lexend', system-ui, sans-serif; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); margin-top: .6rem; }
.hm-machine { background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--hm-radius-card); padding: 1.6rem; box-shadow: var(--hm-shadow); }
.hm-label { font: 600 .76rem 'Lexend', system-ui, sans-serif; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 1rem; }
.hm-part { display: grid; grid-template-columns: 2.4rem 1fr; gap: 1rem; padding: 1rem 0; border-top: 1px solid var(--border-soft); }
.hm-label + .hm-part { border-top: 0; }
.hm-n { width: 2.4rem; height: 2.4rem; border-radius: var(--hm-radius-control); background: var(--hm-blue); color: var(--ink); display: grid; place-items: center; font: 700 1rem 'Lexend', system-ui, sans-serif; }
.hm-part b { display: block; font-size: 1.05rem; }
.hm-part span { display: block; color: var(--ink-soft); font-size: .95rem; }
.hm-part em { font-style: normal; color: var(--ink-soft); font-size: .95rem; }
.hm-result { border: 1px solid var(--border-strong); border-radius: var(--hm-radius-card); box-shadow: var(--hm-shadow); margin-top: .6rem; background: var(--hm-amber); color: var(--ink); padding: 1rem 1.2rem; font: 600 1rem 'Lexend', system-ui, sans-serif; }
.hm-more { display: inline-block; margin-top: 1.2rem; }

/* 4. stance */
.hm-stance { padding: 5.5rem 0 4.5rem; }
.hm-stance h2 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); max-width: 40rem; margin-bottom: 2.8rem; }
.hm-nots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.4rem; }
.hm-big { font: 400 clamp(2rem, 3.2vw, 2.8rem)/1 var(--font-display); display: block; margin-bottom: .8rem; position: relative; width: max-content; max-width: 100%; }
.hm-big::after { content: ""; position: absolute; left: -.1em; right: -.1em; bottom: -.12em; height: .12em; background: var(--highlight); transform: rotate(-1deg); }
.hm-nots p { color: var(--ink-soft); }
.hm-proof { border: 1px solid var(--border-strong); border-radius: var(--hm-radius-card); box-shadow: var(--hm-shadow); margin-top: 3rem; padding: 1.4rem 1.6rem; background: var(--hm-sage); color: var(--ink); max-width: 46rem; font-size: 1.02rem; }
.hm-proof b { display: block; margin-bottom: .2rem; }

/* 5. survey */
.hm-survey { background: var(--surface-alt); color: var(--ink); border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); padding: 5.5rem 0; }
.hm-survey-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 4rem; align-items: center; }
.hm-survey .hm-eyebrow { color: var(--ink); }
.hm-survey h2 { font-size: clamp(2rem, 3.8vw, 3.1rem); margin-bottom: 1.8rem; }
.hm-steps { list-style: none; margin: 0 0 2.2rem; padding: 0; counter-reset: hm-s; }
.hm-steps li { counter-increment: hm-s; display: grid; grid-template-columns: 3rem 1fr; gap: 1rem; padding: 1.05rem 0; border-top: 1px solid var(--border-strong); }
.hm-steps li:last-child { border-bottom: 1px solid var(--border-strong); }
.hm-steps li::before { content: counter(hm-s); font: 400 2.1rem/1 var(--font-display); color: var(--ink); }
.hm-steps b { display: block; font-size: 1.08rem; }
.hm-steps span { color: var(--ink); font-size: .98rem; }
.hm-phone { justify-self: center; width: 300px; background: var(--surface); border: 2px solid var(--border-strong); border-radius: var(--hm-radius-card); padding: 1.2rem 1.1rem 1.3rem; box-shadow: var(--hm-shadow-lg); transform: rotate(2deg); margin: 0 auto; }
.hm-pcap { font: 600 .72rem 'Lexend', system-ui, sans-serif; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); text-align: center; margin-bottom: .9rem; }
.hm-phone h3 { font: 700 1.05rem/1.3 'Lexend', system-ui, sans-serif; margin-bottom: .8rem; }
.hm-pm { border: 1px solid var(--border-soft); border-radius: var(--hm-radius-control); padding: .8rem .9rem; margin-bottom: .6rem; background: var(--canvas); }
.hm-pm b { display: block; font-size: .98rem; }
.hm-pm span { font-size: .82rem; color: var(--ink-soft); }
.hm-fine { font-size: .78rem; color: var(--ink-soft); text-align: center; margin-top: .8rem; }
.hm-ph-label { margin-top: 1.2rem; text-align: center; font: 600 .78rem 'Lexend', system-ui, sans-serif; color: var(--ink); }

/* 6. further */
.hm-further { padding: 5rem 0 4rem; }
.hm-further h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: .8rem; }
.hm-sub { color: var(--ink-soft); max-width: 40rem; margin-bottom: 2.2rem; }
.hm-rows { border-top: 2px solid var(--ink); }
.hm-row { display: grid; grid-template-columns: 15rem 1fr 11rem; gap: 2rem; align-items: baseline; padding: 1.3rem 0; border-bottom: 1px solid var(--border-soft); }
.hm-row h3 { font: 700 1.2rem/1.2 'Lexend', system-ui, sans-serif; }
.hm-row p { color: var(--ink-soft); }
.hm-price { font: 700 1rem 'Lexend', system-ui, sans-serif; text-align: right; }
.hm-price small { display: block; font-weight: 400; color: var(--ink-soft); font-size: .85rem; }
.hm-levels { margin-top: 1.2rem; font-size: .95rem; }

/* 7. close */
.hm-close { background: var(--chrome); color: var(--chrome-text); padding: 5.5rem 0; text-align: center; position: relative; overflow: hidden; }
.hm-close::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(700px 300px at 50% 0, color-mix(in srgb, var(--highlight) 16%, transparent), transparent 70%); }
.hm-close .hm-wrap { position: relative; }
.hm-close h2 { font-size: clamp(2.2rem, 4.6vw, 3.8rem); margin-bottom: 1.2rem; }
.hm-close .hm-s { color: var(--chrome-muted); max-width: 34rem; margin: 0 auto 2rem; font-size: 1.1rem; }
.hm-close .hm-alt { margin-top: 1.8rem; font-size: .98rem; color: var(--chrome-muted); }
.hm-close .hm-alt a { color: var(--chrome-text); font-weight: 600; }
.hm-close a:focus-visible { outline-color: var(--chrome-text); }
.hm-band a:focus-visible { outline-color: var(--chrome-text); }

/* phone */
@media (max-width: 860px) {
  .hm { font-size: 16px; }
  .hm-wrap { padding: 0 18px; }
  .hm-hero { padding: 2.6rem 0 3.4rem; }
  .hm-hero-grid, .hm-example-grid, .hm-survey-grid { grid-template-columns: 1fr; gap: 2.4rem; }
  .hm-notes { min-height: 0; display: grid; gap: .9rem; }
  .hm a.hm-note { position: static; width: 100%; }
  .hm-n1 { transform: rotate(-1deg); } .hm-n2 { transform: rotate(.8deg); } .hm-n3 { transform: rotate(-.6deg); }
  .hm-notes-cap { position: static; text-align: left; max-width: none; }
  .hm a.hm-btn { width: 100%; justify-content: center; }
  .hm-band, .hm-example, .hm-survey, .hm-close { padding: 3.6rem 0; }
  .hm-stance { padding: 3.6rem 0 3rem; }
  .hm-trio, .hm-nots { grid-template-columns: 1fr; }
  .hm-trio > div, .hm-trio > div + div { padding: 1.6rem 0; border-left: 0; border-bottom: 1px solid color-mix(in srgb, var(--chrome-text) 25%, transparent); }
  .hm-nots { gap: 1.8rem; }
  .hm-row { grid-template-columns: 1fr; gap: .3rem; }
  .hm-price { text-align: left; margin-top: .3rem; }
  .hm-phone { transform: none; width: 100%; max-width: 320px; }
  .hm-rx { font-size: 1.3rem; }
}
@media (prefers-reduced-motion: reduce) { .hm * { transition: none !important; } }
