/* ─────────────────────────────────────────────────────────────
   Apple.com-faithful homepage styles for Prism
   Scoped under `body.apple-home`.
   ───────────────────────────────────────────────────────────── */

html,
body {
  margin: 0;
  padding: 0;
}

body.apple-home {
  --ah-bg: #fbfbfd;
  --ah-fg: #1d1d1f;
  --ah-fg-soft: #6e6e73;
  --ah-link: #0066cc;
  --ah-link-hover: #0077ed;
  --ah-nav-bg: rgba(255, 255, 255, 0.8);
  --ah-nav-fg: #1d1d1f;
  --ah-tile-light: #fbfbfd;
  --ah-tile-gray: #f5f5f7;
  --ah-tile-dark: #000;
  --ah-tile-blue: linear-gradient(180deg, #e3f0fb 0%, #f5f5f7 70%);
  --ah-tile-purple: linear-gradient(180deg, #efe9fb 0%, #f5f5f7 70%);

  margin: 0;
  background: var(--ah-bg);
  color: var(--ah-fg);
  font-family: "SF Pro Display", "SF Pro Text", -apple-system, BlinkMacSystemFont,
    "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: -0.003em;
}

body.apple-home * {
  box-sizing: border-box;
}

body.apple-home a {
  color: inherit;
  text-decoration: none;
}

body.apple-home .bg-layer,
body.apple-home .bg-orbs {
  display: none !important;
}

/* ── Global nav — exact apple.com sizing ─────────────────── */
body.apple-home .nav {
  position: sticky;
  top: 0;
  z-index: 9999;
  width: 100%;
  background: var(--ah-nav-bg);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  color: var(--ah-nav-fg);
}

body.apple-home .nav-inner {
  max-width: 1024px;
  margin: 0 auto;
  height: 44px;
  padding: 0 22px;
  display: flex;
  align-items: center;
  gap: 0;
}

body.apple-home .nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--ah-nav-fg);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  padding: 0 8px;
  height: 44px;
}

body.apple-home .nav-logo-icon {
  width: 16px;
  height: 16px;
  object-fit: contain;
  border-radius: 4px;
  opacity: 0.92;
}

body.apple-home .nav-tabs {
  display: flex;
  align-items: center;
  flex: 1;
  justify-content: space-between;
  margin-left: 14px;
}

body.apple-home .nav-tab {
  color: var(--ah-nav-fg);
  font-size: 12px;
  line-height: 1;
  font-weight: 400;
  letter-spacing: -0.01em;
  padding: 0 10px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  opacity: 0.8;
  transition: opacity 0.2s ease;
  background: transparent;
  border: 0;
  border-radius: 0;
}

body.apple-home .nav-tab:hover {
  opacity: 1;
}

body.apple-home .nav-tab.active,
body.apple-home .nav-tab.cta {
  opacity: 1;
  font-weight: 400;
}

body.apple-home .nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  color: var(--ah-nav-fg);
  font-size: 18px;
  cursor: pointer;
}

body.apple-home .nav-mobile {
  display: none;
  background: rgba(22, 22, 23, 0.95);
  color: var(--ah-nav-fg);
}

body.apple-home .nav-mobile .nav-tab {
  padding: 12px 22px;
  font-size: 17px;
  height: auto;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Dropdown nav item */
body.apple-home .nav-dropdown {
  position: relative;
  cursor: default;
}

body.apple-home .nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-4px);
  min-width: 140px;
  padding: 8px 0;
  background: rgba(255, 255, 255, 0.85);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 10000;
}

body.apple-home .nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

body.apple-home .nav-dropdown-item {
  display: block;
  padding: 8px 18px;
  font-size: 12px;
  line-height: 1.3;
  color: var(--ah-nav-fg);
  opacity: 0.85;
  transition: opacity 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}

body.apple-home .nav-dropdown-item:hover {
  opacity: 1;
  background: rgba(0, 0, 0, 0.04);
}

body.apple-home .nav-dropdown-label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

body.apple-home .nav-dropdown-label::after {
  content: "";
  width: 0;
  height: 0;
  border-left: 3px solid transparent;
  border-right: 3px solid transparent;
  border-top: 3px solid currentColor;
  opacity: 0.5;
  margin-top: 1px;
}

body.apple-home .home-announcement {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 14px 22px;
  background: #f5f5f7;
  color: #1d1d1f;
  font-size: 14px;
  line-height: 1.4;
  letter-spacing: -0.016em;
  text-align: center;
  border: 0;
  box-shadow: none;
}

body.apple-home .home-announcement p {
  margin: 0;
  max-width: 980px;
  font-weight: 400;
}

body.apple-home .home-announcement strong {
  font-weight: 600;
  letter-spacing: -0.014em;
  margin-right: 4px;
}

body.apple-home .home-announcement a {
  color: #0066cc;
  font-weight: 400;
  white-space: nowrap;
  margin-left: 2px;
}

body.apple-home .home-announcement a:hover {
  text-decoration: underline;
}

body.apple-home .home-announcement a::after {
  content: " ›";
  letter-spacing: 0;
}

@media (max-width: 833px) {
  body.apple-home .nav-tabs {
    display: none;
  }

  body.apple-home .nav-toggle {
    display: inline-flex;
    margin-left: auto;
  }
}

/* ── Tile system ────────────────────────────────────────── */
body.apple-home main {
  display: block;
}

body.apple-home .ah-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 12px 0 0;
  background: var(--ah-bg);
}

body.apple-home .ah-tile {
  position: relative;
  margin: 0;
  background: var(--ah-tile-gray);
  color: var(--ah-fg);
  text-align: center;
  padding: 56px 22px 0;
  min-height: 692px;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
}

body.apple-home .ah-tile.dark {
  background: var(--ah-tile-dark);
  color: #f5f5f7;
}

body.apple-home .ah-tile.light {
  background: #fff;
}

body.apple-home .ah-tile.blue {
  background: var(--ah-tile-blue);
}

body.apple-home .ah-tile.purple {
  background: var(--ah-tile-purple);
}

body.apple-home .ah-tile.short {
  min-height: 580px;
}

body.apple-home .ah-tile.tiny {
  min-height: 420px;
  padding: 0 22px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* Tile copy block (Apple keeps text in the top portion) */
body.apple-home .ah-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 100%;
}

body.apple-home .ah-eyebrow {
  font-size: 14px;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 4px;
  text-transform: none;
  color: inherit;
}

