/* ==========================================================================
   EternalMonitor site styles
   Shares its palette and type with the Windows and iPad apps: near-black
   surfaces, one lime accent taken from the logo, Geist and Geist Mono.
   ========================================================================== */

:root {
  --bg: #0a0a0b;
  --surface: #121214;
  --surface-2: #1a1a1d;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #f4f4f5;
  --muted: #a1a1aa;
  --faint: #71717a;
  --accent: #e8ff47;
  --accent-rgb: 232, 255, 71;
  --on-accent: #0c0d04;
  --warning: #fbbf24;
  --danger: #f87171;

  --font: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, 'SF Mono', 'Cascadia Mono', monospace;

  --max-width: 1160px;
  --nav-height: 64px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Base ---------------------------------------------------------------- */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + 24px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

::selection {
  background: rgba(var(--accent-rgb), 0.28);
  color: var(--text);
}

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

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

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid rgba(var(--accent-rgb), 0.8);
  outline-offset: 3px;
  border-radius: 6px;
}

h1,
h2,
h3 {
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.1;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.5rem, 6.2vw, 4.5rem);
  letter-spacing: -0.04em;
}

h2 {
  font-size: clamp(1.75rem, 3.6vw, 2.6rem);
}

h3 {
  font-size: 1.125rem;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

p {
  text-wrap: pretty;
}

code {
  font-family: var(--font-mono);
  font-size: 0.9em;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 300;
  padding: 10px 16px;
  background: var(--accent);
  color: var(--on-accent);
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.skip-link:focus {
  top: 12px;
}

/* --- Logo ------------------------------------------------------------------ */

.logo {
  width: 28px;
  height: 28px;
  /* Match the mark's rounded square so the glow follows its shape. */
  border-radius: 24%;
  box-shadow: 0 0 18px rgba(var(--accent-rgb), 0.18);
}

/* --- Nav ------------------------------------------------------------------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-height);
  background: rgba(10, 10, 11, 0.72);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.nav.scrolled {
  background: rgba(10, 10, 11, 0.88);
  box-shadow: 0 12px 32px -20px rgba(0, 0, 0, 0.8);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 24px;
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  font-size: 0.925rem;
  color: var(--muted);
  transition: color 0.15s, background 0.15s;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text);
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.05);
}

.nav-link svg {
  width: 17px;
  height: 17px;
}

/* --- Buttons --------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 48px;
  padding: 0 22px;
  border-radius: 12px;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s var(--ease), border-color 0.15s var(--ease),
    transform 0.15s var(--ease), box-shadow 0.2s var(--ease);
}

.btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.btn:active {
  transform: translateY(1px) scale(0.99);
}

.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0);
}

.btn-primary:hover {
  background: #f1ff8a;
  box-shadow: 0 8px 28px -8px rgba(var(--accent-rgb), 0.55);
}

.btn-primary svg {
  transition: transform 0.25s var(--ease-out);
}

.btn-primary:hover svg {
  transform: translateY(2px);
}

.btn-secondary {
  background: var(--surface-2);
  border-color: var(--border-strong);
  color: var(--text);
}

.btn-secondary:hover {
  background: #212125;
  border-color: rgba(255, 255, 255, 0.22);
}

.btn-sm {
  height: 36px;
  padding: 0 14px;
  border-radius: 10px;
  font-size: 0.9rem;
}

.btn-block {
  width: 100%;
}

/* --- Shared pieces --------------------------------------------------------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 10px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 0.875rem;
}

.eyebrow-dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.16);
}

.eyebrow-dot::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0;
  animation: ping 2.4s var(--ease-out) infinite;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.badge {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 500;
  white-space: nowrap;
}

.badge-accent {
  background: rgba(var(--accent-rgb), 0.12);
  border: 1px solid rgba(var(--accent-rgb), 0.28);
  color: var(--accent);
}

.badge-muted {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-strong);
  color: var(--muted);
}

.section {
  padding: 96px 0;
}

.section--flush {
  padding-top: 0;
}

.section-header {
  max-width: 640px;
  margin: 0 auto 56px;
  text-align: center;
}

.section-header .kicker {
  display: block;
  margin-bottom: 14px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.js .section-header .kicker {
  letter-spacing: 0.3em;
  transition: letter-spacing 1.1s var(--ease-out);
}

.js .section-header.visible .kicker {
  letter-spacing: 0.12em;
}

.section-header p {
  margin-top: 16px;
  color: var(--muted);
  font-size: 1.1rem;
}

/* --- Mac notice ------------------------------------------------------------ */

.mac-notice {
  border-bottom: 1px solid var(--border);
  background: #121214;
}

.mac-notice-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 52px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.mac-notice p {
  flex: 1;
  color: var(--muted);
  font-size: 0.925rem;
}

.mac-notice strong {
  color: var(--text);
  font-weight: 600;
  margin-right: 6px;
}

.mac-notice a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(var(--accent-rgb), 0.4);
}

.mac-notice-close {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: var(--radius-sm);
  background: none;
  color: var(--muted);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.mac-notice-close:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

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

.hero {
  position: relative;
  padding: 96px 0 0;
  text-align: center;
  isolation: isolate;
  overflow-x: clip;
}

.hero::before {
  content: '';
  position: absolute;
  z-index: -1;
  top: -160px;
  left: 50%;
  width: min(1100px, 140vw);
  height: 720px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(var(--accent-rgb), 0.12), transparent);
  pointer-events: none;
  animation: breathe 10s ease-in-out infinite;
}

.hero h1 {
  max-width: 900px;
  margin: 28px auto 0;
}

.hero h1 .accent {
  color: var(--accent);
  text-shadow: 0 0 36px rgba(var(--accent-rgb), 0.22);
}

/* Entrance: the eyebrow, each word of the headline, then the rest. */
.hero .eyebrow,
.hero .hero-subtitle,
.hero .hero-actions,
.hero .hero-meta {
  animation: rise 0.8s var(--ease-out) both;
}

.hero .eyebrow {
  animation-delay: 0.05s;
}

.hero .hero-subtitle {
  animation-delay: 0.5s;
}

.hero .hero-actions {
  animation-delay: 0.62s;
}

.hero .hero-meta {
  animation-delay: 0.74s;
}

.hero h1 .w {
  display: inline-block;
  animation: rise 0.9s var(--ease-out) both;
  animation-delay: calc(0.14s + var(--i, 0) * 0.045s);
}

.hero-subtitle {
  max-width: 620px;
  margin: 24px auto 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
}

.hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.hero-meta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 22px;
  color: var(--faint);
  font-size: 0.9rem;
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-meta svg {
  width: 16px;
  height: 16px;
  color: var(--accent);
}

/* --- Product showcase ------------------------------------------------------ */

.showcase {
  position: relative;
  max-width: 1040px;
  margin: 72px auto 0;
  padding: 0 24px 56px;
}

.showcase-window {
  position: relative;
  width: 86%;
  border-radius: 12px;
  overflow: hidden;
  background: #0e0e10;
  border: 1px solid var(--border-strong);
  box-shadow: 0 40px 120px -30px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(0, 0, 0, 0.6);
}

.showcase-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 34px;
  padding: 0 0 0 14px;
  background: #161618;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.8rem;
}

