/* PDF Tools website. One stylesheet for every page.
   Colours and type follow the app (lib/core/constants/app_colors.dart). */

:root {
  --bg: #0e0f13;
  --surface: #181a21;
  --surface-2: #20232c;
  --line: #2b2f3a;
  --ink: #f4f4f6;
  --muted: #a3a7b5;
  --lime: #c6f432;
  --on-lime: #0e0f13;
  --coral: #ff7a5c;
  --sky: #7cc4ff;
  --violet: #b79cff;
  --amber: #ffc46b;

  --display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --body: "Onest", "Segoe UI", system-ui, -apple-system, sans-serif;

  --radius: 24px;
  --page: 1160px;
  --gutter: clamp(16px, 4vw, 32px);
  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--lime);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--lime);
  color: var(--on-lime);
  padding: 10px 16px;
  border-radius: 12px;
  z-index: 100;
  font-weight: 700;
}

.skip:focus {
  left: 8px;
}

.wrap {
  width: 100%;
  max-width: var(--page);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

h1,
h2,
h3 {
  font-family: var(--display);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0;
}

h1 {
  font-size: clamp(40px, 7vw, 76px);
  font-weight: 800;
}

h2 {
  font-size: clamp(30px, 4.6vw, 50px);
  font-weight: 800;
}

h3 {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.lime {
  color: var(--lime);
}

.lead {
  font-size: clamp(18px, 2vw, 21px);
  color: var(--muted);
  max-width: 640px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--lime);
  background: rgba(198, 244, 50, 0.08);
  border: 1px solid rgba(198, 244, 50, 0.25);
  padding: 6px 14px;
  border-radius: 999px;
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(14, 15, 19, 0.72);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}

.site-header.scrolled {
  border-bottom-color: var(--line);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-family: var(--display);
  font-weight: 800;
  font-size: 20px;
}

.brand:hover {
  text-decoration: none;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--muted);
  font-weight: 500;
  font-size: 15px;
  padding: 8px 12px;
  border-radius: 10px;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--ink);
  background: var(--surface);
  text-decoration: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--body);
  font-weight: 700;
  font-size: 16px;
  border-radius: 999px;
  padding: 12px 22px;
  min-height: 48px;
  border: 0;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-2px);
}

.btn-lime {
  background: var(--lime);
  color: var(--on-lime);
  box-shadow: 0 10px 30px -10px rgba(198, 244, 50, 0.55);
}

.btn-lime:hover {
  box-shadow: 0 16px 40px -10px rgba(198, 244, 50, 0.7);
}

.btn-ghost {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
}

.nav .btn {
  padding: 8px 18px;
  min-height: 42px;
  font-size: 15px;
}

.menu-toggle {
  display: none;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink);
  width: 44px;
  height: 44px;
  border-radius: 12px;
  cursor: pointer;
}

@media (max-width: 860px) {
  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav-links {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px var(--gutter) 20px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .nav-links.open {
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links a {
    display: block;
    padding: 12px 14px;
    font-size: 17px;
  }

  .nav-cta {
    display: none;
  }
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  padding: clamp(48px, 8vw, 96px) 0 clamp(56px, 8vw, 110px);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.hero h1 {
  margin: 20px 0 20px;
}

.hero .lead {
  margin: 0 0 32px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.play-badge {
  display: inline-block;
  line-height: 0;
  border-radius: 14px;
  transition: transform 0.2s ease;
}

.play-badge:hover {
  transform: translateY(-2px);
}

.play-badge img {
  height: 64px;
  width: auto;
  /* The official badge carries its own transparent margin. */
  margin: -10px;
}

.trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 15px;
}

.trust li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.trust svg {
  color: var(--lime);
  flex: none;
}

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: -1;
}

.glow-a {
  width: 520px;
  height: 520px;
  right: -120px;
  top: -80px;
  background: rgba(198, 244, 50, 0.16);
  animation: drift 14s ease-in-out infinite alternate;
}

.glow-b {
  width: 420px;
  height: 420px;
  left: -160px;
  bottom: -140px;
  background: rgba(124, 196, 255, 0.1);
  animation: drift 18s ease-in-out infinite alternate-reverse;
}

@keyframes drift {
  from {
    transform: translate(0, 0) scale(1);
  }
  to {
    transform: translate(-40px, 30px) scale(1.12);
  }
}

/* phones drawn in CSS around real captures */

.devices {
  position: relative;
  height: clamp(460px, 56vw, 620px);
}

.phone {
  position: absolute;
  width: clamp(200px, 22vw, 270px);
  aspect-ratio: 1080 / 2101;
  border-radius: 34px;
  padding: 7px;
  background: #1b1d24;
  border: 1px solid #343843;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.02) inset;
}

.phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  border-radius: 27px;
}

.phone-front {
  right: 14%;
  top: 0;
  z-index: 2;
  animation: float 7s ease-in-out infinite;
}

.phone-back {
  right: 52%;
  top: 70px;
  transform: rotate(-8deg);
  opacity: 0.92;
  animation: float-tilt 8s ease-in-out infinite;
  animation-delay: -2s;
}

.chip-float {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: rgba(24, 26, 33, 0.92);
  border: 1px solid var(--line);
  border-radius: 16px;
  font-weight: 600;
  font-size: 14px;
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.8);
  animation: float 6s ease-in-out infinite;
}

