/* Syntymäpäiväradio - premium customer site, mobile-first */
@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&family=Source+Sans+3:wght@400;500;600&display=swap");
:root {
  --bg: #0c0b0a;
  --bg-soft: #161412;
  --bg-card: #1a1816;
  --ink: #f4efe6;
  --ink-soft: #c9c0b3;
  --muted: #9a9083;
  --line: #2c2924;
  --accent: #c4a574;
  --accent-deep: #e0c48a;
  --accent-soft: #2a2418;
  --warm: #b8895a;
  --ok: #7a9a82;
  /* Patch13: theme tokens (dark = default) */
  --on-accent: #0c0b0a;
  --header-bg: rgba(12, 11, 10, 0.92);
  --cookie-bg: rgba(22, 20, 18, 0.96);
  --player-a: #1e1b18;
  --player-b: #151311;
  --live-a: #1a1612;
  --live-b: #2a221c;
  --wave: rgba(196, 165, 116, 0.45);
  --wave-ready: rgba(196, 165, 116, 0.7);
  --tint: rgba(196, 165, 116, 0.08);
  --glow-1: rgba(184, 137, 90, 0.16);
  --glow-2: rgba(196, 165, 116, 0.08);
  --ok-bg: #1a2a20;
  --ok-line: #3d5a45;
  --ok-ink: #a8c4b0;
  --warn-bg: #2a2418;
  --warn-ink: #e0c48a;
  --err-bg: rgba(120, 40, 40, 0.18);
  --err-line: #a85a5a;
  --err-ink: #f3e9e9;
  --blocked-bg: #3a1c1c;
  --blocked-line: #5a2a2a;
  --blocked-ink: #e8b4b4;
  --radius: 4px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --max: 72rem;
  --font: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --sans: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; color-scheme: dark; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background:
    radial-gradient(1100px 520px at 8% -8%, var(--glow-1), transparent 58%),
    radial-gradient(900px 420px at 100% 12%, var(--glow-2), transparent 52%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, picture, video, canvas, svg { display: block; max-width: 100%; height: auto; }
audio { max-width: 100%; width: 100%; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--accent-deep); }
h1, h2, h3, .brand {
  font-family: var(--font);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--ink);
}
h1 { font-size: clamp(2.2rem, 6.2vw, 4rem); margin: 0 0 0.85rem; }
h2 { font-size: clamp(1.85rem, 4.4vw, 2.75rem); margin: 0 0 0.85rem; }
h3 { font-size: clamp(1.38rem, 2.6vw, 1.8rem); margin: 0 0 0.55rem; }
p { margin: 0 0 1rem; }
.lead { font-size: 1.125rem; color: var(--ink-soft); max-width: 40rem; }
.muted { color: var(--muted); }
.small { font-size: 0.92rem; }

.skip { position: absolute; left: -9999px; }
.skip:focus {
  left: 1rem; top: 1rem; z-index: 100;
  background: var(--bg-card); color: var(--ink);
  padding: 0.5rem 0.75rem; border-radius: 6px;
  border: 1px solid var(--accent);
}

.test-banner {
  background: var(--accent);
  color: var(--on-accent);
  text-align: center;
  font-size: 0.88rem;
  padding: 0.55rem 1rem;
  line-height: 1.4;
}
.test-banner strong { font-weight: 600; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--header-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.75rem 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.brand {
  color: var(--ink);
  text-decoration: none;
  font-size: 1.15rem;
  white-space: nowrap;
}
.brand:hover { color: var(--accent); }
.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.75rem;
  min-height: 2.75rem;
  border: 1px solid var(--line);
  background: var(--bg-card);
  border-radius: 8px;
  padding: 0.45rem 0.8rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  color: var(--ink);
}
.site-nav {
  display: none;
  width: 100%;
  flex-direction: column;
  align-items: stretch;
  gap: 0.15rem;
  padding: 0.25rem 0 0.5rem;
}
.site-nav.open { display: flex; }
.site-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 1rem;
  padding: 0.7rem 0.35rem;
  border-radius: 8px;
  min-height: 2.75rem;
  display: flex;
  align-items: center;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] { color: var(--accent); background: var(--accent-soft); }
.site-nav a[aria-current="page"] { font-weight: 600; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1rem;
}
.section { padding: 2.5rem 0; }
.section.tight { padding: 1.75rem 0 2.5rem; }
.section-alt {
  background:
    radial-gradient(820px 300px at 82% 0%, var(--tint), transparent 62%),
    var(--bg-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.hero { padding: 2rem 0 1.5rem; }
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  align-items: start;
}
.kicker {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--warm);
  font-weight: 600;
  margin-bottom: 0.65rem;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.85rem;
  color: var(--muted);
  font-size: 0.95rem;
  margin: 1rem 0 1.35rem;
}
.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.hero-meta span:not(:last-child)::after {
  content: "";
  width: 0.3rem;
  height: 0.3rem;
  border-radius: 50%;
  background: var(--line);
  display: inline-block;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.25rem 0;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border-radius: 999px;
  padding: 0.85rem 1.35rem;
  min-height: 2.85rem;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  text-align: center;
}
.btn-primary { background: var(--accent); color: var(--on-accent); font-weight: 600; }
.btn-primary:hover { background: var(--accent-deep); color: var(--on-accent); }
.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-secondary:hover { background: var(--ink); color: var(--bg); }
.btn-ghost {
  background: var(--bg-card);
  color: var(--accent);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-deep); }

