:root {
  --bg: #ede7d8;
  --surface: #fffdf8;
  --surface-soft: #f8f2e7;
  --ink: #17213b;
  --muted: #5b6478;
  --faint: #8a8470;
  --line: rgba(23, 33, 59, 0.14);
  --blue: #3e7cb1;
  --blue-dark: #1b2740;
  --gold: #b8863a;
  --gold-dark: #8f6626;
  --sage: #536f62;
  --wine: #7d3d45;
  --shadow-soft: 0 18px 55px rgba(23, 33, 59, 0.12);
  --shadow-card: 0 8px 26px rgba(23, 33, 59, 0.11);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Manrope, Inter, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

img,
svg {
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.site-header {
  align-items: center;
  background: rgba(237, 231, 216, 0.9);
  border-bottom: 1px solid rgba(23, 33, 59, 0.08);
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr auto 1fr;
  left: 0;
  padding: 14px 48px;
  position: sticky;
  right: 0;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
}

.brand {
  align-items: center;
  display: inline-flex;
  gap: 12px;
  justify-self: start;
  min-width: 50px;
  width: fit-content;
}

.brand img {
  height: 50px;
  object-fit: contain;
  width: 50px;
}

.site-footer img {
  border-radius: 8px;
  object-fit: contain;
}

.brand span {
  display: none;
  line-height: 1.1;
}

.brand strong,
.site-footer span {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
  margin-top: 3px;
}

.nav-links {
  align-items: center;
  display: flex;
  gap: 26px;
  justify-content: center;
}

.nav-links a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

.nav-links a:hover {
  color: var(--ink);
}

.header-actions {
  align-items: center;
  display: flex;
  gap: 14px;
  justify-self: end;
}

.language-switch {
  align-items: center;
  background: rgba(255, 253, 248, 0.6);
  border: 1px solid rgba(23, 33, 59, 0.1);
  border-radius: 999px;
  display: inline-flex;
  padding: 3px;
}

.language-option {
  background: transparent;
  border: 0;
  border-radius: 999px;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  height: 30px;
  min-width: 36px;
  padding: 0 10px;
}

.language-option.is-active {
  background: var(--ink);
  color: #fffdf8;
}

.header-cta,
.button-primary,
.button-secondary {
  align-items: center;
  border-radius: 12px;
  display: inline-flex;
  font-weight: 760;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
}

.header-cta {
  white-space: nowrap;
}

.header-cta,
.button-primary {
  background: var(--ink);
  color: #fffdf8;
}

.header-cta:hover,
.button-primary:hover {
  background: #0f172b;
}

.hero {
  min-height: 520px;
  overflow: hidden;
  padding: 50px 48px 30px;
  position: relative;
}

.hero::before {
  background: var(--surface-soft);
  content: "";
  inset: 64px 0 auto 0;
  min-height: 410px;
  position: absolute;
  z-index: -3;
}

.hero-media {
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: -1;
}

.hero-lion {
  height: 470px;
  opacity: 0.2;
  position: absolute;
  right: 5%;
  top: 46px;
  width: 470px;
}

.hero-phone {
  background: var(--ink);
  border: 9px solid #10182c;
  border-radius: 30px;
  box-shadow: 0 28px 70px rgba(23, 33, 59, 0.28);
  color: #fffdf8;
  height: 450px;
  overflow: hidden;
  padding: 18px;
  position: absolute;
  right: 10%;
  top: 82px;
  width: 248px;
}

.hero-phone::before {
  background: var(--surface);
  border-radius: 0 0 12px 12px;
  content: "";
  height: 16px;
  left: 50%;
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  width: 88px;
}

.phone-top,
.mock-top {
  align-items: center;
  display: flex;
  font-size: 12px;
  font-weight: 760;
  justify-content: space-between;
}

.phone-top span:last-child {
  background: var(--gold);
  border-radius: 999px;
  color: white;
  padding: 4px 9px;
}

.phone-cover {
  aspect-ratio: 1 / 1;
  background: #0c1224;
  border-radius: 18px;
  margin: 24px auto 18px;
  overflow: hidden;
  width: 148px;
}

.phone-cover img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.phone-copy strong,
.phone-copy span {
  display: block;
  text-align: center;
}

.phone-copy strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
}

.phone-copy span {
  color: rgba(255, 253, 248, 0.74);
  font-size: 13px;
  margin-top: 5px;
}

.phone-wave {
  align-items: center;
  display: flex;
  gap: 7px;
  height: 52px;
  justify-content: center;
  margin-top: 24px;
}

.phone-wave span {
  background: #68add7;
  border-radius: 999px;
  width: 7px;
}

.phone-wave span:nth-child(1),
.phone-wave span:nth-child(6) {
  height: 18px;
}

.phone-wave span:nth-child(2),
.phone-wave span:nth-child(5) {
  height: 34px;
}

.phone-wave span:nth-child(3),
.phone-wave span:nth-child(4) {
  height: 50px;
}

.phone-tabs {
  background: rgba(255, 253, 248, 0.08);
  border-radius: 18px;
  bottom: 18px;
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(4, 1fr);
  left: 18px;
  padding: 12px;
  position: absolute;
  right: 18px;
}

.phone-tabs i {
  aspect-ratio: 1;
  background: rgba(255, 253, 248, 0.7);
  border-radius: 7px;
}

.hero-content {
  max-width: 700px;
  position: relative;
  z-index: 2;
}

.eyebrow {
  color: var(--gold-dark);
  font-size: 13px;
  font-weight: 800;
  margin: 0 0 12px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  font-style: italic;
  line-height: 1.02;
}

h1 {
  font-size: 50px;
  margin-bottom: 22px;
  max-width: 760px;
}

h2 {
  font-size: 42px;
  margin-bottom: 18px;
}

h3 {
  font-size: 18px;
  line-height: 1.2;
  margin-bottom: 8px;
}

.hero-text {
  color: var(--muted);
  font-size: 20px;
  max-width: 620px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.store-link {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  display: inline-flex;
  gap: 10px;
  min-height: 58px;
  min-width: 166px;
  padding: 9px 15px;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.store-link:hover {
  border-color: rgba(23, 33, 59, 0.3);
  transform: translateY(-1px);
}

.store-link small,
.store-link span span {
  display: block;
}

.store-link small {
  color: currentColor;
  font-size: 11px;
  opacity: 0.75;
}

.store-link span:last-child {
  font-size: 16px;
  font-weight: 820;
  line-height: 1.1;
}

.store-icon {
  align-items: center;
  border-radius: 10px;
  display: inline-flex;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.store-icon svg {
  fill: currentColor;
  height: 22px;
  width: 22px;
}

.store-muted {
  background: rgba(255, 253, 248, 0.74);
  color: var(--ink);
}

.store-primary {
  background: var(--blue);
  border-color: var(--blue);
  color: white;
  box-shadow: 0 12px 28px rgba(62, 124, 177, 0.24);
}

.store-primary:hover {
  background: #336d9e;
  border-color: #336d9e;
}

.hero-trust {
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
  max-width: 660px;
  padding-top: 16px;
}

.hero-trust span {
  background: rgba(255, 253, 248, 0.7);
  border: 1px solid rgba(23, 33, 59, 0.1);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 740;
  padding: 7px 12px;
}

.hero {
  align-items: center;
  background: #111923;
  color: #fffdf8;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.9fr);
  isolation: isolate;
  --hero-top: clamp(390px, 37.24vw, 715px);
  --hero-bottom: clamp(500px, 38vw, 620px);
  min-height: calc(var(--hero-top) + var(--hero-bottom));
  padding: 0 48px;
}

.hero::before {
  background-image: url("assets/mainpage-hero-background.webp");
  background-position: top center;
  background-repeat: no-repeat;
  background-size: 100% auto;
  height: calc(var(--hero-top) + 16px);
  inset: 0 0 auto 0;
  min-height: 0;
  pointer-events: none;
  z-index: 0;
}

.hero::after {
  background-image:
    linear-gradient(90deg, rgba(5, 43, 73, 0.86) 0%, rgba(5, 43, 73, 0.86) 55%, rgba(32, 40, 42, 0.86) 55%, rgba(32, 40, 42, 0.86) 100%),
    url("assets/background-blue-01.webp"),
    url("assets/background-gray-01.webp");
  background-position: center, left top, right top;
  background-repeat: no-repeat, repeat, repeat;
  background-size: auto, 55% 100%, 45% 100%;
  content: "";
  inset: calc(var(--hero-top) - 16px) 0 0 0;
  pointer-events: none;
  position: absolute;
  z-index: 1;
}

.hero-media {
  z-index: 2;
}

.hero-lion,
.hero-phone {
  display: none;
}

.hero-app-screen {
  border-radius: 38px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.58);
  height: clamp(455px, 38vw, 590px);
  object-fit: contain;
  object-position: center;
  position: absolute;
  right: 13%;
  top: calc(var(--hero-top) - 112px);
  width: auto;
}

.hero-content {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  grid-column: 1 / 2;
  justify-content: flex-start;
  justify-self: center;
  max-width: 620px;
  padding: clamp(70px, 7.1vw, 136px) 0 122px;
  width: 100%;
  z-index: 3;
}

.hero .eyebrow {
  color: #d5b270;
  margin-top: 24px;
  order: 3;
}

.hero h1 {
  color: #fffdf8;
  font-size: clamp(64px, 6.5vw, 112px);
  font-style: italic;
  font-weight: 500;
  line-height: 0.98;
  margin-bottom: 28px;
  order: 1;
  text-shadow: 0 18px 46px rgba(0, 0, 0, 0.28);
}

.hero-text {
  color: rgba(255, 253, 248, 0.86);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(18px, 1.45vw, 25px);
  line-height: 1.42;
  max-width: 610px;
  order: 2;
}

.hero-actions {
  align-items: center;
  justify-content: center;
  margin-top: auto;
  max-width: 650px;
  order: 4;
  transform: translateY(28px);
}

.hero-app-promo {
  align-items: center;
  display: grid;
  flex-basis: 100%;
  justify-items: center;
  margin-bottom: 12px;
  text-align: center;
  width: 100%;
}

.hero-app-promo img {
  border-radius: 12px;
  height: 102px;
  margin-bottom: 10px;
  width: 102px;
}

.hero-app-promo strong {
  color: rgba(255, 253, 248, 0.82);
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  font-style: italic;
  font-weight: 400;
  margin-bottom: 40px;
}

.hero-app-promo p {
  color: rgba(255, 253, 248, 0.86);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(30px, 2.6vw, 48px);
  font-style: italic;
  line-height: 1.18;
  margin-bottom: 34px;
}

.hero-actions > .store-muted {
  display: none;
}

.store-badge-link {
  align-items: center;
  display: inline-flex;
  height: 54px;
  justify-content: center;
  transition: transform 160ms ease, filter 160ms ease;
  width: 182px;
}

.store-badge-link:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.store-badge-link img {
  border-radius: 8px;
  height: 100%;
  object-fit: contain;
  width: 100%;
}

.web-app-badge-link {
  align-items: center;
  display: inline-flex;
  height: 54px;
  justify-content: center;
  transition: transform 160ms ease, filter 160ms ease;
  width: 182px;
}

.web-app-badge-link:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.web-app-badge-link img {
  border-radius: 8px;
  height: 100%;
  object-fit: contain;
  width: 100%;
}

.hero-trust {
  display: none;
}

.section {
  padding: 86px 48px;
  scroll-margin-top: 84px;
}

.section-heading {
  max-width: 760px;
}

.section-heading p:not(.eyebrow) {
  color: var(--muted);
  font-size: 18px;
  margin-bottom: 0;
}

.feature-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 34px;
}

.feature-card,
.title-card,
.mock-screen,
.why-list article {
  border-radius: 8px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid rgba(23, 33, 59, 0.08);
  min-height: 245px;
  padding: 24px;
  box-shadow: 0 1px 0 rgba(23, 33, 59, 0.04);
}

.feature-card p,
.why-list p {
  color: var(--muted);
  margin-bottom: 0;
}

.feature-icon {
  align-items: center;
  background: rgba(62, 124, 177, 0.11);
  border-radius: 10px;
  color: var(--blue);
  display: flex;
  height: 44px;
  justify-content: center;
  margin-bottom: 22px;
  width: 44px;
}

.feature-icon svg {
  fill: currentColor;
  height: 24px;
  width: 24px;
}

.screens {
  background: var(--surface);
  overflow: hidden;
}

.screen-row {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(4, minmax(190px, 1fr));
  margin-top: 38px;
}

.screens .screen-row {
  display: none;
}

.app-slide-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 38px;
}

.app-slide-card {
  aspect-ratio: 9 / 16;
  background: var(--ink);
  border-radius: 8px;
  box-shadow: var(--shadow-card);
  color: white;
  min-height: 520px;
  overflow: hidden;
  position: relative;
}

.app-slide-card img {
  height: 100%;
  object-fit: cover;
  transition: transform 320ms ease;
  width: 100%;
}

.app-slide-card:hover img {
  transform: scale(1.025);
}

.app-slide-card::after {
  background: linear-gradient(180deg, rgba(7, 10, 18, 0) 36%, rgba(7, 10, 18, 0.62) 66%, rgba(7, 10, 18, 0.92) 100%);
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.app-slide-copy {
  bottom: 0;
  left: 0;
  padding: 24px;
  position: absolute;
  right: 0;
  z-index: 1;
}

.app-slide-copy span {
  color: #d8b671;
  display: block;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 8px;
}

.app-slide-copy h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
  line-height: 1.05;
  margin-bottom: 10px;
}

.app-slide-copy p {
  color: rgba(255, 253, 248, 0.78);
  font-size: 14px;
  line-height: 1.42;
  margin-bottom: 0;
}

.mock-screen {
  aspect-ratio: 9 / 16;
  background: var(--bg);
  border: 8px solid var(--ink);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 18px;
  position: relative;
}

.mock-screen::before {
  background: var(--surface);
  border-radius: 0 0 10px 10px;
  content: "";
  height: 14px;
  left: 50%;
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  width: 74px;
}

.mock-top {
  color: var(--muted);
  margin-top: 8px;
}

.mock-search {
  background: var(--surface);
  border: 1px solid rgba(23, 33, 59, 0.1);
  border-radius: 999px;
  height: 36px;
  margin: 22px 0 18px;
}

.mock-covers {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr 1fr;
}

.mock-covers span {
  aspect-ratio: 3 / 4;
  background: var(--surface);
  border: 1px solid rgba(23, 33, 59, 0.1);
  border-radius: 7px;
}

.mock-covers span:nth-child(1) {
  background: var(--blue-dark);
}

.mock-covers span:nth-child(2) {
  background: var(--gold);
}

.mock-covers span:nth-child(3) {
  background: var(--sage);
}

.mock-covers span:nth-child(4) {
  background: var(--wine);
}

.screen-catalog strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  margin-top: auto;
}

