/*
  DropDuo website.
  Palette: ink #202124, cobalt #2558DD, white tile.
  Shape rule: interactive controls are full pills, surfaces use --radius (24px),
  the app tile uses the icon's 220/1024 corner ratio.
  Layers: nav 10, skip link 20. Nothing else sets z-index.
*/

@font-face {
  font-family: "Geist";
  src: url("assets/fonts/Geist-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Geist Mono";
  src: url("assets/fonts/GeistMono-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --ink: #202124;
  --cobalt: #2558DD;
  --cobalt-deep: #1C47B8;

  --bg: #F5F6F8;
  --surface: #FFFFFF;
  --surface-2: #ECEEF2;
  --text: #202124;
  --muted: #565A61;
  --line: rgb(32 33 36 / 0.09);
  --accent-text: #1F4FCC;
  --icon: #2558DD;
  --headline-accent: #2558DD;
  --token-bg: #FFFFFF;
  --shadow: 0 1px 2px rgb(32 40 70 / 0.06), 0 24px 60px -24px rgb(32 52 120 / 0.22);
  --shadow-lg: 0 2px 4px rgb(32 40 70 / 0.06), 0 50px 100px -40px rgb(28 60 160 / 0.38);

  --radius: 24px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --spring: cubic-bezier(0.34, 1.36, 0.64, 1);
  --font: "Geist", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;

  color-scheme: light dark;
}

:root[data-theme="dark"] {
  --bg: #0D0E10;
  --surface: #16181B;
  --surface-2: #1D2024;
  --text: #ECEDEF;
  --muted: #A0A5AD;
  --line: rgb(255 255 255 / 0.08);
  --accent-text: #8EA9F7;
  --shadow: 0 1px 0 rgb(255 255 255 / 0.04) inset, 0 24px 60px -24px rgb(0 0 0 / 0.7);
  --shadow-lg: 0 50px 100px -40px rgb(0 0 0 / 0.8), 0 0 0 1px rgb(255 255 255 / 0.06);
  --icon: #6E92F2;
  --headline-accent: #5B83F0;
  --token-bg: #1D2024;
  color-scheme: dark;
}

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

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, p, ul, ol { margin: 0; }
[hidden] { display: none !important; }
ul, ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 20;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  transform: translateY(-200%);
}
.skip:focus { transform: none; }

.wrap {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

.i {
  width: 1.15em;
  height: 1.15em;
  flex: none;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  font-weight: 560;
  font-size: 1rem;
  letter-spacing: -0.005em;
  white-space: nowrap;
  transition: transform 0.35s var(--ease), background-color 0.25s, box-shadow 0.35s var(--ease), color 0.25s;
}
.btn:active { transform: translateY(1px) scale(0.98); }

.btn--primary {
  background: var(--cobalt);
  color: #fff;
  box-shadow: 0 1px 0 rgb(255 255 255 / 0.18) inset, 0 10px 24px -10px rgb(37 88 221 / 0.65);
}
.btn--primary:hover {
  background: var(--cobalt-deep);
  box-shadow: 0 1px 0 rgb(255 255 255 / 0.18) inset, 0 16px 32px -12px rgb(37 88 221 / 0.75);
}

.btn--ghost {
  color: var(--text);
  box-shadow: 0 0 0 1px var(--line) inset;
  background: var(--surface);
}
.btn--ghost:hover { box-shadow: 0 0 0 1px color-mix(in srgb, var(--text) 30%, transparent) inset; }

.btn--small {
  min-height: 40px;
  padding: 0 18px;
  font-size: 0.9375rem;
}

/* Navigation */

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(170%) blur(18px);
  -webkit-backdrop-filter: saturate(170%) blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.nav.is-scrolled { border-bottom-color: var(--line); }

@media (prefers-reduced-transparency: reduce) {
  .nav { background: var(--bg); backdrop-filter: none; -webkit-backdrop-filter: none; }
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 650;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
}
.brand__tile {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 21.5%;
  background: #fff;
  box-shadow: 0 0 0 1px rgb(32 33 36 / 0.08), 0 4px 10px -4px rgb(32 52 120 / 0.3);
}
.brand__tile svg { width: 100%; height: 100%; }

.nav__primary { margin-left: auto; }

.nav__links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 0.9375rem;
  color: var(--muted);
}
.nav__links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  transition: color 0.2s;
}
.nav__links a:hover { color: var(--text); }
.nav__links .i { width: 18px; height: 18px; }

