/* Synlig Lokal — shared styles */
:root {
  --pine: #173a2e;
  --pine-2: #24503f;
  --paper: #f6f7f3;
  --white: #ffffff;
  --sage: #dde6da;
  --sage-2: #eef2ec;
  --ink: #18201c;
  --muted: #56625b;
  --line: #c9d3c6;
  --lingon: #b02a3e;
  --focus: #2f6fd1;

  --font: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --measure: 62ch;
  --radius-s: 8px;
  --radius-m: 14px;
  --gutter: clamp(16px, 4vw, 40px);
  --wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-variation-settings: "wdth" 100;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--pine-2); text-underline-offset: 3px; }
a:hover { color: var(--pine); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--white); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }

/* Type scale (1.25 ratio) */
h1, h2, h3 { font-family: var(--font); line-height: 1.08; margin: 0 0 0.5em; color: var(--ink); letter-spacing: -0.02em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); font-weight: 750; font-variation-settings: "wdth" 82, "opsz" 96; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 700; font-variation-settings: "wdth" 86, "opsz" 72; }
h3 { font-size: 1.25rem; font-weight: 650; line-height: 1.25; letter-spacing: -0.01em; }
p { margin: 0 0 1em; max-width: var(--measure); }
.lead { font-size: clamp(1.125rem, 2vw, 1.3rem); color: var(--muted); line-height: 1.5; }
.small { font-size: 0.9rem; color: var(--muted); }

/* Season banner */
.season {
  background: var(--pine);
  color: var(--paper);
  font-size: 0.95rem;
}
.season .wrap { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; padding-top: 10px; padding-bottom: 10px; }
.season a { color: var(--paper); font-weight: 650; }
.season[hidden] { display: none; }