.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.2rem;
  box-shadow: var(--shadow);
}
.card + .card { margin-top: 1rem; }
.grid-1 > .card + .card,
.grid-2 > .card + .card,
.grid-3 > .card + .card { margin-top: 0; }
.grid-1 { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.quote {
  font-family: var(--font);
  font-size: 1.2rem;
  line-height: 1.35;
  margin: 0 0 0.75rem;
}
.quote-attr { color: var(--muted); font-size: 0.9rem; margin: 0; }

.grid-2, .grid-3, .grid-4 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.15rem;
}
.mt { margin-top: 1.35rem; }

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  max-width: 44rem;
}
.feature-list li {
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1.5rem 1fr;
  gap: 0.6rem;
}
.feature-list li:last-child { border-bottom: 0; }
.feature-list li::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  margin-top: 0.55rem;
  border-radius: 50%;
  background: var(--accent);
}

.audio-block { margin-top: 1rem; }
.audio-block audio { margin-top: 0.5rem; }
.lupa-note { font-size: 0.85rem; color: var(--muted); margin: 0.35rem 0 0; }
.lupa-warn { color: var(--warm); }

.media {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-soft);
}
.media img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.media.portrait img { aspect-ratio: 4 / 5; object-fit: cover; }
.media.hero-shot img { aspect-ratio: 6 / 5; object-fit: cover; }
.media figcaption,
.placeholder figcaption {
  font-size: 0.88rem;
  color: var(--muted);
  padding: 0.65rem 0.85rem 0.85rem;
  margin: 0;
  background: var(--bg-card);
}
.placeholder {
  margin: 0;
  border: 1.5px dashed var(--line);
  border-radius: var(--radius);
  background: repeating-linear-gradient(
    -45deg,
    var(--bg-card),
    var(--bg-card) 12px,
    var(--bg-soft) 12px,
    var(--bg-soft) 24px
  );
  min-height: 12rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}
.placeholder .ph-label {
  padding: 1.25rem 1rem 0.35rem;
  font-family: var(--font);
  font-size: 1.05rem;
  color: var(--ink-soft);
}
.people-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1rem;
}
.steps li {
  counter-increment: step;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem 1.15rem 1.15rem 4.4rem;
  position: relative;
}
.steps li::before {
  content: counter(step, upper-roman);
  position: absolute;
  left: 0.85rem;
  top: 0.85rem;
  font-family: var(--font);
  font-weight: 600;
  font-size: 2.5rem;
  line-height: 1;
  color: var(--accent);
  letter-spacing: 0.04em;
}
@media (min-width: 700px) {
  .steps li { padding-left: 5.6rem; }
  .steps li::before { font-size: 3.5rem; top: 0.7rem; }
}

.price-hero {
  font-family: var(--font);
  font-size: clamp(2rem, 6vw, 2.8rem);
  margin: 0.25rem 0 0.5rem;
}
.price-hero span {
  font-size: 0.5em;
  color: var(--muted);
  font-family: var(--sans);
  font-weight: 500;
}
.calc-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
}
.calc-table th,
.calc-table td {
  text-align: left;
  padding: 0.7rem 0.4rem;
  border-bottom: 1px solid var(--line);
}
.calc-table th { color: var(--muted); font-weight: 600; font-size: 0.9rem; }

.faq details {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.95rem 1.05rem;
  margin-bottom: 0.75rem;
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  padding-right: 1.5rem;
  position: relative;
  min-height: 1.5rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 0;
  color: var(--accent);
  font-weight: 700;
}
.faq details[open] summary::after { content: "-"; }
.faq details p:last-child { margin-bottom: 0.25rem; }
.faq details[open] summary { margin-bottom: 0.55rem; }

.form-grid { display: grid; gap: 1rem; }
label {
  display: grid;
  gap: 0.35rem;
  font-weight: 600;
  font-size: 0.95rem;
}
input[type="text"],
input[type="email"],
input[type="number"],
input[type="month"],
input[type="date"],
textarea,
select {
  font: inherit;
  padding: 0.8rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  color: var(--ink);
  width: 100%;
  min-height: 2.85rem;
}
input[type="text"]:focus,
input[type="email"]:focus,
input[type="number"]:focus,
input[type="month"]:focus,
input[type="date"]:focus,
textarea:focus,
select:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}
textarea { min-height: 7.5rem; resize: vertical; }
.check {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  font-weight: 500;
}
.check input {
  margin-top: 0.25rem;
  width: 1.15rem;
  height: 1.15rem;
  flex-shrink: 0;
}
.form-note {
  background: var(--accent-soft);
  border-radius: var(--radius);
  padding: 0.9rem 1rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
}
.success-box {
  display: none;
  background: var(--ok-bg);
  border: 1px solid var(--ok-line);
  color: var(--ok-ink);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  margin-top: 1rem;
}
.error-box{display:none;margin-top:1rem;padding:1rem 1.1rem;border:1px solid var(--err-line);background:var(--err-bg);border-radius:10px;color:var(--err-ink)}
.error-box.show{display:block}
.success-box.show { display: block; }

