/*
 * Zeri website. Built on the Zentra brand sheet:
 *   palette     #1769AA blue, #FCFFF9 off-white, #041224 navy, #00040D ink
 *   typeface    Plus Jakarta Sans (bold for headings)
 *   concept     Speed (streaks), Journey (route lines), Forward (slanted edges)
 */

@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/assets/fonts/PlusJakartaSans-latin.woff2") format("woff2");
}

:root {
  --blue: #1769aa;
  --blue-deep: #115287;
  --sky: #6fb4e6;          /* lighter tint of the brand blue, for text on navy */
  --navy: #041224;
  --navy-2: #0a1f38;
  --navy-3: #0f2a4a;
  --gold: #f0b544;
  --green: #2fbf86;

  --paper: #fcfff9;        /* fixed off-white for text on navy and blue bands */
  --canvas: #fcfff9;
  --surface: #ffffff;
  --ink: #00040d;
  --muted: #4d5d70;
  --line: #dde6ee;
  --tint: #eaf3f9;         /* brand blue at about 9% */
  --link: #1769aa;
  --red: #b3363f;
  --red-soft: #fff4f4;

  --shadow-card: 0 1px 2px rgba(4, 18, 36, 0.05), 0 8px 24px -10px rgba(4, 18, 36, 0.14);
  --shadow-lift: 0 2px 4px rgba(4, 18, 36, 0.06), 0 18px 36px -14px rgba(23, 105, 170, 0.35);
  --shadow-phone: 0 40px 70px -24px rgba(1, 8, 18, 0.7), 0 14px 28px -14px rgba(1, 8, 18, 0.5);

  --font: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --gutter: 20px;
  --max: 1140px;
  --slant: 44px;
}
@media (min-width: 720px) { :root { --gutter: 32px; --slant: 72px; } }

@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #041224;
    --surface: #0a1f38;
    --ink: #fcfff9;
    --muted: #a3b6c9;
    --line: #17324f;
    --tint: #0f2a4a;
    --link: #6fb4e6;
    --red: #ff9aa1;
    --red-soft: #2d1a28;
    --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px -10px rgba(0, 0, 0, 0.5);
    --shadow-lift: 0 2px 4px rgba(0, 0, 0, 0.3), 0 18px 36px -14px rgba(23, 105, 170, 0.6);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  word-spacing: 0.04em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--link); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 8px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); position: relative; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--surface); color: var(--ink); padding: 8px 14px; border-radius: 10px; z-index: 50; }
.skip:focus { left: 8px; }

/* The logo's leaf corners: top-left and bottom-right rounder. */
.liquid { border-radius: 32px 12px 32px 12px; }
.liquid-sm { border-radius: 22px 8px 22px 8px; }

/* ---------- Brand motifs ---------- */

/* Forward: the slanted eyebrow tag, cut at the Z's angle. */
.eyebrow {
  position: relative;
  isolation: isolate;
  display: inline-block;
  padding: 6px 16px;
  margin: 0 0 20px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue);
}
.eyebrow::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--tint);
  border-radius: 6px;
  transform: skewX(-14deg);
}
@media (prefers-color-scheme: dark) { .eyebrow { color: var(--sky); } .eyebrow::before { background: rgba(111, 180, 230, 0.12); } }
.on-dark .eyebrow, .hero .eyebrow, .page-hero .eyebrow, .drive .eyebrow, .closer .eyebrow { color: var(--sky); }
.on-dark .eyebrow::before, .hero .eyebrow::before, .page-hero .eyebrow::before, .drive .eyebrow::before, .closer .eyebrow::before { background: rgba(111, 180, 230, 0.14); }

/* The Z mark as a tintable shape. */
.zmark {
  position: absolute;
  aspect-ratio: 312 / 214;
  background: currentColor;
  -webkit-mask: url("/assets/img/z-mark.svg") center / contain no-repeat;
  mask: url("/assets/img/z-mark.svg") center / contain no-repeat;
  pointer-events: none;
}

/* Speed: tapered streaks that drift forward. */
.speed { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.speed i {
  position: absolute;
  left: var(--x, 0);
  top: var(--y);
  width: var(--w);
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, rgba(111, 180, 230, 0.7));
  opacity: var(--o, 0.4);
}
@media (prefers-reduced-motion: no-preference) {
  .speed i { animation: streak var(--d, 10s) linear infinite; animation-delay: var(--t, 0s); }
  @keyframes streak { from { transform: translateX(-40vw); } to { transform: translateX(140vw); } }
}

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

