/* Sundial Pay, v3
   The idea: daylight. Every raised surface casts one hard shadow at the same
   angle, like things sitting on a counter in the afternoon sun. Amber is the
   only accent and it means "act here" or "this sale went through". */

:root {
  --ink: #0f1f33;
  --ink-2: #1c2d44;
  --slate: #4d5c6d;
  --sky: #f2f6f9;
  --sky-2: #e4ebf1;
  --sheet: #ffffff;
  --shade: #c7d5e1;
  --dusk: #06111f;
  --rule: #dce4eb;
  --sun: #f5a623;
  --sun-deep: #c97d05;
  --ok: #1c9a5b;
  --warn: #b8322a;

  --display: "Archivo", "Arial Narrow", Arial, sans-serif;
  --body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;

  --sx: 10px;
  --sy: 8px;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 10px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --dur: 0.26s;
  color-scheme: light;
}

/* ---------- Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body {
  margin: 0;
  background: var(--sky);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--sun-deep); outline-offset: 3px; border-radius: 3px; }
h1, h2, h3 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.012em;
  margin: 0;
  text-wrap: balance;
}
h1 { font-variation-settings: "wdth" 112; font-size: clamp(2.2rem, 4.6vw, 3.5rem); }
h2 { font-variation-settings: "wdth" 108; font-size: clamp(1.7rem, 3.2vw, 2.5rem); }
h3 { font-variation-settings: "wdth" 104; font-size: 1.2rem; line-height: 1.25; }
p { margin: 0; }
p + p { margin-top: 1em; }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; color: inherit; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -64px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: var(--radius); }
.skip-link:focus { top: 12px; }
.muted { color: var(--slate); }
.fine { font-size: 0.9rem; color: var(--slate); }

.eyebrow {
  font: 500 0.78rem/1.3 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 16px;
}
.eyebrow--light { color: #b9c7d6; }
.lede { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.55; color: var(--ink-2); max-width: 36em; }

/* ---------- Cast shadow system ---------- */
.cast { box-shadow: var(--sx) var(--sy) 0 var(--shade); }
.cast-hover { transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
@media (hover: hover) {
  .cast-hover:hover { transform: translate(-3px, -2px); box-shadow: calc(var(--sx) + 3px) calc(var(--sy) + 2px) 0 var(--shade); }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 12px 24px;
  background: var(--sun);
  color: var(--ink);
  border: 0;
  border-radius: var(--radius);
  font: 600 1rem/1.2 var(--body);
  text-decoration: none;
  cursor: pointer;
  box-shadow: 6px 6px 0 var(--ink);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background var(--dur) var(--ease);
  touch-action: manipulation;
}
@media (hover: hover) {
  .btn:hover { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 var(--ink); background: #f7b03a; }
}
.btn:active { transform: translate(3px, 3px); box-shadow: 3px 3px 0 var(--ink); }
.btn--small { min-height: 44px; padding: 8px 16px; font-size: 0.94rem; white-space: nowrap; box-shadow: 4px 4px 0 var(--ink); }
@media (hover: hover) { .btn--small:hover { box-shadow: 6px 6px 0 var(--ink); } }
.btn--small:active { box-shadow: 2px 2px 0 var(--ink); }
.btn--ghost { background: var(--sheet); box-shadow: 6px 6px 0 var(--shade); }
@media (hover: hover) { .btn--ghost:hover { background: var(--sheet); box-shadow: 8px 8px 0 var(--shade); } }
.btn--ghost:active { box-shadow: 3px 3px 0 var(--shade); }
.btn--light { box-shadow: 6px 6px 0 var(--dusk); }
@media (hover: hover) { .btn--light:hover { box-shadow: 8px 8px 0 var(--dusk); } }
.btn--light:active { box-shadow: 3px 3px 0 var(--dusk); }
.btn.is-pending { opacity: 0.7; cursor: progress; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-weight: 600;
  text-decoration: none;
}
.link-arrow::after {
  content: "";
  width: 10px;
  height: 10px;
  border-right: 2px solid currentColor;
  border-top: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform var(--dur) var(--ease);
}
.link-arrow:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.link-arrow:hover::after { transform: translateX(4px) rotate(45deg); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--sky) 92%, transparent);
  backdrop-filter: saturate(1.2) blur(10px);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--rule); background: color-mix(in srgb, var(--sheet) 88%, transparent); }
