:root {
  --ink: #131318;
  --ink-soft: #3a3a45;
  --ink-mute: #6b6b78;
  --paper: #fbf8f3;
  --paper-2: #f3eee5;
  --paper-3: #ede6d8;
  --line: #1b1b22;
  --rule: rgba(19, 19, 24, 0.12);

  --blue: #1e6be6;
  --violet: #6b3fd4;
  --emerald: #2fa56a;
  --teal: #0fa29b;
  --sun: #f5c542;
  --rose: #e26a6a;

  --grad-brand: linear-gradient(135deg, #1e6be6 0%, #6b3fd4 50%, #2fa56a 100%);
  --grad-sky: linear-gradient(180deg, #eaf1fe 0%, #fbf8f3 80%);
  --grad-warm: linear-gradient(180deg, #fbf8f3 0%, #f3eee5 100%);

  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-xl: 42px;

  --shadow-sm:
    0 1px 2px rgba(19, 19, 24, 0.05), 0 2px 8px rgba(19, 19, 24, 0.04);
  --shadow-md:
    0 4px 14px rgba(19, 19, 24, 0.08), 0 12px 36px rgba(19, 19, 24, 0.06);
  --shadow-lg:
    0 8px 22px rgba(19, 19, 24, 0.1), 0 32px 64px rgba(19, 19, 24, 0.12);

  --display: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* `clip` prevents horizontal overflow WITHOUT turning <body> into a
     scroll container. `overflow-x: hidden` would force overflow-y to
     `auto`, making the body a scroller — which makes the sticky nav
     mis-composite (it visibly detaches mid-viewport) during smooth
     anchor scrolling. `clip` keeps overflow-y `visible`, so the sticky
     nav stays pinned to the top correctly. */
  overflow-x: clip;
}

/* Paper grain overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.35;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.035 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

::selection {
  background: var(--sun);
  color: var(--ink);
}

a {
  color: inherit;
  text-decoration: none;
}
button {
  font-family: inherit;
  cursor: pointer;
  border: 0;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 28px;
  position: relative;
  z-index: 2;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: '';
  width: 22px;
  height: 1px;
  background: var(--ink-mute);
}

/* ─────────────────────────────────────────────────────────
   Navigation
   ───────────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  /* Opaque background. A translucent nav + backdrop-filter looks nice when
     idle, but Chrome repaints the blurred backdrop a frame late while
     scrolling, so sharp page content visibly bleeds THROUGH the nav as it
     passes underneath. A solid background guarantees the nav is never
     see-through, in any browser or scroll state. */
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}
.brand-name {
  font-family: var(--display);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.02em;
  font-variation-settings:
    'SOFT' 50,
    'WONK' 1;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  font-size: 14.5px;
  font-weight: 500;
}
.nav-links a {
  color: var(--ink-soft);
  transition: color 0.2s;
}
.nav-links a:hover {
  color: var(--ink);
}
.nav-cta {
  background: #131318 !important;
  color: #fbf8f3 !important;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  display: inline-block;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(19, 19, 24, 0.18);
}
@media (max-width: 820px) {
  .nav-links a:not(.nav-cta) {
    display: none;
  }
}

/* ─────────────────────────────────────────────────────────
   Hero
   ───────────────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: 88px 0 140px;
  overflow: hidden;
  background: var(--grad-warm);
}
.hero::after {
  content: '';
  position: absolute;
  top: 60px;
  right: -160px;
  width: 520px;
  height: 520px;
  background: radial-gradient(
    circle at center,
    rgba(107, 63, 212, 0.18),
    transparent 65%
  );
  filter: blur(30px);
  z-index: 0;
}
.hero::before {
  content: '';
  position: absolute;
  bottom: -120px;
  left: -120px;
  width: 460px;
  height: 460px;
  background: radial-gradient(
    circle at center,
    rgba(47, 165, 106, 0.22),
    transparent 65%
  );
  filter: blur(30px);
  z-index: 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 2;
}
@media (max-width: 900px) {
  .hero {
    padding: 56px 0 100px;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

.hero-copy .eyebrow {
  margin-bottom: 24px;
}
.hero h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(44px, 6.5vw, 82px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  margin: 0 0 28px;
  font-variation-settings:
    'opsz' 144,
    'SOFT' 30;
}
.hero h1 em {
  font-style: italic;
  font-weight: 300;
  font-variation-settings:
    'opsz' 144,
    'SOFT' 100,
    'WONK' 1;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  padding-right: 4px;
}
.hero p.lede {
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0 0 40px;
  max-width: 520px;
}
.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  transition:
    transform 0.2s,
    box-shadow 0.2s,
    background 0.2s;
  white-space: nowrap;
}
.btn-primary {
  background: #131318 !important;
  color: #fbf8f3 !important;
  box-shadow: var(--shadow-md);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.btn-primary .arrow {
  transition: transform 0.2s;
}
.btn-primary:hover .arrow {
  transform: translateX(4px);
}

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--line);
}
.btn-secondary:hover {
  background: var(--ink);
  color: var(--paper);
}

.hero-meta {
  margin-top: 44px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.avatar-stack {
  display: flex;
}
.avatar-stack span {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2.5px solid var(--paper);
  margin-left: -10px;
  display: inline-block;
}
.avatar-stack span:first-child {
  margin-left: 0;
}
.avatar-stack span:nth-child(1) {
  background: linear-gradient(135deg, #ffb88c, #de6262);
}
.avatar-stack span:nth-child(2) {
  background: linear-gradient(135deg, #43c6ac, #191654);
}
.avatar-stack span:nth-child(3) {
  background: linear-gradient(135deg, #fdc830, #f37335);
}
.avatar-stack span:nth-child(4) {
  background: linear-gradient(135deg, #667db6, #0082c8);
}
.meta-text {
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.4;
}
.meta-text strong {
  color: var(--ink);
  font-weight: 600;
}

/* ─────────────────────────────────────────────────────────
   Phone mockups (pure CSS)
   ───────────────────────────────────────────────────────── */
.phone {
  position: relative;
  width: 280px;
  aspect-ratio: 9 / 19.5;
  background: #0c0c10;
  border-radius: 42px;
  padding: 10px;
  box-shadow:
    0 0 0 2px #22222a,
    0 30px 60px rgba(19, 19, 24, 0.25),
    0 12px 24px rgba(19, 19, 24, 0.15);
}
.phone::before {
  content: '';
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 88px;
  height: 26px;
  background: #0c0c10;
  border-radius: 999px;
  z-index: 4;
}
.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 34px;
  overflow: hidden;
  background: var(--paper);
  position: relative;
  display: flex;
  flex-direction: column;
}
.status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 22px 6px;
  font-family: var(--body);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  z-index: 5;
}
.status-bar .icons {
  display: flex;
  gap: 5px;
  align-items: center;
}
.status-bar .icons svg {
  width: 14px;
  height: 14px;
}