.site-header { position: absolute; inset: 0 0 auto 0; z-index: 10; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 80px; }
.brand { display: inline-flex; align-items: center; }
.brand img { height: 34px; width: auto; }
.nav { display: flex; gap: 4px; align-items: center; }
.nav a { color: rgba(252, 255, 249, 0.82); text-decoration: none; font-weight: 700; font-size: 15px; padding: 8px 14px; border-radius: 999px; transition: background 0.15s, color 0.15s; }
.nav a:hover { color: #fff; background: rgba(252, 255, 249, 0.1); }
.nav a[aria-current="page"] { color: #fff; background: rgba(111, 180, 230, 0.2); }
@media (max-width: 520px) { .nav .nav-optional { display: none; } .brand img { height: 28px; } }

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

.hero {
  position: relative;
  background:
    radial-gradient(900px 560px at 88% 8%, rgba(23, 105, 170, 0.5), transparent 62%),
    radial-gradient(700px 480px at 0% 100%, rgba(23, 105, 170, 0.22), transparent 62%),
    var(--navy);
  color: var(--paper);
  overflow: hidden;
  padding: 120px 0 0;
}
.hero .zmark { right: -6%; top: 6%; width: min(60vw, 640px); color: var(--blue); opacity: 0.16; transform: rotate(-4deg); }
.hero-grid { position: relative; display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) {
  .hero { padding-top: 136px; }
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; gap: 24px; min-height: 640px; }
}
.hero h1 { font-size: clamp(54px, 11.5vw, 108px); line-height: 0.94; letter-spacing: -0.035em; word-spacing: 0.06em; font-weight: 800; margin: 0 0 24px; }
.hero h1 span { display: block; }
.hero h1 .accent { color: var(--sky); }
.hero .lede { font-size: clamp(17px, 2.2vw, 20px); color: rgba(252, 255, 249, 0.78); max-width: 30em; margin: 0 0 32px; }

.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 11px 20px 11px 14px;
  background: rgba(252, 255, 249, 0.07);
  border: 1px solid rgba(252, 255, 249, 0.18);
  color: #fff; text-decoration: none; min-width: 196px;
  backdrop-filter: blur(6px);
}
.store svg { width: 26px; height: 26px; flex: none; }
.store small { display: block; font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); line-height: 1.2; }
.store strong { display: block; font-size: 17px; line-height: 1.25; font-weight: 800; letter-spacing: -0.01em; }

/* Journey: the dashed route that runs under the hero. */
.route { position: absolute; inset: auto 0 0 0; height: 240px; pointer-events: none; opacity: 0.6; }
.route path { fill: none; stroke: var(--sky); stroke-width: 2; stroke-dasharray: 2 11; stroke-linecap: round; }
@media (prefers-reduced-motion: no-preference) { .route path { animation: dash 28s linear infinite; } @keyframes dash { to { stroke-dashoffset: -520; } } }

.hero-phones { position: relative; display: flex; justify-content: center; align-items: flex-end; gap: 18px; }
.hero-phones .phone:nth-of-type(1) { transform: translateY(44px) rotate(-4deg); }
.hero-phones .phone:nth-of-type(2) { transform: translateY(0) rotate(3deg); z-index: 1; }
@media (max-width: 899px) {
  .hero-phones { margin-bottom: -64px; }
  .hero-phones .phone:nth-of-type(1) { display: none; }
  .hero-phones .phone:nth-of-type(2) { transform: none; }
}

/* Chips that float next to the hero phones, copied from the app's own intro screens. */
.chip {
  position: absolute; z-index: 3;
  display: inline-flex; align-items: center; gap: 9px;
  padding: 9px 16px;
  background: rgba(10, 31, 56, 0.9);
  border: 1px solid rgba(111, 180, 230, 0.28);
  border-radius: 999px;
  color: #fff; font-weight: 700; font-size: 14px; white-space: nowrap;
  box-shadow: 0 14px 30px -10px rgba(1, 8, 18, 0.6);
  backdrop-filter: blur(8px);
}
.chip::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(47, 191, 134, 0.22); }
.chip.amber::before { background: var(--gold); box-shadow: 0 0 0 4px rgba(240, 181, 68, 0.22); }
.hero-phones .chip.c1 { left: -2%; top: 16%; }
.hero-phones .chip.c2 { right: -2%; bottom: 22%; }
@media (max-width: 899px) { .hero-phones .chip.c1 { left: 2%; top: 6%; } .hero-phones .chip.c2 { display: none; } }
@media (prefers-reduced-motion: no-preference) {
  .chip { animation: bob 6s ease-in-out infinite; }
  .chip.c2 { animation-delay: -3s; }
  @keyframes bob { 50% { transform: translateY(-9px); } }
}

