/* ==========================================================================
   Riser AI — homepage styles (index.html)
   Audience: owners with two minutes between jobs. Calm, legible, warm.
   Native scroll (no smooth-scroll library), no WebGL. GSAP used gently.
   Self-contained — no Tailwind, no shared.css.
   ========================================================================== */

:root {
  --mint: #E9F2EF;
  --mint-2: #DCEAE5;
  --white: #FFFFFF;
  --navy: #0E2231;
  --navy-2: #173449;
  --ink-muted: #46596A;        /* ≈ 6.3:1 on mint, 7:1 on white */
  --teal: #1BB7B1;             /* chosen over the brand sheet's Core Green #1BB781 (2026-09-25) — keep */
  --teal-deep: #0B7471;        /* white text on it ≈ 5.6:1; as text on white ≈ 5.7:1 */
  --cyan: #29ABC9;
  --coral: #E1603F;            /* only for "missed" / problem states */
  --line: rgba(14, 34, 49, 0.12);

  --head: 'Bricolage Grotesque', 'Segoe UI', sans-serif;
  --body: 'Figtree', 'Segoe UI', sans-serif;

  --r-s: 12px; --r-m: 18px; --r-l: 28px;
  --s1: 0.5rem; --s2: 1rem; --s3: 1.5rem; --s4: 2rem; --s5: 3rem; --s6: 4.5rem; --s7: 6.5rem;

  --shadow-1: 0 1px 2px rgba(14,34,49,0.06), 0 4px 12px -4px rgba(14,34,49,0.08);
  --shadow-2: 0 2px 4px rgba(14,34,49,0.05), 0 18px 40px -16px rgba(14,34,49,0.22), 0 6px 14px -8px rgba(11,116,113,0.18);
  --shadow-3: 0 30px 80px -30px rgba(14,34,49,0.45), 0 12px 30px -14px rgba(11,116,113,0.3);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--mint); color: var(--navy);
  font-family: var(--body); font-size: 1.125rem; line-height: 1.7;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
