/* Shared design system for the public site. See "Design system" in CLAUDE.md. */
:root {
  --ink: #16202B;
  --ink-soft: #4C5966;
  --pacific: #0E4A5F;
  --pacific-dark: #0A3747;
  --fog: #EDF0F2;
  --line: #D5DBE0;
  --white: #FFFFFF;
  --marigold: #E8A25C;
  --gutter: clamp(20px, 4vw, 64px);
  --section: clamp(72px, 11vw, 168px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: 'Schibsted Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
a { color: var(--pacific); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--pacific-dark); }
:focus-visible { outline: 2px solid var(--pacific); outline-offset: 2px; }
/* Marigold is too faint on light backgrounds, so it's only for dark ones. */
.ink :focus-visible, .site-foot :focus-visible, .hero :focus-visible, .site-head.over :focus-visible, .lightbox :focus-visible { outline-color: var(--marigold); }
.hero-form :focus-visible, .site-head.over .menu-panel :focus-visible { outline-color: var(--pacific); }
.skip { position: absolute; left: -9999px; top: 0; background: var(--white); padding: 12px 16px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }

/* Type */
h1, h2, h3, h4 { margin: 0; font-weight: 500; letter-spacing: -0.025em; line-height: 1.05; }
h1 { font-size: clamp(44px, 7.4vw, 112px); letter-spacing: -0.035em; line-height: 0.98; }
h2 { font-size: clamp(34px, 4.6vw, 68px); }
h3 { font-size: clamp(22px, 2vw, 28px); letter-spacing: -0.015em; line-height: 1.2; }
h4 { font-size: 18px; letter-spacing: 0; line-height: 1.35; font-weight: 600; }
p { margin: 0 0 1em; max-width: 62ch; }
p:last-child { margin-bottom: 0; }
.lede { font-size: clamp(20px, 1.7vw, 25px); line-height: 1.4; letter-spacing: -0.01em; max-width: 34ch; }
.small { font-size: 15px; color: var(--ink-soft); }

/* Layout */
.wrap { padding-inline: var(--gutter); max-width: 1680px; margin-inline: auto; }
.section { padding-block: var(--section); }
.section-tight { padding-block: clamp(48px, 6vw, 88px); }
.fog { background: var(--fog); }
.ink { background: var(--ink); color: var(--white); }
.ink a { color: var(--white); }
.ink .small { color: #B6C0C9; }
.split { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: clamp(16px, 2vw, 32px); row-gap: 40px; }
.split > .a { grid-column: 1 / span 5; }
.split > .b { grid-column: 7 / span 6; }
.head { margin-bottom: clamp(36px, 5vw, 72px); max-width: 22ch; }
.head-wide { margin-bottom: clamp(36px, 5vw, 72px); max-width: 30ch; }
@media (max-width: 860px) { .split > .a, .split > .b { grid-column: 1 / -1; } }

/* Buttons */
.btn {
  display: inline-block; padding: 15px 24px; border-radius: 4px; border: 1px solid var(--ink);
  background: var(--ink); color: var(--white); font: inherit; font-size: 16px; font-weight: 500;
  text-decoration: none; cursor: pointer; line-height: 1.2; text-align: center;
}
.btn:hover { background: var(--pacific); border-color: var(--pacific); color: var(--white); }
.btn-line { background: transparent; color: var(--ink); }
.btn-line:hover { background: var(--ink); border-color: var(--ink); color: var(--white); }
.ink .btn { background: var(--white); color: var(--ink); border-color: var(--white); }
.ink .btn:hover { background: var(--marigold); border-color: var(--marigold); color: var(--ink); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 28px; }

/* Header */
.site-head { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 68px; }
.site-head.over { position: absolute; left: 0; right: 0; background: transparent; border-bottom: 0; color: var(--white); }
.mark { font-weight: 600; font-size: 18px; letter-spacing: -0.015em; color: inherit; text-decoration: none; white-space: nowrap; }
.mark:hover { color: inherit; }
.nav { display: flex; align-items: center; gap: clamp(16px, 2vw, 30px); font-size: 16px; }
.nav a { color: inherit; text-decoration: none; }
.nav a:hover { text-decoration: underline; color: inherit; }
.nav .btn { padding: 10px 16px; font-size: 15px; color: var(--white); }
.nav .btn:hover { text-decoration: none; color: var(--white); }
.over .nav .btn { background: var(--white); color: var(--ink); border-color: var(--white); }
.over .nav .btn:hover { background: var(--marigold); border-color: var(--marigold); color: var(--ink); }
.menu { display: none; }
.menu summary { list-style: none; cursor: pointer; font-size: 16px; padding: 8px 0; }
.menu summary::-webkit-details-marker { display: none; }
.menu-panel { position: absolute; left: 0; right: 0; top: 100%; background: var(--white); color: var(--ink); padding: 8px var(--gutter) 24px; border-bottom: 1px solid var(--line); }
.menu-panel a { display: block; padding: 11px 0; color: var(--ink); text-decoration: none; font-size: 20px; }
.menu-panel a:hover { color: var(--pacific); }
@media (max-width: 900px) { .nav { display: none; } .menu { display: block; } }

/* Page intro used on inner pages */
.intro { padding-block: clamp(56px, 8vw, 120px) clamp(40px, 5vw, 72px); }
.intro h1 { font-size: clamp(40px, 6vw, 88px); max-width: 15ch; }
.intro .lede { margin-top: 24px; max-width: 44ch; }
.crumb { font-size: 15px; color: var(--ink-soft); margin-bottom: 22px; }
.crumb a { color: inherit; }
.bleed { width: 100%; }
.bleed img { width: 100%; height: clamp(280px, 56vw, 760px); object-fit: cover; }
.caption { font-size: 14px; color: var(--ink-soft); margin-top: 10px; }

/* Rows: a plain list of named things, each with a line of detail and an optional action */
.rows { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.rows > li { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 8px 32px; padding-block: 24px; border-bottom: 1px solid var(--line); }
.rows h3 a { color: inherit; text-decoration: none; }
.rows h3 a:hover { color: var(--pacific); text-decoration: underline; }
.rows p { margin-bottom: 0; }
.ink .rows, .ink .rows > li { border-color: #33414F; }
@media (max-width: 720px) { .rows > li { grid-template-columns: 1fr; } }

/* Numbered steps. Use only for real sequences. */
.steps { counter-reset: step; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(24px, 3vw, 48px); }
.steps li { counter-increment: step; }
.steps li::before { content: counter(step); display: block; font-size: clamp(40px, 4vw, 60px); letter-spacing: -0.03em; line-height: 1; margin-bottom: 18px; color: var(--pacific); }
.ink .steps li::before { color: var(--marigold); }
.steps h3 { margin-bottom: 10px; }
.steps p { font-size: 17px; }
@media (max-width: 980px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* Price lists */
.prices { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.prices > li { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 2fr) minmax(0, 6fr); gap: 6px 28px; padding-block: 24px; border-bottom: 1px solid var(--line); align-items: baseline; }
.prices .price { font-size: 22px; letter-spacing: -0.015em; }
.prices p { margin: 0; font-size: 16px; color: var(--ink-soft); }
.prices .btn { justify-self: start; margin-top: 12px; padding: 10px 16px; font-size: 15px; }
@media (max-width: 760px) { .prices > li { grid-template-columns: 1fr; } }
.note { font-size: 15px; color: var(--ink-soft); margin-top: 18px; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 20px 32px 20px 0; font-size: 20px; letter-spacing: -0.01em; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 0; top: 18px; font-size: 24px; color: var(--pacific); }
.faq details[open] summary::after { content: '\2212'; }
.faq details p { padding-bottom: 22px; color: var(--ink-soft); }

/* Quote */
.quote { font-size: clamp(24px, 2.6vw, 38px); line-height: 1.25; letter-spacing: -0.02em; margin: 0 0 18px; max-width: 30ch; }

/* Footer */
.site-foot { background: var(--ink); color: #C7D0D8; font-size: 16px; padding-block: clamp(56px, 7vw, 96px) 36px; }
.site-foot a { color: var(--white); text-decoration: none; }
.site-foot a:hover { text-decoration: underline; color: var(--white); }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 36px 32px; }
.foot-name { color: var(--white); font-size: clamp(26px, 2.6vw, 38px); letter-spacing: -0.025em; line-height: 1.1; margin: 0 0 14px; }
.foot-head { color: var(--white); font-size: 18px; line-height: 1.35; font-weight: 600; margin: 0 0 12px; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; }
.foot-grid li { padding-block: 4px; }
.legal { margin-top: clamp(40px, 5vw, 64px); padding-top: 24px; border-top: 1px solid #33414F; font-size: 14px; line-height: 1.6; display: grid; grid-template-columns: 1fr auto; gap: 16px 40px; align-items: start; }
.legal p { max-width: 90ch; margin-bottom: 8px; }
.legal a { text-decoration: underline; }
.eho { display: flex; align-items: center; gap: 10px; white-space: nowrap; color: var(--white); }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > :first-child { grid-column: 1 / -1; } .legal { grid-template-columns: 1fr; } }

/* Lead funnel */
.funnel { background: var(--white); color: var(--ink); padding: clamp(24px, 2.6vw, 40px); min-height: 410px; display: flex; flex-direction: column; }
.funnel-top { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; font-size: 15px; color: var(--ink-soft); margin-bottom: 18px; min-height: 24px; }
.funnel-back { background: none; border: 0; padding: 0; font: inherit; color: var(--pacific); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.funnel-sofar { font-size: 15px; color: var(--pacific); margin: 0 0 8px; }
.funnel h2 { font-size: clamp(27px, 2.5vw, 36px); margin-bottom: 22px; line-height: 1.12; }
.funnel h2:focus { outline: none; }
.funnel-opts { display: grid; gap: 8px; }
.funnel-opt { text-align: left; background: var(--fog); border: 1px solid var(--fog); padding: 15px 18px; font: inherit; font-size: 18px; color: var(--ink); cursor: pointer; border-radius: 4px; }
.funnel-opt:hover { border-color: var(--pacific); background: var(--white); }
.funnel-field { display: block; margin-bottom: 12px; font-size: 15px; font-weight: 500; }
.funnel-field input, .funnel-field select {
  display: block; width: 100%; margin-top: 5px; padding: 13px 14px; font: inherit; font-size: 17px; font-weight: 400; color: var(--ink);
  background: var(--white); border: 1px solid #75828F; border-radius: 4px; appearance: none;
}
.funnel-field select { background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2316202B' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 14px center; padding-right: 36px; }
.funnel-field input:focus, .funnel-field select:focus { outline: 2px solid var(--pacific); outline-offset: 0; border-color: var(--pacific); }
.funnel-consent { display: grid; grid-template-columns: 20px 1fr; gap: 10px; font-size: 13.5px; line-height: 1.4; color: var(--ink-soft); margin: 14px 0 16px; }
.funnel-consent input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--pacific); }
.funnel .btn { width: 100%; }
.funnel-error { color: #A32A2A; font-size: 15px; margin: 10px 0 0; }
.funnel-web { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.funnel-step { animation: funnelIn .22s ease-out; }
@keyframes funnelIn { from { opacity: 0; transform: translateX(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .funnel-step { animation: none; } html { scroll-behavior: auto; } }
