/* Linsa Capital: styles. Mobile-first, light only.
 * Direction: Nordic and exact. Basalt, white and a cold fjord blue; a grotesk at large
 * sizes for statements, a mono for figures and labels. Few words, big type, lots of air. */

@font-face {
  font-family: "Familjen Grotesk";
  src: url("../fonts/familjen-grotesk-var.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/ibm-plex-mono-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/ibm-plex-mono-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #ebf0f1;
  --white: #ffffff;
  --ash: #e0e7e8;
  --basalt: #131618;
  --basalt-2: #22272a;
  --ink: #131618;
  --muted: #59626a;
  --rule: #cdd6d9;
  --fjord: #2a5a78;
  --frost: #a8c4d6;
  --on-dark: #e9eeef;
  --on-dark-muted: #9aa6ad;

  --sans: "Familjen Grotesk", "Helvetica Neue", Arial, system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --wrap: 82rem;
  --gutter: 1.25rem;
  --section-y: 5rem;

  color-scheme: light;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.125rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--sans);
  font-weight: 400;
  margin: 0;
  text-wrap: balance;
}
h1 {
  font-size: clamp(3rem, 10vw, 7.75rem);
  line-height: 0.96;
  letter-spacing: -0.04em;
}
h2 {
  font-size: clamp(2rem, 5.2vw, 3.75rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
}
h3 { font-size: 1.375rem; font-weight: 500; line-height: 1.2; letter-spacing: -0.01em; }

p { margin: 0; }
ul, ol, dl { margin: 0; padding: 0; list-style: none; }

a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--fjord); }

:focus-visible { outline: 2px solid var(--fjord); outline-offset: 3px; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  background: var(--basalt);
  color: var(--white);
  padding: 0.5rem 1rem;
}
.skip-link:focus { top: 1rem; color: var(--white); }

.label {
  font-family: var(--mono);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.25rem;
}
.muted { color: var(--muted); }
.small { font-size: 0.875rem; color: var(--muted); }
.lead { font-size: clamp(1.1875rem, 1.9vw, 1.4375rem); line-height: 1.45; max-width: 34rem; color: var(--muted); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 3rem;
  padding: 0.7rem 1.4rem;
  border: 1px solid var(--basalt);
  border-radius: 0;
  background: var(--basalt);
  color: var(--white);
  font: 500 0.9375rem/1.2 var(--sans);
  letter-spacing: 0.005em;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn:hover { background: var(--fjord); border-color: var(--fjord); color: var(--white); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--basalt); border-color: var(--basalt); color: var(--white); }
.btn-small { min-height: 2.5rem; padding: 0.4rem 1rem; font-size: 0.875rem; }
.btn-light { background: var(--white); border-color: var(--white); color: var(--basalt); }
.btn-light:hover { background: var(--frost); border-color: var(--frost); color: var(--basalt); }
.btn-light-ghost { background: transparent; border-color: var(--on-dark-muted); color: var(--on-dark); }
.btn-light-ghost:hover { background: var(--white); border-color: var(--white); color: var(--basalt); }
.btn[disabled],
.btn[disabled]:hover { background: transparent; border-color: var(--rule); color: var(--muted); cursor: default; }

.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* ---------- Header ---------- */

#site-header { display: contents; }

.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--rule);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink);
  text-decoration: none;
  font-size: 1.1875rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  white-space: nowrap;
}
.brand:hover { color: var(--ink); }
.brand-mark { width: 0.95rem; height: 1.3rem; color: var(--fjord); flex: none; }

.header-actions { display: flex; align-items: center; gap: 0.75rem; }

.nav-desktop { display: none; }
.nav-desktop ul { display: flex; gap: 2rem; }
.nav-desktop a,
.nav-mobile a { text-decoration: none; font-size: 1rem; }
.nav-desktop a:hover,
.nav-mobile a:hover { color: var(--fjord); }

