:root {
  color-scheme: light;
  --white: #ffffff;
  --paper: #f5f7fb;
  --panel: #ffffff;
  --ink: #17181c;
  --muted: #6e7380;
  --soft: #e6ebf2;
  --page-bg: #ffffff;
  --page-tint: #f7fbff;
  --surface: #ffffff;
  --glass-bg: rgba(255, 255, 255, 0.9);
  --glass-border: rgba(255, 255, 255, 0.78);
  --header-bg: rgba(255, 255, 255, 0.9);
  --header-border: rgba(230, 235, 242, 0.86);
  --nav-ink: #393d47;
  --phone-ring: rgba(255, 255, 255, 0.85);
  --blue: #0a84ff;
  --blue-deep: #0015ff;
  --sky: #0ec6ff;
  --navy: #050619;
  --navy-2: #08002f;
  --green: #18a058;
  --yellow: #f2b23a;
  --red: #d74655;
  --radius: 8px;
  --max: 1180px;
  --shadow-soft: 0 24px 70px rgba(8, 20, 45, 0.1);
  --shadow-blue: 0 18px 42px rgba(10, 132, 255, 0.24);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
}

/* Dark theme — set by theme.js (data-theme="dark") from saved choice or OS preference.
   The .verify-section is intentionally dark in both themes and is left untouched. */
[data-theme="dark"] {
  color-scheme: dark;
  --ink: #eef1f6;
  --muted: #9aa1b0;
  --soft: rgba(255, 255, 255, 0.1);
  --paper: #12141d;
  --page-bg: #0a0b12;
  --page-tint: #0c0e17;
  --surface: #14161f;
  --glass-bg: rgba(20, 22, 31, 0.82);
  --glass-border: rgba(255, 255, 255, 0.1);
  --header-bg: rgba(10, 11, 18, 0.82);
  --header-border: rgba(255, 255, 255, 0.08);
  --nav-ink: #aab1c0;
  --phone-ring: rgba(255, 255, 255, 0.12);
  --shadow-soft: 0 24px 70px rgba(0, 0, 0, 0.55);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--page-bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0;
  overflow-x: clip;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button {
  border: 0;
}

[hidden] {
  display: none !important;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 28px;
  min-height: 62px;
  padding: 10px 46px;
  border-bottom: 1px solid var(--header-border);
  background: var(--header-bg);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: max-content;
  font-size: 1.34rem;
  font-weight: 780;
  letter-spacing: -0.012em;
}

.brand img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.brand-small img {
  width: 28px;
  height: 28px;
}

.site-nav,
.site-footer nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 31px;
  color: var(--nav-ink);
  font-size: 0.86rem;
  font-weight: 630;
}

.site-nav a,
.site-footer a,
.text-link {
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease;
}

.site-nav a:hover,
.site-footer a:hover,
.text-link:hover {
  color: var(--blue);
}

.site-nav a[aria-current="page"],
.site-footer a[aria-current="page"] {
  color: var(--blue);
}

.header-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.theme-toggle {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--soft);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease;
}

.theme-toggle:hover {
  border-color: rgba(10, 132, 255, 0.4);
  background: rgba(10, 132, 255, 0.07);
  color: var(--blue);
}

.theme-toggle:focus-visible {
  outline: 3px solid rgba(10, 132, 255, 0.42);
  outline-offset: 2px;
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.theme-icon-sun {
  display: none;
}

[data-theme="dark"] .theme-icon-sun {
  display: block;
}

[data-theme="dark"] .theme-icon-moon {
  display: none;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: linear-gradient(180deg, #3a9dff, var(--blue) 55%, #0a6fe0);
  box-shadow: 0 14px 32px rgba(10, 132, 255, 0.22);
  color: #fff;
  cursor: pointer;
  font-size: 0.94rem;
  font-weight: 760;
  touch-action: manipulation;
  white-space: nowrap;
  transition: transform 150ms ease, box-shadow 220ms ease, filter 150ms ease, opacity 150ms ease;
}

.button:hover:not(:disabled) {
  transform: translateY(-1.5px);
  box-shadow: 0 24px 52px rgba(10, 132, 255, 0.34);
  filter: saturate(1.06) brightness(1.04);
}

.button:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 9px 22px rgba(10, 132, 255, 0.26);
}

.button:focus-visible {
  outline: 3px solid rgba(10, 132, 255, 0.42);
  outline-offset: 2px;
}

.button svg,
.step-icon svg,
.upload-icon svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.button svg {
  width: 18px;
  height: 18px;
  stroke-width: 2;
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.button-small {
  min-height: 36px;
  padding-inline: 16px;
  font-size: 0.83rem;
}

.button-secondary {
  border-color: rgba(10, 132, 255, 0.28);
  background: var(--surface);
  box-shadow: 0 10px 30px rgba(10, 132, 255, 0.1);
  color: var(--blue);
}

.button-secondary:hover:not(:disabled) {
  border-color: rgba(10, 132, 255, 0.5);
  box-shadow: 0 16px 38px rgba(10, 132, 255, 0.16);
  filter: none;
}

.button-quiet {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: none;
  color: #fff;
}

.button-quiet:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.34);
  box-shadow: none;
  filter: none;
}

