/* Linkkisivu (kortti #5485). Tyyli kopioitu Molecular Recoveryn lähdekoodista, ei linkitetty:
   ~/peptide-demo-cf/src/styles/global.css (main @ 33aee6a, 21.10.2026), :root-paletti ja .btn-tyyli.
   Sampletut arvot (vaalea / tumma):
     --bg       #f3f8f7 / #0a1615   sivun tausta
     --surface  #ffffff / #10201f   nappien tausta (toissijainen)
     --text     #0b2b2a / #e6f4f1   teksti
     --muted    #4b6866 / #94b5b0   aputeksti
     --border   #cfe0dd / #234240   reunat
     --accent   #0f766e / #5eead4   pääväri (teal), päänapin tausta
     --accent-strong #115e59 / #99f6e4  hover
     --accent-ink #ffffff / #052321  teksti päänapin päällä
     --accent-soft #d9f2ee / #123532 kuvakkeen tausta
     --hero-from #e0f4f0 / #0f2b29  yläosan liukuväri (MR:n hero)
     #14b8a6 / #2dd4bf               toinen pistesävy (MR:n logo.svg .node2)
   Fontit: IBM Plex Sans 400/600 + IBM Plex Serif 500 (MR käyttää samoja @fontsource 5.3.0 -paketteja),
   latin-osajoukon woff2:t fonts/-kansiossa omalta palvelimelta, lisenssi OFL 1.1 (fonts/OFL-LICENSE.txt).
   Varafontit samoin kuin MR:ssä: metrisovitettu Arial/Georgia, sitten system-ui.
   Nappityyli MR:n .btn: täytetty teal, valkoinen teksti, pyöristys 10px, font-weight 500-600. */

@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('fonts/ibm-plex-sans-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('fonts/ibm-plex-sans-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Serif'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('fonts/ibm-plex-serif-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Plex Sans Fallback'; src: local('Arial'), local('ArialMT'), local('Liberation Sans'); size-adjust: 101.1%; }
@font-face { font-family: 'Plex Serif Fallback'; src: local('Georgia'); size-adjust: 108.2%; }

:root {
  --bg: #f3f8f7;
  --surface: #ffffff;
  --text: #0b2b2a;
  --muted: #4b6866;
  --border: #cfe0dd;
  --accent: #0f766e;
  --accent-strong: #115e59;
  --accent-ink: #ffffff;
  --accent-soft: #d9f2ee;
  --dot-2: #14b8a6;
  --hero-from: #e0f4f0;
  --shadow: 0 1px 2px rgba(11, 43, 42, 0.06), 0 6px 20px rgba(11, 43, 42, 0.06);
  --font: 'IBM Plex Sans', 'Plex Sans Fallback', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-serif: 'IBM Plex Serif', 'Plex Serif Fallback', Georgia, serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a1615;
    --surface: #10201f;
    --text: #e6f4f1;
    --muted: #94b5b0;
    --border: #234240;
    --accent: #5eead4;
    --accent-strong: #99f6e4;
    --accent-ink: #052321;
    --accent-soft: #123532;
    --dot-2: #2dd4bf;
    --hero-from: #0f2b29;
    --shadow: none;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  background: linear-gradient(180deg, var(--hero-from) 0%, var(--bg) 55%) no-repeat, var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.page {
  max-width: 480px;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0 auto;
  padding: max(40px, env(safe-area-inset-top)) 16px max(24px, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
}

.brand { text-align: center; margin-bottom: 28px; }
.brand-mark { display: block; margin: 0 auto 10px; }
.brand-mark .dot-a { fill: var(--accent); }
.brand-mark .dot-b { fill: var(--dot-2); }
.wordmark { margin: 0; line-height: 1.1; }
.wm-top { display: block; font-family: var(--font-serif); font-weight: 500; font-size: 2rem; letter-spacing: -0.01em; }
.wm-sub { display: block; margin-top: 6px; font-family: var(--font); font-weight: 600; font-size: 0.82rem;
  letter-spacing: 0.28em; text-transform: uppercase; color: var(--muted); }
.tagline { margin: 14px 0 0; color: var(--muted); font-size: 1rem; }

.links { display: flex; flex-direction: column; gap: 14px; }
.link-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 72px;
  padding: 12px 18px;
  border-radius: 10px;
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}
.link-btn:active { transform: scale(0.99); }
.link-btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.link-btn.primary { background: var(--accent); color: var(--accent-ink); border: 1px solid var(--accent); }
.link-btn.primary:hover { background: var(--accent-strong); border-color: var(--accent-strong); }
.link-btn.secondary { background: var(--surface); color: var(--text); border: 1px solid var(--border); }
.link-btn.secondary:hover { border-color: var(--accent); }

.ico { flex: 0 0 auto; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 999px; }
.primary .ico { background: rgba(255, 255, 255, 0.16); color: var(--accent-ink); }
.secondary .ico { background: var(--accent-soft); color: var(--accent); }

.txt { display: flex; flex-direction: column; min-width: 0; }
.label { font-weight: 600; font-size: 1.08rem; line-height: 1.3; }
.sub { font-size: 0.9rem; line-height: 1.35; opacity: 0.85; }
.secondary .sub { color: var(--muted); opacity: 1; }
.soon { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; font-size: 0.72rem;
  font-weight: 600; vertical-align: 2px; background: var(--accent-soft); color: var(--accent); }

.foot { margin-top: auto; padding-top: 40px; text-align: center; color: var(--muted); font-size: 0.85rem; }
.foot p { margin: 0; }
.foot .publisher { margin-top: 8px; }

/* Telegram-kortti ennen kanavan avaamista: ei linkki, ei hover- tai painallusefektiä. */
.link-btn.is-soon { cursor: default; box-shadow: none; }
.link-btn.is-soon:hover { border-color: var(--border); }
.link-btn.is-soon:active { transform: none; }
.age { display: inline-block; margin-right: 6px; padding: 0 7px; border: 1px solid var(--border); border-radius: 6px;
  font-weight: 600; color: var(--text); }

@media (prefers-reduced-motion: reduce) { .link-btn { transition: none; } .link-btn:active { transform: none; } }

/* Kielivalinta (25.10.) */
.lang-switch { position: absolute; top: 14px; right: 16px; font-size: 0.85rem; font-weight: 600; color: var(--muted); text-decoration: none; border: 1px solid var(--border); border-radius: 999px; padding: 4px 10px; }
.lang-switch:hover { border-color: var(--accent); color: var(--text); }
.page { position: relative; }
