@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/jost-latin-variable.woff2") format("woff2");
}

:root {
  color-scheme: light;
  --background: #eceff4;
  --surface: #ffffff;
  --raised: #e5e9f0;
  --panel: #d8dee9;
  --border: #cbd3df;
  --text: #2e3440;
  --muted: #596273;
  --subtle: #7a8494;
  --accent: #5e81ac;
  --accent-strong: #4c6f9b;
  --accent-soft: #d8e5ee;
  --accent-text: #ffffff;
  --success: #198b66;
  --danger: #c83e59;
  --ink: #0c1018;
  --ink-surface: #121722;
  --ink-raised: #1a202c;
  --ink-border: #303846;
  --ink-text: #f7f9fc;
  --ink-muted: #aeb7c7;
  --tour-background: #d8dee9;
  --tour-surface: #ffffff;
  --tour-border: #b8c2d0;
  --tour-text: #2e3440;
  --tour-muted: #596273;
  --tour-accent: #4c6f9b;
  --shadow: 0 28px 80px rgba(46, 52, 64, 0.17);
  --phone-shadow: 0 36px 90px rgba(6, 9, 15, 0.35);
  --phone-ground-shadow: rgba(46, 52, 64, 0.26);
  --phone-bezel: #596273;
  --device-metal-highlight: #aab4c1;
  --device-metal-mid: #596577;
  --device-metal-deep: #252c37;
  --device-glass-highlight: rgba(255, 255, 255, 0.2);
  --radius-lg: 30px;
  --radius-md: 18px;
  --page-width: 1180px;
  --font-sans: "Jost", "Avenir Next", Avenir,
    -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  /* Apple's iPhone 16 Pro framebuffer mask is 1206 x 2622. */
  --phone-ratio: 1206 / 2622;
  --phone-corner-radius: 15.44% / 7.10%;
  --wordmark-filter: brightness(0.67) saturate(1.08);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    color-scheme: dark;
    --wordmark-filter: none;
    --background: #080a10;
    --surface: #11141b;
    --raised: #171b24;
    --panel: #1c222d;
    --border: #2a313d;
    --text: #f5f7fa;
    --muted: #a8b0bd;
    --subtle: #818a99;
    --accent: #88aeca;
    --accent-strong: #a9c9dc;
    --accent-soft: #172633;
    --accent-text: #18202b;
    --success: #70e2b2;
    --danger: #f07186;
    --shadow: 0 30px 90px rgba(0, 0, 0, 0.36);
    --tour-background: #0c1018;
    --tour-surface: #121722;
    --tour-border: #303846;
    --tour-text: #f7f9fc;
    --tour-muted: #aeb7c7;
    --tour-accent: #9ec3da;
    --phone-bezel: #353d4a;
    --phone-ground-shadow: rgba(0, 0, 0, 0.72);
    --device-metal-highlight: #798596;
    --device-metal-mid: #3f4958;
    --device-metal-deep: #171c25;
    --device-glass-highlight: rgba(255, 255, 255, 0.11);
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --wordmark-filter: none;
  --background: #080a10;
  --surface: #11141b;
  --raised: #171b24;
  --panel: #1c222d;
  --border: #2a313d;
  --text: #f5f7fa;
  --muted: #a8b0bd;
  --subtle: #818a99;
  --accent: #88aeca;
  --accent-strong: #a9c9dc;
  --accent-soft: #172633;
  --accent-text: #18202b;
  --success: #70e2b2;
  --danger: #f07186;
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.36);
  --tour-background: #0c1018;
  --tour-surface: #121722;
  --tour-border: #303846;
  --tour-text: #f7f9fc;
  --tour-muted: #aeb7c7;
  --tour-accent: #9ec3da;
  --phone-bezel: #353d4a;
  --phone-ground-shadow: rgba(0, 0, 0, 0.72);
  --device-metal-highlight: #798596;
  --device-metal-mid: #3f4958;
  --device-metal-deep: #171c25;
  --device-glass-highlight: rgba(255, 255, 255, 0.11);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100dvh;
  overflow-x: hidden;
  background: var(--background);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

button,
input,
textarea,
select {
  font: inherit;
}

a,
button {
  -webkit-tap-highlight-color: color-mix(in srgb, var(--accent) 18%, transparent);
  touch-action: manipulation;
}