body.apple-home .ah-title {
  font-size: clamp(40px, 5.6vw, 56px);
  line-height: 1.07;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 0;
}

body.apple-home .ah-title.giant {
  font-size: clamp(48px, 7.2vw, 80px);
  letter-spacing: -0.025em;
}

body.apple-home .ah-title em {
  font-style: italic;
  font-family: "SF Pro Display", -apple-system, "Helvetica Neue", serif;
  font-weight: 500;
}

body.apple-home .ah-subtitle {
  font-size: clamp(17px, 1.6vw, 21px);
  line-height: 1.19;
  font-weight: 500;
  letter-spacing: 0.011em;
  margin: 6px 0 0;
  max-width: 720px;
  color: inherit;
}

body.apple-home .ah-tile.dark .ah-subtitle {
  color: #f5f5f7;
}

/* CTA pill pair (Apple's "Learn more" + "Buy") */
body.apple-home .ah-ctas {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin: 18px 0 0;
}

body.apple-home .ah-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--ah-link);
  color: #fff;
  border: 1px solid var(--ah-link);
  border-radius: 980px;
  padding: 7px 16px;
  font-size: 14px;
  line-height: 1.2;
  font-weight: 400;
  letter-spacing: -0.01em;
  min-width: 28px;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

body.apple-home .ah-pill:hover {
  background: var(--ah-link-hover);
  border-color: var(--ah-link-hover);
}

body.apple-home .ah-pill.ghost {
  background: transparent;
  color: var(--ah-link);
}

body.apple-home .ah-pill.ghost:hover {
  background: rgba(0, 102, 204, 0.06);
  color: var(--ah-link-hover);
}

body.apple-home .ah-tile.dark .ah-pill.ghost {
  color: #2997ff;
  border-color: #2997ff;
}

body.apple-home .ah-tile.dark .ah-pill {
  background: #2997ff;
  border-color: #2997ff;
  color: #fff;
}

body.apple-home .ah-tile.dark .ah-pill.ghost {
  background: transparent;
}

body.apple-home .ah-tile.dark .ah-pill.ghost:hover {
  background: rgba(41, 151, 255, 0.08);
}

/* Media inside a tile — borderless, floating product shot */
body.apple-home .ah-media {
  margin-top: auto;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  padding: 28px 0 0;
}

body.apple-home .ah-media img {
  display: block;
  width: 100%;
  max-width: 720px;
  height: auto;
  border-radius: 0;
  box-shadow: none;
}

body.apple-home .ah-media.shadow img {
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
}

/* Designed for macOS showcase row */
body.apple-home .mac-showcase {
  padding-top: 52px;
  padding-bottom: 38px;
}

body.apple-home .mac-showcase-copy {
  margin-bottom: 30px;
}

body.apple-home .mac-showcase-copy .ah-title {
  font-size: clamp(36px, 4.7vw, 56px);
  line-height: 0.95;
  max-width: 620px;
}

body.apple-home .mac-showcase-copy .ah-subtitle {
  margin-top: 8px;
}

body.apple-home .mac-showcase-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  width: 100%;
  align-items: start;
}

body.apple-home .mac-showcase-card {
  text-align: left;
}

body.apple-home .mac-showcase-shot {
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(180deg, #8bbce1 0%, #edf7ff 100%);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

body.apple-home .mac-showcase-shot img {
  width: 100%;
  display: block;
  height: auto;
}

body.apple-home .mac-showcase-card p {
  margin: 12px 2px 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--ah-fg-soft);
}

body.apple-home .mac-showcase-card p strong {
  color: var(--ah-fg);
  font-weight: 600;
}

body.apple-home .mac-showcase-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 18px;
  color: var(--ah-fg-soft);
  font-size: 12px;
  line-height: 1.5;
}

body.apple-home .mac-showcase-meta p {
  margin: 0;
  max-width: 560px;
}

body.apple-home .mac-showcase-nav {
  display: inline-flex;
  gap: 10px;
}

@media (max-width: 1100px) {
  body.apple-home .mac-showcase-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  body.apple-home .mac-showcase-row {
    grid-template-columns: 1fr;
  }

  body.apple-home .mac-showcase-meta {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Side-by-side tile pair */
body.apple-home .ah-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 0;
}

body.apple-home .ah-pair .ah-tile {
  min-height: 580px;
  padding: 48px 22px 0;
}

body.apple-home .ah-pair .ah-media img {
  max-width: 560px;
}

@media (max-width: 833px) {
  body.apple-home .ah-pair {
    grid-template-columns: 1fr;
  }

  body.apple-home .ah-tile {
    min-height: 560px;
    padding-top: 48px;
  }
}

/* ── Gallery ────────────────────────────────────────────── */
body.apple-home .ah-gallery {
  position: relative;
  width: 100%;
  max-width: 980px;
  margin: 24px auto 0;
}

body.apple-home .home-gallery-viewport {
  overflow: hidden;
  border-radius: 14px;
  background: #000;
}

body.apple-home .home-gallery-track {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
}

body.apple-home .home-gallery-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transition: opacity 0.5s ease;
}

body.apple-home .home-gallery-slide.is-active {
  opacity: 1;
}

body.apple-home .home-gallery-shot,
body.apple-home .home-gallery-shot img {
  width: 100%;
  height: 100%;
}

body.apple-home .home-gallery-shot img {
  object-fit: cover;
  display: block;
}

body.apple-home .home-gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.85);
  color: #1d1d1f;
  font-size: 22px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
}

body.apple-home .home-gallery-prev {
  left: 14px;
}

body.apple-home .home-gallery-next {
  right: 14px;
}

body.apple-home .home-gallery-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
}

body.apple-home .home-gallery-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 0;
  background: #c7c7cc;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s ease;
}

body.apple-home .home-gallery-dot.is-active {
  background: #1d1d1f;
}

/* ── Footer ─────────────────────────────────────────────── */
body.apple-home footer {
  background: #f5f5f7;
  color: #6e6e73;
  font-size: 12px;
  line-height: 1.4;
  padding: 18px 22px 22px;
}

body.apple-home .footer-inner {
  max-width: 1024px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

body.apple-home .footer-logo {
  font-size: 12px;
  color: #6e6e73;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid #d2d2d7;
  padding-bottom: 12px;
}

body.apple-home .footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
}

