@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/plus-jakarta-sans-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0100-024F, U+1E00-1EFF;
}

@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/plus-jakarta-sans-latin-ext-500-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0100-024F, U+1E00-1EFF;
}

@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/plus-jakarta-sans-latin-ext-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0100-024F, U+1E00-1EFF;
}

@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/plus-jakarta-sans-latin-ext-700-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0100-024F, U+1E00-1EFF;
}

:root {
  --red: #c41e24;
  --red-dark: #9e181d;
  --red-soft: #fce8e9;
  --ink: #121212;
  --muted: #5a5a5a;
  --line: #e6e6e6;
  --bg: #ffffff;
  --surface: #f7f7f8;
  --display: "Plus Jakarta Sans", system-ui, sans-serif;
  --sans: "Plus Jakarta Sans", system-ui, sans-serif;
  --container: min(1180px, 92vw);
  --radius: 16px;
  --radius-pill: 999px;
  --shadow: 0 16px 48px rgba(18, 18, 18, 0.08);
  --shadow-soft: 0 8px 24px rgba(196, 30, 36, 0.12);
  /* wysokość .site-header (marquee + pasek + kategorie); nadpisywana w JS */
  --site-header-h: 8.5rem;
}

[hidden] {
  display: none !important;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

.container {
  width: var(--container);
  margin-inline: auto;
}

.quote-bar {
  background: linear-gradient(90deg, var(--red-dark), var(--red));
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  padding: 0.5rem 0;
  overflow: hidden;
}

.quote-bar__viewport {
  width: 100%;
  overflow: hidden;
}

.quote-bar__text {
  display: flex;
  width: max-content;
  margin: 0;
  gap: 4rem;
  white-space: nowrap;
  animation: quote-marquee 50s linear infinite;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
}

@keyframes quote-marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
}

.header-bar {
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  font-weight: 700;
  flex-shrink: 0;
}

.brand img,
.brand-logo {
  border-radius: 0;
  object-fit: contain;
}

.brand-text {
  font-size: 0.9rem;
  max-width: 10rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.header-bar__inner {
  width: var(--container);
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 68px;
  max-height: 72px;
  padding: 0.35rem 0;
  position: relative;
}

.header-bar__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.55rem 1rem;
  margin-left: auto;
}

.header-bar__link {
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.header-bar__link:hover,
.header-bar__link.is-active {
  color: var(--red);
}

.header-action {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 0;
  background: transparent;
  padding: 0.2rem 0.35rem;
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.header-action__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  flex-shrink: 0;
}

.header-action:hover,
.header-action.is-active {
  color: var(--red);
}

.header-bar__purchase.btn-primary {
  color: #fff;
  padding: 0.55rem 1.05rem;
  font-size: 0.82rem;
  letter-spacing: normal;
  text-transform: none;
  gap: 0.45rem;
}

.header-bar__purchase.btn-primary:hover {
  color: #fff;
}

.header-bar__purchase.btn-primary .icon-access {
  color: #fff;
}

.header-categories {
  background: var(--surface);
  border-top: 1px solid rgba(0, 0, 0, 0.04);
  border-bottom: 1px solid var(--line);
}

.header-categories__inner {
  width: var(--container);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.25rem clamp(0.75rem, 2.5vw, 1.75rem);
  padding: 0.6rem 0;
}

.header-categories a {
  text-decoration: none;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0.35rem 0.1rem;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.header-categories a:hover {
  color: var(--red-dark);
}

.header-categories a.is-active {
  color: var(--red);
  border-bottom-color: var(--red);
}

.detail-page__audio {
  width: 100%;
  max-width: 640px;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  border: 0;
  background: transparent;
  width: 44px;
  height: 44px;
  padding: 0;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
  margin: 6px 8px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border-radius: var(--radius-pill);
  padding: 0.65rem 1.25rem;
  font-weight: 600;
  font-family: inherit;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  font-size: 0.88rem;
  white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
  box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
  background: var(--red-dark);
}

.btn-outline {
  background: #fff;
  border-color: var(--line);
  color: var(--ink);
}

.btn-secondary {
  background: #f5f5f5;
  border-color: var(--line);
}

.btn-hero {
  background: #fff;
  color: var(--red-dark);
  border-color: #fff;
  padding: 0.75rem 1.4rem;
  font-size: 0.9rem;
}

.btn-hero:hover {
  background: var(--red-soft);
}

.btn-hero-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
}

.btn-hero-outline:hover {
  background: rgba(255, 255, 255, 0.1);
}

.lead {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 52ch;
}

.hero-banner {
  position: relative;
  min-height: calc(100dvh - var(--site-header-h));
  min-height: calc(100svh - var(--site-header-h));
  overflow: hidden;
  isolation: isolate;
}

.hero-banner__visual {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-banner__visual img,
.hero-banner__bg-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.02);
}

.hero-banner__shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    102deg,
    rgba(8, 4, 5, 0.82) 0%,
    rgba(18, 6, 8, 0.72) 38%,
    rgba(48, 10, 14, 0.52) 62%,
    rgba(10, 8, 10, 0.62) 100%
  );
}

.hero-banner__layout {
  position: relative;
  z-index: 2;
  width: var(--container);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 340px);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: end;
  padding: clamp(2rem, 4vh, 3rem) 0 clamp(2.5rem, 5vw, 3.5rem);
  min-height: calc(100dvh - var(--site-header-h));
  min-height: calc(100svh - var(--site-header-h));
  box-sizing: border-box;
}

.hero-banner__content {
  align-self: center;
  padding-top: 0.5rem;
}

