/* Molar Studio · "The chart, read out loud" */
@font-face { font-family: 'Schibsted'; src: url(../fonts/schibsted-400_900-normal.woff2) format('woff2'); font-weight: 400 900; font-display: swap; }
@font-face { font-family: 'Plex'; src: url(../fonts/plex-400-normal.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Plex'; src: url(../fonts/plex-500-normal.woff2) format('woff2'); font-weight: 500; font-display: swap; }

:root {
  --paper: #F2F4F1; --ink: #0B1F33; --muted: #4C5B69; --line: rgba(11, 31, 51, .16);
  --blue: #2457D6; --blue-deep: #1B44AD; --red: #E0412F; --wash: #DCE6F7;
  --pad: clamp(16px, 4vw, 56px); --gut: clamp(16px, 2vw, 28px);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --hdr: 92px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.55 Schibsted, system-ui, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, figure, ul { margin: 0; padding: 0; }
ul { list-style: none; }
section, footer { scroll-margin-top: 80px; }
::selection { background: var(--blue); color: #fff; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 200; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 6px; text-decoration: none; font-weight: 600; transition: top .3s var(--ease); }
.skip:focus { top: 12px; }
.ln { padding-bottom: .04em; }

/* ---------- buttons: fill sweeps in like a pen stroke, label nudges ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px; border-radius: 6px; background: var(--blue); color: #fff; font-weight: 600; font-size: 16px; text-decoration: none; overflow: hidden; isolation: isolate; white-space: nowrap; }
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--ink); transform: scaleX(0); transform-origin: 100% 50%; transition: transform .55s var(--ease); }
.btn span { display: inline-block; transition: transform .55s var(--ease); }
.btn span::after { content: ""; display: inline-block; width: 0; height: 2px; background: currentColor; vertical-align: middle; margin-left: 0; transition: width .55s var(--ease), margin .55s var(--ease); }
.btn:hover::before, .btn:focus-visible::before { transform: scaleX(1); transform-origin: 0 50%; }
.btn:hover span::after, .btn:focus-visible span::after { width: 14px; margin-left: 10px; }
.btn:active span { transform: scale(.96); }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 15px; }
.btn-ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .75); }
.btn-ghost::before { background: #fff; }
.btn-ghost:hover, .btn-ghost:focus-visible { color: var(--ink); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light::before { background: var(--blue); }
.btn-light:hover, .btn-light:focus-visible { color: #fff; }
.btn-ghost-dark { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-ghost-dark::before { background: var(--ink); }
.btn-ghost-dark:hover { color: #fff; }

/* ---------- loader ---------- */
.loader { position: fixed; inset: 0; z-index: 150; background: var(--ink); color: #fff; display: grid; place-items: center; }
.rm .loader, .seen .loader, .loader.is-gone { display: none; }
/* CSS-driven so it starts at first paint, before any script arrives */
.loader { animation: lift .7s 1.2s cubic-bezier(.87, 0, .13, 1) forwards; }
.loader .c { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw .4s calc(var(--i) * 16ms) cubic-bezier(.65, 0, .35, 1) forwards; }
.loader text, .loader .fs { opacity: 0; animation: show .3s .55s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes show { to { opacity: 1; } }
@keyframes lift { to { clip-path: inset(0 0 100% 0); visibility: hidden; } }
@media (prefers-reduced-motion: reduce) { .loader { display: none; } }
.loader-chart { width: min(52vmin, 420px); }
.loader .c { stroke: rgba(255, 255, 255, .9); }
.loader .fs { stroke: rgba(255, 255, 255, .6); }
.loader text { fill: rgba(255, 255, 255, .45); }
.loader-n { position: absolute; left: var(--pad); bottom: var(--pad); font: 500 clamp(56px, 9vw, 128px)/.85 Plex, monospace; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.loader-n small { display: block; font-size: 14px; letter-spacing: .02em; margin-top: 12px; opacity: .6; }

/* ---------- chart (shared look) ---------- */
.arch { display: block; width: 100%; height: auto; overflow: visible; }
.arch .c { fill: transparent; stroke: var(--ink); stroke-width: 1.5; transition: fill .45s var(--ease), stroke .45s var(--ease); }
.arch .fs { fill: none; stroke: var(--ink); stroke-width: 1; opacity: .55; }
.arch text { font: 500 9.5px Plex, monospace; fill: var(--muted); text-anchor: middle; transition: fill .3s; }
.arch .t.is-checking .c { stroke: var(--red); stroke-width: 2.4; fill: rgba(224, 65, 47, .12); }
.arch .t.is-checking text { fill: var(--red); }
.arch .t.is-done .c { fill: var(--blue); stroke: var(--blue); }
.arch .t.is-done .fs { stroke: #fff; opacity: .8; }
.arch .t.is-scan .c { stroke: var(--ink); stroke-width: 3; }
.arch .t.is-scan text { fill: var(--ink); }
.arch .t.is-dim { opacity: .28; }
.arch .t.is-hl .c { fill: var(--blue); stroke: var(--blue); }
.arch .t.is-hl .fs { stroke: #fff; opacity: .8; }
.arch .t.is-hl text { fill: var(--ink); }
.arch .t, .arch .c { transition: opacity .45s var(--ease), fill .45s var(--ease), stroke .45s var(--ease); }

/* ---------- header ---------- */
.hdr { position: fixed; inset: 0 0 auto; z-index: 100; transition: transform .6s var(--ease); }
.hdr.is-hidden { transform: translateY(-100%); }
.preview { background: var(--ink); color: #fff; font-size: 13px; line-height: 1.3; text-align: center; padding: 8px var(--pad); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 10px var(--pad); color: #fff; transition: background .4s, color .4s; }
.hdr.is-solid .bar { background: rgba(242, 244, 241, .94); color: var(--ink); box-shadow: 0 1px 0 var(--line); }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; letter-spacing: -.02em; text-decoration: none; min-height: 44px; }
.logo svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; }
.bar nav { display: flex; gap: clamp(16px, 2.4vw, 36px); }
.nl { position: relative; font-weight: 600; font-size: 15px; text-decoration: none; padding: 12px 0; }
.nl::after { content: ""; position: absolute; left: 0; right: 0; bottom: 6px; height: 2px; background: currentColor; transform: scaleX(0); transform-origin: 100% 50%; transition: transform .5s var(--ease); }
.nl:hover::after, .nl:focus-visible::after, .nl.is-current::after { transform: scaleX(1); transform-origin: 0 50%; }

/* ---------- hero ---------- */
.hero { position: relative; height: 100svh; min-height: 640px; overflow: hidden; color: #fff; background: var(--ink); }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 40%; }
.hero-scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 31, 51, .55) 0%, rgba(11, 31, 51, 0) 26%, rgba(11, 31, 51, 0) 42%, rgba(11, 31, 51, .86) 100%), linear-gradient(90deg, rgba(11, 31, 51, .45), rgba(11, 31, 51, 0) 60%); }
.hero-in { position: absolute; left: var(--pad); right: var(--pad); bottom: clamp(24px, 5vh, 56px); }
.hero-title { font-weight: 800; font-size: clamp(76px, 16.6vw, 300px); line-height: .8; letter-spacing: -.055em; margin-left: -.05em; }
.hero-title span { display: inline-block; }
.hero-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-top: clamp(18px, 3vh, 32px); flex-wrap: wrap; }
.hero-lede { max-width: 40ch; font-size: clamp(16px, 1.25vw, 19px); }
.hero-acts { display: flex; gap: 12px; flex-wrap: wrap; }
.chip { position: absolute; right: var(--pad); top: calc(var(--hdr) + 36px); display: flex; align-items: center; gap: 14px; padding: 12px 18px 12px 14px; border-radius: 6px; background: rgba(255, 255, 255, .94); color: var(--ink); text-decoration: none; transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.chip b { font-size: 34px; line-height: 1; letter-spacing: -.04em; }
.chip span { font-size: 14px; line-height: 1.25; max-width: 13ch; }
.chip { transition: transform .5s var(--ease), background .4s var(--ease), color .4s var(--ease); }
.chip:hover, .chip:focus-visible { transform: translateY(-3px); background: var(--ink); color: #fff; }

/* ---------- chart section (signature) ---------- */
.chart { position: relative; padding: 0 var(--pad); }
.chart-stage { min-height: 100svh; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 96px); align-items: center; padding: calc(var(--hdr) + 24px) 0 48px; }
.chart-fig { max-width: min(620px, 74svh); width: 100%; justify-self: center; }
.kicker { font: 500 14px/1.3 Plex, monospace; color: var(--muted); margin-bottom: 22px; }
.statement { font-weight: 600; font-size: clamp(28px, 3.1vw, 50px); line-height: 1.12; letter-spacing: -.028em; max-width: 20ch; }
.statement .w { display: inline-block; }
.tally { margin-top: clamp(28px, 4vh, 48px); font: 500 15px Plex, monospace; display: flex; align-items: baseline; gap: 12px; }
.tally-n { font-size: clamp(48px, 5vw, 80px); line-height: .8; letter-spacing: -.05em; color: var(--blue); font-variant-numeric: tabular-nums; min-width: 2ch; }
.legend { display: flex; gap: 22px; margin-top: 18px; font-size: 14px; color: var(--muted); }
.legend li { display: flex; align-items: center; gap: 8px; }
.k { width: 14px; height: 14px; border-radius: 3px; display: inline-block; }
.k-red { box-shadow: inset 0 0 0 2px var(--red); background: rgba(224, 65, 47, .12); }
.k-blue { background: var(--blue); }

/* ---------- care ---------- */
.care { padding: clamp(80px, 12vw, 180px) var(--pad) clamp(64px, 8vw, 120px); background: #fff; }
.display { font-weight: 800; font-size: clamp(56px, 9.6vw, 168px); line-height: .86; letter-spacing: -.05em; margin-left: -.04em; }
.care-head { display: grid; grid-template-columns: 1fr minmax(0, 26ch); align-items: end; gap: var(--gut); margin-bottom: clamp(48px, 7vw, 110px); }
.care-note { color: var(--muted); font-size: 17px; }
.care-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 110px); }
.care-aside { position: sticky; top: calc(var(--hdr) + 32px); align-self: start; }
.care-chart { width: min(100%, 440px); }
.care-cap { margin-top: 18px; font: 500 15px Plex, monospace; color: var(--blue); min-height: 1.5em; }
.care-list { display: grid; gap: clamp(56px, 8vw, 120px); }
.svc { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(20px, 2.6vw, 40px); align-items: end; }
.svc-ph { overflow: hidden; border-radius: 6px; aspect-ratio: 4 / 5; background: var(--wash); }
.svc-ph img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.svc:hover .svc-ph img { transform: scale(1.06); }
.svc h3 { font-weight: 700; font-size: clamp(28px, 2.6vw, 42px); line-height: 1; letter-spacing: -.03em; margin-bottom: 14px; }
.svc p { color: var(--muted); max-width: 32ch; }
.svc-teeth { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); font: 500 14px/1.45 Plex, monospace; color: var(--ink) !important; }
.svc-mini { display: none; }

/* ---------- proof ---------- */
.proof { background: var(--ink); color: #fff; padding: clamp(56px, 6vw, 96px) 0 0; overflow: hidden; }
.proof-in { padding: 0 var(--pad); display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(28px, 6vw, 110px); align-items: end; }
.score { font-weight: 800; font-size: clamp(170px, 31vw, 500px); line-height: .74; letter-spacing: -.075em; margin-left: -.06em; font-variant-numeric: tabular-nums; }
.teeth-stars { display: flex; gap: 8px; margin-bottom: 26px; }
.teeth-stars i { width: 26px; height: 30px; background: #fff; -webkit-mask: var(--tooth) center / contain no-repeat; mask: var(--tooth) center / contain no-repeat; }
.teeth-stars i.part { background: linear-gradient(90deg, #fff 88%, rgba(255, 255, 255, .25) 88%); }
:root { --tooth: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 30'%3E%3Cpath d='M13 4C9.5 1 3 1 2.2 7c-.6 4.4 1.6 7 2.6 11.5.8 3.6 1.2 10.5 4 10.5 2.4 0 2.2-7.5 4.2-7.5s1.8 7.5 4.2 7.5c2.8 0 3.2-6.9 4-10.5C22.2 14 24.4 11.4 23.8 7 23 1 16.5 1 13 4z'/%3E%3C/svg%3E"); }
.proof h2 { font-weight: 700; font-size: clamp(30px, 3.3vw, 54px); line-height: 1.02; letter-spacing: -.03em; max-width: 16ch; margin-bottom: 18px; }
.proof-tx p { color: rgba(255, 255, 255, .75); max-width: 38ch; margin-bottom: 30px; }
.marquee { margin-top: clamp(72px, 9vw, 130px); border-top: 1px solid rgba(255, 255, 255, .16); padding: 26px 0 30px; white-space: nowrap; overflow: hidden; }
.mq { display: inline-flex; font-weight: 700; font-size: clamp(36px, 5.4vw, 86px); line-height: 1; letter-spacing: -.035em; }
.mq span { display: inline-flex; align-items: center; }
.mq span::after { content: ""; width: .42em; height: .42em; margin: 0 .55em; border-radius: 3px; background: var(--blue); }

/* ---------- hours ---------- */
.hours { display: grid; grid-template-columns: 1fr 1fr; min-height: 100svh; }
.hours-ph { position: relative; overflow: hidden; min-height: 420px; }
.hours-ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hours-tx { padding: clamp(72px, 9vw, 140px) var(--pad); display: flex; flex-direction: column; justify-content: center; }
.status { display: inline-flex; align-items: center; gap: 12px; margin: 30px 0 32px; font: 500 15px Plex, monospace; }
.status::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--red); }
.status.is-open::before { background: #1F9D57; box-shadow: 0 0 0 5px rgba(31, 157, 87, .18); }
.tbl { width: 100%; border-collapse: collapse; font-size: 17px; }
.tbl th, .tbl td { padding: 15px 0; border-bottom: 1px solid var(--line); text-align: left; font-weight: 500; }
.tbl td { text-align: right; font: 400 15px Plex, monospace; }
.tbl tr.is-today th, .tbl tr.is-today td { color: var(--blue); font-weight: 700; }
.tbl tr.is-today th::after { content: "Today"; margin-left: 12px; padding: 3px 8px; border-radius: 4px; background: var(--blue); color: #fff; font: 500 12px Plex, monospace; vertical-align: 2px; }

/* ---------- footer ---------- */
.ftr { background: var(--blue); color: #fff; padding: clamp(72px, 9vw, 130px) var(--pad) 0; overflow: hidden; }
.ftr-k { font: 500 15px Plex, monospace; margin-bottom: 18px; }
.ftr-call { display: inline-block; font-weight: 800; font-size: clamp(52px, 10.6vw, 190px); line-height: .9; letter-spacing: -.055em; text-decoration: none; margin-left: -.04em; }
.ftr-call .u { background: linear-gradient(currentColor, currentColor) 0 100% / 0 .08em no-repeat; padding-bottom: .06em; transition: background-size .7s var(--ease); }
.ftr-call:hover .u, .ftr-call:focus-visible .u { background-size: 100% .08em; }
.ftr-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gut); margin: clamp(48px, 6vw, 90px) 0 clamp(40px, 5vw, 70px); padding-top: 26px; border-top: 1px solid rgba(255, 255, 255, .3); }
.ftr-grid h3 { font: 500 13px Plex, monospace; margin-bottom: 10px; }
.tl { display: inline-flex; min-height: 44px; align-items: center; text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1.5px; transition: text-underline-offset .4s var(--ease); }
.tl:hover { text-underline-offset: 9px; }
.ftr-mark { font-weight: 900; font-size: 15.4vw; line-height: .78; letter-spacing: -.07em; white-space: nowrap; margin: 0 0 -.08em -.05em; color: #050F1A; }
.legal { position: relative; font-size: 13px; padding: 30px 0 26px; color: rgba(255, 255, 255, .85); }
.callbar { display: none; }

/* ---------- phone ---------- */
@media (max-width: 860px) {
  :root { --hdr: 96px; }
  body { font-size: 16px; }
  .bar nav { display: none; }
  .logo { font-size: 18px; }
  .hero { min-height: 600px; }
  .hero-img { object-position: 38% 50%; }
  .hero-title { font-size: 24.2vw; line-height: .78; }
  .hero-title span { display: block; }
  .hero-acts .btn-ghost { display: none; }
  .hero-acts, .hero-acts .btn { width: 100%; }
  .chip { top: calc(var(--hdr) + 14px); right: 16px; padding: 10px 14px 10px 12px; }
  .chip b { font-size: 26px; }
  .chip span { font-size: 13px; }
  .chart-stage { grid-template-columns: 1fr; min-height: 0; padding: 72px 0 80px; gap: 36px; }
  .chart-fig { max-width: 420px; }
  .statement { font-size: clamp(26px, 7.4vw, 34px); }
  .care-head { grid-template-columns: 1fr; }
  .display { font-size: 17vw; }
  .care-grid { grid-template-columns: 1fr; }
  .care-aside { display: none; }
  .svc { grid-template-columns: 1fr; }
  .svc-ph { aspect-ratio: 4 / 3; }
  .svc-mini { display: block; width: min(100%, 300px); margin: 22px auto 0; }
  .proof-in { grid-template-columns: 1fr; }
  .score { font-size: 56vw; }
  .hours { grid-template-columns: 1fr; min-height: 0; }
  .hours-ph { min-height: 0; aspect-ratio: 4 / 3; }
  .ftr-call { font-size: 15vw; }
  .ftr-grid { grid-template-columns: 1fr; }
  .callbar { display: flex; gap: 8px; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 90; transform: translateY(150%); transition: transform .6s var(--ease); }
  .callbar.is-in { transform: none; }
  .callbar .btn { flex: 1; box-shadow: 0 10px 30px rgba(11, 31, 51, .3); }
  .legal { padding-bottom: 96px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

.src { margin-top: 18px; font-size: 14px; }
