/* ==========================================================================
   Narsismista toipuminen — Mielenjuuri Oy
   Sivuston tyylit. Paletti on sovelluksen lukittu paletti (spec §5):
   lämmin kerma, vaimea metsänvihreä, salvia, vaalea hiekka, hillitty roosa.
   Ei tummaa teemaa, ei korkeakontrastista mustaa, ei dramatiikkaa.
   ========================================================================== */

:root {
  /* Paletti */
  --bg: #f7f4ec;
  --bg-alt: #eeede4;
  --surface: #fbfaf6;
  --primary: #557a67;
  --primary-dark: #29483c;
  --sage: #c9d4c5;
  --sand: #e7ddcc;
  --rose: #d8beb7;
  --text: #25312c;
  --muted: #70766f;
  --divider: #dddcd4;
  --on-primary: #fbfaf6;
  --safety: #a2624f;

  /* Typografia */
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua",
    Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial,
    sans-serif;

  /* Mitat */
  --wrap: 1120px;
  --wrap-narrow: 760px;
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 28px;

  --shadow-sm: 0 1px 2px rgba(41, 72, 60, 0.04), 0 6px 18px rgba(41, 72, 60, 0.05);
  --shadow-md: 0 2px 6px rgba(41, 72, 60, 0.05), 0 18px 44px rgba(41, 72, 60, 0.08);
}

/* ===== Perusta ============================================================ */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--primary-dark);
  text-decoration-color: rgba(85, 122, 103, 0.4);
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-color: var(--primary);
}

h1,
h2,
h3,
h4 {
  font-family: var(--serif);
  color: var(--primary-dark);
  font-weight: 600;
  line-height: 1.25;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2.1rem, 1.4rem + 2.8vw, 3.4rem);
  line-height: 1.14;
}

h2 {
  font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.3rem);
}

h3 {
  font-size: 1.22rem;
}

p {
  margin: 0 0 1.1em;
}

:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

.narrow {
  max-width: var(--wrap-narrow);
}

.lead {
  font-size: 1.16rem;
  color: var(--muted);
  line-height: 1.72;
}

.muted {
  color: var(--muted);
}

.center {
  text-align: center;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--primary);
  color: var(--on-primary);
  padding: 12px 18px;
  border-radius: 0 0 var(--r-sm) 0;
  z-index: 200;
}

.skip-link:focus {
  left: 0;
}

/* ===== Otsikkopalkki ====================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 244, 236, 0.88);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--divider);
}

.site-header .nav {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 74px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--primary-dark);
  flex: 0 0 auto;
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
}

.brand .name {
  font-family: var(--serif);
  font-size: 1.06rem;
  font-weight: 600;
  line-height: 1.2;
}

.brand .name span {
  display: block;
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

.nav-links {
  display: flex;
  gap: 4px;
  margin-left: auto;
  flex-wrap: wrap;
}

.nav-links a {
  text-decoration: none;
  color: var(--text);
  font-size: 0.95rem;
  padding: 8px 12px;
  border-radius: var(--r-sm);
  white-space: nowrap;
}

.nav-links a:hover {
  background: var(--bg-alt);
}

.nav-links a[aria-current="page"] {
  color: var(--primary-dark);
  font-weight: 600;
  background: var(--sage);
}

.nav-cta {
  flex: 0 0 auto;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  background: var(--surface);
  border: 1px solid var(--divider);
  border-radius: var(--r-sm);
  width: 44px;
  height: 44px;
  color: var(--primary-dark);
  cursor: pointer;
}

.nav-toggle svg {
  width: 22px;
  height: 22px;
  margin: 0 auto;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 2px;
  padding: 10px 24px 22px;
  border-bottom: 1px solid var(--divider);
  background: var(--bg);
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu a {
  text-decoration: none;
  color: var(--text);
  padding: 12px 4px;
  border-bottom: 1px solid var(--divider);
}

.mobile-menu .btn {
  margin-top: 14px;
  border-bottom: 0;
}

@media (max-width: 940px) {
  .nav-links,
  .nav-cta {
    display: none;
  }
  .nav-toggle {
    display: block;
  }
}

/* ===== Painikkeet ========================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
  min-height: 50px;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--primary);
  color: var(--on-primary);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--primary-dark);
  box-shadow: var(--shadow-md);
}

.btn-ghost {
  background: var(--surface);
  color: var(--primary-dark);
  border-color: var(--divider);
}

.btn-ghost:hover {
  border-color: var(--primary);
  background: var(--surface);
}

.btn .arrow {
  transition: transform 0.16s ease;
}

.btn:hover .arrow {
  transform: translateX(3px);
}

/* App Store -painike */
.btn-store {
  background: var(--primary-dark);
  color: var(--on-primary);
  padding: 12px 26px 12px 22px;
  text-align: left;
  line-height: 1.15;
  box-shadow: var(--shadow-sm);
}