.showcase-titlebar .title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.showcase-titlebar .title img {
  width: 16px;
  height: 16px;
  border-radius: 24%;
}

.window-controls {
  display: flex;
  height: 100%;
}

.window-controls span {
  display: grid;
  place-items: center;
  width: 44px;
  height: 100%;
  color: var(--faint);
}

.window-controls svg {
  width: 10px;
  height: 10px;
}

.showcase-window img {
  width: 100%;
  height: auto;
}

.showcase-ipad {
  position: absolute;
  /* Puts the left bezel between the columns of the window's "Connected
     iPad" card and the top edge between its card rows, so no label is cut. */
  right: 4.65%;
  bottom: 60px;
  width: 29%;
  padding: 1.4%;
  border-radius: 9% / 6.8%;
  background: linear-gradient(145deg, #2c2c30, #111113);
  box-shadow: 0 50px 100px -30px rgba(0, 0, 0, 0.95), inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.showcase-ipad img {
  width: 100%;
  height: auto;
  border-radius: 6.4% / 4.8%;
}

.showcase-label {
  margin-top: 14px;
  color: var(--faint);
  font-size: 0.85rem;
  text-align: left;
}

.showcase-ipad .showcase-label {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  text-align: center;
}

/* The window rises first, then the iPad slides in, settles and floats. */
.js .reveal.reveal-showcase {
  opacity: 1;
  transform: none;
}

.js .reveal-showcase .showcase-window {
  opacity: 0;
  transform: translateY(40px) scale(0.98);
  transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
}

.js .reveal-showcase .showcase-ipad {
  opacity: 0;
  transform: translate3d(32px, 44px, 0) scale(0.96);
  transition: opacity 0.9s var(--ease-out) 0.35s, transform 0.9s var(--ease-out) 0.35s;
}

.js .reveal-showcase .showcase-label {
  opacity: 0;
  transition: opacity 0.6s var(--ease) 1s;
}

.js .reveal-showcase.visible .showcase-window,
.js .reveal-showcase.visible .showcase-ipad,
.js .reveal-showcase.visible .showcase-label {
  opacity: 1;
  transform: none;
}

.reveal-showcase.visible .showcase-ipad {
  animation: float 7s ease-in-out 1.8s infinite;
}

/* A faint ring leaves the iPad every few seconds: it is receiving. */
.showcase-ipad::before {
  content: '';
  position: absolute;
  inset: -10px;
  border-radius: inherit;
  border: 1px solid rgba(var(--accent-rgb), 0.55);
  opacity: 0;
  pointer-events: none;
}

.reveal-showcase.visible .showcase-ipad::before {
  animation: beacon 2.8s var(--ease-out) 2.2s infinite;
}

/* --- Launch film ------------------------------------------------------------ */

.section--watch {
  padding-top: 32px;
}

.launch {
  max-width: 1040px;
  margin: 0 auto;
}

.launch-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  background: #0e0e10;
  border: 1px solid var(--border-strong);
  box-shadow: 0 40px 120px -30px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(0, 0, 0, 0.6);
}

.launch-frame video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* One lime button over the poster; script.js swaps in the native controls
   once the film runs. */
.launch-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  width: 100%;
  border: 0;
  background: rgba(10, 10, 11, 0.16);
  color: var(--on-accent);
  cursor: pointer;
  transition: background 0.3s var(--ease);
}

