/* informacija.hr — Radisha landing
 *
 * Sve boje i fontovi su tokeni. Tema A je zadana (:root), teme B, C i D su
 * smjerovi za usporedbu i biraju se preko html[data-theme] u lokalnom pregledu.
 */

:root {
  /* hero i scena s Radishom */
  --show-bg: #0f1115;
  --show-glow: rgba(170, 176, 190, 0.08);
  --show-ink: #eceef2;
  --show-lead: #d3d6dc;
  --show-muted: #a4a9b3;
  --show-line: rgba(255, 255, 255, 0.09);
  --show-row: rgba(255, 255, 255, 0.05);
  --show-surface: rgba(255, 255, 255, 0.02);
  --screen-bg: #aeb1ba;

  /* rječnik */
  --dict-bg: #f2eee5;
  --dict-ink: #1b1c1f;
  --dict-muted: #585a60;
  --dict-line: rgba(27, 28, 31, 0.14);
  --dict-rule: 5px double #1b1c1f;
  --dict-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.7);

  /* papirnati dio */
  --paper-bg: #f2eee5;
  --paper-bg-2: #e8e2d5;
  --paper-ink: #1b1c1f;
  --paper-muted: #585a60;
  --paper-line: rgba(27, 28, 31, 0.14);

  /* kontakt i impressum */
  --end-bg: #0f1115;
  --end-ink: #eceef2;
  --end-lead: #d3d6dc;
  --end-line: rgba(255, 255, 255, 0.09);
  --foot-bg: #0a0b0e;
  --foot-ink: #8b909a;

  /* akcenti: boje lica s videa */
  --primary: #7bd24b;
  --green: #7bd24b;
  --blue: #4a8dff;
  --violet: #a06bff;
  --amber: #f4b41e;

  /* tipografija */
  --display: "Bricolage Grotesque", "Arial Narrow", sans-serif;
  --text: "Newsreader", Georgia, serif;
  --dict-font: "Newsreader", Georgia, serif;
  --mono: "IBM Plex Mono", Consolas, monospace;
  --text-size: 18px;
  --text-italic: italic;
  --h1-size: clamp(3rem, 8.2vw, 8rem);
  --h1-weight: 800;
  --h1-stretch: 82%;
  --h1-tracking: -0.018em;
  --h1-leading: 0.92;
  --h1-em-style: normal;
  --h-weight: 750;
  --h-stretch: 82%;
  --h-tracking: -0.02em;
  --h3-stretch: 88%;

  --grain-opacity: 0.07;
  --grain-blend: overlay;

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --stage-h: clamp(220px, 40vh, 420px);
  --fade: 280ms;
}

/* ---------- B · Studio: hladne sive iz Radishinog studija, sve u grotesku ---------- */
html[data-theme="b"] {
  --show-bg: #e3e5ea;
  --show-glow: rgba(255, 255, 255, 0.75);
  --show-ink: #16181c;
  --show-lead: #353941;
  --show-muted: #5d636d;
  --show-line: rgba(22, 24, 28, 0.12);
  --show-row: rgba(22, 24, 28, 0.07);
  --show-surface: rgba(255, 255, 255, 0.45);
  --screen-bg: #c9ccd4;

  --dict-bg: #ffffff;
  --dict-ink: #16181c;
  --dict-muted: #5d636d;
  --dict-line: rgba(22, 24, 28, 0.1);
  --dict-rule: 3px solid #16181c;
  --dict-shadow: 0 24px 50px -30px rgba(22, 24, 28, 0.35);

  --paper-bg: #f3f4f6;
  --paper-bg-2: #e6e8ec;
  --paper-ink: #16181c;
  --paper-muted: #5d636d;
  --paper-line: rgba(22, 24, 28, 0.12);

  --end-bg: #16181c;
  --end-ink: #eef0f3;
  --end-lead: #c9cdd4;
  --end-line: rgba(255, 255, 255, 0.1);
  --foot-bg: #0e0f12;
  --foot-ink: #8d939c;

  --primary: #3c9e18;
  --green: #3c9e18;
  --blue: #1f5fd6;
  --violet: #6d3ad6;
  --amber: #b57800;

  --display: "Instrument Sans", "Arial Narrow", sans-serif;
  --text: "Instrument Sans", Arial, sans-serif;
  --text-size: 17px;
  --text-italic: normal;
  --h1-size: clamp(3rem, 8vw, 7.8rem);
  --h1-weight: 700;
  --h1-stretch: 82%;
  --h1-tracking: -0.035em;
  --h1-leading: 0.9;
  --h-weight: 700;
  --h-stretch: 88%;
  --h-tracking: -0.025em;
  --h3-stretch: 92%;

  --grain-opacity: 0.05;
  --grain-blend: multiply;
}