.screen-detail {
  align-items: center;
  background: #efe6d3;
}

.screen-detail img {
  aspect-ratio: 1;
  border-radius: 8px;
  margin: 26px 0 18px;
  object-fit: cover;
  width: 72%;
}

.screen-detail strong,
.screen-player strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 23px;
  text-align: center;
}

.screen-detail span {
  color: var(--muted);
  font-size: 13px;
  margin-top: 4px;
}

.screen-detail button {
  background: var(--blue);
  border: 0;
  border-radius: 12px;
  color: white;
  font: inherit;
  font-weight: 800;
  margin-top: auto;
  min-height: 42px;
  width: 100%;
}

.screen-reader {
  background: #fffaf0;
}

.screen-reader h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
  margin-top: 34px;
}

.screen-reader p {
  color: #394157;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  line-height: 1.65;
}

.screen-player {
  align-items: center;
  background: var(--blue-dark);
  color: white;
}

.screen-player .mock-top {
  color: rgba(255, 253, 248, 0.7);
  width: 100%;
}

.player-disc {
  background: var(--surface);
  border: 12px solid rgba(255, 253, 248, 0.16);
  border-radius: 50%;
  height: 132px;
  margin: 42px 0 24px;
  width: 132px;
}

.progress {
  background: rgba(255, 253, 248, 0.18);
  border-radius: 999px;
  height: 7px;
  margin-top: 36px;
  overflow: hidden;
  width: 100%;
}

