/* Caravel Pay landing page. Depends on base.css. */

/* =========================================================
   HERO: night sky, ASCII caravel, checkout mockup
   ========================================================= */
.hero {
  --hero-foot: 250px;          /* how much of the mockup sits on cream */
  position: relative;
  overflow: hidden;
  color: var(--moon);
  background:
    radial-gradient(60% 46% at 50% 0%, rgba(54, 78, 128, 0.22), transparent 72%),
    linear-gradient(180deg, #060a12 0%, #08101d 52%, #0d1a2f calc(100% - var(--hero-foot)), var(--cream) calc(100% - var(--hero-foot)));
}

/* ---- nav ---- */
.nav {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 76px;
}
.nav .brand { color: var(--moon); justify-self: start; }
.nav-links {
  display: flex;
  gap: 30px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav-links a {
  color: var(--moon-2);
  font-size: 15px;
  font-weight: 450;
  text-decoration: none;
  transition: color 0.15s ease;
}
.nav-links a:hover { color: var(--moon); }
.nav-cta {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 22px;
}
.nav-toggle {
  display: none;
  justify-self: end;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(243, 238, 227, 0.18);
  background: transparent;
  color: var(--moon);
  font-size: 14.5px;
  cursor: pointer;
}
.nav-toggle svg { width: 16px; height: 16px; }
.nav-menu {
  position: absolute;
  top: 70px;
  left: var(--gutter);
  right: var(--gutter);
  z-index: 20;
  padding: 10px;
  border-radius: 18px;
  background: var(--night-2);
  border: 1px solid rgba(243, 238, 227, 0.1);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6);
}
.nav-menu[hidden] { display: none; }
html:not(.js) .nav-toggle { display: none !important; }
.nav-menu ul { list-style: none; margin: 0; padding: 0; }
.nav-menu a:not(.btn) {
  display: block;
  padding: 12px 14px;
  border-radius: 10px;
  color: var(--moon);
  text-decoration: none;
  font-size: 16px;
}
.nav-menu a:not(.btn):hover { background: rgba(243, 238, 227, 0.06); }
.nav-menu .btn { width: 100%; margin-top: 8px; }
@media (min-width: 901px) { .nav-menu { display: none !important; } }

/* ---- sky ---- */
.sky {
  position: absolute;
  inset: 0 0 auto 0;
  height: 640px;
  pointer-events: none;
  user-select: none;
}
.star {
  position: absolute;
  left: var(--x);
  top: var(--y);
  font: 400 var(--s, 14px) / 1 var(--font-mono);
  color: var(--moon);
  opacity: var(--o, 0.5);
  animation: twinkle var(--t, 6s) ease-in-out var(--d, 0s) infinite;
}
.star.still { animation: none; }
@keyframes twinkle {
  0%, 100% { opacity: var(--o, 0.5); }
  50% { opacity: calc(var(--o, 0.5) * 0.22); }
}

/* ---- hero copy ---- */
.hero-copy {
  position: relative;
  z-index: 3;
  text-align: center;
  padding-top: clamp(48px, 8vh, 96px);
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(243, 238, 227, 0.14);
  background: rgba(243, 238, 227, 0.035);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--moon-2);
}
.pill .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 4px rgba(242, 181, 68, 0.14);
}
/* Hero pill, segmented (owner pick "E", 2026-11-09): cream track, dark "USDC out" segment with the official USDC mark. */
.pill-seg {
  display: inline-flex;
  align-items: stretch;
  margin: 0;
  padding: 3px;
  border-radius: 999px;
  background: var(--cream);
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.35), inset 0 -1px 0 rgba(20, 24, 33, 0.06);
}
.pill-seg span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-2);
  white-space: nowrap;
}
.pill-seg span.on { background: var(--ink); color: var(--cream); padding-left: 8px; }
.pill-seg img { width: 18px; height: 18px; display: block; }
.hero h1 {
  margin-top: 26px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(50px, 8.2vw, 108px);
  line-height: 0.98;
  letter-spacing: -0.045em;
  color: var(--moon);
}
.hero h1 .accent,
.final h2 .accent {
  display: inline-block;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.1em;
  line-height: 0.92;
  letter-spacing: -0.015em;
  padding-right: 0.06em;
}
.hero h1 .accent { color: var(--amber); }
.hero-sub {
  max-width: 580px;
  margin: 26px auto 0;
  font-size: clamp(17px, 1.45vw, 19px);
  line-height: 1.6;
  color: var(--moon-2);
}
.hero-actions { margin-top: 34px; }
.hero-meta {
  margin-top: 18px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.02em;
  color: var(--moon-3);
}
.hero-meta span + span::before {
  content: "\00b7";
  margin: 0 10px;
  opacity: 0.7;
}