.hero {
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0) 70%, var(--page-tint) 100%),
    radial-gradient(circle at 74% 42%, rgba(14, 198, 255, 0.13), transparent 0 25rem),
    var(--page-bg);
  border-bottom: 1px solid var(--soft);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(340px, 0.72fr);
  align-items: center;
  gap: 84px;
  max-width: var(--max);
  min-height: 760px;
  margin: 0 auto;
  padding: 64px 32px 70px;
}

.hero-copy {
  max-width: 710px;
}

.hero h1,
.section-heading h2,
.verify-heading h1,
.verify-heading h2,
.closing-card h2,
.legal-document h1 {
  margin: 0;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", sans-serif;
  font-size: 5.4rem;
  line-height: 0.96;
  font-weight: 780;
  letter-spacing: -0.022em;
}

.hero p {
  max-width: 600px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: 1.38rem;
  line-height: 1.34;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.hero-product {
  position: relative;
  display: grid;
  min-height: 610px;
  place-items: center;
}

.hero-product::before {
  position: absolute;
  width: 470px;
  height: 470px;
  border-radius: 54px;
  background:
    linear-gradient(180deg, rgba(14, 198, 255, 0.12), rgba(255, 255, 255, 0.34)),
    linear-gradient(135deg, rgba(10, 132, 255, 0.08), rgba(0, 21, 255, 0.06));
  content: "";
  transform: rotate(-6deg);
}

[data-theme="dark"] .hero-product::before {
  background:
    linear-gradient(180deg, rgba(14, 198, 255, 0.1), rgba(20, 22, 31, 0.2)),
    linear-gradient(135deg, rgba(10, 132, 255, 0.1), rgba(0, 21, 255, 0.08));
}

.phone-shell {
  position: relative;
  overflow: hidden;
  width: 292px;
  border: 8px solid #070a12;
  border-radius: 44px;
  background: #070a12;
  box-shadow:
    0 38px 96px rgba(5, 18, 54, 0.22),
    0 0 0 1px var(--phone-ring);
}

.phone-shell img {
  width: 100%;
  border-radius: 36px;
}

.signal-card {
  position: absolute;
  display: grid;
  gap: 5px;
  width: 202px;
  padding: 16px 18px;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  background: var(--glass-bg);
  box-shadow: 0 22px 58px rgba(8, 20, 45, 0.13);
  backdrop-filter: blur(18px);
}

.signal-card span {
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 780;
}

.signal-card strong {
  font-size: 0.96rem;
  line-height: 1.18;
}

.signal-capture {
  top: 88px;
  left: 0;
}

.signal-share {
  right: 2px;
  top: 246px;
}

.signal-verify {
  bottom: 94px;
  left: 24px;
}

.section {
  scroll-margin-top: 82px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 108px 32px;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.76fr) minmax(360px, 0.54fr);
  align-items: end;
  gap: 52px;
  margin-bottom: 34px;
}

.section-heading h2,
.verify-heading h1,
.verify-heading h2,
.closing-card h2,
.legal-document h1 {
  font-size: 4rem;
}

.section-heading p,
.verify-heading p,
.closing-card p {
  margin: 0;
  color: var(--muted);
  font-size: 1.16rem;
  line-height: 1.42;
}

.story-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--soft);
  border-radius: var(--radius);
  background: var(--soft);
}

.story-grid article,
.use-case-grid article {
  background: var(--surface);
}

