/* Samlet Forening landing page. Layout: sticky header, hero (text + app screenshots), alternating bands, form card. */
:root {
  --bg: #f5f7f5;
  --band: #eaf1ee;
  --surface: #ffffff;
  --ink: #15201e;
  --muted: #55645f;
  --line: #d8e0dc;
  --accent: #1d5c55;
  --accent-ink: #ffffff;
  --accent-soft: #dcebe7;
  --bad: #a1322a;
  --bad-soft: #f7e2df;
  --good: #2c7443;
  --good-soft: #e3f1e6;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1514; --band: #141d1b; --surface: #18211f; --ink: #e4ebe9; --muted: #98a7a3; --line: #2a3533;
    --accent: #62b3a6; --accent-ink: #0d1615; --accent-soft: #1d3330; --bad: #ec8a80; --bad-soft: #3d1f1c; --good: #6cc488; --good-soft: #1b3324;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
h1, h2, h3 { margin: 0; text-wrap: balance; line-height: 1.15; }
h1 { font: 600 clamp(34px, 5vw, 54px)/1.08 var(--display); letter-spacing: -.01em; }
h2 { font: 600 clamp(28px, 3.4vw, 38px)/1.15 var(--display); margin-bottom: 10px; }
h3 { font-size: 18px; font-weight: 650; margin-bottom: 6px; }
p { margin: 0 0 12px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.wrap { max-width: 1160px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.narrow { max-width: 820px; }
section { padding-block: 72px; }
.band { background: var(--band); }
.sub { color: var(--muted); font-size: 18px; margin-bottom: 28px; max-width: 62ch; }
.fine { color: var(--muted); font-size: 14px; margin-top: 16px; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: 13px; font-weight: 700; color: var(--accent); margin-bottom: 14px; }

/* header */
.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; gap: 24px; min-height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink); text-decoration: none; font-size: 18px; }
.mark { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; background: var(--accent); }
.mark svg { fill: var(--accent-ink); stroke: var(--accent-ink); stroke-width: 1.6; }
.mark svg path { fill: none; }
.links { display: flex; gap: 22px; margin-left: auto; }
.links a { color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 500; }
.links a:hover { color: var(--ink); }
@media (max-width: 820px) { .links { display: none; } .top-in .btn { margin-left: auto; } }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 22px; border-radius: 8px; background: var(--accent); color: var(--accent-ink); border: 1px solid var(--accent); font: 650 16px var(--font); text-decoration: none; cursor: pointer; }
.btn:hover { filter: brightness(1.08); }
.btn-ghost { background: transparent; color: var(--accent); }
.btn-ghost:hover { background: var(--accent-soft); filter: none; }
.btn-sm { padding: 8px 14px; font-size: 14px; }

