/* ===========================================================
   KRYPTOLUOTSI.COM — jaettu design-systeemi
   Tumma "holvi/ledger"-estetiikka. Ks. brief osio 3.
   =========================================================== */

:root{
  --ink:#08090D;
  --ink-raised:#111319;
  --ink-raised-2:#171A22;
  --steel:#262B35;
  --steel-soft:rgba(255,255,255,0.05);
  --text-hi:#F1F2F4;
  --text-mid:#9BA3B0;
  --text-low:#5C636F;
  --gold:#E5A93C;
  --gold-bright:#F5C46B;
  --btc:#F2A93B;
  --eth:#8FA0FF;
  --sol-a:#9945FF;
  --sol-b:#14F195;
  --teal:#3FD9C4;
  --positive:#3FBE83;
  --negative:#E0685F;
  --max:1220px;
  --radius-lg:20px;
  --radius-md:14px;
  --radius-sm:10px;
  --shadow-soft:0 24px 48px -28px rgba(0,0,0,0.55);
  --shadow-lift:0 30px 70px -30px rgba(0,0,0,0.65);
}
:root[data-theme="light"]{
  --ink:#F7F5F0;
  --ink-raised:#FFFFFF;
  --ink-raised-2:#F1EDE3;
  --steel:#E1DACB;
  --steel-soft:rgba(20,17,10,0.06);
  --text-hi:#161611;
  --text-mid:#5B5748;
  --text-low:#8A8574;
  --gold:#B8791E;
  --gold-bright:#92600F;
  --positive:#1C8F5C;
  --negative:#C43A2E;
  --shadow-soft:0 20px 40px -28px rgba(20,17,10,0.18);
  --shadow-lift:0 26px 60px -30px rgba(20,17,10,0.24);
}
:root[data-theme="light"] .hero-glow, :root[data-theme="light"] .page-hero-glow{opacity:.5;}
:root[data-theme="light"] .icon-btn{background:var(--ink-raised);}
:root[data-theme="light"] ::selection{background:var(--gold); color:#fff;}
*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{margin:0; background:var(--ink); color:var(--text-hi); font-family:'Figtree',sans-serif; font-size:16px; line-height:1.55; -webkit-font-smoothing:antialiased;}
h1,h2,h3,h4,.display{font-family:'Plus Jakarta Sans',sans-serif; font-weight:700; margin:0; letter-spacing:-0.01em;}
p{margin:0;}
.mono{font-family:'IBM Plex Mono',monospace;}
a{color:inherit; text-decoration:none;}
.wrap{max-width:var(--max); margin:0 auto; padding:0 32px;}
@media (max-width:760px){ .wrap{padding:0 18px;} }
::selection{background:var(--gold); color:var(--ink);}
svg{display:block;}
img{max-width:100%; display:block;}
.icon-stroke{stroke:currentColor; stroke-width:1.7; fill:none; stroke-linecap:round; stroke-linejoin:round;}

/* ===== utility ===== */
.eyebrow{font-size:12.5px; color:var(--gold-bright); font-weight:600; letter-spacing:.03em; text-transform:uppercase; margin-bottom:10px; display:flex; align-items:center; gap:8px;}
.section{padding:64px 0;}
.section-alt{background:var(--ink-raised); border-top:1px solid var(--steel); border-bottom:1px solid var(--steel);}
.section-head{max-width:640px; margin-bottom:36px;}
.section-head h2{font-size:clamp(24px,3.2vw,34px); line-height:1.15;}
.section-head p{margin-top:14px; font-size:15.5px; color:var(--text-mid); max-width:58ch; line-height:1.6;}
.section-title-row{display:flex; align-items:baseline; justify-content:space-between; gap:16px; margin-bottom:28px; flex-wrap:wrap;}
.section-title-row h2{font-size:20px; display:flex; align-items:center; gap:8px;}
.see-all{font-size:13px; color:var(--gold-bright); font-weight:600; white-space:nowrap;}
.divider{border:none; border-top:1px dashed var(--steel); margin:0;}
.btn-primary{background:var(--gold); color:#1A1204; padding:14px 24px; font-weight:600; font-size:14.5px; border-radius:var(--radius-sm); display:inline-flex; align-items:center; gap:8px; border:none; cursor:pointer; font-family:inherit;}
.btn-primary:hover{background:var(--gold-bright);}
.btn-ghost{padding:13px 20px; font-weight:600; font-size:14.5px; color:var(--text-hi); background:transparent; border:1px solid var(--steel); border-radius:var(--radius-sm); display:inline-flex; align-items:center; gap:8px; font-family:inherit; cursor:pointer;}
.btn-ghost:hover{border-color:var(--gold); color:var(--gold-bright);}
button.btn-primary, button.btn-ghost, button.btn-small{-webkit-appearance:none; appearance:none;}
.btn-small{font-size:12.5px; font-weight:600; padding:9px 16px; border-radius:5px; background:var(--gold); color:var(--ink); display:inline-block;}
.btn-small:hover{background:var(--gold-bright);}
.tag-pill{font-size:11px; color:var(--text-mid); border:1px solid var(--steel); padding:4px 11px; border-radius:20px; white-space:nowrap;}
.card{background:var(--ink-raised); border:1px solid var(--steel); border-radius:var(--radius-lg); box-shadow:var(--shadow-soft);}
.risk-note{font-size:11.5px; color:var(--text-low); max-width:680px; line-height:1.65;}
.breadcrumb{font-size:12.5px; color:var(--text-low); display:flex; gap:6px; align-items:center; margin-bottom:22px; flex-wrap:wrap;}
.breadcrumb a:hover{color:var(--gold-bright);}
.breadcrumb .sep{color:var(--steel);}

/* external / internal link styling per content rules */
.src-link{font-size:12px; color:var(--gold-bright); font-weight:600; text-decoration:underline; text-underline-offset:2px;}
.src-note{display:inline-flex; align-items:center; gap:5px; font-style:italic; font-size:11.5px; color:var(--text-low); border:1px solid var(--steel); border-radius:4px; padding:2px 8px; margin-left:2px;}
.internal-link{color:var(--gold-bright); font-weight:600; text-decoration:underline; text-decoration-color:rgba(245,196,107,0.35); text-underline-offset:2px;}
.internal-link:hover{text-decoration-color:var(--gold-bright);}

/* info block for "genuine tests" */
.info-block{background:var(--ink-raised-2); border:1px solid var(--steel); border-left:3px solid var(--teal); border-radius:8px; margin:20px 0; overflow:hidden;}
.info-block summary{cursor:pointer; list-style:none; padding:14px 18px; display:flex; align-items:center; gap:10px; font-size:13.5px; font-weight:600; color:var(--text-hi);}
.info-block summary::-webkit-details-marker{display:none;}
.info-block summary::before{content:"▸"; color:var(--teal); transition:transform .15s;}
.info-block[open] summary::before{transform:rotate(90deg);}
.info-block .body{padding:0 18px 18px; font-size:13.5px; color:var(--text-mid); line-height:1.65;}
.info-block .body table{margin-top:10px;}

/* wide banner image inside article body (mascot / scene photography) */
.article-banner-img{margin:32px 0; border-radius:var(--radius-lg); overflow:hidden; aspect-ratio:16/9; background-size:cover; background-position:left bottom; border:1px solid var(--steel); box-shadow:var(--shadow-soft);}
.article-banner-img.is-tall{aspect-ratio:4/3;}
.article-banner-cap{font-size:11px; color:var(--text-low); text-align:center; margin-top:-24px; margin-bottom:24px;}

/* branded, illustrated per-exchange CTA banner (art has logo/tagline/CTA baked in) */
.exchange-banner{display:block; margin:28px 0; border-radius:var(--radius-lg); overflow:hidden; border:1px solid var(--steel); box-shadow:var(--shadow-soft); transition:transform .15s, box-shadow .15s;}
.exchange-banner img{display:block; width:100%; height:auto;}
.exchange-banner:hover{transform:translateY(-2px); box-shadow:var(--shadow-lift);}

/* data tables (replace long bullet lists) */
.data-table{width:100%; border-collapse:collapse; font-size:13.5px;}
.data-table th{text-align:left; font-size:11.5px; color:var(--text-low); font-weight:500; padding:0 14px 12px; border-bottom:1px solid var(--steel); text-transform:uppercase; letter-spacing:.02em;}
.data-table td{padding:12px 14px; border-bottom:1px solid var(--steel-soft); color:var(--text-mid);}
.data-table td:first-child{color:var(--text-hi); font-weight:500;}
.data-table th.num, .data-table td.num{text-align:right; font-family:'IBM Plex Mono',monospace;}

/* ===== NAV ===== */
header.site-nav{position:sticky; top:0; z-index:60; background:rgba(8,9,13,0.9); backdrop-filter:blur(10px); border-bottom:1px solid var(--steel);}
.nav-inner{max-width:var(--max); margin:0 auto; padding:16px 32px; display:flex; align-items:center; justify-content:space-between; gap:20px;}
.brand{display:flex; align-items:center; gap:9px; font-family:'Plus Jakarta Sans',sans-serif; font-size:18px; font-weight:700; letter-spacing:.01em; white-space:nowrap;}
.brand .anchor{color:var(--gold);}
.brand img.logo-mark{height:34px; width:auto; display:block;}
.brand img.logo-wordmark{height:44px; width:auto; display:block;}
footer .brand img.logo-mark{height:30px;}
.nav-inner .brand{padding:4px 0;}
nav.links{display:flex; gap:22px; font-size:13.5px; font-weight:500; color:var(--text-mid); align-items:center;}
nav.links > .nav-item{position:relative;}
nav.links a.top-link{display:flex; align-items:center; gap:6px; white-space:nowrap; padding:8px 0;}
nav.links a.top-link:hover{color:var(--text-hi);}
nav.links a.active{color:var(--gold-bright);}
.nav-right{display:flex; align-items:center; gap:12px; flex:none;}
.icon-btn{width:34px; height:34px; border-radius:7px; border:1px solid var(--steel); display:flex; align-items:center; justify-content:center; background:var(--ink-raised); cursor:pointer;}
.nav-dropdown{position:absolute; top:100%; left:-14px; margin-top:10px; background:var(--ink-raised); border:1px solid var(--steel); border-radius:var(--radius-md); padding:10px; min-width:230px; box-shadow:var(--shadow-lift); opacity:0; visibility:hidden; transform:translateY(6px) scale(.98); transition:opacity .18s, transform .18s, visibility .18s;}
.nav-item:hover .nav-dropdown{opacity:1; visibility:visible; transform:translateY(0) scale(1);}
.nav-dropdown a{display:block; padding:10px 13px; border-radius:9px; font-size:13px; color:var(--text-mid); transition:background .12s, color .12s;}
.nav-dropdown a:hover{background:var(--ink-raised-2); color:var(--gold-bright);}
@media (max-width:1080px){ nav.links{display:none;} }
.mobile-nav{display:none; background:var(--ink-raised); border-bottom:1px solid var(--steel); padding:14px 18px;}
.mobile-nav.open{display:block;}
.mobile-nav a{display:block; padding:10px 0; font-size:14px; color:var(--text-mid); border-bottom:1px solid var(--steel-soft);}

/* ===== HERO (subpages, smaller than home) ===== */
.page-hero{position:relative; padding:52px 0 44px; overflow:hidden; border-bottom:1px solid var(--steel);}
.page-hero-glow{position:absolute; top:-220px; right:-120px; width:560px; height:560px; border-radius:50%; background:radial-gradient(circle, rgba(229,169,60,0.13), transparent 70%); pointer-events:none;}
.page-hero h1{font-size:clamp(28px,3.6vw,42px); line-height:1.1; max-width:22ch; position:relative;}
.page-hero p.lede{margin-top:16px; font-size:15.5px; color:var(--text-mid); max-width:60ch; line-height:1.6; position:relative;}
.page-kicker{display:inline-flex; align-items:center; gap:8px; font-size:12px; color:var(--gold-bright); font-weight:600; margin-bottom:14px; position:relative;}
.page-kicker .dot{width:6px; height:6px; border-radius:50%; background:var(--positive);}

/* ===== home hero ===== */
.hero{position:relative; padding:76px 0 70px; overflow:hidden;}
.hero-glow{position:absolute; top:-260px; left:50%; transform:translateX(-30%); width:820px; height:820px; border-radius:50%;
  background:radial-gradient(circle, rgba(229,169,60,0.14), rgba(229,169,60,0.03) 45%, transparent 70%); pointer-events:none;}
.hero-grid-bg{position:absolute; inset:0; opacity:0.35; pointer-events:none;
  background-image:linear-gradient(var(--steel-soft) 1px, transparent 1px), linear-gradient(90deg, var(--steel-soft) 1px, transparent 1px);
  background-size:42px 42px; mask-image:linear-gradient(180deg, black, transparent 75%);}
.hero-grid{position:relative; display:grid; grid-template-columns:1.05fr 1fr; gap:48px; align-items:start;}
@media (max-width:980px){ .hero-grid{grid-template-columns:1fr;} }
.badge{display:inline-flex; align-items:center; gap:8px; background:var(--ink-raised); border:1px solid var(--steel); padding:7px 14px; border-radius:20px; font-size:12.5px; color:var(--text-mid); margin-bottom:26px;}
.badge .dot{width:6px; height:6px; border-radius:50%; background:var(--positive);}
.hero h1{font-size:clamp(34px,4.6vw,52px); line-height:1.08; max-width:13ch;}
.hero h1 .accent{color:var(--gold-bright);}
.hero p.lede{margin-top:20px; font-size:16.5px; color:var(--text-mid); max-width:42ch; line-height:1.6;}
.hero-ctas{margin-top:28px; display:flex; gap:14px; flex-wrap:wrap;}

/* ranked coin list */
.rank-panel{background:var(--ink-raised); border:1px solid var(--steel); border-radius:var(--radius-lg); padding:10px; box-shadow:var(--shadow-lift);}
.rank-row{display:flex; align-items:center; gap:16px; padding:16px 14px; border-radius:var(--radius-md); transition:background .15s, transform .15s;}
.rank-row:hover{background:var(--ink-raised-2); transform:translateX(2px);}
.rank-num{font-family:'Space Grotesk',sans-serif; font-size:15px; color:var(--text-low); width:16px; flex:none;}
.coin-icon{width:38px; height:38px; border-radius:50%; flex:none; display:flex; align-items:center; justify-content:center;}
.coin-id{min-width:120px;}
.coin-id .name{font-size:14.5px; font-weight:500;}
.coin-id .sym{font-size:11.5px; color:var(--text-low); margin-left:5px;}
.coin-price{font-family:'IBM Plex Mono',monospace; font-size:14px; color:var(--text-hi); margin-top:2px;}
.spark{flex:1; min-width:70px;}
.rank-right{flex:none; text-align:right; min-width:110px;}
.chg-pill{display:inline-flex; align-items:center; gap:4px; font-family:'IBM Plex Mono',monospace; font-size:12px; font-weight:500; padding:3px 8px; border-radius:5px;}
.chg-pill.up{color:var(--positive); background:rgba(63,190,131,0.12);}
.chg-pill.down{color:var(--negative); background:rgba(224,104,95,0.12);}
.mcap{font-size:11px; color:var(--text-low); margin-top:6px;}
.rank-divider{border:none; border-top:1px solid var(--steel-soft); margin:0 6px;}
.show-more{display:block; text-align:center; padding:14px; margin-top:8px; border-radius:10px; border:1px solid var(--steel); font-size:13.5px; color:var(--text-mid); font-weight:500;}
.show-more:hover{color:var(--gold-bright); border-color:var(--gold);}

/* ===== TRUST STRIP ===== */
.trust-strip{border-top:1px solid var(--steel); border-bottom:1px solid var(--steel); background:var(--ink-raised);}
.trust-inner{display:grid; grid-template-columns:repeat(4,1fr); padding:34px 0;}
@media (max-width:760px){ .trust-inner{grid-template-columns:1fr 1fr; gap:24px;} }
.trust-item{text-align:center; border-right:1px solid var(--steel);}
.trust-item:last-child{border-right:none;}
.trust-item .n{font-family:'Space Grotesk',sans-serif; font-size:26px; font-weight:700; color:var(--gold-bright);}
.trust-item .l{font-size:12px; color:var(--text-mid); margin-top:4px;}

/* ===== NEWS ===== */
.news-grid{display:grid; grid-template-columns:repeat(4,1fr); gap:20px;}
@media (max-width:980px){ .news-grid{grid-template-columns:repeat(2,1fr);} }
@media (max-width:560px){ .news-grid{grid-template-columns:1fr;} }
.news-card{background:var(--ink-raised); border:1px solid var(--steel); border-radius:var(--radius-lg); overflow:hidden; box-shadow:var(--shadow-soft); transition:transform .18s, box-shadow .18s;}
.news-card:hover{transform:translateY(-3px); box-shadow:var(--shadow-lift);}
.news-thumb{height:120px; position:relative;}
.news-body{padding:16px 18px 18px;}
.news-body h4{font-size:14.5px; line-height:1.4; font-weight:500;}
.news-meta{display:flex; align-items:center; gap:6px; font-size:11.5px; color:var(--text-low); margin-top:10px;}
.news-link{font-size:12.5px; color:var(--gold-bright); font-weight:600; margin-top:10px; display:inline-flex; align-items:center; gap:4px;}
.news-row{display:grid; grid-template-columns:2fr 1fr 1fr; gap:20px;}
@media (max-width:860px){ .news-row{grid-template-columns:1fr;} }
.news-feature{background:var(--ink-raised); border:1px solid var(--steel); border-radius:12px; padding:28px;}
.news-feature h3{font-size:22px; margin-top:10px; max-width:24ch;}
.news-feature p{color:var(--text-mid); font-size:14px; margin-top:12px;}
.news-mini{background:var(--ink-raised); border:1px solid var(--steel); border-radius:12px; padding:20px;}
.news-mini h5{font-size:14.5px; margin-top:8px; line-height:1.35;}
.news-mini .date{font-size:11px; color:var(--text-low); margin-top:10px;}

/* ===== TOOLS ===== */
.tool-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:22px;}
@media (max-width:900px){ .tool-grid{grid-template-columns:1fr;} }
.tool-card{background:var(--ink-raised); border:1px solid var(--steel); border-radius:var(--radius-lg); padding:28px; position:relative; box-shadow:var(--shadow-soft); transition:transform .18s, box-shadow .18s;}
.tool-card:hover{transform:translateY(-3px); box-shadow:var(--shadow-lift);}
.tool-icon{width:38px; height:38px; border-radius:8px; background:var(--ink-raised-2); border:1px solid var(--steel); display:flex; align-items:center; justify-content:center; margin-bottom:18px; color:var(--gold-bright);}
.tool-card h3{font-size:18px;}
.tool-card p{color:var(--text-mid); font-size:13.5px; margin-top:10px; line-height:1.55;}
.tool-demo{margin-top:18px; background:var(--ink); border:1px solid var(--steel); border-radius:5px; padding:14px 16px;}
.tool-demo .row{display:flex; justify-content:space-between; font-size:12.5px; padding:6px 0; border-bottom:1px dashed var(--steel);}
.tool-demo .row:last-child{border-bottom:none;}
.tool-demo .row span:first-child{color:var(--text-mid);}
.tool-demo .row span:last-child{font-family:'IBM Plex Mono',monospace; color:var(--text-hi);}
.tool-cta{margin-top:16px; font-size:13px; font-weight:600; color:var(--gold-bright); display:inline-block; border-bottom:1px solid var(--gold);}

/* calculator (real, interactive) */
.calc-shell{display:grid; grid-template-columns:1fr 1fr; gap:0; border:1px solid var(--steel); border-radius:var(--radius-lg); overflow:hidden; background:var(--ink-raised);}
@media (max-width:800px){ .calc-shell{grid-template-columns:1fr;} }
.calc-inputs{padding:32px; border-right:1px solid var(--steel);}
@media (max-width:800px){ .calc-inputs{border-right:none; border-bottom:1px solid var(--steel);} }
.calc-field{margin-bottom:20px;}
.calc-field label{display:block; font-size:12.5px; color:var(--text-mid); margin-bottom:8px; font-weight:500;}
.calc-field input, .calc-field select{width:100%; background:var(--ink); border:1px solid var(--steel); color:var(--text-hi); padding:12px 14px; border-radius:6px; font-family:'IBM Plex Mono',monospace; font-size:14.5px;}
.calc-field input:focus, .calc-field select:focus{outline:none; border-color:var(--gold);}
.calc-hint{font-size:11.5px; color:var(--text-low); margin-top:6px; line-height:1.5;}
.calc-results{padding:32px; background:var(--ink-raised-2); display:flex; flex-direction:column; justify-content:center;}
.calc-result-row{display:flex; justify-content:space-between; align-items:baseline; padding:14px 0; border-bottom:1px solid var(--steel-soft);}
.calc-result-row:last-child{border-bottom:none;}
.calc-result-row .l{font-size:13px; color:var(--text-mid);}
.calc-result-row .v{font-family:'IBM Plex Mono',monospace; font-size:19px; color:var(--text-hi); font-weight:500;}
.calc-result-row .v.hi{color:var(--gold-bright); font-size:26px;}
.calc-result-row .v.pos{color:var(--positive);}
.calc-result-row .v.neg{color:var(--negative);}

/* ----- laskuri v2: Laske-napilla paljastuva tulos ----- */
.calc-actions{display:flex; gap:10px; margin-top:6px;}
.calc-actions .btn-primary{flex:1; justify-content:center;}
.calc-placeholder{display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; gap:8px; color:var(--text-low); font-size:13px; padding:20px;}
.calc-placeholder .ic{font-size:26px; opacity:.6;}
.calc-headline{background:linear-gradient(135deg, rgba(229,169,60,0.14), rgba(229,169,60,0.02)); border:1px solid rgba(229,169,60,0.35); border-radius:var(--radius-md); padding:18px 20px; margin-bottom:6px;}
.calc-headline .l{font-size:11px; text-transform:uppercase; letter-spacing:.04em; color:var(--gold-bright); font-weight:700;}
.calc-headline .v{font-family:'IBM Plex Mono',monospace; font-size:32px; color:var(--text-hi); font-weight:600; margin-top:6px;}
.calc-check-row{display:flex; align-items:flex-start; gap:10px; padding:11px 0; border-bottom:1px solid var(--steel-soft);}
.calc-check-row:last-child{border-bottom:none;}
.calc-check-row .chk{width:18px; height:18px; border-radius:50%; background:rgba(63,190,131,0.15); color:var(--positive); flex:none; display:flex; align-items:center; justify-content:center; font-size:11px; margin-top:1px;}
.calc-check-row .body{flex:1;}
.calc-check-row .body .l{font-size:13px; color:var(--text-hi); font-weight:500;}
.calc-check-row .body .d{font-size:11.5px; color:var(--text-low); margin-top:2px;}
.calc-check-row .val{font-family:'IBM Plex Mono',monospace; font-size:14px; color:var(--text-hi); flex:none;}
.calc-results.is-empty .calc-filled{display:none;}
.calc-results:not(.is-empty) .calc-placeholder{display:none;}

/* ===== KURSSIT table ===== */
.coin-table{width:100%; border-collapse:collapse;}
.coin-table th{text-align:left; font-size:12px; color:var(--text-low); font-weight:500; padding:0 16px 14px; border-bottom:1px solid var(--steel);}
.coin-table th.num, .coin-table td.num{text-align:right;}
.coin-table td{padding:16px; border-bottom:1px solid var(--steel-soft); font-size:14px;}
.coin-table tr:hover{background:var(--ink-raised);}
.coin-table tr td:first-child{border-radius:0;}
.coin-row-name{display:flex; align-items:center; gap:12px;}
.coin-table .amt{font-family:'IBM Plex Mono',monospace;}
.coin-badge{width:28px; height:28px; border-radius:50%; flex:none; display:flex; align-items:center; justify-content:center; font-family:'Space Grotesk',sans-serif; font-weight:700; font-size:11.5px; color:var(--ink);}
.table-scroll{overflow-x:auto;}
.filter-bar{display:flex; gap:10px; margin-bottom:20px; flex-wrap:wrap;}
.filter-chip{font-size:13px; padding:8px 14px; border-radius:20px; border:1px solid var(--steel); color:var(--text-mid); cursor:pointer;}
.filter-chip.active{background:var(--gold); color:var(--ink); border-color:var(--gold); font-weight:600;}

/* ===== KAUPPAPAIKAT ===== */
.exchange-grid{display:grid; grid-template-columns:repeat(2,1fr); gap:20px;}
@media (max-width:860px){ .exchange-grid{grid-template-columns:1fr;} }
.exchange-card{background:var(--ink-raised); border:1px solid var(--steel); border-radius:var(--radius-lg); padding:26px; display:flex; gap:20px;}
.exchange-logo{width:52px; height:52px; border-radius:8px; flex:none; display:flex; align-items:center; justify-content:center; font-family:'Space Grotesk',sans-serif; font-weight:700; font-size:15px; color:var(--ink);}
.exchange-body{flex:1;}
.exchange-body h4{font-size:17px;}
.exchange-meta{font-size:12px; color:var(--text-low); margin-top:2px;}
.exchange-tags{display:flex; gap:8px; flex-wrap:wrap; margin-top:12px;}
.exchange-score{display:flex; align-items:center; gap:8px; margin-top:14px;}
.score-bar{flex:1; height:5px; background:var(--steel); border-radius:3px; overflow:hidden;}
.score-fill{height:100%; background:var(--teal);}
.score-val{font-family:'IBM Plex Mono',monospace; font-size:12.5px; color:var(--teal); flex:none;}
.exchange-cta-row{display:flex; gap:10px; margin-top:16px; align-items:center; flex-wrap:wrap;}

/* ----- arvostelusivun hero-banneri ----- */
.review-banner{position:relative; border-radius:var(--radius-lg); overflow:hidden; height:260px; background-size:cover; background-position:center; border:1px solid var(--steel); box-shadow:var(--shadow-lift); display:flex; align-items:center; justify-content:center; text-align:center;}
.review-banner::after{content:""; position:absolute; inset:0; background:linear-gradient(180deg, rgba(8,9,13,0.35), rgba(8,9,13,0.75));}
.review-banner .rb-text{position:relative; z-index:1; color:#fff; font-family:'Plus Jakarta Sans',sans-serif; font-weight:800; font-size:clamp(22px,3.4vw,34px); line-height:1.15; max-width:20ch;}
.review-byline{display:flex; align-items:center; gap:12px; margin-top:18px; margin-bottom:6px;}
.review-byline .av{width:34px; height:34px; border-radius:50%; background:var(--gold); color:var(--ink); display:flex; align-items:center; justify-content:center; font-weight:700; font-size:12px; flex:none;}
.review-byline .txt{font-size:12.5px; color:var(--text-mid);}
.review-byline .txt b{color:var(--text-hi);}
.stars{color:var(--gold-bright); font-size:15px; letter-spacing:2px;}
.benefit-tags{display:flex; flex-wrap:wrap; gap:9px; margin:16px 0;}
.benefit-tag{display:inline-flex; align-items:center; gap:6px; background:rgba(63,190,131,0.1); border:1px solid rgba(63,190,131,0.35); color:var(--positive); font-size:12px; font-weight:600; padding:6px 12px; border-radius:20px;}

/* ----- kirjoittaja + tarkastaja -palkki ----- */
.byline-card{display:flex; align-items:center; gap:28px; background:var(--ink-raised); border:1px solid var(--steel); border-radius:var(--radius-md); padding:14px 22px; flex-wrap:wrap; box-shadow:var(--shadow-soft);}
.byline-person{display:flex; align-items:center; gap:11px;}
.byline-avatar{width:38px; height:38px; border-radius:50%; flex:none; display:flex; align-items:center; justify-content:center; font-family:'Plus Jakarta Sans',sans-serif; font-weight:700; font-size:13px;}
.byline-role{font-size:11px; color:var(--text-mid); font-weight:600;}
.byline-name{font-size:13.5px; color:var(--gold-bright); font-weight:700; display:block; margin-top:1px;}
.byline-name:hover{text-decoration:underline;}
.byline-updated{font-size:12.5px; color:var(--text-mid); margin-left:auto; white-space:nowrap;}
.byline-updated b{color:var(--text-hi);}

/* review page score panel */
.review-score-panel{display:flex; gap:28px; align-items:center; background:var(--ink-raised); border:1px solid var(--steel); border-radius:var(--radius-lg); padding:28px; flex-wrap:wrap;}

/* visuaalinen plussat/miinukset-blokki */
.pros-cons{display:grid; grid-template-columns:1fr 1fr; gap:16px; margin:22px 0;}
@media (max-width:600px){ .pros-cons{grid-template-columns:1fr;} }
.pros-cons .pc-col{border-radius:var(--radius-md); padding:20px 22px; border:1px solid var(--steel);}
.pros-cons .pc-col.pc-pros{background:rgba(63,190,131,0.08); border-color:rgba(63,190,131,0.3);}
.pros-cons .pc-col.pc-cons{background:rgba(224,104,95,0.08); border-color:rgba(224,104,95,0.3);}
.pros-cons .pc-title{font-size:13px; font-weight:700; margin-bottom:12px; display:flex; align-items:center; gap:7px;}
.pros-cons .pc-pros .pc-title{color:var(--positive);}
.pros-cons .pc-cons .pc-title{color:var(--negative);}
.pros-cons ul{list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap:9px;}
.pros-cons li{font-size:13px; color:var(--text-mid); line-height:1.5; padding-left:20px; position:relative;}
.pros-cons .pc-pros li::before{content:"✓"; position:absolute; left:0; color:var(--positive); font-weight:700;}
.pros-cons .pc-cons li::before{content:"–"; position:absolute; left:0; color:var(--negative); font-weight:700;}

/* numeroitu askellista (esim. "miten ostaa/myydä/avata tili") */
.step-list{list-style:none; counter-reset:step; margin:18px 0; padding:0; display:flex; flex-direction:column; gap:14px;}
.step-list li{position:relative; padding-left:42px; font-size:14.5px; line-height:1.6; color:var(--text-mid);}
.step-list li::before{counter-increment:step; content:counter(step); position:absolute; left:0; top:0; width:28px; height:28px; border-radius:50%; background:var(--gold); color:var(--ink); font-weight:700; font-size:13px; display:flex; align-items:center; justify-content:center;}
.step-list li b{color:var(--text-hi);}

/* rasti-lista (esim. luotettavuussignaalit, kokemusten teemat) */
.check-list{list-style:none; margin:18px 0; padding:0; display:flex; flex-direction:column; gap:10px;}
.check-list li{position:relative; padding-left:24px; font-size:14.5px; line-height:1.6; color:var(--text-mid);}
.check-list li::before{content:"✓"; position:absolute; left:0; color:var(--gold-bright); font-weight:700;}
.check-list li b{color:var(--text-hi);}

.review-score-big{text-align:center; flex:none;}
.review-score-big .num{font-family:'Space Grotesk',sans-serif; font-size:48px; font-weight:700; color:var(--gold-bright); line-height:1;}
.review-score-big .of{font-size:12px; color:var(--text-low); margin-top:4px;}
.review-score-bars{flex:1; min-width:220px; display:flex; flex-direction:column; gap:10px;}
.review-score-bars .rline{display:flex; align-items:center; gap:12px; font-size:12.5px;}
.review-score-bars .rline .lbl{width:120px; color:var(--text-mid); flex:none;}
.review-score-bars .rline .score-bar{height:6px;}
.review-score-bars .rline .val{width:38px; text-align:right; font-family:'IBM Plex Mono',monospace; color:var(--text-hi); flex:none;}

/* ===== METHOD (miten testaamme) ===== */
.method-grid{display:grid; grid-template-columns:repeat(4,1fr); gap:24px;}
@media (max-width:860px){ .method-grid{grid-template-columns:1fr 1fr;} }
.method-step{border-left:2px solid var(--gold); padding-left:18px;}
.method-step .stepnum{font-family:'IBM Plex Mono',monospace; font-size:12px; color:var(--gold-bright); margin-bottom:6px; display:block;}
.method-step h4{font-size:15.5px; margin-bottom:8px;}
.method-step p{font-size:13px; color:var(--text-mid); line-height:1.55;}

/* ===== OPPAAT / guides ===== */
.guide-list{display:grid; grid-template-columns:repeat(4,1fr); gap:18px;}
@media (max-width:860px){ .guide-list{grid-template-columns:1fr 1fr;} }
@media (max-width:520px){ .guide-list{grid-template-columns:1fr;} }
.guide-card{background:var(--ink-raised); border:1px solid var(--steel); border-radius:var(--radius-md); padding:22px;}
.guide-card .tag{font-size:11px; color:var(--teal); font-weight:600; letter-spacing:.02em; text-transform:uppercase;}
.guide-card h4{font-size:15.5px; margin-top:10px; line-height:1.3;}
.guide-card p{font-size:12.5px; color:var(--text-mid); margin-top:8px; line-height:1.5;}
.guide-card .rt{font-size:11px; color:var(--text-low); margin-top:12px;}

/* vivid glow cards — colorful category cards (guide grids, tool teasers, etc.) */
.vivid-grid{display:grid; grid-template-columns:repeat(4,1fr); gap:16px;}
@media (max-width:860px){ .vivid-grid{grid-template-columns:1fr 1fr;} }
@media (max-width:520px){ .vivid-grid{grid-template-columns:1fr;} }
.vivid-card{position:relative; display:block; border-radius:var(--radius-lg); padding:24px; overflow:hidden; border:1px solid var(--steel); min-height:158px; transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;}
.vivid-card:hover{transform:translateY(-3px); box-shadow:var(--shadow-lift); border-color:rgba(255,255,255,0.22);}
.vivid-card .vc-arrow{position:absolute; top:16px; right:16px; width:30px; height:30px; border-radius:50%; background:rgba(255,255,255,0.12); backdrop-filter:blur(6px); display:flex; align-items:center; justify-content:center; color:#fff; font-size:14px; transition:transform .18s ease;}
.vivid-card:hover .vc-arrow{transform:translateX(2px);}
.vivid-card .vc-icon{font-size:25px; margin-bottom:16px; display:block; line-height:1;}
.vivid-card .vc-tag{font-size:10.5px; font-weight:700; letter-spacing:.04em; text-transform:uppercase; color:rgba(255,255,255,0.6); margin-bottom:4px; display:block;}
.vivid-card h4{font-size:16.5px; color:#fff; font-weight:700; line-height:1.25;}
.vivid-card p{font-size:12.5px; color:rgba(255,255,255,0.72); margin-top:6px; line-height:1.5;}

/* ----- dramaattinen artikkelikortti (kuvituskuvalla) ----- */
.gcard-row{display:grid; grid-template-columns:repeat(4,1fr); gap:18px;}
@media (max-width:980px){ .gcard-row{grid-template-columns:repeat(2,1fr);} }
@media (max-width:560px){ .gcard-row{grid-template-columns:1fr;} }
.gcard{position:relative; border-radius:var(--radius-lg); overflow:hidden; aspect-ratio:3/4.1; display:flex; flex-direction:column; justify-content:flex-end; background-size:cover; background-position:center; border:1px solid var(--steel); box-shadow:var(--shadow-soft); transition:transform .18s, box-shadow .18s;}
.gcard:hover{transform:translateY(-4px); box-shadow:var(--shadow-lift);}
.gcard::before{content:""; position:absolute; inset:0; background:linear-gradient(180deg, rgba(8,9,13,0.05) 0%, rgba(8,9,13,0.35) 45%, rgba(8,9,13,0.97) 82%); z-index:1;}
.gcard-top{position:absolute; top:12px; left:12px; right:12px; display:flex; justify-content:space-between; align-items:flex-start; z-index:2;}
.gcard-badge{display:inline-flex; align-items:center; gap:6px; background:rgba(8,9,13,0.6); backdrop-filter:blur(4px); border:1px solid rgba(255,255,255,0.14); color:#fff; font-size:11.5px; font-weight:600; padding:6px 12px 6px 8px; border-radius:20px;}
.gcard-badge .ic{width:18px; height:18px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:10px; flex:none;}
.gcard-trend{background:var(--gold); color:var(--ink); font-size:11px; font-weight:700; padding:6px 12px; border-radius:20px; display:inline-flex; align-items:center; gap:5px;}
.gcard-body{position:relative; z-index:2; padding:16px 16px 18px;}
.gcard-body h4{font-size:19px; color:#fff; line-height:1.18; font-family:'Plus Jakarta Sans',sans-serif;}
.gcard-body p{font-size:12.5px; color:rgba(255,255,255,0.72); margin-top:8px; line-height:1.5;}
.gcard-meta{display:flex; align-items:center; gap:5px; font-size:11px; color:var(--gold-bright); margin-top:10px; font-weight:600;}
.gcard-actions{display:flex; gap:8px; margin-top:14px;}
.gcard-actions .btn-small{flex:1; text-align:center;}
.gcard .ibtn{background:rgba(8,9,13,0.6); border-color:rgba(255,255,255,0.18); color:#fff;}

/* article body (guide / coin detail long-form) */
.article-body{max-width:74ch; font-size:15.5px; color:var(--text-mid); line-height:1.75;}
.article-body h2{color:var(--text-hi); font-size:23px; margin-top:44px; margin-bottom:16px;}
.article-body h3{color:var(--text-hi); font-size:18px; margin-top:30px; margin-bottom:12px;}
.article-body p{margin-bottom:16px;}
.article-body p:last-child{margin-bottom:0;}
.article-layout{display:grid; grid-template-columns:1fr 300px; gap:48px; align-items:start;}
@media (max-width:980px){ .article-layout{grid-template-columns:1fr;} }
.article-side{position:sticky; top:96px; display:flex; flex-direction:column; gap:18px;}
.side-card{background:var(--ink-raised); border:1px solid var(--steel); border-radius:var(--radius-md); padding:20px;}
.side-card h5{font-size:12px; text-transform:uppercase; letter-spacing:.03em; color:var(--text-low); margin-bottom:12px;}
.toc-list{display:flex; flex-direction:column; gap:8px; font-size:13px;}
.toc-list a{color:var(--text-mid);}
.toc-list a:hover{color:var(--gold-bright);}

/* ----- kurssikaavio ----- */
.chart-panel{background:var(--ink-raised); border:1px solid var(--steel); border-radius:var(--radius-lg); padding:20px 22px 8px; box-shadow:var(--shadow-soft);}
.chart-head{display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:12px; margin-bottom:10px;}
.chart-price{font-family:'IBM Plex Mono',monospace; font-size:24px; color:var(--text-hi); font-weight:600;}
.chart-filters{display:flex; gap:6px;}
.chart-filter{font-size:12px; padding:6px 12px; border-radius:20px; border:1px solid var(--steel); color:var(--text-mid); cursor:pointer; background:transparent; font-family:inherit;}
.chart-filter.active{background:var(--gold); color:var(--ink); border-color:var(--gold); font-weight:600;}
.chart-svg-wrap{width:100%;}
.chart-svg-wrap svg{width:100%; height:auto; display:block;}

/* ----- laskuriosiot kolikkosivulla ----- */
.coin-calc-grid{display:grid; grid-template-columns:1fr 1fr; gap:20px;}
@media (max-width:760px){ .coin-calc-grid{grid-template-columns:1fr;} }
.coin-calc-card{background:var(--ink-raised); border:1px solid var(--steel); border-radius:var(--radius-lg); padding:24px; box-shadow:var(--shadow-soft);}
.coin-calc-card h3{font-size:16px; margin-bottom:4px;}
.coin-calc-card .sub{font-size:12px; color:var(--text-low); margin-bottom:16px;}
.scenario-row{display:flex; justify-content:space-between; align-items:center; padding:10px 0; border-bottom:1px solid var(--steel-soft); font-size:13px;}
.scenario-row:last-child{border-bottom:none;}
.scenario-row .tag{font-size:11px; padding:2px 9px; border-radius:20px; border:1px solid var(--steel); color:var(--text-mid);}
.scenario-row .val{font-family:'IBM Plex Mono',monospace; color:var(--text-hi); font-weight:600;}

/* ----- embeddit ----- */
.embed-row{display:grid; grid-template-columns:1fr 1fr; gap:16px;}
@media (max-width:640px){ .embed-row{grid-template-columns:1fr;} }
.embed-card{background:var(--ink-raised); border:1px solid var(--steel); border-radius:var(--radius-md); padding:16px; display:flex; gap:12px; align-items:flex-start;}
.embed-card .eic{width:34px; height:34px; border-radius:50%; background:var(--ink-raised-2); display:flex; align-items:center; justify-content:center; flex:none; font-size:15px;}
.embed-card .etxt{font-size:12.5px; color:var(--text-mid); line-height:1.5;}
.embed-card .etxt b{color:var(--text-hi); display:block; margin-bottom:3px; font-size:13px;}

/* stat row */
.stat-row{display:grid; grid-template-columns:repeat(4,1fr); gap:16px;}
@media (max-width:760px){ .stat-row{grid-template-columns:1fr 1fr;} }
.stat-box{background:var(--ink-raised); border:1px solid var(--steel); border-radius:var(--radius-md); padding:18px 20px;}
.stat-box .v{font-family:'IBM Plex Mono',monospace; font-size:22px; color:var(--gold-bright); font-weight:500;}
.stat-box .l{font-size:11.5px; color:var(--text-mid); margin-top:4px;}
.stat-box .chg{font-size:12px; margin-top:6px;}

/* sanasto */
.glossary-grid{display:grid; grid-template-columns:220px 1fr; gap:40px; align-items:start;}
@media (max-width:860px){ .glossary-grid{grid-template-columns:1fr;} }
.glossary-jump{position:sticky; top:96px; display:flex; flex-direction:column; gap:2px;}
.glossary-jump a{padding:6px 10px; font-size:13px; color:var(--text-mid); border-radius:6px;}
.glossary-jump a:hover{background:var(--ink-raised); color:var(--gold-bright);}
.glossary-entry{padding:18px 0; border-bottom:1px solid var(--steel-soft);}
.glossary-entry dt{font-family:'Space Grotesk',sans-serif; font-size:16px; font-weight:600; color:var(--text-hi); margin-bottom:6px;}
.glossary-entry dd{margin:0; font-size:14px; color:var(--text-mid); line-height:1.6;}
.glossary-letter{font-family:'Space Grotesk',sans-serif; font-size:28px; color:var(--gold); margin-top:36px; margin-bottom:4px;}
.glossary-letter:first-child{margin-top:0;}

/* team */
.team-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:22px;}
@media (max-width:760px){ .team-grid{grid-template-columns:1fr 1fr;} }
.team-card{background:var(--ink-raised); border:1px solid var(--steel); border-radius:var(--radius-md); padding:22px; text-align:center;}
.team-avatar{width:64px; height:64px; border-radius:50%; margin:0 auto 14px; display:flex; align-items:center; justify-content:center; font-family:'Space Grotesk',sans-serif; font-weight:700; font-size:20px; color:var(--ink);}
.team-card h4{font-size:14.5px;}
.team-card .role{font-size:12px; color:var(--text-low); margin-top:3px;}

/* contact form */
.form-field{margin-bottom:18px;}
.form-field label{display:block; font-size:12.5px; color:var(--text-mid); margin-bottom:8px; font-weight:500;}
.form-field input, .form-field textarea, .form-field select{width:100%; background:var(--ink); border:1px solid var(--steel); color:var(--text-hi); padding:12px 14px; border-radius:6px; font-family:inherit; font-size:14.5px;}
.form-field input:focus, .form-field textarea:focus{outline:none; border-color:var(--gold);}

/* ===== sticky ticker ===== */
.bottom-ticker{position:sticky; bottom:0; z-index:40; background:var(--ink-raised); border-top:1px solid var(--steel); overflow:hidden;}
.bt-track{display:flex; align-items:center; gap:28px; padding:11px 0; white-space:nowrap; width:max-content; animation:btMove 32s linear infinite;}
@keyframes btMove{ from{transform:translateX(0);} to{transform:translateX(-50%);} }
@media (prefers-reduced-motion:reduce){ .bt-track{animation:none;} }
.bt-item{display:flex; align-items:center; gap:8px; font-size:12.5px; padding:0 18px; border-right:1px solid var(--steel);}
.bt-item .ic{width:16px; height:16px; border-radius:50%; flex:none;}
.bt-item b{font-family:'IBM Plex Mono',monospace; font-weight:500;}

/* ===== FOOTER ===== */
footer{background:var(--ink-raised); border-top:1px solid var(--steel);}
.footer-inner{padding:64px 0 36px; display:grid; grid-template-columns:1.4fr repeat(4,1fr); gap:34px;}
@media (max-width:900px){ .footer-inner{grid-template-columns:1fr 1fr;} }
.footer-inner h5{font-size:12.5px; color:var(--text-hi); font-weight:600; margin-bottom:14px;}
.footer-inner ul{list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:9px;}
.footer-inner ul a{font-size:13.5px; color:var(--text-mid);}
.footer-inner ul a:hover{color:var(--gold-bright);}
.footer-bottom{max-width:var(--max); margin:0 auto; padding:22px 32px; border-top:1px solid var(--steel); display:flex; justify-content:space-between; flex-wrap:wrap; gap:10px; font-size:12px; color:var(--text-low);}
.footer-bottom a:hover{color:var(--gold-bright);}

/* ===========================================================
   VISUAALINEN PÄIVITYS 2 — Salakasinot-tyyliset kortit,
   i-popup-modaali, vertailutarjotin, muokkaushistoria
   =========================================================== */

/* ----- exchange visual card (xcard) ----- */
.xcard-grid{display:grid; grid-template-columns:repeat(4,1fr); gap:18px;}
@media (max-width:980px){ .xcard-grid{grid-template-columns:repeat(2,1fr);} }
@media (max-width:560px){ .xcard-grid{grid-template-columns:1fr;} }

/* peek carousel — center card emphasized, neighbors peek at the edges (mobile/tablet only) */
@media (max-width:980px){
  .xcard-carousel{display:flex; grid-template-columns:none; gap:14px; overflow-x:auto; scroll-snap-type:x mandatory; scroll-padding-inline:11%; padding:4px 11% 10px; margin:0 -11%; -webkit-overflow-scrolling:touch; scrollbar-width:none;}
  .xcard-carousel::-webkit-scrollbar{display:none;}
  .xcard-carousel .xcard{flex:0 0 78%; scroll-snap-align:center; transition:transform .25s ease, opacity .25s ease; transform:scale(.92); opacity:.55;}
  .xcard-carousel .xcard.is-active{transform:scale(1); opacity:1;}
}
@media (max-width:560px){
  .xcard-carousel{scroll-padding-inline:8%; padding-inline:8%; margin-inline:-8%;}
  .xcard-carousel .xcard{flex-basis:84%;}
}
.carousel-dots{display:none; justify-content:center; gap:8px; margin-top:14px;}
@media (max-width:980px){ .carousel-dots{display:flex;} }
.carousel-dots .dot{width:7px; height:7px; border-radius:50%; background:var(--steel); border:none; padding:0; cursor:pointer; transition:background .2s, width .2s;}
.carousel-dots .dot.is-active{background:var(--gold-bright); width:20px; border-radius:4px;}
.xcard{background:var(--ink-raised); border:1px solid var(--steel); border-radius:var(--radius-lg); overflow:hidden; position:relative; box-shadow:var(--shadow-soft); transition:transform .18s, box-shadow .18s, border-color .18s;}
.xcard:hover{transform:translateY(-4px); box-shadow:var(--shadow-lift);}
.xcard.is-selected{border-color:var(--gold);}
.xcard-art{height:290px; position:relative; display:flex; align-items:flex-end; overflow:hidden; background-size:cover; background-position:center; padding:0 16px 16px;}
.xcard-art .wordmark{font-family:'Plus Jakarta Sans',sans-serif; font-weight:800; font-size:27px; letter-spacing:-.02em; position:relative; z-index:1; color:#fff; text-shadow:0 2px 18px rgba(0,0,0,0.55), 0 1px 3px rgba(0,0,0,0.4);}
.xcard-art .wordmark{font-family:'Plus Jakarta Sans',sans-serif; font-weight:800; font-size:27px; letter-spacing:-.02em; position:relative; z-index:1; color:#fff; text-shadow:0 2px 18px rgba(0,0,0,0.55), 0 1px 3px rgba(0,0,0,0.4);}
.xcard-art::after{content:""; position:absolute; inset:0; background:linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(17,19,25,0.92) 100%);}
.xcard-rank{position:absolute; top:10px; left:10px; width:24px; height:24px; border-radius:50%; background:rgba(8,9,13,0.55); backdrop-filter:blur(4px); display:flex; align-items:center; justify-content:center; font-family:'IBM Plex Mono',monospace; font-size:11px; color:#fff; z-index:2;}
.xcard-compare{position:absolute; top:10px; right:10px; z-index:2; display:flex; align-items:center; gap:4px; font-size:11px; font-weight:600; color:#fff; background:rgba(8,9,13,0.55); backdrop-filter:blur(4px); border:1px solid rgba(255,255,255,0.18); padding:5px 10px 5px 8px; border-radius:20px; cursor:pointer; transition:.15s;}
.xcard-compare:hover{background:rgba(8,9,13,0.75);}
.xcard.is-selected .xcard-compare{background:var(--gold); color:var(--ink); border-color:var(--gold);}
.xcard-body{padding:16px 16px 18px;}
.xcard-top{display:flex; align-items:center; gap:10px; margin-bottom:4px;}
.xcard-logo{width:34px; height:34px; border-radius:9px; flex:none; display:flex; align-items:center; justify-content:center; font-family:'Plus Jakarta Sans',sans-serif; font-weight:700; font-size:12px; color:var(--ink); margin-top:-28px; border:3px solid var(--ink-raised); position:relative; z-index:2;}
.xcard-body h4{font-size:15.5px;}
.xcard-meta{font-size:11.5px; color:var(--text-low); margin-top:1px;}
.xcard-tags{display:flex; gap:6px; flex-wrap:wrap; margin-top:10px;}
.xcard-score{display:flex; align-items:center; gap:8px; margin-top:12px;}
.xcard-actions{display:flex; gap:8px; margin-top:14px; align-items:center;}
.xcard-actions .btn-small{flex:1; text-align:center;}
.ibtn{width:32px; height:32px; border-radius:50%; border:1px solid var(--steel); background:var(--ink); color:var(--text-mid); display:flex; align-items:center; justify-content:center; font-family:'Plus Jakarta Sans',sans-serif; font-weight:700; font-style:italic; font-size:13px; flex:none; cursor:pointer; transition:.15s;}
.ibtn:hover{border-color:var(--gold); color:var(--gold-bright);}

/* ----- coin "matchbox" card (ccard) ----- */
.ccard-row{display:flex; flex-direction:column; gap:10px;}
.ccard{display:flex; align-items:center; gap:14px; background:var(--ink-raised); border:1px solid var(--steel); border-radius:var(--radius-md); padding:10px; position:relative; box-shadow:var(--shadow-soft); transition:transform .15s, border-color .15s;}
.ccard:hover{transform:translateX(2px);}
.ccard.is-selected{border-color:var(--gold);}
.ccard-art{width:64px; height:64px; border-radius:12px; flex:none; display:flex; align-items:center; justify-content:center; font-family:'Plus Jakarta Sans',sans-serif; font-weight:800; font-size:20px; position:relative; overflow:hidden;}
.ccard-art::after{content:""; position:absolute; inset:0; background:radial-gradient(120% 140% at 25% 15%, rgba(255,255,255,0.22), transparent 60%);}
.ccard-id{min-width:112px;}
.ccard-id .name{font-size:14.5px; font-weight:600; font-family:'Plus Jakarta Sans',sans-serif;}
.ccard-id .sym{font-size:11px; color:var(--text-low); margin-left:4px;}
.ccard-id .price{font-family:'IBM Plex Mono',monospace; font-size:13.5px; color:var(--text-hi); margin-top:2px;}
.ccard-spark{flex:1; min-width:60px;}
.ccard-right{flex:none; display:flex; align-items:center; gap:10px;}
.ccard .ibtn{width:28px; height:28px; font-size:12px;}
.ccard-plus{width:28px; height:28px; border-radius:50%; border:1px solid var(--steel); background:var(--ink); color:var(--text-mid); display:flex; align-items:center; justify-content:center; font-size:15px; cursor:pointer; transition:.15s; flex:none;}
.ccard-plus:hover{border-color:var(--gold); color:var(--gold-bright);}
.ccard.is-selected .ccard-plus{background:var(--gold); color:var(--ink); border-color:var(--gold);}

/* ----- i-popup / compare modal ----- */
.modal-overlay{position:fixed; inset:0; z-index:100; background:rgba(4,5,8,0.72); backdrop-filter:blur(3px); display:flex; align-items:center; justify-content:center; padding:24px; opacity:0; visibility:hidden; transition:opacity .18s;}
.modal-overlay.is-open{opacity:1; visibility:visible;}
.modal-box{background:var(--ink-raised); border:1px solid var(--steel); border-radius:var(--radius-lg); max-width:460px; width:100%; max-height:88vh; overflow-y:auto; padding:28px; position:relative; box-shadow:var(--shadow-lift); transform:translateY(10px) scale(.98); transition:transform .18s;}
.modal-overlay.is-open .modal-box{transform:translateY(0) scale(1);}
.modal-close{position:absolute; top:16px; right:16px; width:32px; height:32px; border-radius:50%; background:var(--ink); border:1px solid var(--steel); color:var(--text-mid); display:flex; align-items:center; justify-content:center; cursor:pointer; font-size:16px; line-height:1;}
.modal-close:hover{color:var(--text-hi); border-color:var(--gold);}
.modal-header{display:flex; align-items:center; gap:14px; padding-right:36px;}
.modal-logo{width:46px; height:46px; border-radius:11px; flex:none; display:flex; align-items:center; justify-content:center; font-family:'Plus Jakarta Sans',sans-serif; font-weight:700; font-size:15px; color:var(--ink);}
.modal-header h3{font-size:18px;}
.modal-meta{font-size:12px; color:var(--positive); margin-top:2px; display:flex; align-items:center; gap:5px;}
.modal-media{margin-top:18px; border-radius:var(--radius-md); overflow:hidden; aspect-ratio:16/9; display:flex; align-items:center; justify-content:center; position:relative; border:1px solid var(--steel);}
.modal-media .ph{font-size:12px; color:rgba(255,255,255,0.75); position:relative; z-index:1; text-align:center; padding:0 20px;}
.modal-highlight{margin-top:16px; background:rgba(229,169,60,0.08); border:1px solid rgba(229,169,60,0.35); border-radius:10px; padding:12px 16px; font-size:13.5px; color:var(--gold-bright);}
.modal-highlight b{color:var(--gold-bright); font-size:16px;}
.modal-facts{display:grid; grid-template-columns:1fr 1fr; gap:8px; margin-top:16px;}
.modal-facts .tile{background:var(--ink); border:1px solid var(--steel); border-radius:9px; padding:10px 12px;}
.modal-facts .tile .v{font-size:13.5px; font-weight:600; color:var(--text-hi); font-family:'IBM Plex Mono',monospace;}
.modal-facts .tile .l{font-size:11px; color:var(--text-low); margin-top:2px;}
.modal-desc{font-size:13.5px; color:var(--text-mid); line-height:1.65; margin-top:16px;}
.modal-cta{width:100%; justify-content:center; margin-top:18px;}

/* compare table modal (fallback, unused by v2 card layout but kept for safety) */
.compare-table{width:100%; border-collapse:collapse; font-size:13px; margin-top:6px;}
.compare-table th{text-align:left; font-size:11px; color:var(--text-low); text-transform:uppercase; letter-spacing:.02em; padding:0 10px 10px 0; border-bottom:1px solid var(--steel);}
.compare-table td{padding:10px 10px 10px 0; border-bottom:1px solid var(--steel-soft); color:var(--text-mid); font-family:'IBM Plex Mono',monospace; font-size:12.5px;}
.compare-table td:first-child, .compare-table th:first-child{font-family:'Figtree',sans-serif; color:var(--text-hi); font-weight:600;}

/* ----- vertailumodaali v2: rinnakkaiset kortit ----- */
.compare-cards{display:grid; gap:14px; margin-top:16px;}
.ccmp-card{background:var(--ink); border:1px solid var(--steel); border-radius:var(--radius-md); overflow:hidden;}
.ccmp-art{height:88px; background-size:cover; background-position:center; position:relative; display:flex; align-items:flex-end; padding:8px 10px;}
.ccmp-art::after{content:""; position:absolute; inset:0; background:linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,0.75) 100%);}
.ccmp-art .nm{position:relative; z-index:1; color:#fff; font-family:'Plus Jakarta Sans',sans-serif; font-weight:700; font-size:14px;}
.ccmp-body{padding:12px 14px 14px;}
.ccmp-row{display:flex; justify-content:space-between; align-items:baseline; padding:7px 0; border-bottom:1px solid var(--steel-soft); font-size:12.5px;}
.ccmp-row:last-of-type{border-bottom:none;}
.ccmp-row .l{color:var(--text-low);}
.ccmp-row .v{color:var(--text-hi); font-family:'IBM Plex Mono',monospace; font-weight:500; text-align:right;}
.ccmp-cta{display:block; text-align:center; margin-top:12px; background:var(--gold); color:var(--ink); font-size:12.5px; font-weight:600; padding:9px; border-radius:8px;}
@media (min-width:520px){ .compare-cards{grid-template-columns:repeat(var(--n,2), 1fr);} }

/* compare tray */
.compare-tray{position:fixed; left:50%; bottom:22px; transform:translateX(-50%) translateY(120%); z-index:90; background:var(--ink-raised-2); border:1px solid var(--gold); border-radius:100px; padding:10px 10px 10px 20px; display:flex; align-items:center; gap:14px; box-shadow:var(--shadow-lift); transition:transform .22s;}
.compare-tray.is-visible{transform:translateX(-50%) translateY(0);}
.compare-tray .ct-label{font-size:13px; color:var(--text-hi); font-weight:600; white-space:nowrap;}
.compare-tray .ct-clear{font-size:12px; color:var(--text-low); cursor:pointer; white-space:nowrap;}
.compare-tray .ct-clear:hover{color:var(--negative);}

/* ----- muokkaushistoria (changelog) ----- */
.changelog{padding:22px 24px 22px 40px; display:flex; flex-direction:column; gap:20px; max-width:640px; background:var(--ink-raised); border-radius:var(--radius-md); box-shadow:var(--shadow-soft); border:1px solid var(--steel);}
.changelog-item{position:relative;}
.changelog-item::before{content:""; position:absolute; left:-27px; top:5px; width:9px; height:9px; border-radius:50%; background:var(--steel); border:2px solid var(--ink);}
.changelog-item.is-latest::before{background:var(--negative); box-shadow:0 0 0 3px rgba(224,104,95,0.18);}
.changelog-item .cl-meta{display:flex; align-items:center; gap:10px; font-size:12px; color:var(--text-low); margin-bottom:5px; flex-wrap:wrap;}
.changelog-item .cl-date{font-family:'IBM Plex Mono',monospace; color:var(--text-mid);}
.changelog-item .cl-tag{font-size:10.5px; font-weight:600; color:var(--gold-bright); background:rgba(229,169,60,0.1); border:1px solid rgba(229,169,60,0.3); padding:2px 9px; border-radius:20px;}
.changelog-item p{font-size:13.5px; color:var(--text-mid); line-height:1.6;}

/* ----- AI Generated -badge (pakollinen AI-kuvituksissa) ----- */
.ai-badge{position:absolute; left:10px; bottom:10px; z-index:3; display:inline-flex; align-items:center; gap:6px; background:rgba(8,9,13,0.72); backdrop-filter:blur(3px); border:1px solid rgba(229,169,60,0.55); border-radius:20px; padding:3px 10px 3px 3px; font-size:9.5px; font-weight:700; letter-spacing:.04em; color:var(--gold-bright);}
.ai-badge .chip{background:var(--gold); color:var(--ink); border-radius:20px; padding:2px 6px; font-size:9px; font-weight:800;}

/* ----- hero CTA -banneri ----- */
.hero-cta-banner{margin-top:14px; position:relative; border-radius:var(--radius-md); overflow:hidden; border:1px solid var(--steel); box-shadow:var(--shadow-soft); display:flex; align-items:center; gap:16px; padding:16px 18px; background:linear-gradient(120deg, #241a05, #4a3410 55%, #6b4c18 130%);}
.hero-cta-banner .hcb-logo{width:42px; height:42px; border-radius:10px; flex:none; background:var(--gold); color:#1A1204; display:flex; align-items:center; justify-content:center; font-family:'Plus Jakarta Sans',sans-serif; font-weight:800; font-size:13px;}
.hero-cta-banner .hcb-text{flex:1; min-width:0;}
.hero-cta-banner .hcb-text .t1{font-size:13.5px; font-weight:700; color:#fff;}
.hero-cta-banner .hcb-text .t2{font-size:11.5px; color:rgba(255,255,255,0.7); margin-top:2px;}
.hero-cta-banner .btn-small{flex:none;}

/* ----- maskotti-osio ----- */
.mascot-strip{position:relative; border-radius:var(--radius-lg); overflow:hidden; border:1px solid var(--steel); box-shadow:var(--shadow-lift); display:grid; grid-template-columns:1fr 1fr;}
@media (max-width:760px){ .mascot-strip{grid-template-columns:1fr;} }
.mascot-strip .m-panel{position:relative; aspect-ratio:16/11; background-size:cover; background-position:center top;}
.mascot-strip .m-panel::after{content:""; position:absolute; inset:0; background:linear-gradient(0deg, rgba(8,9,13,0.85), rgba(8,9,13,0.05) 55%);}
.mascot-caption{position:absolute; left:16px; bottom:14px; z-index:2; color:#fff;}
.mascot-caption b{font-family:'Plus Jakarta Sans',sans-serif; font-size:14px;}
.mascot-caption span{display:block; font-size:11.5px; color:rgba(255,255,255,0.7); margin-top:2px;}

/* ----- team popup ----- */
.team-card{cursor:pointer; transition:transform .15s, border-color .15s;}
.team-card:hover{transform:translateY(-3px); border-color:var(--gold);}
.team-person{display:flex; gap:14px; align-items:flex-start; padding:14px 0; border-bottom:1px solid var(--steel-soft);}
.team-person:last-child{border-bottom:none;}
.team-person .pav{width:52px; height:52px; border-radius:50%; flex:none; display:flex; align-items:center; justify-content:center; font-family:'Plus Jakarta Sans',sans-serif; font-weight:700; font-size:16px;}
.team-person h5{font-size:14.5px; color:var(--text-hi); font-family:'Plus Jakarta Sans',sans-serif;}
.team-person .nick{font-size:11.5px; color:var(--gold-bright); font-weight:600; margin-top:1px;}
.team-person p{font-size:12.5px; color:var(--text-mid); margin-top:6px; line-height:1.55;}
.profile-link{display:inline-flex; align-items:center; gap:4px; font-size:11.5px; font-weight:600; color:var(--gold-bright); margin-top:8px; background:none; border:none; padding:0; cursor:pointer; font-family:'Figtree',sans-serif;}
.profile-link:hover{text-decoration:underline;}
.profile-header{display:flex; align-items:center; gap:16px; margin-bottom:18px;}
.profile-header .pav{width:64px; height:64px; border-radius:50%; flex:none; display:flex; align-items:center; justify-content:center; font-family:'Plus Jakarta Sans',sans-serif; font-weight:700; font-size:19px;}
.profile-loc{display:inline-flex; align-items:center; gap:5px; font-size:11.5px; color:var(--text-low); margin-top:3px;}
.profile-section{margin-top:16px;}
.profile-section h6{font-size:11px; text-transform:uppercase; letter-spacing:.04em; color:var(--gold-bright); font-weight:700; margin-bottom:6px;}
.profile-section p{font-size:13px; color:var(--text-mid); line-height:1.6;}
.profile-list{list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap:8px;}
.profile-list li{font-size:12.5px; color:var(--text-mid); line-height:1.5; padding-left:14px; position:relative;}
.profile-list li::before{content:"—"; position:absolute; left:0; color:var(--steel);}
