/* Loro landing page
   Tokens come from the "Loro — theme directions" boards. One light theme. */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("assets/fonts/inter-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("assets/fonts/newsreader-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Newsreader";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/newsreader-italic-latin.woff2") format("woff2");
}

:root {
  --bg: #f6f4fa;
  --card: #ffffff;
  --accent: #5b2ec9;
  --accent-deep: #3f1d96;
  --accent-soft: #e3d8fb;
  --text: #1d1830;
  --text-2: #4a4360;
  --text-3: #5f5873;
  --shadow-phone: 0 24px 60px rgba(45, 20, 110, 0.28);

  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
  --reveal-duration: 1000ms;
  --max: 1120px;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: var(--accent); }
a:hover { color: var(--accent-deep); }

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

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

::selection { background: var(--accent-soft); color: var(--text); }

/* ---------- Ambient background ---------- */

.ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.ambient__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  will-change: transform;
}
.ambient__blob--a {
  width: 56vw; height: 56vw; min-width: 520px; min-height: 520px;
  left: -14vw; top: -22vw;
  background: radial-gradient(closest-side, #ebe3fc, transparent 70%);
  animation: drift-a 26s ease-in-out infinite alternate;
}
.ambient__blob--b {
  width: 44vw; height: 44vw; min-width: 420px; min-height: 420px;
  right: -12vw; top: 8vw;
  background: radial-gradient(closest-side, #e3d8fb, transparent 70%);
  animation: drift-b 32s ease-in-out infinite alternate;
}
.ambient__blob--c {
  width: 36vw; height: 36vw; min-width: 360px; min-height: 360px;
  left: 30vw; bottom: -20vw;
  background: radial-gradient(closest-side, #ece7f8, transparent 70%);
  animation: drift-c 38s ease-in-out infinite alternate;
}
@keyframes drift-a { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(6vw, 4vw, 0) scale(1.08); } }
@keyframes drift-b { from { transform: translate3d(0, 0, 0) scale(1.05); } to { transform: translate3d(-5vw, 6vw, 0) scale(0.95); } }
@keyframes drift-c { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-8vw, -3vw, 0); } }

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

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  transition: background-color 400ms var(--ease-soft), box-shadow 400ms var(--ease-soft), backdrop-filter 400ms;
}
.site-header::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: rgba(29, 24, 48, 0.06);
  opacity: 0;
  transition: opacity 400ms var(--ease-soft);
}
.site-header.is-scrolled {
  background: rgba(246, 244, 250, 0.72);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  backdrop-filter: saturate(160%) blur(18px);
}
.site-header.is-scrolled::after { opacity: 1; }

.site-header__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  transition: padding 400ms var(--ease-soft);
}
.site-header.is-scrolled .site-header__inner { padding-top: 14px; padding-bottom: 14px; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
}
.brand:hover { color: var(--text); }
.brand__mark {
  width: 44px; height: 44px;
  transition: transform 600ms var(--ease-out);
}
.brand:hover .brand__mark { transform: rotate(-6deg) scale(1.04); }
.brand__name {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 0 20px;
  border-radius: 22px;
  background: var(--card);
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(29, 24, 48, 0.04), 0 0 0 1px rgba(29, 24, 48, 0.03);
  transition: transform 300ms var(--ease-out), box-shadow 300ms var(--ease-out), background-color 300ms;
}
.btn:hover {
  color: var(--text);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(45, 20, 110, 0.12), 0 0 0 1px rgba(29, 24, 48, 0.04);
}
.btn:active { transform: translateY(0) scale(0.98); }

/* Primary CTA: one button, routed per platform by main.js */

.btn--lg {
  height: 60px;
  padding: 0 30px;
  border-radius: 30px;
  font-size: 17px;
  gap: 10px;
}
.btn__arrow {
  transition: transform 400ms var(--ease-out);
}
.btn:hover .btn__arrow { transform: translateX(3px); }

.btn--accent {
  position: relative;
  min-width: 180px;
  justify-content: center;
  background: var(--accent);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 1px 2px rgba(45, 20, 110, 0.2);
}
.btn--accent:hover { color: #fff; background: var(--accent-deep); box-shadow: 0 14px 30px rgba(45, 20, 110, 0.32); }
.btn--accent::before,
.btn--light::before {
  /* soft sheen that slides across on hover */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.14) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 900ms var(--ease-out);
}
.btn--accent:hover::before,
.btn--light:hover::before { transform: translateX(120%); }