.story-grid article {
  min-height: 304px;
  padding: 32px;
}

.step-icon {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(14, 198, 255, 0.16), rgba(10, 132, 255, 0.09));
  color: var(--blue);
}

.step-icon svg {
  width: 28px;
  height: 28px;
  stroke-width: 1.8;
}

.story-grid h3,
.use-case-grid h3,
.verifier h3,
.verify-explainer h3 {
  margin: 28px 0 0;
  color: var(--ink);
  font-size: 1.28rem;
  line-height: 1.15;
}

.story-grid p,
.use-case-grid p,
.verifier p,
.verify-explainer p {
  margin: 10px 0 0;
  color: var(--muted);
}

.use-section {
  padding-top: 74px;
}

.compact-heading {
  margin-bottom: 28px;
}

.use-case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.use-case-grid article {
  min-height: 172px;
  padding: 28px;
  border: 1px solid var(--soft);
  border-radius: var(--radius);
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.use-case-grid article:hover {
  border-color: rgba(10, 132, 255, 0.28);
  box-shadow: var(--shadow-soft);
  transform: translateY(-2px);
}

.use-case-grid h3 {
  margin-top: 0;
  font-size: 1.08rem;
}

.use-case-grid p {
  font-size: 0.98rem;
}

.verify-section {
  scroll-margin-top: 82px;
  padding: 112px max(32px, calc((100vw - var(--max)) / 2 + 32px));
  background:
    radial-gradient(circle at 84% 12%, rgba(14, 198, 255, 0.24), transparent 0 24rem),
    linear-gradient(180deg, #060611, #030012 76%, #080915);
  color: #fff;
}

.verify-page {
  min-height: calc(100vh - 62px);
}

.verify-simple {
  padding-top: 92px;
  padding-bottom: 92px;
}

.verify-heading .eyebrow {
  margin-bottom: 12px;
  color: var(--sky);
  font-size: 0.82rem;
  font-weight: 780;
  text-transform: uppercase;
}

.verify-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(340px, 0.5fr);
  align-items: end;
  gap: 48px;
  max-width: var(--max);
  margin: 0 auto 34px;
}

.verify-simple .verify-heading {
  grid-template-columns: 1fr;
  max-width: 760px;
  margin-bottom: 22px;
  text-align: center;
}

.verify-simple .verify-heading p {
  max-width: 620px;
  margin: 18px auto 0;
}

.verify-heading > *,
.verify-layout > * {
  min-width: 0;
}

.verify-heading h1,
.verify-heading h2,
.verifier h2,
.verifier h3,
.verify-explainer h2,
.verify-explainer h3 {
  color: #fff;
}

.verify-heading p,
.verifier p,
.verify-explainer p {
  color: rgba(255, 255, 255, 0.68);
}

.result-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.result-strip span {
  min-height: 42px;
  padding: 11px 13px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.86rem;
  font-weight: 700;
}

.verify-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.44fr);
  gap: 22px;
  align-items: stretch;
  max-width: var(--max);
  margin: 0 auto;
}

.verify-simple .verify-layout {
  grid-template-columns: 1fr;
  gap: 18px;
  max-width: 820px;
}

.verifier,
.verify-explainer {
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(22px);
}

.verifier {
  min-height: 560px;
  padding: 24px;
}

.verify-simple .verifier {
  min-height: auto;
  padding: 30px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.07)),
    rgba(255, 255, 255, 0.06);
}

.verify-screen {
  display: none;
}

.verify-screen.active {
  display: block;
}

.verifier-heading,
.report-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.verifier h2,
.verifier h3 {
  margin: 0;
  font-size: 1.45rem;
}

.dropzone {
  display: grid;
  min-height: 260px;
  place-items: center;
  align-content: center;
  gap: 10px;
  padding: 32px;
  border: 1px dashed rgba(255, 255, 255, 0.32);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.055);
  cursor: pointer;
  text-align: center;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.verify-simple .dropzone {
  min-height: 238px;
  background: rgba(255, 255, 255, 0.045);
}

.dropzone.dragging,
.dropzone:hover,
.dropzone:focus-visible {
  border-color: var(--sky);
  background: rgba(10, 132, 255, 0.16);
  outline: none;
  transform: translateY(-1px);
}

