@font-face {
  font-family: Inter;
  src: url("/assets/fonts/inter-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #000;
  --text: #f5f5f7;
  --secondary: #8a8a94;
  --hairline: rgba(255, 255, 255, 0.08);
  --ease-out: ease-out;
  --reveal: 400ms;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  color: var(--text);
  color-scheme: dark;
  font-family: Inter, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  min-height: 100svh;
  background: var(--bg);
  color: var(--text);
  display: flex;
  flex-direction: column;
}

.page-404 main {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--text);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  text-decoration-color: transparent;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

a:hover {
  text-decoration-color: currentColor;
}

a:focus-visible {
  outline: 1px solid var(--secondary);
  outline-offset: 4px;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: #111;
  color: var(--text);
  padding: 0.5rem 0.8rem;
  z-index: 20;
}

.skip:focus {
  top: 1rem;
}

/* Header (inner pages only)
   -------------------------------------------------- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.5rem;
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 5;
  border-bottom: 1px solid transparent;
}

.logo {
  display: block;
  width: min(9.25rem, 42vw);
  line-height: 0;
  text-decoration: none;
}

.logo img {
  width: 100%;
  height: auto;
  display: block;
}

.nav {
  display: flex;
  gap: 1.25rem;
  align-items: center;
}

.nav a {
  color: var(--secondary);
  text-decoration: none;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

/* Hero
   -------------------------------------------------- */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding:
    max(4.5rem, env(safe-area-inset-top))
    1.25rem
    max(2.75rem, env(safe-area-inset-bottom));
}

.wm {
  position: relative;
  width: min(88vw, 64rem);
  line-height: 0;
  overflow: hidden;
  isolation: isolate;
  animation: reveal 700ms cubic-bezier(0.2, 0.7, 0, 1) both;
}

.wordmark {
  width: 100%;
  height: auto;
  display: block;
}

/* 2px vertical slit centered on the 0 (71.467% of the mark), then full width */
@keyframes reveal {
  from {
    clip-path: inset(0 calc(28.533% - 1px) 0 calc(71.467% - 1px));
  }
  to {
    clip-path: inset(0 0 0 0);
  }
}

.sheen {
  position: absolute;
  top: -40%;
  bottom: -40%;
  left: 0;
  width: 14%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.04) 28%,
    rgba(255, 255, 255, 0.72) 50%,
    rgba(255, 255, 255, 0.04) 72%,
    transparent 100%
  );
  transform: translateX(-160%) rotate(20deg);
  transform-origin: center;
  mix-blend-mode: screen;
  pointer-events: none;
  opacity: 0;
  animation: sheen 600ms ease-in-out 500ms 1 both;
}

@keyframes sheen {
  0% {
    transform: translateX(-160%) rotate(20deg);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  85% {
    opacity: 1;
  }
  100% {
    transform: translateX(780%) rotate(20deg);
    opacity: 0;
  }
}

.wordmark .cross {
  animation: glint 280ms ease-in-out 1000ms 1 both;
}

@keyframes glint {
  0%,
  100% {
    filter: brightness(1);
  }
  40% {
    filter: brightness(2.15);
  }
}

.verse {
  margin: 1.7rem 0 0;
  color: #8a8a94;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-indent: 0.32em;
  text-transform: uppercase;
  line-height: 1.7;
}

.verse .ref {
  white-space: nowrap;
}

.hero-fade {
  animation: rise 400ms ease-out 1100ms both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.hero .store {
  margin-top: 2.15rem;
}

/* App Store button
   -------------------------------------------------- */
.store {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 1.15rem 0.65rem 0.95rem;
  border: 1px solid var(--hairline);
  border-radius: 0.7rem;
  color: var(--text);
  text-decoration: none;
  background: transparent;
  letter-spacing: 0;
}

.store:hover {
  border-color: rgba(255, 255, 255, 0.22);
  text-decoration: none;
}

.store svg {
  width: 1.55rem;
  height: 1.55rem;
  display: block;
  flex: none;
}

.store .store-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.1;
  text-align: left;
}

.store small {
  font-size: 0.58rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--secondary);
}

.store strong {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

/* Sections
   -------------------------------------------------- */
.section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 5.5rem 1.5rem;
}

.section-screen {
  min-height: 100svh;
}

.one-liner {
  margin: 0;
  text-align: center;
  max-width: 20em;
  font-size: clamp(1.55rem, 4.2vw, 2.2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--text);
}

.one-liner .line {
  display: block;
}

/* Device
   -------------------------------------------------- */
.device {
  position: relative;
  width: min(22.5rem, 72vw);
  margin: 0 auto;
}

.device-light {
  position: absolute;
  left: 50%;
  top: -22%;
  width: 90%;
  height: 46%;
  transform: translateX(-50%);
  background: radial-gradient(
    ellipse at center,
    rgba(255, 255, 255, 0.2) 0%,
    rgba(255, 255, 255, 0.05) 38%,
    transparent 70%
  );
  filter: blur(18px);
  pointer-events: none;
  z-index: 0;
}

.device-body {
  position: relative;
  z-index: 1;
  background: #070707;
  border-radius: 2.55rem;
  padding: 0.58rem;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 0 0 1px var(--hairline),
    0 28px 70px rgba(0, 0, 0, 0.7);
}