.btn-store:hover {
  background: #1e3a30;
  box-shadow: var(--shadow-md);
}

.btn-store svg {
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
}

.btn-store .store-text small {
  display: block;
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  opacity: 0.75;
}

.btn-store .store-text strong {
  display: block;
  font-size: 1.02rem;
  font-weight: 600;
}

/* ===== Osiot ============================================================== */

section {
  padding: 76px 0;
}

section.tight {
  padding: 52px 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-head {
  max-width: 720px;
  margin-bottom: 44px;
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 16px;
}

.eyebrow .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
}

/* ===== Hero =============================================================== */

.hero {
  position: relative;
  padding: 84px 0 96px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* Häivytetään maisema pehmeästi seuraavan osion taustaväriin, jotta
   horisontista ei tule kovaa raitaa. */
.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 150px;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(238, 237, 228, 0) 0%,
    rgba(238, 237, 228, 0.75) 55%,
    var(--bg-alt) 100%
  );
}

.hero-bg svg {
  width: 100%;
  height: 100%;
  display: block;
}

.hero .wrap {
  position: relative;
  z-index: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}

.hero h1 {
  margin-bottom: 22px;
}

.hero-promise {
  font-family: var(--serif);
  font-size: 1.28rem;
  color: var(--primary-dark);
  line-height: 1.6;
  margin-bottom: 20px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.hero-note {
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 18px;
}

.hero-visual {
  position: relative;
}

.phone {
  width: min(100%, 300px);
  margin: 0 auto;
  aspect-ratio: 9 / 18.5;
  border-radius: 42px;
  background: var(--surface);
  border: 1px solid var(--divider);
  box-shadow: var(--shadow-md);
  padding: 14px;
  overflow: hidden;
}

.phone-screen {
  height: 100%;
  border-radius: 30px;
  background: linear-gradient(180deg, #f7f4ec 0%, #f2efe4 100%);
  padding: 26px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
}

.phone-screen .p-greet {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.phone-screen .p-title {
  font-family: var(--serif);
  font-size: 1.16rem;
  color: var(--primary-dark);
  line-height: 1.25;
  margin-bottom: 2px;
}

.phone-screen .p-help {
  background: var(--primary);
  color: var(--on-primary);
  border-radius: 16px;
  padding: 14px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

.phone-screen .p-help small {
  display: block;
  font-weight: 400;
  opacity: 0.85;
  font-size: 0.72rem;
  margin-top: 3px;
  line-height: 1.4;
}

.phone-screen .p-card {
  background: var(--surface);
  border: 1px solid var(--divider);
  border-radius: 14px;
  padding: 11px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  gap: 10px;
}

.phone-screen .p-card i {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: var(--sage);
  flex: 0 0 auto;
}

.phone-screen .p-card:nth-of-type(even) i {
  background: var(--sand);
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }
  .phone {
    width: min(100%, 250px);
  }
}

/* ===== Kortit ============================================================= */

.grid {
  display: grid;
  gap: 22px;
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 900px) {
  .grid-3,
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 620px) {
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
}

.card {
  background: var(--surface);
  border: 1px solid var(--divider);
  border-radius: var(--r-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.card h3 {
  margin-bottom: 8px;
}

.card p:last-child {
  margin-bottom: 0;
}

a.card {
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform 0.18s ease, box-shadow 0.18s ease,
    border-color 0.18s ease;
}

a.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--sage);
}

.card .icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--sage);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: var(--primary-dark);
}

.card .icon svg {
  width: 24px;
  height: 24px;
}

.card.sand .icon {
  background: var(--sand);
}

.card.rose .icon {
  background: var(--rose);
}

/* Luottamusnosto: kuva + teksti + painike, joka kääntyy pystyyn mobiilissa. */
.trust-bar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 28px;
  align-items: center;
  padding: 26px 30px;
}

.trust-bar img {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 20%;
}

.trust-bar h3 {
  margin-bottom: 4px;
}

.trust-bar p {
  margin-bottom: 0;
}

@media (max-width: 820px) {
  .trust-bar {
    grid-template-columns: auto 1fr;
    gap: 20px;
  }
  .trust-bar .btn {
    grid-column: 1 / -1;
    justify-self: start;
  }
}

@media (max-width: 520px) {
  .trust-bar {
    grid-template-columns: 1fr;
  }
}