.launch-play[hidden] {
  display: none;
}

.launch-play::before,
.launch-play::after {
  content: '';
  position: absolute;
  width: 84px;
  height: 84px;
  border-radius: 50%;
}

.launch-play::before {
  background: var(--accent);
  box-shadow: 0 0 0 12px rgba(var(--accent-rgb), 0.14), 0 24px 60px -20px rgba(var(--accent-rgb), 0.7);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease);
}

.launch-play::after {
  border: 1.5px solid var(--accent);
  opacity: 0;
  animation: ping 2.8s var(--ease-out) infinite;
}

.launch-play svg {
  position: relative;
  width: 34px;
  height: 34px;
  margin-left: 5px;
}

.launch-play:hover {
  background: rgba(10, 10, 11, 0.06);
}

.launch-play:hover::before {
  transform: scale(1.06);
  box-shadow: 0 0 0 16px rgba(var(--accent-rgb), 0.16), 0 24px 60px -16px rgba(var(--accent-rgb), 0.8);
}

.launch-play:focus-visible {
  outline: none;
}

.launch-play:focus-visible::before {
  outline: 2px solid rgba(var(--accent-rgb), 0.8);
  outline-offset: 6px;
}

/* --- Features -------------------------------------------------------------- */

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.feature {
  padding: 28px;
}

/* Cards lift on hover and carry a soft spotlight that follows the pointer
   (script.js sets --mx and --my). */
.feature,
.step,
.req-card,
.download-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  transition: border-color 0.25s var(--ease), transform 0.3s var(--ease-out),
    box-shadow 0.3s var(--ease-out);
}

.feature::after,
.step::after,
.req-card::after,
.download-card::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: radial-gradient(
    300px circle at var(--mx, 50%) var(--my, 0%),
    rgba(var(--accent-rgb), 0.09),
    transparent 62%
  );
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  pointer-events: none;
}

