/* ==========================================================================
   Beweldo Oy — beweldo.fi
   Design system & site styles
   --------------------------------------------------------------------------
   Sisällys
   01  Muuttujat (design tokens)
   02  Reset & perusasetukset
   03  Typografia
   04  Layout: kontit, gridit, osiot
   05  Header & navigaatio
   06  Painikkeet & linkit
   07  Hero
   08  Kortit, listat, tilastot
   09  Taulukot (tekniset tiedot)
   10  Vaiheet (asennus)
   11  Lomake
   12  Footer
   13  Apuluokat
   14  Liikkeet & saavutettavuus
   ========================================================================== */

/* ---------- 01  Muuttujat ------------------------------------------------ */
:root {
  /* Väripaletti — teollinen: grafiitti + kupari (hitsausrenkaan kuparikäämi) */
  --ink:        #0b1317;
  --ink-2:      #111e25;
  --ink-3:      #1b2c35;
  --steel-700:  #3c4f59;
  --steel-500:  #5d707a;
  --steel-300:  #9dadb4;
  --steel-400:  #8a9ca4;
  --steel-100:  #d9e1e4;

  --green:        #00c850;
  --green-light:  #3ce07d;
  --green-dark:   #00813a;
  --green-wash:   #e9f9ef;

  --paper:      #ffffff;
  --paper-2:    #f3f6f7;
  --paper-3:    #e8eef0;
  --line:       #dbe3e6;
  --line-dark:  rgba(255, 255, 255, .14);

  --ok:         #2f7d5b;

  /* Typografia */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas,
               "Liberation Mono", monospace;

  /* Rytmi */
  --wrap:       1180px;
  --wrap-narrow: 780px;
  --gutter:     clamp(1.25rem, 4vw, 2.5rem);
  --section-y:  clamp(3.5rem, 8vw, 7rem);

  --radius:     4px;
  --radius-lg:  8px;

  --shadow-sm:  0 1px 2px rgba(11, 19, 23, .06),
                0 2px 8px rgba(11, 19, 23, .05);
  --shadow-md:  0 2px 4px rgba(11, 19, 23, .05),
                0 12px 32px rgba(11, 19, 23, .09);

  --t-fast: 140ms cubic-bezier(.4, 0, .2, 1);
  --t-base: 260ms cubic-bezier(.4, 0, .2, 1);
}

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

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }

/* ---------- 03  Typografia ----------------------------------------------- */
h1, h2, h3, h4 {
  margin: 0 0 .6em;
  color: var(--ink);
  font-weight: 650;
  line-height: 1.15;
  letter-spacing: -.018em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.1rem, 5.2vw, 3.5rem); letter-spacing: -.028em; }
h2 { font-size: clamp(1.65rem, 3.4vw, 2.35rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.35rem); letter-spacing: -.01em; }
h4 { font-size: 1.02rem; letter-spacing: 0; }

p  { margin: 0 0 1.15em; }
p:last-child, ul:last-child, ol:last-child { margin-bottom: 0; }

.lead {
  font-size: clamp(1.08rem, 1.9vw, 1.28rem);
  line-height: 1.55;
  color: var(--steel-700);
  max-width: 62ch;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 1rem;
  font-family: var(--font-mono);
  font-size: .74rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--green-dark);
}