.live-shell {
  display: grid;
  gap: 1.25rem;
}
.live-player {
  position: sticky;
  top: 4.5rem;
  z-index: 5;
}
.live-placeholder {
  background: linear-gradient(160deg, var(--live-a), var(--live-b));
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.25rem;
  text-align: center;
  min-height: 11rem;
  display: grid;
  place-content: center;
  gap: 0.5rem;
}
.live-placeholder strong {
  font-family: var(--font);
  font-size: 1.25rem;
}
.shoutbox { display: grid; gap: 1rem; }
.shout-list {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 18rem;
  overflow: auto;
  display: grid;
  gap: 0.65rem;
  -webkit-overflow-scrolling: touch;
}
.shout-list li {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.75rem 0.9rem;
}
.shout-list .name {
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.2rem;
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
}
.shout-list .time {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 500;
  white-space: nowrap;
}
.shout-list li.pending {
  border-style: dashed;
}
.shout-list li.rejected {
  opacity: 0.7;
}
.shout-list .status {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 500;
  margin-top: 0.35rem;
}
.shout-list .msg {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
#shout-status {
  margin: 0.45rem 0 0;
  font-size: 0.95rem;
}
#shout-status.is-error { color: var(--err-ink); }
.shout-review { margin: 1rem 0; }
.shout-review-meta {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: baseline;
}
.shout-review-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}
.empty-state { color: var(--muted); font-style: italic; }

.compare { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 1.25rem 0; }
.compare table {
  width: 100%;
  border-collapse: collapse;
  min-width: 40rem;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.compare th, .compare td {
  padding: 0.85rem 0.75rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  font-size: 0.95rem;
}
.compare th {
  font-size: 0.88rem;
  color: var(--muted);
  font-weight: 600;
  background: var(--bg-soft);
}
.compare thead th:last-child,
.compare td.ours,
.compare th.ours {
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-weight: 700;
}
.compare td.ours { color: var(--ink); }
.compare tbody tr:last-child th,
.compare tbody tr:last-child td { border-bottom: 0; }
.compare td:first-child,
.compare th:first-child { font-weight: 600; white-space: nowrap; }

.calendar-placeholder {
  border: 1.5px dashed var(--accent);
  border-radius: var(--radius);
  padding: 2rem 1.25rem;
  text-align: center;
  color: var(--muted);
  min-height: 12rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--bg);
}
.calendar-placeholder strong {
  font-family: var(--font);
  font-size: 1.15rem;
  color: var(--ink-soft);
  font-weight: 600;
}

.avoin {
  display: inline-block;
  background: var(--accent-soft);
  color: var(--accent-deep);
  border-radius: 6px;
  padding: 0.05rem 0.4rem;
  font-size: 0.85rem;
  font-weight: 700;
}

.page-hero { padding: 1.75rem 0 0.75rem; }
.breadcrumbs {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 0.85rem;
}
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--accent); }

.demo-item {
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
}
.demo-item:last-child { border-bottom: 0; }
.demo-item h3 { margin-bottom: 0.25rem; }
.tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--ink-soft);
  margin-left: 0.25rem;
  vertical-align: middle;
}
.tag.ok { background: var(--ok-bg); color: var(--ok-ink); }
.tag.warn { background: var(--warn-bg); color: var(--warn-ink); }

.site-footer {
  margin-top: 2rem;
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
  padding: 2.25rem 0 2rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem 1.5rem;
}
.site-footer a { color: var(--ink-soft); }
.site-footer a:hover { color: var(--accent); }
.footer-brand {
  font-family: var(--font);
  font-size: 1.2rem;
  color: var(--ink);
  margin-bottom: 0.5rem;
}
.footer-nav {
  list-style: none;
  padding: 0;
  margin: 0.35rem 0 0;
  display: grid;
  gap: 0.35rem;
}
.footer-note {
  margin-top: 1.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: 0.88rem;
  color: var(--muted);
}

.sitemap-list {
  columns: 1;
  list-style: none;
  padding: 0;
}
.sitemap-list li { margin-bottom: 0.65rem; break-inside: avoid; }

.narrow { max-width: 46rem; }
.narrow-sm { max-width: 40rem; }

@media (min-width: 640px) {
  .wrap { padding: 0 1.25rem; }
  .header-inner { padding: 0.85rem 1.25rem; }
  .people-grid { grid-template-columns: 1fr 1fr; }
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 0.75rem 2.5rem; }
  .sitemap-list { columns: 2; gap: 2rem; }
}