/* Phone frame for the real app screenshots */
.phone {
  --w: 252px;
  width: var(--w);
  aspect-ratio: 1080 / 2220;
  padding: 9px;
  background: #02080f;
  border-radius: 42px;
  box-shadow: var(--shadow-phone), inset 0 0 0 1.5px rgba(252, 255, 249, 0.16);
  flex: none;
}
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 33px; background: var(--navy-2); }
@media (min-width: 900px) { .phone { --w: 276px; } }

/* ---------- Ribbon: the brand tagline, moving forward ---------- */

.ribbon { background: var(--blue); color: #fff; overflow: hidden; padding: 16px 0; white-space: nowrap; }
.ribbon-track { display: inline-flex; gap: 0; }
.ribbon-set { display: inline-flex; align-items: center; flex: none; }
.ribbon span { font-weight: 800; font-size: 15px; letter-spacing: 0.34em; text-transform: uppercase; padding: 0 22px; }
.ribbon .zmark { position: static; display: inline-block; width: 30px; color: rgba(255, 255, 255, 0.55); }
@media (prefers-reduced-motion: no-preference) {
  .ribbon-track { animation: ribbon 38s linear infinite; }
  @keyframes ribbon { to { transform: translateX(-50%); } }
}
@media (prefers-reduced-motion: reduce) { .ribbon { text-align: center; } .ribbon-set[aria-hidden] { display: none; } }

/* ---------- Sections ---------- */

.section { padding: 104px 0; position: relative; }
.section.tight { padding-top: 40px; }
@media (max-width: 719px) { .section { padding: 68px 0; } }
.section-head { max-width: 660px; margin: 0 0 44px; }
.section-head h2, .feature h2, .drive h2, .closer h2 { font-size: clamp(32px, 5vw, 50px); line-height: 1.06; letter-spacing: -0.028em; word-spacing: 0.1em; font-weight: 800; margin: 0 0 16px; }
.section-head p, .feature p { color: var(--muted); font-size: 18px; margin: 0; }

/* Ride classes */
.classes { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 680px) { .classes { grid-template-columns: repeat(3, 1fr); } }
.class-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
  padding: 24px 24px 26px;
  display: flex; flex-direction: column; gap: 4px;
  overflow: hidden;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s, border-color 0.25s;
}
.class-card::after {
  content: ""; position: absolute; right: -30px; top: 0; bottom: 0; width: 110px;
  background: linear-gradient(100deg, transparent 40%, rgba(23, 105, 170, 0.1));
  transform: skewX(-14deg);
}
.class-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); border-color: rgba(23, 105, 170, 0.45); }
.class-card img { height: 96px; width: auto; object-fit: contain; align-self: flex-start; margin: 0 0 14px -6px; position: relative; z-index: 1; }
.class-card h3 { font-size: 21px; letter-spacing: -0.025em; margin: 0; font-weight: 800; }
.class-card p { margin: 0; color: var(--muted); font-size: 15px; }
@media (max-width: 679px) {
  .class-card { display: grid; grid-template-columns: 78px 1fr; column-gap: 16px; align-items: center; padding: 14px 18px; }
  .class-card img { grid-row: span 2; height: 72px; margin: 0; }
  .class-card h3 { align-self: end; }
  .class-card p { align-self: start; }
}

/* Journey: how it works */
.route-steps { position: relative; display: grid; gap: 28px; list-style: none; padding: 0; margin: 0; counter-reset: stop; }
.route-steps li { position: relative; padding-left: 74px; counter-increment: stop; }
.route-steps li::before {
  content: counter(stop);
  position: absolute; left: 0; top: 0;
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--blue); color: #fff;
  font-weight: 800; font-size: 20px;
  box-shadow: 0 0 0 7px var(--tint);
  z-index: 1;
}
.route-steps li::after { content: ""; position: absolute; left: 25px; top: 60px; bottom: -22px; border-left: 2px dashed rgba(23, 105, 170, 0.45); }
.route-steps li:last-child::after { display: none; }
.route-steps h3 { margin: 4px 0 6px; font-size: 22px; letter-spacing: -0.025em; font-weight: 800; }
.route-steps p { margin: 0; color: var(--muted); }
@media (min-width: 820px) {
  .route-steps { grid-template-columns: repeat(3, 1fr); gap: 36px; }
  .route-steps li { padding: 76px 0 0; }
  .route-steps li::after { left: 62px; right: -36px; top: 25px; bottom: auto; border-left: 0; border-top: 2px dashed rgba(23, 105, 170, 0.45); }
}

