/* Trkly — tokens from the Trkly design system (Light theme) */
:root {
  --surface: #F3F5F6; --surface-raised: #FFFFFF; --surface-sunken: #EEF2F3; --deep: #13212B;
  --ink: #13212B; --ink-muted: #3D4C56; --ink-subtle: #5A6872; --on-deep: #FFFFFF; --on-deep-muted: #C9D4D9;
  --line: #DCE3E6; --line-deep: #3E5260; --teal: #245E6B; --teal-strong: #163F49; --teal-soft: #E3ECEE; --on-teal: #FFFFFF;
  --mist: #8FC3CC; --contour: #D6DFE2; --positive: #1F5E45; --positive-soft: #DDEFE7; --owe: #9A3B1F; --focus: #245E6B;
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-5: 20px; --space-6: 24px; --space-8: 32px; --space-10: 40px; --space-14: 56px; --space-20: 80px;
  --radius-sm: 10px; --radius-md: 16px; --radius-lg: 20px; --radius-xl: 28px; --radius-pill: 999px;
  --font-display: Manrope, ui-sans-serif, system-ui, sans-serif; --font-sans: Inter, ui-sans-serif, system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font-sans); color: var(--ink); background: var(--surface); -webkit-font-smoothing: antialiased; }
a { color: var(--teal); }
a:hover { color: var(--teal-strong); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: 1200px; margin: 0 auto; padding-inline: var(--space-8); }
h1, h2, h3 { font-family: var(--font-display); margin: 0; }

