/* Layout: 1200px column on an 8px grid. Split hero (thesis left, live invoice right),
   light consulting half, navy product half, light close. Colors from JustInvoicit's front-theme. */
:root {
  --bg: #f7faff;          /* $gray-100 */
  --surface: #ffffff;
  --surface-2: #f8fafd;   /* $gray-200 */
  --ink: #1e2022;         /* $gray-900 */
  --text: #677788;        /* $gray-700 body */
  --muted: #8c98a4;       /* $gray-600 */
  --rule: #e7eaf3;        /* $gray-300 */
  --navy: #21325b;        /* $dark */
  --navy-ink: #ffffff;
  --navy-text: #b9c5e0;
  --navy-rule: rgba(255,255,255,.12);
  --navy-card: rgba(255,255,255,.05);
  --primary: #377dff;     /* $blue */
  --primary-hover: #2266e6;
  --primary-soft: rgba(55,125,255,.1);
  --teal: #00c9a7;        /* $teal */
  --teal-soft: rgba(0,201,167,.12);
  --peach: #f5ca99;       /* $yellow */
  --red: #ed4c78;         /* $red */
  --shadow: 0 12px 40px -12px rgba(33,50,91,.22), 0 2px 6px rgba(33,50,91,.06);

  --f-display: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
  --f-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --r-sm: .3125rem; --r: .5rem; --r-lg: .75rem;  /* theme radii */
  --wrap: 75rem;
  --gutter: clamp(1rem, 4vw, 2rem);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1730; --surface: #16213f; --surface-2: #1a2649;
    --ink: #f1f5ff; --text: #a7b4cf; --muted: #7d8bab; --rule: #26345c;
    --navy: #0a1126; --navy-ink: #ffffff; --navy-text: #a7b4cf;
    --navy-rule: rgba(255,255,255,.1); --navy-card: rgba(255,255,255,.04);
    --primary: #5b95ff; --primary-hover: #7aa9ff; --primary-soft: rgba(91,149,255,.16);
    --teal: #1fd8b8; --teal-soft: rgba(31,216,184,.14);
    --shadow: 0 16px 48px -12px rgba(0,0,0,.6), 0 2px 6px rgba(0,0,0,.3);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0f1730; --surface: #16213f; --surface-2: #1a2649;
  --ink: #f1f5ff; --text: #a7b4cf; --muted: #7d8bab; --rule: #26345c;
  --navy: #0a1126; --navy-ink: #ffffff; --navy-text: #a7b4cf;
  --navy-rule: rgba(255,255,255,.1); --navy-card: rgba(255,255,255,.04);
  --primary: #5b95ff; --primary-hover: #7aa9ff; --primary-soft: rgba(91,149,255,.16);
  --teal: #1fd8b8; --teal-soft: rgba(31,216,184,.14);
  --shadow: 0 16px 48px -12px rgba(0,0,0,.6), 0 2px 6px rgba(0,0,0,.3);
  color-scheme: dark;
}

* { box-sizing: border-box; }
body { margin: 0; }
img, svg { max-width: 100%; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
  background: var(--bg); color: var(--text);
  font: 400 1rem/1.65 var(--f-body);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: var(--r-sm); }