body.apple-home .footer-nav a {
  color: #6e6e73;
  font-size: 12px;
}

body.apple-home .footer-nav a:hover {
  color: #1d1d1f;
  text-decoration: underline;
}

/* ── Scroll progress ────────────────────────────────────── */
body.apple-home .scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: calc(var(--scroll-progress, 0) * 100%);
  background: var(--ah-link);
  z-index: 10000;
  pointer-events: none;
  transition: width 0.1s linear;
}

/* ── Reveal animations ──────────────────────────────────── */
body.apple-home .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

body.apple-home .reveal.visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  body.apple-home .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ─────────────────────────────────────────────────────────────
   APPLE-STYLE CONTENT LAYER (used by features / pricing / gallery /
   dashboard / changelog / get-started / terms / reset-password / 404)
   ───────────────────────────────────────────────────────────── */

body.apple-home .container {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 22px;
}

body.apple-home .section {
  padding: 56px 0;
  background: var(--ah-bg);
}

/* Page header (hero band) */
body.apple-home .page-header {
  text-align: center;
  padding: 80px 22px 56px;
  background: var(--ah-bg);
}

body.apple-home .page-header-badge,
body.apple-home .section-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ah-link);
  text-transform: uppercase;
  margin-bottom: 14px;
}

body.apple-home .page-header-title {
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.05;
  font-weight: 600;
  letter-spacing: -0.022em;
  margin: 0 0 14px;
  color: var(--ah-fg);
}

body.apple-home .page-header-sub {
  font-size: clamp(17px, 1.6vw, 21px);
  line-height: 1.4;
  font-weight: 400;
  color: var(--ah-fg-soft);
  max-width: 720px;
  margin: 0 auto;
}

body.apple-home .section-head {
  text-align: center;
  margin-bottom: 36px;
}

body.apple-home .section-title {
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 0 0 10px;
  color: var(--ah-fg);
}

body.apple-home .section-sub {
  font-size: 17px;
  line-height: 1.45;
  color: var(--ah-fg-soft);
  max-width: 640px;
  margin: 0 auto;
}

/* Buttons */
body.apple-home .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--ah-link);
  color: #fff;
  border: 1px solid var(--ah-link);
  border-radius: 980px;
  padding: 10px 22px;
  font-size: 15px;
  line-height: 1.2;
  font-weight: 400;
  letter-spacing: -0.01em;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

body.apple-home .btn:hover {
  background: var(--ah-link-hover);
  border-color: var(--ah-link-hover);
}

body.apple-home .btn.btn-ghost,
body.apple-home .btn-ghost {
  background: transparent;
  color: var(--ah-link);
}

body.apple-home .btn.btn-ghost:hover,
body.apple-home .btn-ghost:hover {
  background: rgba(0, 102, 204, 0.06);
  color: var(--ah-link-hover);
}

/* Spotlight rows (features page storytelling) */
body.apple-home .spotlights {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

body.apple-home .spotlight {
  background: var(--ah-tile-gray);
  border-radius: 0;
  padding: 64px 38px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 36px;
  align-items: center;
  margin: 0 -22px;
}

body.apple-home .spotlight.flip {
  background: #fff;
}

body.apple-home .spotlight.flip .sp-text {
  order: 2;
}

body.apple-home .spotlight.flip .sp-visual {
  order: 1;
}

body.apple-home .sp-eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--ah-link);
  text-transform: uppercase;
  margin-bottom: 12px;
}

body.apple-home .sp-title {
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 0 0 12px;
}

body.apple-home .sp-desc {
  font-size: 17px;
  line-height: 1.5;
  color: var(--ah-fg-soft);
  margin: 0;
}

body.apple-home .sp-visual img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 14px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.14);
}

/* Apple-like features page */
body.apple-home.features-page .page-header {
  padding: 96px 22px 74px;
  background:
    radial-gradient(circle at 50% 110%, rgba(41, 151, 255, 0.12), transparent 42%),
    #fbfbfd;
}

body.apple-home.features-page .page-header-title {
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
  font-size: clamp(52px, 7.8vw, 96px);
  letter-spacing: -0.055em;
}

body.apple-home .page-header-links {
  display: flex;
  justify-content: center;
  gap: 28px;
  margin-top: 22px;
  font-size: 19px;
  line-height: 1.3;
}

body.apple-home .page-header-links a {
  color: var(--ah-link);
}

body.apple-home .page-header-links a::after {
  content: " ›";
}

body.apple-home .page-header-links a:hover {
  text-decoration: underline;
}

body.apple-home.features-page .features-showcase {
  padding-top: 12px;
}

body.apple-home.features-page .features-showcase .container {
  max-width: none;
  padding: 0;
}

body.apple-home.features-page .spotlights {
  gap: 12px;
}

body.apple-home.features-page .spotlight[id] {
  scroll-margin-top: 88px;
}

body.apple-home.features-page .spotlight {
  min-height: 620px;
  margin: 0;
  padding: 60px clamp(24px, 6vw, 92px) 54px;
  grid-template-columns: 1fr;
  gap: 34px;
  text-align: center;
  overflow: hidden;
}

body.apple-home.features-page .spotlight:nth-child(odd) {
  background:
    radial-gradient(circle at 50% 82%, rgba(0, 113, 227, 0.14), transparent 46%),
    #f5f5f7;
}

body.apple-home.features-page .spotlight:nth-child(even) {
  background: #fff;
}

body.apple-home.features-page .spotlight.flip .sp-text,
body.apple-home.features-page .spotlight.flip .sp-visual {
  order: initial;
}

body.apple-home.features-page .sp-text {
  max-width: 760px;
  margin: 0 auto;
}

body.apple-home.features-page .sp-eyebrow {
  color: #86868b;
  text-transform: none;
  font-size: 19px;
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: -0.012em;
  margin-bottom: 10px;
}

body.apple-home.features-page .sp-title {
  font-size: clamp(40px, 5.2vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.045em;
  margin-bottom: 12px;
}

body.apple-home.features-page .sp-desc {
  font-size: clamp(19px, 2vw, 24px);
  line-height: 1.35;
  max-width: 680px;
  margin: 0 auto;
}

body.apple-home.features-page .sp-learn-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 20px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ah-link);
  font: inherit;
  font-size: 21px;
  line-height: 1.381;
  font-weight: 400;
  letter-spacing: -0.012em;
  cursor: pointer;
  box-shadow: none;
  transition:
    color 0.2s ease,
    opacity 0.2s ease;
}

