/* VioLedger site styles. System fonts only, no external files. */
:root {
  --navy: #0d1b3d;
  --blue: #1468ff;
  --blue-strong: #0a4fd1;
  --cyan: #00c2ff;
  --orange: #ff6a00;
  --green: #12805c;
  --bg: #f5f7fa;
  --surface: #ffffff;
  --surface-2: #eef3fb;
  --text: #0d1b3d;
  --muted: #475569;
  --border: #d6dfeb;
  --link: #0a4fd1;
  --on-blue: #ffffff;
  --hero-from: #0d1b3d;
  --hero-to: #14408f;
  --shadow: 0 10px 30px rgba(13, 27, 61, 0.12);
  --radius: 18px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1220;
    --surface: #111b2e;
    --surface-2: #16233a;
    --text: #f5f7fa;
    --muted: #b8c4d6;
    --border: #2a3a55;
    --link: #7fb0ff;
    --blue: #6ea0ff;
    --on-blue: #0b1220;
    --green: #4fd1a1;
    --hero-from: #08101f;
    --hero-to: #11306b;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Noto Sans Malayalam", "Noto Sans Devanagari", sans-serif;
  -webkit-text-size-adjust: 100%;
}
h1, h2, h3 { line-height: 1.2; margin: 0 0 12px; letter-spacing: -0.01em; }
h1 { font-size: clamp(30px, 6vw, 48px); }
h2 { font-size: clamp(22px, 4vw, 30px); }
h3 { font-size: 18px; }
p { margin: 0 0 14px; color: var(--muted); }
a { color: var(--link); }
img { max-width: 100%; }
.wrap { max-width: 1060px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 720px; }
.skip {
  position: absolute; left: -999px; top: 8px; background: var(--surface);
  padding: 8px 12px; border-radius: 8px; z-index: 10;
}
.skip:focus { left: 8px; }

/* Header */
.site-header { border-bottom: 1px solid var(--border); background: var(--bg); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 19px; }
.logo img { width: 36px; height: 36px; border-radius: 10px; }
.site-header nav { display: flex; gap: 4px; flex-wrap: wrap; }
.site-header nav a { color: var(--muted); text-decoration: none; padding: 8px 10px; border-radius: 8px; font-size: 15px; }
.site-header nav a:hover { background: var(--surface-2); color: var(--text); }
.site-header nav a[aria-current="page"] { color: var(--text); font-weight: 600; }

