/* ============================================================
   features-apple.css  –  Apple-style features page
   BEM naming with `af-` prefix
   ============================================================ */

/* ---------- Custom Properties ---------- */
:root {
  --af-bg-light: #f5f5f7;
  --af-text: #1d1d1f;
  --af-muted: #86868b;
  --af-white: #fff;
  --af-accent: #039139;
  --af-radius: 20px;
  --af-transition: 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ---------- Page-level: scroll-snap container ---------- */
/* Snap on the document root so footer (outside <main>) participates */
html:has(.af-page) {
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
}
.af-page {
  scroll-snap-type: y mandatory; /* fallback for browsers without :has() */
}
.af-page .content-wrapper.main {
  overflow: visible;
}
.af-page .section-flip.main {
  padding: 0;
  margin: 0;
}
.af-page main .container-flipped {
  max-width: none;
  padding: 0;
}

/* Each section is a snap point */
.af-section {
  scroll-snap-align: start;
  min-height: 100vh;
  position: relative;
}

/* ---------- Shared typography ---------- */
.af-headline {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: var(--af-text);
}
.af-subhead {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 400;
  color: var(--af-muted);
  line-height: 1.4;
}
.af-eyebrow {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: clamp(0.85rem, 1.2vw, 1rem);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--af-accent);
  margin-bottom: 0.75rem;
}

/* ============================================================
   REUSABLE DEVICE BEZELS
   ============================================================ */
.af-bezel {
  position: relative;
  overflow: hidden;
  background: #1a1a1a;
  flex-shrink: 0;
}
.af-bezel img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Phone */
.af-bezel--phone {
  width: 240px;
  aspect-ratio: 9 / 19.5;
  border-radius: 36px;
  border: 6px solid #333;
}
.af-bezel--phone.af-bezel--sm {
  width: 180px;
  border-radius: 28px;
  border-width: 4px;
}

/* Tablet */
.af-bezel--tablet {
  width: 420px;
  aspect-ratio: 3 / 4;
  border-radius: 18px;
  border: 6px solid #333;
}

/* Desktop (browser chrome) */
.af-bezel--desktop {
  width: min(900px, 70vw);
  aspect-ratio: 16 / 10;
  background: var(--af-white);
  border-radius: 12px;
  box-shadow: 0 40px 80px rgba(0,0,0,0.35);
  display: flex;
  flex-direction: column;
}
.af-bezel__bar {
  height: 36px;
  background: #e8e8e8;
  border-bottom: 1px solid #d1d1d1;
  display: flex;
  align-items: center;
  padding: 0 14px;
  gap: 7px;
  flex-shrink: 0;
  border-radius: 12px 12px 0 0;
}
.af-bezel__dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}
.af-bezel__dot--close { background: #ff5f56; }
.af-bezel__dot--min   { background: #ffbd2e; }
.af-bezel__dot--max   { background: #27c93f; }
.af-bezel__screen {
  flex: 1;
  overflow: hidden;
}

/* ============================================================
   SECTION 1 – Hero
   ============================================================ */
.af-hero {
  background: var(--af-bg-light);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: calc(clamp(4rem, 8vw, 6rem) + 100px) 0 clamp(3rem, 6vw, 5rem);
  text-align: center;
  gap: clamp(2rem, 4vw, 3rem);
}
.af-hero__text {
  max-width: 900px;
  padding: 0 2rem;
}
.af-hero__title {
  font-size: clamp(3rem, 8vw, 6rem);
  margin: 0;
}
.af-hero__subtitle {
  font-size: clamp(1.1rem, 2vw, 1.6rem);
  margin-top: 1rem;
}
.af-hero__tagline {
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  color: var(--af-muted);
  margin: 0;
}

/* 3-device showcase */
.af-hero__devices {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: clamp(1.5rem, 3vw, 3rem);
  width: 100%;
  max-width: 1100px;
  padding: 0 2rem;
}

/* --- Shared device styles --- */
.af-device__screen {
  overflow: hidden;
  position: relative;
  background: #f5f5f7;
}
.af-device__screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

/* --- Laptop (MacBook) --- */
.af-device--laptop {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.af-device__lid {
  width: min(480px, 42vw);
  background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 50%, #1a1a1a 100%);
  border-radius: 10px 10px 0 0;
  padding: 6px 6px 0 6px;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.06) inset,
    0 0 0 2px #0a0a0a,
    -10px 30px 60px -10px rgba(0,0,0,0.35);
  position: relative;
}
/* Webcam */
.af-device__lid::before {
  content: '';
  position: absolute;
  top: 3px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: radial-gradient(circle, #1e1e1e 30%, #111 100%);
  box-shadow: 0 0 1px 0.5px rgba(80,80,80,0.25);
}
.af-device--laptop .af-device__screen {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 2px;
}
.af-device__base {
  width: calc(min(480px, 42vw) + 24px);
  height: 6px;
  background: linear-gradient(180deg, #c8c8c8 0%, #b8b8b8 40%, #a8a8a8 100%);
  border-radius: 0 0 6px 6px;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.3) inset,
    0 2px 6px rgba(0,0,0,0.08);
  position: relative;
}
/* Hinge line */
.af-device__base::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 5%, rgba(0,0,0,0.12) 30%, rgba(0,0,0,0.15) 50%, rgba(0,0,0,0.12) 70%, transparent 95%);
}
/* Notch */
.af-device__base::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 2px;
  background: linear-gradient(180deg, rgba(0,0,0,0.10), transparent);
  border-radius: 0 0 3px 3px;
}

/* --- Tablet (iPad) --- */
.af-device--tablet {
  background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 50%, #1a1a1a 100%);
  border-radius: 16px;
  padding: 12px 10px;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.06) inset,
    0 0 0 2px #0a0a0a,
    10px 24px 50px -10px rgba(0,0,0,0.30);
}
.af-device--tablet .af-device__screen {
  width: min(220px, 20vw);
  aspect-ratio: 3 / 4.2;
  border-radius: 4px;
}