body.apple-home.features-page .sp-learn-more:hover {
  color: #0077ed;
}

body.apple-home.features-page .sp-learn-more:focus-visible {
  outline: 3px solid rgba(0, 113, 227, 0.24);
  outline-offset: 3px;
}

body.apple-home.features-page .sp-learn-icon {
  width: 0.42em;
  height: 0.42em;
  border-radius: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  font-size: inherit;
  line-height: inherit;
  color: transparent;
  position: relative;
  transform: translateY(-0.06em);
  transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

body.apple-home.features-page .sp-learn-icon::before {
  content: "";
  position: absolute;
  inset: 0;
  border-right: 0.08em solid currentColor;
  border-bottom: 0.08em solid currentColor;
  color: var(--ah-link);
  transform: rotate(45deg);
}

body.apple-home.features-page .sp-learn-more[aria-expanded="true"] .sp-learn-icon {
  transform: translateY(0.12em) rotate(180deg);
}

body.apple-home.features-page .sp-more {
  height: 0;
  max-width: 700px;
  margin: 0 auto;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-6px);
  transition:
    height 0.72s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.38s ease,
    transform 0.48s cubic-bezier(0.22, 1, 0.36, 1),
    margin-top 0.48s cubic-bezier(0.22, 1, 0.36, 1);
}

body.apple-home.features-page .spotlight.is-feature-more-open .sp-more {
  margin-top: 24px;
  opacity: 1;
  transform: translateY(0);
}

body.apple-home.features-page .sp-more ul {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
  list-style: none;
  text-align: center;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

body.apple-home.features-page .sp-more li {
  position: relative;
  padding-left: 0;
  color: #6e6e73;
  font-size: clamp(18px, 1.7vw, 21px);
  line-height: 1.381;
  letter-spacing: -0.012em;
}

body.apple-home.features-page .sp-more li::before {
  content: none;
}

body.apple-home.features-page .sp-visual {
  width: min(680px, 78vw);
  margin: 0 auto;
}

body.apple-home.features-page .sp-visual img {
  border-radius: 22px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.18);
}

body.apple-home.features-page .features-cta {
  background: #f5f5f7;
  border-radius: 0;
  padding: 58px 22px;
  margin: 0 -22px;
}

body.apple-home.features-page .features-cta-text {
  font-size: clamp(32px, 4vw, 48px);
  letter-spacing: -0.035em;
}

@media (max-width: 833px) {
  body.apple-home.features-page .spotlight {
    min-height: auto;
    padding: 52px 22px;
  }

  body.apple-home.features-page .sp-visual {
    width: 100%;
  }

  body.apple-home.features-page .sp-more ul {
    padding: 16px;
  }

  body.apple-home .page-header-links {
    font-size: 17px;
    gap: 18px;
  }
}

@media (max-width: 833px) {
  body.apple-home .spotlight {
    grid-template-columns: 1fr;
    padding: 44px 22px;
    gap: 24px;
  }

  body.apple-home .spotlight.flip .sp-text {
    order: 1;
  }

  body.apple-home .spotlight.flip .sp-visual {
    order: 2;
  }
}

/* Feature grid (modal + small-card layouts) */
body.apple-home .feat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

body.apple-home .feat-card {
  background: var(--ah-tile-gray);
  border-radius: 18px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
}

body.apple-home .feat-card.span2 {
  grid-column: span 2;
}

body.apple-home .feat-icon {
  font-size: 28px;
  line-height: 1;
}

body.apple-home .feat-name {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ah-fg);
}

body.apple-home .feat-desc {
  font-size: 14px;
  line-height: 1.5;
  color: var(--ah-fg-soft);
}

body.apple-home .feat-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

body.apple-home .feat-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 980px;
  background: #fff;
  color: var(--ah-fg);
  font-size: 11px;
  line-height: 1.2;
  font-weight: 500;
  border: 1px solid #d2d2d7;
}

@media (max-width: 720px) {
  body.apple-home .feat-grid {
    grid-template-columns: 1fr;
  }

  body.apple-home .feat-card.span2 {
    grid-column: span 1;
  }
}

/* Features CTA + modal */
body.apple-home .features-cta {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

body.apple-home .features-cta-text {
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.011em;
  color: var(--ah-fg);
  margin: 0;
}

body.apple-home .features-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 22px;
}

body.apple-home .features-modal.open {
  display: flex;
}

body.apple-home .features-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(29, 29, 31, 0.55);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

body.apple-home .features-modal-content {
  position: relative;
  background: #fff;
  color: var(--ah-fg);
  border-radius: 18px;
  max-width: 980px;
  width: 100%;
  max-height: 86vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

body.apple-home .features-modal-header {
  padding: 24px 28px 12px;
  border-bottom: 1px solid #e5e5ea;
}

body.apple-home .features-modal-header h2 {
  margin: 0 0 4px;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.015em;
}

body.apple-home .features-modal-header p {
  margin: 0;
  font-size: 14px;
  color: var(--ah-fg-soft);
}

body.apple-home .features-modal-body {
  padding: 22px 28px 28px;
  overflow-y: auto;
}

body.apple-home .features-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 0;
  background: rgba(0, 0, 0, 0.05);
  color: var(--ah-fg);
  font-size: 16px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

body.apple-home .features-modal-close:hover {
  background: rgba(0, 0, 0, 0.1);
}

/* Hosted models band (pricing) */
body.apple-home .hosted-models-band {
  background: var(--ah-tile-gray);
  border-radius: 18px;
  padding: 38px;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 28px;
  align-items: center;
}

body.apple-home .hosted-models-title {
  font-size: clamp(24px, 2.8vw, 34px);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.1;
  margin: 0 0 8px;
}

body.apple-home .hosted-models-sub {
  font-size: 15px;
  line-height: 1.5;
  color: var(--ah-fg-soft);
  margin: 0;
}

body.apple-home .hosted-models-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
}

body.apple-home .hosted-models-grid span {
  display: inline-flex;
  padding: 6px 12px;
  background: #fff;
  border: 1px solid #d2d2d7;
  border-radius: 980px;
  font-size: 12px;
  font-weight: 500;
  color: var(--ah-fg);
}

@media (max-width: 833px) {
  body.apple-home .hosted-models-band {
    grid-template-columns: 1fr;
    padding: 28px;
  }
}

