/* Ax Docs Scanner (ads.amionyx.com). The Amionyx design system, trimmed for a static product site: the same
   colours, type, radii, shadows and motion as amionyx.com (src/styles/theme.css there), so the product reads as
   part of the brand. Contrast ratios are measured (WCAG 2.2 AA); colours marked "decoration" never carry text. */

@font-face {
  font-family: 'Syne';
  src: url('fonts/syne.woff2') format('woff2');
  font-weight: 400 800;
  font-display: swap;
}
@font-face {
  font-family: 'DM Sans';
  src: url('fonts/dm-sans.woff2') format('woff2');
  font-weight: 100 1000;
  font-display: swap;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('fonts/jetbrains-mono.woff2') format('woff2');
  font-weight: 100 800;
  font-display: swap;
}

:root {
  --brand-50: #eff5ff;
  --brand-100: #dbe8fe;
  --brand-200: #bfd6fe;
  --brand-300: #93bbfd; /* on dark only */
  --brand-400: #6096fa; /* on dark only; decoration on white */
  --brand-600: #1560ec; /* primary: 5.4:1 on white */
  --brand-700: #1450d4; /* links, labels: 6.7:1 */
  --brand-800: #1743ab;
  --ink-50: #f7f8fa;
  --ink-100: #eef0f4;
  --ink-200: #dde1e8;
  --ink-300: #c3cad6; /* on dark: 11.7:1 on ink-950 */
  --ink-400: #94a0b3; /* on dark: 7.3:1 on ink-950; decoration on white */
  --ink-500: #667089; /* smallest text-safe on white: 5.0:1 */
  --ink-600: #4d5670; /* body: 7.3:1 */
  --ink-700: #3b4257;
  --ink-900: #141926;
  --ink-950: #0b0e17;
  --success-50: #ecfdf3;
  --success-200: #a7f0c4;
  --success-600: #067647;
  --danger-50: #fef3f2;
  --danger-600: #c2181b;
  --violet-500: #7c5cff; /* decoration */
  --indigo-500: #4f46e5; /* decoration */
  --cyan-400: #22d3ee; /* decoration */
  --line: #dde1e8;

  --font-display: 'Syne', 'DM Sans', ui-sans-serif, system-ui, sans-serif;
  --font-sans: 'DM Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --radius: 16px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow-card: 0 1px 2px rgb(20 25 38 / 0.04), 0 8px 24px -8px rgb(20 25 38 / 0.08);
  --shadow-lift: 0 20px 40px -12px rgb(20 25 38 / 0.18);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-quint: cubic-bezier(0.22, 1, 0.36, 1);
  --spring: cubic-bezier(0.34, 1.45, 0.64, 1);
  --header: 68px;
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header) + 16px);
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: #fff;
  color: var(--ink-600);
  font: 400 16px/1.65 var(--font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img,
svg {
  display: block;
  max-width: 100%;
}
a {
  color: var(--brand-700);
}
h1,
h2,
h3 {
  margin: 0;
  color: var(--ink-900);
  font-family: var(--font-display);
  text-wrap: balance;
}
p {
  margin: 0;
}
:focus-visible {
  outline: 2px solid var(--brand-600);
  outline-offset: 3px;
  border-radius: 6px;
}
.on-dark :focus-visible {
  outline-color: var(--brand-300);
}
::selection {
  background: var(--brand-100);
  color: var(--ink-900);
}
.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: 100;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--ink-900);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 0.2s;
}
.skip:focus {
  transform: none;
}
.icon {
  width: 1em;
  height: 1em;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}
@media (min-width: 640px) {
  .wrap {
    padding: 0 24px;
  }
}
@media (min-width: 1024px) {
  .wrap {
    padding: 0 32px;
  }
}