/* Hero phones (two, overlapping) */
.hero-phones {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 620px;
}
.hero-phones .phone-a {
  transform: rotate(-7deg) translateX(-40px);
  z-index: 2;
}
.hero-phones .phone-b {
  transform: rotate(6deg) translateX(40px) translateY(40px);
  z-index: 1;
  position: absolute;
}
@media (max-width: 900px) {
  .hero-phones {
    min-height: 560px;
  }
  .hero-phones .phone-a {
    transform: rotate(-5deg) translateX(-30px);
  }
  .hero-phones .phone-b {
    transform: rotate(5deg) translateX(30px) translateY(30px);
  }
}

.floating-chip {
  position: absolute;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 16px;
  padding: 10px 14px;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  z-index: 5;
}
.floating-chip .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 0 4px rgba(47, 165, 106, 0.18);
}
.chip-match {
  top: 70px;
  left: -20px;
  animation: float 5s ease-in-out infinite;
}
.chip-activity {
  bottom: 90px;
  right: -30px;
  animation: float 5s ease-in-out infinite 1.8s;
}
@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}
@media (max-width: 500px) {
  .chip-match {
    left: 0;
    top: 40px;
  }
  .chip-activity {
    right: 0;
    bottom: 60px;
  }
}

/* ─── Phone Screen A: Discover feed ─── */
.screen-discover {
  background: var(--paper);
  flex: 1;
  padding: 8px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.screen-title {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 2px 0 6px;
}
.screen-search {
  background: var(--paper-2);
  border-radius: 12px;
  padding: 9px 12px;
  font-size: 11px;
  color: var(--ink-mute);
  display: flex;
  align-items: center;
  gap: 8px;
}
.screen-tabs {
  display: flex;
  gap: 14px;
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-mute);
  border-bottom: 1px solid var(--rule);
  padding-bottom: 8px;
  margin-bottom: 2px;
}
.screen-tabs .active {
  color: var(--ink);
  position: relative;
}
.screen-tabs .active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -9px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}
.buddy-card {
  background: var(--paper-2);
  border-radius: 14px;
  padding: 10px;
  display: flex;
  gap: 10px;
  align-items: center;
}
.buddy-avatar {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  flex-shrink: 0;
}
.b1 {
  background: linear-gradient(135deg, #ffb88c, #de6262);
}
.b2 {
  background: linear-gradient(135deg, #43c6ac, #191654);
}
.b3 {
  background: linear-gradient(135deg, #f5c542, #f37335);
}
.buddy-info {
  flex: 1;
  min-width: 0;
}
.buddy-name {
  font-size: 12.5px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.match-pill {
  font-family: var(--mono);
  font-size: 9px;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--grad-brand);
  color: white;
  font-weight: 600;
}
.buddy-tags {
  font-size: 10px;
  color: var(--ink-mute);
  margin-top: 2px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.buddy-tags span {
  background: var(--paper);
  padding: 2px 7px;
  border-radius: 999px;
}
.buddy-dist {
  font-size: 9.5px;
  color: var(--ink-mute);
  margin-top: 3px;
  font-family: var(--mono);
}

/* ─── Phone Screen B: Activity detail ─── */
.screen-activity {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.activity-hero {
  height: 130px;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.35) 100%),
    linear-gradient(135deg, #1e6be6, #6b3fd4 60%, #2fa56a);
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 10px 14px;
}
.activity-hero .back {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  display: grid;
  place-items: center;
  font-size: 14px;
}
.activity-hero .title {
  color: white;
  font-family: var(--display);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.1;
}
.activity-body {
  padding: 14px;
  background: var(--paper);
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.activity-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  color: var(--ink-soft);
}
.activity-row .ico {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--paper-2);
  display: grid;
  place-items: center;
  font-size: 13px;
}
.attendance-box {
  margin-top: 4px;
  padding: 12px;
  border-radius: 12px;
  background: linear-gradient(135deg, #1e6be6 0%, #6b3fd4 100%);
  color: white;
}
.attendance-box .label {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.85;
}
.attendance-box .code {
  font-family: var(--mono);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: 0.18em;
  margin-top: 4px;
}
.activity-cta {
  margin-top: auto;
  background: var(--ink);
  color: var(--paper);
  padding: 12px;
  border-radius: 12px;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
}

/* ─────────────────────────────────────────────────────────
   Section wrapper
   ───────────────────────────────────────────────────────── */
section {
  padding: 120px 0;
  position: relative;
  z-index: 2;
}
@media (max-width: 700px) {
  section {
    padding: 84px 0;
  }
}
.section-header {
  max-width: 720px;
  margin: 0 auto 72px;
  text-align: center;
}
.section-header.left {
  margin-left: 0;
  text-align: left;
}
.section-header h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin: 18px 0 20px;
  font-variation-settings:
    'opsz' 144,
    'SOFT' 40;
}
.section-header h2 em {
  font-style: italic;
  font-variation-settings:
    'opsz' 144,
    'SOFT' 100,
    'WONK' 1;
  font-weight: 300;
}
.section-header p {
  font-size: 18px;
  color: var(--ink-soft);
  line-height: 1.55;
  margin: 0;
}

/* ─────────────────────────────────────────────────────────
   Overview
   ───────────────────────────────────────────────────────── */
.overview {
  background:
    radial-gradient(
      ellipse at 15% 20%,
      rgba(30, 107, 230, 0.06),
      transparent 55%
    ),
    radial-gradient(
      ellipse at 85% 85%,
      rgba(47, 165, 106, 0.07),
      transparent 55%
    ),
    #f4f6fa;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.overview::before,
.overview::after {
  content: '';
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.45;
  pointer-events: none;
}
.overview::before {
  top: -80px;
  left: -120px;
  background: radial-gradient(
    circle,
    rgba(107, 63, 212, 0.25),
    transparent 70%
  );
}
.overview::after {
  bottom: -100px;
  right: -100px;
  background: radial-gradient(
    circle,
    rgba(47, 165, 106, 0.22),
    transparent 70%
  );
}

.overview-inner {
  max-width: 860px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.overview-eyebrow {
  font-family: var(--body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--emerald);
  margin-bottom: 28px;
  display: block;
}

.overview-inner h2 {
  font-family: var(--body);
  font-weight: 800;
  font-size: clamp(36px, 6vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  color: #0e1a2b;
  margin: 0 0 48px;
}
.overview-inner h2 em {
  font-style: normal;
  background: linear-gradient(135deg, #1e6be6 0%, #6b3fd4 50%, #2fa56a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
}

.overview-inner p {
  font-family: var(--body);
  font-weight: 400;
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.75;
  letter-spacing: -0.005em;
  color: #3f4654;
  margin: 0 auto 22px;
  max-width: 680px;
}
.overview-inner p:last-of-type {
  margin-bottom: 0;
}
.overview-inner p strong {
  color: #0e1a2b;
  font-weight: 700;
}
.overview-inner p .hl {
  background: linear-gradient(transparent 62%, rgba(245, 197, 66, 0.5) 62%);
  padding: 0 3px;
  color: #0e1a2b;
  font-weight: 600;
}

.overview-kicker {
  margin-top: 44px !important;
  font-size: clamp(18px, 1.8vw, 22px) !important;
  font-weight: 600 !important;
  color: #0e1a2b !important;
  letter-spacing: -0.015em;
}
.overview-kicker span {
  display: inline-block;
  padding: 0 2px;
}
.overview-kicker .dot {
  color: var(--emerald);
  margin: 0 10px;
  font-weight: 700;
}

.overview-marquee {
  margin-top: 64px;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
}
.overview-marquee .tag {
  font-family: var(--body);
  font-size: 13px;
  font-weight: 600;
  padding: 10px 18px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(19, 19, 24, 0.08);
  border-radius: 999px;
  color: #0e1a2b;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition:
    transform 0.25s,
    background 0.25s;
}
.overview-marquee .tag:hover {
  transform: translateY(-2px);
  background: white;
}
.overview-marquee .tag .emoji {
  font-size: 15px;
}

/* ─────────────────────────────────────────────────────────
   Features
   ───────────────────────────────────────────────────────── */
.features {
  background: var(--paper-2);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}
.feature-card {
  padding: 42px 36px;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
  transition: background 0.3s;
  position: relative;
}
.feature-card:hover {
  background: var(--paper-2);
}
.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  background: var(--paper-2);
}
.feature-card:hover .feature-icon {
  background: var(--paper-3);
}
.feature-card:nth-child(1) .feature-icon {
  color: var(--blue);
}
.feature-card:nth-child(2) .feature-icon {
  color: var(--violet);
}
.feature-card:nth-child(3) .feature-icon {
  color: var(--emerald);
}
.feature-card:nth-child(4) .feature-icon {
  color: var(--teal);
}
.feature-card:nth-child(5) .feature-icon {
  color: var(--rose);
}
.feature-card:nth-child(6) .feature-icon {
  color: var(--sun);
  filter: saturate(1.1);
}
.feature-icon svg {
  width: 28px;
  height: 28px;
}

.feature-card h3 {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0 0 10px;
  font-variation-settings: 'SOFT' 30;
}
.feature-card p {
  font-size: 14.5px;
  color: var(--ink-soft);
  line-height: 1.55;
  margin: 0;
}
.feature-num {
  position: absolute;
  top: 20px;
  right: 24px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-mute);
}
@media (max-width: 880px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 540px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
  .feature-card {
    padding: 32px 26px;
  }
}

/* ─────────────────────────────────────────────────────────
   Screenshots
   ───────────────────────────────────────────────────────── */
.screens {
  background: var(--paper);
  overflow: hidden;
}
.screens-row {
  display: flex;
  gap: 40px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 40px;
}
.screens-row .phone {
  transform-origin: center center;
  transition: transform 0.4s ease;
}
.screens-row .phone:nth-child(1) {
  transform: rotate(-4deg);
}
.screens-row .phone:nth-child(2) {
  transform: rotate(0deg) scale(1.05);
  z-index: 2;
}
.screens-row .phone:nth-child(3) {
  transform: rotate(4deg);
}
.screens-row .phone:hover {
  transform: rotate(0) scale(1.06);
}
@media (max-width: 900px) {
  .screens-row .phone:nth-child(2) {
    transform: rotate(0deg);
  }
}

/* Phone Screen C: Chat */
.screen-chat {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.chat-header {
  padding: 10px 14px;
  border-bottom: 1px solid var(--rule);
  display: flex;
  align-items: center;
  gap: 10px;
}
.chat-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #43c6ac, #191654);
}
.chat-name {
  font-size: 13px;
  font-weight: 600;
}
.chat-sub {
  font-size: 10px;
  color: var(--emerald);
  font-family: var(--mono);
}
.chat-messages {
  flex: 1;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--paper-2);
}
.bubble {
  max-width: 78%;
  padding: 8px 12px;
  border-radius: 16px;
  font-size: 12px;
  line-height: 1.35;
}
.bubble.them {
  background: var(--paper);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}
.bubble.me {
  background: var(--ink);
  color: var(--paper);
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}
.bubble .time {
  display: block;
  font-size: 9px;
  opacity: 0.6;
  margin-top: 3px;
  font-family: var(--mono);
}
.chat-input {
  padding: 10px 12px;
  border-top: 1px solid var(--rule);
  display: flex;
  gap: 8px;
  align-items: center;
  background: var(--paper);
}
.chat-input .input {
  flex: 1;
  background: var(--paper-2);
  border-radius: 18px;
  padding: 9px 12px;
  font-size: 11px;
  color: var(--ink-mute);
}
.send-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  display: grid;
  place-items: center;
}

/* Phone Screen D: My Buddies */
.screen-buddies {
  flex: 1;
  padding: 8px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.buddies-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 4px;
}
.buddies-count {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-mute);
}
.connection-card {
  padding: 10px;
  background: var(--paper-2);
  border-radius: 14px;
  display: flex;
  gap: 10px;
  align-items: center;
}
.connection-card .buddy-avatar {
  width: 38px;
  height: 38px;
}
.connection-card .actions {
  display: flex;
  gap: 6px;
}
.mini-btn {
  font-size: 10px;
  padding: 5px 9px;
  border-radius: 999px;
  font-weight: 600;
}
.mini-btn.primary {
  background: var(--ink);
  color: var(--paper);
}
.mini-btn.ghost {
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--rule);
}

/* ─────────────────────────────────────────────────────────
   How it works
   ───────────────────────────────────────────────────────── */
.how {
  background: var(--paper-3);
  position: relative;
}
.how::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(
      circle at 20% 30%,
      rgba(30, 107, 230, 0.08),
      transparent 40%
    ),
    radial-gradient(
      circle at 80% 70%,
      rgba(47, 165, 106, 0.08),
      transparent 40%
    );
  pointer-events: none;
}
.how-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
  z-index: 2;
}
@media (max-width: 1024px) {
  .how-steps {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .how-steps {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}
.step {
  background: var(--paper);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  border: 1px solid var(--rule);
  position: relative;
  transition:
    transform 0.3s,
    box-shadow 0.3s;
}
.step:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.step-num {
  font-family: var(--display);
  font-size: 56px;
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.04em;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 18px;
  font-variation-settings:
    'opsz' 144,
    'SOFT' 100,
    'WONK' 1;
  font-style: italic;
}
.step h3 {
  font-family: var(--display);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.015em;
  margin: 0 0 10px;
  font-variation-settings: 'SOFT' 30;
}
.step p {
  font-size: 14.5px;
  color: var(--ink-soft);
  line-height: 1.55;
  margin: 0;
}

/* ─────────────────────────────────────────────────────────
   Trust & safety
   ───────────────────────────────────────────────────────── */
.trust {
  background: var(--paper);
}
.trust-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
@media (max-width: 900px) {
  .trust-grid {
    grid-template-columns: 1fr;
    gap: 56px;
  }
}
.trust-copy h2 {
  font-family: var(--display);
  font-size: clamp(36px, 4.6vw, 54px);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin: 18px 0 24px;
  font-variation-settings:
    'opsz' 144,
    'SOFT' 40;
}
.trust-copy h2 em {
  font-style: italic;
  font-weight: 300;
  font-variation-settings:
    'opsz' 144,
    'SOFT' 100,
    'WONK' 1;
}
.trust-points {
  list-style: none;
  padding: 0;
  margin: 32px 0 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.trust-points li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid var(--rule);
}
.trust-points li:last-child {
  border-bottom: 1px solid var(--rule);
}
.trust-points .check {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--grad-brand);
  color: white;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-weight: 700;
  font-size: 14px;
}
.trust-points h4 {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 600;
}
.trust-points p {
  margin: 0;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.5;
}

.trust-visual {
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--grad-sky);
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--rule);
  display: grid;
  place-items: center;
  padding: 36px;
}
.trust-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 30% 30%,
    rgba(107, 63, 212, 0.16),
    transparent 55%
  );
}
.trust-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 70% 80%,
    rgba(47, 165, 106, 0.16),
    transparent 55%
  );
}

