/* Kaino Media. Paperi ja yö.
   Paperi (vaalea): kaikki sivut. Tila hengittää, värit tulevat videoista.
   Yö (tummansininen): alun revontulet, lopun kehote, alatunniste, työn ikkuna ja valittu hinta.
   Pinkki on vain toiminnalle: pääkehote ja pieni piste. Turkoosi vain tummalla pohjalla. */
:root {
  --paper: #F6F4EF;
  --bg: #F6F4EF;
  --surface: #EEEBE4;
  --raised: #FFFFFF;
  --raised-2: #F3F1EC;
  --modal: #FFFFFF;
  --text: #171F44;
  --text-2: #565C74;
  --text-3: #7C8197;
  --line: #DCD9D2;
  --line-strong: #171F44;
  --ink: #171F44;
  --ink-rgb: 23, 31, 68;
  --night: #171F44;
  --night-deep: #081428;
  /* Korostus. Vaihda nämä rivit, niin koko sivuston korostus vaihtuu. */
  --acc: #FE81D1;
  --acc-rgb: 254, 129, 209;
  --acc-hi: #FF98DA;
  --acc-deep: #F574C9;
  --acc-press: #EA63BC;
  --on-acc: #171F44;
  --glow: #74FFED;
  --glow-rgb: 116, 255, 237;
  --dot: var(--acc);
  --link: #171F44;
  --link-line: #F06CC0;
  --ghost-bg: #FFFFFF;
  --ghost-bg-hover: #F7F5F0;
  --ghost-text: #171F44;
  --input-line: #8A8F9F;

  --font: "Schibsted Grotesk", "Helvetica Neue", Arial, system-ui, sans-serif;
  --fs-billboard: clamp(3.25rem, min(4.8vw + 1rem, 10vh + 1rem), 6rem); /* myös ruudun korkeus rajaa, jotta napit näkyvät läppärillä */
  --fs-hero: clamp(2.5rem, 4.2vw + 1rem, 4.75rem);
  --fs-h1: clamp(2.25rem, 3.4vw + 1rem, 3.9rem);
  --fs-h2: clamp(1.85rem, 2.4vw + 0.9rem, 3rem);
  --fs-row: clamp(1.35rem, 1vw + 1rem, 1.75rem);
  --fs-h3: 1.25rem;
  --fs-lead: clamp(1.125rem, 0.45vw + 1rem, 1.35rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.9375rem;
  --fs-tiny: 0.8125rem;

  --wrap: 76rem;
  --measure: 38rem;
  --gutter-l: max(20px, env(safe-area-inset-left, 0px));
  --gutter-r: max(20px, env(safe-area-inset-right, 0px));
  --edge: max(var(--gutter-l), calc((100% - var(--wrap)) / 2));
  --radius: 8px;
  --radius-card: 12px;
  --header-h: 4.25rem;

  /* Napit. Neljä kerrosta: valo yläreunassa, varjo alareunassa, kosketusvarjo ja pinkki hehku.
     Vaalealla pohjalla lisäksi ohut reuna, jotta nappi ei katoa paperiin. */
  --btn-bg: linear-gradient(180deg, var(--acc-hi) 0%, var(--acc-deep) 100%);
  --btn-bg-press: linear-gradient(180deg, var(--acc-press) 0%, var(--acc-press) 100%);
  --btn-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), inset 0 -2px 0 rgba(var(--ink-rgb), 0.16), 0 0 0 1px rgba(var(--ink-rgb), 0.10), 0 1px 2px rgba(var(--ink-rgb), 0.20), 0 8px 20px -8px rgba(var(--acc-rgb), 0.65);
  --btn-shadow-hover: inset 0 1px 0 rgba(255, 255, 255, 0.55), inset 0 -2px 0 rgba(var(--ink-rgb), 0.16), 0 0 0 1px rgba(var(--ink-rgb), 0.10), 0 2px 3px rgba(var(--ink-rgb), 0.20), 0 12px 26px -8px rgba(var(--acc-rgb), 0.75);
  --btn-shadow-press: inset 0 2px 2px rgba(var(--ink-rgb), 0.20), inset 0 -1px 0 rgba(255, 255, 255, 0.15), 0 0 0 1px rgba(var(--ink-rgb), 0.12), 0 1px 1px rgba(var(--ink-rgb), 0.18), 0 4px 10px -6px rgba(var(--acc-rgb), 0.5);
  --ghost-shadow: inset 0 1px 0 #FFFFFF, 0 0 0 1px rgba(var(--ink-rgb), 0.16), 0 1px 2px rgba(var(--ink-rgb), 0.08);
  --card-shadow: 0 0 0 1px rgba(var(--ink-rgb), 0.07), 0 1px 2px rgba(var(--ink-rgb), 0.05);
  color-scheme: light;
}

/* Yö: tummat osiot. Samat nimet, tummat arvot. */
.billboard, .site-header.over:not(.scrolled), .cta, .site-footer, dialog.work, .tier.pick {
  --bg: var(--night);
  --surface: #1E2752;
  --raised: #232D5C;
  --raised-2: #2B3668;
  --modal: #10173A;
  --text: #FFFFFF;
  --text-2: rgba(255, 255, 255, 0.78);
  --text-3: rgba(255, 255, 255, 0.55);
  --line: rgba(255, 255, 255, 0.14);
  --line-strong: rgba(255, 255, 255, 0.6);
  --link: #FFFFFF;
  --link-line: var(--acc);
  --dot: var(--glow);
  --ghost-bg: rgba(255, 255, 255, 0.14);
  --ghost-bg-hover: rgba(255, 255, 255, 0.2);
  --ghost-text: #FFFFFF;
  --btn-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), inset 0 -2px 0 rgba(0, 0, 0, 0.18), 0 1px 2px rgba(0, 0, 0, 0.45), 0 8px 24px -6px rgba(var(--acc-rgb), 0.6);
  --btn-shadow-hover: inset 0 1px 0 rgba(255, 255, 255, 0.55), inset 0 -2px 0 rgba(0, 0, 0, 0.18), 0 2px 3px rgba(0, 0, 0, 0.45), 0 12px 30px -6px rgba(var(--acc-rgb), 0.7);
  --btn-shadow-press: inset 0 2px 2px rgba(0, 0, 0, 0.2), inset 0 -1px 0 rgba(255, 255, 255, 0.15), 0 1px 1px rgba(0, 0, 0, 0.45), 0 4px 12px -6px rgba(var(--acc-rgb), 0.5);
  --ghost-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 0 0 1px rgba(255, 255, 255, 0.22);
  --card-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
  color-scheme: dark;
  color: var(--text);
}

@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-display: swap;
  font-weight: 400 900;
  src: url("fonts/schibsted-grotesk-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

*, *::before, *::after { box-sizing: border-box; }
[fill="#D63A24"] { fill: var(--acc); }
[stroke="#D63A24"] { stroke: var(--acc); }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 1rem); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
.page { background: var(--bg); color: var(--text); min-height: 100vh; overflow-x: clip; }
img, video, svg { max-width: 100%; display: block; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; text-wrap: balance; font-weight: 750; }
ul, ol { margin: 0; padding: 0; }
::selection { background: rgba(var(--acc-rgb), 0.45); color: var(--ink); }
:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; border-radius: 4px; }

.skip {
  position: absolute; left: var(--gutter-l); top: -3rem; z-index: 100;
  background: var(--text); color: var(--bg); padding: 0.6rem 1rem; border-radius: var(--radius);
  font-weight: 700; text-decoration: none;
}
.skip:focus { top: calc(env(safe-area-inset-top, 0px) + 0.5rem); }

