/* routepays.com — one stylesheet, no framework. Colours follow the console:
   brand #1e40af, the headline gradient #1e40af → #3b82f6 → #6366f1. */
:root {
  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #ffffff;
  --tint: #f6f8fc;
  --brand: #1e40af;
  --brand-2: #3b82f6;
  --brand-3: #6366f1;
  --brand-soft: #eef2ff;
  --night: #0b1220;
  --radius: 14px;
  --wrap: 1160px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.65 var(--font); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; letter-spacing: -0.015em; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 820px; text-align: center; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
.ico { width: 22px; height: 22px; }

/* ---- header */
.top { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, 0.86); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid rgba(226, 232, 240, 0.8); }
.bar { display: flex; align-items: center; gap: 28px; height: 68px; }
.logo img { height: 32px; width: auto; }
.links { display: flex; align-items: center; gap: 24px; flex: 1; font-size: 15px; }
.links > a, .drop > button { color: var(--ink-2); font: inherit; font-weight: 500; background: none; border: 0; padding: 0; cursor: pointer; }
.links > a:hover, .drop > button:hover { color: var(--ink); text-decoration: none; }
.links .sp { flex: 1; }
.links .lang { color: var(--muted); }
.drop { position: relative; }
.drop > button::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 7px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: translateY(-3px) rotate(45deg); }
.drop .menu { position: absolute; top: calc(100% + 14px); left: -20px; width: 340px; padding: 10px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 18px 40px -16px rgba(15, 23, 42, 0.25); display: grid; gap: 2px; opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .15s, transform .15s, visibility .15s; }
.drop .menu::before { content: ""; position: absolute; inset: -16px 0 auto; height: 16px; }
.drop:hover .menu, .drop:focus-within .menu { opacity: 1; visibility: visible; transform: none; }
.drop .menu a { display: grid; padding: 10px 12px; border-radius: 10px; color: var(--ink); }
.drop .menu a:hover { background: var(--tint); text-decoration: none; }
.drop .menu b { font-weight: 600; font-size: 15px; }
.drop .menu span { color: var(--muted); font-size: 13.5px; }
.menu-toggle, .menu-btn { display: none; }