/* ---------- Reading progress (legal pages) ---------- */
.progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  height: 3px;
  background: linear-gradient(90deg, var(--cyan-400), var(--brand-600), var(--violet-500));
  transform: scaleX(var(--p, 0));
  transform-origin: left;
}

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgb(255 255 255 / 0.88);
  backdrop-filter: saturate(1.4) blur(14px);
  transition:
    background-color 0.35s,
    border-color 0.35s,
    box-shadow 0.35s;
}
.header.is-scrolled {
  box-shadow: 0 8px 24px -16px rgb(20 25 38 / 0.25);
}
/* Over the home hero the header starts as dark glass, then turns white once the hero is behind it. */
.header.is-dark {
  border-color: rgb(255 255 255 / 0.08);
  background: rgb(11 14 23 / 0.55);
  box-shadow: none;
}
.header-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: var(--header);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-900);
  font: 800 20px/1 var(--font-display);
  letter-spacing: -0.03em;
  text-decoration: none;
}
.brand img {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  box-shadow: 0 6px 14px -6px rgb(21 96 236 / 0.55);
  transition: transform 0.4s var(--spring);
}
.brand:hover img {
  transform: rotate(-8deg) scale(1.06);
}
.brand b {
  color: var(--brand-600);
  font-weight: 800;
}
.is-dark .brand {
  color: #fff;
}
.is-dark .brand b {
  color: var(--brand-300);
}
.nav {
  display: none;
}
.nav ul {
  display: flex;
  gap: 26px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav a {
  position: relative;
  color: var(--ink-700);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
}
.nav a::after {
  content: '';
  position: absolute;
  inset: auto 0 -6px;
  height: 2px;
  border-radius: 2px;
  background: var(--brand-600);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease-out);
}
.nav a:hover,
.nav a[aria-current] {
  color: var(--ink-900);
}
.nav a:hover::after,
.nav a[aria-current]::after {
  transform: scaleX(1);
}
.is-dark .nav a {
  color: var(--ink-300);
}
.is-dark .nav a:hover,
.is-dark .nav a[aria-current] {
  color: #fff;
}
.is-dark .nav a::after {
  background: var(--brand-400);
}
.header-end {
  display: flex;
  align-items: center;
  gap: 6px;
}
.by {
  display: none;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-700);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition:
    border-color 0.2s,
    background-color 0.2s,
    color 0.2s;
}
.by:hover {
  border-color: var(--ink-900);
  color: var(--ink-900);
}
.by .icon {
  transition: transform 0.3s var(--spring);
}
.by:hover .icon {
  transform: translate(2px, -2px);
}
.is-dark .by {
  border-color: rgb(255 255 255 / 0.2);
  color: #fff;
}
.is-dark .by:hover {
  border-color: #fff;
  background: rgb(255 255 255 / 0.08);
}
.menu-btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-900);
  font-size: 22px;
  cursor: pointer;
}
.menu-btn:hover {
  background: rgb(20 25 38 / 0.06);
}
.is-dark .menu-btn {
  color: #fff;
}
.is-dark .menu-btn:hover {
  background: rgb(255 255 255 / 0.1);
}
.menu-btn .i-close,
.menu-open .menu-btn .i-menu {
  display: none;
}
.menu-open .menu-btn .i-close {
  display: block;
}
/* Phone menu: drops down under the header. */
.mnav {
  display: grid;
  grid-template-rows: 0fr;
  border-top: 1px solid transparent;
  background: #fff;
  transition:
    grid-template-rows 0.4s var(--ease-quint),
    border-color 0.3s;
}
.menu-open .mnav {
  grid-template-rows: 1fr;
  border-color: var(--line);
}
.mnav > div {
  overflow: hidden;
}
.mnav ul {
  margin: 0;
  padding-top: 8px;
  padding-bottom: 20px;
  list-style: none;
}
.mnav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  border-bottom: 1px solid var(--ink-100);
  color: var(--ink-900);
  font: 700 20px/1.2 var(--font-display);
  text-decoration: none;
}
.mnav a[aria-current] {
  color: var(--brand-700);
}
.mnav .icon {
  color: var(--ink-400);
  font-size: 18px;
}
.menu-open .header.is-dark {
  background: #fff;
}
.menu-open .header.is-dark .brand {
  color: var(--ink-900);
}
.menu-open .header.is-dark .brand b {
  color: var(--brand-600);
}
.menu-open .header.is-dark .menu-btn {
  color: var(--ink-900);
}
@media (min-width: 900px) {
  .nav {
    display: block;
  }
  .menu-btn,
  .mnav {
    display: none;
  }
  .by {
    display: inline-flex;
  }
}

