/* X-Pay public site. Bottle green, warm paper and one coral accent. */
:root {
    --ink: #07251d;
    --ink-2: #0c3429;
    --ink-3: #15493a;
    --green: #0e7a5a;
    --mint: #7fe0bd;
    --coral: #f2543d;
    --coral-dark: #d63f29;
    --paper: #f7f5ef;
    --paper-2: #efece2;
    --white: #fffefb;
    --text: #15231f;
    --muted: #55655f;
    --on-dark: #eef4f0;
    --on-dark-muted: #a9c0b6;
    --line: #dfdbcd;
    --line-dark: rgba(238, 244, 240, .14);
    --display: "Bricolage Grotesque", "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
    --body: "Instrument Sans", "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
    --mono: "JetBrains Mono", "Cascadia Mono", Consolas, monospace;
    --radius: 18px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--text); font: 400 1.0625rem/1.6 var(--body); -webkit-font-smoothing: antialiased; }
img, svg { display: block; }
h1, h2, h3, p, ul, ol, dl, dd, figure, pre { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
h1, h2 { font-family: var(--display); font-weight: 700; letter-spacing: -.025em; line-height: 1.04; }
h2 { font-size: clamp(2rem, 4.2vw, 3.25rem); text-wrap: balance; }
h3 { font-family: var(--display); font-size: 1.2rem; font-weight: 700; letter-spacing: -.01em; line-height: 1.25; }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }

.wrap { width: min(1200px, 100% - 40px); margin-inline: auto; }
.mono { font-family: var(--mono); font-feature-settings: "tnum"; }
.nowrap { white-space: nowrap; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 30; padding: 10px 16px; background: var(--white); border-radius: 8px; }
.skip:focus { top: 12px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px; border: 1.5px solid transparent; border-radius: 999px; font-weight: 600; text-decoration: none; transition: transform .18s ease, background-color .18s ease, border-color .18s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-small { min-height: 42px; padding: 0 18px; font-size: .95rem; }
.btn-coral { background: var(--coral); color: #fff; }
.btn-coral:hover { background: var(--coral-dark); }
.btn-ghost { border-color: rgba(238, 244, 240, .38); color: var(--on-dark); }
.btn-ghost:hover { border-color: var(--on-dark); }
.btn-ink { background: var(--ink); color: var(--on-dark); }
.btn-ink:hover { background: var(--ink-3); }
.btn-line { border-color: var(--ink); color: var(--ink); }
.btn-line:hover { background: rgba(7, 37, 29, .08); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Header */
.top { position: sticky; top: 0; z-index: 20; background: rgba(7, 37, 29, .94); color: var(--on-dark); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line-dark); }
.top-in { display: flex; align-items: center; gap: 28px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 700 1.3rem var(--display); letter-spacing: -.02em; text-decoration: none; }
.links { display: flex; gap: 26px; margin-inline: auto; font-size: .97rem; }
.links a { color: var(--on-dark-muted); text-decoration: none; transition: color .15s; }
.links a:hover { color: var(--on-dark); }
.top-cta { display: flex; align-items: center; gap: 18px; }
.link-quiet { font-size: .97rem; text-decoration: none; }
.link-quiet:hover { text-decoration: underline; }

/* Hero */
.hero { position: relative; overflow: hidden; background: var(--ink); color: var(--on-dark); padding: clamp(48px, 7vw, 92px) 0 clamp(56px, 8vw, 104px); }
.hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--line-dark) 1px, transparent 1px), linear-gradient(90deg, var(--line-dark) 1px, transparent 1px); background-size: 64px 64px; opacity: .42; mask-image: radial-gradient(ellipse 70% 80% at 72% 40%, #000, transparent 76%); }
.hero::after { content: ""; position: absolute; width: 620px; height: 620px; right: -140px; top: -180px; border-radius: 50%; background: radial-gradient(circle, rgba(14, 122, 90, .55), transparent 68%); }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(36px, 6vw, 76px); align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 9px; padding: 6px 14px 6px 11px; border: 1px solid var(--line-dark); border-radius: 999px; background: rgba(255, 255, 255, .05); color: var(--on-dark); font-size: .9rem; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: #ffc857; box-shadow: 0 0 0 0 rgba(255, 200, 87, .6); animation: pulse 2.4s infinite; }
.pill[data-state="live"] .dot { background: var(--mint); }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(255, 200, 87, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 200, 87, 0); } }
h1 { margin: 24px 0 22px; font-size: clamp(2.75rem, 7.2vw, 5.9rem); line-height: 1; letter-spacing: -.012em; }
.stop { color: var(--coral); }
.lead { max-width: 34em; color: #cfdfd8; font-size: clamp(1.08rem, 1.6vw, 1.26rem); line-height: 1.55; }
.hero .actions { margin-top: 32px; }
.note { margin-top: 18px; color: var(--on-dark-muted); font-size: .94rem; }

/* Hero demo */
.demo { padding: 22px; border: 1px solid var(--line-dark); border-radius: 22px; background: linear-gradient(165deg, #103d30, #0a2f25); box-shadow: 0 34px 80px -28px rgba(0, 0, 0, .7); }
.demo-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--line-dark); }
.demo-order { display: block; color: var(--on-dark-muted); font-size: .82rem; }
.demo-amount { display: block; margin-top: 2px; font: 700 1.7rem var(--display); letter-spacing: -.02em; }
.tag { padding: 3px 10px; border: 1px solid var(--line-dark); border-radius: 999px; color: var(--on-dark-muted); font-size: .76rem; white-space: nowrap; }
.tag-dark { border-color: var(--line); color: var(--muted); }
.demo-steps { padding: 14px 0 6px; }
.demo-step { position: relative; display: flex; gap: 12px; padding: 7px 0; transition: opacity .35s ease; }
.demo-step b { display: block; font-size: .97rem; font-weight: 600; line-height: 1.3; }
.demo-step small { color: var(--on-dark-muted); font-size: .84rem; }
.tick { flex: none; display: grid; place-items: center; width: 24px; height: 24px; margin-top: 1px; border-radius: 50%; background: var(--mint); color: var(--ink); transition: background-color .3s, color .3s, box-shadow .3s; }
.is-animated .demo-step { opacity: .42; }
.is-animated .demo-step .tick { background: rgba(238, 244, 240, .12); color: transparent; }
.is-animated .demo-step.is-done, .is-animated .demo-step.is-active { opacity: 1; }
.is-animated .demo-step.is-done .tick { background: var(--mint); color: var(--ink); }
.is-animated .demo-step.is-active .tick { background: var(--coral); box-shadow: 0 0 0 5px rgba(242, 84, 61, .25); }
.journal { width: 100%; margin-top: 10px; padding: 0; border-collapse: collapse; font-size: .8rem; }
.journal caption { padding: 10px 0 6px; border-top: 1px solid var(--line-dark); color: var(--on-dark-muted); font: 500 .8rem var(--body); text-align: left; }
.journal th, .journal td { padding: 4px 0; font-weight: 400; text-align: right; }
.journal th[scope="row"] { color: #cfdfd8; text-align: left; }
.journal thead th { color: var(--on-dark-muted); font-size: .72rem; }
.journal td { width: 76px; }
.journal tfoot th, .journal tfoot td { padding-top: 7px; border-top: 1px dashed var(--line-dark); color: var(--mint); font-weight: 500; }
.is-animated .journal tbody tr, .is-animated .journal tfoot tr { opacity: 0; transition: opacity .4s ease; }
.is-animated .journal tr.is-in { opacity: 1; }

/* Proof strip */
.proof { background: var(--white); border-bottom: 1px solid var(--line); }
.proof-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.proof-item { padding: 34px 26px; border-left: 1px solid var(--line); }
.proof-item:first-child { border-left: 0; padding-left: 0; }
.proof-item strong { display: block; margin-bottom: 6px; color: var(--ink); font: 700 1.55rem/1.1 var(--display); letter-spacing: -.02em; }
.proof-item p { color: var(--muted); font-size: .95rem; line-height: 1.5; }

/* Sections */
.block { padding: clamp(72px, 9vw, 124px) 0; }
.block-tint { background: var(--paper-2); }
.block-dark { background: var(--ink); color: var(--on-dark); }
.head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 58px); }
.eyebrow { margin-bottom: 14px; color: var(--coral-dark); font: 500 .82rem var(--mono); letter-spacing: .09em; text-transform: uppercase; }
.head-dark .eyebrow { color: #ff8a78; }
.sub { margin-top: 18px; color: var(--muted); font-size: 1.15rem; line-height: 1.55; }
.head-dark .sub { color: #cfdfd8; }

/* Feature grid */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.tile { padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); transition: transform .2s ease, border-color .2s ease; }
.tile:hover { transform: translateY(-3px); border-color: #bdb8a6; }
.tile h3 { margin-bottom: 8px; }
.tile p { color: var(--muted); font-size: .97rem; line-height: 1.52; }
.tile-wide { grid-column: span 2; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 200px); gap: 22px; align-items: center; padding: 30px; }
.tile-wide h3 { font-size: 1.55rem; letter-spacing: -.02em; }
.tile-green { border-color: var(--ink); background: var(--ink); color: var(--on-dark); }
.tile-green:hover { border-color: var(--ink); }
.tile-green p { color: #cfdfd8; }
.icon { display: inline-grid; place-items: center; width: 44px; height: 44px; margin-bottom: 16px; border-radius: 12px; background: #dff2ea; color: var(--green); }
.phone { display: flex; flex-direction: column; gap: 3px; padding: 16px 14px; border: 5px solid #1b5645; border-radius: 22px; background: var(--white); color: var(--text); font-size: .78rem; }
.phone small { color: var(--muted); font-size: .7rem; }
.phone b { font: 700 .95rem var(--display); }
.phone-label { margin-top: 9px; }
.phone-opt { padding: 7px 9px; border: 1px solid var(--line); border-radius: 8px; font-size: .74rem; }
.phone-opt.is-on { border-color: var(--green); background: #e7f5ef; }
.phone-pay { margin-top: 7px; padding: 8px; border-radius: 8px; background: var(--coral); color: #fff; font-size: .74rem; font-weight: 600; text-align: center; }
.match li { display: grid; gap: 1px; padding: 9px 11px; border-radius: 10px; background: var(--paper); font-size: .78rem; }
.match li + li { margin-top: 7px; }
.match span { color: var(--muted); font-size: .7rem; }
.match b { font-weight: 500; }
.match i { color: var(--green); font-size: .68rem; font-style: normal; }

/* Flow */
.flow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 22px; counter-reset: flow; }
.flow li { position: relative; padding-top: 58px; }
.flow-n { position: absolute; top: 0; left: 0; z-index: 1; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: var(--on-dark); font-size: .92rem; }
.flow li:not(:last-child)::after { content: ""; position: absolute; top: 19px; left: 40px; right: -22px; height: 2px; background: repeating-linear-gradient(90deg, #a9a595 0 6px, transparent 6px 12px); }
.flow li:last-child .flow-n { background: var(--coral); }
.flow h3 { margin-bottom: 7px; }
.flow p { color: var(--muted); font-size: .97rem; line-height: 1.5; }
.callout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 22px; align-items: baseline; margin-top: 48px; padding: 26px 30px; border-left: 4px solid var(--coral); border-radius: 0 var(--radius) var(--radius) 0; background: var(--white); }
.callout h3 { font-size: 1.3rem; }
.callout p { color: var(--muted); }

/* Audiences */
.tabs { display: inline-flex; flex-wrap: wrap; gap: 4px; margin-bottom: 26px; padding: 5px; border-radius: 999px; background: var(--paper-2); }
.tabs button { min-height: 44px; padding: 0 20px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font: 600 .97rem var(--body); cursor: pointer; transition: background-color .15s, color .15s; }
.tabs button:hover { color: var(--ink); }
.tabs button[aria-selected="true"] { background: var(--ink); color: var(--on-dark); }
.panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(26px, 5vw, 60px); align-items: center; padding: clamp(26px, 4vw, 44px); border: 1px solid var(--line); border-radius: 24px; background: var(--white); }
.panel + .panel { margin-top: 16px; }
.panel.is-tabbed + .panel.is-tabbed { margin-top: 0; }
.panel-tab { margin-bottom: 6px; color: var(--coral-dark); font-size: .9rem; font-weight: 600; }
.is-tabbed .panel-tab { display: none; }
.panel h3 { margin-bottom: 18px; font-size: clamp(1.5rem, 2.6vw, 2.05rem); letter-spacing: -.02em; }
.checks li { position: relative; padding: 8px 0 8px 30px; }
.checks li::before { content: ""; position: absolute; left: 2px; top: 16px; width: 13px; height: 7px; border-left: 2.4px solid var(--green); border-bottom: 2.4px solid var(--green); transform: rotate(-45deg); }
.code { overflow-x: auto; padding: 22px; border-radius: 16px; background: var(--ink); color: #d7e8e0; font-size: .82rem; line-height: 1.65; }
.code .c { color: var(--mint); }
.side-card { padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); }
.side-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.bal div { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.bal dt { font-family: var(--body); color: var(--muted); }
.bar { display: flex; gap: 3px; height: 10px; margin-top: 18px; }
.bar span { border-radius: 4px; }
.bar-a { flex: 14625; background: #e8b94a; }
.bar-b { flex: 48300; background: var(--green); }
.bar-c { flex: 2500; background: var(--coral); }
.queue li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: .93rem; }
.queue li:last-child { border-bottom: 0; }
.queue i { padding: 4px 11px; border-radius: 999px; background: var(--ink); color: var(--on-dark); font-size: .76rem; font-style: normal; }

/* Security */
.sec-grid { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: 22px; align-items: stretch; }
.controls { display: grid; grid-template-columns: repeat(2, 1fr); border: 1px solid var(--line-dark); border-radius: var(--radius); overflow: hidden; }
.control { padding: 26px; border-right: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); }
.control:nth-child(2n) { border-right: 0; }
.control:nth-last-child(-n+2) { border-bottom: 0; }
.control h3 { margin-bottom: 7px; }
.control p { color: var(--on-dark-muted); font-size: .96rem; line-height: 1.5; }
.never { padding: 30px; border-radius: var(--radius); background: var(--coral); color: #fff; }
.never h3 { margin-bottom: 18px; font-size: 1.5rem; letter-spacing: -.02em; }
.never li { position: relative; padding: 12px 0 12px 28px; border-top: 1px solid rgba(255, 255, 255, .32); }
.never li::before, .never li::after { content: ""; position: absolute; left: 3px; top: 24px; width: 14px; height: 2.4px; background: #fff; transform: rotate(45deg); }
.never li::after { transform: rotate(-45deg); }

/* Status */
.road { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.road li { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.road li.is-now { border-color: var(--green); box-shadow: inset 0 0 0 1px var(--green); }
.road-state { display: inline-block; margin-bottom: 14px; padding: 3px 11px; border-radius: 999px; background: var(--paper-2); color: var(--muted); font-size: .78rem; font-weight: 600; }
.is-now .road-state { background: var(--green); color: #fff; }
.road h3 { margin-bottom: 7px; }
.road p { color: var(--muted); font-size: .96rem; line-height: 1.5; }
.channels { margin-top: 24px; color: var(--muted); font-size: .96rem; }

/* CTA and footer */
.cta { background: var(--mint); color: var(--ink); padding: clamp(52px, 7vw, 84px) 0; }
.cta-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 30px; }
.cta h2 { max-width: 15em; margin-bottom: 12px; }
.cta p { max-width: 36em; font-size: 1.1rem; }
.foot { padding: 54px 0 40px; background: var(--ink); color: var(--on-dark-muted); }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 30px; padding-bottom: 32px; border-bottom: 1px solid var(--line-dark); }
.foot .brand { color: var(--on-dark); margin-bottom: 10px; }
.foot h2 { margin-bottom: 10px; color: var(--on-dark); font: 600 .95rem var(--body); letter-spacing: 0; }
.foot nav a { display: block; padding: 3px 0; font-size: .95rem; text-decoration: none; }
.foot nav a:hover { color: var(--on-dark); text-decoration: underline; }
.notice { max-width: 58em; margin-top: 24px; font-size: .86rem; line-height: 1.55; }

/* Reveal on scroll */
.will-reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.will-reveal.is-seen { opacity: 1; transform: none; }
.tile.will-reveal.is-seen:hover { transform: translateY(-3px); }

/* Tablet */
@media (max-width: 1040px) {
    .links { display: none; }
    .top-cta { margin-left: auto; }
    .hero-grid { grid-template-columns: 1fr; }
    .demo { max-width: 560px; }
    .bento { grid-template-columns: repeat(2, 1fr); }
    .proof-grid { grid-template-columns: repeat(2, 1fr); }
    .proof-item:nth-child(odd) { border-left: 0; padding-left: 0; }
    .proof-item:nth-child(n+3) { border-top: 1px solid var(--line); }
    .flow { grid-template-columns: 1fr; gap: 0; }
    .flow li { padding: 0 0 28px 58px; }
    .flow li:not(:last-child)::after { top: 40px; bottom: 0; left: 19px; right: auto; width: 2px; height: auto; background: repeating-linear-gradient(180deg, #a9a595 0 6px, transparent 6px 12px); }
    .panel, .sec-grid { grid-template-columns: 1fr; }
    .road { grid-template-columns: repeat(2, 1fr); }
}

/* Phone */
@media (max-width: 640px) {
    body { font-size: 1rem; }
    .wrap { width: calc(100% - 32px); }
    .nowrap { white-space: normal; }
    .link-quiet { display: none; }
    .btn { width: 100%; }
    .btn-small { width: auto; }
    .bento, .proof-grid, .road, .controls, .foot-grid, .callout { grid-template-columns: 1fr; }
    .tile-wide { grid-column: auto; grid-template-columns: 1fr; }
    .proof-item, .proof-item:first-child { padding: 22px 0; border-left: 0; border-top: 1px solid var(--line); }
    .proof-item:first-child { border-top: 0; }
    .control { border-right: 0; border-bottom: 1px solid var(--line-dark); }
    .control:nth-last-child(2) { border-bottom: 1px solid var(--line-dark); }
    .control:last-child { border-bottom: 0; }
    .tabs { display: flex; border-radius: 20px; }
    .tabs button { flex: 1 1 auto; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
}
