/* Universal Scanner — landing page.
   Brand: blue → violet (#3B5BFF → #6236F5) from the app, on a quiet,
   mostly neutral page so the product screenshots carry the colour. */

:root {
  --blue: #3b5bff;
  --violet: #6236f5;
  --brand: linear-gradient(120deg, var(--blue) 0%, var(--violet) 100%);

  --ink: #0b0a2e;
  --ink-2: #4a4f6a;
  --ink-3: #7a7f99;
  --line: #e7e8f0;
  --line-2: #d9dbe7;
  --bg: #ffffff;
  --bg-soft: #f7f8fc;
  --tile: #f4f5fb;
  --accent: #3b5bff;
  --accent-soft: #eef1ff;

  --night: #0b0a2e;
  --night-2: #131140;

  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;

  --shadow-sm: 0 1px 2px rgba(11, 10, 46, 0.06), 0 2px 8px rgba(11, 10, 46, 0.04);
  --shadow: 0 2px 6px rgba(11, 10, 46, 0.05), 0 18px 40px -12px rgba(11, 10, 46, 0.18);
  --shadow-lg: 0 30px 80px -20px rgba(31, 27, 110, 0.35);

  --container: 1180px;
  color-scheme: light;
}

/* ---------- Base ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: 'cv11', 'ss01';
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.12;
}

p {
  margin: 0;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: 16px;
  top: 12px;
  z-index: 100;
  padding: 8px 14px;
  border-radius: var(--r-sm);
  background: var(--ink);
  color: var(--bg);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.kicker {
  margin-bottom: 14px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
}

.kicker-light {
  color: #a9b8ff;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 500;
  transition: background 0.2s, transform 0.2s;
}

.btn-sm {
  height: 38px;
  padding: 0 18px;
  font-size: 14px;
}

.btn-dark {
  background: var(--ink);
  color: var(--bg);
}

.btn-dark:hover {
  background: var(--blue);
  color: #fff;
}

/* Google Play button in the shape of the official badge. */
.play {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 56px;
  padding: 0 22px 0 16px;
  border: 1px solid #000;
  border-radius: 12px;
  background: #000;
  color: #fff;
  transition: transform 0.2s, box-shadow 0.2s;
}

.play:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px -10px rgba(0, 0, 0, 0.5);
}

.play-light {
  border-color: rgba(255, 255, 255, 0.35);
}

.play-mark {
  width: 26px;
  height: 28px;
  flex: none;
}

.play span {
  display: flex;
  flex-direction: column;
  font-size: 21px;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.015em;
}

.play small {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.link-arrow {
  color: var(--ink);
  font-weight: 500;
}

.link-arrow span {
  display: inline-block;
  transition: transform 0.2s;
}

.link-arrow:hover span {
  transform: translateX(3px);
}

/* ---------- Navigation ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  transition: border-color 0.2s;
}

.nav.scrolled {
  border-bottom-color: var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  height: 64px;
  gap: 32px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.logo img {
  border-radius: 8px;
}

.nav-links {
  display: flex;
  gap: 4px;
  margin-left: auto;
}

.nav-links a {
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.15s, background 0.15s;
}

.nav-links a:hover {
  color: var(--ink);
  background: var(--bg-soft);
}

/* ---------- Device frame ---------- */

.device {
  aspect-ratio: 720 / 1556;
  padding: 7px;
  border-radius: 40px;
  background: #0d0d14;
  box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.device img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  border-radius: 33px;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 72px 0 96px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(42% 55% at 78% 38%, rgba(98, 54, 245, 0.18), transparent 70%),
    radial-gradient(30% 40% at 60% 75%, rgba(59, 91, 255, 0.14), transparent 70%);
  pointer-events: none;
}

/* A faint grid, fading out towards the edges. */
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  opacity: 0.55;
  mask-image: radial-gradient(70% 60% at 60% 40%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(70% 60% at 60% 40%, #000 20%, transparent 75%);
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 56px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 5px 12px 5px 5px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--bg);
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 500;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s;
}

.pill:hover {
  border-color: var(--accent);
}

.pill-tag {
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
}

.pill svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero h1 {
  margin-top: 28px;
  font-size: clamp(44px, 6.4vw, 76px);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.02;
}

.accent {
  background: var(--brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  max-width: 500px;
  margin-top: 24px;
  color: var(--ink-2);
  font-size: 19px;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 28px;
  margin-top: 36px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin: 40px 0 0;
  padding: 24px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
  color: var(--ink-3);
  font-size: 14px;
}

.hero-meta li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-meta li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
}

.hero-visual {
  position: relative;
  height: 600px;
}

.hero-visual .device {
  position: absolute;
  width: 268px;
}

.device-front {
  top: 0;
  left: 18%;
  z-index: 2;
}

.device-back {
  top: 64px;
  left: 50%;
  z-index: 1;
  opacity: 0.96;
}

.float-card {
  position: absolute;
  bottom: 36px;
  left: 0;
  z-index: 3;
  width: 330px;
  margin: 0;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--bg);
  box-shadow: var(--shadow-lg);
}