.btn--light {
  position: relative;
  background: #fff;
  color: var(--text);
  overflow: hidden;
  isolation: isolate;
  box-shadow: none;
}
.btn--light:hover { color: var(--text); box-shadow: 0 14px 30px rgba(29, 24, 48, 0.22); }
.btn--light::before { background: linear-gradient(110deg, transparent 30%, rgba(91, 46, 201, 0.08) 50%, transparent 70%); }

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

/* ---------- Type ---------- */

.h2 {
  font-family: var(--serif);
  font-size: clamp(32px, 4vw, 46px);
  line-height: 1.08;
  font-weight: 500;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

/* ---------- Hero ---------- */

.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 48px 24px 96px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 64px;
}
.hero__copy {
  flex: 1 1 440px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.hero__title {
  font-family: var(--serif);
  font-size: clamp(44px, 6vw, 76px);
  line-height: 1.02;
  font-weight: 500;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.hero__title .w { display: inline-block; }
.hero__lede, .hero .cta-row { --reveal-duration: 650ms; }
.hero__lede {
  max-width: 520px;
  font-size: 19px;
  line-height: 1.55;
  color: var(--text-2);
  text-wrap: pretty;
}

/* ---------- Showcase + phone ---------- */

.showcase {
  flex: 0 0 auto;
  padding: 40px 56px;
  border-radius: 56px;
  background: var(--accent-soft);
  position: relative;
  overflow: hidden;
}
.showcase::before {
  /* slow light pass over the lavender card */
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(closest-side, rgba(255, 255, 255, 0.55), transparent 70%);
  transform: translate3d(-30%, -30%, 0);
  animation: showcase-light 14s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes showcase-light {
  from { transform: translate3d(-30%, -30%, 0); }
  to { transform: translate3d(30%, 30%, 0); }
}

.phone-wrap {
  position: relative;
  perspective: 1400px;
  animation: float 7s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -8px, 0); }
}
.phone {
  /* content-box: the 312×675 is the screen itself, the 8px bezel sits outside */
  box-sizing: content-box;
  width: 312px;
  height: 675px;
  border: 8px solid var(--text);
  border-radius: 44px;
  overflow: hidden;
  background: var(--bg);
  box-shadow: var(--shadow-phone);
  pointer-events: none;
  transform-style: preserve-3d;
  transition: transform 700ms var(--ease-soft);
  will-change: transform;
}
.phone__screen {
  width: 390px;
  height: 844px;
  transform: scale(0.8);
  transform-origin: top left;
}

/* Screen primitives (the 390×844 frames) */

.screen {
  width: 390px;
  height: 844px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
}
.screen--player { gap: 16px; }
.screen--chat { gap: 12px; }

.screen__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.circle {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: 22px;
  background: var(--card);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.circle--48 { width: 48px; height: 48px; border-radius: 24px; }
.circle--soft { background: var(--bg); }
.circle--accent { color: var(--accent); }
.circle--ghost { background: transparent; }
.circle--fill { background: var(--accent); color: #fff; }

.pill-chip {
  height: 44px;
  padding: 0 16px;
  border-radius: 22px;
  background: var(--card);
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
}

/* Player */

.player__body {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 8px 12px 0;
}
.player__heading { display: flex; flex-direction: column; gap: 8px; }
.player__crumb { font-size: 13px; font-weight: 500; color: var(--accent); }
.player__title {
  font-family: var(--serif);
  font-size: 32px;
  line-height: 1.1;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.player__text {
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.55;
}
.player__text--dim { color: var(--text-3); }
.player__mark {
  color: var(--text);
  padding: 3px 4px;
  border-radius: 8px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  background-color: transparent;
  background-image: linear-gradient(90deg, var(--accent-soft) 0 50%, transparent 50% 100%);
  background-size: 210% 100%;
  background-position: 100% 0;
  animation: mark-sweep 1400ms var(--ease-out) 1300ms forwards;
}
@keyframes mark-sweep { to { background-position: 0 0; } }

.transport {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px 16px 16px;
  border-radius: 32px;
  background: var(--card);
}
.transport__time {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 4px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}
.track {
  flex: 1;
  height: 8px;
  border-radius: 4px;
  background: var(--accent-soft);
  display: flex;
  overflow: hidden;
}
.track__fill {
  width: 35%;
  height: 8px;
  border-radius: 4px;
  background: var(--accent);
  animation: playing 24s linear infinite alternate;
}
@keyframes playing { from { width: 35%; } to { width: 39%; } }

.transport__controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.transport__center { display: flex; align-items: center; gap: 8px; }

.play {
  position: relative;
  width: 68px; height: 68px;
  border-radius: 34px;
  background: var(--accent);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.play__ring {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 2px solid var(--accent);
  opacity: 0;
  animation: ring 3200ms var(--ease-soft) infinite;
}
@keyframes ring {
  0% { transform: scale(1); opacity: 0.45; }
  70% { transform: scale(1.5); opacity: 0; }
  100% { transform: scale(1.5); opacity: 0; }
}

/* Conversation */

.bubble {
  align-self: flex-end;
  max-width: 280px;
  padding: 12px 18px;
  border-radius: 24px 24px 6px 24px;
  background: var(--accent-soft);
  font-size: 15px;
  line-height: 1.4;
}
.answer {
  padding: 4px 12px 0;
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.45;
}
.cite {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 12px 14px 20px;
  border-radius: 24px;
  background: var(--card);
}
.cite__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.cite__meta { font-size: 12px; font-weight: 500; color: var(--accent); font-variant-numeric: tabular-nums; }
.cite__quote { font-family: var(--serif); font-style: italic; font-size: 16px; line-height: 1.35; }
.cite__doc { font-size: 12px; color: var(--text-3); }
.link-btn {
  align-self: flex-start;
  height: 44px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  border-radius: 22px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
}
.status {
  padding: 0 12px;
  font-size: 13px;
  color: var(--text-3);
  display: flex;
  align-items: center;
  gap: 4px;
}
.dots { display: inline-flex; gap: 3px; margin-left: 2px; }
.dots i {
  width: 4px; height: 4px;
  border-radius: 2px;
  background: currentColor;
  animation: dot 1400ms ease-in-out infinite;
}
.dots i:nth-child(2) { animation-delay: 160ms; }
.dots i:nth-child(3) { animation-delay: 320ms; }
@keyframes dot {
  0%, 60%, 100% { opacity: 0.25; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-3px); }
}
.spacer { flex-grow: 1; }
.composer {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 56px;
  padding: 0 6px 0 20px;
  border-radius: 28px;
  background: var(--card);
}
.composer__placeholder { flex: 1; font-size: 15px; color: var(--text-3); }

/* Chat items drift in once the section is on screen */
.js .chat-item { opacity: 0; transform: translateY(10px); }
.js .is-visible .chat-item {
  animation: chat-in 700ms var(--ease-out) forwards;
}
.js .is-visible .chat-item:nth-child(2) { animation-delay: 300ms; }
.js .is-visible .chat-item:nth-child(3) { animation-delay: 650ms; }
.js .is-visible .chat-item:nth-child(4) { animation-delay: 850ms; }
.js .is-visible .chat-item:nth-child(5) { animation-delay: 1050ms; }
.js .is-visible .chat-item:nth-child(6) { animation-delay: 1250ms; }
.js .is-visible .chat-item:nth-child(7) { animation-delay: 1700ms; }
.js .is-visible .chat-item:nth-child(8) { animation-delay: 2100ms; }
@keyframes chat-in { to { opacity: 1; transform: translateY(0); } }

/* ---------- Steps ---------- */

.steps { background: var(--card); }
.steps__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 96px 24px;
  display: flex;
  flex-direction: column;
  gap: 48px;
}
.steps__title { max-width: 640px; }
.steps__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr));
  gap: 16px;
}
.step {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px;
  border-radius: 28px;
  background: var(--bg);
  transition: transform 500ms var(--ease-out), box-shadow 500ms var(--ease-out);
}
.step:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(45, 20, 110, 0.10);
}
.step__num {
  font-family: var(--serif);
  font-size: 40px;
  line-height: 1;
  font-weight: 500;
  color: var(--accent);
}
.step__title { font-size: 19px; font-weight: 600; }
.step__text { font-size: 15px; line-height: 1.55; color: var(--text-2); }

