:root {
  --ink: #111111;
  --muted: #6e6e73;
  --line: rgba(0, 0, 0, 0.08);
  --line-light: rgba(255, 255, 255, 0.15);
  --bg: #ffffff;
  --card: #ffffff;
  --accent: #0071e3;
  --accent-purple: #9b51e0;
  --accent-orange: #ff9500;
  --accent-mint: #34c759;
  --deck-color: #7b7b7d;
  --lid-bezel: #121212;
  --radius-lg: 20px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --radius-pill: 9999px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", Inter, system-ui, sans-serif;
  font-feature-settings: "cv11", "ss01";
  font-weight: 500;
  font-size: 15px;
  line-height: 1.5;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Stage container */
.stage {
  max-width: 920px;
  margin: 0 auto;
  padding: 104px 24px 80px;
}

/* Real-Time Online Visitors Presence Pill (Aligned inside Topbar) */
.presence-counter {
  position: relative;
  top: auto;
  right: auto;
  z-index: 1;
  margin: 0;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--line);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  cursor: default;
  user-select: none;
  transition: all 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  overflow: hidden;
}

.presence-counter:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  border-color: rgba(0, 0, 0, 0.14);
}

.counter-content {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 5px 14px;
  font-size: 13px;
  color: var(--ink);
}

.counter-live {
  font-weight: 500;
}

.counter-live strong {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}

.presence-label {
  color: var(--muted);
  font-size: 12.5px;
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34c759;
  box-shadow: 0 0 0 2.5px rgba(52, 199, 89, 0.24);
  animation: livePulse 2.4s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes livePulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.6;
    transform: scale(0.9);
  }
}

.counter-info {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  filter: blur(4px);
  transform: translateY(10px);
  pointer-events: none;
}

/* Top Navigation Bar (matching Home) */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 64px;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--line);
}

.topbar-actions {
  display: flex;
  align-items: center;
  margin-left: auto;
  flex-shrink: 0;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}
.avatar-logo {
  border-radius: 50%;
  border: 1px solid var(--line);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}
.atlas-logo-mark {
  width: 22px;
  height: 22px;
  border-radius: 0;
  border: none;
  box-shadow: none;
  flex-shrink: 0;
}
.brand-name {
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.015em;
}
.nav-divider {
  color: rgba(0, 0, 0, 0.22);
  font-weight: 400;
  font-size: 15px;
  margin: 0 2px;
}
.crumb-app {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--ink);
}
.crumb-icon {
  border-radius: 6px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}
.crumb-name {
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.015em;
}
.app-logo {
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}
.badge.os {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.05);
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--card);
  color: var(--ink);
  text-decoration: none;
  font-size: 13px;
  letter-spacing: -0.01em;
  border: 1px solid var(--line);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
  transition: transform 0.15s ease, background 0.15s ease;
}
.pill:hover {
  transform: translateY(-1px);
  background: #ffffff;
}
.back-pill {
  font-weight: 600;
  color: var(--accent);
  background: rgba(0, 113, 227, 0.06);
  border-color: rgba(0, 113, 227, 0.18);
}
.back-pill:hover {
  background: rgba(0, 113, 227, 0.12);
}

/* Intro */
.intro {
  margin-bottom: 28px;
}
.pill-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  background: rgba(0, 113, 227, 0.09);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.kicker-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
h1 {
  text-wrap: balance;
  font-size: 42px;
  line-height: 1.1;
  letter-spacing: -0.038em;
  font-weight: 600;
  margin: 0 0 16px;
}
.lede {
  font-size: 20px;
  line-height: 1.42;
  letter-spacing: -0.02em;
  color: var(--muted);
  margin: 0;
  max-width: 36ch;
}

/* CTAs */
.actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 48px;
}
.purchase-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: nowrap;
}

@media (max-width: 640px) {
  .purchase-row {
    flex-wrap: wrap;
  }
}

.button.primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 0 8px 0 18px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.015em;
  white-space: nowrap;
  transition: transform 0.15s ease, opacity 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}
.button.primary:hover {
  opacity: 0.92;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}
.button.primary:active {
  transform: scale(0.98);
}
.button.primary .amount {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  font-size: 13px;
  letter-spacing: -0.01em;
}

.brew-box {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  background: #f5f5f7;
  border: 1px solid var(--line);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12.5px;
  color: var(--ink);
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.18s ease;
}

