/* ==========================================================================
   apps.kuvadoo.fi — design system v3 ("modern, alive")
   Matches the FinnSana app brand: vivid green gradients, lime highlights,
   Bricolage Grotesque headings (self-hosted, OFL). Micro-animations are pure CSS
   and switch off under prefers-reduced-motion. No external requests.
   ========================================================================== */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/assets/fonts/bricolage-grotesque-latin-wght.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

/* ---------- 1. Tokens ---------------------------------------------------- */
@property --angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }

:root {
  --bg: #f6f8f3;           /* page */
  --bg-alt: #edf3eb;       /* alternate band */
  --surface: #ffffff;
  --surface-2: #f9fbf7;
  --text: #0f1a14;         /* 16.7:1 on --bg */
  --muted: #4a5750;        /* 7.1:1 on --bg, 6.6:1 on --bg-alt */
  --border: #dde6dc;
  --brand: #0b7a4c;        /* 5.0:1 on --bg, 5.4:1 on white */
  --brand-strong: #075236;
  --brand-bright: #14b87a; /* decorative only */
  --brand-soft: #e2f3e9;
  --lime: #d7f77b;         /* large text on dark green only */
  --on-brand: #ffffff;     /* 5.4:1 on --brand */
  --accent: var(--app-accent, var(--brand));

  /* hero band: white text ≥ 4.67:1 everywhere on it */
  --hero-grad: radial-gradient(70rem 40rem at 80% -10%, #0d8553 0%, transparent 60%),
               linear-gradient(155deg, #0d8553 0%, #0a6b43 48%, #064a30 100%);

  --shadow-sm: 0 1px 2px rgb(15 26 20 / .06), 0 1px 1px rgb(15 26 20 / .04);
  --shadow-md: 0 12px 32px -14px rgb(15 26 20 / .22), 0 3px 8px rgb(15 26 20 / .05);
  --shadow-lg: 0 40px 80px -30px rgb(4 40 24 / .55), 0 12px 30px -12px rgb(4 40 24 / .35);
  --glow: 0 0 0 1px rgb(20 184 122 / .25), 0 18px 40px -18px rgb(20 184 122 / .55);

  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Bricolage Grotesque", var(--font);
  --fs-sm: .9375rem;
  --fs-base: 1.125rem;
  --fs-lg: clamp(1.1875rem, 1.1rem + .45vw, 1.4rem);
  --fs-h3: clamp(1.2rem, 1.1rem + .4vw, 1.375rem);
  --fs-h2: clamp(1.9rem, 1.4rem + 2vw, 3rem);
  --fs-h1: clamp(2.6rem, 1.6rem + 4.6vw, 5rem);
  --measure: 38rem;

  --s-1: .25rem; --s-2: .5rem; --s-3: .75rem; --s-4: 1rem; --s-5: 1.5rem;
  --s-6: 2rem; --s-7: 3rem; --s-8: 4rem; --s-9: 6rem;
  --section: clamp(3.5rem, 2.5rem + 4vw, 6.25rem);
  --radius-sm: 12px; --radius: 20px; --radius-lg: 28px; --radius-pill: 999px;
  --max: 74rem;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #08110c;
    --bg-alt: #0c1811;
    --surface: #0f1b14;
    --surface-2: #122119;
    --text: #eaf2ec;       /* 16.8:1 */
    --muted: #a6b5ab;      /* 9.0:1 */
    --border: #1f3127;
    --brand: #5ee0a0;      /* 11.5:1 on --bg */
    --brand-strong: #8af0bd;
    --brand-soft: #123524;
    --on-brand: #06281a;   /* 9.5:1 on --brand */
    --shadow-sm: 0 1px 2px rgb(0 0 0 / .5);
    --shadow-md: 0 14px 34px -14px rgb(0 0 0 / .7);
    --shadow-lg: 0 40px 80px -30px rgb(0 0 0 / .8);
  }
}

/* ---------- 2. Base ------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5rem; interpolate-size: allow-keywords; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: var(--fs-base)/1.6 var(--font);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.05; letter-spacing: -.025em; margin: 0 0 var(--s-4); text-wrap: balance; }
h1 { font-size: var(--fs-h1); font-weight: 800; letter-spacing: -.035em; }
h2 { font-size: var(--fs-h2); font-weight: 750; }
h3 { font-size: var(--fs-h3); font-weight: 700; line-height: 1.2; letter-spacing: -.01em; }
p, ul, ol { margin: 0 0 var(--s-4); }
p { text-wrap: pretty; }
ul, ol { padding-left: 1.3rem; }
li { margin-bottom: var(--s-2); }
a { color: var(--brand); text-underline-offset: .2em; text-decoration-thickness: 1px; transition: color .2s var(--ease); }
a:hover { color: var(--brand-strong); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 8px; }
::selection { background: var(--lime); color: #0f1a14; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: absolute; left: var(--s-4); top: -5rem; z-index: 100; padding: var(--s-2) var(--s-4); border-radius: var(--radius-sm); background: var(--brand); color: var(--on-brand); font-weight: 600; }
.skip-link:focus { top: var(--s-4); color: var(--on-brand); }

/* ---------- 3. Layout ---------------------------------------------------- */
.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--s-4); }
@media (min-width: 48rem) { .container { padding-inline: var(--s-6); } }
.section { padding-block: var(--section); position: relative; }
.section--alt { background: var(--bg-alt); }
.section--tight { padding-block: var(--s-7); }
.section--flush-top { padding-top: 0; }
.section-head { max-width: 44rem; margin-bottom: var(--s-7); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .lead { margin-inline: auto; }
.eyebrow svg { width: 16px; height: 16px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: var(--s-2); margin-bottom: var(--s-4);
  padding: .3rem .8rem; border-radius: var(--radius-pill);
  background: var(--brand-soft); color: var(--brand);
  font-size: .8125rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}
.lead { font-size: var(--fs-lg); color: var(--muted); max-width: var(--measure); }
.muted { color: var(--muted); }
.prose { max-width: 46rem; }
.prose h2 { margin-top: var(--s-7); font-size: clamp(1.5rem, 1.3rem + .8vw, 2rem); }
.prose h2:first-child { margin-top: 0; }
.highlight { color: var(--brand); }

/* ---------- 4. Header ---------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(1.8) blur(16px); backdrop-filter: saturate(1.8) blur(16px);
  border-bottom: 1px solid transparent;
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); min-height: 4.25rem; }
.logo { display: inline-flex; align-items: center; gap: var(--s-2); color: var(--text); text-decoration: none; font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; letter-spacing: -.02em; }
.logo:hover { color: var(--text); }
.logo svg { width: 34px; height: 34px; flex: none; transition: transform .5s var(--spring); }
.logo:hover svg { transform: rotate(-8deg) scale(1.08); }
.logo span { color: var(--brand); font-weight: 700; }
.site-nav ul { display: flex; gap: var(--s-1); list-style: none; margin: 0; padding: var(--s-1); padding: 4px; border-radius: var(--radius-pill); background: color-mix(in srgb, var(--surface) 70%, transparent); border: 1px solid var(--border); }
.site-nav li { margin: 0; }
.site-nav a { display: block; padding: .45rem .9rem; border-radius: var(--radius-pill); color: var(--muted); font-size: var(--fs-sm); font-weight: 600; text-decoration: none; transition: background .25s var(--ease), color .25s var(--ease); }
.site-nav a:hover { color: var(--text); background: var(--brand-soft); }
.site-nav a[aria-current] { color: var(--on-brand); background: var(--brand); }
@media (max-width: 30rem) { .logo .logo-word { display: none; } .site-nav a { padding-inline: .7rem; } }

/* header gets a border + shadow once the page scrolls (scroll-driven, no JS) */
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .site-header { animation: header-solid linear both; animation-timeline: scroll(root); animation-range: 0 120px; }
    @keyframes header-solid { to { border-bottom-color: var(--border); box-shadow: var(--shadow-sm); } }
  }
}

/* ---------- 5. Buttons, chips, badges ------------------------------------ */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: 3.25rem; padding: .8rem 1.5rem; border-radius: var(--radius-pill);
  border: 2px solid transparent; font: inherit; font-size: 1rem; font-weight: 700; line-height: 1.2;
  text-decoration: none; cursor: pointer; isolation: isolate; overflow: hidden;
  transition: transform .25s var(--spring), box-shadow .25s var(--ease), background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.btn svg { width: 20px; height: 20px; transition: transform .3s var(--spring); }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.97); }
.btn:hover svg:last-child { transform: translateX(3px); }
.btn--primary { background: var(--brand); color: var(--on-brand); box-shadow: var(--glow); }
.btn--primary:hover { background: var(--brand-strong); color: var(--on-brand); }
.btn--primary::after { /* shine sweep on hover */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgb(255 255 255 / .35) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .7s var(--ease);
}
.btn--primary:hover::after { transform: translateX(120%); }
.btn--ghost { border-color: var(--border); color: var(--text); background: var(--surface); }
.btn--ghost:hover { border-color: var(--brand); color: var(--text); box-shadow: var(--shadow-md); }
.btn--soon { border: 2px dashed var(--border); color: var(--muted); background: transparent; cursor: default; }
.btn--soon:hover { transform: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; }

.chips { display: flex; flex-wrap: wrap; gap: var(--s-2); list-style: none; padding: 0; margin: 0; }
.chips li { margin: 0; padding: .3rem .85rem; border-radius: var(--radius-pill); background: var(--brand-soft); color: var(--text); font-size: var(--fs-sm); font-weight: 600; }
.badge {
  display: inline-flex; align-items: center; gap: var(--s-2);
  padding: .3rem .8rem; border-radius: var(--radius-pill);
  font-size: .8125rem; font-weight: 700; letter-spacing: .01em;
  background: var(--surface); color: var(--text); border: 1px solid var(--border);
}
.badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #e0a21a; box-shadow: 0 0 0 0 rgb(224 162 26 / .6); animation: ping 2.2s var(--ease) 3; }
.badge--live::before { background: var(--brand-bright); }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgb(224 162 26 / .55); } 80%, 100% { box-shadow: 0 0 0 9px rgb(224 162 26 / 0); } }