@media (min-width: 900px) {
  body { font-size: 1.05rem; }
  .nav-toggle { display: none; }
  .site-nav {
    display: flex;
    width: auto;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.15rem 1rem;
    padding: 0;
  }
  .site-nav a {
    padding: 0.35rem 0;
    min-height: 0;
    background: transparent;
  }
  .site-nav a:hover,
  .site-nav a[aria-current="page"] { background: transparent; }
  .hero { padding: 3.25rem 0 2.5rem; }
  .hero-grid { grid-template-columns: 1.25fr 1fr; gap: 2.5rem; }
  .section { padding: 3.25rem 0; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .live-shell { grid-template-columns: 1.05fr 1fr; align-items: start; }
  .people-grid { grid-template-columns: 1fr 1fr; max-width: 46rem; }
}

@media (min-width: 1100px) {
  .hero-grid { grid-template-columns: 1.35fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}

.person img{width:100%;height:auto;display:block;border-radius:12px;object-fit:cover;aspect-ratio:3/4}
.person figcaption{margin-top:.5rem;font-size:.95rem}
.person figcaption p{margin:0 0 .45rem}
.person figcaption p:last-child{margin-bottom:0}
.person-meta{font-weight:600}
.media.ratio-4x3 img{aspect-ratio:4/3}

.brand{
  display:inline-flex;
  align-items:center;
  gap:0.7rem;
  background:transparent;
  border-radius:0;
  padding:0;
  line-height:1.05;
  color:var(--ink);
  text-decoration:none;
}
.brand:hover{color:var(--accent)}
.brand-mark{
  width:44px;height:44px;
  object-fit:contain;
  border-radius:0;
  border:0;
  background:transparent;
  flex-shrink:0;
}
.brand-text{
  display:flex;
  flex-direction:column;
  font-family:var(--font);
  font-size:1.22rem;
  font-weight:600;
  color:var(--ink);
  letter-spacing:0.01em;
}
.brand-radio{
  font-size:0.62em;
  letter-spacing:0.2em;
  text-transform:uppercase;
  color:var(--accent);
  font-weight:600;
}
@media(max-width:480px){
  .brand-mark{width:38px;height:38px}
  .brand-text{font-size:1.08rem}
}
.footer-brand{display:flex;align-items:center;gap:.7rem;font-weight:700}
.footer-logo{height:44px;width:44px;object-fit:contain;border-radius:0;border:0;background:transparent}
.footer-contacts{margin-top:1.75rem;padding-top:1.25rem;border-top:1px solid var(--line)}
.footer-contacts > strong{display:block;color:var(--ink);margin-bottom:.85rem}
.contact-row{display:grid;gap:1rem}
.contact-card{display:flex;gap:.85rem;align-items:flex-start}
.contact-card img{width:72px;height:96px;object-fit:cover;border-radius:10px;flex-shrink:0}
.contact-name{margin:0;font-weight:650;color:var(--ink)}
.contact-role{margin:.15rem 0 .35rem;color:var(--muted);font-size:.88rem}
.contact-card p{margin:0}
.contact-general{margin:.9rem 0 0}
@media (min-width:640px){
  .contact-row{grid-template-columns:1fr 1fr;gap:1.5rem;max-width:40rem}
}


/* SOSTAC polish 6.11 */
.calc-table tr.highlight td {
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-weight: 700;
}
.section .lead { margin-bottom: 0.35rem; }
.btn-row.mt { margin-top: 1.5rem; }
.form-grid .btn { justify-self: start; }


/* Calendar and premium polish 6.11 evening */
.calendar {
  margin-top: 1rem;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1rem 0.85rem 0.85rem;
}
.cal-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}
.cal-title {
  margin: 0;
  font-size: 1.15rem;
  text-transform: capitalize;
  text-align: center;
  flex: 1;
}
.cal-nav {
  width: 2.6rem;
  height: 2.6rem;
  border: 1px solid var(--line);
  background: var(--bg-card);
  color: var(--ink);
  border-radius: 999px;
  font: inherit;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}
.cal-nav:hover {
  border-color: var(--accent);
  color: var(--accent-deep);
}
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.28rem;
}
.cal-dow {
  text-align: center;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0.25rem 0 0.45rem;
}
.cal-cell { min-height: 2.4rem; }
.cal-day {
  width: 100%;
  aspect-ratio: 1;
  min-height: 2.4rem;
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink);
  border-radius: 8px;
  font: inherit;
  font-size: 0.92rem;
  cursor: pointer;
}
.cal-day:hover:not(:disabled) {
  background: var(--accent-soft);
  color: var(--accent-deep);
  border-color: var(--line);
}
.cal-day.is-today { border-color: var(--accent); }
.cal-day.is-weekend:not(.is-selected) {
  background: var(--tint);
}
.cal-day.is-selected {
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 700;
}
.cal-day.is-past,
.cal-day:disabled {
  opacity: 0.32;
  cursor: not-allowed;
  color: var(--muted);
}
.cal-legend {
  margin: 0.85rem 0 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.page-hero { padding: 2.1rem 0 1rem; }
.hero p { max-width: 40rem; }
.media img { filter: saturate(0.92) contrast(1.04); }
.person img { border: 1px solid var(--line); }
.compare table { overflow: hidden; }
.sitemap-list a { font-weight: 600; }

@media (min-width: 900px) {
  .header-inner { padding: 0.7rem 1.25rem; }
  .hero { padding: 3.6rem 0 2.8rem; }
}

/* Mikko feedback 6.11 evening: festive hero, players, icons, consent, calendar */
.hero-full {
  position: relative;
  min-height: min(86vh, 48rem);
  display: grid;
  align-items: end;
  padding: 0;
  overflow: hidden;
}
.hero-full .hero-bg {
  position: absolute;
  inset: 0;
}
.hero-full .hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.88) contrast(1.08) brightness(0.52);
  aspect-ratio: auto;
}
.hero-full .hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(12,11,10,0.2) 0%, rgba(12,11,10,0.42) 38%, rgba(12,11,10,0.94) 100%),
    radial-gradient(ellipse at 18% 78%, rgba(196,165,116,0.22), transparent 55%);
}
.hero-full .hero-copy {
  position: relative;
  z-index: 1;
  padding: 7rem 0 3.2rem;
}
.hero-full h1 { max-width: 18ch; text-shadow: 0 18px 40px rgba(0,0,0,0.45); }
.hero-full .lead, .hero-full p { max-width: 40rem; }
@media (min-width: 900px) {
  .hero-full { min-height: min(92vh, 54rem); }
  .hero-full .hero-copy { padding: 9rem 0 4.2rem; }
}

.icon {
  width: 6.5rem;
  height: 6.5rem;
  stroke: none;
  fill: var(--accent);
  flex-shrink: 0;
  object-fit: contain;
}
.icon-lg { width: 8.5rem; height: 8.5rem; }
.illu {
  width: 100%;
  max-width: 28rem;
  height: auto;
  stroke: none;
  fill: var(--accent);
  object-fit: contain;
}

