/* Tarumo marketing site. Every colour comes from tarumo-tokens.css (Pohjoinen puu); no colour
   literals here (src/test/site.test.ts checks). The site is always light (data-theme="light" on
   <html>, decided 2026-10-20); the app offers light and dark. Fonts are self-hosted (SIL OFL, see
   fonts/). The pages work without JavaScript: the contact form and the phone menu are native
   popovers and the submenus are <details>; assets/nav.js only adds hover, outside click and Escape
   to the menu, and assets/consent.js asks for analytics consent and draws its own banner (.consent). */

@font-face {
  font-family: 'Familjen Grotesk';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/familjen-grotesk-latin-400-normal.woff2?v=3d6a8c01c6') format('woff2');
}
@font-face {
  font-family: 'Familjen Grotesk';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/familjen-grotesk-latin-500-normal.woff2?v=490e3a95d2') format('woff2');
}
@font-face {
  font-family: 'Familjen Grotesk';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/familjen-grotesk-latin-600-normal.woff2?v=4becdcd6d1') format('woff2');
}
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/newsreader-latin-400-normal.woff2?v=e66067814f') format('woff2');
}
@font-face {
  font-family: 'Newsreader';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/newsreader-latin-400-italic.woff2?v=fa9b900403') format('woff2');
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  /* In-page links land below the sticky header (one row of 64 px at every width). */
  scroll-padding-top: 84px;
}
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

img,
svg {
  max-width: 100%;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
dl,
dd,
figure,
blockquote {
  margin: 0;
}
h1,
h2,
h3,
h4 {
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.15;
  text-wrap: balance;
}
p {
  text-wrap: pretty;
}
ul,
ol {
  padding: 0;
  list-style: none;
}

a {
  color: var(--spruce);
  text-underline-offset: 3px;
}
a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 3px solid var(--spruce);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 10;
  min-height: 44px;
  padding: 10px 16px;
  background: var(--spruce);
  color: var(--onspruce);
  font-weight: 600;
  border-radius: 12px;
  text-decoration: none;
}
.skip:focus {
  top: 12px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.wrap {
  width: min(100% - 32px, 1120px);
  margin-inline: auto;
}

/* ---------- header and menu ---------- */
/* The same header on every page (stamped by `pnpm site:sync` from scripts/site-layout.mjs). Sticky,
   one row. Wide screens (1000 px and up): the menu in the row, submenus as dropdowns. Narrower: a
   "Valikko" button opens the menu as a full-height panel below the header (a native popover; its
   submenus are accordions). The submenus are <details>, so all of it works without JavaScript;
   assets/nav.js adds hover, outside click and Escape. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.bar {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: var(--spruce);
  font-size: 1.625rem;
  font-weight: 600;
  letter-spacing: -0.04em;
  text-decoration: none;
}
.brand svg {
  width: 34px;
  height: 34px;
  flex: none;
}
.mark-line {
  fill: none;
  stroke: var(--spruce);
  stroke-width: 6;
  stroke-linejoin: round;
}
.mark-core {
  fill: var(--amber);
}

.bar-end {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
.nav-cta {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: 12px;
  background: var(--spruce);
  color: var(--onspruce);
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
}
.nav-cta:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
/* "Ota yhteyttä" opens the page's contact popover where there is one (the home pages), and is a link
   to the contact page everywhere else and in browsers without the popover API. */
.cta-popover {
  display: none;
}
body:has(.contact-dialog[popover]) .cta-popover {
  display: inline-flex;
}
body:has(.contact-dialog[popover]) .cta-link {
  display: none;
}

.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 44px;
  min-height: 44px;
  padding: 0 12px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
}
.menu-toggle:hover {
  background: var(--chip);
}
.menu-toggle svg {
  width: 22px;
  height: 22px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}
.menu-toggle .icon-close {
  display: none;
}
.site-header:has(.nav:popover-open) .icon-menu {
  display: none;
}
.site-header:has(.nav:popover-open) .icon-close {
  display: block;
}
@media (max-width: 419.98px) {
  .menu-toggle {
    padding: 0 10px;
  }
  .menu-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}

