/* =========================================================
   Somena Oy – sivuston tyylit
   Brändi: SOMENA graafinen ohjeisto (syksy 2026, Riikkis Graphic)
   Värit ja fontit on koottu muuttujiin alle – muuta niitä vain
   graafisen ohjeiston mukaisesti.
   ========================================================= */


:root {
  /* Brändivärit (logotiedostoista) */
  --red-deep: #a91008;     /* punainen logo */
  --red: #c42a14;
  --red-bright: #e22a14;
  --orange-red: #ee4718;
  --orange: #ff5100;
  --amber: #f7931e;        /* taustakuvien liukuvärin vaalea pää */
  --ink: #141010;
  --paper: #ffffff;
  --paper-2: #f3f3f3;
  --white: #fff;
  --muted: #555555;

  --grad: linear-gradient(160deg, #f9a01b 0%, #f26a1b 38%, #e0331a 70%, #cf2a24 100%);

  --font-display: "Gasoek One", "Archivo", system-ui, sans-serif;
  --font-body: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --radius: 22px;
  --radius-sm: 12px;
  --wrap: 1160px;
  --shadow: 0 18px 40px -22px rgba(20, 16, 16, .28);
  --header-h: 92px;
  /* Somenan puhekupla (assets/img/puhekupla.svg) listapallurana */
  --bubble: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 1526.96 1558.59%22%3E%3Cpath d=%22M150,692.62c0-.18-.01-.35-.01-.54,0-118.97,23.53-221.94,70.6-308.9,47.06-86.96,115.72-153.64,205.93-200.08,90.24-46.38,198.79-69.61,325.59-69.61,128.17,0,237.35,23.23,327.56,69.61,90.21,46.44,158.87,112.79,205.93,199.09,47.09,86.3,70.62,189.6,70.62,309.88,0,119-23.53,221.97-70.62,308.93-47.06,86.96-115.72,153.67-205.93,200.05-90.22,46.41-199.4,69.64-327.56,69.64-97.44,0-184-13.86-259.86-41.27l-292.13,167.02c-22.37,12.79-50.2-3.36-50.2-29.13v-674.78s.08.08.08.08Z%22/%3E%3C/svg%3E");
  /* Sama muoto tiukasti rajattuna kuvakehyksiä varten (graafisen ohjeen puhekupla_kehys.svg) */
  --bubble-frame: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%22149 112 1208 1290%22%3E%3Cpath d=%22M150,692.62c0-.18-.01-.35-.01-.54,0-118.97,23.53-221.94,70.6-308.9,47.06-86.96,115.72-153.64,205.93-200.08,90.24-46.38,198.79-69.61,325.59-69.61,128.17,0,237.35,23.23,327.56,69.61,90.21,46.44,158.87,112.79,205.93,199.09,47.09,86.3,70.62,189.6,70.62,309.88,0,119-23.53,221.97-70.62,308.93-47.06,86.96-115.72,153.67-205.93,200.05-90.22,46.41-199.4,69.64-327.56,69.64-97.44,0-184-13.86-259.86-41.27l-292.13,167.02c-22.37,12.79-50.2-3.36-50.2-29.13v-674.78s.08.08.08.08Z%22/%3E%3C/svg%3E");
  /* Puhekuplan häntä erikseen tekstikortteihin */
  --bubble-tail: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 342.3 172%22%3E%3Cpath d=%22M342.3,0L50.2,167c-22.37,12.79-50.2-3.36-50.2-29.13V0Z%22/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}
img, svg { max-width: 100%; display: block; }
a { color: var(--red-deep); text-underline-offset: 3px; }
a:hover { color: var(--red-bright); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--ink); color: var(--white); padding: .6rem 1rem; border-radius: 8px; }
.skip-link:focus { top: 1rem; color: var(--white); }