/* ---------- 6. Icons ----------------------------------------------------- */
.icon-tile {
  display: grid; place-items: center; width: 52px; height: 52px; flex: none;
  border-radius: 16px; background: var(--brand-soft); color: var(--accent);
  transition: transform .45s var(--spring), background .3s var(--ease), color .3s var(--ease);
}
.icon-tile svg { width: 26px; height: 26px; }

/* ---------- 7. Hero (green band, like the app's store images) ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  padding-block: clamp(3rem, 2rem + 5vw, 6.5rem) clamp(4rem, 3rem + 5vw, 7.5rem);
  background: var(--hero-grad); color: #ffffff;
}
.hero::before, .hero::after { /* soft drifting glow blobs */
  content: ""; position: absolute; z-index: -1; border-radius: 50%; filter: blur(60px); opacity: .55;
  width: 34rem; height: 34rem; pointer-events: none;
}
.hero::before { background: #19c784; top: -12rem; right: -8rem; opacity: .22; animation: drift 24s ease-in-out infinite alternate; }
.hero::after { background: #b8e85a; bottom: -18rem; left: -10rem; opacity: .1; animation: drift 28s ease-in-out infinite alternate-reverse; }
@keyframes drift { to { transform: translate(-6rem, 4rem) scale(1.15); } }
.hero-grid { display: grid; gap: var(--s-8); align-items: center; }
@media (min-width: 60rem) { .hero-grid { grid-template-columns: 1.05fr .95fr; gap: var(--s-7); } }
.hero h1 { color: #ffffff; margin-bottom: var(--s-5); }
.hero h1 .hl { color: var(--lime); }
.hero .lead { color: #ffffff; margin-bottom: var(--s-6); }
.hero .chips { margin-bottom: var(--s-6); }
.hero .chips li { background: rgb(0 0 0 / .25); color: #ffffff; border: 1px solid rgb(255 255 255 / .22); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.hero .eyebrow { background: rgb(255 255 255 / .14); color: #ffffff; border: 1px solid rgb(255 255 255 / .22); }
.hero .btn--primary { background: #ffffff; color: #064a30; box-shadow: 0 18px 40px -18px rgb(0 0 0 / .6); }
.hero .btn--primary:hover { background: var(--lime); color: #064a30; }
.hero .btn--ghost { background: rgb(255 255 255 / .1); border-color: rgb(255 255 255 / .45); color: #ffffff; }
.hero .btn--ghost:hover { background: rgb(255 255 255 / .18); border-color: #ffffff; color: #ffffff; }
.hero .btn--soon { border-color: rgb(255 255 255 / .55); color: #ffffff; }
.hero .badge { background: rgb(0 0 0 / .25); color: #ffffff; border-color: rgb(255 255 255 / .25); }
.hero-status { margin-top: var(--s-4); font-size: var(--fs-sm); color: #ffffff; }
.store-line { display: flex; align-items: center; gap: var(--s-2); margin: var(--s-5) 0 0; font-size: var(--fs-sm); font-weight: 600; color: #ffffff; }
.store-line svg { width: 18px; height: 18px; flex: none; }
.text-link { display: inline-flex; align-items: center; gap: var(--s-2); min-height: 3.25rem; padding-inline: var(--s-2); font-weight: 700; color: var(--brand); text-decoration: none; }
.text-link svg { width: 20px; height: 20px; transition: transform .3s var(--spring); }
.text-link:hover svg { transform: translateX(4px); }
.hero .text-link { color: #ffffff; }
.hero .text-link:hover { color: var(--lime); }
.hero :focus-visible { outline-color: #ffffff; }
.hero a:not(.btn) { color: #ffffff; }
.app-title { display: flex; align-items: center; gap: var(--s-4); margin-bottom: var(--s-5); }
.app-title img { width: 76px; height: 76px; border-radius: 20px; box-shadow: 0 16px 34px -12px rgb(0 0 0 / .55); }
.hero-wave { position: absolute; left: 0; right: 0; bottom: -1px; height: clamp(40px, 6vw, 90px); color: var(--bg); z-index: 0; }
.hero-wave svg { width: 100%; height: 100%; }

/* entrance: hero content rises in, staggered */
@media (prefers-reduced-motion: no-preference) {
  .rise { animation: rise .9s var(--ease) both; animation-delay: calc(var(--d, 0) * 90ms + 80ms); }
  @keyframes rise { from { opacity: 0; transform: translateY(26px); filter: blur(4px); } }
  .rise-lcp { animation: rise-lcp .9s var(--ease) both; }
  @keyframes rise-lcp { from { transform: translateY(18px); } }
}

/* ---------- 8. Phones (real screenshots, always shown complete) ------- */
/* Thin, straight Android-style frame. The screen keeps the screenshot's exact ratio (540×1104),
   so nothing is ever cropped. */
.phone-stage { position: relative; display: grid; place-items: center; padding: var(--s-4) 0; }
.phone {
  position: relative; flex: none; width: min(16.5rem, 74vw);
  padding: 7px; border-radius: 2.4rem;
  background: #151a17;
  box-shadow: var(--shadow-lg), inset 0 0 0 1px rgb(255 255 255 / .14);
  transition: transform .6s var(--spring), box-shadow .4s var(--ease);
}
.phone::before { /* side buttons */
  content: ""; position: absolute; right: -3px; top: 22%; width: 3px; height: 13%; border-radius: 0 3px 3px 0; background: #2a312c;
}
.phone-screen { position: relative; overflow: hidden; border-radius: 1.95rem; aspect-ratio: 540 / 1104; background: var(--surface); }
.phone-screen > img { display: block; width: 100%; height: 100%; object-fit: contain; }
.feature-media .phone:hover { transform: translateY(-6px); }

/* hero fan: main phone in front, two tilted phones behind (screens always complete) */
.phone-fan { position: relative; display: grid; place-items: center; min-height: 32rem; padding-block: var(--s-6); }
.phone-fan .phone { grid-area: 1 / 1; }
.phone-fan .phone--main { z-index: 2; width: min(15.5rem, 64vw); }
.phone-fan .phone--right { z-index: 1; transform: translateX(46%) rotate(8deg) scale(.84); }
.phone-fan .phone--left  { z-index: 0; transform: translateX(-46%) rotate(-8deg) scale(.84); }
.phone-fan .phone--right, .phone-fan .phone--left { width: min(15.5rem, 64vw); }
@media (max-width: 40rem) {
  .phone-fan { min-height: 0; padding-block: 0 var(--s-4); }
  .hero { padding-top: var(--s-6); }
  .hero-grid { gap: var(--s-5); }
  .phone-fan .phone--right { transform: translateX(36%) rotate(7deg) scale(.78); }
  .phone-fan .phone--left  { transform: translateX(-36%) rotate(-7deg) scale(.78); }
}
/* phones stay still after the entrance (no endless motion) */

/* ---------- 9. Scroll reveal (CSS scroll-driven; content always visible without support) */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal { animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% cover 15%; }
    .reveal-scale { animation: reveal-scale linear both; animation-timeline: view(); animation-range: entry 0% cover 18%; }
    @keyframes reveal { from { opacity: 0; transform: translateY(40px); } }
    @keyframes reveal-scale { from { opacity: 0; transform: translateY(30px) scale(.92); } }
  }
}

/* ---------- 10. Stats band (overlaps the hero) --------------------------- */
.tiles.tiles--stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 52rem) { .tiles.tiles--stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 30rem) { .tiles--stats .tile { padding: var(--s-4); } .tiles--stats .tile p { font-size: .9rem; } }
.stats { position: relative; z-index: 2; margin-top: calc(-1 * clamp(3rem, 2rem + 4vw, 5rem)); }
.stats .tiles { gap: var(--s-3); }
.stats .tile { background: var(--surface); box-shadow: var(--shadow-md); }

/* ---------- 11. App cards (home) ----------------------------------------- */
.app-grid { display: grid; gap: var(--s-5); grid-template-columns: 1fr; list-style: none; padding: 0; margin: 0; }
.app-grid > li { margin: 0; display: flex; min-width: 0; }
.app-card {
  position: relative; display: flex; flex-direction: column; gap: var(--s-4); width: 100%;
  padding: var(--s-5); border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm);
  transition: transform .45s var(--spring), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.app-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--brand) 45%, var(--border)); }
.app-card-top { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); }
.app-card img.app-icon { width: 72px; height: 72px; border-radius: 18px; box-shadow: var(--shadow-md); transition: transform .5s var(--spring); }
.app-card:hover img.app-icon { transform: rotate(-6deg) scale(1.06); }
.app-card h3 { margin: 0 0 var(--s-2); font-size: clamp(1.4rem, 1.2rem + .8vw, 1.9rem); }
.app-card h3 a { color: var(--text); text-decoration: none; }
.app-card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: 1; }
.app-card h3 a:focus-visible { outline: none; }
.app-card h3 a:focus-visible::after { outline: 3px solid var(--brand); outline-offset: 3px; }
.app-card p { margin: 0; color: var(--muted); }
.app-card .more { display: inline-flex; align-items: center; gap: var(--s-2); color: var(--brand); font-weight: 700; }
.app-card .more svg { width: 20px; height: 20px; transition: transform .3s var(--spring); }
.app-card:hover .more svg { transform: translateX(5px); }
.app-card--featured { overflow: hidden; padding: 0; }
.app-card--featured .app-card-body { display: flex; flex-direction: column; gap: var(--s-4); padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); }
.app-card--featured .shots-peek {
  position: relative; display: flex; justify-content: center; align-items: center; gap: var(--s-3);
  padding: var(--s-6) var(--s-4); overflow: hidden; min-width: 0;
  background: var(--hero-grad);
}
.shots-peek .phone { transition: transform .5s var(--spring); }
.shots-peek .phone--main { width: 9.5rem; padding: 5px; border-radius: 1.7rem; }
.shots-peek .phone--main .phone-screen { border-radius: 1.35rem; }
.shots-peek .phone--side { width: 7.5rem; padding: 4px; border-radius: 1.4rem; }
.shots-peek .phone--side .phone-screen { border-radius: 1.1rem; }
.app-card:hover .shots-peek .phone--main { transform: translateY(-6px) scale(1.03); }
.app-card:hover .shots-peek .phone--side:first-child { transform: translateX(-4px) rotate(-2deg); }
.app-card:hover .shots-peek .phone--side:last-child { transform: translateX(4px) rotate(2deg); }
@media (max-width: 26rem) { .shots-peek .phone--side { width: 6rem; } .shots-peek .phone--main { width: 8rem; } }
@media (min-width: 56rem) {
  .app-card--featured { flex-direction: row; }
  .app-card--featured .app-card-body { flex: 1 1 48%; justify-content: center; }
  .app-card--featured .shots-peek { flex: 1 1 52%; }
  .shots-peek .phone--main { width: 11rem; }
  .shots-peek .phone--side { width: 8.75rem; }
}
.app-card--placeholder {
  justify-content: center; align-items: center; text-align: center; min-height: 10rem;
  border: 2px dashed var(--border); background: transparent; box-shadow: none; color: var(--muted);
}
.app-card--placeholder:hover { transform: none; box-shadow: none; border-color: var(--brand); }
.app-card--placeholder p { margin: 0; }

/* ---------- 12. Tiles, feature rows -------------------------------------- */
.tiles { display: grid; gap: var(--s-4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 14.5rem), 1fr)); list-style: none; padding: 0; margin: 0; }
.tile {
  position: relative; margin: 0; padding: var(--s-5); border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border);
  transition: transform .45s var(--spring), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--brand) 35%, var(--border)); }
.tile:hover .icon-tile { transform: rotate(-8deg) scale(1.1); background: var(--brand); color: var(--on-brand); }
.tile .icon-tile { margin-bottom: var(--s-4); }
.tile h3 { margin-bottom: var(--s-2); }
.tile p { margin: 0; color: var(--muted); font-size: 1rem; }
.stat {
  display: block; margin-bottom: var(--s-1);
  font-family: var(--font-display); font-size: clamp(1.75rem, 1.4rem + 1vw, 2.35rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.05;
  background: linear-gradient(120deg, var(--brand), #0e9a62); -webkit-background-clip: text; background-clip: text; color: transparent;
}
@media (prefers-color-scheme: dark) { .stat { background: linear-gradient(120deg, var(--brand), var(--lime)); -webkit-background-clip: text; background-clip: text; } }

.feature { position: relative; display: grid; gap: var(--s-6); align-items: center; }
.feature + .feature { margin-top: var(--section); }
@media (min-width: 56rem) {
  .feature { grid-template-columns: 1fr 1fr; gap: var(--s-9); }
  .feature:nth-of-type(even) .feature-media { order: -1; }
}
.feature-media { position: relative; display: grid; place-items: center; }
.feature-media::before { /* soft colour disc behind each phone */
  content: ""; position: absolute; width: min(26rem, 90%); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--brand-bright) 35%, transparent), transparent 65%);
}
.feature-num { display: block; font-family: var(--font-display); font-size: .95rem; font-weight: 800; color: var(--brand); letter-spacing: .1em; margin-bottom: var(--s-3); }
.feature h2 { margin-bottom: var(--s-4); }
.checklist { list-style: none; padding: 0; margin: var(--s-5) 0 0; }
.checklist li { position: relative; padding-left: 2.1rem; margin-bottom: var(--s-3); }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .22em; width: 1.4rem; height: 1.4rem; border-radius: 50%;
  background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%23ffffff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/.95rem no-repeat;
}
@media (prefers-color-scheme: dark) {
  .checklist li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%2306281a' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
}
.games { display: flex; flex-wrap: wrap; gap: var(--s-2); list-style: none; padding: 0; margin: var(--s-5) 0 0; }
.games li { margin: 0; padding: .45rem .8rem; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--border); font-size: var(--fs-sm); font-weight: 600; transition: transform .3s var(--spring), border-color .3s var(--ease), background .3s var(--ease); }
.games li:hover { transform: translateY(-3px) rotate(-1.5deg); border-color: var(--brand); background: var(--brand-soft); }

