/* Klinikk Daub WOW, delt skall. Tokens fra klinikkdaub.no (hsl 30-familien) + espresso #3a3230 fra faviconen. */
:root {
  --cream: #fbf9f7;
  --paper: #f3eee8;
  --line: #e2dbd3;
  --ink: #2a2622;
  --muted: #6b655f;
  --accent: #3a3230;
  --accent-d: #2a2321;
  --night: #161312;
  --night-2: #201c1a;
  --night-line: #3a3431;
  --on-night: #f3ede6;
  --on-night-muted: #b9afa6;
  --sand: #e6dcd1;
  --radius: 3px;
  --serif: "Playfair Display", Georgia, serif;
  --sans: "DM Sans", Arial, sans-serif;
  --wrap: 1180px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 400 17px/1.6 var(--sans); }
img { max-width: 100%; height: auto; display: block; }
figure { margin: 0; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.08; margin: 0; letter-spacing: -0.01em; font-variant-numeric: lining-nums; }
h1 em, h2 em { font-style: italic; font-weight: 400; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.num { font-family: var(--serif); font-variant-numeric: lining-nums; }
.label { font: 600 12px/1.3 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.night .label { color: var(--on-night-muted); }
.rule { display: flex; align-items: center; gap: 14px; }
.rule::after { content: ""; flex: 1; height: 1px; background: currentColor; opacity: 0.25; }
section { position: relative; }
.night { background: var(--night); color: var(--on-night); }
.paper { background: var(--paper); }

/* Topp */
.top { position: absolute; inset: 0 0 auto 0; z-index: 5; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 18px; padding-bottom: 18px; }
.top img { width: 168px; }
.top .addr { font-size: 14px; color: var(--on-night-muted); }

/* Hero */
.hero { padding: 0 0 56px; overflow: hidden; }
.hero-photo { position: relative; height: 44vh; min-height: 300px; max-height: 400px; overflow: hidden; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pm, 50% 50%); transform-origin: 50% 40%; animation: drift 26s ease-in-out infinite alternate; }
.hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(22,19,18,0.55) 0%, rgba(22,19,18,0) 30%, rgba(22,19,18,0) 55%, var(--night) 100%); }
.hero-photo figcaption { position: absolute; right: 14px; bottom: 14px; z-index: 2; font-size: 12px; color: var(--on-night-muted); }
@keyframes drift { from { transform: scale(1.02); } to { transform: scale(1.1) translateY(-1.5%); } }
.hero-grid { display: grid; gap: 28px; margin-top: -64px; position: relative; z-index: 2; }
.hero h1 { font-size: clamp(40px, 9.4vw, 72px); margin: 12px 0 18px; }
.hero h1 em { display: block; }
.hero .lede { font-size: 18px; color: var(--on-night-muted); max-width: 34em; }
.rating { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--on-night); border: 1px solid var(--night-line); padding: 6px 12px; border-radius: 99px; text-decoration: none; }
.stars { letter-spacing: 1px; color: var(--sand); }
.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; margin: 22px 0 6px; }
.price .now { font-family: var(--serif); font-variant-numeric: lining-nums; font-size: clamp(54px, 13vw, 84px); line-height: 1; white-space: nowrap; }
.price .was { color: var(--on-night-muted); font-size: 17px; white-space: nowrap; }
.price .was s { text-decoration-thickness: 1px; }
.save { display: inline-block; background: var(--sand); color: var(--accent); font-weight: 600; font-size: 14px; padding: 5px 12px; border-radius: 99px; }
.price-note { font-size: 15px; color: var(--on-night); margin: 12px 0 0; }
.ticks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 8px; }
.ticks li { display: flex; gap: 10px; align-items: baseline; font-size: 16px; }
.ticks li::before { content: ""; flex: none; width: 14px; height: 1px; background: currentColor; transform: translateY(-5px); opacity: 0.7; }

