/* Nettansatt: lyst og vennlig, men profesjonelt. Siden er en perm med arkfaner, hver fane med sin farge. */
@font-face { font-family: "Familjen Grotesk"; src: url("/fonts/familjen-grotesk-latin-wght-normal.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Schibsted Grotesk"; src: url("/fonts/schibsted-grotesk-latin-wght-normal.woff2") format("woff2"); font-weight: 400 900; font-display: swap; }

:root {
  --ink: #1E2A3B; --ink-2: #4B5568; --base: #F3F5F8; --white: #FFFFFF; --line: #E2E7EE;
  --green: #1F7A5A; --green-d: #175E45; --sun: #FFD66B;
  --himmel: #DCEBF7; --salvie: #DCEFE2; --smor: #FFF0C7; --lyng: #E8E2FB; --aprikos: #FCE4D8; --stein: #E8ECF1;
  --display: "Familjen Grotesk", "Schibsted Grotesk", system-ui, sans-serif;
  --text: "Schibsted Grotesk", -apple-system, "Segoe UI", sans-serif;
  --wrap: 1200px; --pad: clamp(1rem, 4vw, 2.5rem);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--base); color: var(--ink); font: 400 18px/1.6 var(--text); }
::selection { background: var(--sun); color: var(--ink); }
a { color: var(--green); text-underline-offset: 3px; }
a:hover { color: var(--green-d); }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 6px; }
p, li, dd { hyphens: auto; }
h1, h2, h3 { font-family: var(--display); font-weight: 650; letter-spacing: -.02em; line-height: 1.08; margin: 0 0 .45em; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.3rem; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.28rem); color: var(--ink-2); max-width: 36em; }
.fine { font-size: .9rem; color: var(--ink-2); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Header */
.site-header { max-width: var(--wrap); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem var(--pad) .9rem; }
.logo { color: var(--ink); text-decoration: none; }
.wordmark { font: 700 1.6rem/1 var(--display); letter-spacing: -.03em; white-space: nowrap; }
.lamp { display: inline-block; width: .34em; height: .34em; margin-left: .1em; border-radius: 50%; background: var(--green); vertical-align: .05em; box-shadow: 0 0 0 .14em rgba(31, 122, 90, .18); animation: blink 3.2s ease-in-out infinite; }
@keyframes blink { 50% { box-shadow: 0 0 0 .34em rgba(31, 122, 90, 0); } }
.head-cta { font-weight: 600; font-size: .95rem; text-decoration: none; color: var(--green-d); background: var(--white); border: 1px solid var(--line); padding: .55rem 1rem; border-radius: 999px; white-space: nowrap; }
.head-cta:hover { border-color: var(--green); }
@media (max-width: 520px) { .head-cta { display: none; } }

/* The folder: tabs that stand on top of the sheet */
.folder { max-width: var(--wrap); margin: 0 auto; padding: 0; display: flex; gap: .3rem; overflow-x: auto; scrollbar-width: none; position: relative; z-index: 1; }
.folder::-webkit-scrollbar { display: none; }
.tab { flex: none; padding: .7rem 1.15rem .85rem; border-radius: 14px 14px 0 0; text-decoration: none; color: var(--ink); font-weight: 600; font-size: .98rem; transform: translateY(6px); transition: transform .18s ease, filter .18s ease; filter: saturate(.75) brightness(.98); }
.tab:hover { transform: translateY(2px); filter: none; color: var(--ink); }
.tab[aria-current="page"] { transform: none; filter: none; }
.t-himmel { background: var(--himmel); } .t-salvie { background: var(--salvie); } .t-smor { background: var(--smor); }
.t-lyng { background: var(--lyng); } .t-aprikos { background: var(--aprikos); } .t-stein { background: var(--stein); }
@media (max-width: 620px) { .tab { padding: .6rem .85rem .75rem; font-size: .92rem; } }

/* The sheet: tinted at the top in the colour of its tab */
.sheet { --tab: var(--stein); display: block; max-width: var(--wrap); margin: 0 auto; background: linear-gradient(180deg, var(--tab) 0, var(--tab) 120px, var(--white) 560px); border-radius: 0 22px 22px 22px; padding: clamp(1.5rem, 5vw, 3.5rem) var(--pad) clamp(2rem, 5vw, 4rem); box-shadow: 0 1px 0 var(--line), 0 30px 60px -45px rgba(30, 42, 59, .35); position: relative; }
.s-himmel { --tab: var(--himmel); } .s-salvie { --tab: var(--salvie); } .s-smor { --tab: var(--smor); }
.s-lyng { --tab: var(--lyng); } .s-aprikos { --tab: var(--aprikos); } .s-stein { --tab: var(--stein); }
@media (max-width: 720px) { .sheet { border-radius: 0; } .folder { padding: 0 .5rem; } }
@media (max-width: 480px) { .ms-nav span:not(.ms-new):first-of-type { display: none; } .ms-services span { font-size: .8rem; } }

/* Buttons */
.btn { display: inline-block; background: var(--green); color: var(--white); border: 0; padding: .95rem 1.4rem; border-radius: 12px; font: 600 1.02rem var(--text); text-decoration: none; cursor: pointer; transition: background .15s, transform .15s; box-shadow: 0 2px 0 var(--green-d); }
.btn:hover { background: var(--green-d); color: var(--white); }
.btn:active { transform: translateY(2px); box-shadow: none; }
.btn-quiet { display: inline-block; padding: .95rem 1.2rem; font-weight: 600; color: var(--ink); text-decoration: underline; text-decoration-color: var(--line); text-decoration-thickness: 2px; }
.btn-quiet:hover { color: var(--green-d); text-decoration-color: var(--green); }
.cta { display: flex; flex-wrap: wrap; gap: .4rem .8rem; align-items: center; margin: 1.6rem 0 .5rem; }

/* Hero: the promise beside the picker */
.hero { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; padding-bottom: clamp(2rem, 5vw, 3.5rem); }
@media (min-width: 980px) { .hero { grid-template-columns: 1fr 1.05fr; } }
.picker-q { font-weight: 600; margin: 0 0 .6rem; }
.chips { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: 1rem; }
.chip { font: 600 .95rem var(--text); padding: .55rem .95rem; border-radius: 999px; border: 1.5px solid var(--line); background: var(--white); color: var(--ink); cursor: pointer; min-height: 44px; transition: border-color .15s, background .15s; }
.chip:hover { border-color: var(--ink-2); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--white); }

