/* Lakiasiaintoimisto Virranvälke */
:root {
  --navy: #122441;
  --navy-deep: #0b1830;
  --navy-soft: #1d3557;
  --gold: #b8892f;
  --gold-text: #8a6420; /* kulta tekstikäyttöön: kontrasti vaalealla pohjalla >= 4.5:1 */
  --gold-soft: #e9d9b5;
  --paper: #f7f5f0;
  --white: #ffffff;
  --ink: #1b2130;
  --ink-soft: #4b5362;
  --ink-mute: #656c7a;
  --line: #e3dfd6;
  --ok: #2f7d4f;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(18, 36, 65, 0.08);
  --font-serif: "Fraunces", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
}
img { max-width: 100%; display: block; }
a { color: var(--navy-soft); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--gold-text); }
h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; color: var(--navy); letter-spacing: -0.01em; overflow-wrap: break-word; hyphens: auto; }
h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
.container { width: min(var(--max), 100% - 32px); margin-inline: auto; }
.eyebrow { font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-text); margin-bottom: .75rem; }
.lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 60ch; }
.muted { color: var(--ink-mute); }
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section-head { max-width: 62ch; margin-bottom: 2.5rem; }
.section-head p { color: var(--ink-soft); }

/* Saavutettavuus */
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--navy); color: var(--white); padding: 10px 16px; border-radius: 8px; font-weight: 600; text-decoration: none; transition: top .15s; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.btn:focus-visible { outline-offset: 2px; }
svg { flex: none; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 245, 240, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .2s;
}
.site-header.scrolled { box-shadow: 0 6px 24px rgba(18, 36, 65, 0.08); }
.nav .btn svg { width: 16px; height: 16px; }
.site-header .container { position: relative; display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); }
.brand-mark { width: 38px; height: 38px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text small { font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-text); font-weight: 600; }
.brand-footer .brand-text small { color: var(--gold-soft); }
.brand-text span { font-family: var(--font-serif); font-size: 1.25rem; font-weight: 600; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { padding: 8px 12px; border-radius: 8px; font-size: .95rem; font-weight: 500; color: var(--ink); text-decoration: none; white-space: nowrap; }
.nav a:hover { background: rgba(18, 36, 65, 0.06); color: var(--navy); }
.nav a[aria-current="page"] { color: var(--navy); background: rgba(18, 36, 65, 0.08); }
.nav .btn { margin-left: 8px; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 8px; cursor: pointer; color: var(--navy); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: 999px; font-weight: 600; font-size: .95rem;
  text-decoration: none; cursor: pointer; border: 1px solid transparent; transition: transform .15s, background .15s, color .15s;
  font-family: inherit; white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--navy); color: var(--white); }
.btn-primary:hover { background: var(--navy-soft); color: var(--white); }
.btn-gold { background: var(--gold); color: var(--navy-deep); }
.btn-gold:hover { background: #c99a3a; color: var(--navy-deep); }
.btn-outline { background: transparent; border-color: var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--white); }
.btn-light { background: var(--white); color: var(--navy); }
.btn-light:hover { background: var(--gold-soft); color: var(--navy); }
.btn-outline-light { background: transparent; border-color: rgba(255,255,255,.5); color: var(--white); }
.btn-outline-light:hover { background: rgba(255,255,255,.12); color: var(--white); }
.btn-sm { padding: 8px 14px; font-size: .85rem; }