.wrap {
  max-width: calc(var(--wrap) + 2 * 20px);
  margin-inline: auto;
  padding-left: var(--gutter-l);
  padding-right: var(--gutter-r);
}
.band { padding-block: clamp(3.75rem, 8vw, 7rem); }
.band.tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.band.surface { background: var(--surface); }
.muted { color: var(--text-2); }
.prose a, .note a, .lead a, .faq .answer a, .reach a, .alt-offer a, .cite a, .section-head p a, .footer-ask a {
  color: var(--link); text-decoration-color: var(--link-line); text-decoration-thickness: 2px; text-underline-offset: 4px;
}

/* ------------------------------------------------ Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 244, 239, 0.88); border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  padding-top: env(safe-area-inset-top, 0px);
  transition: background-color 0.25s ease, border-color 0.25s ease;
}
.site-header.over {
  position: fixed; left: 0; right: 0;
  background: linear-gradient(to bottom, rgba(5, 12, 28, 0.55), rgba(5, 12, 28, 0));
  border-bottom-color: transparent;
  -webkit-backdrop-filter: none; backdrop-filter: none;
}
.site-header.over.scrolled { background: rgba(246, 244, 239, 0.92); border-bottom-color: var(--line); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); }
.site-header .wrap { display: flex; align-items: center; gap: 1.25rem; min-height: var(--header-h); }
.logo { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--text); font-size: 1.2rem; letter-spacing: -0.025em; line-height: 1; white-space: nowrap; }
.logo svg { width: 22px; height: 22px; flex: none; }
.logo .wm { font-weight: 450; }
.logo .wm b { font-weight: 820; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 1.75rem; }
.nav a { text-decoration: none; color: var(--text); font-size: var(--fs-small); font-weight: 550; opacity: 0.88; }
.nav a:hover { opacity: 1; }
.nav a[aria-current="page"] { opacity: 1; font-weight: 700; }
.btn.header-cta { padding: 0.6rem 1.05rem; font-size: var(--fs-small); white-space: nowrap; }
.nav + .header-cta { margin-left: 0.25rem; }
.site-header.minimal .header-cta { margin-left: auto; }
.menu-btn { display: none; flex: none; width: 2.5rem; height: 2.5rem; padding: 0; background: none; border: 1px solid var(--line); color: var(--text); border-radius: var(--radius); cursor: pointer; }
.menu-btn svg { width: 1.25rem; height: 1.25rem; margin: auto; }
.menu-btn .i-close, .menu-btn[aria-expanded="true"] .i-open { display: none; }
.menu-btn[aria-expanded="true"] .i-close { display: inline; }
.site-header.over:not(.scrolled) .menu-btn { border-color: rgba(255, 255, 255, 0.4); }
@media (max-width: 56rem) {
  .btn.header-cta { margin-left: auto; padding: 0.55rem 0.85rem; font-size: 0.875rem; }
  .menu-btn { display: grid; place-items: center; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid #DCD9D2; flex-direction: column; align-items: stretch; gap: 0; padding: 0.25rem var(--gutter-r) 1rem var(--gutter-l); box-shadow: 0 18px 30px -20px rgba(var(--ink-rgb), 0.35); }
  .nav.open { display: flex; }
  .nav a { padding: 0.9rem 0; font-size: 1.125rem; border-bottom: 1px solid #DCD9D2; opacity: 1; color: var(--ink); }
  .site-header .wrap { position: relative; gap: 0.6rem; }
}

/* ------------------------------------------------ Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  background: var(--acc) var(--btn-bg); color: var(--on-acc); border: 0;
  font: inherit; font-weight: 700; font-size: 1.0625rem; line-height: 1.2; letter-spacing: -0.005em;
  padding: 0.9rem 1.4rem; border-radius: var(--radius); text-decoration: none; cursor: pointer;
  box-shadow: var(--btn-shadow);
  transition: box-shadow 0.18s ease, transform 0.18s ease;
}
.btn:hover { box-shadow: var(--btn-shadow-hover); transform: translateY(-1px); }
.btn:active { background: var(--acc-press) var(--btn-bg-press); box-shadow: var(--btn-shadow-press); transform: translateY(1px); }
.btn.big { font-size: clamp(1.125rem, 0.5vw + 1rem, 1.3rem); padding: 0 1.6rem; min-height: 3.5rem; }
.btn svg { width: 1.1em; height: 1.1em; }
.btn.ghost { background: var(--ghost-bg); color: var(--ghost-text); box-shadow: var(--ghost-shadow); }
.btn.ghost:hover { background: var(--ghost-bg-hover); box-shadow: var(--ghost-shadow); }
.billboard .btn.ghost { -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.text-link { color: var(--text); font-weight: 650; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; text-decoration-color: var(--link-line); }
.text-link:hover { text-decoration-color: var(--text); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; margin-top: 2rem; }

/* ------------------------------------------------ Type */
.kicker { display: inline-flex; align-items: center; gap: 0.6rem; font-size: var(--fs-tiny); font-weight: 700; color: var(--text-2); margin-bottom: 1.1rem; letter-spacing: 0.12em; text-transform: uppercase; }
.rec-dot::before, .kicker.rec-dot::before { content: ""; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--dot); box-shadow: 0 0 0 3px color-mix(in srgb, var(--dot) 22%, transparent); flex: none; }
.billboard-title { font-size: var(--fs-billboard); line-height: 0.94; letter-spacing: -0.048em; font-weight: 840; }
.hero-title { font-size: var(--fs-hero); line-height: 1.0; letter-spacing: -0.042em; font-weight: 820; }
.page-title { font-size: var(--fs-h1); line-height: 1.04; letter-spacing: -0.038em; font-weight: 820; }
.h2 { font-size: var(--fs-h2); line-height: 1.04; letter-spacing: -0.038em; font-weight: 820; }
.h3 { font-size: var(--fs-h3); line-height: 1.3; letter-spacing: -0.015em; font-weight: 740; }
.lead { font-size: var(--fs-lead); line-height: 1.5; max-width: var(--measure); margin-top: 1.25rem; color: var(--text-2); }
.price-line { margin-top: 1rem; font-size: var(--fs-body); color: var(--text-2); }
.price-line strong { color: var(--text); font-weight: 750; }
.section-head { max-width: 48rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head p { margin-top: 0.9rem; max-width: var(--measure); color: var(--text-2); }
.prose { max-width: var(--measure); }
.wrap.prose { max-width: calc(var(--wrap) + 2 * 20px); }
.wrap.prose > * { max-width: var(--measure); }
.wrap.prose > .table-wrap { max-width: 56rem; }
.prose > * + * { margin-top: 1rem; }
.prose h2 { font-size: 1.5rem; letter-spacing: -0.022em; margin-top: 2.5rem; line-height: 1.25; font-weight: 760; }
.prose h3 { font-size: 1.15rem; margin-top: 1.75rem; }
.prose ul { padding-left: 1.2rem; }
.prose li + li { margin-top: 0.4rem; }
.note { margin-top: 1.5rem; font-size: var(--fs-small); color: var(--text-2); }

/* ------------------------------------------------ Billboard: revontulet tai showreel */
.billboard { position: relative; isolation: isolate; display: grid; align-items: end; min-height: min(56.25vw + 4rem, 94svh); padding-top: calc(var(--header-h) + 3rem); background: var(--night-deep); }
.billboard .wrap { width: 100%; }
.bb-media { position: absolute; inset: 0; z-index: -2; overflow: hidden; background: var(--night-deep); }
.bb-media video, .bb-media img { width: 100%; height: 100%; object-fit: cover; }
.bb-shade { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(77deg, rgba(5, 12, 28, 0.78) 0%, rgba(5, 12, 28, 0.42) 36%, rgba(5, 12, 28, 0) 70%),
    linear-gradient(to top, var(--night-deep) 0%, rgba(8, 20, 40, 0.55) 14%, rgba(8, 20, 40, 0) 38%); }
.bb-content { padding-bottom: clamp(2.5rem, 5vw, 5rem); max-width: 46rem; }
.bb-content .lead, .bb-price { font-size: clamp(1.0625rem, 0.3vw + 0.95rem, 1.25rem); }
.bb-content .lead { color: rgba(255, 255, 255, 0.92); }
.bb-content .kicker { color: rgba(255, 255, 255, 0.9); }
.bb-price { margin-top: 1rem; color: rgba(255, 255, 255, 0.92); }
.bb-price strong { font-weight: 800; color: #FFFFFF; }
.bb-pause {
  position: absolute; right: var(--gutter-r); bottom: clamp(3rem, 7vw, 6rem); z-index: 2;
  width: 2.75rem; height: 2.75rem; border-radius: 50%; display: grid; place-items: center;
  background: rgba(8, 20, 40, 0.45); border: 1px solid rgba(255, 255, 255, 0.5); color: #FFFFFF; cursor: pointer;
}
.bb-pause svg { width: 1rem; height: 1rem; }
.bb-pause .i-play { display: none; }
.bb-pause[aria-pressed="true"] .i-play { display: block; }
.bb-pause[aria-pressed="true"] .i-pause { display: none; }
/* Revontulet näkyvät, kunnes showreel on olemassa */
.bb-ph { position: absolute; inset: 0; }
.bb-ph svg { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; }
.bb-ph .au-glow { overflow: visible; will-change: transform, opacity; animation: au-drift 24s ease-in-out infinite alternate; }
@keyframes au-drift {
  0% { transform: translateX(-3%) scaleY(0.96); opacity: 0.85; }
  50% { opacity: 1; }
  100% { transform: translateX(3%) scaleY(1.04); opacity: 0.9; }
}
.bb-ph-label { position: absolute; right: 1.5rem; top: calc(var(--header-h) + 1rem); font-size: var(--fs-tiny); color: rgba(255, 255, 255, 0.7); text-align: right; line-height: 1.45; }
.bb-ph-label strong { display: block; color: #FFFFFF; font-weight: 700; }
@media (max-width: 56rem) {
  .billboard { min-height: 0; padding-top: 34svh; }
  .bb-media { bottom: auto; height: 62svh; }
  .bb-shade { background: linear-gradient(to top, var(--night-deep) 0%, var(--night-deep) 22%, rgba(8, 20, 40, 0.55) 45%, rgba(8, 20, 40, 0) 70%), linear-gradient(to bottom, rgba(5, 12, 28, 0.5), rgba(5, 12, 28, 0) 22%); bottom: auto; height: 62svh; }
  .billboard.wide { padding-top: calc(56.25vw + var(--header-h) - 1rem); }
  .billboard.wide .bb-media, .billboard.wide .bb-shade { height: calc(56.25vw + var(--header-h) + 3rem); }
  .bb-pause { top: calc(var(--header-h) + 1rem); bottom: auto; }
  .bb-content { padding-bottom: 3rem; }
  .bb-ph-label { display: none; }
}

/* Aloituslomake: sähköposti ja yksi nappi. Kenttä on aina valkoinen. */
.start-text { margin-top: 1.75rem; font-size: var(--fs-body); color: var(--text-2); }
.billboard .start-text { color: rgba(255, 255, 255, 0.9); }
.start { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 0.85rem; max-width: 38rem; }
.field { position: relative; flex: 1 1 15rem; min-width: 0; }
.field input, .field textarea {
  width: 100%; min-height: 3.5rem; font: inherit; font-size: 1rem; color: var(--ink);
  background: #FFFFFF; border: 1px solid var(--input-line); border-radius: var(--radius);
  padding: 1.45rem 1rem 0.45rem; outline: none;
  box-shadow: inset 0 1px 2px rgba(var(--ink-rgb), 0.08);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field textarea { min-height: 9rem; resize: vertical; padding-top: 1.75rem; line-height: 1.5; }
.field label { position: absolute; left: 1rem; top: 1.05rem; font-size: 1rem; color: #5B6075; pointer-events: none; transition: transform 0.12s ease, font-size 0.12s ease; transform-origin: left top; }
.field input:focus, .field textarea:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(var(--acc-rgb), 0.55); }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label { transform: translateY(-0.6rem); font-size: 0.78rem; }
.billboard .field input, .cta .field input { border-color: transparent; }
.start .btn { flex: 0 0 auto; }
.ctas { gap: 0.75rem; margin-top: 2rem; }
.start-note { margin-top: 1rem; max-width: 34rem; font-size: var(--fs-small); color: var(--text-2); }
.billboard .start-note { color: rgba(255, 255, 255, 0.82); }
.cta .start-note { margin-inline: auto; }
.bb-price .text-link { font-size: var(--fs-small); margin-left: 0.25rem; color: #FFFFFF; text-decoration-color: var(--glow); }
.calendar-shell { margin-top: 1.75rem; }
.calendar-shell iframe { display: block; width: 100%; min-height: 680px; border: 0; border-radius: 16px; background: #FFFFFF; box-shadow: var(--card-shadow); }
.start-alt { margin-top: 1.1rem; font-size: var(--fs-small); color: var(--text-2); }
.start-alt a { color: var(--text); font-weight: 650; }
.billboard .start-alt .text-link { text-decoration-color: var(--glow); }
@media (max-width: 30rem) { .start .btn { flex: 1 1 100%; } }

/* ------------------------------------------------ Split hero (pystyvideo palvelu- ja testisivuilla) */
.hero { position: relative; isolation: isolate; padding-block: clamp(3rem, 7vw, 6rem) clamp(3rem, 7vw, 6rem); overflow: hidden; }
.hero.glow::before { content: ""; position: absolute; z-index: -1; right: -8%; top: -10%; width: 60%; height: 120%; pointer-events: none;
  background: radial-gradient(45% 45% at 55% 45%, rgba(var(--glow-rgb), 0.20), rgba(var(--glow-rgb), 0) 70%), radial-gradient(35% 35% at 35% 70%, rgba(var(--acc-rgb), 0.14), rgba(var(--acc-rgb), 0) 70%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.hero-grid > * { min-width: 0; }
.hero-grid.wide-media { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); }
@media (max-width: 56rem) {
  .hero-grid, .hero-grid.wide-media { grid-template-columns: minmax(0, 1fr); }
  .hero-media { max-width: 16rem; }
  .hero-media.wide { max-width: 100%; }
}
.page-hero { padding-block: clamp(3rem, 7vw, 5.5rem) clamp(1.5rem, 3vw, 2.5rem); }

/* ------------------------------------------------ Frames and viewfinder */
.frame {
  position: relative; margin: 0; width: 100%;
  aspect-ratio: 9 / 16; max-width: 100%;
  border-radius: var(--radius-card); overflow: hidden; display: grid; place-items: center;
  background: radial-gradient(70% 45% at 70% 22%, rgba(var(--glow-rgb), 0.2), rgba(var(--glow-rgb), 0) 70%), linear-gradient(165deg, #26306A 0%, #171F44 55%, #0C1A33 100%);
}
.frame video, .frame img { width: 100%; height: 100%; object-fit: cover; }
.frame.square { aspect-ratio: 1 / 1; }
.frame.wide { aspect-ratio: 16 / 9; }
.frame .ph-demo { padding: 1.25rem; text-align: center; color: rgba(255, 255, 255, 0.72); font-size: var(--fs-tiny); line-height: 1.45; }
.frame .ph-demo strong { display: block; color: #FFFFFF; font-size: var(--fs-small); font-weight: 650; margin-bottom: 0.35rem; }
.frame .ph-demo svg { width: 28px; height: 28px; margin: 0 auto 0.75rem; color: rgba(255, 255, 255, 0.72); }
.frame.source { background: var(--raised); box-shadow: var(--card-shadow); }
.frame.source .ph-demo { color: var(--text-2); }
.frame.source .ph-demo strong { color: var(--text); }
.frame.source .ph-demo svg { color: var(--text-2); }
.hero-media .frame { box-shadow: 0 30px 60px -30px rgba(var(--ink-rgb), 0.45); }

.vf { position: relative; padding: 14px; }
.vf::before, .vf::after, .vf > .vf-b::before, .vf > .vf-b::after {
  content: ""; position: absolute; width: 22px; height: 22px; border: 0 solid currentColor; pointer-events: none; color: var(--text);
}
.vf::before { top: 0; left: 0; border-top-width: 2px; border-left-width: 2px; }
.vf::after { top: 0; right: 0; border-top-width: 2px; border-right-width: 2px; }
.vf > .vf-b::before { bottom: 0; left: 0; border-bottom-width: 2px; border-left-width: 2px; }
.vf > .vf-b::after { bottom: 0; right: 0; border-bottom-width: 2px; border-right-width: 2px; }
.vf-caption { display: flex; justify-content: space-between; gap: 1rem; margin-top: 0.85rem; font-size: var(--fs-tiny); color: var(--text-2); }
.vf-caption > span:last-child { white-space: nowrap; font-variant-numeric: tabular-nums; }
.vf-caption .rec { display: inline-flex; align-items: center; gap: 0.45rem; color: var(--text); font-weight: 650; }
.vf-caption .rec::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--acc); box-shadow: 0 0 0 1px rgba(var(--ink-rgb), 0.12); }

/* ------------------------------------------------ Rows (työnäytteet) */
.rows { padding-block: clamp(3.75rem, 8vw, 7rem) clamp(2rem, 4vw, 3rem); }
.row { position: relative; }
.row + .row { margin-top: clamp(2.5rem, 5vw, 3.75rem); }
.row[hidden] { display: none; }
.row-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding-inline: var(--edge); margin-bottom: 1rem; }
.row-head h2 { font-size: var(--fs-row); letter-spacing: -0.028em; font-weight: 800; line-height: 1.15; }
.row-head a { font-size: var(--fs-small); color: var(--text); text-decoration: underline; text-decoration-color: var(--link-line); text-decoration-thickness: 2px; text-underline-offset: 5px; font-weight: 650; white-space: nowrap; }
.row-track {
  --card-w: clamp(10rem, 15vw, 13rem);
  display: grid; grid-auto-flow: column; grid-auto-columns: var(--card-w); gap: 0.85rem;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
  padding: 0.5rem var(--edge) 0.75rem; scroll-padding-inline: var(--edge);
  list-style: none; scrollbar-width: none;
}
.row-track::-webkit-scrollbar { display: none; }
.row.wide .row-track { --card-w: clamp(16rem, 27vw, 22rem); }
.row-nav { position: absolute; top: calc(50% - 1.6rem); width: 2.75rem; height: 2.75rem; border-radius: 50%; border: 0; background: #FFFFFF; color: var(--ink); cursor: pointer; z-index: 3; display: none; place-items: center; opacity: 0; transition: opacity 0.2s ease; box-shadow: 0 0 0 1px rgba(var(--ink-rgb), 0.1), 0 6px 18px -6px rgba(var(--ink-rgb), 0.35); }
.row-nav svg { width: 1.2rem; height: 1.2rem; }
.row-nav.prev { left: max(0.5rem, calc(var(--edge) - 1.4rem)); }
.row-nav.next { right: max(0.5rem, calc(var(--edge) - 1.4rem)); }
@media (hover: hover) and (min-width: 56rem) {
  .row-nav { display: grid; }
  .row:hover .row-nav:not([disabled]), .row-nav:focus-visible { opacity: 1; }
  .row-nav[disabled] { visibility: hidden; }
}
/* Sovitettu rivi: kaikki kortit näkyvät kerralla isolla ruudulla, puhelimessa rivi vierii */
@media (min-width: 56rem) {
  .row.fit .row-track { grid-auto-flow: row; grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); overflow: visible; scroll-snap-type: none; gap: 1.1rem; }
  .row.fit.wide .row-track { grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); }
}
/* Etusivun kolme esimerkkiä: isot kortit, video pyörii äänettä. Puhelimessa yksi kerrallaan. */
.row.trio .row-track { --card-w: min(78vw, 21rem); }
.row.trio .row-head { margin-bottom: clamp(1.25rem, 3vw, 2rem); }
.row.trio .row-head h2 { font-size: var(--fs-h2); letter-spacing: -0.038em; font-weight: 820; line-height: 1.04; }
@media (max-width: 40rem) { .row.trio .row-head { flex-direction: column; gap: 0.6rem; } }
.row.trio .poster { aspect-ratio: 4 / 5; }
.row.trio .poster-title { font-size: clamp(1.15rem, 0.6vw + 1rem, 1.45rem); left: 1rem; right: 1rem; bottom: 0.95rem; }
.row.trio .card-meta { font-size: var(--fs-tiny); margin-top: 0.85rem; }
@media (min-width: 56rem) {
  .row.trio .row-track { gap: 1.5rem; }
}
/* Grid layout when a row is filtered alone */
.row.as-grid .row-track { grid-auto-flow: row; grid-template-columns: repeat(auto-fill, minmax(var(--card-w), 1fr)); overflow: visible; scroll-snap-type: none; }
.row.as-grid .row-nav { display: none; }

.card { scroll-snap-align: start; min-width: 0; }
.card-btn { display: block; width: 100%; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; border-radius: var(--radius-card); }
.poster { position: relative; display: block; aspect-ratio: 2 / 3; border-radius: var(--radius-card); overflow: hidden; color: #FFFFFF;
  background:
    radial-gradient(70% 45% at 70% 22%, rgba(var(--glow-rgb), 0.22), rgba(var(--glow-rgb), 0) 70%),
    linear-gradient(165deg, #26306A 0%, #171F44 55%, #0C1A33 100%);
  transition: transform 0.25s ease, box-shadow 0.25s ease; }
.row.wide .poster { aspect-ratio: 16 / 9; }
.poster img, .poster video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.poster::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(8, 14, 32, 0.78) 0%, rgba(8, 14, 32, 0) 46%); pointer-events: none; }
.poster-title { position: absolute; left: 0.85rem; right: 0.85rem; bottom: 0.75rem; z-index: 1; font-weight: 780; font-size: 1.02rem; line-height: 1.2; letter-spacing: -0.015em; color: #FFFFFF; }
.row.wide .poster-title { font-size: 1.1rem; }
.poster-ph { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255, 255, 255, 0.5); }
.poster-ph svg { width: 34px; height: 34px; }
.badge { position: absolute; left: 0.7rem; top: 0.7rem; z-index: 1; display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.7rem; font-weight: 750; letter-spacing: 0.08em; text-transform: uppercase; padding: 0.22rem 0.5rem; border-radius: 4px; background: rgba(255, 255, 255, 0.92); color: var(--ink); }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--acc); }
/* Brief-lappu etusivun korteissa: mistä video tehtiin */
.brief-chip { position: absolute; left: 0.75rem; right: 0.75rem; top: 0.75rem; z-index: 1; padding: 0.7rem 0.85rem; border-radius: 10px; background: rgba(255, 255, 255, 0.94); color: var(--ink); font-size: 0.875rem; line-height: 1.35; font-weight: 520; box-shadow: 0 8px 20px -10px rgba(0, 0, 0, 0.45); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden; overflow-wrap: break-word; hyphens: auto; }
.brief-chip b { display: block; font-size: 0.68rem; font-weight: 750; letter-spacing: 0.14em; text-transform: uppercase; color: #5B6075; margin-bottom: 0.2rem; }
.card-meta { margin-top: 0.6rem; font-size: var(--fs-tiny); color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (hover: hover) {
  .card-btn:hover .poster { transform: translateY(-3px); box-shadow: 0 20px 36px -18px rgba(var(--ink-rgb), 0.55); }
}
.card-btn:focus-visible { outline-offset: 4px; }

/* Työn ikkuna: video katsotaan tummaa vasten */
dialog.work { width: min(64rem, calc(100% - 2rem)); max-height: calc(100svh - 2rem); padding: 0; border: 0; border-radius: 14px; background: var(--modal); color: var(--text); box-shadow: 0 30px 90px rgba(5, 10, 30, 0.55); overflow: auto; }
dialog.work::backdrop { background: rgba(8, 14, 32, 0.72); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.work-close { position: sticky; top: 0.75rem; float: right; margin: 0.75rem 0.75rem 0 0; z-index: 2; width: 2.5rem; height: 2.5rem; border-radius: 50%; border: 0; background: var(--modal); color: #FFFFFF; display: grid; place-items: center; cursor: pointer; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25); }
.work-close svg { width: 1rem; height: 1rem; }
.work-body { padding: clamp(1.25rem, 3vw, 2.25rem); }
.work-media { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 0.85rem; align-items: center; max-width: 34rem; margin-inline: auto; }
.work-media.wide { max-width: none; }
.work-media .arrow { color: var(--text-3); font-size: 1.2rem; }
.work-info { margin-top: 1.5rem; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1rem 2rem; align-items: end; }
.work-info h2 { font-size: clamp(1.5rem, 1.5vw + 1rem, 2.1rem); letter-spacing: -0.03em; font-weight: 800; line-height: 1.1; }
.work-info .kicker { margin-bottom: 0.5rem; }
.work-nav { display: flex; justify-content: space-between; gap: 1rem; margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid rgba(255, 255, 255, 0.12); }
.work-nav button { font: inherit; font-size: var(--fs-small); font-weight: 650; color: #FFFFFF; background: none; border: 0; padding: 0.4rem 0; cursor: pointer; display: inline-flex; align-items: center; gap: 0.4rem; }
.work-nav button[hidden] { display: none; }
.work-nav button svg { width: 1rem; height: 1rem; }
.work-nav [data-next] { margin-left: auto; }
.work-info p.desc { margin-top: 0.6rem; color: var(--text-2); max-width: var(--measure); }
@media (max-width: 40rem) {
  .work-media.wide, .work-media.has-brief { grid-template-columns: minmax(0, 1fr); }
  .work-media.wide .arrow, .work-media.has-brief .arrow { transform: rotate(90deg); justify-self: center; }
  .work-media.has-brief .frame.brief { aspect-ratio: auto; }
  .work-media.has-brief .frame.brief .brief-body { padding: 1.1rem 1.25rem; }
  .work-media.has-brief:not(.wide) .frame:not(.brief) { max-width: 15rem; justify-self: center; }
  .work-info { grid-template-columns: minmax(0, 1fr); }
}

/* Brief card */
.frame.brief { background: var(--raised); place-items: stretch; box-shadow: var(--card-shadow); }
.brief-body { display: flex; flex-direction: column; justify-content: center; gap: 0.6rem; padding: clamp(0.75rem, 2vw, 1.15rem); }
.brief-label { display: inline-flex; align-items: center; gap: 0.45rem; font-size: 0.72rem; font-weight: 750; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-2); }
.brief-label::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--acc); }
.brief-body p { font-size: clamp(0.9rem, 0.6vw + 0.72rem, 1.1rem); line-height: 1.4; font-weight: 580; color: var(--text); overflow-wrap: break-word; hyphens: auto; }
.feature .brief-body p { font-size: clamp(1.05rem, 1vw + 0.8rem, 1.45rem); line-height: 1.3; letter-spacing: -0.01em; }

/* Brief ja lopputulos rinnakkain */
.feature { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.feature > * { min-width: 0; }
.pair-frames { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 0.75rem; max-width: 34rem; }
.pair-arrow { color: var(--text-3); font-size: 1.2rem; }
.pair-caption { margin-top: 0.9rem; display: flex; gap: 1rem; justify-content: space-between; font-size: var(--fs-small); color: var(--text-2); max-width: 34rem; }
.pair-caption strong { color: var(--text); font-weight: 700; }
@media (max-width: 56rem) { .feature { grid-template-columns: minmax(0, 1fr); } }

/* ------------------------------------------------ Reasons (neljä syytä) */
.reasons { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.reason { position: relative; min-width: 0; min-height: 15rem; padding: 1.6rem 1.5rem 5rem; border-radius: 14px; background: var(--raised); box-shadow: var(--card-shadow); color: var(--text); }
.reason h3 { font-size: 1.3rem; letter-spacing: -0.022em; font-weight: 780; line-height: 1.2; }
.reason p { margin-top: 0.75rem; color: var(--text-2); font-size: var(--fs-body); line-height: 1.5; }
.reason svg { position: absolute; right: 1.25rem; bottom: 1.25rem; width: 2.75rem; height: 2.75rem; color: var(--text); }
@media (max-width: 64rem) { .reasons { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 36rem) { .reasons { grid-template-columns: minmax(0, 1fr); } .reason { min-height: 0; } }

/* ------------------------------------------------ Credits list */
.credits { border-top: 1px solid var(--line); }
.credit { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr) 9rem; gap: 1rem 2.5rem; align-items: baseline; padding-block: 1.75rem; border-bottom: 1px solid var(--line); }
.credit > * { min-width: 0; }
.credit h3 { font-size: clamp(1.5rem, 1.8vw + 0.9rem, 2.2rem); letter-spacing: -0.035em; font-weight: 800; line-height: 1.1; }
.credit h3 a { color: inherit; text-decoration: none; }
.credit h3 a:hover { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 7px; text-decoration-color: var(--link-line); }
.credit p { color: var(--text-2); }
.credit .text-link, .credit > span { white-space: nowrap; justify-self: end; font-variant-numeric: tabular-nums; }
@media (max-width: 56rem) { .credit { grid-template-columns: minmax(0, 1fr); gap: 0.45rem; } .credit .text-link, .credit > span { margin-top: 0.3rem; justify-self: start; } }

/* ------------------------------------------------ Pains and story */
.pains { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.pains li { list-style: none; padding: 1.5rem 1.5rem 1.5rem 0; font-size: clamp(1.15rem, 0.6vw + 1rem, 1.4rem); line-height: 1.35; font-weight: 620; letter-spacing: -0.015em; }
.pains li + li { padding-left: 1.5rem; border-left: 1px solid var(--line); }
@media (max-width: 56rem) {
  .pains { grid-template-columns: minmax(0, 1fr); }
  .pains li, .pains li + li { padding: 1.2rem 0; border-left: 0; border-bottom: 1px solid var(--line); }
}
.story { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 8fr); gap: 1rem 3rem; align-items: start; }
.story > * { min-width: 0; }
.story blockquote { margin: 0; font-size: clamp(1.4rem, 1.4vw + 1rem, 2rem); line-height: 1.3; letter-spacing: -0.02em; font-weight: 600; max-width: 42rem; }
@media (max-width: 56rem) { .story { grid-template-columns: minmax(0, 1fr); } }

/* ------------------------------------------------ Steps: isot numerot ja ohuet viivat */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); counter-reset: step; border-top: 1px solid var(--line); }
.steps li { list-style: none; min-width: 0; padding: 1.75rem 1.75rem 1.9rem 0; }
.steps li + li { padding-left: 1.75rem; border-left: 1px solid var(--line); }
.steps li::before {
  counter-increment: step; content: counter(step); display: block; margin-bottom: 1rem;
  font-size: clamp(3.25rem, 4vw, 4.25rem); font-weight: 840; line-height: 0.9; letter-spacing: -0.05em; color: var(--text); font-variant-numeric: tabular-nums;
}
.steps p { color: var(--text-2); margin-top: 0.35rem; }
@media (max-width: 56rem) {
  .steps { grid-template-columns: minmax(0, 1fr); }
  .steps li, .steps li + li { padding: 1.5rem 0; border-left: 0; border-bottom: 1px solid var(--line); }
}

.cols-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2rem, 5vw, 4.5rem); }
.cols-2 > * { min-width: 0; }
@media (max-width: 56rem) { .cols-2 { grid-template-columns: minmax(0, 1fr); } }
.checklist li { list-style: none; padding: 0.75rem 0; border-bottom: 1px solid var(--line); display: flex; gap: 0.8rem; }
.checklist li::before { content: ""; flex: none; width: 0.5rem; height: 0.5rem; margin-top: 0.6rem; border-radius: 50%; background: var(--text-3); }
.checklist.good li::before { background: var(--acc); box-shadow: 0 0 0 1px rgba(var(--ink-rgb), 0.12); }
.list-title { font-size: var(--fs-h3); font-weight: 740; margin-bottom: 0.75rem; }
.industries { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.industries li { list-style: none; background: var(--raised); box-shadow: var(--card-shadow); border-radius: 999px; padding: 0.4rem 0.95rem; font-size: var(--fs-small); }

/* ------------------------------------------------ Prices */
.price-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.price-strip > div { min-width: 0; padding: 1.6rem 1.5rem; border-radius: 14px; background: var(--raised); box-shadow: var(--card-shadow); }
.price-strip dt { font-weight: 700; color: var(--text-2); }
.price-strip dd { margin: 0.4rem 0 0; font-size: clamp(2.2rem, 2.4vw + 1rem, 3.1rem); font-weight: 840; letter-spacing: -0.045em; font-variant-numeric: tabular-nums; line-height: 1.02; }
.price-strip dd small { font-size: 1rem; font-weight: 550; letter-spacing: 0; color: var(--text-2); }
.price-strip p { margin-top: 0.55rem; font-size: var(--fs-small); color: var(--text-2); }
@media (max-width: 56rem) { .price-strip { grid-template-columns: minmax(0, 1fr); } }
.price-strip.fit { grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr)); }

.tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; align-items: stretch; }
.tier { background: var(--raised); box-shadow: var(--card-shadow); border-radius: 16px; padding: 1.85rem 1.6rem; display: flex; flex-direction: column; gap: 1rem; min-width: 0; color: var(--text); }
.tier.pick { background: var(--night); box-shadow: 0 24px 50px -24px rgba(var(--ink-rgb), 0.7); position: relative; overflow: hidden; isolation: isolate; }
.tier.pick::before { content: ""; position: absolute; z-index: -1; left: -20%; right: -20%; top: -60px; height: 160px; background: radial-gradient(50% 60% at 40% 50%, rgba(92, 242, 166, 0.30), transparent 70%), radial-gradient(40% 50% at 75% 60%, rgba(var(--glow-rgb), 0.18), transparent 70%); filter: blur(24px); pointer-events: none; }
.tier .tag { display: flex; align-items: flex-start; gap: 0.5rem; line-height: 1.35; font-size: var(--fs-tiny); font-weight: 750; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-2); }
.tier .tag::before { content: ""; flex: none; width: 7px; height: 7px; margin-top: 0.4em; border-radius: 50%; background: var(--acc); }
.tier.pick .tag { color: var(--acc); }
.tier h3 { font-size: 1.35rem; letter-spacing: -0.022em; }
.tier .amount { font-size: 2.75rem; font-weight: 840; letter-spacing: -0.045em; line-height: 1; font-variant-numeric: tabular-nums; }
.tier .amount small { font-size: 1rem; font-weight: 550; letter-spacing: 0; }
.tier ul { display: grid; gap: 0.55rem; }
.tier li { list-style: none; padding-left: 1.1rem; position: relative; font-size: var(--fs-small); }
.tier li::before { content: ""; position: absolute; left: 0; top: 0.6rem; width: 0.4rem; height: 0.4rem; border-radius: 50%; background: var(--text-3); }
.tier.pick li::before { background: var(--glow); }
.tier .btn, .tier .text-link { margin-top: auto; align-self: flex-start; }
@media (max-width: 60rem) { .tiers { grid-template-columns: minmax(0, 1fr); max-width: 30rem; } }