/* Pricing dashboard CTA band */
body.apple-home .pricing-dashboard-cta {
  background: #000;
  color: #f5f5f7;
  border-radius: 18px;
  padding: 40px;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) auto;
  gap: 28px;
  align-items: center;
}

body.apple-home .pricing-dashboard-cta .section-badge {
  color: #2997ff;
}

body.apple-home .pricing-dashboard-cta-title {
  font-size: clamp(24px, 2.8vw, 34px);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.1;
  margin: 0 0 8px;
}

body.apple-home .pricing-dashboard-cta-sub {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: #a1a1a6;
}

body.apple-home .pricing-dashboard-cta .btn {
  background: #2997ff;
  border-color: #2997ff;
}

body.apple-home .pricing-dashboard-cta .btn:hover {
  background: #47a3ff;
  border-color: #47a3ff;
}

@media (max-width: 833px) {
  body.apple-home .pricing-dashboard-cta {
    grid-template-columns: 1fr;
    padding: 28px;
  }
}

/* Pricing controls + cards */
body.apple-home .pricing-period-control {
  display: inline-flex;
  margin: 0 auto 36px;
  padding: 4px;
  background: var(--ah-tile-gray);
  border-radius: 980px;
  gap: 4px;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}

body.apple-home .pricing-period-button {
  border: 0;
  background: transparent;
  color: var(--ah-fg);
  font-size: 13px;
  font-weight: 500;
  padding: 7px 16px;
  border-radius: 980px;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}

body.apple-home .pricing-period-button.active {
  background: var(--ah-fg);
  color: #fff;
}

body.apple-home .pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

body.apple-home .pricing-card {
  background: #fff;
  border: 1px solid #e5e5ea;
  border-radius: 18px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
}

body.apple-home .pricing-card.featured {
  border-color: var(--ah-link);
  box-shadow: 0 0 0 1px var(--ah-link);
}

body.apple-home .pricing-popular {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 10px;
  background: var(--ah-link);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  border-radius: 980px;
}

body.apple-home .pricing-name {
  font-size: 19px;
  font-weight: 600;
  color: var(--ah-fg);
}

body.apple-home .pricing-price {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  color: var(--ah-fg);
  font-weight: 600;
}

body.apple-home .pricing-currency {
  font-size: 18px;
}

body.apple-home .pricing-amount {
  font-size: 44px;
  letter-spacing: -0.015em;
  line-height: 1;
}

body.apple-home .pricing-period {
  font-size: 14px;
  color: var(--ah-fg-soft);
  font-weight: 400;
  margin-left: 4px;
}

body.apple-home .pricing-desc {
  font-size: 13px;
  line-height: 1.45;
  color: var(--ah-fg-soft);
  margin: 0;
}

body.apple-home .pricing-features {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

body.apple-home .pricing-features li {
  font-size: 13px;
  line-height: 1.45;
  color: var(--ah-fg);
  position: relative;
  padding-left: 18px;
}

body.apple-home .pricing-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--ah-link);
  font-weight: 600;
}

body.apple-home .pricing-cta {
  margin-top: auto;
  width: 100%;
}

/* Gallery (gallery.html) */
body.apple-home .gallery-section {
  padding: 36px 0;
}

body.apple-home .gallery-shuffle-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

body.apple-home .gallery-shuffle-card,
body.apple-home .gallery-video-shuffle-card {
  width: 100%;
  max-width: 880px;
  background: var(--ah-tile-gray);
  border: 0;
  border-radius: 28px;
  overflow: hidden;
  padding: 0;
  cursor: pointer;
  text-align: left;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
  box-shadow: none;
}

body.apple-home .gallery-video-shuffle-card {
  cursor: default;
}

body.apple-home .gallery-shuffle-card:hover {
  transform: translateY(-2px);
}

body.apple-home .gallery-shuffle-stage {
  position: relative;
  min-height: 340px;
  background: #000;
  align-self: center;
  border-radius: 28px;
  overflow: hidden;
}

body.apple-home .gallery-shuffle-layer,
body.apple-home .gallery-video-layer {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
}

body.apple-home .gallery-shuffle-layer.is-front,
body.apple-home .gallery-video-layer.is-front {
  opacity: 1;
  pointer-events: auto;
}