/* Hero */
.hero {
  position: relative; overflow: hidden; color: var(--white);
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(184, 137, 47, 0.35), transparent 60%),
    radial-gradient(700px 400px at -10% 110%, rgba(29, 53, 87, 0.9), transparent 60%),
    linear-gradient(160deg, var(--navy-deep), var(--navy) 60%, var(--navy-soft));
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.6), transparent);
}
.hero::before {
  content: ""; position: absolute; right: -4%; top: -10%; width: 520px; height: 520px; pointer-events: none; opacity: .08;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cpath d='M14 20 C 21 18, 26 32, 32 46 C 38 32, 43 18, 50 20' fill='none' stroke='%23e9d9b5' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M49 8 l1.7 4.3 4.3 1.7 -4.3 1.7 -1.7 4.3 -1.7 -4.3 -4.3 -1.7 4.3 -1.7z' fill='%23e9d9b5'/%3E%3C/svg%3E") no-repeat center / contain;
}
.hero::before { transform: translate(calc(var(--mx, 0) * -14px), calc(var(--my, 0) * -14px)); transition: transform .4s ease-out; }
.hero-bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.hero-bg .waves { position: absolute; left: 0; bottom: -2px; width: 100%; height: 38%; opacity: .38; mask-image: linear-gradient(to top, rgba(0,0,0,1) 30%, transparent); }
.wave { fill: none; stroke: #e9d9b5; stroke-width: 1.4; vector-effect: non-scaling-stroke; animation: waveShift 16s linear infinite; }
.wave:nth-child(2) { stroke-width: 1.1; opacity: .7; animation-duration: 22s; animation-direction: reverse; }
.wave:nth-child(3) { stroke-width: .9; opacity: .5; animation-duration: 28s; }
@keyframes waveShift { from { transform: translateX(0); } to { transform: translateX(-200px); } }
.spark {
  position: absolute; left: var(--x); top: var(--y); width: 12px; height: 12px; opacity: 0;
  background: var(--gold-soft);
  clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%);
  animation: twinkle var(--d) ease-in-out var(--dl) infinite;
  filter: drop-shadow(0 0 6px rgba(233, 217, 181, .9));
}
@keyframes twinkle {
  0%, 100% { opacity: 0; transform: scale(calc(var(--s) * .3)) rotate(0deg); }
  50% { opacity: .95; transform: scale(var(--s)) rotate(45deg); }
}
.hero .container { position: relative; z-index: 1; padding: clamp(64px, 9vw, 120px) 0 clamp(56px, 8vw, 96px); }
.hero-copy > * { animation: riseIn .9s cubic-bezier(.2, .7, .2, 1) both; }
.hero-copy > :nth-child(1) { animation-delay: .05s; }
.hero-copy > :nth-child(2) { animation-delay: .15s; }
.hero-copy > :nth-child(3) { animation-delay: .3s; }
.hero-copy > :nth-child(4) { animation-delay: .45s; }
.hero-copy > :nth-child(5) { animation-delay: .6s; }
.hero-card { animation: riseIn 1s .5s cubic-bezier(.2, .7, .2, 1) both; }
.hero-card.settled { animation: none; transform: translate(calc(var(--mx, 0) * 10px), calc(var(--my, 0) * 10px)); transition: transform .4s ease-out; }
@keyframes riseIn { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
.hero h1 em {
  background: linear-gradient(100deg, #e9d9b5 0%, #fff6dc 25%, #b8892f 50%, #e9d9b5 75%, #fff6dc 100%);
  background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 7s linear infinite;
}
@keyframes shimmer { from { background-position: 0% 50%; } to { background-position: 300% 50%; } }
.hero-grid { display: grid; grid-template-columns: 1.25fr .85fr; gap: 56px; align-items: center; }
.hero .eyebrow { color: var(--gold-soft); }
.hero h1 { color: var(--white); max-width: 14ch; font-size: clamp(2.5rem, 5.2vw, 4rem); }
.hero h1 em { font-style: italic; font-weight: 500; padding-right: .06em; }
.hero .lead { color: rgba(255,255,255,.82); margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 48px; padding-top: 28px; border-top: 1px solid rgba(255,255,255,.15); }
.fact strong { display: block; font-family: var(--font-serif); font-size: 1.7rem; color: var(--gold-soft); line-height: 1.1; margin-bottom: 4px; }
.fact span { font-size: .88rem; color: rgba(255,255,255,.72); }
.hero-card {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.16); border-radius: 20px; padding: 32px;
  backdrop-filter: blur(8px); box-shadow: 0 30px 60px rgba(0,0,0,.25); display: flex; flex-direction: column; gap: 20px;
}
.hero-card-head .eyebrow { margin-bottom: .4rem; }
.hero-card h3 { color: var(--white); margin: 0; font-size: 1.5rem; }
.hero-card-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.hero-card-list li { display: flex; gap: 14px; align-items: flex-start; }
.hero-card-list svg { flex: none; width: 22px; height: 22px; color: var(--gold-soft); margin-top: 2px; }
.hero-card-list strong { display: block; color: var(--white); font-weight: 600; }
.hero-card-list strong a { color: var(--white); text-decoration: none; }
.hero-card-list strong a:hover { color: var(--gold-soft); }
.hero-card-list span { font-size: .85rem; color: rgba(255,255,255,.65); }
.hero-card .btn { align-self: stretch; background: var(--gold); color: var(--navy-deep); }
.hero-card .btn:hover { background: #c99a3a; }

/* Trust strip */
.trust { background: var(--white); border-bottom: 1px solid var(--line); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 28px 0; }
.trust-item { display: flex; gap: 14px; align-items: flex-start; }
.trust-icon { flex: none; width: 40px; height: 40px; border-radius: 10px; background: var(--gold-soft); color: var(--navy); display: grid; place-items: center; }
.trust-icon svg { width: 20px; height: 20px; }
.trust-item div > strong { display: block; color: var(--navy); font-size: .95rem; line-height: 1.3; margin-bottom: 2px; }
.trust-item div > span { font-size: .82rem; color: var(--ink-mute); line-height: 1.4; display: block; }

/* Page hero (subpages) */
.page-hero {
  position: relative; overflow: hidden; color: var(--white);
  background:
    radial-gradient(700px 360px at 90% 0%, rgba(184, 137, 47, 0.28), transparent 60%),
    linear-gradient(160deg, var(--navy-deep), var(--navy) 70%);
}
.page-hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: linear-gradient(90deg, var(--gold), transparent 60%);
}
.page-hero .container { padding: clamp(48px, 7vw, 88px) 0; }
.page-hero h1 { color: var(--white); }
.page-hero p { color: rgba(255,255,255,.8); max-width: 60ch; margin: 0; }
.crumbs { display: flex; gap: 10px; font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; color: rgba(255,255,255,.55); margin-bottom: 1.25rem; }
.crumbs a { color: var(--gold-soft); text-decoration: none; }
.crumbs a:hover { color: var(--white); }

/* Cards */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.card {
  position: relative; overflow: hidden;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 12px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .3s ease; }
.card:hover { transform: translateY(-4px); box-shadow: 0 22px 44px rgba(18, 36, 65, 0.14); border-color: #d9d2c2; }
.card:hover::before { transform: scaleX(1); }
.card::after {
  content: ""; position: absolute; top: -20%; left: -80%; width: 45%; height: 140%; pointer-events: none;
  background: linear-gradient(110deg, transparent 0%, rgba(184, 137, 47, .14) 50%, transparent 100%);
  transform: skewX(-18deg); transition: left .7s ease;
}
.card:hover::after { left: 140%; }
.brand-mark path:last-child { transform-origin: 51px 16px; transition: transform .3s; }
.brand:hover .brand-mark path:last-child { transform: scale(1.5) rotate(45deg); }
.card-top { display: flex; align-items: center; justify-content: space-between; }
.card-num { font-family: var(--font-serif); font-size: 1.1rem; color: var(--line); font-weight: 600; letter-spacing: .04em; }
.card:hover .card-num { color: var(--gold-text); }
.card .icon { width: 48px; height: 48px; border-radius: 12px; background: var(--gold-soft); color: var(--navy); display: grid; place-items: center; }
.card .icon svg { width: 24px; height: 24px; }
.card h3 { margin: 4px 0 0; }
.card .tagline { color: var(--gold-text); font-weight: 600; font-size: .95rem; margin: 0; }
.card p { margin: 0; color: var(--ink-soft); }
.card ul { margin: 0; padding-left: 1.1em; color: var(--ink-soft); }
.card li { margin-bottom: 4px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 8px; }
.tag { font-size: .78rem; font-weight: 500; padding: 4px 10px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); color: var(--ink-soft); }

/* Courses */
.courses { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.course { background: var(--paper); border-color: var(--line); box-shadow: none; }
.course .price { display: flex; flex-direction: column; gap: 2px; margin-top: auto; padding-top: 8px; }
.course .price strong { font-family: var(--font-serif); font-size: 2rem; color: var(--navy); white-space: nowrap; line-height: 1.1; }
.course .price span { font-size: .85rem; color: var(--ink-mute); }
.course .badge { align-self: flex-start; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; background: var(--gold); color: var(--navy-deep); padding: 4px 10px; border-radius: 999px; }
.course .btn { align-self: flex-start; }
.note { font-size: .9rem; color: var(--ink-mute); margin-top: 1.5rem; }

/* CTA strip */
.cta { background: var(--navy); color: var(--white); }
.cta .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding: 56px 0; }
.cta h2 { color: var(--white); margin: 0 0 .25em; }
.cta p { color: rgba(255,255,255,.78); margin: 0; }

/* Prose / two column */
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: start; }
.prose { max-width: 68ch; }
.prose p { color: var(--ink-soft); }
.prose p strong { color: var(--ink); }
.aside { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.aside h3 { margin-top: 0; }
.aside dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; font-size: .95rem; }
.aside dt { color: var(--ink-mute); }
.aside dd { margin: 0; }
.aside-dark { background: var(--navy); border-color: var(--navy); color: var(--white); box-shadow: 0 24px 50px rgba(18, 36, 65, 0.25); }
.aside-dark h3 { color: var(--white); }
.aside-dark .eyebrow { color: var(--gold-soft); }
.aside-dark .muted { color: rgba(255,255,255,.75); }
.aside-dark .muted strong { color: var(--white); }
.process { background: var(--white); border-top: 1px solid var(--line); }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0 0 1.75rem; display: flex; flex-direction: column; gap: 20px; }
.steps li { display: flex; gap: 16px; align-items: flex-start; }
.steps strong { display: block; color: var(--navy); font-size: 1.05rem; margin-bottom: 2px; }
.steps p { margin: 0; color: var(--ink-soft); }
.step-num { flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--navy); color: var(--gold-soft); font-family: var(--font-serif); font-weight: 600; display: grid; place-items: center; }