h1, h2, h3 { line-height: 1.08; margin: 0 0 .6em; }
h1, h2 { font-family: var(--font-display); font-weight: 400; letter-spacing: .06em; }
h1 { font-size: clamp(2.6rem, 6.4vw, 5.2rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3.2rem); }
h3 { font-size: 1.3rem; font-weight: 800; }
p { margin: 0 0 1em; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: .82rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--red-deep);
  margin-bottom: 1rem;
}
.lead { font-size: clamp(1.15rem, 1.8vw, 1.35rem); max-width: 40ch; }

/* ---------- Painikkeet ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font: 700 1.05rem/1 var(--font-body);
  padding: 1rem 1.5rem;
  border-radius: 999px;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--ink); color: var(--white); }
.btn-primary:hover { background: var(--red-deep); color: var(--white); }
.btn-light { background: var(--white); color: var(--red-deep); }
.btn-light:hover { background: var(--ink); color: var(--white); }
.btn-ghost { border-color: currentColor; color: var(--white); }
.btn-ghost:hover { background: var(--white); color: var(--red-deep); }

/* ---------- Ylätunniste ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  height: var(--header-h);
  background: transparent;
  transition: background-color .2s ease, box-shadow .2s ease;
}
.site-header .wrap { height: 100%; }
.site-header.scrolled {
  background: linear-gradient(90deg, #f9a01b 0%, #f26a1b 38%, #e0331a 70%, #cf2a24 100%);
  box-shadow: 0 8px 22px -14px rgba(120, 20, 8, .6);
}
main { margin-top: calc(-1 * var(--header-h)); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand img { height: 64px; width: auto; }
/* Logo ei saa kutistua eikä valikon napit rivittyä keskikokoisilla näytöillä */
.brand { flex-shrink: 0; }
.nav a { white-space: nowrap; }
@media (min-width: 961px) and (max-width: 1180px) { .nav { gap: 1.1rem; } .nav a { font-size: .95rem; } .site-header .wrap { gap: 1rem; } }
.nav { display: flex; align-items: center; gap: 1.75rem; }
.nav a { color: var(--white); text-decoration: none; font-weight: 600; }
.nav a:hover { text-decoration: underline; color: var(--white); }
.nav .btn { padding: .7rem 1.15rem; font-size: .95rem; }
.nav a.btn-light { color: var(--red-deep); }
.nav a.btn-light:hover { color: var(--white); text-decoration: none; }
.nav-toggle { display: none; }

