:root {
  --bg: #fbf8f2;
  --bg2: #f6efe4;
  --bg3: #f0e6d6;
  --ink: #171716;
  --ink-light: #44403c;
  --muted: #746e64;
  --line: rgba(56, 44, 28, 0.12);
  --line-strong: rgba(185, 133, 36, 0.28);
  --gold: #b98524;
  --gold2: #d7aa4b;
  --gold3: #8a5c12;
  --gold-gradient: linear-gradient(135deg, #c79234 0%, #f7d686 28%, #a67015 55%, #fde09e 80%, #88540b 100%);
  --gold-btn: linear-gradient(180deg, #d6a644 0%, #a96f12 100%);
  --gold-btn-hover: linear-gradient(180deg, #e0b453 0%, #b87b18 100%);
  --white-glass: rgba(255, 255, 255, 0.76);
  --white-glass-strong: rgba(255, 255, 255, 0.88);
  --shadow-soft: 0 14px 34px rgba(48, 36, 18, 0.08);
  --shadow-card: 0 18px 45px rgba(60, 45, 20, 0.09);
  --shadow-hover: 0 24px 60px rgba(50, 35, 15, 0.14);
  --radius-card: 24px;
  --radius-btn: 16px;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 82% 10%, rgba(248, 218, 150, 0.45), transparent 35%),
    radial-gradient(circle at 14% 18%, rgba(205, 226, 238, 0.55), transparent 30%),
    linear-gradient(180deg, #fffdfa 0%, #fcf8f0 35%, #f6efe4 100%);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  outline: none;
}

/* Glassmorphism helpers */
.glass {
  background: var(--white-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: var(--shadow-card);
}

.glass-card {
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-radius: var(--radius-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.glass-card:hover {
  box-shadow: var(--shadow-hover);
}

.app-surface {
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(40, 32, 20, 0.08);
  border-radius: 18px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 10px 25px rgba(60, 45, 20, 0.05);
}

/* Base Buttons */
.gold-btn {
  background: var(--gold-btn);
  color: #ffffff;
  border: 0;
  border-radius: var(--radius-btn);
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(169, 111, 18, 0.25);
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  min-width: 44px;
  padding: 12px 24px;
}

.gold-btn:hover {
  background: var(--gold-btn-hover);
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(169, 111, 18, 0.32);
}

.gold-btn:active {
  transform: translateY(0);
}

.gold-btn.small {
  min-height: 44px;
  padding: 10px 22px;
  font-size: 13px;
  border-radius: 14px;
}

.white-btn {
  background: var(--white-glass-strong);
  border: 1px solid rgba(50, 40, 22, 0.12);
  border-radius: var(--radius-btn);
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  min-width: 44px;
  padding: 12px 22px;
}

.white-btn:hover {
  background: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(48, 36, 18, 0.12);
  border-color: rgba(185, 133, 36, 0.35);
}

.white-btn:active {
  transform: translateY(0);
}

.section-shell {
  width: min(1560px, 94vw);
  margin: 0 auto;
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 12px 4vw;
  border-radius: 0 0 22px 22px;
  border-bottom: 1px solid rgba(220, 200, 160, 0.4);
}

.brand {
  display: flex;
  align-items: center;
  min-width: max-content;
  text-decoration: none;
}

.brand-copy {
  display: flex;
  flex-direction: column;
}

.brand-copy strong {
  font-family: 'Montserrat', sans-serif;
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: 0.22em;
  color: #121211;
  line-height: 1.15;
}

.brand-copy small {
  font-size: 8.5px;
  letter-spacing: 0.18em;
  color: var(--gold3);
  font-weight: 700;
  margin-top: 3px;
}

.main-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 22px;
  font-size: 13.5px;
  font-weight: 500;
  color: #3b3730;
}

.main-nav a {
  padding: 10px 4px;
  position: relative;
  transition: color 0.2s ease;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--gold3);
}

.main-nav a:after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 6px;
  width: 0;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
  transition: width 0.25s ease;
}

.main-nav a:hover:after,
.main-nav a.active:after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.icon-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(50, 40, 20, 0.12);
  background: #ffffff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #44403c;
  box-shadow: 0 4px 12px rgba(50, 40, 20, 0.06);
  transition: all 0.2s ease;
}

.icon-btn:hover {
  background: #fdfbf7;
  color: var(--gold3);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(185, 133, 36, 0.18);
  border-color: rgba(185, 133, 36, 0.35);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-wrapper {
  position: relative;
  overflow: hidden;
  padding: 40px 0 20px;
  margin-bottom: 24px;
}

.hero-bg-canvas {
  position: absolute;
  inset: 0 -4vw;
  background: url('/assets/pokonac-goliata-hero-bg.webp') no-repeat center 25% / cover;
  opacity: 0.92;
  z-index: 0;
  pointer-events: none;
  border-radius: 0 0 40px 40px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,1) 0%, rgba(0,0,0,0.92) 65%, rgba(0,0,0,0.3) 88%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,1) 0%, rgba(0,0,0,0.92) 65%, rgba(0,0,0,0.3) 88%, transparent 100%);
}

.hero-bg-overlay {
  position: absolute;
  inset: 0 -4vw;
  background: radial-gradient(circle at 45% 42%, rgba(255, 252, 244, 0.86) 0%, rgba(255, 251, 242, 0.72) 58%, rgba(255, 250, 240, 0.25) 100%);
  z-index: 1;
  pointer-events: none;
  border-radius: 0 0 40px 40px;
}

