/* ==========================================================================
   MIDAD BOOKS — landing page styles
   Palette sampled directly from the logo.
   ========================================================================== */

:root {
  --yellow: #FBC002;
  --yellow-deep: #E2AB00;
  --teal: #0296A4;
  --teal-deep: #017682;
  --teal-dark: #014B54;
  --ink: #181713;
  --ink-soft: #3A3833;
  --cream: #FFFBF2;
  --white: #FFFFFF;
  --muted: #6E6862;
  --line: rgba(24, 23, 19, .12);

  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 2px 8px rgba(24, 23, 19, .06);
  --shadow: 0 12px 32px rgba(24, 23, 19, .10);
  --shadow-lg: 0 24px 60px rgba(24, 23, 19, .18);

  --header-h: 72px;
  --font-head: 'Poppins', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, sans-serif;
}

/* --------------------------------------------------------------------------
   Reset / base
   -------------------------------------------------------------------------- */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

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

h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.15;
  margin: 0;
  letter-spacing: -.02em;
}

p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }

:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: 20px;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border: 2px solid transparent;
  border-radius: 999px;
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--teal);
  color: var(--white);
  box-shadow: 0 6px 18px rgba(2, 150, 164, .32);
}
.btn--primary:hover { background: var(--teal-deep); }

.btn--dark {
  background: var(--ink);
  color: var(--white);
  box-shadow: 0 8px 22px rgba(24, 23, 19, .28);
}
.btn--dark:hover { background: #000; }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: rgba(24, 23, 19, .25);
}
.btn--ghost:hover { background: rgba(24, 23, 19, .05); }

.btn--lg { padding: 16px 34px; font-size: 17px; }
.btn--block { width: 100%; }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--yellow);
  transition: box-shadow .25s ease;
}

.site-header.is-scrolled { box-shadow: 0 4px 20px rgba(24, 23, 19, .18); }

.site-header__inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 20px;
}

/* --- Brand lockup ----------------------------------------------------------
   images/logo-mark.png is the book icon lifted out of the square logo with a
   transparent background, so it sits on any colour. The wordmark beside it is
   real text, which stays legible at header size where the original stacked
   logo did not. */

.site-header__logo,
.site-footer__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  text-decoration: none;
}

.site-header__logo:hover { text-decoration: none; }

.site-header__logo img,
.site-footer__logo img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(24, 23, 19, .22));
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-text__name {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -.005em;
  color: var(--teal);
}

.brand-text__sub {
  margin-top: 3px;
  font-family: var(--font-head);
  font-size: 9px;
  font-weight: 700;
  /* Tracked out so its width matches the name above it, the way the original
     logo sets the two lines. */
  letter-spacing: .43em;
  text-indent: .43em;
  color: var(--ink);
}

/* Footer sits on near-black, so the lockup inverts. */
.site-footer__logo .brand-text__name { color: var(--yellow); }
.site-footer__logo .brand-text__sub  { color: rgba(255, 251, 242, .78); }

/* --- Navigation -----------------------------------------------------------
   Mobile-first: the nav is a collapsible panel that drops below the header
   bar. From 900px up it becomes an inline row and the toggle disappears. */

.site-nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  display: grid;
  padding: 0 20px;
  background: var(--yellow);
  border-top: 1px solid rgba(24, 23, 19, .14);
  box-shadow: 0 14px 26px rgba(24, 23, 19, .18);
  max-height: 0;
  overflow: hidden;
  visibility: hidden;
  transition: max-height .28s ease, visibility .28s, padding .28s ease;
}

.site-nav.is-open {
  max-height: 340px;
  visibility: visible;
  padding: 6px 20px 14px;
}

.site-nav a {
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  padding: 14px 4px;                      /* ≥44px touch target */
  border-bottom: 1px solid rgba(24, 23, 19, .12);
}

.site-nav a:last-child { border-bottom: none; }
.site-nav__phone { font-variant-numeric: tabular-nums; }

/* Hamburger */
.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 10px;
  margin-left: 4px;
  border: none;
  border-radius: 10px;
  background: rgba(24, 23, 19, .08);
  cursor: pointer;
  flex-shrink: 0;
}