/* ---------- Buttons, pills ---------- */
.btn {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 52px;
  padding: 0 24px;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  font: 600 16px/1 var(--font-sans);
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 0.2s var(--ease),
    border-color 0.2s,
    color 0.2s,
    transform 0.2s var(--ease);
}
.btn:active {
  transform: scale(0.98);
}
.btn .icon {
  font-size: 18px;
  transition: transform 0.25s var(--spring);
}
.btn:hover .icon.move {
  transform: translateX(3px);
}
.btn:hover .icon.up {
  transform: translate(2px, -2px);
}
.btn-primary {
  background: var(--brand-600);
  color: #fff;
}
.btn-primary:hover {
  background: var(--brand-700);
}
/* A shine that sweeps across the primary button on hover. */
.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(115deg, transparent 30%, rgb(255 255 255 / 0.28) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.8s var(--ease-out);
}
.btn-primary:hover::after {
  transform: translateX(120%);
}
.btn-dark {
  background: var(--ink-900);
  color: #fff;
}
.btn-dark:hover {
  background: var(--ink-700);
}
.btn-ghost {
  border: 1.5px solid rgb(255 255 255 / 0.3);
  background: transparent;
  color: #fff;
}
.btn-ghost:hover {
  border-color: #fff;
  background: rgb(255 255 255 / 0.08);
}
.btn-outline {
  border: 1.5px solid var(--brand-700);
  background: transparent;
  color: var(--brand-700);
}
.btn-outline:hover {
  background: var(--brand-50);
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  padding: 4px 12px;
  border: 1px solid var(--brand-200);
  border-radius: 999px;
  background: var(--brand-50);
  color: var(--brand-700);
  font: 700 11px/1.2 var(--font-display);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.pill::before {
  content: '';
  width: 6px;
  height: 6px;
  flex-shrink: 0;
  border-radius: 999px;
  background: currentColor;
}
.on-dark .pill {
  border-color: rgb(255 255 255 / 0.15);
  background: rgb(255 255 255 / 0.05);
  color: var(--brand-200);
}
.pill.live::before {
  box-shadow: 0 0 0 0 currentColor;
  animation: ping 2.2s var(--ease-out) infinite;
}
@keyframes ping {
  70%,
  100% {
    box-shadow: 0 0 0 7px transparent;
  }
}
.label {
  font: 500 11px/1.4 var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* "Coming soon on Google Play": a status, not a link (the app isn't listed yet). */
.store {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 56px;
  padding: 0 20px 0 14px;
  border: 1px solid rgb(255 255 255 / 0.18);
  border-radius: 16px;
  background: rgb(255 255 255 / 0.06);
  color: #fff;
}
.store .play {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--cyan-400), var(--brand-600) 55%, var(--violet-500));
  font-size: 15px;
}
.store .play .icon {
  fill: #fff;
  stroke: none;
  margin-left: 2px;
}
.store small {
  display: block;
  color: var(--ink-300);
  font-size: 11px;
  letter-spacing: 0.06em;
  line-height: 1.2;
  text-transform: uppercase;
}
.store strong {
  display: block;
  font: 700 17px/1.2 var(--font-display);
}
.light .store {
  border-color: var(--line);
  background: #fff;
  color: var(--ink-900);
  box-shadow: var(--shadow-card);
}
.light .store small {
  color: var(--ink-500);
}

/* ---------- Home: hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-top: calc(-1 * var(--header) - 1px);
  padding: calc(var(--header) + 56px) 0 72px;
  background: var(--ink-950);
  color: var(--ink-300);
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(40% 50% at 12% 18%, rgb(34 211 238 / 0.22), transparent 70%),
    radial-gradient(45% 55% at 88% 22%, rgb(124 92 255 / 0.28), transparent 70%),
    radial-gradient(60% 60% at 70% 110%, rgb(21 96 236 / 0.45), transparent 70%);
}
/* Graph paper that fades out toward the edges. Decorative. */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgb(255 255 255 / 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(70% 70% at 50% 40%, #000 30%, transparent 80%);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}
.hero h1 {
  margin-top: 22px;
  color: #fff;
  font-size: clamp(2.3rem, 1.5rem + 4vw, 4.1rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.04em;
}
.grad {
  background: linear-gradient(100deg, var(--brand-300) 5%, #c4b5fd 55%, #a5f3fc 95%);
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.hero .lead {
  max-width: 34rem;
  margin-top: 22px;
  color: var(--ink-300);
  font-size: 18px;
  line-height: 1.6;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 32px;
}
.proof {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
  color: var(--ink-300);
  font-size: 14px;
}
.proof li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.proof .icon {
  color: var(--brand-300);
  font-size: 16px;
}
@media (min-width: 640px) {
  .grad {
    white-space: nowrap;
  }
}
@media (min-width: 960px) {
  .hero {
    padding: calc(var(--header) + 72px) 0 96px;
  }
  .hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

/* The phone: a scan in progress, drawn in CSS. Corners find the page, a line sweeps it, the page straightens and
   whitens, and a "PDF ready" chip pops in. Loops every 7s; still for reduced motion. Decorative (aria-hidden). */
.stage {
  position: relative;
  display: grid;
  place-items: center;
  perspective: 1200px;
}
.phone {
  position: relative;
  width: min(300px, 78vw);
  aspect-ratio: 300 / 610;
  padding: 12px;
  border-radius: 46px;
  background: linear-gradient(160deg, #2a3146, #0f131e 60%);
  box-shadow:
    0 0 0 1.5px rgb(255 255 255 / 0.08) inset,
    0 40px 80px -24px rgb(0 0 0 / 0.7),
    0 0 120px -20px rgb(21 96 236 / 0.55);
  transform: rotateY(var(--ry, -8deg)) rotateX(var(--rx, 4deg));
  transition: transform 0.6s var(--ease-out);
  transform-style: preserve-3d;
}
.screen {
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: 36px;
  background: linear-gradient(180deg, #e9e3d8, #d9d1c3);
}
.notch {
  position: absolute;
  top: 10px;
  left: 50%;
  z-index: 3;
  width: 30%;
  height: 22px;
  border-radius: 999px;
  background: #0b0e17;
  transform: translateX(-50%);
}
.cam-top {
  position: absolute;
  inset: 0 0 auto;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  padding: 44px 18px 0;
  color: #fff;
  font: 600 11px/1 var(--font-sans);
}
.cam-top span {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgb(11 14 23 / 0.55);
  backdrop-filter: blur(6px);
}
.paper {
  position: absolute;
  top: 22%;
  left: 17%;
  width: 66%;
  aspect-ratio: 210 / 297;
  padding: 9% 8%;
  border-radius: 4px;
  background: #f4efe4;
  box-shadow:
    -14px 18px 26px -10px rgb(60 40 10 / 0.35),
    inset 40px -30px 60px -30px rgb(80 60 30 / 0.28);
  transform: rotate(-7deg) skewX(-3deg);
  animation: paper 7s var(--ease-quint) infinite;
}
.paper i {
  display: block;
  height: 5px;
  margin-bottom: 9px;
  border-radius: 3px;
  background: #b9b2a5;
}
.paper i:nth-child(1) {
  width: 55%;
  height: 8px;
  margin-bottom: 14px;
  background: #8f887b;
}
.paper i:nth-child(4) {
  width: 80%;
}
.paper i:nth-child(6) {
  width: 64%;
}
.paper i:nth-child(8) {
  width: 40%;
}
@keyframes paper {
  0%,
  38% {
    transform: rotate(-7deg) skewX(-3deg);
    background: #f4efe4;
    box-shadow:
      -14px 18px 26px -10px rgb(60 40 10 / 0.35),
      inset 40px -30px 60px -30px rgb(80 60 30 / 0.28);
  }
  52%,
  90% {
    transform: none;
    background: #fff;
    box-shadow: 0 12px 30px -12px rgb(20 25 38 / 0.35);
  }
  100% {
    transform: rotate(-7deg) skewX(-3deg);
  }
}
.paper i {
  animation: ink 7s var(--ease-quint) infinite;
}
@keyframes ink {
  0%,
  38% {
    background: #b9b2a5;
  }
  52%,
  90% {
    background: #3b4257;
  }
}
.paper i:nth-child(1) {
  animation-name: ink-title;
}
@keyframes ink-title {
  0%,
  38% {
    background: #8f887b;
  }
  52%,
  90% {
    background: #141926;
  }
}
.corners {
  position: absolute;
  top: 20.5%;
  left: 14%;
  width: 72%;
  aspect-ratio: 210 / 297;
  animation: corners 7s var(--ease-quint) infinite;
}
.corners b {
  position: absolute;
  width: 26px;
  height: 26px;
  border: 3.5px solid var(--brand-600);
  filter: drop-shadow(0 0 6px rgb(21 96 236 / 0.6));
}
.corners b:nth-child(1) {
  top: 0;
  left: 0;
  border-right: 0;
  border-bottom: 0;
  border-top-left-radius: 8px;
}
.corners b:nth-child(2) {
  top: 0;
  right: 0;
  border-bottom: 0;
  border-left: 0;
  border-top-right-radius: 8px;
}
.corners b:nth-child(3) {
  right: 0;
  bottom: 0;
  border-top: 0;
  border-left: 0;
  border-bottom-right-radius: 8px;
}
.corners b:nth-child(4) {
  bottom: 0;
  left: 0;
  border-top: 0;
  border-right: 0;
  border-bottom-left-radius: 8px;
}
@keyframes corners {
  0% {
    opacity: 0;
    transform: scale(1.18) rotate(-7deg);
  }
  10%,
  38% {
    opacity: 1;
    transform: scale(1) rotate(-7deg);
  }
  52%,
  62% {
    opacity: 1;
    transform: scale(0.94) rotate(0);
  }
  72%,
  100% {
    opacity: 0;
    transform: scale(0.94) rotate(0);
  }
}
.sweep {
  position: absolute;
  left: 12%;
  right: 12%;
  top: 20%;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, transparent, var(--cyan-400), var(--brand-600), transparent);
  box-shadow: 0 0 18px 4px rgb(34 211 238 / 0.45);
  opacity: 0;
  animation: sweep 7s var(--ease) infinite;
}
@keyframes sweep {
  0%,
  12% {
    top: 20%;
    opacity: 0;
  }
  14% {
    opacity: 1;
  }
  36% {
    top: 74%;
    opacity: 1;
  }
  38%,
  100% {
    top: 74%;
    opacity: 0;
  }
}
.shutter {
  position: absolute;
  bottom: 22px;
  left: 50%;
  z-index: 2;
  width: 58px;
  height: 58px;
  border: 4px solid #fff;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.35);
  transform: translateX(-50%);
  animation: shutter 7s var(--ease) infinite;
}
@keyframes shutter {
  0%,
  36%,
  44%,
  100% {
    transform: translateX(-50%) scale(1);
  }
  40% {
    transform: translateX(-50%) scale(0.86);
  }
}
.ready {
  position: absolute;
  left: 50%;
  bottom: 96px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px 9px 10px;
  border-radius: 999px;
  background: var(--ink-900);
  color: #fff;
  font: 600 13px/1 var(--font-sans);
  white-space: nowrap;
  box-shadow: 0 12px 24px -10px rgb(0 0 0 / 0.5);
  opacity: 0;
  transform: translate(-50%, 12px) scale(0.9);
  animation: ready 7s var(--spring) infinite;
}
.ready .tick {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--success-600);
  font-size: 13px;
}
@keyframes ready {
  0%,
  56% {
    opacity: 0;
    transform: translate(-50%, 12px) scale(0.9);
  }
  62%,
  90% {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
  }
  96%,
  100% {
    opacity: 0;
    transform: translate(-50%, 0) scale(0.96);
  }
}
/* Floating notes around the phone. */
.float {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px 10px 10px;
  border: 1px solid rgb(255 255 255 / 0.12);
  border-radius: 16px;
  background: rgb(20 25 38 / 0.72);
  backdrop-filter: blur(12px);
  color: #fff;
  font: 600 13px/1.2 var(--font-sans);
  box-shadow: 0 20px 40px -16px rgb(0 0 0 / 0.6);
  animation: bob 6s ease-in-out infinite;
}
.float span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: rgb(96 150 250 / 0.18);
  color: var(--brand-300);
  font-size: 16px;
}
.float small {
  display: block;
  margin-top: 2px;
  color: var(--ink-400);
  font-size: 11px;
  font-weight: 500;
}
.f1 {
  top: 12%;
  left: -2%;
}
.f2 {
  top: 46%;
  right: -4%;
  animation-delay: -2s;
}
.f3 {
  bottom: 10%;
  left: 2%;
  animation-delay: -4s;
}
@keyframes bob {
  50% {
    transform: translateY(-8px);
  }
}
@media (max-width: 520px) {
  .f1 {
    left: 0;
  }
  .f2 {
    right: 0;
  }
  .float {
    font-size: 12px;
  }
}

/* ---------- Sections ---------- */
.section {
  padding: 80px 0;
}
@media (min-width: 960px) {
  .section {
    padding: 112px 0;
  }
}
.tint {
  background: var(--ink-50);
}
.head {
  max-width: 44rem;
}
.head.center {
  margin: 0 auto;
  text-align: center;
}
.head h2 {
  margin-top: 16px;
  font-size: clamp(1.75rem, 1.2rem + 2vw, 2.6rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.03em;
}
.head p {
  margin-top: 14px;
  font-size: 17px;
}

/* How it works */
.steps {
  position: relative;
  display: grid;
  gap: 20px;
  margin: 56px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-card);
}
.step .label {
  color: var(--brand-700);
}
.step h3 {
  margin-top: 18px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.step p {
  margin-top: 8px;
}
.tile {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--brand-50);
  color: var(--brand-600);
  font-size: 24px;
  transition:
    background-color 0.25s,
    color 0.25s,
    transform 0.4s var(--spring);
}
.step .tile {
  position: absolute;
  top: 24px;
  right: 24px;
}
@media (min-width: 860px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
  /* A dashed path that draws across the three steps when they come into view. */
  .steps::before {
    content: '';
    position: absolute;
    top: 48px;
    left: 8%;
    right: 8%;
    z-index: -1;
    height: 2px;
    background: repeating-linear-gradient(90deg, var(--brand-200) 0 8px, transparent 8px 16px);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 1.4s var(--ease-out) 0.2s;
  }
  .steps.in::before {
    transform: scaleX(1);
  }
}

/* Features */
.features {
  display: grid;
  gap: 16px;
  margin: 56px 0 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 640px) {
  .features {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1000px) {
  .features {
    grid-template-columns: repeat(3, 1fr);
  }
}
.feature {
  position: relative;
  overflow: hidden;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  transition:
    transform 0.4s var(--spring),
    box-shadow 0.3s,
    border-color 0.3s;
}
/* A soft glow that follows the pointer across the card (set by site.js as --mx/--my). */
.feature::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 0%), rgb(21 96 236 / 0.08), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s;
}
.feature > * {
  position: relative;
}
.feature h3 {
  margin-top: 20px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.feature p {
  margin-top: 8px;
}
@media (hover: hover) {
  .feature:hover {
    transform: translateY(-4px);
    border-color: var(--brand-200);
    box-shadow: var(--shadow-lift);
  }
  .feature:hover::before {
    opacity: 1;
  }
  .feature:hover .tile,
  .step:hover .tile {
    background: var(--brand-600);
    color: #fff;
    transform: rotate(-6deg) scale(1.06);
  }
}

/* Privacy band */
.dark {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--ink-950);
  color: var(--ink-300);
}
.dark::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(40% 60% at 0% 100%, rgb(34 211 238 / 0.16), transparent 70%),
    radial-gradient(40% 60% at 100% 0%, rgb(124 92 255 / 0.2), transparent 70%);
}
.dark h2 {
  color: #fff;
}
.dark .head p {
  color: var(--ink-300);
}
.split {
  display: grid;
  gap: 48px;
  align-items: center;
}
@media (min-width: 960px) {
  .split {
    grid-template-columns: 1fr 1fr;
    gap: 72px;
  }
}
.checks {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.checks li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 20px;
  border: 1px solid rgb(255 255 255 / 0.09);
  border-radius: var(--radius);
  background: rgb(255 255 255 / 0.03);
  color: #fff;
  font-weight: 500;
  transition:
    border-color 0.3s,
    background-color 0.3s,
    transform 0.4s var(--spring);
}
.checks li small {
  display: block;
  margin-top: 2px;
  color: var(--ink-400);
  font-size: 14px;
  font-weight: 400;
}
.checks .tile {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgb(96 150 250 / 0.14);
  color: var(--brand-300);
  font-size: 20px;
}
@media (hover: hover) {
  .checks li:hover {
    transform: translateX(4px);
    border-color: rgb(147 187 253 / 0.35);
    background: rgb(255 255 255 / 0.05);
  }
}
.text-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

/* FAQ: disclosure buttons; the answer opens by animating its grid row. */
.faq {
  max-width: 52rem;
  margin: 48px auto 0;
  border-top: 1px solid var(--line);
}
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  padding: 22px 0;
  border: 0;
  background: none;
  color: var(--ink-900);
  font: 700 18px/1.35 var(--font-display);
  letter-spacing: -0.01em;
  text-align: left;
  cursor: pointer;
}
.faq-q .plus {
  position: relative;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 999px;
  background: var(--ink-100);
  color: var(--ink-900);
  transition:
    background-color 0.25s,
    color 0.25s,
    transform 0.4s var(--spring);
}
.faq-q .plus::before,
.faq-q .plus::after {
  content: '';
  position: absolute;
  width: 14px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.35s var(--ease-quint);
}
.faq-q .plus::after {
  transform: rotate(90deg);
}
.faq-q:hover .plus {
  background: var(--brand-50);
  color: var(--brand-700);
}
.faq-q[aria-expanded='true'] .plus {
  background: var(--brand-600);
  color: #fff;
  transform: rotate(180deg);
}
.faq-q[aria-expanded='true'] .plus::after {
  transform: rotate(0);
}
.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s var(--ease-quint);
}
.faq-a > div {
  overflow: hidden;
}
.faq-a p {
  max-width: 44rem;
  padding: 0 56px 24px 0;
}
.faq-item.open .faq-a {
  grid-template-rows: 1fr;
}

/* Legal & support cards */
.cards {
  display: grid;
  gap: 16px;
  margin: 48px 0 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 640px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1000px) {
  .cards {
    grid-template-columns: repeat(4, 1fr);
  }
}
.card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  color: var(--ink-600);
  text-decoration: none;
  transition:
    transform 0.4s var(--spring),
    box-shadow 0.3s,
    border-color 0.3s;
}
.card-link strong {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 18px;
  color: var(--ink-900);
  font: 700 17px/1.3 var(--font-display);
}
.card-link strong .icon {
  color: var(--ink-400);
  font-size: 18px;
  transition:
    transform 0.3s var(--spring),
    color 0.2s;
}
.card-link span.d {
  margin-top: 6px;
  font-size: 14px;
}
@media (hover: hover) {
  .card-link:hover {
    transform: translateY(-4px);
    border-color: var(--brand-200);
    box-shadow: var(--shadow-lift);
  }
  .card-link:hover .tile {
    background: var(--brand-600);
    color: #fff;
    transform: rotate(-6deg) scale(1.06);
  }
  .card-link:hover strong .icon {
    color: var(--brand-700);
    transform: translateX(3px);
  }
}

/* Closing call to action */
.cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  gap: 28px;
  padding: 40px 28px;
  border-radius: var(--radius-xl);
  background: var(--ink-950);
  color: var(--ink-300);
}
.cta::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(50% 90% at 0% 0%, rgb(34 211 238 / 0.2), transparent 70%),
    radial-gradient(50% 90% at 100% 100%, rgb(124 92 255 / 0.3), transparent 70%);
}
.cta h2 {
  color: #fff;
  font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.3rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
}
.cta p {
  margin-top: 10px;
}
.cta-icon {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  box-shadow: 0 20px 40px -14px rgb(21 96 236 / 0.8);
  animation: bob 6s ease-in-out infinite;
}
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
@media (min-width: 900px) {
  .cta {
    grid-template-columns: auto 1fr auto;
    align-items: center;
    padding: 48px 56px;
  }
}