body.apple-home .gallery-shuffle-layer img,
body.apple-home .gallery-video-player {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

body.apple-home .gallery-shuffle-meta {
  padding: 16px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #fff;
}

body.apple-home .gallery-shuffle-label {
  font-size: 15px;
  font-weight: 600;
  color: var(--ah-fg);
}

body.apple-home .gallery-highlights-footer {
  width: 100%;
  max-width: 880px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

body.apple-home .gallery-name-pill {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 999px;
  background: #fff;
  color: #1d1d1f;
  font-size: 15px;
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: -0.012em;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

body.apple-home .gallery-highlights-controls {
  display: flex;
  justify-content: flex-end;
  gap: 28px;
  width: auto;
  max-width: none;
  padding-right: 0;
}

body.apple-home .gallery-video-controls {
  width: auto;
  max-width: none;
  padding-right: 0;
}

body.apple-home .gallery-highlights-arrow {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: #f0f0f4;
  color: #6e6e73;
  border: 0;
  border-radius: 50%;
  padding: 0;
  font-size: 0;
  line-height: 1;
  cursor: pointer;
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

body.apple-home .gallery-highlights-arrow::before {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M15.5 5.5L9 12L15.5 18.5' stroke='black' stroke-width='4.2' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M15.5 5.5L9 12L15.5 18.5' stroke='black' stroke-width='4.2' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E") center / contain no-repeat;
}

body.apple-home .gallery-highlights-prev::before {
  transform: translateX(-1px);
}

body.apple-home .gallery-highlights-next::before {
  transform: translateX(1px) rotate(180deg);
}

body.apple-home .gallery-highlights-arrow:hover {
  background: #e7e7ec;
  transform: none;
}

body.apple-home .gallery-highlights-arrow:disabled {
  opacity: 0.45;
  cursor: default;
  transform: none;
}

/* Lightbox */
body.apple-home .lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
}

body.apple-home .lightbox.open {
  display: flex;
}

body.apple-home .lb-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
}

body.apple-home .lb-wrap {
  position: relative;
  max-width: 90vw;
  max-height: 86vh;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

body.apple-home .lb-img-shell {
  background: #000;
  border-radius: 14px;
  overflow: hidden;
}

body.apple-home .lb-img {
  max-width: 90vw;
  max-height: 78vh;
  display: block;
}

body.apple-home .lb-caption {
  color: #f5f5f7;
  font-size: 13px;
}

body.apple-home .lb-close,
body.apple-home .lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.9);
  color: #1d1d1f;
  font-size: 22px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

body.apple-home .lb-close {
  top: 22px;
  right: 22px;
  transform: none;
  width: 36px;
  height: 36px;
  font-size: 16px;
}

body.apple-home .lb-prev {
  left: 16px;
}

body.apple-home .lb-next {
  right: 16px;
}

/* Generic content (terms, changelog, get-started, dashboard, 404) */
body.apple-home .content-prose {
  max-width: 720px;
  margin: 0 auto;
  font-size: 17px;
  line-height: 1.55;
  color: var(--ah-fg);
}

body.apple-home .content-prose h2,
body.apple-home .content-prose h3 {
  font-weight: 600;
  letter-spacing: -0.012em;
  margin: 28px 0 10px;
}

body.apple-home .content-prose h2 {
  font-size: 26px;
}

body.apple-home .content-prose h3 {
  font-size: 20px;
}

body.apple-home .content-prose p,
body.apple-home .content-prose li {
  color: var(--ah-fg);
}

body.apple-home .content-prose a {
  color: var(--ah-link);
}

body.apple-home .content-prose a:hover {
  text-decoration: underline;
}

/* Generic page-level cards used across pages */
body.apple-home .dl-info-card,
body.apple-home .download-card,
body.apple-home .highlight-card,
body.apple-home .capability-card,
body.apple-home .changelog-card,
body.apple-home .changelog-entry,
body.apple-home .dashboard-card,
body.apple-home .panel,
body.apple-home .info-card {
  background: var(--ah-tile-gray);
  border-radius: 18px;
  padding: 24px;
  color: var(--ah-fg);
}

body.apple-home .changelog-entry h2,
body.apple-home .changelog-entry h3 {
  font-weight: 600;
  letter-spacing: -0.012em;
  margin: 0 0 8px;
}

/* Changelog page */
body.apple-home.changelog-page .page-header-actions {
  margin-top: 28px;
}

body.apple-home .changelog-release {
  background: var(--ah-tile-gray);
  border-radius: 18px;
  padding: 28px;
  margin-bottom: 16px;
}

body.apple-home .changelog-release-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

body.apple-home .changelog-release-header h3 {
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 0;
}

body.apple-home .changelog-release-date {
  font-size: 13px;
  color: var(--ah-fg-soft);
}

body.apple-home .changelog-prerelease {
  display: inline-flex;
  padding: 3px 10px;
  background: var(--ah-link);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  border-radius: 980px;
}

body.apple-home .changelog-release-notes {
  font-size: 15px;
  line-height: 1.55;
  color: var(--ah-fg);
}

body.apple-home .changelog-release-notes p {
  margin: 0 0 10px;
}

body.apple-home .changelog-release-notes ul {
  padding-left: 20px;
  margin: 8px 0;
}

body.apple-home .changelog-files {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid #e5e5ea;
}

body.apple-home .changelog-files h4 {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--ah-fg-soft);
  margin: 0 0 10px;
}

body.apple-home .changelog-file {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  font-size: 14px;
}

body.apple-home .changelog-file-name {
  flex: 1;
  color: var(--ah-fg);
}

body.apple-home .changelog-file-size {
  color: var(--ah-fg-soft);
  font-size: 12px;
  white-space: nowrap;
}

body.apple-home .changelog-file-download {
  color: var(--ah-link);
  font-size: 13px;
  white-space: nowrap;
}

body.apple-home .changelog-file-download:hover {
  text-decoration: underline;
}

body.apple-home .changelog-loading,
body.apple-home .changelog-empty,
body.apple-home .changelog-error {
  text-align: center;
  padding: 48px 22px;
  color: var(--ah-fg-soft);
  font-size: 15px;
}

/* ── Download page (get-started) ──────────────────────── */
body.apple-home.download-page .page-header {
  padding: 96px 22px 64px;
  background:
    radial-gradient(circle at 50% 110%, rgba(41, 151, 255, 0.12), transparent 42%),
    #fbfbfd;
}

body.apple-home.download-page .page-header-title {
  font-size: clamp(52px, 7.8vw, 96px);
  letter-spacing: -0.055em;
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
}

body.apple-home.download-page .page-header-actions {
  margin-top: 28px;
}

body.apple-home .download-meta {
  margin-top: 16px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--ah-fg-soft);
}

body.apple-home.download-info {
  padding-top: 12px;
}

body.apple-home .dl-info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

body.apple-home .dl-info-card {
  background: #fff;
  border: 1px solid #e5e5ea;
  border-radius: 18px;
  padding: 28px;
  color: var(--ah-fg);
}

body.apple-home .dl-info-card h3 {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 14px;
}

body.apple-home .dl-info-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

body.apple-home .dl-info-card li {
  font-size: 14px;
  line-height: 1.45;
  color: var(--ah-fg-soft);
  position: relative;
  padding-left: 16px;
}

body.apple-home .dl-info-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #c7c7cc;
}

body.apple-home.download-community {
  padding: 52px 0 64px;
  background: #f5f5f7;
}