.nav-toggle span {
  display: block;
  height: 2.5px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform .25s ease, opacity .2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* Mobile: the toggle is the only right-hand control, so it takes the margin. */
.nav-toggle { margin-left: auto; }

@media (min-width: 900px) {
  .nav-toggle { display: none; }

  .site-nav {
    position: static;
    display: flex;
    gap: 28px;
    margin-left: auto;
    padding: 0;
    max-height: none;
    overflow: visible;
    visibility: visible;
    background: none;
    border-top: none;
    box-shadow: none;
    transition: none;
  }

  .site-nav a {
    font-size: 15px;
    padding: 2px 0;
    border-bottom: 2px solid transparent;
  }

  .site-nav a:hover { border-bottom-color: var(--ink); }
  .site-nav__phone { display: none; }   /* already in the footer */
}

/* --------------------------------------------------------------------------
   Section scaffolding
   -------------------------------------------------------------------------- */

.section { padding: clamp(64px, 8vw, 108px) 0; }

.section--white { background: var(--white); }
.section--dark  { background: var(--ink); color: var(--cream); }
.section--teal  { background: var(--teal); color: var(--white); }

.section__head {
  max-width: 780px;
  margin: 0 auto clamp(36px, 5vw, 56px);
  text-align: center;
}

.section__title {
  font-size: clamp(28px, 4.2vw, 44px);
  font-weight: 800;
}

.section__lead {
  margin-top: 16px;
  font-size: clamp(17px, 2vw, 20px);
  color: var(--muted);
}

.section--dark .section__lead,
.section--teal .section__lead { color: rgba(255, 255, 255, .82); }

.eyebrow {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 14px;
}

.section--dark .eyebrow { color: var(--yellow); }
.section--teal .eyebrow { color: var(--yellow); }

.hl {
  background: linear-gradient(180deg, transparent 62%, var(--yellow) 62%);
  padding: 0 4px;
  /* Repeat the highlight cleanly on each line instead of splitting it once. */
  -webkit-box-decoration-break: clone;
          box-decoration-break: clone;
}

.mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}

.mark--no  { background: rgba(255, 92, 92, .18); color: #FF7A7A; }
.mark--yes { background: rgba(2, 150, 164, .14); color: var(--teal); }

/* Scroll reveal */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .btn:hover { transform: none; }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  padding: clamp(48px, 7vw, 90px) 0 clamp(64px, 9vw, 120px);
  background:
    radial-gradient(1000px 500px at 88% -10%, rgba(251, 192, 2, .30), transparent 60%),
    radial-gradient(760px 420px at 0% 100%, rgba(2, 150, 164, .12), transparent 62%),
    var(--cream);
  overflow: hidden;
}

.hero__inner {
  display: grid;
  gap: clamp(40px, 6vw, 64px);
  align-items: center;
}

@media (min-width: 940px) {
  .hero__inner { grid-template-columns: 1.05fr .95fr; }
}

/* --- Hero copy: three staged reveals ---------------------------------------
   1. the headline
   2. the "Blogerlargami… yoki …insonlargami?" line, then the red strike is
      drawn across it
   3. the supporting paragraph and the badges                                */

/* Infinite 5s cycle, applied to exactly three elements:
     1. the headline
     2. "Blogerlargami…", then the red line struck across it
     3. "yoki dunyoni oʻzgartirgan buyuk insonlargami?"

   The lead paragraph and the badges are deliberately left out — they hold
   still so a reader is never interrupted mid-sentence.

   The stagger lives inside each keyframe set rather than in animation-delay:
   with delays the elements stay permanently phase-shifted, so the headline
   would start fading while line three was still arriving. This way they
   enter in order but clear together, as one deliberate beat. */

.hero__title,
.hero__strike,
.hero__answer { opacity: 0; }

.hero__content.is-revealed .hero__title,
.hero__content.is-revealed .hero__strike,
.hero__content.is-revealed .hero__answer {
  animation: 5s cubic-bezier(.2, .8, .25, 1) infinite both;
}

.hero__content.is-revealed .hero__title  { animation-name: hero-cycle-1; }  /* stage 1 */
.hero__content.is-revealed .hero__strike { animation-name: hero-cycle-2; }  /* stage 2 */
.hero__content.is-revealed .hero__answer { animation-name: hero-cycle-3; }  /* stage 3 */

@keyframes hero-cycle-1 {
  0%        { opacity: 0; transform: translateY(20px); }
  9%, 86%   { opacity: 1; transform: translateY(0); }
  95%, 100% { opacity: 0; transform: translateY(-10px); }
}

@keyframes hero-cycle-2 {
  0%, 12%   { opacity: 0; transform: translateY(20px); }
  22%, 86%  { opacity: 1; transform: translateY(0); }
  95%, 100% { opacity: 0; transform: translateY(-10px); }
}

@keyframes hero-cycle-3 {
  0%, 44%   { opacity: 0; transform: translateY(20px); }
  54%, 86%  { opacity: 1; transform: translateY(0); }
  95%, 100% { opacity: 0; transform: translateY(-10px); }
}

.hero__title {
  font-size: clamp(32px, 5.4vw, 58px);
  font-weight: 800;
}

.hero__title-em {
  display: block;
  color: var(--teal);
}

/* Two stacked lines — "Blogerlargami…" then "yoki dunyoni…" — so the two
   animation stages never share a line and appear to arrive out of order.
   A flex column also gives each stage its own block box to transform. */
.hero__question {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  margin-top: 22px;
  font-size: clamp(17px, 2.2vw, 21px);
  font-family: var(--font-head);
  font-weight: 600;
}