ul, ol { list-style: none; padding: 0; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
::selection { background: var(--teal); color: var(--navy); }
/* Focus ring must be 3:1 against what it is drawn on (WCAG 1.4.11). Cyan is only 2.4:1 on mint, so light
   surfaces use Deep Teal; navy panels keep cyan (Deep Teal is 2.9:1 on navy). Chris approved 2026-09-28. */
:root { --focus: var(--teal-deep); }
:where(.call, .svc-feature, .work-card, .price-feature, .talk-card, .calc-result) { --focus: var(--cyan); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 8px; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 clamp(1rem, 4vw, 2rem); }
.skip { position: fixed; top: 10px; left: 10px; z-index: 100; padding: 10px 16px; background: var(--navy); color: #fff; border-radius: 8px; transform: translateY(-200%); }
.skip:focus { transform: none; }

h1, h2, h3 { font-family: var(--head); font-variation-settings: 'wdth' 92; letter-spacing: -0.03em; line-height: 1.08; font-weight: 700; }
h2 { font-size: clamp(2rem, 3.8vw, 3.1rem); }
h3 { font-size: 1.35rem; letter-spacing: -0.015em; line-height: 1.25; }

.eyebrow { font-size: 0.85rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--teal-deep); margin-bottom: var(--s2); }
.eyebrow-light { color: #7fe0db; }
.lede { font-size: 1.2rem; color: var(--ink-muted); margin-top: var(--s2); max-width: 38rem; }
.fineprint { font-size: 0.9rem; color: var(--ink-muted); margin-top: var(--s3); }
.lede a { color: var(--teal-deep); font-weight: 700; }

.section { padding: var(--s7) 0; }
.section-head { margin-bottom: var(--s5); max-width: 44rem; }

/* ---------- buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  min-height: 48px; padding: 0.8rem 1.4rem; border-radius: 999px; border: 2px solid transparent;
  font-family: var(--body); font-weight: 700; font-size: 1rem; line-height: 1.1; text-decoration: none;
  transition: transform 0.4s var(--spring), background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.3s ease;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-arrow { transition: transform 0.4s var(--spring); }
.btn:hover { transform: translateY(-2px); }
.btn:hover .btn-arrow { transform: translateX(3px); }
.btn:active { transform: translateY(0) scale(0.97); }
.btn-primary { background: var(--teal-deep); color: #fff; box-shadow: 0 8px 20px -8px rgba(11,116,113,0.6); }
.btn-primary:hover, .btn-primary:focus-visible { background: var(--navy); box-shadow: 0 12px 26px -10px rgba(14,34,49,0.55); }
.btn-ghost { background: var(--white); color: var(--navy); border-color: var(--line); box-shadow: var(--shadow-1); }
.btn-ghost:hover, .btn-ghost:focus-visible { border-color: var(--teal-deep); color: var(--teal-deep); }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover, .btn-light:focus-visible { background: var(--mint); }
.btn-outline-light { color: #fff; border-color: rgba(255,255,255,0.45); }
.btn-outline-light:hover, .btn-outline-light:focus-visible { border-color: #fff; background: rgba(255,255,255,0.08); }
.btn-sm { min-height: 42px; padding: 0.6rem 1.1rem; font-size: 0.95rem; }
.btn-lg { min-height: 56px; padding: 1rem 1.7rem; font-size: 1.05rem; }

/* ---------- header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(233, 242, 239, 0.86); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent; transition: border-color 0.3s, box-shadow 0.3s;
}
.header.scrolled { border-color: var(--line); box-shadow: 0 8px 24px -18px rgba(14,34,49,0.4); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); min-height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; border-radius: 10px; }
.brand img { border-radius: 50%; transition: transform 0.5s var(--spring); }
.brand:hover img { transform: rotate(-10deg) scale(1.05); }
.brand:active img { transform: scale(0.95); }
.brand-name { font-family: var(--head); font-weight: 700; font-size: 1.1rem; letter-spacing: -0.02em; }
.header-nav { display: none; gap: 4px; }
.header-nav a { padding: 8px 12px; border-radius: 999px; font-size: 0.98rem; font-weight: 600; color: var(--ink-muted); text-decoration: none; transition: background-color 0.2s, color 0.2s; }
.header-nav a:hover, .header-nav a:focus-visible { background: var(--white); color: var(--navy); }
.header-nav a:active { background: var(--mint-2); }
.header-actions { display: flex; align-items: center; gap: var(--s2); }
.header-phone { display: none; align-items: center; gap: 8px; font-weight: 700; text-decoration: none; padding: 8px 10px; border-radius: 999px; transition: color 0.2s, background-color 0.2s; }
.header-phone svg { flex: none; width: 18px; height: 18px; color: var(--teal-deep); }
.header-phone:hover, .header-phone:focus-visible { color: var(--teal-deep); background: var(--white); }
.header-phone:active { background: var(--mint-2); }
.header-nav a, .header-phone, .brand-name, .header-actions .btn { white-space: nowrap; }
/* six links + phone + button need ~1,140px; wrapped at 1080 (2026-09-26). Blog lives in the footer only (Chris,
   2026-09-28): a seventh header link needed ~1,218px, more than the 1,136px .wrap content box, so it only fit by
   squeezing the spacing. */
@media (min-width: 1200px) { .header-nav { display: flex; } }
@media (min-width: 720px) { .header-phone { display: inline-flex; } }
@media (max-width: 480px) { .brand-name { font-size: 1rem; } .header-actions .btn { display: none; } }

/* ---------- hero ---------- */
.hero {
  position: relative; padding: var(--s6) 0 var(--s7); overflow: hidden;
  background:
    radial-gradient(50% 60% at 85% 20%, rgba(41,171,201,0.18), transparent 70%),
    radial-gradient(40% 50% at 5% 90%, rgba(27,183,177,0.16), transparent 70%),
    var(--mint);
}
.hero-grid { display: grid; gap: var(--s6); align-items: center; }
.kicker { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 10px; border-radius: 999px; background: var(--white); box-shadow: var(--shadow-1); font-size: 0.92rem; font-weight: 700; color: var(--teal-deep); margin-bottom: var(--s3); }
.kicker-dot { position: relative; width: 10px; height: 10px; border-radius: 50%; background: var(--teal); }
.kicker-dot::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: var(--teal); animation: ping 2s var(--ease) infinite; }
@keyframes ping { from { transform: scale(1); opacity: 0.6; } to { transform: scale(2.8); opacity: 0; } }
.hero-title { font-size: clamp(2.7rem, 6vw, 4.8rem); line-height: 1.02; letter-spacing: -0.04em; max-width: 14ch; }
.strike { position: relative; display: inline-block; color: var(--ink-muted); }
.strike-line { position: absolute; left: -2%; width: 104%; top: 52%; height: 0.32em; overflow: visible; }
.strike-line path { fill: none; stroke: var(--coral); stroke-width: 7; stroke-linecap: round; }
.hero-sub { font-size: clamp(1.15rem, 1.6vw, 1.3rem); color: var(--ink-muted); margin: var(--s3) 0 var(--s4); max-width: 34rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: var(--s2); }
.hero-points { display: grid; gap: 10px; margin-top: var(--s4); }
.hero-points li { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.hero-points svg { width: 24px; height: 24px; padding: 3px; border-radius: 50%; background: var(--teal); flex: none; }
.hero-points svg path { fill: none; stroke: var(--navy); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

.hero-visual { display: flex; flex-direction: column; align-items: center; gap: var(--s2); }
.phone {
  position: relative; width: min(100%, 340px); aspect-ratio: 9 / 15.5; padding: 22px 16px;
  border-radius: 44px; background: linear-gradient(165deg, #1d3d54 0%, var(--navy) 55%, #0a1a26 100%);
  border: 8px solid #0a1a26; box-shadow: var(--shadow-3);
  overflow: hidden;
}
.phone::before { content: ''; position: absolute; inset: 0; background: radial-gradient(70% 45% at 50% 0%, rgba(41,171,201,0.35), transparent 70%); pointer-events: none; }
.phone::after { content: ''; position: absolute; bottom: 10px; left: 50%; width: 110px; height: 5px; border-radius: 5px; background: rgba(255,255,255,0.55); transform: translateX(-50%); }
.phone-notch { position: absolute; top: 10px; left: 50%; width: 90px; height: 24px; border-radius: 20px; background: #0a1a26; transform: translateX(-50%); }
.phone-time { position: relative; text-align: center; color: #fff; margin: 34px 0 22px; }
.phone-time span { display: block; font-family: var(--head); font-weight: 600; font-size: 3.6rem; letter-spacing: -0.04em; line-height: 1; }
.phone-time small { font-size: 0.85rem; opacity: 0.75; }
.notes { position: relative; display: grid; gap: 10px; }
.note {
  display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: 18px;
  background: rgba(255,255,255,0.93); color: var(--navy); box-shadow: 0 8px 20px -10px rgba(0,0,0,0.5);
}
.note b { display: block; font-size: 0.88rem; line-height: 1.3; }
.note div span { display: block; font-size: 0.8rem; line-height: 1.35; color: var(--ink-muted); }
.note-icon { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: #fff; }
.note-icon svg { width: 18px; height: 18px; }
.note-missed .note-icon { background: var(--teal-deep); }
.note-booked .note-icon { background: var(--cyan); }
.note-crm .note-icon { background: var(--navy-2); }
.note-text .note-icon { background: var(--teal); color: var(--navy); }
.visual-caption { font-size: 0.85rem; color: var(--ink-muted); text-align: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.15fr 0.85fr; } }

/* ---------- built for ---------- */
.built { background: var(--white); border-block: 1px solid var(--line); }
.built-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--s2) var(--s4); padding-block: var(--s3); }
.built-inner p { font-weight: 600; color: var(--ink-muted); }
.built-inner ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.built-inner li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--mint); font-weight: 700; font-size: 0.98rem; }
.ico { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--teal-deep); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* live-call visual inside the featured service card */
.svc-live { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); padding: var(--s2); margin-bottom: auto; border-radius: var(--r-m); background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); }
.svc-live-label { display: inline-flex; align-items: center; gap: 8px; font-size: 0.9rem; font-weight: 700; color: #7fe0db; }
.svc-live-label i { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); animation: blink 1.2s ease-in-out infinite; }
.svc-bars { display: flex; align-items: center; gap: 4px; height: 34px; }
.svc-bars i { width: 4px; height: 100%; border-radius: 4px; background: var(--teal); transform-origin: 50% 50%; animation: bar 0.9s ease-in-out infinite alternate; }
.svc-bars i:nth-child(2n) { animation-delay: -0.3s; } .svc-bars i:nth-child(3n) { animation-delay: -0.6s; animation-duration: 0.7s; }
@keyframes bar { from { transform: scaleY(0.2); } to { transform: scaleY(1); } }
.svc-feature .svc-icon { margin-top: var(--s4); }