/* Copy-email button: shows "Copied" for a moment. */
.copy {
  position: relative;
}
.copy .done {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: inherit;
  background: var(--success-600);
  color: #fff;
  opacity: 0;
  transform: translateY(100%);
  transition:
    opacity 0.2s,
    transform 0.35s var(--spring);
}
.copy.copied .done {
  opacity: 1;
  transform: none;
}

/* ---------- Legal pages ---------- */
.page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 56px 0 64px;
  background: var(--ink-950);
  color: var(--ink-300);
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(40% 80% at 8% 0%, rgb(34 211 238 / 0.18), transparent 70%),
    radial-gradient(45% 90% at 95% 10%, rgb(124 92 255 / 0.26), transparent 70%),
    radial-gradient(50% 80% at 60% 130%, rgb(21 96 236 / 0.4), transparent 70%);
}
.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgb(255 255 255 / 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 0.045) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(90deg, transparent, #000 30%, #000 70%, transparent);
}
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--ink-400);
  font-size: 14px;
}
.crumbs a {
  color: var(--ink-300);
  text-decoration: none;
}
.crumbs a:hover {
  color: #fff;
}
.crumbs li + li::before {
  content: '/';
  margin-right: 8px;
  color: var(--ink-500);
}
.page-title {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 28px;
}
.page-title .tile {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgb(96 150 250 / 0.16);
  color: var(--brand-300);
  font-size: 28px;
  animation: pop 0.7s var(--spring) both;
}
@keyframes pop {
  from {
    opacity: 0;
    transform: scale(0.6) rotate(-12deg);
  }
}
.page-hero h1 {
  color: #fff;
  font-size: clamp(2rem, 1.3rem + 2.6vw, 3.2rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.035em;
}
.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid rgb(255 255 255 / 0.12);
  border-radius: 999px;
  background: rgb(255 255 255 / 0.04);
  color: var(--ink-300);
  font-size: 13px;
}
.chip .icon {
  color: var(--brand-300);
}
.doc {
  display: grid;
  gap: 40px;
  padding-block: 56px 96px;
}
@media (min-width: 1000px) {
  .doc {
    grid-template-columns: 15rem minmax(0, 46rem);
    justify-content: space-between;
    gap: 64px;
  }
}
/* "On this page": a disclosure on phones, a sticky list with the current section marked on wide screens. */
.toc {
  align-self: start;
}
.toc-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink-900);
  font: 600 15px/1.2 var(--font-sans);
  cursor: pointer;
}
.toc-btn .icon {
  transition: transform 0.3s var(--ease-quint);
}
.toc.open .toc-btn .icon {
  transform: rotate(180deg);
}
.toc-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s var(--ease-quint);
}
.toc.open .toc-panel {
  grid-template-rows: 1fr;
}
.toc-panel > div {
  overflow: hidden;
}
.toc ol {
  margin: 0;
  padding: 10px 0 0;
  list-style: none;
}
.toc ol a {
  position: relative;
  display: block;
  padding: 7px 12px 7px 16px;
  border-radius: 8px;
  color: var(--ink-600);
  font-size: 14px;
  line-height: 1.4;
  text-decoration: none;
  transition:
    color 0.2s,
    background-color 0.2s;
}
.toc ol a::before {
  content: '';
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 0;
  width: 3px;
  border-radius: 3px;
  background: var(--brand-600);
  transform: scaleY(0);
  transition: transform 0.3s var(--spring);
}
.toc ol a:hover {
  background: var(--ink-50);
  color: var(--ink-900);
}
.toc ol a.active {
  color: var(--brand-700);
  font-weight: 600;
}
.toc ol a.active::before {
  transform: scaleY(1);
}
.toc .side-card {
  display: none;
}
@media (min-width: 1000px) {
  .toc {
    position: sticky;
    top: calc(var(--header) + 32px);
  }
  .toc-btn {
    display: none;
  }
  .toc-panel {
    grid-template-rows: 1fr;
  }
  .toc .label {
    display: block;
    margin-bottom: 4px;
    padding-left: 16px;
    color: var(--ink-500);
  }
  .toc .side-card {
    display: block;
    margin-top: 28px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--ink-50);
    font-size: 14px;
  }
  .toc .side-card strong {
    display: block;
    margin-bottom: 4px;
    color: var(--ink-900);
  }
  .toc .side-card a {
    font-weight: 600;
  }
}
.toc .label {
  display: none;
}