.nav-mobile { position: relative; }
.nav-mobile summary {
  list-style: none;
  cursor: pointer;
  min-height: 2.5rem;
  display: inline-flex;
  align-items: center;
  font-family: var(--mono);
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.nav-mobile summary::-webkit-details-marker { display: none; }
.nav-mobile nav {
  position: absolute;
  right: 0;
  top: calc(100% + 0.9rem);
  min-width: 13rem;
  background: var(--bg);
  border: 1px solid var(--rule);
  padding: 0.5rem 0;
}
.nav-mobile a { display: block; padding: 0.8rem 1.25rem; font-size: 1.125rem; }

.lang-toggle { display: flex; gap: 0.125rem; }
.lang-toggle a,
.lang-toggle span {
  display: inline-flex;
  align-items: center;
  min-height: 2.5rem;
  padding: 0 0.4rem;
  font-family: var(--mono);
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  text-decoration: none;
}
.lang-toggle a { color: var(--muted); }
.lang-toggle a:hover { color: var(--ink); }
.lang-toggle span { color: var(--ink); text-decoration: underline; text-underline-offset: 0.4em; }

/* The hero carries the booking button on phones */
.header-actions .btn-small { display: none; }

.back-link { font-size: 0.9375rem; }

/* ---------- Hero ---------- */

.hero { padding-block: 3.5rem 2rem; }
.hero h1 { margin-bottom: 2.25rem; max-width: 12ch; }
.hero-row { display: grid; gap: 1.75rem; align-items: end; }

.hero-figure { margin-top: 3rem; border-top: 1px solid var(--rule); padding-top: 2rem; }
.lens-diagram { display: block; width: 100%; height: auto; overflow: visible; }
.lens-diagram--wide { display: none; }
.lens-diagram line { stroke: var(--fjord); }
.lens-diagram .ray-in { stroke-width: 0.8; opacity: 0.35; }
.lens-diagram .ray-out { stroke-width: 1; }
.lens-diagram .ray-past { stroke-width: 1; opacity: 0.2; }
.lens-diagram .lens-shape { fill: var(--fjord); fill-opacity: 0.05; stroke: var(--basalt); stroke-width: 0.9; }
.lens-diagram .ray-label {
  font-family: var(--mono);
  font-size: 15px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  fill: var(--muted);
  text-anchor: end;
  dominant-baseline: middle;
}
.lens-diagram .focus-dot { fill: var(--fjord); }
.lens-diagram .focus-ring { fill: none; stroke: var(--fjord); stroke-width: 1; }
.lens-diagram .focus-label { font-family: var(--sans); font-weight: 400; font-size: 30px; letter-spacing: -0.02em; fill: var(--ink); text-anchor: middle; }

/* ---------- Sections ---------- */

.section { padding-block: var(--section-y); }
.section h2 { margin-bottom: 2.5rem; }
.section-ash { background: var(--ash); }
.section-dark { background: var(--basalt); color: var(--on-dark); }
.section-dark .label { color: var(--on-dark-muted); }
.section-dark a:hover { color: var(--frost); }

/* Services index */
.index { border-top: 1px solid var(--rule); }
.index li {
  display: grid;
  gap: 0.35rem;
  padding-block: 1.6rem;
  border-bottom: 1px solid var(--rule);
}
.index h3 { font-weight: 400; font-size: 1.5rem; }
.index p { color: var(--muted); }
.index .fee {
  font-family: var(--mono);
  font-size: 0.875rem;
  color: var(--fjord);
  font-variant-numeric: tabular-nums;
}

/* Method statements */
.statements { display: grid; border-top: 1px solid var(--basalt-2); }
.statements li {
  padding-block: 1.4rem;
  border-bottom: 1px solid var(--basalt-2);
  font-size: clamp(1.5rem, 3.2vw, 2.25rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

/* Experience */
.stats { display: grid; gap: 2.5rem; margin-bottom: 3rem; }
.stats li { display: grid; gap: 0.5rem; }
.stat-value {
  font-size: clamp(3.25rem, 6.5vw, 5.75rem);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.045em;
  white-space: nowrap;
}
.stat-label { font-family: var(--mono); font-size: 0.9375rem; color: var(--muted); max-width: 16rem; }
.sector-list { display: flex; flex-wrap: wrap; gap: 0.5rem; border-top: 1px solid var(--rule); padding-top: 1.75rem; }
.sector-list li {
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--rule);
  border-radius: 2px;
  font-size: 0.9375rem;
  color: var(--muted);
}

/* The name */
.name-band { background: var(--bg); color: var(--ink); padding-block: 5rem; }
.name-band .wrap { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding-block: 4rem; }
.name-lead {
  font-family: var(--mono);
  font-size: 0.9375rem;
  letter-spacing: 0.04em;
  color: var(--fjord);
  margin-bottom: 1.25rem;
}
.name-text {
  font-size: clamp(1.75rem, 4.2vw, 3.25rem);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.025em;
  max-width: 24ch;
}

/* Cases */
.cases { display: grid; gap: 2.5rem; }
.case { display: grid; gap: 1rem; align-content: start; border-top: 1px solid var(--rule); padding-top: 1.25rem; }
.case-sector { font-family: var(--mono); font-size: 0.875rem; color: var(--fjord); text-transform: uppercase; letter-spacing: 0.04em; }
.case-situation { font-size: 1.1875rem; line-height: 1.45; }
.case-result { color: var(--muted); }
.case-result .label { display: block; margin-bottom: 0.25rem; }

/* Self-test */
html:not(.js) .quiz { display: none; }
.quiz-wrap { display: grid; gap: 2.5rem; }
.quiz-head h2 { margin-bottom: 1rem; }
.quiz { max-width: 46rem; }
.quiz-progress {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: var(--mono);
  font-size: 0.875rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  margin-bottom: 1.5rem;
}
.quiz-bar { flex: 1; height: 2px; background: var(--rule); position: relative; }
.quiz-bar span { position: absolute; inset: 0 auto 0 0; width: 10%; background: var(--fjord); transition: width 0.25s ease; }
.quiz fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.quiz legend { padding: 0; margin-bottom: 1.5rem; }
.quiz legend .label { display: block; margin-bottom: 0.75rem; }
.quiz-q { display: block; font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 400; line-height: 1.15; letter-spacing: -0.02em; }
.js .quiz-list > li { display: none; }
.js .quiz-list > li.is-current { display: block; }
.quiz-list > li + li { margin-top: 2.5rem; }
.js .quiz-list > li + li { margin-top: 0; }

.options { display: grid; gap: 0.6rem; }
.option {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  min-height: 3.5rem;
  padding: 0.75rem 1.1rem;
  border: 1px solid var(--rule);
  background: var(--white);
  font-size: 1.0625rem;
  cursor: pointer;
  transition: border-color 0.15s ease;
}
.option:hover { border-color: var(--ink); }
.option input {
  appearance: none;
  -webkit-appearance: none;
  flex: none;
  width: 1.15rem;
  height: 1.15rem;
  margin: 0;
  border: 1px solid var(--ink);
  border-radius: 50%;
  display: grid;
  place-content: center;
}
.option input::before { content: ""; width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--fjord); transform: scale(0); transition: transform 0.12s ease; }
.option input:checked::before { transform: scale(1); }
.option:has(input:checked) { border-color: var(--fjord); }
.option input:focus-visible { outline: 2px solid var(--fjord); outline-offset: 3px; }

.quiz-nav { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.quiz-nav [hidden] { display: none; }

.quiz-result { max-width: 46rem; border-top: 2px solid var(--fjord); padding-top: 2rem; }
.quiz-result:focus { outline: none; }
.score { display: flex; align-items: baseline; gap: 0.75rem; font-family: var(--mono); color: var(--muted); margin-bottom: 1.25rem; }
.score strong { font-family: var(--sans); font-size: clamp(3.5rem, 8vw, 5.5rem); font-weight: 400; line-height: 0.9; letter-spacing: -0.05em; color: var(--ink); }
.quiz-result h3 { font-size: clamp(1.5rem, 3.2vw, 2.125rem); font-weight: 400; letter-spacing: -0.02em; margin-bottom: 0.75rem; }
.quiz-result p { color: var(--muted); max-width: 36rem; }
.quiz-result .actions { margin-top: 1.75rem; }

.notice { border-left: 2px solid var(--fjord); padding: 0.75rem 1rem; background: var(--white); }
.form-message { margin-top: 1rem; font-size: 1rem; }
.form-message.is-error { color: #a33a2a; }

/* Contact */
.contact .lead { color: var(--on-dark-muted); margin-bottom: 2.5rem; }
.contact-email {
  font-size: clamp(1.75rem, 6vw, 4.5rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.035em;
  overflow-wrap: anywhere;
  margin-bottom: 2rem;
}
.contact-email a { text-decoration: none; border-bottom: 1px solid var(--fjord); }
.contact-email a:hover { color: var(--frost); border-color: var(--frost); }
.contact-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; }
.copy-status { font-family: var(--mono); font-size: 0.875rem; color: var(--frost); }
html:not(.js) .copy-btn { display: none; }

/* ---------- Footer ---------- */

.site-footer { padding-block: 3rem; border-top: 1px solid var(--rule); }
.footer-inner { display: grid; gap: 2rem; }
.footer-brand { display: grid; gap: 0.75rem; }
.footer-meta { display: grid; gap: 0.5rem; }
.footer-links { display: flex; gap: 1.5rem; margin-bottom: 0.5rem; font-size: 0.9375rem; }

/* ---------- Legal pages ---------- */

.legal { padding-block: 3.5rem 5rem; }
.wrap-narrow { max-width: 46rem; }
.legal h1 { font-size: clamp(2.25rem, 6vw, 3.75rem); line-height: 1.02; letter-spacing: -0.035em; margin-bottom: 2rem; }
.legal h2 { font-size: 1.25rem; font-weight: 500; margin: 2.25rem 0 0.75rem; letter-spacing: -0.01em; }
.legal p { margin-bottom: 0.9rem; color: var(--muted); }
.legal a { color: var(--ink); }
.provider {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.25rem 1.5rem;
  margin: 1rem 0 1.25rem;
  padding: 1rem 1.25rem;
  background: var(--ash);
}
.provider dt { font-family: var(--mono); font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); margin-top: 0.5rem; }
.provider dd { margin: 0; }

.placeholder { color: #8a4b14; }

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

@media (max-width: 39.99rem) {
  .back-link { display: none; }
}

/* ---------- Larger screens ---------- */

@media (min-width: 40rem) {
  :root { --gutter: 2rem; --section-y: 7rem; }
  .header-actions .btn-small { display: inline-flex; }
  .index li { grid-template-columns: 1.1fr 1.6fr 0.9fr; gap: 2rem; align-items: baseline; }
  .index .fee { text-align: right; }
  .stats { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
  .cases { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
  .provider { grid-template-columns: max-content 1fr; }
  .provider dt { margin-top: 0; }
  .footer-inner { grid-template-columns: 1fr 1fr; align-items: end; }
  .footer-meta { justify-items: end; text-align: right; }
}

@media (min-width: 60rem) {
  :root { --gutter: 3rem; --section-y: 9rem; }
  .nav-desktop { display: block; }
  .nav-mobile { display: none; }
  .hero { padding-block: 5.5rem 3rem; }
  .hero-row { grid-template-columns: 1fr auto; gap: 3rem; }
  .lens-diagram--wide { display: block; }
  .lens-diagram--compact { display: none; }
  .statements { grid-template-columns: 1fr 1fr; column-gap: 4rem; }
  .quiz-wrap { grid-template-columns: 1fr 1.4fr; gap: 5rem; align-items: start; }
  .quiz-head { position: sticky; top: 7rem; }
  .name-band { padding-block: 2rem; }
  .name-band .wrap { padding-block: 6rem; display: grid; grid-template-columns: 1fr 2.2fr; gap: 3rem; align-items: baseline; }
  .name-band .name-lead { margin: 0; }
}