/* Drawn strike-through. text-decoration cannot be animated, so the line is a
   pseudo-element scaled from 0 to full width — that is what makes it look
   like it is being struck out live rather than arriving pre-crossed. */
.hero__strike {
  position: relative;
  display: inline-block;
  color: var(--muted);
  text-decoration: none;
}

.hero__strike::after {
  content: '';
  position: absolute;
  left: -2px;
  right: -2px;
  top: 54%;
  height: 2.5px;
  border-radius: 2px;
  background: #FF5C5C;
  transform: scaleX(0);
  transform-origin: left center;
}

/* A keyframe animation rather than a transition: a transition needs its
   "from" state to have been painted first, which is not guaranteed on the
   very first frame. `both` holds scaleX(0) through the delay, then draws. */
.hero__content.is-revealed .hero__strike::after {
  animation: strike-draw 5s cubic-bezier(.65, 0, .35, 1) infinite both;
}

/* Drawn in the gap between stage 2 arriving (22%) and stage 3 arriving
   (44%), so the sequence reads: text → struck out → the answer. */
@keyframes strike-draw {
  0%, 24%   { transform: scaleX(0); }
  38%, 86%  { transform: scaleX(1); }
  93%, 100% { transform: scaleX(0); }
}

.hero__or { color: var(--muted); margin-right: 5px; }

/* "yoki" + the bold answer animate together as one unit, so they share a
   wrapper and flow inline within it. */
.hero__answer { display: block; }

.hero__question strong { color: var(--ink); }

.hero__lead {
  margin-top: 22px;
  max-width: 56ch;
  color: var(--ink-soft);
}

/* All three badges stay on a single row at every width. */
.badges {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  margin-top: 26px;
}

.badge {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 8px;
  padding: 9px 16px 9px 12px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
}

.badge::before {
  content: '✓';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--teal);
  color: var(--white);
  font-size: 12px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

/* --- Fanned cover collage --------------------------------------------------
   Three layers of motion, deliberately kept on separate elements so they
   never overwrite each other:
     1. entrance  — wrapper transform, fans out of a stack on load
     2. idle      — inner <img>, a slow 6s float
     3. hover     — wrapper transform, spreads wider (pointer devices only)  */

.hero__visual {
  display: flex;
  justify-content: center;
}

.hero__covers {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  width: 100%;
  max-width: 520px;
  padding-block: 10px;
}

.hero__cover {
  flex: 0 0 auto;
  width: clamp(112px, 21vw, 176px);
  transition: transform .85s cubic-bezier(.18, .85, .25, 1),
              opacity .55s ease;
  transition-delay: calc(var(--i) * .085s);
}

/* The inner layer carries the idle motion and clips the gloss sweep.
   box-shadow still renders outside the clip, so the cards keep their lift. */
.hero__cover-inner {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  animation: cover-float 6s ease-in-out infinite;
  /* Negative delays stagger the float so the covers drift out of sync. */
  animation-delay: calc(var(--i) * -1.15s);
}

.hero__cover-inner img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

/* Gloss sweep — a soft highlight crossing each cover in turn, staggered so
   it reads as light moving over a shelf of books rather than a blink. */
.hero__cover-inner::after {
  content: '';
  position: absolute;
  top: -12%;
  bottom: -12%;
  left: -45%;
  width: 34%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .55), transparent);
  transform: skewX(-18deg) translateX(0);
  animation: cover-shine 7s ease-in-out infinite;
  animation-delay: calc(var(--i) * .7s);
  pointer-events: none;
}

@keyframes cover-float {
  0%, 100% { transform: translateY(0)    rotate(0deg); }
  50%      { transform: translateY(-8px) rotate(1.1deg); }
}

@keyframes cover-shine {
  0%, 52%   { transform: skewX(-18deg) translateX(0);    opacity: 0; }
  56%       { opacity: 1; }
  80%       { transform: skewX(-18deg) translateX(430%); opacity: 1; }
  86%, 100% { transform: skewX(-18deg) translateX(430%); opacity: 0; }
}

/* Whole fan sways very slowly — ties the individual covers together. */
.hero__covers {
  animation: fan-sway 11s ease-in-out infinite;
}

@keyframes fan-sway {
  0%, 100% { transform: rotate(-0.7deg); }
  50%      { transform: rotate(0.7deg); }
}

.hero__cover:not(:first-child) { margin-left: clamp(-72px, -9vw, -54px); }

/* Resting fan */
.hero__cover:nth-child(1) { transform: rotate(-9deg)   translateY(10px); z-index: 1; }
.hero__cover:nth-child(2) { transform: rotate(-4.5deg) translateY(-4px); z-index: 2; }
.hero__cover:nth-child(3) { transform: rotate(0deg)    translateY(-18px); z-index: 3; }
.hero__cover:nth-child(4) { transform: rotate(4.5deg)  translateY(-4px); z-index: 2; }
.hero__cover:nth-child(5) { transform: rotate(9deg)    translateY(10px); z-index: 1; }