.progress span {
  background: #68add7;
  border-radius: inherit;
  display: block;
  height: 100%;
  width: 46%;
}

.player-controls {
  display: flex;
  gap: 16px;
  margin-top: 28px;
}

.player-controls i {
  background: rgba(255, 253, 248, 0.8);
  border-radius: 50%;
  height: 38px;
  width: 38px;
}

.title-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: 1.15fr repeat(3, 1fr);
  margin-top: 34px;
}

.cover-showcase {
  margin: 34px -48px 0;
  overflow: hidden;
  padding: 10px 0 22px;
  position: relative;
}

.cover-showcase::before,
.cover-showcase::after {
  content: "";
  inset: 0 auto 0 0;
  pointer-events: none;
  position: absolute;
  width: 96px;
  z-index: 2;
}

.cover-showcase::before {
  background: linear-gradient(90deg, var(--bg), rgba(237, 231, 216, 0));
}

.cover-showcase::after {
  background: linear-gradient(270deg, var(--bg), rgba(237, 231, 216, 0));
  left: auto;
  right: 0;
}

.cover-lane {
  overflow: hidden;
}

.cover-lane + .cover-lane {
  margin-top: 18px;
}

.cover-track {
  animation: cover-drift 50s linear infinite;
  display: flex;
  gap: 18px;
  min-width: max(100vw, max-content);
  padding: 0 48px;
  width: max-content;
  will-change: transform;
}

