:root {
  --bg: #EEF0EC; --surface: #E4E8E2; --ink: #1C2420; --muted: #5E6A63; --line: #C9CFC8;
  --accent: #2F5D50; --on-accent: #EEF0EC;
  --base: #B7C9BD; --build: #6E9583; --peak: #2F5D50; --deload: transparent;
  --grid: rgba(47, 93, 80, 0.09);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141917; --surface: #1A201D; --ink: #E6EAE5; --muted: #95A199; --line: #2B332F;
    --accent: #8FC1AE; --on-accent: #141917;
    --base: #415A4D; --build: #4F7A66; --peak: #8FC1AE;
    --grid: rgba(143, 193, 174, 0.07);
    color-scheme: dark;
  }
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  background: var(--bg); color: var(--ink);
  font-family: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.0625rem; line-height: 1.55;
  padding: env(safe-area-inset-top, 0px) 0 env(safe-area-inset-bottom, 0px);
}
.wrap { max-width: 64rem; margin: 0 auto; padding: 0 1.5rem; }
a { color: inherit; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* Top bar */
.top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.5rem 0; }
.brand { font-weight: 800; font-size: 1.2rem; letter-spacing: -0.02em; text-decoration: none; }
.brand small { font-weight: 500; font-size: 0.9rem; color: var(--muted); letter-spacing: 0; margin-left: 0.4rem; }
.lang { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.lang button {
  font: inherit; font-size: 0.85rem; font-weight: 500; border: 0; background: none; color: var(--muted);
  padding: 0.25rem 0.7rem; border-radius: 999px; cursor: pointer;
}
.lang button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }

/* Hero */
.hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 3.5rem; align-items: center; padding: 4.5rem 0 5.5rem; }
h1 { font-size: clamp(2.5rem, 6vw, 4.2rem); font-weight: 800; line-height: 1.02; letter-spacing: -0.035em; max-width: 13ch; }
.intro { color: var(--muted); font-size: 1.2rem; max-width: 30rem; margin-top: 1.5rem; }
.btn {
  display: inline-block; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
  background: var(--accent); color: var(--on-accent); border: 0; border-radius: 0.6rem;
  padding: 0.85rem 1.4rem; margin-top: 2rem; transition: filter .15s;
}
.btn:hover { filter: brightness(1.1); }
.btn[aria-disabled="true"] { background: none; color: var(--muted); border: 1px solid var(--line); cursor: default; filter: none; }

/* The drawing: a plan laid out week by week */
.sheet {
  border: 1px solid var(--line); border-radius: 0.9rem; padding: 1.75rem 1.5rem 1.4rem;
  background-color: var(--surface);
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 16px 16px;
}
.sheet-title { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: 0.9rem; color: var(--muted); margin-bottom: 1.25rem; }
.sheet-title strong { color: var(--ink); font-weight: 700; }
.weeks { display: grid; grid-template-columns: auto repeat(var(--n), 1fr); gap: 5px; align-items: center; }
.weeks .day { font-size: 0.75rem; color: var(--muted); padding-right: 0.4rem; }
.cell { aspect-ratio: 1; border-radius: 4px; }
.cell.base { background: var(--base); } .cell.build { background: var(--build); } .cell.peak { background: var(--peak); }
.cell.deload { border: 1.5px dashed var(--muted); opacity: .6; }
.cell.off { background: none; }
.wk-num { font-size: 0.7rem; color: var(--muted); text-align: center; padding-top: 0.2rem; }
.spans { display: grid; grid-template-columns: auto repeat(var(--n), 1fr); gap: 5px; margin-top: 0.9rem; }
.span { border-top: 1.5px solid var(--muted); position: relative; padding-top: 0.45rem; font-size: 0.8rem; color: var(--ink); text-align: center; }
.span::before, .span::after { content: ""; position: absolute; top: -5px; width: 1.5px; height: 8px; background: var(--muted); }
.span::before { left: 0; } .span::after { right: 0; }
.hero .sheet { opacity: 0; transform: translateY(8px); animation: rise .7s .15s ease-out forwards; }
.hero .cell { opacity: 0; animation: ink .25s ease-out forwards; }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes ink { to { opacity: 1; } }
.hero .cell.deload { animation-name: inkSoft; }
@keyframes inkSoft { to { opacity: .6; } }

/* Sections */
section { padding: 4.5rem 0; border-top: 1px solid var(--line); }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.08; max-width: 20ch; }
.lede { color: var(--muted); max-width: 34rem; margin-top: 0.9rem; }