h1, h2, h3 { font-family: var(--f-display); color: var(--ink); margin: 0; text-wrap: balance; letter-spacing: -.02em; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.eyebrow { font: 500 .75rem/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--primary); }
.mono { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: .5rem; height: 3rem; padding-inline: 1.375rem; border-radius: var(--r); font: 600 .9375rem/1 var(--f-body); border: 1px solid transparent; cursor: pointer; transition: background .2s, transform .2s, border-color .2s, color .2s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 6px 16px -6px rgba(55,125,255,.55); }
.btn-primary:hover { background: var(--primary-hover); }
.btn-ghost { border-color: var(--rule); color: var(--ink); background: var(--surface); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn-teal { background: var(--teal); color: #0b2a28; }
.btn-teal:hover { filter: brightness(1.06); }
.btn-outline-light { border-color: var(--navy-rule); color: var(--navy-ink); }
.btn-outline-light:hover { border-color: var(--navy-ink); }
.btn svg { width: 1rem; height: 1rem; }

/* Nav */
.nav { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--rule); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 4.5rem; gap: 1.5rem; }
.logo { display: inline-flex; align-items: baseline; font: 800 1.5rem/1 var(--f-display); color: var(--ink); letter-spacing: -.04em; }
.logo b { color: var(--primary); font-weight: 800; }
.logo i { font-style: normal; font: 500 .9rem/1 var(--f-mono); color: var(--muted); margin-left: .125rem; }
.nav-links { display: flex; gap: 2rem; font-weight: 500; font-size: .9375rem; color: var(--ink); }
.nav-links a { opacity: .75; transition: opacity .2s, color .2s; }
.nav-links a:hover { opacity: 1; color: var(--primary); }
.nav .btn { height: 2.5rem; padding-inline: 1rem; font-size: .875rem; }
@media (max-width: 860px) { .nav-links { display: none; } }

/* Hero */
.hero { padding-block: clamp(3rem, 7vw, 5.5rem) clamp(3.5rem, 7vw, 6rem); position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(var(--rule) 1px, transparent 1px); background-size: 24px 24px; mask-image: linear-gradient(180deg, #000 0%, transparent 85%); -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 85%); pointer-events: none; }
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2.5rem, 5vw, 4.5rem); align-items: center; }
.hero-copy { min-width: 0; display: grid; gap: 1.5rem; }
.hero h1 { font-size: clamp(2.5rem, 5.4vw, 4.25rem); line-height: 1.02; font-weight: 800; letter-spacing: -.035em; }
.hero h1 em { font-style: normal; color: var(--primary); position: relative; white-space: nowrap; }
.hero h1 em::after { content: ""; position: absolute; left: 0; right: 0; bottom: .06em; height: .14em; background: var(--peach); opacity: .7; z-index: -1; border-radius: 2px; }
.hero .lede { font-size: 1.1875rem; line-height: 1.6; max-width: 34rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .75rem; padding-top: .5rem; }
.hero-meta { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; padding-top: 1rem; border-top: 1px dashed var(--rule); font-size: .875rem; color: var(--muted); }
.hero-meta span { display: inline-flex; align-items: center; gap: .5rem; }
.hero-meta span::before { content: ""; width: .375rem; height: .375rem; border-radius: 50%; background: var(--teal); }
@media (max-width: 960px) { .hero .wrap { grid-template-columns: 1fr; } }

/* Invoice mock */
.stage { position: relative; min-width: 0; }
.stage::before { content: ""; position: absolute; inset: 8% -6% -6% 10%; background: linear-gradient(135deg, var(--primary) 0%, var(--teal) 100%); opacity: .14; border-radius: 2rem; filter: blur(24px); }
.invoice { position: relative; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r-lg); box-shadow: var(--shadow); overflow: hidden; }
.inv-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; padding: 1.5rem 1.5rem 1.25rem; border-bottom: 1px solid var(--rule); }
.inv-top h3 { font-size: 1.125rem; font-weight: 700; letter-spacing: -.01em; }
.inv-top .mono { font-size: .75rem; color: var(--muted); }
.inv-status { flex: none; font: 600 .6875rem/1 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; padding: .4375rem .625rem; border-radius: 50rem; background: var(--teal-soft); color: var(--teal); display: inline-flex; align-items: center; gap: .375rem; }
.inv-status::before { content: ""; width: .375rem; height: .375rem; border-radius: 50%; background: currentColor; animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .3; } }
.inv-source { display: flex; align-items: center; gap: .5rem; padding: .625rem 1.5rem; background: var(--surface-2); border-bottom: 1px solid var(--rule); font-size: .8125rem; color: var(--muted); }
.inv-source svg { width: .875rem; height: .875rem; color: var(--primary); flex: none; }
.inv-source b { color: var(--ink); font-weight: 600; }
.inv-table { overflow-x: auto; }
.inv-table table { width: 100%; border-collapse: collapse; font-size: .8125rem; min-width: 26rem; }
.inv-table th { text-align: left; font: 500 .6875rem/1 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: .875rem 1.5rem .5rem; }
.inv-table td { padding: .75rem 1.5rem; border-top: 1px solid var(--rule); color: var(--ink); vertical-align: top; }
.inv-table .num { text-align: right; font-family: var(--f-mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.inv-table td .key { display: inline-block; font: 500 .6875rem/1 var(--f-mono); color: var(--primary); background: var(--primary-soft); padding: .25rem .375rem; border-radius: var(--r-sm); margin-bottom: .3125rem; }
.inv-table td .desc { display: block; line-height: 1.4; }
.inv-table tbody tr { animation: land .7s cubic-bezier(.2,.8,.2,1) both; }
.inv-table tbody tr:nth-child(1) { animation-delay: .25s; }
.inv-table tbody tr:nth-child(2) { animation-delay: .45s; }
.inv-table tbody tr:nth-child(3) { animation-delay: .65s; }
.inv-table tbody tr:nth-child(4) { animation-delay: .85s; }
@keyframes land { from { transform: translateX(-12px); background: var(--primary-soft); } to { transform: none; background: transparent; } }
.inv-foot { display: grid; grid-template-columns: 1fr auto; gap: 1.5rem; padding: 1.25rem 1.5rem 1.5rem; border-top: 1px solid var(--rule); align-items: end; }
.pay-chips { display: flex; flex-wrap: wrap; gap: .375rem; }
.pay-chips span { font: 500 .6875rem/1 var(--f-mono); padding: .375rem .5rem; border: 1px solid var(--rule); border-radius: var(--r-sm); color: var(--text); }
.totals { display: grid; grid-template-columns: auto auto; gap: .375rem 1.5rem; font-size: .8125rem; }
.totals dt { color: var(--muted); }
.totals dd { margin: 0; text-align: right; font-family: var(--f-mono); font-variant-numeric: tabular-nums; color: var(--ink); }
.totals .grand { font: 700 1.25rem/1.2 var(--f-display); color: var(--ink); padding-top: .375rem; border-top: 1px solid var(--rule); }
.totals dt.grand { font: 600 .8125rem/1.2 var(--f-body); align-self: end; }
.sample-note { position: absolute; top: -.75rem; right: 1rem; font: 500 .6875rem/1 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; background: var(--navy); color: #fff; padding: .4375rem .625rem; border-radius: var(--r-sm); z-index: 1; }
@media (max-width: 520px) { .inv-foot { grid-template-columns: 1fr; } .totals { justify-self: stretch; } }

/* Split band */
.split { border-block: 1px solid var(--rule); background: var(--surface); }
.split .wrap { display: grid; grid-template-columns: 1fr 1fr; }
.split a { display: grid; gap: .5rem; padding-block: 2rem; padding-inline: 0 2rem; transition: color .2s; min-width: 0; }
.split a + a { border-left: 1px solid var(--rule); padding-inline: 2rem 0; }
.split a:hover h3 { color: var(--primary); }
.split h3 { font-size: 1.375rem; font-weight: 700; display: flex; align-items: center; gap: .625rem; transition: color .2s; }
.split h3 svg { width: 1.125rem; height: 1.125rem; transition: transform .2s; }
.split a:hover h3 svg { transform: translateX(4px); }
@media (max-width: 720px) { .split .wrap { grid-template-columns: 1fr; } .split a, .split a + a { padding-inline: 0; border-left: 0; } .split a + a { border-top: 1px solid var(--rule); } }

/* Sections */
section.block { padding-block: clamp(4rem, 9vw, 7rem); }
.head { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem 4rem; align-items: end; margin-bottom: 3.5rem; }
.head h2 { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.08; font-weight: 800; }
.head .eyebrow { grid-column: 1 / -1; }
.head p { font-size: 1.0625rem; max-width: 32rem; }
@media (max-width: 860px) { .head { grid-template-columns: 1fr; margin-bottom: 2.5rem; } }

/* Services */
.services { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--rule); border-left: 1px solid var(--rule); }
.service { padding: 2rem; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); display: grid; grid-template-rows: auto auto 1fr auto; gap: .875rem; background: var(--surface); transition: background .25s; min-width: 0; }
.service:hover { background: var(--surface-2); }
.service .ic { width: 2.75rem; height: 2.75rem; display: grid; place-items: center; border-radius: var(--r); background: var(--primary-soft); color: var(--primary); }
.service .ic svg { width: 1.25rem; height: 1.25rem; }
.service h3 { font-size: 1.25rem; font-weight: 700; letter-spacing: -.015em; }
.service p { font-size: .9375rem; }
.tags { display: flex; flex-wrap: wrap; gap: .375rem; padding-top: .5rem; }
.tags span { font: 500 .6875rem/1 var(--f-mono); color: var(--muted); padding: .3125rem .5rem; background: var(--bg); border: 1px solid var(--rule); border-radius: var(--r-sm); }
@media (max-width: 960px) { .services { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .services { grid-template-columns: 1fr; } .service { padding: 1.5rem; } }

/* Engagements */
.engage { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 4.5rem; }
.engage > div { padding: 1.75rem; border-radius: var(--r-lg); border: 1px solid var(--rule); background: var(--surface); display: grid; gap: .75rem; align-content: start; min-width: 0; }
.engage > div.featured { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.engage .len { font: 500 .8125rem/1 var(--f-mono); color: var(--primary); }
.engage h3 { font-size: 1.25rem; font-weight: 700; }
.engage p { font-size: .9375rem; }
.engage ul { list-style: none; padding: 0; margin: .25rem 0 0; display: grid; gap: .5rem; font-size: .875rem; color: var(--ink); }
.engage li { display: flex; gap: .625rem; align-items: baseline; }
.engage li::before { content: ""; flex: none; width: .5rem; height: .3125rem; border-left: 2px solid var(--teal); border-bottom: 2px solid var(--teal); transform: rotate(-45deg) translateY(-2px); }
.engage-label { font: 600 .9375rem/1.3 var(--f-body); color: var(--ink); margin-top: 4.5rem; }
@media (max-width: 900px) { .engage { grid-template-columns: 1fr; } }

/* Process */
.process { background: var(--surface); border-block: 1px solid var(--rule); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: s; position: relative; }
.step { position: relative; padding-right: 2rem; display: grid; gap: .75rem; align-content: start; min-width: 0; }
.step .n { display: flex; align-items: center; gap: .75rem; font: 500 .8125rem/1 var(--f-mono); color: var(--primary); }
.step .n::after { content: ""; flex: 1; height: 1px; background: var(--rule); }
.step:last-child .n::after { background: linear-gradient(90deg, var(--rule), transparent); }
.step h3 { font-size: 1.25rem; font-weight: 700; }
.step p { font-size: .9375rem; }
.step .out { font: 500 .75rem/1.5 var(--f-mono); color: var(--muted); padding-top: .25rem; }
.step .out b { color: var(--ink); font-weight: 500; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; gap: 2.5rem 0; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } .step { padding-right: 0; } }

/* Product (navy) */
.product { background: var(--navy); color: var(--navy-text); position: relative; overflow: hidden; }
.product::before { content: ""; position: absolute; width: 46rem; height: 46rem; right: -14rem; top: -18rem; background: radial-gradient(circle, rgba(55,125,255,.35), transparent 62%); pointer-events: none; }
.product::after { content: ""; position: absolute; width: 30rem; height: 30rem; left: -12rem; bottom: -16rem; background: radial-gradient(circle, rgba(0,201,167,.18), transparent 62%); pointer-events: none; }
.product .wrap { position: relative; z-index: 1; }
.product h2, .product h3 { color: var(--navy-ink); }
.product .eyebrow { color: var(--teal); }
.product .head p { color: var(--navy-text); }
.ji-mark { display: inline-flex; align-items: center; gap: .625rem; font: 700 1rem/1 var(--f-display); color: #fff; letter-spacing: -.01em; }
.ji-mark span { width: 1.75rem; height: 1.75rem; border-radius: var(--r); background: var(--primary); display: grid; place-items: center; font: 800 .75rem/1 var(--f-display); }

.flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: stretch; gap: 1rem; margin-bottom: 4rem; }
.flow-card { border: 1px solid var(--navy-rule); background: var(--navy-card); border-radius: var(--r-lg); padding: 1.25rem 1.5rem; display: grid; gap: .5rem; min-width: 0; }
.flow-card .lbl { font: 500 .6875rem/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--navy-text); opacity: .8; }
.flow-card .val { font: 700 1.125rem/1.3 var(--f-display); color: #fff; }
.flow-card .sub { font: 400 .8125rem/1.5 var(--f-mono); color: var(--navy-text); }
.flow-arrow { display: grid; place-items: center; color: var(--teal); }
.flow-arrow svg { width: 1.5rem; height: 1.5rem; }
@media (max-width: 860px) { .flow { grid-template-columns: 1fr; } .flow-arrow svg { transform: rotate(90deg); } }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem 3rem; }
.feature { display: grid; grid-template-columns: auto 1fr; gap: .25rem 1rem; min-width: 0; }
.feature .ic { grid-row: span 2; width: 2.5rem; height: 2.5rem; border-radius: var(--r); background: rgba(255,255,255,.07); border: 1px solid var(--navy-rule); display: grid; place-items: center; color: var(--teal); }
.feature .ic svg { width: 1.125rem; height: 1.125rem; }
.feature h3 { font-size: 1.0625rem; font-weight: 700; letter-spacing: -.01em; padding-top: .125rem; }
.feature p { font-size: .9375rem; line-height: 1.6; }
.soon { display: inline-block; font: 500 .625rem/1 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--navy); background: var(--peach); padding: .25rem .375rem; border-radius: var(--r-sm); vertical-align: middle; margin-left: .375rem; }
@media (max-width: 960px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .features { grid-template-columns: 1fr; } }