.header-inner { display: flex; align-items: center; gap: 20px; min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; text-decoration: none; font-family: var(--display); font-weight: 700; font-variation-settings: "wdth" 110; font-size: 1.2rem; letter-spacing: -0.01em; }
.brand .mark { width: 34px; height: 34px; color: var(--ink); }
.brand .mark-sun { color: var(--sun); }
.site-nav { display: flex; align-items: center; gap: 24px; margin-left: auto; }
.nav-list { display: flex; gap: 4px; list-style: none; }
.nav-list a {
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 8px;
  font-weight: 500;
  text-decoration: none;
  color: var(--ink-2);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.nav-list a:hover { background: var(--sky-2); color: var(--ink); }
.nav-list a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -3px 0 var(--sun); border-radius: 8px 8px 0 0; }
.nav-tools { display: flex; align-items: center; gap: 14px; }
.nav-lang {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 10px;
  font: 500 0.82rem/1 var(--mono);
  letter-spacing: 0.06em;
  text-decoration: none;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: var(--sheet);
}
.nav-lang:hover { border-color: var(--ink); }
.nav-lang--es {
  white-space: nowrap;
  font: 700 0.95rem/1 var(--body);
  letter-spacing: 0;
  padding: 0 14px;
  color: #000;
  background: #e53935;
  border-color: #e53935;
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
@media (hover: hover) { .nav-lang--es:hover { border-color: #e53935; transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); } }
.nav-lang--es:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
.nav-phone { font-weight: 600; text-decoration: none; white-space: nowrap; }
.nav-toggle {
  display: none;
  margin-left: auto;
  width: 48px;
  height: 48px;
  border: 1px solid var(--rule);
  border-radius: 10px;
  background: var(--sheet);
  cursor: pointer;
  position: relative;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 13px;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.nav-toggle-bars { top: 23px; }
.nav-toggle-bars::before { left: 0; top: -7px; }
.nav-toggle-bars::after { left: 0; top: 7px; }
.menu-open .nav-toggle-bars { background: transparent; }
.menu-open .nav-toggle-bars::before { transform: translateY(7px) rotate(45deg); }
.menu-open .nav-toggle-bars::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1199px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 12px var(--gutter) 20px;
    background: var(--sheet);
    border-bottom: 1px solid var(--rule);
    box-shadow: 0 20px 40px -24px rgba(15, 31, 51, 0.35);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease), visibility 0s linear var(--dur);
  }
  .menu-open .site-nav { transform: none; opacity: 1; visibility: visible; transition-delay: 0s; }
  .nav-list { flex-direction: column; gap: 0; }
  .nav-list a { min-height: 50px; font-size: 1.05rem; }
  .nav-list a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--sun); border-radius: 8px; }
  .nav-tools { flex-wrap: wrap; justify-content: space-between; padding-top: 12px; border-top: 1px solid var(--rule); }
  .nav-tools .btn { flex: 1 1 100%; }
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(56px, 8vw, 104px); }
.section--tight { padding-block: clamp(40px, 5vw, 64px); }
.section--sheet { background: var(--sheet); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.section--rule { border-top: 1px solid var(--rule); }
.section--dusk { background: var(--ink); color: #eef3f8; }
.section--dusk .eyebrow { color: #b9c7d6; }
.section--dusk .muted { color: #b9c7d6; }
.section-head { max-width: 44em; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head p { margin-top: 12px; color: var(--slate); font-size: 1.1rem; }
.section--dusk .section-head p { color: #c7d3df; }
.section-head--row { display: flex; align-items: end; justify-content: space-between; gap: 24px; flex-wrap: wrap; max-width: none; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: clamp(24px, 5vw, 72px); align-items: start; }
.prose { max-width: 60ch; }
.prose--narrow { max-width: 62ch; }
.prose h2 { font-size: 1.4rem; margin-top: 1.6em; margin-bottom: 0.5em; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 1.2em; }
.prose li + li { margin-top: 0.5em; }
@media (max-width: 767px) { .split { grid-template-columns: 1fr; } }

.page-head { padding-block: clamp(40px, 6vw, 80px) clamp(24px, 4vw, 40px); }
.page-head .lede { margin-top: 18px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding-block: clamp(32px, 5vw, 72px) 0; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: end; }
.hero-copy { padding-bottom: clamp(40px, 6vw, 88px); }
.hero-copy .lede { margin-top: 20px; max-width: 30em; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; margin-top: 30px; }
.hero-note { margin-top: 18px; font: 500 0.82rem/1.5 var(--mono); color: var(--slate); }
.hero-note strong { color: var(--ink); font-weight: 500; }
.counter-line { height: 2px; background: var(--ink); }
@media (max-width: 899px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { padding-bottom: 8px; }
}

/* ---------- Counter scene (inline SVG) ---------- */
.scene { width: 100%; height: auto; max-width: 640px; margin-inline: auto; overflow: visible; }
.scene text { font-family: var(--mono); fill: var(--ink); }
.scene .sh { fill: var(--shade); }
.scene .counter-top { fill: var(--sky-2); }
.scene .counter-edge { fill: var(--ink); }
.scene .body { fill: var(--ink); }
.scene .body-2 { fill: var(--ink-2); }
.scene .screen { fill: var(--sheet); }
.scene .line { fill: var(--rule); }
.scene .line-dark { fill: var(--slate); }
.scene .sun { fill: var(--sun); }
.scene .ink { fill: var(--ink); }
.scene .ok-stroke { fill: none; stroke: var(--ok); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.scene .ring { fill: none; stroke: var(--sun); stroke-width: 3; }
.scene .nfc { fill: none; stroke: #8ea3b8; stroke-width: 2.4; stroke-linecap: round; }
.scene .paper { fill: var(--sheet); stroke: var(--rule); stroke-width: 1; }
.scene .tag { fill: var(--sheet); stroke: var(--ink); stroke-width: 1.2; }
.scene .tag--sun { fill: var(--sun); stroke: var(--sun); }
.scene .tag-text { font-size: 8.5px; font-weight: 500; }
.scene .r-text { font-size: 9.5px; }
.scene .r-text--sm { font-size: 8.5px; }
.scene .r-text--bold { font-weight: 500; }
.scene .s-text { font-size: 10px; fill: var(--slate); }
.scene .s-total { font-size: 15px; font-weight: 500; }
.scene .approved { font-size: 10.5px; font-weight: 500; fill: var(--ok); letter-spacing: 0.04em; }

/* Animated parts: initial states, then the run. */
.scene .dev { transform-box: fill-box; transform-origin: 50% 100%; opacity: 0; transform: translateY(24px); }
.scene .card { transform-box: fill-box; transform-origin: 50% 50%; opacity: 0; transform: translate(150px, 70px) rotate(-18deg); }
.scene .ring { transform-box: fill-box; transform-origin: 50% 50%; opacity: 0; transform: scale(0.4); }
.scene .ok-stroke { stroke-dasharray: 60; stroke-dashoffset: 60; }
.scene .approved { opacity: 0; }
.scene .screen-glow { fill: var(--sun); opacity: 0; }
.scene .prompt { opacity: 1; }
.scene .receipt { transform-box: fill-box; transform-origin: 50% 100%; transform: translateY(132px); }
.scene .tag-g { transform-box: fill-box; transform-origin: 0% 50%; opacity: 0; transform: translateX(-6px) scale(0.9); }

.scene.is-live .dev { animation: scene-rise 0.7s var(--ease) forwards; }
.scene.is-live .dev--b { animation-delay: 0.1s; }
.scene.is-live .card { animation: scene-card 0.9s var(--ease) 0.7s forwards; }
.scene.is-live .ring { animation: scene-ring 0.9s ease-out 1.45s forwards; }
.scene.is-live .screen-glow { animation: scene-glow 0.5s ease-out 1.5s forwards; }
.scene.is-live .prompt { animation: scene-fade-out 0.3s ease-out 1.6s forwards; }
.scene.is-live .ok-stroke { animation: scene-check 0.5s var(--ease) 1.75s forwards; }
.scene.is-live .approved { animation: scene-fade 0.4s ease-out 2s forwards; }
.scene.is-live .receipt { animation: scene-receipt 1.1s var(--ease) 2.25s forwards; }
.scene.is-live .tag-g { animation: scene-tag 0.4s var(--ease) forwards; }
.scene.is-live .tag-1 { animation-delay: 3.05s; }
.scene.is-live .tag-2 { animation-delay: 3.3s; }
.scene.is-live .tag-3 { animation-delay: 3.55s; }

@keyframes scene-rise { to { opacity: 1; transform: none; } }
@keyframes scene-card { 0% { opacity: 0; } 20% { opacity: 1; } 100% { opacity: 1; transform: none; } }
@keyframes scene-ring { 0% { opacity: 0; transform: scale(0.4); } 30% { opacity: 1; } 100% { opacity: 0; transform: scale(1.9); } }
@keyframes scene-glow { 0% { opacity: 0; } 40% { opacity: 0.35; } 100% { opacity: 0; } }
@keyframes scene-fade-out { to { opacity: 0; } }
@keyframes scene-check { to { stroke-dashoffset: 0; } }
@keyframes scene-fade { to { opacity: 1; } }
@keyframes scene-receipt { to { transform: none; } }
@keyframes scene-tag { to { opacity: 1; transform: none; } }

/* ---------- Two systems ---------- */
.systems { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 36px); }
.system {
  background: var(--sheet);
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: clamp(22px, 3vw, 34px);
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 18px;
}
.system-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.system-head h3 { font-size: 1.5rem; }
.system-icon { width: 64px; height: 64px; flex: none; }
.system-icon .body { fill: var(--ink); }
.system-icon .screen { fill: var(--sheet); }
.system-icon .sh { fill: var(--shade); }
.system-icon .line { fill: var(--rule); }
.system-icon .sun { fill: var(--sun); }
.system p { color: var(--ink-2); }
.fits { list-style: none; display: grid; gap: 8px; margin-top: 4px; }
.fits li { display: flex; gap: 10px; align-items: start; }
.fits li::before {
  content: "";
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 3px;
  border-radius: 50%;
  background: var(--sun);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='12' fill='%23000'/%3E%3Cpath d='M7 12.5l3 3 7-7' stroke='%23fff' stroke-width='2.4' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='12' fill='%23000'/%3E%3Cpath d='M7 12.5l3 3 7-7' stroke='%23fff' stroke-width='2.4' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.systems-note { margin-top: 28px; max-width: 60ch; color: var(--slate); }
@media (max-width: 767px) { .systems { grid-template-columns: 1fr; } }

/* ---------- The $100 split ---------- */
.split-bar { margin-top: 8px; }
.bar { display: flex; height: 64px; border-radius: 10px; overflow: hidden; background: var(--sky-2); border: 1px solid var(--rule); }
.bar-seg { position: relative; transform-origin: 0 50%; transform: scaleX(0); }
.bar-seg--inter { flex: 0 0 58%; background: var(--ink-2); }
.bar-seg--brand { flex: 0 0 11%; background: var(--slate); }
.bar-seg--markup { flex: 0 0 31%; background: var(--sun); }
.bar-seg--markup::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(135deg, transparent 0 10px, rgba(15, 31, 51, 0.12) 10px 12px);
  opacity: 0;
}
.is-visible .bar-seg { animation: bar-grow 0.9s var(--ease) forwards; }
.is-visible .bar-seg--brand { animation-delay: 0.5s; }
.is-visible .bar-seg--markup { animation-delay: 0.8s; }
.is-visible .bar-seg--markup::after { animation: scene-fade 0.5s ease-out 1.6s forwards; }
@keyframes bar-grow { to { transform: scaleX(1); } }
.bar-key { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 24px; }
.bar-key li { padding-top: 14px; border-top: 3px solid var(--rule); }
.bar-key li:nth-child(1) { border-top-color: var(--ink-2); }
.bar-key li:nth-child(2) { border-top-color: var(--slate); }
.bar-key li:nth-child(3) { border-top-color: var(--sun); }
.bar-key h3 { font-size: 1.05rem; }
.bar-key p { margin-top: 6px; color: var(--slate); font-size: 0.98rem; }
.bar-key .kind { display: inline-block; margin-top: 10px; font: 500 0.72rem/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; padding: 6px 8px; border-radius: 6px; background: var(--sky-2); color: var(--ink-2); }
.bar-key .kind--sun { background: var(--sun); color: var(--ink); }
.split-note { margin-top: 20px; font-size: 0.9rem; color: var(--slate); max-width: 70ch; }
@media (max-width: 767px) {
  .bar { height: 48px; }
  .bar-key { grid-template-columns: 1fr; gap: 12px; }
}

/* ---------- Steps ---------- */
.steps { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 3vw, 32px); position: relative; }
.steps::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 22px;
  height: 2px;
  background: var(--rule);
}
.step { counter-increment: step; position: relative; padding-top: 60px; }
.step::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  background: var(--sheet);
  border: 2px solid var(--ink);
  border-radius: 50%;
  font: 700 1.05rem/1 var(--display);
  box-shadow: 5px 4px 0 var(--shade);
}
.step h3 { margin-bottom: 8px; }
.step p { color: var(--ink-2); }
.step--optional h3::after { content: " (optional)"; font: 500 0.75rem var(--mono); color: var(--slate); letter-spacing: 0.04em; }
[lang="es"] .step--optional h3::after { content: " (opcional)"; }
.steps--long { grid-template-columns: 1fr; gap: 0; }
.steps--long::before { left: 22px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; }
.steps--long .step { padding: 0 0 48px 76px; }
.steps--long .step:last-child { padding-bottom: 0; }
.steps--long .step h2 { font-size: 1.5rem; margin-bottom: 10px; }
.steps--long .step p { max-width: 60ch; }
@media (max-width: 899px) {
  .steps { grid-template-columns: 1fr; gap: 0; }
  .steps::before { left: 22px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; }
  .step { padding: 0 0 36px 68px; }
  .step:last-child { padding-bottom: 0; }
}

/* ---------- Promises (dusk) ---------- */
.promises { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.promises li {
  background: var(--ink-2);
  border: 1px solid #2d3f57;
  border-radius: 12px;
  padding: 24px;
  box-shadow: var(--sx) var(--sy) 0 var(--dusk);
}
.promises h3 { color: #fff; margin-bottom: 8px; display: flex; gap: 10px; align-items: start; }
.promises h3 svg { flex: none; width: 22px; height: 22px; margin-top: 2px; color: var(--sun); }
.promises p { color: #c7d3df; font-size: 0.98rem; }
@media (max-width: 899px) { .promises { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 599px) { .promises { grid-template-columns: 1fr; } }

/* ---------- Who we work with ---------- */
.who { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.who li {
  background: var(--sheet);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 22px;
}
.who svg { width: 36px; height: 36px; color: var(--ink); margin-bottom: 14px; }
.who h3 { font-size: 1.1rem; margin-bottom: 6px; }
.who p { color: var(--slate); font-size: 0.96rem; }
@media (max-width: 899px) { .who { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 479px) { .who { grid-template-columns: 1fr; } }

/* ---------- About teaser ---------- */
.owner-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  align-items: start;
  background: var(--sheet);
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: clamp(22px, 3vw, 34px);
}
.owner-mark { width: 72px; height: 72px; border-radius: 50%; background: var(--sky-2); display: grid; place-items: center; }
.owner-mark svg { width: 44px; height: 44px; color: var(--ink); }
.owner-card h2 { font-size: 1.6rem; }
.owner-card .muted { margin-top: 4px; }
.owner-card .prose { margin-top: 16px; }
.lang-note { display: inline-flex; align-items: center; gap: 10px; margin-top: 18px; padding: 10px 14px; border-radius: 8px; background: var(--sky); border: 1px solid var(--rule); font-size: 0.95rem; text-decoration: none; }
.lang-note:hover { border-color: var(--ink); }
.lang-note span { font: 500 0.75rem var(--mono); letter-spacing: 0.08em; padding: 3px 6px; background: var(--sun); border-radius: 4px; }
@media (max-width: 599px) { .owner-card { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 0; border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  font-weight: 600;
  font-size: 1.05rem;
  min-height: 44px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 12px;
  height: 12px;
  border-right: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  transform: rotate(45deg);
  margin-right: 6px;
  transition: transform var(--dur) var(--ease);
}
.faq details[open] summary::after { transform: rotate(225deg); margin-top: 6px; }
.faq details p { padding: 0 0 20px; max-width: 65ch; color: var(--ink-2); }
.faq details[open] p { animation: faq-in 0.3s var(--ease); }
@keyframes faq-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* ---------- Team teaser + CTA band ---------- */
.team-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(20px, 4vw, 56px);
  align-items: center;
  background: var(--ink);
  color: #eef3f8;
  border-radius: 16px;
  padding: clamp(26px, 4vw, 48px);
  box-shadow: var(--sx) var(--sy) 0 var(--shade);
}
.team-card h2 { color: #fff; }
.team-card p { color: #c7d3df; }
.team-card .btn { margin-top: 20px; }
@media (max-width: 767px) { .team-card { grid-template-columns: 1fr; } }

.cta-band { background: var(--sun); padding-block: clamp(56px, 8vw, 96px); }
.cta-inner { display: grid; gap: 14px; justify-items: start; max-width: 40em; }
.cta-inner p { font-size: 1.15rem; color: var(--ink-2); }
.cta-inner .btn { margin-top: 10px; background: var(--ink); color: #fff; box-shadow: 6px 6px 0 var(--sun-deep); }
@media (hover: hover) { .cta-inner .btn:hover { background: var(--ink-2); box-shadow: 8px 8px 0 var(--sun-deep); } }
.cta-inner .btn:active { box-shadow: 3px 3px 0 var(--sun-deep); }

/* ---------- Generic lists ---------- */
.check-list { list-style: none; display: grid; gap: 14px; }
.check-list li { display: flex; gap: 12px; align-items: start; }
.check-list li::before { content: ""; flex: none; width: 10px; height: 10px; margin-top: 10px; background: var(--sun); border-radius: 2px; }
.plain-list { list-style: none; display: grid; gap: 10px; }
.plain-list li { padding-left: 18px; position: relative; }
.plain-list li::before { content: ""; position: absolute; left: 0; top: 11px; width: 8px; height: 2px; background: var(--ink); }
.fine-print { margin-top: 18px; font-size: 0.92rem; color: var(--slate); }
.card-grid { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.card-grid li { background: var(--sheet); border: 1px solid var(--rule); border-radius: 12px; padding: 22px; }
.card-grid h3 { margin-bottom: 6px; }
.card-grid p { color: var(--slate); font-size: 0.98rem; }
@media (max-width: 599px) { .card-grid { grid-template-columns: 1fr; } }
.give-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.give-grid h3 { margin-bottom: 12px; }
@media (max-width: 599px) { .give-grid { grid-template-columns: 1fr; } }

/* Compare table (systems page) */
.compare { width: 100%; border-collapse: collapse; background: var(--sheet); border: 1px solid var(--rule); border-radius: 12px; overflow: hidden; }
.compare th, .compare td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--rule); vertical-align: top; font-size: 0.98rem; }
.compare th { font: 600 0.9rem var(--body); background: var(--sky); }
.compare thead th { font-family: var(--display); font-size: 1.05rem; }
.compare tr:last-child td, .compare tr:last-child th { border-bottom: 0; }
.compare tbody th { width: 28%; color: var(--ink-2); }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
@media (max-width: 599px) { .compare th, .compare td { padding: 10px 12px; font-size: 0.92rem; } }

/* Facts aside (join) */
.facts { background: var(--sheet); border: 1px solid var(--rule); border-radius: 14px; padding: 24px; box-shadow: var(--sx) var(--sy) 0 var(--shade); }
.facts dl { display: grid; gap: 12px; margin: 0; }
.facts dl div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--rule); }
.facts dl div:last-child { border-bottom: 0; padding-bottom: 0; }
.facts dt { font: 500 0.74rem/1.6 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--slate); }
.facts dd { margin: 0; font-weight: 500; }
.join-head { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: clamp(24px, 5vw, 64px); align-items: center; }
@media (max-width: 899px) { .join-head { grid-template-columns: 1fr; } }

/* ---------- Forms ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
@media (max-width: 899px) { .contact-grid { grid-template-columns: 1fr; } }
.form { background: var(--sheet); border: 1px solid var(--rule); border-radius: 14px; padding: clamp(20px, 3vw, 34px); box-shadow: var(--sx) var(--sy) 0 var(--shade); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
.field { display: grid; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label, .choice-group legend { font-weight: 600; font-size: 0.98rem; }
.optional { font: 500 0.72rem var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--slate); margin-left: 6px; }
.input {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1.5px solid var(--rule);
  border-radius: 8px;
  background: var(--sheet);
  color: var(--ink);
  font: 400 1rem/1.4 var(--body);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.input:hover { border-color: #aebccb; }
.input:focus { outline: none; border-color: var(--ink); box-shadow: 4px 4px 0 var(--shade); }
.input[aria-invalid="true"] { border-color: var(--warn); }
textarea.input { resize: vertical; min-height: 120px; }
.select {
  appearance: none;
  padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f1f33' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
}
.field-error { font-size: 0.9rem; color: var(--warn); font-weight: 500; }
.field-error::before { content: "! "; font-family: var(--mono); }
.choice-group { border: 0; padding: 0; margin: 0; }
.choice-group legend { padding: 0; margin-bottom: 10px; }
.choice-row { display: flex; flex-wrap: wrap; gap: 10px; }
.choice { display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 16px 0 12px; border: 1.5px solid var(--rule); border-radius: 8px; cursor: pointer; font-weight: 500; }
.choice:has(input:checked) { border-color: var(--ink); background: var(--sky); box-shadow: 3px 3px 0 var(--shade); }
.choice input { width: 18px; height: 18px; margin: 0; accent-color: var(--ink); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 26px; }
.form-note { font-size: 0.9rem; color: var(--slate); }
.form-status { margin-top: 18px; }
.form-status:empty { display: none; }
.form-status p { padding: 14px 16px; border-radius: 8px; border: 1px solid var(--rule); background: var(--sky); }
.form-status.is-success p { border-color: var(--ok); background: #e8f6ee; }
.form-status.is-error p { border-color: var(--warn); background: #fbeeec; }
.form.is-sent .form-grid, .form.is-sent .form-actions { display: none; }
.contact-aside h2 { font-size: 1.35rem; margin-bottom: 14px; }
.mini-steps { padding-left: 1.2em; display: grid; gap: 10px; margin-bottom: 20px; }
.mini-steps li::marker { font-family: var(--display); font-weight: 700; }
.contact-aside .muted + .muted { margin-top: 8px; }
@media (max-width: 599px) { .form-grid { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #c7d3df; margin-top: 0; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1.3fr; gap: 32px; padding-block: clamp(44px, 6vw, 72px) 36px; }
.footer-brand p { margin-top: 14px; max-width: 32ch; font-size: 0.98rem; }
.brand--footer { color: #fff; }
.brand--footer .mark { color: #fff; }
.footer-head { font: 500 0.74rem/1.6 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: #8fa3b8; margin-bottom: 12px; }
.footer-links { list-style: none; display: grid; gap: 8px; }
.footer-links a { text-decoration: none; color: #e6edf4; display: inline-flex; min-height: 32px; align-items: center; }
.footer-links a:hover { text-decoration: underline; }
.footer-contact a { color: #fff; }
.footer-fine { border-top: 1px solid #2d3f57; padding-block: 20px 28px; font-size: 0.86rem; color: #8fa3b8; }
.footer-fine p + p { margin-top: 6px; }
@media (max-width: 899px) { .footer-inner { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 479px) { .footer-inner { grid-template-columns: 1fr; } }

/* ---------- Motion: page-load and scroll reveals ---------- */
.enter { opacity: 0; transform: translateY(14px); animation: enter 0.6s var(--ease) forwards; }
.d1 { animation-delay: 0.05s; }
.d2 { animation-delay: 0.15s; }
.d3 { animation-delay: 0.25s; }
.d4 { animation-delay: 0.35s; }
.d5 { animation-delay: 0.45s; }
@keyframes enter { to { opacity: 1; transform: none; } }

.js-ready .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.js-ready .reveal.is-visible { opacity: 1; transform: none; }
.js-ready .reveal-group > * { opacity: 0; transform: translateY(18px); transition: opacity 0.55s var(--ease), transform 0.55s var(--ease); }
.js-ready .reveal-group.is-visible > * { opacity: 1; transform: none; }
.js-ready .reveal-group.is-visible > :nth-child(2) { transition-delay: 0.08s; }
.js-ready .reveal-group.is-visible > :nth-child(3) { transition-delay: 0.16s; }
.js-ready .reveal-group.is-visible > :nth-child(4) { transition-delay: 0.24s; }
.js-ready .reveal-group.is-visible > :nth-child(5) { transition-delay: 0.32s; }
.js-ready .reveal-group.is-visible > :nth-child(6) { transition-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001s !important; animation-delay: 0s !important; transition-duration: 0.001s !important; }
  .enter, .js-ready .reveal, .js-ready .reveal-group > * { opacity: 1; transform: none; }
  .scene .dev, .scene .card, .scene .tag-g, .scene .receipt { opacity: 1; transform: none; }
  .scene .ring { opacity: 0; }
  .scene .ok-stroke { stroke-dashoffset: 0; }
  .scene .approved { opacity: 1; }
  .scene .prompt { opacity: 0; }
  .bar-seg { transform: none; }
  .bar-seg--markup::after { opacity: 1; }
}

/* ---------- 404 ---------- */
.lost { min-height: 60vh; display: grid; place-items: center; text-align: center; padding-block: 64px; }
.lost h1 { font-size: clamp(2.5rem, 8vw, 5rem); }
.lost p { margin-top: 12px; }
.lost .btn { margin-top: 24px; }