a {
  color: var(--accent-strong);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

a:hover {
  color: var(--accent);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

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

figure {
  margin: 0;
}

.theme-shot {
  display: block;
  width: 100%;
  height: 100%;
}

h1,
h2,
h3,
p {
  text-wrap: pretty;
}

h1,
h2,
h3 {
  margin-top: 0;
  line-height: 1.04;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

[id] {
  scroll-margin-top: 94px;
}

.shell {
  width: min(var(--page-width), calc(100% - 48px));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--text);
  color: var(--background);
  font-weight: 760;
  text-decoration: none;
  transform: translateY(-160%);
}

.skip-link:focus {
  color: var(--background);
  transform: translateY(0);
}

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  border-bottom: 1px solid color-mix(in srgb, var(--border) 78%, transparent);
  background: color-mix(in srgb, var(--background) 86%, transparent);
  backdrop-filter: blur(20px) saturate(125%);
  -webkit-backdrop-filter: blur(20px) saturate(125%);
}

.site-nav {
  display: flex;
  min-width: 0;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-link {
  flex: 0 0 auto;
  text-decoration: none;
}

.wordmark {
  display: flex;
  width: 150px;
  height: 52px;
  align-items: center;
}

.wordmark img {
  width: 150px;
  height: auto;
  filter: var(--wordmark-filter);
}

.nav-links {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  padding: 9px 11px;
  border-radius: 12px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 690;
  text-decoration: none;
  transition: background-color 160ms ease, color 160ms ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  background: var(--raised);
  color: var(--text);
}

.theme-control {
  position: relative;
  flex: 0 0 44px;
  margin-left: 12px;
}

.theme-toggle {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease;
}

.theme-toggle:hover,
.theme-toggle.is-suggested {
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.theme-toggle:active {
  transform: scale(0.96);
}

.theme-toggle-icon {
  width: 21px;
  height: 21px;
  background: currentColor;
  -webkit-mask: url('/assets/icons/moon.svg') center / contain no-repeat;
  mask: url('/assets/icons/moon.svg') center / contain no-repeat;
}

[data-theme="dark"] .theme-toggle-icon {
  -webkit-mask-image: url('/assets/icons/sun.svg');
  mask-image: url('/assets/icons/sun.svg');
}

.theme-nudge {
  position: absolute;
  top: calc(100% + 15px);
  right: 0;
  width: max-content;
  padding: 9px 13px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 8px 24px color-mix(in srgb, var(--text) 10%, transparent);
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.4;
  pointer-events: none;
  animation: theme-nudge-in 220ms ease-out both;
}

.theme-nudge::before {
  content: '';
  position: absolute;
  top: -5px;
  right: 17px;
  width: 8px;
  height: 8px;
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
  background: var(--surface);
  transform: rotate(45deg);
}

@keyframes theme-nudge-in {
  from { opacity: 0; transform: translateY(-3px); }
  to { opacity: 1; transform: translateY(0); }
}

.eyebrow,
.section-kicker,
.feature-number {
  margin: 0;
  color: var(--accent-strong);
  font-size: 0.73rem;
  font-weight: 820;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 13px 20px;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: var(--surface);
  color: var(--text);
  font-weight: 760;
  text-decoration: none;
  transition: transform 170ms ease, border-color 170ms ease, background-color 170ms ease, color 170ms ease;
}

.button:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  color: var(--text);
}

.button:active {
  transform: translateY(0) scale(0.99);
}

.button.primary {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-text);
}

.button.primary:hover {
  border-color: var(--accent-strong);
  background: var(--accent-strong);
  color: var(--accent-text);
}

.button.quiet {
  background: transparent;
}

.hero {
  display: flex;
  min-height: calc(100svh - 76px);
  align-items: center;
  overflow: hidden;
  padding-block: 54px 68px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(420px, 0.95fr);
  align-items: center;
  gap: clamp(38px, 5vw, 72px);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-block: 30px;
}

.hero-content > * {
  animation: hero-enter 620ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-content > :nth-child(2) { animation-delay: 70ms; }
.hero-content > :nth-child(3) { animation-delay: 130ms; }
.hero-content > :nth-child(4) { animation-delay: 190ms; }
.hero-content > :nth-child(5) { animation-delay: 250ms; }

.hero .eyebrow {
  margin-bottom: 20px;
}

.hero h1 {
  max-width: 760px;
  margin-bottom: 26px;
  font-size: clamp(3.6rem, 6.2vw, 5.3rem);
  font-weight: 700;
}

.hero-copy {
  max-width: 630px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.08rem, 1.9vw, 1.28rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 23px;
  color: var(--subtle);
  font-size: 0.8rem;
  font-weight: 650;
}

.hero-meta span + span {
  position: relative;
}

.hero-meta span + span::before {
  position: absolute;
  top: 50%;
  left: -13px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--subtle);
  content: "";
}

.hero-stage {
  position: relative;
  display: grid;
  height: min(660px, calc(100svh - 108px));
  min-height: 560px;
  place-items: center;
  isolation: isolate;
  overflow: visible;
  perspective: 1300px;
  animation: stage-enter 760ms 140ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-stage::before {
  position: absolute;
  z-index: -1;
  right: 11%;
  bottom: 17%;
  width: 68%;
  height: 11%;
  border-radius: 50%;
  background: var(--phone-ground-shadow);
  content: "";
  filter: blur(34px);
  opacity: 0.46;
  transform: rotate(-5deg) scaleX(0.92);
}

.phone-frame {
  position: relative;
  overflow: hidden;
  border: 0;
  border-radius: var(--phone-corner-radius);
  background: var(--surface);
  box-shadow: var(--phone-shadow);
}

.phone-frame::after,
.tour-device::after,
.tour-mobile-frame::after {
  position: absolute;
  z-index: 4;
  inset: 0;
  border: 5px solid var(--phone-bezel);
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, #ffffff 20%, transparent);
  content: "";
  pointer-events: none;
}

.phone-frame picture,
.phone-frame img {
  display: block;
  width: 100%;
  height: 100%;
}

.phone-frame img {
  object-fit: contain;
}

.hero-device-shell {
  position: relative;
  top: -78px;
  z-index: 2;
  width: auto;
  height: 73%;
  max-width: 76%;
  aspect-ratio: var(--phone-ratio);
  transform: rotateY(-17deg) rotateX(3.5deg) rotateZ(2.2deg) translateX(2%);
  transform-style: preserve-3d;
  transform-origin: 50% 58%;
  transition: transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.hero-device-depth {
  position: absolute;
  z-index: 0;
  inset: 0;
  border: 1px solid color-mix(in srgb, var(--device-metal-highlight) 74%, transparent);
  border-radius: var(--phone-corner-radius);
  background:
    linear-gradient(145deg, var(--device-metal-highlight) 0%, var(--device-metal-mid) 34%, var(--device-metal-deep) 82%);
  box-shadow:
    20px 34px 56px rgba(6, 9, 15, 0.32),
    8px 10px 16px rgba(6, 9, 15, 0.2),
    inset -2px -3px 4px rgba(0, 0, 0, 0.36),
    inset 2px 2px 2px rgba(255, 255, 255, 0.18);
  transform: translate3d(13px, 11px, -24px);
}

.hero-device-depth::after {
  position: absolute;
  inset: 9px 8px 7px 9px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: inherit;
  content: "";
}

.hero-device-rail {
  position: absolute;
  z-index: 1;
  top: 21%;
  right: -15px;
  display: grid;
  width: 17px;
  height: 53%;
  grid-template-rows: 58px 92px 44px;
  gap: 22px;
  align-content: start;
  padding-top: 36px;
  border-radius: 0 12px 12px 0;
  background: linear-gradient(90deg, var(--device-metal-deep), var(--device-metal-highlight) 72%, var(--device-metal-mid));
  box-shadow: 5px 5px 10px rgba(6, 9, 15, 0.28);
  transform: translateZ(-8px);
}

.hero-device-rail i {
  display: block;
  width: 5px;
  height: 100%;
  margin-left: 10px;
  border-radius: 0 4px 4px 0;
  background: color-mix(in srgb, var(--device-metal-highlight) 78%, white 22%);
  box-shadow: 1px 0 1px rgba(255, 255, 255, 0.2), 2px 2px 4px rgba(0, 0, 0, 0.35);
}

.hero-phone {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  max-width: none;
  aspect-ratio: var(--phone-ratio);
  box-shadow:
    0 28px 70px rgba(6, 9, 15, 0.28),
    5px 8px 14px rgba(6, 9, 15, 0.22);
  transform: translateZ(1px);
}

.hero-phone::before {
  position: absolute;
  z-index: 3;
  inset: 5px;
  border-radius: inherit;
  background:
    linear-gradient(118deg, var(--device-glass-highlight) 0%, transparent 15%, transparent 76%, rgba(255, 255, 255, 0.05) 100%);
  content: "";
  pointer-events: none;
}

.hero-stage:hover .hero-device-shell {
  transform: rotateY(-12deg) rotateX(2deg) rotateZ(1.2deg) translateX(1%);
}

.manifesto {
  display: grid;
  grid-template-columns: minmax(220px, 0.42fr) minmax(0, 1.58fr);
  gap: clamp(40px, 8vw, 110px);
  align-items: start;
  padding-block: 132px;
  border-top: 1px solid var(--border);
}

.manifesto > p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.manifesto h2 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(2.8rem, 5.7vw, 5.6rem);
  font-weight: 760;
}

.product-tour {
  padding-block: 116px 150px;
  background: var(--tour-background);
  color: var(--tour-text);
}

.tour-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
  column-gap: 50px;
  align-items: end;
  margin-bottom: 90px;
}

.tour-heading .section-kicker {
  grid-column: 1 / -1;
  margin-bottom: 20px;
  color: var(--tour-accent);
}

.tour-heading h2 {
  max-width: 800px;
  margin: 0;
  font-size: clamp(3rem, 6vw, 5.4rem);
}

.tour-heading > p:last-child {
  max-width: 370px;
  margin: 0 0 8px;
  color: var(--tour-muted);
}

.tour-layout {
  display: grid;
  grid-template-columns: minmax(410px, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(70px, 10vw, 150px);
}

.tour-visual {
  position: sticky;
  top: 112px;
  display: flex;
  height: min(750px, calc(100svh - 142px));
  align-items: center;
  justify-content: center;
}

.tour-device {
  position: relative;
  overflow: hidden;
  width: min(315px, 72%);
  aspect-ratio: var(--phone-ratio);
  border: 0;
  border-radius: var(--phone-corner-radius);
  background: var(--tour-surface);
  box-shadow: 0 42px 100px rgba(0, 0, 0, 0.52);
}

.tour-screen {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  opacity: 0;
  transform: scale(1.025);
  transition: opacity 420ms ease, transform 640ms cubic-bezier(0.22, 1, 0.36, 1);
}

.tour-screen img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.tour-screen.is-active {
  z-index: 1;
  opacity: 1;
  transform: scale(1);
}

.tour-steps {
  min-width: 0;
}

.tour-step {
  display: flex;
  min-height: 84svh;
  flex-direction: column;
  justify-content: center;
  padding-block: 70px;
  opacity: 0.38;
  transition: opacity 320ms ease;
}

.tour-step.is-active {
  opacity: 1;
}

.tour-step h3 {
  max-width: 650px;
  margin-bottom: 20px;
  font-size: clamp(2.4rem, 4.5vw, 4.4rem);
}

.tour-step > p {
  max-width: 660px;
  margin: 0;
  color: var(--tour-muted);
  font-size: 1.08rem;
}

.tour-step .step-capabilities {
  display: flex;
  max-width: 680px;
  flex-wrap: wrap;
  gap: 9px 24px;
  margin: 28px 0 0;
  color: var(--tour-text);
  font-size: 0.84rem;
  font-weight: 650;
}

.step-capabilities span {
  position: relative;
  padding-left: 14px;
}

.step-capabilities span::before {
  position: absolute;
  top: 0.65em;
  left: 0;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--tour-accent);
  content: "";
}

.chart-story {
  position: relative;
  display: grid;
  grid-template-columns: minmax(250px, 0.62fr) minmax(0, 1.38fr);
  gap: clamp(42px, 7vw, 90px);
  align-items: center;
  margin-top: 88px;
  padding-top: 96px;
  border-top: 1px solid var(--tour-border);
}

.chart-milestone {
  position: absolute;
  left: 50%;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.chart-story-copy h3 {
  max-width: 480px;
  margin-bottom: 20px;
  font-size: clamp(2.4rem, 4.6vw, 4.2rem);
}

.chart-story-copy > p {
  max-width: 460px;
  margin: 0;
  color: var(--tour-muted);
}

.chart-key {
  display: grid;
  gap: 11px;
  margin-top: 30px;
  color: var(--tour-text);
  font-size: 0.8rem;
  font-weight: 680;
}

.chart-key span {
  position: relative;
  padding-left: 24px;
}

.chart-key span::before {
  position: absolute;
  top: 50%;
  left: 0;
  width: 12px;
  height: 4px;
  border-radius: 4px;
  background: var(--tour-accent);
  content: "";
  transform: translateY(-50%);
}

.chart-key .chart-key-win::before {
  background: #70e2b2;
}

.chart-key .chart-key-loss::before {
  background: #f07186;
}

.chart-story-visual {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.animated-chart {
  min-width: 0;
  padding: 22px 20px 12px;
  border: 1px solid var(--tour-border);
  border-radius: 24px;
  background: var(--tour-surface);
}

.animated-chart header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding-inline: 4px;
}

.animated-chart header span {
  color: var(--tour-muted);
  font-size: 0.76rem;
  font-weight: 690;
}

.animated-chart header strong {
  color: var(--tour-text);
  font-size: 0.86rem;
}

.animated-chart svg {
  width: 100%;
  height: auto;
  margin-top: 14px;
  overflow: visible;
}

.chart-grid line {
  stroke: var(--tour-border);
  stroke-width: 1;
}

.chart-grid .chart-zero {
  stroke: color-mix(in srgb, var(--tour-muted) 72%, var(--tour-border));
}

.chart-segment {
  stroke: var(--tour-accent);
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  stroke-linecap: round;
  stroke-width: 7;
  opacity: 0;
  transition: stroke-dashoffset 320ms cubic-bezier(0.22, 1, 0.36, 1), opacity 180ms ease;
}

.chart-points circle {
  fill: var(--tour-surface);
  stroke: var(--tour-accent);
  stroke-width: 4;
  opacity: 0;
  transform: scale(0.5);
  transform-box: fill-box;
  transform-origin: center;
  transition: opacity 180ms ease, transform 300ms cubic-bezier(0.22, 1, 0.36, 1);
}

.chart-bar {
  opacity: 0;
  transform: scaleY(0);
  transform-box: fill-box;
  transition: opacity 180ms ease, transform 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

.chart-bar.win {
  fill: #70e2b2;
  transform-origin: center bottom;
}

.chart-bar.loss {
  fill: #f07186;
  transform-origin: center top;
}

.chart-segment.is-shown {
  stroke-dashoffset: 0;
  opacity: 1;
}

.chart-points circle.is-shown,
.chart-bar.is-shown {
  opacity: 1;
  transform: scale(1);
}

.tour-mobile-frame {
  display: none;
}

.feature-overview {
  padding-block: 112px 150px;
}

.feature-showcase {
  display: grid;
  grid-template-columns: minmax(480px, 1.08fr) minmax(0, 0.92fr);
  min-height: 790px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--raised);
}

.feature-shot-stack {
  position: relative;
  min-height: 790px;
  overflow: hidden;
  border-right: 1px solid var(--border);
}

.feature-phone {
  position: absolute;
  width: 290px;
  aspect-ratio: var(--phone-ratio);
}

.feature-phone-back {
  top: 46px;
  left: 38px;
  transform: rotate(-5deg);
}

.feature-phone-front {
  right: 28px;
  bottom: 28px;
  transform: rotate(4deg);
}

.feature-showcase-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(36px, 6vw, 76px);
}

.feature-showcase-copy h3 {
  margin: 18px 0;
  font-size: clamp(2.4rem, 4.6vw, 4.2rem);
}

.feature-showcase-copy > p:not(.feature-number) {
  margin: 0;
  color: var(--muted);
}

.feature-showcase-copy dl {
  margin: 40px 0 0;
  border-top: 1px solid var(--border);
}

.feature-showcase-copy dl > div {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 18px;
  padding-block: 18px;
  border-bottom: 1px solid var(--border);
}

.feature-showcase-copy dt {
  font-size: 0.83rem;
  font-weight: 770;
}

.feature-showcase-copy dd {
  margin: 0;
  color: var(--muted);
  font-size: 0.83rem;
}

.feature-ledger {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 86px;
  border-top: 1px solid var(--border);
}

.feature-ledger article {
  position: relative;
  min-height: 390px;
  padding: 42px 44px 44px 0;
  border-bottom: 1px solid var(--border);
}

.feature-ledger article:nth-child(odd) {
  padding-right: 54px;
  border-right: 1px solid var(--border);
}

.feature-ledger article:nth-child(even) {
  padding-left: 54px;
}

.feature-ledger h3 {
  max-width: 470px;
  margin: 18px 0 16px;
  font-size: clamp(1.85rem, 3.3vw, 3rem);
}

.feature-ledger article > p:not(.feature-number) {
  max-width: 530px;
  margin: 0;
  color: var(--muted);
}

.feature-ledger article > span {
  display: block;
  max-width: 530px;
  margin-top: 24px;
  color: var(--subtle);
  font-size: 0.78rem;
}

.plans-section {
  padding-block: 118px;
  background: #2e3440;
  color: #f7f9fc;
}

.plans-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(480px, 1.15fr);
  gap: clamp(70px, 10vw, 140px);
  align-items: start;
}