/* Document text: the legal wording, styled. */
.prose {
  color: var(--ink-600);
  font-size: 17px;
  line-height: 1.75;
}
.intro-block p {
  color: var(--ink-700);
  font-size: 19px;
  line-height: 1.65;
}
.prose p + p,
.prose ul + p,
.prose ol + p,
.prose p + ul,
.prose p + ol {
  margin-top: 16px;
}
.prose section {
  margin-top: 48px;
  padding-top: 8px;
}
.prose h2 {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}
/* Copy a link to this section: appears on hover or focus. */
.anchor {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink-500);
  font-size: 16px;
  cursor: pointer;
  opacity: 0;
  transition:
    opacity 0.2s,
    background-color 0.2s,
    color 0.2s;
}
.prose section:hover .anchor,
.anchor:focus-visible {
  opacity: 1;
}
.anchor:hover {
  background: var(--brand-50);
  color: var(--brand-700);
}
@media (hover: none) {
  .anchor {
    opacity: 1;
  }
}
.prose ul,
.prose ol {
  margin: 0;
  padding: 0;
  list-style: none;
}
.prose ul li {
  position: relative;
  padding-left: 30px;
}
.prose ul li + li,
.prose ol li + li {
  margin-top: 10px;
}
.prose ul li::before {
  content: '';
  position: absolute;
  top: 0.62em;
  left: 6px;
  width: 8px;
  height: 8px;
  border-radius: 3px;
  background: var(--brand-600);
  transform: rotate(45deg);
}
.prose ol {
  counter-reset: li;
}
.prose ol li {
  position: relative;
  padding-left: 44px;
  counter-increment: li;
}
.prose ol li::before {
  content: counter(li);
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: var(--brand-50);
  color: var(--brand-700);
  font: 700 14px/1 var(--font-display);
}
.prose b,
.prose strong {
  color: var(--ink-900);
  font-weight: 600;
}
.prose a {
  font-weight: 500;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}
