/* CloudBand — shared styles
   Tokens and the background scene come from the original one-screen page. */

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

:root {
  --color-yellow: #FADD37;
  --color-yellow-dark: #E8C91E;
  --color-blue-deep: #376DAD;
  --color-blue-sky: #4396FA;
  --color-purple-deep: #7515AD;
  --color-purple-bright: #AE2AFA;
  --color-text: #212529;
  --color-text-secondary: #6C757D;
  --color-bg: #FAFBFC;
  --color-panel: rgba(246, 248, 247, 0.85);
  --font: 'Commissioner', 'Helvetica Neue', Helvetica, Arial, sans-serif;

  --container: 1120px;
  --section-gap: clamp(5rem, 11vw, 9rem);
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--color-text);
  background: var(--color-bg);
  min-height: 100vh;
  overflow-x: hidden;
}

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

a {
  color: inherit;
}

/* ---------- Background scene (fixed, shines through the whole page) ---------- */
.bg-scene {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.bg-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.12;
}

.bg-blob--yellow {
  width: 600px;
  height: 600px;
  background: var(--color-yellow);
  top: -15%;
  right: -10%;
  opacity: 0.18;
}

.bg-blob--blue {
  width: 500px;
  height: 500px;
  background: var(--color-blue-sky);
  bottom: -10%;
  left: -8%;
  opacity: 0.10;
}

.bg-blob--purple {
  width: 350px;
  height: 350px;
  background: var(--color-purple-bright);
  bottom: 20%;
  right: 5%;
  opacity: 0.07;
}

.bg-blob--yellow-left {
  width: 520px;
  height: 520px;
  background: var(--color-yellow);
  top: 28%;
  left: -14%;
  opacity: 0.14;
}

/* ---------- Layout ---------- */
.page {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem 1.5rem 0;
}

.section {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: var(--section-gap) 0 0;
}

.section--tight {
  padding-top: clamp(2rem, 5vw, 3.5rem);
}

/* ---------- Typography ---------- */
.headline {
  font-size: clamp(1.6rem, 4.5vw, 2.4rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.025em;
  margin-bottom: 1.25rem;
  color: var(--color-text);
}

.headline em {
  font-style: normal;
  color: var(--color-purple-deep);
}

.subtitle {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--color-text-secondary);
  margin-bottom: 2.25rem;
  font-weight: 400;
  max-width: 480px;
}

.section-title {
  font-size: clamp(1.5rem, 3.6vw, 2.1rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.025em;
  margin-bottom: 1.1rem;
  color: var(--color-text);
  text-wrap: balance;
}

.section-title--big {
  font-size: clamp(1.7rem, 4.5vw, 2.5rem);
}

.eyebrow {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
  margin-bottom: 1rem;
}

.copy {
  max-width: 480px;
}

.copy--wide {
  max-width: 560px;
}

.copy p {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--color-text);
  font-weight: 400;
  text-wrap: pretty;
}

.copy p + p {
  margin-top: 1rem;
}

.copy .lead {
  font-size: 1.1rem;
  color: var(--color-text-secondary);
}

/* ---------- Logo ---------- */
.logo {
  margin-bottom: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
}

.logo-emblem {
  width: 72px;
  height: 72px;
  transition: transform 0.3s ease;
}

.logo:hover .logo-emblem {
  transform: scale(1.08);
}

.logo-wordmark {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-text);
}

/* ---------- Chips ---------- */
.features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 0.75rem;
  margin-bottom: 2.5rem;
}

.feature-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.9rem;
  background: var(--color-panel);
  backdrop-filter: blur(10px) saturate(160%);
  -webkit-backdrop-filter: blur(10px) saturate(160%);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 50rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text);
  white-space: nowrap;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-tag:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.feature-tag .icon {
  font-size: 1rem;
  line-height: 1;
}

/* ---------- Buttons and links ---------- */
.cta-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  background: var(--color-yellow);
  color: var(--color-text);
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 50rem;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  box-shadow: 0 2px 12px rgba(250, 221, 55, 0.3);
}

.cta-button:hover {
  transform: scale(1.05);
  background: var(--color-yellow-dark);
  box-shadow: 0 4px 20px rgba(250, 221, 55, 0.4);
}