.plans-copy .section-kicker {
  margin-bottom: 20px;
  color: #9ec3da;
}

.plans-copy h2 {
  margin-bottom: 22px;
  color: #f7f9fc;
  font-size: clamp(3rem, 5.7vw, 5.2rem);
}

.plans-copy > p:last-child {
  margin: 0;
  color: #c4ced8;
}

.plan-lines {
  border-top: 1px solid #4c566a;
}

.plan-lines > div {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 24px;
  padding-block: 28px;
  border-bottom: 1px solid #4c566a;
}

.plan-lines span {
  color: #9ec3da;
  font-size: 0.8rem;
  font-weight: 820;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.plan-lines p {
  margin: 0;
  color: #f7f9fc;
}

.plan-detail {
  min-width: 0;
}

.plan-detail h3 {
  margin: 0 0 12px;
  font-size: clamp(1.55rem, 2.2vw, 2rem);
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.plan-detail .plan-extra {
  margin-top: 16px;
  color: #c4ced8;
  font-size: 0.9rem;
}

.plan-lines small {
  display: block;
  margin-top: 24px;
  color: #aeb7c7;
  font-size: 0.75rem;
}

.privacy-section {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(440px, 1.12fr);
  gap: clamp(60px, 10vw, 140px);
  padding-block: 142px;
}

.privacy-intro {
  align-self: start;
  position: sticky;
  top: 122px;
}

.privacy-intro .section-kicker {
  margin-bottom: 20px;
}

.privacy-intro h2 {
  margin-bottom: 20px;
  font-size: clamp(2.8rem, 5.4vw, 4.8rem);
}

.privacy-intro > p {
  margin: 0;
  color: var(--muted);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
  color: var(--text);
  font-weight: 760;
  text-decoration: none;
}

.text-link span {
  color: var(--accent);
  transition: transform 160ms ease;
}

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

.text-link:hover span {
  transform: translateX(4px);
}

.privacy-list {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--border);
  list-style: none;
}

.privacy-list li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 20px;
  padding-block: 32px;
  border-bottom: 1px solid var(--border);
}