.section-head { max-width: 68ch; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head p { color: var(--steel-700); }

/* Tummalla pohjalla */
.dark { background: var(--ink); color: var(--steel-100); }
.dark h1, .dark h2, .dark h3, .dark h4 { color: #fff; }
.dark p, .dark li { color: var(--steel-300); }
.dark .lead { color: var(--steel-100); }
.dark .eyebrow, .hero .eyebrow, .page-head .eyebrow { color: var(--green-light); }
.dark hr { border-top-color: var(--line-dark); }

/* ---------- 04  Layout --------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap--narrow { max-width: var(--wrap-narrow); }

.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.section--alt { background: var(--paper-2); }
.section + .section--alt, .section--alt + .section { border-top: 1px solid var(--line); }
.dark + .dark { border-top: 1px solid var(--line-dark); }

.grid { display: grid; gap: clamp(1.25rem, 3vw, 2rem); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }

/* Teksti + kuva rinnakkain */
.split {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 860px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--wide-text { grid-template-columns: 1.15fr .85fr; }
  .split--wide-media { grid-template-columns: .85fr 1.15fr; }
  .split__media--first { order: -1; }
}

.figure {
  margin: 0;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1rem, 3vw, 2rem);
}
.dark .figure { background: var(--ink-2); border-color: var(--line-dark); }
.dark .figure figcaption { color: var(--steel-300); }
.figure figcaption {
  margin-top: 1rem;
  font-size: .84rem;
  color: var(--steel-500);
  line-height: 1.5;
}

/* ---------- 05  Header & navigaatio -------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(1.6) blur(10px);
  -webkit-backdrop-filter: saturate(1.6) blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 72px;
}

.brand { display: inline-flex; align-items: center; text-decoration: none; flex: 0 0 auto; }
.brand svg, .brand img { height: 30px; width: auto; }

.nav { margin-left: auto; }
.nav__list {
  display: flex;
  align-items: center;
  gap: clamp(.4rem, 1.6vw, 1.35rem);
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav__link {
  display: block;
  padding: .5rem .25rem;
  font-size: .93rem;
  font-weight: 500;
  color: var(--steel-700);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color var(--t-fast), border-color var(--t-fast);
}
.nav__link:hover { color: var(--ink); }
.nav__link[aria-current="page"] { color: var(--ink); border-bottom-color: var(--green); }

.nav__actions { display: flex; align-items: center; gap: .75rem; margin-left: .5rem; }

/* Kielivalitsin */
.lang {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: var(--paper);
}
.lang a {
  padding: .42rem .7rem;
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--steel-500);
  text-decoration: none;
  transition: background var(--t-fast), color var(--t-fast);
}
.lang a:hover { color: var(--ink); background: var(--paper-2); }
.lang a[aria-current="true"] { background: var(--ink); color: #fff; }

/* Mobiilinappi */
.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px; height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  cursor: pointer;
  color: var(--ink);
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  position: absolute;
  left: 50%; margin-left: -9px;
  display: block;
  width: 18px; height: 2px;
  background: currentColor;
  transition: transform var(--t-base), opacity var(--t-fast);
}
.nav-toggle span { position: relative; margin: 0 auto; left: auto; }
.nav-toggle span::before { content: ""; margin-left: 0; top: -6px; left: 0; }
.nav-toggle span::after  { content: ""; margin-left: 0; top:  6px; left: 0; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after  { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    margin: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    display: none;
  }
  .nav[data-open="true"] { display: block; }
  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: .5rem var(--gutter) 1.25rem;
  }
  .nav__link {
    padding: .85rem 0;
    font-size: 1rem;
    border-bottom: 1px solid var(--line);
  }
  .nav__link[aria-current="page"] { border-bottom-color: var(--green); }
  .nav__actions { margin: 1rem 0 0; }
}

/* ---------- 06  Painikkeet ----------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .8rem 1.5rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font: inherit;
  font-size: .95rem;
  font-weight: 550;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast),
              border-color var(--t-fast), transform var(--t-fast);
}
.btn:active { transform: translateY(1px); }

.btn--primary { background: var(--green); color: #06130b; }
.btn--primary:hover { background: #00b449; }

.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: var(--ink-3); }

.btn--ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn--ghost:hover { border-color: var(--steel-500); background: var(--paper-2); }
.dark .btn--ghost, .hero .btn--ghost, .page-head .btn--ghost, .cta-band .btn--ghost { border-color: var(--line-dark); color: #fff; }
.dark .btn--ghost:hover, .hero .btn--ghost:hover, .page-head .btn--ghost:hover, .cta-band .btn--ghost:hover { background: rgba(255, 255, 255, .08); border-color: var(--steel-500); }

.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.85rem; }

/* Nuolilinkki */
.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-weight: 550;
  font-size: .95rem;
  color: var(--green-dark);
  text-decoration: none;
}
.arrow-link::after {
  content: "→";
  transition: transform var(--t-fast);
}
.arrow-link:hover::after { transform: translateX(3px); }
.dark .arrow-link { color: var(--green-light); }