/* Header */
.site-head { border-bottom: 1px solid var(--line); background: var(--paper); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 750; font-size: 1.15rem; letter-spacing: -0.01em; }
.logo svg { width: 22px; height: 28px; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a { text-decoration: none; color: var(--ink); font-weight: 550; }
.nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.nav .btn { color: var(--paper); }
.nav-toggle { display: none; }
@media (max-width: 760px) {
  .nav { display: none; position: absolute; left: 0; right: 0; top: 68px; background: var(--paper); flex-direction: column; align-items: flex-start; padding: 16px var(--gutter) 24px; border-bottom: 1px solid var(--line); z-index: 5; }
  .nav.open { display: flex; }
  .site-head { position: relative; }
  .nav-toggle { display: inline-flex; background: none; border: 1px solid var(--line); border-radius: var(--radius-s); padding: 8px 12px; font: inherit; font-weight: 600; color: var(--ink); cursor: pointer; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px;
  background: var(--pine); color: var(--paper);
  border: 2px solid var(--pine); border-radius: 10px;
  font: inherit; font-weight: 650; text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--pine-2); border-color: var(--pine-2); color: var(--paper); }
.btn.quiet { background: transparent; color: var(--pine); }
.btn.quiet:hover { background: var(--sage-2); color: var(--pine); }
.btn-note { font-size: 0.9rem; color: var(--muted); margin-top: 10px; }

/* Sections */
section { padding: clamp(56px, 9vw, 104px) 0; }
section + section { border-top: 1px solid var(--line); }
.tint { background: var(--sage-2); }

/* Hero */
.hero { padding-top: clamp(40px, 7vw, 88px); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero h1 { max-width: 13ch; }
.hero .lead { max-width: 40ch; }
.hero-actions { margin-top: 28px; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } }

/* The search moment */
.phone {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 18px;
  box-shadow: 0 30px 60px -30px rgba(23, 58, 46, 0.35);
  max-width: 420px;
  margin-left: auto;
}
@media (max-width: 860px) { .phone { margin: 0; } }
.searchbar {
  display: flex; align-items: center; gap: 10px;
  border: 1px solid var(--line); border-radius: 999px;
  padding: 12px 16px; font-size: 1.05rem; min-height: 50px;
}
.searchbar svg { width: 18px; height: 18px; flex: none; color: var(--muted); }
.typed { white-space: nowrap; overflow: hidden; }
.caret { display: inline-block; width: 2px; height: 1.1em; background: var(--ink); vertical-align: -2px; margin-left: 1px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.map {
  margin-top: 14px; height: 120px; border-radius: 14px; position: relative; overflow: hidden;
  background:
    linear-gradient(90deg, transparent 47%, #fff 47%, #fff 53%, transparent 53%) 0 0 / 120px 100%,
    linear-gradient(0deg, transparent 44%, #fff 44%, #fff 52%, transparent 52%) 0 0 / 100% 80px,
    var(--sage);
}
.pin { position: absolute; left: 54%; top: 22px; width: 30px; height: 40px; color: var(--lingon); transform-origin: 50% 100%; }
.listing { margin-top: 14px; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.listing .name { font-weight: 700; font-size: 1.1rem; margin: 0; }
.listing .meta { color: var(--muted); font-size: 0.92rem; margin: 2px 0 0; }
.stars { color: #b07a12; letter-spacing: 1px; }
.listing .offer { margin: 10px 0 12px; font-size: 0.98rem; }
.listing .actions { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 999px; font-weight: 650; font-size: 0.92rem; border: 1px solid var(--line); color: var(--pine); }
.chip.primary { background: var(--pine); color: var(--paper); border-color: var(--pine); }
.example-note { font-size: 0.82rem; color: var(--muted); margin: 10px 4px 0; }

/* The single orchestrated moment: result appears after the typing */
.js .reveal-after-typing { opacity: 0; transform: translateY(8px); transition: opacity 0.5s ease, transform 0.5s ease; }
.js .typed-done .reveal-after-typing { opacity: 1; transform: none; }
.js .typed-done .pin { animation: drop 0.5s cubic-bezier(.2,1.4,.4,1) both; }
@keyframes drop { from { transform: translateY(-24px) scale(0.6); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .js .reveal-after-typing { opacity: 1; transform: none; transition: none; }
  .js .typed-done .pin { animation: none; }
  .caret { animation: none; }
}

/* Two-column text blocks */
.split { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(24px, 5vw, 72px); align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* Price list */
.prices { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 32px; }
@media (max-width: 760px) { .prices { grid-template-columns: 1fr; } }
.plan { border: 1px solid var(--line); border-radius: var(--radius-m); padding: 28px; background: var(--white); }
.plan.main { border: 2px solid var(--pine); }
.plan .tag { display: inline-block; font-size: 0.85rem; font-weight: 650; color: var(--pine); background: var(--sage); border-radius: 999px; padding: 3px 12px; margin-bottom: 12px; }
.plan .price { font-size: clamp(2.2rem, 4vw, 2.8rem); font-weight: 750; letter-spacing: -0.03em; line-height: 1; margin: 10px 0 4px; font-variation-settings: "wdth" 85; }
.plan .price span { font-size: 1rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.plan .for { color: var(--muted); margin-bottom: 16px; }
.plan ul { margin: 16px 0 24px; padding-left: 0; list-style: none; }
.plan li { padding: 8px 0 8px 28px; border-top: 1px solid var(--sage); position: relative; }
.plan li::before { content: ""; position: absolute; left: 4px; top: 16px; width: 12px; height: 7px; border-left: 2px solid var(--pine); border-bottom: 2px solid var(--pine); transform: rotate(-45deg); }
.plan .includes { font-weight: 650; margin-bottom: 0; }

/* Proof */
.proof { background: var(--pine); color: var(--paper); }
.proof blockquote { margin: 0; font-size: clamp(1.5rem, 3.4vw, 2.3rem); line-height: 1.22; font-weight: 600; letter-spacing: -0.015em; max-width: 28ch; font-variation-settings: "wdth" 88; }
.proof .big { font-size: clamp(5rem, 14vw, 10rem); line-height: 0.85; font-weight: 800; letter-spacing: -0.05em; color: var(--sage); font-variation-settings: "wdth" 75; }
.proof-grid { display: grid; grid-template-columns: auto 1fr; gap: clamp(24px, 5vw, 64px); align-items: end; }
@media (max-width: 700px) { .proof-grid { grid-template-columns: 1fr; } }
.proof a { color: var(--paper); font-weight: 650; }
.proof .who { margin-top: 18px; color: var(--sage); font-size: 1rem; }

/* Year plan: a real sequence of quarters */
.year { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 36px; border-top: 3px solid var(--pine); }
.year li { list-style: none; padding: 20px 20px 0 0; position: relative; }
.year li::before { content: ""; position: absolute; top: -9px; left: 0; width: 15px; height: 15px; border-radius: 50%; background: var(--paper); border: 3px solid var(--pine); }
.tint .year li::before { background: var(--sage-2); }
.year .when { font-weight: 700; color: var(--pine); font-size: 0.95rem; }
.year h3 { margin: 4px 0 6px; }
.year p { color: var(--muted); font-size: 0.98rem; }
.year { padding: 0; }
@media (max-width: 760px) {
  .year { grid-template-columns: 1fr; border-top: 0; border-left: 3px solid var(--pine); margin-left: 6px; }
  .year li { padding: 0 0 24px 26px; }
  .year li::before { top: 4px; left: -9px; }
}

/* Steps (ordered) */
.steps { counter-reset: step; padding: 0; margin: 28px 0 0; display: grid; gap: 0; }
.steps li { list-style: none; counter-increment: step; display: grid; grid-template-columns: 48px 1fr; gap: 16px; padding: 20px 0; border-top: 1px solid var(--line); }
.steps li::before { content: counter(step); width: 40px; height: 40px; border-radius: 50%; background: var(--sage); color: var(--pine); font-weight: 750; display: grid; place-items: center; }
.steps h3 { margin: 6px 0 4px; }
.steps p { margin: 0; color: var(--muted); }

/* FAQ */
.faq { margin-top: 24px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 18px 40px 18px 0; font-weight: 650; font-size: 1.1rem; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 14px; font-size: 1.5rem; font-weight: 400; color: var(--pine); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); padding-bottom: 12px; }

/* Cases */
.cases { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 40px; margin-top: 24px; }
@media (max-width: 760px) { .cases { grid-template-columns: 1fr; } }
.case { padding: 22px 0; border-top: 1px solid var(--line); }
.case h3 { margin-bottom: 4px; }
.case .kind { font-size: 0.9rem; color: var(--muted); margin-bottom: 8px; }
.case p { margin-bottom: 0; }

/* Form */
.contact { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }
.founder-photo { margin: 24px 0 0; max-width: 320px; }
.founder-photo figcaption { margin-top: 8px; color: var(--muted); font-size: 0.88rem; }
.portrait { display: block; width: 100%; aspect-ratio: 4 / 5; border-radius: var(--radius-m); object-fit: cover; object-position: center top; }
form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
label { font-weight: 600; }
.hint { font-size: 0.88rem; color: var(--muted); font-weight: 400; }
input, select, textarea {
  font: inherit; color: var(--ink); background: var(--white);
  border: 1px solid #a9b6a6; border-radius: var(--radius-s);
  padding: 12px 14px; min-height: 48px; width: 100%;
}
textarea { min-height: 110px; resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .two { grid-template-columns: 1fr; } }
.consent { font-size: 0.88rem; color: var(--muted); }
.form-status { font-weight: 600; min-height: 1.5em; }
.form-status.ok { color: var(--pine-2); }
.form-status.err { color: var(--lingon); }
.hp { position: absolute; left: -5000px; }

/* Sprint page specifics */
.deadline { display: inline-flex; gap: 10px; align-items: center; background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 6px 16px 6px 8px; font-weight: 600; margin-bottom: 20px; }
.deadline .dot { width: 26px; height: 26px; border-radius: 50%; background: var(--lingon); color: #fff; display: grid; place-items: center; font-size: 0.8rem; font-weight: 750; }
.compare { width: 100%; border-collapse: collapse; margin-top: 28px; background: var(--white); border-radius: var(--radius-m); overflow: hidden; border: 1px solid var(--line); }
.compare th, .compare td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--sage); vertical-align: top; }
.compare thead th { font-size: 1.15rem; background: var(--sage-2); }
.compare thead th.main { background: var(--pine); color: var(--paper); }
.compare tbody th { font-weight: 600; color: var(--muted); width: 32%; }
.compare .total td { font-size: 1.5rem; font-weight: 750; letter-spacing: -0.02em; }
.compare tr:last-child th, .compare tr:last-child td { border-bottom: 0; }
.table-scroll { overflow-x: auto; }
@media (max-width: 640px) {
  .compare thead { display: none; }
  .compare, .compare tbody, .compare tr, .compare th, .compare td { display: block; width: 100%; }
  .compare tr { border-bottom: 1px solid var(--line); padding: 8px 0; }
  .compare tbody th { padding: 10px 16px 2px; border: 0; width: 100%; }
  .compare td { padding: 2px 16px; border: 0; }
  .compare td::before { content: attr(data-plan) ": "; font-weight: 650; color: var(--pine); }
  .compare .total td { font-size: 1.2rem; }
}
.math { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 24px; margin-top: 8px; }
.calc { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 16px 0; }
@media (max-width: 640px) { .calc { grid-template-columns: 1fr; } }
.calc output { font-size: 1.6rem; font-weight: 750; color: var(--pine); letter-spacing: -0.02em; }
.calc-result { font-size: 1.15rem; margin: 0; }
.calc-result strong { font-size: 1.6rem; color: var(--pine); }

/* Footer */
.site-foot { background: var(--ink); color: #d6ddd5; padding: 48px 0; font-size: 0.95rem; }
.site-foot a { color: #fff; }
.site-foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
.site-foot p { margin: 0 0 6px; }

/* Utility */
.mt-0 { margin-top: 0; }
.center-cta { margin-top: 36px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.plan-name { font-size: 1.25rem; font-weight: 650; line-height: 1.25; letter-spacing: -0.01em; font-variation-settings: normal; }

/* Fixes after review */
.plan { display: flex; flex-direction: column; align-items: flex-start; }
.plan > .btn { margin-top: auto; }
.plan .for { flex: 0 0 auto; }
.deadline .dot { width: auto; height: 26px; border-radius: 999px; padding: 0 9px; }

/* Phase 2: consent banner */
.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 50;
  max-width: 560px; margin-left: auto;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-m);
  box-shadow: 0 20px 50px -20px rgba(23, 58, 46, 0.45);
  padding: 18px 20px; font-size: 0.95rem;
}
.cookie-banner p { margin: 0 0 12px; }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.cookie-actions .btn { min-height: 42px; padding: 0 16px; }

/* Phase 2: visibility check */
.check-form { margin-top: 28px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 22px; }
.consent-note { font-size: 0.85rem; color: var(--muted); margin: 0; }
.report { background: var(--white); border: 1px solid var(--line); border-radius: 22px; padding: 22px; box-shadow: 0 30px 60px -30px rgba(23, 58, 46, 0.35); max-width: 440px; margin-left: auto; }
@media (max-width: 860px) { .report { margin: 0; } }
.report-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--sage); }
.report-name { font-weight: 700; margin: 0; }
.report-meta { color: var(--muted); font-size: 0.9rem; margin: 2px 0 0; }
.score { margin: 0; font-size: 1rem; color: var(--muted); white-space: nowrap; }
.score span { font-size: 2.6rem; font-weight: 800; color: var(--lingon); letter-spacing: -0.03em; font-variation-settings: "wdth" 80; }
.fixes { margin: 14px 0 0; padding-left: 22px; }
.fixes li { padding: 8px 0; border-bottom: 1px solid var(--sage-2); font-size: 0.97rem; }
.fixes li:last-child { border-bottom: 0; }
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 48px; margin-top: 20px; }
@media (max-width: 760px) { .checks { grid-template-columns: 1fr; } }
.ticks { list-style: none; padding: 0; margin: 0; }
.ticks li { padding: 9px 0 9px 28px; border-top: 1px solid var(--line); position: relative; }
.ticks li::before { content: ""; position: absolute; left: 4px; top: 17px; width: 12px; height: 7px; border-left: 2px solid var(--pine); border-bottom: 2px solid var(--pine); transform: rotate(-45deg); }
.hero-actions .btn + .btn { margin-left: 8px; }
.site-foot button.linklike { background: none; border: 0; color: #fff; text-decoration: underline; font: inherit; padding: 0; cursor: pointer; }