/* Kenelle-lista */
.pill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.pill {
  background: var(--surface);
  border: 1px solid var(--divider);
  border-radius: 999px;
  padding: 11px 20px;
  font-size: 0.97rem;
  color: var(--primary-dark);
  box-shadow: var(--shadow-sm);
}

/* Numeroidut vaiheet */
.steps {
  display: grid;
  gap: 20px;
  counter-reset: step;
}

.step {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 20px;
  align-items: start;
  background: var(--surface);
  border: 1px solid var(--divider);
  border-radius: var(--r-lg);
  padding: 24px 26px;
  box-shadow: var(--shadow-sm);
}

.step::before {
  counter-increment: step;
  content: counter(step);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--sage);
  color: var(--primary-dark);
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step h3 {
  margin-bottom: 6px;
}

.step p:last-child {
  margin-bottom: 0;
}

@media (max-width: 620px) {
  .step {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

/* ===== Asiantuntijanosto ================================================== */

.expert {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 52px;
  align-items: center;
}

.expert-photo {
  position: relative;
}

.expert-photo img {
  width: 100%;
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-md);
  object-fit: cover;
  aspect-ratio: 4 / 5;
  object-position: 50% 22%;
}

.expert-photo figcaption {
  font-size: 0.88rem;
  color: var(--muted);
  margin-top: 14px;
  line-height: 1.55;
}

@media (max-width: 860px) {
  .expert {
    grid-template-columns: 1fr;
    gap: 34px;
  }
  .expert-photo img {
    aspect-ratio: 3 / 2;
    object-position: 50% 18%;
  }
}

.credentials {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  gap: 12px;
}

.credentials li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  align-items: start;
  color: var(--text);
}

.credentials li::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--primary);
  margin-top: 10px;
  margin-left: 6px;
}

/* ===== Videot ============================================================= */

.video-list {
  display: grid;
  gap: 16px;
}

.video-item {
  background: var(--surface);
  border: 1px solid var(--divider);
  border-radius: var(--r-md);
  padding: 22px 24px;
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 20px;
  align-items: start;
  box-shadow: var(--shadow-sm);
}

.video-item .play {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--sage);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-dark);
}

.video-item .play svg {
  width: 18px;
  height: 18px;
  margin-left: 3px;
}

.video-item h3 {
  font-size: 1.08rem;
  margin-bottom: 6px;
}

.video-item p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.97rem;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.tag {
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  background: var(--bg-alt);
  border: 1px solid var(--divider);
  color: var(--muted);
  border-radius: 999px;
  padding: 4px 12px;
}

@media (max-width: 620px) {
  .video-item {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

/* ===== Media-esiintymiset ================================================= */

.media-list {
  display: grid;
  gap: 18px;
}

.media-item {
  background: var(--surface);
  border: 1px solid var(--divider);
  border-left: 4px solid var(--sage);
  border-radius: var(--r-md);
  padding: 24px 26px;
  box-shadow: var(--shadow-sm);
}

.media-item .outlet {
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 8px;
}

.media-item h3 {
  font-size: 1.12rem;
  margin-bottom: 8px;
}

.media-item p {
  color: var(--muted);
  font-size: 0.99rem;
}

.media-item .links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 4px;
}

.media-item .links a {
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--primary);
}

.media-item .links a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ===== Kirjanosto ========================================================= */

.book {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 36px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--divider);
  border-radius: var(--r-xl);
  padding: 34px;
  box-shadow: var(--shadow-sm);
}

.book-cover {
  aspect-ratio: 3 / 4.4;
  border-radius: 6px 12px 12px 6px;
  background: linear-gradient(150deg, #5d8171 0%, #3c5c4d 60%, #29483c 100%);
  box-shadow: var(--shadow-md);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: var(--on-primary);
  position: relative;
  overflow: hidden;
}

.book-cover::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 9px;
  background: rgba(0, 0, 0, 0.16);
}

.book-cover .b-num {
  font-family: var(--serif);
  font-size: 2.5rem;
  line-height: 1;
}

.book-cover .b-title {
  font-family: var(--serif);
  font-size: 1rem;
  line-height: 1.3;
}

.book-cover .b-author {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.86;
}

@media (max-width: 700px) {
  .book {
    grid-template-columns: 1fr;
    gap: 26px;
  }
  .book-cover {
    max-width: 170px;
  }
}

/* ===== Turvallisuus / huomiolaatikko ====================================== */

.notice {
  background: var(--surface);
  border: 1px solid var(--divider);
  border-left: 4px solid var(--safety);
  border-radius: var(--r-md);
  padding: 26px 28px;
}

.notice h3 {
  color: var(--safety);
  margin-bottom: 10px;
}