.shield-card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 24px;
  padding: 28px;
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 320px;
}
.shield-icon {
  width: 60px;
  height: 60px;
  border-radius: 18px;
  background: var(--grad-brand);
  display: grid;
  place-items: center;
  color: white;
  margin-bottom: 20px;
}
.shield-icon svg {
  width: 28px;
  height: 28px;
}
.shield-card h4 {
  font-family: var(--display);
  font-size: 20px;
  font-weight: 500;
  margin: 0 0 16px;
  letter-spacing: -0.01em;
}
.shield-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.shield-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: var(--ink-soft);
}
.shield-list .tick {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--emerald);
  color: white;
  display: grid;
  place-items: center;
  font-size: 10px;
  flex-shrink: 0;
}

.floating-badge {
  position: absolute;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 12px 14px;
  box-shadow: var(--shadow-md);
  font-size: 12px;
  font-weight: 500;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 8px;
}
.badge-tl {
  top: 30px;
  left: 24px;
}
.badge-br {
  bottom: 40px;
  right: 24px;
}
.badge-bl {
  bottom: 28px;
  left: 24px;
}
.floating-badge .mini-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.mini-dot.blue {
  background: var(--blue);
}
.mini-dot.green {
  background: var(--emerald);
}
.mini-dot.violet {
  background: var(--violet);
}

