/* orariFSHN website. Colours and shapes come from the app: the icon's navy and tile grid, the
   lecture teal / seminar amber of the lesson cards, and the app's accent blue. */

:root {
  --navy: #0c447c;
  --navy-deep: #08325c;
  --navy-ink: #051e38;
  --tile: #386694;
  --teal: #5dcaa5;
  --amber: #fac775;
  --blue: #1565c0;
  --blue-hover: #0f4fa0;
  --lecture-bar: #0f6e56;
  --lecture-bg: #e1f5ee;
  --lecture-fg: #085041;
  --seminar-bar: #ba7517;
  --seminar-bg: #faeeda;
  --seminar-fg: #633806;

  --bg: #f6f8fb;
  --surface: #ffffff;
  --text: #13202f;
  --text-2: #5a6779;
  --border: #e1e6ec;
  --shadow: 0 1px 2px rgb(5 30 56 / 6%), 0 8px 24px rgb(5 30 56 / 6%);

  --font-display: 'Bricolage Grotesque', 'Avenir Next', 'Segoe UI', sans-serif;
  --font-body: 'Instrument Sans', -apple-system, 'Segoe UI', sans-serif;

  --wrap: 1160px;
  --radius: 18px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a1220;
    --surface: #121c2c;
    --text: #e8ecf1;
    --text-2: #a3afbf;
    --border: #233149;
    --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 10px 30px rgb(0 0 0 / 25%);
    --lecture-bar: #5dcaa5;
    --lecture-bg: #0f3d2e;
    --lecture-fg: #9fe1cb;
    --seminar-bar: #ef9f27;
    --seminar-bg: #3d2a08;
    --seminar-fg: #fac775;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 0;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

.wrap {
  width: min(100% - 40px, var(--wrap));
  margin-inline: auto;
}
@supports (padding: env(safe-area-inset-left)) {
  .wrap {
    width: min(100% - 40px - env(safe-area-inset-left) - env(safe-area-inset-right), var(--wrap));
  }
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: #fff;
  color: var(--navy);
  font-weight: 600;
}
.skip-link:focus {
  top: 12px;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: #fff;
  background: rgb(8 50 92 / 72%);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgb(255 255 255 / 8%);
  transition: background 0.3s;
}
.site-header.is-scrolled {
  background: rgb(5 30 56 / 90%);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 350;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
}
.brand img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  box-shadow: 0 0 0 1px rgb(255 255 255 / 14%);
}
.brand b {
  font-weight: 800;
}

.site-nav {
  display: flex;
  gap: 26px;
  margin-left: auto;
  font-size: 0.95rem;
}
.site-nav a {
  text-decoration: none;
  color: rgb(255 255 255 / 78%);
  transition: color 0.2s;
}
.site-nav a:hover {
  color: #fff;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.lang-switch {
  display: inline-grid;
  place-items: center;
  min-width: 42px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid rgb(255 255 255 / 22%);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-decoration: none;
  color: rgb(255 255 255 / 85%);
}
.lang-switch:hover {
  border-color: rgb(255 255 255 / 50%);
  color: #fff;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.2s, background 0.2s;
}
.btn-light {
  background: #fff;
  color: var(--navy);
}
.btn-light:hover {
  transform: translateY(-1px);
}

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

.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(1200px 600px at 85% -10%, rgb(93 202 165 / 18%), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgb(250 199 117 / 12%), transparent 60%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 55%, var(--navy-ink) 100%);
  margin-top: -69px;
  padding-top: 69px;
}

.hero > .wrap {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center;
  gap: 40px;
  padding-block: 72px 56px;
}