.cta-button:active {
  transform: scale(0.98);
}

.cta-button:focus-visible {
  outline: 3px solid var(--color-purple-deep);
  outline-offset: 3px;
}

.cta-button svg {
  width: 18px;
  height: 18px;
}

.cta-button--small {
  padding: 0.6rem 1.25rem;
  font-size: 0.9rem;
  box-shadow: none;
}

.cta-button--small svg {
  width: 15px;
  height: 15px;
}

.cta-hint {
  font-size: 0.8rem;
  color: var(--color-text-secondary);
  font-weight: 400;
  text-align: center;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  text-decoration: none;
  padding: 0.25rem 0.1rem;
  border-bottom: 2px solid var(--color-yellow);
  transition: border-color 0.2s ease, gap 0.2s ease;
}

.text-link:hover {
  border-bottom-color: var(--color-yellow-dark);
  gap: 0.65rem;
}

.text-link:focus-visible {
  outline: 3px solid var(--color-purple-deep);
  outline-offset: 4px;
  border-radius: 4px;
}

.text-link svg {
  width: 16px;
  height: 16px;
}

/* ---------- Hero ---------- */
.hero {
  max-width: var(--container);
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 1.5rem;
}

.hero .content {
  max-width: 580px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* The fade sits on a wrapper with inner padding on top and both sides, so the
   drop shadow has room and only the bottom of the phone dissolves into the page. */
.hero-phone {
  margin-top: clamp(3rem, 7vw, 5rem);
  width: min(540px, 100%);
  height: 560px;
  padding: 40px 60px 0;
  -webkit-mask-image: linear-gradient(to bottom, #000 45%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 45%, transparent 100%);
}

.hero-phone .phone {
  width: 100%;
}

/* ---------- Phone screenshot ---------- */
.phone {
  flex: 0 0 auto;
  align-self: flex-start;
  width: min(400px, 100%);
  height: auto;
  aspect-ratio: 458 / 960;
  filter: drop-shadow(0 24px 40px rgba(33, 37, 41, 0.16));
}

/* ---------- Pitch: the mess today, the turn, what CloudBand does ---------- */
.pitch {
  display: flex;
  justify-content: center;
  padding-top: clamp(3.5rem, 8vw, 6rem);
}

.pitch-card {
  width: 100%;
  max-width: 720px;
  display: flex;
  flex-direction: column;
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(250, 221, 55, 0.22) 0%, rgba(255, 255, 255, 0.55) 48%, rgba(67, 150, 250, 0.10) 100%);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 24px 60px rgba(33, 37, 41, 0.06);
  overflow: hidden;
}

.pitch-before,
.pitch-after {
  padding: clamp(2rem, 4.5vw, 3.25rem);
  text-align: left;
}

.pitch-before {
  border-bottom: 1px solid rgba(33, 37, 41, 0.08);
}

.pitch-before p {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  line-height: 1.5;
  color: var(--color-text-secondary);
  letter-spacing: -0.01em;
  text-wrap: pretty;
}

.pitch-before strong {
  display: block;
  margin-top: 0.75rem;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: -0.02em;
}

.pitch-turn {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--color-text);
  margin-bottom: 1rem;
}

.pitch-after p:not(.pitch-turn) {
  font-size: clamp(1.05rem, 1.8vw, 1.15rem);
  line-height: 1.6;
  color: var(--color-text);
  text-wrap: pretty;
}

/* The card rises, then the two halves fill in one after the other */
.pitch.reveal {
  opacity: 1;
  transform: none;
  transition: none;
}

.pitch.reveal .pitch-card {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.pitch.reveal .pitch-before,
.pitch.reveal .pitch-after {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s var(--ease-out) 0.25s, transform 0.6s var(--ease-out) 0.25s;
}

.pitch.reveal .pitch-after {
  transition-delay: 0.5s;
}

.pitch.reveal.is-visible .pitch-card,
.pitch.reveal.is-visible .pitch-before,
.pitch.reveal.is-visible .pitch-after {
  opacity: 1;
  transform: none;
}

/* ---------- Feature block: one headline, two sentences, one phone ---------- */
.feature {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-top: var(--section-gap);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 2rem 3rem;
}

.feature-copy {
  max-width: 440px;
  justify-self: end;
}

.feature--flip .feature-copy {
  order: 2;
  justify-self: start;
}

.feature--flip .feature-visual {
  order: 1;
}

.feature-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--color-text);
  margin-bottom: 1.1rem;
  text-wrap: balance;
}