.device-screen {
  border-radius: 2.05rem;
  overflow: hidden;
  background: #000;
  line-height: 0;
}

.device-screen img {
  display: block;
  width: 100%;
  height: auto;
}

/* Beats
   -------------------------------------------------- */
.beats {
  width: min(28rem, 100%);
  display: flex;
  flex-direction: column;
  gap: 3.4rem;
}

.beat h2 {
  margin: 0 0 0.55rem;
  color: var(--secondary);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.beat p {
  margin: 0;
  color: var(--text);
  font-size: 1.15rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.45;
}

.close-block {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

.close-block .closing {
  flex: 1 1 auto;
  min-height: 0;
  gap: 3.75rem;
  padding-bottom: 2.5rem;
}

.cta {
  min-height: auto;
  padding: 0;
  text-align: center;
}

.cta-note {
  margin: 1.15rem 0 0;
  color: var(--secondary);
  font-size: 17px;
  font-weight: 400;
  letter-spacing: -0.01em;
}

/* Footer
   -------------------------------------------------- */
.site-footer {
  padding: 1.7rem 1.5rem max(2.2rem, env(safe-area-inset-bottom));
  border-top: 1px solid var(--hairline);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  color: var(--secondary);
  font-size: 0.82rem;
  letter-spacing: -0.01em;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.15rem;
}

.site-footer a {
  color: var(--secondary);
  text-decoration: none;
}

.site-footer .brand {
  color: var(--secondary);
  text-decoration: none;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.site-footer a:hover {
  color: var(--text);
}

/* Legal + support
   -------------------------------------------------- */
.legal,
.support {
  width: min(36rem, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 4.5rem 0 5.5rem;
}

.legal h1,
.support h1,
.lost h1 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.85rem, 5vw, 2.4rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--text);
}

.lede,
.effective {
  margin: 0 0 2.4rem;
  color: var(--secondary);
  font-size: 17px;
}

.legal h2,
.support h2 {
  margin: 2.4rem 0 0.7rem;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
}

.legal p,
.support p,
.legal li,
.support li,
.legal dd {
  color: var(--text);
  font-size: 17px;
  line-height: 1.5;
  letter-spacing: -0.01em;
}

.legal p,
.support p {
  margin: 0 0 1rem;
}

.legal ul,
.support ul {
  margin: 0 0 1rem;
  padding: 0 0 0 1.15rem;
}

.legal li,
.support li {
  margin: 0 0 0.4rem;
}

.collect {
  margin: 0 0 1rem;
}

.collect div {
  margin: 0 0 1.1rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--hairline);
}

.collect div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.collect dt {
  margin: 0 0 0.2rem;
  color: var(--text);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.collect dd {
  margin: 0;
  color: var(--secondary);
}

.ph {
  display: inline;
  padding: 0.02em 0.28em;
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  border-bottom: 1px dashed var(--secondary);
}

.faq {
  margin: 1.4rem 0 0;
}

.faq h2 {
  margin: 0 0 0.55rem;
}

.faq section {
  padding: 1.5rem 0;
  border-top: 1px solid var(--hairline);
}

.faq section:last-child {
  border-bottom: 1px solid var(--hairline);
}

.lost {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 1.5rem 3rem;
}

.lost p {
  margin: 0;
  color: var(--secondary);
}

/* Scroll reveal (IO adds .in)
   -------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity var(--reveal) var(--ease-out), transform var(--reveal) var(--ease-out);
}

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

@media (scripting: none) {
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* Shot helpers (used only when taking screenshots)
   -------------------------------------------------- */
/* Mid-open slit centered on the 0 (about 22% of the mark wide). */
[data-shot="mid"] .wm {
  animation: none !important;
  clip-path: inset(0 14.533% 0 57.467%);
}

[data-shot="mid"] .sheen,
[data-shot="mid"] .wordmark .cross,
[data-shot="mid"] .hero-fade {
  animation: none !important;
}

[data-shot="mid"] .sheen {
  opacity: 0;
}

[data-shot="mid"] .hero-fade {
  opacity: 0;
  transform: translateY(12px);
}

[data-shot="done"] .wm,
[data-shot="done"] .sheen,
[data-shot="done"] .wordmark .cross,
[data-shot="done"] .hero-fade {
  animation: none !important;
}

[data-shot="done"] .wm {
  clip-path: inset(0 0 0 0);
}

[data-shot="done"] .sheen {
  display: none;
}

[data-shot="done"] .hero-fade,
[data-shot="done"] .reveal {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .wm,
  .sheen,
  .wordmark .cross,
  .hero-fade {
    animation: none !important;
  }

  .wm {
    clip-path: none;
  }

  .sheen {
    display: none;
  }

  .hero-fade,
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media (max-width: 720px) {
  .logo {
    width: min(7.5rem, 38vw);
  }

  .verse {
    letter-spacing: 0.28em;
    text-indent: 0;
    max-width: 20rem;
  }

  .verse .dot {
    display: none;
  }

  .verse .ref {
    display: block;
    margin-top: 0.55em;
    letter-spacing: 0.32em;
  }

  .section {
    padding: 4.5rem 1.35rem;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.9rem;
  }

  .cta {
    padding-bottom: 4.5rem;
  }

  .beats {
    gap: 2.8rem;
  }
}

@media (min-width: 721px) {
  br.only-phone {
    display: none;
  }
}