.hero {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(320px, 410px) 1fr 280px;
  gap: 46px;
  align-items: center;
  min-height: 640px;
}

/* Hero Book 3D */
.hero-book-wrap {
  position: relative;
  perspective: 1400px;
  transform-style: preserve-3d;
  transition: transform 0.15s ease-out;
  display: flex;
  justify-content: center;
}

.book-cover {
  width: 100%;
  max-width: 390px;
  height: auto;
  display: block;
  filter: drop-shadow(0 32px 46px rgba(45, 30, 10, 0.32));
  transform: rotateY(-8deg) rotateX(2deg);
  transition: transform 0.2s ease-out;
}

.book-glow {
  position: absolute;
  width: 82%;
  height: 82%;
  left: 14%;
  top: 10%;
  background: radial-gradient(circle, rgba(255, 205, 95, 0.5), transparent 66%);
  filter: blur(38px);
  z-index: -1;
  pointer-events: none;
}

/* Hero Center Copy */
.hero-copy {
  display: flex;
  flex-direction: column;
}

.eyebrow {
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.32em;
  color: #3f392f;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 8px;
}

.eyebrow span {
  display: block;
  width: 44px;
  height: 2px;
  background: var(--gold2);
  border-radius: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.hero-copy h1 {
  margin: 10px 0 0;
  display: flex;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
  line-height: 0.88;
}

.hero-copy h1.hero-title-graphic {
  margin: 8px 0 4px;
  display: block;
  line-height: 1;
}

.hero-copy h1.hero-title-graphic picture,
.hero-copy h1.hero-title-graphic .title-img {
  display: block;
  width: 100%;
  max-width: 550px;
  height: auto;
  filter: drop-shadow(0 8px 24px rgba(18, 16, 12, 0.12));
}

.hero-copy h1 .title-black {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: clamp(52px, 5.6vw, 102px);
  letter-spacing: -0.05em;
  color: #121211;
}

.hero-copy h1 .title-gold {
  font-family: 'Playfair Display', serif;
  font-weight: 800;
  font-style: italic;
  font-size: clamp(54px, 6vw, 108px);
  letter-spacing: -0.04em;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  transform: rotate(-3deg);
  display: inline-block;
  filter: drop-shadow(0 2px 5px rgba(160, 105, 15, 0.2));
}

.hero-subtitle {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.28em;
  color: #1a1917;
  margin: 18px 0 14px;
}

.keywords {
  display: flex;
  align-items: center;
  gap: 16px;
  color: #645b4c;
  letter-spacing: 0.2em;
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 16px;
}

.keywords i {
  height: 18px;
  width: 1.5px;
  background: var(--gold2);
  display: inline-block;
}

.hero-lead {
  font-size: 17.5px;
  line-height: 1.6;
  color: var(--ink-light);
  max-width: 720px;
  margin: 0 0 22px;
}

.hero-ctas {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  max-width: 680px;
  margin-bottom: 12px;
}

.hero-ctas button {
  min-height: 58px;
  font-size: 16.5px;
  padding: 0 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hero-secondary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  max-width: 680px;
  margin-bottom: 26px;
}

.hero-secondary button {
  min-height: 44px;
  font-size: 13.5px;
}

.feature-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  max-width: 820px;
  padding-top: 10px;
  border-top: 1px solid rgba(185, 133, 36, 0.2);
}

.feature-strip div {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 10px;
  align-items: center;
}

.feature-strip span {
  grid-row: 1/3;
  font-size: 24px;
  color: var(--gold3);
}

.feature-strip b {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #1a1917;
}

.feature-strip small {
  font-size: 9px;
  color: var(--muted);
  font-weight: 600;
  margin-top: 2px;
}

/* Hero Quote (Right) */
.hero-quote {
  align-self: start;
  margin-top: 24px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(220, 200, 160, 0.45);
  border-radius: 20px;
  padding: 24px;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: relative;
}

.hero-quote:before {
  content: "“";
  position: absolute;
  top: -12px;
  left: 20px;
  font-family: 'Playfair Display', serif;
  font-size: 54px;
  line-height: 1;
  color: var(--gold2);
  opacity: 0.6;
}

.hero-quote blockquote {
  margin: 12px 0 0;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 18px;
  line-height: 1.5;
  color: #2b2721;
}

.hero-quote cite {
  display: block;
  margin-top: 14px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold3);
}

/* ==========================================================================
   PRODUCT GRID (5 CARDS)
   ========================================================================== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  padding: 10px 0 70px;
}

.feature-card {
  padding: 16px;
  display: flex;
  flex-direction: column;
  min-height: 545px;
}

.card-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.step {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--gold-btn);
  color: #ffffff;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 15px;
  box-shadow: 0 8px 18px rgba(169, 111, 18, 0.28);
}

.card-heading h2 {
  font-size: 18px;
  font-weight: 700;
  margin: 0;
  color: #1a1917;
}

.card-heading p {
  font-size: 11px;
  color: var(--muted);
  margin: 2px 0 0;
  font-weight: 500;
}

/* Card 1: Reader preview */
.reader-preview {
  display: grid;
  grid-template-columns: 42% 58%;
  overflow: hidden;
  min-height: 360px;
  border: 1px solid var(--line);
}

.reader-preview aside {
  padding: 12px;
  background: #faf6ee;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
}

.reader-preview aside b {
  font-size: 11px;
  font-weight: 700;
  color: #1f1d19;
  margin-bottom: 4px;
}

