:root {
  color-scheme: light;
  --brand: #0b2d29;
  --accent: #166a4f;
  --paper: #f6fbf8;
  --surface: #ffffff;
  --surface-subtle: #edf6f0;
  --ink: #17211f;
  --muted: #596965;
  --line: rgba(11, 45, 41, 0.16);
  --field: #ffffff;
  --button-text: #ffffff;
  --focus: #b87524;
  --shadow: rgba(11, 45, 41, 0.1);
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --brand: #d9f2e7;
    --accent: #8fd0b5;
    --paper: #0e1513;
    --surface: #121d1a;
    --surface-subtle: #182824;
    --ink: #eef7f3;
    --muted: #a7b8b2;
    --line: rgba(217, 242, 231, 0.16);
    --field: #0f1916;
    --button-text: #08211d;
    --focus: #d9a15d;
    --shadow: rgba(0, 0, 0, 0.32);
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Manrope", "Atkinson Hyperlegible", sans-serif;
  overflow-x: hidden;
  -webkit-tap-highlight-color: rgba(22, 106, 79, 0.16);
}

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

button,
input {
  font: inherit;
}

button,
a,
input {
  touch-action: manipulation;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  inset: 12px auto auto 12px;
  z-index: 20;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 10px 12px;
}

.skip-link:focus-visible {
  width: auto;
  height: auto;
  overflow: visible;
  clip-path: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 64px;
  padding: 12px 24px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
}

.brand img {
  border-radius: 8px;
}

.site-nav {
  display: flex;
  gap: 22px;
  align-items: center;
  color: var(--muted);
  font-size: 15px;
}

.site-nav a {
  text-decoration: none;
  transition: color 160ms ease;
}

.site-nav a:hover {
  color: var(--brand);
}

main:focus:not(:focus-visible) {
  outline: 2px solid transparent;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.78fr);
  gap: 48px;
  align-items: center;
  width: min(100%, 1220px);
  min-height: calc(100svh - 64px);
  margin: 0 auto;
  padding: 52px 24px 64px;
}

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

h1,
h2 {
  margin: 0;
  color: var(--brand);
  letter-spacing: 0;
  text-wrap: balance;
}

h1 {
  max-width: 760px;
  font-size: clamp(46px, 7vw, 88px);
  line-height: 0.96;
}

h2 {
  max-width: 680px;
  font-size: clamp(32px, 4.8vw, 56px);
  line-height: 1;
}

p {
  max-width: 700px;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.5;
  text-wrap: pretty;
}

.notification-stack {
  display: grid;
  width: min(100%, 620px);
  margin-top: 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: 0 2px 8px var(--shadow);
}

.notification-stack article {
  display: grid;
  gap: 5px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  animation: settle 560ms ease both;
}

.notification-stack article:nth-child(2) {
  animation-delay: 90ms;
}

.notification-stack article:nth-child(3) {
  animation-delay: 180ms;
}

.notification-stack article:last-child {
  border-bottom: 0;
}

.notification-stack strong {
  color: var(--brand);
  font-size: 14px;
}

.notification-stack span {
  color: var(--ink);
  line-height: 1.35;
}

.notification-meta {
  display: grid;
  grid-template-columns: 24px auto minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
}

.notification-meta img {
  border-radius: 6px;
}

.notification-meta span {
  color: var(--muted);
  font-weight: 800;
}

.notification-meta time {
  justify-self: end;
  color: var(--muted);
}

.waitlist-form {
  width: min(100%, 620px);
  margin-top: 28px;
}

.waitlist-form label {
  display: block;
  margin-bottom: 8px;
  color: var(--brand);
  font-size: 14px;
  font-weight: 800;
}

.form-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.waitlist-form input {
  min-width: 0;
  height: 50px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--field);
  color: var(--ink);
  padding: 0 14px;
}

.waitlist-form input::placeholder {
  color: color-mix(in srgb, var(--muted) 72%, transparent);
}