.chip-float .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.chip-1 {
  right: 0;
  top: 18%;
  animation-delay: -1s;
}

.chip-2 {
  right: 58%;
  bottom: 6%;
  animation-delay: -3s;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-14px);
  }
}

@keyframes float-tilt {
  0%,
  100% {
    transform: rotate(-8deg) translateY(0);
  }
  50% {
    transform: rotate(-8deg) translateY(-10px);
  }
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .devices {
    height: 520px;
    max-width: 440px;
    margin: 0 auto;
    width: 100%;
  }

  .phone {
    width: 220px;
  }

  .phone-front {
    right: 6%;
  }

  .phone-back {
    right: auto;
    left: 4%;
  }

  .chip-1 {
    right: -2%;
  }

  .chip-2 {
    right: auto;
    left: 0;
  }
}

@media (max-width: 420px) {
  .devices {
    height: 440px;
  }

  .phone {
    width: 180px;
  }
}

/* ---------- tool ticker ---------- */

.ticker {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 18px 0;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.ticker-track {
  display: flex;
  gap: 12px;
  width: max-content;
  animation: ticker 48s linear infinite;
}

.ticker:hover .ticker-track {
  animation-play-state: paused;
}

.ticker span {
  white-space: nowrap;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
}

@keyframes ticker {
  to {
    transform: translateX(-50%);
  }
}

/* ---------- sections ---------- */

section {
  padding: clamp(64px, 9vw, 120px) 0;
}

.section-head {
  max-width: 720px;
  margin: 0 0 clamp(36px, 5vw, 56px);
}

.section-head h2 {
  margin: 16px 0 14px;
}

.center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.center .lead {
  margin-left: auto;
  margin-right: auto;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: 16px;
}

.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-4px);
  border-color: #3a3f4d;
  background: #1c1e26;
}

.card h3 {
  margin: 18px 0 8px;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--surface-2);
}

.icon svg {
  width: 24px;
  height: 24px;
}

.c-lime {
  color: var(--lime);
}

.c-coral {
  color: var(--coral);
}

.c-sky {
  color: var(--sky);
}

.c-violet {
  color: var(--violet);
}

.c-amber {
  color: var(--amber);
}

.card .more {
  display: inline-block;
  margin-top: 14px;
  font-size: 15px;
  font-weight: 600;
}

/* alternating feature rows with a phone */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}

.split + .split {
  margin-top: clamp(64px, 9vw, 120px);
}

.split.flip .split-media {
  order: -1;
}

.split h2 {
  margin: 16px 0 16px;
}

.ticks {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  gap: 12px;
}

.ticks li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.ticks li::before {
  content: "";
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  border-radius: 50%;
  background: rgba(198, 244, 50, 0.14)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c6f432' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E")
    center / 14px no-repeat;
}

.split-media {
  position: relative;
  display: flex;
  justify-content: center;
}

.split-media .phone {
  position: relative;
  width: clamp(230px, 26vw, 300px);
}

.split-media::before {
  content: "";
  position: absolute;
  inset: 10% 15%;
  background: rgba(198, 244, 50, 0.12);
  filter: blur(70px);
  border-radius: 50%;
  z-index: -1;
}

@media (max-width: 820px) {
  .split {
    grid-template-columns: 1fr;
  }

  .split.flip .split-media {
    order: 0;
  }
}

/* tablet */