/* Hero */
.hero { background: linear-gradient(135deg, var(--hero-from), var(--hero-to)); color: #fff; overflow: hidden; }
.hero .wrap { display: grid; gap: 32px; padding-top: 48px; padding-bottom: 56px; align-items: center; }
.hero p { color: #d6e2f7; font-size: 18px; max-width: 34em; }
.hero .eyebrow { display: inline-block; background: rgba(255,255,255,.14); color: #fff; font-size: 14px; font-weight: 600; padding: 4px 12px; border-radius: 999px; margin-bottom: 16px; }
.hero h1 .accent { color: var(--cyan); }
.badges { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.badge { display: inline-flex; align-items: center; gap: 8px; border: 1px solid rgba(255,255,255,.3); border-radius: 999px; padding: 8px 14px; font-size: 14px; color: #fff; }
.badge svg { width: 18px; height: 18px; }

/* Phone mockup */
.phone {
  width: 280px; margin: 0 auto; padding: 12px; border-radius: 36px;
  background: #0a1224; border: 2px solid rgba(255,255,255,.18); box-shadow: 0 24px 60px rgba(0,0,0,.45);
}
.phone .screen { background: #f5f7fa; border-radius: 26px; padding: 16px 14px 18px; color: #0d1b3d; min-height: 420px; }
.phone .screen p { color: #475569; margin: 0; }
.phone .top { display: flex; justify-content: space-between; align-items: center; font-size: 13px; font-weight: 700; margin-bottom: 12px; }
.phone .sync { color: #12805c; font-weight: 600; font-size: 12px; }
.phone .balance { background: linear-gradient(135deg, #1468ff, #0a4fd1); color: #fff; border-radius: 16px; padding: 14px; margin-bottom: 14px; }
.phone .balance small { opacity: .85; display: block; font-size: 12px; }
.phone .balance strong { font-size: 26px; display: block; }
.phone .row { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 0; border-bottom: 1px solid #e2e8f0; font-size: 14px; }
.phone .row:last-child { border-bottom: 0; }
.phone .row span small { display: block; color: #64748b; font-size: 12px; }
.phone .out { color: #b3261e; font-weight: 700; white-space: nowrap; }
.phone .in { color: #12805c; font-weight: 700; white-space: nowrap; }
.phone .owe { margin-top: 10px; background: #fff3e8; border-radius: 12px; padding: 10px 12px; font-size: 13px; color: #7a3300; }
.caption { text-align: center; font-size: 13px; color: #b9c8e4; margin-top: 12px; }

/* Sections */
section.block { padding: 56px 0; }
section.block.alt { background: var(--surface-2); }
.lead { font-size: 18px; max-width: 38em; }
.grid { display: grid; gap: 16px; margin-top: 28px; }
.feature, .card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px;
}
.feature .icon {
  width: 44px; height: 44px; border-radius: 12px; background: var(--surface-2); color: var(--blue);
  display: grid; place-items: center; margin-bottom: 12px;
}
.feature .icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.feature p, .card p:last-child { margin-bottom: 0; }
.steps { counter-reset: step; list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 16px; }
.steps li {
  counter-increment: step; position: relative; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px 18px 18px 64px; color: var(--muted);
}
.steps li::before {
  content: counter(step); position: absolute; left: 16px; top: 16px; width: 34px; height: 34px; border-radius: 50%;
  background: var(--blue); color: var(--on-blue); font-weight: 700; display: grid; place-items: center;
}
.steps li strong { display: block; color: var(--text); margin-bottom: 2px; }
.trust { max-width: 720px; display: grid; gap: 14px; margin-top: 24px; }
.trust div { display: flex; gap: 12px; align-items: flex-start; }
.trust svg { flex: none; width: 24px; height: 24px; margin-top: 2px; fill: none; stroke: var(--green); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.trust p { margin: 0; }
.trust strong { color: var(--text); }

/* Buttons and notices */
.actions { display: grid; gap: 12px; margin: 22px 0; }
.button {
  display: block; min-height: 50px; padding: 13px 18px; border-radius: 14px; border: 1.5px solid var(--blue);
  background: transparent; color: var(--link); font: inherit; font-weight: 700; text-align: center; text-decoration: none; cursor: pointer;
}
.button.primary { background: var(--blue); border-color: var(--blue); color: var(--on-blue); }
.button.primary:hover { background: var(--blue-strong); color: #fff; }
.notice { border-left: 4px solid var(--orange); padding: 10px 14px; background: var(--surface); border-radius: 0 12px 12px 0; color: var(--muted); }

/* Language switch */
.langs { display: flex; gap: 8px; margin: 0 0 20px; flex-wrap: wrap; }
.langs button {
  min-height: 40px; padding: 6px 16px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text); font: inherit; cursor: pointer;
}
.langs button[aria-pressed="true"] { border-color: var(--blue); background: var(--blue); color: var(--on-blue); font-weight: 600; }

/* Invitation page */
.invite-card { background: var(--surface); border: 1px solid var(--border); border-radius: 24px; padding: 24px 20px; box-shadow: var(--shadow); margin-top: 24px; }
.avatars { display: flex; justify-content: center; align-items: center; margin-bottom: 16px; }
.avatars span {
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 22px;
  color: #fff; border: 3px solid var(--surface);
}
.avatars span:nth-child(1) { background: var(--blue-strong); z-index: 2; }
.avatars span:nth-child(2) { background: var(--orange); margin-left: -14px; z-index: 1; }
.invite-card h1 { font-size: clamp(24px, 6vw, 32px); text-align: center; }
.invite-card > p { text-align: center; }
.invite-card .steps { margin-top: 8px; }
.invite-card .steps li { padding: 14px 14px 14px 58px; }
.invite-card .steps li::before { top: 12px; }
.invite-card h2 { font-size: 18px; margin-top: 24px; }

/* Legal and plain pages */
.prose { padding-top: 32px; padding-bottom: 56px; }
.prose h1 { font-size: clamp(28px, 5vw, 38px); }
.prose h2 { margin-top: 32px; font-size: 22px; }
.prose li { color: var(--muted); margin-bottom: 6px; }
.prose .meta { color: var(--muted); font-size: 14px; }
.draft { border: 1.5px dashed var(--orange); background: var(--surface); border-radius: 12px; padding: 12px 14px; margin: 16px 0; color: var(--text); }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 28px 0 40px; font-size: 14px; color: var(--muted); }
.site-footer .wrap { display: grid; gap: 12px; }
.site-footer nav { display: flex; gap: 6px 18px; flex-wrap: wrap; }
.site-footer p { margin: 0; }

[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; }

@media (max-width: 560px) {
  .site-header nav a[href="/#features"], .site-header nav a[href="/#how"] { display: none; }
}
@media (min-width: 720px) {
  .hero .wrap { grid-template-columns: 1.2fr 1fr; padding-top: 72px; padding-bottom: 80px; }
  .grid.three { grid-template-columns: repeat(3, 1fr); }
  .grid.two { grid-template-columns: repeat(2, 1fr); }
  .steps.row { grid-template-columns: repeat(3, 1fr); }
  .steps.row li { padding: 64px 18px 18px; }
  .steps.row li::before { left: 18px; top: 18px; }
  .actions.pair { grid-template-columns: 1fr 1fr; }
  .site-footer .wrap { grid-template-columns: 1fr auto; align-items: center; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
