/* By Two — site styles. Hand-written, no build step. */

@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/Inter-Variable-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/assets/fonts/JetBrainsMono-Variable-latin.woff2") format("woff2");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #110F0D;
  --bg-alt: #161311;
  --surface: #1D1917;
  --well: #26211E;
  --border: #2A2521;
  --rule: #221E1B;
  --text: #F4EFE9;
  --text-2: #CFC7BF;
  --muted: #A39B93;
  --label: #8C847C;
  --accent: #FF3101;
  --link-hover: #FF6A45;
  --cream: #F2ECE4;
  --cream-text: #1C1917;
  --cream-muted: #57534E;
  --cream-label: #B42300;
  --device-border: #2E2925;
  --placeholder-border: #4A433D;

  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --gutter: 80px;
  --header-h: 96px;
  --section-y: 140px;
  --max: 1280px;

  color-scheme: dark;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  /* Keep anchor jumps clear of the sticky header */
  scroll-padding-top: var(--header-h);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg, picture { display: block; max-width: 100%; }
picture[hidden] { display: none; }

h1, h2, h3, p, blockquote, figure, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }

a { color: inherit; text-decoration: none; }
a:hover { color: var(--link-hover); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

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

.skip-link {
  position: absolute;
  left: 16px; top: -100px;
  z-index: 100;
  padding: 12px 18px;
  border-radius: 12px;
  background: var(--text);
  color: var(--bg);
  font-weight: 600;
}
.skip-link:focus { top: 16px; }
.skip-link:hover { color: var(--bg); }

/* Layout */

.wrap {
  width: min(100% - 2 * var(--gutter), var(--max));
  margin-inline: auto;
}

.section { padding-block: var(--section-y); }

.label {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--accent);
}

.mono { font-family: var(--mono); }

.h2 {
  font-size: clamp(38px, 4.45vw, 64px);
  line-height: 1.02;
  font-weight: 600;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(17 15 13 / 0.92);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--rule);
}
.site-header .wrap {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.brand:hover { color: var(--text); }
.brand img { width: 36px; height: 36px; border-radius: 9px; }

.nav {
  display: flex;
  align-items: center;
  gap: 36px;
  font-size: 15px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-links a {
  color: var(--muted);
  transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--link-hover); }
/* The section you're in (set by site.js), or this page */
.nav-links a[aria-current] { color: var(--text); }

.pill-button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 22px;
  background: var(--accent);
  color: var(--bg);
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
}
.pill-button:hover { color: var(--bg); background: var(--link-hover); }

/* Store badge */

.store-badge { display: inline-block; flex-shrink: 0; border-radius: 10px; }
.store-badge img { width: 180px; height: 60px; }

/* App screenshots. Every capture arrives already framed in its device,
   so they're shown whole: no bezel, no cropping. */

.shot {
  position: relative;
  width: 100%;
  aspect-ratio: 1140 / 2294;
}
.shot img {
  width: 100%;
  height: auto;
}

/* Screenshot slot placeholder: shown when a slot's file hasn't landed yet */

.slot-ph {
  display: none;
  position: absolute;
  inset: 0;
  align-items: center;
  justify-content: center;
  padding: 16px;
  text-align: center;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.6;
  color: var(--label);
}
[data-slot].is-missing {
  background: var(--surface);
  border: 1px dashed var(--placeholder-border);
  border-radius: 16% / 8%;
}
[data-slot].is-missing img { display: none; }
[data-slot].is-missing .slot-ph { display: flex; }

/* Hero */

.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 640px) auto;
  justify-content: space-between;
  align-items: center;
  gap: 64px;
  padding-block: 72px 120px;
}
.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.status-pill {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid var(--device-border);
  border-radius: 17px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text-2);
}
.status-pill::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
}
.hero h1 {
  font-size: clamp(48px, 6.12vw, 88px);
  line-height: 0.98;
  font-weight: 600;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.hero-sub {
  max-width: 520px;
  font-size: clamp(18px, 1.46vw, 21px);
  line-height: 1.5;
  color: var(--muted);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  margin-top: 8px;
}
.fine-print {
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.6;
  color: var(--label);
}
.hero { overflow-x: clip; }
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  width: clamp(330px, 39vw, 560px);
}
.hero-visual .shot,
.viewer { width: 330px; flex-shrink: 0; }
.viewer { display: grid; }
.viewer > .shot { grid-area: 1 / 1; }
.js .viewer > .shot {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0s linear 0.35s;
}
.js .viewer > .shot.is-active {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.35s ease, visibility 0s;
}
.hero-visual::before {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 520px; height: 520px;
  translate: -50% -50%;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.1;
  filter: blur(90px);
  pointer-events: none;
}

/* What's new */