/* ---------- Answers ---------- */

.answers {
  max-width: var(--max);
  margin: 0 auto;
  padding: 96px 24px;
  display: flex;
  flex-wrap: wrap-reverse;
  align-items: center;
  justify-content: center;
  gap: 64px;
}
.answers__copy {
  flex: 1 1 400px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.answers__lede {
  max-width: 480px;
  font-size: 18px;
  line-height: 1.55;
  color: var(--text-2);
  text-wrap: pretty;
}

/* ---------- CTA ---------- */

.cta-wrap { padding: 0 24px 96px; }
.cta {
  position: relative;
  max-width: 1072px;
  margin: 0 auto;
  padding: 80px 32px;
  border-radius: 48px;
  background: var(--accent);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}
.cta__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  z-index: -1;
  pointer-events: none;
}
.cta__glow--a {
  width: 520px; height: 520px;
  left: -140px; top: -200px;
  background: radial-gradient(closest-side, rgba(255, 255, 255, 0.22), transparent 70%);
  animation: glow-a 18s ease-in-out infinite alternate;
}
.cta__glow--b {
  width: 620px; height: 620px;
  right: -200px; bottom: -280px;
  background: radial-gradient(closest-side, rgba(63, 29, 150, 0.9), transparent 70%);
  animation: glow-b 22s ease-in-out infinite alternate;
}
@keyframes glow-a { to { transform: translate3d(120px, 60px, 0); } }
@keyframes glow-b { to { transform: translate3d(-140px, -40px, 0); } }

