/* Shared styles for the long-form content pages (SEO landing pages).
 *
 * The token values below MIRROR the :root block in index.html, which stays the
 * canonical source per CLAUDE.md rule 4. If you change a colour or font there,
 * change it here too. index.html and tietosuoja.html deliberately keep their own
 * inline copies so the landing page stays self-contained and render-blocking-free.
 */

:root {
  --cream: #fffaf5;
  --ink: #1b1c19;
  --ink-var: #56423d;
  --outline: rgba(27, 28, 25, 0.18);
  --terra: #e87b5a;
  --terra-deep: #d96645;
  --apricot: rgba(253, 185, 155, 0.4);
  --rose: rgba(255, 218, 214, 0.3);
  --peach: rgba(253, 217, 195, 0.4);
  --softrose: rgba(239, 211, 215, 0.3);
  --glass: rgba(255, 255, 255, 0.42);
  --glass-border: rgba(255, 255, 255, 0.6);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  color: var(--ink);
  font-family: "Hanken Grotesk", "Segoe UI", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.7;
  background-color: var(--cream);
  background-image:
    radial-gradient(circle at 12% 4%, var(--apricot) 0%, transparent 46%),
    radial-gradient(circle at 92% 8%, var(--rose) 0%, transparent 54%),
    radial-gradient(circle at 88% 88%, var(--peach) 0%, transparent 48%),
    radial-gradient(circle at 6% 94%, var(--softrose) 0%, transparent 56%);
  background-attachment: fixed;
  overflow-x: hidden;
}
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 40;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.5' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.08'/%3E%3C/svg%3E");
}

h1, h2, h3 {
  font-family: "EB Garamond", Georgia, serif;
  font-weight: 400; text-wrap: balance; margin: 0 0 0.6rem;
}
h1 { font-size: clamp(36px, 5.4vw, 60px); line-height: 1.06; letter-spacing: -0.025em; }
h2 { font-size: clamp(27px, 3.4vw, 38px); line-height: 1.15; letter-spacing: -0.015em; margin-top: 3.2rem; }
h3 { font-size: clamp(21px, 2.4vw, 25px); line-height: 1.25; margin-top: 2.2rem; }
p { margin: 0.9rem 0; }
a { color: var(--terra-deep); }
a:hover { color: var(--ink); }
a:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; border-radius: 3px; }

.wrap { max-width: 1280px; margin: 0 auto; padding: 0 20px; }
@media (min-width: 768px) { .wrap { padding: 0 64px; } }
.narrow { max-width: 46rem; margin: 0 auto; }

.label {
  font-family: "Hanken Grotesk", sans-serif;
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
}
.glass {
  background: var(--glass);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
}

/* Header / footer, matching the landing page */
header.top { padding: 2rem 0 0; }
header.top .bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.logo { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; color: var(--ink); }
.logo .word { font-family: "EB Garamond", Georgia, serif; font-weight: 500; font-size: 28px; letter-spacing: -0.01em; }
@media (max-width: 480px) {
  .logo .word { font-size: 21px; }
  .logo svg { width: 26px; height: 26px; }
  header.top .btn.small { padding: 0.5rem 0.9rem; font-size: 11px; letter-spacing: 0.06em; }
}

.btn {
  display: inline-block;
  font-family: "Hanken Grotesk", sans-serif;
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: #fff; background: var(--terra);
  border: 1px solid var(--terra); border-radius: 9999px;
  padding: 0.85rem 1.9rem; text-decoration: none; cursor: pointer;
  box-shadow: 0 4px 14px rgba(217, 102, 69, 0.25);
  transition: background 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}