.privacy-list li > span {
  color: var(--accent-strong);
  font-size: 0.76rem;
  font-weight: 820;
}

.privacy-list h3 {
  margin-bottom: 9px;
  font-size: 1.42rem;
}

.privacy-list p {
  margin: 0;
  color: var(--muted);
}

.closing {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 44px;
  margin-bottom: 100px;
  padding: 68px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.closing .section-kicker {
  margin-bottom: 18px;
}

.closing h2 {
  max-width: 700px;
  margin: 0;
  font-size: clamp(2.7rem, 5.2vw, 4.8rem);
}

.closing .button {
  flex: 0 0 auto;
}

.resource-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  margin-bottom: 88px;
  padding-block: 34px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.resource-strip h2 {
  margin-bottom: 6px;
  font-size: 1.55rem;
  letter-spacing: -0.02em;
}

.resource-strip p {
  margin: 0;
  color: var(--muted);
}

.resource-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 24px;
}

.resource-links a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 740;
  text-decoration: none;
}

.resource-links span {
  color: var(--accent);
}

.page-intro {
  min-width: 0;
  padding-block: 82px 42px;
}

.page-intro .eyebrow {
  margin-bottom: 18px;
}

.page-intro h1 {
  max-width: 920px;
  margin-bottom: 18px;
  font-size: clamp(2.8rem, 6vw, 5rem);
}

