/* Nunito, SIL Open Font License 1.1 (see assets/fonts/OFL.txt). Self-hosted so
   headings look the same in every browser; Safari's own rounded face comes first. */
@font-face {
  font-family: "Nunito";
  src: url("assets/fonts/nunito-latin.woff2") format("woff2");
  font-weight: 200 1000;
  font-style: normal;
  font-display: swap;
}

:root {
  --night-0: #050816;
  --night-1: #0a1130;
  --night-2: #13224f;
  --ink: #eef3ff;
  --ink-soft: #b9c4e0;
  --ink-faint: #8391b5;
  --line: rgba(255, 255, 255, 0.10);
  --panel: rgba(255, 255, 255, 0.045);
  --red: #e5343f;
  --red-hot: #ff5a5f;
  --gold: #f2c14b;
  --blue: #3b78f6;
  --rounded: ui-rounded, "SF Pro Rounded", "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --body: system-ui, -apple-system, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
}

* { box-sizing: border-box; }

html {
  background: var(--night-0);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body { margin: 0; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--rounded); line-height: 1.08; margin: 0; }
p { margin: 0 0 1em; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 50;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--night-0);
  border-radius: 10px;
  font-weight: 600;
}
.skip:focus { top: 12px; }

.wrap { width: min(1120px, 100% - 48px); margin-inline: auto; }
.centered { text-align: center; }
.dim { color: var(--ink-faint); }

/* Drawn over everything and never in the way of a click, like the app. */
#sky {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 20;
  pointer-events: none;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: clamp(720px, 100svh, 1040px);
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(60% 55% at 78% 22%, rgba(124, 92, 214, 0.34), transparent 70%),
    radial-gradient(50% 40% at 12% 90%, rgba(46, 104, 190, 0.30), transparent 70%),
    linear-gradient(180deg, var(--night-0) 0%, var(--night-1) 42%, var(--night-2) 100%);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(1240px, 100% - 48px);
  margin: 0 auto;
  padding-top: 62px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--rounded);
  font-weight: 800;
  font-size: 1.1rem;
  text-decoration: none;
}
.nav-links { display: flex; align-items: center; gap: 24px; font-size: 0.95rem; }
.nav-links a { text-decoration: none; color: var(--ink-soft); }
.nav-links a:hover { color: var(--ink); }
.nav-links .nav-cta {
  color: var(--ink);
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel);
}
.nav-links .nav-cta:hover { background: rgba(255, 255, 255, 0.1); }

.hero-grid {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 40px;
  align-items: center;
  width: min(1240px, 100% - 48px);
  margin: 0 auto;
  padding: 28px 0 88px;
}

.pitch-icon { width: 92px; height: 92px; margin: 0 0 16px -8px; filter: drop-shadow(0 14px 30px rgba(0, 0, 0, 0.5)); }
.pitch h1 {
  font-size: clamp(3.6rem, 8.4vw, 7rem);
  font-weight: 900;
  letter-spacing: -0.035em;
  text-shadow: 0 6px 40px rgba(0, 0, 0, 0.45);
}
.lede {
  font-family: var(--rounded);
  font-weight: 700;
  font-size: clamp(1.3rem, 2.3vw, 1.8rem);
  line-height: 1.25;
  margin: 16px 0 10px;
  max-width: 20ch;
}
.sub { color: var(--ink-soft); max-width: 36ch; margin-bottom: 30px; }