.step-grid { display: grid; gap: 1.15rem; }
.step-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.25rem 1.3rem;
  box-shadow: var(--shadow);
  display: grid;
  gap: 0.55rem;
}
.step-card .step-top { display: flex; gap: 0.9rem; align-items: flex-start; }
.step-card h2, .step-card h3 { margin: 0; }
.step-num {
  font-family: var(--font);
  font-weight: 600;
  font-size: 2.5rem;
  line-height: 1;
  color: var(--accent);
  letter-spacing: 0.04em;
  margin: 0 0 0.15rem;
}
@media (min-width: 700px) {
  .step-num { font-size: 3.5rem; }
}

.spr-player {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto auto;
  column-gap: 0.85rem;
  row-gap: 0.35rem;
  align-items: center;
  background: linear-gradient(180deg, var(--player-a), var(--player-b));
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.9rem 1rem;
}
.spr-player .play {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  border: 0;
  background: var(--accent);
  color: var(--on-accent);
  cursor: pointer;
  display: grid;
  place-items: center;
  grid-row: 1 / 3;
  flex-shrink: 0;
}
.spr-player .play:hover { background: var(--accent-deep); }
.spr-player .play svg { width: 1.15rem; height: 1.15rem; fill: currentColor; }
.spr-player .ptitle { font-weight: 650; margin: 0; font-size: 1rem; }
.spr-player .ptime { color: var(--muted); font-size: 0.85rem; }
.spr-player .wave {
  grid-column: 1 / -1;
  height: 2.1rem;
  display: flex;
  align-items: center;
  gap: 2px;
  margin-top: 0.25rem;
}
.spr-player .wave i {
  display: block;
  width: 3px;
  background: var(--wave);
  border-radius: 2px;
  height: var(--h, 40%);
}
.spr-player.is-ready .wave i { background: var(--wave-ready); }
.spr-player.is-playing .wave i {
  animation: wave 1s ease-in-out infinite;
  animation-delay: var(--d, 0s);
  background: var(--accent);
}
.spr-player .bar {
  grid-column: 1 / -1;
  height: 4px;
  background: var(--line);
  border-radius: 99px;
  overflow: hidden;
  cursor: pointer;
}
.spr-player .bar span {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--accent);
}
@keyframes wave {
  0%, 100% { transform: scaleY(0.55); }
  50% { transform: scaleY(1); }
}

.testimonial.is-placeholder {
  border-style: dashed;
  opacity: 0.92;
}
.testimonial.is-placeholder .quote { color: var(--ink-soft); font-style: italic; }

.compare th.ours, .compare thead th:last-child {
  background: var(--accent-soft);
  color: var(--accent-deep);
  box-shadow: inset 0 0 0 1px rgba(196,165,116,0.35);
}
.compare td.ours {
  background: var(--tint);
  font-weight: 600;
}

.cal-day.is-blocked,
.cal-day.is-blocked:disabled {
  background: var(--blocked-bg);
  color: var(--blocked-ink);
  opacity: 1;
  cursor: not-allowed;
  text-decoration: line-through;
  border-color: var(--blocked-line);
}
.cal-legend .swatch {
  display: inline-block;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 2px;
  margin-right: 0.25rem;
  vertical-align: -1px;
}
.swatch-blocked { background: var(--blocked-bg); border: 1px solid var(--blocked-line); }

.cookie-banner {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 90;
  background: var(--cookie-bg);
  border-top: 1px solid var(--accent);
  padding: 1.15rem 0;
  box-shadow: 0 -16px 40px rgba(0,0,0,0.35);
}
.cookie-inner { display: grid; gap: 1rem; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; }
.cookie-actions .btn { min-width: 10.5rem; flex: 1 1 10.5rem; }
.hp { position: absolute; left: -9999px; height: 0; width: 0; overflow: hidden; }
.admin-bar { background: var(--accent-soft); color: var(--accent-deep); padding: 0.6rem 1rem; font-size: 0.92rem; }

.demo-hero-strip {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin: 1.25rem 0;
}
.demo-hero-strip img {
  width: 100%;
  height: 10rem;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
.demo-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem;
  display: grid;
  gap: 0.55rem;
}
.demo-card .demo-head { display: flex; gap: 0.8rem; align-items: flex-start; }
.section-glow {
  background:
    radial-gradient(700px 240px at 20% 100%, rgba(184,137,90,0.12), transparent 60%),
    transparent;
}