/* ---------- 15. Panels ---------------------------------------------------- */
.panel { display: grid; gap: var(--s-5); padding: clamp(1.5rem, 1rem + 2.5vw, 3.5rem); border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
@media (min-width: 52rem) { .panel--split { grid-template-columns: 1fr 1fr; align-items: start; gap: var(--s-7); } }
.panel h2 { margin-bottom: var(--s-3); }
.facts-list { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s-4); }
.facts-list li { display: flex; gap: var(--s-3); margin: 0; padding: var(--s-3); border-radius: var(--radius-sm); transition: background .3s var(--ease); }
.facts-list li:hover { background: var(--surface-2); }
.facts-list li:hover .icon-tile { transform: scale(1.12) rotate(-6deg); }
.facts-list li > div { min-width: 0; }
.facts-list .icon-tile { width: 42px; height: 42px; border-radius: 12px; }
.facts-list .icon-tile svg { width: 22px; height: 22px; }
.facts-list strong { display: block; }
.facts-list span { color: var(--muted); font-size: 1rem; }

.promise { text-align: center; }
.promise .icon-tile { margin: 0 auto var(--s-5); width: 64px; height: 64px; border-radius: 20px; background: var(--brand); color: var(--on-brand); }
.promise h2 { margin-bottom: var(--s-3); font-size: clamp(2.2rem, 1.5rem + 3.5vw, 4.2rem); }
.promise h2 .underline { position: relative; white-space: nowrap; }
.promise h2 .underline::after { content: ""; position: absolute; left: 0; right: 0; bottom: .02em; height: .14em; border-radius: 99px; background: var(--lime); z-index: -1; transform-origin: left; }
@media (prefers-color-scheme: dark) { .promise h2 .underline::after { background: var(--brand-soft); } }
.promise h2 { position: relative; z-index: 0; }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .promise h2 .underline::after { animation: draw linear both; animation-timeline: view(); animation-range: entry 20% cover 45%; }
    @keyframes draw { from { transform: scaleX(0); } }
  }
}
.promise p { margin-inline: auto; max-width: 34rem; color: var(--muted); font-size: var(--fs-lg); }

/* merged sign-in & privacy panel */
.panel .section-head { margin-bottom: var(--s-5); }
.panel-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--s-2); margin: var(--s-5) 0 0; text-align: center; color: var(--muted); font-size: var(--fs-sm); }
.panel-foot svg { width: 18px; height: 18px; color: var(--brand); }