.reader-preview aside small {
  font-size: 9px;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.reader-preview aside button {
  border: 0;
  background: transparent;
  text-align: left;
  font-size: 9.5px;
  padding: 7px 8px;
  border-radius: 8px;
  cursor: pointer;
  color: #3d3931;
  transition: all 0.15s ease;
  min-height: 32px;
}

.reader-preview aside button:hover {
  background: #f2e7ce;
}

.reader-preview aside button.active {
  background: #edd8a8;
  font-weight: 700;
  color: #171716;
}

.reader-page {
  padding: 14px;
  display: flex;
  flex-direction: column;
  background: #ffffff;
}

.reader-page small {
  font-size: 10px;
  color: var(--gold3);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.reader-page h3 {
  font-family: 'Playfair Display', serif;
  font-size: 17px;
  font-weight: 700;
  margin: 2px 0 8px;
  color: #171716;
}

.reader-illustration {
  height: 72px;
  border-radius: 10px;
  background: url('/assets/pokonac-goliata-hero-bg-960.webp') no-repeat center 30% / cover;
  margin-bottom: 10px;
  position: relative;
}

.reader-page p {
  font-family: 'Playfair Display', serif;
  font-size: 13.5px;
  line-height: 1.5;
  color: #36322b;
  margin: 0 0 10px;
}

.reader-page mark {
  background: #fae48c;
  padding: 2px 3px;
  border-radius: 4px;
}

.progress-row {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 9.5px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 8px;
}

.card-cta {
  margin-top: auto;
  min-height: 44px;
  padding: 10px 14px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 14px;
  font-size: 13px;
  font-weight: 700;
  color: var(--gold3);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(40, 30, 15, 0.05);
}

.card-cta:hover {
  background: var(--gold3);
  color: #ffffff;
  border-color: var(--gold3);
  transform: translateY(-1px);
}

/* Card 2: Audio Player */
.audio-player {
  padding: 14px;
  display: flex;
  flex-direction: column;
}

.audio-top {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: 12px;
  align-items: center;
}

.audio-top img {
  width: 52px;
  height: 66px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2);
}

.audio-top div {
  display: flex;
  flex-direction: column;
}

.audio-top b {
  font-size: 13px;
  color: #171716;
}

.audio-top small {
  font-size: 10px;
  color: var(--muted);
  margin-top: 2px;
}

.heart-btn {
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  font-size: 22px;
  color: var(--muted);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all 0.2s ease;
}

.heart-btn:hover,
.heart-btn.active {
  color: #d84840;
  transform: scale(1.15);
}

.audio-player h3 {
  font-size: 13.5px;
  margin: 14px 0 2px;
  color: var(--gold3);
}

.audio-player .audio-ch-title {
  font-size: 12.5px;
  font-weight: 600;
  margin: 0;
  color: #171716;
}

/* Waveform Visualizer */
.waveform-container {
  height: 54px;
  margin: 12px 0 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3px;
  padding: 0 4px;
  cursor: pointer;
}

.waveform-bar {
  flex: 1;
  height: 30%;
  background: var(--gold2);
  border-radius: 3px;
  transition: height 0.15s ease;
  min-width: 3px;
}

.waveform-container.playing .waveform-bar {
  animation: wavePulse 1.2s ease-in-out infinite alternate;
}

@keyframes wavePulse {
  0% { height: 20%; background: #d7aa4b; }
  50% { height: 85%; background: #b98524; }
  100% { height: 35%; background: #8a5c12; }
}

.audio-time {
  display: flex;
  justify-content: space-between;
  font-size: 9.5px;
  color: var(--muted);
  font-weight: 600;
}

/* TTS Generator controls */
.tts-settings-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fbf8f2;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 6px 10px;
  margin: 10px 0 4px;
}

.tts-speed-selector {
  display: flex;
  align-items: center;
  gap: 4px;
}

.tts-label {
  font-size: 9.5px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  margin-right: 2px;
}

.tts-speed-btn {
  border: 1px solid var(--line);
  background: #ffffff;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 700;
  color: #3b3730;
  padding: 3px 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 24px;
}

.tts-speed-btn:hover {
  border-color: var(--gold3);
  color: var(--gold3);
}

.tts-speed-btn.active {
  background: var(--gold-btn);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 2px 6px rgba(169, 111, 18, 0.25);
}

.tts-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 9.5px;
  color: #555;
  font-weight: 600;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  display: inline-block;
  transition: all 0.2s ease;
}

.pulse-dot.speaking {
  background: #f59e0b;
  box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7);
  animation: pulse-ring 1.4s infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 6px rgba(245, 158, 11, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}

.audio-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 14px 0 10px;
  padding: 0 4px;
}

.audio-controls button,
.audio-controls .audio-ctrl-btn {
  border: 0;
  background: transparent;
  cursor: pointer;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  display: grid;
  place-items: center;
  color: #3b3730;
  transition: all 0.2s ease;
  border-radius: 50%;
  flex-shrink: 0;
}

.audio-controls button:hover,
.audio-controls .audio-ctrl-btn:hover {
  color: var(--gold3);
  transform: scale(1.12);
  background: rgba(196, 163, 90, 0.1);
}

.audio-controls .play-btn {
  width: 60px;
  height: 60px;
  min-width: 60px;
  min-height: 60px;
  border-radius: 50%;
  background: var(--gold-btn);
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(169, 111, 18, 0.35);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.audio-controls .play-btn:hover {
  background: var(--gold-btn-hover);
  transform: scale(1.08);
  box-shadow: 0 14px 28px rgba(169, 111, 18, 0.45);
}

.audio-controls .play-btn svg {
  display: block;
}

.audio-chapter-row {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  gap: 6px;
  align-items: center;
  background: #fbf8f2;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 4px;
  margin-top: 4px;
}

.audio-chapter-row button {
  border: 0;
  background: transparent;
  font-size: 22px;
  color: var(--gold3);
  cursor: pointer;
  min-height: 44px;
  min-width: 44px;
  display: grid;
  place-items: center;
}

.audio-chapter-row div {
  display: flex;
  flex-direction: column;
  text-align: center;
}

.audio-chapter-row small {
  font-size: 8.5px;
  color: var(--muted);
  text-transform: uppercase;
}

.audio-chapter-row b {
  font-size: 10.5px;
  color: #171716;
}

.setup-note {
  font-size: 9px;
  color: var(--muted);
  margin: 8px 4px 0;
  text-align: center;
}

/* Card 3: Download list */
.download-list {
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.download-btn {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  background: #ffffff;
  border-radius: 14px;
  padding: 8px 10px;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 52px;
}

.download-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(185, 133, 36, 0.4);
  box-shadow: 0 8px 18px rgba(60, 45, 20, 0.08);
}

.file-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.file-icon.red { background: linear-gradient(135deg, #e54d42, #c02d24); }
.file-icon.green { background: linear-gradient(135deg, #5fb336, #3f871c); }
.file-icon.blue { background: linear-gradient(135deg, #2f8be0, #1966b0); }

.download-btn span:nth-child(2) {
  display: flex;
  flex-direction: column;
}

.download-btn b {
  font-size: 12.5px;
  color: #171716;
}

.download-btn small {
  font-size: 9px;
  color: var(--muted);
  margin-top: 2px;
}

.download-arrow {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  font-size: 14px;
  color: var(--gold3);
  background: #faf7f0;
}

.download-btn.bundle {
  background: linear-gradient(180deg, #fff9ee 0%, #f6e8c7 100%);
  border-color: rgba(185, 133, 36, 0.35);
  margin-top: 6px;
}

.bundle-icon {
  font-size: 26px;
  display: grid;
  place-items: center;
  color: var(--gold3);
}

/* Card 4: Share panel & Quote Rotator */
.share-panel {
  padding: 12px;
  display: flex;
  flex-direction: column;
}

.share-quote-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  gap: 8px;
}

.share-quote-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gold3);
  background: rgba(169, 111, 18, 0.08);
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(215, 170, 75, 0.3);
}

.quote-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 6px rgba(169, 111, 18, 0.6);
  animation: quotePulse 2s infinite ease-in-out;
}

@keyframes quotePulse {
  0%, 100% { opacity: 0.4; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.2); }
}

.quote-nav-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.quote-nav-btn {
  min-width: 44px;
  min-height: 44px;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: #ffffff;
  border-radius: 50%;
  color: #2b2721;
  font-size: 18px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.quote-nav-btn:hover {
  background: var(--gold-btn);
  color: #ffffff;
  border-color: var(--gold);
  transform: scale(1.05);
}

.share-panel blockquote {
  margin: 0;
  padding: 16px;
  background: linear-gradient(90deg, #fff8d6, #fae9a8);
  font-family: 'Playfair Display', serif;
  font-size: 14.5px;
  line-height: 1.5;
  color: #2b2721;
  border-radius: 12px;
  position: relative;
  border: 1px solid rgba(215, 170, 75, 0.4);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.share-panel blockquote.fade-out {
  opacity: 0;
  transform: translateY(4px);
}

.share-panel blockquote:before,
.share-panel blockquote:after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
}

.share-panel blockquote:before { left: -4px; top: -4px; }
.share-panel blockquote:after { right: -4px; bottom: -4px; }

.share-quote-source {
  margin-top: 6px;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  text-align: right;
  font-style: italic;
  padding-right: 4px;
}

.selection-actions {
  display: flex;
  gap: 6px;
  margin: 10px 0;
}

.selection-actions button {
  flex: 1;
  min-height: 44px;
  border: 1px solid var(--line);
  background: #ffffff;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
  color: #3b3730;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.selection-actions button:hover {
  background: #faf6ee;
  border-color: var(--gold2);
  color: var(--gold3);
}

.share-preview {
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px;
  background: #ffffff;
}

.share-preview img {
  width: 50px;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
}

.share-preview div {
  display: flex;
  flex-direction: column;
}

.share-preview b {
  font-size: 11px;
  color: #171716;
}

.share-preview small {
  font-size: 8.5px;
  color: var(--muted);
}

.share-preview p {
  font-size: 8.5px;
  color: #4b453a;
  margin: 3px 0 0;
  line-height: 1.3;
}

.social-row {
  display: flex;
  gap: 6px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 14px;
  width: 100%;
  box-sizing: border-box;
}

.social-btn {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #ffffff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all 0.2s ease;
  color: #332f28;
  flex-shrink: 0;
}

.social-btn svg {
  display: block;
}

.social-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
}

.social-btn.lumina-share-l {
  background: linear-gradient(135deg, #b3182d 0%, #8f0f22 100%) !important;
  color: #ffffff !important;
  font-family: 'Cinzel', 'Montserrat', sans-serif !important;
  font-weight: 900 !important;
  font-size: 16px;
  border: 1.5px solid #d4af37 !important;
  box-shadow: 0 4px 14px rgba(166, 18, 41, 0.45), 0 0 8px rgba(212, 175, 55, 0.3) !important;
}

.social-btn.lumina-share-l:hover {
  background: linear-gradient(135deg, #c71f37 0%, #a01227 100%) !important;
  border-color: #facc15 !important;
  box-shadow: 0 6px 18px rgba(166, 18, 41, 0.6), 0 0 14px rgba(250, 204, 21, 0.5) !important;
  transform: translateY(-2px) scale(1.08);
}

.social-btn.x-btn {
  background: #000000;
  color: #ffffff;
  border: 0;
}

.social-btn.x-btn:hover {
  background: #181818;
  transform: translateY(-2px) scale(1.05);
}

.social-btn.fb-btn:hover {
  border-color: #1877F2;
  color: #1877F2;
}

.social-btn.in-btn:hover {
  border-color: #0A66C2;
  color: #0A66C2;
}

.social-btn.wa-btn:hover {
  border-color: #25D366;
  color: #25D366;
}

.social-btn.link-btn:hover {
  border-color: var(--gold3);
  color: var(--gold3);
}

/* Card 5: Support card */
.support-card {
  overflow: hidden;
}

.support-visual {
  height: 120px;
  border-radius: 16px;
  background: url('/assets/pokonac-goliata-seedling.webp') no-repeat center center / cover;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.15);
  margin-bottom: 8px;
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.support-copy {
  padding: 4px;
}

.support-copy b {
  font-size: 13px;
  color: #171716;
  display: block;
}

.support-copy p {
  font-size: 10.5px;
  line-height: 1.45;
  color: #5a5348;
  margin: 4px 0 10px;
}

.amounts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-bottom: 8px;
}

.amounts button {
  border: 1px solid var(--line);
  background: #ffffff;
  border-radius: 10px;
  min-height: 44px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  color: #3b3730;
}

.amounts button:hover {
  border-color: var(--gold2);
  background: #faf6ee;
}

.amounts button.active {
  background: var(--gold-btn);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(185, 133, 36, 0.25);
}

.support-btn {
  width: 100%;
  margin-top: 4px;
}

.support-benefits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.support-benefits span {
  text-align: center;
  font-size: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.support-benefits small {
  display: block;
  font-size: 8.5px;
  line-height: 1.25;
  color: var(--muted);
  margin-top: 4px;
  font-weight: 600;
}

/* ==========================================================================
   AUTHOR SECTION
   ========================================================================== */
.author-section {
  padding: 20px 0 70px;
}

.author-card {
  padding: 44px 30px;
  text-align: center;
}

.author-card .eyebrow.simple {
  justify-content: center;
  font-size: 12px;
  letter-spacing: 0.35em;
  color: var(--gold3);
}

.author-card h2 {
  font-family: 'Playfair Display', serif;
  font-size: 38px;
  font-weight: 700;
  margin: 10px 0 16px;
  color: #171716;
}

.author-card p {
  max-width: 840px;
  margin: 0 auto 24px;
  color: #4b463d;
  font-size: 17px;
  line-height: 1.75;
}

.author-profile-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold3);
  font-weight: 700;
  font-size: 14px;
  padding: 10px 20px;
  border-radius: 12px;
  background: rgba(185, 133, 36, 0.08);
  border: 1px solid rgba(185, 133, 36, 0.22);
  transition: all 0.2s ease;
  min-height: 44px;
}

.author-profile-link:hover {
  background: var(--gold);
  color: #ffffff;
  transform: translateY(-1px);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 5vw;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.65);
}

.site-footer div {
  display: flex;
  gap: 20px;
  align-items: center;
}

.site-footer b {
  font-family: 'Montserrat', sans-serif;
  letter-spacing: 0.15em;
  font-size: 13px;
}

.site-footer span,
.site-footer a {
  font-size: 12.5px;
  color: var(--muted);
  transition: color 0.2s ease;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.site-footer a:hover {
  color: var(--gold3);
}

/* ==========================================================================
   MODAL: FULL READER
   ========================================================================== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
}

.modal.open {
  display: block;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 16, 10, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.reader-modal {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(1160px, 95vw);
  height: min(820px, 92vh);
  display: grid;
  grid-template-columns: 300px 1fr;
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 35px 80px rgba(0, 0, 0, 0.35);
  background: #ffffff;
}

.modal-close {
  position: absolute;
  right: 18px;
  top: 14px;
  z-index: 20;
  border: 1px solid var(--line);
  background: #ffffff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  display: grid;
  place-items: center;
  color: #332f28;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: all 0.2s ease;
}

.modal-close:hover {
  background: var(--gold3);
  color: #ffffff;
  transform: scale(1.05);
}

.reader-modal-nav {
  padding: 32px 24px;
  background: #f8f3e9;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow-y: auto;
}

.reader-modal-nav b {
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  letter-spacing: 0.12em;
  color: #171716;
  margin-bottom: 4px;
}

.reader-modal-nav small {
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.reader-modal-nav button {
  border: 0;
  background: transparent;
  text-align: left;
  padding: 10px 14px;
  border-radius: 12px;
  cursor: pointer;
  font-size: 12.5px;
  color: #3b3730;
  transition: all 0.15s ease;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.reader-modal-nav button:hover {
  background: #ede0c2;
}

.reader-modal-nav button.active {
  background: #e6d3a3;
  color: #121211;
  font-weight: 700;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.reader-modal-main {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fffdf8;
}

.reader-modal-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 84px 12px 24px;
  border-bottom: 1px solid var(--line);
  background: #ffffff;
  gap: 12px;
}

/* Modal TTS Controls */
.modal-tts-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-tts-play-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--gold-btn);
  color: #ffffff;
  border: 0;
  border-radius: 999px;
  padding: 8px 16px;
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  cursor: pointer;
  min-height: 44px;
  box-shadow: 0 4px 12px rgba(169, 111, 18, 0.25);
  transition: all 0.2s ease;
}

.modal-tts-play-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(169, 111, 18, 0.35);
}

.modal-tts-play-btn.playing {
  background: #1a1917;
  color: #f7d686;
  border: 1px solid var(--gold3);
}

.modal-tts-status {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  max-width: 130px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Clickable paragraphs and active reading highlight */
.tts-paragraph-target {
  cursor: pointer;
  border-left: 4px solid transparent;
  padding-left: 8px;
  border-radius: 4px;
  transition: background 0.25s ease, border-color 0.25s ease, padding 0.25s ease;
}

.tts-paragraph-target:hover {
  background: rgba(212, 163, 62, 0.08);
}

.tts-reading-highlight {
  background: rgba(212, 163, 62, 0.22) !important;
  border-left: 4px solid var(--gold3) !important;
  padding-left: 14px !important;
  border-radius: 6px;
  box-shadow: 0 4px 16px rgba(185, 133, 36, 0.15);
}

.reader-modal-page.theme-dark .tts-reading-highlight {
  background: rgba(247, 214, 134, 0.18) !important;
  border-left: 4px solid #f7d686 !important;
  box-shadow: 0 4px 16px rgba(247, 214, 134, 0.12);
}

.reader-modal-page.theme-sepia .tts-reading-highlight {
  background: rgba(185, 133, 36, 0.22) !important;
  border-left: 4px solid #b98524 !important;
}

.reader-theme-switcher {
  display: flex;
  gap: 6px;
}

.reader-theme-switcher button {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 11px;
  cursor: pointer;
  min-height: 44px;
}

.reader-theme-switcher button.theme-light { background: #ffffff; }
.reader-theme-switcher button.theme-sepia { background: #f4ecd8; }
.reader-theme-switcher button.theme-dark { background: #22201d; color: #fff; }

.reader-font-controls {
  display: flex;
  gap: 8px;
  align-items: center;
}

.reader-font-controls button {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #ffffff;
  cursor: pointer;
  font-weight: 700;
  font-size: 14px;
}

.reader-modal-page {
  padding: 40px 60px 80px;
  overflow-y: auto;
  flex: 1;
}

.reader-modal-page.theme-sepia {
  background: #fbf5e6;
  color: #2e281e;
}

.reader-modal-page.theme-dark {
  background: #1c1a17;
  color: #e5dec9;
}

.reader-modal-page.theme-dark h2,
.reader-modal-page.theme-dark h3 {
  color: #f7d686;
}

.reader-modal-page small {
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--gold3);
  text-transform: uppercase;
  font-weight: 700;
}

.reader-modal-page h2 {
  font-family: 'Playfair Display', serif;
  font-size: 38px;
  font-weight: 700;
  margin: 6px 0 20px;
  color: #171716;
}

.reader-modal-page p {
  font-family: 'Playfair Display', serif;
  font-size: 19px;
  line-height: 1.8;
  color: #36322a;
  margin-bottom: 20px;
}

.reader-modal-page blockquote {
  margin: 24px 0;
  padding: 18px 24px;
  background: rgba(185, 133, 36, 0.08);
  border-left: 4px solid var(--gold);
  border-radius: 0 12px 12px 0;
  font-style: italic;
}

.reader-modal-page .reader-actions {
  display: flex;
  gap: 12px;
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

/* ==========================================================================
   SEARCH MODAL
   ========================================================================== */
.search-modal {
  position: absolute;
  left: 50%;
  top: 15%;
  transform: translateX(-50%);
  width: min(640px, 94vw);
  background: #ffffff;
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.25);
  border: 1px solid var(--line);
}

.search-input-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #faf6ee;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  padding: 4px 16px;
}

.search-input-wrap input {
  flex: 1;
  border: 0;
  background: transparent;
  padding: 12px 0;
  font-size: 16px;
  outline: none;
  font-family: inherit;
}

.search-results {
  margin-top: 16px;
  max-height: 380px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.search-item {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  cursor: pointer;
  transition: all 0.15s ease;
  min-height: 44px;
}

.search-item:hover {
  background: #fbf5e6;
  border-color: var(--gold2);
}

.search-item b {
  font-size: 14px;
  display: block;
  color: #171716;
}

.search-item small {
  font-size: 11px;
  color: var(--muted);
}

/* Floating Back To Top Button */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 1.5rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #11100e;
  border: 1.5px solid var(--gold2);
  color: var(--gold2);
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  z-index: 80;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--gold);
  color: #ffffff;
  transform: translateY(-3px);
}

/* Toast */
.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  background: #1e1b17;
  color: #ffffff;
  padding: 14px 20px;
  border-radius: 14px;
  font-size: 13.5px;
  font-weight: 500;
  opacity: 0;
  transform: translateY(12px);
  transition: all 0.25s ease;
  z-index: 300;
  pointer-events: none;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  border: 1px solid rgba(215, 170, 75, 0.3);
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   RESPONSIVENESS (320px - 1440px)
   ========================================================================== */
@media (max-width: 1360px) {
  .hero {
    grid-template-columns: 340px 1fr;
    gap: 32px;
  }
  .hero-quote {
    display: none;
  }
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .feature-card:nth-child(4) {
    grid-column: span 1;
  }
  .feature-card:nth-child(5) {
    grid-column: span 2;
  }
}

@media (max-width: 1024px) {
  .site-header {
    grid-template-columns: auto 1fr auto;
    gap: 16px;
  }
  .main-nav {
    display: none;
  }
  .mobile-menu-btn {
    display: grid !important;
  }
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 30px;
  }
  .hero-book-wrap {
    max-width: 320px;
    margin: 0 auto;
  }
  .eyebrow, .keywords, .hero-copy h1 {
    justify-content: center;
  }
  .hero-copy h1.hero-title-graphic {
    display: flex;
    justify-content: center;
  }
  .hero-copy h1.hero-title-graphic .title-img {
    max-width: min(440px, 86vw);
    margin: 0 auto;
  }
  .hero-lead {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-ctas, .hero-secondary, .feature-strip {
    margin-left: auto;
    margin-right: auto;
  }
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .feature-card:nth-child(5) {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  .product-grid {
    grid-template-columns: 1fr;
  }
  /* Jedna kolumna: karta ma wysokość treści, bez pustych pól pod przyciskami */
  .feature-card {
    min-height: 0;
  }
  .feature-card:nth-child(5) {
    grid-column: auto;
  }
  .hero-ctas {
    grid-template-columns: 1fr;
  }
  .hero-secondary {
    grid-template-columns: 1fr;
  }
  .feature-strip {
    grid-template-columns: repeat(2, 1fr);
  }
  .reader-modal {
    grid-template-columns: 1fr;
  }
  .reader-modal-nav {
    display: none;
  }
  .reader-modal-toolbar {
    padding: 10px 76px 10px 14px;
    flex-wrap: wrap;
    gap: 8px;
  }
  .reader-modal-page {
    padding: 30px 20px;
  }
  .site-footer {
    flex-direction: column;
    gap: 14px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .reader-modal-toolbar {
    padding: 10px 76px 10px 14px;
  }
  .modal-tts-status {
    display: none;
  }
  .reader-modal-toolbar #readerProgressInfo {
    display: none;
  }
  .brand-copy small {
    display: none;
  }
  .brand-copy strong {
    font-size: 11px;
  }
  .hero-copy h1 .title-black,
  .hero-copy h1 .title-gold {
    font-size: 42px;
  }
  .hero-copy h1.hero-title-graphic .title-img {
    max-width: min(310px, 86vw);
  }
  .hero-subtitle {
    font-size: 13px;
    letter-spacing: 0.16em;
  }
  .keywords {
    font-size: 11px;
    gap: 10px;
  }
  .amounts {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ==========================================================================
   POPRAWKI 2026-10-06
   ========================================================================== */
/* Pakiet ZIP — jeszcze nieopublikowany */
.download-btn.is-soon {
  grid-template-columns: 44px 1fr auto;
  cursor: default;
  opacity: 0.72;
}
.download-btn.is-soon:hover {
  transform: none;
  box-shadow: none;
  border-color: var(--line);
}
.download-soon-badge {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #8a6a1f;
  background: rgba(212, 175, 55, 0.16);
  white-space: nowrap;
}

/* Nagłówek na telefonie: przycisk logowania mieści się w ekranie */
.site-header .brand,
.site-header .header-actions {
  min-width: 0;
}
@media (max-width: 480px) {
  .site-header .header-actions {
    gap: 8px;
  }
  .site-header .header-actions .cc-auth-google-btn .cc-auth-lumina-tag {
    display: none;
  }
  .site-header .header-actions .cc-auth-google-btn {
    padding: 6px 12px 6px 10px;
  }
}

/* Skip link (dostępność klawiatury) */
.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 12px;
  background: #171716;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 12px;
}

/* Widoczny fokus dla klawiatury */
a:focus-visible,
button:focus-visible,
input:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 10px;
}

/* Sekcje nie chowają się pod przyklejonym nagłówkiem */
main [id],
#autor {
  scroll-margin-top: 96px;
}

/* Przycisk menu — widoczny tylko na tablecie i telefonie */
.mobile-menu-btn {
  display: none;
}
.mobile-menu-btn .mm-line {
  transition: transform 0.25s ease, opacity 0.2s ease;
  transform-origin: 12px 12px;
}
.site-header.nav-open .mobile-menu-btn .mm-1 {
  transform: translateY(5px) rotate(45deg);
}
.site-header.nav-open .mobile-menu-btn .mm-2 {
  opacity: 0;
}
.site-header.nav-open .mobile-menu-btn .mm-3 {
  transform: translateY(-5px) rotate(-45deg);
}

@media (max-width: 1024px) {
  .site-header.nav-open .main-nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    position: absolute;
    top: calc(100% + 8px);
    left: 12px;
    right: 12px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow-hover);
    font-size: 16px;
    max-height: calc(100vh - 110px);
    overflow-y: auto;
  }
  .site-header.nav-open .main-nav a {
    padding: 12px 14px;
    border-radius: 12px;
  }
  .site-header.nav-open .main-nav a:after {
    display: none;
  }
  .site-header.nav-open .main-nav a:hover,
  .site-header.nav-open .main-nav a.active {
    background: rgba(212, 175, 55, 0.12);
  }
}

/* Narzędzia mini-czytnika: cel dotyku min. 44 px */
.mini-tool-btn {
  min-width: 44px;
  min-height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-weight: 700;
  font-size: 14px;
  color: inherit;
  border-radius: 10px;
}
.mini-tool-btn:hover {
  background: rgba(212, 175, 55, 0.12);
}

/* Czytnik: przełączanie rozdziałów */
.reader-chapter-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 36px;
}
.reader-chapter-nav button {
  flex: 1 1 0;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  line-height: 1.25;
}
.reader-chapter-nav button[disabled] {
  opacity: 0.4;
  cursor: default;
  pointer-events: none;
}
@media (max-width: 480px) {
  .reader-chapter-nav {
    flex-direction: column-reverse;
  }
}