.table-wrap { overflow-x: auto; }
.compare { width: 100%; border-collapse: collapse; min-width: 34rem; font-size: var(--fs-small); }
.compare th, .compare td { text-align: left; padding: 1rem 1rem 1rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare thead th { font-size: var(--fs-body); border-bottom: 2px solid var(--line-strong); }
.compare tbody th { font-weight: 650; width: 30%; }
.compare th a { color: var(--text); }
.compare td.ours { font-weight: 700; font-variant-numeric: tabular-nums; }

/* ------------------------------------------------ FAQ */
.faq { display: grid; max-width: 52rem; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 1.35rem 3rem 1.35rem 0; font-weight: 680; font-size: clamp(1.1rem, 0.4vw + 1rem, 1.25rem); letter-spacing: -0.015em; line-height: 1.3; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0.25rem; top: 50%; transform: translateY(-50%); font-size: 1.8rem; font-weight: 300; line-height: 1; transition: transform 0.2s ease; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq .answer { padding: 0 0 1.4rem; color: var(--text-2); font-size: var(--fs-body); }
.faq .answer p { max-width: var(--measure); }

/* ------------------------------------------------ Kehote sivun lopussa: yö ja revontulet */
.cta { position: relative; isolation: isolate; overflow: hidden; text-align: center; background: var(--night); padding-block: clamp(5rem, 10vw, 8.5rem); }
.cta::before { content: ""; position: absolute; z-index: -1; left: -15%; right: -15%; top: -170px; height: 330px; pointer-events: none;
  background: radial-gradient(45% 55% at 30% 50%, rgba(92, 242, 166, 0.38), rgba(92, 242, 166, 0) 70%), radial-gradient(40% 55% at 72% 55%, rgba(var(--glow-rgb), 0.24), rgba(var(--glow-rgb), 0) 70%), radial-gradient(25% 40% at 55% 70%, rgba(var(--acc-rgb), 0.16), rgba(var(--acc-rgb), 0) 70%);
  filter: blur(30px); animation: au-drift 26s ease-in-out infinite alternate; }
.cta .wrap { display: grid; justify-items: center; }
.cta .h2 { max-width: 40rem; }
.cta .start { justify-content: center; margin-inline: auto; width: 100%; }
.cta .start-text { max-width: 36rem; }
.reach { margin-top: 1.5rem; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4rem 1.5rem; font-size: var(--fs-small); color: var(--text-2); }
.reach a { color: var(--text); text-underline-offset: 4px; }
.person { display: inline-grid; grid-template-columns: 4.25rem minmax(0, 1fr); gap: 0.85rem; align-items: center; margin-top: 1.75rem; text-align: left; }
.person .avatar { width: 4.25rem; height: 4.25rem; border-radius: 50%; background: var(--raised); display: grid; place-items: center; color: var(--text-2); font-size: var(--fs-tiny); overflow: hidden; }
.person .avatar img { width: 100%; height: 100%; object-fit: cover; }
.person strong { display: block; font-size: 1.05rem; }
.person span { color: var(--text-2); font-size: var(--fs-small); }
.alt-offer { margin-top: 1.25rem; font-size: var(--fs-small); color: var(--text-2); }

/* Embedded form (erikoislomakkeet) */
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.contact-grid > * { min-width: 0; }
.contact-grid .reach { justify-content: flex-start; flex-direction: column; align-items: flex-start; }
@media (max-width: 56rem) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }
.form-shell { background: #FFFFFF; color: var(--ink); border-radius: 16px; padding: clamp(1.25rem, 3vw, 2rem); box-shadow: var(--card-shadow); }
.form-shell iframe { width: 100%; border: 0; min-height: 520px; }
.form-ph { border: 1.5px dashed #7C8197; border-radius: var(--radius); padding: 1.25rem; font-size: var(--fs-small); color: #565C74; }
.form-ph strong { color: var(--ink); display: block; margin-bottom: 0.5rem; font-size: var(--fs-body); }
.form-ph ol { padding-left: 1.2rem; display: grid; gap: 0.3rem; margin-top: 0.75rem; }
.form-fallback { margin-top: 1rem; font-size: var(--fs-small); color: #565C74; }
.form-fallback a { color: var(--ink); text-decoration-color: var(--link-line); }

/* ------------------------------------------------ Aloita */
.steps-bar { display: flex; align-items: center; gap: 0.75rem; font-size: var(--fs-tiny); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-2); }
.steps-bar .bar { flex: 0 0 6rem; height: 4px; border-radius: 2px; background: var(--line); overflow: hidden; }
.steps-bar .bar i { display: block; height: 100%; width: 50%; background: var(--acc); }
.steps-bar.two .bar i { width: 100%; }
.start-page { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 4fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.start-page > * { min-width: 0; }
.start-form { display: grid; gap: 0.85rem; margin-top: 1.75rem; max-width: 34rem; }
.start-form .btn { justify-self: start; }
.start-form .hint { font-size: var(--fs-small); color: var(--text-2); }
.aside-card { background: var(--raised); box-shadow: var(--card-shadow); border-radius: 16px; padding: 1.6rem; }
.aside-card h2 { font-size: 1.1rem; font-weight: 760; }
.next-steps { counter-reset: n; display: grid; gap: 0.9rem; margin-top: 1rem; }
.next-steps li { list-style: none; display: grid; grid-template-columns: 1.75rem minmax(0, 1fr); gap: 0.6rem; font-size: var(--fs-small); color: var(--text-2); }
.next-steps li::before { counter-increment: n; content: counter(n); font-weight: 840; font-size: 1.1rem; color: var(--text); line-height: 1.35; }
.kiitos .next-steps li { font-size: var(--fs-body); }
[data-step][hidden] { display: none; }
@media (max-width: 56rem) { .start-page { grid-template-columns: minmax(0, 1fr); } }

/* Filter chips (työnäytteet) */
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.75rem; }
.chip { font: inherit; font-size: var(--fs-small); font-weight: 650; padding: 0.5rem 1rem; border-radius: 999px; border: 0; background: var(--raised); box-shadow: var(--card-shadow); color: var(--text); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--ink); color: #FFFFFF; box-shadow: none; }

/* ------------------------------------------------ Misc */
.logos { padding-block: 0 clamp(2rem, 4vw, 3rem); }
.logos-title { font-size: var(--fs-small); color: var(--text-2); margin-bottom: 1rem; }
.logo-row { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem 2.5rem; }
.logo-row img { height: 2rem; width: auto; opacity: 0.7; filter: grayscale(1); }
.cite { margin-top: 2.5rem; padding: 1.25rem; background: var(--raised); box-shadow: var(--card-shadow); border-radius: var(--radius-card); font-size: var(--fs-small); }
.cite p + p { margin-top: 0.35rem; color: var(--text-2); }
.prose .table-wrap { margin-top: 1rem; }
.list-rows { border-top: 1px solid var(--line); }
.list-rows .credit h3 { font-size: clamp(1.25rem, 1vw + 1rem, 1.6rem); }
.gallery-group + .gallery-group { margin-top: clamp(3rem, 6vw, 4.5rem); }
.gallery-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 0.5rem 2rem; margin-bottom: 1.25rem; }
.gallery-head p { color: var(--text-2); max-width: 34rem; margin-top: 0.35rem; }
.fill { outline: 1.5px dashed #C2367F; outline-offset: 2px; border-radius: 3px; }
.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; }
.center-404 { min-height: 60vh; display: grid; align-content: center; }
.draft-note { border: 1.5px dashed #C2367F; color: #9E2A69; padding: 0.75rem 1rem; border-radius: var(--radius); font-size: var(--fs-small); margin-bottom: 2rem; max-width: var(--measure); }

/* ------------------------------------------------ Footer: yö jatkuu */
.site-footer { background: var(--night); border-top: 1px solid var(--line); padding-block: 3.5rem 2.5rem; font-size: var(--fs-small); color: var(--text-2); }
.footer-ask { font-size: var(--fs-body); margin-bottom: 2.25rem; }
.footer-ask a { color: var(--text); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); gap: 2rem; }
.footer-grid > * { min-width: 0; }
.footer-grid h2 { font-size: var(--fs-tiny); font-weight: 750; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 0.85rem; color: var(--text); }
.footer-grid ul { list-style: none; display: grid; gap: 0.5rem; }
.footer-grid a, .linklike { color: var(--text-2); text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px; }
.footer-grid a:hover, .linklike:hover { color: var(--text); text-decoration-color: currentColor; }
.linklike { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
.footer-about p { max-width: 22rem; margin-top: 0.85rem; }
.footer-about .logo { text-decoration: none; }
.legal-line { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; }
@media (max-width: 56rem) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-about { grid-column: 1 / -1; } }
.mini-footer { padding-block: 2rem; }
.mini-footer .legal-line { margin-top: 0; border-top: 0; padding-top: 0; }

/* ------------------------------------------------ Consent */
.consent {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
  background: #FFFFFF; color: var(--ink); border-top: 1px solid #DCD9D2; box-shadow: 0 -12px 30px -18px rgba(var(--ink-rgb), 0.35);
  padding: 1rem var(--gutter-r) calc(1rem + env(safe-area-inset-bottom, 0px)) var(--gutter-l);
}
.consent .wrap { padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.5rem; }
.consent p { flex: 1 1 22rem; font-size: var(--fs-small); }
.consent p a { color: var(--ink); text-decoration-color: var(--link-line); }
.consent .btns { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.consent button { font: inherit; font-size: var(--fs-small); font-weight: 700; padding: 0.7rem 1rem; border-radius: var(--radius); cursor: pointer; border: 0; background: var(--acc) var(--btn-bg); color: var(--on-acc); box-shadow: var(--btn-shadow); }
.consent button.secondary { background: var(--ghost-bg); color: var(--ghost-text); box-shadow: var(--ghost-shadow); }

/* Preview banner */
.preview-note { position: fixed; left: 12px; bottom: 12px; z-index: 70; max-width: calc(100% - 24px); padding: 0.45rem 0.75rem; border-radius: 6px; background: #FFD84D; color: #111111; font-size: var(--fs-tiny); font-weight: 650; line-height: 1.4; box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25); }
.preview-note a { color: #111111; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .card-btn:hover .poster { transform: none; }
}

/* ------------------------------------------------ Opas: Pysäytä selaaja */
.guide-hero { align-items: start; }
.guide-cover { margin: 0; }
.guide-cover img { width: 100%; height: auto; border-radius: 10px; box-shadow: 0 30px 60px -28px rgba(var(--ink-rgb), 0.55), 0 0 0 1px rgba(var(--ink-rgb), 0.06); transform: rotate(1.5deg); }
.guide-list { margin-top: 1.5rem; max-width: 34rem; }
.guide-form { margin-top: 2rem; max-width: 34rem; }
.guide-form .h3 { font-size: 1.2rem; }
.guide-form-text { margin-top: 0.35rem; margin-bottom: 1rem; color: #565C74; font-size: var(--fs-small); }
.guide-fine { margin-top: 0.85rem; font-size: var(--fs-tiny); color: #565C74; }
.guide-fine a { color: var(--ink); text-decoration-color: var(--link-line); }
.guide-toc { list-style: none; }
.guide-toc .credit { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
.guide-toc .toc-n { display: inline-block; min-width: 2.6rem; font-size: 0.55em; font-weight: 700; letter-spacing: 0.06em; color: var(--text-2); vertical-align: 0.35em; }
.guide-pages { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; margin-top: 2.5rem; max-width: 48rem; }
.guide-pages img { width: 100%; height: auto; border-radius: 8px; box-shadow: var(--card-shadow), 0 18px 36px -24px rgba(var(--ink-rgb), 0.45); }
.guide-band { background: var(--surface); }
.guide-promo { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 7fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.guide-promo-img img { width: 100%; max-width: 18rem; height: auto; border-radius: 8px; box-shadow: 0 24px 48px -26px rgba(var(--ink-rgb), 0.6); transform: rotate(-2deg); }
@media (max-width: 56rem) {
  .guide-cover { max-width: 10rem; order: -1; margin-bottom: 0.5rem; }
  .guide-toc .credit { grid-template-columns: minmax(0, 1fr); }
  .guide-promo { grid-template-columns: minmax(0, 1fr); }
  .guide-promo-img img { max-width: 11rem; }
}
.guide-fields { display: grid; gap: 0.75rem; }
.guide-fields .btn { justify-self: start; margin-top: 0.25rem; }
.check { display: grid; grid-template-columns: 1.25rem minmax(0, 1fr); gap: 0.6rem; align-items: start; font-size: var(--fs-small); color: #565C74; line-height: 1.45; cursor: pointer; }
.check input { width: 1.15rem; height: 1.15rem; margin: 0.15rem 0 0; accent-color: var(--ink); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { margin-bottom: 0.75rem; padding: 0.6rem 0.8rem; border-radius: var(--radius); background: #FDE7F3; color: #8A1F5C; font-size: var(--fs-small); font-weight: 600; }

/* ------------------------------------------------ Paketit ja tuotteet */
.tier-who { margin-top: -0.4rem; font-size: var(--fs-small); color: var(--text-2); }
.tier-alone { margin-top: -0.55rem; font-size: var(--fs-tiny); color: var(--text-2); }
.tier-start { font-size: var(--fs-small); color: var(--text-2); }
.tier-custom { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 1.5rem 3rem; align-items: start; margin-top: 1rem; padding: 1.85rem 1.6rem; border-radius: 16px; background: var(--raised); box-shadow: var(--card-shadow); }
.tier-custom h3 { font-size: 1.35rem; letter-spacing: -0.022em; }
.tier-custom p { margin: 0.6rem 0 1.25rem; color: var(--text-2); }
.tier-custom .checklist li { padding: 0.55rem 0; }
@media (max-width: 56rem) { .tier-custom { grid-template-columns: minmax(0, 1fr); } }
a.chip { display: inline-flex; align-items: center; text-decoration: none; }
.catalog + .catalog { margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.catalog-title { font-size: clamp(1.3rem, 0.8vw + 1rem, 1.6rem); font-weight: 800; letter-spacing: -0.028em; }
.catalog-note { margin-top: 0.35rem; font-size: var(--fs-small); color: var(--text-2); }
.price-list { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(2rem, 4vw, 3.5rem); margin-top: 1rem; border-top: 1px solid var(--line); }
.price-list li { padding: 1.05rem 0 1.1rem; border-bottom: 1px solid var(--line); min-width: 0; }
.pl-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.pl-head h4 { margin: 0; font-size: 1.08rem; font-weight: 720; letter-spacing: -0.012em; line-height: 1.3; }
.pl-price { font-weight: 780; white-space: nowrap; font-variant-numeric: tabular-nums; }
.price-list p { margin-top: 0.3rem; font-size: var(--fs-small); color: var(--text-2); line-height: 1.5; }
@media (max-width: 48rem) { .price-list { grid-template-columns: minmax(0, 1fr); } }

/* Kuvat: sama kuva kolmessa koossa */
.sizes { display: flex; align-items: flex-end; justify-content: center; gap: clamp(0.75rem, 2vw, 1.25rem); }
.size { margin: 0; }
.size-art { position: relative; overflow: hidden; border-radius: 10px; box-shadow: 0 24px 44px -26px rgba(var(--ink-rgb), 0.6);
  background: radial-gradient(70% 45% at 70% 22%, rgba(var(--glow-rgb), 0.28), rgba(var(--glow-rgb), 0) 70%), linear-gradient(165deg, #26306A 0%, #171F44 55%, #0C1A33 100%); }
.size-art i { position: absolute; left: 50%; top: 46%; width: 42%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle at 35% 32%, #FFE3F4, #FE81D1 58%, #D9559E); box-shadow: 0 12px 26px -12px rgba(0, 0, 0, 0.6); }
.size-art::after { content: ""; position: absolute; left: 14%; right: 14%; bottom: 9%; height: 7%; min-height: 6px; border-radius: 4px; background: rgba(255, 255, 255, 0.88); }
.sizes { width: 100%; max-width: 30rem; margin-inline: auto; }
.size .size-art { width: 100%; }
.s916 { width: 27%; } .s916 .size-art { aspect-ratio: 9 / 16; }
.s45 { width: 37%; } .s45 .size-art { aspect-ratio: 4 / 5; }
.s11 { width: 31%; } .s11 .size-art { aspect-ratio: 1; }
.size figcaption { margin-top: 0.6rem; font-size: var(--fs-tiny); color: var(--text-2); line-height: 1.35; }
.size figcaption b { display: block; color: var(--text); font-size: var(--fs-small); }