/* ---------- C · Radio: police sa starim radijima iz izvornog Radishe ---------- */
html[data-theme="c"] {
  --show-bg: #242325;
  --show-glow: rgba(240, 191, 46, 0.06);
  --show-ink: #f2ebdd;
  --show-lead: #d8cfbf;
  --show-muted: #aa9f8e;
  --show-line: rgba(242, 235, 221, 0.1);
  --show-row: rgba(242, 235, 221, 0.06);
  --show-surface: rgba(242, 235, 221, 0.025);
  --screen-bg: #aeb1ba;

  --dict-bg: #eee2c6;
  --dict-ink: #231f1a;
  --dict-muted: #6a5f50;
  --dict-line: rgba(35, 31, 26, 0.15);
  --dict-rule: 6px solid #f0bf2e;
  --dict-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.75);

  --paper-bg: #eee5d1;
  --paper-bg-2: #e2d5b9;
  --paper-ink: #231f1a;
  --paper-muted: #6a5f50;
  --paper-line: rgba(35, 31, 26, 0.15);

  --end-bg: #242325;
  --end-ink: #f2ebdd;
  --end-lead: #d8cfbf;
  --end-line: rgba(242, 235, 221, 0.1);
  --foot-bg: #1a191a;
  --foot-ink: #9a907f;

  --primary: #f0bf2e;
  --green: #8fd14f;
  --blue: #5a9cff;
  --violet: #a77cff;
  --amber: #f3a92a;

  --display: "Archivo", "Arial Black", sans-serif;
  --h1-size: clamp(2.8rem, 6.1vw, 6rem);
  --h1-weight: 800;
  --h1-stretch: 104%;
  --h1-tracking: -0.03em;
  --h1-leading: 0.95;
  --h-weight: 750;
  --h-stretch: 104%;
  --h-tracking: -0.02em;
  --h3-stretch: 100%;
}

/* ---------- D · Rječnik: cijela stranica je papir, sve u serifu ---------- */
html[data-theme="d"] {
  --show-bg: #f2ede2;
  --show-glow: rgba(255, 255, 255, 0.55);
  --show-ink: #161514;
  --show-lead: #34322e;
  --show-muted: #6b665d;
  --show-line: rgba(22, 21, 20, 0.14);
  --show-row: rgba(22, 21, 20, 0.08);
  --show-surface: rgba(255, 255, 255, 0.35);
  --screen-bg: #c9ccd4;

  --dict-bg: #fbf8f1;
  --dict-ink: #161514;
  --dict-muted: #6b665d;
  --dict-line: rgba(22, 21, 20, 0.12);
  --dict-rule: 5px double #161514;
  --dict-shadow: none;

  --paper-bg: #f2ede2;
  --paper-bg-2: #e8e1d2;
  --paper-ink: #161514;
  --paper-muted: #6b665d;
  --paper-line: rgba(22, 21, 20, 0.14);

  --end-bg: #161514;
  --end-ink: #f2ede2;
  --end-lead: #cfc8ba;
  --end-line: rgba(242, 237, 226, 0.12);
  --foot-bg: #0f0e0d;
  --foot-ink: #8f887b;

  --primary: #3b8a1c;
  --green: #3b8a1c;
  --blue: #2458c4;
  --violet: #6538c0;
  --amber: #a86f00;

  --display: "Newsreader", Georgia, serif;
  --h1-size: clamp(3rem, 7vw, 6.8rem);
  --h1-weight: 650;
  --h1-stretch: 100%;
  --h1-tracking: -0.03em;
  --h1-leading: 0.92;
  --h1-em-style: italic;
  --h-weight: 650;
  --h-stretch: 100%;
  --h-tracking: -0.02em;
  --h3-stretch: 100%;

  --grain-opacity: 0.06;
  --grain-blend: multiply;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--show-bg);
  color: var(--show-ink);
  font-family: var(--text);
  font-size: var(--text-size);
  line-height: 1.55;
  font-optical-sizing: auto;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