/* The week as a grid of tiles, like the app icon: columns are days, a few slots light up. */
.week-grid {
  --cell: clamp(44px, 5.4vw, 78px);
  position: absolute;
  top: 104px;
  right: max(-60px, calc((100vw - var(--wrap)) / 2 - 90px));
  display: grid;
  grid-template-columns: repeat(5, var(--cell));
  grid-auto-rows: var(--cell);
  gap: calc(var(--cell) * 0.3);
  pointer-events: none;
  -webkit-mask-image: radial-gradient(70% 65% at 50% 45%, #000 35%, transparent 100%);
  mask-image: radial-gradient(70% 65% at 50% 45%, #000 35%, transparent 100%);
}
.week-grid .day {
  align-self: end;
}
.week-grid .day {
  text-align: center;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgb(255 255 255 / 38%);
}
.week-grid i {
  border-radius: 23%;
  background: rgb(56 102 148 / 34%);
}
.week-grid i.t,
.week-grid i.a {
  animation: lesson 7s ease-in-out infinite;
}
.week-grid i.t {
  background: var(--teal);
}
.week-grid i.a {
  background: var(--amber);
}
@keyframes lesson {
  0%,
  100% {
    opacity: 0.8;
  }
  50% {
    opacity: 0.25;
  }
}

.hero-copy {
  position: relative;
  z-index: 2;
}


.hero h1 {
  margin-top: 0;
  font-size: clamp(2.4rem, 4.6vw, 3.6rem);
  font-weight: 800;
}
.hero h1 .hl {
  position: relative;
  color: var(--teal);
}

.lead {
  margin-top: 22px;
  max-width: 34rem;
  font-size: clamp(1.08rem, 1.6vw, 1.22rem);
  color: rgb(255 255 255 / 80%);
}

.stores {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 32px;
}
.store-badge {
  display: block;
  border-radius: 10px;
  transition: transform 0.2s, filter 0.2s;
}
.store-badge:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
}
/* Apple's badge has no padding; Google's PNG has built-in padding, hence the different sizes. */
.store-badge img {
  height: 52px;
  width: auto;
}
.store-badge.play img {
  height: 76px;
  margin: -12px -10px;
}

.trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 24px;
  padding: 0;
  list-style: none;
  font-size: 0.92rem;
  color: rgb(255 255 255 / 72%);
}
.trust li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

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

.phones {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  min-height: 600px;
}

/* A device mockup. Each section sets only --w, the phone's width; bezel and corners scale with
   it, so a small phone looks like a scaled-down big one. The screenshot keeps its own proportions
   and is never cropped: the frame wraps it instead of forcing a shape on it. */