/* Pricing */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.price-card { background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--gold); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.price-card h3 { font-size: 1.15rem; margin-bottom: 4px; }
.price-card .big { font-family: var(--font-serif); font-size: 2.2rem; color: var(--navy); line-height: 1.1; }
.price-card .big small { font-size: 1rem; font-family: var(--font-sans); color: var(--ink-mute); font-weight: 500; }
.price-card .vat { font-size: .9rem; color: var(--ink-soft); margin-top: 6px; }
.price-card p { margin: 10px 0 0; font-size: .95rem; color: var(--ink-soft); }
.pricing-extra { margin-top: 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.callout { background: var(--gold-soft); border-radius: var(--radius); padding: 20px 24px; color: var(--navy-deep); }
.callout strong { display: block; margin-bottom: 4px; }
.callout p { margin: 0; }

/* Team */
.team { grid-template-columns: repeat(3, 1fr); }
.avatar { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-serif); font-size: 1.6rem; font-weight: 600; background: var(--navy); color: var(--gold-soft); }
.avatar.open { background: var(--gold-soft); color: var(--navy); border: 2px dashed var(--gold); }
.person .role { color: var(--gold-text); font-weight: 600; font-size: .9rem; margin: 0; }
.person .open-badge { align-self: flex-start; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ok); background: #e7f3ec; padding: 4px 10px; border-radius: 999px; }
.featured { display: grid; grid-template-columns: 320px 1fr; gap: 40px; padding: 40px; }
.featured-side { display: flex; flex-direction: column; gap: 10px; }
.featured-side h3 { font-size: 1.6rem; margin: 8px 0 0; }
.featured-side .tags { margin-top: 8px; }
.featured-body p { color: var(--ink-soft); margin-bottom: 1em; }
.featured-body .hero-actions { margin-top: 8px; }
.avatar-lg { width: 112px; height: 112px; font-size: 2.3rem; box-shadow: 0 0 0 6px var(--gold-soft); }
.photo { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; object-position: center top; flex: none; }
.photo-lg { width: 140px; height: 140px; box-shadow: 0 0 0 6px var(--gold-soft), 0 16px 32px rgba(18, 36, 65, .18); }
.photo-xs { width: 24px; height: 24px; vertical-align: middle; margin-right: 6px; display: inline-block; }
.dd-person { display: inline-flex; align-items: center; }
.aside-person { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid rgba(255,255,255,.14); }
.aside-person .photo { box-shadow: 0 0 0 3px var(--gold); }
.aside-person strong { display: block; color: var(--white); font-size: 1.05rem; }
.aside-person span { font-size: .85rem; color: var(--gold-soft); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 40px; align-items: start; }
.info-list { display: flex; flex-direction: column; gap: 20px; }
.info { display: flex; gap: 14px; }
.info .icon { flex: none; width: 40px; height: 40px; border-radius: 10px; background: var(--gold-soft); color: var(--navy); display: grid; place-items: center; }
.info .icon svg { width: 20px; height: 20px; }
.info strong { display: block; color: var(--navy); margin-bottom: 2px; }
.info p { margin: 0; color: var(--ink-soft); font-size: .95rem; }
.form { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.form h3 { margin-top: 0; }
.form .hint { color: var(--ink-mute); font-size: .9rem; margin-bottom: 20px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label { font-size: .9rem; font-weight: 600; color: var(--navy); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--gold); outline-offset: 1px; border-color: var(--gold); }
.field textarea { min-height: 130px; resize: vertical; }
.fields-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.form-demo { margin-top: 12px; font-size: .85rem; color: var(--ink-mute); }

/* Minidigikurssit */
.course-layout { display: grid; grid-template-columns: 1.35fr .95fr; gap: 48px; align-items: start; }
.course-body h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-top: 2.5rem; }
.course-body .lead { margin-bottom: 1.25rem; }
.author-box { display: flex; gap: 20px; align-items: flex-start; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin: 2rem 0; box-shadow: var(--shadow); }
.author-box .photo { width: 88px; height: 88px; box-shadow: 0 0 0 4px var(--gold-soft); }
.author-box h3 { margin: 0 0 .5rem; }
.author-box p { color: var(--ink-soft); margin-bottom: .75em; }
.author-box p:last-child { margin-bottom: 0; }
.includes { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: 14px; }
.includes li { display: flex; gap: 14px; align-items: flex-start; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.inc-icon { flex: none; width: 42px; height: 42px; border-radius: 11px; background: var(--gold-soft); color: var(--navy); display: grid; place-items: center; }
.inc-icon svg { width: 22px; height: 22px; }
.includes strong { display: block; color: var(--navy); margin-bottom: 2px; }
.includes p { margin: 0; color: var(--ink-soft); font-size: .95rem; }
.outcome-box { background: var(--navy); color: var(--white); border-radius: var(--radius); padding: 28px; margin: 1.5rem 0; }
.outcome-box h3 { color: var(--gold-soft); margin-top: 0; font-size: 1.2rem; }
.outcome-box ul { margin: 0; padding-left: 1.2em; color: rgba(255,255,255,.85); }
.outcome-box li { margin-bottom: 6px; }
.guarantee { display: flex; gap: 18px; align-items: flex-start; background: var(--gold-soft); border-radius: var(--radius); padding: 24px; margin-top: 2rem; color: var(--navy-deep); }
.guarantee h3 { margin: 0 0 .4rem; }
.guarantee p { margin: 0 0 .6em; }
.guarantee .inc-icon { background: var(--navy); color: var(--gold-soft); }
.guarantee .muted { color: rgba(11, 24, 48, .65); font-size: .9rem; }
.order-card { position: sticky; top: 96px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: 0 24px 50px rgba(18, 36, 65, .14); }
.order-head { padding-bottom: 20px; margin-bottom: 20px; border-bottom: 1px solid var(--line); }
.order-head .badge { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; background: var(--gold); color: var(--navy-deep); padding: 4px 10px; border-radius: 999px; margin-bottom: 10px; }
.order-head h3 { font-size: 1.25rem; margin-bottom: .5rem; }
.order-head .muted { font-size: .85rem; margin: 0; }
.price-row { display: flex; align-items: baseline; gap: 12px; margin-bottom: 4px; }
.price-row strong { font-family: var(--font-serif); font-size: 2.2rem; color: var(--navy); line-height: 1; }
.price-row s { color: var(--ink-mute); font-size: 1.05rem; }
.order-form .field { margin-bottom: 12px; }
.order-form .btn { width: 100%; margin-top: 6px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--ink-soft); margin: 4px 0 12px; }
.check input { margin-top: 4px; accent-color: var(--gold); }
.pay-note { display: flex; align-items: center; gap: 8px; font-size: .8rem; color: var(--ink-mute); margin: 12px 0 0; }
.pay-note svg { width: 16px; height: 16px; }
.order-done { text-align: center; padding: 8px 0; }
.order-done .inc-icon { margin: 0 auto 14px; width: 56px; height: 56px; background: #e7f3ec; color: var(--ok); }
.order-done .inc-icon svg { width: 28px; height: 28px; }
.order-done h3 { margin-bottom: .5rem; }
.order-done p { color: var(--ink-soft); font-size: .95rem; }
.order-done .btn { margin-top: 8px; }

/* UKK ja asiakaspalaute */
.faq { border-top: 1px solid var(--line); }
.faq-layout { display: grid; grid-template-columns: 1.3fr .8fr; gap: 48px; align-items: start; }
.faq-lead { max-width: 60ch; margin-bottom: 1.75rem; }
.faq-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 1.5rem; }
.faq-list details { background: var(--white); border: 1px solid var(--line); border-radius: 12px; transition: box-shadow .2s, border-color .2s; }
.faq-list details[open] { box-shadow: var(--shadow); border-color: #d9d2c2; }
.faq-list summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 20px; font-weight: 600; color: var(--navy); border-radius: 12px; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--gold-soft); color: var(--navy); font-weight: 500; font-size: 1.25rem; line-height: 1; transition: transform .25s, background .2s; }
.faq-list summary:hover::after { background: var(--gold); }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list summary:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.faq-body { padding: 0 20px 18px; color: var(--ink-soft); }
.faq-body p { margin: 0 0 .75em; }
.faq-body p:last-child { margin-bottom: 0; }
.faq-body ul { margin: .25em 0 .75em; padding-left: 1.2em; }
.faq-body li { margin-bottom: 4px; }
.faq-aside { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 96px; }
.faq-aside .aside h3 { font-size: 1.15rem; margin-bottom: .5rem; }
.faq-aside .aside .muted { margin-bottom: 1.1rem; }
.testimonial { position: relative; margin: 0; background: var(--navy); color: var(--white); border-radius: var(--radius); padding: 30px 28px 26px; box-shadow: 0 24px 50px rgba(18, 36, 65, .25); overflow: hidden; }
.testimonial::before { content: "\201C"; position: absolute; top: -22px; right: 16px; font-family: var(--font-serif); font-size: 10rem; line-height: 1; color: var(--gold); opacity: .3; pointer-events: none; }
.testimonial .stars { color: var(--gold-soft); letter-spacing: 2px; font-size: 1rem; margin-bottom: 12px; }
.testimonial blockquote { position: relative; margin: 0 0 20px; font-family: var(--font-serif); font-size: 1.2rem; line-height: 1.5; color: var(--white); }
.testimonial figcaption { display: flex; align-items: center; gap: 12px; }
.testimonial .avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--gold-soft); color: var(--navy-deep); display: grid; place-items: center; font-weight: 700; font-size: .9rem; flex: none; }
.testimonial figcaption strong { display: block; color: var(--white); }
.testimonial figcaption span { font-size: .85rem; color: rgba(255,255,255,.65); }