/* ---- sea + ship ---- */
.sea {
  --ascii: 13px;
  position: relative;
  z-index: 2;
  margin-top: clamp(28px, 5vh, 56px);
  pointer-events: none;
  user-select: none;
}
.ship-lane {
  position: relative;
  height: calc(var(--ascii) * 1.2 * 11 + 4px);
}
.ship-wrap {
  position: absolute;
  bottom: 4px;
  left: calc(50% + 150px);
  animation: sway 34s ease-in-out infinite alternate;
}
.ship {
  margin: 0;
  font: 400 var(--ascii) / 1.2 var(--font-mono);
  color: rgba(243, 238, 227, 0.74);
  white-space: pre;
  transform-origin: 50% 92%;
  animation: bob 7.5s ease-in-out infinite;
}
@keyframes bob {
  0%, 100% { transform: translateY(0) rotate(-0.7deg); }
  50% { transform: translateY(-3px) rotate(0.7deg); }
}
@keyframes sway {
  from { transform: translateX(-18px); }
  to { transform: translateX(18px); }
}
.waves {
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 14%, #000 86%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 14%, #000 86%, transparent 100%);
}
.wave {
  overflow: hidden;
  font: 400 var(--ascii) / 1.2 var(--font-mono);
  white-space: pre;
}
.wave > span {
  display: inline-block;
  will-change: transform;
  animation: drift var(--dur, 160s) linear infinite;
}
/* each span holds two identical halves (360 glyphs), so -50% loops seamlessly;
   lower lines move faster for a little depth */
.wave.w1 { color: rgba(243, 238, 227, 0.46); --dur: 220s; }
.wave.w2 { color: rgba(243, 238, 227, 0.24); --dur: 170s; }
.wave.w3 { color: rgba(243, 238, 227, 0.12); --dur: 130s; }
@keyframes drift {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* pause everything in the hero while it is off screen (main.js) */
.is-offscreen .star,
.is-offscreen .ship,
.is-offscreen .ship-wrap,
.is-offscreen .wave > span,
.is-offscreen .mini-ship,
.is-offscreen .mini-wave > span { animation-play-state: paused; }

/* ---- checkout mockup ---- */
.mockup {
  position: relative;
  z-index: 3;
  max-width: 1000px;
  margin: 18px auto 0;
  padding-bottom: 72px;
}
.window {
  overflow: hidden;
  border-radius: 18px;
  background: var(--paper);
  color: var(--ink);
  text-align: left;
  box-shadow: 0 0 0 1px rgba(7, 11, 19, 0.06), var(--shadow-float);
}
.window-bar {
  display: grid;
  grid-template-columns: 80px 1fr 80px;
  align-items: center;
  height: 46px;
  padding: 0 16px;
  background: #f9f5ec;
  border-bottom: 1px solid var(--line-2);
}
.window-dots { display: flex; gap: 7px; }
.window-dots span { width: 11px; height: 11px; border-radius: 50%; background: #e2dacb; }
.window-url {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  height: 28px;
  padding: 0 14px;
  border-radius: 8px;
  background: var(--cream-2);
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--ink-3);
  white-space: nowrap;
  overflow: hidden;
}
.window-url svg { width: 12px; height: 12px; flex: none; color: var(--ink-3); }
.window-url span { overflow: hidden; text-overflow: ellipsis; }

.checkout {
  display: grid;
  grid-template-columns: 1fr 1.08fr;
}
.co-summary {
  display: flex;
  flex-direction: column;
  padding: 34px 40px 30px;
  background: #faf6ee;
  border-right: 1px solid var(--line-2);
}
.co-merchant {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 15px;
}
.co-merchant .store-mark {
  display: grid;
  place-items: center;
  width: 30px; height: 30px;
  border-radius: 9px;
  background: var(--ink);
  color: var(--cream);
}
.co-merchant .store-mark svg { width: 16px; height: 16px; }
.co-label { margin-top: 30px; font-size: 14px; color: var(--ink-3); }
.co-amount {
  margin-top: 4px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 46px;
  line-height: 1.05;
  letter-spacing: -0.035em;
  font-variant-numeric: tabular-nums;
}
.co-amount small {
  margin-left: 6px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--ink-3);
}
.co-lines {
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}
.co-lines li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-top: 1px solid var(--line-2);
}
.co-lines li.total { color: var(--ink); font-weight: 600; }
.co-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 26px;
  font-size: 13px;
  color: var(--ink-3);
}
.co-foot .timer { display: inline-flex; align-items: center; gap: 7px; }
.co-foot svg { width: 14px; height: 14px; }
.co-foot code { font-size: 12px; }