.hero-banner__eyebrow {
  margin: 0 0 0.85rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

.hero-banner h1 {
  margin: 1.25rem 0 1rem;
  font-family: var(--display);
  font-weight: 700;
  color: #fff;
}

.hero-banner__title-line {
  display: block;
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  line-height: 1.14;
  letter-spacing: -0.03em;
}

.hero-banner__title-line--soft {
  font-weight: 600;
  font-size: clamp(1.65rem, 3.4vw, 2.5rem);
  color: rgba(255, 255, 255, 0.88);
  margin-top: 0.55rem;
  line-height: 1.18;
}

.hero-banner__lead {
  margin: 0 0 0.25rem;
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.86);
  max-width: min(100%, 68ch);
}

.hero-banner__scripture-refs {
  margin: 0 0 1.1rem;
}

.scripture-ref--hero {
  margin: 0 0 0.45rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: none;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.94);
}

.scripture-ref--hero.scripture-ref--wujka {
  margin-bottom: 0;
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
}

.video-audio-toggle {
  position: absolute;
  z-index: 3;
  right: clamp(0.75rem, 2vw, 1.25rem);
  bottom: clamp(0.75rem, 2vw, 1.25rem);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(8, 4, 5, 0.55);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  backdrop-filter: blur(10px);
}

.video-audio-toggle:hover {
  background: rgba(8, 4, 5, 0.72);
}

.video-audio-toggle.is-unmuted .icon-volume--muted {
  display: none;
}

.video-audio-toggle.is-unmuted .icon-volume--on {
  display: block;
}

.video-audio-toggle:not(.is-unmuted) .icon-volume--on {
  display: none;
}

.video-audio-toggle__label {
  letter-spacing: 0.02em;
}

.hero-banner__quote p em {
  font-style: italic;
  font-weight: 500;
}

.hero-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.hero-banner__quote {
  margin: 0;
  padding: 1.15rem 1.25rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(14px);
  color: rgba(255, 255, 255, 0.94);
  font-size: 0.95rem;
  line-height: 1.55;
  position: relative;
}

.hero-banner__quote p {
  margin: 0;
}

.hero-banner__quote-mark {
  position: absolute;
  top: 0.35rem;
  right: 0.85rem;
  font-size: 2.5rem;
  line-height: 1;
  color: rgba(255, 255, 255, 0.35);
  font-family: var(--display);
}

.section {
  padding: 3rem 0;
  overflow: visible;
}

.section-tight {
  padding: 2rem 0 2rem;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.section-head h2 {
  font-family: var(--display);
  font-size: clamp(1.5rem, 2.5vw, 1.85rem);
  letter-spacing: -0.02em;
  margin: 0;
  font-weight: 700;
}

.section-link {
  color: var(--red);
  font-weight: 600;
  text-decoration: none;
}

.carousel-band {
  display: grid;
  grid-template-columns: auto min(var(--container), 92vw) auto;
  align-items: center;
  justify-content: center;
  column-gap: 0.65rem;
  width: 100%;
  margin-top: -0.25rem;
}

.carousel-band__content {
  grid-column: 2;
  min-width: 0;
  width: 100%;
}

.carousel {
  --carousel-cols: 4;
  --carousel-gap: 0.85rem;
}

.carousel-viewport {
  min-width: 0;
  overflow: visible;
}

.carousel-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc(
    (100% - (var(--carousel-cols) - 1) * var(--carousel-gap)) / var(--carousel-cols)
  );
  gap: var(--carousel-gap);
  overflow-x: auto;
  overflow-y: visible;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 0 0 0.25rem;
  scroll-padding-inline: 2px;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

.carousel-slide {
  scroll-snap-align: start;
  min-width: 0;
}

.carousel-slide a.content-card {
  height: 100%;
  box-shadow: none;
}

.carousel-slide .content-card__body {
  padding: 0.75rem 0.85rem 0.9rem;
  min-height: 5rem;
}

.carousel-slide .content-card__body h3 {
  font-size: 0.95rem;
}

.carousel-btn {
  flex: 0 0 2.5rem;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow);
  cursor: pointer;
  font-size: 1.35rem;
  line-height: 1;
  color: var(--red);
  display: grid;
  place-items: center;
  transition: border-color 0.15s ease, background 0.15s ease;
  justify-self: center;
}

.carousel-band > .carousel-btn--prev {
  grid-column: 1;
}

.carousel-band > .carousel-btn--next {
  grid-column: 3;
}

.carousel-btn:hover {
  border-color: rgba(196, 30, 36, 0.45);
  background: #fffafa;
}

a.content-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  height: 100%;
  box-shadow: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}

a.content-card:hover {
  border-color: rgba(196, 30, 36, 0.2);
  background: #fffafa;
}

.content-card__media {
  position: relative;
  aspect-ratio: 2 / 3;
  background: #f3f3f3;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.content-card__media--fallback {
  background: #0c0c0c;
}

.content-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.45s ease;
}

a.content-card:hover .content-card__media img {
  transform: scale(1.06);
}

.content-card__media--fallback .content-card__fallback-logo {
  width: 38%;
  max-width: 7rem;
  height: auto;
  object-fit: contain;
  opacity: 0.92;
}

.content-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 0.85rem 1rem 1rem;
  min-height: 5.25rem;
}

.content-card__body h3 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.35;
}

.content-card__action {
  margin-top: auto;
  padding-top: 0.65rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--red);
  line-height: 1.2;
}

.content-card__play {
  flex-shrink: 0;
}

.content-card__badge {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  z-index: 2;
  margin: 0;
  padding: 0.35rem 0.55rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1.2;
  border-radius: 4px;
  max-width: calc(100% - 1rem);
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.22);
}

.content-card__badge--in-package,
.content-card__badge--buy {
  background: var(--red);
  color: #fff;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
  align-items: start;
}

.card-grid--landscape {
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.35rem;
}

.content-card--landscape .content-card__media {
  aspect-ratio: 16 / 9;
}

.content-card--landscape .content-card__media img {
  object-fit: cover;
}

.carousel--landscape {
  --carousel-cols: 2.35;
}

