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

:root {
  /* Apple system colors (SF Symbol palette) */
  --system-green: #34c759;
  --system-orange: #ff9f0a;
  --system-purple: #bf5af2;
  --system-red: #ff3b30;
  --background-dark: #141416;
  --card-dark: #242428;
  --widget-purple: #8040d9;
  --pro-gold: #e6c033;
  --success-green: #34c759;
  --trends-blue: #4d80f2;
  --text-primary: #f5f5f7;
  --text-secondary: #a1a1aa;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.7);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-pill: 999px;
  --ease-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --post-hero-fade: 0;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  background: #050507;
  background-image:
    radial-gradient(ellipse 120% 80% at 50% -20%, rgba(77, 128, 242, 0.12), transparent 50%),
    radial-gradient(ellipse 100% 60% at 80% 40%, rgba(128, 64, 217, 0.08), transparent 45%),
    radial-gradient(circle at 50% 100%, #0d0d0f 0, #050507 70%, #000 100%);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
  text-decoration: none;
}

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

main {
  flex: 1;
}

.site-header {
  max-width: 1120px;
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  /* Ensure the header controls (including the sound toggle) remain tappable
     above the pinned hero overlay on iOS Safari. */
  position: relative;
  z-index: 55;
}

.audio-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: rgba(36, 36, 40, 0.9);
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 13px;
  backdrop-filter: blur(16px);
}

.audio-toggle-icon {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 20%, var(--success-green), #0f5132);
}

.audio-toggle[data-muted="true"] .audio-toggle-icon,
.audio-toggle[aria-pressed="true"] .audio-toggle-icon {
  background: radial-gradient(circle at 30% 20%, #f97373, #7f1d1d);
}

.audio-toggle[data-muted="true"] .audio-toggle-label,
.audio-toggle[aria-pressed="true"] .audio-toggle-label {
  color: #f97373;
}

.hero {
  max-width: 1120px;
  margin: 0 auto;
  /* Keep the first-load hero (including carousel) comfortably within viewport. */
  min-height: calc(100svh - 88px);
  padding: clamp(26px, 5.5vh, 40px) 24px clamp(18px, 4vh, 44px);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr);
  gap: 48px;
  align-items: center;
  --hero-reveal-progress: 0;
}

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

.hero-content-placeholder {
  height: 0;
}

.scroll-hint {
  margin: 26px 0 0;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.02em;
  color: var(--system-green);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.25s var(--ease-out), transform 0.25s var(--ease-out);
  user-select: none;
  white-space: nowrap;
}

.scroll-hint::after {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-left: 8px;
  border-right: 2px solid var(--system-green);
  border-bottom: 2px solid var(--system-green);
  transform: rotate(45deg) translateY(-1px);
}

.hero[data-hero-reveal="false"] .scroll-hint {
  opacity: 1;
  transform: translateY(0);
  animation: scrollHintPulse 1.8s ease-in-out infinite;
}

.hero-content.is-pinned .scroll-hint {
  display: none;
}