.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 14px; }
.cta, .ghost-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: 16px;
  font-family: var(--rounded);
  font-weight: 800;
  font-size: 1.12rem;
  text-decoration: none;
  transition: transform 0.15s ease, filter 0.15s ease, background 0.15s ease;
}
.cta {
  padding: 16px 26px;
  color: #fff;
  background: linear-gradient(180deg, var(--red-hot), var(--red));
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.35) inset, 0 14px 34px rgba(229, 52, 63, 0.38), 0 2px 6px rgba(0, 0, 0, 0.4);
}
.cta:hover { transform: translateY(-2px); filter: brightness(1.07); }
.cta:active { transform: translateY(0); filter: brightness(0.96); }
.ghost-cta { padding: 15px 22px; color: var(--ink); border: 1px solid rgba(255, 255, 255, 0.22); background: rgba(255, 255, 255, 0.06); }
.ghost-cta:hover { background: rgba(255, 255, 255, 0.13); }
.cta-meta { margin: 0; font-size: 0.9rem; color: var(--ink-faint); }
.cta-meta a { color: var(--ink-soft); }
.phone-note { margin-top: 16px; font-size: 0.95rem; color: var(--ink-soft); }
.link-button {
  font: inherit;
  color: var(--gold);
  background: none;
  border: 0;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

/* ---------- The pretend desktop ---------- */

.desk {
  display: grid;
  grid-template-columns: 304px minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  column-gap: 26px;
  align-items: start;
}

.menubar {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  height: 26px;
  padding: 0 14px 0 98px;
  margin-bottom: 9px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.menubar span { width: 14px; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, 0.5); }
.menubar span.wide { width: 58px; }
.flake-icon {
  position: relative;
  width: 26px;
  height: 20px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.22);
}
.flake-icon::before, .flake-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 1.6px;
  margin: -0.8px 0 0 -6px;
  border-radius: 1px;
  background: #fff;
  box-shadow: 0 0 0 0 #fff;
}
.flake-icon::before { transform: rotate(60deg); box-shadow: none; }
.flake-icon::after { transform: rotate(-60deg); }
.flake-icon { background-image: linear-gradient(#fff, #fff); background-size: 12px 1.6px; background-repeat: no-repeat; background-position: center; background-color: rgba(255, 255, 255, 0.22); }

/* A copy of the app's popover: same layout, same wording, working controls. */
.popover {
  position: relative;
  grid-column: 1;
  border-radius: 14px;
  background: rgba(58, 60, 72, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55), 0 2px 8px rgba(0, 0, 0, 0.35);
  -webkit-backdrop-filter: blur(22px);
  backdrop-filter: blur(22px);
  font-size: 13.5px;
  line-height: 1.3;
}
.popover::before {
  content: "";
  position: absolute;
  left: 104px;
  top: -8px;
  width: 16px;
  height: 16px;
  transform: rotate(45deg);
  border-radius: 3px 0 0 0;
  background: rgb(63, 65, 77);
  border-left: 1px solid rgba(255, 255, 255, 0.16);
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}
.pop-bulbs { position: relative; height: 22px; overflow: hidden; border-radius: 14px 14px 0 0; display: flex; justify-content: space-around; padding-top: 5px; }
.pop-bulbs::before { content: ""; position: absolute; left: 0; right: 0; top: 2px; height: 1.2px; background: #1f5a3a; }
.pop-bulbs i { width: 7px; height: 11px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 5px color-mix(in srgb, var(--c) 24%, transparent); opacity: var(--o, 1); }
.pop-head { display: flex; align-items: center; justify-content: space-between; padding: 6px 16px 12px; }
.pop-head h2 { font-size: 22px; font-weight: 800; }
.pop-head p { margin: 2px 0 0; color: rgba(255, 255, 255, 0.62); font-size: 13.5px; }
.pop-card { margin: 0 12px 10px; padding: 12px; border-radius: 12px; background: rgba(255, 255, 255, 0.07); display: grid; gap: 10px; }
.pop-row { display: flex; align-items: center; gap: 10px; }
.pop-title { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; font-size: 14.5px; }

.switch { position: relative; display: inline-block; width: 34px; height: 20px; flex: none; cursor: pointer; }
.switch.big { width: 42px; height: 25px; }
.switch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.switch i { position: absolute; inset: 0; border-radius: 999px; background: rgba(255, 255, 255, 0.22); transition: background 0.15s ease; }
.switch i::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: calc(50% - 1px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
  transition: transform 0.15s ease;
}
.switch input:checked + i { background: var(--blue); }
.switch input:checked + i::after { transform: translateX(calc(100% - 2px)); }
.switch input:focus-visible + i { outline: 3px solid var(--gold); outline-offset: 2px; }

.pop-slider { width: 100%; margin: 0; accent-color: var(--blue); }
.seg {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 1px;
  padding: 2px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.10);
}
.seg button { font: inherit; padding: 4px 2px; border: 0; border-radius: 6px; background: transparent; color: rgba(255, 255, 255, 0.86); cursor: pointer; }
.seg button[aria-pressed="true"] { background: rgba(255, 255, 255, 0.26); color: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3); }
.pop-pick { display: grid; grid-template-columns: 56px 1fr; align-items: center; gap: 6px; color: rgba(255, 255, 255, 0.62); }
.pop-pick select, .pop-menu select {
  font: inherit;
  color: #fff;
  width: 100%;
  padding: 4px 26px 4px 9px;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16'%3E%3Crect width='16' height='16' rx='4' fill='%233b78f6'/%3E%3Cpath d='M5 6.500 8 3.800l3 2.700M5 9.500l3 2.700 3-2.700' fill='none' stroke='white' stroke-width='1.500' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right 4px center / 16px no-repeat,
    rgba(255, 255, 255, 0.16);
}
.pop-actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 12px; padding-bottom: 12px; }
.pop-menu { flex: 1; }
.pop-menu select { padding: 7px 28px 7px 12px; border-radius: 8px; font-weight: 600; }
.pop-button { font: inherit; padding: 7px 14px; border: 0; border-radius: 8px; color: #fff; background: rgba(255, 255, 255, 0.14); cursor: pointer; }
.pop-button:hover { background: rgba(255, 255, 255, 0.22); }
.popover.off .pop-card, .popover.off .pop-menu { opacity: 0.45; }

.yard { grid-column: 2; position: relative; align-self: stretch; min-height: 440px; }
.win {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: min(270px, 92%);
  margin: 0;
  border-radius: 13px;
  background: rgba(24, 27, 38, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.13);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55), 0 2px 8px rgba(0, 0, 0, 0.35);
  touch-action: none;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  will-change: transform;
}
.win.small { width: min(220px, 80%); }
.win.dragging { cursor: grabbing; box-shadow: 0 44px 90px rgba(0, 0, 0, 0.6), 0 4px 12px rgba(0, 0, 0, 0.4); }
.win-bar { position: relative; display: flex; align-items: center; justify-content: center; height: 36px; border-radius: 12px 12px 0 0; background: rgba(255, 255, 255, 0.055); }
.win-bar h2 { font-family: var(--body); font-size: 0.78rem; font-weight: 600; color: var(--ink-soft); }
.dots { position: absolute; left: 13px; top: 12px; display: flex; gap: 8px; }
.dots i { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; }
.dots i:nth-child(2) { background: #febc2e; }
.dots i:nth-child(3) { background: #28c840; }
.win-body { padding: 16px 18px 18px; font-family: var(--rounded); font-size: 1rem; line-height: 1.35; }
.win-body p { margin: 0; }
.win-body p:first-child:not(.dim) { font-weight: 700; margin-bottom: 2px; }

/* ---------- Sections ---------- */

.band { padding: clamp(64px, 9vw, 112px) 0; }
.band + .band { border-top: 1px solid rgba(255, 255, 255, 0.06); }
.film { background: linear-gradient(180deg, #0d1736, var(--night-0)); padding-bottom: clamp(40px, 6vw, 72px); }
.film .wrap { width: min(1000px, 100% - 48px); }
.film video { display: block; width: 100%; height: auto; border-radius: 16px; border: 1px solid var(--line); background: #0b122c; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5); }

.band h2 { font-size: clamp(2.1rem, 4.4vw, 3.2rem); font-weight: 900; letter-spacing: -0.025em; margin-bottom: 18px; }
.band p { color: var(--ink-soft); }
.intro { max-width: 60ch; font-size: 1.08rem; margin-bottom: 34px; }

.split { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.copy p { max-width: 50ch; font-size: 1.05rem; }

figure { margin: 0; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pair img, .card img, .strips img {
  width: 100%;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #0b122c;
}
.pair img { aspect-ratio: 4 / 3.4; object-fit: cover; }
.pair figcaption { margin-top: 10px; font-size: 0.88rem; color: var(--ink-faint); }

.strips { display: grid; gap: 12px; }
.strips figure { position: relative; }
.strips img { border-radius: 14px; }
.strips figcaption {
  position: absolute;
  right: 12px;
  bottom: 9px;
  padding: 2px 11px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  background: rgba(5, 8, 22, 0.72);
  border: 1px solid var(--line);
}

.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px 22px; }
.card img { aspect-ratio: 16 / 10; object-fit: cover; }
.card figcaption { margin-top: 12px; font-size: 0.95rem; color: var(--ink-soft); line-height: 1.45; }
.card strong { display: block; font-family: var(--rounded); font-weight: 800; font-size: 1.14rem; color: var(--ink); margin-bottom: 2px; }
.also { margin: 34px 0 0; max-width: 62ch; }

.split.app { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
.facts { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 14px; }
.facts li { padding-left: 18px; border-left: 2px solid rgba(255, 255, 255, 0.16); color: var(--ink-soft); max-width: 52ch; }
.facts strong { color: var(--ink); font-weight: 650; }
.screens { position: relative; padding-bottom: 12%; }
.screen-settings { width: 90%; margin-left: auto; }
.screen-popover { position: absolute; left: -4%; bottom: 0; width: 52%; }

.closing { text-align: center; background: radial-gradient(60% 90% at 50% 100%, rgba(229, 52, 63, 0.16), transparent 70%); }
.closing .cta-meta { margin-top: 16px; }
.hash { margin: 10px 0 0; font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 0.72rem; color: var(--ink-faint); overflow-wrap: anywhere; }

.foot { padding: 34px 0 44px; border-top: 1px solid rgba(255, 255, 255, 0.06); font-size: 0.9rem; color: var(--ink-faint); text-align: center; }
.foot p { margin: 0; }

/* ---------- Smaller screens ---------- */

@media (max-width: 1040px) {
  .nav-links a:not(.nav-cta) { display: none; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; padding-bottom: 64px; }
  .pitch { text-align: center; }
  .pitch-icon { margin: 0 auto 14px; }
  .lede, .sub { margin-inline: auto; }
  .cta-row { justify-content: center; }
  .desk { width: min(640px, 100%); margin: 0 auto; }
  .split, .split.app { grid-template-columns: 1fr; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  html { font-size: 16px; }
  .wrap { width: calc(100% - 32px); }
  .nav, .hero-grid { width: calc(100% - 32px); }
  .nav { padding-top: 54px; }
  .desk { grid-template-columns: 1fr; }
  .menubar { padding-left: 50%; }
  .popover { width: min(304px, 100%); margin: 0 auto; }
  .popover::before { left: calc(50% + 5px); }
  .yard { grid-column: 1; min-height: 300px; margin-top: 26px; }
  .win { --x: 2% !important; --y: 4% !important; }
  .win.small { --x: 34% !important; --y: 52% !important; }
  .pair { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .strips img { height: 74px; object-fit: cover; object-position: left top; }
  .strips figure:nth-child(2) img { height: 116px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cta, .ghost-cta, .switch i, .switch i::after { transition: none; }
}