/* zrno preko cijele stranice */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: var(--grain-opacity);
  mix-blend-mode: var(--grain-blend);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; margin: 0; }
p { margin: 0; }

:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- topbar ---------- */

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 22px var(--gutter) 0;
  font-family: var(--display);
}
.wordmark {
  font-size: 1.2rem;
  font-weight: 700;
  font-stretch: var(--h3-stretch);
  letter-spacing: -0.01em;
  text-decoration: none;
}
.wordmark span { color: var(--show-muted); font-weight: 500; }
.topbar-cta {
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  padding: 8px 16px;
  border: 1px solid var(--show-line);
  border-radius: 999px;
  transition: border-color 0.2s, background 0.2s;
}
.topbar-cta:hover {
  border-color: var(--primary);
  background: color-mix(in srgb, var(--primary) 10%, transparent);
}

/* ---------- hero ---------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: end;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(40px, 7vh, 88px) var(--gutter) clamp(36px, 5vh, 60px);
}

h1 {
  font-size: var(--h1-size);
  font-weight: var(--h1-weight);
  font-stretch: var(--h1-stretch);
  line-height: var(--h1-leading);
  letter-spacing: var(--h1-tracking);
  margin-bottom: 0.32em;
}
h1 em { font-style: var(--h1-em-style); color: var(--primary); }

.lead {
  max-width: 34em;
  font-size: clamp(1.1rem, 1.35vw, 1.28rem);
  line-height: 1.6;
  color: var(--show-lead);
}

/* rječnik */
.dictionary {
  background: var(--dict-bg);
  color: var(--dict-ink);
  font-family: var(--dict-font);
  padding: 26px 30px 24px;
  border-radius: 3px;
  box-shadow: var(--dict-shadow);
  border-top: var(--dict-rule);
}
html[data-theme="d"] .dictionary { border-left: 1px solid var(--dict-line); border-right: 1px solid var(--dict-line); border-bottom: 1px solid var(--dict-line); }
.dictionary dl { margin: 0; }
.entry + .entry { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--dict-line); }
.entry dt { font-size: 1.05rem; line-height: 1.3; }
.headword { font-weight: 700; font-size: 1.55rem; letter-spacing: -0.01em; }
.gram { font-style: italic; text-decoration: none; color: var(--dict-muted); margin-left: 4px; }
.forms { font-style: italic; color: var(--dict-muted); font-size: 0.95rem; }
.entry dd { margin: 6px 0 0; font-size: 1.08rem; line-height: 1.5; }
.dict-title {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dict-muted);
  margin-bottom: 16px;
}
.entry dd.examples { margin-top: 10px; }
.examples-label { display: block; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--dict-muted); margin-bottom: 2px; }
.examples q { display: block; font-style: italic; opacity: 0.85; quotes: "„" "”"; }
.examples q + q { margin-top: 2px; }

/* ---------- scena: Radisha + tri područja ---------- */

.scene { position: relative; }

.band {
  position: sticky;
  top: 0;
  z-index: 5;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: clamp(24px, 3vw, 48px);
  align-items: center;
  padding: 18px max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))) 16px;
  background:
    radial-gradient(ellipse 60% 90% at 50% 40%, var(--show-glow), transparent 70%),
    var(--show-bg);
  border-bottom: 1px solid var(--show-line);
}