/* ---------- calculator ---------- */
.cost-grid { display: grid; gap: var(--s5); align-items: center; }
.calc { background: var(--white); border-radius: var(--r-l); padding: clamp(1.4rem, 3vw, 2.4rem); box-shadow: var(--shadow-2); display: grid; gap: var(--s4); }
.field label { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s2); font-weight: 700; line-height: 1.35; }
.field output { flex: none; font-family: var(--head); font-size: 1.5rem; color: var(--teal-deep); font-variant-numeric: tabular-nums; }
.hint { font-size: 0.9rem; color: var(--ink-muted); margin-top: 6px; }
input[type="range"] {
  --p: 50%;
  -webkit-appearance: none; appearance: none; width: 100%; height: 36px; margin-top: 8px; background: transparent; cursor: pointer;
}
input[type="range"]::-webkit-slider-runnable-track { height: 10px; border-radius: 10px; background: linear-gradient(90deg, var(--teal) var(--p), var(--mint-2) var(--p)); }
input[type="range"]::-moz-range-track { height: 10px; border-radius: 10px; background: linear-gradient(90deg, var(--teal) var(--p), var(--mint-2) var(--p)); }
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 30px; height: 30px; margin-top: -10px; border-radius: 50%;
  background: #fff; border: 3px solid var(--teal-deep); box-shadow: 0 4px 10px -2px rgba(14,34,49,0.35);
  transition: transform 0.3s var(--spring);
}
input[type="range"]::-moz-range-thumb { width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 3px solid var(--teal-deep); box-shadow: 0 4px 10px -2px rgba(14,34,49,0.35); }
input[type="range"]:hover::-webkit-slider-thumb { transform: scale(1.12); }
input[type="range"]:active::-webkit-slider-thumb { transform: scale(0.95); }
input[type="range"]:focus-visible { outline: none; }
input[type="range"]:focus-visible::-webkit-slider-thumb { outline: 3px solid var(--focus); outline-offset: 3px; }
input[type="range"]:focus-visible::-moz-range-thumb { outline: 3px solid var(--focus); outline-offset: 3px; }