@keyframes scrollHintPulse {
  0%,
  100% {
    opacity: 0.85;
  }
  50% {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero[data-hero-reveal="false"] .scroll-hint {
    animation: none;
  }
}

/* Mobile + desktop pinned hero copy (shrinks a bit, stays readable). */
.hero-content.is-pinned {
  position: fixed;
  left: 50%;
  top: calc(env(safe-area-inset-top, 0px) + 10px);
  width: calc(100% - 28px);
  /* Must sit below the header so taps on the sound toggle aren't intercepted. */
  z-index: 10;

  padding: 12px 14px;
  border-radius: var(--radius-lg);
  background: rgba(20, 20, 22, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(16px);

  height: auto; /* override height:100% */
  justify-content: center;
  transform: translateX(-50%) translateY(var(--hero-pin-shift, 0px));
}

.hero-content.is-pinned.is-ultra-compact {
  padding: 8px 10px;
}

.hero-content.is-pinned .hero-app-icon {
  width: calc(84px - (var(--hero-pin-progress, 0) * 12px));
  height: calc(84px - (var(--hero-pin-progress, 0) * 12px));
  border-radius: calc(18px - (var(--hero-pin-progress, 0) * 4px));
}

.hero-content.is-pinned .hero-cta {
  gap: 0;
}

.hero-content.is-pinned.is-ultra-compact .hero-cta {
  position: static;
  margin: 0;
  align-items: center;
  width: 100%;
  margin-top: -4px;
}

.hero-content.is-pinned.is-ultra-compact .primary-cta {
  padding: 6px 12px;
  font-size: 11px;
  white-space: nowrap;
}

.hero-content.is-pinned .device-label,
.hero-content.is-pinned .cta-helper {
  max-height: calc(60px * (1 - var(--hero-pin-progress, 0)));
  opacity: calc(1 - var(--hero-pin-progress, 0));
  overflow: hidden;
  pointer-events: none;
  margin-top: 0;
}

/* Mobile pinned typography tweaks so wrapping doesn't look "off". */
.hero-content.is-pinned h1 {
  font-size: calc(38px - (var(--hero-pin-progress, 0) * 14px));
}

.hero-content.is-pinned .subheadline {
  font-size: calc(17px - (var(--hero-pin-progress, 0) * 5px));
  margin-bottom: calc(6px - (var(--hero-pin-progress, 0) * 3px));
}

.hero-content.is-pinned .hero-tagline {
  font-size: calc(15px - (var(--hero-pin-progress, 0) * 3px));
}

.hero-content.is-pinned.is-ultra-compact .hero-tagline {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  margin: 0;
}

.hero-content.is-pinned .hero-brand {
  gap: calc(16px - (var(--hero-pin-progress, 0) * 6px));
  margin-bottom: calc(10px - (var(--hero-pin-progress, 0) * 6px));
}

.hero-content.is-pinned.is-ultra-compact .hero-brand {
  width: 100%;
  justify-content: flex-start;
  align-items: center;
  padding-right: 0;
  margin-bottom: 0;
}

.hero-content.is-pinned.is-ultra-compact .hero-headings {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  min-height: 64px;
  text-align: left;
}

.hero-content.is-pinned.is-ultra-compact .hero-app-icon {
  width: 64px;
  height: 64px;
  border-radius: 14px;
}

.hero-content.is-pinned.is-ultra-compact h1 {
  font-size: 16px;
  line-height: 1.18;
  letter-spacing: -0.01em;
  margin-bottom: 0;
  font-weight: 700;
}

.hero-content.is-pinned.is-ultra-compact .subheadline {
  font-size: 12.5px;
  margin-bottom: 0;
  line-height: 1.2;
  letter-spacing: -0.006em;
  color: rgba(245, 245, 247, 0.88);
}

.hero-content.is-pinned.is-ultra-compact .device-label,
.hero-content.is-pinned.is-ultra-compact .cta-helper {
  display: none;
}

.hero-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 10px;
  justify-content: center;
}

.hero-app-icon {
  width: 84px;
  height: 84px;
  border-radius: 18px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.hero-headings {
  flex: 1;
  min-width: 0;
}

.hero h1 {
  font-size: clamp(28px, 6vw, 44px);
  line-height: 1.08;
  margin: 0 0 4px;
  font-weight: 700;
  letter-spacing: -0.03em;
  overflow-wrap: anywhere; /* allow breaking long brand names on narrow widths */
  word-break: normal;
}

.hero .subheadline {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 6px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.hero-tagline {
  font-size: 15px;
  color: var(--text-secondary);
  margin: 0 0 0;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--trends-blue);
  margin-bottom: 16px;
}

.device-label {
  font-size: 12px;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--system-green);
  margin-bottom: 12px;
  font-weight: 600;
}

.subheadline {
  font-size: 16px;
  color: var(--text-secondary);
}

.hero-cta {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.primary-cta,
.primary-cta-large {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: var(--radius-pill);
  border: none;
  background: linear-gradient(135deg, var(--pro-gold), #f5d654);
  color: #141416;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  box-shadow: 0 4px 24px rgba(230, 192, 51, 0.35), 0 0 0 1px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s var(--ease-out), box-shadow 0.25s var(--ease-out);
}

.primary-cta-large {
  font-size: 16px;
  padding: 16px 28px;
}

.primary-cta:hover,
.primary-cta-large:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(230, 192, 51, 0.45), 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.cta-helper {
  margin: 0;
  font-size: 13px;
  color: var(--text-secondary);
}

.cta-inner .cta-helper {
  /* The helper text sits directly under the CTA button. */
  margin-top: 10px;
}

.footer-left p {
  margin: 0;
}

/* Carousel: no device frame, centered on page */
.hero-carousel-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 0 auto;
  height: auto;
  overflow: hidden;

  /* Smooth reveal: fade + gentle scale (keeps screenshot text readable). */
  opacity: clamp(0, calc((var(--hero-reveal-progress, 0) - 0.06) / 0.26), 1);
  transform:
    translateY(calc(54px * (1 - var(--hero-reveal-eased-progress, var(--hero-reveal-progress, 0)))))
    scale(calc(0.93 + 0.07 * var(--hero-reveal-eased-progress, var(--hero-reveal-progress, 0))));
  padding-top: var(--hero-preview-clearance, 0px);
  will-change: opacity, transform;
}

/* First load: header-only, fills the screen. Carousel previews stay hidden. */
.hero[data-hero-reveal="false"] {
  min-height: calc(100svh - 88px);
  gap: 0;
  padding-top: clamp(24px, 5.2vh, 56px);
  padding-bottom: clamp(12px, 3.6vh, 30px);
}

.hero[data-hero-reveal="false"] .hero-content:not(.is-pinned) {
  min-height: calc(100svh - 152px);
  justify-content: center;
}

.hero[data-hero-reveal="false"] .hero-content:not(.is-pinned) .hero-brand {
  flex-direction: column;
  gap: 14px;
  margin-bottom: 12px;
}

.hero[data-hero-reveal="false"] .hero-content:not(.is-pinned) .hero-headings {
  flex: none;
}

.hero[data-hero-reveal="false"] .hero-carousel-wrap {
  pointer-events: none;
}

.hero[data-hero-reveal="false"] .hero-content:not(.is-pinned) .hero-app-icon {
  width: clamp(122px, 13.5vw + 5.5vh, 156px);
  height: clamp(122px, 13.5vw + 5.5vh, 156px);
  border-radius: clamp(26px, 2.2vw + 1.1vh, 34px);
}

.hero[data-hero-reveal="false"] .hero-content:not(.is-pinned) h1 {
  font-size: clamp(40px, 7.8vw + 1.8vh, 74px);
  line-height: 1.04;
}

.hero[data-hero-reveal="false"] .hero-content:not(.is-pinned) .subheadline {
  font-size: clamp(18px, 1.5vw + 0.9vh, 22px);
}

.hero[data-hero-reveal="false"] .hero-content:not(.is-pinned) .hero-tagline {
  font-size: clamp(16px, 1.2vw + 0.75vh, 19px);
}

.hero[data-hero-reveal="false"] .hero-content:not(.is-pinned) .hero-cta {
  gap: clamp(12px, 1vh, 16px);
}

.hero[data-hero-reveal="false"] .hero-content:not(.is-pinned) .primary-cta {
  font-size: clamp(15px, 0.85vw + 0.55vh, 18px);
  padding: clamp(14px, 0.8vw + 0.55vh, 18px) clamp(24px, 1.6vw + 1vh, 34px);
}

.hero-carousel {
  position: relative;
  width: 100%;
  max-width: 252px;
  margin: 0 auto;
}

.carousel-viewport {
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.5), 0 0 0 1px var(--border-subtle);
}

.carousel-track {
  display: flex;
  transform: translateX(0);
  transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.carousel-track img {
  width: 100%;
  flex-shrink: 0;
  display: block;
  aspect-ratio: 9 / 19.5;
  object-fit: cover;
}

.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(20, 20, 22, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  z-index: 2;
  transition: transform 0.2s ease, background 0.2s ease;
}

.carousel-nav:hover {
  background: rgba(36, 36, 40, 0.98);
  transform: translateY(-50%) scale(1.06);
}

/* Left/right chevrons (not up/down) */
.carousel-nav::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 10px;
  height: 10px;
  border: 2px solid var(--text-primary);
  border-bottom: 0;
  border-left: 0;
}

.carousel-prev {
  left: -12px;
}

.carousel-prev::after {
  left: 12px;
  right: auto;
  transform: rotate(-45deg);
}

.carousel-next {
  right: -12px;
}

.carousel-next::after {
  right: 12px;
  left: auto;
  transform: rotate(135deg);
}

.carousel-dots {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  justify-content: center;
}

.carousel-dots span {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.25);
  transition: width 0.25s ease, background 0.25s ease;
}