.dropzone input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.upload-icon {
  display: grid;
  width: 60px;
  height: 60px;
  place-items: center;
  border-radius: var(--radius);
  background: rgba(14, 198, 255, 0.13);
  color: var(--sky);
}

.upload-icon svg {
  width: 30px;
  height: 30px;
  stroke-width: 1.8;
}

.dropzone strong {
  color: #fff;
  font-size: 1.12rem;
}

.dropzone span:last-child {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.92rem;
}

.file-list,
.progress-list,
.result-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.file-row,
.progress-row,
.result-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
}

.file-row {
  grid-template-columns: 58px minmax(0, 1fr) auto;
}

.result-row {
  grid-template-columns: 76px minmax(0, 1fr) auto;
  width: 100%;
  border: 0;
  margin: 0;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: background 160ms ease;
}

.result-row:hover {
  background: rgba(255, 255, 255, 0.13);
}

.result-row:focus-visible {
  outline: 2px solid var(--sky);
  outline-offset: 2px;
}

.result-hint {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 8px;
  color: var(--sky);
  font-size: 0.82rem;
  font-weight: 660;
}

.result-hint svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 220ms ease;
}

.result-row[aria-expanded="true"] {
  background: rgba(255, 255, 255, 0.13);
  border-radius: var(--radius) var(--radius) 0 0;
}

.result-row[aria-expanded="true"] .result-hint svg {
  transform: rotate(180deg);
}

.result-explain {
  padding: 2px 18px 16px;
  border-radius: 0 0 var(--radius) var(--radius);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.94rem;
  line-height: 1.6;
}

.result-explain[hidden] {
  display: none;
}

.result-explain p {
  margin: 0;
}

.result-proof {
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.82rem;
  word-break: break-all;
}

.progress-row {
  grid-template-columns: auto minmax(0, 1fr) auto;
}

.photo-thumbnail {
  display: block;
  width: 58px;
  height: 58px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  object-fit: cover;
}

.report-thumbnail {
  width: 76px;
  height: 76px;
  border-radius: 16px;
}

.photo-thumbnail-empty {
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.48);
}

.photo-thumbnail-empty svg {
  width: 28px;
  height: 28px;
  stroke-width: 1.7;
}

.file-details,
.result-details {
  min-width: 0;
}

.file-name {
  overflow-wrap: anywhere;
  color: #fff;
  font-weight: 680;
}

.file-meta {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.86rem;
}

.remove-button {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 700;
}

.verify-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.verify-simple .verify-actions {
  justify-content: center;
}

.verify-simple .verify-actions .button:not(.button-quiet) {
  min-width: 196px;
}

.progress-layout {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  align-items: center;
  padding: 28px 0 18px;
}

.progress-ring {
  position: relative;
  display: grid;
  width: 124px;
  height: 124px;
  place-items: center;
}

/* continuously spinning arc — clear "working" signal during the backend check */
.progress-ring::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 8px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--sky);
  border-right-color: rgba(14, 198, 255, 0.55);
  animation: ring-spin 0.85s linear infinite;
}

@keyframes ring-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .progress-ring::before {
    animation-duration: 2.4s;
  }
}

.progress-logo {
  position: relative;
  z-index: 1;
  width: 56px;
  height: 56px;
  object-fit: contain;
  animation: logo-pulse 1.5s ease-in-out infinite;
}

@keyframes logo-pulse {
  0%, 100% {
    opacity: 0.5;
    transform: scale(0.82);
  }
  50% {
    opacity: 1;
    transform: scale(1.08);
  }
}

@media (prefers-reduced-motion: reduce) {
  .progress-logo {
    animation: none;
    opacity: 1;
  }
}

.progress-ring span {
  position: relative;
  z-index: 1;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 760;
}

.dot {
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.34);
}

.progress-row.done .dot {
  background: var(--green);
}

.progress-row.running .dot {
  background: var(--sky);
}

.progress-row.error .dot {
  background: var(--red);
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 18px 0;
}

.summary-card {
  display: grid;
  gap: 4px;
  padding: 18px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
}

.summary-card strong {
  color: #fff;
  font-size: 1.9rem;
  line-height: 1;
}

.summary-card span {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.82rem;
  font-weight: 690;
}

.badge {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 780;
  white-space: nowrap;
}

.badge.verified {
  background: rgba(24, 160, 88, 0.18);
  color: #98f0c1;
}