.float-card img {
  border-radius: 14px;
}

/* ---------- Stats ---------- */

.stats {
  border-block: 1px solid var(--line);
  background: var(--bg-soft);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stat {
  padding: 32px 28px;
  border-left: 1px solid var(--line);
}

.stat:first-child {
  border-left: 0;
  padding-left: 0;
}

.stat strong {
  display: block;
  font-size: 40px;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
}

.stat span {
  display: block;
  max-width: 220px;
  margin-top: 10px;
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.5;
}

/* ---------- Sections ---------- */

.section {
  padding: 112px 0;
}

.section-tint {
  background: var(--bg-soft);
  border-block: 1px solid var(--line);
}

.heading {
  max-width: 680px;
  margin-bottom: 56px;
}

.heading h2,
.safety h2,
.comfort-copy h2,
.faq-head h2 {
  font-size: clamp(32px, 4.2vw, 48px);
  font-weight: 650;
  letter-spacing: -0.035em;
}

.heading > p:last-child {
  margin-top: 16px;
  color: var(--ink-2);
  font-size: 18px;
}

/* ---------- Bento ---------- */

.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 340px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--tile);
  overflow: hidden;
  transition: border-color 0.2s, transform 0.3s;
}

.tile:hover {
  border-color: var(--line-2);
}

.tile-text {
  padding: 28px 28px 0;
}

.tile h3 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.tile p {
  max-width: 440px;
  margin-top: 8px;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.55;
}

.tile-media {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  padding: 28px;
}

.ui {
  width: 100%;
  border-radius: 14px;
}

.ui.shadow {
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.tile-product { grid-column: span 4; }
.tile-site { grid-column: span 2; }
.tile-batch { grid-column: span 3; }
.tile-export { grid-column: span 3; }
.tile-create { grid-column: span 2; }
.tile-history { grid-column: span 2; }
.tile-formats { grid-column: span 2; }

.media-stack {
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  justify-content: center;
  max-width: 560px;
  width: 100%;
  margin: 0 auto;
}

/* The batch panel floats over a dark, camera-like backdrop. */
.media-camera {
  margin: 24px 28px 28px;
  padding: 36px 28px;
  border-radius: 18px;
  background:
    radial-gradient(60% 80% at 30% 20%, rgba(143, 166, 255, 0.35), transparent 70%),
    linear-gradient(160deg, #3a3550, #1b1930);
}

.ui-float {
  max-width: 400px;
  filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.45));
}