.btn:hover { background: var(--terra-deep); color: #fff; box-shadow: 0 6px 18px rgba(217, 102, 69, 0.35); }
.btn:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.btn.small { padding: 0.6rem 1.4rem; box-shadow: none; }

/* Article body */
.crumbs { font-size: 15px; color: var(--ink-var); margin: 2.6rem 0 1.4rem; }
.crumbs a { color: var(--ink-var); }
article { padding-bottom: 1rem; }
article .lead { font-size: 21px; color: var(--ink-var); line-height: 1.6; margin: 1.4rem 0 0; }
.meta { font-size: 15px; color: var(--ink-var); opacity: 0.85; margin-top: 1.2rem; }

/* The direct answer box — the thing a search result should be able to lift */
.answer {
  border-radius: 20px; padding: clamp(1.4rem, 3.5vw, 2.2rem);
  margin: 2.4rem 0 1rem;
  border-left: 4px solid var(--terra);
}
.answer p { margin: 0; font-size: 19px; }
.answer p + p { margin-top: 0.8rem; }

article ul, article ol { padding-left: 1.4rem; margin: 1rem 0; }
article li { margin: 0.55rem 0; }
article li::marker { color: var(--terra-deep); }

/* Statute citations */
.pykala {
  display: block; margin-top: 1.1rem;
  font-size: 16px; color: var(--ink-var);
  border-top: 1px solid var(--outline); padding-top: 0.8rem;
}
.pykala strong { font-weight: 600; }

/* Checklist / field-group cards */
.checklist { list-style: none; padding: 0; margin: 1.4rem 0; display: grid; gap: 0.9rem; }
.checklist li {
  display: flex; gap: 0.85rem; align-items: flex-start;
  padding: 1rem 1.2rem; border-radius: 14px;
  background: rgba(255, 255, 255, 0.5); border: 1px solid var(--glass-border);
  margin: 0;
}
.checklist li svg { flex: none; margin-top: 4px; }

/* Copy-paste template block */
.malli {
  border-radius: 20px; padding: clamp(1.4rem, 4vw, 2.4rem);
  margin: 1.6rem 0;
  font-size: 16.5px; line-height: 1.75;
}
.malli h3 { margin-top: 0; }
.malli .rivi { margin: 0.35rem 0; }
.malli .tayta { color: var(--terra-deep); font-weight: 600; }
.malli hr { border: none; border-top: 1px solid var(--outline); margin: 1.3rem 0; }
.malli .yhtio { font-weight: 600; font-size: 1.12em; margin-top: 0.8rem; }
.malli .vali { margin-bottom: 1.1rem; }

/* Kokouskutsulomake: fill-in form above the live preview (see kokouskutsu.js).
   Sizes follow CLAUDE.md rule 5: 16px minimum, 18px in the fields, no motion. */
.hyppy { margin: 1.6rem 0 0; }
.vihje { font-size: 16px; color: var(--ink-var); line-height: 1.55; margin: 0.45rem 0 0; }
.vihje.varoitus { color: #ba1a1a; font-weight: 600; }
.tyokalu { margin: 1.6rem 0 0; }
.tyokalu fieldset {
  min-width: 0; margin: 0 0 1.2rem;
  padding: 1.3rem clamp(1.1rem, 3.5vw, 1.9rem) 1.6rem;
  border: 1px solid var(--glass-border); border-radius: 20px;
  background: rgba(255, 255, 255, 0.5);
}
.tyokalu legend {
  float: left; width: 100%; padding: 0; margin: 0 0 0.3rem;
  font-family: "EB Garamond", Georgia, serif; font-size: 25px; line-height: 1.25;
}
.tyokalu legend + * { clear: both; }
.kentta { margin-top: 1.15rem; }
.kentta > label:not(.valinta), .kentta > .nimi { display: block; font-weight: 600; font-size: 17px; margin-bottom: 0.4rem; }
.tyokalu input[type="text"], .tyokalu input[type="email"], .tyokalu input[type="date"],
.tyokalu input[type="time"], .tyokalu textarea {
  display: block; width: 100%; min-height: 3.2rem;
  font: inherit; font-size: 18px; line-height: 1.4; color: var(--ink);
  padding: 0.8rem 1rem;
  border: 1px solid var(--outline); border-radius: 12px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.04);
}
.tyokalu textarea { min-height: 7.5rem; resize: vertical; }
.tyokalu input::placeholder, .tyokalu textarea::placeholder { color: #857670; opacity: 1; }
.tyokalu input:focus-visible, .tyokalu textarea:focus-visible { outline: 2px solid var(--terra); outline-offset: 1px; border-color: var(--terra); }
.tyokalu [aria-invalid="true"] { border-color: #ba1a1a; box-shadow: 0 0 0 1px #ba1a1a; }
.tyokalu .choices { margin-top: 0.2rem; }
.valinta { display: flex; gap: 0.8rem; align-items: baseline; cursor: pointer; font-size: 17px; font-weight: 600; }
.valinta input { flex: none; width: 1.15rem; height: 1.15rem; accent-color: var(--terra); transform: translateY(2px); }
.valinta + .vihje { padding-left: 1.95rem; }
.kaksi { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; align-items: start; }
@media (max-width: 520px) { .kaksi { grid-template-columns: 1fr; } }
.maaraika {
  margin-top: 0.9rem; padding: 0.9rem 1.1rem; border-radius: 14px;
  background: rgba(255, 255, 255, 0.7); border-left: 4px solid var(--terra);
  font-size: 17px; line-height: 1.55;
}
.maaraika.virhe { border-left-color: #ba1a1a; }
.maaraika p { margin: 0; }
.maaraika p + p { margin-top: 0.5rem; }
.maaraika .varoitus { color: #ba1a1a; font-weight: 600; }
.maaraika .pieni { font-size: 16px; color: var(--ink-var); }
.tyokalu [hidden], .maaraika[hidden], .vihje[hidden] { display: none !important; }
.esikatselu-otsikko { margin: 2.2rem 0 -0.8rem; color: var(--ink-var); }
.toiminnot { display: flex; flex-wrap: wrap; gap: 0.8rem; margin: 1.4rem 0 0; }
.toiminnot .btn { white-space: normal; text-align: center; font-size: 16px; letter-spacing: 0.06em; padding: 1rem 1.6rem; }
.btn.toissijainen { background: transparent; color: var(--ink); border-color: var(--terra); box-shadow: none; }
.btn.toissijainen:hover { background: rgba(232, 123, 90, 0.12); color: var(--ink); box-shadow: none; }
@media (max-width: 560px) { .toiminnot .btn { width: 100%; } }
.tyokalu-viesti { text-align: left; font-size: 17px; }

/* Printing the invite only: kokouskutsu.js fills #kk-tuloste and sets
   html.kk-tulostus before print(), and removes it again after printing. */
#kk-tuloste { display: none; }
/* Sized so a full annual-meeting invite fits on one A4 sheet: it is mailed to
   every shareholder, so a second page doubles the postage and copying. */
@page { size: A4; margin: 18mm 18mm 16mm 22mm; }
@media print {
  html.kk-tulostus body { background: #fff; }
  html.kk-tulostus body::after { display: none; }
  html.kk-tulostus body > :not(#kk-tuloste) { display: none !important; }
  html.kk-tulostus #kk-tuloste { display: block; color: #000; font: 12pt/1.25 Arial, "Helvetica Neue", Helvetica, sans-serif; }
  #kk-tuloste h3 { font: 700 18pt/1.2 Arial, "Helvetica Neue", Helvetica, sans-serif; letter-spacing: 0.02em; margin: 0 0 4pt; }
  #kk-tuloste p { margin: 0 0 3pt; break-inside: avoid; }
  #kk-tuloste .yhtio { font-weight: 700; font-size: 14pt; margin: 0; }
  #kk-tuloste .vali { margin-bottom: 10pt; }
  #kk-tuloste hr { border: none; border-top: 0.75pt solid #999; margin: 6pt 0 8pt; }
  #kk-tuloste ol { margin: 0 0 4pt; padding-left: 9mm; }
  #kk-tuloste li { margin: 0 0 1.5pt; break-inside: avoid; }
}

/* Data table */
.taulu { width: 100%; border-collapse: collapse; margin: 1.4rem 0; font-size: 16.5px; }
.taulu th, .taulu td { text-align: left; padding: 0.85rem 1rem; border-bottom: 1px solid var(--outline); vertical-align: top; }
.taulu th { font-family: "Hanken Grotesk", sans-serif; font-weight: 600; }
.taulu tr:last-child td { border-bottom: none; }
.taulu-wrap { overflow-x: auto; }

/* On narrow screens stack each row instead of asking for a horizontal swipe —
   the audience is 55+ and sideways-scrolling tables hide content from them. */
@media (max-width: 560px) {
  .taulu-wrap { overflow-x: visible; }
  .taulu, .taulu tbody, .taulu tr, .taulu td { display: block; width: 100%; }
  .taulu thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .taulu tr { padding: 1rem 0; border-bottom: 1px solid var(--outline); }
  .taulu tr:last-child { border-bottom: none; }
  .taulu td { border-bottom: none; padding: 0.1rem 0; }
  .taulu td:first-child { font-weight: 600; color: var(--ink); }
}

/* FAQ */
.faq details {
  border-radius: 16px; padding: 0.4rem 1.3rem; margin: 0.8rem 0;
  background: rgba(255, 255, 255, 0.5); border: 1px solid var(--glass-border);
}
.faq summary {
  cursor: pointer; padding: 1rem 0; font-weight: 600; font-size: 18px;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--terra-deep); font-size: 24px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details > p { margin-top: 0; padding-bottom: 0.9rem; color: var(--ink-var); }

/* End-of-article call to action */
.cta {
  border-radius: 24px; padding: clamp(2rem, 5vw, 3.4rem);
  margin: 3.6rem 0 1rem; text-align: center;
}
.cta h2 { margin-top: 0; }
.cta p { color: var(--ink-var); max-width: 34rem; margin-left: auto; margin-right: auto; }
.cta .btn { margin-top: 1.4rem; }

/* Waitlist form inside the end-of-article CTA */
.cta form { max-width: 30rem; margin: 2rem auto 0; text-align: left; }
.cta label.label { display: block; margin: 1.4rem 0 0.6rem; }
.cta input[type="email"] {
  width: 100%; font: inherit; padding: 1rem 1.2rem;
  border: 1px solid var(--outline); border-radius: 12px;
  background: rgba(255, 255, 255, 0.7); color: var(--ink);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.04);
}
.cta input[type="email"]:focus-visible { outline: 2px solid var(--terra); outline-offset: 1px; border-color: var(--terra); }
.choices { display: flex; flex-direction: column; gap: 0.9rem; margin-top: 0.5rem; }
.choices label { display: flex; gap: 0.8rem; align-items: baseline; cursor: pointer; font-size: 17px; }
.choices input { accent-color: var(--terra); width: 1.15rem; height: 1.15rem; transform: translateY(2px); }
.cta form .btn { width: 100%; margin-top: 1.8rem; padding: 1.1rem; font-size: 14px; }
.msg { margin-top: 1rem; font-weight: 600; display: none; text-align: center; }
.msg.ok { color: #1e7a46; display: block; }
.msg.err { color: #ba1a1a; display: block; }
.hp { position: absolute; left: -9999px; }
.fineprint { font-size: 15px; color: var(--ink-var); margin-top: 1.4rem; text-align: center; }

.related { margin: 3rem 0 0; font-size: 16.5px; }
.related a { display: block; margin: 0.5rem 0; }

.disclaimer {
  font-size: 15.5px; color: var(--ink-var);
  border-top: 1px solid var(--outline); padding-top: 1.4rem; margin-top: 3rem;
}

footer { padding: 4rem 0 3.5rem; text-align: center; margin-top: 4rem; }
footer .logo { justify-content: center; margin-bottom: 1.6rem; }
footer .logo .word { font-size: 26px; }
footer p { max-width: 34rem; margin: 0.5rem auto; color: var(--ink-var); font-size: 14px; }
footer .copyright { opacity: 0.6; margin-top: 2.2rem; letter-spacing: 0.06em; }