/* Pre-entrance: collapsed into a single stack, slightly small and faded.
   JS adds .is-revealed, this stops matching, and each cover eases out to its
   resting angle on a staggered delay. */
.hero__covers:not(.is-revealed) .hero__cover {
  transform: rotate(0deg) translateY(26px) scale(.88);
  opacity: 0;
}

/* Spread wider on hover — pointer devices only, so a tap on a phone never
   leaves the fan stuck open. */
@media (hover: hover) {
  .hero__covers:hover .hero__cover:nth-child(1) { transform: rotate(-14deg)  translateY(2px); }
  .hero__covers:hover .hero__cover:nth-child(2) { transform: rotate(-7deg)   translateY(-10px); }
  .hero__covers:hover .hero__cover:nth-child(3) { transform: rotate(0deg)    translateY(-28px); }
  .hero__covers:hover .hero__cover:nth-child(4) { transform: rotate(7deg)    translateY(-10px); }
  .hero__covers:hover .hero__cover:nth-child(5) { transform: rotate(14deg)   translateY(2px); }

  .hero__covers:hover .hero__cover { transition-delay: 0s; }
}

@media (prefers-reduced-motion: reduce) {
  .hero__cover { transition: none; transition-delay: 0s; }
  .hero__covers,
  .hero__cover-inner,
  .hero__cover-inner::after { animation: none; }
  .hero__covers:not(.is-revealed) .hero__cover { opacity: 1; transform: none; }

  .hero__title,
  .hero__strike,
  .hero__answer,
  .hero__content.is-revealed .hero__title,
  .hero__content.is-revealed .hero__strike,
  .hero__content.is-revealed .hero__answer { animation: none; opacity: 1; transform: none; }
  .hero__content.is-revealed .hero__strike::after { animation: none; transform: scaleX(1); }
}

/* --------------------------------------------------------------------------
   Problem
   -------------------------------------------------------------------------- */

.chip-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
}

.chip {
  padding: 8px 18px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, .8);
}

.problem__bridge {
  text-align: center;
  font-size: 19px;
  color: rgba(255, 255, 255, .7);
  margin-bottom: 26px;
}

.problem__list {
  display: grid;
  gap: 12px;
  max-width: 640px;
  margin: 0 auto;
}

.problem__list li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: var(--radius);
  font-size: 16px;
}

.problem__mission {
  max-width: 640px;
  margin: 36px auto 0;
  text-align: center;
  font-family: var(--font-head);
  font-size: clamp(18px, 2.4vw, 23px);
  font-weight: 600;
  line-height: 1.5;
}

.problem__mission strong { color: var(--yellow); }

/* --------------------------------------------------------------------------
   Aspiration
   -------------------------------------------------------------------------- */

.name-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  max-width: 900px;
  margin: 0 auto;
}

.name-grid li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 15px;
  box-shadow: var(--shadow-sm);
}

.dream__note {
  text-align: center;
  margin-top: 24px;
  font-size: 18px;
  color: var(--muted);
}

/* --- Cover marquee ---------------------------------------------------------
   Continuous right-to-left drift, looping forever.

   Two identical sets of covers sit in one flex track. Translating the track
   by exactly -50% replaces set one with set two, so the loop has no seam.
   The spacing is applied as margin-right on each card rather than flex `gap`,
   because `gap` would add one extra space between the sets and -50% would no
   longer land exactly on a set boundary — that is what causes the small jump
   you see in most CSS marquees.

   Duration comes from js/script.js, which measures the track and sets
   --marquee-duration so the speed stays constant at any viewport width. */

.marquee {
  margin-top: clamp(36px, 5vw, 52px);
  margin-inline: calc(50% - 50vw);      /* full-bleed */
  padding: 6px 0 22px;
  overflow: hidden;
  /* Covers fade out at both edges instead of being chopped off. */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee-drift var(--marquee-duration, 60s) linear infinite;
  will-change: transform;
}

@keyframes marquee-drift {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}

/* Pause so a reader can settle on a title — pointer devices only, so the
   drift never stalls under a resting finger on a phone. */
@media (hover: hover) {
  .marquee:hover .marquee__track { animation-play-state: paused; }
}

.marquee:focus-within .marquee__track { animation-play-state: paused; }

.marquee__item {
  flex: 0 0 auto;
  width: clamp(140px, 22vw, 178px);
  margin: 0 18px 0 0;
  user-select: none;
}

.marquee__item img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: var(--shadow);
  transition: transform .3s ease, box-shadow .3s ease;
  pointer-events: none;
}

@media (hover: hover) {
  .marquee__item:hover img {
    transform: translateY(-8px) scale(1.03);
    box-shadow: var(--shadow-lg);
  }
}

