/* ==========================================================================
   Toneco – Suomen sivusto
   Tyylitiedosto (design system + komponentit)
   Brändivärit: pinkki #ED017F, tummansininen #003767, teksti #231F20
   ========================================================================== */

/* --- Design tokens --------------------------------------------------------- */
:root {
  --pink: #ed017f;
  --pink-dark: #c30169;
  --navy: #003767;
  --navy-2: #204980;
  --navy-dark: #002846;
  --ink: #231f20;
  --body: #4a4f55;
  --muted: #6b7280;
  --line: #e7e9ee;
  --bg: #ffffff;
  --bg-soft: #f7f6f0;
  --bg-navy: #002846;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .08);
  --shadow: 0 10px 30px rgba(16, 24, 40, .08);
  --shadow-lg: 0 24px 60px rgba(16, 24, 40, .14);

  --maxw: 1160px;
  --gutter: clamp(20px, 5vw, 48px);

  --font: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --font-head: "Poppins", "Montserrat", -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --step--1: clamp(.82rem, .8rem + .1vw, .9rem);
  --step-0: clamp(1rem, .96rem + .2vw, 1.08rem);
  --step-1: clamp(1.2rem, 1.1rem + .5vw, 1.4rem);
  --step-2: clamp(1.5rem, 1.3rem + .9vw, 2rem);
  --step-3: clamp(2rem, 1.6rem + 1.8vw, 3rem);
  --step-4: clamp(2.6rem, 2rem + 2.8vw, 4.2rem);
}