/* Feature rows */
.feature { display: grid; gap: 44px; align-items: center; padding: 56px 0; }
@media (min-width: 860px) { .feature { grid-template-columns: 1fr 1fr; gap: 72px; } .feature.flip .feature-copy { order: 2; } }
.feature-copy { max-width: 480px; }
.feature-stage {
  position: relative; isolation: isolate;
  display: flex; justify-content: center;
  padding: 44px 0;
  overflow: hidden;
  background:
    radial-gradient(closest-side at 50% 55%, rgba(23, 105, 170, 0.22), transparent),
    var(--tint);
}
.feature-stage::before {
  content: ""; position: absolute; z-index: -1; left: 50%; top: 50%;
  width: min(86%, 420px); aspect-ratio: 1; margin: calc(min(86%, 420px) / -2) 0 0 calc(min(86%, 420px) / -2);
  border: 2px dashed rgba(23, 105, 170, 0.4); border-radius: 50%;
}
.feature-stage .zmark { z-index: -1; width: 46%; left: -8%; bottom: 6%; color: var(--blue); opacity: 0.1; }
.feature.flip .feature-stage .zmark { left: auto; right: -8%; }
@media (prefers-reduced-motion: no-preference) { .feature-stage::before { animation: spin 90s linear infinite; } @keyframes spin { to { transform: rotate(360deg); } } }

.ticks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 36px; font-weight: 700; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 0;
  width: 24px; height: 24px; border-radius: 8px 3px 8px 3px;
  background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 15px no-repeat;
}