.cover-track-reverse {
  animation-duration: 42s;
}

.cover-showcase:hover .cover-track {
  animation-play-state: paused;
}

.cover-preview {
  background: rgba(255, 253, 248, 0.72);
  border: 1px solid rgba(23, 33, 59, 0.1);
  border-radius: 8px;
  box-shadow: 0 10px 26px rgba(23, 33, 59, 0.1);
  color: var(--ink);
  flex: 0 0 auto;
  padding: 10px;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.cover-preview:hover {
  box-shadow: var(--shadow-card);
  transform: translateY(-3px);
}

.cover-preview img {
  border-radius: 7px;
  height: auto;
  object-fit: cover;
  width: 100%;
}

.cover-preview-audio,
.cover-preview-education {
  width: 218px;
}

.cover-preview-audio img,
.cover-preview-education img {
  aspect-ratio: 1 / 1;
}

.cover-preview-ebook {
  width: 164px;
}

.cover-preview-ebook img {
  aspect-ratio: 2 / 3;
}

.cover-preview span {
  color: var(--gold-dark);
  display: block;
  font-size: 11px;
  font-weight: 500;
  margin-top: 11px;
}

.cover-preview strong {
  display: block;
  font-size: 14px;
  line-height: 1.18;
  margin-top: 3px;
}

.library-actions {
  display: flex;
  gap: 12px;
  margin-top: 28px;
}

.library-secondary {
  align-items: center;
  border: 1px solid rgba(23, 33, 59, 0.22);
  border-radius: 12px;
  color: var(--ink);
  display: inline-flex;
  font-weight: 760;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
}

.library-secondary:hover {
  background: rgba(255, 253, 248, 0.62);
}

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

.title-card {
  border: 1px solid rgba(23, 33, 59, 0.08);
  box-shadow: 0 1px 0 rgba(23, 33, 59, 0.04);
  min-height: 360px;
  overflow: hidden;
  padding: 22px;
  position: relative;
}

.title-card:hover {
  box-shadow: var(--shadow-card);
  transform: translateY(-2px);
}

.title-card span {
  color: var(--gold-dark);
  display: block;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 8px;
}

.title-card strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  line-height: 1.05;
  max-width: 230px;
}

.title-card small {
  bottom: 22px;
  color: inherit;
  display: block;
  font-size: 14px;
  opacity: 0.74;
  position: absolute;
}

.title-real {
  background: var(--ink);
  color: white;
  min-height: 430px;
}

.title-real img {
  height: 100%;
  inset: 0;
  object-fit: cover;
  opacity: 0.48;
  position: absolute;
  width: 100%;
}

.title-real span,
.title-real strong,
.title-real small {
  position: relative;
  z-index: 1;
}

.title-type::after {
  border: 1px solid rgba(255, 253, 248, 0.34);
  bottom: 22px;
  content: "";
  height: 118px;
  position: absolute;
  right: 22px;
  width: 80px;
}

.title-navy {
  background: var(--blue-dark);
  color: white;
}

.title-gold {
  background: var(--gold);
  color: #fffdf8;
}

.title-sage {
  background: var(--sage);
  color: #fffdf8;
}

.title-type span {
  color: rgba(255, 253, 248, 0.82);
}

.why {
  align-items: start;
  background: #e6dfcf;
  display: grid;
  gap: 52px;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
}

.why-list {
  display: grid;
  gap: 18px;
}

.why-list article {
  background: rgba(255, 253, 248, 0.58);
  border: 1px solid rgba(23, 33, 59, 0.1);
  padding: 24px;
}

.plans {
  background: var(--surface);
}