.calc-result { margin: 0 calc(clamp(1.4rem, 3vw, 2.4rem) * -1) calc(clamp(1.4rem, 3vw, 2.4rem) * -1); padding: clamp(1.4rem, 3vw, 2.4rem); border-radius: 0 0 var(--r-l) var(--r-l); background: var(--navy); color: #fff; display: grid; gap: 6px; justify-items: start; }
.calc-result > p:first-child { opacity: 0.8; }
.calc-number { font-family: var(--head); font-weight: 700; font-size: clamp(3rem, 7vw, 4.4rem); line-height: 1; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; color: #7fe0db; }
.calc-number small { font-size: 1.1rem; font-family: var(--body); font-weight: 600; letter-spacing: 0; color: #fff; opacity: 0.8; margin-left: 6px; }
.calc-year { opacity: 0.85; margin-bottom: var(--s2); }
.calc-result .btn-primary { background: var(--teal); color: var(--navy); box-shadow: none; }
.calc-result .btn-primary:hover, .calc-result .btn-primary:focus-visible { background: #fff; }
@media (min-width: 960px) { .cost-grid { grid-template-columns: 0.9fr 1.1fr; gap: var(--s6); } }

/* ---------- hear it ---------- */
.hear { background: var(--white); }
.tabs { display: flex; gap: 8px; overflow-x: auto; padding: 6px; margin-bottom: var(--s3); background: var(--mint); border-radius: 999px; width: fit-content; max-width: 100%; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { display: inline-flex; align-items: center; gap: 8px; flex: none; min-height: 44px; padding: 0.55rem 1.1rem; border: 0; border-radius: 999px; background: transparent; font-weight: 700; font-size: 0.98rem; color: var(--ink-muted); transition: background-color 0.25s, color 0.25s, box-shadow 0.25s, transform 0.3s var(--spring); }
.tabs button:hover { color: var(--navy); background: rgba(255,255,255,0.6); }
.tabs button:active { transform: scale(0.96); }
.tabs button[aria-selected="true"] { background: var(--white); color: var(--navy); box-shadow: var(--shadow-1); }

.demo-body { display: grid; gap: var(--s4); align-items: start; }
.call { position: relative; background: var(--navy); color: #fff; border-radius: var(--r-l); padding: clamp(1.1rem, 2.4vw, 1.8rem); box-shadow: var(--shadow-2); min-height: 470px; display: flex; flex-direction: column; }
.call-top { display: flex; justify-content: space-between; align-items: center; gap: var(--s2); padding-bottom: var(--s2); margin-bottom: var(--s2); border-bottom: 1px solid rgba(255,255,255,0.12); font-size: 0.92rem; }
.call-live { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: #7fe0db; }
.call-live i { width: 9px; height: 9px; border-radius: 50%; background: var(--teal); animation: blink 1.2s ease-in-out infinite; }
@keyframes blink { 50% { opacity: 0.25; } }
.call-biz { opacity: 0.75; }
@media (max-width: 480px) { .call-biz { display: none; } .call { min-height: 420px; } }
.bubbles { display: grid; gap: 10px; align-content: start; flex: 1; }
.bubble { max-width: 86%; padding: 10px 14px; border-radius: 18px; font-size: 1rem; line-height: 1.45; }
.bubble small { display: block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.7; margin-bottom: 2px; }
.bubble.caller { justify-self: start; background: rgba(255,255,255,0.1); border-bottom-left-radius: 6px; }
.bubble.agent { justify-self: end; background: var(--teal); color: var(--navy); border-bottom-right-radius: 6px; }
.bubble.agent small { opacity: 1; }  /* navy on teal 6.5:1; at 0.7 it was 3.7:1 (WCAG 1.4.3). Chris approved 2026-09-28. */
.typing { justify-self: end; display: inline-flex; gap: 4px; padding: 12px 14px; border-radius: 18px; background: rgba(27,183,177,0.25); }
.typing.caller { justify-self: start; background: rgba(255,255,255,0.1); }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: 0.7; animation: dot 1s ease-in-out infinite; }
.typing i:nth-child(2) { animation-delay: 0.15s; } .typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes dot { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
.replay { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; margin-top: var(--s2); min-height: 40px; padding: 0.4rem 0.9rem; border-radius: 999px; border: 1px solid rgba(255,255,255,0.3); background: transparent; color: #fff; font-weight: 700; font-size: 0.9rem; transition: background-color 0.2s, border-color 0.2s, transform 0.3s var(--spring); }
.replay svg { width: 16px; height: 16px; transition: transform 0.5s var(--spring); }
.replay:hover, .replay:focus-visible { background: rgba(255,255,255,0.1); border-color: #fff; }
.replay:hover svg { transform: rotate(-200deg); }
.replay:active { transform: scale(0.95); }

.outcome-label { font-weight: 700; margin-bottom: var(--s2); }
.outcome-card { background: var(--mint); border-radius: var(--r-m); padding: var(--s3); border: 1px solid var(--line); }
.outcome-title { display: flex; align-items: center; gap: 10px; font-family: var(--head); font-weight: 700; font-size: 1.35rem; letter-spacing: -0.02em; margin-bottom: var(--s2); }
.outcome-title::before { content: '✓'; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--teal); color: var(--navy); font-size: 1rem; }
.outcome-card dl { display: grid; gap: 10px; }
.outcome-card dl div { display: grid; grid-template-columns: 7rem 1fr; gap: 8px; padding-top: 10px; border-top: 1px solid var(--line); }
.outcome-card dt { font-size: 0.9rem; color: var(--ink-muted); }
.outcome-card dd { font-weight: 700; }
.js .outcome-card dl div { opacity: 0; transform: translateY(8px); transition: opacity 0.4s ease, transform 0.5s var(--ease); }
.js .outcome-card dl div.show { opacity: 1; transform: none; }
@media (min-width: 900px) { .demo-body { grid-template-columns: 1.3fr 0.7fr; } }

/* ---------- services ---------- */
.svc-grid { display: grid; gap: var(--s3); }
.svc { background: var(--white); border-radius: var(--r-l); padding: clamp(1.4rem, 3vw, 2rem); box-shadow: var(--shadow-1); border: 1px solid transparent; transition: transform 0.45s var(--spring), box-shadow 0.35s ease, border-color 0.3s; }
.svc:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); border-color: rgba(11,116,113,0.25); }
.svc-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--mint); color: var(--teal-deep); margin-bottom: var(--s3); transition: transform 0.5s var(--spring); }
.svc:hover .svc-icon { transform: rotate(-8deg) scale(1.06); }
.svc-icon svg { width: 26px; height: 26px; }
.svc h3 { margin-bottom: var(--s1); }
.svc p { color: var(--ink-muted); }
.good-for { margin-top: var(--s2); padding-top: var(--s2); border-top: 1px dashed var(--line); font-size: 1rem; }
.good-for b { color: var(--navy); }
.svc-feature { background: var(--navy); color: #fff; }
.svc-feature p { color: rgba(255,255,255,0.78); }
.svc-feature .good-for { border-color: rgba(255,255,255,0.2); }
.svc-feature .good-for b { color: #7fe0db; }
.svc-feature .svc-icon { background: var(--teal); color: var(--navy); }
@media (min-width: 760px) { .svc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) {
  .svc-grid { grid-template-columns: repeat(3, 1fr); }
  /* featured card runs full width: live-call visual left, copy right */
  .svc-feature { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1.15fr; column-gap: var(--s5); align-items: start; }
  .svc-feature .svc-live { grid-column: 1; grid-row: 1 / span 4; align-self: stretch; margin: 0; flex-direction: column; justify-content: center; gap: var(--s3); padding: var(--s4); }
  .svc-feature .svc-live .svc-bars { height: 90px; gap: 7px; }
  .svc-feature .svc-live .svc-bars i { width: 7px; }
  .svc-feature > :not(.svc-live) { grid-column: 2; }
  .svc-feature .svc-icon { margin-top: 0; }
}

/* ---------- how it works ---------- */
.how { background: var(--white); }
.steps { position: relative; display: grid; gap: var(--s4); }
.steps-line { display: none; }
.step { position: relative; }
.step-num { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--navy); color: #fff; font-family: var(--head); font-weight: 700; font-size: 1.5rem; margin-bottom: var(--s2); position: relative; z-index: 1; box-shadow: 0 0 0 8px var(--white); }
.step h3 { font-size: 1.6rem; margin-bottom: var(--s1); }
.step p { color: var(--ink-muted); }
.step .step-tag { margin-top: var(--s2); font-size: 0.85rem; font-weight: 700; color: var(--teal-deep); }
@media (min-width: 860px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: var(--s5); }
  .steps-line { display: block; position: absolute; top: 28px; left: 28px; right: 33%; height: 3px; background: var(--mint-2); border-radius: 3px; }
  .steps-line-fill { display: block; height: 100%; background: linear-gradient(90deg, var(--teal-deep), var(--teal)); border-radius: inherit; transform-origin: 0 50%; }
  .js .steps-line-fill { transform: scaleX(0); }
}
.tools { margin-top: var(--s6); padding: var(--s3); border-radius: var(--r-l); background: var(--mint); display: flex; flex-wrap: wrap; gap: var(--s2); align-items: center; justify-content: center; }
.tools p { font-weight: 700; }
.tools ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.tools li { padding: 6px 14px; border-radius: 999px; background: var(--white); font-weight: 600; font-size: 0.95rem; box-shadow: var(--shadow-1); }

/* ---------- clients (step 4 proof) ----------
   Quotes are verbatim and about web design; the navy card is the AI-work fact. Not clickable, so no hover. */
.clients { padding-bottom: 0; }  /* mint into mint FAQ: let the FAQ's top padding be the only gap (same as .talk) */
.quote-grid { display: grid; gap: var(--s3); }
.quote { margin: 0; display: flex; flex-direction: column; gap: var(--s3); background: var(--white); border-radius: var(--r-l); padding: clamp(1.4rem, 3vw, 2rem); box-shadow: var(--shadow-1); }
.quote blockquote { margin: 0; position: relative; padding-top: 2.4rem; font-size: 1.1rem; line-height: 1.65; }
.quote blockquote::before { content: '\201C'; position: absolute; top: -0.4rem; left: -0.1rem; font-family: var(--head); font-weight: 700; font-size: 4.2rem; line-height: 1; color: var(--teal); }
.quote figcaption { margin-top: auto; padding-top: var(--s2); border-top: 1px dashed var(--line); display: grid; line-height: 1.4; }
.quote figcaption b { font-family: var(--head); font-size: 1.1rem; letter-spacing: -0.01em; }
.quote figcaption span { font-size: 0.95rem; color: var(--ink-muted); }

.work-card { margin-top: var(--s4); display: grid; gap: var(--s2) var(--s5); align-items: center; background: var(--navy); color: #fff; border-radius: var(--r-l); padding: clamp(1.4rem, 3vw, 2.2rem); box-shadow: var(--shadow-2); }
.work-label { display: inline-block; margin-bottom: var(--s1); padding: 4px 12px; border-radius: 999px; background: rgba(27,183,177,0.16); color: #7fe0db; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.work-card h3 { font-size: 1.6rem; }
.work-meta { color: rgba(255,255,255,0.72); font-size: 1rem; }
.work-body { color: rgba(255,255,255,0.86); font-size: 1.1rem; max-width: 40rem; }

@media (min-width: 900px) {
  .quote-grid { grid-template-columns: repeat(3, 1fr); }
  .work-card { grid-template-columns: minmax(14rem, 0.8fr) 2fr; }
}

/* ---------- pricing (step 5) ----------
   Prices mirror CoWorker's riser_ai_solutions_profile.md → Services. Cards are not clickable. */
.pricing { padding-bottom: 0; }  /* mint into mint FAQ, as .clients */
.price-group { font-size: 1.3rem; margin-bottom: var(--s2); }
.price-group span { font-family: var(--body); font-size: 1rem; font-weight: 600; letter-spacing: 0; color: var(--ink-muted); }
.price-grid { display: grid; gap: var(--s3); }
.price-grid-setup { margin-bottom: var(--s5); }
.price { display: flex; flex-direction: column; gap: var(--s1); background: var(--white); border-radius: var(--r-l); padding: clamp(1.3rem, 2.6vw, 1.8rem); box-shadow: var(--shadow-1); border: 2px solid transparent; }
.price h4 { margin: 0; font-family: var(--head); font-size: 1.2rem; font-weight: 700; letter-spacing: -0.015em; line-height: 1.25; }
.price-amt { font-family: var(--head); font-weight: 700; font-size: clamp(2rem, 3vw, 2.4rem); line-height: 1.1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; margin-bottom: 4px; }
.price-amt small { font-family: var(--body); font-size: 0.95rem; font-weight: 600; letter-spacing: 0; color: var(--ink-muted); }
.price-desc { font-size: 1rem; line-height: 1.6; color: var(--ink-muted); }

.price-feature { background: var(--navy); color: #fff; box-shadow: var(--shadow-2); }
.price-feature .price-amt { color: #7fe0db; }
.price-feature .price-desc { color: rgba(255,255,255,0.8); }
.price-feature .price-note { margin-top: auto; padding-top: var(--s1); border-top: 1px dashed rgba(255,255,255,0.22); font-size: 0.95rem; }

.price-standard { border-color: var(--teal); box-shadow: var(--shadow-2); }
.price-tag { align-self: flex-start; padding: 3px 12px; border-radius: 999px; background: var(--mint); color: var(--teal-deep); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.price-list { display: grid; gap: 6px; font-size: 1rem; line-height: 1.45; }
.price-list li { position: relative; padding-left: 24px; }
.price-list li::before { content: ''; position: absolute; left: 3px; top: 0.38em; width: 11px; height: 6px; border-left: 2px solid var(--teal-deep); border-bottom: 2px solid var(--teal-deep); transform: rotate(-45deg); }

.price-foot { margin-top: var(--s4); padding-top: var(--s3); border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s3); }
.price-foot p { font-size: 1rem; color: var(--ink-muted); max-width: 42rem; }

@media (min-width: 640px) { .price-grid-setup { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .price-grid-plans { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) {
  .price-grid-setup { grid-template-columns: repeat(3, 1fr); }
  /* Front Desk becomes a full-width band under the three parts it bundles */
  .price-feature { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(14rem, 0.8fr) 2fr; column-gap: var(--s5); grid-template-rows: auto 1fr auto; align-items: start; }
  .price-feature h4 { grid-column: 1; grid-row: 1; }
  .price-feature .price-amt { grid-column: 1; grid-row: 2; }
  .price-feature .price-desc { grid-column: 2; grid-row: 1 / 3; font-size: 1.1rem; }
  .price-feature .price-note { grid-column: 2; grid-row: 3; margin-top: var(--s1); font-size: 0.95rem; }
}

.qa-body a { color: var(--teal-deep); font-weight: 700; transition: color 0.2s; }
.qa-body a:hover { color: var(--navy); }
.qa-body a:active { opacity: 0.7; }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; gap: var(--s4); }
.faq-list { display: grid; gap: 12px; }
.qa { background: var(--white); border-radius: var(--r-m); box-shadow: var(--shadow-1); border: 1px solid transparent; transition: border-color 0.3s, box-shadow 0.3s; }
.qa[open] { border-color: rgba(11,116,113,0.3); box-shadow: var(--shadow-2); }
.qa summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: var(--s2);
  padding: 1.1rem 1.3rem; font-family: var(--head); font-weight: 700; font-size: 1.2rem; letter-spacing: -0.015em; border-radius: var(--r-m);
  transition: color 0.2s;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: '+'; flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--mint); color: var(--teal-deep); font-family: var(--body); font-size: 1.4rem; font-weight: 600; line-height: 1;
  transition: transform 0.4s var(--spring), background-color 0.2s;
}
.qa[open] summary::after { transform: rotate(45deg); background: var(--teal); color: var(--navy); }
.qa summary:hover { color: var(--teal-deep); }
.qa summary:active::after { transform: scale(0.9); }
.qa-body { padding: 0 1.3rem 1.2rem; color: var(--ink-muted); }
.qa[open] .qa-body { animation: qa-in 0.45s var(--ease); }
@keyframes qa-in { from { opacity: 0; transform: translateY(-6px); } }
@media (min-width: 960px) { .faq-grid { grid-template-columns: 0.8fr 1.2fr; gap: var(--s6); } .faq-head { position: sticky; top: 110px; align-self: start; } }

/* ---------- talk ---------- */
.talk { padding-top: 0; }
.talk-card {
  position: relative; overflow: hidden; display: grid; gap: var(--s5); align-items: center;
  padding: clamp(1.6rem, 5vw, 4rem); border-radius: 36px; color: #fff; box-shadow: var(--shadow-3);
  background:
    radial-gradient(60% 80% at 100% 0%, rgba(41,171,201,0.45), transparent 60%),
    radial-gradient(50% 70% at 0% 100%, rgba(27,183,177,0.35), transparent 60%),
    var(--navy);
}
.talk-copy h2 { font-size: clamp(2.2rem, 4.4vw, 3.6rem); margin-bottom: var(--s2); }
.talk-copy > p:not(.eyebrow) { color: rgba(255,255,255,0.82); font-size: 1.15rem; max-width: 34rem; }
.talk-ctas { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s4); }
.talk-copy > p.talk-ai { margin-top: var(--s2); font-size: 0.98rem; color: rgba(255,255,255,0.78); }
.owner { background: var(--white); color: var(--navy); border-radius: var(--r-l); padding: var(--s4); text-align: center; display: grid; justify-items: center; gap: 4px; box-shadow: var(--shadow-2); }
.owner img { border-radius: 50%; margin-bottom: var(--s1); box-shadow: 0 0 0 6px var(--mint); }
.owner-name { font-family: var(--head); font-weight: 700; font-size: 1.5rem; letter-spacing: -0.02em; }
.owner-role { color: var(--ink-muted); font-size: 0.95rem; }
.owner-note { margin: var(--s2) 0 var(--s1); font-weight: 600; }
.owner-loc { margin-top: var(--s2); font-size: 0.88rem; color: var(--ink-muted); }
@media (min-width: 900px) { .talk-card { grid-template-columns: 1.4fr 0.8fr; } }

/* ---------- footer ---------- */
.footer { padding: var(--s6) 0 var(--s4); border-top: 1px solid var(--line); font-size: 1rem; }
.footer-inner { display: grid; gap: var(--s4); }
.footer-brand p { color: var(--ink-muted); margin-top: var(--s1); }
.footer-col { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.footer-col h3 { font-size: 0.85rem; font-family: var(--body); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 4px; }
.footer-col a { text-decoration: none; font-weight: 600; border-radius: 4px; }
.footer-col a:hover, .footer-col a:focus-visible { color: var(--teal-deep); text-decoration: underline; }
.footer-col a:active { opacity: 0.7; }
.footer-col span { color: var(--ink-muted); }
/* logo + name (Chris, 2026-09-28): the logo is recognised at a glance, the name removes any guessing */
.footer-social { display: inline-flex; align-items: center; gap: 8px; }
.footer-social svg { width: 18px; height: 18px; flex-shrink: 0; }
.footer-base { margin-top: var(--s5); display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s1) var(--s3); font-size: 0.9rem; color: var(--ink-muted); }
/* legal links (step 7b): quiet, under the copyright line on every page */
.footer-legal { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.footer-legal a { color: inherit; text-decoration: none; border-radius: 4px; }
.footer-legal a:hover, .footer-legal a:focus-visible { color: var(--teal-deep); text-decoration: underline; }
.footer-legal a:active { opacity: 0.7; }
@media (min-width: 800px) { .footer-inner { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }

/* ---------- mobile action bar ---------- */
.action-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px;
  padding: 10px clamp(1rem, 4vw, 2rem) calc(10px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,0.94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--line); box-shadow: 0 -10px 30px -20px rgba(14,34,49,0.45);
  transition: transform 0.45s var(--ease);
}
.action-bar.hidden { transform: translateY(110%); }
@media (max-width: 899px) { body { padding-bottom: 80px; } }
@media (min-width: 900px) { .action-bar { display: none; } }
/* Keyboard focus must not land behind the fixed mobile action bar or the chat button (WCAG 2.2, 2.4.11).
   Bar ≈ 69px, chat button sits above it (≈ 52px + gaps); 150px clears both plus the safe-area inset.
   On desktop only the chat button (bottom-right, ≈ 76px with its offset) can cover content. */
@media (max-width: 899px) { html { scroll-padding-bottom: 150px; } }
@media (min-width: 900px) { html { scroll-padding-bottom: 96px; } }
/* scroll-padding-bottom only sets the *target* gap — it cannot manufacture scroll room the document
   doesn't have. At >=900px the footer's own bottom padding (var(--s4), 32px) was the only trailing
   space, so the last focusable element (the footer's Accessibility link) hit the true end of the page
   before the 96px gap was reached, leaving it a few px inside the fixed chat button (WCAG 2.4.11,
   caught by check-a11y.mjs item 3 — the per-page focus pass, where the chat button sits last in Tab
   order on every page — on 2026-09-29). Reserve extra room below the footer, same approach
   as the mobile body padding above. */
@media (min-width: 900px) { body { padding-bottom: 80px; } }

/* ---------- 404 page (src/pages/404.astro) — reuses the hero's background and strike-through ---------- */
.notfound {
  padding: var(--s7) 0; min-height: 72vh; display: flex; align-items: center;
  background:
    radial-gradient(50% 60% at 85% 20%, rgba(41,171,201,0.18), transparent 70%),
    radial-gradient(40% 50% at 5% 90%, rgba(27,183,177,0.16), transparent 70%),
    var(--mint);
}
.notfound-title { font-size: clamp(2.5rem, 5.4vw, 4.4rem); line-height: 1.02; letter-spacing: -0.04em; max-width: 15ch; }
.notfound-call { margin-top: var(--s3); color: var(--ink-muted); }
.notfound-call a { color: var(--teal-deep); font-weight: 700; text-underline-offset: 3px; }
.notfound-call a:hover { color: var(--navy); }
.notfound-call a:focus-visible { outline: 2px solid var(--teal-deep); outline-offset: 3px; border-radius: 4px; }
.notfound-call a:active { opacity: 0.7; }

/* ---------- newsletter signup (step 7, Part 5) — footer on every page, end of each post ---------- */
.footer-signup { margin-bottom: var(--s5); }
.signup { display: grid; gap: var(--s3); align-items: end; padding: clamp(1.4rem, 3vw, 2.2rem); border-radius: var(--r-l); background: var(--white); box-shadow: var(--shadow-2); }
.signup-title { font-size: clamp(1.4rem, 2.6vw, 1.8rem); }
.signup-sub { margin-top: var(--s1); font-size: 1rem; color: var(--ink-muted); }
.signup-fields { display: grid; gap: var(--s2); }
.signup-field { display: grid; gap: 6px; font-size: 0.95rem; font-weight: 700; }
.signup-field small { font-weight: 500; color: var(--ink-muted); }
.signup-field input {
  min-height: 48px; padding: 0.7rem 1rem; border-radius: var(--r-s); border: 2px solid var(--line);
  background: var(--mint); font: inherit; font-weight: 500; line-height: 1.3; color: var(--navy);  /* 48px, level with Subscribe */
  transition: border-color 0.2s, background-color 0.2s;
}
.signup-field input:hover { border-color: rgba(11,116,113,0.4); }
.signup-field input:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-color: var(--teal-deep); background: var(--white); }
.signup-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.signup .btn[disabled] { opacity: 0.6; cursor: progress; transform: none; }
.signup-msg { min-height: 1.7em; margin-top: var(--s1); font-size: 0.95rem; font-weight: 600; }
.signup-msg[data-state="ok"] { color: var(--teal-deep); }
.signup-msg[data-state="error"] { color: #A63A22; }  /* coral darkened for text: ≈ 6:1 on white (coral itself is 3.4:1) */
.signup-privacy { font-size: 0.9rem; color: var(--ink-muted); }
.signup-privacy a { color: var(--teal-deep); font-weight: 700; text-underline-offset: 3px; }
.signup-privacy a:hover, .signup-privacy a:focus-visible { color: var(--navy); }
.signup-privacy a:active { opacity: 0.7; }
@media (min-width: 900px) {
  .signup { grid-template-columns: 1fr 1.4fr; gap: var(--s5); }
  .signup-fields { grid-template-columns: 1fr 1.3fr auto; align-items: end; }
}

/* ---------- blog (step 7): cards, index, post page ---------- */
.post-grid { display: grid; gap: var(--s3); }
.post-grid + .post-grid { margin-top: var(--s3); }
@media (min-width: 760px) { .post-grid { grid-template-columns: repeat(2, 1fr); } .post-grid-large { grid-template-columns: 1fr; } }
@media (min-width: 1080px) { .post-grid { grid-template-columns: repeat(3, 1fr); } .post-grid-large { grid-template-columns: 1fr; } }

.post-card {
  display: flex; flex-direction: column; gap: var(--s1); padding: clamp(1.4rem, 3vw, 2rem);
  border-radius: var(--r-l); background: var(--white); box-shadow: var(--shadow-1); border: 1px solid transparent;
  text-decoration: none; transition: transform 0.45s var(--spring), box-shadow 0.35s ease, border-color 0.3s;
}
.post-card:hover, .post-card:focus-visible { transform: translateY(-4px); box-shadow: var(--shadow-2); border-color: rgba(11,116,113,0.25); }
.post-card:active { transform: translateY(-1px) scale(0.99); }
.post-card-topic { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--teal-deep); }
.post-card-title { font-size: 1.35rem; }
.post-card-summary { font-size: 1rem; color: var(--ink-muted); }
.post-card-meta { margin-top: auto; padding-top: var(--s2); border-top: 1px dashed var(--line); font-size: 0.9rem; color: var(--ink-muted); }
.post-card-large { background: var(--navy); color: #fff; box-shadow: var(--shadow-2); }
.post-card-large .post-card-topic { color: #7fe0db; }
.post-card-large .post-card-title { font-size: clamp(1.6rem, 3vw, 2.2rem); max-width: 30ch; }
.post-card-large .post-card-summary { font-size: 1.1rem; max-width: 44rem; color: rgba(255,255,255,0.8); }
.post-card-large .post-card-meta { color: rgba(255,255,255,0.72); border-color: rgba(255,255,255,0.2); }

.blog-index { padding-top: var(--s6); }
.blog-title { font-size: clamp(2.4rem, 5vw, 3.8rem); line-height: 1.04; letter-spacing: -0.04em; }

.post-head {
  padding: var(--s6) 0 var(--s4);
  background:
    radial-gradient(50% 60% at 85% 20%, rgba(41,171,201,0.14), transparent 70%),
    radial-gradient(40% 50% at 5% 90%, rgba(27,183,177,0.12), transparent 70%),
    var(--mint);
}
.post-wrap { max-width: 800px; }
.crumbs { display: flex; gap: 8px; margin-bottom: var(--s3); font-size: 0.92rem; font-weight: 600; color: var(--ink-muted); }
.crumbs a { text-decoration: none; border-radius: 4px; }
.crumbs a:hover, .crumbs a:focus-visible { color: var(--teal-deep); text-decoration: underline; }
.crumbs a:active { opacity: 0.7; }
.post-title { font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1.05; letter-spacing: -0.035em; }
.post-meta { margin-top: var(--s3); font-size: 0.98rem; color: var(--ink-muted); }
.post-meta-sep { margin: 0 6px; }
.post-meta time { white-space: nowrap; }  /* the date wrapped as "October 14, / 2026" at 390 */
.post-meta a { color: var(--teal-deep); font-weight: 700; text-underline-offset: 3px; }
.post-meta a:hover { color: var(--navy); }
.post-meta a:active { opacity: 0.7; }
.short-answer { margin-top: var(--s4); padding: var(--s3); border-radius: var(--r-m); background: var(--white); border-left: 4px solid var(--teal); box-shadow: var(--shadow-1); }
.short-answer-label, .example-label { margin-bottom: 6px; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--teal-deep); }

.post-body { padding-top: var(--s2); padding-bottom: var(--s5); }
.post-body h2 { margin: var(--s5) 0 var(--s2); font-size: clamp(1.6rem, 3vw, 2.1rem); }
.post-body p { margin-bottom: var(--s2); }
.post-body ul { display: grid; gap: 10px; margin: 0 0 var(--s3); }
.post-body li { position: relative; padding-left: 26px; }
.post-body li::before { content: ''; position: absolute; left: 3px; top: 0.55em; width: 11px; height: 6px; border-left: 2px solid var(--teal-deep); border-bottom: 2px solid var(--teal-deep); transform: rotate(-45deg); }
.post-body a { color: var(--teal-deep); font-weight: 700; text-underline-offset: 3px; transition: color 0.2s; }
.post-body a:hover { color: var(--navy); }
.post-body a:active { opacity: 0.7; }
.post-body blockquote {
  margin: var(--s4) 0; padding: var(--s1) 0 var(--s1) var(--s3); border-left: 4px solid var(--teal);
  font-family: var(--head); font-size: clamp(1.3rem, 2.4vw, 1.6rem); line-height: 1.35; letter-spacing: -0.015em;
}
.post-body blockquote p { margin: 0; }

/* ---------- legal pages (step 7b) — post header and reading column, plainer lists ---------- */
.legal-summary ul { display: grid; gap: 8px; }
.legal-summary li, .legal-body li { position: relative; padding-left: 20px; }
.legal-summary li::before { content: ''; position: absolute; left: 4px; top: 0.72em; width: 6px; height: 6px; border-radius: 50%; background: var(--teal-deep); }
.legal-body li::before { left: 4px; top: 0.72em; width: 6px; height: 6px; border: 0; border-radius: 50%; background: var(--teal-deep); transform: none; }
.legal-body h2 { margin: var(--s4) 0 var(--s2); font-size: clamp(1.3rem, 2.4vw, 1.6rem); }

.example { margin: var(--s3) 0; padding: var(--s3); border-radius: var(--r-m); background: var(--mint-2); border: 1px dashed rgba(11,116,113,0.35); }
.example p:last-child { margin-bottom: 0; }

.post-cta { padding-top: 0; padding-bottom: var(--s5); }
.keep-reading { padding-bottom: var(--s5); }
.keep-reading h2 { margin-bottom: var(--s3); font-size: clamp(1.6rem, 3vw, 2.1rem); }
.post-end { padding-bottom: var(--s6); }
.ai-note { margin-bottom: var(--s4); padding-top: var(--s2); border-top: 1px solid var(--line); font-size: 0.92rem; color: var(--ink-muted); }

/* ---------- motion prefs ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
  .js .steps-line-fill { transform: none; }
  .js .outcome-card dl div { opacity: 1; transform: none; }
}

/* ---------- Chat assistant (step 7c; public/assets/js/chat.js) ----------
   Layers: page → button (z 70, above the action bar's 60) → panel (z 80). Only transform and opacity animate. */
.chat-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.chat-launch {
  position: fixed; right: clamp(1rem, 3vw, 1.5rem); bottom: 1.5rem; z-index: 70;
  display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 20px 0 16px;
  border: 1px solid transparent; border-radius: 999px; background: var(--teal-deep); color: #fff;
  font-weight: 700; font-size: 1rem; line-height: 1.2;
  box-shadow: 0 14px 30px -12px rgba(14,34,49,0.55), 0 6px 14px -6px rgba(11,116,113,0.5);
  transition: transform 0.4s var(--spring);
}
.chat-launch svg { width: 22px; height: 22px; flex: none; }
.chat-launch:hover, .chat-launch:focus-visible { background: var(--navy); transform: translateY(-2px); }
.chat-launch:active { transform: scale(0.97); }
/* On focus the button itself turns navy, and the button can sit over the navy work/talk sections too —
   either way the default teal-deep ring drops to ~2.9:1. A white halo under the ring guarantees teal
   ring-on-white (well over 3:1) no matter what's behind the button. */
.chat-launch:focus-visible { box-shadow: 0 0 0 6px #fff, 0 14px 30px -12px rgba(14,34,49,0.55), 0 6px 14px -6px rgba(11,116,113,0.5); }
@media (max-width: 899px) { .chat-launch { bottom: calc(80px + env(safe-area-inset-bottom)); } }
@media (max-width: 479px) { .chat-launch-q { display: none; } .chat-launch { padding: 0 18px 0 14px; } }

.chat-panel {
  position: fixed; z-index: 80; right: clamp(1rem, 3vw, 1.5rem); bottom: calc(1.5rem + 64px);
  width: min(400px, calc(100vw - 2rem)); height: min(620px, calc(100dvh - 8rem));
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--white); color: var(--navy); border-radius: var(--r-l);
  box-shadow: var(--shadow-3), 0 0 0 1px var(--line);
  transform-origin: bottom right; animation: chat-in 0.45s var(--spring);
}
.chat-panel[hidden] { display: none; }
@keyframes chat-in { from { opacity: 0; transform: translateY(14px) scale(0.97); } to { opacity: 1; transform: none; } }
@media (max-width: 899px) {
  /* height alone (without a matching bottom offset) put the panel's top edge 16px above the viewport
     on any screen under 748px tall — nearly every phone. Cap the height to what's actually left above
     the button+bar stack instead of assuming the desktop 8rem clearance still applies. */
  .chat-panel { bottom: calc(80px + 64px + env(safe-area-inset-bottom)); height: min(620px, calc(100dvh - 144px - 1rem)); }
}
@media (max-width: 599px), (max-height: 500px) {
  /* max-height covers landscape phones (e.g. 844x390): under the floating panel's math a 390px-tall
     viewport leaves ~230px for header+log+form, too cramped to be usable, so it gets the full sheet
     instead. chat.js's SHEET_MQ mirrors this exact query so CSS and JS agree on what "sheet mode" is. */
  .chat-panel { inset: 0; width: auto; height: auto; border-radius: 0; }
  html.chat-open body { overflow: hidden; }
}

.chat-head {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 14px 14px 14px 18px;
  background:
    radial-gradient(120% 160% at 0% 0%, rgba(27,183,177,0.30), transparent 55%),
    radial-gradient(90% 140% at 100% 100%, rgba(41,171,201,0.20), transparent 60%),
    var(--navy);
  color: #fff; --focus: var(--cyan);
}
.chat-head img { width: 36px; height: 36px; border-radius: 50%; }
.chat-head h2 { font-size: 1.1rem; letter-spacing: -0.015em; line-height: 1.2; }
.chat-head p { font-size: 0.85rem; line-height: 1.4; color: #7FE0DB; }
.chat-close {
  width: 40px; height: 40px; display: grid; place-items: center; padding: 0;
  border: 1px solid rgba(255,255,255,0.28); border-radius: 50%; background: transparent; color: #fff;
  transition: transform 0.3s var(--spring);
}
.chat-close svg { width: 18px; height: 18px; }
.chat-close:hover, .chat-close:focus-visible { background: rgba(255,255,255,0.12); border-color: #fff; }
.chat-close:active { transform: scale(0.94); }

.chat-log {
  flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 18px 16px;
  display: flex; flex-direction: column; gap: 10px; background: var(--mint);
}
/* The panel clips overflow, so the global 3px-outside ring is cut off on a scrollable region like this
   one (it gets focus after a starter click, or via Tab); draw it inside the box instead. */
.chat-log:focus-visible { outline-offset: -3px; border-radius: 0; }
.chat-msg { max-width: 88%; padding: 10px 14px; border-radius: 16px; font-size: 0.98rem; line-height: 1.55; overflow-wrap: anywhere; border: 1px solid transparent; }
.chat-msg p + p, .chat-msg p + ul, .chat-msg ul + p { margin-top: 0.5em; }
.chat-msg ul { list-style: disc; padding-left: 1.2em; }
.chat-msg a { color: var(--teal-deep); font-weight: 600; }
.chat-msg a:hover, .chat-msg a:focus-visible { color: var(--navy); text-decoration-thickness: 2px; }
.chat-msg a:active { opacity: 0.7; }
.chat-msg.assistant { align-self: flex-start; background: var(--white); border-bottom-left-radius: 6px; box-shadow: var(--shadow-1); }
.chat-msg.user { align-self: flex-end; background: var(--navy); color: #fff; border-bottom-right-radius: 6px; }
.chat-msg.user p { white-space: pre-wrap; }
.chat-msg.typing { min-width: 64px; min-height: 42px; }
.chat-msg.typing::after {
  content: ''; display: block; width: 36px; height: 10px;
  background: radial-gradient(circle, var(--ink-muted) 3px, transparent 3.5px) 0 50% / 12px 10px repeat-x;
  animation: chat-dots 1.1s ease-in-out infinite;
}
@keyframes chat-dots { 50% { opacity: 0.3; } }

.chat-starters { display: flex; flex-wrap: wrap; gap: 8px; }
.chat-starters[hidden] { display: none; }
.chat-starters button {
  padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(11,116,113,0.35);
  background: var(--white); color: var(--teal-deep); font-size: 0.92rem; font-weight: 600; line-height: 1.3;
  transition: transform 0.3s var(--spring);
}
.chat-starters button:hover, .chat-starters button:focus-visible { border-color: var(--teal-deep); transform: translateY(-1px); }
.chat-starters button:active { transform: scale(0.97); }

.chat-notice { padding: 12px 14px; border-radius: 14px; background: var(--white); border: 1px solid rgba(225,96,63,0.4); font-size: 0.95rem; line-height: 1.5; }
.chat-notice-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }

.chat-ts { padding: 0 12px; background: var(--white); }
.chat-ts:empty { display: none; }
.chat-form { display: flex; align-items: flex-end; gap: 8px; padding: 12px 12px 6px; background: var(--white); border-top: 1px solid var(--line); }
.chat-form textarea {
  flex: 1; resize: none; max-height: 120px; padding: 10px 12px;
  border: 1px solid rgba(14,34,49,0.3); border-radius: 12px; background: var(--white); color: var(--navy);
  font: inherit; font-size: 1rem; line-height: 1.45;
}
/* The input takes focus when the panel opens; the site's 3px offset ring read as a double border here. */
.chat-form textarea:focus-visible { outline-offset: 0; border-color: var(--teal-deep); }
.chat-send {
  flex: none; width: 44px; height: 44px; display: grid; place-items: center; padding: 0;
  border: 1px solid transparent; border-radius: 12px; background: var(--teal-deep); color: #fff; transition: transform 0.3s var(--spring);
}
.chat-send svg { width: 20px; height: 20px; }
.chat-send:hover:not(:disabled), .chat-send:focus-visible:not(:disabled) { background: var(--navy); }
.chat-send:active { transform: scale(0.94); }
.chat-send:disabled { opacity: 0.55; cursor: default; transform: none; }
.chat-note { padding: 0 14px 12px; background: var(--white); font-size: 0.8rem; line-height: 1.4; color: var(--ink-muted); }
.chat-note a { color: var(--teal-deep); }
.chat-note a:hover, .chat-note a:focus-visible { color: var(--navy); text-decoration-thickness: 2px; }
.chat-note a:active { opacity: 0.7; }

@media (prefers-reduced-motion: reduce) {
  .chat-panel { animation: none; }
  .chat-launch, .chat-close, .chat-starters button, .chat-send { transition: none; }
  .chat-msg.typing::after { animation: none; }
}
@media (forced-colors: active) {
  /* box-shadow (the panel's border substitute, and .chat-msg.assistant's separation from the mint log)
     is suppressed under forced colors; give the panel a real border so its edge is still visible. */
  .chat-panel { border: 1px solid CanvasText; }
}