/* ─────────────────────────────────────────────────────────
   Legal (Privacy + Terms)
   ───────────────────────────────────────────────────────── */
.legal {
  background: var(--paper-2);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.legal-tabs {
  display: inline-flex;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 4px;
  gap: 4px;
  margin-bottom: 40px;
}
.legal-tab {
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-soft);
  background: transparent;
  transition: all 0.25s;
}
.legal-tab.active {
  background: var(--ink);
  color: var(--paper);
}
.legal-panels {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 56px 56px;
}
@media (max-width: 700px) {
  .legal-panels {
    padding: 36px 26px;
  }
}
.legal-panel {
  display: none;
}
.legal-panel.active {
  display: block;
}
.legal-panel h3 {
  font-family: var(--display);
  font-size: 28px;
  font-weight: 500;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}
.legal-panel .updated {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-mute);
  margin: 0 0 32px;
}
.legal-panel h4 {
  font-family: var(--display);
  font-size: 20px;
  font-weight: 500;
  margin: 32px 0 12px;
  letter-spacing: -0.01em;
}
.legal-panel p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-soft);
  margin: 0 0 14px;
}
.legal-panel ul {
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink-soft);
  padding-left: 22px;
  margin: 0 0 14px;
}
.legal-panel ul li {
  margin-bottom: 6px;
}
.legal-panel strong {
  color: var(--ink);
  font-weight: 600;
}
.legal-panel a {
  color: var(--blue);
  border-bottom: 1px solid var(--blue);
}
.legal-inline-btn {
  all: unset;
  color: var(--blue);
  border-bottom: 1px solid var(--blue);
  cursor: pointer;
}