.cta__mark {
  width: 88px; height: 88px;
  padding: 10px;
  border-radius: 32px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(29, 24, 48, 0.25);
  animation: float 8s ease-in-out infinite;
}
.cta__title {
  font-family: var(--serif);
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.05;
  font-weight: 500;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

/* ---------- QR modal (desktop) ---------- */

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal[hidden] { display: none; }
.modal__scrim {
  position: absolute;
  inset: 0;
  background: rgba(42, 36, 64, 0.55);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  opacity: 0;
  transition: opacity 400ms var(--ease-soft);
}
.modal__card {
  position: relative;
  width: min(420px, 100%);
  padding: 32px 32px 36px;
  border-radius: 36px;
  background: var(--card);
  color: var(--text);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  box-shadow: 0 40px 100px rgba(29, 24, 48, 0.35);
  opacity: 0;
  transform: translateY(16px) scale(0.96);
  transition: opacity 500ms var(--ease-out), transform 600ms var(--ease-out);
  outline: none;
}
.modal.is-open .modal__scrim { opacity: 1; }
.modal.is-open .modal__card { opacity: 1; transform: none; }

.modal__close {
  position: absolute;
  top: 16px; right: 16px;
  width: 44px; height: 44px;
  border: 0;
  border-radius: 22px;
  background: var(--bg);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 200ms, transform 300ms var(--ease-out);
}
.modal__close:hover { background: var(--accent-soft); }
.modal__close:active { transform: scale(0.94); }

.qr { padding-top: 12px; }
.qr__tile {
  position: relative;
  width: 300px;
  height: 300px;
  padding: 20px;
  border-radius: 32px;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.qr__tile::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(closest-side, rgba(255, 255, 255, 0.6), transparent 70%);
  animation: showcase-light 12s ease-in-out infinite alternate;
  pointer-events: none;
}
.qr__code {
  position: relative;
  width: 260px;
  height: 260px;
  border-radius: 20px;
  background: #fff;
  padding: 14px;
  box-shadow: 0 16px 40px rgba(45, 20, 110, 0.18);
}
.qr__mark {
  position: absolute;
  left: 50%; top: 50%;
  width: 66px; height: 66px;
  transform: translate(-50%, -50%);
  border-radius: 20px;
  background: #fff;
  padding: 5px;
}

.modal__title {
  margin-top: 12px;
  font-family: var(--serif);
  font-size: 30px;
  line-height: 1.1;
  font-weight: 500;
  letter-spacing: -0.015em;
}
.modal__text {
  max-width: 300px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-2);
  text-wrap: pretty;
}
.modal__note { font-size: 13px; color: var(--text-3); }

body.modal-open { overflow: hidden; }

/* ---------- Footer ---------- */