/* Menu items: links and submenu toggles (summary) look the same. */
.menu a,
.menu summary {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 12px;
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
}
.menu a:hover,
.menu summary:hover {
  background: var(--chip);
}
.menu summary {
  gap: 8px;
  list-style: none;
}
.menu summary::-webkit-details-marker {
  display: none;
}
.menu summary::after {
  content: '';
  width: 7px;
  height: 7px;
  flex: none;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}
.menu details[open] > summary::after {
  transform: translateY(2px) rotate(-135deg);
}
/* The current page (aria-current="page"), its submenu (aria-current="true") and, on the home page,
   the section in view (aria-current="location", set by nav.js): spruce and underlined, not colour
   alone. */
.menu [aria-current] {
  color: var(--spruce);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid var(--line);
  border-radius: 12px;
}
.lang-switch > * {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 41px;
  padding: 0 8px;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.lang-now {
  background: var(--chip);
  color: var(--ink);
}
.lang-switch a {
  color: var(--spruce);
  text-decoration: none;
}
.lang-switch a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (min-width: 1000px) {
  .menu-toggle {
    display: none;
  }
  /* The menu is a popover only on narrow screens: here it is an ordinary part of the row. */
  .nav {
    position: static;
    inset: auto;
    display: flex;
    flex: 1;
    align-items: center;
    gap: 8px;
    width: auto;
    height: auto;
    margin: 0;
    padding: 0;
    overflow: visible;
    border: 0;
    background: transparent;
    color: inherit;
  }
  .menu {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-inline: auto;
  }
  .menu > li {
    position: relative;
  }
  .bar-end {
    margin-left: 0;
  }
  .submenu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    z-index: 11;
    min-width: 248px;
    padding: 8px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: 0 12px 32px color-mix(in srgb, var(--ink) 14%, transparent);
  }
  /* Bridges the gap to the toggle, so the pointer can move down without leaving the item. */
  .submenu::before {
    content: '';
    position: absolute;
    right: 0;
    bottom: 100%;
    left: 0;
    height: 10px;
  }
  .submenu a {
    white-space: nowrap;
    border-radius: 10px;
  }
  /* Without nav.js (and where ::details-content exists), hover and keyboard focus open the
     submenu in CSS alone; nav.js takes over when it runs, so Escape can close it. */
  html:not(.nav-js) .menu > li:is(:hover, :focus-within) > details::details-content {
    content-visibility: visible;
    display: block;
  }
}

/* Narrow screens: the menu panel (popover), full height below the header. */
@media (max-width: 999.98px) {
  .nav:popover-open {
    position: fixed;
    inset: 65px 0 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: auto;
    height: auto;
    max-width: none;
    max-height: none;
    margin: 0;
    padding: 12px 16px 40px;
    overflow-y: auto;
    overscroll-behavior: contain;
    border: 0;
    border-top: 1px solid var(--line);
    background: var(--bg);
    color: var(--ink);
  }
  .menu {
    display: grid;
    gap: 2px;
  }
  .menu a,
  .menu summary {
    min-height: 52px;
    font-size: 1.125rem;
  }
  .menu summary {
    justify-content: space-between;
  }
  .submenu {
    margin: 0 0 8px 12px;
    padding-left: 8px;
    border-left: 2px solid var(--line);
  }
  .submenu a {
    font-size: 1.0625rem;
  }
  .nav .lang-switch {
    align-self: flex-start;
  }
}
/* The page does not scroll behind the open menu panel. */
html:has(.nav:popover-open),
body:has(.nav:popover-open) {
  overflow: hidden;
}