/* hero */
.hero { padding-block: 64px 56px; }
.hero-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 48px; align-items: center; }
.lede { font-size: 19px; color: var(--muted); margin-top: 18px; max-width: 54ch; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 26px 0 22px; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.checks li { padding-left: 28px; position: relative; color: var(--muted); font-size: 16px; }
.checks li::before { content: ""; position: absolute; left: 4px; top: 7px; width: 12px; height: 7px; border-left: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent); transform: rotate(-45deg); }
.shot { position: relative; margin: 0 0 40px; }
.shot > img:first-child { border-radius: 10px; border: 1px solid var(--line); box-shadow: 0 24px 60px -24px rgba(20, 40, 36, .35); }
.shot .phone { position: absolute; width: 26%; right: -10px; bottom: -40px; border-radius: 18px; border: 5px solid #111; box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .45); }
@media (max-width: 900px) {
  .hero-in { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .shot .phone { right: 8px; }
}

video { width: 100%; border-radius: 10px; border: 1px solid var(--line); background: #000; aspect-ratio: 16 / 9; }

/* features */
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 30px; }
.feat { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 22px; }
.feat p { color: var(--muted); font-size: 16px; margin: 0; }
@media (max-width: 900px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .grid { grid-template-columns: minmax(0, 1fr); } }

/* try it */
.roles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.role { display: flex; flex-direction: column; gap: 6px; padding: 18px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: border-color .15s, transform .15s; }
.role b { font-size: 17px; color: var(--accent); }
.role b::after { content: " →"; }
.role span { color: var(--muted); font-size: 15px; line-height: 1.45; }
.role:hover { border-color: var(--accent); transform: translateY(-2px); }
@media (max-width: 1000px) { .roles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .roles { grid-template-columns: minmax(0, 1fr); } }

/* steps */
.steps { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; counter-reset: s; }
.steps li { counter-increment: s; padding: 22px; border-top: 3px solid var(--accent); background: var(--surface); border-radius: 0 0 10px 10px; display: flex; flex-direction: column; gap: 6px; }
.steps li::before { content: counter(s); font: 600 30px var(--display); color: var(--accent); }
.steps span { color: var(--muted); font-size: 16px; }
@media (max-width: 760px) { .steps { grid-template-columns: minmax(0, 1fr); } }

/* faq */
details { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 16px 20px; margin-bottom: 10px; }
summary { cursor: pointer; font-weight: 650; font-size: 18px; }
details p { color: var(--muted); margin: 10px 0 0; }

/* booking */
.book { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 48px; align-items: start; }
.book-text p { color: var(--muted); font-size: 18px; }
@media (max-width: 900px) { .book { grid-template-columns: minmax(0, 1fr); gap: 24px; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 26px; }
.form { display: grid; gap: 16px; }
.row2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
@media (max-width: 560px) { .row2 { grid-template-columns: minmax(0, 1fr); } }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field span { font-size: 14px; font-weight: 650; }
input, select, textarea { font: inherit; font-size: 16px; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 11px 12px; width: 100%; min-width: 0; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); outline: 2px solid color-mix(in srgb, var(--accent) 30%, transparent); }
textarea { resize: vertical; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--muted); }
.consent input { width: 20px; height: 20px; flex: none; margin-top: 2px; accent-color: var(--accent); }
.form .btn { justify-self: start; }
.errors { background: var(--bad-soft); color: var(--bad); border-radius: 8px; padding: 12px 16px; font-size: 15px; }
.errors ul { margin: 6px 0 0; padding-left: 18px; }
.done { background: var(--good-soft); border-color: color-mix(in srgb, var(--good) 35%, transparent); }
.done h3 { color: var(--good); font-size: 22px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* footer */
.foot { border-top: 1px solid var(--line); padding-block: 28px; color: var(--muted); font-size: 15px; }
.foot-in { display: flex; gap: 22px; flex-wrap: wrap; }
.foot a { color: var(--muted); }

/* privacy + leads */
.prose { padding-block: 48px 72px; }
.prose h1 { font-size: 36px; margin-bottom: 20px; }
.prose h2 { font-size: 22px; margin: 28px 0 6px; }
.leads { padding-block: 40px; max-width: 900px; }
.leads-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.leads-head h1 { font-size: 32px; }
.lead { margin-bottom: 12px; }
.lead p { margin: 4px 0; }
.lead-top { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.lead time { color: var(--muted); font-size: 14px; }
.msg { white-space: pre-wrap; background: var(--bg); border-radius: 8px; padding: 10px 12px; margin-top: 8px !important; }

/* Phones: keep the header on one line. */
.brand, .top-in .btn { white-space: nowrap; }
@media (max-width: 420px) { .top-in { gap: 12px; } .brand { font-size: 16px; } .top-in .btn-sm { padding: 8px 11px; font-size: 13px; } }

/* Language switch in the header */
.lang { color: var(--muted); font-size: 14px; font-weight: 600; text-decoration: none; border: 1px solid var(--line); border-radius: 6px; padding: 5px 9px; white-space: nowrap; }
.lang:hover { color: var(--ink); border-color: var(--muted); }
.links + .lang { margin-left: 0; }
@media (max-width: 820px) { .top-in .lang { margin-left: auto; } .top-in .lang + .btn { margin-left: 0; } }
@media (max-width: 420px) { .lang { padding: 4px 7px; font-size: 13px; } }