@media (hover: hover) {
  .feature:hover,
  .step:hover,
  .req-card:hover,
  .download-card:hover {
    border-color: var(--border-strong);
    transform: translateY(-3px);
    box-shadow: 0 24px 48px -28px rgba(0, 0, 0, 0.9);
  }

  .download-card--primary:hover {
    box-shadow: 0 30px 80px -40px rgba(var(--accent-rgb), 0.35),
      0 24px 48px -28px rgba(0, 0, 0, 0.9);
  }

  .feature:hover::after,
  .step:hover::after,
  .req-card:hover::after,
  .download-card:hover::after {
    opacity: 1;
  }

  .feature:hover .feature-icon {
    transform: translateY(-2px) rotate(-4deg);
    background: rgba(var(--accent-rgb), 0.14);
    box-shadow: 0 0 0 5px rgba(var(--accent-rgb), 0.06);
  }

  .step:hover .step-number {
    transform: scale(1.08);
  }
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 22px;
  border-radius: 12px;
  background: rgba(var(--accent-rgb), 0.08);
  border: 1px solid rgba(var(--accent-rgb), 0.2);
  color: var(--accent);
  transition: transform 0.35s var(--ease-out), background 0.35s var(--ease),
    box-shadow 0.35s var(--ease);
}

.feature-icon svg {
  width: 22px;
  height: 22px;
}

.feature h3 {
  margin-bottom: 8px;
}

.feature p {
  color: var(--muted);
  font-size: 0.975rem;
}

.feature .tag {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--faint);
  font-size: 0.72rem;
  font-weight: 500;
  vertical-align: 2px;
  letter-spacing: 0;
}

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

.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 28px;
}

.step-number {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 20px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.95rem;
  transition: transform 0.35s var(--ease-out);
}

.step h3 {
  margin-bottom: 8px;
}

.step p {
  color: var(--muted);
  font-size: 0.975rem;
}

/* --- Requirements ---------------------------------------------------------- */

.requirements-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.req-card {
  padding: 28px 32px;
}

.req-card h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  font-size: 1.25rem;
}

.req-card h3 svg {
  width: 22px;
  height: 22px;
  color: var(--accent);
}

.check-list {
  list-style: none;
  display: grid;
  gap: 12px;
}

.check-list li {
  position: relative;
  padding-left: 30px;
  color: var(--muted);
}

.check-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 5px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(var(--accent-rgb), 0.14)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23e8ff47' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.9'/%3E%3C/svg%3E")
    center / 14px no-repeat;
}

/* --- Status ---------------------------------------------------------------- */

.status-card {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  padding: 40px;
}

.status-card h2 {
  margin-top: 18px;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
}

.status-card p {
  margin-top: 14px;
  color: var(--muted);
}

.status-note {
  display: flex;
  gap: 12px;
  margin-top: 22px;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(251, 191, 36, 0.06);
  border: 1px solid rgba(251, 191, 36, 0.22);
  color: var(--muted);
  font-size: 0.925rem;
}

.status-note svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  color: var(--warning);
}

.timeline {
  list-style: none;
  position: relative;
  display: grid;
  gap: 4px;
}

/* Connector from the first dot to the last, lime as far as the current release. */
.timeline::before {
  content: '';
  position: absolute;
  left: 11px;
  top: 36px;
  bottom: 36px;
  width: 2px;
  border-radius: 1px;
  background: linear-gradient(var(--accent) 0, var(--accent) 66.7%, var(--border-strong) 66.7%);
  transform-origin: top;
}

.js .timeline::before {
  transform: scaleY(0);
  transition: transform 1.2s var(--ease-out) 0.4s;
}

.js .reveal.visible .timeline::before {
  transform: none;
}

.milestone {
  position: relative;
  display: grid;
  grid-template-columns: 24px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
}

.milestone + .milestone {
  border-top: 1px solid var(--border);
}

.milestone-dot {
  position: relative;
  z-index: 1;
  width: 12px;
  height: 12px;
  margin: 0 auto;
  border-radius: 50%;
  border: 2px solid var(--faint);
  background: var(--surface);
}

.milestone--done .milestone-dot {
  background: var(--accent);
  border-color: var(--accent);
}

.milestone--current .milestone-dot {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.16);
}

.milestone--current .milestone-dot::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  opacity: 0;
  animation: ping 2.6s var(--ease-out) infinite;
}

.milestone-version {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--faint);
}

.milestone-name {
  display: block;
  font-weight: 500;
}

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

.faq {
  max-width: 820px;
  margin: 0 auto;
}

.faq details {
  border-bottom: 1px solid var(--border);
}