/* ---------- shared pieces ---------- */
section {
  padding-block: clamp(56px, 8vw, 104px);
}
.eyebrow {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
h2 {
  max-width: 24ch;
  font-size: clamp(1.75rem, 1.2rem + 2.4vw, 2.75rem);
}
.lead {
  max-width: 62ch;
  margin-top: 18px;
  color: var(--muted);
  font-size: 1.1875rem;
}
.section-head {
  margin-bottom: clamp(28px, 4vw, 48px);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 26px;
  border: 1.5px solid var(--spruce);
  border-radius: 14px;
  font-size: 1.0625rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
}
.btn-primary {
  background: var(--spruce);
  color: var(--onspruce);
}
.btn-primary:hover {
  text-decoration: underline;
  text-decoration-thickness: 2px;
}
.btn-secondary {
  background: transparent;
  color: var(--spruce);
}
.btn-secondary:hover {
  background: var(--chip);
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.card {
  padding: clamp(20px, 3vw, 28px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
}
.card h3 {
  font-size: 1.1875rem;
}
.card p {
  margin-top: 8px;
  color: var(--muted);
}

.note {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.875rem;
}

/* Status chip with a symbol, so "Julkaistu" never relies on colour alone. */
.state {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ok);
  font-size: 0.875rem;
  font-weight: 600;
}
.state::before {
  content: '';
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--ok);
  flex: none;
}

/* Expert's own words: Newsreader, as in the app's knowledge cards. */
.quote {
  font-family: var(--font-quote);
  font-size: 1.1875rem;
  line-height: 1.5;
}
.source {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.875rem;
}

/* ---------- year ring ---------- */
.ring {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}
.ring-disk {
  fill: var(--chip);
}
.ring-kept {
  fill: none;
  stroke: var(--spruce);
  stroke-width: 2.4;
}
.ring-open {
  fill: none;
  stroke: var(--amber);
  stroke-width: 1.6;
  stroke-dasharray: 3.5 4;
}
.ring-core {
  fill: var(--amber);
}

/* ---------- hero ---------- */
.hero {
  padding-top: clamp(24px, 5vw, 64px);
}
.hero-grid {
  display: grid;
  gap: clamp(36px, 6vw, 72px);
  align-items: center;
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  padding: 6px 14px;
  background: var(--chip);
  border-radius: 999px;
  color: var(--ink);
  font-size: 0.875rem;
  font-weight: 600;
}
.status::before {
  content: '';
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: 50%;
  background: var(--amber);
}
.hero h1 {
  font-size: clamp(2.125rem, 1.4rem + 3.6vw, 3.75rem);
  letter-spacing: -0.03em;
  line-height: 1.08;
}
.hero .lead {
  color: var(--ink);
}
.hero-visual {
  display: grid;
  justify-items: center;
}
.hero-ring {
  width: min(100%, 300px);
}
.hero-card {
  position: relative;
  width: 100%;
  max-width: 460px;
  margin-top: -64px;
}
.bubble-q {
  width: fit-content;
  max-width: 88%;
  margin: 0 0 12px auto;
  padding: 12px 16px;
  background: var(--spruce);
  color: var(--onspruce);
  border-radius: 20px 6px 20px 20px;
  font-weight: 500;
}
.answer {
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
}
.answer .quote {
  margin-top: 10px;
}
.answer .source {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.caption {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.8125rem;
  text-align: center;
}
@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

/* ---------- Tarumo in brief (quotable facts right below the hero) ---------- */
.hero {
  padding-bottom: clamp(32px, 5vw, 56px);
}
.facts {
  padding-block: 0;
}
.facts h2 {
  max-width: none;
  font-size: 1.1875rem;
}

/* ---------- problem ---------- */
.examples {
  display: grid;
  gap: 16px;
}
.examples figure {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.examples figcaption {
  margin-top: auto;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 600;
}
.examples .quote {
  font-style: italic;
}
.fails {
  margin-top: clamp(36px, 5vw, 56px);
}
.fails h3 {
  font-size: 1.1875rem;
}
.fails dl,
.facts dl,
.company-facts {
  display: grid;
  margin-top: 16px;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
}
.fails dl > div,
.facts dl > div,
.company-facts > div {
  padding: 16px 20px;
  background: var(--surface);
}
.fails dt,
.facts dt,
.company-facts dt {
  font-weight: 600;
}
.fails dd,
.facts dd,
.company-facts dd {
  color: var(--muted);
}
@media (min-width: 760px) {
  .examples {
    grid-template-columns: repeat(3, 1fr);
  }
  .fails dl,
  .facts dl,
  .company-facts {
    grid-template-columns: 1fr 1fr;
  }
}
@media (min-width: 1040px) {
  .facts dl {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ---------- how it works ---------- */
.steps {
  display: grid;
  gap: 16px;
  counter-reset: step;
}
.steps li {
  counter-increment: step;
}
.steps h3::before {
  content: counter(step);
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-right: 10px;
  background: var(--chip);
  border-radius: 50%;
  color: var(--spruce);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0;
}
@media (min-width: 700px) {
  .steps {
    grid-template-columns: 1fr 1fr;
  }
}
@media (min-width: 1040px) {
  .steps {
    grid-template-columns: repeat(4, 1fr);
  }
}

.radar {
  display: grid;
  gap: 32px;
  align-items: center;
  margin-top: clamp(36px, 5vw, 56px);
  padding: clamp(22px, 4vw, 40px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 28px;
}
.radar h3 {
  font-size: clamp(1.4rem, 1.1rem + 1.2vw, 1.875rem);
}
.radar ul {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}
.radar li {
  position: relative;
  padding-left: 22px;
}
.radar li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 0.62em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber);
}
.radar-visual {
  display: grid;
  justify-items: center;
  gap: 18px;
}
.radar-ring {
  width: min(100%, 220px);
}
.legend {
  display: grid;
  gap: 8px;
  width: 100%;
  max-width: 340px;
  font-size: 0.875rem;
}
.legend span {
  display: flex;
  align-items: center;
  gap: 10px;
}
.legend svg {
  width: 36px;
  height: 8px;
  flex: none;
}
.key-solid {
  stroke: var(--spruce);
  stroke-width: 2.4;
}
.key-dashed {
  stroke: var(--amber);
  stroke-width: 1.6;
  stroke-dasharray: 3.5 4;
}
.risk-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  width: 100%;
  max-width: 340px;
  padding: 12px 14px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 16px;
  font-size: 0.875rem;
}
.risk-row b {
  font-weight: 600;
}
.risk-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  background: color-mix(in srgb, var(--crit) 12%, transparent);
  border-radius: 999px;
  color: var(--crit);
  font-size: 0.8125rem;
  font-weight: 600;
  white-space: nowrap;
}
@media (min-width: 860px) {
  .radar {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 56px;
  }
}

/* ---------- knowledge no AI knows ---------- */
.band {
  background: var(--spruce);
  color: var(--onspruce);
}
.band .eyebrow {
  color: var(--onspruce);
  opacity: 0.85;
}
.band h2 {
  max-width: 26ch;
}
.band .lead {
  color: var(--onspruce);
}
.compare {
  display: grid;
  gap: 16px;
  margin-top: clamp(28px, 4vw, 44px);
}
.compare .panel {
  padding: clamp(20px, 3vw, 28px);
  background: var(--surface);
  color: var(--ink);
  border-radius: 24px;
}
.compare .panel h3 {
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.compare .panel h3.good {
  color: var(--ok);
}
.compare .q {
  margin-top: 14px;
  font-weight: 600;
}
.compare .quote {
  margin-top: 10px;
}
.compare .panel p.guess {
  margin-top: 10px;
  color: var(--muted);
}
.compare .panel.guessing {
  border: 2px dashed var(--line);
}
.after {
  max-width: 62ch;
  margin-top: 28px;
  font-size: 1.1875rem;
}
.band .caption {
  color: var(--onspruce);
  text-align: left;
}
@media (min-width: 800px) {
  .compare {
    grid-template-columns: 1fr 1fr;
  }
}

/* ---------- trust ---------- */
.trust {
  display: grid;
  gap: 16px;
}
.trust .card h3 {
  font-size: 1.0625rem;
}
@media (min-width: 640px) {
  .trust {
    grid-template-columns: 1fr 1fr;
  }
}
@media (min-width: 1040px) {
  .trust {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ---------- pricing ---------- */
/* Two customer segments, each in its own panel; one-off fees (Kartoitus, Siirto) are amber and carry
   a text badge, monthly plans stay spruce, so the difference never rests on colour alone. The launch
   offers (.offers) are a third panel with a spruce border: a figure, a name and one line each. */
.tier {
  margin-top: clamp(28px, 4vw, 44px);
  padding: clamp(18px, 3vw, 32px);
  border-radius: 32px;
}
.tier-large {
  background: var(--chip);
}
.tier-small {
  background: var(--surface);
  border: 2px solid var(--lichen);
}
.tier-small .card {
  background: var(--bg);
}
.tier-head {
  display: grid;
  gap: 6px;
  margin-bottom: 20px;
  padding-left: 14px;
  border-left: 4px solid var(--spruce);
}
.tier-small .tier-head {
  border-left-color: var(--lichen);
}
.tier-title {
  color: var(--ink);
  font-size: clamp(1.25rem, 2.2vw, 1.5rem);
  font-weight: 600;
  letter-spacing: -0.01em;
}
.tier-lead {
  max-width: 62ch;
  color: var(--muted);
}
.plan.once {
  border: 2px solid var(--amber);
}
.plan.once .price {
  color: var(--amber);
}
.plan.once li::before {
  background: var(--amber);
}
.once-badge {
  align-self: flex-start;
  margin: 0 0 6px;
  padding: 2px 10px;
  border: 1px solid var(--amber);
  border-radius: 999px;
  color: var(--amber);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.card .once-badge {
  margin-top: 0;
  color: var(--amber);
}
.plans {
  display: grid;
  gap: 16px;
}
.plan {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.plan h4 {
  font-size: 1.1875rem;
}
.card .price {
  margin-top: 8px;
  color: var(--ink);
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.price small {
  color: var(--muted);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0;
}
.plan ul {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 0.9688rem;
}
.plan li {
  position: relative;
  padding-left: 20px;
}
.plan li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 0.6em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--spruce);
}
.tag {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 9px;
  background: var(--chip);
  border-radius: 999px;
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}
.offers {
  margin-top: clamp(28px, 4vw, 44px);
  padding: clamp(18px, 3vw, 32px);
  border: 2px solid var(--spruce);
  border-radius: 32px;
  background: var(--surface);
}
.offer-list {
  display: grid;
  gap: 12px;
}
.offer {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 18px;
  border-radius: 20px;
  background: var(--bg);
  color: var(--muted);
  font-size: 0.9688rem;
}
.offer b {
  color: var(--ink);
  font-size: 1.0625rem;
  font-weight: 600;
}
.offer-figure {
  color: var(--spruce);
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.offer-terms {
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.9375rem;
}
@media (min-width: 640px) {
  .offer-list {
    grid-template-columns: 1fr 1fr;
  }
}
@media (min-width: 1040px) {
  .offer-list {
    grid-template-columns: repeat(4, 1fr);
  }
}
.price-notes {
  display: grid;
  gap: 8px;
  margin-top: 28px;
  color: var(--muted);
  font-size: 0.9375rem;
}
@media (min-width: 640px) {
  .plans {
    grid-template-columns: 1fr 1fr;
  }
}
@media (min-width: 1040px) {
  .plans.four {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ---------- FAQ (the same questions and answers as the FAQPage JSON-LD; site.test.ts) ---------- */
.faq {
  display: grid;
  column-gap: clamp(24px, 4vw, 56px);
}
.faq-item {
  padding-block: 20px;
  border-top: 1px solid var(--line);
}
.faq-item h3 {
  font-size: 1.1875rem;
}
.faq-item p {
  max-width: 62ch;
  margin-top: 8px;
  color: var(--muted);
}
@media (min-width: 900px) {
  .faq {
    grid-template-columns: 1fr 1fr;
  }
}

/* ---------- pilot ---------- */
.pilot-grid {
  display: grid;
  gap: 32px;
}
.timeline {
  display: grid;
  gap: 12px;
}
.timeline li {
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
}
.timeline b {
  display: block;
  font-weight: 600;
}
.timeline span {
  color: var(--muted);
}
.contact {
  margin-top: 28px;
  padding: clamp(22px, 4vw, 32px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
}
.contact p {
  max-width: 52ch;
}
.contact .btn {
  margin-top: 18px;
  overflow-wrap: anywhere;
}
@media (min-width: 900px) {
  .pilot-grid {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 56px;
    align-items: start;
  }
}

/* ---------- footer ---------- */
/* The same footer on every page (scripts/site-layout.mjs): Tarumo Oy's details and three columns. */
.site-footer {
  padding-block: 48px 56px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9375rem;
}
.footer-grid {
  display: grid;
  gap: 32px;
}
.site-footer .brand {
  font-size: 1.375rem;
}
.footer-brand .note {
  max-width: 44ch;
}
.footer-nav {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 24px;
}
.footer-title {
  max-width: none;
  color: var(--muted);
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.footer-col ul {
  margin-top: 6px;
}
.footer-col a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink);
}
.footer-col a[aria-current] {
  font-weight: 600;
}
@media (min-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1.6fr;
    align-items: start;
  }
}

/* ---------- 404 ---------- */
.lost {
  min-height: 60vh;
  display: grid;
  align-content: center;
  gap: 18px;
}
.lost h1,
.lost h2 {
  font-size: clamp(2rem, 1.4rem + 3vw, 3.25rem);
}
.lost > div + div {
  margin-top: 24px;
}
.lost p {
  margin-top: 12px;
  max-width: 52ch;
  color: var(--muted);
}
.lost-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 8px;
  margin-top: 16px;
}
.lost-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 4px;
}

/* ---------- contact form (a native popover; docs/architecture/marketing-site.md) ---------- */
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}
.contact .contact-actions .btn {
  margin-top: 0;
}
button.btn {
  font-family: inherit;
  cursor: pointer;
}
.contact-dialog {
  width: min(100% - 32px, 560px);
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: clamp(20px, 4vw, 32px);
  overflow: auto;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 24px;
}
.contact-dialog::backdrop {
  background: color-mix(in srgb, var(--ink) 45%, transparent);
}
.dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.dialog-head h3 {
  font-size: 1.5rem;
}
.dialog-close {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  margin: -8px -8px 0 0;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
}
.dialog-close:hover {
  background: var(--chip);
}
.dialog-intro {
  margin-top: 8px;
  color: var(--muted);
}
.contact-form {
  display: grid;
  gap: 16px;
  margin-top: 20px;
}
.field {
  display: grid;
  gap: 6px;
}
.field-label {
  font-weight: 600;
}
.optional,
.field-hint {
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 400;
}
.field input,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  background: var(--bg);
  color: var(--ink);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  font: inherit;
}
.field textarea {
  min-height: 140px;
  resize: vertical;
}
.field input:focus-visible,
.field textarea:focus-visible {
  border-color: var(--spruce);
}
.contact-form .btn {
  justify-self: start;
}
.form-privacy {
  color: var(--muted);
  font-size: 0.8125rem;
}
/* The honeypot: out of sight and out of the tab order (tabindex -1, aria-hidden). */
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
/* A browser without the popover API: no open buttons, the form is part of the page. */
@supports not selector(:popover-open) {
  [popovertarget] {
    display: none !important;
  }
  .site-header .cta-link {
    display: inline-flex !important;
  }
  .contact-dialog {
    width: auto;
    max-height: none;
    margin-top: 24px;
    padding: 0;
    border: 0;
  }
}

/* A browser without the popover API on a narrow screen: the menu is shown in the header as a list
   (the header then scrolls with the page). */
@supports not selector(:popover-open) {
  @media (max-width: 999.98px) {
    .site-header {
      position: static;
    }
    .bar {
      flex-wrap: wrap;
    }
    .nav {
      order: 3;
      flex: 1 0 100%;
      padding-bottom: 16px;
    }
  }
}

/* ---------- about and contact pages ---------- */
.page-hero {
  padding-block: clamp(40px, 7vw, 88px) clamp(16px, 3vw, 32px);
}
.page-hero h1 {
  max-width: 22ch;
  font-size: clamp(2.125rem, 1.4rem + 3.2vw, 3.5rem);
  letter-spacing: -0.03em;
  line-height: 1.08;
}
.story {
  display: grid;
  gap: 20px;
}
.story-text {
  display: grid;
  gap: 16px;
  max-width: 64ch;
  font-size: 1.125rem;
}
.name-grid {
  display: grid;
  gap: 28px;
  align-items: center;
  padding: clamp(22px, 4vw, 40px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 28px;
}
.mark-large {
  width: clamp(120px, 22vw, 200px);
  height: auto;
}
.mark-large .mark-line {
  stroke-width: 5;
}
.name-grid h3 {
  margin-top: 22px;
  font-size: 1.1875rem;
}
.name-grid p {
  max-width: 62ch;
  margin-top: 8px;
  color: var(--muted);
}
.principles {
  display: grid;
  gap: 16px;
}
.principles .card h3 {
  font-size: 1.0625rem;
}
.people {
  display: grid;
  gap: 16px;
  align-items: start;
}
.person {
  display: grid;
  gap: 20px;
  align-content: start;
  padding: clamp(22px, 4vw, 32px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
}
/* Both photos: the same round crop and size (assets/people/, 240 px for about 1.4x). */
.person img,
.people-mini img {
  display: block;
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--line);
}
.person img {
  width: 176px;
  height: 176px;
}
.person h3 {
  font-size: 1.375rem;
}
.person-role {
  margin-top: 4px;
  color: var(--muted);
  font-weight: 600;
}
.person-text p:not(.person-role) {
  max-width: 62ch;
  margin-top: 12px;
}
.company {
  display: grid;
  gap: 28px;
  align-items: start;
}
.cta-card h2 {
  font-size: clamp(1.375rem, 1.1rem + 1.2vw, 1.75rem);
}
.cta-card .actions {
  margin-top: 20px;
}
.contact-layout {
  display: grid;
  gap: 32px;
  align-items: start;
  padding-bottom: clamp(56px, 8vw, 104px);
}
.contact-card h2,
.contact-block h2 {
  max-width: none;
  font-size: 1.375rem;
}
.contact-card .contact-form {
  margin-top: 16px;
}
.contact-aside {
  display: grid;
  gap: 28px;
}
.contact-block p,
.contact-block address,
.contact-block ul {
  margin-top: 8px;
}
.contact-block address {
  font-style: normal;
}
.contact-email {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 1.1875rem;
  font-weight: 600;
}
.contact-aside .note a,
.company-facts a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.people-mini {
  display: grid;
  gap: 14px;
}
.people-mini li {
  display: flex;
  align-items: center;
  gap: 14px;
}
.people-mini img {
  width: 72px;
  height: 72px;
  flex: none;
}
.people-mini b {
  display: block;
  font-weight: 600;
}
.people-mini span {
  color: var(--muted);
}
.people-mini b {
  color: var(--ink);
}
@media (min-width: 700px) {
  .principles,
  .people {
    grid-template-columns: 1fr 1fr;
  }
  .name-grid {
    grid-template-columns: auto 1fr;
    gap: 48px;
  }
}
@media (min-width: 900px) {
  .story {
    grid-template-columns: 0.8fr 1.2fr;
    gap: 48px;
  }
  .company {
    grid-template-columns: 1.2fr 0.8fr;
    gap: 48px;
  }
  .contact-layout {
    grid-template-columns: 1.3fr 0.7fr;
    gap: 48px;
  }
}
@media (min-width: 1040px) {
  .principles {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ---------- static pages: thanks, form error, privacy notice ---------- */
.page {
  padding-block: clamp(40px, 7vw, 88px);
}
.prose {
  max-width: 70ch;
}
.prose h1 {
  font-size: clamp(2rem, 1.4rem + 3vw, 3rem);
}
.prose h2 {
  max-width: none;
  margin-top: 40px;
  font-size: clamp(1.375rem, 1.1rem + 1.2vw, 1.75rem);
}
.prose h3 {
  margin-top: 24px;
  font-size: 1.125rem;
}
.prose p,
.prose ul,
.prose dl,
.prose table {
  margin-top: 12px;
}
.prose ul {
  padding-left: 1.25em;
  list-style: disc;
}
.prose li + li {
  margin-top: 6px;
}
.prose .updated {
  margin-top: 8px;
  color: var(--muted);
}
.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}
.prose th,
.prose td {
  padding: 10px 12px 10px 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.table-wrap {
  overflow-x: auto;
}
.prose .actions {
  margin-top: 28px;
}

/* ---------- analytics consent banner (drawn by assets/consent.js) ---------- */
.consent {
  position: fixed;
  right: 16px;
  bottom: 16px;
  left: 16px;
  z-index: 20;
  max-width: 760px;
  margin-inline: auto;
  padding: 18px 20px;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 8px 28px color-mix(in srgb, var(--ink) 18%, transparent);
}
.consent h2 {
  max-width: none;
  font-size: 1.125rem;
}
.consent p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.9375rem;
}
.consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}
/* Accept and reject are equally prominent: the same size, weight and border. */
.consent-actions .btn {
  flex: 1 1 200px;
  min-height: 48px;
  padding: 0 18px;
  font-size: 1rem;
}

@media print {
  .site-header,
  .actions,
  .skip,
  .consent {
    display: none;
  }
}

/* Self-service order buttons in the Pieni and Siirto cards (assets/order.js shows them when
   assets/order-config.json is enabled; docs/architecture/self-service.md). */
.plan-order {
  align-self: flex-start;
  margin-top: 16px;
}
.plan-order[hidden] {
  display: none;
}