/* header */
.site-header { display: flex; flex-wrap: wrap; gap: var(--space-4); align-items: center; justify-content: space-between; padding-block: 28px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand span { font-family: var(--font-display); font-weight: 800; font-size: 24px; letter-spacing: -0.5px; }
.nav { display: flex; flex-wrap: wrap; gap: 28px; align-items: center; font-size: 15px; }
.nav a { color: var(--ink-muted); text-decoration: none; }
.nav a:hover { color: var(--ink); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 26px; border-radius: var(--radius-pill); font: 600 16px/1 var(--font-sans); text-decoration: none; border: 1px solid transparent; cursor: pointer; }
.btn-primary { background: var(--teal); color: var(--on-teal); }
.btn-primary:hover { background: var(--teal-strong); color: var(--on-teal); }
.btn-dark { background: var(--deep); color: var(--on-deep); min-height: 44px; padding: 0 20px; font-size: 15px; }
.btn-dark:hover { background: #0A1218; color: var(--on-deep); }
.nav .btn-dark, .nav .btn-dark:hover { color: var(--on-deep); }
.btn-link { color: var(--ink); padding: 0 10px; }
.btn-link:hover { color: var(--teal); }

/* hero */
.hero { position: relative; overflow: hidden; }
.bg-art { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero-inner { position: relative; display: flex; flex-wrap: wrap; gap: var(--space-14); align-items: center; padding-block: var(--space-14); }
.hero-copy { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: var(--space-6); }
.eyebrow { margin: 0; font-size: 14px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--teal); }
.hero h1 { font-weight: 700; font-size: clamp(40px, 6vw, 60px); line-height: 1.05; letter-spacing: -1.5px; }
.lede { margin: 0; font-size: 19px; line-height: 1.55; color: var(--ink-muted); max-width: 480px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.small { margin: 0; font-size: 14px; color: var(--ink-subtle); }
.phones { flex: 1 1 560px; min-width: 0; display: flex; flex-wrap: wrap; gap: var(--space-5); justify-content: center; align-items: flex-start; }

/* phone mockups */
.phone { width: 272px; height: 560px; border-radius: 42px; border: 9px solid var(--deep); background: var(--surface-raised); overflow: hidden; display: flex; flex-direction: column; color: var(--ink); flex: none; }
.phone.offset { margin-top: 48px; }
.phone-body { padding: 20px 18px 8px; display: flex; flex-direction: column; gap: 11px; flex: 1; }
.phone-foot { padding: 12px 18px 18px; }
.p-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.p-meta { font-size: 11px; color: var(--ink-subtle); }
.p-title { font-family: var(--font-display); font-weight: 700; font-size: 18px; }
.p-title-s { font-family: var(--font-display); font-weight: 700; font-size: 16px; }
.avatar { width: 30px; height: 30px; border-radius: 999px; background: var(--teal-soft); display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 600; color: var(--teal); }
.balance-card { background: var(--deep); color: var(--on-deep); border-radius: 18px; padding: 16px; }
.balance-card .lbl { font-size: 11px; color: var(--on-deep-muted); }
.balance-card .amt { font-family: var(--font-display); font-weight: 700; font-size: 32px; letter-spacing: -0.5px; }
.p-label { font-size: 11px; font-weight: 600; color: var(--ink-subtle); letter-spacing: 0.8px; text-transform: uppercase; }
.p-list { display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.p-list .owed { color: var(--teal); font-weight: 600; }
.p-list .muted { color: var(--ink-subtle); }
.p-recent { display: flex; flex-direction: column; gap: 10px; font-size: 12px; }
.p-recent .v { font-weight: 600; white-space: nowrap; }
.p-btn { background: var(--teal); color: var(--on-teal); border-radius: 999px; text-align: center; padding: 12px; font-weight: 600; font-size: 14px; }
.big-amt { text-align: center; padding: 10px 0 4px; }
.big-amt .v { font-family: var(--font-display); font-weight: 700; font-size: 40px; letter-spacing: -1px; }
.big-amt .s { font-size: 12px; color: var(--ink-subtle); }
.field { display: flex; justify-content: space-between; border-bottom: 1px solid #E5EAEC; padding-bottom: 8px; font-size: 12px; }
.field span:first-child { color: var(--ink-subtle); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; font-size: 11px; }
.chips span { background: var(--surface-sunken); padding: 6px 10px; border-radius: 999px; }
.chips .on { background: var(--deep); color: var(--on-deep); }
.keypad { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; font-family: var(--font-display); font-weight: 600; font-size: 17px; text-align: center; }
.keypad span { padding: 9px 0; background: var(--surface); border-radius: var(--radius-sm); }

/* how */
.section { padding-block: 72px; display: flex; flex-direction: column; gap: 36px; }
.section h2 { font-weight: 700; font-size: clamp(30px, 4vw, 40px); letter-spacing: -1px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--space-5); }
.card { background: var(--surface-raised); border-radius: var(--radius-lg); padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.card-top { display: flex; align-items: center; justify-content: space-between; color: var(--teal); }
.step { font-family: var(--font-display); font-weight: 800; font-size: 15px; }
.card h3 { font-size: 21px; }
.card p, .feature p { margin: 0; font-size: 16px; line-height: 1.55; color: var(--ink-muted); }

/* currencies */
.dark { background: var(--deep); color: var(--on-deep); position: relative; overflow: hidden; }
.dark-inner { position: relative; padding-block: var(--space-20); display: flex; flex-wrap: wrap; gap: var(--space-14); align-items: center; }
.dark-copy { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: var(--space-5); }
.dark-copy h2 { font-weight: 700; font-size: clamp(30px, 4vw, 40px); letter-spacing: -1px; }
.dark-copy p { margin: 0; font-size: 18px; line-height: 1.6; color: var(--on-deep-muted); }
.ccys { display: flex; flex-wrap: wrap; gap: 10px; font-size: 15px; font-weight: 600; padding: 0; margin: 0; list-style: none; }
.ccys li { border: 1px solid var(--line-deep); padding: 10px 16px; border-radius: 999px; }
.dark .phone { border-color: #2A3B47; }
.settle { border: 1px solid #E5EAEC; border-radius: var(--radius-md); padding: 14px; display: flex; flex-direction: column; gap: 6px; }
.settle .who { font-size: 12px; color: var(--ink-subtle); }
.settle .amt { font-family: var(--font-display); font-weight: 700; font-size: 22px; }
.settle .how { font-size: 11px; color: var(--ink-subtle); }
.pill-s { align-self: flex-start; background: var(--surface-sunken); padding: 6px 12px; border-radius: 999px; font-size: 11px; font-weight: 600; }
.pill-s.paid { background: var(--positive-soft); color: var(--positive); }

/* features */
.features { padding-block: 72px; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px; }
.feature { display: flex; flex-direction: column; gap: 8px; }
.feature h3 { font-size: 18px; }
.feature p { font-size: 15px; }

/* beta */
.beta { padding-bottom: var(--space-20); }
.beta-panel { background: var(--teal-soft); border-radius: var(--radius-xl); padding: 56px 40px; display: flex; flex-wrap: wrap; gap: 28px; align-items: center; justify-content: space-between; }
.beta-panel > div { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.beta-panel h2 { font-weight: 700; font-size: 34px; letter-spacing: -0.8px; }
.beta-panel p { margin: 0; font-size: 17px; color: var(--ink-muted); }
.beta-form { flex: 1 1 360px; min-width: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.beta-form input { flex: 1 1 220px; min-width: 0; min-height: 52px; padding: 0 20px; border-radius: 999px; border: 1px solid #B9C7CD; font: 16px var(--font-sans); background: var(--surface-raised); color: var(--ink); }
.form-note { flex-basis: 100%; margin: 0; font-size: 14px; color: var(--ink-muted); min-height: 20px; }

/* footer */
.site-footer { display: flex; flex-wrap: wrap; gap: var(--space-4); justify-content: space-between; padding-block: 28px 48px; font-size: 14px; color: var(--ink-subtle); border-top: 1px solid var(--line); }
.site-footer nav { display: flex; gap: 20px; }
.site-footer a { color: var(--ink-subtle); }

@media (max-width: 640px) {
  .wrap { padding-inline: var(--space-5); }
  .phone.offset { margin-top: 0; }
  .phone.hide-sm { display: none; }
  .beta-panel { padding: 36px 24px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