.badge.modified {
  background: rgba(242, 178, 58, 0.18);
  color: #ffd787;
}

.badge.failed {
  background: rgba(215, 70, 85, 0.18);
  color: #ffc0c8;
}

.empty {
  padding: 18px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.65);
}

.verify-explainer {
  display: grid;
  align-content: start;
  gap: 18px;
  padding: 26px;
}

.verify-explainer h2,
.verify-explainer h3 {
  margin: 0;
  font-size: 1.38rem;
}

.explainer-list {
  display: grid;
  gap: 16px;
  margin-top: 10px;
}

.explainer-list div {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
}

.explainer-list span {
  display: block;
  width: 10px;
  height: 10px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--sky);
}

.explainer-list p {
  margin: 0;
  font-size: 0.96rem;
}

.explainer-list strong {
  color: #fff;
}

.verify-result-guide {
  padding: 24px 4px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.11);
}

.verify-result-guide h2 {
  margin: 0 0 12px;
  color: #fff;
  font-size: 1.18rem;
  line-height: 1.18;
}

.verify-result-guide div {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.verify-result-guide p {
  margin: 0;
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.95rem;
}

.verify-result-guide strong {
  display: block;
  margin-bottom: 4px;
  color: #fff;
}

.closing-section {
  padding-top: 112px;
  padding-bottom: 56px;
}

.closing-card {
  display: grid;
  grid-template-columns: minmax(0, 0.76fr) auto;
  gap: 48px;
  align-items: center;
  padding: 46px;
  border: 1px solid var(--soft);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(14, 198, 255, 0.14), rgba(255, 255, 255, 0) 44%),
    var(--surface);
  box-shadow: var(--shadow-soft);
}

.closing-card h2 {
  font-size: 3.45rem;
}

.closing-card p {
  max-width: 690px;
  margin-top: 16px;
}

.download-actions {
  display: grid;
  justify-items: start;
  gap: 14px;
}

.app-store-button {
  display: inline-grid;
  min-width: 214px;
  min-height: 74px;
  align-content: center;
  padding: 12px 24px;
  border-radius: var(--radius);
  background: #05070d;
  box-shadow: 0 18px 42px rgba(5, 7, 13, 0.18);
  color: #fff;
}

.app-store-button span {
  font-size: 0.82rem;
}

.app-store-button strong {
  font-size: 1.34rem;
  line-height: 1.05;
}

.text-link {
  color: var(--blue);
  font-weight: 730;
}

.policy-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 92px 32px 0;
}

.policy-card {
  display: grid;
  gap: 8px;
  align-content: start;
  padding: 24px;
  border: 1px solid var(--soft);
  border-radius: var(--radius);
  background: var(--paper);
  scroll-margin-top: 92px;
}

.policy-card strong {
  color: var(--ink);
  font-size: 1.08rem;
}

.policy-card span {
  color: var(--muted);
  font-size: 0.96rem;
}

.policy-card .text-link {
  justify-self: start;
  margin-top: 6px;
  font-size: 0.95rem;
}

.site-footer {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 34px 32px;
  border-top: 1px solid var(--soft);
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer p {
  margin: 0;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 30;
  max-width: 320px;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: rgba(23, 24, 28, 0.94);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.22);
  color: #fff;
  font-weight: 650;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.toast.visible {
  opacity: 1;
  transform: translateY(0);
}

.legal-main {
  background:
    radial-gradient(circle at 20% 0%, rgba(14, 198, 255, 0.13), transparent 28%),
    linear-gradient(180deg, var(--page-bg), var(--page-tint) 44%, var(--page-bg));
}

.legal-document {
  max-width: 820px;
  margin: 0 auto;
  padding: 86px 32px 104px;
}

.legal-date {
  margin: 0 0 16px;
  color: var(--blue);
  font-weight: 760;
}

.legal-document h1 {
  font-size: 4.7rem;
}

.legal-document h2 {
  margin: 46px 0 12px;
  color: var(--ink);
  font-size: 1.45rem;
  line-height: 1.18;
}

.legal-document p,
.legal-document li {
  color: var(--muted);
  font-size: 1.04rem;
}

.legal-document ul {
  display: grid;
  gap: 12px;
  padding-left: 1.2rem;
}

.legal-document a {
  color: var(--blue);
  font-weight: 720;
}

@media (max-width: 1040px) {
  .site-header {
    grid-template-columns: 1fr auto;
    padding-right: 24px;
    padding-left: 24px;
  }

  .site-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: start;
    overflow-x: auto;
    padding-bottom: 3px;
  }

  .hero-inner,
  .section-heading,
  .verify-heading,
  .verify-layout,
  .closing-card {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    gap: 32px;
    min-height: auto;
    padding-top: 56px;
  }

  .hero h1 {
    font-size: 4.2rem;
  }

  .section-heading h2,
  .verify-heading h1,
  .verify-heading h2,
  .closing-card h2 {
    font-size: 3.4rem;
  }

  .hero-product {
    min-height: 500px;
  }

  .signal-capture {
    left: 68px;
  }

  .signal-share {
    right: 70px;
  }

  .signal-verify {
    left: 84px;
  }

  .story-grid,
  .use-case-grid,
  .policy-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .result-strip {
    max-width: 620px;
  }
}