.co-pay { padding: 34px 40px 28px; }
.co-pay-title { font-weight: 600; font-size: 15px; }
.co-methods {
  display: grid;
  gap: 10px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}
.co-method {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 52px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 15px;
  font-weight: 550;
}
.co-method .radio {
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 1.5px solid rgba(20, 24, 33, 0.28);
  flex: none;
}
.co-method.is-selected { border: 1.5px solid var(--ink); }
.co-method.is-selected .radio { border: 5px solid var(--ink); }
.co-method .meta { margin-left: auto; font-size: 12.5px; font-weight: 450; color: var(--ink-3); }
.co-method svg { width: 20px; height: 20px; flex: none; color: var(--ink-2); }
.co-field {
  display: grid;
  gap: 6px;
  margin-top: 18px;
  font-size: 13px;
  color: var(--ink-3);
}
.co-field .input {
  display: flex;
  align-items: center;
  height: 44px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 14.5px;
  color: var(--ink);
}
.co-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 50px;
  margin-top: 18px;
  border-radius: 12px;
  background: var(--ink);
  color: var(--cream);
  font-weight: 600;
  font-size: 15.5px;
}
.co-button svg { width: 15px; height: 15px; }
.co-fine { margin-top: 12px; font-size: 12.5px; line-height: 1.5; color: var(--ink-3); text-align: center; }
.co-powered {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 18px;
  font-size: 12px;
  color: var(--ink-3);
}
.co-powered svg { width: 14px; height: 14px; }