/* Skjema */
.form-card { background: var(--cream); color: var(--ink); padding: 26px 22px 22px; border-radius: var(--radius); box-shadow: 0 30px 60px -30px rgba(0,0,0,0.6); scroll-margin-top: 20px; }
.form-card h2 { font-size: 30px; margin-bottom: 6px; }
.form-card .sub { color: var(--muted); font-size: 15px; margin-bottom: 16px; }
.form-card input { width: 100%; font: 400 17px var(--sans); color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 14px; margin: 0 0 10px; min-height: 52px; }
.form-card input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 54px; border: 0; border-radius: var(--radius); background: var(--accent); color: var(--cream); font: 600 17px var(--sans); cursor: pointer; padding: 14px 20px; text-decoration: none; }
.btn:hover { background: var(--accent-d); }
.btn[disabled] { opacity: 0.7; cursor: default; }
.btn.light { background: var(--cream); color: var(--accent); }
.btn.light:hover { background: var(--sand); }
.btn.auto { width: auto; }
.form-fine { font-size: 13px; color: var(--muted); margin: 12px 0 0; text-align: center; }
.scarce { font-size: 14px; font-weight: 600; color: var(--accent); text-align: center; margin: 10px 0 0; }
.form-error { display: none; background: #f6e7e3; color: #7a2d1e; font-size: 15px; padding: 10px 12px; border-radius: var(--radius); margin-bottom: 10px; }
.form-error.show { display: block; }
.form-success { display: none; }
.form-success.show { display: block; }
.form-success h3 { font-size: 30px; margin-bottom: 8px; }

/* Strip */
.strip { overflow: hidden; border-top: 1px solid var(--night-line); border-bottom: 1px solid var(--night-line); }
.strip-track { display: flex; gap: 48px; width: max-content; padding: 16px 0; animation: strip 38s linear infinite; font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--on-night-muted); white-space: nowrap; }
@keyframes strip { to { transform: translateX(-50%); } }

/* Seksjoner */
.sec { padding: 76px 0; }
.sec-head { max-width: 760px; margin-bottom: 34px; }
.sec-head .label { font: italic 400 19px/1.3 var(--serif); letter-spacing: 0; text-transform: none; color: var(--muted); }
.night .sec-head .label { color: var(--on-night-muted); }
.sec-head h2 { font-size: clamp(34px, 6.4vw, 56px); margin: 14px 0 16px; }
.sec-head p { font-size: 18px; color: var(--muted); }
.night .sec-head p { color: var(--on-night-muted); }

/* Signatur */
.sig-stage { position: relative; border: 1px solid var(--night-line); border-radius: var(--radius); overflow: hidden; background: var(--night-2); touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.paper .sig-stage, .sig-stage.light { background: #fffdfb; border-color: var(--line); }
.sig-stage canvas { display: block; width: 100%; cursor: grab; }
.sig-stage canvas:active { cursor: grabbing; }
.sig-hint { position: absolute; left: 14px; top: 12px; font-size: 13px; color: var(--on-night-muted); pointer-events: none; transition: opacity .4s; }
.paper .sig-hint, .sig-stage.light .sig-hint { color: var(--muted); }
.sig-count { position: absolute; right: 14px; top: 10px; font-family: var(--serif); font-variant-numeric: lining-nums tabular-nums; font-size: 22px; pointer-events: none; }
.sig-stage.cb .sig-count { top: auto; bottom: 10px; }
.sig-count small { font: 500 12px var(--sans); letter-spacing: .06em; opacity: .75; }
.sig-ctl { display: flex; flex-wrap: wrap; gap: 10px; }
.tl-grid { display: grid; gap: 36px; }
.tl-photo { margin: 0; }
.tl-photo img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: var(--radius); }
.rev-head a { color: var(--ink); }
.close .price-note { color: var(--on-night-muted); }
.sig-bar { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; justify-content: space-between; margin-top: 14px; }
.seg { display: inline-flex; border: 1px solid var(--night-line); border-radius: 99px; padding: 3px; }
.paper .seg { border-color: var(--line); }
.seg button { font: 500 15px var(--sans); color: inherit; background: none; border: 0; border-radius: 99px; padding: 10px 16px; min-height: 44px; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--on-night); color: var(--night); }
.paper .seg button[aria-pressed="true"] { background: var(--accent); color: var(--cream); }
.sig-note { font-size: 13px; color: var(--on-night-muted); margin: 0; }
.paper .sig-note { color: var(--muted); }
.sig-cols { display: grid; gap: 22px; margin-top: 26px; }
.sig-cols h3 { font-size: 22px; margin-bottom: 6px; }
.sig-cols p { color: var(--on-night-muted); font-size: 16px; margin: 0; }
.paper .sig-cols p { color: var(--muted); }
.sig-cols .n { font-family: var(--serif); font-style: italic; font-size: 18px; opacity: .7; }