/* --- Reset / base ---------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.15; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.02em; }
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); letter-spacing: -.01em; }
p { margin: 0 0 1rem; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--pink); outline-offset: 2px; border-radius: 4px; }

/* --- Layout helpers -------------------------------------------------------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(56px, 8vw, 110px); }
.section--soft { background: var(--bg-soft); }
.section--navy { background: var(--bg-navy); color: #cdd7e5; }
.section--navy h2, .section--navy h3 { color: #fff; }
.narrow { max-width: 760px; }
.center { text-align: center; margin-inline: auto; }
.eyebrow {
  display: inline-block; font-size: var(--step--1); font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--pink);
  margin-bottom: 14px;
}
.section--navy .eyebrow { color: #ff5cae; }
.lead { font-size: var(--step-1); color: var(--muted); font-weight: 400; }
.section--navy .lead { color: #aebdd1; }

/* Montage background section (photo collage + purple-pink gradient) */
.section--montage { position: relative; overflow: hidden; background: var(--bg-navy); color: #fff; }
.section--montage > .container { position: relative; z-index: 2; }
.section--montage::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: url("../assets/photos/montage-venues.jpg") center / cover no-repeat;
}
.section--montage::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(125deg, rgba(38, 8, 66, .86) 0%, rgba(140, 16, 104, .76) 48%, rgba(237, 1, 127, .72) 100%);
}
.section--montage h2 { color: #fff; }
.section--montage .eyebrow { color: #ffc4e3; }
.section--montage .lead { color: rgba(255, 255, 255, .92); }

/* --- Buttons --------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  font: inherit; font-weight: 700; font-size: var(--step-0);
  padding: .82em 1.5em; border-radius: var(--radius-pill);
  border: 2px solid transparent; cursor: pointer; transition: .18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--pink); color: #fff; box-shadow: 0 8px 20px rgba(237, 1, 127, .28); }
.btn--primary:hover { background: var(--pink-dark); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--light { background: #fff; color: var(--navy); }
.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.btn--outline-light:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn--lg { padding: 1em 1.9em; font-size: var(--step-1); }

/* --- Header / nav ---------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; height: 74px; padding-inline: clamp(20px, 4vw, 44px); }
.brand { justify-self: start; display: flex; align-items: center; gap: 10px; font-weight: 800; }
.brand__logo { height: 40px; width: auto; }
.nav__links { justify-self: center; display: flex; align-items: center; gap: 4px; }
.nav__link {
  position: relative; padding: 10px 12px; border-radius: var(--radius-sm);
  font-weight: 600; color: var(--ink); font-size: .95rem; white-space: nowrap;
  /* inline-flex: linkit tasautuvat samalle riville riippumatta siitä onko
     kohdalla alasvetovalikkoa (.has-dropdown-kääre) vai ei */
  display: inline-flex; align-items: center;
}
.has-dropdown { display: flex; align-items: center; }
/* Kuusi valikkokohtaa: tiivistetään ennen mobiilivalikkoon siirtymistä */
@media (max-width: 1180px) {
  .nav { gap: 12px; padding-inline: 20px; }
  .nav__link { padding: 10px 9px; font-size: .9rem; }
  .nav__login { padding: 10px 8px; font-size: .92rem; }
  .nav__actions .btn { padding: .7em 1.1em; font-size: .92rem; }
}
.nav__link:hover { background: var(--bg-soft); }
.nav__link[aria-current="page"] { color: var(--pink); }
.nav__actions { justify-self: end; display: flex; align-items: center; gap: 10px; }
.nav__login { font-weight: 700; padding: 10px 14px; }
.nav__login:hover { color: var(--pink); }

/* Dropdown */
.has-dropdown { position: relative; }
.dropdown {
  position: absolute; top: calc(100% + 8px); left: 0;
  min-width: 280px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: 10px; opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: .16s ease;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a { display: flex; gap: 12px; padding: 12px; border-radius: var(--radius-sm); align-items: flex-start; }
.dropdown a:hover { background: var(--bg-soft); }
.dropdown .di { font-size: 1.3rem; line-height: 1; margin-top: 2px; }
.dropdown .dt { font-weight: 700; color: var(--ink); display: block; }
.dropdown .dd { font-size: .85rem; color: var(--muted); }

/* Mobile nav toggle */
.nav__toggle {
  display: none; flex-direction: column; gap: 5px; width: 44px; height: 44px;
  align-items: center; justify-content: center; background: none; border: 0; cursor: pointer;
}
.nav__toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: .2s; }

@media (max-width: 1040px) {
  /* Mobiilivalikko on normaalissa virrassa: brändi + nappi ensimmäisellä rivillä,
     linkit ja toiminnot omilla riveillään. Ei absoluuttista asemointia, joten
     mikään ei peitä hampurilaisnappia eikä valikko jää auki. */
  .nav {
    display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
    column-gap: 12px; row-gap: 0;
  }
  .brand { order: -1; }
  .nav__toggle { order: 0; display: flex; }
  .nav__links { order: 1; }
  .nav__actions { order: 2; }
  .nav__links, .nav__actions { display: none; }

  /* Avattu valikko peittää sisällön kokonaan – ei läpikuultavuutta */
  .site-header.mobile-open { background: #fff; box-shadow: var(--shadow); }
  .mobile-open .nav { height: auto; padding-bottom: 20px; }
  .mobile-open .brand, .mobile-open .nav__toggle { height: 74px; }
  .mobile-open .nav__links,
  .mobile-open .nav__actions {
    display: flex; flex-direction: column; align-items: stretch;
    flex: 0 0 100%; width: 100%; gap: 6px;
  }
  .mobile-open .nav__links {
    padding-top: 12px; border-top: 1px solid var(--line);
    max-height: calc(100dvh - 220px); overflow-y: auto; overscroll-behavior: contain;
  }
  .mobile-open .nav__actions { margin-top: 16px; gap: 10px; }

  .nav__link { padding: 12px 14px; }
  /* Mobiilissa alasveto latautuu linkin alle, ei viereen */
  .has-dropdown { display: block; }
  .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 0 14px; min-width: 0; }
  .has-dropdown > .nav__link::after { content: " ▾"; }
  .nav__actions .btn { justify-content: center; }
  .nav__login { text-align: center; }
}

/* --- Hero ------------------------------------------------------------------ */
.hero { position: relative; overflow: hidden; background: var(--bg-soft); }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(60% 55% at 85% 5%, rgba(237, 1, 127, .12), transparent 60%),
    radial-gradient(50% 50% at 5% 90%, rgba(32, 73, 128, .12), transparent 60%);
  pointer-events: none;
}
.hero__inner { position: relative; padding-block: clamp(56px, 9vw, 120px); max-width: 880px; }
.hero__inner.center { margin-inline: auto; }
.hero h1 { margin-bottom: .35em; }
.hero .lead { max-width: 620px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero__inner.center .hero__cta { justify-content: center; }
.hero__note { margin-top: 18px; font-size: var(--step--1); color: var(--muted); }

/* Split hero (with product visual) */
.hero--split .hero__grid {
  position: relative; display: grid; grid-template-columns: 1.05fr 1fr;
  gap: clamp(30px, 5vw, 64px); align-items: center;
  padding-block: clamp(28px, 3.5vw, 52px);
}
.hero--split .hero__inner { padding-block: 0; max-width: none; }
/* Maltillisempi otsikko: hero mahtuu läppärin näytölle CTA:ta myöten */
.hero--split h1 { font-size: clamp(2rem, 1.5rem + 2.5vw, 3.4rem); text-wrap: balance; }
.hero--split .lead { max-width: 600px; }
.hero--split .hero__cta { margin-top: 24px; }
/* Hero-kuvan koko: sama etusivulla ja sisäsivuilla (ks. .page-hero--split).
   Kiinteä kuvasuhde + cover, jotta pysty- ja vaakakuvat näkyvät samankokoisina.
   max-height rajaa korkeuden niin että hero + CTA mahtuvat läppärin näytölle. */
.hero--split .hero__visual img,
.page-hero--split .page-hero__visual img {
  width: 100%; height: auto; aspect-ratio: 20 / 21;
  max-height: min(58vh, 520px); object-fit: cover;
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
}
.hero--split .hero__visual img { object-position: center 30%; }
@media (max-width: 900px) {
  .hero--split .hero__grid { grid-template-columns: 1fr; gap: 28px; padding-block: 28px 36px; }
  /* Teksti ensin – otsikko ja CTA näkyvät heti, kuva vasta niiden jälkeen */
  .hero--split .hero__visual { order: 2; max-width: 560px; margin-inline: auto; }
  .hero--split .hero__visual img { max-height: 34vh; aspect-ratio: 16 / 10; }
  .hero--split .hero__cta { margin-top: 22px; }
  .hero--split .hero__cta .btn { flex: 1 1 auto; justify-content: center; }
  .hero--split .hero__note { margin-top: 14px; }
}
@media (max-width: 620px) {
  /* Otsikko ja lead maltillisemmiksi, jotta CTA mahtuu ensimmäiseen näkymään */
  .hero--split h1 { font-size: clamp(1.95rem, 7.4vw, 2.5rem); }
  .hero--split .lead { font-size: var(--step-0); }
  .hero--split .eyebrow { margin-bottom: 6px; }
}

/* Steps */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
@media (max-width: 780px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding: 30px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.step::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 16px;
  background: var(--pink); color: #fff; font-family: var(--font-head); font-weight: 700;
  font-size: 1.2rem; border-radius: 12px;
}
.step h3 { margin-bottom: .3em; }
.step p { margin: 0; color: var(--muted); font-size: .98rem; }

/* --- Logo strip / stats ---------------------------------------------------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.stat { text-align: center; }
.stat__num { font-size: var(--step-3); font-weight: 800; color: var(--pink); letter-spacing: -.03em; line-height: 1; }
.stat__label { color: var(--muted); margin-top: 8px; font-size: .98rem; }
.stats__src { text-align: center; font-size: var(--step--1); color: var(--muted); margin: 22px 0 0; }
@media (max-width: 640px) { .stats { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .stat__num { font-size: var(--step-2); }
  .stat__label { font-size: .8rem; line-height: 1.35; }
}

.trust { text-align: center; color: var(--muted); font-weight: 600; letter-spacing: .04em; }

/* Laitevalmistajanosto – tekstipohjainen kunnes logot saadaan */
.brand-strip {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 14px clamp(20px, 4vw, 46px); margin-top: 34px;
  padding: 22px clamp(18px, 4vw, 34px);
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
}
.brand-strip__item {
  font-family: var(--font-head); font-weight: 700; font-size: clamp(1.05rem, .9rem + .6vw, 1.5rem);
  color: var(--navy); letter-spacing: -.02em; opacity: .62;
}

/* Logo carousel (infinite auto-scroll marquee) */
.marquee {
  margin-top: 30px; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track { display: flex; width: max-content; align-items: center; animation: marquee 34s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item {
  flex: none; display: flex; align-items: center; justify-content: center;
  padding: 0 clamp(26px, 4vw, 58px);
}
/* Asiakaslogot esitetään brändiväreissään: harmaasävy olisi muutos logoon,
   jonka moni brändiohje kieltää, ja tunnistettavuus on logoseinän koko tarkoitus. */
.marquee__item img { height: 64px; width: auto; object-fit: contain; opacity: .9; transition: .25s ease; }
.marquee__item:hover img { opacity: 1; }
.marquee__item span {
  font-family: var(--font-head); font-weight: 700; font-size: 1.35rem;
  color: var(--navy); letter-spacing: -.02em; opacity: .5; white-space: nowrap; transition: .25s ease;
}
.marquee__item:hover span { opacity: 1; color: var(--pink); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee__track { animation: none; } }
/* Puhelimella 64 px korkea logo vie leveimmillään lähes koko ruudun leveyden,
   jolloin kerrallaan näkyy vain yksi. Pienempi koko ja tiiviimpi välistys
   tuovat rinnalle toisen, jolloin rivi lukeutuu logoseinänä eikä diaesityksenä. */
@media (max-width: 560px) {
  .marquee__item img { height: 46px; }
  .marquee__item { padding: 0 20px; }
}

/* --- Feature grid ---------------------------------------------------------- */
.grid { display: grid; gap: 26px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; transition: .2s ease;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: transparent; }
.card__icon {
  width: 54px; height: 54px; display: grid; place-items: center; font-size: 1.5rem;
  border-radius: 15px; margin-bottom: 18px;
  background: linear-gradient(135deg, var(--pink), #ff5ba7);
  box-shadow: 0 8px 18px rgba(237, 1, 127, .28);
}
.card__icon .ico { display: block; width: 27px; height: 27px; color: #fff; }
/* Small inline icons (dropdown, chips, contact) */
.ico-sm { display: block; }
.dropdown .di .ico-sm { width: 22px; height: 22px; color: var(--pink); }
.chip .em { display: inline-flex; align-items: center; }
.chip .em .ico-sm { width: 19px; height: 19px; }
.info-list .info .em { display: inline-flex; }
.info-list .info .em .ico-sm { width: 26px; height: 26px; color: #ff5cae; }
.card h3 { margin-bottom: .35em; }
.card p { margin: 0; color: var(--muted); font-size: .98rem; }

/* Mobiili: tiiviit kortit – ikoni otsikon vierelle, pienempi täyte.
   Puolittaa korttipinojen korkeuden puhelimella. */
@media (max-width: 620px) {
  .grid { gap: 14px; }
  .card {
    display: grid; grid-template-columns: 40px 1fr;
    column-gap: 14px; row-gap: 4px; align-items: center;
    padding: 18px; border-radius: var(--radius-sm);
  }
  .card > *:not(.card__icon) { grid-column: 2; }
  .card:hover { transform: none; }
  .card__icon {
    grid-column: 1; grid-row: 1; width: 40px; height: 40px;
    border-radius: 11px; margin-bottom: 0; box-shadow: 0 5px 12px rgba(237, 1, 127, .24);
  }
  .card__icon .ico { width: 21px; height: 21px; }
  .card h3 { font-size: 1.04rem; margin-bottom: 0; }
  .card p { font-size: .92rem; }
  .svc a.card__more { margin-top: 4px; padding-top: 4px; }
}

/* Kuvateksti, esim. havainnekuvan merkintä */
.device-note {
  margin-top: 10px !important; font-size: .78rem; color: var(--muted) !important;
  font-style: italic;
}

/* Laitteen käyttökohteet kortin alareunassa */
.device-use {
  margin-top: auto; padding-top: 14px; font-size: .85rem; font-weight: 700;
  color: var(--pink) !important;
}

/* Laitekuva kortin sisällä */
.device-img {
  width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: var(--radius-sm); background: var(--bg-soft); margin-bottom: 18px;
}
@media (max-width: 620px) {
  /* Mediakortit säilyttävät pystysuunnan myös tiiviissä mobiilitilassa */
  .card--media { display: block; }
  .card--media .device-img { margin-bottom: 14px; }
}

/* Service cards (bigger) */
.svc { display: flex; flex-direction: column; }
.svc .card__icon { background: linear-gradient(135deg, var(--navy), var(--navy-2)); box-shadow: 0 8px 18px rgba(0, 55, 103, .26); }
.svc a.card__more { margin-top: auto; padding-top: 16px; font-weight: 700; color: var(--pink); display: inline-flex; gap: 6px; }
.svc a.card__more:hover { gap: 12px; }

/* --- Media / split --------------------------------------------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 70px); align-items: center; }
.split--rev .split__media { order: 2; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } .split--rev .split__media { order: 0; } }
.split__media {
  border-radius: var(--radius-lg); min-height: 320px;
  background: linear-gradient(135deg, var(--navy), var(--pink));
  position: relative; overflow: hidden; box-shadow: var(--shadow);
  display: grid; place-items: center; color: #fff;
}
.split__media .emoji { font-size: clamp(4rem, 12vw, 7rem); filter: drop-shadow(0 10px 20px rgba(0,0,0,.25)); }
.split__media--photo { background: none; box-shadow: none; min-height: 0; padding: 0; display: block; }
.split__photo { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); aspect-ratio: 4 / 3; }

/* Venue gallery – ei hover-efektiä, koska kuvat eivät ole linkkejä */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 900px) { .gallery { grid-template-columns: repeat(2, 1fr); gap: 12px; } }
.gallery figure { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; box-shadow: var(--shadow-sm); }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery figcaption {
  position: absolute; inset: auto 0 0 0; padding: 26px 18px 16px;
  color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 1.05rem;
  background: linear-gradient(to top, rgba(15, 20, 30, .78), transparent);
}
@media (max-width: 560px) {
  .gallery figure { aspect-ratio: 1 / 1; border-radius: var(--radius-sm); }
  .gallery figcaption { padding: 20px 12px 10px; font-size: .88rem; }
}
.checklist li { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; }
.checklist .tick { flex: none; width: 24px; height: 24px; border-radius: 50%; background: rgba(237,1,127,.12); color: var(--pink); display: grid; place-items: center; font-size: .8rem; font-weight: 900; margin-top: 3px; }

/* --- Industries ------------------------------------------------------------ */
.chips { display: flex; flex-wrap: wrap; gap: 14px; }
.chip {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 20px; border-radius: var(--radius-pill);
  background: #fff; border: 1px solid var(--line); font-weight: 700; color: var(--ink);
  transition: .18s ease;
}
.chip:hover { border-color: var(--pink); color: var(--pink); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.chip .em { font-size: 1.15rem; }

/* --- Tiimi ----------------------------------------------------------------- */
/* minmax(0,1fr): pitkät sähköpostiosoitteet eivät saa venyttää sarakkeita */
.team { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
@media (max-width: 1000px) { .team { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 720px) { .team { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; } }
.member {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; text-align: center;
}
.member img, .member__initials {
  width: 100%; max-width: 140px; height: auto; aspect-ratio: 1; margin: 0 auto 14px;
  border-radius: 50%; object-fit: cover; object-position: top center;
}
.member__initials {
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--navy), var(--navy-2));
  color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 2rem;
}
.member h3 { font-size: 1.05rem; margin-bottom: 2px; }
.member__role {
  color: var(--muted); font-size: .86rem; margin: 0 0 10px; line-height: 1.4;
  overflow-wrap: break-word; hyphens: auto;
}
.member__contact { display: grid; gap: 3px; margin: 0; font-size: .86rem; font-weight: 600; }
.member__contact a { color: var(--pink); word-break: break-word; }
.member__contact a:hover { text-decoration: underline; }
@media (max-width: 520px) {
  .member { padding: 14px 12px; }
  .member img, .member__initials { max-width: 92px; margin-bottom: 10px; }
  .member h3 { font-size: .95rem; }
  .member__role { font-size: .78rem; }
  .member__contact { font-size: .78rem; }
}

/* --- Testimonials ---------------------------------------------------------- */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
@media (max-width: 900px) { .quotes { grid-template-columns: 1fr; } }
.quote {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; display: flex; flex-direction: column;
}
.quote__stars { color: #f5b301; margin-bottom: 14px; letter-spacing: 2px; }
.quote h3 { font-size: var(--step-0); font-weight: 800; }
.quote p { color: var(--muted); font-size: .96rem; }
.quote__by { margin-top: auto; font-weight: 800; color: var(--navy); padding-top: 14px; }

/* --- CTA band -------------------------------------------------------------- */
.cta-band {
  background: linear-gradient(120deg, var(--navy), var(--navy-dark) 55%, #2a1730);
  color: #fff; border-radius: var(--radius-lg); padding: clamp(40px, 6vw, 72px);
  text-align: center; position: relative; overflow: hidden;
}
.cta-band::after {
  content: ""; position: absolute; width: 340px; height: 340px; right: -80px; top: -120px;
  background: radial-gradient(circle, rgba(237,1,127,.5), transparent 70%);
}
.cta-band h2 { color: #fff; position: relative; }
.cta-band p { color: #c7d3e4; max-width: 560px; margin-inline: auto; position: relative; }
.cta-band .hero__cta { justify-content: center; position: relative; }

/* --- Inline CTA (kevyt välinosto sivun sisällä) ---------------------------- */
.cta-inline {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 14px 24px; text-align: center;
  margin-top: 44px; padding: 22px clamp(20px, 4vw, 34px);
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
}
.cta-inline p { margin: 0; font-weight: 700; color: var(--ink); }
.cta-inline .cta-inline__note { font-weight: 500; color: var(--muted); font-size: var(--step--1); }
.section--soft .cta-inline { background: #fff; }
@media (max-width: 620px) {
  .cta-inline { border-radius: var(--radius); margin-top: 28px; padding: 20px; gap: 12px; }
  .cta-inline .btn { width: 100%; justify-content: center; }
}

/* --- Kiinteä mobiili-CTA --------------------------------------------------- */
.cta-sticky {
  position: fixed; inset: auto 0 0 0; z-index: 60; display: none;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, .95); border-top: 1px solid var(--line);
  box-shadow: 0 -6px 20px rgba(15, 20, 30, .1);
  transform: translateY(110%); transition: transform .25s ease;
}
.cta-sticky .btn { width: 100%; justify-content: center; }
.cta-sticky.is-visible { transform: translateY(0); }
@media (max-width: 720px) {
  .cta-sticky { display: block; }
  body.has-sticky-cta { padding-bottom: 74px; }
}
@media (prefers-reduced-motion: reduce) { .cta-sticky { transition: none; } }

/* --- Pricing --------------------------------------------------------------- */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; align-items: stretch; }
@media (max-width: 900px) { .price-grid { grid-template-columns: 1fr; max-width: 420px; margin-inline: auto; } }
.plan {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 34px 30px; display: flex; flex-direction: column;
}
.plan--featured { border-color: var(--pink); box-shadow: var(--shadow-lg); position: relative; }
.plan__tag { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--pink); color: #fff; font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 5px 14px; border-radius: var(--radius-pill); }
.plan h3 { margin-bottom: 4px; }
.plan__price { font-size: var(--step-3); font-weight: 800; color: var(--ink); letter-spacing: -.03em; }
.plan__price small { font-size: 1rem; font-weight: 600; color: var(--muted); }
/* Sanallinen hinta ("Tarjouksesta") ei tarvitse numerohinnan kokoa */
.plan__price--text { font-size: var(--step-1); color: var(--navy); letter-spacing: -.01em; }
.plan__desc { color: var(--muted); font-size: .95rem; margin-bottom: 20px; }
.price-vat { font-size: .78rem; color: var(--muted); margin: 5px 0 0; line-height: 1.45; }
.plan .price-vat { margin: 6px 0 18px; }
.plan ul { margin: 0 0 26px; display: grid; gap: 12px; }
/* EI flexiä. Flex-säiliössä jokainen sisäkkäinen elementti — linkki tai <strong> —
   muuttuu omaksi flex-kohteekseen, jolloin teksti pilkkoutuu paloihin ja rivittyy
   väärässä järjestyksessä. Merkki asemoidaan, teksti virtaa normaalina tekstinä,
   ja rivin sisäinen merkintä toimii myös tulevissa kohdissa. */
.plan li { position: relative; padding-left: 22px; font-size: .96rem; }
.plan li .tick { position: absolute; left: 0; top: 0; color: var(--pink); font-weight: 900; }
.plan .btn { margin-top: auto; justify-content: center; }

/* Mobiili: tiiviimmät hinnoittelukortit */
@media (max-width: 620px) {
  .price-grid { gap: 16px; }
  .plan { padding: 24px 20px; }
  .plan__price { font-size: var(--step-2); }
  .plan__desc { margin-bottom: 14px; }
  .plan ul { margin-bottom: 20px; gap: 9px; }
  .plan li { font-size: .92rem; }
  .quotes { gap: 14px; }
  .quote { padding: 22px 20px; }
  .quote__stars { margin-bottom: 8px; }
}

/* --- Vertailutaulukko ------------------------------------------------------ */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius); }
.compare {
  width: 100%; min-width: 620px; border-collapse: collapse;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  font-size: .95rem;
}
.compare th, .compare td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); }
.compare thead th {
  font-family: var(--font-head); font-weight: 700; color: #fff; background: var(--navy);
  font-size: .95rem; white-space: nowrap;
}
.compare thead th:first-child { background: var(--navy-dark); }
.compare tbody th { font-weight: 700; color: var(--ink); background: var(--bg-soft); width: 30%; }
.compare tbody td { color: var(--muted); }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }
.compare .yes { color: var(--pink); font-weight: 700; }
.table-note { font-size: var(--step--1); color: var(--muted); margin-top: 10px; }
@media (max-width: 700px) {
  .compare { font-size: .88rem; min-width: 540px; }
  .compare th, .compare td { padding: 11px 12px; }
  .table-wrap { box-shadow: inset -14px 0 14px -14px rgba(16,24,40,.25); }
}

/* --- Page hero (inner pages) ---------------------------------------------- */
.page-hero { background: var(--bg-soft); position: relative; overflow: hidden; }
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(50% 60% at 90% 0%, rgba(237,1,127,.1), transparent 60%);
}
.page-hero__inner { position: relative; padding-block: clamp(48px, 7vw, 92px); max-width: 760px; }

/* Split-hero sisäsivuille – sama idea kuin etusivulla: kuva heti tekstin rinnalle */
/* Sarakejako, väli ja kuvan korkeus samat kuin etusivun herossa */
.page-hero--split .page-hero__grid {
  position: relative; display: grid; grid-template-columns: 1.05fr 1fr;
  gap: clamp(30px, 5vw, 64px); align-items: center;
  padding-block: clamp(28px, 3.5vw, 52px);
}
.page-hero--split .page-hero__inner { padding-block: 0; max-width: none; }
.page-hero--split h1 { font-size: clamp(1.9rem, 1.4rem + 2.3vw, 3.1rem); text-wrap: balance; }
.page-hero--split .lead { max-width: 560px; }
.page-hero--split .hero__cta { margin-top: 24px; }
.page-hero--split .page-hero__visual img {
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
}
@media (max-width: 900px) {
  .page-hero--split .page-hero__grid { grid-template-columns: 1fr; gap: 26px; padding-block: 26px 34px; }
  /* Teksti ensin, kuva vasta sen jälkeen */
  .page-hero--split .page-hero__visual { order: 2; max-width: 560px; margin-inline: auto; }
  .page-hero--split .page-hero__visual img { max-height: 34vh; aspect-ratio: 16 / 10; }
  .page-hero--split .hero__cta .btn { flex: 1 1 auto; justify-content: center; }
}
@media (max-width: 620px) {
  .page-hero--split h1 { font-size: clamp(1.8rem, 6.8vw, 2.3rem); }
  .page-hero--split .lead { font-size: var(--step-0); }
}
.breadcrumb { font-size: var(--step--1); color: var(--muted); margin-bottom: 14px; }
.breadcrumb a:hover { color: var(--pink); }

/* --- FAQ ------------------------------------------------------------------- */
.faq { max-width: 760px; margin-inline: auto; }
.faq details { border-bottom: 1px solid var(--line); padding: 20px 0; }
.faq summary { font-weight: 700; color: var(--ink); cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 20px; font-size: 1.05rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--pink); font-weight: 800; font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 14px 0 0; color: var(--muted); }

/* --- Contact form ---------------------------------------------------------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 620px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 700; font-size: .9rem; color: var(--ink); }
.field input, .field textarea, .field select {
  font: inherit; padding: 13px 15px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: #fff; color: var(--ink); transition: .15s;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--pink); outline: none; box-shadow: 0 0 0 3px rgba(237,1,127,.14); }
.field textarea { resize: vertical; min-height: 130px; }
.form-note { font-size: var(--step--1); color: var(--muted); }

.info-list { display: grid; gap: 22px; }
.info-list .info { display: flex; gap: 14px; align-items: flex-start; }
.info-list .info .em { font-size: 1.5rem; }
.info-list .info b { display: block; color: var(--ink); }
.info-list .info a { color: var(--body); }
.info-list .info a:hover { color: var(--pink); }
/* Contact list on dark (navy) background */
.section--navy .info-list .info b { color: #fff; }
.section--navy .info-list .info a { color: #cdd7e5; }
.section--navy .info-list .info a:hover { color: #fff; }

/* --- Footer ---------------------------------------------------------------- */
.site-footer { background: var(--bg-navy); color: #9fb0c6; padding-block: 64px 34px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 460px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 16px; }
.site-footer a { color: #9fb0c6; }
.site-footer a:hover { color: #fff; }
.site-footer li { margin-bottom: 10px; }
.footer-brand .brand__logo { height: 48px; }
.footer-brand__logo { filter: brightness(0) invert(1); opacity: .92; }
.footer-brand p { margin-top: 16px; max-width: 300px; color: #8398b3; }
.footer-social { display: flex; gap: 12px; margin-top: 20px; }
.footer-social a { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.08); display: grid; place-items: center; transition: .18s; }
.footer-social a:hover { background: var(--pink); color: #fff; transform: translateY(-2px); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 46px; padding-top: 24px; display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; font-size: .88rem; }
.footer-bottom .legal { display: flex; flex-wrap: wrap; gap: 20px; }

/* --- Utilities / motion ---------------------------------------------------- */
.mt-0 { margin-top: 0; }
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .card:hover, .chip:hover { transform: none; }
}

/* --- Lakisivut (tietosuoja, sopimusehdot) ---------------------------------- */
.legaldoc { max-width: 820px; }
.legaldoc h2 {
  font-size: var(--step-2); margin-top: 2.2em; padding-top: 1.4em;
  border-top: 1px solid var(--line);
}
.legaldoc > h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.legaldoc h3 { font-size: var(--step-1); margin-top: 1.8em; }
.legaldoc h4 {
  font-size: var(--step-0); font-weight: 700; color: var(--navy);
  margin-top: 1.6em; margin-bottom: .4em;
}
.legaldoc ul, .legaldoc ol { list-style: revert; padding-left: 1.4em; margin: 0 0 1rem; }
.legaldoc li { margin-bottom: .45em; }
.legaldoc a { color: var(--pink); text-decoration: underline; text-underline-offset: 2px; }
.legaldoc dl { margin: 0 0 1rem; }
.legaldoc dt { font-weight: 700; color: var(--ink); }
.legaldoc dd { margin: 0 0 .5em; }
.legaldoc__meta {
  font-size: var(--step--1); color: var(--muted);
  padding: 14px 18px; background: var(--bg-soft);
  border-left: 3px solid var(--pink); border-radius: var(--radius-sm);
  margin-bottom: 34px;
}
.legaldoc__toc {
  margin: 0 0 40px; padding: 22px 26px;
  background: var(--bg-soft); border-radius: var(--radius);
}
.legaldoc__toc h2 {
  font-size: var(--step-0); margin: 0 0 .7em; padding: 0; border: 0;
  text-transform: uppercase; letter-spacing: .08em; color: var(--muted);
}
.legaldoc__toc ul { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: 34px; }
.legaldoc__toc li { margin-bottom: .4em; break-inside: avoid; }
.legaldoc__toc a { color: var(--navy); text-decoration: none; font-weight: 500; }
.legaldoc__toc a:hover { color: var(--pink); text-decoration: underline; }
@media (max-width: 640px) {
  .legaldoc__toc ul { columns: 1; }
}

/* Hunajapurkki: Netlify Formsin bottisuodatus. Kenttä on piilotettu ihmisiltä
   mutta luettavissa koneille – jos siihen tulee sisältöä, lähetys on botti.
   Ei display:none, koska osa boteista ohittaa piilotetut kentät. */
.hunaja {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}



/* Kielipalkki: ehdotus kansainväliselle kävijälle, ei ohjaus.
   Sijoittuu headerin yläpuolelle ja työntää sisältöä alaspäin – ei peitä
   mitään, joten sticky-header toimii ennallaan. */
.langbar {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  background: var(--navy); color: #fff;
  padding: 10px 46px 10px 20px; position: relative;
  font-size: .88rem; line-height: 1.4; text-align: center;
}
.langbar a { color: #fff; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.langbar__close {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  background: none; border: 0; color: #fff; font-size: 1.4rem; line-height: 1;
  padding: 4px 10px; cursor: pointer; opacity: .7; transition: opacity .2s ease;
}
.langbar__close:hover { opacity: 1; }
@media (max-width: 560px) { .langbar { font-size: .82rem; padding: 9px 40px 9px 14px; } }

/* Hintakortin napit: Vibesissä on kaksi (kokeilu + osto), Hitsissä yksi.
   Pystysuunta pitää kortit samanlevyisinä kapeallakin näytöllä. */
.plan__cta { display: flex; flex-direction: column; gap: 10px; align-items: stretch; }
.plan__cta .btn { justify-content: center; }

/* Vuosihinta hintakortissa: toissijainen kuukausihinnalle, mutta alennus
   sanotaan ääneen — se on myyntiargumentti eikä pelkkä lisätieto. */
.plan__year { margin: 8px 0 0; font-size: .95rem; color: var(--ink); }
.plan__year strong { color: var(--pink); font-weight: 700; }
.plan__year span { color: var(--muted); font-size: .88rem; }

/* Puhelinnumeron kopiointi työpöydällä. Linkin päältä aloitettu veto raahaa
   linkkiä eikä valitse tekstiä, ja kolmoisklikkaus nappaa koko kappaleen eli
   numeron ja sähköpostin yhteen pötköön. user-select:all tekee yhdestä
   klikkauksesta koko numeron valinnan. Mobiilissa napautus soittaa yhä. */
a[href^="tel:"] { -webkit-user-select: all; user-select: all; }