@media (min-width: 640px) {
  .demo-hero-strip { grid-template-columns: repeat(3, 1fr); }
  .demo-hero-strip img { height: 12rem; }
  .step-grid.two { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 900px) {
  h2 { font-size: clamp(2rem, 3.2vw, 2.85rem); }
  .cookie-inner { grid-template-columns: 1.6fr 1fr; align-items: center; }
}

/* Compact friendly consent (Mikko 6.11) */
.cookie-banner{left:auto!important;right:1rem!important;bottom:1rem!important;max-width:26rem;width:calc(100% - 2rem);border:1px solid var(--line);border-radius:10px;background:var(--cookie-bg)!important;box-shadow:var(--shadow);padding:.9rem 1rem!important}
.cookie-banner .cookie-inner{display:flex;flex-direction:column;gap:.6rem;padding:0;max-width:none}
.cookie-banner .cookie-text{margin:0;font-size:.92rem;line-height:1.45;color:var(--ink-soft)}
.cookie-banner .cookie-actions{display:flex;gap:.5rem}
.cookie-banner .btn-small{padding:.45rem 1rem;font-size:.9rem}

/* Brand always one word (Mikko 6.11) */
.brand-text{white-space:nowrap;display:inline-block}


/* Nimetön asiakaspalaute: lämmin vaalea pinta, erottuu tummakultaisesta */
.testimonials-band {
  background: linear-gradient(180deg, #f4efe6 0%, #ebe3d4 100%);
  color: #2a241c;
  border-top: 1px solid rgba(196, 165, 116, 0.35);
  border-bottom: 1px solid rgba(196, 165, 116, 0.35);
}
.testimonials-band .kicker {
  color: #6b532c;
  letter-spacing: 0.14em;
}
.testimonials-band h2 {
  color: #1c1812;
  font-weight: 500;
}
.testimonials-band .lead {
  color: #5a5146;
  max-width: 36rem;
}
.testimonials-grid {
  display: grid;
  gap: 1.25rem;
  margin-top: 1.75rem;
}
@media (min-width: 800px) {
  .testimonials-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    align-items: stretch;
  }
}
.testimonial-card {
  position: relative;
  background: #faf7f1;
  border: 1px solid rgba(196, 165, 116, 0.45);
  border-radius: 14px;
  padding: 1.6rem 1.4rem 1.45rem;
  box-shadow: 0 10px 28px rgba(40, 30, 18, 0.06);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.testimonial-card::before {
  content: "”";
  position: absolute;
  top: 0.35rem;
  left: 0.85rem;
  font-family: var(--font);
  font-size: 3.4rem;
  line-height: 1;
  color: #c4a574;
  opacity: 0.85;
  pointer-events: none;
}
.testimonial-card .quote-line {
  width: 2.4rem;
  height: 2px;
  background: #c4a574;
  margin-top: 0.15rem;
  border: 0;
}
.testimonial-quote {
  font-family: var(--font);
  font-size: clamp(1.15rem, 2.2vw, 1.35rem);
  line-height: 1.45;
  color: #241e16;
  margin: 0;
  padding-top: 1.1rem;
  font-weight: 500;
  quotes: none;
}

/* Patch9: typographic header wordmark only; footer and content icons unchanged. */
.site-header .brand {
  gap: 0;
  min-width: 0;
  max-width: 100%;
  flex: 0 1 auto;
  background: transparent;
  border: 0;
  box-shadow: none;
}
.site-header .brand-mark { display: none; }
.site-header .brand-text {
  display: inline-block;
  font-family: var(--font);
  font-weight: 700;
  font-size: clamp(1.5rem, 4.8vw, 2.25rem);
  line-height: 1.12;
  letter-spacing: -0.045em;
  font-kerning: normal;
  font-variant-ligatures: common-ligatures;
  color: var(--ink);
  white-space: nowrap;
  word-break: normal;
  overflow-wrap: normal;
  text-transform: none;
}
.site-header .brand:hover .brand-text { color: var(--accent-deep); }
@media (max-width: 480px) {
  .site-header .header-inner { gap: .5rem; }
  .site-header .brand-text { font-size: clamp(1.25rem, 5.65vw, 1.65rem); }
  .site-header .nav-toggle { padding-inline: .6rem; flex-shrink: 0; }
}
@media (min-width: 900px) and (max-width: 1099px) {
  .site-header .brand-text { font-size: 1.9rem; }
}

/* Patch11: touch targets and clear confirmed price; header wordmark unchanged. */
.site-footer a { display: inline-flex; align-items: center; min-height: 44px; }
.hero-meta, .hero-meta span { color: var(--ink); font-size: 1rem; font-weight: 600; }


/* Patch13 (10.11.2026): grouped samples, all visible */
h4 { font-family: var(--font); font-weight: 600; font-size: clamp(1.25rem, 2.2vw, 1.5rem); line-height: 1.2; margin: 0 0 0.5rem; color: var(--ink); }
.step-top { display: flex; gap: 0.9rem; align-items: center; margin-bottom: 0.5rem; }
.step-top h3, .step-top h4 { margin: 0; }
.demo-group + .demo-group { margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.demo-group > h2, .demo-group > h3 { margin-bottom: 0.35rem; }
.demo-group > .muted { margin-bottom: 1.1rem; }
.demo-group > .grid-2 { margin-top: 1.1rem; }
.demo-group .card { display: grid; gap: 0.35rem; align-content: start; }
.demo-group .card p { margin-bottom: 0.35rem; }

/* Patch13: light palette follows the device setting. Dark stays default. */
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f7f2ea;
    --bg-soft: #efe7da;
    --bg-card: #fffcf6;
    --ink: #1d1813;
    --ink-soft: #463d33;
    --muted: #645849;
    --line: #dccfbb;
    --accent: #7d5f27;
    --accent-deep: #5f4618;
    --accent-soft: #f0e4cc;
    --warm: #8a5326;
    --ok: #3f6449;
    --on-accent: #fffaf1;
    --shadow: 0 18px 44px rgba(60, 44, 24, 0.10);
    --header-bg: rgba(247, 242, 234, 0.94);
    --cookie-bg: rgba(255, 252, 246, 0.98);
    --player-a: #fffcf6;
    --player-b: #f4ecdf;
    --live-a: #f3eadb;
    --live-b: #e9dcc6;
    --wave: rgba(125, 95, 39, 0.38);
    --wave-ready: rgba(125, 95, 39, 0.62);
    --tint: rgba(125, 95, 39, 0.07);
    --glow-1: rgba(196, 165, 116, 0.20);
    --glow-2: rgba(196, 165, 116, 0.12);
    --ok-bg: #e3eee5;
    --ok-line: #9fbfa7;
    --ok-ink: #2f5238;
    --warn-bg: #f3e6cc;
    --warn-ink: #6a4b16;
    --err-bg: #f8e4e2;
    --err-line: #c98782;
    --err-ink: #6e2420;
    --blocked-bg: #f6dcdc;
    --blocked-line: #d9a1a1;
    --blocked-ink: #7a2626;
  }
  html { color-scheme: light; }
  .compare th.ours, .compare thead th:last-child { box-shadow: inset 0 0 0 1px rgba(125, 95, 39, 0.35); }

  /* Line drawings were drawn in light gold for a dark page: deepen them on paper. */
  img.icon, img.illu, img.footer-logo, img.brand-mark,
  img[src*="assets/img/icons/"], img[src*="assets/img/illustrations/"] {
    filter: brightness(0.56) saturate(1.25) contrast(1.1);
  }

  /* Photo hero keeps its dark overlay, so its text stays light. */
  .hero-full {
    --ink: #f4efe6;
    --ink-soft: #e2d9cb;
    --muted: #cfc5b6;
    --accent: #c4a574;
    --accent-deep: #e0c48a;
    --on-accent: #0c0b0a;
    color: var(--ink);
  }

  /* Testimonial band: already light, give it its own deeper paper tone. */
  .testimonials-band { background: linear-gradient(180deg, #efe6d6 0%, #e6dac6 100%); }
  .testimonial-card { background: #fffdf8; }
  .testimonial-card::before { color: #9a7a40; }
  .testimonial-card .quote-line { background: #9a7a40; }
}


/* Patch14 (10.11.2026): blog. Tokens only, works in dark and light. */
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.post-list { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
.post-card { display: grid; grid-template-columns: 1fr; background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.post-card-media img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.post-card-body { padding: 1.15rem 1.2rem 1.3rem; }
.post-card h3 { margin: 0.35rem 0 0.6rem; }
.post-card h3 a { color: var(--ink); text-decoration: none; }
.post-card h3 a:hover { color: var(--accent); text-decoration: underline; }
.post-card-more { margin: 0; font-weight: 600; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 0.9rem; color: var(--muted); font-size: 0.92rem; margin: 0 0 0.6rem; }
.draft-badge { display: inline-block; background: var(--accent-soft); color: var(--accent-deep); border: 1px solid var(--line); border-radius: 999px; padding: 0.05rem 0.6rem; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.post-author { color: var(--ink-soft); font-size: 0.95rem; margin-bottom: 0.9rem; }
.prose { font-size: 1.06rem; }
.prose > h2 { font-size: clamp(1.6rem, 3.6vw, 2.1rem); margin: 2.4rem 0 0.75rem; scroll-margin-top: 6rem; }
.prose > h3 { margin: 1.5rem 0 0.4rem; }
.prose > p { color: var(--ink); }
.post-figure { margin: 0 0 1.75rem; }
.post-figure + p, .prose > p + .post-figure { margin-top: 0; }
.prose > p + .post-figure { margin-top: 1.25rem; }
.post-tip { background: var(--accent-soft); border-left: 3px solid var(--accent); border-radius: var(--radius); padding: 0.85rem 1rem; color: var(--ink); }
.post-toc { border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-card); padding: 1rem 1.2rem 0.6rem; margin: 1.5rem 0 0.5rem; }
.post-toc p { margin-bottom: 0.4rem; }
.post-toc ol { margin: 0 0 0.5rem; padding-left: 1.3rem; }
.post-toc li { margin-bottom: 0.2rem; }
.post-cta { margin-top: 2.5rem; }
.post-cta h2 { margin-top: 0; }
.post-cta .btn-row { margin-bottom: 0.25rem; }
.post-back { margin-top: 1.5rem; font-weight: 600; }
.sitemap-list .sitemap-sub { padding-left: 1.1rem; }
@media (min-width: 640px) {
  .post-card { grid-template-columns: minmax(14rem, 2fr) 3fr; align-items: stretch; }
  .post-card-media img { height: 100%; }
  .post-card-body { padding: 1.4rem 1.5rem; align-self: center; }
}

/* Patch15 (10.11.2026): suosikkimikit card grid. Tokens only, works in dark and light. */
.mic-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.15rem;
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
  align-items: stretch;
}
.mic-grid > li { display: flex; }
.mic-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.35rem 1.2rem 1.4rem;
  flex: 1 1 auto;
  width: 100%;
}
.mic-card-fig {
  width: 9.5rem;
  height: 9.5rem;
  margin: 0 auto 0.85rem;
}
.mic-card-fig img.mic-fig {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.mic-card h2 {
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  text-align: center;
  margin: 0 0 0.7rem;
  width: 100%;
}
.mic-label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--warm);
  margin-bottom: 0.15rem;
}
.mic-when,
.mic-why {
  width: 100%;
  margin: 0 0 0.7rem;
  font-size: 0.98rem;
  color: var(--ink);
}
.mic-why { margin-bottom: 0; }
.mic-card.is-favorite {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: var(--shadow), 0 0 0 1px var(--accent);
}
.mic-badge {
  display: inline-block;
  background: var(--accent);
  color: var(--on-accent);
  border-radius: 999px;
  padding: 0.15rem 0.7rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  margin: 0 0 0.55rem;
  text-align: center;
}
.mic-after {
  max-width: 46rem;
  margin: 0.5rem auto 0;
}
.post-card-media.is-drawn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-soft);
}
.post-card-media.is-drawn img {
  object-fit: contain;
  width: 100%;
  height: 100%;
}
@media (min-width: 640px) {
  .mic-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 900px) {
  .mic-grid { grid-template-columns: 1fr 1fr 1fr; }
}

/* New line drawings are black on transparent: invert on dark (default), as-is on light.
   Does not apply to the logo mark (brand-mark / footer-logo / mic-mark.svg). */
.icon { width: 8rem; height: 8rem; }
img.icon, img.illu, img.mic-fig, img.hahmo,
img[src*="assets/img/kuvitus/"],
img[src*="assets/img/mikit/"],
img[src*="assets/img/hahmot/"] {
  filter: invert(1);
}
@media (prefers-color-scheme: light) {
  img.icon, img.illu, img.mic-fig, img.hahmo,
  img[src*="assets/img/kuvitus/"],
  img[src*="assets/img/mikit/"],
  img[src*="assets/img/hahmot/"] {
    filter: none;
  }
}

/* Patch16: one modest character drawing per chosen page; inverted in dark theme. */
.hahmo-wrap {
  margin: 0.75rem 0 0;
  max-width: 16rem;
}
.hahmo-wrap img.hahmo {
  display: block;
  width: 100%;
  height: auto;
}
.page-hero.has-hahmo .wrap,
.split-hahmo {
  display: grid;
  gap: 1rem 1.75rem;
  align-items: end;
}
@media (min-width: 800px) {
  .page-hero.has-hahmo .wrap,
  .split-hahmo {
    grid-template-columns: minmax(0, 1fr) 15rem;
    align-items: end;
  }
  .hahmo-wrap { margin: 0; max-width: 15rem; }
}
.footer-note p { margin: 0 0 0.4rem; }
.footer-note p:last-child { margin-bottom: 0; }
.footer-ai {
  font-size: 0.86rem;
  color: var(--muted);
  max-width: 42rem;
  line-height: 1.45;
}


/* Compact footer nav after brand block removal */
.site-footer {
  padding: 1.6rem 0 1.5rem;
}
.footer-grid > div > strong {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--muted);
  margin: 0;
}
.footer-nav {
  list-style: none;
  padding: 0;
  margin: 0.2rem 0 0;
  display: flex;
  flex-wrap: wrap;
  column-gap: 0.95rem;
  row-gap: 0;
}
.footer-nav li { margin: 0; }
.site-footer .footer-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0;
  line-height: 1.2;
}

/* Kuuntele: lisänäytteet-toggle */
.naytteet-toggle-wrap {
  margin: 1.6rem 0 0;
}
#naytteet-lisaa {
  margin-top: 1.75rem;
  padding-top: 0.4rem;
  border-top: 1px solid var(--line);
}
#naytteet-lisaa[hidden] {
  display: none;
}
#naytteet-toggle[hidden] {
  display: none;
}