.band-intro h2 {
  font-size: clamp(1.6rem, 2.3vw, 2.2rem);
  font-weight: var(--h-weight);
  font-stretch: var(--h-stretch);
  line-height: 1.05;
  letter-spacing: var(--h-tracking);
}

.stage { margin: 0; --accent: var(--show-muted); }
.stage[data-accent="idle"] { --accent: var(--green); }
.stage[data-accent="techno"] { --accent: var(--blue); }
.stage[data-accent="brojko"] { --accent: var(--violet); }
.stage[data-accent="pisac"] { --accent: var(--amber); }

.screen {
  position: relative;
  height: var(--stage-h);
  aspect-ratio: 3 / 2;
  border-radius: 14px;
  overflow: hidden;
  background: var(--screen-bg);
  box-shadow:
    0 0 0 1px var(--show-line),
    0 28px 70px -30px var(--accent);
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--accent) 45%, transparent),
    0 28px 80px -28px color-mix(in srgb, var(--accent) 70%, transparent);
  transition: box-shadow 0.7s ease;
}

.layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* odreže svijetlu traku ispod ruba stola na dnu kadra */
  transform: scale(1.06);
  transform-origin: 50% 6%;
  opacity: 0;
  transition: opacity var(--fade) ease;
  pointer-events: none;
}
.layer.is-on { opacity: 1; }

.readout {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}
.led {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  transition: background 0.4s, box-shadow 0.4s;
}
.stage[data-phase="loading"] .led,
.stage[data-phase="unveiling"] .led { animation: blink 0.9s steps(2, jump-none) infinite; }
@keyframes blink { 50% { opacity: 0.25; } }
@media (prefers-reduced-motion: reduce) {
  .stage .led { animation: none !important; }
}
.meter {
  flex: 1 1 auto;
  min-width: 40px;
  height: 2px;
  background: var(--show-line);
  border-radius: 2px;
  overflow: hidden;
}
.meter-fill {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--accent);
  transform-origin: left center;
  transform: scaleX(0);
}

/* tri područja */
.areas {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 1.6vw, 24px);
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 28px var(--gutter) 0;
}

.area { --c: var(--show-ink); }
.area[data-area="techno"] { --c: var(--blue); }
.area[data-area="brojko"] { --c: var(--violet); }
.area[data-area="pisac"] { --c: var(--amber); }

.area {
  position: relative;
  padding: 22px 24px 26px;
  border-top: 2px solid var(--show-line);
  border-radius: 0 0 12px 12px;
  background: var(--show-surface);
  cursor: default;
  transition: border-color 0.35s, background 0.35s, opacity 0.35s;
}
.area:focus-visible { outline-color: var(--c); }
@media (hover: hover) and (pointer: fine) {
  .area { cursor: pointer; }
  .area:not(.is-active):hover { border-top-color: color-mix(in srgb, var(--c) 55%, transparent); }
}
.area header { margin-bottom: 14px; }
.area h3 {
  font-size: clamp(1.35rem, 1.9vw, 1.7rem);
  font-weight: var(--h-weight);
  font-stretch: var(--h3-stretch);
  letter-spacing: -0.01em;
  transition: color 0.35s;
}
.area h3::before {
  content: "";
  display: inline-block;
  width: 0.5em;
  height: 0.5em;
  margin-right: 0.4em;
  border-radius: 50%;
  background: var(--c);
  vertical-align: 0.12em;
  box-shadow: 0 0 12px var(--c);
}
.area-sub { color: var(--show-muted); font-style: var(--text-italic); margin-top: 2px; }
.area ul { list-style: none; margin: 0; padding: 0; }
.area li {
  position: relative;
  padding: 7px 0 7px 18px;
  font-size: 1.02rem;
  line-height: 1.45;
  border-top: 1px solid var(--show-row);
}
.area li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.95em;
  width: 8px;
  height: 1px;
  background: var(--c);
}

.scene.has-active .area { opacity: 0.55; }
.scene.has-active .area.is-active { opacity: 1; }
.area.is-active {
  border-top-color: var(--c);
  background:
    radial-gradient(ellipse 90% 60% at 50% 0%, color-mix(in srgb, var(--c) 14%, transparent), transparent 70%),
    var(--show-surface);
}
.area.is-active h3 { color: var(--c); }