/* paid toast */
.paid-toast {
  position: absolute;
  top: -24px;
  right: -40px;
  display: flex;
  align-items: center;
  gap: 14px;
  width: 384px;
  padding: 16px 18px;
  border-radius: 16px;
  background: var(--paper);
  color: var(--ink);
  text-align: left;
  border: 1px solid var(--line-2);
  box-shadow: 0 1px 2px rgba(20, 24, 33, 0.06), 0 28px 60px -24px rgba(20, 24, 33, 0.38);
  animation: toast-in 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 1.2s both;
}
.paid-toast .tick {
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  flex: none;
  border-radius: 50%;
  background: var(--green-wash);
  color: var(--green);
}
.paid-toast .tick svg { width: 16px; height: 16px; }
.paid-toast p { font-size: 14.5px; line-height: 1.45; }
.paid-toast .mono { font-size: 13.5px; }
.paid-toast .nowrap { white-space: nowrap; }
.paid-toast strong { font-weight: 650; }
.paid-toast .sub {
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-3);
}
@keyframes toast-in {
  from { opacity: 0; transform: translateY(14px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

/* =========================================================
   SECTIONS
   ========================================================= */
.section { padding-block: clamp(72px, 8vw, 116px); }
.section-head h2, .h2, .hero h1, .final h2, .flow h3 { text-wrap: balance; }
.lead, .hero-sub, .well > p, .flow p, .faq-body p, .log p { text-wrap: pretty; }
.section-head { max-width: 760px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2,
.h2 {
  margin-top: 18px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(36px, 4.7vw, 62px);
  line-height: 1.03;
  letter-spacing: -0.04em;
}
.lead {
  margin-top: 20px;
  font-size: clamp(17px, 1.4vw, 19px);
  line-height: 1.6;
  color: var(--ink-2);
}
.section-head.center .lead { margin-inline: auto; max-width: 560px; }

/* ---- methods strip ---- */
.methods { padding: 8px 0 0; }
.methods-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
}
.methods-side { display: flex; align-items: center; gap: 16px; }
.methods-label {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  white-space: nowrap;
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.chips li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 15px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--paper);
  font-size: 14.5px;
  font-weight: 550;
  white-space: nowrap;
}
.chips .coin {
  display: grid;
  place-items: center;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--usdc);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}
.methods-arrow { width: 72px; color: var(--ink-3); flex: none; }
.methods-note {
  margin-top: 22px;
  text-align: center;
  font-size: 14.5px;
  color: var(--ink-3);
}

/* ---- cards / wells shared ---- */
.well {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  background: var(--cream-2);
  padding: 30px 30px 0;
  overflow: hidden;
}
.well h3 {
  font-family: var(--font-display);
  font-weight: 550;
  font-size: 24px;
  letter-spacing: -0.025em;
  line-height: 1.2;
}
.well > p { margin-top: 10px; color: var(--ink-2); font-size: 15.5px; line-height: 1.6; max-width: 46ch; }
.mini {
  margin-top: auto;
  padding-top: 28px;
}
.mini-card {
  border-radius: 16px 16px 0 0;
  background: var(--paper);
  border: 1px solid var(--line-2);
  border-bottom: 0;
  box-shadow: 0 -1px 0 rgba(255, 255, 255, 0.6) inset, 0 10px 30px -18px rgba(20, 24, 33, 0.25);
  padding: 18px 18px 22px;
  font-size: 14px;
}

/* ---- steps ---- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 56px 0 0;
  padding: 0;
  list-style: none;
}
.step-num {
  display: grid;
  place-items: center;
  width: 30px; height: 30px;
  margin-bottom: 22px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
}
.row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.row + .row { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line-2); }
.row .grow { flex: 1; min-width: 0; }
.row .muted { color: var(--ink-3); font-size: 13px; }
.row .end { margin-left: auto; }
.plug-icon {
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  border-radius: 10px;
  background: var(--cream-2);
  color: var(--ink);
  flex: none;
}
.plug-icon svg { width: 18px; height: 18px; }
.tiny-btn {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--cream);
  font-size: 12.5px;
  font-weight: 600;
}
.mono { font-family: var(--font-mono); }
.code-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  border-radius: 8px;
  background: var(--cream-2);
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--ink);
}
.code-chip b { font-weight: 500; color: var(--green); }
.field-label { font-size: 12.5px; color: var(--ink-3); }
.field {
  display: flex;
  align-items: center;
  margin-top: 8px;
  height: 44px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1.5px solid var(--ink);
  background: #fff;
  font-family: var(--font-mono);
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
}
.field.is-plain { border: 1px solid var(--line); font-family: var(--font-sans); font-size: 13.5px; color: var(--ink-2); }
.field.is-amber { border-color: var(--amber); box-shadow: 0 0 0 4px rgba(242, 181, 68, 0.22); }
.valid {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  font-size: 13px;
  color: var(--green);
  font-weight: 550;
}
.valid svg { width: 14px; height: 14px; }
.live-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #2aa56f;
  box-shadow: 0 0 0 4px rgba(42, 165, 111, 0.16);
  flex: none;
}
.mini-card dl { display: grid; gap: 9px; margin: 14px 0 0; }
.kv { display: flex; justify-content: space-between; gap: 12px; font-size: 13.5px; }
.kv dt { color: var(--ink-3); }
.kv dd { margin: 0; font-weight: 550; text-align: right; }

/* ---- integrations bento ---- */
.bento {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: 18px;
  margin-top: 56px;
}
.tile-woo { grid-row: span 2; }
.badge {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 18px;
  padding: 4px 10px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--paper);
  color: var(--ink-2);
  border: 1px solid var(--line-2);
}
.badge.is-live { color: var(--green); }
.badge.is-live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.tile-links { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 22px; }