/* ─────────────────────────────────────────────────────────
   Contact
   ───────────────────────────────────────────────────────── */
.contact {
  background: var(--paper);
}
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 72px;
  align-items: start;
}
@media (max-width: 880px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}
.contact-copy h2 {
  font-family: var(--display);
  font-size: clamp(36px, 4.6vw, 54px);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin: 16px 0 20px;
  font-variation-settings:
    'opsz' 144,
    'SOFT' 40;
}
.contact-copy h2 em {
  font-style: italic;
  font-weight: 300;
  font-variation-settings:
    'opsz' 144,
    'SOFT' 100,
    'WONK' 1;
}
.contact-copy p {
  font-size: 17px;
  color: var(--ink-soft);
  line-height: 1.55;
  margin: 0 0 28px;
}
.contact-info {
  background: var(--paper-2);
  border-radius: var(--radius-md);
  padding: 22px;
  border: 1px solid var(--rule);
}
.contact-info .label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 6px;
}
.contact-info .value {
  font-family: var(--display);
  font-size: 20px;
  letter-spacing: -0.01em;
  font-weight: 500;
}
.contact-info .value a {
  color: var(--ink);
}
.contact-info .value a:hover {
  color: var(--blue);
}

.form {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-sm);
}
@media (max-width: 600px) {
  .form {
    padding: 26px;
  }
}
.field {
  margin-bottom: 22px;
}
.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--ink);
}
.field input,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  background: var(--paper-2);
  border: 1px solid transparent;
  border-radius: 12px;
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  transition:
    border-color 0.2s,
    background 0.2s;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  background: var(--paper);
  border-color: var(--ink);
}
.field textarea {
  min-height: 120px;
  resize: vertical;
}
.form .btn-primary {
  width: 100%;
  justify-content: center;
  border: 0;
}
.form-status {
  margin-top: 14px;
  font-size: 13.5px;
  color: var(--emerald);
  font-weight: 500;
  min-height: 18px;
}