@media (min-width: 900px) {
  .carousel--landscape {
    --carousel-cols: 3;
  }
}

.section.section--bylem {
  margin-top: 0;
  margin-bottom: 0;
  padding: clamp(2.75rem, 5vw, 3.75rem) 0 clamp(3.5rem, 7vw, 5rem);
  background: linear-gradient(
    180deg,
    #fafafa 0%,
    #fdf3f3 22%,
    #fae8e9 52%,
    #f5d8da 82%,
    #f0ccd0 100%
  );
  border-top: 1px solid rgba(196, 30, 36, 0.07);
}

.section--bylem .section-head h2 {
  color: inherit;
}

.section--bylem .carousel-band {
  margin-top: 0.35rem;
  padding-bottom: 0.25rem;
}

main:has(> .section--bylem:last-child) ~ .site-footer {
  margin-top: 0;
}

.featured-strip {
  position: relative;
  min-height: min(78dvh, 820px);
  overflow: hidden;
  margin: 0;
}

.featured-strip--scripture {
  min-height: 0;
}

.featured-strip__visual {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.featured-strip__visual img,
.featured-strip__bg-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.02);
}

.featured-strip__shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    102deg,
    rgba(8, 4, 5, 0.84) 0%,
    rgba(18, 6, 8, 0.74) 38%,
    rgba(48, 10, 14, 0.55) 62%,
    rgba(10, 8, 10, 0.68) 100%
  );
}

.featured-strip--reverse .featured-strip__shade,
.featured-strip--scripture .featured-strip__shade {
  background: linear-gradient(
    102deg,
    rgba(8, 4, 5, 0.84) 0%,
    rgba(18, 6, 8, 0.74) 38%,
    rgba(48, 10, 14, 0.55) 62%,
    rgba(10, 8, 10, 0.68) 100%
  );
}

.featured-strip__layout {
  position: relative;
  z-index: 2;
  width: var(--container);
  margin-inline: auto;
  min-height: min(78dvh, 820px);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: clamp(3rem, 8vh, 5rem) 0;
  box-sizing: border-box;
}

.featured-strip--scripture .featured-strip__layout {
  min-height: auto;
  align-items: center;
  padding: clamp(2.75rem, 5vh, 3.75rem) 0;
}

.featured-strip__copy {
  max-width: min(62ch, 100%);
  text-align: left;
  color: rgba(255, 255, 255, 0.92);
}

.featured-strip--scripture .featured-strip__copy {
  width: 70%;
  max-width: 70%;
}

.featured-strip__copy h2 {
  margin: 0 0 1.75rem;
  font-family: var(--display);
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  letter-spacing: -0.03em;
  font-weight: 700;
  color: #fff;
}

.featured-strip__prose {
  max-width: 58ch;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.75;
  text-align: left;
  font-size: clamp(0.98rem, 1.35vw, 1.08rem);
}

.featured-strip--scripture .featured-strip__prose {
  max-width: none;
  line-height: 1.7;
}

.featured-strip__prose p {
  margin: 0 0 1.25rem;
}

.featured-strip__prose p:last-child {
  margin-bottom: 0;
}

.featured-strip__prose blockquote {
  margin: 1.85rem 0;
  padding: 1.35rem 1.45rem;
  border-left: 3px solid rgba(255, 255, 255, 0.45);
  background: rgba(0, 0, 0, 0.22);
  border-radius: 0 12px 12px 0;
}

.featured-strip__prose blockquote p {
  margin: 0;
  font-size: clamp(1.05rem, 1.6vw, 1.22rem);
  line-height: 1.55;
  color: #fff;
  font-weight: 600;
}

.featured-strip__prose h3,
.featured-strip__prose .scripture-ref {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
  margin: 0 0 0.75rem;
}

.featured-strip__prose .scripture-ref {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.featured-strip__prose .scripture-ref--wujka {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0.02em;
  color: #fff;
}

.featured-strip__prose .scripture-ref--wujka strong {
  font-weight: 700;
}

.featured-strip__prose .scripture-pull {
  color: #fff;
  font-weight: 600;
  font-size: 1.2rem;
  line-height: 1.45;
}

.archive-hero {
  position: relative;
  min-height: 200px;
  max-height: 240px;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.archive-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.archive-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.archive-hero__bg--mosaic {
  display: flex;
  flex-direction: row;
}

.archive-hero__tile {
  flex: 1 1 0;
  min-width: 0;
  height: 100%;
}

.archive-hero__fallback {
  width: 100%;
  height: 100%;
  background: linear-gradient(115deg, #2a2a2a 0%, #5c5c5c 45%, #3d3d3d 100%);
}

.archive-hero__shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    95deg,
    rgba(12, 4, 5, 0.88) 0%,
    rgba(196, 30, 36, 0.72) 55%,
    rgba(196, 30, 36, 0.45) 100%
  );
}

.archive-hero__inner {
  position: relative;
  z-index: 2;
  padding: 2rem 0;
}

.archive-hero h1 {
  margin: 0;
  color: #fff;
  font-family: var(--display);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  letter-spacing: -0.03em;
  font-weight: 700;
}

.home-video,
.mass-video {
  width: 100%;
  border-radius: var(--radius);
  background: #000;
  box-shadow: var(--shadow);
}

.video-placeholder {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}

.video-placeholder p {
  position: absolute;
  inset: auto 0 0;
  margin: 0;
  padding: 0.75rem 1rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.65));
  color: #fff;
  font-size: 0.9rem;
}

.video-copy h2 {
  font-family: var(--display);
  letter-spacing: -0.02em;
  margin-top: 0;
}