.feature-text {
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--color-text-secondary);
  text-wrap: pretty;
}

.feature-copy .text-link {
  margin-top: 1.75rem;
}

/* The glow behind the phone borrows one colour from the scene; the page background stays one piece. */
.feature-visual {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 2rem 0;
}

.feature-visual::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: var(--glow);
  opacity: var(--glow-opacity);
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

.feature--yellow {
  --glow: var(--color-yellow);
  --glow-opacity: 0.38;
  --tilt: 2.5deg;
}

.feature--purple {
  --glow: var(--color-purple-bright);
  --glow-opacity: 0.16;
  --tilt: -2.5deg;
}

.feature--blue {
  --glow: var(--color-blue-sky);
  --glow-opacity: 0.22;
  --tilt: 2.5deg;
}

.feature-visual .phone {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  transform: rotate(var(--tilt));
}

/* The main feature gets the biggest phone and a little more air */
.feature--lead {
  padding-top: calc(var(--section-gap) * 1.15);
}

.feature--lead .feature-visual .phone {
  width: min(470px, 100%);
}

.feature--lead .feature-visual::before {
  width: 600px;
  height: 600px;
}

/* ---------- "And also" strip ---------- */
.more {
  text-align: center;
}

.more-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem;
  max-width: 1040px;
  margin: 2.5rem auto 0;
}

.more-item strong {
  display: block;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.4rem;
}

.more-item span {
  display: block;
  color: var(--color-text-secondary);
  line-height: 1.55;
  text-wrap: pretty;
}

.more-item a {
  text-decoration: none;
}

.more-item a:hover strong {
  text-decoration: underline;
  text-decoration-color: var(--color-yellow);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

/* ---------- Final CTA ---------- */
.cta-final {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 2rem;
}

.cta-final .copy {
  text-align: center;
  margin-bottom: 2rem;
}

/* ---------- Footer ---------- */
.footer {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 3.5rem 0 1.75rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem 1.5rem;
  font-size: 0.8rem;
  color: var(--color-text-secondary);
  text-align: center;
}

.footer a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(108, 117, 125, 0.35);
}

.footer a:hover {
  color: var(--color-text);
  border-bottom-color: currentColor;
}

/* ---------- Floating navigation ---------- */
.floatnav {
  position: fixed;
  top: 12px;
  left: 0;
  right: 0;
  margin: 0 auto;
  z-index: 20;
  width: min(var(--container), calc(100% - 1.5rem));
  height: 54px;
  padding: 0 0.6rem 0 0.9rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-radius: 50rem;
  background: rgba(250, 251, 252, 0.72);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 8px 28px rgba(33, 37, 41, 0.07);
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.floatnav-logo,
.floatnav-links,
.floatnav-cta {
  transition: opacity 0.2s ease;
}

/* Front page only: the bar surfaces once the hero has scrolled away. No movement, just
   opacity and the shadow growing, as if it rose out of the background. */
.floatnav--auto {
  opacity: 0;
  box-shadow: 0 0 0 rgba(33, 37, 41, 0);
  pointer-events: none;
  transition: opacity 0.45s ease, box-shadow 0.6s ease;
}

.floatnav--auto.is-visible {
  opacity: 1;
  box-shadow: 0 8px 28px rgba(33, 37, 41, 0.07);
  pointer-events: auto;
}

.floatnav-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  color: var(--color-text);
}

.floatnav-logo img {
  width: 28px;
  height: 28px;
}

.floatnav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.floatnav-links a {
  padding: 0.4rem 0.8rem;
  border-radius: 50rem;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: color 0.2s ease, background 0.2s ease;
}

.floatnav-links a:hover {
  color: var(--color-text);
  background: rgba(33, 37, 41, 0.05);
}