/* Callouts (data usage, delete account). */
.panel {
  margin-top: 16px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--ink-50);
}
.panel.good {
  border-color: var(--success-200);
  background: var(--success-50);
}
.panel.good ul li::before {
  background: var(--success-600);
}
.panel.info {
  border-color: var(--brand-200);
  background: var(--brand-50);
}
.panel-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  color: var(--ink-900);
  font: 700 16px/1.3 var(--font-display);
}
.panel-head .tile {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #fff;
  font-size: 20px;
}
.panel.good .panel-head .tile {
  color: var(--success-600);
}
/* "Not collected": each item as a struck-through chip. */
.prose ul.nots {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.prose ul.nots li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 8px 14px 8px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink-700);
  font-size: 15px;
  line-height: 1.3;
  transition:
    border-color 0.2s,
    transform 0.3s var(--spring);
}
.prose ul.nots li::before {
  display: none;
}
.prose ul.nots li .x {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--danger-50);
  color: var(--danger-600);
  font-size: 13px;
}
@media (hover: hover) {
  .prose ul.nots li:hover {
    border-color: var(--ink-300);
    transform: translateY(-2px);
  }
}
/* Delete account: steps as numbered cards. */
.prose ol.step-cards {
  display: grid;
  gap: 12px;
}
.prose ol.step-cards li {
  margin: 0;
  padding: 20px 20px 20px 68px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-card);
  transition:
    transform 0.4s var(--spring),
    border-color 0.3s;
}
.prose ol.step-cards li::before {
  top: 18px;
  left: 20px;
  width: 32px;
  height: 32px;
  background: var(--brand-600);
  color: #fff;
}
@media (hover: hover) {
  .prose ol.step-cards li:hover {
    transform: translateX(4px);
    border-color: var(--brand-200);
  }
}
.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}
.inline-actions .btn {
  height: 48px;
  font-size: 15px;
}