.scripture-ref {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.scripture-pull {
  font-family: var(--display);
  font-size: 1.35rem;
  line-height: 1.45;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.scripture-pull em {
  font-style: normal;
  border-bottom: 3px solid var(--red);
}

.prose p {
  margin: 0 0 1rem;
}

.audiobooks-series-block {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.audiobooks-series-block__title {
  margin: 0 0 1.25rem;
  font-family: var(--display);
  font-size: 1.65rem;
  letter-spacing: -0.02em;
}

.coming-soon {
  margin: 0.5rem 0 0;
  padding: 1.35rem 1.25rem;
  text-align: center;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(18, 18, 18, 0.03) 0%, rgba(18, 18, 18, 0.015) 100%);
  border: 1px solid rgba(18, 18, 18, 0.06);
}

.coming-soon__label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(18, 18, 18, 0.42);
}

.empty-state {
  color: var(--muted);
  padding: 2rem;
  text-align: center;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}

.site-footer {
  margin-top: 3rem;
  padding: 3rem 0 1.5rem;
  background: #0c0c0d;
  color: #c8c8c8;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-shell {
  width: var(--container);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(260px, 1.1fr) minmax(0, 1.4fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.footer-logo {
  object-fit: contain;
  margin-bottom: 0.75rem;
}

.footer-name {
  margin: 0;
  font-weight: 700;
  color: #fff;
  font-size: 1rem;
}

.footer-tagline {
  margin: 0.25rem 0 1.25rem;
  color: #9a9a9a;
  font-size: 0.9rem;
}

.footer-address {
  margin: 0.5rem 0 0;
  font-size: 0.85rem;
  color: #888;
  line-height: 1.45;
}

.footer-links-block {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.site-footer h3 {
  margin: 0 0 0.85rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #fff;
  font-weight: 600;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer li {
  margin: 0.35rem 0;
}

.site-footer a {
  color: #b8b8b8;
  text-decoration: none;
  font-size: 0.92rem;
}

.site-footer a:hover {
  color: #fff;
}

.footer-contact a {
  font-weight: 500;
}

.footer-copy {
  width: var(--container);
  margin: 2rem auto 0;
  font-size: 0.78rem;
  color: #666;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1rem;
}

.about-mast {
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, var(--red-soft) 0%, #fff 100%);
}

.about-mast__inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 2rem 0 1.75rem;
}

.about-mast__logo {
  object-fit: contain;
  flex-shrink: 0;
}

.about-mast h1 {
  margin: 0;
  font-size: clamp(1.85rem, 3.5vw, 2.6rem);
  letter-spacing: -0.035em;
  font-weight: 700;
  line-height: 1.05;
}

.about-mast__tag {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.about-page {
  padding: 2rem 0 3.5rem;
}

.about-lead {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(220px, 0.9fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line);
}

.about-mission__text p {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 62ch;
}

.about-mission__text p:last-child {
  margin-bottom: 0;
}

.about-facts {
  margin: 0;
  display: grid;
  gap: 0.85rem;
  align-content: start;
}

.about-facts div {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 0.65rem;
  font-size: 0.9rem;
  line-height: 1.4;
}

.about-facts dt {
  margin: 0;
  color: var(--muted);
  font-weight: 500;
}

.about-facts dd {
  margin: 0;
  color: var(--ink);
  font-weight: 600;
}

.about-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  padding-top: 1.75rem;
}

.about-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
}

.about-chip:hover {
  border-color: var(--red);
  color: var(--red);
}

.about-chip--muted {
  color: var(--muted);
  cursor: default;
}

.about-chip--muted:hover {
  border-color: var(--line);
  color: var(--muted);
}

.icon-download {
  flex-shrink: 0;
}

.page-hero {
  padding: 2.5rem 0 1rem;
}

.page-hero h1 {
  font-family: var(--display);
  letter-spacing: -0.03em;
  font-weight: 700;
  margin: 0;
}

.detail-page {
  padding: 2.5rem 0 3rem;
}

.detail-page__inner {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
}

.detail-page__head {
  text-align: center;
  margin-bottom: 1.25rem;
}

.detail-page__head h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.65rem, 4vw, 2.35rem);
  letter-spacing: -0.03em;
  font-weight: 700;
  line-height: 1.15;
}

.detail-page__figure {
  margin: 0 0 1.75rem;
  text-align: center;
}

.detail-page__figure img {
  width: 100%;
  max-height: 460px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.detail-page__prose,
.detail-page__lead {
  text-align: justify;
  line-height: 1.7;
  color: var(--ink);
}

.detail-page__lead {
  margin-bottom: 1.25rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.detail-page__prose p,
.detail-page__lead p,
.article-body p {
  text-align: justify;
}

.detail-page__media-block {
  margin-top: 2rem;
}

.detail-page__video {
  width: 100%;
  border-radius: var(--radius);
  background: #000;
  box-shadow: var(--shadow);
}

.detail-page--player {
  padding: clamp(1.5rem, 4vw, 2.5rem) 0 3rem;
}

.detail-page__inner--player {
  max-width: 920px;
}

.audio-player {
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: clamp(1.25rem, 3vw, 1.75rem);
  background: #fff;
  box-shadow: 0 24px 64px rgba(18, 18, 18, 0.07);
}

.audio-player__layout {
  display: grid;
  grid-template-columns: minmax(200px, 280px) minmax(0, 1fr);
  gap: clamp(1.25rem, 3vw, 2rem);
  align-items: stretch;
}

.audio-player__art-wrap {
  border-radius: 20px;
  overflow: hidden;
  background: var(--surface);
  aspect-ratio: 1;
  box-shadow: 0 16px 40px rgba(18, 18, 18, 0.1);
}

.audio-player__art {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.audio-player__panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  gap: 1rem;
}

.audio-player__series {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.audio-player__title {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.ap-progress-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.ap-progress {
  padding: 0.35rem 0;
  cursor: pointer;
  touch-action: none;
}

.ap-progress__rail {
  position: relative;
  height: 6px;
  border-radius: var(--radius-pill);
  background: #ececef;
  overflow: hidden;
}

.ap-progress__fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--red-dark), var(--red));
  transition: width 0.08s linear;
}

.ap-times {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.audio-player__controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.25rem;
}

.audio-player__transport {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.ap-btn {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.15s ease, transform 0.12s ease, color 0.15s ease;
}

.ap-btn:hover {
  background: #eee;
}

.ap-btn--play {
  width: 56px;
  height: 56px;
  background: var(--red);
  color: #fff;
  box-shadow: 0 12px 28px rgba(196, 30, 36, 0.35);
}

.ap-btn--play:hover {
  background: var(--red-dark);
  color: #fff;
}

.ap-btn--play.is-playing {
  background: var(--ink);
  box-shadow: 0 12px 28px rgba(18, 18, 18, 0.2);
}

.ap-btn--ghost {
  background: transparent;
  width: 40px;
  height: 40px;
}

.ap-speed {
  display: inline-flex;
  padding: 4px;
  gap: 2px;
  background: var(--surface);
  border-radius: var(--radius-pill);
}

.ap-speed__btn {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.4rem 0.65rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s ease, color 0.15s ease;
}

.ap-speed__btn:hover {
  color: var(--ink);
}

.ap-speed__btn.is-active {
  background: #fff;
  color: var(--red);
  box-shadow: 0 2px 8px rgba(18, 18, 18, 0.08);
}

.ap-volume {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1 1 120px;
  min-width: 100px;
  max-width: 160px;
}

.ap-volume__track {
  flex: 1;
  height: 6px;
  border-radius: var(--radius-pill);
  background: #ececef;
  position: relative;
  cursor: pointer;
  touch-action: none;
}

.ap-volume__fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 100%;
  border-radius: inherit;
  background: var(--red);
  pointer-events: none;
}

.audio-player__tracks {
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.audio-player__tracks-head {
  margin: 0 0 0.85rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.audio-playlist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.playlist-item {
  width: 100%;
  text-align: left;
  border: 1px solid transparent;
  background: var(--surface);
  padding: 0.85rem 1rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.85rem;
  cursor: pointer;
  font-family: inherit;
  border-radius: 14px;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.playlist-item:hover {
  border-color: rgba(196, 30, 36, 0.2);
  background: #fff;
}

.playlist-item.is-active {
  border-color: rgba(196, 30, 36, 0.35);
  background: #fff;
  box-shadow: 0 8px 24px rgba(196, 30, 36, 0.08);
}

.playlist-num {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.playlist-item.is-active .playlist-num {
  color: var(--red);
}

.playlist-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
}

.playlist-play {
  color: var(--red);
  opacity: 0;
  transition: opacity 0.15s ease;
}

.playlist-item.is-active .playlist-play,
.playlist-item:hover .playlist-play {
  opacity: 1;
}

/* ——— PWA app shell (/app/*) ——— */
.app-shell {
  --app-inset-x: max(1.25rem, 4vw);
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.app-main {
  flex: 1;
  min-width: 0;
  width: 100%;
  padding-left: max(var(--app-inset-x), env(safe-area-inset-left, 0px));
  padding-right: max(var(--app-inset-x), env(safe-area-inset-right, 0px));
  padding-bottom: calc(4.75rem + env(safe-area-inset-bottom, 0px));
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: max(var(--app-inset-x), env(safe-area-inset-left, 0px));
  padding-right: max(var(--app-inset-x), env(safe-area-inset-right, 0px));
  padding-top: max(0.65rem, env(safe-area-inset-top, 0px));
  padding-bottom: 0.65rem;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.app-header__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.02em;
}

.app-header__name {
  max-width: 12rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: 2.75rem 1fr 2.75rem;
  align-items: center;
  gap: 0.25rem;
  padding-left: max(var(--app-inset-x), env(safe-area-inset-left, 0px));
  padding-right: max(var(--app-inset-x), env(safe-area-inset-right, 0px));
  padding-top: max(0.55rem, env(safe-area-inset-top, 0px));
  padding-bottom: 0.55rem;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.app-topbar__back {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  color: var(--ink);
  text-decoration: none;
}

.app-topbar__back:hover {
  background: var(--surface);
}

.app-topbar__title {
  margin: 0;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0;
  padding-top: 0.35rem;
  padding-left: max(var(--app-inset-x), env(safe-area-inset-left, 0px));
  padding-right: max(var(--app-inset-x), env(safe-area-inset-right, 0px));
  padding-bottom: calc(0.45rem + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 32px rgba(18, 18, 18, 0.06);
}

.app-tabbar__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  padding: 0.45rem 0.5rem;
  border-radius: 12px;
  text-decoration: none;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--muted);
  transition: color 0.15s ease, background 0.15s ease;
}

.app-tabbar__item svg {
  opacity: 0.65;
}

.app-tabbar__item.is-active {
  color: var(--red);
  background: var(--red-soft);
}

.app-tabbar__item.is-active svg {
  opacity: 1;
}

.app-page {
  width: 100%;
  max-width: 40rem;
  margin-inline: auto;
  padding: 0 0 1rem;
}

.app-page-head {
  padding: 0.35rem 0 1rem;
  text-align: center;
}

.app-page-head h1 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.app-shell .detail-page {
  padding: 0.5rem 0 1rem;
}

.app-shell .detail-page__inner,
.app-shell .detail-page__inner--player {
  width: 100%;
  max-width: 40rem;
  margin-inline: auto;
}

.app-shell .detail-page--app-video {
  padding: 0.5rem 0 1rem;
}

.app-page .card-grid {
  gap: 0.85rem;
}

.detail-page--app-video {
  padding: 0.75rem 0 1rem;
}

.detail-page--app-video .detail-page__inner {
  max-width: 40rem;
}

.static-page,
.not-found {
  padding: 2.5rem 0 3rem;
}

.not-found h1 {
  font-family: var(--display);
  font-size: 4rem;
  margin: 0;
  color: var(--red);
}

.pwa-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: grid;
  place-items: center;
  z-index: 100;
  padding: 1rem;
}

.pwa-modal__panel {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.5rem;
  max-width: 420px;
  box-shadow: var(--shadow);
}

@media (max-width: 900px) {
  .hero-banner__layout {
    grid-template-columns: 1fr;
    min-height: calc(100dvh - var(--site-header-h));
    min-height: calc(100svh - var(--site-header-h));
    padding-top: clamp(1.25rem, 3vh, 2rem);
  }

  .featured-strip__layout {
    min-height: auto;
  }

  .featured-strip--scripture .featured-strip__copy {
    width: 100%;
    max-width: 100%;
  }

  .about-lead {
    grid-template-columns: 1fr;
  }

  .footer-shell {
    grid-template-columns: 1fr;
  }

  .footer-links-block {
    grid-template-columns: 1fr;
  }

  .header-bar__inner {
    flex-wrap: wrap;
    max-height: none;
  }

  .header-bar__actions {
    display: none;
    width: 100%;
    margin-left: 0;
    padding: 0.75rem 0 0.25rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
    border-top: 1px solid var(--line);
  }

  .header-categories {
    display: none;
  }

  .site-header.is-nav-open .header-bar__actions,
  .site-header.is-nav-open .header-categories {
    display: flex;
  }

  .site-header.is-nav-open .header-categories {
    display: block;
  }

  .header-categories__inner {
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem 0 1rem;
    gap: 0.15rem;
  }

  .header-categories a {
    text-align: center;
    padding: 0.55rem 0.5rem;
    border-bottom: 0;
    border-radius: 8px;
  }

  .header-categories a.is-active {
    background: var(--red-soft);
  }

  .header-action,
  .header-bar__link {
    justify-content: center;
    padding: 0.45rem 0.5rem;
  }

  .header-bar__purchase {
    justify-content: center;
    width: 100%;
  }

  .hero-banner__quote {
    max-width: 100%;
  }

  .hero-banner h1 {
    max-width: none;
  }

  .video-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .nav-toggle {
    display: block;
  }

  .carousel-band {
    grid-template-columns: min(var(--container), 92vw);
    padding-inline: max(4vw, 1rem);
  }

  .carousel-band > .carousel-btn {
    display: none;
  }

  .carousel-band__content {
    grid-column: 1;
  }

  .carousel {
    --carousel-cols: 2;
  }

  .detail-page__inner--player {
    width: var(--container);
    margin-inline: auto;
  }

  .app-shell .detail-page__inner--player {
    width: 100%;
    margin-inline: auto;
  }

  .audio-player {
    border: 0;
    border-radius: 0;
    padding: 0;
    background: transparent;
    box-shadow: none;
  }

  .audio-player__layout {
    grid-template-columns: 1fr;
  }

  .audio-player__art-wrap {
    max-width: min(280px, 72vw);
    margin-inline: auto;
  }

  .audio-player__panel {
    text-align: center;
  }

  .audio-player__controls {
    justify-content: center;
  }

  .ap-volume {
    max-width: none;
    flex: 1 1 100%;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .quote-bar__text {
    animation: none;
    width: 100%;
    justify-content: center;
  }

  .quote-bar__text span:last-child {
    display: none;
  }
}

.paywall {
  margin: 1.5rem 0;
  padding: 1.5rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(165deg, #fff 0%, #fafafa 100%);
  text-align: center;
}

.paywall__eyebrow {
  margin: 0 0 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
}

.paywall__title {
  margin: 0 0 0.5rem;
  font-family: var(--display);
  font-size: 1.35rem;
}

.paywall__text {
  margin: 0 0 1.1rem;
  color: var(--muted);
}

.account-card {
  max-width: 36rem;
  margin: 0 auto;
}

.account-card h1 {
  margin-top: 0;
}

.account-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.account-form label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.88rem;
  font-weight: 600;
}

.account-form input {
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
}

.account-alert {
  background: #fdecec;
  color: #8f1d1d;
  padding: 0.7rem 0.85rem;
  border-radius: 10px;
}

.account-flash {
  background: #e8f5e9;
  color: #1b5e20;
  padding: 0.7rem 0.85rem;
  border-radius: 10px;
}

.account-switch,
.account-email {
  color: var(--muted);
}

.account-status {
  padding: 1rem 1.1rem;
  border-radius: 14px;
  margin: 1rem 0;
}

.account-status--ok {
  background: #e8f5e9;
}

.account-status--warn {
  background: #fff8e6;
}

.account-sub {
  margin: 1.5rem 0 0.75rem;
  font-size: 1rem;
}

.account-packages,
.account-orders {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.account-packages li,
.account-orders li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  background: var(--surface);
  border-radius: 12px;
}

.account-packages li span,
.account-orders li span {
  color: var(--muted);
  font-size: 0.88rem;
}

.account-logout {
  margin-top: 1.5rem;
}

.btn-access {
  background: #fff;
  color: var(--red);
  border: 1px solid var(--red);
  box-shadow: var(--shadow-soft);
}

.btn-access:hover {
  background: var(--red-soft);
  color: var(--red-dark);
  border-color: var(--red-dark);
}

.icon-access {
  flex-shrink: 0;
}

.btn-hero-access {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius-pill);
  border: 2px solid #fff;
  background: var(--red);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  white-space: nowrap;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.2);
}

.btn-hero-access:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
}

.btn-install--locked {
  cursor: not-allowed !important;
  opacity: 0.72;
}

.has-install-tooltip {
  position: relative;
}

.install-tooltip {
  position: absolute;
  left: 50%;
  top: calc(100% + 0.6rem);
  bottom: auto;
  transform: translateX(-50%) translateY(-4px);
  padding: 0.45rem 0.65rem;
  max-width: 16rem;
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.35;
  color: #fff;
  background: #1a1a1a;
  border-radius: 8px;
  white-space: normal;
  text-align: center;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
  z-index: 100;
}

.install-tooltip::after {
  content: "";
  position: absolute;
  bottom: 100%;
  top: auto;
  left: 50%;
  margin-left: -5px;
  border: 5px solid transparent;
  border-bottom-color: #1a1a1a;
}

@media (hover: hover) and (pointer: fine) {
  .has-install-tooltip:hover .install-tooltip,
  .has-install-tooltip:focus-visible .install-tooltip,
  .install-tooltip.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
  }
}

.site-nav .has-install-tooltip,
.header-bar__actions .has-install-tooltip,
.hero-banner__actions .has-install-tooltip {
  overflow: visible;
}

.site-header,
.header-bar__actions {
  overflow: visible;
}

.footer-contact__bank {
  font-size: 0.88rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.75);
}

.footer-contact__bank span {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 0.15rem;
}

.paywall__alt {
  margin: 0.75rem 0 0;
  font-size: 0.88rem;
}

.paywall__alt a {
  color: var(--muted);
}

.body-auth {
  margin: 0;
}

.body-auth .auth-back {
  position: fixed;
  left: 1rem;
  bottom: 1rem;
  margin: 0;
  font-size: 0.88rem;
}

.body-auth .auth-back a {
  color: var(--muted);
}

.auth-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1.5rem 3.5rem;
  box-sizing: border-box;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(196, 30, 36, 0.09), transparent 70%),
    linear-gradient(180deg, #f3f3f5 0%, #ececef 100%);
}

