@font-face {
  font-family: "Rubik";
  src: url("/fonts/rubik-variable.ttf") format("truetype");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --font: "Rubik", "Trebuchet MS", "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", Consolas, "Liberation Mono", monospace;
  --bg-0: #e4f4ee;
  --bg-1: #bfe9cf;
  --tri: rgba(29, 89, 107, 0.055);
  --card-0: #ffffff;
  --card-1: #eef8f3;
  --card: linear-gradient(180deg, var(--card-0), var(--card-1));
  --text: #10323d;
  --text-2: rgba(16, 50, 61, 0.8);
  --text-3: rgba(16, 50, 61, 0.66);
  --divider: rgba(16, 50, 61, 0.1);
  --pill: rgba(16, 50, 61, 0.07);
  --pill-hover: rgba(16, 50, 61, 0.12);
  --hi: rgba(255, 255, 255, 0.9);
  --lo: rgba(16, 50, 61, 0.18);
  --accent-0: #86ec9f;
  --accent-1: #2fb955;
  --accent: linear-gradient(180deg, var(--accent-0), var(--accent-1));
  --on-accent: #06301b;
  --accent-text: #1d8a44;
  --discord-0: #7b8cff;
  --discord-1: #4f5fe6;
  --bad-bg: rgba(211, 63, 63, 0.12);
  --bad-text: #8b1f1f;
  --warn-bg: rgba(242, 183, 5, 0.18);
  --warn-text: #6e5200;
  --screen: #0d1620;
  --shadow-1: 0 1px 1px rgba(16, 50, 61, 0.16), 0 1px 3px rgba(16, 50, 61, 0.12);
  --shadow-2: 0 2px 2px rgba(16, 50, 61, 0.14), 0 4px 10px rgba(16, 50, 61, 0.1);
  --shadow-3: 0 4px 5px rgba(16, 50, 61, 0.16), 0 10px 24px rgba(16, 50, 61, 0.12);
  --inset-1: inset 0 1px 0 var(--hi), inset 0 -1px 2px var(--lo);
  --inset-2: inset 0 2px 1px var(--hi), inset 0 -2px 3px var(--lo);
  --r-panel: 26px;
  --r-group: 16px;
  --ease-pop: cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg-0: #14323c;
    --bg-1: #0a1a20;
    --tri: rgba(146, 235, 174, 0.05);
    --card-0: #1c4350;
    --card-1: #143540;
    --text: #f1fbf6;
    --text-2: rgba(241, 251, 246, 0.86);
    --text-3: rgba(241, 251, 246, 0.7);
    --divider: rgba(241, 251, 246, 0.1);
    --pill: rgba(241, 251, 246, 0.08);
    --pill-hover: rgba(241, 251, 246, 0.14);
    --hi: rgba(255, 255, 255, 0.14);
    --lo: rgba(3, 14, 18, 0.55);
    --accent-0: #8ff0a8;
    --accent-1: #34c45e;
    --on-accent: #06301b;
    --accent-text: #7fe9a0;
    --bad-bg: rgba(255, 110, 110, 0.14);
    --bad-text: #ffb6b6;
    --warn-bg: rgba(242, 183, 5, 0.16);
    --warn-text: #ffd977;
    --shadow-1: 0 1px 1px rgba(0, 0, 0, 0.3), 0 1px 3px rgba(0, 0, 0, 0.25);
    --shadow-2: 0 2px 2px rgba(0, 0, 0, 0.3), 0 4px 10px rgba(0, 0, 0, 0.18);
    --shadow-3: 0 4px 5px rgba(0, 0, 0, 0.32), 0 10px 24px rgba(0, 0, 0, 0.2);
  }
}

* { box-sizing: border-box; }

html { min-height: 100%; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg-1);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

#backdrop { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.site-shell { position: relative; z-index: 1; max-width: 1400px; margin: 0 auto; padding: 8px 10px 10px; }

h1, h2, h3, h4 { margin: 0; color: var(--text); font-weight: 800; line-height: 1.1; letter-spacing: -0.03em; }
p { margin: 0; }
a { color: var(--accent-text); font-weight: 600; text-decoration: none; }
img { max-width: 100%; height: auto; }
[hidden] { display: none !important; }
code { font-family: var(--mono); font-size: 0.85em; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 1.15em; height: 1.15em; flex: 0 0 auto; fill: currentColor; }