/* --- Phone (iPhone) --- */
.af-device--phone {
  position: relative;
  background: linear-gradient(180deg, #3a3a3c 0%, #1c1c1e 10%, #1c1c1e 90%, #3a3a3c 100%);
  border-radius: 28px;
  padding: 12px 8px;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.08) inset,
    0 0 0 3px #0a0a0a,
    0 40px 80px -10px rgba(0,0,0,0.35),
    0 10px 30px -5px rgba(0,0,0,0.2);
}
.af-device--phone .af-device__screen {
  width: min(140px, 13vw);
  aspect-ratio: 9 / 19.5;
  border-radius: 20px;
  background: #000;
}
/* Dynamic Island */
.af-device--phone .af-device__screen::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 11px;
  border-radius: 10px;
  background: #000;
  z-index: 2;
  box-shadow: 0 0 0 1px rgba(60,60,60,0.4);
}
/* Volume / silent switch (left side) */
.af-device--phone::before {
  content: '';
  position: absolute;
  left: -3.5px;
  top: 68px;
  width: 3px;
  height: 30px;
  background: linear-gradient(90deg, #2a2a2a, #3a3a3a, #2a2a2a);
  border-radius: 2px 0 0 2px;
  box-shadow: 0 18px 0 0 #2e2e2e, 0 -20px 0 0 #2e2e2e;
}
/* Power button (right side) */
.af-device--phone::after {
  content: '';
  position: absolute;
  right: -3.5px;
  top: 82px;
  width: 3px;
  height: 38px;
  background: linear-gradient(90deg, #2a2a2a, #3a3a3a, #2a2a2a);
  border-radius: 0 2px 2px 0;
}

/* ============================================================
   SECTION 2 – Command Center (per-feature snap sections)
   ============================================================ */
.af-cmd {
  background: var(--af-bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(3rem, 6vw, 5rem) 0;
}
.af-cmd__inner {
  max-width: 1100px;
  width: 100%;
  padding: 0 2rem;
}
.af-cmd__eyebrow-row {
  text-align: center;
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}
.af-cmd__content {
  display: flex;
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
}
.af-cmd__text {
  flex: 1;
}
.af-cmd__title {
  font-size: clamp(2rem, 3.5vw, 3rem);
  margin-bottom: 1rem;
}
.af-cmd__desc {
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  color: var(--af-muted);
  line-height: 1.6;
  max-width: 500px;
}
.af-cmd__media {
  flex: 0 0 auto;
  display: flex;
  justify-content: center;
}

/* Animate in */
.af-cmd__text,
.af-cmd__media {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.af-cmd.is-visible .af-cmd__text,
.af-cmd.is-visible .af-cmd__media {
  opacity: 1;
  transform: translateY(0);
}
.af-cmd.is-visible .af-cmd__media {
  transition-delay: 0.15s;
}

/* ============================================================
   SECTION 3 – Work Smarter (Horizontal Scroll Gallery)
   ============================================================ */
.af-hscroll {
  background: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(4rem, 8vw, 6rem) 0;
}
.af-hscroll__header {
  text-align: center;
  padding: 0 2rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.af-hscroll__title {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
}
.af-hscroll__track {
  display: flex;
  gap: 2rem;
  padding: 0 4vw;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.af-hscroll__track::-webkit-scrollbar {
  display: none;
}
.af-hscroll__card {
  flex: 0 0 min(380px, 80vw);
  scroll-snap-align: center;
  background: var(--af-bg-light);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: var(--af-radius);
  overflow: hidden;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.af-hscroll.is-visible .af-hscroll__card {
  opacity: 1;
  transform: translateY(0);
}
.af-hscroll.is-visible .af-hscroll__card:nth-child(2) { transition-delay: 0.1s; }
.af-hscroll.is-visible .af-hscroll__card:nth-child(3) { transition-delay: 0.2s; }
.af-hscroll__card-media {
  padding: 2rem 2rem 0;
  display: flex;
  justify-content: center;
}
.af-hscroll__card-body {
  padding: 1.5rem 2rem 2rem;
}
.af-hscroll__card-title {
  font-size: 1.5rem;
  color: var(--af-text);
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  margin: 0 0 0.5rem;
}
.af-hscroll__card-desc {
  font-size: 1rem;
  color: var(--af-muted);
  line-height: 1.5;
  margin: 0;
}

/* ============================================================
   SECTION 4 – Stay Organized (Bento Grid)
   ============================================================ */
.af-bento {
  background: var(--af-bg-light);
  padding: clamp(4rem, 10vw, 8rem) 0;
  display: flex;
  align-items: center;
}
.af-bento__inner {
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
  padding: 0 2rem;
}
.af-bento__header {
  text-align: center;
  margin-bottom: clamp(2rem, 5vw, 4rem);
}
.af-bento__header-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
}
.af-bento__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.af-bento__card {
  background: var(--af-white);
  border-radius: var(--af-radius);
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 2rem;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.35s ease;
}
.af-bento.is-visible .af-bento__card {
  opacity: 1;
  transform: translateY(0);
}
.af-bento.is-visible .af-bento__card:nth-child(2) { transition-delay: 0.1s; }
.af-bento.is-visible .af-bento__card:nth-child(3) { transition-delay: 0.2s; }
.af-bento.is-visible .af-bento__card:nth-child(4) { transition-delay: 0.3s; }
.af-bento__card:hover {
  box-shadow: 0 12px 40px rgba(0,0,0,0.1);
}
.af-bento__card--wide {
  grid-column: 1 / -1;
  flex-direction: row;
  padding-top: 0;
  padding: 2rem;
  gap: 2rem;
}
.af-bento__card-media {
  display: flex;
  justify-content: center;
}
.af-bento__card-body {
  padding: 1.5rem 2rem 2rem;
}
.af-bento__card--wide .af-bento__card-body {
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.af-bento__card-title {
  font-size: clamp(1.3rem, 2vw, 1.6rem);
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  color: var(--af-text);
  margin: 0 0 0.5rem;
}
.af-bento__card-desc {
  font-size: 1rem;
  color: var(--af-muted);
  line-height: 1.5;
  margin: 0;
}

/* ============================================================
   SECTION 4b – Appearance (Dark / Light)
   ============================================================ */
.af-appearance {
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(4rem, 8vw, 6rem) 0;
}
.af-appearance__inner {
  max-width: 700px;
  padding: 0 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.af-appearance__title {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

/* ============================================================
   SECTION 5 – Business Intelligence
   ============================================================ */
.af-bi-header {
  background: var(--af-bg-light);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(4rem, 8vw, 6rem) 0;
  gap: 2rem;
}
.af-bi-header__title {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  padding: 0 2rem;
}
.af-bi-header__subtitle {
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  color: var(--af-muted);
  max-width: 640px;
  line-height: 1.6;
  margin-top: 1.5rem;
  padding: 0 2rem;
}

/* ---------- BI 3-Phone Showcase ---------- */
.af-bi-phones {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1rem, 2.5vw, 2rem);
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
}

/* ---------- Dark / Light Comparison Slider ---------- */
.af-compare {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.af-compare__bezel {
  position: relative;
  overflow: hidden;
  cursor: ew-resize;
  touch-action: none;
}
.af-compare__img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  pointer-events: none;
}
.af-compare__img--light {
  z-index: 1;
}
.af-compare__img--dark {
  z-index: 2;
  clip-path: inset(0 50% 0 0);
}
.af-compare__divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  background: rgba(255, 255, 255, 0.9);
  z-index: 3;
  transform: translateX(-50%);
  pointer-events: none;
}
.af-compare__handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--af-accent);
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.af-compare__labels {
  display: flex;
  justify-content: space-between;
  width: 240px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--af-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.af-bi {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(4rem, 8vw, 6rem) 0;
}
.af-bi:nth-of-type(odd)  { background: #fff; }
.af-bi:nth-of-type(even) { background: var(--af-bg-light); }

.af-bi__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: clamp(2rem, 5vw, 6rem);
  width: 100%;
  padding: 0 2rem;
}
.af-bi--reverse .af-bi__inner {
  flex-direction: row-reverse;
}
.af-bi__text {
  flex: 1;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.af-bi.is-visible .af-bi__text {
  opacity: 1;
  transform: translateY(0);
}
.af-bi__title {
  font-size: clamp(2rem, 3.5vw, 3rem);
  margin-bottom: 1rem;
}
.af-bi__desc {
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  color: var(--af-muted);
  line-height: 1.6;
  max-width: 480px;
}
.af-bi__media {
  flex: 0 0 auto;
  display: flex;
  justify-content: center;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease 0.15s, transform 0.7s ease 0.15s;
}
.af-bi.is-visible .af-bi__media {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   SECTION 6 – Export & Data Control
   ============================================================ */
.af-polish {
  background: var(--af-bg-light);
  padding: clamp(4rem, 10vw, 8rem) 0;
  display: flex;
  align-items: center;
}
.af-polish__inner {
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
  padding: 0 2rem;
}

/* Data Export mini-card */
.af-export {
  background: var(--af-white);
  border-radius: var(--af-radius);
  padding: clamp(2rem, 4vw, 3rem);
  display: flex;
  align-items: center;
  gap: 2rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.af-export__icon {
  font-size: 2.5rem;
  flex-shrink: 0;
}
.af-export__text {
  flex: 1;
}
.af-export__title {
  font-size: clamp(1.3rem, 2vw, 1.6rem);
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  color: var(--af-text);
  margin: 0 0 0.4rem;
}
.af-export__desc {
  font-size: 1rem;
  color: var(--af-muted);
  margin: 0;
  line-height: 1.5;
}

/* ============================================================
   SECTION 7 – Final CTA
   ============================================================ */
.af-cta {
  background: var(--af-bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(4rem, 10vw, 8rem) 0;
}
.af-cta__inner {
  max-width: 700px;
  padding: 0 2rem;
}
.af-cta__title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  margin-bottom: 1rem;
}
.af-cta__subtitle {
  font-size: clamp(1.1rem, 1.8vw, 1.4rem);
  margin-bottom: 2.5rem;
}
.af-cta__btn {
  display: inline-block;
  background: var(--af-accent);
  color: var(--af-white);
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 1.15rem;
  padding: 1rem 2.5rem;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
  text-decoration: none;
}
.af-cta__btn:hover {
  background: #027a30;
  transform: scale(1.04);
}
.af-cta__badges {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.af-cta__badge {
  height: 44px;
  width: auto;
}

/* Footer participates in snap flow */
.af-page footer {
  position: relative;
  z-index: 10;
  scroll-snap-align: start;
}

/* ============================================================
   RESPONSIVE – Tablet (768–1199px)
   ============================================================ */
@media (max-width: 1199px) {
  .af-device__lid { width: min(380px, 36vw); }
  .af-device__base { width: calc(min(380px, 36vw) + 24px); }
  .af-device--tablet .af-device__screen { width: min(180px, 16vw); }
  .af-device--phone .af-device__screen { width: min(120px, 11vw); }
  .af-hscroll__card  { flex: 0 0 min(340px, 75vw); }
}

/* ============================================================
   RESPONSIVE – Mobile (<768px)
   ============================================================ */
@media (max-width: 767px) {
  /* Disable snap on mobile for natural scroll */
  html:has(.af-page) {
    scroll-snap-type: none;
  }
  .af-page {
    scroll-snap-type: none;
  }
  .af-section {
    scroll-snap-align: none;
    min-height: auto;
  }

  /* Hero: phone only on mobile */
  .af-hero__device--desktop,
  .af-hero__device--tablet {
    display: none;
  }
  .af-device--phone {
    border-radius: 24px;
    padding: 10px 7px;
  }
  .af-device--phone .af-device__screen {
    width: 180px;
    border-radius: 17px;
  }
  .af-hero {
    min-height: auto;
    padding: calc(6rem + 80px) 0 4rem;
  }
  .af-hero__devices {
    justify-content: center;
  }

  /* Command center: stacked */
  .af-cmd {
    min-height: auto;
    padding: 3rem 0;
  }
  .af-cmd__inner {
    padding: 0 1.5rem;
  }
  .af-cmd__content {
    flex-direction: column;
    text-align: center;
  }
  .af-cmd__text,
  .af-cmd__media {
    opacity: 1;
    transform: none;
  }

  /* Horizontal scroll: vertical stack */
  .af-hscroll {
    min-height: auto;
    padding: clamp(4rem, 8vw, 6rem) 0;
  }
  .af-hscroll__track {
    flex-direction: column;
    align-items: center;
    overflow-x: visible;
    scroll-snap-type: none;
  }
  .af-hscroll__card {
    flex: none;
    width: min(380px, 90vw);
    opacity: 1;
    transform: none;
  }

  /* Bento: single column */
  .af-bento {
    min-height: auto;
  }
  .af-bento__grid {
    grid-template-columns: 1fr;
  }
  .af-bento__card--wide {
    grid-column: auto;
    flex-direction: column;
  }
  .af-bento__card {
    opacity: 1;
    transform: none;
  }

  /* Appearance */
  .af-appearance {
    min-height: auto;
    padding: 4rem 0;
  }

  /* BI: stacked */
  .af-bi-header {
    min-height: auto;
    padding: 4rem 0;
  }
  .af-bi-phones .af-bezel--phone.af-bezel--sm {
    width: 120px;
    border-radius: 20px;
    border-width: 3px;
  }
  .af-bi {
    min-height: auto;
    padding: 3rem 0;
  }
  .af-bi__inner {
    padding: 0 1.5rem;
    flex-direction: column;
    text-align: center;
  }
  .af-bi--reverse .af-bi__inner {
    flex-direction: column;
  }
  .af-bi__text,
  .af-bi__media {
    opacity: 1;
    transform: none;
  }
  .af-bi__media .af-bezel--phone {
    width: 200px;
  }
  .af-compare__bezel.af-bezel--phone {
    width: 200px;
  }
  .af-compare__labels {
    width: 200px;
  }

  /* Polish */
  .af-polish {
    min-height: auto;
  }

  /* Export card stack */
  .af-export {
    flex-direction: column;
    text-align: center;
  }

  /* CTA */
  .af-cta {
    min-height: auto;
    padding: 4rem 0;
  }
  .af-cta__inner {
    padding: 0 2rem;
  }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html:has(.af-page) {
    scroll-behavior: auto;
  }

  .af-cmd__text,
  .af-cmd__media,
  .af-bi__text,
  .af-bi__media,
  .af-bento__card,
  .af-hscroll__card {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .af-compare__img--dark { clip-path: inset(0 50% 0 0) !important; }
  .af-compare__divider,
  .af-compare__handle { left: 50% !important; }
}