.auth-screen--in-site {
  min-height: auto;
  padding: 2.5rem 0 3rem;
  background: transparent;
}

.auth-card {
  width: min(420px, 100%);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 2rem 2rem 1.75rem;
  box-shadow: 0 24px 60px rgba(18, 18, 18, 0.08);
  position: relative;
  overflow: hidden;
}

.auth-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--red), #e85a5f);
}

.auth-card__brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.auth-card__brand img {
  object-fit: contain;
}

.auth-card__app {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.auth-card h1 {
  margin: 0.2rem 0 0;
  font-family: var(--display);
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.auth-card__lead {
  margin: 0 0 1.25rem;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--muted);
}

.auth-alert {
  background: #fdecec;
  border: 1px solid #f5c2c2;
  color: #8f1d1d;
  border-radius: 10px;
  padding: 0.65rem 0.8rem;
  font-size: 0.88rem;
  margin-bottom: 1rem;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.88rem;
  font-weight: 600;
}

.auth-field input {
  width: 100%;
  padding: 0.72rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  font: inherit;
  font-weight: 400;
  background: #fafafa;
  box-sizing: border-box;
}

.auth-field input:focus {
  outline: none;
  border-color: var(--red);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(196, 30, 36, 0.12);
}

.auth-submit {
  width: 100%;
  margin-top: 0.25rem;
}

.auth-switch {
  margin: 1.15rem 0 0;
  font-size: 0.88rem;
  color: var(--muted);
  text-align: center;
}

.checkout-screen {
  min-height: 100vh;
  padding: clamp(1.25rem, 3vw, 2.5rem) clamp(1rem, 3vw, 2rem) 3.5rem;
  box-sizing: border-box;
  background:
    radial-gradient(ellipse 70% 50% at 100% 0%, rgba(196, 30, 36, 0.07), transparent 60%),
    linear-gradient(180deg, #f6f6f8 0%, #ececef 100%);
}

.checkout-page {
  background: #fff;
  padding: clamp(2rem, 5vw, 3.5rem) 0 clamp(3rem, 6vw, 4.5rem);
}

.checkout-page__head {
  margin-bottom: 1.75rem;
  max-width: 40rem;
}

.checkout-page__eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
}

.checkout-page__head h1 {
  margin: 0 0 0.65rem;
  font-family: var(--display);
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
  letter-spacing: -0.03em;
}

.checkout-page__lead {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 1.02rem;
}

.checkout-page__head--compact {
  margin-bottom: 1.25rem;
}

.checkout-layout {
  display: block;
  max-width: 720px;
  margin-inline: auto;
}

.checkout-layout--with-summary {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 300px);
  gap: clamp(1.5rem, 3vw, 2rem);
  align-items: start;
}

