/* urpaytech.com.au — site styles
   Tokens: neutrals/type/radii/shadows from docs/design-tokens-source-of-truth.md (v1.1.0).
   Brand-guide v2.0 marketing values (navy, canvas, green, Playfair Display) come from the
   Claude Design tokens.css --mk-* marketing layer (confirmed 2026-09-17) and live ONLY in the
   four --brand-* variables below, so they can be swapped in one place. */

@font-face {
  font-family: 'Geist';
  src: url('../fonts/geist-latin-var.woff2') format('woff2');
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Playfair Display';
  src: url('../fonts/playfair-display-italic-latin-var.woff2') format('woff2');
  font-weight: 400 900; font-style: italic; font-display: swap;
}

:root {
  /* canonical, locked */
  --bg: #FFFFFF;
  --bg-muted: #F6F8FB;
  --border: #E4E8EE;
  --border-strong: #D1D6DE;
  --text: #0B1220;
  --text-muted: #5A6573;
  --text-faint: #9099A6;
  --primary: #8D8DFF;
  --primary-hover: #7C7CE0;          /* mix(primary, black, 12%) */
  --primary-soft: rgba(141,141,255,.12);
  --primary-ink: #4F4FD1;            /* darker lavender for link TEXT — #8D8DFF on white is only 2.9:1 */
  --r-sm: 8px; --r-md: 12px; --r-lg: 16px; --r-pill: 999px;
  --shadow-card: 0 1px 2px rgba(11,18,32,.04), 0 4px 12px rgba(11,18,32,.06);

  /* brand guide v2.0 marketing layer (tokens.css --mk-*) */
  --brand-navy: #0B1029;
  --brand-canvas: #F1ECFC;
  --brand-green: #1ED69A;
  --brand-display: 'Playfair Display', Georgia, serif;

  --font: 'Geist', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-w: 1120px;
  --nav-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.6;
  color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary-ink); text-underline-offset: 3px; }
a:hover { color: var(--brand-navy); }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2.2rem, 5.2vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.2rem; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
em.d { font-family: var(--brand-display); font-style: italic; font-weight: 700; letter-spacing: -0.01em; }

.wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 100; background: var(--bg); padding: 8px 12px; border-radius: var(--r-sm); }

