:root {
  --ink: #24211d;
  --muted: #70695e;
  --paper: #f2ede3;
  --paper-deep: #e4dac8;
  --card: rgba(255, 251, 242, 0.82);
  --clay: #a85f3d;
  --moss: #596d4b;
  --night: #171512;
  --line: rgba(36, 33, 29, 0.16);
  --shadow: 0 30px 80px rgba(36, 33, 29, 0.13);
  --display: Georgia, 'Times New Roman', serif;
  --body: 'Avenir Next', 'PingFang SC', 'Hiragino Sans GB', 'Noto Serif SC', sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 6%, rgba(168, 95, 61, 0.24), transparent 26rem),
    radial-gradient(circle at 88% 10%, rgba(89, 109, 75, 0.24), transparent 24rem),
    linear-gradient(135deg, #f8f1e4 0%, var(--paper) 45%, #e9dfcf 100%);
  font-family: var(--body);
  line-height: 1.75;
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(36, 33, 29, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(36, 33, 29, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.72), transparent 78%);
}

.grain {
  position: fixed;
  inset: 0;
  opacity: 0.22;
  pointer-events: none;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 240 240' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23noise)' opacity='.34'/%3E%3C/svg%3E");
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  transform: translateY(-160%);
  background: var(--night);
  color: #fff;
  padding: 10px 14px;
  z-index: 20;
  border-radius: 999px;
}

.skip-link:focus {
  transform: translateY(0);
}

.hero,
main,
.footer {
  position: relative;
  z-index: 1;
}

.nav {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 26px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.brand {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border: 1px solid var(--ink);
  border-radius: 16px 16px 16px 4px;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-size: 24px;
  background: #fff6e5;
  box-shadow: 7px 7px 0 var(--ink);
  overflow: hidden;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  letter-spacing: 0.02em;
  font-size: 17px;
}

.brand small,
.eyebrow,
.section-kicker,
.stamp,
.summary-band span {
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 12px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 251, 242, 0.64);
  backdrop-filter: blur(18px);
}

.nav-links a {
  text-decoration: none;
  padding: 8px 13px;
  border-radius: 999px;
  color: var(--muted);
  transition: 180ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--ink);
  background: rgba(36, 33, 29, 0.08);
}

.nav-links a[aria-current="page"] {
  color: var(--ink);
  background: rgba(36, 33, 29, 0.08);
}

.page-header {
  position: relative;
  z-index: 1;
}

.document-hero {
  width: min(1180px, calc(100% - 32px));
  margin: 54px auto 38px;
  padding: clamp(34px, 6vw, 72px) 0 clamp(16px, 3vw, 36px);
  animation: rise 760ms cubic-bezier(.2, .78, .2, 1) both;
}

.document-hero h1 {
  margin-bottom: 24px;
  max-width: 920px;
}