.phone {
  --w: min(290px, 70vw);
  position: relative;
  width: var(--w);
  padding: calc(var(--w) * 0.034);
  border-radius: calc(var(--w) * 0.165);
  background: linear-gradient(145deg, #2a2f38, #0b0d11 60%);
  box-shadow:
    inset 0 0 0 1.5px rgb(255 255 255 / 12%),
    0 30px 60px rgb(0 0 0 / 35%),
    0 12px 24px rgb(0 0 0 / 25%);
}
.phone img {
  width: 100%;
  height: auto;
  aspect-ratio: 720 / 1565;
  border-radius: calc(var(--w) * 0.135);
}

.phones .phone-back {
  position: absolute;
  transform: translate(-46%, 26px) rotate(-8deg) scale(0.9);
  filter: saturate(0.95);
}
.phones .phone-front {
  transform: translateX(18%) rotate(3deg);
}


/* ---------- Live stats ---------- */

.stats {
  position: relative;
  z-index: 2;
  border-top: 1px solid rgb(255 255 255 / 10%);
}
.stats ul {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0;
  padding: 26px 0 30px;
  list-style: none;
}
.stats li {
  padding: 0 20px;
  border-left: 1px solid rgb(255 255 255 / 10%);
}
.stats li:first-child {
  border-left: 0;
  padding-left: 0;
}
.stats strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.stats span {
  font-size: 0.9rem;
  color: rgb(255 255 255 / 68%);
}
.stats .live {
  white-space: nowrap;
}

/* ---------- Sections ---------- */

.section {
  padding-block: clamp(72px, 10vw, 128px);
}
.section-head {
  max-width: 44rem;
  margin-bottom: 52px;
}
.kicker {
  display: inline-block;
  margin-bottom: 14px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
}
@media (prefers-color-scheme: dark) {
  .kicker {
    color: #7fb2ef;
  }
}
.section h2 {
  font-size: clamp(2rem, 4.4vw, 3.1rem);
  font-weight: 750;
}
.section-head p {
  margin-top: 18px;
  font-size: 1.12rem;
  color: var(--text-2);
}

/* Features: an editorial list. The heading stays in view while the numbered items scroll past. */
.features-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 64px;
  align-items: start;
}
.features-layout .section-head {
  position: sticky;
  top: 120px;
  margin-bottom: 0;
}
.feature-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--border);
}
.feature-list li {
  display: grid;
  grid-template-columns: 76px 1fr;
  column-gap: 8px;
  padding: 30px 0 32px;
  border-bottom: 1px solid var(--border);
}
.feature-num {
  grid-row: span 2;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  color: var(--text-2);
  padding-top: 6px;
}
.feature-list h3 {
  font-size: clamp(1.35rem, 2.2vw, 1.7rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.feature-list p {
  margin-top: 10px;
  max-width: 34rem;
  color: var(--text-2);
}

/* ---------- Steps ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.step {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.step-num {
  font-family: var(--font-display);
  font-size: 3.4rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--text-2);
}
.step h3 {
  font-size: 1.35rem;
}
.step p {
  color: var(--text-2);
  /* Minimum space above the phone, which is pushed to the bottom of the step. */
  margin-bottom: 22px;
}
.step .phone {
  /* Up to 250px, but never wider than a quarter of the page (4 steps, 3 gaps of 28px). */
  --w: min(250px, (min(100vw - 40px, var(--wrap)) - 84px) / 4);
  /* Pinned to the bottom so the phones line up whatever the length of the text above them. */
  margin-top: auto;
  align-self: center;
  /* On the light page: a tight contact shadow plus a soft drop below, like a phone lying on paper.
     (The hero's heavy black shadow shows as a grey haze here.) */
  box-shadow:
    inset 0 0 0 1.5px rgb(255 255 255 / 12%),
    0 1px 2px rgb(5 30 56 / 10%),
    0 6px 12px -2px rgb(5 30 56 / 12%),
    0 18px 32px -8px rgb(5 30 56 / 22%);
}
@media (prefers-color-scheme: dark) {
  .step .phone {
    box-shadow:
      inset 0 0 0 1.5px rgb(255 255 255 / 12%),
      0 1px 2px rgb(0 0 0 / 30%),
      0 6px 12px -2px rgb(0 0 0 / 30%),
      0 18px 32px -8px rgb(0 0 0 / 45%);
  }
}

/* ---------- Professors band ---------- */

.band {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  background: linear-gradient(150deg, var(--navy) 0%, var(--navy-ink) 100%);
  color: #fff;
}
.band-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
  padding: clamp(40px, 6vw, 72px);
}
.band h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
}
.band p {
  margin-top: 18px;
  color: rgb(255 255 255 / 78%);
  font-size: 1.1rem;
}
.band .kicker {
  color: var(--amber);
}
.check-list {
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}
.check-list li {
  display: flex;
  gap: 12px;
  color: rgb(255 255 255 / 88%);
}
.check-list li::before {
  content: '';
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  border-radius: 7px;
  background: var(--amber) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23633806' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 15px no-repeat;
}
.band .phone {
  justify-self: center;
  transform: rotate(-3deg);
}
.band .week-grid {
  top: 50%;
  right: -40px;
  transform: translateY(-50%);
  opacity: 0.55;
}

/* ---------- FAQ ---------- */

.faq {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 48px;
  align-items: start;
}
.faq-list {
  display: grid;
  gap: 12px;
}
.faq details {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  transition: box-shadow 0.25s;
}
.faq details[open] {
  box-shadow: var(--shadow);
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  font-size: 1.05rem;
  /* Mobile browsers flash a grey box over a tapped summary; the arrow and shadow already respond. */
  -webkit-tap-highlight-color: transparent;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '';
  flex: none;
  width: 12px;
  height: 12px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translate(-3px, -3px);
  transition: transform 0.25s;
  opacity: 0.6;
}
.faq details[open] summary::after {
  transform: rotate(-135deg) translate(-3px, -3px);
}
.faq details p {
  padding: 0 22px 20px;
  color: var(--text-2);
}
.faq details a {
  color: var(--blue);
}

/* ---------- Final call to action ---------- */