/* ---------- 16. FAQ (smooth open where supported) ------------------------ */
.faq { max-width: 50rem; margin-inline: auto; display: grid; gap: var(--s-3); }
.faq details { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); transition: border-color .3s var(--ease), box-shadow .3s var(--ease); }
.faq details:hover { border-color: color-mix(in srgb, var(--brand) 40%, var(--border)); }
.faq details[open] { box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--brand) 40%, var(--border)); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: var(--s-4); padding: var(--s-4) var(--s-5); cursor: pointer; list-style: none; font-weight: 700; font-size: var(--fs-h3); font-family: var(--font-display); letter-spacing: -.01em; border-radius: var(--radius); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 2rem; height: 2rem; border-radius: 50%;
  background: var(--brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 5v10M5 10h10' fill='none' stroke='%230b7a4c' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center/1rem no-repeat;
  transition: transform .4s var(--spring), background-color .3s var(--ease);
}
@media (prefers-color-scheme: dark) { .faq summary::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 5v10M5 10h10' fill='none' stroke='%235ee0a0' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); } }
.faq details[open] summary::after { transform: rotate(135deg); }
.faq details > div { padding: 0 var(--s-5) var(--s-5); color: var(--muted); }
.faq details > div p:last-child { margin-bottom: 0; }
@media (prefers-reduced-motion: no-preference) {
  .faq details::details-content { block-size: 0; overflow: clip; transition: block-size .4s var(--ease), content-visibility .4s allow-discrete; }
  .faq details[open]::details-content { block-size: auto; }
}

/* ---------- 17. CTA band -------------------------------------------------- */
.cta {
  position: relative; overflow: hidden; isolation: isolate; text-align: center;
  padding: clamp(3rem, 2rem + 4vw, 6rem) var(--s-5); border-radius: var(--radius-lg);
  background: var(--hero-grad); color: #ffffff; box-shadow: var(--shadow-lg);
}
.cta::before { content: ""; position: absolute; z-index: -1; width: 30rem; height: 30rem; right: -8rem; top: -10rem; border-radius: 50%; background: #19c784; filter: blur(70px); opacity: .5; animation: drift 16s ease-in-out infinite alternate; }
.cta h2 { color: #ffffff; }
.cta h2 .hl { color: var(--lime); }
.cta p { color: #ffffff; opacity: .95; max-width: 36rem; margin-inline: auto; margin-bottom: var(--s-6); font-size: var(--fs-lg); }
.cta .btn-row { justify-content: center; }
.cta .btn--primary { background: #ffffff; color: #064a30; box-shadow: 0 18px 40px -18px rgb(0 0 0 / .6); }
.cta .btn--primary:hover { background: var(--lime); color: #064a30; }
.cta .btn--outline-light, .cta .btn--soon { border: 2px solid rgb(255 255 255 / .55); color: #ffffff; background: transparent; }
.cta .btn--outline-light:hover { border-color: #ffffff; background: rgb(255 255 255 / .1); color: #ffffff; }
.cta a:not(.btn) { color: #ffffff; }
.cta :focus-visible { outline-color: #ffffff; }

/* ---------- 18. Small print & link rows ---------------------------------- */
.smallprint { max-width: 50rem; margin: 0 auto; font-size: var(--fs-sm); color: var(--muted); }
.smallprint h2 { font-size: 1rem; font-family: var(--font); margin-bottom: var(--s-2); letter-spacing: 0; }
.smallprint a { color: var(--muted); }
.link-row { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); list-style: none; padding: 0; margin: 0; }
.link-row li { margin: 0; }
.link-row a { font-weight: 600; }

/* ---------- 19. Inner pages ---------------------------------------------- */
.page-hero { position: relative; overflow: hidden; isolation: isolate; padding-block: clamp(2.5rem, 2rem + 3vw, 5rem) clamp(2rem, 1.5rem + 2vw, 3.5rem); background: var(--hero-grad); color: #ffffff; margin-bottom: var(--s-7); }
.page-hero::before { content: ""; position: absolute; z-index: -1; width: 26rem; height: 26rem; right: -6rem; top: -10rem; border-radius: 50%; background: #19c784; filter: blur(60px); opacity: .45; animation: drift 18s ease-in-out infinite alternate; }
.page-hero h1 { font-size: clamp(2.1rem, 1.6rem + 2.6vw, 3.6rem); color: #ffffff; }
.page-hero .lead { color: #ffffff; opacity: .95; }
.page-hero a { color: #ffffff; }
.page-hero :focus-visible { outline-color: #ffffff; }
.breadcrumb { margin-bottom: var(--s-5); font-size: var(--fs-sm); }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: var(--s-2); list-style: none; padding: 0; margin: 0; color: #ffffff; }
.breadcrumb li { margin: 0; opacity: .95; }
.breadcrumb li + li::before { content: "›"; margin-right: var(--s-2); }
.page-body { padding-bottom: var(--section); }

.steps { counter-reset: step; list-style: none; padding: 0; margin: var(--s-5) 0; display: grid; gap: var(--s-3); }
.steps li { counter-increment: step; position: relative; margin: 0; padding: var(--s-4) var(--s-4) var(--s-4) 4.25rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); transition: transform .35s var(--spring), border-color .3s var(--ease); }
.steps li:hover { transform: translateX(4px); border-color: var(--brand); }
.steps li::before { content: counter(step); position: absolute; left: var(--s-4); top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--brand); color: var(--on-brand); font-family: var(--font-display); font-weight: 800; }
.path { font-weight: 700; }
.path span { white-space: nowrap; }
.callout { margin: var(--s-6) 0; padding: var(--s-5); border-radius: var(--radius); background: var(--brand-soft); border-left: 4px solid var(--brand); }
.callout p:last-child { margin-bottom: 0; }
.card-list { display: grid; gap: var(--s-4); grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr)); list-style: none; padding: 0; margin: 0; }
.card-list > li { margin: 0; padding: var(--s-5); border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); transition: transform .4s var(--spring), box-shadow .3s var(--ease); }
.card-list > li:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card-list h3 { display: flex; align-items: center; gap: var(--s-3); }
.card-list h3 img { width: 44px; height: 44px; border-radius: 12px; }
.card-list ul { list-style: none; padding: 0; margin: 0; }

/* ---------- 20. Footer ---------------------------------------------------- */
.site-footer { position: relative; padding-block: var(--s-8) var(--s-6); background: var(--bg-alt); border-top: 1px solid var(--border); font-size: var(--fs-sm); }
.footer-grid { display: grid; gap: var(--s-6); grid-template-columns: repeat(2, 1fr); }
@media (min-width: 52rem) { .footer-grid { grid-template-columns: 2fr repeat(3, 1fr); } }
.footer-brand { grid-column: 1 / -1; }
@media (min-width: 52rem) { .footer-brand { grid-column: auto; } }
.footer-brand p { color: var(--muted); max-width: 22rem; margin-top: var(--s-3); }
.site-footer h2 { font-family: var(--font); font-size: .8125rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: var(--s-3); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: var(--s-2); }
.site-footer a { color: var(--text); text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat; transition: background-size .35s var(--ease), color .25s var(--ease); }
.site-footer a:hover { color: var(--brand); background-size: 100% 1.5px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-3); margin-top: var(--s-7); padding-top: var(--s-5); border-top: 1px solid var(--border); color: var(--muted); }
.footer-bottom p { margin: 0; }
.footer-bottom a { color: var(--muted); }

/* ---------- 21. 404 ------------------------------------------------------- */
.notfound { text-align: center; padding-block: var(--s-9); }
.notfound .big { font-family: var(--font-display); font-size: clamp(5rem, 3rem + 10vw, 10rem); font-weight: 800; line-height: 1; letter-spacing: -.05em; margin-bottom: var(--s-4); background: var(--hero-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
@media (prefers-reduced-motion: no-preference) { .notfound .big { animation: wobble 3s ease-in-out infinite; } @keyframes wobble { 50% { transform: rotate(-3deg) scale(1.03); } } }
.notfound .btn-row { justify-content: center; }
.notfound .lead { margin-inline: auto; }

/* ---------- 22. Motion off for those who ask ----------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Placeholder screen until real screenshots are added */
.phone-screen--placeholder { display: grid; place-items: center; background: var(--hero-grad); }
.phone-screen--placeholder img { width: 38%; object-fit: contain; height: auto; border-radius: 22%; box-shadow: 0 16px 34px -12px rgb(0 0 0 / .5); }
@media (prefers-reduced-motion: no-preference) {
  .phone-screen--placeholder img { animation: breathe 4s ease-in-out infinite; }
  @keyframes breathe { 50% { transform: scale(1.06); } }
}

/* store "coming soon" buttons: two-line label */
.btn--store { gap: .65rem; padding-inline: 1.1rem 1.4rem; text-align: left; line-height: 1.15; }
.btn--store small { display: block; font-size: .72rem; font-weight: 600; opacity: .85; letter-spacing: .01em; }
.btn--store svg { width: 22px; height: 22px; }

/* ---------- App tour: 8 highlights + "See all screens" ------------------- */
.tour-group { margin-top: var(--s-7); }
.tour-head { margin-bottom: var(--s-4); }
.tour-group-title { font-family: var(--font-display); font-size: clamp(1.35rem, 1.15rem + .9vw, 1.8rem); letter-spacing: -.02em; margin: 0 0 var(--s-1); }
.tour-head p { color: var(--muted); margin: 0; }
.tour-row {
  list-style: none; padding: var(--s-2) 0 var(--s-4); margin: 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-6) var(--s-5);
}
.tour-row:focus-visible { outline-offset: 6px; }
.tour-card { margin: 0; display: flex; flex-direction: column; gap: var(--s-3); width: 12.5rem; }
.tour-row--highlights .tour-card { width: 13.5rem; }
.tour-card .phone { width: 100%; padding: 5px; border-radius: 1.9rem; }
.tour-card .phone-screen { border-radius: 1.55rem; }
.tour-card:hover .phone { transform: translateY(-6px); }
.tour-text h4 { font-family: var(--font-display); font-size: 1.1rem; letter-spacing: -.01em; margin: 0 0 var(--s-1); }
.tour-text p { margin: 0; color: var(--muted); font-size: .95rem; line-height: 1.5; }
.swipe-hint { display: none; }

.tour-all { margin-top: var(--s-6); }
.tour-all > summary {
  display: flex; justify-content: center; list-style: none; cursor: pointer;
}
.tour-all > summary::-webkit-details-marker { display: none; }
.tour-all > summary span {
  display: inline-flex; align-items: center; gap: var(--s-2); min-height: 3.25rem; padding: .8rem 1.5rem;
  border-radius: var(--radius-pill); border: 2px solid var(--brand); color: var(--brand); background: var(--surface);
  font-weight: 700; transition: transform .25s var(--spring), background .25s var(--ease), color .25s var(--ease);
}
.tour-all > summary span::after { content: "+"; font-size: 1.3em; line-height: 1; transition: transform .3s var(--spring); }
.tour-all > summary:hover span { transform: translateY(-2px); background: var(--brand); color: var(--on-brand); }
.tour-all[open] > summary span::after { transform: rotate(45deg); }
.tour-all[open] > summary span { background: var(--brand); color: var(--on-brand); }

/* phones: swipe sideways through each row instead of a very long page */
@media (max-width: 47.99rem) {
  .swipe-hint { display: flex; align-items: center; justify-content: center; gap: var(--s-2); margin: 0 0 var(--s-3); color: var(--muted); font-size: var(--fs-sm); font-weight: 600; }
  .swipe-hint svg { width: 18px; height: 18px; }
  .tour-row {
    flex-wrap: nowrap; justify-content: flex-start;
    overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
    margin-inline: calc(-1 * var(--s-4)); padding-inline: var(--s-4); scroll-padding-inline: var(--s-4);
  }
  .tour-card, .tour-row--highlights .tour-card { flex: 0 0 68%; width: auto; scroll-snap-align: start; }
}
.store-row { margin-top: var(--s-3); }

/* phones: no light glow behind the hero text (keeps white text ≥ 4.5:1) */
@media (max-width: 40rem) { .hero::before { display: none; } }

/* review round 2 */
.hero .text-link { padding-left: 0; margin-left: var(--s-2); }
.store-line + .store-line { margin-top: var(--s-2); }
.store-line--soon { font-weight: 500; }
@media (max-width: 37.5rem) { .feature-media .phone { width: min(13rem, 58vw); } }

/* ---------- FinnSana launch homepage v22 -------------------------------- */
.hero-kicker {
  display: block;
  margin: 0 0 var(--s-3);
  color: color-mix(in srgb, var(--lime) 86%, #fff);
  font-family: var(--font-display);
  font-weight: 750;
  letter-spacing: .045em;
  text-transform: uppercase;
  font-size: .78rem;
}
.launch-story { padding-top: clamp(4rem, 8vw, 7rem); }
.launch-story-grid { display: grid; gap: var(--s-7); align-items: start; }
@media (min-width: 64rem) {
  .launch-story-grid { grid-template-columns: .78fr 1.22fr; }
  .launch-story .section-head { position: sticky; top: 7rem; margin-bottom: 0; }
}
.journey-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-4);
  list-style: none;
  padding: 0;
  margin: 0;
}
.journey-card {
  position: relative;
  min-height: 13rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + .25rem);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.journey-card > span {
  display: inline-grid;
  place-items: center;
  width: 2.15rem;
  height: 2.15rem;
  margin-bottom: var(--s-5);
  border-radius: 999px;
  background: color-mix(in srgb, var(--brand) 14%, var(--surface));
  color: var(--brand);
  font-family: var(--font-display);
  font-weight: 800;
}
.journey-card h3 { font-size: 1.35rem; margin-bottom: var(--s-2); }
.journey-card p { color: var(--muted); margin: 0; }
.journey-card::after {
  content: "";
  position: absolute;
  width: 8rem;
  height: 8rem;
  border-radius: 50%;
  right: -4rem;
  bottom: -5rem;
  background: color-mix(in srgb, var(--lime) 22%, transparent);
  filter: blur(2px);
}
@media (max-width: 36rem) { .journey-grid { grid-template-columns: 1fr; } .journey-card { min-height: auto; } }

.learn-ecosystem { background: linear-gradient(180deg, var(--bg), color-mix(in srgb, var(--brand) 5%, var(--bg))); }
.guide-grid { display: grid; gap: var(--s-4); margin-top: var(--s-6); }
@media (min-width: 52rem) { .guide-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.guide-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  padding: clamp(1.4rem, 3vw, 2rem);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + .2rem);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--spring), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.guide-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--brand) 45%, var(--border)); }
.guide-card h3 { margin: 0; font-size: clamp(1.25rem, 1.1rem + .5vw, 1.55rem); }
.guide-card h3 a { color: var(--text); text-decoration: none; }
.guide-card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.guide-card p { margin: 0; color: var(--muted); }
.guide-tag {
  width: fit-content;
  padding: .35rem .65rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--brand) 10%, var(--surface));
  color: var(--brand);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .045em;
  text-transform: uppercase;
}
.guide-more { margin-top: auto; padding-top: var(--s-3); color: var(--brand); font-weight: 750; }
.guide-card--hub { background: var(--hero-grad); border-color: transparent; }
.guide-card--hub h3 a, .guide-card--hub p, .guide-card--hub .guide-more { color: #fff; }
.guide-card--hub .guide-tag { background: rgb(255 255 255 / .14); color: #fff; }
.channel-strip {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-5);
  align-items: center;
  justify-content: space-between;
  margin-top: var(--s-6);
  padding: clamp(1.5rem, 4vw, 2.3rem);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + .25rem);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.channel-strip > div { max-width: 42rem; }
.channel-strip h3 { margin: .35rem 0 .4rem; font-size: clamp(1.35rem, 1.15rem + .8vw, 1.9rem); }
.channel-strip p { margin: 0; color: var(--muted); }
.channel-strip .btn img { width: 1.2rem; height: 1.2rem; filter: brightness(0) invert(1); }

/* Launch-page navigation can hold five short links without looking crowded. */
@media (max-width: 52rem) {
  .site-nav ul { gap: .25rem; }
  .site-nav a { padding-inline: .55rem; }
}

/* ---------- FinnSana motion system v24.1 -----------------------------------
   Restrained motion with viewport and preference-aware lifecycle. Scoped to the FinnSana launch
   page, with a complete reduced-motion fallback and no third-party library. */
.finnsana-page {
  --motion-fast: 240ms;
  --motion-medium: 520ms;
  --motion-slow: 900ms;
}

/* page progress + header state */
.finnsana-page .motion-progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: 120;
  height: 3px;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--lime), #68e6ad 55%, #ffffff);
  box-shadow: 0 0 14px rgb(104 230 173 / .42);
  pointer-events: none;
}
.finnsana-page .site-header.is-scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 8px 26px -22px rgb(7 82 54 / .45);
}
.finnsana-page .site-nav a.is-active {
  color: var(--text);
  background: var(--brand-soft);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--brand) 18%, transparent);
}

