/* LillaBill-kotisivu (K1, 18.10.2026). Brändiohjeen tokenit (samat arvot kuin sovelluksen src/index.css);
   värit vain tässä :root- ja tumman teeman lohkossa, muualla var(--…). Fontit omalta palvelimelta (OFL),
   ei Google Fontsia, ei evästeitä, ei JavaScriptiä. */
@font-face {
  font-family: 'Inter Variable'; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(/fontit/inter-latin-opsz.woff2) format('woff2-variations');
}
@font-face {
  font-family: 'JetBrains Mono'; font-style: normal; font-display: swap; font-weight: 500;
  src: url(/fontit/jetbrains-mono-latin-500.woff2) format('woff2');
}

:root {
  --bg: #F7F5FB;
  --surface: #FFFFFF;
  --surface-sunken: #EEECF3;
  --border: #E4DEF0;
  --border-strong: #6E6788;
  --ink: #1F1B2E;
  --ink-muted: #5E5873;
  --accent: #6D28D9;
  --accent-hover: #5B21B6;
  --accent-soft: #EDE4FF;
  --on-accent: #FFFFFF;
  --on-accent-soft: #4C1D95;
  --focus: #8B5CF6;
  --brand-lila: #8B5CF6;
  --brand-lila-light: #C4B5FD;
  --brand-luumu: #4C1D95;
  --brand-minttu: #34D399;
  --on-brand: #FFFFFF;
  --on-brand-hover: rgba(255, 255, 255, 0.12);
  --success-bg: #D1FAE5;
  --success-ink: #065F46;
  --shadow-card: 0 1px 2px rgba(31, 27, 46, 0.06), 0 1px 3px rgba(31, 27, 46, 0.08);
  --shadow-pop: 0 12px 32px rgba(31, 27, 46, 0.16);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12101C;
    --surface: #211D31;
    --surface-sunken: #1B1828;
    --border: #3A3450;
    --border-strong: #7C749A;
    --ink: #F3F1F9;
    --ink-muted: #B2ABC9;
    --accent: #7C3AED;
    --accent-hover: #6D28D9;
    --accent-soft: #34265C;
    --on-accent: #FFFFFF;
    --on-accent-soft: #DDD6FE;
    --focus: #A78BFA;
    --brand-lila: #A78BFA;
    --brand-lila-light: #C4B5FD;
    --brand-luumu: #2A1B4D;
    --success-bg: #064031;
    --success-ink: #6EE7B7;
    --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-pop: 0 12px 32px rgba(0, 0, 0, 0.5);
  }
  .logo .logo-vaalea { display: none; }
  .logo .logo-tumma { display: block; }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: 'Inter Variable', Inter, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px; line-height: 1.6; font-feature-settings: 'cv11', 'ss01';
}
img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-underline-offset: 3px; }
@media (prefers-color-scheme: dark) { a { color: var(--on-accent-soft); } }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: var(--radius-sm); }
h1, h2, h3 { line-height: 1.15; text-wrap: balance; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
.mono { font-family: 'JetBrains Mono', ui-monospace, Consolas, monospace; font-size: 0.95em; }
.nakymaton { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ohita { position: absolute; left: 16px; top: -48px; background: var(--surface); padding: 8px 12px; border-radius: var(--radius-md); z-index: 10; }
.ohita:focus { top: 8px; }

.leveys { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .leveys { padding: 0 32px; } }

/* Yläpalkki 64 px, logo 28 px */
.ylapalkki { background: var(--surface); border-bottom: 1px solid var(--border); }
.ylapalkki .leveys { height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo img { height: 28px; width: auto; }
.logo-tumma { display: none; }
.ylapalkki nav { display: flex; align-items: center; gap: 8px; }
.tekstilinkki { color: var(--ink); text-decoration: none; font-weight: 500; padding: 8px 12px; border-radius: var(--radius-md); }
.tekstilinkki:hover { background: var(--surface-sunken); }

/* Painikkeet (lb-btn) */
.painike { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 20px;
  border-radius: var(--radius-md); font-weight: 600; font-size: 15px; text-decoration: none; border: 1px solid transparent; }
.painike-ensisijainen { background: var(--accent); color: var(--on-accent); }
.painike-ensisijainen:hover { background: var(--accent-hover); }
.painike-toissijainen { background: var(--surface); color: var(--ink); border-color: var(--border-strong); }
.painike-toissijainen:hover { background: var(--surface-sunken); }
.painike-nauha { background: transparent; color: var(--on-brand); border-color: var(--on-brand); }
.painike-nauha:hover { background: var(--on-brand-hover); }
.ylapalkki .painike { min-height: 40px; padding: 8px 16px; }
@media (max-width: 420px) { .ylapalkki .tekstilinkki { padding: 8px; } .ylapalkki .painike { padding: 8px 12px; } }

/* Osiot erotetaan tilalla: 64 px, työpöydällä 96 px */
.osio { padding: 64px 0; }
@media (min-width: 768px) { .osio { padding: 96px 0; } }
.osio.osio-jatko { padding-top: 0; }

/* Hero */
.hero .leveys { display: grid; gap: 48px; align-items: center; }
@media (min-width: 900px) { .hero .leveys { grid-template-columns: 1.1fr 1fr; gap: 64px; } }
.hero h1 { font-size: clamp(40px, 6vw, 60px); font-weight: 800; letter-spacing: -0.035em; }
.ingressi { margin-top: 20px; font-size: 19px; line-height: 1.55; color: var(--ink-muted); max-width: 34em; }
.painikkeet { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
.koekaytto { margin-top: 20px; font-size: 14px; color: var(--ink-muted); max-width: 40em; }

/* Esimerkkilasku (kuvitus, ei kuvakaappaus): radius-lg + shadow-pop, maksettu-merkki ja minttupiste */
.esimerkki { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-pop); padding: 28px; max-width: 460px; justify-self: center; width: 100%; }
.esimerkki-yla { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.esimerkki-otsikko { font-weight: 700; font-size: 18px; }
.esimerkki-pieni { font-size: 13px; color: var(--ink-muted); }
.merkki { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: var(--radius-sm);
  background: var(--success-bg); color: var(--success-ink); font-size: 13px; font-weight: 600; white-space: nowrap;
  animation: merkki-esiin 200ms ease-out 600ms both; }
.minttupiste { width: 8px; height: 8px; border-radius: 50%; background: var(--brand-minttu); animation: napsahdus 200ms ease-out 800ms both; }
@keyframes merkki-esiin { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@keyframes napsahdus { 0% { transform: scale(0); } 70% { transform: scale(1.4); } 100% { transform: scale(1); } }
.esimerkki table { width: 100%; border-collapse: collapse; margin-top: 20px; font-size: 14px; }
.esimerkki td { padding: 10px 0; border-top: 1px solid var(--border); }
.esimerkki td:last-child, .esimerkki .summa { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.esimerkki tfoot td { font-weight: 700; font-size: 16px; border-top: 2px solid var(--ink); }
.esimerkki-ala { margin-top: 16px; display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--ink-muted); }

/* Kolme hyötyä */
.hyodyt { display: grid; gap: 40px; }
@media (min-width: 768px) { .hyodyt { grid-template-columns: repeat(3, 1fr); gap: 48px; } }
.hyoty svg { color: var(--accent); width: 24px; height: 24px; }
@media (prefers-color-scheme: dark) { .hyoty svg { color: var(--brand-lila); } }
.hyoty h2 { margin-top: 16px; font-size: 22px; font-weight: 700; }
.hyoty p { margin-top: 10px; color: var(--ink-muted); max-width: 65ch; }

/* Näin se toimii */
.osio-otsikko { font-size: clamp(28px, 4vw, 36px); font-weight: 800; }
.askeleet { list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: 24px; counter-reset: askel; }
@media (min-width: 768px) { .askeleet { grid-template-columns: repeat(3, 1fr); } }
.askeleet li { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); padding: 24px; counter-increment: askel; }
.askeleet li::before { content: counter(askel); display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px;
  border-radius: 50%; background: var(--accent-soft); color: var(--on-accent-soft); font-weight: 700; }
.askeleet h3 { margin-top: 16px; font-size: 18px; }
.askeleet p { margin-top: 8px; color: var(--ink-muted); }

/* Värinauha (brand-luumu), oikeassa reunassa logon ll-pylväät */
.nauha { position: relative; overflow: hidden; background: var(--brand-luumu); color: var(--on-brand); border-radius: var(--radius-lg); padding: 48px 32px; }
@media (min-width: 768px) { .nauha { padding: 56px 64px; } }
.nauha-sisalto { position: relative; max-width: 560px; z-index: 1; }
.nauha h2 { font-size: clamp(26px, 3.5vw, 34px); font-weight: 800; }
.nauha p { margin-top: 12px; opacity: 0.92; }
.nauha .painike { margin-top: 24px; }
.pylvaat { position: absolute; right: 40px; bottom: 0; top: 24px; display: none; gap: 18px; align-items: flex-end; }
@media (min-width: 900px) { .pylvaat { display: flex; } }
.pylvaat span { display: block; width: 44px; border-radius: 6px 6px 0 0; }
.pylvaat span:nth-child(1) { height: 70%; background: var(--brand-lila-light); }
.pylvaat span:nth-child(2) { height: 100%; background: var(--brand-lila); }

/* Usein kysyttyä */
.kysymykset { margin-top: 32px; border-top: 1px solid var(--border); max-width: 760px; }
.kysymykset details { border-bottom: 1px solid var(--border); }
.kysymykset summary { cursor: pointer; padding: 18px 0; font-weight: 600; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.ukk-ohje { margin-top: 24px; max-width: 760px; }
.kysymykset summary::-webkit-details-marker { display: none; }
.kysymykset summary::after { content: '+'; font-weight: 400; font-size: 22px; line-height: 1; color: var(--ink-muted); }
.kysymykset details[open] summary::after { content: '\2212'; }
.kysymykset details p { padding: 0 0 18px; color: var(--ink-muted); max-width: 65ch; }

/* Yhteystiedot */
.yhteys { display: grid; gap: 24px; }
@media (min-width: 768px) { .yhteys { grid-template-columns: 1fr 1fr; align-items: start; } }
.yhteys p { color: var(--ink-muted); margin-top: 12px; max-width: 65ch; }
.yhteys dl { margin: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; display: grid; gap: 12px; }
.yhteys dt { font-size: 13px; color: var(--ink-muted); }
.yhteys dd { margin: 2px 0 0; font-weight: 500; }

/* Alatunniste */
.alatunniste { background: var(--surface); border-top: 1px solid var(--border); padding: 40px 0; font-size: 14px; color: var(--ink-muted); }
.alatunniste .leveys { display: grid; gap: 20px; }
@media (min-width: 768px) { .alatunniste .leveys { grid-template-columns: auto 1fr auto; align-items: center; } }
.alatunniste .logo img { height: 24px; }
.alatunniste ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.alatunniste a { color: var(--ink); }
.kielet a[aria-current] { font-weight: 700; text-decoration: none; }
.yritystiedot { grid-column: 1 / -1; }
@media (min-width: 768px) { .alatunniste .leveys { grid-template-columns: auto 1fr; } .alatunniste .kielet { grid-column: 1 / -1; } }

/* Tekstisivu (tietosuojaseloste) */
.teksti { max-width: 720px; }
.teksti h1 { font-size: clamp(32px, 5vw, 44px); font-weight: 800; }
.teksti h2 { font-size: 21px; margin-top: 36px; }
.teksti p, .teksti ul { margin-top: 12px; max-width: 70ch; }
.teksti li + li { margin-top: 6px; }
.paivitetty { margin-top: 12px; color: var(--ink-muted); font-size: 14px; }
.nauha-logo { height: 24px; width: auto; margin-bottom: 20px; }
.kieliosa { margin-bottom: 40px; }
.takaisin { margin-top: 20px; }

/* K2 (5.11.2026): päävalikko, hinnoittelu- ja ominaisuussivut */
.ylapalkki .paanavi { display: none; gap: 4px; }
@media (min-width: 900px) { .ylapalkki .paanavi { display: flex; } .ylapalkki .leveys { justify-content: flex-start; } .toiminnot { margin-left: auto; } }
.ylapalkki nav.toiminnot { display: flex; align-items: center; gap: 8px; }
.paanavi a[aria-current], .paanavi-puhelin a[aria-current] { color: var(--accent); }
@media (prefers-color-scheme: dark) { .paanavi a[aria-current], .paanavi-puhelin a[aria-current] { color: var(--on-accent-soft); } }
.paanavi-puhelin { border-top: 1px solid var(--border); }
.paanavi-puhelin .leveys { display: flex; gap: 4px; height: 44px; align-items: center; overflow-x: auto; }
.paanavi-puhelin .tekstilinkki { font-size: 15px; white-space: nowrap; padding: 6px 10px; }
.ylapalkki .paanavi-puhelin { display: block; }
@media (min-width: 900px) { .ylapalkki .paanavi-puhelin { display: none; } }

.sivun-alku h1 { font-size: clamp(36px, 5.5vw, 52px); font-weight: 800; letter-spacing: -0.03em; }
.osio-ingressi { margin-top: 12px; color: var(--ink-muted); max-width: 65ch; }
.lisaa-linkki { margin-top: 24px; font-weight: 600; }

/* Tasokortit */
.tasot { margin-top: 40px; display: grid; gap: 24px; }
@media (min-width: 900px) { .tasot { grid-template-columns: repeat(3, 1fr); } }
.taso { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-card);
  padding: 28px; display: flex; flex-direction: column; }
.taso h3 { font-size: 22px; font-weight: 700; }
.taso-kuvaus { margin-top: 6px; color: var(--ink-muted); font-size: 15px; }
@media (min-width: 900px) { .taso-kuvaus { min-height: 3.2em; } }
.hinta { margin-top: 20px; display: flex; align-items: baseline; gap: 6px; }
.hinta .summa { font-size: 40px; font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.hinta .jakso { color: var(--ink-muted); }
.vuosihinta { margin-top: 4px; font-size: 14px; color: var(--ink-muted); }
.kaikki-edellinen { margin-top: 20px; font-size: 14px; font-weight: 600; }
.taso-lista { list-style: none; margin: 16px 0 0; padding: 16px 0 0; border-top: 1px solid var(--border); display: grid; gap: 10px; flex: 1; align-content: start; }
.taso-lista li { display: flex; gap: 10px; font-size: 15px; }
.taso-lista svg, .vertailu .on svg { flex: none; width: 18px; height: 18px; margin-top: 3px; color: var(--accent); }
@media (prefers-color-scheme: dark) { .taso-lista svg, .vertailu .on svg { color: var(--brand-lila); } }
.taso .painike { margin-top: 24px; }

/* Vertailutaulukko */
.vertailu-kehys { margin-top: 32px; overflow-x: auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.vertailu { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 15px; }
.vertailu th, .vertailu td { padding: 14px 20px; border-bottom: 1px solid var(--border); text-align: center; }
.vertailu tbody tr:last-child th, .vertailu tbody tr:last-child td { border-bottom: 0; }
.vertailu thead th { font-size: 16px; }
.vertailu tbody th { text-align: left; font-weight: 500; }
.vertailu td { font-variant-numeric: tabular-nums; }
.vertailu .on svg { margin: 0 auto; }
.vertailu .ei { color: var(--ink-muted); }

/* Ominaisuudet */
.ominaisuudet { margin-top: 48px; display: grid; gap: 40px 48px; }
@media (min-width: 768px) { .ominaisuudet { grid-template-columns: 1fr 1fr; } }
.ominaisuus { display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start; }
.ominaisuus-ikoni { width: 44px; height: 44px; border-radius: var(--radius-md); background: var(--accent-soft); color: var(--on-accent-soft);
  display: flex; align-items: center; justify-content: center; }
.ominaisuus-ikoni svg { width: 22px; height: 22px; }
.ominaisuus h2 { font-size: 20px; font-weight: 700; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ominaisuus p { margin-top: 8px; color: var(--ink-muted); max-width: 65ch; }
.ominaisuus ul { margin: 10px 0 0; padding-left: 20px; color: var(--ink-muted); }
.ominaisuus li + li { margin-top: 4px; }
.tasomerkki { font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: var(--radius-sm); background: var(--accent-soft); color: var(--on-accent-soft); letter-spacing: 0; }

/* K2c: sovelluksen kuvakaappaukset (radius-lg + shadow-pop, kulmassa maksettu-merkki) */
.kuvakaappaus { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-pop); }
.kuvakaappaus img { width: 100%; height: auto; }
.hero-kuva { position: relative; margin: 0; overflow: visible; max-width: 560px; justify-self: center; width: 100%; }
.hero-kuva picture, .hero-kuva > img { display: block; border-radius: var(--radius-lg); overflow: hidden; }
.hero-kuva picture img { border-radius: var(--radius-lg); }
.hero-merkki { position: absolute; left: 8px; top: -14px; box-shadow: var(--shadow-card); }
@media (min-width: 900px) { .hero-merkki { left: -12px; } }
.kuvakaappaus a { display: block; }
.galleria { margin-top: 32px; display: grid; gap: 32px; align-items: start; }
@media (min-width: 900px) { .galleria { grid-template-columns: 1fr 1fr 0.42fr; gap: 24px; } }
.kuvakaappaus-kehys { margin: 0; }
.kuvakaappaus-kehys.puhelin { max-width: 300px; justify-self: center; width: 100%; }
.kuvakaappaus-kehys.puhelin .kuvakaappaus { border-radius: 24px; border-width: 6px; border-color: var(--ink); }
.kuvakaappaus-kehys figcaption { margin-top: 12px; font-size: 14px; color: var(--ink-muted); max-width: 48ch; }