.whats-new {
  background: var(--bg-alt);
  border-block: 1px solid var(--rule);
}
.whats-new .wrap {
  display: flex;
  flex-direction: column;
  gap: 64px;
}
.whats-new-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 64px;
}
.whats-new-head .h2 { max-width: 760px; }
.side-note {
  max-width: 400px;
  flex-shrink: 0;
  font-size: 18px;
  line-height: 1.55;
  color: var(--muted);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.card {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 0 0 32px;
  border-radius: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  overflow: hidden;
}
.well {
  padding: 28px 0 0;
  background: var(--well);
}
.well .shot {
  max-width: 200px;
  margin-inline: auto;
  /* Show the top 85% of the phone; the rest is clipped at the panel edge. */
  aspect-ratio: 1140 / 1950;
  overflow: hidden;
}
.well .slot-ph { font-size: 12px; line-height: 1.5; }

.card-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0 32px;
}
.card-label {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--label);
}
.card h3 {
  font-size: clamp(22px, 1.8vw, 26px);
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.015em;
}
.card p {
  font-size: 16px;
  line-height: 1.5;
  color: var(--muted);
}

/* In the moment */

.moments .wrap {
  display: grid;
  grid-template-columns: minmax(0, 600px) auto;
  justify-content: space-between;
  align-items: start;
  gap: clamp(48px, 5.5vw, 80px);
}
.moments-copy {
  display: flex;
  flex-direction: column;
  gap: 56px;
}
.picker { display: flex; flex-direction: column; }
.moment {
  display: flex;
  gap: 24px;
  width: 100%;
  min-height: 44px;
  margin: 0;
  padding: 28px 0;
  background: transparent;
  border: 0;
  border-top: 2px solid var(--accent);
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.3s ease;
}
.moment-label {
  width: 72px;
  flex-shrink: 0;
  padding-top: 6px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--accent);
  transition: color 0.3s ease;
}
.moment-text {
  display: flex;
  flex-direction: column;
}
.moment-title {
  font-size: 24px;
  line-height: 1.25;
  font-weight: 600;
  color: var(--text);
  transition: color 0.3s ease;
}
/* The body opens and closes by animating its grid row between 1fr and 0fr. */
.moment-reveal {
  display: grid;
  grid-template-rows: 1fr;
  transition: grid-template-rows 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.3s ease;
}
.moment-body {
  min-height: 0;
  overflow: hidden;
  padding-top: 8px;
  font-size: 17px;
  line-height: 1.55;
  color: var(--muted);
}
/* With JS, only the selected row reads as active and shows its body. */
.js .moment[aria-pressed="false"] { border-top-color: var(--border); }
.js .moment[aria-pressed="false"] .moment-label { color: var(--label); }
.js .moment[aria-pressed="false"] .moment-title { color: var(--muted); }
.js .moment[aria-pressed="false"] .moment-reveal { grid-template-rows: 0fr; opacity: 0; }
.moment[aria-pressed="false"]:hover .moment-title { color: var(--text); }

.moments-visual {
  display: flex;
  justify-content: center;
  width: clamp(330px, 39vw, 560px);
}

.carousel { display: none; }

/* Over time */

.over-time .wrap {
  display: flex;
  flex-direction: column;
  gap: 56px;
}
.over-time { padding-top: 0; }
.facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
}
.fact {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.fact h3 {
  font-size: 22px;
  line-height: 1.25;
  font-weight: 600;
}
.fact p {
  font-size: 16px;
  line-height: 1.55;
  color: var(--muted);
}

/* The name */

.the-name {
  background: var(--cream);
  color: var(--cream-text);
  padding-block: 160px;
}
.the-name .wrap {
  display: flex;
  gap: 80px;
}
.name-mark {
  width: 320px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.name-mark .label { color: var(--cream-label); }
.name-wordmark {
  /* Same scale as the other section headings (.h2) */
  font-size: clamp(38px, 4.45vw, 64px);
  line-height: 1.02;
  font-weight: 600;
  letter-spacing: -0.03em;
  white-space: nowrap;
  color: var(--accent);
}
.story {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.story-quote {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.story-lead {
  font-size: clamp(25px, 2.36vw, 34px);
  line-height: 1.35;
  font-weight: 500;
  letter-spacing: -0.015em;
}
.story-body {
  max-width: 820px;
  font-size: clamp(17px, 1.39vw, 20px);
  line-height: 1.6;
  color: var(--cream-muted);
}
.story-by {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--cream-muted);
}

/* CTA */

.cta {
  padding-block: 160px;
  text-align: center;
}
.cta .wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}
.cta-icon { width: 112px; height: 112px; border-radius: 26px; }
.cta h2 {
  font-size: clamp(40px, 5vw, 72px);
  line-height: 1;
  font-weight: 600;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.cta p {
  font-size: clamp(17px, 1.39vw, 20px);
  line-height: 1.5;
  color: var(--muted);
}
.cta .store-badge { margin-top: 8px; }

/* Footer */

.site-footer { border-top: 1px solid var(--rule); }
.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  gap: 80px;
  padding-block: 56px 64px;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.footer-brand .brand { font-size: 16px; gap: 10px; }
.footer-brand .brand img { width: 28px; height: 28px; border-radius: 7px; }
.footer-links {
  display: flex;
  gap: 24px;
  font-size: 14px;
}
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--link-hover); }
.copyright {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--label);
}
.acknowledgement {
  max-width: 620px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.acknowledgement h2 {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--label);
}
.acknowledgement p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}