/* The small website in a browser frame */
.browser { background: var(--white); border-radius: 14px; border: 1px solid var(--line); box-shadow: 0 24px 50px -30px rgba(30, 42, 59, .45); overflow: hidden; }
.browser-bar { display: flex; align-items: center; gap: .35rem; padding: .55rem .8rem; background: #F7F8FA; border-bottom: 1px solid var(--line); }
.browser-bar i { width: .6rem; height: .6rem; border-radius: 50%; background: #D5DBE3; }
.url { margin-left: .6rem; flex: 1; font-size: .78rem; color: var(--ink-2); background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: .15rem .7rem; }
.ms { --c: #1F5FA8; --bg: #E4EEFA; position: relative; font-size: .86rem; line-height: 1.45; color: var(--ink); transition: background .3s; }
.ms-nav { display: flex; gap: .9rem; align-items: center; padding: .7rem 1rem; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.ms-name { margin-right: auto; color: var(--c); font-family: var(--display); font-size: 1rem; }
.ms-nav span { color: var(--ink-2); }
.ms-new { display: none; color: var(--c) !important; font-weight: 600; }
.ms-hero { display: grid; grid-template-columns: 1fr auto; gap: 1rem; align-items: center; padding: 1.3rem 1rem; background: var(--bg); transition: background .35s; }
.ms-h { font: 700 1.45rem/1.1 var(--display); margin: 0 0 .25rem; letter-spacing: -.02em; }
.ms-tag { margin: 0 0 .8rem; color: var(--ink-2); }
.ms-btn { display: inline-block; background: var(--c); color: #fff; padding: .45rem .8rem; border-radius: 8px; font-weight: 600; transition: background .35s; }
.ms-icon { width: 76px; height: 76px; color: var(--c); transition: color .35s; }
.ms-services { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; padding: .9rem 1rem; }
.ms-services span { border: 1px solid var(--line); border-radius: 10px; padding: .55rem .6rem; font-weight: 600; background: #fff; }
.ms-foot { display: flex; gap: .8rem; flex-wrap: wrap; align-items: center; padding: .65rem 1rem .85rem; color: var(--ink-2); border-top: 1px solid var(--line); }
.ms-xmas, .ms-stars, .ms-speed, .ms-report { display: none; }
.ms-stars { color: #E2A400; letter-spacing: .1em; }
.ms-speed { position: absolute; right: .8rem; top: 6.4rem; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: .35rem .6rem; gap: .5rem; align-items: center; box-shadow: 0 10px 24px -14px rgba(30, 42, 59, .5); }
.ms-speed .slow { color: #B4472E; text-decoration: line-through; }
.ms-speed .fast { color: var(--green); }
.ms-report { position: absolute; left: 1rem; right: 1rem; bottom: .8rem; background: var(--ink); color: #fff; border-radius: 12px; padding: .7rem .9rem; gap: .2rem .9rem; flex-wrap: wrap; box-shadow: 0 16px 30px -16px rgba(30, 42, 59, .7); }
.ms-report b { width: 100%; }
/* What each day of the week leaves on the site (public/app.js sets the days up to the chosen one) */
.ms.d-tir .ms-new { display: inline; }
.ms.d-ons .ms-hours { display: none; }
.ms.d-ons .ms-xmas { display: inline; color: #8A5300; font-weight: 600; }
.ms.d-fre .ms-stars { display: inline; }
.ms.now-man .ms-report { display: flex; animation: rise .4s ease both; }
.ms.now-tor .ms-speed { display: flex; animation: rise .4s ease both; }
.ms.now-tir .ms-new, .ms.now-ons .ms-xmas, .ms.now-fre .ms-stars { animation: glow 1.4s ease both; border-radius: 6px; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
@keyframes glow { 0% { background: var(--sun); } 100% { background: transparent; } }
/* The one orchestrated moment: the picked site puts itself together */
.ms.build > * { animation: build .45s cubic-bezier(.2, .7, .2, 1) both; }
.ms.build > :nth-child(2) { animation-delay: .08s; } .ms.build > :nth-child(3) { animation-delay: .16s; } .ms.build > :nth-child(4) { animation-delay: .24s; }
@keyframes build { from { opacity: 0; transform: translateY(10px); } }

/* Sections inside the sheet */
.block { padding: clamp(2rem, 5vw, 3.5rem) 0; border-top: 1px solid var(--line); }
.block-head { max-width: 40rem; margin-bottom: 1.6rem; }
.block-head p { color: var(--ink-2); margin: 0; }
.split { display: grid; gap: 2rem; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; align-items: start; } }
.page { max-width: 46rem; padding-bottom: 1.5rem; }
.page.narrow { max-width: 38rem; }

/* The week */
.days { display: inline-flex; gap: .3rem; background: var(--base); border: 1px solid var(--line); border-radius: 14px; padding: .3rem; margin-bottom: 1.2rem; }
.day { font: 600 .98rem var(--text); border: 0; background: transparent; color: var(--ink-2); padding: .55rem .95rem; border-radius: 10px; cursor: pointer; min-height: 44px; }
.day[aria-selected="true"] { background: var(--white); color: var(--ink); box-shadow: 0 2px 6px -2px rgba(30, 42, 59, .25); }
.week-body { display: grid; gap: 1.5rem; align-items: center; }
@media (min-width: 900px) { .week-body { grid-template-columns: 1.3fr 1fr; } }
.note-day { margin: 0; color: var(--green-d); font-weight: 600; }
.note { animation: rise .3s ease both; }

/* Promises */
.promises dl { display: grid; gap: 1.2rem 2.5rem; margin: 1.2rem 0; }
@media (min-width: 760px) { .promises dl { grid-template-columns: 1fr 1fr; } }
.promises dt { font: 650 1.15rem var(--display); margin-bottom: .2rem; }
.promises dt::before { content: ""; display: inline-block; width: .55rem; height: .55rem; border-radius: 50%; background: var(--green); margin-right: .55rem; vertical-align: .12em; }
.promises dd { margin: 0; color: var(--ink-2); }
.ticks { list-style: none; padding: 0; margin: 1rem 0; }
.ticks li { position: relative; padding: .35rem 0 .35rem 1.8rem; }
.ticks li::before { content: ""; position: absolute; left: .15rem; top: .82rem; width: .75rem; height: .4rem; border-left: 2.5px solid var(--green); border-bottom: 2.5px solid var(--green); transform: rotate(-45deg); }

/* Steps: a real sequence */
.steps { list-style: none; padding: 0; margin: 2rem 0 0; counter-reset: s; display: grid; gap: 1rem; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(4, 1fr); max-width: none; } }
.page:has(.steps) { max-width: none; }
.steps li { counter-increment: s; background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 1.2rem 1.2rem 1.4rem; }
.steps li::before { content: counter(s); display: block; font: 700 2.4rem/1 var(--display); color: var(--green); margin-bottom: .6rem; }
.steps h2 { font-size: 1.25rem; }
.steps p { margin: 0; color: var(--ink-2); font-size: .98rem; }

/* Gallery */
.gallery { display: grid; gap: 1.5rem; padding-bottom: 2rem; }
@media (min-width: 720px) { .gallery { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
.gallery figure { margin: 0; }
.gallery figcaption { margin-top: .5rem; font-weight: 600; color: var(--ink-2); }

/* Before and after */
.ba { --pos: 50%; position: relative; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); min-height: 330px; background: #ddd; user-select: none; }
.ba-layer { position: absolute; inset: 0; }
.ba-new { clip-path: inset(0 0 0 var(--pos)); background: var(--white); }
.ba-new .browser { border: 0; border-radius: 0; box-shadow: none; height: 100%; }
.old { height: 100%; background: linear-gradient(#C9D3E0, #EEF1F5); font-family: "Times New Roman", serif; color: #222; text-align: center; padding: 1.4rem; }
.old-h { font: italic bold 1.8rem "Comic Sans MS", "Times New Roman", serif; color: #8B0000; margin: .4rem 0; }
.old-sub { color: #003399; text-decoration: underline; margin: 0 0 .8rem; }
.old table { margin: 0 auto 1rem; border: 2px outset #999; background: #fffbe6; } .old td { padding: .2rem .6rem; color: #0000EE; text-decoration: underline; }
.old-p { max-width: 26rem; margin: 0 auto; font-size: .95rem; } .old-counter { font: .8rem monospace; color: #555; margin-top: 1.4rem; }
.ba-range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; z-index: 3; }
.ba-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; background: var(--white); box-shadow: 0 0 0 1px rgba(30, 42, 59, .2); z-index: 2; pointer-events: none; }
.ba-handle::after { content: ""; position: absolute; top: 50%; left: 50%; width: 42px; height: 42px; margin: -21px 0 0 -21px; border-radius: 50%; background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 7l-5 5 5 5M15 7l5 5-5 5' fill='none' stroke='%231E2A3B' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center/22px no-repeat; box-shadow: 0 6px 16px -6px rgba(30, 42, 59, .5); }
.ba-range:focus-visible ~ .ba-handle::after { outline: 3px solid var(--green); outline-offset: 2px; }
.ba-tag { position: absolute; top: .8rem; z-index: 2; background: rgba(30, 42, 59, .8); color: #fff; font-size: .8rem; font-weight: 600; padding: .2rem .6rem; border-radius: 999px; pointer-events: none; }
.ba-tag.left { left: .8rem; } .ba-tag.right { right: .8rem; }

/* The weekly report */
.report { background: var(--ink); color: #fff; border-radius: 18px; padding: 1.4rem 1.5rem; }
.report-title { display: flex; justify-content: space-between; gap: 1rem; font-weight: 600; margin: 0 0 1rem; }
.report-title span { font-size: .78rem; background: var(--sun); color: var(--ink); border-radius: 999px; padding: .1rem .55rem; align-self: center; }
.report-nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.report-nums b { display: block; font: 700 2.2rem/1 var(--display); }
.report-nums span { color: #B9C4D6; font-size: .9rem; }
.spark { width: 100%; height: 60px; color: #8FD3B5; margin: 1rem 0 .4rem; }
.report p:last-child { margin: 0; color: #D5DDE9; font-size: .95rem; }

/* Plans and the calculator */
.plans { display: grid; gap: 1.2rem; padding-bottom: 2rem; }
@media (min-width: 900px) { .plans { grid-template-columns: repeat(3, 1fr); } }
.plan { position: relative; background: var(--white); border: 1.5px solid var(--line); border-radius: 18px; padding: 1.6rem; }
.plan.best { border-color: var(--green); box-shadow: 0 20px 45px -30px rgba(31, 122, 90, .7); }
.badge { position: absolute; top: -.85rem; left: 1.4rem; margin: 0; background: var(--sun); font-weight: 700; font-size: .85rem; padding: .25rem .7rem; border-radius: 999px; }
.amount { font: 700 2.6rem/1 var(--display); margin: .2rem 0 .9rem; letter-spacing: -.02em; }
.amount span { font: 400 1rem var(--text); color: var(--ink-2); }
.calc { background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 1.4rem; }
.calc label { display: block; font-weight: 600; }
.calc output { float: right; font-family: var(--display); font-size: 1.2rem; }
.calc input[type=range] { width: 100%; margin: 1rem 0 1.2rem; accent-color: var(--green); height: 28px; }
.calc fieldset { border: 0; padding: 0; margin: 0 0 1rem; display: flex; flex-wrap: wrap; gap: .4rem; }
.calc legend { font-weight: 600; margin-bottom: .5rem; }
.pill input { position: absolute; opacity: 0; }
.pill span { display: inline-block; padding: .5rem .85rem; border: 1.5px solid var(--line); border-radius: 999px; font-weight: 500; font-size: .92rem; cursor: pointer; }
.pill input:checked + span { border-color: var(--green); background: var(--salvie); }
.pill input:focus-visible + span { outline: 3px solid var(--green); outline-offset: 2px; }
.calc-out { margin: 0; font-size: 1.15rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.calc-out b { color: var(--green-d); }
.faq details { border-bottom: 1px solid var(--line); padding: .3rem 0; max-width: 46rem; }
.faq summary { cursor: pointer; font: 650 1.12rem var(--display); padding: .8rem 2rem .8rem 0; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .3rem; top: .55rem; font-size: 1.5rem; color: var(--green); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 1rem; color: var(--ink-2); }
.promise { max-width: 46rem; }

/* Founders and the waitlist */
.founders { display: grid; gap: 2rem; margin-top: 1rem; padding: clamp(1.4rem, 4vw, 2.6rem); background: var(--salvie); border-radius: 22px; }
@media (min-width: 980px) { .founders { grid-template-columns: .85fr 1.15fr; align-items: start; } }
.waitlist { background: var(--white); border-radius: 16px; padding: 1.4rem; }
.waitlist label { display: block; font-weight: 600; font-size: .95rem; margin: 0 0 1rem; }
.waitlist input:not([type=checkbox]) { display: block; width: 100%; margin-top: .35rem; padding: .8rem .95rem; font: 1rem var(--text); color: var(--ink); background: var(--white); border: 1.5px solid var(--line); border-radius: 10px; min-height: 48px; }
.waitlist input:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(31, 122, 90, .18); }
.two { display: grid; gap: 0 1rem; }
@media (min-width: 560px) { .two { grid-template-columns: 1fr 1fr; } }
.opt { font-weight: 400; color: var(--ink-2); font-size: .85rem; }
.consent { display: flex !important; gap: .7rem; align-items: flex-start; font-weight: 400 !important; }
.consent input { width: 1.3rem; height: 1.3rem; margin-top: .2rem; accent-color: var(--green); flex: none; }
.form-errors { background: #FDECEA; border-radius: 10px; padding: .5rem 1rem; margin-bottom: 1rem; color: #8A2318; }
.form-errors p { margin: .3rem 0; }

/* Legal pages and the rest of the starter kit */
.legal { max-width: 46rem; }
.legal h1 { font-size: clamp(2rem, 5vw, 3rem); }
.error { color: #8A2318; }
.banner { max-width: var(--wrap); margin: 0 auto; background: #FFF4D6; text-align: center; padding: .5rem 1rem; font-size: .9rem; }

/* Footer */
.site-footer { max-width: var(--wrap); margin: 0 auto; padding: 2.2rem var(--pad) 1rem; display: grid; gap: 1.2rem; color: var(--ink-2); font-size: .95rem; }
@media (min-width: 820px) { .site-footer { grid-template-columns: 1fr 1.6fr; } }
.site-footer p { margin: .4rem 0 0; }
.foot-links { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; align-content: start; }
.foot-links a { color: var(--ink-2); text-decoration: none; }
.foot-links a:hover { color: var(--ink); text-decoration: underline; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