.waitlist-form button {
  min-height: 50px;
  border: 1px solid var(--brand);
  border-radius: 8px;
  background: var(--brand);
  color: var(--button-text);
  padding: 0 18px;
  font-weight: 800;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.waitlist-form button:hover {
  border-color: var(--accent);
  background: var(--accent);
}

.waitlist-form button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.form-status {
  min-height: 24px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.form-status.is-error {
  color: #b14a3f;
}

.consent-check {
  display: grid !important;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  margin: 12px 0 0 !important;
  color: var(--muted) !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  line-height: 1.4;
}

.waitlist-form .consent-check input {
  width: 18px;
  min-width: 18px;
  height: 18px;
  margin: 1px 0 0;
  border-radius: 4px;
  padding: 0;
  accent-color: var(--brand);
}

.consent-check a {
  color: var(--brand);
}

.hero-stage {
  position: relative;
  min-height: 690px;
}

.scroll-cue {
  display: none;
}

.iphone {
  position: relative;
  overflow: hidden;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 38px;
  background: #080a09;
  box-shadow: 0 2px 8px var(--shadow);
}

.iphone img {
  width: 100%;
  border-radius: 30px;
}

.phone-main,
.phone-side {
  position: absolute;
  width: min(36vw, 330px);
}

.phone-main {
  left: 0;
  top: 128px;
  z-index: 2;
  animation: settle 620ms ease both, phoneDrift 6s ease-in-out 1.2s infinite alternate;
}

.phone-side {
  right: 0;
  top: 0;
  z-index: 1;
  width: min(32vw, 292px);
  animation: settle 620ms 120ms ease both, phoneDrift 7s ease-in-out 1.5s infinite alternate-reverse;
}

@media (hover: hover) and (min-width: 681px) {
  .hero-stage .iphone {
    transition: opacity 180ms ease, scale 180ms ease, box-shadow 180ms ease, filter 180ms ease;
  }

  .hero-stage[data-active-phone="main"] .phone-main,
  .hero-stage[data-active-phone="side"] .phone-side,
  .hero-stage .iphone:hover {
    z-index: 5;
    opacity: 1;
    scale: 1.025;
    filter: saturate(1.04);
    box-shadow: 0 4px 12px var(--shadow);
  }

  .hero-stage[data-active-phone="main"] .phone-side,
  .hero-stage[data-active-phone="side"] .phone-main {
    z-index: 1;
    opacity: 0.72;
    scale: 0.985;
    filter: saturate(0.86);
  }
}

.section {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
  width: min(100%, 1180px);
  margin: 0 auto;
  padding: 76px 24px;
  border-top: 1px solid var(--line);
  scroll-margin-top: 92px;
}

.feature-list {
  display: grid;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}

.feature-list article {
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}

.feature-list article:last-child {
  border-bottom: 0;
}

.feature-list strong {
  color: var(--brand);
}

.feature-list p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 16px;
}

.topic-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.topic-links a {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--brand);
  padding: 9px 11px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
  transition: border-color 160ms ease, background-color 160ms ease;
}

.topic-links a:hover {
  border-color: color-mix(in srgb, var(--accent) 52%, var(--line));
  background: var(--surface-subtle);
}