/* Details */
.extras { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .extras { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .extras { grid-template-columns: repeat(3, 1fr); } }
.extra { position: relative; overflow: hidden; background: var(--surface); border: 1px solid var(--line); padding: 26px; box-shadow: var(--shadow-card); transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s, border-color 0.25s; }
.extra:hover { transform: translateY(-5px); box-shadow: var(--shadow-lift); border-color: rgba(23, 105, 170, 0.45); }
.extra .icon { width: 48px; height: 48px; border-radius: 16px 6px 16px 6px; display: grid; place-items: center; background: linear-gradient(135deg, var(--blue), var(--blue-deep)); color: #fff; margin-bottom: 16px; }
.extra .icon svg { width: 24px; height: 24px; }
.extra h3 { margin: 0 0 6px; font-size: 19px; letter-spacing: -0.02em; font-weight: 800; }
.extra p { margin: 0; color: var(--muted); font-size: 15px; }
.dz { font-size: 1.3em; line-height: 1; }

/* Drive with Zeri: a slanted navy band, cut at the Z's angle */
.drive {
  position: relative;
  margin: calc(var(--slant) * -0.5) 0 0;
  padding: calc(var(--slant) + 56px) 0;
  background:
    radial-gradient(640px 420px at 100% 20%, rgba(23, 105, 170, 0.5), transparent 62%),
    var(--navy);
  color: var(--paper);
  clip-path: polygon(0 var(--slant), 100% 0, 100% calc(100% - var(--slant)), 0 100%);
  overflow: hidden;
  margin-bottom: 0;
}
.drive .zmark { left: -5%; bottom: 8%; width: 36%; color: var(--blue); opacity: 0.18; }
.drive .wrap { display: grid; gap: 44px; align-items: center; }
@media (min-width: 860px) { .drive .wrap { grid-template-columns: 1.1fr 0.9fr; gap: 64px; } }
.drive .wrap.no-phones { grid-template-columns: 1fr; max-width: 760px; }
.drive p { color: rgba(252, 255, 249, 0.76); font-size: 18px; margin: 0; }
.drive .ticks li { color: rgba(252, 255, 249, 0.94); }
.drive .req { margin-top: 28px; font-size: 14px; color: rgba(252, 255, 249, 0.58); }
.drive .phones { display: flex; justify-content: center; gap: 16px; }
.drive .phones .phone:nth-child(2) { transform: translateY(40px); }
@media (max-width: 520px) { .drive .phones .phone:nth-child(2) { display: none; } }

/* Closing band */
.closer {
  position: relative; overflow: hidden; text-align: center;
  margin-top: calc(var(--slant) * -1);
  padding: calc(var(--slant) + 96px) 0 104px;
  background: linear-gradient(160deg, #1b78bf, var(--blue) 45%, #0f4f82);
  color: #fff;
  clip-path: polygon(0 var(--slant), 100% 0, 100% 100%, 0 100%);
}
.closer .zmark { left: 50%; top: 58%; width: min(80vw, 720px); transform: translate(-50%, -50%); color: #fff; opacity: 0.1; }
.closer .store { background: rgba(4, 18, 36, 0.35); border-color: rgba(255, 255, 255, 0.3); }
.closer .store small { color: #ffd98a; }
.closer .wrap { position: relative; }
.closer p { color: rgba(255, 255, 255, 0.88); font-size: 18px; margin: 0 auto 30px; max-width: 32em; }
.closer .stores { justify-content: center; }

/* ---------- Inner pages ---------- */

.page-hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(760px 400px at 92% 0%, rgba(23, 105, 170, 0.5), transparent 62%),
    var(--navy);
  color: var(--paper);
  padding: 136px 0 76px;
}
.page-hero .zmark { right: -4%; bottom: -14%; width: min(46vw, 440px); color: var(--blue); opacity: 0.2; }
.page-hero h1 { font-size: clamp(40px, 7vw, 66px); line-height: 1; letter-spacing: -0.032em; word-spacing: 0.08em; font-weight: 800; margin: 0 0 16px; }
.page-hero p { color: rgba(252, 255, 249, 0.76); font-size: 19px; margin: 0; max-width: 34em; }
.page-hero .wrap { position: relative; }

.page { padding: 60px 0 100px; }
.page h2 { font-size: 30px; letter-spacing: -0.022em; word-spacing: 0.08em; font-weight: 800; margin: 60px 0 18px; line-height: 1.15; }
.page h2:first-child { margin-top: 0; }
.page h3 { font-size: 19px; letter-spacing: -0.02em; font-weight: 800; margin: 0 0 8px; }
.page p, .page li { color: var(--muted); }
.page p { margin: 0 0 14px; }
.page strong { color: var(--ink); }
.prose { max-width: 720px; }

.cards { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .cards.three { grid-template-columns: repeat(3, 1fr); } }
.card { position: relative; overflow: hidden; background: var(--surface); border: 1px solid var(--line); padding: 26px; box-shadow: var(--shadow-card); }
.card p:last-child { margin-bottom: 0; }
a.card { display: block; text-decoration: none; color: inherit; transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s, border-color 0.25s; }
a.card::after { content: "→"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-weight: 800; font-size: 22px; color: var(--blue); opacity: 0; transition: opacity 0.2s, transform 0.25s; }
a.card:hover, a.card:focus-visible { transform: translateY(-4px); box-shadow: var(--shadow-lift); border-color: rgba(23, 105, 170, 0.45); }
a.card:hover::after, a.card:focus-visible::after { opacity: 1; transform: translate(4px, -50%); }
.card .label { display: block; font-size: 12px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue); margin-bottom: 8px; }
@media (prefers-color-scheme: dark) { .card .label { color: var(--sky); } }
.card .value { display: block; font-size: 20px; font-weight: 800; color: var(--ink); letter-spacing: -0.02em; word-break: break-word; }

.steps { counter-reset: step; list-style: none; padding: 0; margin: 0 0 10px; display: grid; gap: 12px; }
.steps li { counter-increment: step; position: relative; padding-left: 44px; min-height: 30px; padding-top: 3px; }
.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: 0;
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--blue); color: #fff; font-weight: 800; font-size: 14px;
}

.callout { border: 1px solid var(--line); background: var(--tint); padding: 18px 22px; margin: 20px 0; }
.callout.warn { background: var(--red-soft); border-color: transparent; }
.callout.warn strong { color: var(--red); }
.callout p:last-child { margin-bottom: 0; }

details.faq { border-bottom: 1px solid var(--line); padding: 4px 0; }
details.faq summary { cursor: pointer; list-style: none; font-weight: 800; color: var(--ink); font-size: 17px; letter-spacing: -0.01em; padding: 18px 34px 18px 0; position: relative; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: ""; position: absolute; right: 4px; top: 50%; width: 10px; height: 10px; border-right: 2.5px solid var(--blue); border-bottom: 2.5px solid var(--blue); transform: translateY(-70%) rotate(45deg); transition: transform 0.2s; }
details.faq[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
details.faq p { margin: 0 0 18px; }

.button { display: inline-flex; align-items: center; gap: 8px; background: var(--blue); color: #fff; font-weight: 800; text-decoration: none; padding: 14px 24px; border-radius: 999px; transition: background 0.15s, transform 0.15s; }
.button:hover { background: var(--blue-deep); transform: translateY(-2px); }

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

.site-footer { border-top: 1px solid var(--line); padding: 56px 0 40px; font-size: 15px; background: var(--canvas); position: relative; z-index: 1; }
.footer-grid { display: grid; gap: 32px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.site-footer .logo-light, .site-footer .logo-dark { height: 46px; width: auto; margin-bottom: 18px; }
.site-footer .logo-dark { display: none; }
@media (prefers-color-scheme: dark) { .site-footer .logo-light { display: none; } .site-footer .logo-dark { display: block; } }
.site-footer p { color: var(--muted); margin: 0 0 6px; }
.site-footer h2 { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink); margin: 0 0 14px; font-weight: 800; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--link); text-decoration: underline; }
.site-footer .legal { margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }

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

@media (prefers-reduced-motion: no-preference) {
  html.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1); transition-delay: var(--rd, 0s); }
  html.js .reveal.in { opacity: 1; transform: none; }
  .rise { animation: rise 0.8s cubic-bezier(0.22, 1, 0.36, 1) both; }
  .rise.d1 { animation-delay: 0.08s; } .rise.d2 { animation-delay: 0.16s; } .rise.d3 { animation-delay: 0.24s; }
  @keyframes rise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
}