/* Utility actions sit apart from the text links, behind a hairline. */
.nav__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 24px;
  padding-left: 24px;
  border-left: 1px solid var(--line);
}

@media (max-width: 767px) {
  .nav__primary { display: none; }
  .nav__actions { margin-left: auto; padding-left: 0; border-left: 0; }
}

/* Theme toggle */

.theme-toggle {
  position: relative;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.2s, background-color 0.2s, transform 0.35s var(--ease);
}
.theme-toggle:hover { color: var(--text); background: var(--surface-2); }
.theme-toggle:active { transform: scale(0.94); }
.theme-toggle .i {
  position: absolute;
  width: 20px;
  height: 20px;
  transition: opacity 0.3s var(--ease), transform 0.5s var(--spring);
}
.theme-toggle .theme-toggle__sun { opacity: 0; transform: rotate(-90deg) scale(0.5); }
:root[data-theme="dark"] .theme-toggle .theme-toggle__sun { opacity: 1; transform: none; }
:root[data-theme="dark"] .theme-toggle .theme-toggle__moon { opacity: 0; transform: rotate(90deg) scale(0.5); }

::view-transition-old(root),
::view-transition-new(root) { animation-duration: 0.45s; }

/* Hero */

.hero {
  position: relative;
  overflow: clip;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center;
  gap: 48px;
  min-height: calc(100dvh - 68px);
  padding-top: 40px;
  padding-bottom: 72px;
}

.hero__title {
  font-size: clamp(2.5rem, 5.4vw, 4.6rem);
  font-weight: 680;
  line-height: 1.02;
  letter-spacing: -0.045em;
}
.hero__title .line {
  display: block;
  overflow: clip;
  padding-bottom: 0.06em;
}
.hero__title .line__in { display: inline-block; }
.line--cobalt { color: var(--headline-accent); }


.hero__sub {
  margin-top: 28px;
  max-width: 34ch;
  font-size: clamp(1.125rem, 1.5vw, 1.3125rem);
  line-height: 1.5;
  color: var(--muted);
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 40px;
}

.hero__visual {
  --rx: 0deg;
  --ry: 0deg;
  position: relative;
  aspect-ratio: 1;
  width: min(100%, 560px);
  justify-self: center;
  perspective: 1200px;
}

.halo {
  position: absolute;
  inset: -12%;
  background:
    radial-gradient(closest-side at 62% 60%, rgb(37 88 221 / 0.22), transparent 70%),
    radial-gradient(closest-side at 35% 35%, rgb(32 33 36 / 0.08), transparent 70%);
  filter: blur(8px);
  pointer-events: none;
}

.tile {
  position: absolute;
  inset: 15%;
  border-radius: 21.5%;
  background: #fff;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgb(32 33 36 / 0.05);
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  transform-style: preserve-3d;
  transition: transform 0.6s var(--ease);
}
.tile__mark { width: 100%; height: 100%; overflow: visible; }
.tile__mark .d { transform-box: view-box; }

.chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px 9px 11px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-size: 0.875rem;
  font-weight: 520;
  white-space: nowrap;
  box-shadow: var(--shadow), 0 0 0 1px var(--line);
}
.chip .i { color: var(--icon); }

.chip--a { top: 6%; left: 0; }
.chip--b { top: 30%; right: -4%; }
.chip--c { bottom: 24%; left: -6%; }
.chip--d { bottom: 4%; right: 6%; }

/* Section headings */

.section-title {
  max-width: 18ch;
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 650;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

/* Demo video: always on the dark stage it was rendered for */

.demo { padding: 96px 0 0; }

.demo__frame {
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #06070A;
  box-shadow: var(--shadow-lg);
}

.demo__video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Things you send: a list that drives a sticky transfer stage */

.sends { padding: 120px 0 40px; }

.sends__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 72px;
  align-items: start;
}