.marquee__item figcaption {
  margin-top: 11px;
  text-align: center;
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

/* No motion: hold it still and let the covers be swiped through instead. */
@media (prefers-reduced-motion: reduce) {
  .marquee { overflow-x: auto; scrollbar-width: none; }
  .marquee::-webkit-scrollbar { display: none; }
  .marquee__track { animation: none; }
}

/* --------------------------------------------------------------------------
   Product features
   -------------------------------------------------------------------------- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
}

.feature {
  padding: 30px 26px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  text-align: center;
  transition: transform .25s ease, box-shadow .25s ease;
}

.feature:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.feature__icon { font-size: 30px; display: block; margin-bottom: 14px; }

.feature h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature p { font-size: 15px; color: var(--muted); }

.product__note {
  max-width: 640px;
  margin: clamp(32px, 4vw, 44px) auto 0;
  text-align: center;
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   Benefits
   -------------------------------------------------------------------------- */

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  max-width: 940px;
  margin: 0 auto;
}

.benefit {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 22px;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: var(--radius);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 16px;
  backdrop-filter: blur(2px);
}

.benefit span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--ink);
  font-size: 15px;
  font-weight: 800;
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   Collection gallery
   -------------------------------------------------------------------------- */

.tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 12px;
}

.tab {
  padding: 11px 24px;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  transition: all .2s ease;
}

.tab:hover { border-color: var(--teal); color: var(--teal); }

.tab[aria-selected="true"] {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--white);
  box-shadow: 0 6px 16px rgba(2, 150, 164, .28);
}

.collection__credit {
  text-align: center;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: clamp(28px, 4vw, 40px);
}

.book-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: clamp(18px, 2.4vw, 28px);
}

@media (min-width: 640px) {
  .book-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
}

.book-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}

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

.book-card__media { background: var(--cream); }

.book-card__media img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.book-card__body { padding: 14px 16px 18px; }

.book-card__title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
}

.book-card__subtitle {
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted);
}

/* Why parents choose it */
.why {
  margin-top: clamp(48px, 6vw, 72px);
  padding: clamp(28px, 4vw, 44px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.why__title {
  font-size: clamp(20px, 2.6vw, 26px);
  font-weight: 700;
  text-align: center;
  margin-bottom: 24px;
}

.why__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.why__list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: var(--cream);
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 500;
}

.why__list span { font-size: 20px; flex-shrink: 0; }

/* Vector Uzbek flag — regional-indicator emoji render as the bare letters
   "UZ" on Windows, so the icon is drawn rather than typed. */
.flag-uz {
  width: 26px;
  height: 13px;
  flex-shrink: 0;
  border: 1px solid rgba(24, 23, 19, .14);
  border-radius: 3px;
  box-sizing: content-box;
}

/* --------------------------------------------------------------------------
   Videos
   -------------------------------------------------------------------------- */

/* Two equal portrait cards, side by side at every width.

   The ratio is fixed at 9:16 and never released, so both cards are always
   identical no matter what the source clips measure — previously each card
   resized to its own video once loaded, which made them unequal and very
   tall.

   object-fit is `cover`: the clips are exactly 1080x1920, so the video itself
   is never cropped. The poster images are square (900x900 / 474x474), and
   `cover` fills the card with them instead of letterboxing a square picture
   inside a tall frame. Only the sides of the posters are trimmed, and both
   subjects sit centred. */

.video-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(10px, 2vw, 20px);
  max-width: 560px;          /* ~270px per card on desktop */
  margin-inline: auto;
}

.video-card {
  position: relative;
  aspect-ratio: 9 / 16;
  border-radius: clamp(12px, 2vw, 20px);
  overflow: hidden;
  background: linear-gradient(150deg, var(--teal-dark), var(--ink));
  box-shadow: var(--shadow);
}

.video-card__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(8px, 2vw, 16px);
  color: rgba(255, 255, 255, .82);
  font-family: var(--font-head);
  font-size: clamp(11px, 2.6vw, 15px);
  font-weight: 600;
  text-align: center;
  padding: 14px;
}

.video-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(38px, 9vw, 62px);
  height: clamp(38px, 9vw, 62px);
  padding-left: 4px;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--ink);
  font-size: clamp(14px, 3.4vw, 22px);
}

.video-card__video {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transition: opacity .3s ease;
}

.video-card.is-ready .video-card__video { opacity: 1; }
.video-card.is-ready .video-card__placeholder { display: none; }

/* --------------------------------------------------------------------------
   Final CTA
   -------------------------------------------------------------------------- */

.final-cta {
  background:
    radial-gradient(700px 340px at 50% 0%, rgba(255, 255, 255, .35), transparent 65%),
    var(--yellow);
  color: var(--ink);
  text-align: center;
}

.final-cta__inner { max-width: 760px; margin-inline: auto; }

.final-cta__title {
  font-size: clamp(28px, 4.4vw, 46px);
  font-weight: 800;
}

.final-cta__question {
  margin-top: 20px;
  font-family: var(--font-head);
  font-size: clamp(18px, 2.4vw, 24px);
  font-weight: 600;
  line-height: 1.5;
}