/* ── Header ── */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92);
  backdrop-filter: saturate(140%) blur(10px); border-bottom: 1px solid var(--border);
}
.site-header .wrap { height: var(--nav-h); display: flex; align-items: center; gap: 28px; }
.logo { flex-shrink: 0; display: inline-flex; }
.logo img { height: 30px; width: auto; }
.nav { display: flex; align-items: center; gap: 26px; margin-left: auto; }
.nav a { color: var(--text); text-decoration: none; font-weight: 500; font-size: .98rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--primary-ink); }
.nav .btn { color: #fff; }
.nav-toggle {
  display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--border);
  background: var(--bg); border-radius: var(--r-sm); cursor: pointer; padding: 0;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 20px; height: 2px; background: var(--text); margin: 0 auto; position: relative; content: '';
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: var(--r-pill); font-weight: 600; font-size: 1rem;
  text-decoration: none; border: 1.5px solid transparent; transition: background .15s, border-color .15s, color .15s;
}
.btn-primary { background: var(--brand-navy); color: #fff; }
.btn-primary:hover { background: #1B2250; color: #fff; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary-ink); }
.btn-light { background: #fff; color: var(--brand-navy); }
.btn-light:hover { background: var(--brand-canvas); color: var(--brand-navy); }
.btn-sm { padding: 9px 18px; font-size: .95rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ── Sections ── */
.sec { padding: 88px 0; }
.sec-muted { background: var(--bg-muted); }
.sec-canvas { background: var(--brand-canvas); }
.sec-head { max-width: 720px; margin-bottom: 48px; }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--primary-ink); margin-bottom: 14px;
}
.lead { font-size: 1.2rem; color: var(--text-muted); max-width: 640px; }

/* ── Hero ── */
.hero { background: var(--brand-canvas); padding: 88px 0 96px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.hero-sub { padding: 72px 0 64px; }
.hero-sub .wrap { display: block; }
.hero-sub h1 { max-width: 820px; }

.flow { display: grid; gap: 14px; }
.flow-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.chip {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--r-md); box-shadow: var(--shadow-card);
  padding: 16px 12px; text-align: center; font-weight: 600; font-size: .95rem;
}
.chip svg { display: block; margin: 0 auto 8px; color: var(--primary-ink); }
.flow-join { height: 28px; position: relative; }
.flow-join::before {
  content: ''; position: absolute; left: 16.6%; right: 16.6%; top: 0; height: 14px;
  border: 2px solid var(--primary); border-top: 0; border-radius: 0 0 12px 12px;
}
.flow-join::after { content: ''; position: absolute; left: 50%; top: 14px; height: 14px; border-left: 2px solid var(--primary); }
.flow-out {
  background: var(--brand-navy); color: #fff; border-radius: var(--r-lg); padding: 22px; text-align: center;
}
.flow-out strong { display: block; font-size: 1.1rem; }
.flow-out span { color: #C9CCE6; font-size: .95rem; }

/* ── Cards / grids ── */
.grid { display: grid; gap: 20px; }
.g-2 { grid-template-columns: repeat(2, 1fr); }
.g-3 { grid-template-columns: repeat(3, 1fr); }
.g-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 28px; box-shadow: var(--shadow-card);
}
.card p { color: var(--text-muted); margin-bottom: 0; }
.card .ico {
  width: 44px; height: 44px; border-radius: var(--r-md); background: var(--primary-soft); color: var(--primary-ink);
  display: grid; place-items: center; margin-bottom: 18px;
}
.card .more { display: inline-block; margin-top: 16px; font-weight: 600; text-decoration: none; }
.card .more:hover { text-decoration: underline; }
a.card { text-decoration: none; color: inherit; display: block; transition: border-color .15s, transform .15s; }
a.card:hover { border-color: var(--primary); transform: translateY(-2px); color: inherit; }

.ticks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 30px; color: var(--text); }
.ticks li::before {
  content: ''; position: absolute; left: 0; top: .28em; width: 18px; height: 18px; border-radius: 50%;
  background: var(--brand-green)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.4l2.6 2.6L13 6.6' fill='none' stroke='%230B1029' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center/18px no-repeat;
}

/* feature rows on Solutions */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.feature + .feature { margin-top: 0; }
.feature .panel {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 28px; box-shadow: var(--shadow-card);
}
.sec-muted .feature .panel, .sec-canvas .feature .panel { background: var(--bg); }
.anchor-nav { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.anchor-nav a {
  padding: 8px 16px; border-radius: var(--r-pill); background: var(--bg); border: 1px solid var(--border);
  text-decoration: none; color: var(--text); font-weight: 500; font-size: .95rem;
}
.anchor-nav a:hover { border-color: var(--primary); color: var(--primary-ink); }
[id] { scroll-margin-top: calc(var(--nav-h) + 16px); }

/* steps */
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 20px; grid-template-columns: repeat(4, 1fr); }
.steps li { counter-increment: s; background: var(--bg); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 24px; }
.steps li::before {
  content: counter(s, decimal-leading-zero); display: block; font-family: var(--brand-display); font-style: italic;
  font-weight: 700; font-size: 1.6rem; color: var(--primary-ink); margin-bottom: 10px;
}
.steps h3 { font-size: 1.05rem; }
.steps p { color: var(--text-muted); margin: 0; font-size: .97rem; }

/* CTA band */
.cta { background: var(--brand-navy); color: #fff; padding: 80px 0; }
.cta h2 { color: #fff; }
.cta p { color: #C9CCE6; max-width: 600px; }

/* contact */
.contact-card h3 { margin-bottom: 6px; }
.contact-card .big { font-size: 1.05rem; font-weight: 600; }
.contact-card p + .big { margin-top: 12px; display: inline-block; }
address { font-style: normal; }

/* legal pages */
.legal { max-width: 780px; }
.legal h2 { font-size: 1.45rem; margin-top: 2.2em; }
.legal h3 { margin-top: 1.6em; font-size: 1.1rem; }
.legal ul, .legal ol { padding-left: 1.3em; margin: 0 0 1em; }
.legal li { margin-bottom: .45em; }
.legal .meta { color: var(--text-muted); }
.note {
  background: var(--bg-muted); border: 1px solid var(--border); border-left: 4px solid var(--primary);
  border-radius: var(--r-sm); padding: 16px 20px; margin: 1.4em 0;
}
.note p:last-child { margin-bottom: 0; }

/* ── Footer ── */
.site-footer { background: var(--brand-navy); color: #C9CCE6; padding: 64px 0 32px; font-size: .97rem; border-top: 1px solid rgba(255,255,255,.12); }
.site-footer a { color: #E6E8F7; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; }
.footer-grid img { height: 28px; width: auto; margin-bottom: 16px; }
.footer-grid h4 { color: #fff; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 14px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer-bottom {
  margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12);
  display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; font-size: .9rem;
}
.footer-bottom ul { list-style: none; display: flex; gap: 22px; margin: 0; padding: 0; }

/* ── Responsive ── */
@media (max-width: 960px) {
  .hero .wrap, .feature { grid-template-columns: 1fr; gap: 40px; }
  .g-4, .steps { grid-template-columns: repeat(2, 1fr); }
  .g-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .sec { padding: 64px 0; }
  .hero { padding: 56px 0 64px; }
  .hero-sub { padding: 48px 0 44px; }
  .wrap { padding: 0 20px; }
  .nav-toggle { display: block; }
  .nav {
    display: none; position: absolute; top: var(--nav-h); left: 0; right: 0; background: var(--bg);
    border-bottom: 1px solid var(--border); flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 20px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--border); }
  .nav .btn { margin-top: 16px; border-bottom: 0; padding: 12px 22px; }
  .g-2, .g-3, .g-4, .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; }
  .footer-bottom ul { flex-wrap: wrap; }
  .chip { padding: 14px 6px; font-size: .85rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