/* Tall screenshots fade out at the bottom edge of the tile. */
.media-crop {
  align-items: flex-start;
  max-height: 230px;
  padding-bottom: 0;
  mask-image: linear-gradient(#000 55%, transparent);
  -webkit-mask-image: linear-gradient(#000 55%, transparent);
}

.media-crop .ui {
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.formats-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.formats-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg);
  color: var(--ink-2);
  font-size: 14px;
  box-shadow: var(--shadow-sm);
}

.fmt {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 10px;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.fmt-csv { background: #10a37f; }
.fmt-xls { background: #1d7a46; }
.fmt-pdf { background: #e5484d; }
.fmt-json { background: #6236f5; }

.chips {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-end;
  gap: 6px;
  flex: 1;
  margin: 0;
  padding: 24px 28px 28px;
  list-style: none;
}

.chips li {
  padding: 5px 10px;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  background: var(--bg);
  color: var(--ink-2);
  font-size: 12.5px;
  font-weight: 500;
}

/* ---------- Link safety ---------- */

.safety {
  position: relative;
  padding: 120px 0;
  background:
    radial-gradient(50% 70% at 85% 50%, rgba(98, 54, 245, 0.35), transparent 70%),
    linear-gradient(180deg, var(--night), var(--night-2));
  color: #fff;
  overflow: hidden;
}

.safety-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: 72px;
}

.safety-lead {
  max-width: 540px;
  margin-top: 20px;
  color: #b9bdd8;
  font-size: 18px;
}

.steps-list {
  display: grid;
  gap: 4px;
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps-list li {
  position: relative;
  padding: 18px 0 18px 56px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  counter-increment: step;
}

.steps-list li::before {
  content: counter(step);
  position: absolute;
  top: 18px;
  left: 0;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  color: #a9b8ff;
  font-size: 14px;
  font-weight: 600;
}

.steps-list strong {
  display: block;
  font-weight: 600;
}

.steps-list span {
  display: block;
  margin-top: 4px;
  color: #b9bdd8;
  font-size: 15px;
}

.safety-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.halo {
  position: absolute;
  inset: 10% 5%;
  border-radius: 50%;
  background: var(--brand);
  filter: blur(90px);
  opacity: 0.5;
}

.ui-dialog {
  position: relative;
  width: 100%;
  max-width: 400px;
  filter: drop-shadow(0 40px 60px rgba(0, 0, 0, 0.55));
}

/* ---------- How it works ---------- */

.how {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.how-step {
  padding: 0 0 8px;
}

.how-shot {
  height: 300px;
  padding: 28px 40px 0;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background:
    radial-gradient(70% 60% at 50% 100%, rgba(98, 54, 245, 0.12), transparent 70%),
    var(--tile);
  overflow: hidden;
}

.how-shot img {
  width: 100%;
  border: 6px solid #0d0d14;
  border-bottom: 0;
  border-radius: 30px 30px 0 0;
  box-shadow: var(--shadow);
}

.how-num {
  display: block;
  margin-top: 24px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.how-step h3 {
  margin-top: 8px;
  font-size: 20px;
}

.how-step p {
  margin-top: 8px;
  color: var(--ink-2);
  font-size: 15px;
}

/* ---------- Comfort ---------- */

.comfort-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 72px;
}

.comfort-visual {
  display: flex;
  justify-content: center;
  gap: 24px;
}

.device-sm {
  width: 230px;
}

.device-raised {
  margin-top: -48px;
}

.comfort-copy > p:not(.kicker) {
  margin-top: 16px;
  color: var(--ink-2);
  font-size: 18px;
}

.spec {
  margin: 32px 0 0;
  border-top: 1px solid var(--line);
}

.spec div {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}

.spec dt {
  color: var(--ink-3);
}

.spec dd {
  margin: 0;
  font-weight: 500;
}

/* ---------- Privacy ---------- */

.privacy-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
}

.privacy-item {
  padding: 32px 28px 8px 0;
}

.privacy-item + .privacy-item {
  padding-left: 28px;
  border-left: 1px solid var(--line);
}

.privacy-item h3 {
  font-size: 17px;
}

.privacy-item p {
  margin-top: 8px;
  color: var(--ink-2);
  font-size: 15px;
}

/* ---------- FAQ ---------- */

.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 72px;
}

.faq-head > p:last-child {
  margin-top: 16px;
  color: var(--ink-2);
}

.faq-list {
  border-top: 1px solid var(--line-2);
}

.faq-list details {
  border-bottom: 1px solid var(--line-2);
}

.faq-list summary {
  position: relative;
  padding: 22px 48px 22px 0;
  font-size: 17px;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 4px;
  width: 9px;
  height: 9px;
  margin-top: -7px;
  border-right: 1.8px solid var(--ink-3);
  border-bottom: 1.8px solid var(--ink-3);
  transform: rotate(45deg);
  transition: transform 0.2s;
}

.faq-list details[open] summary::after {
  margin-top: -2px;
  transform: rotate(-135deg);
}

.faq-list details p {
  max-width: 620px;
  padding: 0 0 24px;
  color: var(--ink-2);
}

/* ---------- CTA ---------- */

.cta {
  padding: 112px 0;
}

.cta-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 48px 56px;
  border-radius: 28px;
  background:
    radial-gradient(60% 120% at 100% 0%, rgba(255, 255, 255, 0.18), transparent 60%),
    var(--brand);
  color: #fff;
  box-shadow: 0 30px 70px -30px rgba(98, 54, 245, 0.8);
}

.cta-copy {
  display: flex;
  align-items: center;
  gap: 24px;
}

.cta-copy img {
  border-radius: 16px;
  box-shadow: 0 10px 24px -8px rgba(0, 0, 0, 0.4);
}

.cta h2 {
  font-size: clamp(26px, 3.2vw, 36px);
  font-weight: 650;
  letter-spacing: -0.03em;
}

.cta-copy p {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.8);
}

/* ---------- Footer ---------- */

.footer {
  padding: 64px 0 40px;
  border-top: 1px solid var(--line);
  font-size: 14px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-brand p {
  max-width: 280px;
  margin-top: 14px;
  color: var(--ink-2);
}

.footer h4 {
  margin-bottom: 14px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
}

.footer nav a {
  display: block;
  padding: 4px 0;
  color: var(--ink-2);
  transition: color 0.15s;
}

.footer nav a:hover {
  color: var(--ink);
}

.footer-company img {
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--line);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--ink-3);
  font-size: 13px;
}

/* ---------- Motion ---------- */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  .hero-grid,
  .safety-grid,
  .comfort-grid,
  .faq-grid {
    grid-template-columns: 1fr;
    gap: 56px;
  }

  .hero-visual {
    max-width: 560px;
    width: 100%;
    margin: 0 auto;
  }

  .safety-visual {
    order: -1;
  }

  .bento {
    grid-template-columns: repeat(2, 1fr);
  }

  .tile-product,
  .tile-batch,
  .tile-export {
    grid-column: span 2;
  }

  .tile-site,
  .tile-create,
  .tile-history,
  .tile-formats {
    grid-column: span 1;
  }

  .privacy-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .privacy-item:nth-child(3) {
    padding-left: 0;
    border-left: 0;
  }
}

@media (max-width: 760px) {
  .nav-links {
    display: none;
  }

  .nav .btn {
    margin-left: auto;
  }

  .hero {
    padding: 40px 0 64px;
  }

  .hero-lead {
    font-size: 17px;
  }

  .hero-visual {
    height: 470px;
  }

  .hero-visual .device {
    width: 200px;
    border-radius: 30px;
    padding: 5px;
  }

  .hero-visual .device img {
    border-radius: 25px;
  }

  .device-front {
    left: 6%;
  }

  .device-back {
    top: 48px;
    left: auto;
    right: 4%;
  }

  .float-card {
    width: 260px;
    bottom: 10px;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .stat {
    padding: 24px 0;
    border-left: 0;
  }

  .stat:nth-child(even) {
    padding-left: 20px;
    border-left: 1px solid var(--line);
  }

  .stat:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .stat strong {
    font-size: 32px;
  }

  .section,
  .cta {
    padding: 80px 0;
  }

  .safety {
    padding: 80px 0;
  }

  .bento {
    grid-template-columns: 1fr;
  }

  .bento .tile {
    grid-column: span 1;
    min-height: 0;
  }

  .media-stack {
    padding-top: 20px;
  }

  .how {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .comfort-visual {
    gap: 14px;
  }

  .device-sm {
    width: 46%;
    max-width: 200px;
    border-radius: 28px;
    padding: 5px;
  }

  .device-sm img {
    border-radius: 23px;
  }

  .privacy-grid {
    grid-template-columns: 1fr;
  }

  .privacy-item,
  .privacy-item + .privacy-item {
    padding: 24px 0;
    border-left: 0;
    border-bottom: 1px solid var(--line);
  }

  .spec div {
    grid-template-columns: 110px 1fr;
  }

  .cta-box {
    flex-direction: column;
    align-items: flex-start;
    padding: 36px 28px;
  }

  .cta-copy {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: span 2;
  }
}

@media (max-width: 400px) {
  .container {
    padding: 0 16px;
  }

  .hero-visual .device {
    width: 176px;
  }

  .float-card {
    width: 230px;
  }
}

/* ---------- Legal document (privacy.html) ---------- */

.doc {
  padding: 64px 0 112px;
}

.doc-grid {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 64px;
  align-items: start;
}

.doc-toc {
  position: sticky;
  top: 96px;
  font-size: 14px;
}

.toc-title {
  margin-bottom: 12px;
  color: var(--ink);
  font-weight: 600;
}

.doc-toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
  border-left: 1px solid var(--line);
}

.doc-toc a {
  display: block;
  margin-left: -1px;
  padding: 5px 0 5px 14px;
  border-left: 1px solid transparent;
  color: var(--ink-2);
  transition: color 0.15s, border-color 0.15s;
}

.doc-toc a:hover {
  color: var(--ink);
  border-left-color: var(--accent);
}

.doc-body {
  max-width: 760px;
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.7;
}

.doc-head {
  margin-bottom: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
}

.doc-head h1 {
  color: var(--ink);
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 700;
  letter-spacing: -0.04em;
}

.doc-meta {
  margin-top: 16px;
  font-size: 15px;
}

.doc-body section {
  margin-top: 48px;
}

.doc-body h2 {
  margin-bottom: 14px;
  color: var(--ink);
  font-size: 24px;
  font-weight: 600;
}

.doc-body h3 {
  margin: 28px 0 8px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 600;
}

.doc-body p + p {
  margin-top: 14px;
}

.doc-body strong,
.doc-body th {
  color: var(--ink);
}

.doc-body ul {
  margin: 12px 0;
  padding-left: 20px;
}

.doc-body li + li {
  margin-top: 6px;
}

.doc-body a:not(.placeholder) {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--accent) 35%, transparent);
  text-underline-offset: 3px;
}