a { color: var(--green-dark); }
.dark a { color: var(--green-light); }

/* ---------- 07  Hero ----------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: var(--steel-100);
}
.hero::before {
  /* hienovarainen kuparihehku */
  content: "";
  position: absolute;
  inset: -20% -10% auto auto;
  width: 62vw; height: 62vw;
  max-width: 760px; max-height: 760px;
  background: radial-gradient(circle at 50% 50%,
              rgba(0, 200, 80, .20), rgba(0, 200, 80, 0) 62%);
  pointer-events: none;
}
.hero::after {
  /* tekninen ruudukko */
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, #000 10%, transparent 92%);
  -webkit-mask-image: linear-gradient(to bottom, #000 10%, transparent 92%);
  pointer-events: none;
}
.hero > .wrap { position: relative; z-index: 1; }

.hero__inner {
  display: grid;
  gap: clamp(2.25rem, 5vw, 4rem);
  align-items: center;
  padding-block: clamp(3.25rem, 9vw, 6.5rem);
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .hero__inner { grid-template-columns: 1.05fr .95fr; }
}
.hero h1 { color: #fff; }
.hero .lead { color: var(--steel-100); }

.hero__media { position: relative; }
.hero__media svg { width: 100%; height: auto; }

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem .5rem;
  margin-bottom: 1.5rem;
}

/* Pienet tunnisteet */
.tag {
  display: inline-block;
  padding: .28rem .62rem;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--steel-300);
}
.section .tag { border-color: var(--line); color: var(--steel-500); }

