@font-face {
  font-family: "Monaspace Neon";
  src: url("/assets/MonaspaceNeon-Regular.otf") format("opentype");
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --gradient-start: #f7f6f2;
  --gradient-end: #def0f5;
  --mesh: url("/assets/mesh-light.svg");
  --ink: #122438;
  --muted: #42586b;
  --surface: #fbfdfd;
  --line: #bdcdd7;
  --accent: #064e89;
  --button-text: #fff;
  --visual: #e2edf3;
}

:root[data-theme="light"] { color-scheme: light; }

:root[data-theme="dark"] {
  color-scheme: dark;
  --gradient-start: #111a29;
  --gradient-end: #09161a;
  --mesh: url("/assets/mesh-dark.svg");
  --ink: #edf5fc;
  --muted: #b3c6d5;
  --surface: #142330;
  --line: #3a5263;
  --accent: #90cfff;
  --button-text: #0b2030;
  --visual: #172c3b;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --gradient-start: #111a29;
    --gradient-end: #09161a;
    --mesh: url("/assets/mesh-dark.svg");
    --ink: #edf5fc;
    --muted: #b3c6d5;
    --surface: #142330;
    --line: #3a5263;
    --accent: #90cfff;
    --button-text: #0b2030;
    --visual: #172c3b;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { min-height: 100%; }
body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end)) fixed;
  font: 1rem/1.65 system-ui, sans-serif;
  isolation: isolate;
}
body::before, .hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: var(--mesh) repeat;
  background-size: min(100vw, 520px) 760px;
  mask-image: linear-gradient(90deg, #000, #0007, #000);
  opacity: .5;
}
body::before { position: fixed; }

a { color: var(--accent); text-underline-offset: .2em; }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
h1, h2, h3, h4, .brand { font-family: "Monaspace Neon", monospace; font-weight: 400; }
h1, h2, h3, h4, p, figure { margin: 0; }
h1 { font-size: clamp(2.45rem, 7vw, 5rem); line-height: 1.12; }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); line-height: 1.3; }
h3 { font-size: 1.05rem; line-height: 1.35; }
p, figcaption { color: var(--muted); }
img { display: block; max-width: 100%; }

.shell { width: min(100% - 2rem, 69rem); margin-inline: auto; }
.skip { position: absolute; z-index: 2; left: 1rem; top: 1rem; padding: .6rem 1rem; background: var(--surface); transform: translateY(-200%); }
.skip:focus { transform: none; }
.site-header { border-bottom: 1px solid var(--line); background: var(--gradient-start); }
.nav, .footer, .footer nav, .nav > div { display: flex; align-items: center; gap: .9rem 1.4rem; }
.nav, .footer { justify-content: space-between; flex-wrap: wrap; padding-block: 1rem; }
.nav a { color: var(--ink); text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { text-decoration: underline; }
.brand { display: inline-flex; align-items: center; gap: .6rem; }
.brand img, .app-icon { border-radius: 22%; }

.hero { position: relative; isolation: isolate; overflow: clip; border-bottom: 1px solid var(--line); }
.hero::before { background-color: var(--gradient-start); opacity: .85; }
.hero-layout { min-height: 36rem; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 1.5rem; padding-block: clamp(2rem, 6vw, 5rem); }
.hero-copy { position: relative; z-index: 1; }
.hero h1 { margin-top: .8rem; }
.tagline { margin-top: 1rem; color: var(--ink); font-size: clamp(1.3rem, 2.8vw, 1.9rem); line-height: 1.3; }
.intro { max-width: 33rem; margin-top: .75rem; font-size: 1.08rem; }
.stores { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.55rem; }
.stores img { height: 2.75rem; width: auto; }
.hero-device {
  width: min(100%, 14.5rem);
  margin-inline: auto;
}

.section { padding-block: clamp(2rem, 5vw, 3.8rem); }
.section > h2 { margin-bottom: 1.25rem; }
.section-intro { max-width: 42rem; margin-bottom: 1.75rem; }
.section-intro p { margin-top: .65rem; }
.feature-story {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  align-items: center;
  gap: clamp(1.5rem, 6vw, 5rem);
  padding-block: clamp(1.4rem, 4vw, 2.8rem);
  border-top: 1px solid var(--line);
}
.story-copy h3 { font-size: clamp(1.3rem, 2.7vw, 2rem); max-width: 22ch; }
.story-copy p { margin-top: .8rem; max-width: 37ch; }
.story-figure {
  display: grid;
  justify-items: center;
  gap: .8rem;
  padding: clamp(.85rem, 3vw, 1.65rem);
  background: var(--visual);
  border-radius: 1.1rem;
}
.story-figure img { width: 100%; height: auto; border-radius: .75rem; border: 1px solid var(--line); box-shadow: 0 8px 20px #07182429; }

.story-pair > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; gap: clamp(.5rem, 2vw, 1rem); width: min(100%, 26rem); }
.story-figure figcaption { font-size: .86rem; text-align: center; }
.setup, .gallery figure, .contact-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: .85rem;
}
.setup p { margin-top: .55rem; }
.gallery {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(9rem, 25vw, 11.2rem);
  align-items: start;
  gap: clamp(.9rem, 2.4vw, 1.65rem);
  overflow-x: auto;
  scroll-snap-type: x proximity;
  list-style: none;
  padding: 1rem .8rem 1.1rem;
  margin: .35rem 0 1.75rem;
  border-block: 1px solid var(--line);
}
.gallery li { scroll-snap-align: center; }
.gallery:focus-visible, video:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.gallery figure { background: none; border: 0; }
.gallery figcaption { margin-top: .65rem; font-size: .88rem; text-align: center; }