.areas-note {
  max-width: 46em;
  margin: 0 auto;
  padding: 32px var(--gutter) clamp(72px, 12vh, 120px);
  text-align: center;
  color: var(--show-muted);
  font-style: var(--text-italic);
}

/* ---------- papirnati dio ---------- */

.paper { background: var(--paper-bg); color: var(--paper-ink); }
.paper + .paper .wrap { border-top: 1px solid var(--paper-line); }
.paper .wrap { padding-top: clamp(64px, 10vh, 104px); padding-bottom: clamp(64px, 10vh, 104px); }
.paper h2 {
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  font-weight: var(--h-weight);
  font-stretch: var(--h-stretch);
  line-height: 1.02;
  letter-spacing: var(--h-tracking);
  max-width: 16em;
  margin-bottom: 28px;
}
.paper h3 { font-size: 1.3rem; font-weight: var(--h-weight); font-stretch: var(--h3-stretch); letter-spacing: -0.005em; margin-bottom: 10px; }
.paper p { font-size: 1.12rem; line-height: 1.6; }

/* tema D: scena je na istom papiru, pa je odvaja crta */
html[data-theme="d"] .paper.practice { border-top: 1px solid var(--paper-line); }

.practice-lead p { font-size: clamp(1.18rem, 1.6vw, 1.38rem); line-height: 1.6; max-width: 38em; }
.cases { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 3vw, 48px); margin-top: 52px; }
.case { border-top: 3px solid var(--paper-ink); padding-top: 20px; }

.track-lead { font-size: clamp(1.18rem, 1.6vw, 1.38rem) !important; max-width: 38em; }
.works {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 48px);
  margin-top: 52px;
}
.work { border-top: 3px solid var(--paper-ink); padding-top: 18px; }
.work-when {
  font-family: var(--mono);
  font-size: 0.8rem !important;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--paper-muted);
  margin-bottom: 10px !important;
}

.paper a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; text-decoration-color: var(--paper-line); transition: text-decoration-color 0.2s; }
.paper a:hover { text-decoration-color: currentColor; }

.freebies { margin-top: clamp(56px, 8vh, 88px); }
.freebies h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); letter-spacing: var(--h-tracking); margin-bottom: 12px; }
.freebies-lead { max-width: 38em; }
.tools {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(20px, 2.4vw, 36px);
}
.tools li { border-top: 1px solid var(--paper-ink); padding-top: 16px; }
.tool-name { font-family: var(--display); font-weight: var(--h-weight); font-stretch: var(--h3-stretch); font-size: 1.15rem; }
.tool-url { display: block; font-family: var(--mono); font-size: 0.74rem; color: var(--paper-muted); margin: 4px 0 10px; }
.tools p { font-size: 1.02rem !important; line-height: 1.5 !important; }

.how-lead { font-size: clamp(1.18rem, 1.6vw, 1.38rem) !important; max-width: 36em; }
.steps {
  list-style: none;
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 48px);
  margin: 52px 0 0;
  padding: 0;
}
.steps li { counter-increment: step; }
.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--paper-muted);
  padding-bottom: 12px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--paper-line);
}
.training {
  margin-top: 56px;
  padding: clamp(24px, 3vw, 40px);
  background: var(--paper-bg-2);
  border-left: 4px solid var(--primary);
  max-width: 54em;
}

.qa-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 48px); margin-top: 12px; }

/* ---------- kontakt ---------- */