.page-intro .lede {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 1.15rem;
}

.meta {
  display: inline-flex;
  margin-top: 20px;
  padding: 6px 11px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--raised);
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
}

.article {
  width: 100%;
  min-width: 0;
  max-width: 860px;
  padding-bottom: 96px;
}

.article section {
  padding: 34px 0;
  border-top: 1px solid var(--border);
}

.article section:first-child {
  border-top: 0;
}

.article h2 {
  margin-bottom: 16px;
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.025em;
}

.article p,
.article li {
  color: var(--muted);
  overflow-wrap: anywhere;
}

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

.article ul,
.article ol {
  padding-left: 1.35em;
}

.article li + li {
  margin-top: 10px;
}

.notice {
  padding: 20px 22px;
  border: 1px solid color-mix(in srgb, var(--accent) 50%, var(--border));
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--accent) 9%, var(--surface));
}

.notice p {
  margin: 0;
  color: var(--text);
}

.site-footer {
  padding-block: 36px 46px;
  border-top: 1px solid var(--border);
}

.footer-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
}

.footer-copy {
  max-width: 640px;
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
}

.footer-links a {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 680;
  text-decoration: none;
}

.auth-page {
  display: grid;
  min-height: 100dvh;
  place-items: center;
  padding: 28px;
}