@media (max-width: 720px) {
  body {
    font-size: 15px;
  }

  .site-header {
    grid-template-columns: 1fr auto;
    gap: 10px 12px;
    min-height: 0;
    padding: 10px max(16px, env(safe-area-inset-right)) 10px max(16px, env(safe-area-inset-left));
    box-shadow: 0 8px 30px rgba(8, 20, 45, 0.08);
  }

  .site-header .button-small {
    grid-column: 2;
    grid-row: 1;
    width: 40px;
    min-width: 40px;
    min-height: 40px;
    padding: 0;
    gap: 0;
    overflow: hidden;
    color: #fff;
    font-size: 0;
  }

  .site-header .button-small svg {
    min-width: 18px;
    color: #fff;
  }

  .brand {
    gap: 9px;
  }

  .brand img {
    width: 32px;
    height: 32px;
  }

  .brand span {
    font-size: 0.98rem;
  }

  .site-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: start;
    gap: 6px;
    max-width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
    font-size: 0.76rem;
    scrollbar-width: none;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
  }

  .site-nav::-webkit-scrollbar {
    display: none;
  }

  .site-nav a {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    padding: 0 10px;
    border-radius: 999px;
  }

  .site-nav a[aria-current="page"] {
    background: rgba(10, 132, 255, 0.1);
  }

  .button {
    min-height: 48px;
  }

  .button-small {
    min-height: 34px;
    padding-inline: 12px;
  }

  .hero-inner,
  .section,
  .policy-strip,
  .site-footer {
    padding-right: 20px;
    padding-left: 20px;
  }

  .hero-inner {
    gap: 28px;
    padding-top: 34px;
    padding-bottom: 38px;
  }

  .hero-copy {
    max-width: 100%;
  }

  .hero h1 {
    max-width: 11ch;
    font-size: 3.05rem;
    line-height: 0.98;
  }

  .section-heading h2,
  .closing-card h2 {
    font-size: 2.25rem;
    line-height: 1.04;
  }

  .verify-heading h1,
  .verify-heading h2 {
    font-size: 2.7rem;
    line-height: 1.02;
  }

  .legal-document h1 {
    font-size: 2.65rem;
    line-height: 1.02;
  }

  .hero p,
  .section-heading p,
  .verify-heading p,
  .closing-card p {
    font-size: 1.03rem;
  }

  .hero p {
    margin-top: 18px;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    margin-top: 22px;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-product {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    min-height: 0;
    padding-top: 4px;
  }

  .hero-product::before {
    top: 16px;
    left: 50%;
    width: 260px;
    height: 260px;
    border-radius: 42px;
    transform: translateX(-50%) rotate(-6deg);
  }

  .phone-shell {
    grid-column: 1 / -1;
    justify-self: center;
    width: 172px;
    border-width: 6px;
    border-radius: 31px;
  }

  .phone-shell img {
    border-radius: 25px;
  }

  .signal-card {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    width: auto;
    min-height: 84px;
    padding: 10px;
    align-content: start;
    border-color: var(--glass-border);
    box-shadow: 0 14px 34px rgba(8, 20, 45, 0.11);
  }

  .signal-card span {
    font-size: 0.67rem;
  }

  .signal-card strong {
    font-size: 0.75rem;
  }

  .section {
    scroll-margin-top: 118px;
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .section-heading {
    gap: 14px;
    margin-bottom: 24px;
  }

  .story-grid,
  .use-case-grid,
  .policy-strip {
    gap: 10px;
    overflow: visible;
    border: 0;
    background: transparent;
    grid-template-columns: 1fr;
  }

  .result-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .story-grid article,
  .use-case-grid article,
  .policy-card {
    border: 1px solid var(--soft);
    border-radius: var(--radius);
  }

  .policy-strip {
    grid-template-columns: 1fr;
  }

  .story-grid article,
  .use-case-grid article {
    min-height: auto;
    padding: 22px;
  }

  .story-grid h3 {
    margin-top: 22px;
  }

  .verify-section {
    scroll-margin-top: 118px;
    padding: 46px 20px 64px;
  }

  .verify-simple {
    padding-top: 32px;
  }

  .verify-layout {
    width: 100%;
    max-width: calc(100vw - 40px);
    grid-template-columns: minmax(0, 1fr);
  }

  .verify-heading {
    width: 100%;
    max-width: calc(100vw - 40px);
    gap: 22px;
    grid-template-columns: minmax(0, 1fr);
  }

  .verify-simple .verify-heading {
    margin-bottom: 18px;
    text-align: left;
  }

  .verify-simple .verify-heading p {
    margin-top: 12px;
  }

  .verify-heading h1,
  .verify-heading h2 {
    max-width: 11ch;
    overflow-wrap: anywhere;
  }

  .verify-heading p {
    max-width: 100%;
    overflow-wrap: break-word;
  }

  .verifier,
  .verify-explainer {
    min-width: 0;
    padding: 16px;
  }

  .verifier {
    min-height: auto;
  }

  .verify-simple .verifier {
    padding: 16px;
  }

  .verifier-heading,
  .report-heading {
    gap: 10px;
  }

  .verifier h2,
  .verifier h3,
  .verify-explainer h2,
  .verify-explainer h3 {
    font-size: 1.32rem;
    line-height: 1.18;
  }

  .dropzone {
    min-height: 190px;
    padding: 22px 16px;
  }

  .verify-simple .dropzone {
    min-height: 172px;
    padding-top: 18px;
    padding-bottom: 18px;
  }

  .dropzone strong,
  .dropzone span {
    overflow-wrap: anywhere;
  }

  .upload-icon {
    width: 54px;
    height: 54px;
  }

  .verify-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .verify-actions .button,
  .verify-actions .button-quiet,
  .remove-button {
    width: 100%;
  }

  .verify-simple .verify-actions .button:not(.button-quiet) {
    min-width: 0;
  }

  .progress-layout,
  .report-heading {
    display: grid;
    grid-template-columns: 1fr;
  }

  .progress-ring {
    width: 112px;
    height: 112px;
  }

  .file-row,
  .result-row {
    grid-template-columns: 56px minmax(0, 1fr);
    padding: 14px;
  }

  .photo-thumbnail {
    width: 56px;
    height: 56px;
    border-radius: 14px;
  }

  .report-thumbnail {
    width: 56px;
    height: 56px;
  }

  .file-row .remove-button,
  .result-row .badge {
    grid-column: 2;
    justify-self: start;
    width: auto;
  }

  .badge {
    justify-self: start;
  }

  .verify-result-guide {
    padding-top: 18px;
  }

  .verify-result-guide div {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .closing-section {
    padding-top: 68px;
    padding-bottom: 36px;
  }

  .closing-card {
    padding: 24px;
  }

  .download-actions,
  .app-store-button {
    width: 100%;
  }

  .app-store-button {
    min-width: 0;
    justify-items: center;
    text-align: center;
  }

  .policy-strip {
    padding-top: 64px;
    padding-bottom: 0;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }

  .site-footer nav {
    flex-wrap: wrap;
    justify-content: start;
    gap: 18px;
  }

  .toast {
    right: 16px;
    bottom: max(16px, env(safe-area-inset-bottom));
    left: 16px;
    max-width: none;
  }
}

@media (max-width: 390px) {
  .hero h1 {
    font-size: 2.72rem;
  }

  .verify-heading h1,
  .verify-heading h2 {
    font-size: 2.48rem;
  }

  .site-nav {
    gap: 4px;
    font-size: 0.72rem;
  }

  .site-nav a {
    padding-inline: 8px;
  }

  .signal-card strong {
    font-size: 0.7rem;
  }
}