.contact { background: var(--end-bg); color: var(--end-ink); }
.contact .wrap { padding-top: clamp(80px, 14vh, 140px); padding-bottom: clamp(80px, 14vh, 140px); }
.contact h2 {
  font-size: clamp(2.2rem, 5vw, 4.4rem);
  font-weight: var(--h1-weight);
  font-stretch: var(--h1-stretch);
  line-height: 0.98;
  letter-spacing: var(--h1-tracking);
  max-width: 14em;
  margin-bottom: 32px;
}
.contact p { max-width: 36em; font-size: 1.2rem; line-height: 1.6; color: var(--end-lead); }
.contact p + p { margin-top: 16px; }
.mail-cta {
  display: inline-block;
  margin-top: 36px;
  font-family: var(--display);
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  font-weight: 700;
  font-stretch: var(--h3-stretch);
  text-decoration: none;
  padding-bottom: 4px;
  border-bottom: 2px solid var(--primary);
  transition: color 0.2s;
}
.mail-cta::after { content: " →"; color: var(--primary); }
.mail-cta:hover { color: var(--primary); }
/* na tamnom kraju stranice tamne akcentne boje svijetlih tema ne bi se vidjele */
html[data-theme="b"] .contact,
html[data-theme="d"] .contact { --primary: #7bd24b; }

/* ---------- kviz spremnosti ---------- */

.teaser-wrap { display: flex; align-items: center; justify-content: space-between; gap: clamp(24px, 4vw, 64px); }
.teaser h2 { margin-bottom: 14px; }
.teaser p { max-width: 36em; }
.paper a.teaser-cta {
  flex: none;
  display: inline-block;
  padding: 16px 28px;
  border-radius: 999px;
  background: var(--paper-ink);
  color: var(--paper-bg);
  font-family: var(--display);
  font-weight: 700;
  font-stretch: var(--h3-stretch);
  font-size: 1.15rem;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.2s;
}
.teaser-cta::after { content: " →"; }
.teaser-cta:hover { transform: translateY(-1px); box-shadow: 0 10px 24px -12px rgba(0, 0, 0, 0.5); }

.quiz { --accent: var(--primary); max-width: 880px; margin: 0 auto; padding: clamp(36px, 7vh, 80px) var(--gutter) clamp(64px, 10vh, 120px); }
.quiz-head h1 { font-size: clamp(2.4rem, 5.6vw, 4.6rem); }
.quiz-card {
  margin-top: clamp(28px, 4vh, 44px);
  padding: clamp(22px, 4vw, 44px);
  border: 1px solid var(--show-line);
  border-radius: 16px;
  background: var(--show-surface);
}
.quiz-progress { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; }
.quiz-count { font-family: var(--mono); font-size: 0.8rem; color: var(--show-muted); }
.quiz-question {
  font-size: clamp(1.35rem, 2.6vw, 1.9rem);
  font-weight: var(--h-weight);
  font-stretch: var(--h3-stretch);
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin: 8px 0 24px;
}
.quiz-question:focus, .result-title:focus { outline: none; }
.quiz-options { display: grid; gap: 10px; }
.quiz-option {
  text-align: left;
  font: inherit;
  font-size: 1.08rem;
  line-height: 1.4;
  color: inherit;
  padding: 16px 18px;
  border: 1px solid var(--show-line);
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
@media (hover: hover) and (pointer: fine) {
  .quiz-option:hover { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 7%, transparent); }
}
.quiz-option[aria-pressed="true"] { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 16%, transparent); }
.quiz-back, .result-again {
  font: inherit;
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--show-muted);
  background: none;
  border: 0;
  padding: 6px 0;
  margin-top: 18px;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
.quiz-back:hover, .result-again:hover { color: var(--show-ink); }

.result-pics { margin-bottom: 26px; }
.result-pics img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; background: var(--screen-bg); }
.result-pics.is-trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.result-pics.is-trio img { aspect-ratio: 3 / 4; object-position: 50% 40%; }
.result-score { font-family: var(--mono); font-size: 0.9rem; color: var(--primary); }
.result-title {
  font-size: clamp(2rem, 4.4vw, 3.2rem);
  font-weight: var(--h1-weight);
  font-stretch: var(--h1-stretch);
  letter-spacing: var(--h1-tracking);
  line-height: 1;
  margin: 6px 0 16px;
}
.result-text { font-size: 1.18rem; line-height: 1.6; color: var(--show-lead); max-width: 36em; }
.result-weak { margin-top: 24px; padding: 18px 20px; border-left: 3px solid var(--primary); background: var(--show-surface); }
.result-weak h3 { font-size: 1rem; font-family: var(--mono); font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; color: var(--show-muted); margin-bottom: 6px; }
.result-weak p { font-size: 1.08rem; line-height: 1.55; }
.result-next { margin-top: 24px; font-size: 1.12rem; }
.result-actions { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px 28px; margin-top: 8px; }
.result-actions .mail-cta { margin-top: 16px; }