.brew-box:hover {
  background: #ebebee;
  border-color: rgba(0, 0, 0, 0.14);
}

.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink-secondary);
  cursor: pointer;
  transition: all 0.18s ease;
}

.copy-btn:hover {
  background: var(--ink);
  color: #ffffff;
  border-color: var(--ink);
}

.purchase-plus {
  color: var(--muted);
  font-size: 20px;
  font-weight: 400;
}
.kofi-bonus {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  padding: 6px 14px 6px 8px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.kofi-bonus:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 149, 0, 0.4);
}
.kofi-icon-box {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 149, 0, 0.14);
  color: #ff9500;
  display: flex;
  align-items: center;
  justify-content: center;
}
.kofi-copy .note {
  margin: 0;
  font-size: 13px;
  line-height: 1.2;
}
.kofi-copy .subnote {
  margin: 0;
  font-size: 11px;
  color: var(--muted);
}

/* 3D MacBook Figure */
.figure {
  width: min(920px, 100%);
  margin: 0 auto 64px;
  padding: 0;
}

/* Simulator Bar Controls */
.simulator-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 16px;
  margin-bottom: 24px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  flex-wrap: wrap;
}

.sim-group {
  display: flex;
  align-items: center;
  gap: 8px;
}
.sim-label {
  font-size: 13px;
  color: var(--muted);
}
.sim-icon {
  font-size: 14px;
}
.sim-divider {
  width: 1px;
  height: 24px;
  background: var(--line);
}

.angle-scrubber-group label {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}
.angle-scrubber-group strong {
  font-variant-numeric: tabular-nums;
  font-size: 13px;
  width: 36px;
  color: var(--ink);
}

#hingeAngleSlider {
  -webkit-appearance: none;
  appearance: none;
  width: 110px;
  height: 6px;
  border-radius: 3px;
  background: #e0e0e3;
  outline: none;
  cursor: pointer;
}
#hingeAngleSlider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(0, 0, 0, 0.08);
  cursor: pointer;
  transition: transform 0.1s ease;
}
#hingeAngleSlider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

.preset-buttons {
  display: flex;
  gap: 4px;
}
.preset-btn {
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: transparent;
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  color: var(--muted);
  transition: all 0.15s ease;
}
.preset-btn:hover, .preset-btn.active {
  background: #ffffff;
  color: var(--ink);
  border-color: rgba(0, 0, 0, 0.15);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.segmented-control {
  display: flex;
  background: #e9e9eb;
  padding: 2px;
  border-radius: 8px;
  gap: 2px;
}
.segmented-control .segment {
  padding: 4px 10px;
  border-radius: 6px;
  border: none;
  background: transparent;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.15s ease;
}
.segmented-control .segment.active {
  background: #ffffff;
  color: var(--ink);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.wallpaper-dots {
  display: flex;
  gap: 6px;
}
.wp-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid transparent;
  padding: 0;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.wp-dot:hover {
  transform: scale(1.18);
}
.wp-dot.active {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px #ffffff;
}

.sound-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: transparent;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.15s ease;
}
.sound-toggle-btn.active {
  background: rgba(0, 113, 227, 0.08);
  color: var(--accent);
  border-color: rgba(0, 113, 227, 0.3);
}

/* MacBook Container Layout */
.mac {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  container-type: inline-size;
  position: relative;
}

/* Display Lid Bezel */
.lid {
  position: relative;
  margin: 0 3.8cqw;
  aspect-ratio: 1.54;
  background: var(--lid-bezel);
  border-radius: 4.8cqw 4.8cqw 0 0;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12),
              0 -4px 20px rgba(0, 0, 0, 0.15);
}

/* Screen Wrapper */
.screen-wrapper {
  position: absolute;
  inset: 1.5cqw 1.5cqw 2.2cqw;
  background: #0d0e12;
  border-radius: 3.4cqw 3.4cqw 0 0;
  overflow: hidden;
}

/* Screen Anchored at Bottom (Hinge) */
.screen {
  position: absolute;
  inset: 0;
  border-radius: 3.4cqw 3.4cqw 0 0;
  overflow: hidden;
  transform-origin: 50% 100%;
  will-change: transform;
  background: #32435e;
  transition: box-shadow 0.2s ease;
}