/* Anchor offset under the sticky site header */
#sankarin-sivu {
  scroll-margin-top: 6rem;
}

/* Button row in a 2-col grid stays in the text column on desktop */
.grid-2 > .btn-row {
  grid-column: 1;
}


/* Palautekaruselli (15.11.2026): etusivun asiakaspalautteet */
.testimonial-card { margin: 0; }
.testimonial-card .quote-line { margin-top: auto; }
.testimonials-carousel { margin-top: 1.75rem; }
.testimonials-track {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 800px) {
  .testimonials-track { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
}
.testimonials-controls { display: none; }
.testimonial-attr {
  margin: 0;
  color: #5a5146;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.4;
}
.testimonials-carousel.is-ready .testimonials-viewport {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  outline: none;
}
.testimonials-carousel.is-ready .testimonials-viewport::-webkit-scrollbar { display: none; }
.testimonials-carousel.is-ready .testimonials-viewport:focus-visible {
  outline: 2px solid #6b532c;
  outline-offset: 4px;
  border-radius: 8px;
}
.testimonials-carousel.is-ready .testimonials-track {
  display: flex;
  align-items: stretch;
  gap: 1.25rem;
  grid-template-columns: none;
}
.testimonials-carousel.is-ready .testimonial-card {
  flex: 0 0 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  min-width: 0;
}
@media (min-width: 800px) {
  .testimonials-carousel.is-ready .testimonials-track { gap: 1.5rem; }
  .testimonials-carousel.is-ready .testimonial-card {
    flex: 0 0 calc((100% - 3rem) / 3);
  }
}
.testimonials-carousel.is-ready .testimonials-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  margin-top: 1.15rem;
}
.testimonials-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.85rem;
  height: 2.85rem;
  padding: 0;
  border-radius: 999px;
  border: 1.5px solid #8a6e3e;
  background: #fffdf8;
  color: #2a241c;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.testimonials-btn:hover {
  background: #c4a574;
  border-color: #c4a574;
  color: #0c0b0a;
}
.testimonials-btn:focus-visible {
  outline: 2px solid #6b532c;
  outline-offset: 2px;
}
.testimonials-status {
  margin: 0;
  min-width: 9.5rem;
  text-align: center;
  color: #5a5146;
  font-size: 0.95rem;
  font-weight: 500;
}
@media (prefers-reduced-motion: reduce) {
  .testimonials-carousel.is-ready .testimonials-viewport { scroll-behavior: auto; }
  .testimonials-btn { transition: none; }
}

/* Vanha kolmen kortin ruudukko: jätetään säännöt, mutta karuselli ei käytä sitä. */

/* 15.11.2026: hero-tekstien reunamarginaali (Instagramin selain ym.) */
.hero-full .hero-copy {
  padding-left: max(1.5rem, env(safe-area-inset-left));
  padding-right: max(1.5rem, env(safe-area-inset-right));
}

/* 15.11.2026: kuuntelusivun esimerkkisoitin ei kellu mobiilissa shoutboxin päällä */
@media (max-width: 899px) {
  .live-player { position: static; }
}