/* ---------- impressum ---------- */

.impressum {
  background: var(--foot-bg);
  color: var(--foot-ink);
  font-family: var(--mono);
  font-size: 0.78rem;
  line-height: 1.8;
}
.impressum .wrap { padding-top: 36px; padding-bottom: 44px; border-top: 1px solid var(--end-line); }
.imp-name { color: var(--end-ink); }

/* ---------- lokalni pregled tema (samo localhost ili ?pregled) ---------- */

.pregled {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 200;
  display: flex;
  gap: 4px;
  padding: 5px;
  background: rgba(15, 17, 21, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  font: 500 12px/1 "IBM Plex Mono", Consolas, monospace;
}
.pregled button {
  font: inherit;
  color: #c9ccd3;
  background: transparent;
  border: 0;
  border-radius: 999px;
  padding: 8px 12px;
  cursor: pointer;
}
.pregled button { white-space: nowrap; }
.pregled b { font-weight: 600; }
.pregled button:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }
.pregled button[aria-pressed="true"] { color: #0f1115; background: #e9ebef; }

/* ---------- srednji ekrani ---------- */

@media (max-width: 1279px) {
  .band { grid-template-columns: minmax(0, 1fr) auto; }
  .tools { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- mobitel ---------- */

@media (max-width: 899px) {
  :root { --text-size: 17px; }
  html[data-theme="b"] { --text-size: 16px; }

  .hero { grid-template-columns: 1fr; gap: 28px; padding-top: 36px; }
  /* redoslijed kao u dogovoru: naslov, rječnik, pa tekst */
  .hero-text { display: contents; }
  .hero h1 { order: 1; margin-bottom: -4px; }
  .dictionary { order: 2; }
  .lead { order: 3; }
  h1 { font-size: clamp(2.7rem, 13vw, 4.6rem); }
  html[data-theme="c"] h1 { font-size: clamp(2.3rem, 10.5vw, 3.8rem); }
  html[data-theme="d"] h1 { font-size: clamp(2.6rem, 12vw, 4.3rem); }
  .dictionary { padding: 22px 22px 20px; }

  /* intro ide u normalni tok, sticky je samo ekran s Radishom */
  .band { display: contents; }
  .band-intro { padding: 8px var(--gutter) 20px; }
  .stage {
    position: sticky;
    top: 0;
    z-index: 5;
    padding: 10px var(--gutter) 10px;
    background: var(--show-bg);
    border-bottom: 1px solid var(--show-line);
  }
  .screen { height: auto; width: 100%; aspect-ratio: 4 / 3; border-radius: 10px; }
  .readout { margin-top: 8px; }

  .areas { grid-template-columns: 1fr; gap: 0; padding-top: 0; }
  .area { min-height: 72svh; padding: 28px 4px 40px; border-radius: 0; background: none; }
  .area.is-active { background: none; }
  .scene.has-active .area { opacity: 0.45; }
  .scene.has-active .area.is-active { opacity: 1; }

  .cases, .steps, .qa-grid, .works { grid-template-columns: 1fr; }
  .works { margin-top: 36px; }
  .tools { grid-template-columns: 1fr; }
  .teaser-wrap { flex-direction: column; align-items: flex-start; }
  .quiz-option { padding: 15px 16px; }
  .cases { margin-top: 36px; }
  .steps { margin-top: 36px; }
  .training { margin-top: 40px; }

  .pregled { left: 50%; transform: translateX(-50%); bottom: 10px; }
  .pregled button { padding: 8px 14px; }
  .pregled button span { display: none; }
}

@media (max-width: 899px) and (max-height: 700px) {
  .screen { aspect-ratio: 16 / 10; }
}