/* ---------- 08  Kortit, listat, tilastot --------------------------------- */
.card {
  display: flex;
  flex-direction: column;
  padding: clamp(1.35rem, 2.6vw, 1.85rem);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: border-color var(--t-fast), box-shadow var(--t-base), transform var(--t-base);
}
.card h3 { margin-bottom: .5rem; }
.card p { color: var(--steel-700); font-size: .96rem; }
.card--link:hover { border-color: var(--steel-300); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card__foot { margin-top: auto; padding-top: 1.15rem; }
.dark .card { background: var(--ink-2); border-color: var(--line-dark); }
.dark .card p { color: var(--steel-300); }
.section--alt .card { background: var(--paper); }

.card__icon {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  margin-bottom: 1.1rem;
  border-radius: var(--radius);
  background: var(--green-wash);
  color: var(--green-dark);
}
.card__icon svg { width: 22px; height: 22px; }
.dark .card__icon { background: rgba(0, 200, 80, .14); color: var(--green-light); }

/* Numeroitu hyötylista */
.checklist { margin: 0; padding: 0; list-style: none; }
.checklist li {
  position: relative;
  padding-left: 1.9rem;
  margin-bottom: .8rem;
  color: var(--steel-700);
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0; top: .52em;
  width: 11px; height: 11px;
  border: 2px solid var(--green);
  border-radius: 50%;
}
.dark .checklist li { color: var(--steel-300); }

/* Tilastorivi */
.stats {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.stats__item { background: var(--paper); padding: 1.5rem 1.35rem; }
.section--alt .stats__item { background: var(--paper); }
.dark .stats { background: var(--line-dark); border-color: var(--line-dark); }
.dark .stats__item { background: var(--ink-2); }
.stats__value {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 500;
  letter-spacing: -.02em;
  color: var(--ink);
  line-height: 1.1;
}
.dark .stats__value { color: #fff; }
.stats__label {
  display: block;
  margin-top: .45rem;
  font-size: .85rem;
  line-height: 1.4;
  color: var(--steel-500);
}

/* Sivun otsikkopalkki (alasivut) */
.page-head {
  background: var(--ink);
  color: var(--steel-100);
  padding-block: clamp(2.75rem, 6vw, 4.5rem);
  position: relative;
  overflow: hidden;
}
.page-head::after {
  content: "";
  position: absolute;
  inset: auto -5% -60% auto;
  width: 40vw; height: 40vw;
  max-width: 480px; max-height: 480px;
  background: radial-gradient(circle, rgba(0, 200, 80, .16), transparent 65%);
  pointer-events: none;
}
.page-head > .wrap { position: relative; z-index: 1; }
.page-head h1 { color: #fff; margin-bottom: .5rem; }
.page-head .lead { color: var(--steel-100); }

/* Murupolku */
.crumbs {
  margin-bottom: 1.25rem;
  font-family: var(--font-mono);
  font-size: .75rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--steel-400);
}
.crumbs a { color: var(--steel-300); text-decoration: none; }
.crumbs a:hover { color: #fff; }
.crumbs span { margin: 0 .45rem; opacity: .55; }

/* Nostoruutu */
.callout {
  padding: clamp(1.25rem, 3vw, 1.75rem);
  border-left: 3px solid var(--green);
  background: var(--green-wash);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.callout p { color: var(--steel-700); }
.callout :last-child { margin-bottom: 0; }
.dark .callout { background: rgba(0, 200, 80, .08); }

/* CTA-kaista */
.cta-band { background: var(--ink-2); color: #fff; }
.cta-band .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: clamp(2.5rem, 5vw, 3.5rem);
}
.cta-band h2 { margin-bottom: .35rem; color: #fff; }
.cta-band p { margin: 0; color: var(--steel-300); }

/* ---------- 09  Taulukot ------------------------------------------------- */
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: .94rem;
  background: var(--paper);
}
caption {
  caption-side: top;
  padding: 1rem 1.15rem;
  text-align: left;
  font-size: .84rem;
  color: var(--steel-500);
  border-bottom: 1px solid var(--line);
}
th, td {
  padding: .82rem 1.15rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
thead th {
  font-family: var(--font-mono);
  font-size: .74rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--steel-500);
  background: var(--paper-2);
  white-space: nowrap;
}
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
tbody th { font-weight: 550; color: var(--ink); }
td.num, th.num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

/* ---------- 10  Vaiheet -------------------------------------------------- */
.steps { counter-reset: step; margin: 0; padding: 0; list-style: none; }
.steps > li {
  counter-increment: step;
  position: relative;
  padding: 0 0 2rem 4rem;
}
.steps > li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0; top: 0;
  display: grid;
  place-items: center;
  width: 2.6rem; height: 2.6rem;
  border: 1px solid var(--green);
  border-radius: 50%;
  background: var(--paper);
  font-family: var(--font-mono);
  font-size: .82rem;
  color: var(--green-dark);
}
.steps > li::after {
  content: "";
  position: absolute;
  left: 1.3rem; top: 2.9rem; bottom: .3rem;
  width: 1px;
  background: var(--line);
}
.steps > li:last-child { padding-bottom: 0; }
.steps > li:last-child::after { display: none; }
.steps h3 { margin-bottom: .35rem; font-size: 1.08rem; }
.steps p { color: var(--steel-700); font-size: .96rem; margin-bottom: 0; }
.section--alt .steps > li::before { background: var(--paper-2); }
.dark .steps > li::before { background: var(--ink); color: var(--green-light); }
.dark .steps > li::after { background: var(--line-dark); }

/* Kysymys–vastaus */
.faq { border-top: 1px solid var(--line); }
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem 0;
  font-weight: 550;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 1.25rem;
  line-height: 1;
  color: var(--green);
  transition: transform var(--t-base);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding-bottom: 1.35rem; color: var(--steel-700); max-width: 72ch; }

/* ---------- 11  Lomake --------------------------------------------------- */
.form { display: grid; gap: 1.15rem; }
.form__row { display: grid; gap: 1.15rem; }
@media (min-width: 640px) { .form__row { grid-template-columns: 1fr 1fr; } }

.field { display: grid; gap: .4rem; }
.field label {
  font-size: .86rem;
  font-weight: 550;
  color: var(--ink);
}
.field .hint { font-size: .8rem; color: var(--steel-500); }
.field .req { color: var(--green-dark); }

input[type="text"], input[type="email"], input[type="tel"],
select, textarea {
  width: 100%;
  padding: .72rem .85rem;
  font: inherit;
  font-size: .95rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
textarea { min-height: 140px; resize: vertical; }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(0, 168, 68, .25);
}
input::placeholder, textarea::placeholder { color: var(--steel-500); }

.consent { display: flex; gap: .65rem; align-items: flex-start; font-size: .88rem; color: var(--steel-700); }
.consent input { margin-top: .25rem; flex: 0 0 auto; }

.form__status {
  padding: .85rem 1rem;
  border-radius: var(--radius);
  font-size: .92rem;
}
.form__status[data-state="ok"]   { background: #eaf5ef; color: #276a4e; border: 1px solid #c6e3d4; }
.form__status[data-state="error"]{ background: #fdeeee; color: #9c2b2b; border: 1px solid #f2cccc; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Yhteystietoruutu */
.contact-block { font-style: normal; }
.contact-block dt {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--steel-500);
  margin-top: 1.35rem;
}
.contact-block dt:first-child { margin-top: 0; }
.contact-block dd { margin: .3rem 0 0; color: var(--ink); }
.contact-block dd a { color: var(--green-dark); text-decoration: none; }
.contact-block dd a:hover { text-decoration: underline; }

/* ---------- 12  Footer --------------------------------------------------- */
.site-footer {
  background: var(--ink);
  color: var(--steel-300);
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
  font-size: .92rem;
}
.site-footer h4 {
  margin-bottom: .9rem;
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--steel-400);
}
.site-footer a { color: var(--steel-100); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer li { margin-bottom: .5rem; }
.site-footer__brand svg, .site-footer__brand img { height: 28px; width: auto; margin-bottom: 1rem; }
.site-footer__grid {
  display: grid;
  gap: clamp(2rem, 4vw, 3rem);
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}
.site-footer__grid > :first-child { grid-column: 1 / -1; }
@media (min-width: 800px) {
  .site-footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1.3fr; }
  .site-footer__grid > :first-child { grid-column: auto; }
}
.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1.5rem;
  justify-content: space-between;
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-dark);
  font-size: .84rem;
  color: var(--steel-400);
}

/* ---------- 13  Apuluokat ------------------------------------------------ */
.mono { font-family: var(--font-mono); }
.muted { color: var(--steel-500); }
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: 1.5rem; }
.mt-3 { margin-top: 2.25rem; }
.mb-0 { margin-bottom: 0; }
.nowrap { white-space: nowrap; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: .75rem; top: -100px;
  z-index: 100;
  padding: .7rem 1.1rem;
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius);
  text-decoration: none;
  transition: top var(--t-fast);
}
.skip-link:focus { top: .75rem; }

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

/* ---------- 14  Liikkeet ------------------------------------------------- */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 620ms cubic-bezier(.4, 0, .2, 1),
              transform 620ms cubic-bezier(.4, 0, .2, 1);
}
html.js [data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  html.js [data-reveal] { opacity: 1 !important; transform: none !important; }
}

/* ---------- Tulostus ------------------------------------------------------ */
@media print {
  .site-header, .site-footer, .cta-band, .nav-toggle, .btn-row { display: none !important; }
  .hero, .page-head, .dark { background: #fff !important; color: #000 !important; }
  .hero h1, .page-head h1, .dark h2, .dark h3, .dark p { color: #000 !important; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .8em; }
}