.example-grid {
  display: flex;
  gap: 14px;
  align-items: start;
  margin-inline: calc(var(--page-pad) * -1);
  overflow-x: auto;
  overflow-y: hidden;
  padding: 8px var(--page-pad) 18px;
  scroll-padding-inline: var(--page-pad);
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

.examples-section {
  grid-template-columns: 1fr;
  gap: 26px;
  overflow: hidden;
}

.examples-section > div:first-child {
  max-width: 880px;
}

.examples-section .scroll-cue {
  display: block;
  margin: 10px 0 0;
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 13px;
}

.example-shot {
  flex: 0 0 clamp(218px, 21vw, 274px);
  scroll-snap-align: start;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 34px;
  background: #080a09;
  padding: 8px;
  transition: border-color 160ms ease, filter 160ms ease;
}

.example-shot:hover {
  border-color: color-mix(in srgb, var(--accent) 38%, var(--line));
  filter: saturate(1.03);
}

.example-shot img,
.example-shot picture {
  display: block;
}

.example-shot img {
  border-radius: 26px;
}

.final-section {
  align-items: center;
}

.compact {
  display: grid;
  gap: 10px;
  margin-top: 0;
}

.compact input,
.compact button {
  width: 100%;
}

.site-footer {
  display: flex;
  gap: 18px;
  justify-content: space-between;
  padding: 18px 24px 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.privacy-page {
  width: min(100%, 760px);
  min-height: calc(100svh - 137px);
  margin: 0 auto;
  padding: 48px 24px;
}

.privacy-page h1 {
  margin-bottom: 24px;
}

.privacy-page h2 {
  max-width: 700px;
  margin: 36px 0 12px;
  font-size: 24px;
  line-height: 1.15;
}

.privacy-page h3 {
  max-width: 700px;
  margin: 22px 0 8px;
  color: var(--brand);
  font-size: 18px;
  line-height: 1.25;
}

.privacy-page ul {
  display: grid;
  gap: 10px;
  max-width: 700px;
  margin: 0 0 18px;
  padding-left: 24px;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.5;
}

.privacy-page a {
  color: var(--brand);
}

.content-page {
  width: min(100%, 820px);
}

.content-page h1 {
  max-width: 780px;
}

.content-page .eyebrow {
  margin: 0 0 12px;
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 13px;
  text-transform: uppercase;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 520ms ease, transform 520ms ease;
}

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

@keyframes settle {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes phoneDrift {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-8px);
  }
}

@media (max-width: 980px) {
  .hero,
  .section {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero {
    padding-top: 42px;
  }

  .hero-stage {
    min-height: 710px;
  }

  .phone-main,
  .phone-side {
    width: min(54vw, 300px);
  }

  .phone-main {
    left: 6%;
  }

  .phone-side {
    right: 8%;
  }
}

@media (max-width: 680px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .site-nav {
    width: 100%;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: thin;
  }

  h1 {
    font-size: clamp(42px, 14vw, 64px);
  }

  h2 {
    font-size: clamp(30px, 10vw, 44px);
  }

  p {
    font-size: 16px;
  }

  .hero {
    min-height: auto;
    padding: 32px 18px 52px;
  }

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

  .hero-stage {
    display: flex;
    position: relative;
    gap: 14px;
    min-height: 0;
    margin-inline: -18px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 18px 18px 12px;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
  }

  .hero-stage::after,
  .example-grid::after {
    content: "";
    position: sticky;
    right: -18px;
    z-index: 3;
    flex: 0 0 44px;
    margin-left: -44px;
    pointer-events: none;
    background: linear-gradient(90deg, transparent, var(--paper) 82%);
  }

  .hero-stage::after {
    align-self: stretch;
  }

  .phone-main,
  .phone-side {
    position: relative;
    inset: auto;
    flex: 0 0 min(72vw, 292px);
    width: auto;
    scroll-snap-align: center;
  }

  .phone-main {
    order: 2;
  }

  .phone-side {
    order: 1;
  }

  .section {
    padding: 54px 18px;
    scroll-margin-top: 124px;
  }

  .example-grid {
    position: relative;
    margin-inline: -18px;
    padding: 8px 18px 12px;
  }

  .example-grid::after {
    align-self: stretch;
  }

  .example-shot {
    flex: 0 0 min(72vw, 292px);
    width: auto;
    margin: 0;
  }

  .scroll-cue {
    display: block;
    margin: 10px 0 0;
    color: var(--muted);
    font-family: "IBM Plex Mono", monospace;
    font-size: 13px;
  }

  .site-footer {
    display: grid;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
  }

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