.plan-grid {
  align-items: stretch;
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(3, minmax(250px, 340px));
  justify-content: center;
  margin: 42px auto 0;
  max-width: 1064px;
}

.plan-card {
  background: rgba(255, 253, 248, 0.84);
  border: 1px solid rgba(23, 33, 59, 0.09);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  min-height: 470px;
  padding: 34px 32px 32px;
  position: relative;
  box-shadow: 0 12px 36px rgba(23, 33, 59, 0.06);
}

.plan-featured {
  background: #f3efe6;
  border-color: rgba(184, 134, 58, 0.18);
  color: var(--ink);
  box-shadow: 0 16px 42px rgba(23, 33, 59, 0.08);
}

.plan-badge {
  align-self: flex-end;
  background: rgba(184, 134, 58, 0.14);
  border-radius: 999px;
  color: var(--gold-dark);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0;
  margin: -6px 0 16px;
  padding: 7px 12px;
  width: fit-content;
  white-space: nowrap;
}

.plan-kicker {
  color: rgba(143, 102, 38, 0.86);
  font-size: 12px;
  font-weight: 650;
  margin-bottom: 16px;
}

.plan-featured .plan-kicker {
  color: rgba(143, 102, 38, 0.86);
}

.plan-card h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 31px;
  font-weight: 500;
  margin-bottom: 18px;
}

.plan-price {
  align-items: baseline;
  display: flex;
  gap: 8px;
  margin-bottom: 30px;
}

.plan-price span {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 40px;
  font-weight: 500;
  line-height: 1;
}

.plan-price small {
  color: rgba(91, 100, 120, 0.82);
  font-size: 14px;
  font-weight: 500;
}

.plan-featured .plan-price small {
  color: rgba(91, 100, 120, 0.82);
}

.plan-card ul {
  display: grid;
  gap: 16px;
  list-style: none;
  margin: 0 0 34px;
  padding: 0;
}

.plan-card li {
  color: rgba(91, 100, 120, 0.9);
  font-size: 14px;
  line-height: 1.48;
  padding-left: 20px;
  position: relative;
}

.plan-featured li {
  color: rgba(91, 100, 120, 0.9);
}

.plan-card li::before {
  background: rgba(62, 124, 177, 0.58);
  border-radius: 50%;
  content: "";
  height: 6px;
  left: 2px;
  position: absolute;
  top: 9px;
  width: 6px;
}

.plan-featured li::before {
  background: rgba(184, 134, 58, 0.6);
}

.plan-action {
  align-items: center;
  background: rgba(184, 134, 58, 0.9);
  border-radius: 12px;
  color: white;
  display: inline-flex;
  font-size: 15px;
  font-weight: 650;
  justify-content: center;
  margin-top: auto;
  min-height: 48px;
  padding: 0 16px;
  text-align: center;
}

.plan-action:hover {
  background: var(--gold-dark);
}

.plan-action-muted {
  background: rgba(23, 33, 59, 0.06);
  color: var(--ink);
}

.plan-action-muted:hover {
  background: rgba(23, 33, 59, 0.1);
}

.plan-featured .plan-action-muted {
  background: rgba(23, 33, 59, 0.06);
  color: var(--ink);
}

.download {
  align-items: center;
  background: var(--ink);
  color: white;
  display: grid;
  gap: 34px;
  grid-template-columns: 120px minmax(0, 1fr) auto;
  padding: 54px 48px;
}

.download img {
  height: 106px;
  object-fit: contain;
  width: 106px;
}

.download h2 {
  font-size: 34px;
  margin-bottom: 10px;
}

.download p {
  color: rgba(255, 253, 248, 0.74);
  margin-bottom: 0;
  max-width: 760px;
}

.download .eyebrow {
  color: #d5b270;
}

.download-actions {
  display: flex;
  gap: 12px;
}

.button-primary {
  background: var(--gold);
}

.button-primary:hover {
  background: var(--gold-dark);
}

.button-secondary {
  border: 1px solid rgba(255, 253, 248, 0.34);
  color: white;
}

.button-secondary:hover {
  background: rgba(255, 253, 248, 0.08);
}

.future-links {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(5, 1fr);
  margin-top: 32px;
}

.future-links a {
  background: var(--surface);
  border: 1px solid rgba(23, 33, 59, 0.1);
  border-radius: 8px;
  color: var(--muted);
  font-weight: 720;
  min-height: 70px;
  padding: 18px;
}

.future-links a:hover {
  color: var(--ink);
  box-shadow: var(--shadow-card);
}

.site-footer {
  align-items: center;
  border-top: 1px solid rgba(23, 33, 59, 0.1);
  display: flex;
  justify-content: space-between;
  padding: 28px 48px;
}