.final-cta__text {
  margin-top: 20px;
  font-size: clamp(16px, 1.9vw, 18px);
  color: rgba(24, 23, 19, .78);
  line-height: 1.7;
}

.final-cta__gift {
  margin-top: 32px;
  font-family: var(--font-head);
  font-size: clamp(17px, 2.1vw, 20px);
  font-weight: 600;
}

.final-cta__words {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 18px 0 32px;
}

.final-cta__words li {
  padding: 9px 22px;
  background: rgba(24, 23, 19, .09);
  border-radius: 999px;
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 700;
}

.final-cta__phone { margin-top: 22px; font-size: 15px; }

.final-cta__phone a {
  color: var(--ink);
  font-weight: 700;
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  background: var(--ink);
  color: rgba(255, 251, 242, .72);
  padding-top: clamp(48px, 6vw, 72px);
  font-size: 15px;
}

.site-footer__inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 36px;
  padding-bottom: 40px;
}

.site-footer__logo { margin-bottom: 14px; }

.site-footer__brand p { max-width: 30ch; }

.site-footer__col h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--yellow);
  margin-bottom: 14px;
}

.site-footer__col li { margin-bottom: 9px; }

.site-footer__col a { color: rgba(255, 251, 242, .82); }
.site-footer__col a:hover { color: var(--yellow); }

.site-footer__bottom {
  padding: 22px 20px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: 14px;
  color: rgba(255, 251, 242, .5);
  text-align: center;
}

/* --------------------------------------------------------------------------
   Mobile sticky CTA
   -------------------------------------------------------------------------- */

.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(255, 251, 242, .94);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  transform: translateY(110%);
  transition: transform .3s ease;
}

.sticky-cta.is-visible { transform: none; }
.sticky-cta .btn { width: 100%; }

@media (min-width: 900px) {
  .sticky-cta { display: none; }
}

/* Reserve room so the fixed bar never covers the end of the footer. */
@media (max-width: 899px) {
  body { padding-bottom: 76px; }
}

/* --------------------------------------------------------------------------
   Order modal
   -------------------------------------------------------------------------- */

.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(24, 23, 19, .6);
  backdrop-filter: blur(4px);
  overflow-y: auto;
}

.modal.is-open { display: flex; }

.modal__dialog {
  position: relative;
  width: 100%;
  max-width: 470px;
  margin: auto;
  padding: clamp(26px, 4vw, 38px);
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  animation: modal-in .25s ease;
}

@keyframes modal-in {
  from { opacity: 0; transform: translateY(16px) scale(.98); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .modal__dialog { animation: none; }
}

.modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 50%;
  background: rgba(24, 23, 19, .06);
  font-size: 24px;
  line-height: 1;
  color: var(--ink);
  cursor: pointer;
  transition: background .2s ease;
}

.modal__close:hover { background: rgba(24, 23, 19, .12); }

.modal__title {
  font-size: 25px;
  font-weight: 800;
  padding-right: 40px;
}

.modal__lead {
  margin-top: 10px;
  margin-bottom: 24px;
  font-size: 15px;
  color: var(--muted);
  line-height: 1.6;
}

/* Fields */
.field { margin-bottom: 18px; }

.field label {
  display: block;
  margin-bottom: 7px;
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 600;
}

.field input,
.field select {
  width: 100%;
  padding: 13px 15px;
  border: 2px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  font-family: var(--font-body);
  font-size: 16px; /* 16px avoids iOS zoom-on-focus */
  color: var(--ink);
  transition: border-color .2s ease, box-shadow .2s ease;
}

.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(2, 150, 164, .14);
}

.field input.is-invalid,
.field select.is-invalid {
  border-color: #E5484D;
  box-shadow: 0 0 0 4px rgba(229, 72, 77, .12);
}