/* Privacy page */

.policy .wrap { padding-block: 96px 140px; }
.policy-head {
  max-width: 680px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-bottom: 48px;
  margin-bottom: 48px;
  border-bottom: 1px solid var(--rule);
}
.policy-head h1 {
  font-size: clamp(40px, 4.45vw, 64px);
  line-height: 1.02;
  font-weight: 600;
  letter-spacing: -0.03em;
}
.policy-body {
  max-width: 680px;
  margin-inline: auto;
  font-size: 17px;
  line-height: 1.65;
  color: var(--muted);
}
.policy-body h2 {
  margin: 48px 0 12px;
  font-size: 22px;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
}
.policy-body h2:first-child { margin-top: 0; }
.policy-body p { margin-bottom: 12px; }
.policy-body ul { margin: 0 0 12px; }
.policy-body li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
}
.policy-body li::before {
  content: "";
  position: absolute;
  left: 2px; top: 0.72em;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.policy-body strong { color: var(--text); font-weight: 500; }
.policy-body hr {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 48px 0 24px;
}

/* Tablet and phone: below ~900px */

@media (max-width: 899px) {
  :root {
    --gutter: 20px;
    --section-y: 80px;
  }

  .label { font-size: 13px; }

  :root { --header-h: 68px; }
  .brand { font-size: 17px; gap: 10px; }
  .brand img { width: 30px; height: 30px; border-radius: 8px; }
  .nav-links { display: none; }

  .store-badge img { width: 156px; height: 52px; }

  .hero .wrap {
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
    padding-block: 40px 72px;
  }
  .hero-copy { gap: 24px; }
  .status-pill { min-height: 30px; padding: 0 12px; gap: 8px; font-size: 12px; }
  .status-pill::before { width: 7px; height: 7px; }
  .hero h1 { line-height: 1; }
  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-top: 0;
  }
  .fine-print { font-size: 12px; }
  .hero-visual { width: 100%; }
  .hero-visual::before { width: min(340px, 100%); height: auto; aspect-ratio: 1; filter: blur(60px); }
  .hero-visual .shot { width: 272px; }

  .whats-new .wrap { gap: 36px; }
  .whats-new-head {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }
  .side-note { max-width: none; font-size: 17px; }
  .card-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .card { gap: 20px; padding: 0 0 24px; border-radius: 24px; }
  .well { padding: 24px 0 0; }
  .well .shot { max-width: 180px; }
  .card-body { gap: 8px; padding: 0 24px; }
  .card-label { font-size: 12px; }
  .card h3 { letter-spacing: -0.01em; }

  /* In the moment: picker gives way to a swipe carousel */
  .moments .wrap {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }
  .moments-copy { gap: 36px; }
  .moments-copy .section-head { gap: 16px; }
  .picker, .moments-visual { display: none; }

  .carousel {
    display: flex;
    gap: 16px;
    margin-inline: calc(-1 * var(--gutter));
    padding: 0 var(--gutter) 8px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    border-radius: 0;
  }
  .carousel::-webkit-scrollbar { display: none; }
  .carousel:focus-visible { outline-offset: -2px; }
  .slide {
    flex: 0 0 286px;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
  .slide .shot { width: 286px; }
  .slide-text {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-right: 8px;
  }
  .slide-meta {
    display: flex;
    justify-content: space-between;
    font-family: var(--mono);
    font-size: 12px;
    color: var(--label);
  }
  .slide h3 { font-size: 21px; line-height: 1.25; font-weight: 600; }
  .slide p { font-size: 16px; line-height: 1.55; color: var(--muted); }

  .over-time .wrap { gap: 32px; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; }
  .fact { gap: 8px; padding-top: 18px; }
  .fact h3 { font-size: 18px; }
  .fact p { font-size: 15px; line-height: 1.5; }

  .the-name { padding-block: 80px; }
  .the-name .wrap { flex-direction: column; gap: 24px; }
  .name-mark {
    width: auto;
    align-items: flex-start;
    gap: 12px;
  }
  .story, .story-quote { gap: 20px; }
  .story-by { font-size: 13px; }

  .cta { padding-block: 96px; }
  .cta .wrap { gap: 20px; }
  .cta-icon { width: 88px; height: 88px; border-radius: 20px; }
  .cta .store-badge { margin-top: 4px; }

  .site-footer .wrap {
    flex-direction: column;
    gap: 28px;
    padding-block: 40px 48px;
  }
  .site-footer .wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    justify-content: space-between;
    align-items: center;
  }
  .footer-brand { display: contents; }
  .acknowledgement { grid-column: 1 / -1; }
  .footer-brand .brand { font-size: 15px; }
  .footer-brand .brand img { width: 26px; height: 26px; }
  .footer-links { gap: 20px; }
  .copyright { grid-column: 1 / -1; order: 3; }
  .acknowledgement h2 { font-size: 11px; }

  .policy .wrap { padding-block: 56px 80px; }
  .policy-head { padding-bottom: 32px; margin-bottom: 32px; }
  .policy-body { font-size: 16px; }
}

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