.faq details:first-child {
  border-top: 1px solid var(--border);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 4px;
  font-size: 1.075rem;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: '';
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23a1a1aa' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M10 4v12M4 10h12'/%3E%3C/svg%3E")
    center / 20px no-repeat;
  transition: transform 0.2s var(--ease);
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

@supports (interpolate-size: allow-keywords) {
  .faq details,
  .build-details {
    interpolate-size: allow-keywords;
  }

  .faq details::details-content,
  .build-details::details-content {
    height: 0;
    overflow: clip;
    transition: height 0.35s var(--ease), content-visibility 0.35s allow-discrete;
  }

  .faq details[open]::details-content,
  .build-details[open]::details-content {
    height: auto;
  }
}

.faq details p {
  max-width: 680px;
  padding: 0 4px 24px;
  color: var(--muted);
}

.faq details a,
.prose-link {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(var(--accent-rgb), 0.4);
}

/* --- Call to action --------------------------------------------------------- */

.cta {
  position: relative;
  overflow: hidden;
  padding: 72px 40px;
  text-align: center;
}

.cta::before {
  content: '';
  position: absolute;
  inset: auto -20% -60% -20%;
  height: 120%;
  background: radial-gradient(closest-side, rgba(var(--accent-rgb), 0.12), transparent);
  pointer-events: none;
}

.cta .logo {
  width: 56px;
  height: 56px;
  margin: 0 auto 24px;
}

.cta p {
  max-width: 520px;
  margin: 14px auto 0;
  color: var(--muted);
  font-size: 1.1rem;
}

.cta .hero-actions {
  position: relative;
}

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

.footer {
  padding: 40px 0 48px;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px 24px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

.footer-copy {
  color: var(--faint);
  font-size: 0.875rem;
}

.footer-links {
  display: flex;
  gap: 22px;
  font-size: 0.9rem;
}

.footer-links a {
  color: var(--muted);
  transition: color 0.15s;
}

.footer-links a:hover {
  color: var(--text);
}

/* --- Download page --------------------------------------------------------- */

.download-hero {
  position: relative;
  padding: 88px 0 56px;
  text-align: center;
  isolation: isolate;
  overflow-x: clip;
}

.download-hero::before {
  content: '';
  position: absolute;
  z-index: -1;
  top: -200px;
  left: 50%;
  width: min(900px, 140vw);
  height: 560px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(var(--accent-rgb), 0.1), transparent);
}

.download-hero h1 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
}

.download-hero p {
  max-width: 560px;
  margin: 18px auto 0;
  color: var(--muted);
  font-size: 1.1rem;
}

.download-hero h1,
.download-hero p {
  animation: rise 0.8s var(--ease-out) both;
}

.download-hero p {
  animation-delay: 0.18s;
}

.download-hero p + p {
  animation-delay: 0.3s;
}

.download-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 16px;
  align-items: start;
}

.download-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 32px;
}

.download-card--primary {
  border-color: rgba(var(--accent-rgb), 0.28);
  box-shadow: 0 30px 80px -40px rgba(var(--accent-rgb), 0.25);
}

.download-card-header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.download-card-header .platform-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(var(--accent-rgb), 0.08);
  border: 1px solid rgba(var(--accent-rgb), 0.2);
  color: var(--accent);
}

.download-card-header .platform-icon svg {
  width: 22px;
  height: 22px;
}

.download-card-header h2 {
  font-size: 1.5rem;
  letter-spacing: -0.02em;
}

.download-card > p {
  color: var(--muted);
}

.spec-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.spec-list li {
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.85rem;
}

.download-btn-wrap {
  display: grid;
  gap: 10px;
}

.download-btn-wrap [hidden] {
  display: none;
}

.download-meta {
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

.testflight-status {
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed var(--border-strong);
  color: var(--muted);
  font-size: 0.95rem;
}

.sha256 {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--bg);
  border: 1px solid var(--border);
}

.sha256-label {
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.sha256 code {
  color: var(--muted);
  font-size: 0.8rem;
  word-break: break-all;
  text-wrap: balance;
}

.download-note {
  color: var(--faint);
  font-size: 0.9rem;
}

.download-note a,
.download-hero a,
.status-card a {
  color: var(--accent);
}

.preview-section {
  padding: 16px 0 0;
}

.preview-card {
  padding: 32px;
  border-color: rgba(251, 191, 36, 0.25);
}

.preview-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.preview-head h2 {
  font-size: 1.35rem;
}

.badge-warning {
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.3);
  color: var(--warning);
  font-family: var(--font-mono);
}