.sends .section-title {
  max-width: 13ch;
  font-size: clamp(2.25rem, 4.6vw, 3.75rem);
}
.sends__list ol { margin-top: 24px; }

.send {
  padding: 40px 0;
  cursor: pointer;
  transition: opacity 0.5s var(--ease);
}
.send + .send { border-top: 1px solid var(--line); }
.send:focus-visible { outline-offset: 6px; }
.js .send { opacity: 0.34; }
.js .send.is-active,
.js .send:hover,
.js .send:focus-visible { opacity: 1; }

.send__dir {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--text);
}
.send__dir .i { width: 20px; height: 20px; }
.send__dir .send__arrow { width: 14px; height: 14px; color: var(--muted); }
.send__dir svg:has(use[href$="brand-android"]) { color: #3DDC84; }

.send h3 {
  max-width: 20ch;
  font-size: clamp(1.5rem, 2.3vw, 1.875rem);
  font-weight: 620;
  line-height: 1.15;
  letter-spacing: -0.025em;
}
.send p { margin-top: 14px; max-width: 44ch; color: var(--muted); }

.stage {
  position: sticky;
  top: calc(50dvh - 170px);
  margin-top: 120px;
}

.stage__panel {
  position: relative;
  overflow: hidden;
  padding: 44px 36px 30px;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--line), var(--shadow);
}

/* Soft light that sits behind whichever device is receiving. */
.stage__panel::before {
  content: "";
  position: absolute;
  top: -30%;
  left: -10%;
  width: 60%;
  height: 120%;
  background: radial-gradient(closest-side, rgb(37 88 221 / 0.16), transparent);
  pointer-events: none;
  transform: translateX(var(--glow, 0%));
  transition: transform 0.9s var(--ease);
}
.stage[data-dir="m2a"] .stage__panel::before { --glow: 100%; }

.stage__row {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
}

.end { display: grid; justify-items: center; gap: 12px; }
.end__disc {
  position: relative;
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  border-radius: 999px;
  background: var(--bg);
  color: var(--text);
  box-shadow: 0 0 0 1px var(--line);
}
.end__disc svg { width: 40px; height: 40px; }
.end__disc--android { color: #3DDC84; }
.end__disc::after {
  content: "";
  position: absolute;
  inset: -7px;
  border-radius: inherit;
  border: 2px solid var(--cobalt);
  opacity: 0;
}
.end.is-receiving .end__disc::after { animation: ring 1.1s var(--ease); }
.end__name { color: var(--muted); font-size: 0.875rem; font-weight: 520; }

.track { position: relative; height: 64px; margin-bottom: 30px; }
.track__line,
.track__fill {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  margin-top: -1px;
  border-radius: 2px;
  background: var(--line);
}
.track__fill {
  background: var(--cobalt);
  transform: scaleX(0);
  transform-origin: left;
}
.track.is-broken .track__line {
  background: repeating-linear-gradient(90deg, var(--muted) 0 5px, transparent 5px 11px);
  opacity: 0.45;
}
.track.is-broken .track__fill { opacity: 0.3; }

.token {
  position: absolute;
  top: 50%;
  left: 0;
  margin-top: -28px;
  will-change: transform;
}
.token__card {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--token-bg);
  color: var(--icon);
  box-shadow: 0 0 0 1px var(--line), var(--shadow);
}
.token__card .i { width: 26px; height: 26px; }

.stage__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px 16px;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.875rem;
}
.stage__size { margin-left: 8px; color: var(--muted); }
.stage__status { color: var(--accent-text); }
.stage__status.is-quiet { color: var(--muted); }
.stage__how { margin-top: 6px; color: var(--muted); font-size: 0.9375rem; }

/* Pairing */

.pair { padding: 112px 0; }

.pair__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
  gap: 80px;
  align-items: center;
}

.pair__device { display: grid; place-items: center; }