/* ---- buttons */
.btns { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 32px; }
.btn { display: inline-flex; align-items: center; justify-content: center; height: 48px; padding: 0 22px; border-radius: 12px; font-weight: 600; font-size: 16px; border: 1px solid transparent; transition: background .15s, box-shadow .15s, transform .15s; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn.primary { background: var(--brand); color: #fff; box-shadow: 0 8px 20px -10px rgba(30, 64, 175, 0.7); }
.btn.primary:hover { background: #1d3a9e; }
.btn.ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { border-color: #cbd5e1; }
.btn.sm { height: 38px; padding: 0 16px; font-size: 14.5px; border-radius: 10px; }
.links > a.btn.primary { color: #fff; }

/* ---- hero */
.hero { position: relative; overflow: hidden; padding: 96px 0 72px; background: linear-gradient(180deg, #f3f6ff 0%, #ffffff 100%); }
.hero h1 { font-size: clamp(36px, 5vw, 56px); font-weight: 750; letter-spacing: -0.025em; }
.hero .lead { margin: 22px auto 0; max-width: 720px; font-size: clamp(17px, 1.6vw, 19px); color: var(--ink-2); }
.hero .eyebrow { display: inline-flex; align-items: center; gap: 10px; }
.hero.home { padding: 104px 0 0; text-align: center; background: linear-gradient(135deg, #eef2ff 0%, #f8fafc 55%, #e0f2fe 100%); }
.hero.home h1 { font-size: clamp(42px, 6.4vw, 76px); line-height: 1.08; }
.hero.home h1 span { display: block; }
.accent { background: linear-gradient(90deg, #1e40af 0%, #3b82f6 55%, #6366f1 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-copy { position: relative; z-index: 1; max-width: 840px; margin: 0 auto; }
.hero .note { margin-top: 18px; color: var(--muted); font-size: 14.5px; }
.globe { width: min(1100px, 100%); margin: -10px auto 0; height: auto; }
.arc { stroke-dasharray: 5 7; animation: flow 2.4s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -24; } }
/* Staggered without inline styles (the site's CSP has no 'unsafe-inline'). */
.arc:nth-child(2) { animation-delay: -1.3s; } .arc:nth-child(3) { animation-delay: -2.6s; }
.arc:nth-child(4) { animation-delay: -3.9s; } .arc:nth-child(5) { animation-delay: -5.2s; }
.nodes > g:nth-child(2) .pulse { animation-delay: .6s; } .nodes > g:nth-child(3) .pulse { animation-delay: 1.2s; }
.nodes > g:nth-child(4) .pulse { animation-delay: 1.8s; } .nodes > g:nth-child(5) .pulse { animation-delay: 2.4s; }
.nodes > g:nth-child(6) .pulse { animation-delay: 3s; }
.pulse { transform-box: fill-box; transform-origin: center; animation: pulse 2.8s ease-out infinite; }
@keyframes pulse { from { transform: scale(1); opacity: .45; } to { transform: scale(3.2); opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .arc, .pulse { animation: none; }
  .movers { display: none; }
  .btn:hover { transform: none; }
}

/* ---- sections */
.sec { padding: 88px 0; }
.sec.tint { background: var(--tint); }
.sec-head { max-width: 760px; margin: 0 auto 48px; text-align: center; }
.sec-head h2 { font-size: clamp(28px, 3.2vw, 40px); font-weight: 720; }
.sec-head .lead { margin-top: 14px; font-size: 18px; color: var(--ink-2); }
.eyebrow { margin-bottom: 14px; color: var(--brand); font-weight: 650; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; }
.badge { display: inline-block; margin-left: 10px; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 650; letter-spacing: 0; text-transform: none; vertical-align: 3px; }
.badge.live { background: #ecfdf5; color: #047857; }
.badge.soon { background: var(--brand-soft); color: #4338ca; }

.cards { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.cards.c2 { grid-template-columns: repeat(2, 1fr); }
.cards.c3 { grid-template-columns: repeat(3, 1fr); }
.card { position: relative; padding: 28px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); }
.card.link { transition: border-color .15s, box-shadow .15s, transform .15s; }
.card.link:hover { text-decoration: none; border-color: #c7d2fe; box-shadow: 0 16px 36px -22px rgba(30, 64, 175, .45); transform: translateY(-2px); }
.card h3 { font-size: 19px; font-weight: 650; margin: 16px 0 8px; }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card-top .badge { margin-left: 0; vertical-align: 0; }
/* Products: the live ones wide (two across), early access narrow (three across). */
.cards.mix { grid-template-columns: repeat(6, 1fr); }
.cards.mix .card { grid-column: span 2; }
.cards.mix .card.is-live { grid-column: span 3; }
.card p { color: var(--ink-2); font-size: 15.5px; }
.card > .ico { color: var(--brand); }
.tile { display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 12px; background: var(--brand-soft); color: var(--brand); }
.more { display: inline-block; margin-top: 16px; font-weight: 600; font-size: 15px; color: var(--brand); }
.mail { font-weight: 600; }
.sec.tint .card { box-shadow: 0 1px 2px rgba(15, 23, 42, .04); }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: s; }
.steps li { padding: 28px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.steps .num { display: inline-flex; width: 36px; height: 36px; align-items: center; justify-content: center; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 700; }
.steps h3 { font-size: 19px; margin: 16px 0 8px; }
.steps p { color: var(--ink-2); font-size: 15.5px; }

.checks { list-style: none; margin: 0 auto; padding: 0; max-width: 820px; display: grid; gap: 14px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; font-size: 16.5px; color: var(--ink-2); }
.checks li .ico { flex: none; width: 22px; height: 22px; margin-top: 3px; color: #059669; }
.checks strong { color: var(--ink); }

.sec .wrap > p { max-width: 760px; margin: 0 auto; text-align: center; font-size: 18px; color: var(--ink-2); }

.split { display: grid; grid-template-columns: 1fr 1.15fr; gap: 40px; align-items: center; }
.split .checks { max-width: none; }
.code { margin: 0; padding: 24px 26px; overflow-x: auto; background: var(--night); color: #dbe4ff; border-radius: var(--radius); font: 13.5px/1.7 var(--mono); box-shadow: 0 24px 48px -28px rgba(15, 23, 42, .6); }

.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 0 22px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 28px 18px 0; position: relative; font-weight: 600; font-size: 17px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-weight: 400; font-size: 22px; color: var(--muted); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 0 20px; color: var(--ink-2); }

.table-wrap { max-width: 880px; margin: 0 auto; overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
th, td { text-align: left; padding: 14px 20px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 13.5px; color: var(--muted); font-weight: 600; background: var(--tint); }
tr:last-child td { border-bottom: 0; }
td code, .checks code, p code { font: 13.5px var(--mono); background: var(--brand-soft); color: #1e3a8a; padding: 2px 6px; border-radius: 6px; white-space: nowrap; }

.closing { background: radial-gradient(120% 140% at 50% 0%, #1e3a8a 0%, #0b1220 70%); color: #fff; }
.closing h2 { font-size: clamp(28px, 3.4vw, 42px); font-weight: 720; }
.sec.closing .wrap > .lead { margin-top: 14px; font-size: 18px; color: #c7d2fe; }
.closing .btn.ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .35); }

/* ---- footer */
.foot { background: var(--night); color: #94a3b8; padding: 64px 0 28px; font-size: 15px; }
.foot .cols { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.foot h4 { color: #fff; font-size: 14px; font-weight: 650; margin-bottom: 14px; }
.foot a { display: block; color: #94a3b8; margin-bottom: 10px; }
.foot a:hover { color: #fff; text-decoration: none; }
.brandcol img { height: 32px; width: auto; margin-bottom: 16px; }
.brandcol p { margin-bottom: 10px; }
.foot .legal { display: flex; justify-content: space-between; gap: 16px; margin-top: 40px; padding-top: 24px; border-top: 1px solid #1e293b; font-size: 14px; }
.foot .legal a { display: inline; margin: 0; }

/* ---- narrow screens */
@media (max-width: 960px) {
  .cards.c3, .steps { grid-template-columns: 1fr 1fr; }
  .cards.mix { grid-template-columns: 1fr 1fr; }
  .cards.mix .card, .cards.mix .card.is-live { grid-column: auto; }
  .split { grid-template-columns: 1fr; }
  .foot .cols { grid-template-columns: 1fr 1fr; }
  .brandcol { grid-column: 1 / -1; }
  .menu-btn { display: flex; margin-left: auto; width: 40px; height: 40px; align-items: center; justify-content: center; cursor: pointer; }
  .menu-btn span, .menu-btn span::before, .menu-btn span::after { display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; content: ""; }
  .menu-btn span::before { position: absolute; top: -6px; }
  .menu-btn span::after { position: absolute; top: 6px; }
  .links { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 24px 20px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 18px 30px -20px rgba(15, 23, 42, .3); }
  .menu-toggle:checked ~ .links { display: flex; }
  .links > a, .drop > button { padding: 12px 0; border-bottom: 1px solid var(--line); text-align: left; width: 100%; }
  .links .sp { display: none; }
  .links > a.btn.primary { margin-top: 14px; border: 0; justify-content: center; }
  .drop > button::after { display: none; }
  .drop .menu { position: static; width: auto; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 4px 0 8px; }
  .drop .menu::before { display: none; }
  .drop .menu a { padding: 8px 0 8px 12px; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .cards.c2, .cards.c3, .cards.mix, .steps { grid-template-columns: 1fr; }
  .sec { padding: 64px 0; }
  .hero { padding: 64px 0 56px; }
  .hero.home { padding-top: 72px; }
  .btns .btn { flex: 1 1 100%; }
  .foot .cols { grid-template-columns: 1fr; }
  .foot .legal { flex-direction: column; }
  .code { font-size: 12.5px; padding: 18px; }
  .logo img { height: 28px; }
}