.preview-card p {
  max-width: 760px;
  margin-bottom: 14px;
  color: var(--muted);
}

.preview-card p strong {
  color: var(--text);
}

.preview-card .download-btn-wrap {
  max-width: 420px;
  margin: 8px 0 16px;
}

.build-section {
  padding: 16px 0 96px;
}

.build-details {
  padding: 0 28px;
}

.build-details summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
  font-size: 1.05rem;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
}

.build-details summary::-webkit-details-marker {
  display: none;
}

.build-details summary::after {
  content: '';
  width: 20px;
  height: 20px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23a1a1aa' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M10 4v12M4 10h12'/%3E%3C/svg%3E")
    center / 20px no-repeat;
  transition: transform 0.2s var(--ease);
}

.build-details[open] summary::after {
  transform: rotate(45deg);
}

.build-content {
  display: grid;
  gap: 14px;
  padding-bottom: 28px;
}

.build-content h3 {
  margin-top: 8px;
  font-size: 1rem;
}

.build-content ul {
  display: grid;
  gap: 6px;
  padding-left: 20px;
  color: var(--muted);
}

.build-content pre {
  overflow-x: auto;
  padding: 16px 18px;
  border-radius: 12px;
  background: var(--bg);
  border: 1px solid var(--border);
}

.build-content pre code {
  color: var(--text);
  font-size: 0.85rem;
  line-height: 1.7;
}

/* --- TestFlight open, install steps and feedback --------------------------- */

.testflight-status--open {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border-style: solid;
  border-color: rgba(var(--accent-rgb), 0.28);
  background: rgba(var(--accent-rgb), 0.06);
  color: var(--text);
}

.testflight-status--open .eyebrow-dot {
  flex-shrink: 0;
  margin-top: 8px;
}

.install-steps {
  display: grid;
  gap: 8px;
  padding-left: 22px;
  color: var(--muted);
  font-size: 0.925rem;
}

.install-steps strong {
  color: var(--text);
  font-weight: 500;
}

.feedback-callout {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-strong);
  color: var(--muted);
  font-size: 0.925rem;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.feedback-callout:hover {
  border-color: rgba(var(--accent-rgb), 0.4);
  background: rgba(var(--accent-rgb), 0.05);
}

.feedback-callout svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  color: var(--accent);
}

.feedback-callout strong {
  color: var(--text);
  font-weight: 500;
}

.feedback-section {
  padding: 16px 0 0;
}

.feedback-card {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 40px;
  padding: 40px;
}

.feedback-kicker {
  display: block;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.feedback-intro h2 {
  margin-top: 14px;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
}

.feedback-intro p {
  margin-top: 14px;
  color: var(--muted);
}

.feedback-intro p strong {
  color: var(--text);
  font-weight: 500;
}

.feedback-intro a,
.feedback-fallback a {
  color: var(--accent);
}

.feedback-form {
  display: grid;
  gap: 18px;
  align-content: start;
}

.field {
  display: grid;
  gap: 8px;
}

.field[hidden] {
  display: none;
}

.field--choice {
  border: 0;
  min-width: 0;
}

.field label,
.field legend {
  font-size: 0.9rem;
  font-weight: 500;
}

.field legend {
  padding: 0;
  margin-bottom: 8px;
}

.field .optional {
  margin-left: 6px;
  color: var(--faint);
  font-weight: 400;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  color: var(--text);
  font: inherit;
  font-size: 0.95rem;
  line-height: 1.5;
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}

.field textarea {
  min-height: 96px;
  resize: vertical;
}

.field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23a1a1aa' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 8l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--faint);
}

.field input:focus-visible,
.field textarea:focus-visible,
.field select:focus-visible {
  outline: none;
  border-color: rgba(var(--accent-rgb), 0.6);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.16);
}

.choice-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.choice {
  position: relative;
}

.choice input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.choice span {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 0.925rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s var(--ease), border-color 0.15s var(--ease),
    color 0.15s var(--ease);
}

.choice input:checked + span {
  background: rgba(var(--accent-rgb), 0.12);
  border-color: rgba(var(--accent-rgb), 0.4);
  color: var(--accent);
}

.choice input:focus-visible + span {
  outline: 2px solid rgba(var(--accent-rgb), 0.8);
  outline-offset: 3px;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.field-row .field:last-child {
  grid-column: 1 / -1;
}

.feedback-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 4px;
}