.document-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.document-card {
  min-height: 290px;
  padding: 28px;
  border-radius: 28px;
  border: 1px solid rgba(36, 33, 29, 0.18);
  text-decoration: none;
  color: var(--ink);
  background:
    linear-gradient(145deg, rgba(255, 248, 232, 0.92), rgba(232, 221, 200, 0.74)),
    repeating-linear-gradient(-18deg, rgba(36, 33, 29, 0.04) 0 1px, transparent 1px 12px);
  box-shadow: 0 18px 50px rgba(36, 33, 29, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.document-card:hover,
.document-card:focus-visible {
  transform: translateY(-5px);
  border-color: rgba(168, 95, 61, 0.52);
  box-shadow: 0 24px 70px rgba(36, 33, 29, 0.13);
}

.document-index {
  width: max-content;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clay);
  font-size: 12px;
  font-weight: 900;
  border: 1px solid rgba(168, 95, 61, 0.36);
  border-radius: 999px;
  padding: 5px 10px;
}

.document-card h3 {
  font-family: var(--display);
  font-size: clamp(34px, 5vw, 56px);
  line-height: 0.95;
  letter-spacing: -0.055em;
  margin: 34px 0 12px;
}

.document-card p {
  color: var(--muted);
}

.document-card strong {
  margin-top: 22px;
  text-decoration: underline;
  text-underline-offset: 5px;
}

.single-document .section-body > .clause:first-child {
  border-top: none;
  padding-top: 0;
}

.single-document .clause h2,
.privacy-card h2 {
  font-family: var(--body);
  font-size: 21px;
  line-height: 1.3;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.top-cards {
  margin-top: 0;
}

.next-doc {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.hero-grid {
  width: min(1180px, calc(100% - 32px));
  margin: 42px auto 72px;
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(320px, 0.72fr);
  gap: 36px;
  align-items: stretch;
}

.hero-copy,
.ownership-card,
.summary-band,
.section,
.footer {
  animation: rise 760ms cubic-bezier(.2, .78, .2, 1) both;
}

.hero-copy {
  padding: clamp(36px, 7vw, 78px) 0;
}

.eyebrow {
  color: var(--clay);
  margin: 0 0 18px;
  font-weight: 700;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-family: var(--display);
  font-size: clamp(40px, 5.8vw, 74px);
  line-height: 0.94;
  letter-spacing: -0.07em;
  margin-bottom: 28px;
  max-width: 780px;
}

.hero-lead {
  max-width: 680px;
  color: #4e463c;
  font-size: clamp(17px, 2.1vw, 22px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  border: 1px solid var(--ink);
  box-shadow: 5px 5px 0 rgba(36, 33, 29, 0.2);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0 rgba(36, 33, 29, 0.2);
}

.button.primary {
  background: var(--night);
  color: #fff8e8;
}

.button.ghost {
  background: rgba(255, 251, 242, 0.62);
}

.ownership-card {
  position: relative;
  min-height: 560px;
  padding: 34px;
  border: 1px solid rgba(36, 33, 29, 0.22);
  border-radius: 36px;
  background:
    linear-gradient(150deg, rgba(255, 252, 243, 0.9), rgba(239, 228, 207, 0.78)),
    repeating-linear-gradient(-18deg, rgba(36, 33, 29, 0.05) 0 1px, transparent 1px 12px);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.ownership-card::before {
  content: '';
  position: absolute;
  width: 280px;
  height: 280px;
  right: -90px;
  top: -90px;
  border-radius: 50%;
  border: 54px solid rgba(168, 95, 61, 0.16);
}

.stamp {
  width: max-content;
  transform: rotate(-7deg);
  color: var(--clay);
  border: 2px solid currentColor;
  padding: 7px 12px;
  border-radius: 12px;
  font-weight: 900;
  margin-bottom: 90px;
}

.ownership-card h2 {
  font-family: var(--display);
  font-size: clamp(34px, 5vw, 54px);
  letter-spacing: -0.04em;
}

.ownership-card ul {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  gap: 18px;
}

.ownership-card li {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.ownership-card li span {
  color: var(--moss);
  font-weight: 900;
}

.summary-band {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 36px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  border-radius: 28px;
  overflow: hidden;
  background: rgba(255, 251, 242, 0.54);
  backdrop-filter: blur(20px);
}

.summary-band article {
  padding: 24px;
}

.summary-band article + article {
  border-left: 1px solid var(--line);
}

.summary-band span {
  color: var(--moss);
  font-weight: 900;
}

.summary-band p {
  margin: 8px 0 0;
  color: var(--muted);
}

.problem-strip {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 28px;
  padding: clamp(22px, 4vw, 38px);
  display: grid;
  grid-template-columns: minmax(220px, 0.65fr) minmax(0, 1fr);
  gap: 22px;
  border: 1px solid var(--line);
  border-radius: 34px;
  background:
    linear-gradient(135deg, rgba(255, 251, 242, 0.82), rgba(238, 227, 207, 0.62)),
    radial-gradient(circle at 14% 12%, rgba(168, 95, 61, 0.16), transparent 18rem);
  box-shadow: 0 18px 70px rgba(36, 33, 29, 0.08);
  overflow: hidden;
}

.problem-strip::after {
  content: 'WHERE?';
  position: absolute;
  right: -24px;
  bottom: -48px;
  color: rgba(36, 33, 29, 0.045);
  font-family: var(--display);
  font-size: clamp(80px, 14vw, 180px);
  line-height: 1;
  letter-spacing: -0.08em;
  pointer-events: none;
}

.problem-intro h2 {
  margin: 10px 0 0;
  font-family: var(--display);
  font-size: clamp(32px, 4.8vw, 58px);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.problem-cards {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.problem-card {
  min-height: 210px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border: 1px solid rgba(36, 33, 29, 0.15);
  border-radius: 24px;
  background: rgba(255, 248, 232, 0.72);
  box-shadow: 7px 7px 0 rgba(36, 33, 29, 0.08);
}

.problem-card span {
  color: var(--clay);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.problem-card h3 {
  margin: 18px 0 8px;
  font-family: var(--display);
  font-size: clamp(24px, 2.8vw, 34px);
  line-height: 1;
  letter-spacing: -0.05em;
}

.problem-card p {
  margin: 0;
  color: var(--muted);
}

.section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 28px;
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 28px;
  padding: clamp(22px, 4vw, 42px);
  border: 1px solid var(--line);
  border-radius: 34px;
  background: rgba(255, 251, 242, 0.72);
  backdrop-filter: blur(20px);
  box-shadow: 0 18px 70px rgba(36, 33, 29, 0.08);
}

.section-kicker {
  position: sticky;
  top: 24px;
  height: max-content;
  color: var(--clay);
  font-weight: 900;
}

.section-body h2 {
  font-family: var(--display);
  font-size: clamp(34px, 4.8vw, 58px);
  line-height: 0.94;
  letter-spacing: -0.065em;
  margin-bottom: 20px;
}

.lede {
  font-size: clamp(17px, 2vw, 21px);
  color: #51483e;
  max-width: 850px;
  margin-bottom: 30px;
}

.clause {
  padding: 24px 0 22px;
  border-top: 1px solid var(--line);
}

.clause h3,
.privacy-card h3 {
  font-size: 20px;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.clause p,
.clause li,
.privacy-card p {
  color: var(--muted);
}

.clause p:last-child,
.privacy-card p:last-child {
  margin-bottom: 0;
}

.clause.highlight {
  margin: 20px 0;
  padding: 24px;
  border: 1px solid rgba(168, 95, 61, 0.28);
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(168, 95, 61, 0.1), rgba(255, 249, 238, 0.68));
}

.privacy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 30px 0;
}

.privacy-card {
  min-height: 190px;
  padding: 22px;
  border-radius: 24px;
  background: #fff8e8;
  border: 1px solid var(--line);
}

.bullet-list {
  margin: 0;
  padding-left: 20px;
}

.bullet-list li + li {
  margin-top: 8px;
}

.compact {
  max-width: 850px;
}

.fine-print {
  color: var(--muted);
  font-size: 14px;
}

.footer {
  width: min(1180px, calc(100% - 32px));
  margin: 28px auto 48px;
  padding: 24px 6px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
}

.footer a {
  font-weight: 700;
  color: var(--ink);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes soft-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 8px rgba(168, 95, 61, 0.12);
  }
  50% {
    box-shadow: 0 0 0 14px rgba(168, 95, 61, 0.04);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .device-shot {
    animation: rise 760ms cubic-bezier(.2, .78, .2, 1) both, gentle-float 7s ease-in-out 900ms infinite;
  }

  .floating-label {
    animation: gentle-float 5.5s ease-in-out infinite;
  }

  .floating-label.two {
    animation-delay: 900ms;
  }

  .journey-step::before {
    animation: soft-pulse 2.8s ease-in-out infinite;
  }

  .motion-ready .problem-card,
  .motion-ready .journey-step,
  .motion-ready .feature-card,
  .motion-ready .document-card {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 620ms ease, transform 620ms cubic-bezier(.2, .78, .2, 1);
  }

  .motion-ready .problem-card.is-visible,
  .motion-ready .journey-step.is-visible,
  .motion-ready .feature-card.is-visible,
  .motion-ready .document-card.is-visible {
    opacity: 1;
    transform: translateY(0);
  }
}

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

  .hero-copy,
  .ownership-card,
  .summary-band,
  .section,
  .footer {
    animation: none;
  }

  .button {
    transition: none;
  }

  .device-shot,
  .floating-label,
  .journey-step::before {
    animation: none;
  }
}

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

  .nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    width: 100%;
    overflow-x: auto;
    justify-content: flex-start;
  }

  .hero-grid,
  .section {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    padding: 22px 0 0;
  }

  .ownership-card {
    min-height: auto;
  }

  .stamp {
    margin-bottom: 54px;
  }

  .summary-band,
  .problem-strip,
  .privacy-grid {
    grid-template-columns: 1fr;
  }

  .problem-cards {
    grid-template-columns: 1fr;
  }

  .summary-band article + article {
    border-left: none;
    border-top: 1px solid var(--line);
  }

  .section-kicker {
    position: static;
  }
}

@media (max-width: 560px) {
  .nav,
  .hero-grid,
  .document-hero,
  .summary-band,
  .problem-strip,
  .section,
  .footer {
    width: min(100% - 20px, 1180px);
  }

  .hero-grid {
    margin-top: 14px;
  }

  h1 {
    max-width: 7.5em;
    overflow-wrap: anywhere;
    font-size: clamp(38px, 12vw, 52px);
  }

  .section {
    border-radius: 26px;
    padding: 22px 18px;
  }

  .ownership-card {
    padding: 24px;
    border-radius: 28px;
  }

  .button {
    width: 100%;
  }

  .footer {
    flex-direction: column;
  }
}


.app-hero {
  grid-template-columns: minmax(0, 0.96fr) minmax(320px, 0.74fr);
}

.app-demo-card {
  position: relative;
  min-height: 540px;
  display: grid;
  place-items: center;
  animation: rise 760ms cubic-bezier(.2, .78, .2, 1) both;
}

.demo-phone {
  width: min(360px, 86vw);
  min-height: 520px;
  border: 1px solid rgba(36, 33, 29, 0.24);
  border-radius: 42px;
  background:
    linear-gradient(160deg, rgba(255, 251, 242, 0.96), rgba(231, 219, 197, 0.86)),
    repeating-linear-gradient(0deg, rgba(36, 33, 29, 0.04) 0 1px, transparent 1px 14px);
  box-shadow: 24px 28px 0 rgba(36, 33, 29, 0.1), var(--shadow);
  padding: 24px;
  overflow: hidden;
}

.phone-topbar {
  display: flex;
  gap: 7px;
  margin-bottom: 24px;
}

.phone-topbar span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(36, 33, 29, 0.35);
}

.search-pill {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.52);
  color: var(--muted);
  margin-bottom: 18px;
}

.result-card,
.qr-tile,
.result-row {
  border: 1px solid rgba(36, 33, 29, 0.16);
  background: rgba(255, 248, 232, 0.78);
  border-radius: 22px;
}

.result-card {
  padding: 18px;
  margin-bottom: 16px;
}

.result-card small {
  display: block;
  color: var(--clay);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.result-card strong {
  display: block;
  font-size: 23px;
  line-height: 1.2;
}

.result-card p {
  margin: 8px 0 0;
  color: var(--muted);
}

.qr-tile {
  display: grid;
  grid-template-columns: 86px 1fr;
  align-items: center;
  gap: 16px;
  padding: 16px;
  margin-bottom: 16px;
}

.qr-grid {
  width: 86px;
  height: 86px;
  border-radius: 12px;
  background:
    linear-gradient(90deg, var(--ink) 12px, transparent 12px 20px, var(--ink) 20px 30px, transparent 30px 44px, var(--ink) 44px 56px, transparent 56px),
    linear-gradient(var(--ink) 10px, transparent 10px 18px, var(--ink) 18px 28px, transparent 28px 42px, var(--ink) 42px 54px, transparent 54px);
  background-color: #fff8e8;
  opacity: 0.86;
}

.qr-tile span {
  font-family: var(--display);
  font-size: 38px;
  letter-spacing: -0.05em;
}

.result-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  margin-top: 10px;
}

.result-row em {
  color: var(--muted);
  font-style: normal;
}


.device-shot {
  position: relative;
  margin: 0;
  width: min(360px, 86vw);
}

.device-shell {
  position: relative;
  border: 1px solid rgba(36, 33, 29, 0.28);
  border-radius: 42px;
  background: var(--night);
  padding: 10px;
  box-shadow: 24px 28px 0 rgba(36, 33, 29, 0.1), var(--shadow);
  overflow: hidden;
}

.device-shell::before {
  content: '';
  position: absolute;
  top: 12px;
  left: 50%;
  width: 92px;
  height: 22px;
  transform: translateX(-50%);
  border-radius: 0 0 16px 16px;
  background: rgba(23, 21, 18, 0.82);
  z-index: 2;
  opacity: 0.88;
}

.device-shell img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 32px;
}

.device-shot figcaption {
  margin-top: 16px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

.floating-label {
  position: absolute;
  padding: 10px 14px;
  border: 1px solid rgba(36, 33, 29, 0.22);
  border-radius: 999px;
  background: #fff8e8;
  box-shadow: 6px 6px 0 rgba(36, 33, 29, 0.12);
  font-weight: 900;
}

.floating-label.one {
  top: 72px;
  right: 8px;
  transform: rotate(8deg);
  color: var(--clay);
}

.floating-label.two {
  left: 0;
  bottom: 88px;
  transform: rotate(-7deg);
  color: var(--moss);
}


.screen-section {
  overflow: hidden;
}

.journey-rail {
  position: relative;
  display: grid;
  gap: 26px;
  margin-top: 34px;
  padding-left: 34px;
}

.journey-rail::before {
  content: '';
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 11px;
  width: 2px;
  background: linear-gradient(to bottom, var(--clay), rgba(168, 95, 61, 0.08));
}

.journey-step {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 300px);
  gap: clamp(18px, 4vw, 44px);
  align-items: center;
  padding: clamp(18px, 3.5vw, 34px);
  border: 1px solid rgba(36, 33, 29, 0.14);
  border-radius: 32px;
  background:
    linear-gradient(135deg, rgba(255, 251, 242, 0.88), rgba(241, 231, 212, 0.62)),
    radial-gradient(circle at 90% 8%, rgba(168, 95, 61, 0.14), transparent 16rem);
  box-shadow: 0 18px 56px rgba(36, 33, 29, 0.08);
}

.journey-step::before {
  content: '';
  position: absolute;
  left: -32px;
  top: 38px;
  width: 18px;
  height: 18px;
  border: 2px solid var(--clay);
  border-radius: 50%;
  background: #fff8e8;
  box-shadow: 0 0 0 8px rgba(168, 95, 61, 0.12);
}

.journey-step:nth-child(even) {
  grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
}

.journey-step:nth-child(even) .journey-copy {
  grid-column: 2;
}

.journey-step:nth-child(even) .journey-shot,
.journey-step:nth-child(even) .paired-shots {
  grid-column: 1;
  grid-row: 1;
}

.journey-step.final-step {
  background:
    linear-gradient(135deg, rgba(255, 251, 242, 0.9), rgba(231, 239, 222, 0.62)),
    radial-gradient(circle at 84% 10%, rgba(89, 109, 75, 0.16), transparent 16rem);
}

.journey-copy {
  min-width: 0;
}

.journey-number {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid var(--ink);
  border-radius: 18px 18px 18px 4px;
  color: #fff8e8;
  background: var(--night);
  box-shadow: 7px 7px 0 rgba(36, 33, 29, 0.16);
  font-family: var(--display);
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
}

.journey-label {
  margin: 22px 0 6px;
  color: var(--clay);
  font-weight: 900;
}

.journey-copy h3 {
  margin: 0 0 12px;
  max-width: 700px;
  font-family: var(--display);
  font-size: clamp(28px, 4vw, 48px);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.journey-copy p:last-child {
  margin-bottom: 0;
}

.compact-button {
  width: max-content;
  margin-top: 18px;
}

.journey-shot {
  position: relative;
  width: min(250px, 100%);
  margin: 0 auto;
}

.journey-shot.compact {
  width: min(190px, 100%);
}

.paired-shots {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}

.shot-zoom {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid rgba(36, 33, 29, 0.2);
  border-radius: 26px;
  background: var(--night);
  box-shadow: 14px 18px 0 rgba(36, 33, 29, 0.1), 0 20px 54px rgba(36, 33, 29, 0.15);
  cursor: zoom-in;
  line-height: 0;
  overflow: hidden;
}

.shot-zoom img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 260ms ease, filter 260ms ease;
}

.shot-zoom span {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 7px 10px;
  border: 1px solid rgba(255, 248, 232, 0.42);
  border-radius: 999px;
  color: #fff8e8;
  background: rgba(23, 21, 18, 0.72);
  backdrop-filter: blur(10px);
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  opacity: 0;
  transform: translateY(8px);
  transition: 180ms ease;
}

.shot-zoom:hover img,
.shot-zoom:focus-visible img {
  transform: scale(1.035);
  filter: saturate(1.05);
}

.shot-zoom:hover span,
.shot-zoom:focus-visible span {
  opacity: 1;
  transform: translateY(0);
}

.journey-shot figcaption {
  margin-top: 13px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 64px;
  place-items: center;
  padding: 26px;
  background: rgba(23, 21, 18, 0.82);
  backdrop-filter: blur(18px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.lightbox[aria-hidden="false"] {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-open {
  overflow: hidden;
}

.lightbox-figure {
  grid-column: 2;
  max-width: min(92vw, 980px);
  max-height: 92vh;
  margin: 0;
  display: grid;
  justify-items: center;
  gap: 14px;
}

.lightbox-figure img {
  max-width: min(92vw, 430px);
  max-height: 78vh;
  border: 1px solid rgba(255, 248, 232, 0.28);
  border-radius: 32px;
  background: var(--night);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.42);
}

.lightbox-figure figcaption {
  max-width: 620px;
  padding: 12px 16px;
  border: 1px solid rgba(255, 248, 232, 0.22);
  border-radius: 18px;
  color: #fff8e8;
  background: rgba(255, 248, 232, 0.08);
  text-align: center;
}

.lightbox-figure strong,
.lightbox-figure span {
  display: block;
}

.lightbox-figure span {
  color: rgba(255, 248, 232, 0.72);
  font-size: 14px;
}

.lightbox-close,
.lightbox-nav {
  border: 1px solid rgba(255, 248, 232, 0.32);
  color: #fff8e8;
  background: rgba(255, 248, 232, 0.08);
  cursor: pointer;
  transition: 180ms ease;
}

.lightbox-close:hover,
.lightbox-close:focus-visible,
.lightbox-nav:hover,
.lightbox-nav:focus-visible {
  background: rgba(255, 248, 232, 0.18);
  transform: translateY(-2px);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 22px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 30px;
  line-height: 1;
}

.lightbox-nav {
  width: 52px;
  height: 70px;
  border-radius: 999px;
  font-size: 44px;
  line-height: 0;
}

.lightbox-nav.prev {
  grid-column: 1;
}

.lightbox-nav.next {
  grid-column: 3;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 30px;
}

.feature-card {
  min-height: 220px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 248, 232, 0.72);
}

.feature-card span {
  color: var(--clay);
  font-weight: 900;
}

.feature-card h3 {
  font-size: 22px;
  margin: 24px 0 8px;
}

.feature-card p {
  color: var(--muted);
  margin: 0;
}

.promise-list {
  display: grid;
  gap: 12px;
  margin: 28px 0 0;
}

.promise-list article {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.promise-list strong {
  color: var(--moss);
}

.promise-list span {
  color: var(--muted);
}

.section-actions {
  margin-top: 30px;
}

.compact-docs .document-card {
  min-height: 240px;
}

@media (max-width: 1000px) {
  .journey-step,
  .journey-step:nth-child(even) {
    grid-template-columns: minmax(0, 1fr) minmax(200px, 260px);
  }

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

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

  .nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    width: 100%;
    overflow-x: auto;
    justify-content: flex-start;
  }

  .hero-grid,
  .section {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    padding: 22px 0 0;
  }

  .ownership-card {
    min-height: auto;
  }

  .stamp {
    margin-bottom: 54px;
  }

  .summary-band,
  .privacy-grid {
    grid-template-columns: 1fr;
  }

  .summary-band article + article {
    border-left: none;
    border-top: 1px solid var(--line);
  }

  .section-kicker {
    position: static;
  }

  .app-demo-card {
    min-height: auto;
    padding-bottom: 20px;
  }

  .journey-rail {
    padding-left: 24px;
  }

  .journey-step,
  .journey-step:nth-child(even) {
    grid-template-columns: 1fr;
  }

  .journey-step:nth-child(even) .journey-copy,
  .journey-step:nth-child(even) .journey-shot,
  .journey-step:nth-child(even) .paired-shots {
    grid-column: auto;
    grid-row: auto;
  }

  .journey-step::before {
    left: -27px;
  }

  .journey-shot {
    width: min(280px, 100%);
  }

  .floating-label.one {
    right: 6%;
  }

  .floating-label.two {
    left: 5%;
  }
}

@media (max-width: 560px) {
  .nav,
  .hero-grid,
  .document-hero,
  .summary-band,
  .problem-strip,
  .section,
  .footer {
    width: min(100% - 20px, 1180px);
  }

  .hero-grid {
    margin-top: 14px;
  }

  h1 {
    max-width: 7.5em;
    overflow-wrap: anywhere;
    word-break: break-all;
    line-break: anywhere;
    font-size: clamp(38px, 12vw, 52px);
  }

  .section {
    border-radius: 26px;
    padding: 22px 18px;
  }

  .problem-strip {
    border-radius: 26px;
    padding: 22px 18px;
  }

  .problem-card {
    min-height: auto;
  }

  .ownership-card {
    padding: 24px;
    border-radius: 28px;
  }

  .button {
    width: 100%;
  }

  .footer {
    flex-direction: column;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .promise-list article {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .demo-phone {
    min-height: 480px;
    border-radius: 32px;
    padding: 20px;
  }

  .device-shell {
    border-radius: 32px;
    padding: 8px;
    box-shadow: 12px 14px 0 rgba(36, 33, 29, 0.1), var(--shadow);
  }

  .device-shell img {
    border-radius: 24px;
  }

  .device-shot {
    width: min(300px, 78vw);
  }

  .qr-tile {
    grid-template-columns: 70px 1fr;
  }

  .qr-grid {
    width: 70px;
    height: 70px;
  }

  .qr-tile span {
    font-size: 30px;
  }

  .journey-rail {
    padding-left: 0;
  }

  .journey-rail::before {
    display: none;
  }

  .journey-step::before {
    display: none;
  }

  .journey-step {
    border-radius: 24px;
  }

  .paired-shots {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .compact-button {
    width: 100%;
  }

  .lightbox {
    grid-template-columns: 1fr;
    padding: 18px 12px;
  }

  .lightbox-figure {
    grid-column: 1;
  }

  .lightbox-figure img {
    max-width: min(92vw, 360px);
    max-height: 74vh;
    border-radius: 24px;
  }

  .lightbox-nav {
    position: absolute;
    top: 50%;
    width: 42px;
    height: 58px;
    font-size: 34px;
  }

  .lightbox-nav.prev {
    left: 10px;
  }

  .lightbox-nav.next {
    right: 10px;
  }
}