/* ─────────────────────────────────────────────────────────
   Footer
   ───────────────────────────────────────────────────────── */
footer.foot {
  background: var(--ink);
  color: var(--paper);
  padding: 80px 0 40px;
  position: relative;
  z-index: 2;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(251, 248, 243, 0.12);
}
@media (max-width: 780px) {
  .foot-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
}
.foot-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.foot-brand img {
  width: 36px;
  height: 36px;
  background: white;
  border-radius: 10px;
  padding: 4px;
}
.foot-brand .brand-name {
  color: var(--paper);
}
.foot-col h5 {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(251, 248, 243, 0.5);
  margin: 0 0 20px;
  font-weight: 400;
}
.foot-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.foot-col li {
  margin-bottom: 12px;
}
.foot-col a {
  color: rgba(251, 248, 243, 0.8);
  font-size: 14.5px;
  transition: color 0.2s;
}
.foot-col a:hover {
  color: var(--paper);
}
.foot-tagline {
  font-family: var(--display);
  font-size: 18px;
  line-height: 1.45;
  color: rgba(251, 248, 243, 0.75);
  letter-spacing: -0.01em;
  margin: 0 0 20px;
  max-width: 320px;
  font-variation-settings: 'SOFT' 40;
}
.social {
  display: flex;
  gap: 10px;
}
.social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(251, 248, 243, 0.06);
  border: 1px solid rgba(251, 248, 243, 0.12);
  transition: all 0.2s;
}
.social a:hover {
  background: var(--paper);
  color: var(--ink);
  transform: translateY(-2px);
}
.social svg {
  width: 16px;
  height: 16px;
}