.auth-card {
  width: min(560px, 100%);
  padding: clamp(30px, 6vw, 54px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
  text-align: center;
}

.auth-card .wordmark {
  margin: 0 auto 34px;
}

.status-icon {
  display: grid;
  width: 58px;
  height: 58px;
  margin: 0 auto 24px;
  place-items: center;
  border-radius: 50%;
  background: color-mix(in srgb, var(--success) 16%, var(--surface));
  color: var(--success);
  font-size: 1.55rem;
  font-weight: 900;
}

.auth-card h1 {
  margin-bottom: 14px;
  font-size: clamp(2rem, 7vw, 3.1rem);
}

.auth-card p {
  margin: 0 0 28px;
  color: var(--muted);
}

.js [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 640ms ease, transform 740ms cubic-bezier(0.22, 1, 0.36, 1);
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes hero-enter {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes stage-enter {
  from { opacity: 0; transform: translateY(24px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 1020px) {
  .hero-grid,
  .feature-showcase,
  .plans-grid,
  .privacy-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-block: 72px 100px;
  }

  .hero-content {
    max-width: 820px;
  }

  .hero-stage {
    height: 720px;
    min-height: 0;
  }

  .hero-stage::before {
    bottom: 2.5%;
  }

  .hero-device-shell {
    top: 0;
  }

  .tour-layout {
    grid-template-columns: minmax(330px, 0.8fr) minmax(0, 1.2fr);
    gap: 58px;
  }

  .feature-showcase {
    max-width: 820px;
  }

  .feature-shot-stack {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .feature-showcase-copy {
    padding: 64px;
  }

  .plans-grid {
    gap: 64px;
  }

  .privacy-section {
    gap: 60px;
  }

  .privacy-intro {
    position: static;
    max-width: 760px;
  }
}

@media (max-width: 780px) {
  body {
    font-size: 16px;
  }

  .shell {
    width: min(100% - 30px, var(--page-width));
  }

  .site-nav {
    min-height: 70px;
    gap: 10px;
  }

  .wordmark,
  .wordmark img {
    width: 124px;
  }

  .wordmark {
    height: 44px;
  }

  .nav-links {
    gap: 0;
  }

  .nav-links .product-nav-link,
  .nav-links .feature-nav-link,
  .nav-links .community-nav-link,
  .nav-links .terms-nav-link {
    display: none;
  }

  .theme-control {
    margin-left: 7px;
  }

  .nav-links a {
    padding: 8px 7px;
    font-size: 0.74rem;
  }

  .hero {
    padding-block: 56px 76px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .hero h1 {
    font-size: clamp(3rem, 15vw, 4.7rem);
  }

  .hero-stage {
    width: 100%;
    height: clamp(610px, 162vw, 690px);
    min-height: 0;
    margin-left: 0;
  }

  .hero-device-shell {
    width: min(66vw, 286px);
    height: auto;
    max-width: none;
    transform: rotateY(-12deg) rotateX(2deg) rotateZ(1.8deg);
  }

  .manifesto {
    grid-template-columns: 1fr;
    gap: 22px;
    padding-block: 92px;
  }

  .manifesto h2 {
    font-size: clamp(2.5rem, 11vw, 4.1rem);
  }

  .product-tour {
    padding-block: 92px;
  }

  .tour-heading {
    grid-template-columns: 1fr;
    gap: 22px;
    margin-bottom: 62px;
  }

  .tour-heading h2 {
    font-size: clamp(2.7rem, 11vw, 4.2rem);
  }

  .tour-layout {
    grid-template-columns: 1fr;
  }

  .tour-visual {
    display: none;
  }

  .tour-step,
  .tour-step.is-active {
    min-height: 0;
    padding-block: 0 104px;
    opacity: 1;
  }

  .js [data-mobile-reveal] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 620ms ease, transform 720ms cubic-bezier(0.22, 1, 0.36, 1);
  }

  .js [data-mobile-reveal].is-visible {
    opacity: 1;
    transform: none;
  }

  .tour-step:last-child {
    padding-bottom: 0;
  }

  .tour-mobile-frame {
    position: relative;
    display: block;
    width: min(278px, 74vw);
    aspect-ratio: var(--phone-ratio);
    margin: 0 auto 46px;
    overflow: hidden;
    border: 0;
    border-radius: var(--phone-corner-radius);
    background: var(--tour-surface);
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.48);
  }

  .tour-mobile-frame img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  .tour-step h3 {
    font-size: clamp(2.2rem, 10vw, 3.5rem);
  }

  .chart-story {
    grid-template-columns: 1fr;
    gap: 42px;
    margin-top: 12px;
    padding-top: 76px;
  }

  .chart-story-copy h3 {
    font-size: clamp(2.3rem, 10vw, 3.5rem);
  }

  .chart-story-visual {
    grid-template-columns: 1fr;
  }

  .animated-chart {
    padding: 20px 14px 8px;
    border-radius: 20px;
  }

  .feature-overview {
    padding-block: 96px 108px;
  }

  .feature-showcase {
    min-height: 0;
  }

  .feature-shot-stack {
    min-height: 620px;
  }

  .feature-phone {
    width: min(47vw, 220px);
    height: auto;
  }

  .feature-phone::after {
    border-width: 3px;
  }

  .feature-phone-back {
    top: 48px;
    left: 24px;
  }

  .feature-phone-front {
    top: 112px;
    right: 24px;
    bottom: auto;
  }

  .feature-showcase-copy {
    padding: 42px 26px;
  }

  .feature-showcase-copy dl > div {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .feature-ledger {
    grid-template-columns: 1fr;
    margin-top: 68px;
  }

  .feature-ledger article,
  .feature-ledger article:nth-child(odd),
  .feature-ledger article:nth-child(even) {
    min-height: auto;
    padding: 38px 0;
    border-right: 0;
  }

  .plans-section {
    padding-block: 88px;
  }

  .plans-grid {
    grid-template-columns: 1fr;
    gap: 54px;
  }

  .plan-lines > div {
    grid-template-columns: 72px 1fr;
  }

  .privacy-section {
    grid-template-columns: 1fr;
    padding-block: 100px;
  }

  .closing {
    align-items: stretch;
    flex-direction: column;
    padding: 42px 28px;
  }

  .closing .button {
    width: 100%;
  }

  .resource-strip,
  .footer-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .resource-strip {
    margin-bottom: 68px;
  }

  .resource-links {
    justify-content: flex-start;
  }

  .page-intro {
    padding-block: 56px 34px;
  }

  .page-intro h1 {
    max-width: 100%;
    font-size: clamp(2.35rem, 12vw, 3.2rem);
    overflow-wrap: anywhere;
  }

  .page-intro .lede {
    font-size: 1.02rem;
  }
}

@media (max-width: 460px) {
  .wordmark,
  .wordmark img {
    width: 100px;
  }

  .wordmark {
    height: 36px;
  }

  .nav-links a {
    padding-inline: 5px;
    font-size: 0.68rem;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .hero-meta {
    display: grid;
  }

  .hero-meta span + span::before {
    display: none;
  }

  .hero-stage {
    height: clamp(600px, 165vw, 670px);
  }

  .hero-device-shell {
    width: min(68vw, 268px);
    height: auto;
    max-width: none;
  }

  .hero-device-rail {
    right: -12px;
    width: 14px;
  }

  .feature-showcase {
    min-height: 0;
  }

  .feature-shot-stack {
    min-height: 570px;
  }

  .feature-phone {
    width: min(48vw, 202px);
    height: auto;
  }

  .feature-phone-back {
    top: 42px;
    left: 22px;
  }

  .feature-phone-front {
    top: 106px;
    right: 22px;
    bottom: auto;
  }

  .plan-lines > div {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .privacy-list li {
    grid-template-columns: 34px 1fr;
    gap: 12px;
  }
}

/* The hero shares the site's Nord tokens. Its short pin gives the physical
   card curl and the real in-app scroll one continuous, visible interval. */
.hero-pin {
  width: 100%;
}

.hero-art {
  min-width: 0;
}

.hero-peek-canvas {
  position: absolute;
  z-index: 1;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}

.hero-peek-canvas canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-scroll-cue {
  display: none;
}

.hero-peek-fallback,
.hero-peek-canvas {
  transition: opacity 200ms ease;
}

.is-peek-ready .hero-peek-canvas {
  opacity: 1;
}

.is-peek-ready .hero-peek-fallback {
  opacity: 0;
  visibility: hidden;
}

.is-peek-ready .hero-peek-stage::before {
  opacity: 0;
}

.hero-peek-story.has-card-peek {
  --hero-scroll-distance: clamp(420px, 62svh, 580px);
  display: block;
  min-height: calc(100svh - 76px + var(--hero-scroll-distance));
  overflow: clip;
  padding-block: 0;
}

.has-card-peek .hero-pin {
  position: sticky;
  top: 76px;
  display: grid;
  min-height: calc(100svh - 76px);
  align-items: center;
  padding-block: 30px 44px;
}

.has-card-peek .hero-peek-stage {
  width: calc(100% + 80px);
  height: min(630px, calc(100svh - 150px));
  min-height: 490px;
  margin-inline: -40px;
  animation: none;
}

@media (min-width: 1021px) {
  /* Grow the real WebGL viewport on both axes, preserving the fitted scene
     and phone proportions rather than scaling a cropped bitmap. */
  .hero-peek-story .hero-grid {
    width: min(1320px, calc(100% - 64px));
    grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
    gap: clamp(24px, 2.5vw, 36px);
  }

  .hero-peek-story h1 {
    font-size: clamp(2.75rem, 4.6vw, 4rem);
  }

  .has-card-peek .hero-peek-stage {
    height: min(740px, calc(100svh - 120px));
  }
}

@media (max-width: 1020px) {
  .hero-peek-story {
    --hero-scroll-distance: 360px;
    --hero-hold-distance: 80px;
    --hero-stage-height: min(620px, 74svh);
    --hero-stage-top: 88px;
  }

  .hero-peek-story,
  .hero-peek-story.has-card-peek {
    --hero-scroll-distance: 360px;
    min-height: 0;
    padding-block: 12px 76px;
  }

  .hero-peek-story.has-card-peek::after {
    content: "";
    display: block;
    height: calc(var(--hero-scroll-distance) + var(--hero-hold-distance));
  }

  /* Lead with the product on phones, including before WebGL is ready or
     when the static screenshot fallback is needed. */
  .hero-peek-story .hero-art {
    grid-row: 1;
  }

  .hero-peek-story .hero-content {
    grid-row: 2;
  }

  .has-card-peek .hero-pin {
    position: sticky;
    top: var(--hero-stage-top);
    display: block;
    min-height: 0;
    padding-block: 0;
  }

  .has-card-peek .hero-grid {
    align-items: start;
    gap: 24px;
  }

  .hero-peek-story .hero-peek-stage {
    width: 100%;
    height: var(--hero-stage-height);
    min-height: 0;
    margin: 0;
  }

  .has-card-peek .hero-peek-stage {
    position: relative;
    top: auto;
  }

  .hero-peek-story[data-peek-state="loading"] .hero-content,
  .hero-peek-story.has-card-peek .hero-content {
    opacity: var(--hero-copy-opacity, 0);
    visibility: hidden;
    animation: none;
  }

  .js .hero-peek-story.is-peek-copy-visible .hero-content {
    visibility: visible;
  }

  .hero-peek-story .hero-content > * {
    animation: none;
  }

  .hero-peek-story .hero-peek-fallback {
    width: min(60vw, calc(var(--hero-stage-height) * 0.38), 286px);
    height: auto;
  }

  .has-card-peek .hero-scroll-cue {
    position: absolute;
    z-index: 2;
    bottom: 8px;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    margin: 0;
    color: var(--muted);
    font-size: 0.7rem;
    font-weight: 650;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    opacity: var(--hero-cue-opacity, 1);
    pointer-events: none;
  }

  .hero-scroll-cue span {
    width: 1px;
    height: 24px;
    background: var(--accent);
  }
}

@media (max-width: 780px) {
  .hero-peek-story {
    --hero-stage-height: min(clamp(340px, 108vw, 540px), calc(100svh - 112px));
    --hero-stage-top: 82px;
  }

  .hero-peek-story h1 {
    font-size: clamp(1.8rem, 8.6vw, 4rem);
  }

  .has-card-peek .hero-grid {
    gap: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .has-card-peek .hero-scroll-cue {
    display: none;
  }

  .hero-peek-story.has-card-peek {
    --hero-scroll-distance: 0px;
    --hero-hold-distance: 0px;
  }

  .js .hero-peek-story .hero-content {
    opacity: 1 !important;
    visibility: visible !important;
  }

  .has-card-peek .hero-pin,
  .has-card-peek .hero-peek-stage {
    position: relative;
    top: auto;
  }

  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }

  .js [data-reveal],
  .js [data-mobile-reveal] {
    opacity: 1;
    transform: none;
  }
}