.floatnav-links a[aria-current="page"] {
  color: var(--color-text);
  font-weight: 600;
  background: rgba(250, 221, 55, 0.35);
}

.floatnav .cta-button--small {
  padding: 0.5rem 1.1rem;
}

/* Hamburger, mobile only */
.floatnav-burger {
  display: none;
  width: 44px;
  height: 44px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: none;
  background: transparent;
  border-radius: 50%;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.floatnav-burger span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--color-text);
  transition: transform 0.3s var(--ease-out), opacity 0.2s ease;
}

.floatnav-burger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.floatnav-burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.floatnav-burger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Fullscreen menu: big logo, links within thumb reach */
.menu {
  position: fixed;
  inset: 0;
  z-index: 30;
  visibility: hidden;
  pointer-events: none;
}

.menu.is-open {
  visibility: visible;
  pointer-events: auto;
}

.menu-scene {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(60% 45% at 88% 4%, rgba(250, 221, 55, 0.5), rgba(250, 221, 55, 0) 70%),
    radial-gradient(60% 45% at -6% 100%, rgba(67, 150, 250, 0.3), rgba(67, 150, 250, 0) 70%),
    radial-gradient(45% 38% at 108% 68%, rgba(174, 42, 250, 0.2), rgba(174, 42, 250, 0) 70%),
    var(--color-bg);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.menu.is-open .menu-scene {
  opacity: 1;
}

.menu-inner {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 6rem 1.5rem calc(2.5rem + env(safe-area-inset-bottom, 0px));
}

.menu-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  text-decoration: none;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-text);
}

.menu-logo img {
  width: 72px;
  height: 72px;
}

.menu-links {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
  padding-top: 3rem;
}

.menu-links a {
  font-size: 2.1rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--color-text);
  text-decoration: none;
  padding: 0.15rem 0.2rem;
}

.menu-links a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: var(--color-yellow);
  text-decoration-thickness: 4px;
  text-underline-offset: 6px;
}

.menu .cta-button {
  margin-top: 2.25rem;
}

/* Links and the button arrive one after another */
.menu-logo,
.menu-links a,
.menu .cta-button {
  opacity: 0;
}

.menu.is-open .menu-logo,
.menu.is-open .menu-links a,
.menu.is-open .cta-button {
  animation: fadeInUp 0.5s var(--ease-out) both;
}

.menu.is-open .menu-logo { animation-delay: 0.05s; }
.menu.is-open .menu-links a:nth-child(1) { animation-delay: 0.12s; }
.menu.is-open .menu-links a:nth-child(2) { animation-delay: 0.2s; }
.menu.is-open .menu-links a:nth-child(3) { animation-delay: 0.28s; }
.menu.is-open .cta-button { animation-delay: 0.38s; }

/* With the menu open the pill turns invisible and rises above it, so only
   the hamburger stays, folded into a cross on the very same spot */