.cta {
  text-align: center;
}
.cta .band-inner {
  grid-template-columns: 1fr;
  justify-items: center;
  padding-block: clamp(56px, 8vw, 96px);
}
.cta .stores {
  justify-content: center;
}
.cta .week-grid {
  top: 50%;
  right: auto;
  left: 50%;
  grid-template-columns: repeat(12, var(--cell));
  transform: translate(-50%, -50%);
  opacity: 0.45;
  /* Tiles frame the message; the middle stays clear for the text and badges. */
  -webkit-mask-image: radial-gradient(ellipse 42% 75% at 50% 50%, transparent 55%, #000 100%);
  mask-image: radial-gradient(ellipse 42% 75% at 50% 50%, transparent 55%, #000 100%);
}
.cta h2,
.cta p,
.cta .stores {
  position: relative;
  z-index: 1;
}
.cta p {
  max-width: 34rem;
}

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

.site-footer {
  padding-block: 56px 40px;
  border-top: 1px solid var(--border);
  font-size: 0.95rem;
  color: var(--text-2);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
}
.site-footer .brand {
  color: var(--text);
}
.site-footer p {
  margin-top: 14px;
  max-width: 26rem;
}
.site-footer h3 {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 14px;
}
.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}
.site-footer a {
  text-decoration: none;
}
.site-footer a:hover {
  color: var(--text);
  text-decoration: underline;
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 0.88rem;
}

/* ---------- Simple text pages (privacy, 404) ---------- */

.page-hero {
  margin-top: -69px;
  padding: 140px 0 56px;
  color: #fff;
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-ink) 100%);
}
.page-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
}
.page-hero p {
  margin-top: 14px;
  color: rgb(255 255 255 / 75%);
}
.prose {
  max-width: 46rem;
  padding-block: 56px 96px;
}
.prose h2 {
  margin-top: 40px;
  font-size: 1.5rem;
}
.prose p,
.prose ul {
  margin-top: 14px;
  color: var(--text-2);
}
.prose li {
  margin-top: 6px;
}
.prose a {
  color: var(--blue);
}

/* ---------- Load and scroll reveals (only when JS runs; content is visible without it) ---------- */