.carousel-dots span.is-active {
  width: 20px;
  background: var(--text-primary);
}

.section-heading {
  max-width: 640px;
  margin: 0 auto 20px;
  text-align: center;
  padding-inline: 20px;
}

.section-heading h2 {
  margin: 0 0 8px;
  font-size: clamp(22px, 4vw, 28px);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section-heading p {
  margin: 0;
  color: var(--text-secondary);
}

/* Benefits: upleveled, distinct from Features */
.value {
  padding: 48px 24px 56px;
  opacity: calc(0.22 + (0.78 * var(--post-hero-fade, 0)));
  transform: translateY(calc(28px * (1 - var(--post-hero-fade, 0))));
  transition: opacity 0.35s var(--ease-out), transform 0.35s var(--ease-out);
}

.value-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 28px 48px;
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(36, 36, 40, 0.85) 0%, rgba(20, 20, 22, 0.95) 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
}

.value-heading {
  margin-bottom: 32px;
}

.value-heading h2 {
  font-size: clamp(24px, 4vw, 30px);
}

.value-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
}

.value-rotator {
  max-width: 760px;
  margin: 0 auto;
}

.value-rotator .value-card {
  margin: 0;
}

.value-rotator .value-card:hover {
  transform: none;
  box-shadow: none;
  border-color: rgba(255, 255, 255, 0.06);
}