/* hero: layered atmosphere, staged phones, micro parallax */
.finnsana-page .phone-fan[data-hero-stage] {
  isolation: isolate;
  perspective: 1100px;
  transform-style: preserve-3d;
}
.finnsana-page .hero-orbit,
.finnsana-page .hero-spark {
  position: absolute;
  pointer-events: none;
  z-index: -1;
}
.finnsana-page .hero-orbit {
  border-radius: 50%;
  border: 1px solid rgb(255 255 255 / .18);
  box-shadow: inset 0 0 45px rgb(215 247 123 / .035);
  translate: var(--atmo-x, 0px) var(--atmo-y, 0px);
  transition: translate .16s linear;
}
.finnsana-page .hero-orbit--one {
  width: min(29rem, 86vw); aspect-ratio: 1; transform: rotate(-14deg) scaleY(.64);
}
.finnsana-page .hero-orbit--two {
  width: min(21rem, 68vw); aspect-ratio: 1; transform: rotate(24deg) scaleY(.72);
  border-color: rgb(215 247 123 / .23);
}
.finnsana-page .hero-spark {
  width: .42rem; height: .42rem; border-radius: 50%;
  background: var(--lime); box-shadow: 0 0 0 7px rgb(215 247 123 / .07), 0 0 22px rgb(215 247 123 / .42);
  opacity: .82;
}
.finnsana-page .hero-spark--a { top: 18%; right: 13%; }
.finnsana-page .hero-spark--b { bottom: 21%; left: 12%; width: .28rem; height: .28rem; opacity: .65; }

.finnsana-page .hero-phone-layer {
  grid-area: 1 / 1;
  position: relative;
  display: grid;
  place-items: center;
  transform-style: preserve-3d;
  will-change: auto;
  transition: none;
  opacity: 1;
}
.finnsana-page .hero-phone-layer--main {
  z-index: 3;
  transform: translate3d(var(--layer-x, 0px), var(--layer-y, 0px), 36px)
             rotateX(var(--layer-rx, 0deg)) rotateY(var(--layer-ry, 0deg));
}
.finnsana-page .hero-phone-layer--right {
  z-index: 2;
  transform: translate3d(calc(46% + var(--layer-x, 0px)), var(--layer-y, 0px), -8px)
             rotateZ(8deg) rotateX(var(--layer-rx, 0deg)) rotateY(var(--layer-ry, 0deg)) scale(.84);
}
.finnsana-page .hero-phone-layer--left {
  z-index: 1;
  transform: translate3d(calc(-46% + var(--layer-x, 0px)), var(--layer-y, 0px), -28px)
             rotateZ(-8deg) rotateX(var(--layer-rx, 0deg)) rotateY(var(--layer-ry, 0deg)) scale(.84);
}
.finnsana-page .phone-fan .hero-phone-layer .phone {
  grid-area: auto;
  transform: none;
  width: min(15.5rem, 64vw);
}
.finnsana-page .phone-fan .hero-phone-layer .phone-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 5;
  border-radius: 1.95rem;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 24%, rgb(255 255 255 / .18) 43%, transparent 58%);
  transform: translate3d(-125%, 0, 0);
  opacity: 0;
  mix-blend-mode: screen;
}
.finnsana-page .hero-float-chip {
  position: absolute;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: .42rem;
  padding: .48rem .72rem;
  border: 1px solid rgb(255 255 255 / .22);
  border-radius: 999px;
  background: rgb(6 54 35 / .62);
  color: #fff;
  -webkit-backdrop-filter: blur(12px) saturate(1.4);
  backdrop-filter: blur(12px) saturate(1.4);
  box-shadow: 0 12px 30px -20px rgb(0 0 0 / .72);
  font-size: .76rem;
  font-weight: 750;
  letter-spacing: .015em;
  pointer-events: none;
}
.finnsana-page .hero-float-chip::before {
  content: ""; width: .45rem; height: .45rem; border-radius: 50%; background: var(--lime); box-shadow: 0 0 12px rgb(215 247 123 / .7);
}
.finnsana-page .hero-float-chip--a { top: 18%; left: 1%; }
.finnsana-page .hero-float-chip--b { top: 10%; right: 2%; }
.finnsana-page .hero-float-chip--c { bottom: 14%; right: 3%; }

@media (prefers-reduced-motion: no-preference) {
  /* The main screenshot is visible immediately; side phones enter behind it. */
  .finnsana-page.motion-ready .hero-phone-layer { animation: hero-layer-in .66s var(--ease) both; }
  .finnsana-page.motion-ready .hero-phone-layer--main { animation: hero-main-in .62s var(--ease) both; }
  .finnsana-page.motion-ready .hero-phone-layer--left { animation-delay: .12s; }
  .finnsana-page.motion-ready .hero-phone-layer--right { animation-delay: .2s; }
  @keyframes hero-layer-in { from { opacity: 0; translate: 0 14px; } to { opacity: 1; translate: 0 0; } }
  @keyframes hero-main-in { from { translate: 0 10px; } to { translate: 0 0; } }
  .finnsana-page .hero-phone-layer .phone { animation: hero-bob 8s ease-in-out infinite; }
  .finnsana-page .hero-phone-layer--left .phone { animation-duration: 9.4s; animation-delay: -2s; }
  .finnsana-page .hero-phone-layer--right .phone { animation-duration: 8.8s; animation-delay: -4s; }
  @keyframes hero-bob { 0%,100% { translate: 0 0; } 50% { translate: 0 -6px; } }
  .finnsana-page .hero-phone-layer .phone-screen::after { animation: glass-sweep 12s ease-in-out 2s infinite; }
  .finnsana-page .hero-phone-layer--left .phone-screen::after { animation-delay: 5s; }
  .finnsana-page .hero-phone-layer--right .phone-screen::after { animation-delay: 8s; }
  @keyframes glass-sweep {
    0%,72% { transform: translate3d(-125%,0,0); opacity: 0; }
    76% { opacity: .22; }
    88%,100% { transform: translate3d(125%,0,0); opacity: 0; }
  }
  .finnsana-page .hero-orbit--one { animation: orbit-breathe 16s ease-in-out infinite; }
  .finnsana-page .hero-orbit--two { animation: orbit-breathe 19s ease-in-out -4s infinite reverse; }
  @keyframes orbit-breathe { 0%,100% { opacity: .65; scale: 1; } 50% { opacity: .85; scale: 1.025; } }
  .finnsana-page .hero-spark { animation: spark-pulse 4.2s ease-in-out infinite; }
  .finnsana-page .hero-spark--b { animation-delay: -1.9s; }
  @keyframes spark-pulse { 50% { opacity: .38; scale: .72; } }
  .finnsana-page .hero-float-chip { animation: chip-float 6s ease-in-out infinite; }
  .finnsana-page .hero-float-chip--b { animation-delay: -2s; }
  .finnsana-page .hero-float-chip--c { animation-delay: -4s; }
  @keyframes chip-float { 50% { translate: 0 -5px; } }
}