/* Two light-theme screens: pairing in front, home behind. */
.phones {
  display: grid;
  width: min(100%, 460px);
}
.phones .phone { grid-area: 1 / 1; width: 68%; }
.phone--back { justify-self: end; align-self: start; }
.phone--front { justify-self: start; align-self: end; margin-top: 72px; }

.phone {
  width: min(100%, 310px);
  padding: 10px;
  border-radius: 48px;
  background: #18191C;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgb(255 255 255 / 0.06) inset;
}
.phone img {
  width: 100%;
  border-radius: 38px;
}

.lede {
  margin-top: 20px;
  max-width: 44ch;
  font-size: 1.1875rem;
  color: var(--muted);
}

.steps {
  position: relative;
  display: grid;
  gap: 36px;
  margin-top: 48px;
}
.steps::before,
.steps::after {
  content: "";
  position: absolute;
  top: 24px;
  bottom: 24px;
  left: 23px;
  width: 2px;
  border-radius: 2px;
  background: var(--line);
}
.steps::after {
  background: var(--cobalt);
  transform-origin: top;
}

.step {
  position: relative;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}
.step h3 { font-size: 1.1875rem; font-weight: 620; letter-spacing: -0.015em; margin-top: 10px; }
.step p { color: var(--muted); margin-top: 4px; max-width: 46ch; }
.step__icon {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--icon);
  box-shadow: 0 0 0 1px var(--line), var(--shadow);
}
.step__icon .i { width: 22px; height: 22px; }

/* Privacy: a diagram of the direct route, with the cloud detour crossed out */

.privacy { padding: 112px 0 40px; text-align: center; }
.privacy__title { margin: 0 auto; }

.route { max-width: 760px; margin: 40px auto 0; }
.route__svg { display: block; width: 100%; height: auto; overflow: visible; }

.route__detour {
  fill: none;
  stroke: var(--muted);
  stroke-width: 2;
  stroke-dasharray: 4 8;
  stroke-linecap: round;
  opacity: 0.45;
}
.route__cloud { fill: var(--surface); stroke: var(--line); stroke-width: 2; stroke-dasharray: 5 6; }
.route__cloud-icon { color: var(--muted); }
.route__note { fill: var(--muted); font-family: var(--mono); font-size: 15px; letter-spacing: 0.02em; }

.route__glow { stroke: var(--cobalt); stroke-width: 14; stroke-linecap: round; opacity: 0.14; }
.route__link { stroke: var(--cobalt); stroke-width: 3; stroke-linecap: round; }
.packet { fill: var(--headline-accent); opacity: 0; }
.route__lock { fill: var(--cobalt); }
.route__lock-icon { color: #fff; }

.route__device { fill: var(--surface); stroke: var(--line); stroke-width: 2; }
.route__apple { color: var(--text); }
.route__android { color: #3DDC84; }

.assurances {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 36px;
  margin-top: 40px;
  color: var(--muted);
}
.assurances li { display: inline-flex; align-items: center; gap: 10px; }
.assurances .i { width: 20px; height: 20px; color: var(--icon); }
.assurances b { color: var(--text); font-weight: 600; }

.privacy__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 28px;
  color: var(--accent-text);
  font-weight: 560;
}
.privacy__link .i { transition: transform 0.3s var(--ease); }
.privacy__link:hover .i { transform: translateX(3px); }

/* Download: one panel split like the mark, ink for Mac and cobalt for Android */

.download {
  padding: 72px 0 112px;
  background:
    radial-gradient(55% 45% at 50% 55%, color-mix(in srgb, var(--cobalt) 8%, transparent), transparent 100%);
}

.download__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 32px;
}
.download__version {
  padding-bottom: 8px;
  font-family: var(--mono);
  font-size: 0.8125rem;
  color: var(--muted);
  text-underline-offset: 4px;
}
a.download__version:hover { color: var(--accent-text); text-decoration: underline; }