.value-rotator-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 16px;
}

.value-rotator-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease, opacity 0.25s ease;
}

.value-rotator-dot.is-active {
  width: 26px;
  background: var(--text-primary);
}

.value-card {
  padding: 24px 26px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  transition: transform 0.25s var(--ease-out), border-color 0.2s ease, box-shadow 0.25s var(--ease-out);
}

.value-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
}

.value-num {
  display: block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--system-green);
  margin-bottom: 8px;
}

.value-card h3 {
  margin: 0 0 8px;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.value-card p {
  margin: 0;
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.features {
  padding: 24px 20px 52px;
  opacity: calc(0.35 + (0.65 * var(--post-hero-fade, 0)));
  transition: opacity 0.35s var(--ease-out);
}

.modes-grid {
  max-width: 960px;
  margin: 0 auto 28px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

.mode-card {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 22px 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: rgba(36, 36, 40, 0.6);
  backdrop-filter: blur(12px);
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  color: var(--text-primary); /* keep button text consistent across browsers */
}

.mode-card::before {
  content: "";
  position: absolute;
  inset: -2px;
  background: radial-gradient(600px 220px at 12% 5%, rgba(255, 255, 255, 0.12), transparent 55%);
  opacity: 0;
  transition: opacity 0.25s var(--ease-out);
  z-index: 0;
}

.mode-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.mode-card:hover::before,
.mode-card:focus-visible::before {
  opacity: 1;
}

button.mode-card {
  appearance: none;
  text-align: left;
  width: 100%;
}

.mode-card:focus-visible {
  outline: 2px solid rgba(52, 199, 89, 0.55);
  outline-offset: 2px;
}

.mode-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.mode-icon svg {
  width: 26px;
  height: 26px;
}

.mode-track .mode-icon {
  background: rgba(52, 199, 89, 0.2);
  color: var(--system-green);
}

.mode-mod .mode-icon {
  background: rgba(255, 159, 10, 0.2);
  color: var(--system-orange);
}

.mode-break .mode-icon {
  background: rgba(191, 90, 242, 0.2);
  color: var(--system-purple);
}

.mode-quit .mode-icon {
  background: rgba(255, 59, 48, 0.2);
  color: var(--system-red);
}

.mode-content {
  flex: 1;
  min-width: 0;
  position: relative;
  z-index: 1;
}

.mode-click-indicator {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(20, 20, 22, 0.35);
  opacity: 0;
  transform: translateY(6px) scale(0.98);
  transition: opacity 0.25s var(--ease-out), transform 0.25s var(--ease-out), border-color 0.25s var(--ease-out);
  z-index: 1;
}

.mode-card:hover .mode-click-indicator,
.mode-card:focus-visible .mode-click-indicator {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.mode-click-indicator::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--text-primary);
  border-bottom: 2px solid var(--text-primary);
  transform: translate(-50%, -55%) rotate(-45deg);
}

.mode-track .mode-click-indicator {
  border-color: rgba(52, 199, 89, 0.4);
}
.mode-mod .mode-click-indicator {
  border-color: rgba(255, 159, 10, 0.4);
}
.mode-break .mode-click-indicator {
  border-color: rgba(191, 90, 242, 0.45);
}
.mode-quit .mode-click-indicator {
  border-color: rgba(255, 59, 48, 0.45);
}

.mode-card h3 {
  margin: 0 0 6px;
  font-size: 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  color: var(--text-primary);
}

.mode-card p {
  margin: 0;
  font-size: 14px;
  color: var(--text-secondary);
}

.mode-track {
  border-color: rgba(52, 199, 89, 0.35);
}

.mode-mod {
  border-color: rgba(255, 159, 10, 0.35);
}

.mode-break {
  border-color: rgba(191, 90, 242, 0.4);
}

.mode-quit {
  border-color: rgba(255, 59, 48, 0.4);
}

.pro-highlights {
  max-width: 960px;
  margin: 0 auto 32px;
  padding: 20px 24px;
  border-radius: var(--radius-md);
  background: rgba(36, 36, 40, 0.5);
  border: 1px solid var(--border-subtle);
}

.pro-highlights-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin: 0 0 12px;
}

.pro-highlights-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  font-size: 14px;
  color: var(--text-primary);
}