.wp {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  align-items: center;
  gap: 16px 18px;
  font-size: 13.5px;
}
.wp-crumb {
  grid-column: 1 / -1;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-2);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wp-crumb b { color: var(--ink); font-weight: 500; }
.wp dt { font-weight: 600; }
.wp dd { margin: 0; min-width: 0; }
.wp .field { margin-top: 0; }
.wp .hint { margin-top: 6px; font-size: 12.5px; color: var(--ink-3); }
.toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-2);
}
.toggle .sw {
  position: relative;
  width: 34px; height: 20px;
  border-radius: 999px;
  background: var(--ink);
}
.toggle .sw::after {
  content: "";
  position: absolute;
  top: 3px; right: 3px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--cream);
}
.wp-order {
  grid-column: 1 / -1;
  margin-top: 4px;
  padding-top: 16px;
  border-top: 1px solid var(--line-2);
}
.wp-order-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.wp-order-head b { font-weight: 600; }
.wp-order-note {
  position: relative;
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--cream-2);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.6;
  color: var(--ink-2);
}
.wp-save {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 14px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--cream);
  font-size: 13px;
  font-weight: 600;
}

.mini-code {
  border-radius: 16px 16px 0 0;
  background: var(--night-1);
  color: #dfe3ea;
  padding: 18px 20px 22px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.75;
  white-space: pre;
  overflow: hidden;
}
.mini-code { margin: 0; }
.mini-code .dim { color: #7f8899; }
.mini-code .ok { color: #9fe0bd; }
.mini-code .s { color: #ecc98a; }

.slots {
  display: flex;
  gap: 10px;
}
.slots span {
  flex: 1;
  height: 54px;
  border-radius: 12px;
  border: 1.5px dashed rgba(20, 24, 33, 0.2);
  display: grid;
  place-items: center;
  color: var(--ink-3);
  font-size: 18px;
  font-weight: 300;
}
.slots span:first-child { border-style: solid; border-color: var(--line); background: var(--paper); font-size: 12.5px; font-weight: 600; color: var(--ink); }
.tile-more .mini { padding-bottom: 30px; }

/* ---- how a payment moves ---- */
.flow {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
  margin: 64px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: flow;
}
.flow::before {
  content: "";
  position: absolute;
  top: 15px;
  left: 16px;
  right: 16px;
  border-top: 1.5px dashed rgba(20, 24, 33, 0.18);
}
.flow li { position: relative; }
.flow-dot {
  position: relative;
  display: grid;
  place-items: center;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--cream);
  border: 1.5px solid rgba(20, 24, 33, 0.22);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-2);
}
.flow li:last-child .flow-dot { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.flow h3 {
  margin-top: 22px;
  font-family: var(--font-display);
  font-weight: 550;
  font-size: 21px;
  letter-spacing: -0.02em;
}
.flow p { margin-top: 8px; color: var(--ink-2); font-size: 15.5px; }
.flow .status { margin-top: 16px; }
.flow code.inline { font-size: 0.88em; padding: 1px 5px; border-radius: 5px; background: var(--cream-2); }

/* ---- api ---- */
.api-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: start;
}
.ticks { margin: 30px 0 0; padding: 0; list-style: none; display: grid; gap: 16px; }
.ticks li {
  position: relative;
  padding-left: 30px;
  color: var(--ink-2);
  font-size: 15.5px;
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 0; top: 5px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2 7 10.6l4.6-5' fill='none' stroke='%23F6F2E9' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
}
.ticks strong { color: var(--ink); font-weight: 600; }
.ticks code, .faq code, .price-card code {
  font-size: 0.88em;
  padding: 1px 6px;
  border-radius: 6px;
  background: var(--cream-2);
}
.api-links { display: flex; align-items: center; flex-wrap: wrap; gap: 22px; margin-top: 34px; }
.api .code { box-shadow: var(--shadow-float); }
.code-response { border-top: 1px solid rgba(255, 255, 255, 0.07); }
.code-response .code-head { min-height: 38px; background: transparent; border-bottom: 0; }
.code-response pre { padding-top: 0; }

/* ---- pricing ---- */
.price-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  padding: clamp(32px, 5vw, 64px);
  border-radius: var(--radius-xl);
  background: var(--cream-2);
  overflow: hidden;
}
.price-big {
  display: flex;
  align-items: flex-end;
  gap: 18px;
  margin-top: 18px;
}
.price-num {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(132px, 17vw, 236px);
  line-height: 0.8;
  letter-spacing: -0.065em;
  font-variant-numeric: tabular-nums;
}
.price-tag {
  display: inline-block;
  margin-bottom: 12px;
  padding: 7px 14px;
  border-radius: 10px;
  background: var(--amber);
  color: #1b1406;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(16px, 1.6vw, 20px);
  letter-spacing: -0.01em;
  transform: rotate(-4deg);
  box-shadow: 0 6px 16px -8px rgba(138, 90, 6, 0.5);
  white-space: nowrap;
}
.price-sub { margin-top: 30px; font-size: clamp(17px, 1.5vw, 20px); color: var(--ink-2); max-width: 30ch; }
.price-cta { margin-top: 30px; }
.checks { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.checks li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 12px 0;
  font-size: 16px;
  font-weight: 500;
  border-bottom: 1px solid var(--line);
}
.checks li:last-child { border-bottom: 0; }
.checks svg { width: 20px; height: 20px; flex: none; margin-top: 2px; color: var(--ink); }
.price-example {
  margin-top: 22px;
  padding: 22px 24px;
  border-radius: 18px;
  background: var(--paper);
  border: 1px solid var(--line-2);
}
.price-example .label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.price-example dl { margin: 12px 0 0; display: grid; gap: 8px; font-variant-numeric: tabular-nums; }
.price-example .kv { font-size: 15px; }
.price-example .kv.total { padding-top: 10px; border-top: 1px solid var(--line); font-size: 16px; }
.price-example .kv.total dt { color: var(--ink); font-weight: 600; }
.price-example .kv.total dd { font-weight: 700; color: var(--green); }
.price-example .fine { margin-top: 12px; font-size: 13px; line-height: 1.55; color: var(--ink-3); }