/* Tidslinje */
.timeline { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.timeline li { position: relative; padding: 0 0 28px 26px; }
.timeline li::before { content: ""; position: absolute; left: -5px; top: 9px; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
.timeline .when { font: 600 14px var(--sans); color: var(--muted); margin: 0; }
.timeline h3 { font-size: 24px; margin: 4px 0 6px; }
.timeline p { margin: 0; color: var(--muted); }

/* For deg */
.fit { display: grid; gap: 18px; }
.fit-box { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 22px; background: var(--cream); }
.fit-box h3 { font-size: 24px; margin-bottom: 12px; }
.fit-box ul { margin: 0; padding-left: 18px; }
.fit-box li { margin-bottom: 6px; }
.fit-box.no { background: transparent; }

/* Kvittering */
.receipt { background: var(--cream); color: var(--ink); max-width: 520px; padding: 30px 26px; border-radius: var(--radius); margin: 0 auto; box-shadow: 0 30px 60px -34px rgba(0,0,0,.7); }
.receipt h3 { font-size: 26px; text-align: center; margin-bottom: 4px; }
.receipt .meta { text-align: center; color: var(--muted); font-size: 14px; margin-bottom: 18px; }
.receipt .row { display: flex; justify-content: space-between; gap: 14px; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 16px; }
.receipt .row span:last-child { white-space: nowrap; font-variant-numeric: lining-nums tabular-nums; }
.receipt .row.total { border-bottom: 0; border-top: 1px solid var(--ink); margin-top: 6px; padding-top: 14px; font-weight: 600; font-size: 19px; }
.receipt .row s { color: var(--muted); }
.receipt .fine { font-size: 14px; color: var(--muted); margin: 14px 0 18px; text-align: center; }

/* Om oss */
.about { display: grid; gap: 30px; align-items: center; }
.about figure { margin: 0; }
.about img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: var(--radius); }
.about figcaption { font-size: 13px; color: var(--muted); margin-top: 8px; }
.quote { font-family: var(--serif); font-style: italic; font-size: clamp(26px, 4.6vw, 38px); line-height: 1.25; margin: 18px 0 20px; }

/* Anmeldelser */
.reviews { display: grid; gap: 16px; }
.review { border-top: 1px solid var(--line); padding: 20px 0 6px; margin: 0; }
.review blockquote { margin: 0 0 12px; font-size: 18px; }
.review .who { font-size: 14px; color: var(--muted); }
.review .stars { color: var(--accent); }
.rev-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 20px; margin-bottom: 18px; }
.rev-head .big { font-family: var(--serif); font-size: 64px; line-height: 1; font-variant-numeric: lining-nums; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 36px 20px 0; position: relative; font-family: var(--serif); font-size: 22px; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font-family: var(--sans); font-size: 26px; font-weight: 300; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { color: var(--muted); padding-bottom: 18px; margin: 0; max-width: 46em; }

/* Kart + avslutning */
.map iframe { width: 100%; height: 340px; border: 0; border-radius: var(--radius); filter: grayscale(.35) sepia(.08); }
.close { text-align: center; }
.close h2 { font-size: clamp(36px, 7vw, 60px); margin: 12px 0 14px; }
.close .price { justify-content: center; }
footer { padding: 34px 0 110px; font-size: 14px; color: var(--on-night-muted); }
footer .wrap { display: grid; gap: 14px; }
footer img { width: 150px; }
footer a { color: var(--on-night); }

/* Sticky */
.sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: var(--night); border-top: 1px solid var(--night-line); padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 12px; transform: translateY(110%); transition: transform .3s; }
.sticky.show { transform: none; }
.sticky .p { color: var(--on-night); font-size: 14px; line-height: 1.2; }
.sticky .p b { font-family: var(--serif); font-size: 22px; font-weight: 500; display: block; font-variant-numeric: lining-nums; }
.sticky .btn { flex: 1; min-height: 48px; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (min-width: 760px) {
  .sig-cols { grid-template-columns: repeat(3, 1fr); }
  .fit { grid-template-columns: 1fr 1fr; }
  .reviews { grid-template-columns: 1fr 1fr; gap: 10px 40px; }
  .about { grid-template-columns: 0.8fr 1.2fr; gap: 60px; }
  .tl-grid.has-photo { grid-template-columns: 1.15fr 0.85fr; gap: 60px; align-items: start; }
  .tl-photo { position: sticky; top: 30px; }
  .sticky { display: none; }
  footer { padding-bottom: 40px; }
}
@media (min-width: 980px) {
  .hero { padding-bottom: 80px; }
  .hero-photo { position: absolute; inset: 0 0 0 46%; height: auto; max-height: none; }
  .hero-photo img { object-position: var(--pd, 50% 50%); }
  .hero h1 { font-size: 58px; }
  .hero-photo::after { background: linear-gradient(180deg, rgba(22,19,18,.7) 0%, rgba(22,19,18,0) 22%), linear-gradient(90deg, var(--night) 0%, rgba(22,19,18,0.35) 10%, rgba(22,19,18,0) 24%), linear-gradient(0deg, rgba(22,19,18,.55), rgba(22,19,18,0) 40%); }
  .hero-grid { margin-top: 0; padding-top: 118px; grid-template-columns: minmax(0, 1fr) 400px; gap: 48px; align-items: end; }
  .hero-copy { max-width: 560px; }
  .form-card { padding: 30px 28px 26px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-photo img, .strip-track { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .sticky { transition: none; }
}