.field select {
  appearance: none;
  cursor: pointer;
  padding-right: 42px;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath fill='%23181713' d='M1.4 0 7 5.6 12.6 0 14 1.4 7 8.4 0 1.4z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}

.field__error {
  min-height: 18px;
  margin-top: 5px;
  font-size: 13px;
  font-weight: 500;
  color: #E5484D;
}

/* Phone input with fixed +998 prefix */
.phone-input {
  display: flex;
  align-items: stretch;
  border: 2px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.phone-input:focus-within {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(2, 150, 164, .14);
}

.phone-input__prefix {
  display: flex;
  align-items: center;
  padding: 0 14px;
  background: var(--cream);
  border-right: 2px solid var(--line);
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  user-select: none;
}

.phone-input input {
  flex: 1;
  min-width: 0;
  border: none;
  border-radius: 0;
  letter-spacing: .04em;
}

.phone-input input:focus { box-shadow: none; }

/* The wrapper owns the border, so JS mirrors the invalid state onto it
   rather than relying on :has(). */
.phone-input.is-invalid {
  border-color: #E5484D;
  box-shadow: 0 0 0 4px rgba(229, 72, 77, .12);
}

.phone-input input.is-invalid { box-shadow: none; }

.modal__hint {
  margin-top: 16px;
  padding: 13px 15px;
  background: rgba(251, 192, 2, .16);
  border-radius: 12px;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-soft);
}

.modal__alt {
  margin-top: 14px;
  text-align: center;
  font-size: 14px;
  color: var(--muted);
}

/* Thank-you step */
.thanks { text-align: center; }

.thanks__icon { font-size: 46px; display: block; margin-bottom: 12px; }

.thanks__ask {
  margin: 26px 0 14px;
  padding: 22px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.thanks__ask p {
  margin-bottom: 16px;
  font-size: 15px;
  line-height: 1.6;
}

.thanks .btn--ghost { margin-top: 6px; }

/* ==========================================================================
   Responsive refinements
   Most traffic is mobile, so these target real phone widths rather than
   generic breakpoints. Content box = viewport - (2 x container padding).
   ========================================================================== */

/* --- Touch behaviour ------------------------------------------------------ */

.btn,
.tab,
.nav-toggle,
.modal__close {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;   /* kills the 300ms tap delay */
}

/* On touch screens :hover sticks after a tap, leaving cards stuck in their
   hover state. Only apply lift effects where hover is genuinely available. */
@media (hover: none) {
  .btn:hover,
  .book-card:hover,
  .feature:hover { transform: none; }

  .book-card:hover,
  .feature:hover { box-shadow: none; }

}

/* Long Uzbek compounds shouldn't punch through their container. */
h1, h2, h3, h4, p, li, a { overflow-wrap: break-word; }

/* --- Tablet and below ----------------------------------------------------- */

@media (max-width: 899px) {
  /* Shorter bar leaves more of the hero visible on first paint. */
  :root { --header-h: 64px; }
}

/* --- Phones --------------------------------------------------------------- */

@media (max-width: 620px) {
  body { font-size: 16px; }

  .site-header__logo { gap: 8px; }
  .site-header__logo img { width: 36px; height: 36px; }
  .site-header__logo .brand-text__name { font-size: 17px; }
  .site-header__logo .brand-text__sub  { font-size: 7.5px; letter-spacing: .40em; text-indent: .40em; }

  /* The fan is 5 covers wide: total = 5w - 4(overlap). At the old sizing that
     came to ~344px inside a 320px box, so the outer covers were clipped.
     Narrower covers plus deeper overlap keeps it inside the container. */
  .hero__cover { width: clamp(88px, 25vw, 128px); }
  .hero__cover:not(:first-child) { margin-left: -44px; }

  /* Flatter angles so rotation doesn't push the edges out either. */
  .hero__cover:nth-child(1) { transform: rotate(-7deg)   translateY(8px); }
  .hero__cover:nth-child(2) { transform: rotate(-3.5deg) translateY(-3px); }
  .hero__cover:nth-child(3) { transform: rotate(0deg)    translateY(-12px); }
  .hero__cover:nth-child(4) { transform: rotate(3.5deg)  translateY(-3px); }
  .hero__cover:nth-child(5) { transform: rotate(7deg)    translateY(8px); }

  /* Full-width stacked buttons beat two half-wrapped ones. */
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { width: 100%; }

  .book-card__body { padding: 12px 12px 15px; }
  .book-card__title { font-size: 14px; }
  .book-card__subtitle { font-size: 12px; }

  /* Series tabs swipe sideways rather than stacking into three rows. */
  .tabs {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    scrollbar-width: none;
    margin-inline: calc(50% - 50vw);
    padding: 2px 20px 6px;
  }

  .tabs::-webkit-scrollbar { display: none; }
  .tab { flex: 0 0 auto; }

  .problem__list li { padding: 14px 16px; font-size: 15px; }

  /* Ten short names in one column ran ~680px tall. Two tighter columns
     halve that without the names wrapping awkwardly. */
  .name-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .name-grid li {
    padding: 11px 12px;
    font-size: 13.5px;
    gap: 9px;
  }
  .name-grid .mark { width: 22px; height: 22px; font-size: 12px; }
  .why { padding: 24px 18px; }
  .final-cta__words { gap: 8px; }
  .final-cta__words li { padding: 8px 16px; font-size: 15px; }

  .site-footer__inner { gap: 28px; }
}

/* --- Small phones (iPhone SE, older Android) ------------------------------ */

@media (max-width: 380px) {
  .container { padding-inline: 16px; }

  .site-header__inner { gap: 10px; }


}

/* --- Landscape phones ------------------------------------------------------
   Short viewports: a tall modal would otherwise run off both ends with no
   way to reach the submit button. */

@media (max-height: 560px) and (orientation: landscape) {
  .modal { align-items: flex-start; }
  .hero { padding-block: 32px 48px; }
}

/* --- Modal on small screens ------------------------------------------------
   dvh accounts for the collapsing mobile browser chrome; the vh line is the
   fallback for browsers without dvh support. */

.modal__dialog {
  max-height: calc(100vh - 40px);
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
}

@media (max-width: 620px) {
  .modal { padding: 12px; }

  .modal__dialog {
    padding: 24px 20px;
    max-height: calc(100vh - 24px);
    max-height: calc(100dvh - 24px);
  }

  .modal__title { font-size: 22px; }
  .modal__close { width: 44px; height: 44px; }   /* full touch target */
}

/* --- Badges on one line at phone widths ------------------------------------
   Three full-size badges need ~460px; a 390px phone offers ~350px of content
   box. Dropping the circled tick to a plain glyph and tightening the type
   fits all three on a single row. overflow-x is a safety valve only. */

@media (max-width: 620px) {
  .badges {
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .badges::-webkit-scrollbar { display: none; }

  .badge {
    padding: 7px 10px;
    font-size: 11.5px;
    gap: 4px;
  }

  .badge::before {
    width: auto;
    height: auto;
    background: none;
    color: var(--teal);
    font-size: 12px;
    font-weight: 800;
  }
}

@media (max-width: 380px) {
  .badge { padding: 6px 9px; font-size: 10.5px; }
}

/* Marquee sizing on phones: smaller cards and tighter spacing so more than
   two covers stay in view at once. */
@media (max-width: 620px) {
  .marquee { padding: 4px 0 18px; }
  .marquee__item { width: 128px; margin-right: 12px; }
  .marquee__item img { border-radius: 12px; }
  .marquee__item figcaption { margin-top: 9px; font-size: 12.5px; }
}

/* --- Collection carousel (phones) ------------------------------------------
   10-11 covers stacked two-up ran ~1400px per tab on a phone. Below 620px the
   grid becomes a horizontal snap row instead: one card tall, with the next
   card deliberately peeking so it reads as swipeable. Desktop keeps the grid.

   No count is printed here on purpose — per-series totals (10/10/11) would sum
   to 31 and contradict the "30 ta premium kitob" headline. */

.carousel-nav {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
}

.carousel-dots {
  display: flex;
  align-items: center;
  gap: 6px;
}

.carousel-dot {
  width: 7px;
  height: 7px;
  padding: 0;
  border: none;
  border-radius: 99px;
  background: rgba(24, 23, 19, .2);
  cursor: pointer;
  transition: width .25s ease, background-color .25s ease;
}

.carousel-dot.is-active {
  width: 20px;
  background: var(--teal);
}

.carousel-hint {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}

@media (max-width: 620px) {
  .book-grid {
    display: flex;
    gap: 12px;
    margin-inline: calc(50% - 50vw);   /* full-bleed edge-to-edge */
    padding: 2px 20px 8px;
    overflow-x: auto;
    scroll-snap-type: x proximity;     /* proximity, not mandatory, so the
                                          final card is never yanked back */
    scroll-padding-inline: 20px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
  }

  .book-grid::-webkit-scrollbar { display: none; }

  /* ~42% shows two full covers plus a third peeking in from the edge. */
  .book-card {
    flex: 0 0 42%;
    scroll-snap-align: start;
  }

  .carousel-nav { display: flex; }
}

@media (max-width: 380px) {
  .book-card { flex-basis: 46%; }
}

/* --- Hero copy centred on single-column layouts ----------------------------
   The hero splits into two columns at 940px. Below that the copy sits above
   the covers, where centred text reads better and balances the fan. */

@media (max-width: 939px) {
  .hero__content { text-align: center; }
  .hero__lead { margin-inline: auto; }
  .badges { justify-content: center; }
  /* Stays a flex column — only the cross-axis alignment changes, so the two
     animated lines keep their own block boxes. */
  .hero__question { align-items: center; }
}

/* --- Order form: submit state, status, honeypot --------------------------- */

/* Off-screen rather than display:none — some bots skip hidden fields, and
   this stays invisible to people either way. */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

#orderSubmit { position: relative; }

#orderSubmit .btn__spinner {
  display: none;
  width: 17px;
  height: 17px;
  border: 2.5px solid rgba(255, 255, 255, .35);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}

#orderSubmit.is-loading .btn__spinner { display: block; }
#orderSubmit:disabled { opacity: .75; cursor: progress; }
#orderSubmit:disabled:hover { transform: none; }

@keyframes spin { to { transform: rotate(360deg); } }

.form-status {
  margin-top: 12px;
  font-size: 13.5px;
  line-height: 1.55;
  text-align: center;
}

.form-status:empty { margin-top: 0; }

.form-status--error {
  padding: 11px 14px;
  background: rgba(229, 72, 77, .1);
  border-radius: 12px;
  color: #C13B3F;
}

@media (prefers-reduced-motion: reduce) {
  #orderSubmit .btn__spinner { animation-duration: 1.6s; }
}