/* ---------- Hero ---------- */
/* Sama Driven tekstuurigrafiikka kaikkialla (hero, kortit, yhteystiedot, kuvapaikat) */
.texture {
  background: #d0261a url("../img/hero-tausta.jpg") center / cover no-repeat;
}
.hero {
  position: relative; overflow: hidden;
  color: var(--white);
  padding: 8.5rem 0 6rem;
}
.hero.texture, .sub-hero.texture, .page-hero.texture, .contact.texture {
  background: #d0261a url("../img/hero-tausta.jpg") center / cover no-repeat;
  isolation: isolate;
}
.sub-hero .wrap { position: relative; z-index: 1; }
.sub-hero h1, .sub-hero .lead, .sub-hero .eyebrow, .page-hero h1 { text-shadow: 0 2px 18px rgba(120, 20, 8, .35); }
/* Yhteiskuva sävytettynä taustan väreihin (kuten graafisen ohjeiston kansikuvassa) */
.hero-photo {
  position: absolute; z-index: 0; top: 0; right: -10%;
  width: 58%; height: 100%; max-width: none;
  object-fit: cover; object-position: center 25%;
  mix-blend-mode: luminosity; opacity: .5;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 28%);
          mask-image: linear-gradient(to right, transparent 0%, #000 28%);
  pointer-events: none;
}
.hero .hero-grid { position: relative; z-index: 1; grid-template-columns: 1fr; }
.hero .hero-grid > div { max-width: 46rem; min-width: 0; }
.hero h1 { font-size: clamp(1.75rem, 6.4vw, 3.8rem); overflow-wrap: break-word; }
.sub-hero h1 { overflow-wrap: break-word; }
.hero h1, .hero .lead, .hero .eyebrow { text-shadow: 0 2px 18px rgba(120, 20, 8, .35); }
@media (max-width: 760px) {
  .hero-photo { width: 100%; right: 0; opacity: .3;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 60%);
            mask-image: linear-gradient(to bottom, transparent 0%, #000 60%); }
}
.hero-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 3rem; align-items: center; }
.hero .eyebrow { color: var(--white); opacity: .9; }
.hero h1 { color: var(--white); }
.hero .lead { color: #ffffff; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2rem; }
.hero-art { position: relative; justify-self: center; width: min(100%, 360px); }
.hero-art .logo-stack { width: 100%; filter: drop-shadow(0 20px 30px rgba(120, 20, 8, .35)); }
.hero-facts {
  display: flex; flex-wrap: wrap; gap: .6rem 1.4rem;
  margin: 2.25rem 0 0; padding: 0; list-style: none;
  font-family: var(--font-mono); font-size: .85rem;
}
.hero-facts li { display: inline-flex; align-items: center; gap: .45rem; }
.hero-facts li::before {
  content: ""; width: .9rem; height: .9rem; flex: none; background: var(--white); opacity: .85;
  -webkit-mask: var(--bubble) center / contain no-repeat; mask: var(--bubble) center / contain no-repeat;
}

.deco { position: absolute; pointer-events: none; opacity: .14; }
.deco-grid { right: -40px; bottom: -60px; width: 260px; filter: invert(1); }

/* ---------- Osiot ---------- */
section { scroll-margin-top: var(--header-h); }
.section { padding: clamp(4rem, 9vw, 7rem) 0; }
.section-alt { background: var(--paper-2); }
.section-dark { background: var(--ink); color: var(--white); }
.section-dark .eyebrow { color: var(--orange); }
.section-head { max-width: 760px; margin-bottom: 3rem; }

/* Puhekupla-kortit (ajattelutapa) */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.bubble {
  position: relative;
  background: var(--white);
  border-radius: var(--radius) var(--radius) var(--radius) 0;
  margin-bottom: 36px;
  padding: 1.9rem 1.75rem 1.75rem;
  box-shadow: var(--shadow);
}
.bubble::after {
  content: ""; position: absolute; left: 0; top: 100%;
  width: 68px; height: 34px; background: inherit;
  -webkit-mask: var(--bubble-tail) top left / 100% 100% no-repeat; mask: var(--bubble-tail) top left / 100% 100% no-repeat;
}
.bubble .quote { font-family: var(--font-mono); font-size: .9rem; color: var(--red-deep); margin-bottom: .75rem; }
.bubble h3 { margin-bottom: .5rem; }
.bubble p:last-child { margin-bottom: 0; }

/* Hinnoittelu */
.pricing { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; align-items: stretch; }
.plan {
  display: flex; flex-direction: column;
  background: var(--white); border-radius: var(--radius);
  padding: 2.2rem; border: 2px solid #e4e4e4;
}
.plan-featured { border-color: var(--red-bright); box-shadow: var(--shadow); position: relative; }
.plan-badge {
  position: absolute; top: -14px; left: 2.2rem;
  background: var(--red-bright); color: var(--white);
  font: 500 .78rem/1 var(--font-mono); letter-spacing: .06em; text-transform: uppercase;
  padding: .45rem .7rem; border-radius: 6px;
}
.plan h3 { font-size: 1.5rem; }
.price { font-family: var(--font-display); letter-spacing: .06em; font-size: 2.8rem; line-height: 1; margin: .4rem 0 .25rem; color: var(--red-deep); }
.price .eur { font-family: var(--font-body); font-weight: 800; font-size: .8em; }
.price small { font-family: var(--font-body); font-size: 1rem; color: var(--muted); font-weight: 600; }
.vat { font-family: var(--font-mono); font-size: .78rem; color: var(--muted); margin-bottom: 1.25rem; }
.checks { list-style: none; padding: 0; margin: 0 0 1.75rem; flex: 1; }
.checks li { padding-left: 1.8rem; position: relative; margin-bottom: .55rem; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .35em;
  width: 1.15rem; height: 1.15rem;
  background: var(--grad);
  -webkit-mask: var(--bubble) center / contain no-repeat;
  mask: var(--bubble) center / contain no-repeat;
}
.plan .btn { align-self: flex-start; }
.plan-value { margin: -.6rem 0 1rem; font-weight: 700; color: var(--red-deep); }
.plan-for { margin: -.2rem 0 .6rem; color: var(--muted); font-weight: 600; }
.plan-channels { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin: 0 0 1.25rem; font-weight: 700; color: var(--muted); }
.plan-channels span { background: var(--paper-2); color: var(--ink); border-radius: 999px; padding: .35rem .85rem; font-size: .93rem; }
.checks strong { color: var(--ink); }
.plan-common { margin-top: 1.5rem; background: var(--white); border: 2px solid #e4e4e4; border-radius: var(--radius); padding: 1.8rem 2.2rem; }
.plan-common h3 { font-size: 1.2rem; margin-bottom: 1rem; }
.plan-common .checks { columns: 2; column-gap: 2.5rem; margin-bottom: 1rem; }
.plan-common .checks li { break-inside: avoid; }
.plan-note { margin: 0; font-size: .95rem; color: var(--muted); }
@media (max-width: 760px) { .plan-common { padding: 1.5rem; } .plan-common .checks { columns: 1; } }
.addons.addons-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 760px) { .addons.addons-2 { grid-template-columns: 1fr; } }

.addons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 1.5rem; }
.addon { background: var(--white); border-radius: var(--radius-sm); padding: 1.4rem 1.5rem; border: 2px solid #e4e4e4; }
.addon h3 { font-size: 1.1rem; margin-bottom: .35rem; }
.addon .addon-price { font-family: var(--font-mono); font-weight: 500; color: var(--red-deep); }
.addon p { margin: .4rem 0 0; font-size: .97rem; color: var(--muted); }
.addon .price-ex { display: block; margin-top: .15rem; font-size: .85rem; font-family: var(--font-mono); }

.terms {
  margin-top: 2rem; padding: 1.4rem 1.6rem; border-radius: var(--radius-sm);
  background: var(--white); border-left: 6px solid var(--orange);
  font-size: .97rem;
}
.terms ul { margin: .4rem 0 0; padding-left: 1.2rem; }

/* Asiakkaiden lainaukset */
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.quote-card {
  margin: 0; display: flex; flex-direction: column; justify-content: space-between; gap: 1.5rem;
  background: var(--white); border: 2px solid #e4e4e4;
  border-radius: var(--radius) var(--radius) var(--radius) 6px; padding: 2rem;
}
.quote-card blockquote { margin: 0; font-size: 1.15rem; line-height: 1.55; font-style: italic; }
.quote-card blockquote p:last-child { margin: 0; }
.quote-card figcaption { display: flex; align-items: center; gap: 1rem; }
.quote-card strong { display: block; }
.quote-card span { color: var(--muted); font-size: .95rem; }
.quote-photo { width: 64px; height: 68px; flex: none; overflow: hidden; -webkit-mask: var(--bubble-frame) center / 100% 100% no-repeat; mask: var(--bubble-frame) center / 100% 100% no-repeat; }
.quote-photo img { width: 100%; height: 100%; object-fit: cover; }

/* Prosessi */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; counter-reset: step; }
.steps li { counter-increment: step; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .15); border-radius: var(--radius-sm); padding: 1.6rem 1.4rem; }
.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block; font-family: var(--font-display); font-size: 2.2rem; line-height: 1;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: .8rem;
}
.steps h3 { font-size: 1.15rem; }
.steps p { margin: 0; color: #d8d8d8; font-size: .98rem; }

/* Vaalit + softa */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.card { background-color: var(--white); border-radius: var(--radius); padding: 2.2rem; box-shadow: var(--shadow); }
.card-grad { color: var(--white); box-shadow: none; }
.card-grad .eyebrow { color: var(--white); }
.card-grad h2, .card-grad h3 { color: var(--white); }
.card-grad .checks li::before { background: var(--white); }
.card h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.price-rows { list-style: none; padding: 0; margin: 1rem 0 1.5rem; }
.price-rows li { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem 0; border-bottom: 1px dashed rgba(255, 255, 255, .45); }
.price-rows li span:last-child { font-family: var(--font-mono); white-space: nowrap; }
.tags { display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; margin: 1rem 0 0; list-style: none; }
.tags li { background: var(--paper-2); border-radius: 999px; padding: .4rem .85rem; font-size: .93rem; font-weight: 600; }

.card-title { font-family: var(--font-display); font-weight: 400; letter-spacing: .06em; font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.card-grad .card-title { color: var(--white); }

/* Alasivun hero ja murupolku */
.sub-hero { padding: 8rem 0 4.5rem; color: var(--white); position: relative; overflow: hidden; }
.sub-hero h1 { font-size: clamp(1.75rem, 6.4vw, 4rem); color: var(--white); max-width: 18ch; }
.sub-hero .lead { color: #ffffff; max-width: 46ch; }
.breadcrumb { font-family: var(--font-mono); font-size: .82rem; margin-bottom: 1.25rem; }
.breadcrumb a { color: var(--white); }
.breadcrumb span { opacity: .8; }
.offer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.offer-grid .addon h3 { font-size: 1.15rem; }
.topic-list { columns: 2; column-gap: 2.5rem; padding-left: 0; list-style: none; }
.topic-list li { break-inside: avoid; padding-left: 1.8rem; position: relative; margin-bottom: .9rem; }
.topic-list li::before {
  content: ""; position: absolute; left: 0; top: .35em; width: 1.15rem; height: 1.15rem; background: var(--grad);
  -webkit-mask: var(--bubble) center / contain no-repeat; mask: var(--bubble) center / contain no-repeat;
}
.topic-list strong { display: block; }
.list-intro { font-weight: 700; margin-bottom: 1.25rem; }
.note { font-size: .97rem; color: var(--muted); }

/* Meistä */
.about { display: grid; grid-template-columns: .9fr 1.1fr; gap: 3.5rem; align-items: start; }
.people { display: grid; gap: 1.25rem; }
.person { display: grid; grid-template-columns: 76px 1fr; gap: 1.1rem; align-items: center; background: var(--white); border-radius: var(--radius-sm); padding: 1.25rem; }
.avatar {
  width: 76px; height: 81px;
  -webkit-mask: var(--bubble-frame) center / 100% 100% no-repeat; mask: var(--bubble-frame) center / 100% 100% no-repeat;
  display: grid; place-items: center; overflow: hidden;
  font-family: var(--font-display); font-size: 1.7rem; color: var(--white);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.team-photo {
  margin: 0; aspect-ratio: 3 / 2; border-radius: var(--radius); overflow: hidden;
  display: grid; place-items: center; color: var(--white);
  font: 500 .85rem/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase;
}
.team-photo img { width: 100%; height: 100%; object-fit: cover; }
.person h3 { margin: 0 0 .15rem; font-size: 1.15rem; }
.person p { margin: 0; color: var(--muted); font-size: .95rem; }
.person .adj { font-family: var(--font-mono); font-size: .8rem; color: var(--red-deep); }

/* UKK */
.faq { max-width: 860px; }
.faq details { background: var(--white); border-radius: var(--radius-sm); margin-bottom: .75rem; border: 2px solid #e4e4e4; }
.faq summary { cursor: pointer; list-style: none; padding: 1.15rem 3.2rem 1.15rem 1.4rem; font-weight: 700; font-size: 1.08rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 1.3rem; top: 50%; transform: translateY(-50%); font-family: var(--font-mono); font-size: 1.4rem; color: var(--red-deep); }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 1.4rem 1.2rem; }
.faq details > div p:last-child { margin-bottom: 0; }

/* Lomake */
.contact { color: var(--white); }
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 3rem; align-items: start; }
.contact h2 { color: var(--white); }
.contact .eyebrow { color: var(--white); }
.contact-list { list-style: none; padding: 0; margin: 1.5rem 0 0; }
.contact-list li { margin-bottom: .9rem; }
.contact-list strong { display: block; }
.contact-list a { color: var(--white); }
.form { background: var(--white); color: var(--ink); border-radius: var(--radius); padding: 2rem; box-shadow: 0 30px 60px -30px rgba(60, 5, 0, .6); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { margin-bottom: 1rem; }
.field label, .field legend { display: block; font-weight: 700; margin-bottom: .35rem; font-size: .97rem; }
.field .opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem;
  padding: .8rem .9rem; border: 2px solid #d6d6d6; border-radius: 10px; background: #f7f7f7;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--orange); background: var(--white); }
.field textarea { min-height: 130px; resize: vertical; }
.consent { display: flex; gap: .6rem; align-items: flex-start; font-size: .93rem; margin: .5rem 0 1.25rem; }
.consent input { margin-top: .3rem; width: 1.1rem; height: 1.1rem; accent-color: var(--red-deep); }
.hidden-field { display: none; }

/* Alatunniste */
.site-footer { background: var(--ink); color: #cfcfcf; padding: 3.5rem 0 2.5rem; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 2rem; }
.site-footer img { height: 72px; width: auto; margin: 0 0 1rem; }
.site-footer a { color: #fff; }
.site-footer h2 { font-family: var(--font-body); font-weight: 800; font-size: 1rem; margin-bottom: .6rem; color: var(--white); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .35rem; }
/* Somenan sometilit alapalkissa */
.site-footer .social { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1.25rem 0 0; }
.site-footer .social li { margin: 0; }
.site-footer .social a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, .12); color: var(--white); transition: background-color .15s; }
.site-footer .social a:hover, .site-footer .social a:focus-visible { background: var(--red-bright); }
.site-footer .social svg { width: 22px; height: 22px; fill: currentColor; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 2.5rem; padding-top: 1.25rem; font-family: var(--font-mono); font-size: .8rem; }

/* Alasivut (tietosuoja, kiitos, 404) */
.page-hero { padding: 8rem 0 3.5rem; color: var(--white); }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); margin: 0; }
.prose { max-width: 760px; }
.prose h2 { font-family: var(--font-body); font-weight: 800; font-size: 1.35rem; margin-top: 2rem; }

/* ---------- Responsiivisuus ---------- */
@media (max-width: 960px) {
  .hero-grid, .about, .contact-grid, .split { grid-template-columns: 1fr; }
  .hero-art { width: 200px; justify-self: start; order: -1; }
  .pillars, .addons, .offer-grid { grid-template-columns: 1fr; }
  .topic-list { columns: 1; }
  .steps { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 46px; height: 46px; border-radius: 12px; border: 2px solid var(--white);
    background: transparent; color: var(--white); font-size: 1.3rem; cursor: pointer;
  }
  .nav {
    display: none; position: absolute; top: calc(var(--header-h) - 6px); left: 1.25rem; right: 1.25rem;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ink); border-radius: var(--radius-sm); padding: .75rem;
  }
  .nav.open { display: flex; }
  .nav a { padding: .8rem .75rem; }
  .nav .btn { margin-top: .5rem; justify-content: center; }
  .pricing, .form-row, .steps { grid-template-columns: 1fr; }
  .hero { padding-top: 7rem; }
  .hero-art { display: none; }
  .form, .plan, .card { padding: 1.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
  .btn:hover { transform: none; }
}

/* Koulutukset-sivu: neljä kipukohtaa, CTA-rivi, kolmen askeleen polku ja mobiilin tarjousnappi */
.pillars-4 { grid-template-columns: repeat(4, 1fr); }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; margin-top: 2.5rem; padding: 1.5rem 1.75rem; border-radius: var(--radius-sm); background: var(--paper-2); }
.cta-row p { margin: 0; font-weight: 600; font-size: 1.1rem; }
.steps-3 { grid-template-columns: repeat(3, 1fr); }
.addon-cta { display: flex; flex-direction: column; }
.addon-cta p { flex: 1; margin-bottom: 1.25rem; }
.addon-cta .btn { align-self: flex-start; }
.sticky-cta { display: none; }
@media (max-width: 1100px) { .pillars-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) {
  .pillars-4, .steps-3 { grid-template-columns: 1fr; }
  .sticky-cta { display: flex; justify-content: center; position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 40; box-shadow: 0 10px 30px -10px rgba(0,0,0,.45); }
  body:has(.sticky-cta) .site-footer { padding-bottom: 5.5rem; }
}
/* Selitetyt koulutusaiheet */
.topic-list-explained { margin-top: 1.5rem; }
.topic-list-explained li { margin-bottom: 1.6rem; color: var(--muted); line-height: 1.55; }
.topic-list-explained strong { color: var(--ink); font-size: 1.08rem; margin-bottom: .25rem; }
/* Somekoulutus-osio: kohderyhmät ja kanavat */
.sub-head { font-size: 1.35rem; margin: 2.75rem 0 1.1rem; }
.audience-grid .addon h3 { font-size: 1.08rem; }
.tags-lg li { font-size: 1rem; padding: .55rem 1rem; background: var(--white); border: 2px solid #e4e4e4; }
/* Perustajien kasvokuvat puhekuplakehyksessä */
.person { grid-template-columns: 92px 1fr; gap: 1.75rem; padding: 1.4rem 1.6rem; }
.person .avatar { width: 92px; height: 98px; flex-shrink: 0; }
.person .person-contact { margin-top: .6rem; }
/* Viisi tunnekorttia: 3 ylärivissä, 2 alarivissä */
.pillars-5 { grid-template-columns: repeat(6, 1fr); }
.pillars-5 > :nth-child(-n+3) { grid-column: span 2; }
.pillars-5 > :nth-child(n+4) { grid-column: span 3; }
@media (max-width: 1100px) { .pillars-5 { grid-template-columns: repeat(2, 1fr); } .pillars-5 > * { grid-column: auto !important; } .pillars-5 > :last-child { grid-column: 1 / -1 !important; } }
@media (max-width: 760px) { .pillars-5 { grid-template-columns: 1fr; } }
.person .role { font-weight: 600; color: var(--ink); font-size: .9rem; margin: 0 0 .2rem; }

/* Kielivalitsin (liput) */
.site-header .nav { margin-left: auto; }
.lang-switch { display: flex; align-items: center; gap: .4rem; }
.lang-switch a { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; border: 2px solid transparent; opacity: .75; transition: opacity .15s, border-color .15s; color: var(--white); text-decoration: none; font: 700 .85rem/1 var(--font-body); letter-spacing: .04em; }
.lang-switch a:hover { color: var(--white); }
.lang-switch a:hover, .lang-switch a[aria-current="true"] { opacity: 1; border-color: var(--white); }
.lang-switch img { width: 24px; height: auto; border-radius: 3px; box-shadow: 0 0 0 1px rgba(0,0,0,.15); }
@media (max-width: 760px) {
  .brand { margin-right: auto; }
  .lang-switch { order: 2; }
  .nav-toggle { order: 3; }
}
/* Alasvetovalikon oma nuoli, jotta se ei ole kiinni reunassa */
.field select {
  -webkit-appearance: none; appearance: none;
  padding-right: 3.25rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1.5 1.5 7 7l5.5-5.5' fill='none' stroke='%23141010' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.25rem center;
  background-size: 14px 9px;
  cursor: pointer;
}
.field select:focus {
  background-color: var(--white);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1.5 1.5 7 7l5.5-5.5' fill='none' stroke='%23141010' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1.25rem center; background-size: 14px 9px;
}

/* Soittopyyntö: lomake-ikkuna */
.callback-dialog {
  width: min(92vw, 440px); border: 0; border-radius: var(--radius); padding: 2rem 1.75rem 1.5rem;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.5); color: var(--ink);
}
.callback-dialog::backdrop { background: rgba(20,16,16,.55); }
.callback-dialog h2 { font-size: 1.6rem; margin: 0 2rem .6rem 0; }
.callback-dialog > p { margin: 0 0 1.1rem; color: var(--muted); font-size: .97rem; }
.callback-dialog .field { margin-bottom: .9rem; }
.callback-dialog .btn { width: 100%; justify-content: center; }
.callback-close { position: absolute; top: .8rem; right: .9rem; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--paper-2); font-size: 1.5rem; line-height: 1; cursor: pointer; color: var(--ink); }
.callback-note { font-size: .8rem; color: var(--muted); margin: .8rem 0 0; }
.callback-dialog { max-height: calc(100dvh - 2rem); overflow-y: auto; }
.callback-dialog textarea { min-height: 4.5rem; height: 4.5rem; }