.foot-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  flex-wrap: wrap;
  gap: 16px;
}
.foot-bottom p {
  font-family: var(--mono);
  font-size: 12px;
  color: rgba(251, 248, 243, 0.5);
  margin: 0;
  letter-spacing: 0.02em;
}
.foot-bottom .mini-links {
  display: flex;
  gap: 24px;
  font-size: 13px;
}
.foot-bottom .mini-links a {
  color: rgba(251, 248, 243, 0.6);
}
.foot-bottom .mini-links a:hover {
  color: var(--paper);
}

/* ─────────────────────────────────────────────────────────
   Reveal on scroll
   ───────────────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* ─────────────────────────────────────────────────────────
   Responsive refinements
   ───────────────────────────────────────────────────────── */

/* Stop long words / links (e.g. the support email) from forcing
   horizontal scroll, and let grid children shrink below content size. */
.foot-col a,
.foot-tagline,
.contact-info .value,
.contact-info .value a,
.legal-panel a {
  overflow-wrap: anywhere;
}
.foot-grid > *,
.contact-grid > *,
.trust-grid > *,
.hero-grid > * {
  min-width: 0;
}

/* Tablet — only adjust horizontal padding so elements that share the
   .container class (e.g. .nav-inner) keep their own vertical padding. */
@media (max-width: 760px) {
  .container {
    padding-inline: 22px;
  }
}

/* Large phones */
@media (max-width: 600px) {
  .container {
    padding-inline: 20px;
  }
  .hero h1 {
    font-size: clamp(34px, 9vw, 60px);
  }
  .hero p.lede {
    font-size: 17px;
  }
  .section-header {
    margin-bottom: 48px;
  }
  .section-header p {
    font-size: 16px;
  }
  .overview-marquee {
    margin-top: 44px;
  }
}

/* Scale the CSS phone mockups so they never overflow the viewport.
   aspect-ratio keeps the height proportional as width shrinks. */