.notice p:last-child,
.notice ul:last-child {
  margin-bottom: 0;
}

.check-list,
.cross-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.1em;
  display: grid;
  gap: 10px;
}

.check-list li,
.cross-list li {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 12px;
  align-items: start;
}

.check-list li::before {
  content: "✓";
  color: var(--primary);
  font-weight: 700;
}

.cross-list li::before {
  content: "–";
  color: var(--muted);
  font-weight: 700;
  text-align: center;
}

/* ===== Hinnoittelu ======================================================== */

.price-card {
  background: var(--surface);
  border: 1px solid var(--divider);
  border-radius: var(--r-xl);
  padding: 36px;
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.price-card .trial-badge {
  display: inline-block;
  background: var(--sage);
  color: var(--primary-dark);
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 0.84rem;
  font-weight: 600;
  margin-bottom: 18px;
}

.price-card .amount {
  font-family: var(--serif);
  font-size: 2.4rem;
  color: var(--primary-dark);
  line-height: 1.1;
  margin-bottom: 4px;
}

.price-card .period {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 22px;
}

.price-card .included {
  text-align: left;
  margin: 0 auto 26px;
  max-width: 420px;
}

/* ===== UKK / haitari ====================================================== */

.faq {
  display: grid;
  gap: 12px;
}

.faq details {
  background: var(--surface);
  border: 1px solid var(--divider);
  border-radius: var(--r-md);
  padding: 4px 26px;
  box-shadow: var(--shadow-sm);
}

.faq details[open] {
  border-color: var(--sage);
}

.faq summary {
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--primary-dark);
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  padding: 20px 34px 20px 0;
  position: relative;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "";
  position: absolute;
  right: 4px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--primary);
  border-bottom: 2px solid var(--primary);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.18s ease;
}

.faq details[open] summary::after {
  transform: translateY(-30%) rotate(-135deg);
}

.faq .faq-body {
  padding: 0 0 22px;
  color: var(--muted);
}

.faq .faq-body p:last-child {
  margin-bottom: 0;
}

/* ===== CTA-nauha ========================================================== */

.cta-band {
  background: linear-gradient(160deg, #5d8171 0%, #476b5a 55%, #29483c 100%);
  color: var(--on-primary);
  border-radius: var(--r-xl);
  padding: 56px 48px;
  text-align: center;
  box-shadow: var(--shadow-md);
}

.cta-band h2 {
  color: var(--on-primary);
}

.cta-band p {
  color: rgba(251, 250, 246, 0.86);
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.cta-band .btn-store {
  background: var(--surface);
  color: var(--primary-dark);
}

.cta-band .btn-store:hover {
  background: #fff;
}

.cta-band .btn-ghost {
  background: transparent;
  color: var(--on-primary);
  border-color: rgba(251, 250, 246, 0.45);
}

.cta-band .btn-ghost:hover {
  background: rgba(251, 250, 246, 0.1);
  border-color: var(--on-primary);
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: 28px;
}

@media (max-width: 620px) {
  .cta-band {
    padding: 40px 26px;
  }
}

/* ===== Sisältösivut ======================================================= */

.page-head {
  padding: 66px 0 34px;
  background: linear-gradient(180deg, var(--bg-alt) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--divider);
}

.page-head p.lead {
  max-width: 680px;
}

.prose h2 {
  margin-top: 48px;
}

.prose h3 {
  margin-top: 32px;
}

.prose ul,
.prose ol {
  margin: 0 0 1.2em;
  padding-left: 22px;
}

.prose li {
  margin-bottom: 8px;
}

.prose blockquote {
  margin: 26px 0;
  padding: 20px 26px;
  border-left: 4px solid var(--sage);
  background: var(--surface);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  font-family: var(--serif);
  font-size: 1.12rem;
  color: var(--primary-dark);
}

.prose blockquote p:last-child {
  margin-bottom: 0;
}

/* ===== Alatunniste ======================================================== */

.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--divider);
  padding: 58px 0 34px;
  margin-top: 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 42px;
}

@media (max-width: 780px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

.site-footer h4 {
  font-family: var(--sans);
  font-size: 0.76rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}

.footer-links {
  display: grid;
  gap: 9px;
}

.footer-links a {
  text-decoration: none;
  color: var(--text);
  font-size: 0.97rem;
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-bottom {
  margin-top: 42px;
  padding-top: 22px;
  border-top: 1px solid var(--divider);
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: space-between;
  font-size: 0.88rem;
  color: var(--muted);
}

.footer-note {
  font-size: 0.9rem;
  color: var(--muted);
  max-width: 420px;
}

/* ===== Pehmeä esiintulo =================================================== */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
  }
}