/* Reveal translation stays separate from hover transforms. No moving text blur. */
@media (prefers-reduced-motion: no-preference) {
  .finnsana-page.motion-ready .motion-reveal {
    animation: none !important;
    opacity: 0;
    translate: 0 18px;
    transition: opacity .56s var(--ease) var(--motion-delay, 0ms),
      translate .64s var(--ease) var(--motion-delay, 0ms),
      transform .3s var(--ease), box-shadow .3s var(--ease), border-color .24s var(--ease);
  }
  .finnsana-page.motion-ready .motion-reveal.is-visible { opacity: 1; translate: 0 0; }
  .finnsana-page.motion-ready .motion-reveal.motion-settled { transition-delay: 0s; }
  .finnsana-page .rise { animation-name: finnsana-rise; animation-duration: .7s; animation-delay: calc(var(--d, 0) * 65ms + 40ms); }
  @keyframes finnsana-rise { from { opacity: 0; transform: translateY(16px); } }
}
.finnsana-page .stats .stat { font-variant-numeric: tabular-nums; }

/* section/image layers: subtle depth behind every feature phone */
.finnsana-page .feature-media {
  --media-shift: 0px;
  isolation: isolate;
  min-height: 28rem;
}
.finnsana-page .feature-media .phone-stage {
  z-index: 2;
  transform: translate3d(0, var(--media-shift), 0);
  transition: transform .18s linear;
}
.finnsana-page .feature-media::before {
  transform: translate3d(0, var(--media-back-shift, 0px), 0);
  transition: transform .2s linear;
}
.finnsana-page .feature-media::after {
  content: "";
  position: absolute;
  z-index: 0;
  width: min(21rem, 76%);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--brand) 18%, transparent);
  box-shadow: inset 0 0 0 1rem color-mix(in srgb, var(--brand) 2.5%, transparent);
  transform: translate3d(0, var(--media-ring-shift, 0px), 0) rotate(-14deg) scaleY(.66);
  opacity: .72;
  transition: transform .22s linear, opacity .4s var(--ease);
}
.finnsana-page .feature:nth-child(even) .feature-media::after { rotate: 24deg; }
.finnsana-page .feature-media:hover::after { opacity: 1; }
.finnsana-page .feature-media .phone {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  transform: perspective(1100px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
  transform-style: preserve-3d;
  will-change: auto;
  transition: transform .42s var(--ease), box-shadow .42s var(--ease);
}
.finnsana-page .feature-media:hover .phone {
  transform: perspective(1100px) translateY(-5px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
  box-shadow: 0 46px 90px -42px rgb(4 40 24 / .72), 0 18px 34px -22px rgb(4 40 24 / .4);
}
.finnsana-page .feature-media .phone-screen img,
.finnsana-page .tour-card .phone-screen img {
  transition: transform .7s var(--ease), filter .55s var(--ease);
}
.finnsana-page .feature-media:hover .phone-screen img { transform: scale(1.012); }

/* cards receive a tiny pointer spotlight; still flat/readable without hover */
.finnsana-page .motion-surface {
  --spot-x: 50%; --spot-y: 50%;
}
.finnsana-page .tile.motion-surface,
.finnsana-page .journey-card.motion-surface,
.finnsana-page .guide-card.motion-surface,
.finnsana-page .channel-strip.motion-surface,
.finnsana-page .panel.motion-surface {
  background-image: radial-gradient(24rem circle at var(--spot-x) var(--spot-y), color-mix(in srgb, var(--brand) 7%, transparent), transparent 46%);
}
.finnsana-page .guide-card--hub.motion-surface,
.finnsana-page .cta.motion-surface {
  background-image: radial-gradient(26rem circle at var(--spot-x) var(--spot-y), rgb(255 255 255 / .11), transparent 46%), var(--hero-grad);
}

/* journey: each step lights up when it arrives */
.finnsana-page .journey-card { transition: transform .42s var(--spring), box-shadow .35s var(--ease), border-color .35s var(--ease); }
.finnsana-page .journey-card.is-visible > span {
  background: var(--brand);
  color: var(--on-brand);
  box-shadow: 0 0 0 7px color-mix(in srgb, var(--brand) 9%, transparent);
}
.finnsana-page .journey-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--brand) 32%, var(--border)); }
.finnsana-page .journey-card > span { transition: background .45s var(--ease), color .45s var(--ease), box-shadow .45s var(--ease), transform .45s var(--spring); }
.finnsana-page .journey-card:hover > span { transform: translateY(-2px) scale(1.04); }

/* checklist ticks and game chips arrive in a restrained cascade */
@media (prefers-reduced-motion: no-preference) {
  .finnsana-page .feature .checklist li.is-visible::before { animation: check-pop .48s var(--spring) both; animation-delay: var(--motion-delay, 0ms); }
  @keyframes check-pop { 0% { scale: .85; opacity: .5; } 70% { scale: 1.04; } 100% { scale: 1; opacity: 1; } }
}

/* app tour: gallery feels layered but never sacrifices screenshot legibility */
.finnsana-page .tour-card .phone {
  --tilt-x: 0deg; --tilt-y: 0deg;
  transform: perspective(1000px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
  transform-style: preserve-3d;
  transition: transform .45s var(--ease), box-shadow .4s var(--ease);
}
.finnsana-page .tour-card:hover .phone {
  transform: perspective(1000px) translateY(-4px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
  box-shadow: 0 32px 60px -34px rgb(4 40 24 / .65);
}
.finnsana-page .tour-card:hover .phone-screen img { transform: scale(1.008); }
.finnsana-page .tour-card .tour-text { transition: transform .4s var(--ease); }
.finnsana-page .tour-card:hover .tour-text { transform: translateY(-2px); }

/* icons, guides, CTA and YouTube strip */
.finnsana-page .tile .icon-tile,
.finnsana-page .channel-strip .btn img { transition: transform .5s var(--spring), filter .35s var(--ease); }
.finnsana-page .channel-strip:hover .btn img { transform: scale(1.06); }
.finnsana-page .guide-card .guide-more { transition: transform .32s var(--ease), color .25s var(--ease); }
.finnsana-page .guide-card:hover .guide-more { transform: translateX(4px); }
.finnsana-page .channel-strip { position: relative; overflow: hidden; }
.finnsana-page .channel-strip::after {
  content: ""; position: absolute; right: -3rem; top: -4rem; width: 10rem; height: 10rem; border-radius: 50%;
  background: radial-gradient(circle, rgb(255 0 0 / .08), transparent 70%); pointer-events: none;
  transition: scale .55s var(--spring), opacity .4s var(--ease); opacity: .65;
}
.finnsana-page .channel-strip:hover::after { scale: 1.25; opacity: 1; }

.finnsana-page .btn--primary::before {
  content: "";
  position: absolute;
  inset: -30% -45%;
  z-index: -1;
  background: linear-gradient(105deg, transparent 38%, rgb(255 255 255 / .22) 48%, transparent 58%);
  transform: translateX(-72%) rotate(4deg);
  pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) {
  .finnsana-page .btn--primary:hover::before { animation: button-sheen .72s var(--ease) both; }
  @keyframes button-sheen { to { transform: translateX(72%) rotate(4deg); } }
}

/* FAQ: subtle content reveal in browsers that do not animate details-content */
@media (prefers-reduced-motion: no-preference) {
  .finnsana-page .faq details[open] > div { animation: faq-in .36s var(--ease) both; }
  @keyframes faq-in { from { opacity: 0; transform: translateY(-7px); } }
}

/* CTA background breathes very slowly; decorative only */
.finnsana-page .cta::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 24rem; height: 24rem; border-radius: 50%;
  top: -13rem; right: -8rem;
  background: radial-gradient(circle, rgb(215 247 123 / .2), transparent 68%);
  pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) {
  .finnsana-page .cta::before { animation: cta-orb 18s ease-in-out infinite alternate; }
  @keyframes cta-orb { to { translate: -1.5rem 1rem; scale: 1.06; } }
}

/* pause decorative loops when the document is not visible */
.finnsana-page.motion-paused *,
.finnsana-page.motion-paused *::before,
.finnsana-page.motion-paused *::after { animation-play-state: paused !important; }

/* mobile/tablet: retain polish while reducing continuous movement */
@media (max-width: 47.99rem) {
  .finnsana-page .hero-float-chip { display: none; }
  .finnsana-page .hero-orbit--one { width: 82vw; }
  .finnsana-page .hero-orbit--two { width: 64vw; }
  .finnsana-page .hero-phone-layer--right { transform: translate3d(36%, 0, -8px) rotateZ(7deg) scale(.78); }
  .finnsana-page .hero-phone-layer--left { transform: translate3d(-36%, 0, -28px) rotateZ(-7deg) scale(.78); }
  .finnsana-page .feature-media { min-height: 22rem; }
  .finnsana-page .feature-media .phone-stage,
  .finnsana-page .feature-media::before,
  .finnsana-page .feature-media::after { transform: none; }
}

/* hard accessibility stop */
@media (prefers-reduced-motion: reduce) {
  .finnsana-page .motion-progress { display: none; }
  .finnsana-page .hero-phone-layer,
  .finnsana-page .hero-phone-layer--main,
  .finnsana-page .hero-phone-layer--left,
  .finnsana-page .hero-phone-layer--right,
  .finnsana-page .feature-media .phone,
  .finnsana-page .tour-card .phone { transition: none !important; }
  .finnsana-page .hero-phone-layer--right { transform: translateX(46%) rotate(8deg) scale(.84); }
  .finnsana-page .hero-phone-layer--left { transform: translateX(-46%) rotate(-8deg) scale(.84); }
  .finnsana-page .hero-phone-layer--main { transform: none; }
}

/* Only fine pointers receive hover lift; touch controls stay stable after taps. */
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .finnsana-page .hero-phone-layer .phone:hover { transform: translateY(-3px); }
  .finnsana-page .guide-card:focus-within, .finnsana-page .guide-card:hover { transform: translateY(-3px); }
  .finnsana-page .tile:hover .icon-tile { transform: translateY(-2px); }
  .finnsana-page .btn:active { transform: translateY(0) scale(.985); }
}
.finnsana-page .hero.motion-offscreen *,
.finnsana-page .hero.motion-offscreen::before,
.finnsana-page .hero.motion-offscreen::after,
.finnsana-page .hero.motion-offscreen *::before,
.finnsana-page .hero.motion-offscreen *::after,
.finnsana-page .cta.motion-offscreen::before { animation-play-state: paused !important; }
@media (max-width: 47.99rem), (pointer: coarse) {
  .finnsana-page .hero::before, .finnsana-page .hero::after,
  .finnsana-page .hero-orbit, .finnsana-page .hero-spark,
  .finnsana-page .hero-phone-layer .phone-screen::after,
  .finnsana-page .hero-phone-layer--left .phone,
  .finnsana-page .hero-phone-layer--right .phone,
  .finnsana-page .cta::before { animation: none !important; }
  .finnsana-page .hero-phone-layer--main .phone { animation: hero-mobile-bob 10s ease-in-out infinite; }
  @keyframes hero-mobile-bob { 0%,100% { translate: 0 0; } 50% { translate: 0 -3px; } }
  .finnsana-page .motion-reveal { --motion-delay: 0ms !important; }
  .finnsana-page .feature-media .phone-stage { transform: none; }
}
@media (hover: none) {
  .finnsana-page .motion-surface { background-image: none; }
  .finnsana-page .guide-card--hub, .finnsana-page .cta { background-image: var(--hero-grad); }
  .finnsana-page .tile:hover, .finnsana-page .journey-card:hover,
  .finnsana-page .guide-card:hover, .finnsana-page .feature-media:hover .phone,
  .finnsana-page .tour-card:hover .phone, .finnsana-page .btn:hover { transform: none; }
}
/* A changed system preference takes effect immediately, including already-started motion. */
.finnsana-page.motion-reduced *, .finnsana-page.motion-reduced *::before,
.finnsana-page.motion-reduced *::after { animation: none !important; transition: none !important; }
.finnsana-page.motion-reduced .motion-reveal { opacity: 1 !important; translate: 0 0 !important; }
.finnsana-page.motion-reduced .hero-phone-layer { opacity: 1 !important; scale: 1 !important; translate: 0 0 !important; }
.finnsana-page.motion-reduced .motion-progress { display: none; }
@media (prefers-reduced-motion: reduce) {
  .finnsana-page.motion-ready .motion-reveal { opacity: 1; translate: 0 0; }
  .finnsana-page .hero-phone-layer { opacity: 1; scale: 1; translate: 0 0; }
}