/* More from the app (bottom of legal pages) */
.related {
  padding: 72px 0;
  border-top: 1px solid var(--line);
  background: var(--ink-50);
}
.related h2 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.related .cards {
  margin-top: 24px;
}
@media (min-width: 1000px) {
  .related .cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ---------- Footer ---------- */
.footer {
  background: var(--ink-950);
  color: var(--ink-400);
  font-size: 14px;
}
.footer-in {
  display: grid;
  gap: 32px;
  padding-block: 56px 40px;
}
.footer .brand {
  color: #fff;
}
.footer .brand b {
  color: var(--brand-300);
}
.footer p {
  max-width: 22rem;
  margin-top: 14px;
}
.footer h2 {
  color: var(--ink-400);
  font: 500 11px/1.4 var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.footer ul {
  display: grid;
  gap: 8px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}
.footer a {
  color: #fff;
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat;
  transition: background-size 0.45s var(--ease-out);
}
.footer a:hover,
.footer a:focus-visible {
  background-size: 100% 1.5px;
}
.footer-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-block: 22px 28px;
  border-top: 1px solid rgb(255 255 255 / 0.08);
}
.made {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.made b {
  color: #fff;
  font-family: var(--font-display);
  letter-spacing: -0.02em;
}
.made b span {
  color: var(--brand-300);
}
@media (min-width: 760px) {
  .footer-in {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

/* Back to top */
.to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 40;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  background: var(--ink-900);
  color: #fff;
  font-size: 20px;
  box-shadow: var(--shadow-lift);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px) scale(0.9);
  transition:
    opacity 0.25s,
    transform 0.35s var(--spring),
    background-color 0.2s;
}
.to-top.show {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}
.to-top:hover {
  background: var(--brand-600);
}
.to-top:hover .icon {
  animation: nudge 0.6s var(--spring);
}
@keyframes nudge {
  40% {
    transform: translateY(-4px);
  }
}

/* Toast ("Link copied") */
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 70;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px 12px 12px;
  border-radius: 999px;
  background: var(--ink-900);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  box-shadow: var(--shadow-lift);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 16px) scale(0.96);
  transition:
    opacity 0.2s,
    transform 0.35s var(--spring);
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
.toast span {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: var(--success-600);
  font-size: 14px;
}

/* ---------- Scroll reveal ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.7s var(--ease-quint),
    transform 0.8s var(--ease-quint);
  transition-delay: calc(var(--i, 0) * 80ms);
}
.js .reveal.in {
  opacity: 1;
  transform: none;
}
.hero .rise {
  animation: rise 0.9s var(--ease-quint) both;
  animation-delay: calc(var(--i, 0) * 90ms);
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .js .reveal {
    opacity: 1;
    transform: none;
  }
  /* The phone shows the finished scan instead of looping. */
  .paper {
    animation: none;
    transform: none;
    background: #fff;
  }
  .paper i {
    animation: none;
    background: #3b4257;
  }
  .corners,
  .sweep {
    display: none;
  }
  .ready {
    animation: none;
    opacity: 1;
    transform: translate(-50%, 0);
  }
  .phone {
    transform: none;
  }
}