/* Lektor niedostępny */
.play-btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}

/* Ograniczony ruch: bez animacji i efektu 3D */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Lżejsze tło hero na telefonach */
@media (max-width: 768px) {
  .hero-bg-canvas {
    background-image: url('/assets/pokonac-goliata-hero-bg-960.webp');
  }
}

/* Nagłówek: okrągłe przyciski + logowanie zredukowane do ikony i słowa „Zaloguj” */
.site-header .icon-btn {
  flex: 0 0 44px;
  width: 44px;
  min-width: 44px;
  height: 44px;
  padding: 0;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
}
.site-header .header-actions .cc-auth-google-btn .cc-auth-lumina-tag,
.site-header .header-actions .cc-auth-google-btn span.cc-auth-btn-text-full {
  display: none !important;
}
.site-header .header-actions .cc-auth-google-btn span.cc-auth-btn-text-short {
  display: inline !important;
}
.site-header .header-actions .cc-auth-google-btn {
  flex: 0 0 auto;
}
@media (max-width: 380px) {
  .site-header {
    gap: 8px;
    padding-left: 12px;
    padding-right: 12px;
  }
  .site-header .header-actions {
    gap: 6px;
  }
  .site-header .brand-copy strong {
    font-size: 10px;
    letter-spacing: 0.06em;
  }
  .site-header .header-actions .cc-auth-google-btn {
    padding: 6px 10px 6px 8px !important;
    gap: 6px !important;
  }
}
@media (max-width: 340px) {
  .site-header {
    gap: 6px;
    padding-left: 10px;
    padding-right: 10px;
  }
  .site-header .brand-copy strong {
    letter-spacing: 0;
  }
  .site-header .icon-btn {
    flex-basis: 40px;
    width: 40px;
    min-width: 40px;
    height: 40px;
  }
  .site-header .header-actions {
    gap: 4px;
  }
}