/* Keep mobile navigation readable and reachable while the header remains stable. */
@media (max-width: 47.99rem) {
  .finnsana-page .site-header .container { gap: .65rem; }
  .finnsana-page .site-nav { min-width: 0; }
  .finnsana-page .site-nav ul { overflow-x: auto; scrollbar-width: thin; }
  .finnsana-page .site-nav li { flex-shrink: 0; }
  .finnsana-page .site-nav a { white-space: nowrap; }
}
@media (max-width: 47.99rem) and (prefers-reduced-motion: reduce) {
  .finnsana-page .hero-phone-layer--right { transform: translateX(36%) rotate(7deg) scale(.78); }
  .finnsana-page .hero-phone-layer--left { transform: translateX(-36%) rotate(-7deg) scale(.78); }
}

/* ========================================================================
   v26 — FinnSana Learn hub responsive editorial grid
   Keeps long guide titles readable and prevents narrow four-column cards.
   ======================================================================== */
.learn-hub-page .section > .container { max-width: 78rem; }
.learn-hub-page .section > .container > h1 {
  max-width: 13ch;
  font-size: clamp(2.65rem, 2rem + 3vw, 4.9rem);
  line-height: .98;
  text-wrap: balance;
}
.learn-hub-page .section > .container > .lead {
  max-width: 44rem;
  margin-bottom: clamp(2rem, 4vw, 3.25rem);
}
.learn-hub-page .learn-guide-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1rem, 2vw, 1.4rem);
  align-items: stretch;
}
.learn-hub-page .learn-guide-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: .85rem;
  padding: clamp(1.25rem, 2vw, 1.65rem);
  overflow: hidden;
}
.learn-hub-page .learn-guide-card .eyebrow {
  align-self: flex-start;
  max-width: 100%;
  margin-bottom: .15rem;
  white-space: normal;
  overflow-wrap: anywhere;
}
.learn-hub-page .learn-guide-card h2 {
  margin: 0;
  font-size: clamp(1.55rem, 1.35rem + .6vw, 2.05rem);
  line-height: 1.08;
  letter-spacing: -.03em;
  text-wrap: balance;
  overflow-wrap: anywhere;
  hyphens: auto;
}
.learn-hub-page .learn-guide-card h2 a { display: block; }
.learn-hub-page .learn-guide-card > p:not(:last-child) {
  margin: 0;
  color: var(--muted);
  font-size: clamp(.96rem, .92rem + .12vw, 1.03rem);
  line-height: 1.58;
  overflow-wrap: anywhere;
}
.learn-hub-page .learn-guide-card > p:last-child {
  margin-top: auto;
  padding-top: .15rem;
}
.learn-hub-page .learn-guide-card .text-link {
  min-height: 2.65rem;
  padding-inline: 0;
  overflow-wrap: anywhere;
}
@media (min-width: 42rem) {
  .learn-hub-page .learn-guide-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 72rem) {
  .learn-hub-page .learn-guide-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 31rem) {
  .learn-hub-page .section > .container > h1 { font-size: clamp(2.35rem, 12vw, 3.25rem); }
  .learn-hub-page .learn-guide-card h2 { font-size: clamp(1.45rem, 7vw, 1.8rem); }
}

/* ---------- v41: every game explained (finnsana #games) ---------------- */
.game-guide-title { font-family: var(--font-display); font-size: clamp(1.35rem, 1.15rem + .9vw, 1.8rem); letter-spacing: -.02em; margin: var(--s-7) 0 var(--s-2); }
.game-guide-title span { color: var(--muted); font-weight: 600; }
.game-guide-lead { color: var(--muted); margin: 0; max-width: 48rem; }
.game-guide { display: grid; gap: var(--s-4); grid-template-columns: repeat(auto-fill, minmax(min(100%, 21rem), 1fr)); list-style: none; padding: 0; margin: var(--s-5) 0 0; }
.game-card { display: flex; gap: var(--s-4); align-items: flex-start; margin: 0; padding: var(--s-4); border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); transition: transform .45s var(--spring), box-shadow .35s var(--ease), border-color .35s var(--ease); }
.game-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--brand) 35%, var(--border)); }
.game-card .phone { flex: 0 0 7rem; width: 7rem; padding: 4px; border-radius: 1.25rem; box-shadow: var(--shadow-md); }
.game-card .phone::before { display: none; }
.game-card .phone-screen { border-radius: 1rem; }
.game-text { min-width: 0; }
.game-text h4 { font-family: var(--font-display); font-size: 1.15rem; letter-spacing: -.01em; margin: 0; }
.game-fi { display: block; color: var(--brand); font-weight: 700; font-size: .95rem; margin: .1rem 0 var(--s-2); }
.game-text p { margin: 0; color: var(--muted); font-size: .95rem; line-height: 1.5; }
.game-text .game-trains { margin-top: var(--s-2); color: var(--text); font-weight: 600; font-size: .9rem; }
.game-topics-title { font-family: var(--font-display); font-size: 1.15rem; margin: var(--s-6) 0 0; }
.game-topics { margin-top: var(--s-3); }
@media (max-width: 26rem) { .game-card .phone { flex-basis: 5.75rem; width: 5.75rem; } }