/* ---- story (ship's log) ---- */
.story .section-head { margin-bottom: 52px; }
.log {
  position: relative;
  isolation: isolate;
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(32px, 5vw, 56px) clamp(26px, 5vw, 64px);
  font-size: clamp(16.5px, 1.5vw, 18.5px);
  line-height: 1.75;
  color: var(--ink-2);
}
.log::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--paper);
  border-radius: 6px;
  box-shadow: 0 1px 2px rgba(20, 24, 33, 0.06), 0 30px 60px -30px rgba(20, 24, 33, 0.3);
  transform: rotate(-0.8deg);
}
.log-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 26px;
  padding-bottom: 14px;
  border-bottom: 1px dashed rgba(20, 24, 33, 0.18);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.log p + p { margin-top: 18px; }
.log mark {
  background: linear-gradient(transparent 52%, var(--amber-wash) 52%, var(--amber-wash) 92%, transparent 92%);
  color: var(--ink);
  padding: 0 2px;
}
.log-sign {
  margin-top: 30px !important;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 19px;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.traits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  max-width: 980px;
  margin: 64px auto 0;
  padding: 0;
  list-style: none;
}
.traits h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.015em;
}
.traits p { margin-top: 6px; color: var(--ink-2); font-size: 15.5px; }

/* ---- faq ---- */
.faq {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.6fr);
  gap: 10px;
  margin-top: 52px;
  padding: 10px;
  border-radius: var(--radius-xl);
  background: var(--cream-2);
}
.faq-aside {
  display: flex;
  flex-direction: column;
  padding: 26px 24px;
}
.faq-aside .big {
  font-family: var(--font-display);
  font-weight: 550;
  font-size: 24px;
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.faq-aside .big span { color: var(--ink-3); }
.faq-contact { margin-top: auto; padding-top: 40px; display: grid; gap: 18px; font-size: 15px; }
.faq-contact .k { font-size: 12.5px; color: var(--ink-3); }
.faq-contact a { font-weight: 550; text-decoration: none; }
.faq-contact a:hover { text-decoration: underline; text-underline-offset: 4px; }
.faq-list {
  border-radius: 20px;
  background: var(--paper);
  padding: 8px;
}
.faq-item { border-radius: 14px; transition: background-color 0.2s ease; }
.faq-item + .faq-item { margin-top: 2px; }
.faq-item[open] { background: var(--cream); }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 18px;
  list-style: none;
  cursor: pointer;
  font-weight: 550;
  font-size: 16px;
  border-radius: 14px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { background: rgba(20, 24, 33, 0.03); }
.faq-item[open] summary:hover { background: transparent; }
.faq-icon {
  position: relative;
  width: 22px; height: 22px;
  flex: none;
  border-radius: 6px;
  background: var(--cream-2);
  transition: background-color 0.2s ease, transform 0.25s ease;
}
.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 10px; height: 1.6px;
  margin: -0.8px 0 0 -5px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.25s ease, background-color 0.2s ease;
}
.faq-icon::after { transform: rotate(90deg); }
.faq-item[open] .faq-icon { background: var(--ink); }
.faq-item[open] .faq-icon::after { transform: rotate(0deg); }
.faq-item[open] .faq-icon::before,
.faq-item[open] .faq-icon::after { background: var(--cream); }
.faq-body {
  padding: 0 60px 20px 18px;
  color: var(--ink-2);
  font-size: 15.5px;
  line-height: 1.65;
}
.faq-body p + p { margin-top: 10px; }