/* ---------- Policy pages ---------- */

.page-hero .meta { margin-top: 18px; font-size: 14px; color: rgba(252, 255, 249, 0.55); }

.toc { margin: 44px 0 56px; padding: 24px 28px; background: var(--tint); border-radius: 22px 8px 22px 8px; }
.toc ol { margin: 0; padding: 0; list-style: none; columns: 2; column-gap: 40px; counter-reset: toc; }
.toc li { counter-increment: toc; break-inside: avoid; padding: 5px 0; }
.toc li::before { content: counter(toc) "."; display: inline-block; width: 28px; color: var(--blue); font-weight: 800; }
.toc a { color: var(--ink); text-decoration: none; font-weight: 700; }
.toc a:hover { color: var(--link); text-decoration: underline; }
@media (max-width: 640px) { .toc ol { columns: 1; } .toc { padding: 18px 20px; } }

.policy h2 { scroll-margin-top: 24px; }
.policy ul { padding-left: 22px; margin: 0 0 16px; }
.policy li { margin: 0 0 10px; }
.policy li::marker { color: var(--blue); }

.table-wrap { margin: 18px 0 24px; border: 1px solid var(--line); border-radius: 18px 6px 18px 6px; overflow: hidden; background: var(--surface); box-shadow: var(--shadow-card); }
.table-wrap table { width: 100%; border-collapse: collapse; }
.table-wrap th { text-align: left; font-size: 12px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue); background: var(--tint); padding: 14px 20px; }
.table-wrap td { padding: 18px 20px; vertical-align: top; border-top: 1px solid var(--line); color: var(--muted); }
.table-wrap td:first-child { width: 31%; font-weight: 800; color: var(--ink); }
.table-wrap td small { display: block; margin-top: 4px; font-weight: 500; color: var(--muted); font-size: 13px; line-height: 1.45; }
@media (prefers-color-scheme: dark) { .table-wrap th { color: var(--sky); } }
@media (max-width: 640px) {
  .table-wrap thead { display: none; }
  .table-wrap table, .table-wrap tbody, .table-wrap tr, .table-wrap td { display: block; width: 100%; }
  .table-wrap td:first-child { width: 100%; padding-bottom: 4px; border-top: 1px solid var(--line); background: var(--tint); }
  .table-wrap tr:first-child td:first-child { border-top: 0; }
  .table-wrap td:last-child { padding-top: 12px; }
}
.prose.policy { max-width: 800px; }
.faq-more { margin-top: 22px; color: var(--muted); }