/* ---------- FinnSana Plus pricing (16 Oct 2026): picture, two plans, gold, like the app's price page ---------- */
.plus-section { --gold: #e7b43c; --gold-deep: #3b2a00; }
.plus-card { max-width: 760px; margin: 0 auto; border-radius: 28px; overflow: hidden; background: #1b1608; color: #fff6df; border: 1.5px solid var(--gold); box-shadow: 0 18px 50px rgba(231,180,60,.25); }
.plus-hero { display: block; width: 100%; height: auto; aspect-ratio: 2 / 1; object-fit: cover; }
.plus-body { padding: clamp(20px, 4vw, 40px); display: grid; gap: 20px; }
.plus-title { margin: 0; font-family: var(--font-display); font-size: clamp(1.6rem, 4vw, 2.2rem); color: #fff6df; }
.plus-diamond { color: var(--gold); }
.plus-sub { margin: -12px 0 0; color: rgba(255,246,223,.75); }
.plus-plans { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.plus-plan { position: relative; display: grid; gap: 4px; padding: 22px 18px 18px; border-radius: 20px; border: 1.5px solid rgba(255,246,223,.18); background: rgba(255,255,255,.04); }
.plus-plan--best { border: 2px solid var(--gold); background: rgba(231,180,60,.10); }
.plus-badge { position: absolute; top: -12px; left: 16px; padding: 3px 10px; border-radius: 999px; background: var(--gold); color: var(--gold-deep); font-size: .78rem; font-weight: 800; white-space: nowrap; }
.plus-plan-name { font-weight: 700; color: rgba(255,246,223,.85); }
.plus-price { font-family: var(--font-display); font-size: clamp(1.4rem, 3.4vw, 1.9rem); font-weight: 800; color: #fff6df; }
.plus-price small { font-size: .55em; font-weight: 600; color: rgba(255,246,223,.7); }
.plus-per { font-size: .9rem; color: rgba(255,246,223,.7); }
.plus-benefits { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 18px; }
.plus-benefits li { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.plus-benefit-icon { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: rgba(231,180,60,.16); color: var(--gold); }
.plus-benefit-icon svg { width: 18px; height: 18px; }
.plus-cta { display: block; text-align: center; padding: 16px 20px; border-radius: 16px; background: linear-gradient(180deg, #f3c95a, var(--gold)); color: var(--gold-deep); font-weight: 800; font-size: 1.1rem; text-decoration: none; box-shadow: 0 6px 0 #b98a1f, 0 10px 24px rgba(231,180,60,.35); }
.plus-cta:hover { filter: brightness(1.05); }
.plus-cta:active { transform: translateY(3px); box-shadow: 0 3px 0 #b98a1f; }
.plus-fine { margin: 0; font-size: .82rem; line-height: 1.5; color: rgba(255,246,223,.65); }
.plus-fine a { color: var(--gold); }
.plus-free { max-width: 760px; margin: 28px auto 0; padding: clamp(18px, 3vw, 28px); border-radius: 24px; background: var(--surface); border: 1px solid color-mix(in srgb, var(--text) 10%, transparent); }
.plus-free h3 { margin: 0 0 12px; font-family: var(--font-display); }
.plus-free-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; }
.plus-free-list li { display: flex; gap: 8px; align-items: flex-start; color: var(--muted); }
.plus-free-list svg { flex: none; width: 18px; height: 18px; margin-top: 3px; color: var(--brand); }
@media (max-width: 560px) {
  .plus-benefits, .plus-free-list { grid-template-columns: 1fr; }
  .plus-plans { gap: 10px; }
  .plus-plan { padding: 20px 12px 14px; }
  .plus-badge { font-size: .7rem; left: 10px; }
}

/* The top menu: four links and one clear "Get the app" button (16 Oct 2026). */
.site-nav a.nav-cta { background: var(--brand); color: #fff; border-radius: 999px; padding: 8px 16px; font-weight: 700; white-space: nowrap; }
.site-nav a.nav-cta:hover { filter: brightness(1.08); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .site-nav a.nav-cta { color: #06140d; } }

/* ---------- v44 visual pass (FinnSana page only): calmer rhythm, shorter mobile page ---------- */
/* hero: smaller headline, narrower lead, compact chips */
.finnsana-page .hero h1 { font-size: clamp(2.35rem, 1.45rem + 3.4vw, 4.1rem); line-height: 1.02; }
.finnsana-page .hero .lead { font-size: clamp(1.05rem, 1rem + .35vw, 1.25rem); line-height: 1.55; max-width: 33rem; margin-bottom: var(--s-5); }
.finnsana-page .hero .chips { margin-bottom: var(--s-5); }
.finnsana-page .store-line { margin-top: var(--s-4); }
@media (max-width: 30rem) {
  .finnsana-page .app-title { margin-bottom: var(--s-4); }
  .finnsana-page .app-title img { width: 60px; height: 60px; border-radius: 16px; }
  .finnsana-page .hero-kicker { font-size: .7rem; letter-spacing: .04em; }
  .finnsana-page .hero .chips { gap: .4rem; }
  .finnsana-page .hero .chips li { padding: .25rem .7rem; font-size: .8125rem; }
  .finnsana-page .hero .btn-row .btn--primary { flex: 1 1 100%; }
  .finnsana-page .hero .text-link { min-height: 2.75rem; margin-left: 0; }
}

/* stats band: tighter tiles on phones */
.finnsana-page .stats .tile p { font-size: .9375rem; }
@media (max-width: 30rem) {
  .finnsana-page .stats .tile { padding: var(--s-3) var(--s-4) var(--s-4); }
  .finnsana-page .stats .tile h3 { font-size: 1.05rem; margin-bottom: .25rem; }
  .finnsana-page .stats .tile p { font-size: .85rem; line-height: 1.45; }
}

/* learning path: no tall empty cards */
.finnsana-page .launch-story { padding-top: clamp(3.5rem, 6vw, 5.5rem); }
.finnsana-page .journey-card { min-height: 0; }
.finnsana-page .journey-card::after { background: color-mix(in srgb, var(--brand-bright) 12%, transparent); }
.finnsana-page .journey-card > span { margin-bottom: var(--s-3); }
.finnsana-page .journey-card h3 { font-size: 1.2rem; }
.finnsana-page .journey-card p { font-size: 1rem; line-height: 1.5; }
@media (max-width: 36rem) {
  .finnsana-page .launch-story-grid { gap: var(--s-5); }
  .finnsana-page .launch-story .section-head { margin-bottom: 0; }
  .finnsana-page .journey-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-3); }
  .finnsana-page .journey-card { padding: var(--s-4); }
  .finnsana-page .journey-card > span { width: 1.9rem; height: 1.9rem; font-size: .9rem; }
  .finnsana-page .journey-card h3 { font-size: 1.05rem; margin-bottom: .2rem; }
  .finnsana-page .journey-card p { font-size: .875rem; line-height: 1.45; }
}

/* feature rows: one steady rhythm, smaller phones, shorter lines */
.finnsana-page .feature + .feature { margin-top: clamp(3.5rem, 2rem + 4.5vw, 6rem); }
.finnsana-page .feature h2 { font-size: clamp(1.75rem, 1.35rem + 1.6vw, 2.6rem); }
.finnsana-page .feature .lead { font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); line-height: 1.55; }
.finnsana-page .feature .checklist { max-width: 34rem; }
.finnsana-page .feature .checklist li { font-size: 1rem; line-height: 1.5; margin-bottom: .6rem; }
.finnsana-page .feature .checklist li::before { top: .08em; }
.finnsana-page .feature > div > p:last-child:not(.lead) { margin: var(--s-4) 0 0; font-size: .9375rem; }
.finnsana-page .feature-media { min-height: 26rem; }
.finnsana-page .feature-media .phone { width: min(15rem, 70vw); }
@media (min-width: 56rem) { .finnsana-page .feature { gap: var(--s-8); } }
@media (max-width: 55.99rem) {
  .finnsana-page .feature { gap: var(--s-4); }
  .finnsana-page .feature-media { min-height: 0; padding-block: var(--s-2); }
  .finnsana-page .feature-media .phone { width: min(11.5rem, 52vw); padding: 5px; border-radius: 1.8rem; }
  .finnsana-page .feature-media .phone-screen { border-radius: 1.45rem; }
  .finnsana-page .feature-media::before { width: min(18rem, 80%); }
  .finnsana-page .feature-media::after { width: min(15rem, 66%); }
  .finnsana-page .feature .checklist { margin-top: var(--s-4); }
  .finnsana-page .feature .checklist li { font-size: .95rem; }
}

/* games: phones swipe through each list instead of 24 stacked cards */
.finnsana-page .game-guide-lead { font-size: 1rem; }
.finnsana-page .game-card { padding: var(--s-4); align-items: flex-start; }
.finnsana-page .game-text p { font-size: .9rem; }
@media (max-width: 47.99rem) {
  .finnsana-page .swipe-hint--games { justify-content: flex-start; margin: var(--s-4) 0 0; }
  .finnsana-page .game-guide {
    display: flex; gap: var(--s-3); margin: var(--s-2) calc(-1 * var(--s-4)) 0;
    padding: var(--s-2) var(--s-4) var(--s-4);
    overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scroll-padding-inline: var(--s-4);
  }
  .finnsana-page .game-card { flex: 0 0 84%; scroll-snap-align: start; }
  .finnsana-page .game-card { gap: var(--s-3); padding: var(--s-3); }
  .finnsana-page .game-card .phone { flex-basis: 5.25rem; width: 5.25rem; }
  .finnsana-page .game-guide:focus-visible { outline-offset: -3px; }
  .finnsana-page .game-topics { gap: .4rem; }
  .finnsana-page .game-topics li { font-size: .8125rem; padding: .35rem .65rem; }
}

/* tiles and panels share one card style */
.finnsana-page .tile h3 { font-size: 1.15rem; }
.finnsana-page .tile p { font-size: .9375rem; line-height: 1.5; }
.finnsana-page .plus-free { border-radius: var(--radius-lg); border: 1px solid var(--border); }
.finnsana-page .plus-free h3 { font-size: 1.15rem; }
.finnsana-page .plus-free-list li { font-size: .9375rem; line-height: 1.5; }

/* free learning resources: a tidy card grid instead of a wall of links */
.finnsana-page #learning-resources .section-head { margin-bottom: var(--s-6); }
.finnsana-page .resources-links { margin: var(--s-4) 0 var(--s-2); font-size: var(--fs-sm); font-weight: 600; }
.finnsana-page .resources-note { margin: 0; font-size: var(--fs-sm); color: var(--muted); }
.finnsana-page .related-grid { display: grid; gap: var(--s-3); grid-template-columns: 1fr; }
@media (min-width: 40rem) { .finnsana-page .related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .finnsana-page .related-card:last-child:nth-child(odd) { grid-column: 1 / -1; } }
@media (min-width: 64rem) {
  .finnsana-page .related-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .finnsana-page .related-card:last-child:nth-child(odd) { grid-column: auto; }
  .finnsana-page .related-card:last-child:nth-child(3n+2) { grid-column: span 2; }
}
.finnsana-page .related-card {
  display: flex; flex-direction: column; gap: .35rem; padding: var(--s-4) var(--s-5);
  border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border);
  color: var(--text); text-decoration: none;
  transition: transform .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.finnsana-page .related-card strong { font-family: var(--font-display); font-size: 1.05rem; line-height: 1.25; letter-spacing: -.01em; color: var(--text); }
.finnsana-page .related-card p { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.5; }
.finnsana-page .related-card:hover { color: var(--text); border-color: color-mix(in srgb, var(--brand) 45%, var(--border)); box-shadow: var(--shadow-md); }
.finnsana-page .related-card:hover strong { color: var(--brand); }
@media (hover: hover) and (pointer: fine) { .finnsana-page .related-card:hover { transform: translateY(-3px); } }

/* FAQ: slightly smaller questions so long ones stay on one or two lines */
.finnsana-page .faq summary { font-size: clamp(1.02rem, .98rem + .3vw, 1.2rem); min-height: 3.5rem; }