.pro-highlights-list li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.pro-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.pro-dot-widgets { background: var(--system-green); }
.pro-dot-live { background: var(--system-orange); }
.pro-dot-icloud { background: var(--trends-blue); }
.pro-dot-health { background: var(--system-red); }
.pro-dot-buddy { background: var(--system-purple); }
.pro-dot-modes { background: var(--pro-gold); }

.badge {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(230, 192, 51, 0.12);
  color: var(--pro-gold);
  border: 1px solid rgba(230, 192, 51, 0.5);
}

.tiers {
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

.tier-card {
  padding: 18px 20px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: radial-gradient(circle at top left, rgba(77, 128, 242, 0.12), rgba(20, 20, 22, 0.95));
}

.tier-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.tier-card ul {
  margin: 0;
  padding-left: 18px;
  font-size: 14px;
  color: var(--text-secondary);
}

.tier-card li + li {
  margin-top: 4px;
}

.tier-pro {
  border-color: rgba(230, 192, 51, 0.7);
}

.tier-price-tag {
  margin: -2px 0 12px;
  font-size: 13px;
  color: rgba(230, 192, 51, 0.95);
  line-height: 1.35;
  font-weight: 600;
}

.cta-section {
  padding: 40px 20px 52px;
}

.cta-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  padding: 32px 28px;
  border-radius: var(--radius-lg);
  background: rgba(20, 20, 22, 0.85);
  border: 1px solid rgba(52, 199, 89, 0.4);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(16px);
}

.cta-inner h2 {
  margin: 0 0 8px;
  font-size: 24px;
}

.cta-inner p {
  margin: 0 0 18px;
  color: var(--text-secondary);
}

.legal-page {
  padding: 40px 24px 56px;
}

.legal-inner {
  max-width: 920px;
  margin: 0 auto;
  padding: 36px 28px 40px;
}

.legal-content {
  text-align: left;
  color: var(--text-secondary);
  line-height: 1.75;
  font-size: 14px;
}

.legal-content h2 {
  margin: 0 0 10px;
  color: var(--text-primary);
  font-size: 26px;
  letter-spacing: -0.02em;
}

.legal-content h3 {
  margin: 18px 0 8px;
  color: var(--text-primary);
  font-size: 16px;
}

.legal-content a {
  color: var(--text-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-content ul {
  margin: 8px 0 0;
  padding-left: 18px;
}

.legal-content li {
  margin: 6px 0;
}

.site-footer {
  max-width: 1120px;
  margin: 0 auto;
  padding: 16px 20px 24px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
  font-size: 12px;
  color: var(--text-secondary);
}

.footer-hero-compact {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(20, 20, 22, 0.66);
  backdrop-filter: blur(14px);
}

.footer-hero-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  flex-shrink: 0;
}

.footer-hero-copy {
  min-width: 0;
}

.footer-hero-title {
  margin: 0;
  font-size: 21px;
  line-height: 1.05;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.footer-hero-subtitle {
  margin: 2px 0 0;
  font-size: 13px;
  color: var(--text-primary);
}

.footer-hero-desc {
  margin: 2px 0 0;
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.35;
}

.footer-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}

.footer-links a {
  color: #9ca3af;
}

.mode-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 60;
}