/* Base Art Canvas */
.art {
  position: absolute;
  inset: 0;
}
.art svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Progressive multi-layer blur */
.art.blurred {
  opacity: 0;
  transform: scale(1.02);
}
.art.b1 {
  filter: blur(6px);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 30%, transparent 75%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 30%, transparent 75%);
}
.art.b2 {
  filter: blur(16px);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 15%, transparent 52%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 15%, transparent 52%);
}
.art.b3 {
  filter: blur(34px);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 6%, transparent 32%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 6%, transparent 32%);
}

/* Horizon Shade Layer */
.shade {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  background:
    radial-gradient(120% 60% at 0% 0%, rgba(0, 0, 0, 0.65), transparent 60%),
    radial-gradient(120% 60% at 100% 0%, rgba(0, 0, 0, 0.65), transparent 60%),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.45) 0%, transparent 50%);
}

/* Frost Overlay */
.frost-glass-overlay {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(160, 215, 255, 0.22) 0%, rgba(120, 190, 255, 0.05) 40%, transparent 80%);
  mix-blend-mode: overlay;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

/* Glint Bevel Layer */
.glint-layer {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.4) 0%, transparent 12%);
}

/* macOS Desktop UI overlay */
.macos-desktop-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  pointer-events: none;
  user-select: none;
}

/* Menu bar */
.macos-menubar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 2.2cqw;
  padding: 0 1.2cqw;
  background: rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95cqw;
  font-weight: 500;
}
.menubar-left {
  display: flex;
  align-items: center;
  gap: 1.1cqw;
}
.apple-logo {
  display: inline-flex;
  align-items: center;
  font-size: 1.1cqw;
}
.apple-logo svg {
  width: 1.1cqw;
  height: 1.1cqw;
}
.active-app {
  font-weight: 600;
}
.menu-item {
  opacity: 0.85;
}
.menubar-right {
  display: flex;
  align-items: center;
  gap: 0.8cqw;
}
.menubar-time {
  font-variant-numeric: tabular-nums;
}

/* Clock on desktop */
.clock {
  position: absolute;
  left: 0;
  right: 0;
  top: 15%;
  text-align: center;
  color: rgba(255, 255, 255, 0.92);
  letter-spacing: -0.04em;
  line-height: 1;
}
.clock small {
  display: block;
  font-size: 2.2cqw;
  letter-spacing: -0.01em;
  opacity: 0.85;
  margin-bottom: 0.5cqw;
}
.clock b {
  font-weight: 500;
  font-size: 12.5cqw;
}

/* Home Indicator */
.home-indicator {
  position: absolute;
  left: 50%;
  bottom: 2.8cqw;
  width: 18%;
  height: 0.9cqw;
  transform: translateX(-50%);
  border-radius: 1cqw;
  background: rgba(255, 255, 255, 0.7);
}

/* Apple Notch */
.notch {
  position: absolute;
  top: 1.5cqw;
  left: 50%;
  width: 22.06cqw;
  aspect-ratio: 64 / 9;
  transform: translateX(-50%);
  color: #121212;
  pointer-events: none;
}
.notch svg {
  display: block;
  width: 100%;
  height: 100%;
}
.camera-lens {
  position: absolute;
  top: 30%;
  left: 50%;
  width: 0.8cqw;
  height: 0.8cqw;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #1e3a5f, #050b14);
  box-shadow: inset 0 0 1px rgba(255, 255, 255, 0.2);
}

/* Aluminum Chassis Deck */
.deck {
  position: relative;
  height: 3.2cqw;
  background: linear-gradient(to bottom, #8a8a8d, #6e6e70);
  border-radius: 0 0 1.1cqw 1.1cqw;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25),
              0 14px 36px rgba(0, 0, 0, 0.16);
}
.lip {
  position: absolute;
  top: 0;
  left: 50%;
  width: 24.8cqw;
  height: 1.25cqw;
  transform: translateX(-50%);
  border-radius: 0 0 1.38cqw 1.38cqw;
  background: rgba(0, 0, 0, 0.38);
}

.caption {
  margin: 20px auto 0;
  max-width: 48ch;
  text-wrap: balance;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: -0.005em;
}

/* Interactive Apple-Style Settings Studio Section */
.settings-studio-section {
  margin: 64px 0;
}
.section-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--accent);
  background: rgba(0, 113, 227, 0.08);
  padding: 3px 10px;
  border-radius: 6px;
  margin-bottom: 8px;
}
.settings-studio-section h2 {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.025em;
  margin: 0 0 8px;
}
.section-lede {
  color: var(--muted);
  font-size: 15px;
  margin: 0 0 28px;
}

