/* Implant Patient Guide — design tokens (see design-system/.../MASTER.md overrides) */
:root {
  --ink: #1C1917; --ink-2: #44403C; --muted: #57534E; --faint: #78716C;
  --bg: #FFFFFF; --stone: #FAFAF9; --sand: #F5F1EA; --sand-2: #EDE6DA; --line: #E7E1D8;
  --gold: #A16207; --gold-soft: #FBF3DD; --link: #854D0E;
  --cta: #9A3412; --cta-hover: #7C2D12; --cta-soft: #FDF0E8;
  --reg: #1E3A8A; --reg-soft: #E8EEFB; --ev: #5B21B6; --ev-soft: #F1EAFB; --mfr: #92400E; --mfr-soft: #FDF3E1; --pre: #44403C; --pre-soft: #EFECE7;
  --ok: #166534; --warn: #9A3412; --warn-soft: #FDF0E8;
  --radius: 14px; --shadow: 0 1px 2px rgba(28,25,23,.05), 0 10px 30px rgba(28,25,23,.07);
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Noto Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 18px/1.65 var(--sans); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { color: var(--cta); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--serif); color: var(--ink); line-height: 1.15; letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); font-weight: 600; margin: .15em 0 .4em; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.3rem); font-weight: 600; margin: 1.6em 0 .5em; }
h3 { font-size: 1.4rem; font-weight: 600; margin: 1.3em 0 .4em; }
p { margin: .4em 0 1em; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 800px; }
.skip { position: absolute; left: -999px; } .skip:focus { left: 16px; top: 8px; background: #fff; padding: 10px 14px; z-index: 99; }
.muted { color: var(--muted); }
.eyebrow { font: 700 .82rem/1.2 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin: 0 0 12px; }
.lead { font-size: 1.22rem; color: var(--ink-2); max-width: 66ch; }
.ico { flex: none; }

/* Independence bar */
.indep-bar { background: var(--ink); color: #E7E5E4; font-size: .92rem; }
.indep-bar .wrap { display: flex; gap: 10px; align-items: center; min-height: 40px; padding-top: 6px; padding-bottom: 6px; }
.indep-bar a { color: #F5D78E; }
.indep-bar .ico { color: #E8C77A; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line); backdrop-filter: blur(8px); }
.hdr { display: flex; align-items: center; gap: 20px; min-height: 78px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand-mark { width: 42px; height: 42px; flex: none; }
.brand b { display: block; font-family: var(--serif); font-size: 1.28rem; font-weight: 700; line-height: 1.1; }
.brand small { display: block; color: var(--muted); font-size: .78rem; }
.nav { display: flex; gap: 2px; align-items: center; margin-left: auto; }
.nav a { color: var(--ink); text-decoration: none; padding: 10px 9px; border-radius: 8px; font-weight: 500; font-size: .95rem; white-space: nowrap; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--sand); color: var(--ink); }
.nav .nav-cta { margin-left: 8px; color: #fff; }
.nav .nav-cta:hover { background: var(--cta-hover); color: #fff; }
.menu-btn { display: none; margin-left: auto; align-items: center; gap: 8px; background: #fff; border: 1.5px solid var(--line); border-radius: 10px; min-height: 48px; padding: 0 14px; font: 600 1rem var(--sans); color: var(--ink); cursor: pointer; }
@media (max-width: 1240px) {
  .menu-btn { display: inline-flex; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; background: #fff; border-bottom: 1px solid var(--line); padding: 8px 20px 20px; box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .nav a { padding: 15px 8px; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 1.1rem; }
  .nav .nav-cta { margin: 14px 0 0; border: 0; border-radius: 10px; text-align: center; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--cta); color: #fff; border: 0; border-radius: 10px; min-height: 54px; padding: 14px 24px; font: 600 1.04rem/1.2 var(--sans); text-decoration: none; cursor: pointer; transition: background .2s, transform .2s; }
.btn:hover { background: var(--cta-hover); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn-sm { min-height: 46px; padding: 10px 16px; font-size: .96rem; }
.btn-light { background: #fff; color: var(--ink); border: 1.5px solid var(--line); }
.btn-light:hover { background: var(--stone); color: var(--ink); border-color: var(--ink-2); }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; margin: 22px 0; }

/* Sections */
.section { padding: 76px 0; }
.section.sand { background: var(--sand); }
.section.stone { background: var(--stone); }
.section.tight { padding: 48px 0; }
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; margin-bottom: 28px; }
.sec-head h2 { margin: 0; }
.sec-head .more { font-weight: 600; text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }

/* Hero */
.hero { background: linear-gradient(180deg, var(--sand) 0%, #fff 100%); padding: 52px 0 60px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 460px; gap: 48px; align-items: start; }
@media (max-width: 1000px) { .hero-grid { grid-template-columns: 1fr; } }
.hero-points { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.hero-points li { display: flex; gap: 12px; align-items: flex-start; font-size: 1.08rem; }
.hero-points .ico { color: var(--ok); margin-top: 3px; }
.hero-photo { border-radius: 18px; overflow: hidden; margin-top: 28px; box-shadow: var(--shadow); }
.hero-photo img { aspect-ratio: 16 / 8; object-fit: cover; width: 100%; }
.page-hero { background: var(--sand); padding: 44px 0 40px; }
.page-hero-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 44px; align-items: center; }
.page-hero-grid img { border-radius: 18px; aspect-ratio: 4 / 3; object-fit: cover; width: 100%; box-shadow: var(--shadow); }
@media (max-width: 900px) { .page-hero-grid { grid-template-columns: 1fr; } }
.crumbs { font-size: .95rem; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--muted); }
.tagline { font-family: var(--serif); font-size: 1.35rem; color: var(--gold); font-style: italic; margin: -4px 0 14px; }

/* Cards */
.grid { display: grid; gap: 20px; }
.g2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.g3 { grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.g4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
a.card { display: block; color: inherit; text-decoration: none; transition: box-shadow .2s, transform .2s, border-color .2s; }
a.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: #d6cfc3; }
.card h3 { margin: 0 0 6px; }
.card.pic { padding: 0; overflow: hidden; }
.card.pic img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.card.pic .body { padding: 20px 22px 24px; }
.card .go { color: var(--cta); font-weight: 600; display: inline-flex; gap: 6px; align-items: center; margin-top: 8px; }
.kicker { font: 700 .75rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.chip { font-size: .85rem; padding: 4px 10px; border-radius: 999px; background: var(--sand); color: var(--ink-2); }

/* iEXCEL quad */
.quad { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.quad a { background: #fff; border: 1.5px solid var(--line); border-radius: 14px; padding: 20px; text-decoration: none; color: var(--ink); }
.quad a:hover { border-color: var(--gold); }
.quad b { font-family: var(--serif); font-size: 1.6rem; display: block; }
.quad span { color: var(--muted); font-size: .98rem; }
.quad-axis { display: grid; grid-template-columns: 110px 1fr 1fr; gap: 10px; align-items: center; }
.quad-axis .lab { font: 700 .78rem var(--sans); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }

/* Content layout */
.with-side { display: grid; grid-template-columns: minmax(0, 780px) 330px; gap: 56px; justify-content: space-between; }
@media (max-width: 1060px) { .with-side { grid-template-columns: 1fr; } .side { order: 2; } }
.side-sticky { position: sticky; top: 100px; }
.side-box { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 20px; background: #fff; }
.side-box h2 { font: 700 .8rem var(--sans); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 0 0 10px; }
.side-list { list-style: none; margin: 0; padding: 0; }
.side-list li { border-bottom: 1px solid var(--line); }
.side-list li:last-child { border: 0; }
.side-list a { display: flex; justify-content: space-between; gap: 10px; padding: 11px 0; color: var(--ink); text-decoration: none; font-weight: 500; }
.side-list a:hover, .side-list a[aria-current="page"] { color: var(--cta); }
.facts { width: 100%; border-collapse: collapse; font-size: .95rem; }
.facts th, .facts td { text-align: left; vertical-align: top; padding: 9px 0; border-bottom: 1px solid var(--line); }
.facts th { color: var(--muted); font-weight: 500; width: 44%; padding-right: 10px; }
.article > section:first-child h2 { margin-top: 0; }
.dash { list-style: none; padding: 0; }
.dash li { position: relative; padding: 9px 0 9px 30px; border-bottom: 1px solid var(--line); }
.dash li::before { content: ""; position: absolute; left: 4px; top: 21px; width: 14px; height: 2px; background: var(--gold); }
.steps-list { counter-reset: s; list-style: none; padding: 0; }
.steps-list li { counter-increment: s; position: relative; padding: 10px 0 14px 50px; }
.steps-list li::before { content: counter(s); position: absolute; left: 0; top: 8px; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .95rem; }
.callout { background: var(--sand); border-left: 4px solid var(--gold); border-radius: 0 12px 12px 0; padding: 18px 22px; margin: 22px 0; }
.callout.warn { background: var(--warn-soft); border-color: var(--warn); }
.callout.info { background: var(--reg-soft); border-color: var(--reg); }
.figure { margin: 26px 0; }
.figure img { border-radius: 16px; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.figure figcaption { font-size: .92rem; color: var(--muted); margin-top: 8px; }
.cite a { font-size: .75em; font-weight: 700; text-decoration: none; padding: 0 2px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); margin: 20px 0; }
.tbl { border-collapse: collapse; width: 100%; min-width: 560px; font-size: .98rem; }
.tbl th, .tbl td { padding: 13px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.tbl thead th { background: var(--sand); font-family: var(--sans); font-weight: 700; }
.tbl tbody th { font-weight: 600; background: var(--stone); }
.link-cards { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin: 18px 0; }
.link-card { display: flex; justify-content: space-between; gap: 10px; align-items: center; border: 1.5px solid var(--line); border-radius: 12px; padding: 14px 16px; text-decoration: none; color: var(--ink); font-weight: 600; min-height: 56px; }
.link-card:hover { border-color: var(--gold); color: var(--ink); }

/* Claims & badges */
.badge { display: inline-flex; align-items: center; font-size: .76rem; font-weight: 700; padding: 3px 8px; border-radius: 6px; letter-spacing: .01em; white-space: nowrap; }
.badge.reg { background: var(--reg-soft); color: var(--reg); } .badge.ev { background: var(--ev-soft); color: var(--ev); }
.badge.mfr { background: var(--mfr-soft); color: var(--mfr); } .badge.pre { background: var(--pre-soft); color: var(--pre); }
.claim { border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; margin: 14px 0; background: #fff; }
.claim .c-head { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 6px; }
.claim .c-text { font-size: 1.04rem; margin: 0; }
.claim .c-note { color: var(--muted); font-size: .93rem; margin: 6px 0 0; }
.claim.manufacturer { border-left: 4px solid var(--mfr); }
.claim.independent { border-left: 4px solid var(--ev); }
.claim.regulatory { border-left: 4px solid var(--reg); }

/* Review box & sources */
.review { display: flex; gap: 14px; align-items: flex-start; background: var(--stone); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; font-size: .95rem; margin: 18px 0; }
.review .ico { color: var(--gold); margin-top: 2px; }
.sources { font-size: .93rem; }
.sources ol { padding-left: 1.3em; }
.sources li { margin: 8px 0; }
.sources .badge { margin-right: 6px; }

/* Assessment form */
.assess { background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 24px 60px rgba(28,25,23,.14); padding: 26px; }
.assess h2 { font-size: 1.55rem; margin: 0 0 4px; }
.assess .sub { color: var(--muted); margin: 0 0 12px; font-size: .98rem; }
.progress { height: 6px; background: var(--sand-2); border-radius: 99px; overflow: hidden; margin: 10px 0 16px; }
.progress span { display: block; height: 100%; background: var(--gold); transition: width .3s; }
.step[hidden] { display: none; }
.step { border: 0; padding: 0; margin: 0; min-width: 0; }
.step legend { font-family: var(--serif); font-size: 1.3rem; font-weight: 600; margin-bottom: 10px; padding: 0; }
.fld { display: grid; gap: 6px; margin-bottom: 14px; }
.fld label, .fld .lbl { font-weight: 600; }
.fld small { color: var(--muted); font-weight: 400; }
.fld input, .fld select, .fld textarea { font: inherit; padding: 13px 14px; min-height: 52px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); width: 100%; }
.fld input:focus, .fld select:focus, .fld textarea:focus { border-color: var(--gold); outline: none; box-shadow: 0 0 0 4px var(--gold-soft); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 560px) { .two { grid-template-columns: 1fr; } }
.opts { display: grid; gap: 10px; }
.opt { display: flex; align-items: center; gap: 12px; border: 2px solid var(--line); border-radius: 12px; padding: 14px 16px; cursor: pointer; min-height: 60px; font-weight: 600; }
.opt:hover, .opt:has(input:checked) { border-color: var(--gold); background: var(--gold-soft); }
.opt input { width: 22px; height: 22px; accent-color: var(--cta); flex: none; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: .93rem; color: var(--ink-2); margin: 12px 0 16px; }
.consent input { width: 24px; height: 24px; flex: none; margin-top: 2px; accent-color: var(--cta); }
.assess .btn { width: 100%; }
.form-nav { display: flex; gap: 10px; }
.form-nav .btn-light { flex: 0 0 auto; width: auto; }
.trust-row { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 14px 0 0; padding: 12px 0 0; border-top: 1px solid var(--line); font-size: .88rem; color: var(--muted); list-style: none; }
.trust-row li { display: flex; gap: 6px; align-items: center; }
.trust-row .ico { color: var(--ok); }
.hp { position: absolute; left: -9999px; }
.alert { background: var(--warn-soft); border: 1px solid #f3c6ad; color: var(--warn); border-radius: 10px; padding: 12px 14px; margin-bottom: 14px; }

/* CTA band */
.cta-band { display: grid; grid-template-columns: 1.3fr 1fr; gap: 36px; align-items: center; background: var(--ink); color: #E7E5E4; border-radius: 22px; padding: 44px; overflow: hidden; }
.cta-band h2 { color: #fff; margin-top: 0; }
.cta-band p { color: #D6D3D1; }
.cta-band img { border-radius: 16px; aspect-ratio: 4 / 3; object-fit: cover; }
@media (max-width: 860px) { .cta-band { grid-template-columns: 1fr; padding: 28px; } }
.cta-inline { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; background: var(--gold-soft); border: 1px solid #efdca6; border-radius: 14px; padding: 18px 22px; margin: 30px 0; }
.cta-inline p { margin: 0; font-weight: 600; max-width: 52ch; }

/* Video */
.video { position: relative; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: #111 center / cover no-repeat; border: 0; padding: 0; width: 100%; display: block; cursor: pointer; }
.video::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.6)); }
.video .play { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); width: 76px; height: 76px; border-radius: 50%; background: rgba(255,255,255,.95); display: grid; place-items: center; color: var(--cta); z-index: 1; }
.video .vt { position: absolute; left: 18px; right: 18px; bottom: 14px; color: #fff; z-index: 1; text-align: left; font-weight: 600; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-cap { font-size: .9rem; color: var(--muted); margin: 8px 0 24px; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 44px 18px 0; font-weight: 600; font-size: 1.1rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 8px; top: 12px; font-size: 1.8rem; color: var(--gold); font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq .a { padding-bottom: 18px; color: var(--ink-2); }

/* Compare table */
.cmp-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; }
.cmp { border-collapse: separate; border-spacing: 0; width: 100%; min-width: 640px; }
.cmp th, .cmp td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.cmp thead th { background: var(--ink); color: #fff; font-family: var(--serif); font-size: 1.2rem; font-weight: 600; }
.cmp tbody th { position: sticky; left: 0; background: #fff; width: 210px; font-weight: 600; box-shadow: 1px 0 0 var(--line); }
.cmp tr.grp th { background: var(--sand); font: 700 .8rem var(--sans); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); position: static; box-shadow: none; }
.cmp tr.diff td { background: #FFFBEB; }
.cmp td small { display: block; color: var(--faint); font-size: .8rem; margin-top: 3px; }

/* Explorer */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.filters button { border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: 9px 16px; font: 500 .96rem var(--sans); cursor: pointer; min-height: 44px; color: var(--ink); }
.filters button[aria-pressed="true"] { border-color: var(--gold); background: var(--gold-soft); font-weight: 700; }
.sys-card[hidden] { display: none; }

/* Footer */
.site-footer { background: var(--ink); color: #D6D3D1; padding: 60px 0 30px; }
.site-footer a { color: #fff; }
.f-cols { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 900px) { .f-cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .f-cols { grid-template-columns: 1fr; } }
.f-brand { font-family: var(--serif); font-size: 1.5rem; color: #fff; margin: 0 0 8px; }
.f-h { font: 700 .82rem var(--sans); text-transform: uppercase; letter-spacing: .1em; color: #A8A29E; margin: 0 0 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 8px 0; }
.site-footer li a { text-decoration: none; }
.site-footer li a:hover { text-decoration: underline; color: #fff; }
.f-disclosure { border-top: 1px solid #3a3531; margin-top: 40px; padding-top: 22px; font-size: .9rem; color: #A8A29E; }

.sticky-cta { display: none; }
@media (max-width: 760px) {
  body { font-size: 17px; padding-bottom: 78px; }
  .section { padding: 54px 0; }
  .sticky-cta { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: #fff; border-top: 1px solid var(--line); padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); box-shadow: 0 -6px 20px rgba(0,0,0,.08); }
  .sticky-cta .btn { width: 100%; }
  .indep-bar { font-size: .85rem; }
  .brand small { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
@media print { .site-header, .site-footer, .sticky-cta, .indep-bar { display: none; } }
.brand b { white-space: nowrap; }
@media (max-width: 1420px) { .brand small { display: none; } }
