/* OrthoKneeBrace design system. Single stylesheet, no framework. */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/assets/fonts/inter-var.woff2") format("woff2");
}

:root {
  --ink: #0b2239;
  --ink-2: #1d3a57;
  --body: #3c5872;
  --muted: #61788f;
  --line: #d9e5ef;
  --line-soft: #e7eff6;
  --bg: #ffffff;
  --bg-soft: #f2f7fb;
  --bg-tint: #e9f3f9;
  --navy: #0b2239;
  --navy-2: #122f4d;
  --primary: #0a66a8;
  --primary-2: #084e83;
  --primary-soft: #e3eff8;
  --teal: #0a8f8c;
  --teal-2: #0a7572;
  --teal-soft: #e2f3f2;
  --gold: #f0a824;
  --green: #1e9d62;
  --green-soft: #e3f5ec;
  --red: #c0392b;
  --red-soft: #fdecea;
  --shadow-sm: 0 1px 2px rgba(11, 34, 57, .06), 0 1px 3px rgba(11, 34, 57, .08);
  --shadow-md: 0 4px 14px rgba(11, 34, 57, .08), 0 1px 3px rgba(11, 34, 57, .06);
  --shadow-lg: 0 16px 40px rgba(11, 34, 57, .14);
  --radius: 14px;
  --radius-sm: 9px;
  --maxw: 1180px;
  --maxw-narrow: 840px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--body);
  background: var(--bg);
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--primary-2); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.18; margin: 0 0 .55em; font-weight: 800; letter-spacing: -.015em; }
h1 { font-size: clamp(2.05rem, 4.4vw, 3.1rem); }
h2 { font-size: clamp(1.55rem, 3vw, 2.15rem); }
h3 { font-size: 1.25rem; letter-spacing: -.01em; }
h4 { font-size: 1.05rem; }
p { margin: 0 0 1.1em; }
ul, ol { padding-left: 1.35em; margin: 0 0 1.2em; }
li { margin-bottom: .45em; }
strong { color: var(--ink-2); }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.4rem 0; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; border-radius: 4px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--navy); color: #fff; padding: .8rem 1.2rem; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.container--narrow { max-width: var(--maxw-narrow); }

/* ---------- Top utility bar ---------- */
.topbar { background: var(--navy); color: #cfe0ee; font-size: .84rem; }
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 38px; }
.topbar a { color: #fff; text-decoration: none; font-weight: 600; }
.topbar a:hover { text-decoration: underline; }
.topbar__note { display: flex; align-items: center; gap: .45rem; }
.topbar__links { display: flex; gap: 1.4rem; align-items: center; }
@media (max-width: 720px) { .topbar__note span.hide-s { display: none; } }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(150%) blur(8px);
  border-bottom: 1px solid var(--line-soft);
}
.site-header.is-scrolled { box-shadow: var(--shadow-md); }
.site-header .container { display: flex; align-items: center; gap: 1.6rem; min-height: 72px; }
.brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; margin-right: auto; }
.brand svg { flex: 0 0 auto; }
.brand__name { font-weight: 800; font-size: 1.22rem; color: var(--ink); letter-spacing: -.02em; line-height: 1.1; }
.brand__name span { color: var(--teal); }
.brand__tag { display: block; font-size: .64rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

.nav { display: flex; align-items: center; gap: .2rem; }
.nav > ul { display: flex; list-style: none; margin: 0; padding: 0; gap: .2rem; }
.nav > ul > li { position: relative; }
.nav a, .nav button.nav__top {
  display: flex; align-items: center; gap: .3rem;
  padding: .68rem .8rem; border: 0; background: none; cursor: pointer;
  font: inherit; font-size: .94rem; font-weight: 600; color: var(--ink-2);
  text-decoration: none; border-radius: 8px;
}
.nav a:hover, .nav button.nav__top:hover { background: var(--bg-soft); color: var(--ink); }
.nav .caret { width: 9px; height: 9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); }
.nav__drop {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 268px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow-lg); padding: .5rem;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
  list-style: none; margin: 0; z-index: 110;
}
.nav li:hover > .nav__drop, .nav li:focus-within > .nav__drop { opacity: 1; visibility: visible; transform: translateY(0); }
.nav__drop a { display: block; padding: .55rem .8rem; font-weight: 500; border-radius: 8px; }
.nav__drop a strong { display: block; font-weight: 600; color: var(--ink); }
.nav__drop a small { color: var(--muted); font-size: .8rem; }
.nav__drop .nav__all { border-top: 1px solid var(--line-soft); margin-top: .35rem; padding-top: .45rem; }
.nav__drop .nav__all a { color: var(--primary); font-weight: 600; }