html.menu-open .floatnav {
  z-index: 40;
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

html.menu-open .floatnav--auto {
  opacity: 1;
  pointer-events: auto;
}

html.menu-open .floatnav-logo,
html.menu-open .floatnav-links,
html.menu-open .floatnav-cta {
  opacity: 0;
  pointer-events: none;
}

html.menu-open {
  overflow: hidden;
}

/* Sub pages start under the navigation */
.page--sub {
  padding-top: 5.5rem;
}

/* ---------- Detail pages ---------- */

.detail-hero {
  width: 100%;
  max-width: var(--container);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: clamp(1rem, 4vw, 3rem);
}

.detail-hero .content {
  max-width: 620px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.detail-hero .headline {
  font-size: clamp(1.8rem, 4.8vw, 2.8rem);
}

.detail-hero .subtitle {
  max-width: 540px;
  margin-bottom: 0;
}

.detail-hero .hero-phone {
  margin-top: clamp(2.5rem, 6vw, 4rem);
  height: auto;
  padding-bottom: 48px;
  width: min(480px, 100%);
  -webkit-mask-image: none;
  mask-image: none;
}

/* Feature rows: bold title, one-line situation, air between them */
.feats {
  list-style: none;
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.feats li {
  position: relative;
  padding-left: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.feats li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-text);
}

.feats strong {
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.35;
  color: var(--color-text);
}

.feats span {
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--color-text-secondary);
  text-wrap: pretty;
}

.feats--row {
  flex-direction: row;
  justify-content: center;
  align-items: flex-start;
  gap: 2.5rem;
  width: 100%;
  max-width: 960px;
  margin-top: 2.5rem;
  text-align: left;
}

.feats--row li {
  flex: 1 1 0;
  max-width: 300px;
}

/* Centered text with a row of phones under it */
.stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.stack .copy {
  max-width: 560px;
}

.phones {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 1.5rem;
  margin-top: 3rem;
  width: 100%;
}

.phones .phone {
  width: 300px;
}

.phones--captioned figure {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.phones--captioned figcaption {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  letter-spacing: 0.01em;
}

.phones--collage .phone {
  width: 280px;
}

.phones--collage .phone:nth-child(2) {
  margin-top: -2rem;
}

.phones--collage .phone:nth-child(1),
.phones--collage .phone:nth-child(3) {
  margin-top: 2rem;
}

/* Other features, at the end of a detail page */
.next {
  text-align: center;
}

.next-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem 2.5rem;
  margin-top: 1.5rem;
}

.next-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
  border-bottom: 2px solid var(--color-yellow);
  padding-bottom: 0.15rem;
}

.next-links a:hover {
  border-bottom-color: var(--color-yellow-dark);
}

.next-links svg {
  width: 16px;
  height: 16px;
}

/* ---------- Animations ---------- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero .logo,
.detail-hero .eyebrow {
  animation: fadeInUp 0.6s ease both;
}

.hero .headline,
.detail-hero .headline {
  animation: fadeInUp 0.6s ease 0.1s both;
}

.hero .subtitle,
.detail-hero .subtitle {
  animation: fadeInUp 0.6s ease 0.2s both;
}

.hero .features {
  animation: fadeInUp 0.6s ease 0.3s both;
}

.hero .cta-block {
  animation: fadeInUp 0.6s ease 0.4s both;
}

.hero-phone {
  animation: fadeInUp 0.8s ease 0.5s both;
}


/* Sections fade in as they scroll into view */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

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

/* Feature blocks: text first, then the phone settles into its tilt */
.feature.reveal {
  opacity: 1;
  transform: none;
  transition: none;
}

