/* Layout concept: the home page opens on an interactive 32-tooth FDI chart; on inner pages the
   headline sits on the logo's amber pulse line with the tooth mark at its end.
   Ink stage above, enamel white below. Amber is light: a fill, never text on white. */
:root {
  --ink: #0C1722;
  --ink-raised: #13222F;
  --film-line: #2A4254;
  --on-ink: #EEF3F5;
  --on-ink-muted: #9FB2BE;
  --enamel: #F3F6F7;
  --white: #FFFFFF;
  --text: #0C1722;
  --text-muted: #4A5B67;
  --rule: #D3DCE1;
  --amber: #FDBD59;       /* sampled from the logo */
  --focus: #0C1722;

  --font-display: "Familjen Grotesk", "Trebuchet MS", system-ui, sans-serif;
  --font-body: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --gutter: clamp(16px, 4vw, 48px);
  --max: 1280px;
  --section: clamp(64px, 9vw, 128px);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--enamel);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em; text-wrap: balance; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.on-ink { --focus: var(--amber); background: var(--ink); color: var(--on-ink); }
.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--amber); color: var(--ink); padding: 10px 14px; border-radius: 8px; }
.num { font-variant-numeric: tabular-nums; }

/* the logo's dotted rule: amber squares, gap equal to the square */
.dots { display: block; height: 6px; border: 0; margin: 0; background: repeating-linear-gradient(90deg, var(--amber) 0 6px, transparent 6px 12px); }

/* the logo mark, inline */
.mark-tooth { fill: var(--white); }
.mark-pulse { fill: var(--amber); transform-box: fill-box; transform-origin: center; }
.spine-line { stroke: var(--amber); fill: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 12px 22px;
  border: 2px solid transparent; border-radius: 14px;
  font: 600 1.0625rem/1.2 var(--font-body); text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-light { background: var(--amber); color: var(--ink); }
.btn-light:hover { background: var(--white); }
.btn-line { border-color: var(--film-line); color: var(--on-ink); background: transparent; }
.btn-line:hover { border-color: var(--on-ink); }
.btn-ink { background: var(--ink); color: var(--white); }
.btn-ink:hover { background: var(--ink-raised); }
.btn-small { min-height: 44px; padding: 8px 16px; font-size: 1rem; border-radius: 12px; }
.text-link { font-weight: 600; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; text-decoration-color: var(--amber); }
.text-link:hover { text-decoration-color: currentColor; }

/* ---------- Design-proposal notice (remove at launch) ---------- */
.proposal-bar { margin: 0; background: var(--ink-raised); color: var(--amber); font-size: .8125rem; font-weight: 600; line-height: 1.35; text-align: center; }
.proposal-bar .wrap { display: block; padding-block: 7px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; border-bottom: 1px solid var(--film-line); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; column-gap: 28px; row-gap: 0; padding-block: 10px; }
.brand { display: inline-flex; align-items: center; margin-right: auto; }
.brand img { display: block; height: 50px; width: auto; }
.nav { display: flex; gap: clamp(18px, 3vw, 36px); }
.nav a { display: inline-block; padding-block: 10px; text-decoration: none; font-weight: 500; color: var(--on-ink-muted); border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--on-ink); }
.nav a[aria-current="page"] { color: var(--on-ink); border-bottom-color: var(--amber); }
@media (max-width: 719px) {
  .site-header .wrap { padding-block: 10px 0; column-gap: 12px; }
  .brand img { height: 36px; }
  .nav { order: 3; width: 100%; justify-content: space-between; gap: 12px; margin-top: 4px; }
  .nav a { font-size: 1rem; }
  .site-header .btn-small { padding-inline: 12px; }
}