.site-footer div {
  align-items: center;
  display: flex;
  gap: 12px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.site-footer a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

.site-footer a:hover {
  color: var(--ink);
}

@media (max-width: 1120px) {
  .site-header {
    padding: 14px 28px;
  }

  .nav-links {
    display: none;
  }

  .hero,
  .section {
    padding-left: 28px;
    padding-right: 28px;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(250px, 0.72fr);
    --hero-top: clamp(360px, 37.24vw, 715px);
    --hero-bottom: 500px;
    min-height: calc(var(--hero-top) + var(--hero-bottom));
  }

  .hero-app-screen {
    height: clamp(410px, 40vw, 520px);
    opacity: 0.9;
    right: 5%;
    top: calc(var(--hero-top) - 84px);
  }

  .hero-content {
    max-width: 560px;
  }

  .hero h1 {
    font-size: 62px;
  }

  .hero-app-promo p {
    font-size: 30px;
  }

  .store-badge-link {
    width: 170px;
  }

  .web-app-badge-link {
    width: 170px;
  }

  h1 {
    font-size: 44px;
  }

  h2 {
    font-size: 36px;
  }

  .hero-lion {
    right: -4%;
  }

  .hero-phone {
    right: 4%;
  }

  .feature-grid,
  .screen-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .app-slide-grid {
    grid-auto-columns: minmax(260px, 32vw);
    grid-auto-flow: column;
    grid-template-columns: none;
    overflow-x: auto;
    padding-bottom: 14px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .app-slide-grid::-webkit-scrollbar {
    display: none;
  }

  .app-slide-card {
    min-height: 460px;
    scroll-snap-align: start;
  }

  .title-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .plan-grid {
    grid-template-columns: 1fr;
    max-width: 520px;
  }

  .plan-card {
    min-height: 0;
  }

  .cover-showcase {
    margin-left: -28px;
    margin-right: -28px;
  }

  .cover-track {
    padding-left: 28px;
    padding-right: 28px;
  }

  .future-links {
    grid-template-columns: repeat(3, 1fr);
  }

  .download {
    grid-template-columns: 88px minmax(0, 1fr);
  }

  .download-actions {
    grid-column: 2;
  }
}

@media (max-width: 780px) {
  body {
    font-size: 15px;
  }

  .site-header {
    gap: 14px;
    padding: 12px 18px;
  }

  .header-actions {
    gap: 8px;
  }

  .language-switch {
    padding: 2px;
  }

  .language-option {
    font-size: 11px;
    height: 28px;
    min-width: 32px;
    padding: 0 8px;
  }

  .brand {
    min-width: 0;
  }

  .brand small {
    display: none;
  }

  .brand strong {
    font-size: 17px;
  }

  .header-cta {
    font-size: 13px;
    min-height: 40px;
    padding: 0 12px;
  }

  .hero {
    display: block;
    --hero-top: 330px;
    --hero-bottom: 470px;
    min-height: calc(var(--hero-top) + var(--hero-bottom));
    padding: 0 18px;
  }

  .hero::before {
    background-image: url("assets/mainpage-hero-background.webp");
    background-position: 58% top;
    background-size: auto 100%;
    height: calc(var(--hero-top) + 16px);
    inset: 0 0 auto 0;
  }

  .hero::after {
    background-image:
      linear-gradient(rgba(5, 43, 73, 0.87), rgba(5, 43, 73, 0.87)),
      url("assets/background-blue-01.webp");
    background-position: center, center;
    background-repeat: no-repeat, repeat;
    background-size: auto, cover;
    inset: calc(var(--hero-top) - 16px) 0 0 0;
  }

  .hero-media {
    opacity: 0.82;
  }

  .hero-lion {
    height: 420px;
    opacity: 0.18;
    right: -155px;
    top: 80px;
    width: 420px;
  }

  .hero-phone {
    display: none;
  }

  .hero-app-screen {
    display: none;
  }

  .hero-content {
    max-width: 100%;
    min-height: calc(var(--hero-top) + var(--hero-bottom));
    padding: 54px 0 64px;
  }

  h1,
  .hero h1 {
    font-size: 34px;
    margin-bottom: 18px;
    max-width: 100%;
  }

  h2 {
    font-size: 30px;
  }

  .hero-text {
    font-size: 17px;
    max-width: 100%;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: none;
    transform: none;
  }

  .hero-app-promo {
    grid-column: 1 / -1;
    margin-bottom: 10px;
  }

  .hero-app-promo img {
    height: 66px;
    margin-bottom: 8px;
    width: 66px;
  }

  .hero-app-promo strong {
    font-size: 16px;
    margin-bottom: 22px;
  }

  .hero-app-promo p {
    font-size: 24px;
    margin-bottom: 24px;
  }

  .store-link {
    min-width: 0;
    padding: 8px 12px;
    width: 100%;
  }

  .store-badge-link {
    height: 46px;
    width: 100%;
  }

  .web-app-badge-link {
    grid-column: 1 / -1;
    height: 46px;
    width: 100%;
  }

  .hero-trust {
    max-width: none;
  }

  .section {
    padding: 62px 18px;
  }

  .feature-grid,
  .screen-row,
  .title-grid,
  .why,
  .future-links {
    grid-template-columns: 1fr;
  }

  .feature-card {
    min-height: 0;
  }

  .screen-row {
    grid-auto-flow: column;
    grid-auto-columns: minmax(215px, 76vw);
    overflow-x: auto;
    padding-bottom: 12px;
    scroll-snap-type: x mandatory;
  }

  .mock-screen {
    scroll-snap-align: start;
  }

  .app-slide-grid {
    gap: 14px;
    grid-auto-columns: minmax(240px, 78vw);
    margin-top: 28px;
  }

  .app-slide-card {
    min-height: 430px;
  }

  .app-slide-copy {
    padding: 20px;
  }

  .app-slide-copy h3 {
    font-size: 22px;
  }

  .title-card,
  .title-real {
    min-height: 310px;
  }

  .plan-card {
    padding: 28px 24px 26px;
  }

  .plan-card h3 {
    font-size: 28px;
    margin-bottom: 14px;
  }

  .plan-price span {
    font-size: 38px;
  }

  .plan-price {
    margin-bottom: 24px;
  }

  .plan-card ul {
    gap: 12px;
    margin-bottom: 28px;
  }

  .plan-card li {
    font-size: 14px;
  }

  .plan-action {
    min-height: 44px;
  }

  .plan-badge {
    align-self: flex-start;
    margin: 0 0 12px;
  }

  .cover-showcase {
    margin-left: -18px;
    margin-right: -18px;
  }

  .cover-showcase::before,
  .cover-showcase::after {
    width: 42px;
  }

  .cover-track {
    gap: 14px;
    padding-left: 18px;
    padding-right: 18px;
  }

  .cover-preview-audio,
  .cover-preview-education {
    width: 168px;
  }

  .library .section-heading h2 {
    font-size: 30px;
  }

  .cover-preview-ebook {
    width: 126px;
  }

  .library-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .why {
    gap: 24px;
  }

  .download {
    grid-template-columns: 1fr;
    padding: 42px 18px;
  }

  .download img {
    height: 92px;
    width: 92px;
  }

  .download h2 {
    font-size: 28px;
  }

  .download-actions {
    display: grid;
    grid-column: auto;
    grid-template-columns: 1fr;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 22px;
    padding: 28px 18px;
  }
}

@media (max-width: 430px) {
  .brand img {
    height: 42px;
    width: 42px;
  }

  .header-cta {
    max-width: 156px;
    text-align: center;
  }

  .language-option {
    min-width: 30px;
    padding: 0 7px;
  }

  h1 {
    font-size: 32px;
  }

  h2 {
    font-size: 27px;
  }

  .hero {
    padding-top: 0;
  }

  .hero h1 {
    font-size: 40px;
  }

  .hero-text {
    font-size: 16px;
  }

  .hero-trust {
    padding-right: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cover-showcase {
    overflow-x: auto;
    scrollbar-width: none;
  }

  .cover-showcase::-webkit-scrollbar {
    display: none;
  }

  .cover-track,
  .cover-track-reverse {
    animation: none;
    transform: none;
  }
}

/* BENARI content update */
.hero {
  align-items: center;
  background: #111923;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.82fr);
  min-height: 720px;
  padding: 88px 48px 78px;
}

.hero::before {
  background-image:
    linear-gradient(90deg, rgba(17, 25, 35, 0.92), rgba(17, 25, 35, 0.72) 52%, rgba(17, 25, 35, 0.42)),
    url("assets/mainpage-hero-background.webp");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  height: 100%;
  inset: 0;
  z-index: 0;
}

.hero::after {
  background:
    radial-gradient(circle at 78% 48%, rgba(184, 134, 58, 0.18), rgba(184, 134, 58, 0) 30%),
    linear-gradient(180deg, rgba(17, 25, 35, 0), rgba(17, 25, 35, 0.38));
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: 1;
}

.hero-media {
  z-index: 2;
}

.hero-app-screen {
  border-radius: 34px;
  height: clamp(380px, 36vw, 555px);
  object-fit: contain;
  position: absolute;
  right: 8%;
  top: 50%;
  transform: translateY(-50%);
}

.hero-content {
  align-self: center;
  display: block;
  max-width: 740px;
  padding: 0;
  z-index: 3;
}

.hero .eyebrow {
  margin-top: 0;
  order: initial;
}

.hero h1 {
  font-size: clamp(46px, 4.7vw, 78px);
  line-height: 1.04;
  margin-bottom: 24px;
  max-width: 760px;
  order: initial;
}

.hero-text {
  font-size: clamp(19px, 1.36vw, 24px);
  max-width: 650px;
  order: initial;
}

.hero-actions {
  justify-content: flex-start;
  margin-top: 30px;
  max-width: none;
  order: initial;
  transform: none;
}

.hero .button-primary,
.hero .button-secondary {
  min-height: 50px;
  padding: 0 24px;
}

.store-note {
  color: rgba(255, 253, 248, 0.72);
  font-size: 14px;
  font-weight: 700;
  margin: 18px 0 0;
}

.trust-panel {
  align-items: start;
  background: var(--surface);
  border-bottom: 1px solid rgba(23, 33, 59, 0.08);
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
  padding: 56px 48px;
}

.trust-panel h2 {
  font-size: 34px;
  margin-bottom: 0;
}

.trust-panel p {
  color: var(--muted);
  font-size: 19px;
  margin: 6px 0 0;
  max-width: 740px;
}

.benefits {
  background: var(--surface);
}

.benefit-list {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  list-style: none;
  margin: 34px 0 0;
  padding: 0;
}

.benefit-list li {
  background: rgba(237, 231, 216, 0.62);
  border: 1px solid rgba(23, 33, 59, 0.1);
  border-radius: 8px;
  color: var(--ink);
  font-weight: 700;
  min-height: 126px;
  padding: 22px;
  position: relative;
}

.benefit-list li::before {
  background: rgba(184, 134, 58, 0.82);
  border-radius: 999px;
  content: "";
  display: block;
  height: 8px;
  margin-bottom: 18px;
  width: 38px;
}

.creator {
  align-items: start;
  background: #e6dfcf;
  display: grid;
  gap: 54px;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
}

.creator-copy {
  background: rgba(255, 253, 248, 0.62);
  border: 1px solid rgba(23, 33, 59, 0.1);
  border-radius: 8px;
  padding: 30px;
}

.creator-copy p {
  color: var(--muted);
  font-size: 18px;
}

.creator-copy p:last-of-type {
  margin-bottom: 26px;
}

.faq {
  background: var(--surface);
}

.faq-list {
  display: grid;
  gap: 12px;
  margin-top: 34px;
  max-width: 920px;
}

.faq-list details {
  background: rgba(237, 231, 216, 0.55);
  border: 1px solid rgba(23, 33, 59, 0.1);
  border-radius: 8px;
  padding: 0;
}

.faq-list summary {
  cursor: pointer;
  font-size: 18px;
  font-weight: 780;
  list-style: none;
  padding: 22px 24px;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  color: var(--gold-dark);
  content: "+";
  float: right;
  font-size: 22px;
  line-height: 1;
}

.faq-list details[open] summary::after {
  content: "-";
}

.faq-list p {
  color: var(--muted);
  margin: 0;
  padding: 0 24px 24px;
}

.site-footer div {
  flex-wrap: wrap;
}

.site-footer small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.legal-page {
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.58), rgba(237, 231, 216, 0.88)),
    var(--bg);
}

.legal-main {
  padding: 72px 48px 86px;
}

.legal-document {
  background: rgba(255, 253, 248, 0.88);
  border: 1px solid rgba(23, 33, 59, 0.1);
  border-radius: 8px;
  box-shadow: 0 18px 55px rgba(23, 33, 59, 0.08);
  margin: 0 auto;
  max-width: 1040px;
  padding: 42px 48px 54px;
}

.legal-back {
  color: var(--gold-dark);
  display: inline-flex;
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 28px;
}

.legal-back:hover {
  color: var(--ink);
}

.legal-hero {
  border-bottom: 1px solid rgba(23, 33, 59, 0.12);
  margin-bottom: 34px;
  padding-bottom: 28px;
}

.legal-hero h1 {
  color: var(--ink);
  font-size: clamp(36px, 4vw, 58px);
  margin-bottom: 22px;
  max-width: 900px;
}

.legal-meta {
  background: rgba(237, 231, 216, 0.55);
  border: 1px solid rgba(23, 33, 59, 0.08);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  padding: 20px 22px;
}

.legal-meta p {
  color: var(--muted);
  font-size: 15px;
  margin: 0;
}

.legal-content {
  max-width: 900px;
}

.legal-content h2 {
  border-top: 1px solid rgba(23, 33, 59, 0.1);
  color: var(--ink);
  font-family: Manrope, Inter, "Segoe UI", Arial, sans-serif;
  font-size: 24px;
  font-style: normal;
  font-weight: 820;
  line-height: 1.25;
  margin: 34px 0 14px;
  padding-top: 28px;
}

.legal-content h2:first-child {
  border-top: 0;
  margin-top: 0;
  padding-top: 0;
}

.legal-content p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.72;
  margin-bottom: 16px;
}