.doc-body code {
  padding: 1px 6px;
  border-radius: 6px;
  background: var(--tile);
  font-size: 0.9em;
}

.callout {
  margin-top: 0 !important;
  padding: 24px 28px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  background: var(--tile);
}

.callout h2 {
  font-size: 18px;
}

.callout ul {
  margin: 0;
}

.table-scroll {
  overflow-x: auto;
  margin: 16px 0;
}

.doc-table {
  width: 100%;
  margin: 16px 0;
  border-collapse: collapse;
  font-size: 14.5px;
  line-height: 1.55;
}

.table-scroll .doc-table {
  margin: 0;
  min-width: 600px;
}

.doc-table th,
.doc-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.doc-table thead th {
  border-bottom-color: var(--line-2);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
}

.doc-table tbody th {
  width: 36%;
  font-weight: 600;
}

.oss td:nth-child(2),
.oss td:nth-child(3) {
  white-space: nowrap;
}

.note {
  font-size: 14.5px;
}

.contact-card {
  margin-top: 12px;
  padding: 20px 24px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--tile);
  font-style: normal;
}

.placeholder {
  padding: 1px 6px;
  border-radius: 6px;
  background: #fff3bf;
  color: #7a5b00;
  font-weight: 600;
}

.footer-bottom-solo {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.footer-bottom a:hover {
  color: var(--ink);
}

@media (max-width: 900px) {
  .doc-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .doc-toc {
    position: static;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: var(--r);
  }

  .doc-toc ol {
    columns: 2;
    column-gap: 16px;
    border-left: 0;
  }

  .doc-toc a {
    padding-left: 0;
  }
}

@media (max-width: 480px) {
  .doc-toc ol {
    columns: 1;
  }

  .doc-table tbody th {
    width: 42%;
  }
}

.partner-list {
  padding-left: 0 !important;
  list-style: none;
}

/* Keep wide tables from stretching the page on phones. */
.doc-grid > * {
  min-width: 0;
}