.settings-window-mockup {
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08), 0 2px 6px rgba(0, 0, 0, 0.04);
  overflow: hidden;
}

.window-titlebar {
  display: flex;
  align-items: center;
  height: 38px;
  padding: 0 14px;
  background: #f6f6f8;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.window-traffic-lights {
  display: flex;
  gap: 7px;
  width: 70px;
}
.light {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}
.light.close { background: #ff5f56; }
.light.minimize { background: #ffbd2e; }
.light.maximize { background: #27c93f; }
.window-title {
  flex: 1;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: #333333;
}
.window-spacer {
  width: 70px;
}

.window-body {
  display: grid;
  grid-template-columns: 200px 1fr;
  min-height: 420px;
}

.window-sidebar {
  background: #fbfbfd;
  border-right: 1px solid rgba(0, 0, 0, 0.06);
  padding: 16px 10px;
}
.sidebar-section {
  margin-bottom: 16px;
}
.sidebar-section-title {
  display: block;
  font-size: 10px;
  font-weight: 700;
  color: #8e8e93;
  padding: 0 8px 6px;
  letter-spacing: 0.04em;
}
.sidebar-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 7px;
  border: none;
  background: transparent;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  transition: background 0.12s ease;
}
.sidebar-item:hover {
  background: rgba(0, 0, 0, 0.04);
}
.sidebar-item.active {
  background: var(--accent);
  color: #ffffff;
}
.sidebar-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  font-size: 13px;
}

.window-detail {
  padding: 24px;
  background: #ffffff;
}
.tab-pane {
  display: none;
}
.tab-pane.active {
  display: block;
}

.pane-title {
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 4px;
  letter-spacing: -0.02em;
}
.pane-desc {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 20px;
}

.setting-group {
  margin-bottom: 20px;
  padding: 14px 16px;
  background: #f8f8fa;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.05);
}
.group-title {
  font-size: 11px;
  font-weight: 600;
  color: #8e8e93;
  letter-spacing: 0.03em;
  margin-bottom: 10px;
}

.style-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.web-style-card {
  padding: 12px;
  border-radius: 8px;
  background: #ffffff;
  border: 1.5px solid rgba(0, 0, 0, 0.08);
  text-align: center;
  cursor: pointer;
  transition: all 0.15s ease;
}
.web-style-card:hover {
  border-color: rgba(0, 113, 227, 0.4);
}
.web-style-card.active {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
  background: rgba(0, 113, 227, 0.02);
}
.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 24px;
  font-size: 18px;
  margin-bottom: 4px;
}
.card-name { font-size: 13px; font-weight: 600; }
.card-desc { font-size: 11px; color: var(--muted); }

.setting-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 0;
}
.setting-row:not(:last-child) {
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}
.row-label {
  font-size: 13px;
  width: 140px;
}
.mini-slider {
  flex: 1;
}
.row-value {
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  width: 38px;
  text-align: right;
}

.exit-row, .toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 6px 0;
}
.toggle-row:not(:last-child) {
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}
.subtext {
  margin: 2px 0 0;
  font-size: 12px;
  color: var(--muted);
}

/* Apple Toggle Switch */
.apple-toggle {
  appearance: none;
  -webkit-appearance: none;
  width: 38px;
  height: 22px;
  border-radius: 11px;
  background: #e4e4e6;
  position: relative;
  cursor: pointer;
  outline: none;
  transition: background 0.2s ease;
}
.apple-toggle:checked {
  background: var(--accent-mint);
}
.apple-toggle::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease;
}
.apple-toggle:checked::after {
  transform: translateX(16px);
}

/* Support Card Content */
.support-card-content, .about-pane-content {
  text-align: center;
  padding: 24px 16px;
}
.support-cup-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ff9500;
  margin-bottom: 8px;
}
.support-card-content h4 {
  font-size: 18px;
  margin: 0 0 8px;
}
.support-card-content p {
  color: var(--muted);
  font-size: 13px;
  max-width: 360px;
  margin: 0 auto 18px;
  line-height: 1.45;
}
.kofi-submit-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: 8px;
  background: #ff9500;
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.15s ease;
}
.kofi-submit-btn:hover {
  opacity: 0.9;
}

