/* Homepage. Modern SaaS: white page, one sans, two-tone headings, thin rules,
   one green button, a real product card instead of art. Less is more. */
:root {
  --bg: #fff;
  --bg-2: oklch(98.2% 0.004 250);
  --ink: oklch(22% 0.03 255);
  --ink-2: oklch(42% 0.025 255);
  --muted: oklch(55% 0.02 255);
  --rule: oklch(92.5% 0.006 255);
  --rule-2: oklch(88% 0.008 255);
  --brand: oklch(46% 0.11 158);
  --brand-hover: oklch(40% 0.1 158);
  --brand-soft: oklch(95.5% 0.03 158);
  --font: "Inter Tight", ui-sans-serif, system-ui, sans-serif;
  --shell: 1120px;
  --pad: 24px;
  --ease: cubic-bezier(0.25, 1, 0.5, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html.is-locked { overflow: hidden; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.55 var(--font); letter-spacing: -0.006em; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
h1, h2, h3, p, ol, dl, dd, figure { margin: 0; }
a { color: inherit; }
::selection { background: var(--brand-soft); color: var(--ink); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 4px; }

.shell { position: relative; width: 100%; max-width: var(--shell); margin-inline: auto; padding-inline: var(--pad); }

/* two thin guide lines down the page, at the edges of the content */
.rails { position: fixed; inset: 0; z-index: -1; pointer-events: none; }
.rails::before, .rails::after { content: ""; position: absolute; top: 0; bottom: 0; width: 1px; background: var(--rule); }
.rails::before { left: max(0px, calc(50% - var(--shell) / 2)); }
.rails::after { right: max(0px, calc(50% - var(--shell) / 2)); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border: 0; border-radius: 8px; background: var(--brand); color: #fff; font: 500 15px/1 var(--font); letter-spacing: -0.01em; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color 300ms var(--ease), box-shadow 300ms var(--ease); box-shadow: 0 1px 2px oklch(30% 0.08 158 / 0.25), inset 0 1px 0 oklch(100% 0 0 / 0.14); }
.btn:hover { background: var(--brand-hover); }
.btn:disabled { cursor: progress; opacity: 0.7; }
.btn--sm { height: 34px; padding: 0 12px; font-size: 14px; }
.btn--full { width: 100%; height: 44px; }
.btn--ghost { background: var(--bg); color: var(--ink); box-shadow: inset 0 0 0 1px var(--rule-2); }
.btn--ghost:hover { background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--muted); }
.btn__arrow { width: 10px; height: 10px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.btn__arrow path:last-child { transition: transform 300ms var(--ease); }
.btn__shaft { opacity: 0; transition: opacity 300ms var(--ease); }
.btn:hover .btn__shaft { opacity: 1; }
.btn:hover .btn__arrow path:last-child { transform: translateX(3px); }

/* ---------- top bar ---------- */
.top { position: sticky; top: 0; z-index: 20; background: oklch(100% 0 0 / 0.86); backdrop-filter: saturate(1.6) blur(12px); border-bottom: 1px solid var(--rule); }
.top__in { height: 60px; display: flex; align-items: center; gap: 32px; }
.mark { font-weight: 600; font-size: 17px; letter-spacing: -0.025em; text-decoration: none; }
.top__nav { display: flex; gap: 24px; margin-right: auto; font-size: 14px; }
.top__nav a { color: var(--ink-2); text-decoration: none; transition: color 200ms var(--ease); }
.top__nav a:hover { color: var(--ink); }

/* ---------- hero ---------- */
.hero__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; padding-block: 112px 104px; }
h1, h2 { font-weight: 500; letter-spacing: -0.03em; color: var(--muted); text-wrap: balance; }
h1 span, h2 span { color: var(--ink); }
h1 { font-size: clamp(2.1rem, 4.2vw, 3.25rem); line-height: 1.1; max-width: 20ch; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.2; max-width: 32ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero__note { margin-top: 16px; font-size: 14px; color: var(--muted); }

/* the transfer: grandparent's account, the stamp, your account */
.xfer { position: relative; padding: 8px; border-radius: 16px; background: var(--bg-2); box-shadow: 0 0 0 1px var(--rule), 0 2px 4px oklch(30% 0.03 255 / 0.04), 0 24px 56px -20px oklch(30% 0.04 255 / 0.22); }
.acct { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 24px 22px; border-radius: 10px; background: var(--bg); box-shadow: 0 0 0 1px var(--rule), 0 1px 2px oklch(30% 0.03 255 / 0.05); }
.logo { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 10px; font-weight: 600; font-size: 17px; color: #fff; }
.logo--from { background: oklch(32% 0.04 255); }
.logo--to { background: oklch(46% 0.11 158); }
.acct__name { font-weight: 600; font-size: 15px; letter-spacing: -0.015em; }
.acct__sub { font-size: 13px; color: var(--muted); }
.acct__amt { text-align: right; }
.acct__qty { font-weight: 600; font-size: 18px; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.acct--to .acct__qty { color: var(--brand); }
.lane { position: relative; height: 136px; }
.lane__line { position: absolute; left: 44px; top: 0; bottom: 0; width: 0; border-left: 1.5px dashed var(--rule-2); }
.chip { position: absolute; left: 30px; top: -6px; width: 30px; height: 20px; display: grid; place-items: center; border-radius: 6px; background: var(--bg); box-shadow: 0 0 0 1px var(--rule-2), 0 2px 6px oklch(30% 0.03 255 / 0.1); font-size: 10px; font-weight: 600; color: var(--ink-2); opacity: 0; animation: travel 3.6s var(--ease) infinite; }
.chip:nth-of-type(2) { animation-delay: 0.45s; }
.chip:nth-of-type(3) { animation-delay: 0.9s; }
@keyframes travel { 0% { opacity: 0; transform: translateY(0); } 10% { opacity: 1; } 55% { opacity: 1; transform: translateY(128px); } 65%, 100% { opacity: 0; transform: translateY(128px); } }
.stamp { position: absolute; left: 72px; top: 50%; translate: 0 -50%; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px 5px 8px; border-radius: 999px; background: var(--bg); box-shadow: 0 0 0 1px var(--rule), 0 4px 12px -4px oklch(30% 0.03 255 / 0.18); font-size: 13px; font-weight: 500; }
.stamp svg, .ok svg { width: 16px; height: 16px; padding: 2px; border-radius: 50%; background: var(--brand); fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.xfer__foot { display: flex; align-items: center; gap: 8px; padding: 14px 12px 8px; font-size: 13px; font-weight: 500; color: var(--ink-2); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.xfer__ex { margin-left: auto; font-weight: 400; color: var(--muted); }

/* ---------- transfer agents row ---------- */
.agents { border-block: 1px solid var(--rule); }
.agents__in { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 32px; padding-block: 20px; font-size: 14px; }
.agents span { color: var(--muted); }
.agents a { color: var(--ink-2); font-weight: 500; text-decoration: none; transition: color 200ms var(--ease); }
.agents a:hover { color: var(--ink); }

/* ---------- blocks ---------- */
.block { padding-block: 104px; border-bottom: 1px solid var(--rule); }
.vig { list-style: none; padding: 0; margin-top: 48px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.vig h3 { margin-top: 16px; font-size: 15px; font-weight: 600; letter-spacing: -0.015em; }
.vig__art { height: 188px; display: grid; place-items: center; padding: 24px; border-radius: 12px; background: var(--bg-2); box-shadow: 0 0 0 1px var(--rule); }
.mini { width: 100%; max-width: 240px; padding: 16px; border-radius: 10px; background: var(--bg); box-shadow: 0 0 0 1px var(--rule), 0 8px 24px -12px oklch(30% 0.04 255 / 0.2); }
.mini__label { font-size: 11px; font-weight: 500; color: var(--muted); }
.mini__field { margin: 4px 0 10px; padding: 6px 10px; border-radius: 6px; box-shadow: inset 0 0 0 1px var(--rule-2); font-size: 13px; }
.mini__field:last-child { margin-bottom: 0; }
.mini--id { display: grid; gap: 14px; justify-items: center; }
.idcard { width: 120px; height: 74px; display: grid; grid-template-columns: 34px 1fr; grid-template-rows: repeat(2, 8px); align-content: center; gap: 8px 10px; padding: 0 12px; border-radius: 8px; background: linear-gradient(135deg, var(--bg-2), oklch(95% 0.01 255)); box-shadow: inset 0 0 0 1px var(--rule-2); }
.idcard span:first-child { grid-row: 1 / 3; height: 42px; align-self: center; border-radius: 6px; background: oklch(88% 0.012 255); }
.idcard span:not(:first-child) { border-radius: 4px; background: oklch(88% 0.012 255); }
.idcard span:last-child { width: 70%; }
.ok { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; }
.mini--track { display: grid; gap: 0; }
.trk { position: relative; padding: 6px 0 6px 22px; font-size: 13px; color: var(--muted); }
.trk::before { content: ""; position: absolute; left: 0; top: 50%; width: 12px; height: 12px; translate: 0 -50%; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--rule-2); }
.trk.is-done { color: var(--ink); }
.trk.is-done::before { box-shadow: none; background: var(--brand); }
.trk.is-now { color: var(--brand); font-weight: 500; }
.trk.is-now::before { box-shadow: inset 0 0 0 1.5px var(--brand), 0 0 0 3px var(--brand-soft); }

.split { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 64px; align-items: start; }
.split h2 { font-size: clamp(1.4rem, 2.2vw, 1.75rem); }

.price div { display: flex; justify-content: space-between; gap: 24px; padding-block: 14px; border-bottom: 1px solid var(--rule); font-size: 15px; }
.price div:first-child { border-top: 1px solid var(--rule); }
.price dt { color: var(--ink-2); }
.price dd { font-weight: 500; font-variant-numeric: tabular-nums; }

.faq details { border-bottom: 1px solid var(--rule); }
.faq details:first-child { border-top: 1px solid var(--rule); }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block: 14px; font-size: 15px; font-weight: 500; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 8px; height: 8px; margin-right: 4px; border: solid var(--muted); border-width: 0 1.5px 1.5px 0; rotate: 45deg; translate: 0 -2px; transition: rotate 300ms var(--ease), translate 300ms var(--ease); }
.faq details[open] summary::after { rotate: 225deg; translate: 0 2px; }
.faq p { padding-bottom: 16px; font-size: 15px; color: var(--ink-2); max-width: 60ch; text-wrap: pretty; }

/* ---------- footer ---------- */
.foot__in { display: grid; grid-template-columns: auto 1fr; gap: 16px 48px; padding-block: 40px 56px; font-size: 13px; color: var(--muted); }
.foot nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px 24px; }
.foot nav a { text-decoration: none; transition: color 200ms var(--ease); }
.foot nav a:hover { color: var(--ink); }
.foot p { grid-column: 1 / -1; max-width: 90ch; line-height: 1.6; }

/* ---------- request sheet ---------- */
.sheet { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 24px; }
.sheet[hidden] { display: none; }
.sheet__scrim { position: absolute; inset: 0; background: oklch(22% 0.03 255 / 0.36); backdrop-filter: blur(2px); animation: fade 200ms var(--ease); }
.sheet__panel { position: relative; width: 100%; max-width: 440px; max-height: calc(100svh - 48px); overflow-y: auto; border-radius: 12px; background: var(--bg); box-shadow: 0 0 0 1px oklch(22% 0.03 255 / 0.06), 0 24px 64px -16px oklch(22% 0.03 255 / 0.35); animation: rise 300ms var(--ease); }
.sheet__form > div { display: grid; gap: 16px; padding: 24px; }
.sheet__form > div[hidden] { display: none; }
.sheet__head { display: flex; align-items: center; justify-content: space-between; }
.sheet h2 { font-size: 18px; font-weight: 600; letter-spacing: -0.02em; color: var(--ink); outline: none; }
.sheet__x { display: grid; place-items: center; width: 32px; height: 32px; margin-right: -6px; border-radius: 6px; color: var(--muted); transition: background-color 200ms var(--ease), color 200ms var(--ease); }
.sheet__x:hover { background: var(--bg-2); color: var(--ink); }
.sheet__x svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.sheet__sub { margin-top: -8px; font-size: 14px; color: var(--ink-2); }
.sheet__route { justify-self: start; padding: 2px 8px; border-radius: 6px; background: var(--brand-soft); color: var(--brand-hover); font-size: 13px; font-weight: 500; }
.field { display: grid; gap: 6px; font-size: 13px; font-weight: 500; color: var(--ink-2); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field input, .field select { width: 100%; height: 40px; padding: 0 12px; border: 0; border-radius: 8px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--rule-2), 0 1px 1px oklch(30% 0.03 255 / 0.04); font: 400 15px var(--font); color: var(--ink); transition: box-shadow 200ms var(--ease); appearance: none; }
.field select { padding-right: 32px; background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M2 3.5l3 3 3-3' fill='none' stroke='%23738099' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right 12px center / 10px no-repeat; }
.field select:invalid { color: var(--muted); }
.field input::placeholder { color: var(--muted); }
.field input:hover, .field select:hover { box-shadow: inset 0 0 0 1px var(--muted); }
.field input:focus, .field select:focus { outline: none; box-shadow: inset 0 0 0 1px var(--brand), 0 0 0 3px var(--brand-soft); }
.check { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; font-size: 13px; color: var(--ink-2); line-height: 1.45; }
.check input { width: 16px; height: 16px; margin: 1px 0 0; accent-color: var(--brand); }
.sheet__err { font-size: 14px; color: oklch(50% 0.18 27); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(8px) scale(0.99); } }

/* ---------- smaller screens ---------- */
@media (max-width: 900px) {
  .hero__in { grid-template-columns: minmax(0, 1fr); gap: 48px; padding-block: 64px 72px; }
  .split { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .vig { grid-template-columns: minmax(0, 1fr); gap: 32px; margin-top: 40px; }
  .block { padding-block: 72px; }
}
@media (max-width: 640px) {
  :root { --pad: 20px; }
  .top__nav { display: none; }
  .top__in { justify-content: space-between; }
  .hero__actions .btn { flex: 1 1 auto; }
  .agents__in { gap: 6px 20px; }
  .agents span { flex-basis: 100%; }
  .foot__in { grid-template-columns: minmax(0, 1fr); }
  .foot nav { justify-content: flex-start; }
  .sheet { padding: 0; place-items: end stretch; }
  .sheet__panel { max-width: none; max-height: 92svh; border-radius: 14px 14px 0 0; }
  .field-row { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- or do it from your AI: small logos under the hero ---------- */
.ai-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--rule); }
.ai-row__label { font-size: 14px; color: var(--muted); }
.ai-row__apps { display: flex; gap: 6px; }
.ai-row__app { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 8px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--rule-2); color: var(--muted); transition: color 200ms var(--ease), box-shadow 200ms var(--ease), transform 200ms var(--ease); }
.ai-row__app svg { width: 17px; height: 17px; fill: currentColor; }
.ai-row__app:hover { color: var(--ink); box-shadow: inset 0 0 0 1px var(--muted); transform: translateY(-1px); }
.ai-row__copy { height: 34px; padding: 0 12px; border: 0; border-radius: 8px; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--rule-2); font: 500 13px var(--font); color: var(--ink-2); cursor: pointer; transition: color 200ms var(--ease), box-shadow 200ms var(--ease); }
.ai-row__copy:hover { color: var(--ink); box-shadow: inset 0 0 0 1px var(--muted); }