.tablet {
  max-width: 760px;
  margin: 0 auto;
  border-radius: 34px;
  padding: 10px;
  background: #1b1d24;
  border: 1px solid #343843;
  box-shadow: 0 50px 90px -40px rgba(0, 0, 0, 0.9);
}

.tablet img {
  border-radius: 25px;
  width: 100%;
}

/* privacy band */

.band {
  background:
    radial-gradient(circle at 15% 20%, rgba(198, 244, 50, 0.1), transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(183, 156, 255, 0.08), transparent 45%),
    var(--surface);
  border: 1px solid var(--line);
  border-radius: 36px;
  padding: clamp(32px, 6vw, 72px);
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 40px;
}

.stat {
  background: rgba(14, 15, 19, 0.6);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px;
}

.stat strong {
  display: block;
  font-family: var(--display);
  font-size: 40px;
  line-height: 1;
  color: var(--lime);
}

.stat span {
  color: var(--muted);
  font-size: 15px;
}

@media (max-width: 760px) {
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* steps */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  counter-reset: step;
}

.step {
  counter-increment: step;
}

.step::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--lime);
  color: var(--on-lime);
  font-family: var(--display);
  font-weight: 800;
  font-size: 20px;
}

@media (max-width: 760px) {
  .steps {
    grid-template-columns: 1fr;
  }
}

/* languages */

.langs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.langs li {
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-weight: 600;
}

/* gallery */

.gallery {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 10px var(--gutter) 24px;
  margin: 0 calc(var(--gutter) * -1);
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}

.gallery figure {
  flex: none;
  width: 230px;
  margin: 0;
  scroll-snap-align: center;
}

.gallery .phone {
  position: relative;
  width: 100%;
  border-radius: 30px;
  box-shadow: 0 24px 50px -28px rgba(0, 0, 0, 0.9);
}

.gallery .phone img {
  border-radius: 23px;
}

.gallery figcaption {
  margin-top: 14px;
  text-align: center;
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
}

/* FAQ */

.faq {
  max-width: 820px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}

.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 0 24px;
  transition: border-color 0.2s ease;
}

.faq details[open] {
  border-color: #3a3f4d;
}

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 0;
  font-weight: 600;
  font-size: 18px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  font-family: var(--display);
  font-size: 26px;
  line-height: 1;
  color: var(--lime);
  transition: transform 0.2s ease;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq details p {
  margin: 0 0 20px;
  color: var(--muted);
}

/* final call to action */

.cta-final {
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(198, 244, 50, 0.2), transparent 60%),
    var(--surface);
  border: 1px solid var(--line);
  border-radius: 36px;
  padding: clamp(40px, 7vw, 88px) var(--gutter);
}

.cta-final h2 {
  margin-bottom: 16px;
}

.cta-final .lead {
  margin: 0 auto 32px;
}

.cta-final .cta-row {
  justify-content: center;
}

/* ---------- features page ---------- */

.page-hero {
  padding: clamp(48px, 7vw, 88px) 0 clamp(24px, 4vw, 40px);
}

.page-hero h1 {
  font-size: clamp(38px, 6vw, 64px);
  margin: 18px 0 16px;
}

.toc {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.toc a {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink);
  font-weight: 500;
  font-size: 15px;
}

.toc a:hover {
  border-color: var(--lime);
  text-decoration: none;
}

.group {
  padding: clamp(40px, 6vw, 64px) 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: 80px;
}

.group-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}

.group-head h2 {
  font-size: clamp(28px, 4vw, 40px);
}

.tool-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 14px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.tool-list li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 20px 22px;
}

.tool-list h3 {
  font-size: 18px;
  margin-bottom: 6px;
}

.tool-list p {
  margin: 0;
  color: var(--muted);
  font-size: 15.5px;
}

.tag {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  font-family: var(--body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  vertical-align: middle;
  color: var(--on-lime);
  background: var(--lime);
}

/* ---------- legal and text pages ---------- */

.prose {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(40px, 6vw, 72px) 0 clamp(64px, 8vw, 100px);
}

.prose h1 {
  font-size: clamp(36px, 5.4vw, 54px);
  margin-bottom: 10px;
}

.prose .updated {
  color: var(--muted);
  font-size: 15px;
  margin: 0 0 36px;
}

.prose h2 {
  font-size: clamp(22px, 2.6vw, 27px);
  margin: 44px 0 14px;
  scroll-margin-top: 84px;
}

.prose p,
.prose li {
  color: #d3d5dc;
}

.prose ul {
  padding-left: 22px;
}

.prose li + li {
  margin-top: 6px;
}

.prose a {
  word-break: break-word;
}

.note {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 20px 24px;
  margin: 24px 0;
}

.contact-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 26px;
  margin: 28px 0;
}