.duo {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 48px;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.half {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 400px;
  padding: 52px 88px 44px 52px;
  color: #F3F4F6;
}
.half--mac { background: #202124; }
.half--android {
  padding: 52px 52px 44px 88px;
  background:
    radial-gradient(90% 70% at 100% 0%, rgb(255 255 255 / 0.14), transparent 60%),
    #2558DD;
}
:root[data-theme="dark"] .half--mac { background: #1B1C1F; box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.06); }

.half__logo { width: 44px; height: 44px; color: #fff; }
.half h3 {
  margin-top: 28px;
  font-size: clamp(1.75rem, 2.6vw, 2.25rem);
  font-weight: 650;
  line-height: 1.1;
  letter-spacing: -0.035em;
}
.half__req { margin-top: 8px; color: rgb(243 244 246 / 0.72); }
.half--android .half__req { color: rgb(255 255 255 / 0.88); }

.half__here {
  position: absolute;
  top: 24px;
  right: 24px;
  display: none;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.14);
  font-size: 0.8125rem;
  font-weight: 560;
}
.half--mac .half__here { right: 72px; }
.half.is-suggested .half__here { display: inline-flex; }

.half__actions,
.half__skeleton { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 36px; }

.dl {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 600;
  white-space: nowrap;
  transition: transform 0.35s var(--ease), background-color 0.25s, box-shadow 0.25s;
}
.dl:active { transform: translateY(1px) scale(0.98); }
.dl small { font-family: var(--mono); font-size: 0.75rem; font-weight: 500; opacity: 0.6; }
.dl small:empty { display: none; }
.dl--solid { background: #fff; color: #202124; box-shadow: 0 10px 24px -12px rgb(0 0 0 / 0.5); }
.dl--solid:hover { background: #E9ECF2; }
.half--android .dl--solid { color: #1C47B8; }
.dl--outline { color: #fff; box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.32); }
.dl--outline:hover { background: rgb(255 255 255 / 0.08); }
.dl:focus-visible { outline-color: #fff; }

.half__skeleton { display: none; }
.half__skeleton span {
  display: block;
  width: 176px;
  height: 54px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgb(255 255 255 / 0.1), rgb(255 255 255 / 0.2), rgb(255 255 255 / 0.1));
  background-size: 200% 100%;
}

.half__soon {
  display: none;
  align-self: flex-start;
  margin-top: 36px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.12);
  font-size: 0.9375rem;
}

.half__help {
  align-self: flex-start;
  margin-top: auto;
  padding-top: 28px;
  font-size: 0.9375rem;
  color: rgb(243 244 246 / 0.78);
  text-decoration: underline;
  text-decoration-color: rgb(255 255 255 / 0.3);
  text-underline-offset: 4px;
}
.half__help:hover { color: #fff; text-decoration-color: #fff; }

/* Desktop visitors get a QR code that downloads the APK on their phone. */
.qr { display: flex; align-items: center; gap: 22px; }
.qr__code {
  flex: none;
  width: 176px;
  height: 176px;
  padding: 14px;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 16px 32px -16px rgb(0 0 0 / 0.45);
}
.qr__code svg { display: block; width: 100%; height: 100%; }
.qr__text {
  display: grid;
  gap: 10px;
  max-width: 18ch;
  font-size: 1.0625rem;
  font-weight: 560;
  line-height: 1.35;
}
.qr__text a {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: rgb(255 255 255 / 0.85);
  text-decoration: underline;
  text-decoration-color: rgb(255 255 255 / 0.35);
  text-underline-offset: 4px;
}
.qr__text a:hover { color: #fff; }
.qr__text small { font-family: var(--mono); font-size: 0.75rem; opacity: 0.7; }

/* The app tile sits on the seam, so the two halves read as one mark. */
.duo__tile {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 104px;
  height: 104px;
  margin: -52px 0 0 -52px;
  border-radius: 21.5%;
  background: #fff;
  box-shadow: 0 24px 48px -16px rgb(0 0 0 / 0.55), 0 0 0 6px rgb(255 255 255 / 0.08);
}
.duo__tile svg { width: 100%; height: 100%; }

.pending {
  display: none;
  margin-top: 16px;
  padding: 28px 32px;
  border-radius: var(--radius);
  background: var(--surface-2);
}
.pending h3 { font-size: 1.25rem; font-weight: 640; letter-spacing: -0.02em; }
.pending p { margin-top: 8px; color: var(--muted); max-width: 60ch; }
.pending__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }

/* Release states, driven by main.js */
[data-release-state="loading"] [data-ready] { display: none; }
[data-release-state="loading"] .half__skeleton { display: flex; }
[data-release-state="pending"] [data-ready] { display: none; }
[data-release-state="pending"] [data-pending],
[data-release-state="pending"] [data-soon] { display: block; }
[data-release-state="ready"] [data-ready] { animation: fade-up 0.6s var(--ease) both; }

/* Footer */

.footer { border-top: 1px solid var(--line); }
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 40px;
  padding-bottom: 48px;
}
.footer__brand { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer__brand p { color: var(--muted); font-size: 0.9375rem; }
.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  color: var(--muted);
  font-size: 0.9375rem;
}
.footer__links a:hover { color: var(--text); }

/* Responsive */

@media (max-width: 899px) {
  .sends__grid { grid-template-columns: 1fr; }
  .stage { display: none; }
  .js .send { opacity: 1; }
  .send { padding: 32px 0; cursor: auto; }
}

@media (max-width: 1023px) {
  .pair__grid { gap: 48px; }
}

@media (max-width: 767px) {
  .wrap { padding: 0 20px; }
  .hero__grid {
    grid-template-columns: 1fr;
    min-height: auto;
    gap: 24px;
    padding-top: 36px;
    padding-bottom: 64px;
  }
  .hero__visual { width: min(100%, 400px); }
  .chip { font-size: 0.8125rem; padding: 7px 12px 7px 9px; }
  .chip--b { right: 0; }
  .chip--c { left: 0; }
  .sends, .pair, .download { padding: 80px 0; }
  .privacy { padding: 72px 0 16px; }
  .route__note { font-size: 22px; }
  .assurances { flex-direction: column; align-items: center; }
  .pair__grid { grid-template-columns: 1fr; }
  .pair__device { order: 2; }
  .phones { width: min(100%, 400px); }
  .duo { grid-template-columns: 1fr; border-radius: 24px; }
  .half, .half--android { min-height: 0; padding: 36px 28px 32px; }
  .half--mac { padding-bottom: 64px; }
  .half--android { padding-top: 64px; }
  .half--mac .half__here { right: 24px; }
  /* Stacked: the tile becomes a zero-height grid row on the seam. */
  .duo__tile {
    position: relative;
    top: auto;
    left: auto;
    order: 2;
    justify-self: center;
    width: 80px;
    height: 80px;
    margin: -40px 0;
  }
  .half--mac { order: 1; }
  .half--android { order: 3; }
  .duo--android-first .half--android { order: 1; padding: 36px 28px 64px; }
  .duo--android-first .half--mac { order: 3; padding: 64px 28px 32px; }
  .half__actions .dl { flex: 1 1 auto; justify-content: center; }
}

/* Motion: only with JS and only when the visitor allows it. */

@keyframes fade-up {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

@keyframes rise {
  from { transform: translateY(105%); }
  to { transform: none; }
}

@keyframes d-ink {
  from { opacity: 0; transform: translate(-150px, -120px) rotate(-6deg); }
  to { opacity: 1; transform: none; }
}

@keyframes d-cobalt {
  from { opacity: 0; transform: translate(150px, 120px) rotate(6deg); }
  to { opacity: 1; transform: none; }
}

@keyframes appear { from { opacity: 0; } to { opacity: 1; } }

/* Uses translate/scale so the pointer tilt on transform keeps working. */
@keyframes tile-in {
  from { opacity: 0; translate: 0 30px; scale: 0.94; }
  to { opacity: 1; translate: 0 0; scale: 1; }
}

@keyframes chip-in {
  from { opacity: 0; transform: translateY(12px) scale(0.92); }
  to { opacity: 1; transform: none; }
}

@keyframes drift {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -8px; }
}

@keyframes shimmer { to { background-position: -200% 0; } }

@keyframes ring {
  0% { opacity: 0.9; transform: scale(0.86); }
  100% { opacity: 0; transform: scale(1.18); }
}

@keyframes packet-right {
  0% { opacity: 0; transform: translateX(0); }
  12%, 82% { opacity: 1; }
  100% { opacity: 0; transform: translateX(380px); }
}

@keyframes packet-left {
  0% { opacity: 0; transform: translateX(0); }
  12%, 82% { opacity: 1; }
  100% { opacity: 0; transform: translateX(-380px); }
}

@keyframes draw { from { transform: scaleY(0); } to { transform: scaleY(1); } }

@media (prefers-reduced-motion: no-preference) {
  .js .hero__title .line__in { animation: rise 0.9s var(--ease) both; }
  .js .hero__title .line + .line .line__in { animation-delay: 0.12s; }
  .js .enter { animation: fade-up 0.8s var(--ease) both; animation-delay: var(--d, 0ms); }

  .js .tile { animation: tile-in 0.9s var(--ease) 0.1s both; }
  .js .d--ink { animation: d-ink 1s var(--spring) 0.35s both; }
  .js .d--cobalt { animation: d-cobalt 1s var(--spring) 0.45s both; }
  /* The woven overlap only makes sense once both letters have landed. */
  .js .d--weave { animation: appear 0.25s ease-out 1.15s both; }

  .js .chip {
    animation:
      chip-in 0.7s var(--spring) var(--d) both,
      drift 7s ease-in-out calc(var(--d) + 0.7s) infinite;
  }
  .js .chip--b { animation-duration: 0.7s, 8s; }
  .js .chip--c { animation-duration: 0.7s, 6.5s; }
  .js .chip--d { animation-duration: 0.7s, 9s; }

  .js .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
    transition-delay: var(--d, 0ms);
  }
  .js .reveal.is-in { opacity: 1; transform: none; }


  .half__skeleton span { animation: shimmer 1.4s linear infinite; }

  .packet--right { animation: packet-right 2.8s cubic-bezier(0.45, 0, 0.55, 1) infinite; }
  .packet--left { animation: packet-left 3.4s cubic-bezier(0.45, 0, 0.55, 1) 0.9s infinite; }
  .packet--right.packet--late { animation-delay: 1.4s; }
  .packet--left.packet--late { animation-delay: 2.6s; }

  .js .duo .half { transition: transform 0.9s var(--ease), opacity 0.9s var(--ease); }
  .js .duo:not(.is-in) .half--mac { opacity: 0; transform: translateX(-28px); }
  .js .duo:not(.is-in) .half--android { opacity: 0; transform: translateX(28px); }
  .js .duo .duo__tile { transition: transform 0.9s var(--spring) 0.35s, opacity 0.5s ease 0.35s; }
  .js .duo:not(.is-in) .duo__tile { opacity: 0; transform: scale(0.6) rotate(-10deg); }


  @supports (animation-timeline: view()) {

    .steps::after {
      animation: draw linear both;
      animation-timeline: view();
      animation-range: entry 40% cover 60%;
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tile { transition: none; }
}

/* First-launch help remains available even when release lookup fails. */
.install-guide { margin-top: 36px; padding: clamp(24px, 4vw, 44px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-2); scroll-margin-top: 96px; }
.install-guide h1 { font-size: clamp(1.4rem, 3vw, 1.8rem); }
.install-guide p { margin-top: 14px; max-width: 78ch; }
.install-guide ol { list-style: decimal; margin: 24px 0; padding-left: 24px; max-width: 78ch; }
.install-guide li { padding-left: 6px; margin-top: 12px; }
.install-guide a:not(.btn) { color: var(--accent-text); text-decoration: underline; text-underline-offset: 4px; }
.install-guide__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.install-guide .install-guide__note { font-size: 0.9375rem; color: var(--muted); }
.install-guide__trust { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.install-guide__trust h4 { font-size: 1.125rem; }

.install-page { padding: 112px 0 80px; }
.install-page .wrap { max-width: 1000px; }
.install-page__back { color: var(--accent-text); text-decoration: underline; text-underline-offset: 4px; }
.install-page .install-guide { margin-top: 24px; }