/* Plans */
.plans { list-style: none; margin-top: 2.5rem; border-top: 1px solid var(--line); }
.plan:last-child { border-bottom: 0; }
.plan { display: grid; grid-template-columns: 1.2fr 1fr auto; gap: 1.5rem 3rem; padding: 2.25rem 0.25rem; border-bottom: 1px solid var(--line); align-items: start; }
.plan h3 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
.plan .for { color: var(--muted); margin-top: 0.5rem; max-width: 26rem; }
.facts { list-style: none; display: grid; gap: 0.3rem; font-size: 0.95rem; margin-top: 1rem; }
.facts li { display: flex; gap: 0.6rem; }
.facts span:first-child { color: var(--muted); min-width: 7.5rem; }
.plan .mini .sheet { display: inline-block; max-width: 100%; padding: 1rem 0.9rem 0.8rem; background-size: 12px 12px; }
.plan .mini .weeks, .plan .mini .spans { grid-template-columns: auto repeat(var(--n), minmax(0, 18px)); }
.plan .mini .weeks { gap: 3px; } .plan .mini .cell { border-radius: 3px; }
.plan .mini .spans { gap: 3px; margin-top: 0.6rem; } .plan .mini .span { font-size: 0.72rem; }
.buy { text-align: right; min-width: 9rem; }
.price { font-size: 2rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.price-note { font-size: 0.85rem; color: var(--muted); margin-top: 0.35rem; }
.buy .btn { margin-top: 1.2rem; }

/* What you get */
.gets { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem 3rem; margin-top: 2.5rem; list-style: none; }
.gets h3 { font-size: 1.15rem; font-weight: 700; }
.gets p { color: var(--muted); margin-top: 0.35rem; max-width: 26rem; }

/* Steps */
.steps { list-style: none; counter-reset: s; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 2.5rem; }
.steps li { counter-increment: s; border-top: 2px solid var(--accent); padding-top: 1rem; }
.steps li::before { content: counter(s); display: block; font-weight: 800; font-size: 1.6rem; color: var(--accent); line-height: 1; margin-bottom: 0.75rem; }
.steps h3 { font-size: 1.15rem; font-weight: 700; }
.steps p { color: var(--muted); margin-top: 0.35rem; }

/* FAQ */
.faq { margin-top: 2rem; max-width: 44rem; border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; list-style: none; padding: 1.25rem 2rem 1.25rem 0.25rem; font-weight: 700; font-size: 1.1rem; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 0.25rem; top: 1.1rem; font-weight: 500; font-size: 1.4rem; color: var(--muted); transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { color: var(--muted); padding: 0 0.25rem 1.4rem; max-width: 38rem; }

footer { border-top: 1px solid var(--line); padding: 3rem 0 4rem; color: var(--muted); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 2rem; }
footer nav { display: flex; flex-wrap: wrap; gap: 1.5rem; }
footer a { color: var(--ink); }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 2.5rem; padding: 2.5rem 0 4rem; }
  .plan { grid-template-columns: 1fr; gap: 1.25rem; }
  .buy { text-align: left; display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; }
  .buy .btn { margin-top: 0; }
}
@media (max-width: 640px) {
  .gets, .steps { grid-template-columns: 1fr; }
  .weeks .day { font-size: 0.65rem; padding-right: 0.2rem; }
  .sheet { padding: 1.25rem 1rem 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .hero .sheet, .hero .cell { opacity: 1; transform: none; }
  .hero .cell.deload { opacity: .6; }
  html { scroll-behavior: auto; }
}

/* Top bar navigation */
.top-right { display: flex; align-items: center; gap: 1.5rem; }
.top-link { font-weight: 500; text-decoration: none; color: var(--muted); }
.top-link:hover, .top-link[aria-current="page"] { color: var(--ink); }

/* "More plans" row at the end of the home page list */
.more { display: grid; grid-template-columns: 1fr auto; gap: 1rem 3rem; align-items: center; padding: 2.25rem 0.25rem 0; border-top: 1px solid var(--line); }
.more h3 { font-size: clamp(1.3rem, 2.6vw, 1.7rem); font-weight: 700; letter-spacing: -0.02em; }
.more p { color: var(--muted); margin-top: 0.35rem; max-width: 32rem; }
.more .btn { margin-top: 0; background: none; color: var(--ink); border: 1.5px solid var(--ink); }
.more .btn:hover { background: var(--ink); color: var(--bg); filter: none; }

/* Plans page */
.page-head { padding: 3.5rem 0 2.5rem; }
.page-head h1 { max-width: 16ch; }
.filters { display: flex; flex-wrap: wrap; gap: 1.25rem 2.5rem; padding: 1.5rem 0; border-top: 1px solid var(--line); }
.filter { display: grid; gap: 0.5rem; }
.filter-name { font-size: 0.9rem; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.chips button {
  font: inherit; font-size: 0.95rem; font-weight: 500; cursor: pointer;
  border: 1px solid var(--line); background: none; color: var(--ink);
  padding: 0.4rem 0.9rem; border-radius: 999px; transition: background .15s, color .15s, border-color .15s;
}
.chips button:hover { border-color: var(--muted); }
.chips button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.count { color: var(--muted); font-size: 0.95rem; padding: 0.5rem 0 0; }
.page-plans { margin-top: 1rem; }
.empty { padding: 3rem 0.25rem; border-top: 1px solid var(--line); }
.empty p { font-size: 1.15rem; font-weight: 700; }
.empty .btn { margin-top: 1rem; }
.page-plans + .empty { border-top: 0; }

@media (max-width: 860px) {
  .more { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .top-right { gap: 1rem; }
  .brand small { display: none; }
}

/* Buttons side by side */
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.actions .btn { margin-top: 0; }
.btn-secondary { background: none; color: var(--ink); border: 1.5px solid var(--ink); }
.btn-secondary:hover { background: var(--ink); color: var(--bg); filter: none; }

/* Launch offer bar */
.launch { background: var(--accent); color: var(--on-accent); text-align: center; font-size: 0.95rem; font-weight: 500; padding: 0.65rem 1.5rem; }
.promo { font-size: 0.9rem; font-weight: 700; color: var(--accent); margin-top: 0.35rem; }

/* Bundles */
.bundles-list { margin-top: 2.5rem; }
.includes { margin-top: 1rem; font-size: 0.95rem; }
.includes span { color: var(--muted); }
.includes a { font-weight: 500; }
.mini.stack { display: grid; gap: 0.6rem; }
.mini.stack .sheet { display: block; }
.mini.stack .weeks, .mini.stack .spans { justify-content: start; }
.mini.stack .sheet-title { font-size: 0.78rem; margin-bottom: 0.6rem; gap: 0.25rem 0.75rem; }
.mini.stack .weeks .day { font-size: 0.65rem; }
.save { font-size: 0.9rem; font-weight: 700; margin-top: 0.35rem; }
.plan.flash { animation: flash 1.8s ease-out; }
@keyframes flash { from { background: var(--surface); } to { background: transparent; } }

/* Quiz */
dialog.quiz {
  margin: auto; border: 1px solid var(--line); border-radius: 1rem; background: var(--bg); color: var(--ink);
  padding: 1.5rem 1.75rem 1.75rem; width: min(36rem, calc(100% - 2rem)); max-height: calc(100% - 2rem); overflow: auto;
}
dialog.quiz::backdrop { background: rgba(20, 25, 23, 0.5); }
.quiz-top { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 0.9rem; }
.quiz-link { font: inherit; font-size: 0.95rem; font-weight: 500; background: none; border: 0; color: var(--muted); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; padding: 0.25rem 0; }
.quiz-link:hover { color: var(--ink); }
.quiz-progress { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin: 1rem 0 1.5rem; }
.quiz-progress span { height: 4px; border-radius: 2px; background: var(--line); }
.quiz-progress span.on { background: var(--accent); }
.quiz h2 { font-size: clamp(1.4rem, 4vw, 1.8rem); max-width: none; margin-bottom: 1.25rem; }
.options { display: grid; gap: 0.6rem; margin-bottom: 1rem; }
.options button {
  font: inherit; font-weight: 500; text-align: left; cursor: pointer; color: var(--ink);
  background: var(--surface); border: 1.5px solid var(--line); border-radius: 0.7rem; padding: 0.95rem 1.15rem;
  transition: border-color .15s;
}
.options button:hover, .options button.picked { border-color: var(--accent); }
.match { padding: 1.4rem 0; border-bottom: 1px solid var(--line); }
.match:first-child { padding-top: 1rem; }
.match-label { font-size: 0.9rem; font-weight: 700; color: var(--accent); }
.match h3 { font-size: 1.6rem; font-weight: 800; letter-spacing: -0.02em; margin-top: 0.2rem; }
.match .for { color: var(--muted); margin-top: 0.4rem; }
.match-meta { font-size: 0.95rem; margin-top: 0.6rem; }
.match .actions { margin-top: 1rem; }
.match + .quiz-link { margin-top: 1rem; }