/* ---- final cta ---- */
.final { padding-block: clamp(90px, 11vw, 150px) clamp(80px, 9vw, 120px); text-align: center; }
.mini-sea {
  --ascii: 12.5px;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 280px;
  margin: 0 auto 30px;
  pointer-events: none;
  user-select: none;
}
.mini-ship {
  margin: 0;
  font: 400 var(--ascii) / 1.2 var(--font-mono);
  white-space: pre;
  color: rgba(20, 24, 33, 0.62);
  transform-origin: 50% 90%;
  animation: bob 6.5s ease-in-out infinite;
  text-align: left;
}
.mini-wave {
  width: 280px;
  margin: 2px 0 0;
  overflow: hidden;
  font: 400 var(--ascii) / 1.2 var(--font-mono);
  white-space: pre;
  color: rgba(20, 24, 33, 0.34);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 25%, #000 75%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 25%, #000 75%, transparent);
}
.mini-wave > span { display: inline-block; animation: drift 40s linear infinite; }
.final h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(42px, 6vw, 80px);
  line-height: 1;
  letter-spacing: -0.045em;
}
.final h2 .accent { color: var(--amber-ink); }
.final .lead { max-width: 540px; margin-inline: auto; }
.final-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 36px; }

/* ---- footer ---- */
.footer {
  position: relative;
  overflow: hidden;
  padding-top: 72px;
  background: var(--cream-2);
  border-top: 1px solid var(--line-2);
}
.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 2fr);
  gap: 48px;
}
.footer .brand { color: var(--ink); }
.footer-brand p { margin-top: 16px; color: var(--ink-2); font-size: 15px; line-height: 1.6; }
.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}
.footer-cols h2 {
  font-family: var(--font-sans);
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0;
}
.footer-cols ul { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; }
.footer-cols a { color: var(--ink-2); text-decoration: none; font-size: 15px; }
.footer-cols a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 32px;
  margin-top: 64px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
  color: var(--ink-3);
}
.wordmark {
  margin-top: 40px;
  margin-bottom: -0.2em;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 650;
  font-size: clamp(96px, 23vw, 360px);
  line-height: 0.8;
  letter-spacing: -0.065em;
  color: #e4dccb;
  user-select: none;
  pointer-events: none;
  white-space: nowrap;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (min-width: 1101px) {
  .sea { margin-top: -92px; }
  .ship-wrap { left: calc(50% + 250px); }
}

@media (max-width: 1100px) {
  .paid-toast { right: 16px; }
  .bento { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .tile-woo { grid-column: 1 / -1; grid-row: auto; }
  .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 48px; }
  .flow::before { display: none; }
  .api-grid { grid-template-columns: minmax(0, 1fr); }
  .api-copy { max-width: 680px; }
  .steps { grid-template-columns: minmax(0, 1fr); max-width: 620px; margin-inline: auto; }
}

@media (max-width: 900px) {
  .nav { grid-template-columns: 1fr auto; }
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: inline-flex; }
  .ship-wrap { left: calc(50% + 40px); }
  .checkout { grid-template-columns: minmax(0, 1fr); }
  .co-summary { border-right: 0; border-bottom: 1px solid var(--line-2); padding: 26px 26px 22px; }
  .co-label { margin-top: 20px; }
  .co-lines, .co-foot { display: none; }
  .co-pay { padding: 24px 26px 26px; }
  .paid-toast {
    position: relative;
    right: auto; bottom: auto;
    width: min(360px, calc(100% - 24px));
    margin: -40px auto 0;
  }
  .methods-row { flex-direction: column; gap: 18px; }
  .methods-side { flex-direction: column; gap: 12px; }
  .chips { justify-content: center; }
  .methods-arrow { transform: rotate(90deg); width: 40px; }
  .price-card { grid-template-columns: minmax(0, 1fr); }
  .traits { grid-template-columns: minmax(0, 1fr); gap: 22px; max-width: 520px; }
  .faq { grid-template-columns: minmax(0, 1fr); }
  .faq-contact { padding-top: 22px; }
  .footer-top { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 640px) {
  .hero { --hero-foot: 150px; }
  .sea { --ascii: 10px; }
  .ship-wrap { left: 50%; margin-left: -95px; }
  .hero-meta span { display: block; }
  .hero-meta span + span::before { content: none; }
  .window-bar { grid-template-columns: 44px 1fr 8px; padding: 0 12px; }
  .window-dots span { width: 9px; height: 9px; }
  .window-dots { gap: 5px; }
  .window-url { font-size: 11.5px; padding: 0 10px; }
  .co-amount { font-size: 40px; }
  .co-method .meta { display: none; }
  .mini-code {
    padding: 16px;
    font-size: 11.5px;
    -webkit-mask-image: linear-gradient(90deg, #000 82%, transparent);
    mask-image: linear-gradient(90deg, #000 82%, transparent);
  }
  .bento { grid-template-columns: minmax(0, 1fr); }
  .wp { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .wp dd + dt { margin-top: 10px; }
  .flow { grid-template-columns: minmax(0, 1fr); row-gap: 36px; }
  .well { padding: 24px 22px 0; }
  .price-big { flex-wrap: wrap; gap: 10px 14px; }
  .faq { padding: 6px; }
  .faq-body { padding: 0 18px 18px; }
  .faq-item summary { padding: 16px 14px; font-size: 15.5px; }
  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .log::before { transform: rotate(-0.5deg); }
}

/* =========================================================
   REDUCED MOTION: everything static, toast already shown
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  .star, .ship, .ship-wrap, .wave > span, .mini-ship, .mini-wave > span, .paid-toast {
    animation: none !important;
  }
  .btn, .btn svg, .link-arrow svg, .faq-icon, .faq-icon::before, .faq-icon::after { transition: none; }
}