/* ==========================================================================
   v15 — poprawki wizualne (6.10.2026)
   ========================================================================== */
/* Siatka kart: 5 kolumn było za wąskie (ucinało czytnik, lektor i spis treści).
   Na komputerze zawsze 3 kolumny: 1–3 w pierwszym rzędzie, 4 + szeroka 5 w drugim. */
@media (min-width: 1025px) {
  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
  }
  .feature-card:nth-child(4) { grid-column: span 1; }
  .feature-card:nth-child(5) { grid-column: span 2; }
}

/* Duży, wyraźny cudzysłów w cytacie hero */
.hero-quote {
  padding: 34px 28px 26px;
  margin-top: 46px;
}
.hero-quote:before {
  content: "\201C";
  top: -58px;
  left: 18px;
  font-size: 132px;
  line-height: 1;
  font-weight: 700;
  color: var(--gold2);
  opacity: 0.9;
  text-shadow: 0 6px 18px rgba(169, 111, 18, 0.18);
  pointer-events: none;
}
.hero-quote blockquote {
  margin-top: 18px;
  font-size: 20px;
  line-height: 1.55;
}

/* Lektor: tempo i status nie wychodzą poza kartę */
.tts-settings-row {
  flex-wrap: wrap;
  gap: 6px 10px;
}
.tts-speed-selector { flex-wrap: nowrap; }
.tts-indicator {
  min-width: 0;
  flex: 1 1 auto;
  justify-content: flex-end;
  text-align: right;
  line-height: 1.3;
}
#ttsStatusText { overflow-wrap: anywhere; }

/* Spis treści czytnika: pełne nazwy rozdziałów, bez ucinania */
.reader-preview aside button {
  white-space: normal;
  overflow-wrap: anywhere;
  hyphens: auto;
  text-align: left;
  line-height: 1.25;
}
.reader-page h3 {
  overflow-wrap: anywhere;
  hyphens: auto;
}

/* Cytat w karcie Udostępnij: nie wychodzi poza ramkę */
#shareQuote {
  overflow-wrap: break-word;
  hyphens: auto;
}

/* Telefon */
@media (max-width: 480px) {
  .hero-quote { margin-top: 52px; }
  .hero-quote:before { font-size: 112px; top: -50px; }
  .hero-quote blockquote { font-size: 18px; }
  .tts-indicator { flex-basis: 100%; justify-content: center; text-align: center; }
}

/* Pasek pod podglądem czytnika: zawija się zamiast ucinać przyciski */
.reader-page .progress-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 8px;
}
.reader-page .progress-row > div { gap: 2px !important; margin-left: auto; }
@media (min-width: 1025px) and (max-width: 1280px) {
  .reader-page .mini-tool-btn { min-width: 36px; min-height: 40px; }
}
.hero-quote:before { top: -48px; }