.feedback-fallback {
  grid-column: 1 / -1;
  display: grid;
  gap: 12px;
  padding: 18px 20px;
  border-radius: 12px;
  background: var(--bg);
  border: 1px solid rgba(var(--accent-rgb), 0.28);
  color: var(--muted);
  font-size: 0.925rem;
}

.feedback-fallback[hidden] {
  display: none;
}

.feedback-fallback strong {
  color: var(--text);
}

.feedback-fallback pre {
  overflow-x: auto;
  padding: 14px 16px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  white-space: pre-wrap;
  word-break: break-word;
}

.feedback-fallback pre code {
  color: var(--text);
  font-size: 0.82rem;
  line-height: 1.6;
}

.feedback-fallback-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* --- Motion ---------------------------------------------------------------- */
/* script.js swaps the html class from no-js to js and adds .visible when a
   .reveal element scrolls into view. Without JavaScript nothing is hidden. */

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes ping {
  from {
    transform: scale(1);
    opacity: 0.45;
  }

  to {
    transform: scale(2.8);
    opacity: 0;
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-7px);
  }
}

@keyframes breathe {
  0%,
  100% {
    transform: translateX(-50%) scale(1);
    opacity: 0.85;
  }

  50% {
    transform: translateX(-50%) scale(1.06);
    opacity: 1;
  }
}

@keyframes beacon {
  from {
    transform: scale(1);
    opacity: 0.55;
  }

  to {
    transform: scale(1.1);
    opacity: 0;
  }
}

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

.js .reveal.visible {
  opacity: 1;
  transform: none;
}

/* Groups stay put; their children rise one after another. */
.js .reveal.reveal-stagger {
  opacity: 1;
  transform: none;
}

.js .reveal-stagger > * {
  opacity: 0;
}

.js .reveal.visible .reveal-stagger > *,
.js .reveal.visible.reveal-stagger > * {
  opacity: 1;
  animation: rise 0.65s var(--ease-out) backwards;
  animation-delay: calc(var(--i, 0) * 75ms);
}

.reveal-stagger > :nth-child(2) {
  --i: 1;
}

.reveal-stagger > :nth-child(3) {
  --i: 2;
}

.reveal-stagger > :nth-child(4) {
  --i: 3;
}

.reveal-stagger > :nth-child(5) {
  --i: 4;
}

.reveal-stagger > :nth-child(6) {
  --i: 5;
}

.reveal-stagger > :nth-child(7) {
  --i: 6;
}

.reveal-stagger > :nth-child(8) {
  --i: 7;
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0ms !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0ms !important;
  }

  .js .reveal,
  .js .reveal-stagger > *,
  .js .reveal-showcase .showcase-window,
  .js .reveal-showcase .showcase-ipad,
  .js .reveal-showcase .showcase-label {
    opacity: 1;
    transform: none;
  }

  .js .timeline::before {
    transform: none;
  }

  .js .section-header .kicker {
    letter-spacing: 0.12em;
  }
}

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

@media (max-width: 960px) {
  .features-grid,
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .status-card {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .download-grid {
    grid-template-columns: 1fr;
  }

  .feedback-card {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

@media (max-width: 720px) {
  .section {
    padding: 64px 0;
  }

  .nav-link-label,
  .nav-link.hide-sm {
    display: none;
  }

  .hero {
    padding-top: 64px;
  }

  .showcase {
    margin-top: 48px;
    padding-bottom: 0;
  }

  .showcase-window {
    width: 100%;
  }

  .showcase-label {
    display: none;
  }

  .showcase-ipad {
    position: relative;
    right: auto;
    width: 46%;
    margin: -30% 0 0 auto;
  }


  .features-grid,
  .steps,
  .requirements-grid {
    grid-template-columns: 1fr;
  }

  .status-card,
  .cta {
    padding: 28px 22px;
  }

  .download-card,
  .preview-card {
    padding: 24px 20px;
  }

  .feedback-card {
    padding: 28px 22px;
  }

  .field-row {
    grid-template-columns: 1fr;
  }

  .build-details {
    padding: 0 20px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 420px) {
  .container {
    padding: 0 18px;
  }

  .hero-actions .btn,
  .feedback-actions .btn {
    width: 100%;
  }

  .nav-brand span {
    display: none;
  }
}