.contact-card strong {
  display: block;
  font-family: var(--display);
  font-size: 22px;
}

/* ---------- 404 ---------- */

.not-found {
  min-height: 62vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 64px 0;
}

.not-found .big {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(96px, 18vw, 180px);
  line-height: 1;
  color: var(--lime);
}

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 48px 0 40px;
  color: var(--muted);
  font-size: 15px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(2, 1fr);
  gap: 32px;
}

.footer-grid h2 {
  font-family: var(--body);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 14px;
}

.footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.footer-grid a {
  color: var(--muted);
}

.footer-grid a:hover {
  color: var(--ink);
}

.footer-bottom {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
}

@media (max-width: 700px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid > :first-child {
    grid-column: 1 / -1;
  }
}

/* ---------- reveal on scroll ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.js .reveal.in {
  opacity: 1;
  transform: none;
}

.js .stagger > * {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.js .stagger.in > * {
  opacity: 1;
  transform: none;
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .js .reveal,
  .js .stagger > * {
    opacity: 1;
    transform: none;
  }
}

/* "Get the app" inside the mobile menu only */
.nav-cta-mobile {
  display: none;
}

@media (max-width: 860px) {
  .nav-cta-mobile {
    display: block;
  }

  .nav-links .nav-cta-mobile a {
    background: var(--lime);
    color: var(--on-lime);
    font-weight: 700;
    text-align: center;
    margin-top: 8px;
  }
}

.prose h3 {
  margin: 26px 0 8px;
  font-size: 19px;
}

/* ---------- legal pages (privacy policy, terms) ---------- */

.legal-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 4vw, 44px) 0 clamp(36px, 5vw, 56px);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(24, 26, 33, 0.6), transparent);
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 26px;
}

.crumbs a {
  color: var(--muted);
}

.crumbs a:hover,
.crumbs [aria-current] {
  color: var(--ink);
}

.legal-title {
  display: flex;
  align-items: center;
  gap: 20px;
}

.doc-icon {
  flex: none;
  width: 68px;
  height: 68px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  background: var(--lime);
  color: var(--on-lime);
  box-shadow: 0 16px 40px -16px rgba(198, 244, 50, 0.6);
}

.doc-icon svg {
  width: 34px;
  height: 34px;
}

.doc-icon.small {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  box-shadow: none;
}

.doc-icon.small svg {
  width: 24px;
  height: 24px;
}

.legal-title h1 {
  font-size: clamp(30px, 5.4vw, 58px);
}

.legal-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.pill {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--ink);
  font-weight: 600;
  font-size: 13.5px;
}

.legal-intro {
  max-width: 760px;
  margin-top: 24px;
}

.legal-intro p {
  margin: 0;
  font-size: clamp(17px, 1.8vw, 19px);
  color: #d3d5dc;
}

.glance {
  margin-top: 34px;
}

.glance-label {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.glance-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.glance-item {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 20px;
}

.glance-item .icon {
  flex: none;
}

.glance-item h3 {
  font-size: 17px;
  margin: 0 0 6px;
}

.glance-item p {
  margin: 0;
  font-size: 15px;
  color: var(--muted);
  line-height: 1.5;
}

@media (max-width: 1000px) {
  .glance-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .glance-grid {
    grid-template-columns: 1fr;
  }

  .glance-item {
    flex-direction: row;
    align-items: flex-start;
  }

  .legal-title {
    align-items: flex-start;
  }

  .doc-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
  }
}

.legal-layout {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
  padding-top: clamp(32px, 5vw, 56px);
  padding-bottom: clamp(56px, 8vw, 96px);
}

.legal-toc {
  position: sticky;
  top: 88px;
  max-height: calc(100vh - 110px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}

.toc-box summary {
  list-style: none;
  cursor: default;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0 0 12px;
}

.toc-box summary::-webkit-details-marker {
  display: none;
}

.toc-box ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2px;
  border-left: 1px solid var(--line);
}