.checkout-layout--with-summary .checkout-summary {
  position: sticky;
  top: calc(var(--site-header-h, 6.25rem) + 1rem);
  align-self: start;
  z-index: 2;
}

.checkout-main--payment {
  max-width: none;
  width: 100%;
}

.checkout-step-pay__forms {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.checkout-billing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem 1rem;
}

.checkout-billing-grid__full {
  grid-column: 1 / -1;
}

@media (max-width: 560px) {
  .checkout-billing-grid {
    grid-template-columns: 1fr;
  }
}

.checkout-main--centered {
  max-width: 420px;
  margin-inline: auto;
  width: 100%;
}

.checkout-panel--narrow {
  max-width: 420px;
  margin-inline: auto;
}

.checkout-alert--narrow,
.checkout-notice--narrow {
  max-width: 420px;
  margin-inline: auto;
}

.checkout-stepper {
  margin: 0 0 2rem;
  padding: 0 0.5rem;
}

.checkout-stepper__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  position: relative;
}

.checkout-stepper__list::before {
  content: "";
  position: absolute;
  top: 1.125rem;
  left: calc(16.666% + 1rem);
  right: calc(16.666% + 1rem);
  height: 2px;
  background: var(--line);
  z-index: 0;
}

.checkout-stepper__step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  text-align: center;
  position: relative;
  z-index: 1;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
}

