/* InvoiceBridge site — one stylesheet for every page. Brand: blue #1D4ED8 → teal #0F766E (docs/brand). */
:root {
  --blue: #1D4ED8;
  --teal: #0F766E;
  --ink: #0F172A;
  --muted: #475569;
  --line: #E2E8F0;
  --bg: #FFFFFF;
  --soft: #F8FAFC;
  --tint: #EFF6FF;
  --code: #F1F5F9;
  --radius: 14px;
  --wrap: 1080px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --blue: #60A5FA;
    --teal: #2DD4BF;
    --ink: #E2E8F0;
    --muted: #94A3B8;
    --line: #1E293B;
    --bg: #0B1120;
    --soft: #0F172A;
    --tint: #111C33;
    --code: #111827;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, "Helvetica Neue", Arial, sans-serif;
}
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
code, pre { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 0.88em; }
p code, li code, td code { background: var(--code); padding: 1px 5px; border-radius: 4px; }
pre { background: var(--code); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; overflow-x: auto; line-height: 1.45; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }

/* header */
.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 20px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink); font-size: 17px; }
.brand:hover { text-decoration: none; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.nav { display: flex; gap: 18px; margin-left: auto; font-size: 15px; flex-wrap: wrap; }
.nav a { color: var(--muted); }
.nav a[aria-current="page"], .nav a:hover { color: var(--ink); text-decoration: none; }
.langs { display: flex; gap: 2px; font-size: 12px; font-weight: 600; letter-spacing: 0.03em; }
.langs a { color: var(--muted); padding: 3px 6px; border-radius: 6px; }
.langs a:hover { color: var(--ink); text-decoration: none; background: var(--soft); }
.langs a[aria-current="true"] { color: var(--blue); background: var(--tint); }
@media (max-width: 720px) {
  .top .wrap { height: auto; padding-top: 10px; padding-bottom: 10px; flex-wrap: wrap; gap: 8px; }
  .nav { margin-left: 0; gap: 14px; font-size: 14px; }
  .langs { width: 100%; }
}

/* hero */
.hero { padding: 72px 0 48px; background: radial-gradient(1200px 400px at 10% -10%, color-mix(in srgb, var(--blue) 14%, transparent), transparent), radial-gradient(900px 400px at 100% 0%, color-mix(in srgb, var(--teal) 12%, transparent), transparent); }
.hero h1 { font-size: clamp(32px, 5vw, 52px); line-height: 1.1; margin: 0 0 16px; letter-spacing: -0.02em; max-width: 820px; }
.hero p.lead { font-size: clamp(17px, 2.2vw, 20px); color: var(--muted); max-width: 720px; margin: 0 0 28px; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--teal); margin-bottom: 12px; }
.grad { background: linear-gradient(90deg, var(--blue), var(--teal)); -webkit-background-clip: text; background-clip: text; color: transparent; }

.buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 10px; font-weight: 600; font-size: 15px; border: 1px solid var(--line); color: var(--ink); background: var(--bg); }
.btn:hover { text-decoration: none; border-color: var(--blue); }
.btn.primary { background: linear-gradient(90deg, #1D4ED8, #0F766E); color: #fff; border: 0; }
.btn.primary:hover { filter: brightness(1.08); }

/* sections */
section { padding: 56px 0; }
section.soft { background: var(--soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
h2 { font-size: clamp(24px, 3.2vw, 32px); line-height: 1.2; margin: 0 0 12px; letter-spacing: -0.01em; }
h3 { font-size: 19px; margin: 0 0 8px; }
.sub { color: var(--muted); max-width: 720px; margin: 0 0 28px; }

.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; background: var(--bg); }
.card p { margin: 0; color: var(--muted); }
.card .icon { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; font-weight: 700; color: #fff; background: linear-gradient(135deg, #1D4ED8, #0F766E); margin-bottom: 14px; font-family: ui-monospace, Menlo, monospace; font-size: 14px; }

.channel { display: flex; flex-direction: column; }
.channel .tag { align-self: flex-start; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--tint); color: var(--blue); margin-bottom: 12px; }
.channel .tag.soon { color: var(--teal); }
.channel ul { margin: 12px 0 18px; padding-left: 18px; color: var(--muted); }
.channel .btn { margin-top: auto; align-self: flex-start; }

table { border-collapse: collapse; width: 100%; font-size: 15px; }
.table { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
th, td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
th { background: var(--soft); font-weight: 600; }

.price { font-size: 30px; font-weight: 700; margin: 6px 0 2px; }
.price small { font-size: 15px; font-weight: 500; color: var(--muted); }
.note { font-size: 14px; color: var(--muted); }

.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.steps li { counter-increment: s; position: relative; padding-left: 46px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: #fff; background: linear-gradient(135deg, #1D4ED8, #0F766E); }

/* legal pages */
.doc { max-width: 760px; padding: 48px 16px 64px; }
.doc h1 { font-size: 36px; margin: 0 0 6px; }
.doc h2 { font-size: 22px; margin: 34px 0 8px; }
.doc .updated { color: var(--muted); margin: 0 0 28px; }
.todo { background: #FEF3C7; color: #92400E; padding: 0 4px; border-radius: 4px; }

/* footer */
footer { border-top: 1px solid var(--line); padding: 32px 0 40px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
footer nav a { color: var(--muted); }
footer .copy { margin-left: auto; }
@media (max-width: 720px) { footer .copy { margin-left: 0; } }