.toc-box a {
  display: flex;
  gap: 10px;
  align-items: baseline;
  padding: 7px 12px;
  margin-left: -1px;
  border-left: 2px solid transparent;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.4;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.toc-box a:hover {
  color: var(--ink);
  text-decoration: none;
}

.toc-box a[aria-current="true"] {
  color: var(--ink);
  border-left-color: var(--lime);
  background: linear-gradient(90deg, rgba(198, 244, 50, 0.08), transparent);
}

.toc-num {
  flex: none;
  min-width: 18px;
  font-weight: 700;
  color: var(--lime);
  font-variant-numeric: tabular-nums;
}

.legal-content {
  display: grid;
  gap: 14px;
}

.legal-section {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: clamp(20px, 3vw, 30px);
  scroll-margin-top: 88px;
  transition: border-color 0.3s ease;
}

.legal-section:target,
.legal-section.active {
  border-color: #3a3f4d;
}

.legal-num {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--lime);
  font-family: var(--display);
  font-weight: 800;
  font-size: 18px;
}

.legal-body h2 {
  font-size: clamp(21px, 2.4vw, 25px);
  margin: 8px 0 12px;
}

.legal-body p,
.legal-body li {
  color: #d3d5dc;
  font-size: 16.5px;
}

.legal-body p {
  margin: 0 0 12px;
}

.legal-body p:last-child,
.legal-body ul:last-child {
  margin-bottom: 0;
}

.legal-body ul {
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.legal-body li {
  position: relative;
  padding-left: 22px;
}

.legal-body li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.68em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime);
}

.legal-body a {
  word-break: break-word;
}

.legal-end {
  margin-top: 18px;
  display: grid;
  gap: 14px;
}

.legal-end .contact-card {
  margin: 0;
}

.other-doc {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  border-radius: 24px;
  border: 1px solid var(--line);
  color: var(--ink);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.other-doc:hover {
  text-decoration: none;
  border-color: var(--lime);
  background: var(--surface);
}

.other-doc > span:nth-child(2) {
  flex: 1;
  display: grid;
}

.other-doc strong {
  font-family: var(--display);
  font-size: 19px;
}

.other-doc span span {
  color: var(--muted);
  font-size: 15px;
}

.other-doc .arrow {
  font-size: 22px;
  color: var(--lime);
  transition: transform 0.2s ease;
}

.other-doc:hover .arrow {
  transform: translateX(4px);
}

.to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 40;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--ink);
  box-shadow: 0 14px 30px -12px rgba(0, 0, 0, 0.8);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease, border-color 0.2s ease;
}

.to-top.show {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.to-top:hover {
  border-color: var(--lime);
}

.to-top svg {
  width: 22px;
  height: 22px;
}

@media (max-width: 900px) {
  .legal-layout {
    grid-template-columns: 1fr;
  }

  .legal-toc {
    position: static;
    max-height: none;
    overflow: visible;
  }

  .toc-box {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 16px 18px;
  }

  .toc-box summary {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    padding: 0;
    font-size: 14px;
  }

  .toc-box summary::after {
    content: "+";
    font-size: 20px;
    line-height: 1;
    color: var(--lime);
  }

  .toc-box[open] summary {
    padding-bottom: 12px;
  }

  .toc-box[open] summary::after {
    content: "\2212";
  }
}

@media (max-width: 560px) {
  .legal-section {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .legal-num {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    font-size: 16px;
  }

  .legal-body h2 {
    margin-top: 0;
  }
}

/* Opened from the app's Settings: the app shows its own title bar. */
.in-app .site-header,
.in-app .site-footer,
.in-app .crumbs,
.in-app .other-doc {
  display: none;
}

.in-app .legal-hero {
  padding-top: 24px;
}

/* ---------- print ---------- */

@media print {
  :root {
    --bg: #fff;
    --surface: #fff;
    --surface-2: #fff;
    --line: #ccc;
    --ink: #111;
    --muted: #444;
    --lime: #4d6b00;
  }

  body {
    background: #fff;
    color: #111;
    font-size: 11pt;
  }

  .site-header,
  .site-footer,
  .legal-toc,
  .to-top,
  .glow,
  .crumbs,
  .legal-end,
  .skip {
    display: none !important;
  }

  .legal-layout {
    display: block;
    padding: 0;
  }

  .legal-section {
    break-inside: avoid;
    border: 0;
    padding: 10px 0;
  }

  .legal-body p,
  .legal-body li,
  .legal-intro p {
    color: #111;
  }

  .doc-icon {
    box-shadow: none;
  }

  .js .reveal,
  .js .stagger > * {
    opacity: 1 !important;
    transform: none !important;
  }
}