/* ---------- Hero: headline beside the interactive tooth chart ---------- */
.hero { position: relative; overflow: hidden; --ring-w: min(100%, 380px); background-image: radial-gradient(46% 56% at 78% 44%, #18304280 0%, #18304200 72%); }
.hero .wrap { display: grid; gap: 36px; padding-block: clamp(32px, 4vw, 52px) clamp(36px, 4vw, 48px); }
.hero h1 { font-size: clamp(3.3rem, 6.9vw, 6.6rem); line-height: .92; letter-spacing: -0.035em; }
.hero-lead { margin-top: 28px; max-width: 30ch; font-size: clamp(1.1875rem, 1.7vw, 1.4375rem); line-height: 1.42; color: var(--on-ink); text-wrap: pretty; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 8px 36px; margin-top: 18px; color: var(--on-ink-muted); font-size: 1rem; }
.hero-facts strong { display: block; color: var(--on-ink); font-weight: 600; }
.hero-copy .dots { margin-top: 36px; max-width: 22rem; }

.chart { display: grid; gap: 14px; min-width: 0; justify-items: center; }
.chart-ring { position: relative; width: var(--ring-w); }
.ring { display: block; width: 100%; height: auto; overflow: visible; }
.tooth { cursor: pointer; }
.tooth rect { fill: #F3F6F70A; stroke: var(--enamel); stroke-width: .5; transition: fill .28s ease, stroke .28s ease; }
.tooth .fis { fill: none; stroke: var(--enamel); stroke-width: .34; stroke-linecap: round; opacity: .5; transition: stroke .28s ease; }
.tooth.lit rect { fill: var(--amber); stroke: var(--amber); }
.tooth.lit .fis { stroke: var(--ink); opacity: .85; }
.tooth.hot rect { fill: var(--enamel); stroke: var(--enamel); }
.tooth.hot .fis { stroke: var(--ink); opacity: .85; }
.tn { fill: #6F8797; font: 500 3.3px var(--font-body); font-variant-numeric: tabular-nums; text-anchor: middle; dominant-baseline: central; transition: fill .28s ease; }
.tn.lit { fill: var(--amber); }
.tn.hot { fill: var(--on-ink); }
.side { fill: #6F8797; font: 500 2.7px var(--font-body); text-anchor: middle; dominant-baseline: central; }

.ring-label { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 47%; text-align: center; pointer-events: none; }
.rl-cap { color: var(--amber); font-size: .875rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.rl-title { margin-top: 6px; font: 700 clamp(1.3rem, 2vw, 1.625rem)/1.08 var(--font-display); letter-spacing: -0.02em; color: var(--on-ink); text-wrap: balance; }
.rl-text { margin-top: 10px; font-size: .9375rem; line-height: 1.45; color: var(--on-ink-muted); text-wrap: pretty; }
.chart-hint { max-width: 26rem; text-align: center; font-size: .875rem; line-height: 1.45; color: #7E93A1; text-wrap: balance; }

.svc-rail { display: grid; }
.svc-list { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.svc { display: inline-flex; align-items: center; gap: 9px; padding: 8px 13px; border: 1px solid var(--film-line); border-radius: 999px; background: transparent; color: var(--on-ink-muted); font: 500 .9375rem/1.2 var(--font-body); text-align: left; cursor: pointer; transition: color .15s ease, border-color .15s ease; }
.svc::before { content: ""; flex: none; width: 9px; height: 11px; border-radius: 3px; border: 1.5px solid currentColor; transition: background-color .15s ease, border-color .15s ease; }
.svc:hover { color: var(--on-ink); }
.svc[aria-pressed="true"] { color: var(--on-ink); border-color: var(--on-ink-muted); }
.svc[aria-pressed="true"]::before { background: var(--amber); border-color: var(--amber); }

@media (min-width: 1000px) {
  .hero { --ring-w: clamp(330px, 30vw, 430px); }
  .hero .wrap { grid-template-columns: minmax(0, 1fr) var(--ring-w); column-gap: clamp(40px, 6vw, 96px); row-gap: 24px; align-items: center; }
  .svc-rail { grid-column: 1 / -1; padding-top: 20px; border-top: 1px solid var(--film-line); }
  .svc-list { justify-content: space-between; gap: 8px 6px; }
  .svc { padding: 7px 12px; }
}
@media (prefers-reduced-motion: no-preference) {
  .ring.wave .tooth rect { animation: wave .7s ease-out calc(var(--i) * 34ms + 250ms) 1; }
  @keyframes wave { 35% { fill: var(--amber); stroke: var(--amber); } }
  /* inner pages: the pulse line arrives from the left, the logo's pulse beats, the line leaves to the right */
  .wave .spine-line { stroke-dasharray: 1; }
  .wave .sl-in { animation: draw .85s cubic-bezier(.1, .6, .3, 1) both; }
  .wave .sl-out { animation: draw 1.1s cubic-bezier(.6, 0, .9, .4) .95s both; }
  .wave .mark-tooth { animation: appear .7s ease-out .15s both; }
  .wave .mark-pulse { animation: beat-in .5s cubic-bezier(.2, 1.5, .4, 1) .7s both; }
  @keyframes draw { from { stroke-dashoffset: 1; } }
  @keyframes appear { from { opacity: 0; } }
  @keyframes beat-in { from { opacity: 0; transform: scaleY(.15); } }
}

/* ---------- Sections on enamel ---------- */
.section { padding-block: var(--section); }
.section-head { display: grid; gap: 16px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head h2 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); line-height: 1; }
.section-head p { max-width: 56ch; color: var(--text-muted); font-size: 1.125rem; }

.about { display: grid; gap: clamp(32px, 5vw, 80px); }
.about h2 { font-size: clamp(2.4rem, 5vw, 4.25rem); line-height: .96; letter-spacing: -0.03em; max-width: 11ch; }
.about-body { display: grid; gap: 18px; align-content: start; max-width: 56ch; margin-top: clamp(24px, 3vw, 40px); }
.about-body p { color: var(--text-muted); font-size: 1.125rem; }
.about-body .about-lead { color: var(--text); font: 700 clamp(1.375rem, 2.2vw, 1.75rem)/1.22 var(--font-display); letter-spacing: -0.015em; text-wrap: pretty; }
.about-body .dots { width: 9rem; margin-block: 6px; }
.about-body .about-name { color: var(--text); font-weight: 600; }
.about-photo { display: grid; gap: 12px; max-width: 30rem; }
.about-photo img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 74% 40%; border-radius: 20px; background: var(--rule); }
.about-photo figcaption { font-size: .9375rem; font-weight: 600; }
@media (min-width: 900px) {
  .about { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); align-items: center; }
  .about-photo { justify-self: end; width: 100%; }
}

/* film tiles: small radiograph-style chips with the relevant teeth lit */
.film { display: block; flex: none; align-self: start; background: var(--ink); border-radius: 9px; padding: 9px 8px; line-height: 0; }
.film svg { display: block; width: 100%; height: auto; }
.g-base { fill: #F3F6F733; }
.g-lit { fill: var(--amber); }

.areas { border-bottom: 1px solid var(--rule); }
.area { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 14px 20px; align-items: start; padding-block: 28px; border-top: 1px solid var(--rule); }
.area h3 { font-size: clamp(1.625rem, 2.7vw, 2.25rem); line-height: 1.02; align-self: center; }
.area h3 a { text-decoration: none; }
.area h3 a:hover { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 6px; text-decoration-color: var(--amber); }
.area-body { grid-column: 1 / -1; display: grid; gap: 10px; }
.area-body .area-line { font-size: 1.1875rem; font-weight: 600; line-height: 1.35; }
.area-body .area-list { color: var(--text-muted); max-width: 62ch; }
@media (min-width: 900px) {
  .area { grid-template-columns: 96px minmax(0, .75fr) minmax(0, 1.25fr); gap: 36px; padding-block: 40px; align-items: center; }
  .area-body { grid-column: auto; }
}

.band-amber { background: var(--amber); color: var(--ink); }
.band-amber .wrap { display: grid; gap: 28px; padding-block: clamp(56px, 8vw, 112px); justify-items: start; }
.band-amber h2 { font-size: clamp(2.4rem, 6.4vw, 5rem); line-height: .96; letter-spacing: -0.03em; max-width: 14ch; }
.band-amber p { max-width: 50ch; font-size: 1.1875rem; font-weight: 500; }

.steps { display: grid; gap: 28px; }
.step { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 6px 18px; align-items: start; }
.step-n { grid-row: span 2; display: grid; place-items: center; width: 46px; height: 52px; border-radius: 15px 15px 18px 18px; background: var(--amber); font: 700 1.375rem/1 var(--font-display); }
.step h3 { font-size: 1.375rem; line-height: 1.15; align-self: end; }
.step p { color: var(--text-muted); max-width: 44ch; }
@media (min-width: 900px) {
  .steps-row { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
  .steps-row .step { grid-template-columns: minmax(0, 1fr); gap: 14px; align-content: start; }
  .steps-row .step-n { grid-row: auto; }
}

/* ---------- Contact band + footer ---------- */
.contact-band .wrap { display: grid; gap: clamp(32px, 5vw, 72px); padding-block: var(--section); }
.contact-band h2 { font-size: 1.25rem; font-family: var(--font-body); font-weight: 600; letter-spacing: 0; color: var(--on-ink-muted); }
.phone-big { display: inline-block; margin-top: 10px; font: 700 clamp(2.9rem, 9.4vw, 7rem)/.95 var(--font-display); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; color: var(--amber); text-decoration: none; white-space: nowrap; }
.phone-big:hover { color: var(--white); }
.contact-band .dots { margin-top: 28px; max-width: 30rem; }
.contact-facts { display: grid; gap: 22px; align-content: end; }
.contact-facts dt { color: var(--on-ink-muted); font-size: .9375rem; }
.contact-facts dd { font-size: 1.1875rem; font-weight: 500; }
@media (min-width: 900px) {
  .contact-band .wrap { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: end; }
}

.site-footer { border-top: 1px solid var(--film-line); }
.site-footer .wrap { display: grid; gap: 32px; padding-block: 48px 32px; }
.footer-top { display: flex; flex-wrap: wrap; gap: 28px 48px; align-items: center; justify-content: space-between; }
.footer-logo { flex: 0 1 460px; min-width: 0; }
.footer-logo img { display: block; width: 100%; height: auto; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 10px 28px; }
.footer-nav a { color: var(--on-ink-muted); text-decoration: none; padding-block: 6px; }
.footer-nav a:hover { color: var(--on-ink); }
.footer-legal { display: flex; flex-wrap: wrap; gap: 6px 28px; justify-content: space-between; padding-top: 22px; border-top: 1px solid var(--film-line); color: #7E93A1; font-size: .875rem; }

/* ---------- Inner pages: headline on the pulse line, mark at its end ---------- */
.page-head { position: relative; overflow: hidden; --mark-w: clamp(92px, 21vw, 236px); }
.page-head .wrap { padding-block: clamp(36px, 5vw, 72px) clamp(36px, 5vw, 64px); }
.spine-row { display: grid; grid-template-columns: minmax(0, 1fr) var(--mark-w); column-gap: clamp(16px, 4vw, 56px); align-items: end; }
.spine-row h1 { font-size: clamp(2.7rem, 7.4vw, 5.6rem); line-height: .94; letter-spacing: -0.035em; padding-bottom: clamp(14px, 2vw, 24px); }
/* the mark's box is centred on the line: pull its lower half out of the row so the row ends on the line */
.spine-mark { display: block; width: var(--mark-w); height: auto; overflow: visible; margin-bottom: calc(var(--mark-w) * -.4613); }
.spine-mark .spine-line { stroke-width: 1.5; }
.page-head-body { display: grid; gap: 20px; justify-items: start; padding-top: clamp(20px, 2.6vw, 30px); min-height: calc(var(--mark-w) * .5); max-width: calc(100% - var(--mark-w) - clamp(16px, 4vw, 56px)); }
.page-head-body p { max-width: 44ch; font-size: clamp(1.125rem, 1.6vw, 1.3125rem); line-height: 1.5; color: var(--on-ink-muted); }
.jump { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 599px) { .page-head-body { max-width: none; padding-top: calc(var(--mark-w) * .5 + 12px); } }

.group { display: grid; gap: 28px; padding-block: clamp(40px, 6vw, 72px); border-top: 1px solid var(--rule); }
.group:first-child { border-top: 0; padding-top: 0; }
.group-head h2 { font-size: clamp(2rem, 3.8vw, 3rem); line-height: 1; }
.group-head p { margin-top: 14px; max-width: 30ch; font-size: 1.1875rem; font-weight: 600; line-height: 1.35; }
.service { display: grid; grid-template-columns: 60px minmax(0, 1fr); gap: 20px; padding-block: 22px; border-top: 1px solid var(--rule); }
.service:first-child { border-top: 0; padding-top: 0; }
.service h3 { font-size: 1.4375rem; line-height: 1.15; }
.service p { margin-top: 6px; color: var(--text-muted); max-width: 58ch; }
.service .cap { margin-top: 8px; font-size: .9375rem; font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; }
@media (min-width: 900px) {
  .group { grid-template-columns: minmax(0, .85fr) minmax(0, 1.55fr); gap: 56px; }
  .group-head { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 104px); align-self: start; }
  .service { grid-template-columns: 68px minmax(0, 1fr); gap: 24px; }
}

/* price list: the logo's dotted rule leads from service to price */
.price-first { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 40px; padding: clamp(24px, 3.4vw, 40px); border-radius: 20px; background: var(--amber); }
.price-first h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); line-height: 1; }
.price-first p { margin-top: 8px; max-width: 44ch; font-weight: 500; }
.price-first .price-first-value { margin: 0; font: 700 clamp(2rem, 4.4vw, 3.5rem)/1 var(--font-display); letter-spacing: -0.03em; }
.price-note { margin-block: 20px clamp(40px, 6vw, 72px); color: var(--text-muted); }
.price-list { align-self: start; }
.price-row { display: flex; align-items: baseline; gap: 14px; padding-block: 15px; border-top: 1px solid var(--rule); }
.price-row:first-child { border-top: 0; padding-top: 0; }
.pr-name { font: 700 1.25rem/1.2 var(--font-display); letter-spacing: -0.01em; }
.pr-dots { flex: 1 1 24px; min-width: 24px; height: 4px; background: repeating-linear-gradient(90deg, var(--amber) 0 4px, transparent 4px 8px); }
.pr-price { font-size: 1.1875rem; font-weight: 600; white-space: nowrap; }

.split { display: grid; gap: clamp(32px, 5vw, 72px); }
@media (min-width: 900px) { .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.prose h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); line-height: 1.02; margin-bottom: 20px; }
.prose p { max-width: 54ch; color: var(--text-muted); }
.prose p + p { margin-top: 14px; }
.ticks { display: grid; gap: 14px; }
.ticks li { display: grid; grid-template-columns: 14px minmax(0, 1fr); gap: 14px; align-items: start; max-width: 54ch; }
.ticks li::before { content: ""; width: 10px; height: 10px; margin-top: .55em; background: var(--amber); box-shadow: 0 0 0 1.5px var(--ink); }
.panel { background: var(--white); border: 1px solid var(--rule); border-radius: 20px; padding: clamp(24px, 3.4vw, 44px); }

.faq { border-bottom: 1px solid var(--rule); }
.faq details { border-top: 1px solid var(--rule); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 20px; cursor: pointer; list-style: none; font: 700 1.3125rem/1.2 var(--font-display); letter-spacing: -0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 14px; height: 14px; border-right: 2.5px solid var(--ink); border-bottom: 2.5px solid var(--ink); transform: translateY(-4px) rotate(45deg); transition: transform .2s ease; }
.faq details[open] summary::after { transform: translateY(3px) rotate(-135deg); }
.faq details p { padding-bottom: 22px; max-width: 62ch; color: var(--text-muted); }

.contact-grid { display: grid; gap: 20px; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.contact-card { display: grid; gap: 10px; align-content: start; }
.contact-card h2 { font: 600 1rem/1.3 var(--font-body); letter-spacing: 0; color: var(--text-muted); }
.contact-card .big { color: var(--text); font: 700 clamp(1.6rem, 2.6vw, 2.125rem)/1.1 var(--font-display); letter-spacing: -0.02em; }
.contact-card .big a { text-decoration: none; }
.contact-card p { color: var(--text-muted); }
.contact-card .actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.status { min-height: 1.5em; font-size: .9375rem; color: var(--text-muted); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: 0s !important; animation: none !important; }
}