.nav-toggle { display: none; }
.header-cta { white-space: nowrap; }

@media (max-width: 1020px) {
  .nav {
    position: fixed; inset: 0; top: 0; padding: 5.4rem 1.4rem 2rem; z-index: 90;
    background: #fff; overflow-y: auto; display: none;
  }
  .nav.is-open { display: block; }
  .nav > ul { flex-direction: column; gap: 0; }
  .nav > ul > li { border-bottom: 1px solid var(--line-soft); }
  .nav a, .nav button.nav__top { width: 100%; justify-content: space-between; padding: 1rem .4rem; font-size: 1.05rem; min-height: 52px; }
  .nav__drop { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 .6rem .8rem; display: none; }
  .nav li.is-open > .nav__drop { display: block; }
  .nav li:hover > .nav__drop { display: none; }
  .nav li.is-open:hover > .nav__drop { display: block; }
  .nav-toggle {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 48px; height: 48px; padding: 12px; background: none; border: 1px solid var(--line);
    border-radius: 10px; cursor: pointer; z-index: 95;
  }
  .nav-toggle span { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s, opacity .2s; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .header-cta { display: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 1.5rem; min-height: 48px;
  border-radius: 10px; border: 1px solid transparent;
  font: inherit; font-size: .98rem; font-weight: 700; letter-spacing: .01em;
  cursor: pointer; text-decoration: none; transition: background .15s, border-color .15s, transform .15s, box-shadow .15s;
}
.btn--primary { background: var(--primary); color: #fff; box-shadow: 0 2px 8px rgba(10, 102, 168, .3); }
.btn--primary:hover { background: var(--primary-2); color: #fff; transform: translateY(-1px); }
.btn--teal { background: var(--teal); color: #fff; box-shadow: 0 2px 8px rgba(10, 143, 140, .3); }
.btn--teal:hover { background: var(--teal-2); color: #fff; transform: translateY(-1px); }
.btn--ghost { background: #fff; color: var(--ink-2); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn--light { background: #fff; color: var(--navy); }
.btn--light:hover { background: var(--bg-tint); color: var(--navy); }
.btn--lg { padding: 1.02rem 1.9rem; font-size: 1.05rem; border-radius: 12px; }
.btn--block { width: 100%; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(720px 420px at 12% -10%, #dff0fa 0%, rgba(223, 240, 250, 0) 60%),
    radial-gradient(640px 420px at 95% 8%, #e0f2f1 0%, rgba(224, 242, 241, 0) 55%),
    linear-gradient(180deg, #f6fafd 0%, #ffffff 100%);
  padding: 3.6rem 0 4rem;
  overflow: hidden;
}
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 3rem; align-items: center; }
.hero h1 { margin-bottom: .5em; }
.hero .lead { font-size: 1.18rem; max-width: 34em; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.6rem 0 1.4rem; }
.hero__proof { display: flex; align-items: center; gap: .8rem; font-size: .9rem; color: var(--muted); }
.hero__proof .avatars { display: flex; }
.hero__proof .avatars img { width: 34px; height: 34px; border-radius: 50%; border: 2px solid #fff; margin-left: -9px; }
.hero__proof .avatars img:first-child { margin-left: 0; }
.hero__media { position: relative; }
.hero__media > img { border-radius: 18px; box-shadow: var(--shadow-lg); }
.float-card {
  position: absolute; background: #fff; border-radius: 12px; box-shadow: var(--shadow-lg);
  padding: .8rem 1.05rem; display: flex; gap: .65rem; align-items: center; font-size: .86rem;
  border: 1px solid var(--line-soft);
}
.float-card strong { display: block; font-size: 1rem; color: var(--ink); }
.float-card--tl { top: 7%; left: -26px; }
.float-card--br { bottom: 8%; right: -18px; }
.float-card .dot { width: 38px; height: 38px; flex: 0 0 38px; border-radius: 10px; display: grid; place-items: center; }
.dot--teal { background: var(--teal-soft); color: var(--teal); }
.dot--blue { background: var(--primary-soft); color: var(--primary); }
.dot--green { background: var(--green-soft); color: var(--green); }
.dot--gold { background: #fdf3e0; color: var(--gold); }
@media (max-width: 920px) {
  .hero__grid { grid-template-columns: 1fr; gap: 2.2rem; }
  .float-card--tl { left: 8px; }
  .float-card--br { right: 8px; }
}

/* ---------- Sections ---------- */
.section { padding: 4.4rem 0; }
.section--alt { background: var(--bg-soft); }
.section--navy { background: linear-gradient(135deg, var(--navy) 0%, #123a5e 70%, #14495f 100%); color: #c9dcec; }
.section--navy h2, .section--navy h3 { color: #fff; }
.section--tight { padding: 3rem 0; }
.section__head { max-width: 720px; margin-bottom: 2.4rem; }
.section__head--center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--teal); margin-bottom: .8rem;
}
.section--navy .eyebrow { color: #7fd1cf; }
.lead { font-size: 1.12rem; color: var(--body); }

/* ---------- Grids & cards ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.3rem; }
@media (max-width: 980px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem; box-shadow: var(--shadow-sm);
}
a.card { display: block; text-decoration: none; color: var(--body); transition: transform .18s ease, box-shadow .18s ease, border-color .18s; }
a.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #bcd4e6; }
a.card h3 { color: var(--ink); }
.card__img { margin: -1.6rem -1.6rem 1.2rem; border-radius: var(--radius) var(--radius) 0 0; overflow: hidden; }
.card__img img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.card .more { font-weight: 700; color: var(--primary); font-size: .92rem; }

.icon-tile {
  width: 52px; height: 52px; border-radius: 13px; display: grid; place-items: center;
  background: var(--primary-soft); color: var(--primary); margin-bottom: 1.1rem;
}
.icon-tile--teal { background: var(--teal-soft); color: var(--teal); }
.icon-tile--green { background: var(--green-soft); color: var(--green); }
.icon-tile--gold { background: #fdf3e0; color: #c47f0e; }

/* ---------- Trust / badges ---------- */
.badge-strip { border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); background: #fff; }
.badge-strip .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 2.2rem; padding-top: 1.3rem; padding-bottom: 1.3rem; }
.badge-strip__label { font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.tbadge { display: flex; align-items: center; gap: .55rem; color: var(--ink-2); font-weight: 700; font-size: .95rem; opacity: .82; }
.tbadge svg { color: var(--teal); }

/* ---------- Stats band ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; text-align: center; }
.stats .num { font-size: clamp(1.9rem, 3.4vw, 2.7rem); font-weight: 800; color: #fff; letter-spacing: -.02em; }
.stats .num small { font-size: .6em; font-weight: 700; }
.stats .lbl { font-size: .92rem; color: #9fc1da; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Product cards ---------- */
.product-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .18s, box-shadow .18s; }
.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.product-card__img { background: #fff; padding: 1rem; border-bottom: 1px solid var(--line-soft); }
.product-card__img img { aspect-ratio: 1; object-fit: contain; margin: 0 auto; max-width: 230px; }
.product-card__body { padding: 1.25rem 1.4rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.product-card h3 { font-size: 1.08rem; margin-bottom: .3rem; }
.product-card .tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .8rem; }
.product-card p { font-size: .92rem; margin-bottom: 1rem; }
.product-card .product-card__cta { margin-top: auto; }
.chip { display: inline-block; padding: .18rem .6rem; border-radius: 99px; font-size: .74rem; font-weight: 700; background: var(--primary-soft); color: var(--primary-2); }
.chip--teal { background: var(--teal-soft); color: var(--teal-2); }
.chip--green { background: var(--green-soft); color: #15724a; }
.chip--gold { background: #fdf3e0; color: #9a650d; }
.chip--red { background: var(--red-soft); color: var(--red); }

/* ---------- Reviews ---------- */
.review-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.review-card .stars { color: var(--gold); margin-bottom: .7rem; display: flex; gap: 2px; }
.review-card blockquote { margin: 0 0 1.1rem; font-size: .97rem; color: var(--body); }
.review-card footer { display: flex; align-items: center; gap: .75rem; margin-top: auto; }
.review-card footer img { width: 46px; height: 46px; border-radius: 50%; }
.review-card .who strong { display: block; color: var(--ink); font-size: .94rem; }
.review-card .who span { font-size: .8rem; color: var(--muted); }
.rating-summary { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.rating-summary .big { font-size: 2.6rem; font-weight: 800; color: var(--ink); }

/* ---------- Byline / medical review ---------- */
.byline {
  display: flex; align-items: center; gap: .85rem; padding: .9rem 1.1rem;
  background: var(--bg-soft); border: 1px solid var(--line-soft); border-radius: 12px;
  font-size: .88rem; color: var(--muted); margin: 1.4rem 0 2rem;
}
.byline img { width: 44px; height: 44px; border-radius: 50%; }
.byline strong { color: var(--ink); display: block; font-size: .95rem; }
.byline .check { color: var(--green); flex: 0 0 auto; margin-left: auto; }

/* ---------- Callouts ---------- */
.callout { border-radius: var(--radius); padding: 1.3rem 1.5rem; margin: 1.8rem 0; border: 1px solid; display: flex; gap: .9rem; }
.callout svg { flex: 0 0 auto; margin-top: .15rem; }
.callout--warn { background: #fef6e7; border-color: #f3ddae; color: #6e5413; }
.callout--warn strong { color: #5a430c; }
.callout--info { background: var(--primary-soft); border-color: #c8dff0; color: #144e7c; }
.callout--info strong { color: #0d3f66; }
.callout--danger { background: var(--red-soft); border-color: #f2c4bd; color: #842e22; }
.callout--danger strong { color: #6e2317; }
.callout p:last-child { margin-bottom: 0; }

/* ---------- FAQ ---------- */
.faq { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.faq details { border-bottom: 1px solid var(--line-soft); }
.faq details:last-child { border-bottom: 0; }
.faq summary {
  list-style: none; cursor: pointer; padding: 1.15rem 3.2rem 1.15rem 1.4rem; position: relative;
  font-weight: 700; color: var(--ink); font-size: 1.02rem; min-height: 48px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 1.4rem; top: 50%; width: 10px; height: 10px;
  border-right: 2.4px solid var(--primary); border-bottom: 2.4px solid var(--primary);
  transform: translateY(-70%) rotate(45deg); transition: transform .2s;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.faq summary:hover { background: var(--bg-soft); }
.faq .faq__a { padding: 0 1.4rem 1.3rem; color: var(--body); font-size: .97rem; }
.faq .faq__a p:last-child { margin-bottom: 0; }

/* ---------- Timeline ---------- */
.timeline { list-style: none; padding: 0; margin: 2rem 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 19px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.timeline li { position: relative; padding: 0 0 1.7rem 58px; margin: 0; }
.timeline li:last-child { padding-bottom: 0; }
.timeline .tl-dot {
  position: absolute; left: 0; top: 2px; width: 40px; height: 40px; border-radius: 50%;
  background: #fff; border: 2px solid var(--teal); color: var(--teal-2);
  display: grid; place-items: center; font-weight: 800; font-size: .85rem;
}
.timeline strong.tl-title { display: block; color: var(--ink); font-size: 1.05rem; margin-bottom: .2rem; }
.timeline .tl-when { font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--teal-2); }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; margin: 1.8rem 0; border: 1px solid var(--line); border-radius: var(--radius); -webkit-overflow-scrolling: touch; }
table.cmp { border-collapse: collapse; width: 100%; font-size: .94rem; min-width: 640px; background: #fff; }
table.cmp th, table.cmp td { padding: .85rem 1.1rem; text-align: left; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
table.cmp thead th { background: var(--navy); color: #fff; font-weight: 700; position: sticky; top: 0; }
table.cmp tbody tr:nth-child(even) { background: var(--bg-soft); }
table.cmp tbody tr:last-child td { border-bottom: 0; }
table.cmp td strong { color: var(--ink); }
.yes { color: var(--green); font-weight: 700; }
.no { color: var(--muted); }

/* ---------- CTA band ---------- */
.cta-band {
  background:
    radial-gradient(560px 300px at 88% 0%, rgba(10, 143, 140, .35) 0%, rgba(10, 143, 140, 0) 60%),
    linear-gradient(120deg, var(--navy) 0%, #11395d 60%, #0f4a5e 100%);
  border-radius: 20px; color: #cfe0ee; padding: 3rem; text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { max-width: 38em; margin: 0 auto 1.6rem; }
.cta-band .hero__ctas { justify-content: center; margin: 0; }
@media (max-width: 640px) { .cta-band { padding: 2.2rem 1.4rem; } }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { font-size: .84rem; color: var(--muted); padding: 1.1rem 0 0; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .45rem; padding: 0; margin: 0; }
.breadcrumbs li + li::before { content: "/"; margin-right: .45rem; color: var(--line); }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--primary); text-decoration: underline; }

/* ---------- Article ---------- */
.article-hero { background: linear-gradient(180deg, var(--bg-soft) 0%, #fff 100%); padding: 1rem 0 2.6rem; }
.article-hero h1 { max-width: 18em; }
.article-hero .lead { max-width: 40em; }
.article-body h2 { margin-top: 2.2em; scroll-margin-top: 96px; }
.article-body h3 { margin-top: 1.7em; }
.article-body img { border-radius: var(--radius); margin: 1.6rem 0; }
.article-grid { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 3.4rem; align-items: start; }
@media (max-width: 980px) { .article-grid { grid-template-columns: 1fr; } .article-aside { display: none; } }
.article-aside { position: sticky; top: 96px; }
.toc { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.4rem; background: #fff; font-size: .9rem; margin-bottom: 1.4rem; }
.toc strong { display: block; color: var(--ink); margin-bottom: .6rem; font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; }
.toc ol { list-style: none; padding: 0; margin: 0; }
.toc li { margin: 0; border-left: 2px solid var(--line-soft); }
.toc a { display: block; padding: .42rem .9rem; color: var(--body); text-decoration: none; }
.toc a:hover { color: var(--primary); border-left: 2px solid var(--primary); margin-left: -2px; }
.aside-cta { background: linear-gradient(135deg, var(--navy), #0f4a5e); color: #cfe0ee; border-radius: var(--radius); padding: 1.5rem; font-size: .92rem; }
.aside-cta strong { color: #fff; font-size: 1.05rem; display: block; margin-bottom: .4rem; }
.aside-cta .btn { margin-top: .9rem; }

/* ---------- Checklist ---------- */
.checklist { list-style: none; padding: 0; }
.checklist li { padding-left: 2rem; position: relative; margin-bottom: .7rem; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .42em; width: 8px; height: 13px;
  border-right: 2.6px solid var(--green); border-bottom: 2.6px solid var(--green); transform: rotate(45deg);
}
.xlist { list-style: none; padding: 0; }
.xlist li { padding-left: 2rem; position: relative; margin-bottom: .7rem; }
.xlist li::before, .xlist li::after {
  content: ""; position: absolute; left: 3px; top: .68em; width: 13px; height: 2.6px; background: var(--red); border-radius: 2px;
}
.xlist li::before { transform: rotate(45deg); }
.xlist li::after { transform: rotate(-45deg); }

/* ---------- Forms ---------- */
.form { display: grid; gap: 1.1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.field label { display: block; font-weight: 700; color: var(--ink-2); font-size: .9rem; margin-bottom: .4rem; }
.field .req { color: var(--red); }
.input, select.input, textarea.input {
  width: 100%; padding: .85rem 1rem; min-height: 50px;
  border: 1.5px solid var(--line); border-radius: 10px; font: inherit; color: var(--ink);
  background: #fff; transition: border-color .15s, box-shadow .15s;
}
.input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(10, 102, 168, .15); }
textarea.input { min-height: 120px; resize: vertical; }
.form__note { font-size: .82rem; color: var(--muted); }
.form-status { display: none; padding: 1rem 1.2rem; border-radius: 10px; font-weight: 600; }
.form-status.ok { display: block; background: var(--green-soft); color: #14633f; border: 1px solid #bfe5d2; }
.form-status.err { display: block; background: var(--red-soft); color: #842e22; border: 1px solid #f2c4bd; }
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* ---------- Quiz ---------- */
.quiz { max-width: 760px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-md); overflow: hidden; }
.quiz__bar { height: 7px; background: var(--line-soft); }
.quiz__bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--teal), var(--primary)); border-radius: 0 4px 4px 0; transition: width .35s ease; }
.quiz__inner { padding: 2.2rem clamp(1.2rem, 4vw, 2.6rem) 2.6rem; }
.quiz__step-label { font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--teal-2); margin-bottom: .5rem; }
.quiz h2 { font-size: clamp(1.3rem, 2.6vw, 1.7rem); }
.quiz__options { display: grid; gap: .8rem; margin: 1.6rem 0; }
.quiz__options--2col { grid-template-columns: 1fr 1fr; }
@media (max-width: 640px) { .quiz__options--2col { grid-template-columns: 1fr; } }
.quiz-opt {
  display: flex; align-items: center; gap: .9rem; width: 100%; text-align: left;
  padding: 1.05rem 1.2rem; min-height: 56px; background: #fff;
  border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer;
  font: inherit; font-weight: 600; color: var(--ink-2); transition: border-color .15s, background .15s, transform .12s;
}
.quiz-opt:hover { border-color: var(--primary); background: var(--primary-soft); }
.quiz-opt:active { transform: scale(.99); }
.quiz-opt small { display: block; font-weight: 500; color: var(--muted); }
.quiz-opt .qo-ico { flex: 0 0 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--bg-soft); color: var(--primary); }
.quiz__nav { display: flex; justify-content: space-between; align-items: center; margin-top: 1.4rem; }
.quiz__back { background: none; border: 0; color: var(--muted); font: inherit; font-weight: 600; cursor: pointer; padding: .6rem 1rem; min-height: 48px; border-radius: 8px; }
.quiz__back:hover { color: var(--ink); background: var(--bg-soft); }
.quiz__result-card { border: 1.5px solid var(--teal); background: var(--teal-soft); border-radius: 14px; padding: 1.4rem; margin: 1.4rem 0; display: flex; gap: 1.2rem; align-items: center; }
.quiz__result-card img { width: 110px; border-radius: 10px; background: #fff; }
@media (max-width: 560px) { .quiz__result-card { flex-direction: column; text-align: center; } }

/* ---------- Pain locator ---------- */
.locator { display: grid; grid-template-columns: minmax(260px, 420px) 1fr; gap: 3rem; align-items: start; }
@media (max-width: 860px) { .locator { grid-template-columns: 1fr; } }
.knee-fig { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 1.6rem; box-shadow: var(--shadow-sm); }
.knee-fig svg { width: 100%; height: auto; }
.hotspot { cursor: pointer; }
.hotspot circle.hs-ring { fill: rgba(10, 102, 168, .12); stroke: var(--primary); stroke-width: 1.6; transition: fill .15s; }
.hotspot:hover circle.hs-ring, .hotspot:focus circle.hs-ring { fill: rgba(10, 102, 168, .3); }
.hotspot.is-active circle.hs-ring { fill: var(--primary); }
.hotspot.is-active text { fill: #fff; }
.hotspot text { font: 700 11px Inter, sans-serif; fill: var(--primary-2); text-anchor: middle; pointer-events: none; }
@media (prefers-reduced-motion: no-preference) {
  .hotspot circle.hs-pulse { animation: pulse 2.4s ease-out infinite; transform-origin: center; transform-box: fill-box; }
  @keyframes pulse { 0% { opacity: .55; transform: scale(.6); } 70% { opacity: 0; transform: scale(1.5); } 100% { opacity: 0; transform: scale(1.5); } }
}
.hotspot circle.hs-pulse { fill: none; stroke: var(--primary); stroke-width: 1.4; opacity: 0; }
.locator__panel .lp-item { display: none; }
.locator__panel .lp-item.is-active { display: block; }
.lp-conditions { display: grid; gap: .8rem; margin: 1.2rem 0; }
.lp-cond { display: flex; justify-content: space-between; gap: 1rem; align-items: center; border: 1px solid var(--line); background: #fff; padding: .95rem 1.2rem; border-radius: 12px; text-decoration: none; color: var(--body); transition: border-color .15s, transform .15s; }
.lp-cond:hover { border-color: var(--primary); transform: translateX(3px); }
.lp-cond strong { color: var(--ink); display: block; }
.lp-cond small { color: var(--muted); }
.lp-cond .arr { color: var(--primary); font-weight: 800; }

/* ---------- Steps ---------- */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
.step { counter-increment: step; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; position: relative; }
.step::before {
  content: counter(step, decimal-leading-zero);
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--teal)); color: #fff; font-weight: 800;
  margin-bottom: 1rem; font-size: 1rem;
}

/* ---------- Footer ---------- */
.prefooter { background: var(--bg-soft); border-top: 1px solid var(--line-soft); padding: 2rem 0; font-size: .85rem; color: var(--muted); }
.site-footer { background: var(--navy); color: #9fc1da; padding: 3.6rem 0 2rem; font-size: .93rem; }
.site-footer a { color: #d4e5f2; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2.4rem; margin-bottom: 2.6rem; }
@media (max-width: 920px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 1.1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .55rem; }
.footer-brand .brand__name { color: #fff; }
.footer-brand p { font-size: .88rem; max-width: 30em; }
.footer-legal { border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 1.6rem; display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; font-size: .8rem; color: #7d9cb8; }
.footer-legal ul { display: flex; flex-wrap: wrap; gap: 1.2rem; list-style: none; padding: 0; margin: 0; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .55s ease, transform .55s ease; }
.reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .08s; } .reveal-d2 { transition-delay: .16s; } .reveal-d3 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ---------- Utility ---------- */
.mt-0 { margin-top: 0; } .mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; }
.mb-0 { margin-bottom: 0; }
.center { text-align: center; }
.img-round { border-radius: var(--radius); box-shadow: var(--shadow-md); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 2rem; } }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

@media print {
  .topbar, .site-header, .site-footer, .cta-band, .aside-cta, .hero__ctas, .header-cta { display: none !important; }
  body { font-size: 11pt; color: #000; }
  a { color: #000; text-decoration: none; }
}
