/* ============================================================
   Ulkoasumallit A/B/C — Tendera-brändi kolmena eri tulkintana.
   A = oletus (style.css: rauhallinen paperi & editorial)
   B = .theme-b: tumma datahuone — data hohtaa vaaleina kortteina
   C = .theme-c: kirkas näyttämö — valkoinen, terävä, graafinen
   ============================================================ */

/* ---------- Mallinvaihdin ---------- */
.model-switch {
  position: fixed; bottom: 22px; right: 22px; z-index: 90;
  display: flex; align-items: center; gap: 4px;
  background: var(--ink); color: #fff;
  border-radius: 999px; padding: 6px 8px 6px 16px;
  box-shadow: 0 10px 30px -8px rgba(0, 0, 0, 0.45);
  font-size: 12.5px; font-weight: 700;
}
.model-switch > span { letter-spacing: 0.08em; text-transform: uppercase; font-size: 10.5px; opacity: 0.7; margin-right: 6px; }
.model-switch button {
  font-family: var(--sans); font-size: 13px; font-weight: 700;
  width: 32px; height: 32px; border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.25); background: none; color: #fff;
  cursor: pointer; transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.model-switch button:hover { border-color: #fff; }
.model-switch button.active { background: var(--orange); border-color: var(--orange); }
.theme-b .model-switch { background: #f2ede4; color: #1f2a33; }
.theme-b .model-switch button { color: #1f2a33; border-color: rgba(31, 42, 51, 0.25); }
.theme-b .model-switch button.active { color: #fff; }

/* ============================================================
   MALLI B — Tumma datahuone
   ============================================================ */
.theme-b {
  --paper: #121a23;
  --paper-raise: #1a2430;
  --paper-warm: #17212b;
  --ink: #edf2f6;
  --ink-deep: #0b1117;
  --ink-soft: #c4cfd8;
  --muted: #8d9aa7;
  --line: #2c3a48;
  --line-soft: #223040;
  --orange-deep: #ff9a55;
  --orange-tint: #432814;
  --orange-faint: #271a10;
  --green: #4ade80;
  --green-tint: #143523;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 14px 34px -12px rgba(0, 0, 0, 0.55);
  --shadow-lift: 0 2px 4px rgba(0, 0, 0, 0.45), 0 28px 60px -16px rgba(0, 0, 0, 0.65);
}
.theme-b .nav { background: color-mix(in srgb, #121a23 86%, transparent); border-bottom-color: var(--line-soft); }
.theme-b .nav-logo img { content: url("tendera_logo.png"); }
.theme-b .hero::before {
  background:
    radial-gradient(circle at 78% 30%, rgba(240, 118, 31, 0.16), transparent 45%),
    radial-gradient(circle at 60% 70%, rgba(240, 118, 31, 0.08), transparent 40%);
}
.theme-b .hero h1 em::after { background: #3a2515; }

/* Vaaleat "datasaarekkeet": paneelit hohtavat tummassa huoneessa */
.theme-b .market-panel,
.theme-b .demo-card,
.theme-b .mini,
.theme-b .doc,
.theme-b .archive-search {
  --paper: #f6f3ed;
  --paper-raise: #ffffff;
  --paper-warm: #efe9df;
  --ink: #1f2a33;
  --ink-soft: #33424e;
  --muted: #5f6d78;
  --line: #e6ddcd;
  --line-soft: #efe8db;
  --orange-deep: #cf5e0d;
  --orange-tint: #ffe9d6;
  --orange-faint: #fdf3e7;
  --green: #1f9e54;
  --green-tint: #e2f4e8;
  color: #1f2a33;
  background: #fff;
}
.theme-b .doc { background: #fffdf9; }
.theme-b .mini, .theme-b .demo-card { border-color: rgba(0, 0, 0, 0.08); }

.theme-b .logos { background: #0f161e; border-color: var(--line-soft); }
.theme-b .logos .mark-img { filter: brightness(0) invert(0.82); opacity: 0.75; }
.theme-b .logos .mark-img:hover { opacity: 1; }

.theme-b .bene { background: #151f29; border-color: var(--line-soft); }
.theme-b .archive { background: #0b1218; }
.theme-b .soon { background: #17212b; }
.theme-b .soon-list li { background: var(--paper-raise); }
.theme-b .vs-track { background: rgba(255, 255, 255, 0.05); }
.theme-b .vs-row.trad .vs-bar { background: #3b4855; color: #c4cfd8; }
.theme-b .path-self { background: #271a10; border-color: #432814; }
.theme-b .path-sales { background: #1a2430; border: 1px solid var(--line); }
.theme-b .quote-slot { background: rgba(255, 255, 255, 0.03); }
.theme-b .quote-slot .qmark { color: #432814; }
.theme-b .pt-card { background: var(--paper-raise); }
.theme-b .pt-card.hot { box-shadow: 0 2px 6px rgba(240, 118, 31, 0.2), 0 28px 60px -18px rgba(240, 118, 31, 0.28); }
.theme-b .footer { background: #0b1117; border-top: 1px solid var(--line-soft); }
.theme-b .btn-primary { box-shadow: 0 2px 8px rgba(240, 118, 31, 0.4), 0 14px 34px -10px rgba(240, 118, 31, 0.55); }
.theme-b ::selection { background: #432814; color: #fff; }

/* ============================================================
   MALLI C — Kirkas näyttämö
   ============================================================ */
.theme-c {
  --paper: #ffffff;
  --paper-raise: #ffffff;
  --paper-warm: #f5f5f3;
  --ink: #171f26;
  --ink-deep: #10161c;
  --ink-soft: #39434c;
  --muted: #6a747e;
  --line: #e3e5e7;
  --line-soft: #eceeef;
  --orange-tint: #ffddc0;
  --orange-faint: #fff3e8;
  --serif: "Aptos Display", "Avenir Next", "Segoe UI", sans-serif;
  --radius: 10px;
  --radius-s: 7px;
  --shadow: 0 1px 2px rgba(23, 31, 38, 0.06);
  --shadow-lift: 0 2px 6px rgba(23, 31, 38, 0.08);
}
.theme-c body, body.theme-c { font-size: 17.5px; }
.theme-c .hero::before { display: none; }
.theme-c h1, .theme-c h2, .theme-c h3 { letter-spacing: -0.025em; }
.theme-c .hero h1 { font-size: clamp(42px, 5.8vw, 70px); }
.theme-c .hero h1 em { color: var(--orange); }
.theme-c .hero h1 em::after { display: none; }
.theme-c .section-head h2 { font-size: clamp(30px, 4vw, 46px); }

/* Kova varjo-offset = mallin graafinen tunniste */
.theme-c .market-panel {
  border: 1.5px solid var(--ink);
  box-shadow: 10px 10px 0 0 var(--orange-tint);
}
.theme-c .demo-card, .theme-c .bene-mini.mini {
  border: 1.5px solid var(--ink);
  box-shadow: 8px 8px 0 0 var(--paper-warm);
}
.theme-c .pt-card { border: 1.5px solid var(--line); box-shadow: none; }
.theme-c .pt-card.hot { border-color: var(--ink); box-shadow: 8px 8px 0 0 var(--orange-tint); }
.theme-c .pt-card:hover { transform: translateY(-3px); box-shadow: 8px 8px 0 0 var(--line-soft); }
.theme-c .pt-card.hot:hover { box-shadow: 8px 8px 0 0 var(--orange-tint); }

.theme-c .btn { border-radius: 12px; }
.theme-c .btn-primary { box-shadow: none; }
.theme-c .btn-primary:hover { transform: translateY(-1px); }
.theme-c .mt-input { border-radius: 12px; box-shadow: none; }
.theme-c .mt-chip { border-radius: 8px; }
.theme-c .model-switch button { border-radius: 50%; }

.theme-c .logos { background: #fff; }
.theme-c .bene { background: #fff; }
.theme-c .bene-item.active h3 { box-shadow: inset 4px 0 0 var(--orange); padding-left: 16px; margin-left: -16px; }
.theme-c .vs-track { background: var(--paper-warm); }
.theme-c .vs-row.trad .vs-bar { background: #e3e5e7; color: var(--ink-soft); }
.theme-c .vs-row.tendera .vs-bar { box-shadow: none; }

/* Arkistokaista käännetään vaaleaksi */
.theme-c .archive { background: var(--paper-warm); color: var(--ink-soft); }
.theme-c .archive h2, .theme-c .archive .aproof h3 { color: var(--ink); }
.theme-c .archive .section-head p { color: var(--muted); }
.theme-c .archive .section-head p strong { color: var(--ink) !important; }
.theme-c .src-item {
  background: #fff; border: 1.5px solid var(--line); color: var(--ink-soft);
}
.theme-c .src-item small { color: var(--muted); }
.theme-c .archive-search { border: 1.5px solid var(--ink); box-shadow: 8px 8px 0 0 var(--orange-tint); }
.theme-c .archive-stats { border-top-color: var(--line); }
.theme-c .astat .n { color: var(--ink); }
.theme-c .astat .l { color: var(--muted); }
.theme-c .archive-ai { border-top-color: var(--line); }
.theme-c .archive-ai .line { color: var(--ink); }
.theme-c .archive-ai .line b { color: var(--orange-deep); }
.theme-c .archive-ai p { color: var(--muted); }
.theme-c .archive-ai .beta-tag { border-color: var(--line); color: var(--muted); }
.theme-c .archive-foot { color: var(--muted); }

.theme-c .soon { background: #fff; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.theme-c .soon-list li { border: 1.5px solid var(--line); }
.theme-c .quote-slot { border-color: var(--line); background: #fff; }
.theme-c .path-self { background: var(--orange-faint); border: 1.5px solid var(--orange-tint); }
.theme-c .path-sales { background: var(--ink-deep); }

/* Footer vaaleaksi */
.theme-c .footer { background: #fff; border-top: 1.5px solid var(--ink); color: var(--ink-soft); margin-top: clamp(40px, 7vw, 90px); }
.theme-c .footer a { color: var(--ink-soft); }
.theme-c .footer a:hover { color: var(--ink); }
.theme-c .footer-brand img { content: url("tendera_logo_dark.png"); }
.theme-c .footer-brand p { color: var(--muted); }
.theme-c .footer h4 { color: var(--muted); }
.theme-c .footer-bottom { border-top-color: var(--line-soft); color: var(--muted); }
.theme-c .footer-bottom .mock-note { color: var(--muted); }
.theme-c ::selection { background: var(--orange-tint); color: var(--ink); }