.checkout-stepper__dot {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #fff;
  border: 2px solid var(--line);
  box-sizing: border-box;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.checkout-stepper__dot span {
  font-size: 0.82rem;
  font-weight: 700;
}

.checkout-stepper__step.is-active {
  color: var(--ink);
}

.checkout-stepper__step.is-active .checkout-stepper__dot {
  border-color: var(--red);
  background: var(--red);
  color: #fff;
  box-shadow: 0 0 0 4px rgba(196, 30, 36, 0.12);
}

.checkout-stepper__step.is-done {
  color: var(--ink);
}

.checkout-stepper__step.is-done .checkout-stepper__dot {
  border-color: var(--red);
  background: #fff;
  color: var(--red);
}

.checkout-stepper__label {
  max-width: 6.5rem;
  line-height: 1.25;
}

.btn-checkout--full {
  width: 100%;
  justify-content: center;
}

.checkout-panel__actions--stack {
  flex-direction: column;
}

.checkout-panel__actions--stack .btn {
  width: 100%;
  justify-content: center;
}

.checkout-alert {
  background: #fdecec;
  border: 1px solid #f5c2c2;
  color: #8f1d1d;
  border-radius: 12px;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}

.checkout-notice {
  background: var(--red-soft);
  border: 1px solid rgba(196, 30, 36, 0.18);
  border-radius: 14px;
  padding: 1rem 1.15rem;
  margin-bottom: 1.25rem;
}

.checkout-notice strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
}