/* Ajanvaraus */
.booking-layout { display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: start; }
.gcal-embed { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.gcal-embed iframe { display: block; width: 100%; height: 920px; border: 0; }
.booking { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.booking-pending { text-align: center; padding: 48px 32px; }
.booking-pending .inc-icon { margin: 0 auto 16px; width: 64px; height: 64px; }
.booking-pending .inc-icon svg { width: 30px; height: 30px; }
.booking-pending h2 { font-size: 1.6rem; }
.booking-pending p { color: var(--ink-soft); max-width: 50ch; margin-inline: auto; }
.booking-pending .btn-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 8px; }
.bk-note { margin: 16px 0 0; font-size: .85rem; color: var(--ink-mute); }
.bk-summary { position: sticky; top: 96px; }
.bk-steps { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 14px; }
.bk-steps li { display: flex; gap: 12px; align-items: flex-start; }
.bk-steps strong { display: block; color: var(--navy); font-size: .95rem; }
.bk-steps p { margin: 2px 0 0; font-size: .88rem; color: var(--ink-mute); }
.bk-dl { display: grid; grid-template-columns: auto 1fr; gap: 10px 18px; margin: 0 0 20px; font-size: .95rem; }
.bk-dl dt { color: var(--ink-mute); }
.bk-dl dd { margin: 0; color: var(--navy); font-weight: 600; }
.bk-info { background: var(--paper); border-radius: 12px; padding: 14px 16px; font-size: .9rem; color: var(--ink-soft); }
.bk-info p { margin: 0; }
.bk-info strong { color: var(--navy); }

/* Stripe-ostonappi */
.stripe-box { margin-top: 4px; }
.stripe-box stripe-buy-button { display: block; }
.order-card > .btn-gold { width: 100%; }
.order-card .small { font-size: .82rem; margin: 10px 0 0; }

/* Legal */
.legal { max-width: 74ch; }
.legal h2 { font-size: 1.35rem; margin-top: 2.2rem; }
.legal p, .legal li { color: var(--ink-soft); }
.legal address { font-style: normal; color: var(--ink-soft); line-height: 1.8; }
.disclaimer { border-left: 4px solid var(--gold); background: var(--white); padding: 16px 20px; border-radius: 0 var(--radius) var(--radius) 0; margin-bottom: 2rem; }
.disclaimer p { margin: 0; font-size: .95rem; }

/* Footer */
.site-footer { background: var(--navy-deep); color: rgba(255,255,255,.75); font-size: .92rem; border-top: 3px solid var(--gold); }
.site-footer .container { padding: 56px 0 32px; }
.brand-footer { margin-bottom: 16px; color: var(--white); }
.brand-footer .brand-text span { color: var(--white); }
.footer-meta { color: rgba(255,255,255,.5); font-size: .85rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.site-footer h4 { color: var(--white); font-family: var(--font-sans); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 12px; }
.site-footer a { color: rgba(255,255,255,.85); text-decoration: none; }
.site-footer a:hover { color: var(--gold-soft); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.footer-bottom { margin-top: 32px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .85rem; color: rgba(255,255,255,.55); }

/* Cookie banner + toast */
.cookie {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60;
  max-width: 560px; margin-inline: auto;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 20px 50px rgba(0,0,0,.18);
  padding: 20px; display: none; gap: 12px; flex-direction: column;
}
.cookie.show { display: flex; }
.cookie p { margin: 0; font-size: .92rem; color: var(--ink-soft); }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px);
  background: var(--navy); color: var(--white); padding: 12px 18px; border-radius: 10px; font-size: .95rem;
  box-shadow: 0 10px 30px rgba(0,0,0,.25); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 70; max-width: calc(100% - 32px);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .card, .btn, .faq-list summary::after { transition: none; }
  .wave, .spark, .hero-copy > *, .hero-card, .hero h1 em { animation: none; }
  .spark { opacity: .6; }
  .hero h1 em { color: var(--gold-soft); background: none; -webkit-background-clip: initial; background-clip: initial; }
  .hero::before, .hero-card.settled { transform: none; transition: none; }
  .card::after { display: none; }
  html { scroll-behavior: auto; }
}

/* Responsive */
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-card { max-width: 520px; }
  .trust-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .grid-2, .grid-3, .team, .pricing { grid-template-columns: 1fr 1fr; }
  /* Kolmen kortin ryhmässä viimeinen kortti levenee koko riville, ettei se jää orvoksi */
  .grid-3 > :last-child:nth-child(odd), .pricing > :last-child:nth-child(odd) { grid-column: 1 / -1; }
  .split, .contact-grid, .footer-grid, .featured, .course-layout, .faq-layout, .booking-layout { grid-template-columns: 1fr; }
  .faq-aside, .bk-summary { position: static; }
  .featured { padding: 28px; }
  .order-card { position: static; }
}
@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none; position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; background: var(--paper); border-bottom: 1px solid var(--line); padding: 12px 16px 16px;
    box-shadow: 0 16px 30px rgba(18, 36, 65, 0.12);
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px; }
  .nav .btn { margin: 8px 0 0; }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .grid-2, .grid-3, .team, .pricing, .pricing-extra, .fields-2, .trust-grid { grid-template-columns: 1fr; }
  .hero-facts { grid-template-columns: 1fr; gap: 20px; }
  .hero-card { padding: 24px; }
  .hero::before { display: none; }
  .form { padding: 24px 20px; }
  .page-hero h1 { font-size: clamp(1.6rem, 7.6vw, 2.1rem); }
  .order-card { padding: 22px; }
  .booking { padding: 24px 20px; }
  .booking-pending { padding: 36px 20px; }
  .gcal-embed iframe { height: 760px; }
  .testimonial { padding: 26px 22px 22px; }
}