.surface, .panel {
  position: relative;
  color: var(--text);
  background: var(--card);
  border-radius: var(--r-panel);
  box-shadow: var(--shadow-2);
  min-width: 0;
}
.surface::after, .panel::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: var(--inset-2);
  pointer-events: none;
  z-index: 2;
}
.panel { padding: 1.4rem 1.6rem 1.5rem; }
.panel-teal { background: linear-gradient(180deg, color-mix(in srgb, var(--card-0) 86%, var(--accent-1)), var(--card-1)); }
.surface-raised { box-shadow: var(--shadow-3); }

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 46px;
  padding: 0.7rem 1.15rem;
  border: 0;
  border-radius: var(--r-group);
  font: 700 0.95rem/1 var(--font);
  text-decoration: none;
  cursor: pointer;
  box-shadow: var(--shadow-2);
  transition: transform 0.16s var(--ease-pop), filter 0.16s ease;
  white-space: nowrap;
}
.btn::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: var(--inset-2); pointer-events: none; }
.btn:hover { transform: translateY(-1px); filter: brightness(1.04); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent-1) 55%, transparent); outline-offset: 3px; }
.btn-primary { color: var(--on-accent); background: var(--accent); }
.btn-secondary { color: var(--text); background: var(--card); }
.btn-discord { color: #ffffff; background: linear-gradient(180deg, var(--discord-0), var(--discord-1)); }
.btn-compact { min-height: 40px; padding: 0.55rem 0.9rem; border-radius: 13px; font-size: 0.88rem; }
.btn-block { width: 100%; }

.topbar {
  position: sticky;
  top: 8px;
  z-index: 50;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  min-height: 66px;
  padding: 8px 12px 8px 16px;
  border-radius: 20px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; width: fit-content; font-weight: 800; font-size: 1.08rem; letter-spacing: -0.02em; color: var(--text); }
.brand img { width: 32px; height: 38px; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.25)); }
.nav { display: flex; align-items: center; gap: 2px; margin-left: 4px; padding-left: 18px; border-left: 1px solid var(--divider); }
.pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 12px;
  border: 0;
  border-radius: 10px;
  color: var(--text-2);
  background: transparent;
  font: 600 0.92rem/1 var(--font);
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
}
.pill::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 3px;
  height: 3px;
  border-radius: 3px;
  background: var(--accent);
  opacity: 0;
  transform: scaleX(0.4);
  transition: opacity 0.18s ease, transform 0.22s var(--ease-pop);
}
.nav .pill .icon { display: none; }
.pill .icon { color: var(--text-3); }
.pill:hover { color: var(--text); background: var(--pill); }
.pill.is-active { color: var(--text); }
.pill.is-active::after { opacity: 1; transform: none; }
.pill.is-active .icon { color: var(--accent-text); }
.pill:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent-1) 50%, transparent); outline-offset: 2px; }
.top-actions { display: flex; justify-content: flex-end; align-items: center; gap: 8px; }
.menu-btn, .mobile-nav { display: none; }

.page { display: grid; gap: clamp(52px, 7vw, 92px); padding: 14px 0 0; }
.page > [id] { scroll-margin-top: 92px; }
.page.prose { gap: 16px; max-width: 920px; margin: 0 auto; width: 100%; }

.section { display: grid; gap: 22px; }
.section-head { display: flex; align-items: flex-start; gap: 14px; max-width: 780px; padding: 0 6px; }
.section-head.centered { flex-direction: column; align-items: center; margin: 0 auto; text-align: center; }
.section-head h2 { margin-top: 3px; font-size: clamp(1.85rem, 3.4vw, 2.9rem); line-height: 1.06; letter-spacing: -0.04em; }
.section-head p { margin-top: 8px; color: var(--text-2); font-size: 1.02rem; line-height: 1.55; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--text-3); font-size: 0.74rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; }
.head-icon { display: grid; place-items: center; flex: 0 0 48px; width: 48px; height: 48px; border-radius: 14px; background: var(--pill); box-shadow: var(--inset-1); }
.head-icon img { width: 30px; height: 30px; }
.head-icon .icon { width: 24px; height: 24px; color: var(--accent-text); }