body.apple-home .community-card {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

body.apple-home .community-card h2 {
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 0;
  color: var(--ah-fg);
}

body.apple-home .community-card p {
  font-size: 17px;
  line-height: 1.45;
  color: var(--ah-fg-soft);
  max-width: 520px;
  margin: 0;
}

@media (max-width: 833px) {
  body.apple-home .dl-info-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Dashboard (account page) ─────────────────────────── */
body.apple-home.dashboard-page .dashboard-shell {
  max-width: 980px;
  margin: 0 auto;
  padding: 72px 22px 52px;
}

body.apple-home.dashboard-page .dashboard-header {
  text-align: center;
  margin-bottom: 44px;
}

body.apple-home.dashboard-page .dashboard-title {
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1.05;
  font-weight: 600;
  letter-spacing: -0.035em;
  color: var(--ah-fg);
  margin: 10px 0 12px;
}

body.apple-home.dashboard-page .dashboard-lead {
  font-size: 17px;
  line-height: 1.45;
  color: var(--ah-fg-soft);
  max-width: 640px;
  margin: 0 auto;
}

body.apple-home.dashboard-page .dashboard-panel-wrap {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

body.apple-home.dashboard-page .dashboard-auth-card,
body.apple-home.dashboard-page .dashboard-overview-card,
body.apple-home.dashboard-page .dashboard-side-card {
  background: var(--ah-tile-gray);
  border-radius: 18px;
  padding: 28px;
}

body.apple-home.dashboard-page .dashboard-auth-inner {
  max-width: 520px;
  margin: 0 auto;
}

body.apple-home.dashboard-page .dashboard-card-title {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 0 0 8px;
}

body.apple-home.dashboard-page .dashboard-card-sub {
  font-size: 14px;
  line-height: 1.45;
  color: var(--ah-fg-soft);
  margin: 0 0 22px;
}

body.apple-home.dashboard-page .dashboard-email-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

body.apple-home.dashboard-page .dashboard-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ah-fg);
}

body.apple-home.dashboard-page .dashboard-field span {
  margin-bottom: 2px;
}

body.apple-home.dashboard-page .dashboard-email-actions {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}

body.apple-home.dashboard-page .dashboard-auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
  color: var(--ah-fg-soft);
  font-size: 13px;
}

body.apple-home.dashboard-page .dashboard-auth-divider::before,
body.apple-home.dashboard-page .dashboard-auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e5e5ea;
}

body.apple-home.dashboard-page .dashboard-oauth-row {
  display: flex;
  gap: 10px;
}

body.apple-home.dashboard-page .dashboard-footnote {
  margin: 18px 0 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--ah-fg-soft);
}

body.apple-home.dashboard-page .dashboard-footnote a {
  color: var(--ah-link);
}

body.apple-home.dashboard-page .dashboard-footnote a:hover {
  text-decoration: underline;
}

body.apple-home.dashboard-page .dashboard-signed-in {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 16px;
}

body.apple-home.dashboard-page .dashboard-signed-in.is-hidden,
body.apple-home.dashboard-page .dashboard-auth-card.is-hidden {
  display: none;
}

body.apple-home.dashboard-page .dashboard-overview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

body.apple-home.dashboard-page .dashboard-email-label {
  font-size: 12px;
  line-height: 1.3;
  color: var(--ah-fg-soft);
  margin: 0;
}

body.apple-home.dashboard-page .dashboard-email {
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 4px 0 0;
}

body.apple-home.dashboard-page .dashboard-status-pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 980px;
  background: var(--ah-link);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
}

body.apple-home.dashboard-page .dashboard-summary {
  font-size: 14px;
  line-height: 1.45;
  color: var(--ah-fg-soft);
  margin: 0 0 18px;
}

body.apple-home.dashboard-page .account-detail-rows {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid #e5e5ea;
}

body.apple-home.dashboard-page .account-detail-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #e5e5ea;
}

body.apple-home.dashboard-page .account-detail-label {
  font-size: 13px;
  color: var(--ah-fg-soft);
}

body.apple-home.dashboard-page .account-detail-value {
  font-size: 14px;
  font-weight: 500;
  color: var(--ah-fg);
}

body.apple-home.dashboard-page .dashboard-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

body.apple-home.dashboard-page .dashboard-signout {
  background: transparent;
  color: var(--ah-fg-soft);
  border-color: #d2d2d7;
}

body.apple-home.dashboard-page .dashboard-signout:hover {
  background: rgba(0, 0, 0, 0.04);
}

body.apple-home.dashboard-page .dashboard-side-card {
  padding: 22px 24px;
}

body.apple-home.dashboard-page .dashboard-side-title {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 10px;
}

body.apple-home.dashboard-page .dashboard-side-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

body.apple-home.dashboard-page .dashboard-side-links a {
  color: var(--ah-link);
  font-size: 14px;
}

body.apple-home.dashboard-page .dashboard-side-links a:hover {
  text-decoration: underline;
}

body.apple-home.dashboard-page .dashboard-inline-msg {
  font-size: 13px;
  line-height: 1.4;
  color: var(--ah-fg-soft);
  margin: 10px 0 0;
  min-height: 18px;
}

@media (max-width: 833px) {
  body.apple-home.dashboard-page .dashboard-signed-in {
    grid-template-columns: 1fr;
  }
}