.hero-copy > *,
.phones {
  animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.hero-copy > :nth-child(2) {
  animation-delay: 0.08s;
}
.hero-copy > :nth-child(3) {
  animation-delay: 0.16s;
}
.hero-copy > :nth-child(4) {
  animation-delay: 0.24s;
}
.hero-copy > :nth-child(5) {
  animation-delay: 0.32s;
}
.phones {
  animation-delay: 0.2s;
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
}

.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.js .reveal.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
  .site-nav {
    display: none;
  }
  /* With the menu hidden, keep the language switch and button at the right end. */
  .header-actions {
    margin-left: auto;
  }
  .hero > .wrap {
    grid-template-columns: 1fr;
    padding-block: 48px 32px;
    text-align: center;
  }
  .hero-copy {
    display: grid;
    justify-items: center;
  }
  .lead {
    margin-inline: auto;
  }
  .stores,
  .trust {
    justify-content: center;
  }
  .hero > .week-grid {
    top: auto;
    right: auto;
    left: 50%;
    bottom: 140px;
    transform: translateX(-50%);
  }
  /* The back phone sits lower and tilted, so a bottom margin keeps equal space above and below.
     (Padding would not: the absolutely placed back phone is centred within it and moves down too.) */
  .phones {
    min-height: 520px;
    margin-bottom: 28px;
  }
  /* Centre the pair: the back phone sits left, the front one right. */
  .phones .phone-back {
    transform: translate(-33%, 26px) rotate(-8deg) scale(0.9);
  }
  .phones .phone-front {
    transform: translateX(31%) rotate(3deg);
  }
  .steps {
    grid-template-columns: 1fr 1fr;
  }
  .step .phone {
    --w: 250px;
  }
  .band-inner,
  .faq,
  .features-layout {
    grid-template-columns: 1fr;
  }
  .features-layout {
    gap: 36px;
  }
  .features-layout .section-head {
    position: static;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-grid > :first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .site-header .wrap {
    gap: 12px;
  }
  .stores {
    gap: 10px;
  }
  .store-badge img {
    height: 44px;
  }
  .store-badge.play img {
    height: 64px;
    margin: -10px -8px;
  }
  .header-actions .btn {
    display: none;
  }
  .phones {
    min-height: 440px;
  }
  .phone {
    --w: min(230px, 62vw);
  }
  .stats ul {
    grid-template-columns: 1fr 1fr;
    gap: 22px 0;
  }
  .stats li:nth-child(3) {
    border-left: 0;
    padding-left: 0;
  }
  .steps {
    grid-template-columns: 1fr;
  }
  .feature-list li {
    grid-template-columns: 48px 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Phones: layout tuned for 320–480px wide screens ---------- */

@media (max-width: 640px) {
  .lang-switch {
    min-width: 44px;
    height: 44px;
  }
  .brand {
    min-height: 44px;
  }

  /* Headline scales with the screen so it breaks into balanced lines instead of leaving a word alone. */
  .hero h1 {
    font-size: min(8.6vw, 2.4rem);
    letter-spacing: -0.03em;
  }
  .lead {
    font-size: 1.05rem;
  }

  /* Decorative tiles are hidden where they would sit behind content. */
  .hero > .week-grid,
  .band .week-grid {
    display: none;
  }

  /* Two phones, centred as a pair and fully on screen. */
  .phones {
    min-height: 0;
    padding: 0;
    margin-bottom: 30px;
  }
  /* Smaller and closer together so the tilted corners stay inside the 20px page margin.
     Mockups are also capped by the visible screen height (svh leaves out Safari's bars), so on
     short phones a mockup stays around two thirds of the screen and its text fits on screen with it. */
  .phones .phone {
    --w: clamp(150px, 28vh, min(215px, 55vw));
  }
  .phones .phone-back {
    transform: translate(-30%, 22px) rotate(-7deg) scale(0.9);
  }
  .phones .phone-front {
    transform: translateX(28%) rotate(3deg);
  }

  /* Stats: a centred 2 × 2 grid without dividers. */
  .stats ul {
    grid-template-columns: 1fr 1fr;
    gap: 24px 12px;
    padding: 28px 0 32px;
    text-align: center;
  }
  .stats li,
  .stats li:first-child,
  .stats li:nth-child(3) {
    padding: 0;
    border-left: 0;
  }

  /* Steps: a horizontal swipe row, like store screenshots; the next step peeks in. */
  .steps {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    /* Without this the row also scrolls vertically and traps the page scroll. */
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
    /* The row clips what overflows it, so it gets room for the phones' shadows; the negative
       bottom margin hands that room back so the section spacing is unchanged. */
    margin: 0 -20px -20px;
    padding: 4px 20px 56px;
    scroll-padding-inline: 20px;
    scrollbar-width: none;
  }
  .steps::-webkit-scrollbar {
    display: none;
  }
  .step {
    flex: 0 0 84%;
    scroll-snap-align: start;
  }
  .step .phone {
    --w: clamp(150px, 32vh, min(270px, 70vw));
    /* In line with the step's text; centred, it looked shifted right next to the left-aligned title. */
    align-self: start;
  }

  /* Bands: less inner padding so text and badges get the width. */
  .band {
    border-radius: 24px;
  }
  .band-inner {
    gap: 32px;
    padding: 36px 22px;
  }
  .band .phone {
    --w: clamp(150px, 32vh, min(260px, 68vw));
  }
  .cta .band-inner {
    padding-block: 48px;
  }
  .cta .stores {
    flex-wrap: nowrap;
  }
  .cta .store-badge img {
    height: 40px;
  }
  .cta .store-badge.play img {
    height: 59px;
    margin: -9px -7px;
  }

  /* Footer: the two link groups side by side, with comfortable tap targets. */
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px 20px;
  }
  .site-footer ul {
    gap: 0;
  }
  .site-footer li a {
    display: block;
    padding: 10px 0;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 6px;
  }
}

/* Where supported, size phone mockups by the visible height (svh leaves out Safari's bars). */
@supports (height: 1svh) {
  @media (max-width: 640px) {
    .phones .phone {
      --w: clamp(150px, 28svh, min(215px, 55vw));
    }
    .step .phone {
      --w: clamp(150px, 32svh, min(270px, 70vw));
    }
    .band .phone {
      --w: clamp(150px, 32svh, min(260px, 68vw));
    }
  }
}

/* Very narrow phones (320–380px): smaller badges so both stores fit on one line. */
@media (max-width: 380px) {
  .store-badge img {
    height: 40px;
  }
  .store-badge.play img {
    height: 59px;
    margin: -9px -7px;
  }
}