.about-icon {
  border-radius: 14px;
  margin-bottom: 8px;
}
.about-title {
  font-size: 18px;
  font-weight: 700;
  margin: 0;
}
.about-ver {
  font-size: 12px;
  color: var(--muted);
  display: block;
  margin-bottom: 4px;
}
.about-copy {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 14px;
}
.about-badges {
  display: flex;
  justify-content: center;
  gap: 8px;
}
.about-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 999px;
  background: #f0f0f2;
  color: var(--ink);
}

/* Feature Stack Cards */
.stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 56px;
}
.card {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
  border: 1px solid var(--line);
}
.card h2 {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 12px;
}
dl {
  margin: 0 -28px;
  padding: 0;
}
.row {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 20px;
  padding: 16px 28px;
  border-bottom: 1px solid var(--line);
}
.row:last-child {
  border-bottom: 0;
}
dt {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink);
}
dd {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}

/* Footer */
footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 13px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
footer a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease;
}
footer a:hover {
  color: var(--ink);
}
footer .links {
  display: flex;
  gap: 20px;
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .topbar .badge.os {
    display: none;
  }
  .topbar .brand .pill:not(.back-pill) span {
    display: none;
  }
  .topbar .brand .pill:not(.back-pill) {
    padding: 0 8px;
  }
  .topbar .presence-label {
    display: none;
  }
}

@media (max-width: 768px) {
  .topbar {
    padding: 0 14px;
    height: 56px;
  }
  .topbar-actions {
    display: none;
  }
  .topbar .brand .pill:not(.back-pill) {
    display: none;
  }
  .brand {
    gap: 8px;
  }
  .stage {
    padding: 76px 14px 60px;
  }
  h1 {
    font-size: clamp(26px, 5.5vw, 36px);
  }
  .lede {
    font-size: 16px;
  }
  .figure {
    width: 100%;
    max-width: 920px;
    margin: 0 auto 48px;
    transform: none;
  }
  .simulator-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 12px;
  }
  .sim-divider {
    display: none;
  }
  .sim-group {
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
  }
  .sim-group .segmented-control {
    overflow-x: auto;
    max-width: 100%;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .angle-scrubber-group {
    flex-direction: column;
    align-items: stretch;
  }
  .preset-buttons {
    width: 100%;
    display: flex;
    gap: 4px;
  }
  .preset-btn {
    flex: 1;
    text-align: center;
  }
  .window-body {
    grid-template-columns: 1fr;
  }
  .window-sidebar {
    display: flex;
    overflow-x: auto;
    border-right: none;
    border-bottom: 1px solid var(--line);
    padding: 8px;
    -webkit-overflow-scrolling: touch;
  }
  .sidebar-section {
    display: flex;
    gap: 4px;
    margin-bottom: 0;
  }
  .sidebar-section-title {
    display: none;
  }
  .sidebar-item {
    white-space: nowrap;
  }
  .window-detail {
    padding: 16px 12px;
  }
  .style-cards-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .setting-row {
    flex-wrap: wrap;
    gap: 8px;
  }
  .setting-row .row-label {
    width: 100%;
    font-size: 12px;
  }
  .setting-row .mini-slider {
    width: calc(100% - 50px);
    flex: none;
  }
  .setting-row .row-value {
    width: 40px;
  }
  .exit-row {
    flex-wrap: wrap;
    gap: 10px;
  }
  .exit-row label {
    width: 100%;
  }
  .row {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .card {
    padding: 24px 16px;
  }
  .specs-grid {
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 14px;
  }
  footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
}

@media (max-width: 420px) {
  .topbar {
    padding: 0 10px;
  }
  .brand {
    gap: 6px;
  }
  .brand-name {
    font-size: 13.5px;
  }
  .crumb-name {
    font-size: 13.5px;
  }
  .back-pill {
    padding: 0 8px;
    font-size: 11.5px;
  }
  .pill-kicker {
    font-size: 11.5px;
    padding: 4px 10px;
  }
  .purchase-row .button.primary {
    width: 100%;
    padding: 0 12px;
    font-size: 13px;
    justify-content: center;
  }
  .purchase-row .button.primary .amount {
    font-size: 11px;
  }
  .brew-box {
    max-width: 100%;
    padding: 0 8px 0 10px;
  }
  .brew-box code {
    font-size: 11.5px;
  }
}

@media (max-width: 360px) {
  .purchase-row .button.primary .amount {
    display: none;
  }
}