.site-footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--text-3);
}
.site-footer__links { display: flex; gap: 20px; }
.site-footer__links a {
  color: var(--text-3);
  text-decoration: none;
  transition: color 200ms;
}
.site-footer__links a:hover { color: var(--text); }

/* ---------- Document pages (privacy, terms) ---------- */

.doc {
  max-width: var(--max);
  margin: 0 auto;
  padding: 40px 24px 96px;
}
.doc__body {
  max-width: 680px;
  margin: 0 auto;
  padding: 56px 48px 64px;
  border-radius: 36px;
  background: var(--card);
  box-shadow: 0 1px 2px rgba(29, 24, 48, 0.04), 0 0 0 1px rgba(29, 24, 48, 0.03);
}
.doc__eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.doc__title {
  margin-top: 12px;
  font-family: var(--serif);
  font-size: clamp(36px, 5vw, 52px);
  line-height: 1.05;
  font-weight: 500;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.doc__meta {
  margin-top: 16px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(29, 24, 48, 0.08);
  font-size: 14px;
  color: var(--text-3);
}
.doc__section { margin-top: 36px; }
.doc__section h2 {
  font-family: var(--serif);
  font-size: 26px;
  line-height: 1.15;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}
.doc__section p {
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-2);
  text-wrap: pretty;
}
.doc__section p + p { margin-top: 12px; }
.site-footer__links a[aria-current="page"] { color: var(--text); }

@media (max-width: 760px) {
  .doc { padding-top: 16px; padding-bottom: 72px; }
  .doc__body { padding: 36px 24px 44px; border-radius: 28px; }
}

/* ---------- Scroll reveal ---------- */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  filter: blur(6px);
  transition:
    opacity var(--reveal-duration) var(--ease-out),
    transform var(--reveal-duration) var(--ease-out),
    filter var(--reveal-duration) var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}
.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
  filter: blur(0);
}
/* Hero title: each word rises into place, staggered */
.js .hero__title { opacity: 1; transform: none; filter: none; transition: none; }
.js .hero__title .w {
  opacity: 0;
  transform: translateY(0.45em);
  filter: blur(8px);
  transition:
    opacity 900ms var(--ease-out),
    transform 1100ms var(--ease-out),
    filter 900ms var(--ease-out);
}
.js .hero__title.is-visible .w { opacity: 1; transform: none; filter: blur(0); }
.js .hero__title.is-visible .w:nth-child(1) { transition-delay: 60ms; }
.js .hero__title.is-visible .w:nth-child(2) { transition-delay: 115ms; }
.js .hero__title.is-visible .w:nth-child(3) { transition-delay: 170ms; }
.js .hero__title.is-visible .w:nth-child(4) { transition-delay: 225ms; }
.js .hero__title.is-visible .w:nth-child(5) { transition-delay: 280ms; }
.js .hero__title.is-visible .w:nth-child(6) { transition-delay: 335ms; }
.js .hero__title.is-visible .w:nth-child(7) { transition-delay: 390ms; }
.js .hero__title.is-visible .w:nth-child(8) { transition-delay: 445ms; }
.js .hero__title.is-visible .w:nth-child(9) { transition-delay: 500ms; }

/* ---------- Responsive ---------- */

@media (max-width: 760px) {
  .hero { padding-top: 24px; padding-bottom: 72px; gap: 48px; }
  .showcase { padding: 28px 24px; border-radius: 40px; }
  .steps__inner, .answers { padding-top: 72px; padding-bottom: 72px; }
  .cta { padding: 64px 24px; border-radius: 36px; }
  .modal__card { padding: 28px 20px 32px; border-radius: 28px; }
  .qr__tile { width: 260px; height: 260px; padding: 16px; }
  .qr__code { width: 228px; height: 228px; }
  .brand__name { font-size: 24px; }
}
@media (max-width: 420px) {
  .showcase { padding: 20px 16px; border-radius: 32px; }
  .phone { width: 272px; height: 589px; border-width: 7px; border-radius: 38px; }
  .phone__screen { transform: scale(0.6975); }
  .btn--lg { width: 100%; justify-content: center; }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0ms !important;
  }
  .js [data-reveal], .js .hero__title .w, .js .chat-item {
    opacity: 1; transform: none; filter: none;
  }
  .player__mark { background-position: 0 0; }
  .phone { transform: none !important; }
}