.tour { display: grid; gap: 26px; padding: clamp(24px, 4vw, 44px) clamp(18px, 3vw, 40px) clamp(20px, 3vw, 36px); }
.section-panel { display: grid; gap: 22px; padding: clamp(22px, 3.5vw, 36px); }
.tile { position: relative; border-radius: 18px; background: var(--pill); box-shadow: var(--inset-1); }
.grid-2 > .tile { padding: 20px 22px 22px; }
.hero { display: grid; grid-template-columns: minmax(320px, 0.92fr) minmax(440px, 1.08fr); min-height: 560px; overflow: hidden; border-radius: 30px; }
.hero-copy { position: relative; z-index: 2; display: flex; flex-direction: column; justify-content: center; gap: 22px; padding: clamp(30px, 5vw, 64px); }
.hero h1 { max-width: 620px; font-size: clamp(2.5rem, 4.1vw, 4.2rem); line-height: 0.98; letter-spacing: -0.05em; }
.hero-lead { max-width: 560px; color: var(--text-2); font-size: clamp(1rem, 1.35vw, 1.12rem); line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.hero-art { position: relative; min-height: 520px; overflow: hidden; background: linear-gradient(135deg, #1d596b 0%, #2a9d7a 48%, #92ebae 100%); }
.hero-art::before {
  content: "";
  position: absolute;
  inset: 0 -110px;
  background: repeating-linear-gradient(112deg, rgba(255, 255, 255, 0.1) 0 36px, transparent 36px 96px);
  will-change: transform;
  animation: art-drift 9s linear infinite;
}
.hero-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--card-1) 0%, transparent 18%), linear-gradient(0deg, rgba(0, 0, 0, 0.22), transparent 36%);
  pointer-events: none;
}
@keyframes art-drift { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-103.54px, 0, 0); } }

.device { position: relative; aspect-ratio: 924 / 1080; }
.phone-mockup { position: relative; aspect-ratio: 442 / 888; }
.hero .hero-phone {
  position: absolute;
  z-index: 2;
  left: 5%;
  top: 13%;
  width: 34%;
  transform: rotate(-7deg);
  filter: drop-shadow(0 16px 18px rgba(0, 0, 0, 0.35));
}
.hero .device {
  position: absolute;
  z-index: 1;
  top: 16%;
  left: 36%;
  width: 62%;
  transform: rotate(7deg);
  filter: drop-shadow(0 14px 18px rgba(0, 0, 0, 0.35));
  will-change: transform;
}
.device-frame { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: 3; pointer-events: none; }
.device-screen { position: absolute; z-index: 1; overflow: hidden; background: var(--screen); }
.device-top { left: 9.416%; top: 2.315%; width: 81.061%; height: 38.981%; }
.device-bottom { left: 27.814%; top: 52.037%; width: 44.264%; height: 32.963%; }
.device-slide { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; }
.hero .device-slide { animation: device-cycle 20s linear infinite; }
.hero .device-slide:nth-child(2) { animation-delay: 4s; }
.hero .device-slide:nth-child(3) { animation-delay: 8s; }
.hero .device-slide:nth-child(4) { animation-delay: 12s; }
.hero .device-slide:nth-child(5) { animation-delay: 16s; }
@keyframes device-cycle {
  0% { opacity: 0; }
  3% { opacity: 1; }
  20% { opacity: 1; }
  23% { opacity: 0; }
  100% { opacity: 0; }
}

.release { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px 24px; align-items: center; padding: 22px 28px; }
.release-title { font-size: 1.15rem; letter-spacing: -0.02em; }
.release-meta { margin: 4px 0 16px; color: var(--text-3); font-size: 0.88rem; }
.release-facts { display: flex; flex-wrap: wrap; gap: 12px 32px; margin: 0; }
.release-facts div { display: grid; gap: 3px; min-width: 0; }
.release-facts dt { color: var(--text-3); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; }
.release-facts dd { margin: 0; font-weight: 700; font-size: 1.05rem; overflow-wrap: anywhere; }
.release-sha { font-family: var(--mono); font-size: 0.92rem; font-weight: 600; }
.release-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 9px; }
.release-note { grid-column: 1 / -1; padding-top: 14px; border-top: 1px solid var(--divider); color: var(--text-3); font-size: 0.9rem; line-height: 1.55; }
.release-note strong { color: var(--text-2); }

.tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; width: 100%; padding: 4px 0; }
.tab {
  --tab-color: var(--accent-1);
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 46px;
  padding: 7px 18px 7px 12px;
  border: 3px solid var(--tab-color);
  border-radius: 999px;
  color: var(--text-2);
  background: var(--card);
  font: 700 0.92rem/1 var(--font);
  white-space: nowrap;
  cursor: pointer;
  box-shadow: var(--shadow-1);
  transition: transform 0.18s var(--ease-pop), box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
}
.tab[data-tab-button="home"] { --tab-color: #3ad06f; }
.tab[data-tab-button="messages"] { --tab-color: #4f9dff; }
.tab[data-tab-button="friends"] { --tab-color: #ec6fe0; }
.tab[data-tab-button="activities"] { --tab-color: #f26b6b; }
.tab[data-tab-button="settings"] { --tab-color: #9fb0b8; }
.tab[data-tab-button="piip"] { --tab-color: #5cd6c9; }
.tab img { width: 24px; height: 24px; object-fit: contain; }
.tab:hover { color: var(--text); transform: translateY(-1px); box-shadow: var(--shadow-2); }
.tab:active { transform: translateY(1px); }
.tab.is-active {
  color: var(--text);
  background: linear-gradient(180deg, color-mix(in srgb, var(--tab-color) 26%, var(--card-0)), color-mix(in srgb, var(--tab-color) 14%, var(--card-1)));
  box-shadow: var(--shadow-2), var(--inset-1);
}
.tab:focus-visible { outline: 3px solid color-mix(in srgb, var(--tab-color) 55%, transparent); outline-offset: 3px; }
[hidden] { display: none !important; }
.device-picker { display: flex; justify-content: center; gap: 4px; width: fit-content; margin: 0 auto 20px; padding: 5px; border: 1px solid var(--divider); border-radius: 999px; background: var(--card-1); }
.device-choice { min-height: 42px; padding: 8px 24px; border: 0; border-radius: 999px; font: 700 0.92rem/1 var(--font); color: var(--text-2); background: transparent; cursor: pointer; }
.device-choice[aria-pressed="true"] { color: var(--text); background: var(--card-0); box-shadow: var(--shadow-1); }
.device-choice:focus-visible { outline: 3px solid var(--accent-1); outline-offset: 3px; }

.stage { display: grid; grid-template-columns: minmax(400px, 1.05fr) minmax(300px, 0.8fr); gap: clamp(20px, 3vw, 52px); align-items: center; padding: 6px 0 0; }
.stage .tour-phone { width: min(72%, 300px); margin: 22px auto; filter: drop-shadow(0 16px 22px rgba(0, 0, 0, 0.22)); }
.stage .device { width: min(100%, 600px); margin: 0 auto; filter: drop-shadow(0 16px 22px rgba(0, 0, 0, 0.32)) drop-shadow(0 3px 5px rgba(0, 0, 0, 0.22)); }
.stage .device-slide.is-active { opacity: 1; animation: screen-in 0.55s var(--ease-pop) both; }
.stage .device-slide.is-leaving { animation: screen-out 0.4s ease both; }
.stage[data-direction="back"] .device-slide.is-active { animation-name: screen-in-back; }
.stage[data-direction="back"] .device-slide.is-leaving { animation-name: screen-out-back; }
.stage .device.is-switching, .stage .phone-mockup.is-switching { animation: device-nudge 0.55s var(--ease-pop); }
@keyframes screen-in { from { opacity: 0; transform: translateX(24%) scale(0.97); } 55% { opacity: 1; } to { opacity: 1; transform: none; } }
@keyframes screen-out { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateX(-24%) scale(0.97); } }
@keyframes screen-in-back { from { opacity: 0; transform: translateX(-24%) scale(0.97); } 55% { opacity: 1; } to { opacity: 1; transform: none; } }
@keyframes screen-out-back { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateX(24%) scale(0.97); } }
@keyframes device-nudge { 0% { transform: none; } 35% { transform: translateY(4px) scale(0.985) rotate(-0.5deg); } 100% { transform: none; } }
.stories { display: grid; min-width: 0; }
.story-set { display: grid; gap: 30px; animation: story-in 0.4s var(--ease-pop) both; }
.story-set[data-story-set="home"] { --story-accent: #3ad06f; }
.story-set[data-story-set="messages"] { --story-accent: #4f9dff; }
.story-set[data-story-set="friends"] { --story-accent: #ec6fe0; }
.story-set[data-story-set="activities"] { --story-accent: #f26b6b; }
.story-set[data-story-set="settings"] { --story-accent: #9fb0b8; }
.story-set[data-story-set="piip"] { --story-accent: #5cd6c9; }
.story { position: relative; display: grid; gap: 10px; padding: 2px 0 2px 22px; }
.story::before { content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 4px; border-radius: 4px; background: var(--story-accent); }
.story-head { display: flex; align-items: center; gap: 12px; }
.story-icon { display: grid; place-items: center; flex: 0 0 40px; width: 40px; height: 40px; border-radius: 12px; background: var(--card); box-shadow: var(--shadow-1), var(--inset-1); }
.story-icon img { width: 22px; height: 22px; object-fit: contain; }
.story h3 { font-size: clamp(1.3rem, 2vw, 1.75rem); letter-spacing: -0.035em; line-height: 1.1; }
.story p { color: var(--text-2); font-size: 0.95rem; line-height: 1.6; }
@keyframes story-in { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.step { display: grid; gap: 12px; align-content: start; padding: 20px 20px 22px; }
.step-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.step-num { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--accent); color: var(--on-accent); font-weight: 800; box-shadow: var(--shadow-1), var(--inset-1); }
.step-top img { width: 52px; height: 52px; object-fit: contain; }
.step h3 { font-size: 1.2rem; letter-spacing: -0.02em; }
.step p { color: var(--text-2); font-size: 0.96rem; line-height: 1.6; }

.callout {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 20px;
  border-radius: var(--r-group);
  background: var(--pill);
  box-shadow: var(--inset-1);
  color: var(--text-2);
  font-weight: 500;
  line-height: 1.55;
}
.callout .icon { width: 22px; height: 22px; margin-top: 2px; color: var(--accent-text); }
.callout-warn { background: var(--warn-bg); color: var(--warn-text); }
.callout-bad { background: var(--bad-bg); color: var(--bad-text); }
.callout p { margin: 0; }


.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 14px; }
.panel-head { margin-bottom: 14px; }
.panel-head h2 { font-size: 1.5rem; letter-spacing: -0.03em; }
.panel-head h3 { font-size: 1.25rem; letter-spacing: -0.02em; }
.panel-sub { margin-top: 5px; color: var(--text-2); font-weight: 500; font-size: 0.98rem; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 12px 18px; margin: 0; }
.facts dt { padding-top: 2px; color: var(--accent-text); font-weight: 700; font-size: 0.9rem; }
.facts dd { margin: 0; min-width: 0; overflow-wrap: anywhere; color: var(--text-2); font-weight: 500; line-height: 1.55; }
.play-icons { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 12px; }
.play-icon { display: grid; justify-items: center; gap: 8px; padding: 16px 8px 14px; border-radius: var(--r-group); background: var(--pill); box-shadow: var(--inset-1); color: var(--text-2); font-size: 0.86rem; font-weight: 700; text-align: center; }
.play-icon img { width: 56px; height: 56px; object-fit: contain; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px; align-items: center; padding: 28px 32px; }
.split p { color: var(--text-2); line-height: 1.6; }
.split-art { display: grid; place-items: center; width: 220px; height: 220px; border-radius: 30px; background: radial-gradient(circle at 50% 38%, rgba(146, 235, 174, 0.5), transparent 70%), var(--pill); box-shadow: var(--inset-1); overflow: hidden; }
.split-art img { width: 190px; height: 190px; object-fit: contain; filter: drop-shadow(0 10px 14px rgba(0, 0, 0, 0.25)); }
.split-art img.portrait { border-radius: 22px; box-shadow: var(--shadow-2); }
.split-art.small { width: 150px; height: 150px; }
.split-art.small img { width: 96px; height: 96px; }
.split-reverse { grid-template-columns: auto minmax(0, 1fr); }
.split-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 16px; }

.cta { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 18px 22px; align-items: center; padding: clamp(24px, 4vw, 38px); }
.cta h2 { font-size: clamp(1.6rem, 3vw, 2.35rem); letter-spacing: -0.04em; text-wrap: balance; }
.cta p { margin-top: 6px; color: var(--text-2); }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 9px; }

.footer { display: grid; grid-template-columns: minmax(260px, 1fr) auto; gap: 26px 32px; align-items: start; padding: 22px 26px; }
.footer-brand { display: flex; gap: 12px; align-items: center; }
.footer-brand img { width: 34px; height: 40px; }
.footer-brand strong { display: block; font-size: 0.95rem; }
.footer-brand span { color: var(--text-2); font-size: 0.85rem; }
.footer-links { display: grid; grid-template-columns: repeat(2, minmax(140px, 1fr)); gap: 28px; }
.footer-links div { display: grid; gap: 8px; align-content: start; }
.footer-label { margin-bottom: 2px; color: var(--text-3); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.footer-links a { display: flex; align-items: center; gap: 7px; color: var(--text-2); font-size: 0.88rem; font-weight: 600; }
.footer-links a .icon { color: var(--text-3); }
.footer-links a:hover { color: var(--text); }
.credits { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 12px 28px; padding-top: 16px; border-top: 1px solid var(--divider); }
.credit strong { display: block; font-size: 0.9rem; }
.credit span { color: var(--text-3); font-size: 0.8rem; }
.footer-copy { grid-column: 1 / -1; padding-top: 12px; border-top: 1px solid var(--divider); color: var(--text-3); font-size: 0.78rem; line-height: 1.5; }
.footer-note { margin: calc(18px - clamp(52px, 7vw, 92px)) 0 6px; text-align: center; color: var(--text-3); font-size: 0.76rem; font-weight: 600; }

.prose .panel { padding: 26px 30px 28px; }
.prose h1 { font-size: clamp(2rem, 4vw, 2.8rem); letter-spacing: -0.045em; }
.prose h2 { padding-bottom: 10px; margin-bottom: 14px; border-bottom: 1px solid var(--divider); font-size: 1.45rem; letter-spacing: -0.03em; }
.prose h3 { margin: 18px 0 6px; font-size: 0.98rem; color: var(--accent-text); letter-spacing: 0; }
.prose p, .prose li { color: var(--text-2); font-weight: 400; line-height: 1.7; }
.prose p { margin: 0 0 0.85rem; }
.prose ul, .prose ol { margin: 0 0 0.85rem; padding-left: 1.3rem; }
.prose li { margin-bottom: 0.35rem; }
.prose li::marker { color: var(--accent-text); font-weight: 700; }
.prose strong { color: var(--text); }
.prose a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose p code, .prose li code, .prose dd code { padding: 0.1em 0.4em; border-radius: 8px; background: var(--pill); font-size: 0.86em; overflow-wrap: anywhere; }
.prose .panel > :last-child, .prose .callout { margin-bottom: 0; }
.prose .callout { margin-top: 6px; }
.lead-copy { font-size: 1.02rem; }
.site-foot { padding: 6px 0 4px; text-align: center; color: var(--text-3); font-size: 0.85rem; font-weight: 500; }
.site-foot a { font-weight: 700; }
.narrow { max-width: 720px; width: 100%; margin: 0 auto; }

@media (max-width: 1080px) {
  .hero { grid-template-columns: minmax(300px, 0.95fr) minmax(380px, 1.05fr); }
  .stage { grid-template-columns: minmax(360px, 1fr) minmax(280px, 0.8fr); }
}

@media (max-width: 1000px) {
  .topbar { grid-template-columns: 1fr auto; }
  .nav, .top-actions { display: none; }
  .menu-btn { display: grid; place-items: center; width: 42px; height: 42px; padding: 0; border: 0; border-radius: 999px; color: var(--text); background: var(--pill); box-shadow: var(--inset-1); cursor: pointer; }
  .menu-btn .icon { width: 22px; height: 22px; }
  .mobile-nav { position: absolute; top: calc(100% + 8px); right: 0; left: 0; padding: 8px; border-radius: 20px; background: var(--card); box-shadow: var(--shadow-3), var(--inset-2); }
  .mobile-nav.is-open { display: grid; gap: 3px; }
  .mobile-nav .pill { justify-content: flex-start; min-height: 44px; padding: 10px 14px 10px 16px; border-radius: 12px; }
  .mobile-nav .pill::after { left: 5px; right: auto; top: 10px; bottom: 10px; width: 3px; height: auto; transform: scaleY(0.4); }
  .mobile-nav .pill.is-active { background: var(--pill); }
  .mobile-nav .pill.is-active::after { transform: none; }
  .mobile-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 6px; padding-top: 10px; border-top: 1px solid var(--divider); }
}

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-art { min-height: 420px; }
  .hero-art::after { background: linear-gradient(180deg, var(--card-1) 0%, transparent 16%), linear-gradient(0deg, rgba(0, 0, 0, 0.22), transparent 36%); }
  .hero .device { top: 10%; left: 42%; width: auto; height: 88%; }
  .hero .hero-phone { top: 8%; left: 13%; width: auto; height: 88%; }
  .release { grid-template-columns: 1fr; }
  .release-actions { justify-content: flex-start; }
  .stage { grid-template-columns: 1fr; }
  .stage .device { width: min(100%, 520px); }
  .split, .split-reverse { grid-template-columns: 1fr; }
  .split-art { margin: 0 auto; }
  .split-reverse .split-art { order: -1; }
  .cta { grid-template-columns: auto minmax(0, 1fr); }
  .cta-actions { grid-column: 2; justify-content: flex-start; }
  .footer { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .story h3 { font-size: 1.35rem; }
  html { font-size: 15px; }
  .site-shell { padding: 6px 6px 8px; }
  .topbar { min-height: 60px; padding: 6px 8px 6px 12px; border-radius: 18px; gap: 10px; }
  .page { padding-top: 10px; }
  .hero { border-radius: 24px; }
  .hero-copy { gap: 18px; padding: 26px 22px 28px; }
  .hero h1 { font-size: clamp(2.3rem, 11.5vw, 3.2rem); }
  .hero-art { min-height: 340px; }
  .hero .device { top: 17%; left: 36%; height: 78%; }
  .hero .hero-phone { top: 12%; left: 7%; height: 82%; }
  .hero-actions, .release-actions, .split-actions, .cta-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn, .release-actions .btn, .split-actions .btn, .cta-actions .btn { width: 100%; white-space: normal; }
  .panel { padding: 1.15rem 1.15rem 1.25rem; border-radius: 22px; }
  .release { padding: 20px 18px; }
  .release-facts { gap: 12px 22px; }
  .section-head { padding: 0 4px; }
  .tabs { gap: 8px; }
  .tab { min-height: 44px; padding: 6px 10px; border-width: 3px; font-size: 0.84rem; }
  .tab span { display: none; }
  .tab.is-active { padding-right: 15px; }
  .tab.is-active span { display: inline; }
  .facts { grid-template-columns: 1fr; gap: 4px 0; }
  .facts dd { margin-bottom: 10px; }
  .split { padding: 22px 20px; }
  .split-art { width: 180px; height: 180px; }
  .split-art img { width: 140px; height: 140px; }
  .cta { display: flex; flex-direction: column; align-items: flex-start; padding: 24px 20px; }
  .cta-actions { width: 100%; }
  .footer { padding: 20px 18px; }
  .footer-links { grid-template-columns: 1fr 1fr; gap: 20px; }
  .prose .panel { padding: 20px 18px 22px; }
  .prose h1 { font-size: 1.9rem; }
  .prose h2 { font-size: 1.25rem; }
}

@keyframes pop-in {
  from { opacity: 0; transform: translateY(14px) scale(0.99); }
  60% { opacity: 1; }
  to { opacity: 1; transform: none; }
}
.topbar { animation: pop-in 0.4s var(--ease-pop) both; }
.page > * { animation: pop-in 0.45s var(--ease-pop) both; }
.page > :nth-child(2) { animation-delay: 0.06s; }
.page > :nth-child(3) { animation-delay: 0.12s; }
.page > :nth-child(n + 4) { animation-delay: 0.18s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001s !important; animation-iteration-count: 1 !important; transition-duration: 0.001s !important; }
  html { scroll-behavior: auto; }
  .hero-art::before { animation: none; }
  .hero .device-slide { animation: none; }
  .hero .device-screen .device-slide:first-child { opacity: 1; }
  .hero .phone-mockup .device-slide:first-child { opacity: 1; }
  .story-set { animation: none; }
}