.legal-list {
  display: grid;
  gap: 10px;
  list-style: none;
  margin: 16px 0 22px;
  padding: 0;
}

.legal-list li {
  color: var(--muted);
  line-height: 1.62;
  padding-left: 24px;
  position: relative;
}

.legal-list li::before {
  background: var(--gold);
  border-radius: 50%;
  content: "";
  height: 7px;
  left: 2px;
  position: absolute;
  top: 10px;
  width: 7px;
}

@media (max-width: 1120px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(250px, 0.58fr);
    min-height: 660px;
    padding-left: 28px;
    padding-right: 28px;
  }

  .hero-app-screen {
    height: clamp(340px, 39vw, 470px);
    right: 3%;
  }

  .benefit-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .benefit-list li:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 780px) {
  .hero {
    display: block;
    min-height: auto;
    padding: 82px 18px 70px;
  }

  .hero::before {
    background-position: 58% center;
  }

  .hero-app-screen {
    display: none;
  }

  .hero-content {
    min-height: 0;
    padding: 0;
  }

  .hero h1 {
    font-size: 38px;
    line-height: 1.08;
  }

  .hero-text {
    font-size: 17px;
  }

  .hero-actions {
    display: grid;
    gap: 12px;
    grid-template-columns: 1fr;
  }

  .trust-panel,
  .creator {
    grid-template-columns: 1fr;
    padding: 46px 18px;
  }

  .trust-panel h2 {
    font-size: 28px;
  }

  .trust-panel p,
  .creator-copy p {
    font-size: 16px;
  }

  .benefit-list {
    grid-template-columns: 1fr;
  }

  .benefit-list li:last-child {
    grid-column: auto;
  }

  .benefit-list li {
    min-height: 0;
  }

  .creator-copy {
    padding: 24px;
  }

  .faq-list summary {
    font-size: 16px;
    padding: 20px;
  }

  .faq-list p {
    padding: 0 20px 20px;
  }

  .site-footer div {
    display: grid;
    grid-template-columns: 36px auto;
  }

  .site-footer small {
    grid-column: 2;
  }

  .legal-main {
    padding: 42px 18px 58px;
  }

  .legal-document {
    padding: 28px 20px 34px;
  }

  .legal-hero h1 {
    font-size: 31px;
  }

  .legal-meta {
    padding: 16px;
  }

  .legal-content h2 {
    font-size: 21px;
  }

  .legal-content p,
  .legal-list li {
    font-size: 15px;
  }
}

@media (max-width: 430px) {
  .hero h1 {
    font-size: 34px;
  }
}