.mode-modal[hidden] {
  display: none;
}

.mode-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
}

.mode-modal-dialog {
  position: relative;
  width: min(820px, 100%);
  border-radius: var(--radius-xl);
  background: rgba(20, 20, 22, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 36px 90px rgba(0, 0, 0, 0.7);
  overflow: hidden;
  max-height: 92vh;
}

.mode-modal-close {
  position: absolute;
  right: 16px;
  top: 16px;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(10, 10, 12, 0.35);
  cursor: pointer;
}

.mode-modal-close::before,
.mode-modal-close::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 2px;
  background: var(--text-primary);
  transform-origin: center;
}

.mode-modal-close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.mode-modal-close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.mode-modal-body {
  padding: 28px 22px 22px;
  text-align: center;
}

.mode-modal-kicker {
  margin: 0 0 10px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
  font-weight: 700;
}

.mode-modal-title {
  margin: 0 0 10px;
  font-size: 28px;
  letter-spacing: -0.02em;
}

.mode-modal-desc {
  margin: 0 auto 18px;
  max-width: 560px;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.5;
}

.mode-modal-preview {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(12, 14, 18, 0.72);
  width: min(100%, 560px);
  max-height: none;
  margin: 0 auto;
  padding: 10px;
}

.mode-modal-preview-img {
  width: auto;
  max-width: 100%;
  max-height: min(42vh, 520px);
  object-fit: contain;
  object-position: center;
  display: block;
  margin: 0 auto;
}

.mode-modal-note {
  margin: 14px 0 0;
  font-size: 13px;
  color: var(--text-secondary);
}

@media (prefers-reduced-motion: reduce) {
  .value-rotator-dot,
  .mode-card,
  .mode-card::before {
    transition: none !important;
  }
}