.checkout-notice p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.checkout-tabs {
  display: flex;
  gap: 0.35rem;
  padding: 0.25rem;
  background: var(--surface);
  border-radius: 12px;
  margin-bottom: 1.25rem;
}

.checkout-tabs__btn {
  flex: 1;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  color: var(--muted);
  cursor: pointer;
}

.checkout-tabs__btn.is-active {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 2px 8px rgba(18, 18, 18, 0.06);
}

.checkout-tab-panel[hidden] {
  display: none !important;
}

.checkout-panel__hint {
  margin: -0.35rem 0 1rem;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.5;
}

.checkout-package__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 0.35rem;
}

.checkout-package__price {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--red-dark);
  white-space: nowrap;
}

.checkout-pay-methods {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.checkout-pay-method {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.1rem 1.15rem;
  border: 2px solid var(--red);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(196, 30, 36, 0.08);
}

.checkout-pay-method__icon {
  color: var(--red);
  flex-shrink: 0;
}

.checkout-pay-method__body {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}

.checkout-pay-method__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.checkout-pay-method__sub {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.45;
}

.checkout-pay-method__note {
  font-size: 0.82rem;
  color: #8f1d1d;
  background: #fdecec;
  border-radius: 8px;
  padding: 0.5rem 0.65rem;
  margin-top: 0.25rem;
}

.checkout-badge {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.2rem 0.45rem;
  border-radius: 6px;
}

.checkout-badge--ok {
  background: #e6f6ec;
  color: #1a6b3c;
}

.checkout-badge--off {
  background: #ececef;
  color: #5a5a5a;
}

.btn-checkout {
  min-width: min(100%, 220px);
  padding-inline: 1.35rem;
}

.checkout-summary__secure {
  margin: 0;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.45;
}

.checkout-shell {
  max-width: 1080px;
  margin: 0 auto;
  display: block;
}

.checkout-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  font-size: 0.92rem;
  margin-bottom: 1rem;
}

.checkout-main__head h1 {
  margin: 0 0 0.5rem;
  font-family: var(--display);
  font-size: clamp(1.5rem, 3vw, 1.85rem);
  letter-spacing: -0.02em;
}

.checkout-main__lead {
  margin: 0 0 1.5rem;
  color: var(--muted);
  line-height: 1.55;
  max-width: 46ch;
}

.checkout-steps {
  display: none;
}

.checkout-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.35rem 1.35rem 1.25rem;
  box-shadow: 0 16px 40px rgba(18, 18, 18, 0.06);
}

.checkout-panel__title {
  margin: 0 0 1rem;
  font-size: 1.05rem;
}

.checkout-fields {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.checkout-panel__actions {
  margin-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.checkout-panel__actions--split {
  justify-content: space-between;
}

.checkout-packages {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.checkout-package {
  cursor: pointer;
}

.checkout-package input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.checkout-package__inner {
  display: block;
  padding: 1rem 1.05rem;
  border: 2px solid var(--line);
  border-radius: 14px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.checkout-package input:checked + .checkout-package__inner {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(196, 30, 36, 0.1);
}

.checkout-package__title {
  display: block;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.checkout-package__meta {
  font-size: 0.88rem;
  color: var(--muted);
}

.checkout-summary__card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.35rem;
  box-shadow: 0 16px 40px rgba(18, 18, 18, 0.06);
}

.checkout-summary__eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.checkout-summary__title {
  margin: 0 0 0.35rem;
  font-family: var(--display);
  font-size: 1.15rem;
}

.checkout-summary__price {
  margin: 0 0 1rem;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--red-dark);
}

.checkout-summary__list {
  margin: 0 0 1rem;
  padding-left: 1.1rem;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.checkout-summary__note {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--muted);
}

@media (max-width: 860px) {
  .checkout-layout--with-summary {
    grid-template-columns: 1fr;
  }

  .checkout-layout--with-summary .checkout-summary {
    order: -1;
    position: static;
    top: auto;
  }

  .checkout-stepper__list::before {
    left: 2.5rem;
    right: 2.5rem;
  }

  .checkout-stepper__label {
    font-size: 0.7rem;
    max-width: 4.5rem;
  }

  .checkout-summary__card {
    position: static;
  }

  .checkout-steps__label {
    display: none;
  }
}

@media (max-width: 768px) {
  .header-bar__purchase,
  .header-action.btn-install {
    width: 100%;
    justify-content: center;
  }
}