/* Tumma tila: pidetään lomakkeet aina vaaleina ja tekstit tummina, jotta ne näkyvät */
:root { color-scheme: light; }
.field input, .field select, .field textarea {
  color: var(--ink); -webkit-text-fill-color: var(--ink); caret-color: var(--ink);
}
.field input::placeholder, .field textarea::placeholder { color: #6b6b6b; -webkit-text-fill-color: #6b6b6b; opacity: 1; }
.field select option { color: var(--ink); background: #fff; }
.field input:-webkit-autofill, .field textarea:-webkit-autofill {
  -webkit-text-fill-color: var(--ink); box-shadow: 0 0 0 1000px #fff inset;
}
.form, .callback-dialog { background-color: #fff; color: var(--ink); }
.form label, .callback-dialog label { color: var(--ink); }


/* Soittopyyntönapit sivun sisällä */
.btn-call { display: inline-flex; align-items: center; gap: .55rem; cursor: pointer; font: inherit; font-weight: 700; }
.btn-call svg { flex-shrink: 0; }
.btn-outline { background: transparent; color: var(--ink); border: 2px solid var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--white); }
.callback-inline {
  display: inline-flex; align-items: center; gap: .5rem; margin-top: 1.1rem; padding: .3rem 0;
  background: none; border: 0; color: var(--white); font: inherit; font-weight: 700; cursor: pointer;
  text-decoration: underline; text-underline-offset: .25em; text-decoration-thickness: 2px;
}
.callback-inline:hover { text-decoration-thickness: 3px; }
.callback-inline:focus-visible, .btn-call:focus-visible { outline: 3px solid var(--white); outline-offset: 3px; }
.callback-contact-text { margin: 1.75rem 0 .8rem; font-weight: 600; }
.cta-row .btn-call { margin-left: .25rem; }
.cta-row p { flex: 1 1 28rem; }
.cta-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.cta-row .btn-call { margin-left: 0; }
/* <button>-elementit samannäköisiksi kuin linkkinapit (selaimen oletustausta pois) */
button.btn { -webkit-appearance: none; appearance: none; }
.btn-ghost { background-color: transparent; }
/* Kaikki lomake-elementit ja napit käyttävät graafisen ohjeen leipätekstifonttia (Archivo) */
button, input, select, textarea { font-family: var(--font-body); }

/* Saavutettavuus ilman värimuutoksia: valkoiselle tekstille hienovarainen varjo, joka erottaa sen oranssista taustasta */
.hero .eyebrow, .hero .hero-facts, .hero-actions .btn-ghost,
.sub-hero .breadcrumb, .sub-hero .eyebrow,
.contact h2, .contact .eyebrow, .contact .lead, .contact-list, .callback-contact-text,
.card-grad .eyebrow, .card-grad .card-title, .card-grad p {
  text-shadow: 0 1px 2px rgba(90, 15, 0, .55), 0 0 14px rgba(110, 20, 0, .35);
}
.hero .eyebrow { opacity: 1; }
.breadcrumb span { opacity: 1; }