.audio-nudge {
  position: fixed;
  inset-inline: 0;
  bottom: 18px;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.audio-nudge-button {
  pointer-events: auto;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  padding: 8px 16px;
  background: rgba(15, 23, 42, 0.92);
  color: var(--text-primary);
  font-size: 13px;
  cursor: pointer;
  backdrop-filter: blur(18px);
}

@media (min-width: 768px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    padding-top: clamp(34px, 5.5vh, 48px);
    padding-bottom: clamp(20px, 4vh, 48px);
    gap: 34px;
    align-items: start;
    justify-items: center; /* ensures hero-content centers */
  }

  .hero-content {
    align-items: center;
    text-align: center;
    height: auto;
    justify-self: center;
  }

  .hero-brand {
    justify-content: center;
    margin-bottom: 6px;
  }

  .hero-headings {
    text-align: center;
  }

  .hero-cta {
    align-items: center;
  }

  .device-label {
    text-align: center;
  }

  .hero-app-icon {
    width: 104px;
    height: 104px;
    border-radius: 22px;
  }

  .hero h1 {
    font-size: 40px;
  }

  .value-inner {
    padding: 48px 36px 56px;
  }

  .value-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }

  .modes-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tiers {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-carousel {
    max-width: 288px;
  }

  /* Desktop: start with header only (carousel fades in during the compact collapse). */
  .hero-carousel-wrap {
    overflow: hidden;
    opacity: clamp(0, calc((var(--hero-reveal-progress, 0) - 0.08) / 0.24), 1);
    transform:
      translateY(calc(48px * (1 - var(--hero-reveal-eased-progress, var(--hero-reveal-progress, 0)))))
      scale(calc(0.94 + 0.06 * var(--hero-reveal-eased-progress, var(--hero-reveal-progress, 0))));
    padding-top: var(--hero-preview-clearance, 0px);
    will-change: opacity, transform;
  }

  .hero[data-hero-reveal="false"] .hero-carousel-wrap {
    pointer-events: none;
  }

  .hero-content {
    --hero-pin-progress: 0;
    --hero-pin-shift: 0px;
  }

  .hero-content.is-pinned {
    position: fixed;
    left: 50%;
    top: calc(env(safe-area-inset-top, 0px) + 14px);
    width: min(960px, calc(100% - 48px));
    /* Must sit below the header so taps on the sound toggle aren't intercepted. */
    z-index: 10;

    padding: 14px 16px;
    border-radius: var(--radius-lg);
    background: rgba(20, 20, 22, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(16px);

    height: auto; /* override height:100% */
    justify-content: center;
    transform: translateX(-50%) translateY(var(--hero-pin-shift, 0px));
  opacity: calc(0.35 + (0.65 * var(--hero-pin-progress, 0)));
  }

  .hero-content.is-pinned.is-ultra-compact {
    padding: 8px 12px;
  }

  /* Progressive shrink tied to --hero-pin-progress (0..1) */
  .hero-content.is-pinned .hero-app-icon {
    width: calc(104px - (var(--hero-pin-progress) * 32px));
    height: calc(104px - (var(--hero-pin-progress) * 32px));
    border-radius: calc(22px - (var(--hero-pin-progress) * 10px));
  }

  .hero-content.is-pinned h1 {
    font-size: calc(40px - (var(--hero-pin-progress) * 14px));
  }

  .hero-content.is-pinned .subheadline {
    font-size: calc(17px - (var(--hero-pin-progress) * 4px));
    margin-bottom: calc(6px - (var(--hero-pin-progress) * 3px));
  }

  .hero-content.is-pinned .hero-tagline {
    font-size: calc(15px - (var(--hero-pin-progress) * 2px));
  }

  .hero-content.is-pinned .hero-brand {
    gap: calc(16px - (var(--hero-pin-progress) * 6px));
    margin-bottom: calc(6px - (var(--hero-pin-progress) * 4px));
  }

  .hero-content.is-pinned.is-ultra-compact .hero-brand {
    padding-right: 180px;
  }

  .hero-content.is-pinned.is-ultra-compact .hero-headings {
    gap: 2px;
    min-height: 72px;
  }

  .hero-content.is-pinned .hero-cta {
    gap: 0;
  }

  .hero-content.is-pinned .primary-cta {
    padding: calc(14px - (var(--hero-pin-progress) * 4px)) calc(24px - (var(--hero-pin-progress) * 6px));
    font-size: calc(15px - (var(--hero-pin-progress) * 1px));
  }

  .hero-content.is-pinned.is-ultra-compact .primary-cta {
    padding: 8px 16px;
    font-size: 13px;
    letter-spacing: -0.01em;
  }

  .hero-content.is-pinned.is-ultra-compact .hero-cta {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-56%);
    width: auto;
    align-items: flex-end;
    z-index: 2;
    margin-top: 0;
  }

  .hero-content.is-pinned.is-ultra-compact h1 {
    font-size: 17px;
    line-height: 1.15;
    letter-spacing: -0.012em;
    margin-bottom: 0;
  }

  .hero-content.is-pinned.is-ultra-compact .subheadline {
    font-size: 13px;
    line-height: 1.2;
    letter-spacing: -0.006em;
    margin-bottom: 0;
  }

  .hero-content.is-pinned .device-label,
  .hero-content.is-pinned .cta-helper {
    max-height: calc(60px * (1 - var(--hero-pin-progress)));
    opacity: calc(1 - var(--hero-pin-progress));
    overflow: hidden;
    pointer-events: none;
    margin-top: 0;
  }

  .mode-modal-body {
    padding: 34px 30px 26px;
    text-align: left;
  }

  .mode-modal-desc {
    margin-left: 0;
    margin-right: 0;
  }

  .mode-modal-preview-img {
    height: auto;
  }

  .mode-modal-preview {
    max-height: none;
  }

  .mode-modal-preview-img {
    max-height: min(54vh, 620px);
  }
}

@media (min-width: 1024px) {
  .hero {
    padding-top: clamp(44px, 6vh, 56px);
  }

  .hero h1 {
    font-size: 44px;
  }

  .hero-content.is-pinned h1 {
    font-size: calc(44px - (var(--hero-pin-progress) * 18px));
  }

  .hero-carousel {
    max-width: 324px;
  }

  .site-footer {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
  }

  .footer-hero-compact {
    flex-basis: 100%;
  }
}