.phone-frame {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 9 / 19.5;
  overflow: hidden;
  padding: .25rem;
  border: 1px solid #526171;
  border-radius: clamp(.95rem, 3vw, 1.6rem);
  background: #111927;
  box-shadow: 0 8px 14px #07182426;
}
.gallery .phone-frame img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
  border-radius: .65rem;
}
.map-demo { width: min(100%, 15rem); aspect-ratio: auto; padding: 0; border: .35rem solid #111927; }
.map-demo video {
  display: block;
  width: 100%;
  aspect-ratio: 1320 / 2868;
  background: #111927;
}

.setup { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding: clamp(1rem, 4vw, 2rem); }
.setup p { max-width: 42rem; }
.button { display: inline-block; background: var(--accent); color: var(--button-text); border-radius: .45rem; padding: .5rem .95rem; text-decoration: none; font-weight: 600; }
.button:hover { text-decoration: underline; }
.footer { border-top: 1px solid var(--line); font-size: .92rem; }

.legal-page { width: min(100% - 2rem, 54rem); margin: 2rem auto; padding: clamp(1rem, 5vw, 3rem); overflow-wrap: anywhere; }
.legal-page h1 { font-size: clamp(1.75rem, 5vw, 3rem); }
.legal-page h2 { margin-top: 1.6rem; font-size: clamp(1.15rem, 3vw, 1.45rem); }
.legal-page p { margin-top: .65rem; }
.legal-page li { margin-block: .4rem; color: var(--muted); }
.privacy-document { max-width: 49rem; }
.privacy-document .updated { margin-block: .85rem 1.55rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.support-page { padding-block: clamp(2rem, 6vw, 5rem); }
.document-header { padding-bottom: 1.8rem; border-bottom: 1px solid var(--line); }
.document-header h1 { font-size: clamp(2rem, 5vw, 3.8rem); }
.document-header p { margin-top: .6rem; }
.support-layout { display: grid; grid-template-columns: minmax(11rem, 14rem) minmax(0, 1fr); gap: clamp(1.5rem, 5vw, 4rem); align-items: start; margin-top: 2rem; }
.support-index { position: sticky; top: 1.25rem; }
.support-index nav { display: grid; gap: .55rem; }
.support-index p { color: var(--ink); font-weight: 650; }
.support-content { background: var(--surface); border: 1px solid var(--line); border-radius: 1rem; padding: clamp(1rem, 4vw, 2.5rem); }
.support-content section { scroll-margin-top: 1rem; }
.support-content section + section { margin-top: 1.8rem; padding-top: 1.6rem; border-top: 1px solid var(--line); }
.support-content h2 { font-size: clamp(1.2rem, 3vw, 1.6rem); }
.support-content p { margin-top: .7rem; }
.support-content li { margin-top: .35rem; }
.support-content ol { padding-inline-start: 1.35rem; }
.diagnosis { margin-bottom: 0; }
.diagnosis dt { font-weight: 650; }
.diagnosis dd { margin: .25rem 0 .9rem; color: var(--muted); }
.support-content .contact-panel { padding: clamp(1rem, 3vw, 1.45rem); background: var(--visual); }
.contact-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .65rem 1rem; margin-top: 1rem; }
.support-address { overflow-wrap: anywhere; font-size: .92rem; }

@media (max-width: 43rem) {
  .support-layout, .feature-story { grid-template-columns: minmax(0, 1fr); }
  .support-index { position: static; }
  .support-index nav { grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); }
  .support-index p { grid-column: 1 / -1; }
}
@media (max-width: 40rem) {
  .hero-layout { grid-template-columns: 1fr; gap: 2rem; min-height: auto; padding-bottom: 2.6rem; }
  .hero-device { width: min(72%, 13rem); }
}

.theme-picker {
  display: inline-flex;
  padding: .17rem;
  margin: 0;
  min-inline-size: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: .8rem;
}
.theme-picker[hidden] { display: none; }
.visually-hidden, .theme-picker input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.theme-picker label { cursor: pointer; }
.theme-picker span { display: block; padding: .36rem .58rem; border-radius: 999px; }
.theme-picker input:checked + span { background: var(--accent); color: var(--button-text); }
.theme-picker input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (max-width: 30rem) {
  .nav { gap: .65rem; }
  .nav > div { flex-wrap: wrap; gap: .55rem .9rem; justify-content: flex-end; }
}
/* Screen aperture measured from Apple's 1350 × 2760 portrait PNG. */
.iphone-frame {
  position: relative;
  aspect-ratio: 1350 / 2760;
  isolation: isolate;
}
.iphone-frame > img {
  position: absolute;
  left: 5.333333%;
  top: 2.5%;
  width: 89.333333%;
  height: 95%;
  object-fit: contain;
  border-radius: 17% / 7.8%;
}
.iphone-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("/assets/iphone-17-pro-deep-blue.png") center / 100% 100% no-repeat;
  pointer-events: none;
}

/* Watched-node push guide */
.push-setup code { overflow-wrap: anywhere; }
.push-setup-figure { margin: 1.5rem 0; }
.push-setup-figure img { display: block; width: 100%; height: auto; border-radius: 14px; }
.push-setup-figure figcaption { margin-top: .6rem; font-size: .875rem; }
.push-steps { list-style: none; padding: 0; display: grid; gap: .75rem; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.push-steps li { margin: 0; padding: 1rem; border: 1px solid currentColor; border-radius: 14px; }
.push-steps strong, .push-steps span { display: block; }
.push-steps span { margin-top: .35rem; }
@media (max-width: 760px) { .push-steps { grid-template-columns: 1fr; } }