/* Form cards (reset-password) */
body.apple-home .form-card,
body.apple-home .reset-card {
  max-width: 420px;
  margin: 0 auto;
  background: var(--ah-tile-gray);
  border-radius: 18px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

body.apple-home input[type="text"],
body.apple-home input[type="email"],
body.apple-home input[type="password"],
body.apple-home textarea {
  width: 100%;
  padding: 10px 14px;
  font-size: 15px;
  font-family: inherit;
  border-radius: 12px;
  border: 1px solid #d2d2d7;
  background: #fff;
  color: var(--ah-fg);
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

body.apple-home input:focus,
body.apple-home textarea:focus {
  border-color: var(--ah-link);
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.18);
}

/* Apple-style FAQ accordion */
body.apple-home .faq-section {
  background: #fff;
  padding: 72px 0 64px;
}

body.apple-home .faq-section .container {
  max-width: 980px;
}

body.apple-home .faq-title {
  font-size: clamp(48px, 7.4vw, 88px);
  line-height: 1.02;
  font-weight: 600;
  letter-spacing: -0.045em;
  color: var(--ah-fg);
  margin: 0 0 74px;
}

body.apple-home .faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

body.apple-home .faq-item {
  margin: 0;
  border: 0;
  border-bottom: 0;
}

body.apple-home .faq-q {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 0 36px;
  color: var(--ah-fg);
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.028em;
}

body.apple-home .faq-q::-webkit-details-marker {
  display: none;
}

body.apple-home .faq-q::after {
  content: "";
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  border-right: 3px solid #424245;
  border-bottom: 3px solid #424245;
  transform: rotate(45deg) translateY(-3px);
  transition: transform 0.22s ease;
}

body.apple-home .faq-item[open] .faq-q::after {
  transform: rotate(225deg) translateY(-2px);
}

body.apple-home .faq-a {
  max-width: 820px;
  margin: -18px 0 56px;
  color: var(--ah-fg);
  font-size: clamp(17px, 1.75vw, 23px);
  line-height: 1.45;
  letter-spacing: -0.022em;
}

body.apple-home .faq-a a {
  color: var(--ah-link);
}

body.apple-home .faq-a a:hover {
  text-decoration: underline;
}

@media (max-width: 720px) {
  body.apple-home .faq-section {
    padding: 54px 0 44px;
  }

  body.apple-home .faq-title {
    margin-bottom: 46px;
  }

  body.apple-home .faq-q {
    padding-bottom: 28px;
  }

  body.apple-home .faq-a {
    margin: -12px 0 40px;
  }
}

/* ── Homepage: in-tile “Learn more” (bullets + calm motion) ─── */
body.homepage .ah-learn-split {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 1100px;
  margin: 8px auto 0;
  gap: 0;
}

body.homepage .ah-learn-visual {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  transform: translate3d(0, 0, 0);
  /* Standard ease-in-out — avoids “sine” curves that crawl at both ends and rush the middle */
  transition: transform 1.85s cubic-bezier(0.37, 0, 0.63, 1);
}

body.homepage .ah-tile.is-learn-open:not(.is-learn-closing) .ah-learn-visual {
  transform: translate3d(-2.5%, 0, 0);
}

body.homepage .ah-tile.is-learn-closing .ah-learn-visual {
  transform: translate3d(0, 0, 0);
}

body.homepage .ah-learn-split .ah-media {
  margin-top: auto;
  width: 100%;
}

body.homepage .ah-tile.is-learn-open .ah-learn-split .ah-media {
  margin-top: 12px;
  padding-top: 0;
}

body.homepage .ah-learn-stream {
  display: none;
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  padding: 0;
  pointer-events: none;
}

body.homepage .ah-tile.is-learn-open:not(.is-learn-closing) .ah-learn-stream {
  display: block;
  pointer-events: auto;
}

body.homepage .ah-learn-stream-inner {
  text-align: left;
  max-width: 640px;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

body.homepage .ah-tile.is-learn-open.is-learn-text-ready:not(.is-learn-closing) .ah-learn-stream-inner {
  opacity: 1;
  transform: translateY(0);
}

body.homepage .ah-tile.is-learn-closing .ah-learn-stream-inner {
  opacity: 0;
  transform: translateY(6px);
  transition:
    opacity 0.38s cubic-bezier(0.42, 0, 0.58, 1),
    transform 0.42s cubic-bezier(0.42, 0, 0.58, 1);
}

body.homepage .ah-learn-stream-eyebrow {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #6e6e73;
}

body.homepage .ah-tile.dark .ah-learn-stream-eyebrow {
  color: #a1a1a6;
}

body.homepage .ah-learn-stream-title {
  margin: 0 0 14px;
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.12;
  color: #1d1d1f;
}

body.homepage .ah-tile.dark .ah-learn-stream-title {
  color: #f5f5f7;
}

body.homepage .ah-learn-stream-body {
  font-size: clamp(16px, 1.45vw, 18px);
  line-height: 1.5;
  letter-spacing: -0.015em;
  color: #3a3a3c;
}

body.homepage .ah-tile.dark .ah-learn-stream-body {
  color: #d2d2d7;
}

body.homepage .ah-learn-bullets {
  margin: 0;
  padding: 0 0 0 1.2rem;
  list-style: disc;
}

body.homepage .ah-learn-bullets .ah-stream-item {
  margin: 0 0 0.65em;
  padding-left: 0.15em;
}

body.homepage .ah-learn-bullets .ah-stream-item:last-child {
  margin-bottom: 0;
}

body.homepage .ah-tile.dark .ah-learn-bullets li::marker {
  color: #8e8e93;
}

body.homepage .ah-learn-morelink {
  display: inline-flex;
  margin-top: 22px;
  text-decoration: none;
}

body.homepage .ah-learn-morelink.ah-stream-link-hidden {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.32s cubic-bezier(0.42, 0, 0.58, 1);
}

body.homepage .ah-tile.is-learn-open:not(.is-learn-closing) .ah-learn-morelink:not(.ah-stream-link-hidden) {
  opacity: 1;
}

body.homepage .ah-stream-item {
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

body.homepage .ah-stream-item.is-on {
  opacity: 1;
  transform: translateY(0);
}

body.homepage .ah-tile.is-learn-closing .ah-learn-bullets .ah-stream-item {
  opacity: 0;
  transform: translateY(5px);
  transition:
    opacity 0.26s cubic-bezier(0.42, 0, 0.58, 1),
    transform 0.3s cubic-bezier(0.42, 0, 0.58, 1);
}

body.homepage .ah-tile.is-learn-open {
  min-height: auto;
  padding-bottom: 48px;
}

body.homepage .ah-pair .ah-tile.is-learn-open {
  min-height: auto;
}

@media (min-width: 834px) {
  body.homepage .ah-tile.is-learn-open:not(.is-learn-closing) .ah-learn-split {
    flex-direction: row;
    align-items: flex-start;
    justify-content: center;
    gap: clamp(20px, 3.5vw, 44px);
    text-align: left;
  }

  body.homepage .ah-tile.is-learn-open:not(.is-learn-closing) .ah-learn-visual {
    flex: 0 0 clamp(260px, 38%, 400px);
    max-width: 420px;
    justify-content: flex-start;
    align-items: flex-start;
    transform: translate3d(-2%, 0, 0);
  }

  body.homepage .ah-tile.is-learn-open:not(.is-learn-closing) .ah-learn-stream {
    flex: 1 1 minmax(0, 58%);
    max-width: none;
    margin-top: 0;
    padding: 12px 8px 40px 0;
    max-height: none;
  }

  body.homepage .ah-tile.is-learn-open:not(.is-learn-closing) .ah-learn-stream-inner {
    margin: 0;
    max-width: none;
  }

  body.homepage .ah-tile.is-learn-open:not(.is-learn-closing) .ah-learn-split .ah-media img {
    max-width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.homepage .ah-learn-visual {
    transition: none;
  }

  body.homepage .ah-tile.is-learn-open:not(.is-learn-closing) .ah-learn-visual {
    transform: none;
  }

  body.homepage .ah-stream-item {
    transition: none;
    transform: none;
  }

  body.homepage .ah-tile.is-learn-closing .ah-learn-stream-inner {
    transition: opacity 0.15s ease;
    transform: none;
  }

  body.apple-home.features-page .sp-learn-more,
  body.apple-home.features-page .sp-learn-icon,
  body.apple-home.features-page .sp-more {
    transition: none;
  }
}