@media (max-width: 480px) {
  .phone {
    width: 232px;
    border-radius: 36px;
    padding: 9px;
  }
  .hero-phones {
    min-height: 500px;
  }
  .hero-phones .phone-a {
    transform: rotate(-5deg) translateX(-12px);
  }
  .hero-phones .phone-b {
    transform: rotate(5deg) translateX(12px) translateY(22px);
  }
  .screens-row {
    gap: 28px;
  }
  .foot-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .foot-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Small phones */
@media (max-width: 380px) {
  .phone {
    width: 208px;
  }
  .hero-phones {
    min-height: 450px;
  }
  .hero-phones .phone-a {
    transform: rotate(-4deg) translateX(-6px);
  }
  .hero-phones .phone-b {
    transform: rotate(4deg) translateX(6px) translateY(18px);
  }
  .legal-tabs {
    display: flex;
    width: 100%;
  }
  .legal-tab {
    flex: 1;
    text-align: center;
    padding: 10px 12px;
  }
}

/* ─────────────────────────────────────────────────────────
   Get the app — floating QR widget
   ───────────────────────────────────────────────────────── */
.app-widget {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 60;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
}
.app-widget-toggle,
.app-widget-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 22px 0 18px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(19, 19, 24, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.app-widget-toggle:hover,
.app-widget-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(19, 19, 24, 0.3);
}
.app-widget-toggle:focus-visible,
.app-widget-link:focus-visible,
.app-widget-close:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}
.app-widget-panel {
  width: 300px;
  padding: 22px;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  animation: app-widget-in 0.22s ease;
}
.app-widget-panel[hidden] {
  display: none;
}
@keyframes app-widget-in {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }
}
.app-widget-head {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.app-widget-logo {
  width: 32px;
  height: 38px;
  object-fit: contain;
}
.app-widget-title {
  margin: 0;
  font-family: var(--display);
  font-size: 20px;
  line-height: 1.1;
}
.app-widget-sub {
  margin: 2px 0 0;
  font-size: 13px;
  color: var(--ink-mute);
}
.app-widget-close {
  margin: -8px -8px 0 auto;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-soft);
}
.app-widget-close:hover {
  background: var(--paper-2);
}
.app-widget-qr {
  margin-top: 14px;
  padding: 16px;
  background: var(--paper);
  border-radius: var(--radius-md);
  display: flex;
  justify-content: center;
}
.app-widget-qr img {
  display: block;
  width: 200px;
  height: 200px;
  mix-blend-mode: multiply;
}
.app-widget-hint {
  margin: 12px 0 0;
  text-align: center;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--ink-mute);
}
@media (prefers-reduced-motion: reduce) {
  .app-widget-panel {
    animation: none;
  }
  .app-widget-toggle {
    transition: none;
  }
}
/* A QR can't be scanned from the phone showing it, so on phones the pill
   links straight to the OneLink smart link (the same target as the QR),
   which opens the App Store or Play Store for the visitor's device. */
.app-widget-link {
  display: none;
}
@media (max-width: 700px) {
  /* Room at the end of the page so the pill never covers the last content. */
  body {
    padding-bottom: 84px;
  }
  .app-widget {
    right: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  }
  .app-widget-toggle,
  .app-widget-panel {
    display: none;
  }
  .app-widget-link {
    display: inline-flex;
  }
}

/* ─────────────────────────────────────────────────────────
   Download section
   ───────────────────────────────────────────────────────── */
.download {
  padding: 40px 0 120px;
}
.download-card {
  background: var(--ink);
  border-radius: var(--radius-xl);
  padding: 64px clamp(28px, 5vw, 72px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}
.download-copy {
  flex: 1 1 420px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
}
.download-copy .eyebrow {
  color: var(--sun);
}
.download-copy .eyebrow::before {
  background: var(--sun);
}
.download-copy h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(36px, 4.4vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--paper);
}
.download-copy h2 em {
  font-style: italic;
  color: #8fb4ff;
}
.download-copy p {
  margin: 0;
  max-width: 460px;
  font-size: 17px;
  color: #c9c7cf;
}
/* On desktop the QR is the way in; the button is the phone fallback. */
.download-btn {
  display: none;
  background: var(--paper);
  color: var(--ink);
}
.download .on-phone {
  display: none;
}
.download-note {
  font-size: 13px;
  color: #a3a1ab;
}
.download-qr {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.download-qr-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.25), 0 32px 64px rgba(0, 0, 0, 0.3);
}
.download-qr-card > img {
  display: block;
  width: 220px;
  height: 220px;
}
.download-qr-brand {
  width: 100%;
  padding-top: 12px;
  border-top: 1px solid var(--rule);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 600;
  font-size: 15px;
}
.download-qr-brand img {
  width: 28px;
  height: 34px;
  object-fit: contain;
}
.download-qr-hint {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: #c9c7cf;
}
@media (max-width: 700px) {
  .download {
    padding: 24px 0 84px;
  }
  .download-card {
    padding: 40px 24px;
    border-radius: var(--radius-lg);
    gap: 32px;
  }
  .download-copy h2 em {
    white-space: nowrap;
  }
  .download-btn {
    display: inline-flex;
    justify-content: center;
    align-self: stretch;
    min-height: 56px;
  }
  .download .on-desktop {
    display: none;
  }
  /* Still shown on phones so the code is always on the page (it can be
     shown to a friend or scanned from a shared screen); the button above
     stays the main action. */
  .download-qr {
    width: 100%;
  }
  .download-qr-card > img {
    width: 180px;
    height: 180px;
  }
  .download .on-phone {
    display: revert;
  }
}

/* The floating pill steps aside while the download section is on screen. */
.app-widget {
  transition: opacity 0.2s ease, visibility 0.2s;
}
.app-widget.is-tucked {
  opacity: 0;
  visibility: hidden;
}
