/* AllVeganPlease – www.allveganplease.com (0.9.0: "yksi muste")
 * Ilme: yksi vihreä muste paperinvalkoisella, sävyt rasteripisteillä. Vaaleaa vihreää vain asennusosiossa.
 * Fontit: Archivo Expanded (otsikot, Archivo wdth 125 / wght 800) ja Karla (teksti), SIL OFL 1.1 – tiedostot /fonts/ (lähde site-fonts/).
 * Yksi vihreä kaikkialla (havu #0d5c4a): paperilla 7,7:1, vaalealla vihreällä 6,7:1, valkoinen vihreällä 7,9:1; ei mustaa missään. */
@font-face { font-family: 'Archivo Expanded'; font-weight: 800; font-display: swap; src: url('/fonts/archivo-expanded-latin-800-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Archivo Expanded'; font-weight: 800; font-display: swap; src: url('/fonts/archivo-expanded-latin-ext-800-normal.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Karla'; font-weight: 400; font-display: swap; src: url('/fonts/karla-latin-400-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Karla'; font-weight: 400; font-display: swap; src: url('/fonts/karla-latin-ext-400-normal.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Karla'; font-weight: 600; font-display: swap; src: url('/fonts/karla-latin-600-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Karla'; font-weight: 600; font-display: swap; src: url('/fonts/karla-latin-ext-600-normal.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Karla'; font-weight: 800; font-display: swap; src: url('/fonts/karla-latin-800-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Karla'; font-weight: 800; font-display: swap; src: url('/fonts/karla-latin-ext-800-normal.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --paper: #fcfcf8; --ink: #0d5c4a; --ink-2: #0d5c4a; --text: #0d5c4a; --muted: #0d5c4a; --tint: #e6eee8;
  --dot: radial-gradient(var(--ink) 40%, transparent 42%) 0 0 / 12px 12px;
  --screen: radial-gradient(var(--ink) 14%, transparent 16%) 0 0 / 8px 8px;
  --head: "Archivo Expanded", "Karla", system-ui, sans-serif;
  --sans: "Karla", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --max: 1120px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--paper); color: var(--text); font: 400 18px/1.5 var(--sans); -webkit-font-smoothing: antialiased; }
/* Maalattu teksti: tumma vihreä pohja, valkoinen teksti; vihreillä pohjilla käänteisesti */
::selection { background: var(--ink-2); color: #fff; }
.langs a[aria-current]::selection, .btn.primary::selection, .btn.primary ::selection, .s3 .num::selection, .pill::selection, .doc th::selection, .doc th ::selection { background: var(--paper); color: var(--ink-2); }
/* Alleviivaus: 1 px, selvästi irti tekstistä; hover 2 px */
a, button { text-decoration-thickness: 1px; text-underline-offset: .24em; }
:is(a, button):hover { text-decoration-thickness: 2px; }
a { color: var(--ink-2); }
a:hover { color: var(--ink); }
img, svg { max-width: 100%; }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 760px; }
h1, h2, h3, .brand { font-family: var(--head); }
h2 { font-size: clamp(22px, 7vw, 40px); overflow-wrap: break-word; font-weight: 800; color: var(--ink-2); line-height: 1.1; letter-spacing: -.5px; margin: 0 0 12px; }
h3 { font-weight: 800; letter-spacing: -.2px; line-height: 1.2; }
/* Rivivälit: leipäteksti 1,5, pienet tekstit 1,4, iso korostus 1,3, otsikot 1,04–1,2 */
.hero .note, .shop span, footer, .req label { line-height: 1.4; }
p.sub { color: var(--muted); margin: 0 0 28px; max-width: 46em; }

/* Ohituslinkki ja näkyvä fokus (WCAG 2.4.1, 2.4.7, 2.4.11) */
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--paper); color: var(--text); padding: 10px 16px; border: 2px solid var(--ink); font-weight: 800; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--text); outline-offset: 3px; }
main:focus { outline: none; }

/* Yläpalkki */
/* Yläpalkki: paperinvalkoinen pinta, jossa karkea rasteri. Palkin alle vierivä sisältö näkyy rasterin pisteissä
 * vain 20 %:n voimalla (pisteet 80 % peittäviä), joten logon ja linkkien kontrasti pysyy pahimmillaankin 5,5:1. */
header.top { position: sticky; top: 0; z-index: 10; background: radial-gradient(circle, rgba(252, 252, 248, .8) 0 2px, var(--paper) 2.6px) 0 0 / 8px 8px; border-bottom: 2px solid var(--ink); }
header.top .wrap { display: flex; align-items: center; min-height: 72px; gap: 22px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 800; font-size: 20px; margin-right: auto; }
.brand .mark { width: 40px; height: 40px; flex: none; }
/* Korvat heilahtavat nopeasti, sitten tauko (1,8 s jakso): hiiren tai näppäimistön kohdistus logossa, tai vieritys (.wig, s.js) */
.brand .mark .ear { transform-box: view-box; }
.brand .mark .ear-l { transform-origin: 27px 38px; }
.brand .mark .ear-r { transform-origin: 73px 38px; }
.brand:hover .mark .ear-l, .brand:focus-visible .mark .ear-l, .mark.wig .ear-l { animation: ear-l 1.8s ease-in-out infinite; }
.brand:hover .mark .ear-r, .brand:focus-visible .mark .ear-r, .mark.wig .ear-r { animation: ear-r 1.8s ease-in-out infinite; }
@keyframes ear-l { 0%, 26%, 100% { transform: rotate(0); } 6% { transform: rotate(-24deg); } 12% { transform: rotate(12deg); } 19% { transform: rotate(-12deg); } }
@keyframes ear-r { 0%, 26%, 100% { transform: rotate(0); } 6% { transform: rotate(24deg); } 12% { transform: rotate(-12deg); } 19% { transform: rotate(12deg); } }
nav.links { display: flex; gap: 20px; font-size: 15px; font-weight: 600; }
nav.links a { color: var(--text); text-decoration: none; display: inline-flex; align-items: center; min-height: 28px; }
nav.links a:hover { color: var(--ink-2); text-decoration: underline; }
@media (max-width: 900px) { nav.links { display: none; } }
.langs { display: flex; gap: 2px; }
.langs a { font: 800 13px/1 var(--sans); min-width: 34px; min-height: 30px; display: inline-flex; align-items: center; justify-content: center; padding: 0 8px; color: var(--text); text-decoration: none; letter-spacing: .3px; }
.langs a:hover { color: var(--ink-2); text-decoration: underline; }
.langs a[aria-current] { background: var(--ink); color: #fff; }

/* Painikkeet */
.btn { display: inline-flex; align-items: center; min-height: 50px; padding: 12px 24px; font: 800 17px/1.2 var(--sans); text-decoration: none; }
.btn.primary { background: var(--ink); color: #fff; border: 2px solid var(--ink); }
.btn.primary:hover { background: var(--ink); color: #fff; text-decoration: underline; }
.btn.ghost { border: 2px solid var(--ink); color: var(--ink-2); }
.btn.ghost:hover { background: var(--tint); }

/* Etusivun alku */
.hero { padding: 64px 0 56px; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 48px; align-items: center; }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; } }
.hero-text { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.hero h1 { font-size: clamp(28px, 7.4vw, 58px); line-height: 1.04; letter-spacing: -1px; font-weight: 800; color: var(--ink-2); margin: 0; text-wrap: balance; }
@media (min-width: 861px) { .hero h1 { font-size: clamp(40px, 4.6vw, 58px); } }
.hero p.lead { font-size: 20px; margin: 0; }
.hero .ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .note { font-size: 15px; color: var(--muted); margin: 0; }
.art { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; width: 100%; max-width: 440px; justify-self: center; }
.art svg { width: 100%; height: auto; display: block; }

/* Rasteriraita osioiden välissä */
.dots { height: 24px; background: var(--dot); }

section { padding: 72px 0; }
section.ruled { border-top: 2px solid var(--ink); }
.why p { margin: 0 0 16px; }
.why p:first-of-type { font-size: clamp(22px, 2.6vw, 30px); line-height: 1.3; font-weight: 800; }
.why p:last-child { margin-bottom: 0; }

/* Periaatteet rasteritaustalla */
section.screen { background: var(--screen), var(--paper); }
h2.on-screen { display: inline-block; background: var(--paper); padding: 2px 12px; margin-left: -12px; }
.prin { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 24px; }
.pr { background: var(--paper); border: 2px solid var(--ink); padding: 26px; display: flex; flex-direction: column; gap: 10px; }
.pr svg { width: 60px; height: 60px; }
.pr h3 { margin: 0; font-size: 22px; color: var(--ink-2); }
.pr p { margin: 0; }

/* Vaiheet: ääriviiva → rasteri → täysi muste */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 28px; }
.step { display: flex; flex-direction: column; gap: 8px; }
.step h3 { margin: 0; font-family: var(--sans); font-size: 21px; color: var(--text); }
.step p { margin: 0; }
.num { width: 56px; height: 56px; border-radius: 50%; border: 2px solid var(--ink); display: grid; place-items: center; font: 800 24px/1 var(--head); color: var(--ink-2); }
.s2 .num { background: radial-gradient(var(--ink) 44%, transparent 46%) 0 0 / 7px 7px; }
.s2 .num span { background: var(--paper); padding: 2px 6px; }
.s3 .num { background: var(--ink); color: #fff; }

/* Kaupat */
.shops { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 0 24px; border-top: 2px solid var(--ink); }
.shop { padding: 12px 0; border-bottom: 1px solid var(--ink); display: flex; flex-direction: column; gap: 2px; }
.shop b { line-height: 1.25; }
.shop b { font-weight: 800; }
.shop span { color: var(--muted); font-size: 15px; }

/* Kauppatoive */
.req { position: relative; margin-top: 56px; border: 2px solid var(--ink); padding: 28px; }
.req .req-art { position: absolute; right: 20px; top: -38px; width: 72px; height: 72px; background: var(--paper); }
.req h3 { margin: 0 0 6px; font-size: 26px; color: var(--ink-2); padding-right: 80px; }
.req > p { margin: 0 0 18px; max-width: 46em; }
.req form { display: flex; flex-wrap: wrap; gap: 14px 16px; align-items: flex-end; }
.req form[hidden] { display: none; }
.req .f { display: flex; flex-direction: column; gap: 6px; flex: 1 1 220px; min-width: 0; }
.req .f.grow { flex: 2 1 260px; }
.req label { font-size: 15px; font-weight: 800; }
.req input { font: inherit; font-size: 17px; color: var(--text); background: #fff; border: 2px solid var(--ink); border-radius: 0; padding: 0 12px; height: 52px; line-height: 1.2; width: 100%; }
.req input::placeholder { color: var(--muted); opacity: 1; }
.req input[aria-invalid="true"] { border-color: #a3241c; box-shadow: inset 0 0 0 1px #a3241c; }
.req button { cursor: pointer; height: 52px; }
.req button:disabled { opacity: .7; cursor: progress; }
.req .hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.req .msg { margin: 12px 0 0; font-weight: 800; min-height: 1.6em; }
.req .msg:empty { margin: 0; min-height: 0; }

/* Mitä tarkistetaan */
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 28px; }
.col { border-top: 2px solid var(--ink); padding-top: 14px; }
.col h3 { margin: 0 0 8px; font-size: 21px; color: var(--ink-2); }
.col ul { margin: 0; padding-left: 20px; }
.col li { margin: 3px 0; }

/* Asennus (sivun ainoa vaaleanvihreä pinta) */
.install { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 20px; }
.box { background: var(--tint); padding: 24px; }
.box h3 { margin: 0 0 10px; font-size: 22px; color: var(--ink-2); }
.box ol { margin: 0; padding-left: 20px; }
.box li { margin: 6px 0; }
code { font-size: .92em; background: var(--paper); border: 1px solid var(--ink); padding: 0 5px; }
.pill { display: inline-block; font-size: 13px; font-weight: 800; color: #fff; background: var(--ink); padding: 3px 10px; margin-bottom: 10px; }

.privacy { display: flex; gap: 32px; align-items: flex-start; flex-wrap: wrap; }
.privacy .pv { flex: 1 1 300px; }
.privacy .pv .sub { margin-bottom: 12px; }
.privacy ul { margin: 0; padding-left: 20px; flex: 1 1 380px; }

footer { padding: 28px 0; color: var(--muted); font-size: 15px; border-top: 2px solid var(--ink); }
footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
footer .fl { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
footer .fl > a { display: inline-flex; align-items: center; min-height: 30px; }

/* Tietosuoja- ja saavutettavuussivut */
.doc { max-width: 760px; padding: 56px 24px 80px; margin: 0 auto; overflow-wrap: break-word; hyphens: auto; }
.doc h1 { font-size: clamp(34px, 4.4vw, 50px); letter-spacing: -1px; margin: 0 0 6px; font-weight: 800; color: var(--ink-2); line-height: 1.05; overflow-wrap: anywhere; }
.doc h2 { font-size: 24px; margin: 36px 0 8px; padding-top: 14px; border-top: 2px solid var(--ink); }
.doc .meta { color: var(--muted); margin: 0 0 28px; }
.doc table { width: 100%; border-collapse: collapse; font-size: 16px; margin: 8px 0; }
.doc td, .doc th { border: 1px solid var(--ink); padding: 8px 10px; text-align: left; vertical-align: top; }
.doc th { background: var(--ink); color: #fff; }
.dl { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0 0 8px; }
.dl span { color: var(--muted); font-size: 15px; }

/* Tulostus ja PDF */
@media print {
  @page { size: A4; margin: 18mm 18mm 20mm; }
  body { background: #fff; color: #0d5c4a; font-size: 11pt; }
  header.top, footer, .skip, .dl { display: none !important; }
  .doc { max-width: none; padding: 0; }
  .doc h1 { font-size: 24pt; }
  .doc h2 { font-size: 14pt; break-after: avoid; }
  a { color: #0d5c4a; }
}

/* Kapeat näytöt (320 px) */
@media (max-width: 420px) {
  header.top .wrap { gap: 6px; padding: 0 12px; }
  .langs { gap: 0; }
  .brand { font-size: 15px; gap: 6px; letter-spacing: -.3px; }
  .brand .mark { width: 28px; height: 28px; }
  .langs a { min-width: 28px; padding: 0 4px; font-size: 12px; }
  .wrap { padding: 0 16px; }
  .req { padding: 22px 16px; }
}