.product-cta { margin-top: 4rem; padding-top: 2.5rem; border-top: 1px solid var(--navy-rule); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; }
.product-cta p { color: #fff; font: 600 1.25rem/1.4 var(--f-display); max-width: 36rem; }
.product-cta p small { display: block; font: 400 .9375rem/1.5 var(--f-body); color: var(--navy-text); margin-top: .25rem; }
.product-cta .ctas { display: flex; flex-wrap: wrap; gap: .75rem; }

/* Why */
.why { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.why h2 { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.08; font-weight: 800; }
.why-copy { display: grid; gap: 1.25rem; font-size: 1.0625rem; max-width: 36rem; }
.why-copy p strong { color: var(--ink); font-weight: 600; }
.why-list { display: grid; gap: 0; margin-top: .75rem; border-top: 1px solid var(--rule); }
.why-list div { display: grid; grid-template-columns: 9rem 1fr; gap: 1rem; padding-block: 1rem; border-bottom: 1px solid var(--rule); font-size: .9375rem; }
.why-list dt { font: 500 .8125rem/1.6 var(--f-mono); color: var(--muted); }
.why-list dd { margin: 0; color: var(--ink); }
@media (max-width: 860px) { .why { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .why-list div { grid-template-columns: 1fr; gap: .25rem; } }

/* Contact */
.contact { padding-block: 0 clamp(4rem, 9vw, 6rem); }
.contact-card { background: linear-gradient(135deg, var(--primary) 0%, #2a5fd6 100%); border-radius: 1rem; padding: clamp(2rem, 5vw, 3.5rem); display: grid; grid-template-columns: 1.3fr 1fr; gap: 2.5rem; align-items: center; color: rgba(255,255,255,.85); position: relative; overflow: hidden; }
.contact-card::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.14) 1px, transparent 1px); background-size: 20px 20px; mask-image: linear-gradient(270deg, #000, transparent 60%); -webkit-mask-image: linear-gradient(270deg, #000, transparent 60%); pointer-events: none; }
.contact-card > * { position: relative; z-index: 1; min-width: 0; }
.contact-card h2 { color: #fff; font-size: clamp(1.875rem, 3.6vw, 2.75rem); line-height: 1.1; font-weight: 800; margin-bottom: 1rem; }
.contact-card p { font-size: 1.0625rem; max-width: 30rem; }
.reach { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); border-radius: var(--r-lg); padding: 1.5rem; display: grid; gap: 1rem; }
.reach .lbl { font: 500 .6875rem/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.7); }
.reach .addr { display: flex; align-items: center; justify-content: space-between; gap: .75rem; background: #fff; border-radius: var(--r); padding: .5rem .5rem .5rem 1rem; }
.reach .addr span { font: 500 .9375rem/1.3 var(--f-mono); color: #21325b; user-select: all; overflow-wrap: anywhere; min-width: 0; }
.reach .copy { flex: none; height: 2.25rem; padding-inline: .875rem; font: 600 .8125rem/1 var(--f-body); border-radius: var(--r-sm); border: 0; background: #21325b; color: #fff; cursor: pointer; }
.reach .copy:hover { background: #1a2849; }
.reach small { font-size: .8125rem; color: rgba(255,255,255,.75); }
@media (max-width: 860px) { .contact-card { grid-template-columns: 1fr; } }

/* Footer */
footer { border-top: 1px solid var(--rule); padding-block: 2.5rem; font-size: .875rem; color: var(--muted); }
footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; }
footer nav { display: flex; flex-wrap: wrap; gap: 1.5rem; }
footer nav a:hover { color: var(--primary); }

/* Site-only additions (replace inline styles from the prototype) */
.engage-label + .engage { margin-top: 1.25rem; }
.product .head h2 .ji-mark { display: flex; margin-bottom: 1rem; }
.why .eyebrow { display: block; margin-bottom: 1.25rem; }
footer .logo { font-size: 1.25rem; }
.reach .addr a { color: inherit; }
.not-found { padding-block: clamp(5rem, 14vw, 9rem); display: grid; gap: 1.25rem; justify-items: start; }
.not-found h1 { font-size: clamp(2.5rem, 6vw, 4rem); font-weight: 800; line-height: 1.05; }
.not-found .code { font: 500 .875rem/1 var(--f-mono); color: var(--primary); }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* Nav: current page */
.nav-links a[aria-current="page"] { opacity: 1; color: var(--primary); }
.nav-links { gap: 1.75rem; }
@media (max-width: 1040px) { .nav-links { gap: 1.25rem; font-size: .875rem; } }

/* Inner page header (Team, Articles) */
.page-head { padding-block: clamp(3.5rem, 8vw, 6rem) clamp(2.5rem, 5vw, 3.5rem); border-bottom: 1px solid var(--rule); background: var(--surface); position: relative; overflow: hidden; }
.page-head::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(var(--rule) 1px, transparent 1px); background-size: 24px 24px; mask-image: linear-gradient(90deg, transparent 35%, #000 100%); -webkit-mask-image: linear-gradient(90deg, transparent 35%, #000 100%); pointer-events: none; }
.page-head .wrap { position: relative; display: grid; gap: 1.25rem; }
.page-head h1 { font-size: clamp(2.5rem, 5vw, 3.75rem); line-height: 1.05; font-weight: 800; max-width: 48rem; }
.page-head p { font-size: 1.1875rem; max-width: 40rem; }

.text-link { display: inline-flex; align-items: center; gap: .375rem; color: var(--primary); font-weight: 600; white-space: nowrap; }
.text-link svg { width: 1rem; height: 1rem; transition: transform .2s; }
.text-link:hover svg { transform: translateX(3px); }

/* Team */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.member { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r-lg); padding: 2rem; display: grid; gap: 1.25rem; align-content: start; min-width: 0; transition: border-color .2s, box-shadow .2s; }
.member:hover { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.avatar { width: 6rem; height: 6rem; border-radius: 50%; background: var(--surface-2); border: 3px solid var(--surface); box-shadow: 0 0 0 1px var(--rule); object-fit: cover; }
.member .avatar { justify-self: center; }
.member-id { display: grid; gap: .25rem; text-align: center; }
.member h2 { font-size: 1.375rem; font-weight: 700; letter-spacing: -.015em; }
.member .role { font: 500 .8125rem/1.4 var(--f-mono); color: var(--primary); }
.member-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.member-links a { display: inline-flex; align-items: center; gap: .5rem; height: 2.25rem; padding-inline: .75rem; border: 1px solid var(--rule); border-radius: var(--r); font: 500 .8125rem/1 var(--f-mono); color: var(--ink); background: var(--bg); transition: border-color .2s, color .2s; }
.member-links a:hover { border-color: var(--primary); color: var(--primary); }
.member-links svg { width: 1rem; height: 1rem; flex: none; }
.member .member-links { justify-content: center; }
@media (max-width: 900px) { .team-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .team-grid { grid-template-columns: 1fr; } .member { padding: 1.5rem; } }

/* Article cards (home + list) */
.latest { border-top: 1px solid var(--rule); }
.latest-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.article-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.article-card { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r-lg); padding: 1.75rem; display: grid; grid-template-rows: auto auto 1fr auto; gap: .875rem; min-width: 0; position: relative; transition: border-color .2s, transform .2s; }
.article-card:hover { border-color: var(--primary); transform: translateY(-2px); }
.article-card h3 { font-size: 1.25rem; line-height: 1.3; font-weight: 700; letter-spacing: -.015em; }
.article-card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.article-card p { font-size: .9375rem; }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .375rem 1rem; font: 500 .75rem/1.4 var(--f-mono); color: var(--muted); font-variant-numeric: tabular-nums; }
.badge-draft { font: 600 .6875rem/1 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--navy); background: var(--peach); padding: .3125rem .5rem; border-radius: var(--r-sm); }
.article-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; padding-top: 1rem; border-top: 1px solid var(--rule); }
.byline { display: inline-flex; align-items: center; gap: .625rem; font-size: .875rem; color: var(--ink); }
.byline img { border-radius: 50%; background: var(--surface-2); }
.article-foot .tags, .post-foot .tags { padding: 0; }
.empty { padding: 3rem; border: 1px dashed var(--rule); border-radius: var(--r-lg); display: grid; gap: .5rem; justify-items: start; }
.empty h2 { font-size: 1.375rem; }
@media (max-width: 960px) { .latest-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 720px) { .latest-grid, .article-list { grid-template-columns: 1fr; } .article-card { padding: 1.5rem; } }

/* Single article */
.wrap.narrow { max-width: 47rem; }
.post-head { padding-block: clamp(2.5rem, 6vw, 4rem) clamp(2rem, 4vw, 3rem); border-bottom: 1px solid var(--rule); background: var(--surface); margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.post-head .wrap { display: grid; gap: 1.25rem; }
.post-head h1 { font-size: clamp(2.125rem, 4.6vw, 3.25rem); line-height: 1.08; font-weight: 800; }
.post-lede { font-size: 1.1875rem; line-height: 1.6; }
.post-head .byline img { width: 2.5rem; height: 2.5rem; }
.post-head .byline b { font-weight: 600; }
.back { display: inline-flex; align-items: center; gap: .5rem; font: 500 .8125rem/1 var(--f-mono); color: var(--muted); justify-self: start; }
.back:hover { color: var(--primary); }
.back svg { width: .875rem; height: .875rem; }
.flip { transform: scaleX(-1); }
.post-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-block: 3rem clamp(4rem, 8vw, 6rem); padding-top: 1.5rem; border-top: 1px solid var(--rule); }

/* Article body typography */
.prose { font-size: 1.0625rem; line-height: 1.75; color: var(--text); overflow-wrap: break-word; }
.prose > * { margin-block: 0; }
.prose > * + * { margin-top: 1.25em; }
.prose h2 { font-size: 1.625rem; line-height: 1.25; font-weight: 700; margin-top: 2.25em; }
.prose h3 { font-size: 1.25rem; line-height: 1.35; font-weight: 700; margin-top: 1.75em; }
.prose h2 + *, .prose h3 + * { margin-top: .75em; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a { color: var(--primary); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.375em; }
.prose li + li { margin-top: .375em; }
.prose li::marker { color: var(--primary); }
.prose code { font: 500 .875em/1.5 var(--f-mono); background: var(--primary-soft); color: var(--ink); padding: .125em .375em; border-radius: var(--r-sm); }
.prose pre { background: var(--navy); color: #e7eaf3; padding: 1.25rem 1.5rem; border-radius: var(--r-lg); overflow-x: auto; font-size: .875rem; line-height: 1.65; }
.prose pre code { background: none; color: inherit; padding: 0; font-size: inherit; }
.prose blockquote { border-left: 3px solid var(--primary); padding-left: 1.25rem; color: var(--ink); font-style: italic; }
.prose table { width: 100%; border-collapse: collapse; font-size: .9375rem; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: .625rem .75rem; border-bottom: 1px solid var(--rule); }
.prose th { font: 500 .75rem/1.2 var(--f-mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.prose hr { border: 0; border-top: 1px solid var(--rule); margin-block: 2.5em; }
.prose img { border-radius: var(--r-lg); }

/* Phones: fit the sample invoice without sideways scrolling */
@media (max-width: 520px) {
  .inv-table table { min-width: 0; }
  .inv-table th, .inv-table td { padding-inline: 1rem; }
  .inv-top, .inv-foot { padding-inline: 1rem; }
  .inv-source { padding-inline: 1rem; }
}