.feature.reveal .feature-copy {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.feature.reveal .feature-visual .phone {
  opacity: 0;
  transform: translateY(48px) rotate(0deg);
  transition: opacity 0.9s var(--ease-out) 0.15s, transform 1s var(--ease-out) 0.15s;
}

.feature.reveal .feature-visual::before {
  opacity: 0;
  transition: opacity 1.2s ease 0.2s;
}

.feature.reveal.is-visible .feature-copy {
  opacity: 1;
  transform: none;
}

.feature.reveal.is-visible .feature-visual .phone {
  opacity: 1;
  transform: translateY(0) rotate(var(--tilt));
}

.feature.reveal.is-visible .feature-visual::before {
  opacity: var(--glow-opacity);
}

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

  .hero .logo, .hero .headline, .hero .subtitle, .hero .features, .hero .cta-block,
  .detail-hero .eyebrow, .detail-hero .headline, .detail-hero .subtitle,
  .hero-phone {
    animation: none;
  }

  .floatnav--auto {
    transition: none;
  }

  .menu-scene {
    transition: none;
  }

  .menu-logo,
  .menu-links a,
  .menu .cta-button {
    opacity: 1;
  }

  .menu.is-open .menu-logo,
  .menu.is-open .menu-links a,
  .menu.is-open .cta-button {
    animation: none;
  }

  .reveal,
  .pitch.reveal .pitch-card,
  .pitch.reveal .pitch-before,
  .pitch.reveal .pitch-after,
  .feature.reveal .feature-copy,
  .feature.reveal .feature-visual .phone,
  .feature.reveal .feature-visual::before {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .feature.reveal .feature-visual .phone {
    transform: rotate(var(--tilt));
  }

  .feature.reveal .feature-visual::before {
    opacity: var(--glow-opacity);
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 1060px) {
  .phones {
    justify-content: flex-start;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 1rem;
    padding: 1rem 1.5rem 3.5rem;
    margin-left: -1.5rem;
    margin-right: -1.5rem;
    width: calc(100% + 3rem);
  }

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

  .phones .phone {
    width: min(380px, 82vw) !important;
    scroll-snap-align: center;
    margin-top: 0 !important;
  }

  .phones--captioned figure {
    scroll-snap-align: center;
  }

  .phones--captioned .phone {
    scroll-snap-align: none;
  }

  .phones::after {
    content: '';
    flex: 0 0 0.5rem;
  }
}

@media (max-width: 900px) {
  .feature {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 1rem;
  }

  .feature-copy,
  .feature--flip .feature-copy {
    order: 1;
    justify-self: center;
    max-width: 520px;
  }

  .feature-visual,
  .feature--flip .feature-visual {
    order: 2;
    padding: 1.5rem 0 0;
  }

  .feature-visual .phone,
  .feature--lead .feature-visual .phone {
    width: min(320px, 82vw);
  }

  .feature-visual::before,
  .feature--lead .feature-visual::before {
    width: 380px;
    height: 380px;
  }

  .feature--yellow,
  .feature--purple,
  .feature--blue {
    --tilt: 0deg;
  }
}

@media (max-width: 800px) {
  .pitch-card {
    border-radius: 22px;
  }

  :root {
    --section-gap: 4rem;
    --phone-m: 280px;
    /* strip padding that puts the first (and last) phone in the middle of the screen */
    --strip-pad: calc(50vw - var(--phone-m) / 2);
  }

  .feats--row {
    flex-direction: column;
    gap: 1.25rem;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
  }

  .feats--row li {
    max-width: none;
  }

  .phones {
    justify-content: flex-start;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 1.25rem;
    padding: 1rem var(--strip-pad) 3.5rem;
  }

  .phones .phone,
  .phones--collage .phone {
    width: var(--phone-m) !important;
  }

  .phones::after {
    content: none;
  }

  /* Reader is already on a phone: one screen is enough here */
  .phones--collage {
    justify-content: center;
    overflow: hidden;
    padding: 1rem 0 3.5rem;
  }

  .phones--collage .phone:not(:nth-child(2)) {
    display: none;
  }

  .phones {
    margin-top: 1.5rem;
  }

  .copy .lead {
    font-size: 1rem;
  }

  .feats {
    margin-top: 1.5rem;
    gap: 1rem;
  }

  .more-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.75rem 1.5rem;
    max-width: 520px;
  }

  .feature-text {
    font-size: 1.05rem;
  }

  .floatnav {
    top: 8px;
    height: 50px;
    padding: 0 0.35rem 0 0.85rem;
    gap: 0.5rem;
  }

  .floatnav-cta,
  .floatnav-links {
    display: none;
  }

  .floatnav-burger {
    display: flex;
  }
}

@media (max-width: 480px) {
  .page {
    padding: 1.5rem 1.25rem 0;
  }

  .logo-emblem {
    width: 56px;
    height: 56px;
  }

  .logo-wordmark {
    font-size: 1.5rem;
  }

  .hero .logo {
    margin-bottom: 2rem;
  }

  .subtitle {
    font-size: 1rem;
  }

  .copy p {
    font-size: 1rem;
  }

  .features {
    gap: 0.4rem 0.5rem;
  }

  .feature-tag {
    padding: 0.4rem 0.75rem;
    font-size: 0.8rem;
  }

  .hero-phone {
    margin-top: 3rem;
    width: 100vw;
    height: 420px;
    padding: 32px 45px 0;
  }

  :root {
    --section-gap: 3.5rem;
  }

  .phones {
    margin-left: -1.25rem;
    margin-right: -1.25rem;
    width: calc(100% + 2.5rem);
  }

  .feature-visual .phone,
  .feature--lead .feature-visual .phone {
    width: min(300px, 86vw);
  }

  .more-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
  }

  .page--sub {
    padding-top: 4.5rem;
  }
}
