/* NexusWorks Pakistan — v2 design system
   Ledger aesthetic: warm paper, deep navy, brand pink used sparingly, teal for data. */

:root {
  --navy-950: #061423;
  --navy-900: #0A1F35;
  --navy-800: #102A45;
  --navy-700: #1A3A5C;
  --ink: #0C1B2E;
  --ink-2: #3A4A5E;
  --muted: #66758A;
  --paper: #F5F7FA;
  --paper-2: #EDF1F6;
  --card: #FFFFFF;
  --line: #E2E8F0;
  --line-dark: rgba(255, 255, 255, .12);
  --pink: #17A34A;
  --pink-600: #12813A;
  --pink-50: #ECFDF3;
  --teal: #22C55E;
  --teal-300: #4ADE80;
  --teal-50: #ECFDF3;
  --amber: #E9A23B;

  --f-display: "Plus Jakarta Sans", system-ui, sans-serif;
  --f-body: "Plus Jakarta Sans", system-ui, sans-serif;
  --f-mono: "Plus Jakarta Sans", system-ui, sans-serif;

  --r-sm: 8px;
  --r: 12px;
  --r-lg: 18px;
  --shadow-sm: 0 1px 2px rgba(12, 27, 46, .06);
  --shadow: 0 12px 32px -14px rgba(12, 27, 46, .18);
  --shadow-lg: 0 30px 60px -24px rgba(6, 20, 35, .35);
  --wrap: 1200px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--pink); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 6px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- Type ---------- */
h1, h2, h3, h4 { margin: 0; line-height: 1.12; font-weight: 400; }
.display { font-family: var(--f-display); letter-spacing: -.01em; }
.h1 { font-family: var(--f-display); font-weight: 800; font-size: clamp(2.4rem, 5vw, 4rem); line-height: 1.05; letter-spacing: -.03em; }
.h2 { font-family: var(--f-display); font-weight: 800; font-size: clamp(1.8rem, 3.2vw, 2.5rem); letter-spacing: -.025em; line-height: 1.12; }
.h3 { font-family: var(--f-body); font-weight: 650; font-size: 1.15rem; letter-spacing: -.005em; }
.h1 em, .h2 em { font-style: normal; color: var(--pink); }
.lead { font-size: 1.125rem; color: var(--ink-2); max-width: 60ch; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-mono); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--pink-600); margin-bottom: 14px; font-weight: 700;
}
.mono { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 12px 20px; border-radius: 10px; border: 1px solid transparent;
  font-weight: 600; font-size: .95rem; cursor: pointer; white-space: nowrap;
  transition: transform .25s var(--ease), background .25s, color .25s, border-color .25s, box-shadow .25s;
}
.btn svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-pink { background: var(--pink); color: #fff; box-shadow: 0 8px 20px -8px rgba(250, 49, 84, .6); }
.btn-pink:hover { background: var(--pink-600); transform: translateY(-1px); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: var(--navy-800); transform: translateY(-1px); }
.btn-ghost { border-color: var(--line); background: transparent; color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-ghost-light { border-color: rgba(255, 255, 255, .28); color: #fff; }
.btn-ghost-light:hover { border-color: #fff; background: rgba(255, 255, 255, .06); }
.btn-block { width: 100%; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--pink-600); font-size: .92rem; }
.link-arrow svg { width: 15px; height: 15px; transition: transform .25s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Placeholder marker (content awaiting real data) ---------- */
.ph { position: relative; outline: 1.5px dashed rgba(250, 49, 84, .55); outline-offset: 4px; }
.ph-tag {
  display: inline-block; font-family: var(--f-mono); font-size: .62rem; letter-spacing: .1em; text-transform: uppercase;
  background: var(--pink-50); color: var(--pink-600); border: 1px solid rgba(250, 49, 84, .3);
  padding: 2px 7px; border-radius: 4px; vertical-align: middle;
}

/* ---------- Announcement bar ---------- */
.announce { background: var(--navy-950); color: #DCE3F0; font-size: .85rem; }
.announce .wrap { display: flex; align-items: center; justify-content: center; gap: 14px; min-height: 42px; text-align: center; }
.announce a { display: inline-flex; align-items: center; gap: 10px; }
.announce .pill { font-family: var(--f-mono); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; background: var(--pink); color: #fff; padding: 3px 8px; border-radius: 4px; }
.announce b { color: #fff; font-weight: 600; }
.announce u { text-decoration-color: var(--pink); text-underline-offset: 4px; }

/* ---------- Header & mega-menu ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(247, 245, 240, .9); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s; }
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }
.nav { display: flex; align-items: center; gap: 28px; height: 76px; }
.brand { display: flex; flex-direction: column; gap: 3px; flex-shrink: 0; }
.brand img { height: 30px; width: auto; }
.brand small { font-family: var(--f-mono); font-size: .6rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); padding-left: 2px; }
.nav-menu { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0 0 0 auto; padding: 0; }
.nav-item { position: static; }
.nav-link {
  display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; border-radius: 999px;
  font-weight: 550; font-size: .94rem; color: var(--ink-2); background: none; border: 0; cursor: pointer;
  transition: color .2s, background .2s;
}
.nav-link svg { width: 12px; height: 12px; transition: transform .25s var(--ease); }
.nav-link:hover, .nav-item.open > .nav-link { color: var(--ink); background: var(--paper-2); }
.nav-item.open > .nav-link svg { transform: rotate(180deg); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { display: block; width: 18px; height: 1.6px; background: var(--ink); position: relative; transition: transform .3s var(--ease), background .2s; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; } .nav-toggle span::after { top: 6px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

.mega {
  position: absolute; left: 0; right: 0; top: 100%;
  padding: 0 24px; pointer-events: none;
  opacity: 0; transform: translateY(-6px); transition: opacity .22s, transform .28s var(--ease);
}
.nav-item.open .mega { opacity: 1; transform: none; pointer-events: auto; }
.mega-panel {
  max-width: var(--wrap); margin: 8px auto 0; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--shadow-lg); padding: 28px; display: grid; gap: 28px;
}
.mega-services { grid-template-columns: repeat(4, 1fr) 1.15fr; }
.mega-tools { grid-template-columns: repeat(3, 1fr); max-width: 900px; }
.mega-col h6 { margin: 0 0 12px; font-family: var(--f-mono); font-weight: 500; font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding: 0 10px; }
.mega-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.mega-col a { display: block; padding: 9px 10px; border-radius: 10px; transition: background .18s; }
.mega-col a:hover { background: var(--paper); }
.mega-col a b { display: block; font-weight: 600; font-size: .92rem; color: var(--ink); }
.mega-col a span { display: block; font-size: .8rem; color: var(--muted); line-height: 1.4; margin-top: 1px; }
.mega-col a:hover b { color: var(--pink-600); }
.mega-feature {
  border-radius: var(--r); padding: 22px; color: #fff; position: relative; overflow: hidden;
  background: radial-gradient(120% 90% at 100% 0%, rgba(31, 184, 164, .28), transparent 55%), var(--navy-900);
  display: flex; flex-direction: column; gap: 10px;
}
.mega-feature .tag { font-family: var(--f-mono); font-size: .64rem; letter-spacing: .14em; text-transform: uppercase; color: var(--teal-300); }
.mega-feature h5 { margin: 0; font-family: var(--f-display); font-weight: 750; letter-spacing: -.02em; font-size: 1.25rem; line-height: 1.15; }
.mega-feature p { margin: 0; font-size: .86rem; color: #C3CCDD; }
.mega-feature .link-arrow { color: #fff; margin-top: auto; }
.tool-card { display: flex; gap: 14px; padding: 14px; border-radius: var(--r); border: 1px solid var(--line); transition: border-color .2s, transform .25s var(--ease); }
.tool-card:hover { border-color: var(--ink); transform: translateY(-2px); }
.tool-card .ico { flex-shrink: 0; width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--paper-2); }
.tool-card .ico svg { width: 20px; height: 20px; }
.tool-card b { display: block; font-size: .94rem; }
.tool-card span { font-size: .8rem; color: var(--muted); line-height: 1.4; display: block; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 72px 0 56px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero .h1 { margin-bottom: 22px; }
.hero .lead { margin: 0 0 30px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 38px; }
.hero-points { margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); max-width: 560px; }
.hero-points li { list-style: none; display: flex; gap: 10px; align-items: flex-start; padding: 14px 12px 14px 0; border-bottom: 1px solid var(--line); font-size: .9rem; color: var(--ink-2); }
.hero-points li:nth-child(odd) { border-right: 1px solid var(--line); }
.hero-points li:nth-child(even) { padding-left: 16px; }
.hero-points svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--teal); margin-top: 2px; }
.hero-points ul { margin: 0; padding: 0; display: contents; }

.globe {
  position: relative; border-radius: 28px; overflow: hidden; aspect-ratio: 1.02;
  background: radial-gradient(80% 70% at 30% 20%, rgba(31, 184, 164, .22), transparent 60%),
              radial-gradient(70% 60% at 90% 90%, rgba(250, 49, 84, .18), transparent 60%), var(--navy-900);
  box-shadow: var(--shadow-lg); isolation: isolate;
}
.globe::after { /* grain */
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; opacity: .14; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.globe-map { position: absolute; inset: 14% -40% auto -8%; width: 150%; max-width: none; opacity: .9; }
.globe svg.arc { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; }
.arc-path { stroke-dasharray: 6 8; animation: dash 30s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -600; } }
.pulse { transform-box: fill-box; transform-origin: center; animation: pulse 2.4s var(--ease) infinite; }
@keyframes pulse { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(3.2); opacity: 0; } }
.clock {
  position: absolute; z-index: 4; padding: 14px 16px; border-radius: 16px; min-width: 176px;
  background: rgba(8, 16, 31, .62); border: 1px solid var(--line-dark); color: #fff;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.clock .city { font-family: var(--f-mono); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: #9FB0CB; display: flex; align-items: center; gap: 8px; }
.clock .city i { width: 7px; height: 7px; border-radius: 50%; background: var(--teal-300); box-shadow: 0 0 0 4px rgba(94, 224, 204, .18); }
.clock.pk .city i { background: var(--pink); box-shadow: 0 0 0 4px rgba(250, 49, 84, .2); }
.clock time { display: block; font-family: var(--f-mono); font-size: 1.55rem; font-weight: 500; letter-spacing: -.01em; margin-top: 4px; }
.clock small { display: block; font-size: .76rem; color: #B9C4D8; }
.clock.us { left: 6%; top: 8%; }
.clock.pk { right: 6%; bottom: 30%; }
.globe-foot {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 4; padding: 18px 22px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px; border-top: 1px solid var(--line-dark);
  background: linear-gradient(to top, rgba(8, 16, 31, .9), rgba(8, 16, 31, .4));
  color: #fff; font-size: .82rem;
}
.globe-foot b { display: block; font-family: var(--f-display); font-weight: 750; letter-spacing: -.02em; font-size: 1.05rem; line-height: 1.2; }
.globe-foot span { color: #A9B6CC; }

/* ---------- Sections ---------- */
section { position: relative; }
.section { padding: 104px 0; }
.section-sm { padding: 72px 0; }
.section-head { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: end; margin-bottom: 52px; }
.section-head .lead { margin: 0; }
.section-head.center { grid-template-columns: 1fr; text-align: center; justify-items: center; }
.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }
.dark { background: var(--navy-900); color: #fff; }
.dark .lead, .dark .muted { color: #B6C1D4; }
.dark .eyebrow { color: var(--teal-300); }
.dark .h2 em { color: var(--pink); }

/* Service ledger (Pakistan-first service grid with hover highlight) */
.ledger { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.ledger-item {
  position: relative; padding: 32px 30px 30px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: transparent; transition: background .3s var(--ease); display: flex; flex-direction: column; min-height: 300px;
}
.ledger-item::before { content: ""; position: absolute; left: -1px; top: -1px; width: calc(100% + 2px); height: 3px; background: var(--pink); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.ledger-item:hover { background: var(--card); }
.ledger-item:hover::before { transform: scaleX(1); }
.ledger-item .num { font-family: var(--f-mono); font-size: .74rem; color: var(--muted); letter-spacing: .08em; display: flex; justify-content: space-between; margin-bottom: 26px; }
.ledger-item .num .jur { padding: 2px 8px; border: 1px solid var(--line); border-radius: 999px; font-size: .64rem; letter-spacing: .12em; }
.ledger-item .num .jur.pk { color: #0B7A6C; border-color: rgba(31, 184, 164, .45); background: var(--teal-50); }
.ledger-item .num .jur.us { color: var(--pink-600); border-color: rgba(250, 49, 84, .35); background: var(--pink-50); }
.ledger-item h3 { font-family: var(--f-display); font-weight: 750; letter-spacing: -.02em; font-size: 1.35rem; line-height: 1.08; margin-bottom: 12px; }
.ledger-item p { margin: 0 0 18px; color: var(--ink-2); font-size: .95rem; }
.ledger-item ul { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 7px; font-size: .88rem; color: var(--ink-2); }
.ledger-item li { display: flex; gap: 9px; align-items: baseline; }
.ledger-item li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--teal); flex-shrink: 0; transform: translateY(-2px); }
.ledger-item .link-arrow { margin-top: auto; }

/* Dual compliance */
.dual { overflow: hidden; }
.dual::before { content: ""; position: absolute; inset: 0; background: url("../img/network-connections.svg") center/cover no-repeat; opacity: .35; pointer-events: none; }
.dual .wrap { position: relative; }
.dual-grid { display: grid; grid-template-columns: 1fr auto 1fr; gap: 0; align-items: stretch; border: 1px solid var(--line-dark); border-radius: var(--r-lg); background: rgba(8, 16, 31, .45); backdrop-filter: blur(4px); }
.dual-col { padding: 38px 36px; }
.dual-col .badge { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: #9FB0CB; margin-bottom: 18px; }
.dual-col .badge i { width: 8px; height: 8px; border-radius: 50%; }
.dual-col h3 { font-family: var(--f-display); font-weight: 750; letter-spacing: -.02em; font-size: 1.5rem; margin-bottom: 10px; }
.dual-col p { color: #B6C1D4; margin: 0 0 22px; font-size: .95rem; }
.dual-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.dual-col li { padding: 12px 0; border-top: 1px solid var(--line-dark); display: flex; justify-content: space-between; gap: 16px; font-size: .92rem; }
.dual-col li span:last-child { font-family: var(--f-mono); font-size: .72rem; color: #8797B3; text-align: right; }
.dual-mid { width: 150px; border-left: 1px solid var(--line-dark); border-right: 1px solid var(--line-dark); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 24px 10px; text-align: center; }
.dual-mid .mark { width: 64px; height: 64px; border-radius: 18px; background: #fff; display: grid; place-items: center; box-shadow: 0 0 0 8px rgba(255, 255, 255, .05), 0 0 40px rgba(250, 49, 84, .35); }
.dual-mid .mark img { width: 40px; }
.dual-mid small { font-family: var(--f-mono); font-size: .64rem; letter-spacing: .14em; text-transform: uppercase; color: #9FB0CB; line-height: 1.6; }
.flow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 28px; counter-reset: flow; }
.flow-step { padding: 24px; border-radius: var(--r); border: 1px solid var(--line-dark); background: rgba(255, 255, 255, .03); counter-increment: flow; }
.flow-step::before { content: "0" counter(flow); font-family: var(--f-mono); font-size: .78rem; color: var(--pink); display: block; margin-bottom: 14px; }
.flow-step h4 { font-weight: 650; font-size: 1.02rem; margin-bottom: 6px; }
.flow-step p { margin: 0; font-size: .88rem; color: #B6C1D4; }

/* CPA report quick cards */
.cpa-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.cpa-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 22px 18px 20px;
  display: flex; flex-direction: column; gap: 14px; min-height: 196px;
  transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
}
.cpa-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.cpa-card .ico { width: 42px; height: 42px; border-radius: 12px; background: var(--pink-50); color: var(--pink-600); display: grid; place-items: center; }
.cpa-card .ico svg { width: 21px; height: 21px; }
.cpa-card b { font-size: 1rem; font-weight: 650; line-height: 1.25; }
.cpa-card span { font-size: .82rem; color: var(--muted); line-height: 1.45; }
.cpa-card .go { margin-top: auto; font-family: var(--f-mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--pink-600); }

/* Tools */
.tools-shell { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: start; }
.tabs { display: flex; gap: 4px; padding: 5px; background: var(--paper-2); border-radius: 999px; width: fit-content; max-width: 100%; overflow-x: auto; margin-bottom: 18px; }
.tab { border: 0; background: none; padding: 9px 16px; border-radius: 999px; font-weight: 600; font-size: .86rem; color: var(--muted); cursor: pointer; white-space: nowrap; transition: background .2s, color .2s; }
.tab[aria-selected="true"] { background: var(--card); color: var(--ink); box-shadow: var(--shadow-sm); }
.panel[hidden] { display: none; }
.calc {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow);
  display: grid; grid-template-columns: 1fr 1fr; overflow: hidden;
}
.calc-in { padding: 30px; display: grid; gap: 18px; align-content: start; }
.calc-in h3 { font-family: var(--f-display); font-weight: 750; letter-spacing: -.02em; font-size: 1.3rem; }
.calc-out { padding: 30px; background: var(--navy-900); color: #fff; display: grid; gap: 16px; align-content: start; position: relative; }
.field { display: grid; gap: 7px; }
.field label, .field .label { font-size: .8rem; font-weight: 600; color: var(--ink-2); }
.input, .select, textarea.input {
  width: 100%; padding: 13px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--paper);
  font-size: 1rem; transition: border-color .2s, box-shadow .2s, background .2s;
}
.input:focus, .select:focus { outline: none; border-color: var(--ink); background: #fff; box-shadow: 0 0 0 4px rgba(14, 22, 38, .07); }
.input-prefix { position: relative; }
.input-prefix span { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font-family: var(--f-mono); font-size: .8rem; color: var(--muted); }
.input-prefix .input { padding-left: 52px; font-family: var(--f-mono); }
.input-prefix.usd .input { padding-left: 32px; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23646E83' stroke-width='1.6'%3E%3Cpath d='M2 4l4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; cursor: pointer; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { border: 1px solid var(--line); background: transparent; padding: 6px 11px; border-radius: 999px; font-family: var(--f-mono); font-size: .76rem; cursor: pointer; transition: all .2s; }
.chip:hover, .chip.on { border-color: var(--ink); background: var(--ink); color: #fff; }
.out-label { font-family: var(--f-mono); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: #9FB0CB; }
.out-big { font-family: var(--f-mono); font-size: clamp(1.9rem, 3.4vw, 2.5rem); font-weight: 500; letter-spacing: -.02em; line-height: 1.1; }
.out-big small { font-size: .9rem; color: #9FB0CB; font-weight: 400; letter-spacing: 0; }
.out-rows { display: grid; gap: 0; border-top: 1px solid var(--line-dark); }
.out-rows div { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line-dark); font-size: .88rem; color: #C3CCDD; }
.out-rows div b { font-family: var(--f-mono); font-weight: 500; color: #fff; }
.bar { height: 10px; border-radius: 999px; background: rgba(255, 255, 255, .1); overflow: hidden; display: flex; }
.bar i { display: block; height: 100%; transition: width .6s var(--ease); }
.bar .tax { background: var(--pink); }
.bar .home { background: var(--teal-300); }
.bar-legend { display: flex; justify-content: space-between; font-size: .76rem; color: #9FB0CB; }
.bar-legend span::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 6px; vertical-align: 0; }
.bar-legend .l-tax::before { background: var(--pink); }
.bar-legend .l-home::before { background: var(--teal-300); }
.fine { font-size: .76rem; color: var(--muted); line-height: 1.5; margin: 0; }
.dark .fine, .calc-out .fine { color: #8797B3; }
.preview-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 34px; box-shadow: var(--shadow); display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: center; }
.preview-card h3 { font-family: var(--f-display); font-weight: 750; letter-spacing: -.02em; font-size: 1.4rem; margin-bottom: 8px; }
.preview-card p { margin: 0 0 20px; color: var(--ink-2); }
.mini-ring { width: 150px; height: 150px; }

/* Logo marquee (2 rows) */
.clients { padding: 84px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--card); overflow: hidden; }
.clients-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 36px; flex-wrap: wrap; }
.clients-head p { margin: 0; font-family: var(--f-mono); font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.marquee { display: grid; gap: 14px; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-row { display: flex; gap: 14px; width: max-content; animation: scroll 46s linear infinite; }
.marquee-row.rev { animation-direction: reverse; animation-duration: 54s; }
.marquee:hover .marquee-row { animation-play-state: paused; }
@keyframes scroll { to { transform: translateX(-50%); } }
.logo-tile {
  width: 200px; height: 86px; border-radius: var(--r); border: 1px solid var(--line); background: var(--paper);
  display: grid; place-items: center; gap: 2px; filter: grayscale(1); opacity: .6;
  transition: opacity .25s, filter .25s, border-color .25s, transform .25s var(--ease), background .25s;
}
.logo-tile:hover { opacity: 1; filter: none; border-color: var(--pink); background: #fff; transform: translateY(-2px); }
.logo-tile .lt-name { font-family: var(--f-display); font-weight: 750; letter-spacing: -.02em; font-size: 1rem; color: var(--ink); }
.logo-tile .lt-sub { font-family: var(--f-mono); font-size: .6rem; letter-spacing: .14em; text-transform: uppercase; color: var(--pink-600); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 44px; border-top: 1px solid var(--line); }
.stat { padding: 24px 20px 0 0; }
.stat + .stat { padding-left: 20px; border-left: 1px solid var(--line); }
.stat b { display: block; font-family: var(--f-display); font-weight: 750; letter-spacing: -.02em; font-size: 2.2rem; line-height: 1; margin-bottom: 8px; }
.stat span { font-size: .88rem; color: var(--muted); }

/* White label band */
.wl { border-radius: 28px; overflow: hidden; display: grid; grid-template-columns: 1.15fr .85fr; background: var(--navy-900); color: #fff; position: relative; }
.wl::before { content: ""; position: absolute; inset: 0; background: url("../img/dotted-world-map.svg") 120% 40%/90% no-repeat; opacity: .28; }
.wl-copy { position: relative; padding: 56px; }
.wl-copy .h2 { margin-bottom: 16px; }
.wl-copy p { color: #B6C1D4; margin: 0 0 28px; max-width: 52ch; }
.wl-list { position: relative; padding: 56px 48px; border-left: 1px solid var(--line-dark); background: rgba(255, 255, 255, .03); display: grid; align-content: center; gap: 0; }
.wl-list div { padding: 16px 0; border-bottom: 1px solid var(--line-dark); display: grid; grid-template-columns: 30px 1fr; gap: 6px 10px; }
.wl-list div:last-child { border-bottom: 0; }
.wl-list i { font-style: normal; font-family: var(--f-mono); font-size: .74rem; color: var(--pink); padding-top: 3px; }
.wl-list b { font-weight: 650; }
.wl-list span { grid-column: 2; font-size: .86rem; color: #A9B6CC; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
.contact-list { list-style: none; margin: 28px 0 0; padding: 0; border-top: 1px solid var(--line); }
.contact-list li { display: flex; justify-content: space-between; gap: 16px; padding: 15px 0; border-bottom: 1px solid var(--line); font-size: .94rem; }
.contact-list li span:first-child { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.form { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 32px; box-shadow: var(--shadow); display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form .full { grid-column: 1 / -1; }
.form-note { grid-column: 1 / -1; display: none; padding: 14px 16px; border-radius: 12px; background: var(--teal-50); color: #0B6157; font-size: .9rem; }
.form.sent .form-note { display: block; }

/* Footer */
.site-footer { background: var(--navy-950); color: #B6C1D4; padding: 72px 0 28px; font-size: .9rem; }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 36px; padding-bottom: 48px; border-bottom: 1px solid var(--line-dark); }
.foot-brand img { height: 26px; margin-bottom: 18px; }
.foot-brand p { margin: 0 0 18px; max-width: 34ch; }
.site-footer h6 { margin: 0 0 14px; font-family: var(--f-mono); font-weight: 500; font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: #fff; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.site-footer a:hover { color: #fff; }
.foot-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 24px; font-size: .8rem; color: #7F8CA6; }
.foot-bottom nav { display: flex; gap: 20px; }

/* ---------- Inner pages ---------- */
.page-hero { padding: 56px 0 64px; border-bottom: 1px solid var(--line); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-family: var(--f-mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 26px; }
.crumbs a:hover { color: var(--ink); }
.crumbs span[aria-hidden] { opacity: .5; }
.page-hero-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 56px; align-items: end; }
.page-hero .h1 { font-size: clamp(2.5rem, 5.4vw, 4.3rem); margin-bottom: 18px; }
.fact-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px; box-shadow: var(--shadow); }
.fact-card h4 { font-family: var(--f-mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin-bottom: 8px; }
.fact-card ul { list-style: none; margin: 0 0 20px; padding: 0; }
.fact-card li { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.fact-card li b { font-weight: 600; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.svc-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 34px; position: relative; overflow: hidden; }
.svc-card .tag { font-family: var(--f-mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--pink-600); }
.svc-card h3 { font-family: var(--f-display); font-weight: 750; letter-spacing: -.02em; font-size: 1.5rem; margin: 10px 0 10px; }
.svc-card p { color: var(--ink-2); margin: 0 0 20px; }
.check { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 0; }
.check li { display: flex; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); font-size: .95rem; }
.check li svg { width: 18px; height: 18px; color: var(--teal); flex-shrink: 0; margin-top: 3px; }
.auth-table { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; font-size: .94rem; }
.auth-table th, .auth-table td { text-align: left; padding: 16px 20px; border-bottom: 1px solid var(--line); vertical-align: top; }
.auth-table th { font-family: var(--f-mono); font-weight: 500; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); background: var(--paper); }
.auth-table tr:last-child td { border-bottom: 0; }
.auth-table td:first-child { font-weight: 650; white-space: nowrap; }
.auth-table .code { display: inline-block; font-family: var(--f-mono); font-size: .72rem; padding: 3px 8px; border-radius: 6px; background: var(--teal-50); color: #0B6157; margin-right: 8px; }
.table-wrap { overflow-x: auto; border-radius: var(--r-lg); }
.industries { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.industries div { background: var(--card); padding: 24px 22px; display: flex; gap: 14px; align-items: center; font-weight: 600; font-size: .95rem; transition: background .2s; }
.industries div:hover { background: var(--paper); }
.industries span { font-family: var(--f-mono); font-size: .72rem; color: var(--pink-600); }
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.step { padding: 24px 20px; border-radius: var(--r); background: rgba(255, 255, 255, .04); border: 1px solid var(--line-dark); }
.step i { font-style: normal; font-family: var(--f-mono); font-size: .74rem; color: var(--pink); }
.step h4 { font-weight: 650; font-size: 1rem; margin: 14px 0 8px; }
.step p { margin: 0; font-size: .86rem; color: #B6C1D4; }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; padding: 22px 0; font-weight: 600; font-size: 1.05rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--f-mono); font-weight: 400; font-size: 1.3rem; line-height: 1; color: var(--pink-600); transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 22px; color: var(--ink-2); max-width: 75ch; }
.cta-band { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; padding: 44px 48px; border-radius: 28px; background: var(--pink); color: #fff; position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; right: -40px; top: -60px; width: 300px; height: 300px; background: url("../img/nexusworks-monogram.svg") center/contain no-repeat; filter: brightness(0) invert(1); opacity: .1; }
.cta-band .h2 { max-width: 20ch; }
.cta-band .btn-ink { position: relative; z-index: 1; }

/* Tool pages */
.tool-layout { display: grid; grid-template-columns: 1.15fr .85fr; gap: 28px; align-items: start; }
.tool-layout .calc { grid-template-columns: 1fr; }
.slab-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.slab-table th, .slab-table td { padding: 11px 14px; border-bottom: 1px solid var(--line); text-align: left; }
.slab-table th { font-family: var(--f-mono); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.slab-table td { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.slab-table tr.active td { background: var(--pink-50); color: var(--pink-600); font-weight: 600; }
.side-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px; }
.side-card + .side-card { margin-top: 18px; }
.side-card h3 { font-family: var(--f-display); font-weight: 750; letter-spacing: -.02em; font-size: 1.2rem; margin-bottom: 12px; }
.grid6 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line-dark); border: 1px solid var(--line-dark); border-radius: var(--r); overflow: hidden; }
.grid6 div { background: var(--navy-900); padding: 16px; }
.grid6 span { display: block; font-size: .74rem; color: #9FB0CB; margin-bottom: 4px; }
.grid6 b { font-family: var(--f-mono); font-weight: 500; font-size: 1.05rem; }
.grid6 .hl b { color: var(--teal-300); }
.grid6 .hl-tax b { color: #FF8FA2; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 999px; background: linear-gradient(90deg, var(--pink) var(--p, 50%), var(--paper-2) var(--p, 50%)); cursor: pointer; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 2px solid var(--pink); box-shadow: var(--shadow-sm); }
input[type="range"]::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 2px solid var(--pink); }
.range-meta { display: flex; justify-content: space-between; font-family: var(--f-mono); font-size: .74rem; color: var(--muted); }

/* Scorecard */
.sc { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); overflow: hidden; max-width: 820px; margin: 0 auto; }
.sc-top { padding: 22px 30px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.sc-top .mono { font-size: .76rem; color: var(--muted); }
.sc-progress { height: 4px; background: var(--paper-2); }
.sc-progress i { display: block; height: 100%; width: 0; background: var(--pink); transition: width .45s var(--ease); }
.sc-body { padding: 40px 30px 34px; min-height: 420px; }
.sc-q { font-family: var(--f-display); font-weight: 750; letter-spacing: -.02em; font-size: clamp(1.4rem, 2.6vw, 1.9rem); line-height: 1.2; margin-bottom: 28px; max-width: 26ch; }
.sc-opts { display: grid; gap: 10px; }
.sc-opt { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; padding: 16px 18px; border-radius: 14px; border: 1px solid var(--line); background: var(--paper); cursor: pointer; font-weight: 550; transition: border-color .2s, background .2s, transform .2s var(--ease); }
.sc-opt:hover { border-color: var(--ink); background: #fff; transform: translateX(3px); }
.sc-opt kbd { font-family: var(--f-mono); font-size: .72rem; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 7px; border: 1px solid var(--line); background: #fff; color: var(--muted); flex-shrink: 0; }
.sc-opt.picked { border-color: var(--pink); background: var(--pink-50); }
.sc-nav { display: flex; justify-content: space-between; margin-top: 22px; }
.sc-back { background: none; border: 0; color: var(--muted); cursor: pointer; font-weight: 600; padding: 6px 0; }
.sc-back:disabled { opacity: .3; cursor: default; }
.sc-result { display: grid; grid-template-columns: auto 1fr; gap: 36px; align-items: center; }
.ring { width: 200px; height: 200px; position: relative; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 12; }
.ring .bg { stroke: var(--paper-2); }
.ring .fg { stroke-linecap: round; transition: stroke-dashoffset 1.2s var(--ease); }
.ring .val { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ring .val b { font-family: var(--f-display); font-weight: 750; letter-spacing: -.02em; font-size: 3.2rem; line-height: 1; }
.ring .val span { font-family: var(--f-mono); font-size: .72rem; color: var(--muted); }
.tier { display: inline-block; font-family: var(--f-mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; margin-bottom: 10px; }
.prio { list-style: none; margin: 18px 0 24px; padding: 0; counter-reset: p; }
.prio li { counter-increment: p; display: grid; grid-template-columns: 30px 1fr; gap: 4px 10px; padding: 12px 0; border-top: 1px solid var(--line); }
.prio li::before { content: "0" counter(p); font-family: var(--f-mono); font-size: .76rem; color: var(--pink-600); padding-top: 2px; }
.prio b { font-weight: 650; }
.prio span { grid-column: 2; font-size: .88rem; color: var(--muted); }

/* Drawer */
.drawer-bg { position: fixed; inset: 0; background: rgba(8, 16, 31, .5); z-index: 90; opacity: 0; pointer-events: none; transition: opacity .3s; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(460px, 100%); background: var(--paper); z-index: 91; transform: translateX(100%); transition: transform .4s var(--ease); display: flex; flex-direction: column; box-shadow: var(--shadow-lg); }
.drawer-open .drawer-bg { opacity: 1; pointer-events: auto; }
.drawer-open .drawer { transform: none; }
.drawer-head { padding: 24px 28px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
.drawer-head h3 { font-family: var(--f-display); font-weight: 750; letter-spacing: -.02em; font-size: 1.35rem; }
.drawer-close { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: #fff; cursor: pointer; font-size: 1.2rem; line-height: 1; }
.drawer .form { border: 0; box-shadow: none; background: transparent; grid-template-columns: 1fr; padding: 24px 28px; overflow-y: auto; }

/* 404 */
.nf { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 80px 0; }
.nf .h1 { margin: 10px 0 16px; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.hero .stagger > * { opacity: 0; transform: translateY(14px); animation: rise .9s var(--ease) forwards; }
.hero .stagger > *:nth-child(2) { animation-delay: .08s; }
.hero .stagger > *:nth-child(3) { animation-delay: .16s; }
.hero .stagger > *:nth-child(4) { animation-delay: .24s; }
.hero .stagger > *:nth-child(5) { animation-delay: .32s; }
.globe { animation: rise 1.1s .2s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .hero .stagger > * { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .mega-services { grid-template-columns: repeat(2, 1fr); }
  .mega-feature { grid-column: 1 / -1; }
  .cpa-grid { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 960px) {
  .nav { height: 68px; gap: 12px; }
  .nav-toggle { display: inline-flex; margin-left: auto; }
  .nav-cta .btn-ghost { display: none; }
  .nav-menu {
    position: fixed; left: 0; right: 0; top: var(--hdr, 110px); bottom: 0; margin: 0; padding: 12px 16px 40px;
    flex-direction: column; align-items: stretch; gap: 0; background: var(--paper); overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .25s, transform .3s var(--ease), visibility 0s .3s; border-top: 1px solid var(--line);
  }
  .nav-open .nav-menu { opacity: 1; visibility: visible; transform: none; transition: opacity .25s, transform .3s var(--ease); }
  .nav-open { overflow: hidden; }
  .nav-item { border-bottom: 1px solid var(--line); }
  .nav-link { width: 100%; justify-content: space-between; padding: 16px 6px; border-radius: 0; font-size: 1.05rem; background: none !important; }
  .mega { position: static; padding: 0; opacity: 1; transform: none; pointer-events: auto; display: none; }
  .nav-item.open .mega { display: block; }
  .mega-panel { margin: 0 0 14px; box-shadow: none; padding: 16px; border-radius: var(--r); grid-template-columns: 1fr !important; gap: 18px; }
  .hero-grid, .section-head, .tools-shell, .contact-grid, .page-hero-grid, .tool-layout, .wl { grid-template-columns: 1fr; }
  .section-head { gap: 18px; }
  .ledger { grid-template-columns: 1fr 1fr; }
  .dual-grid { grid-template-columns: 1fr; }
  .dual-mid { width: auto; border: 0; border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); flex-direction: row; padding: 18px; }
  .flow { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .wl-list { border-left: 0; border-top: 1px solid var(--line-dark); }
  .industries { grid-template-columns: 1fr 1fr; }
  .pair { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .section { padding: 72px 0; }
  .hero { padding: 40px 0 40px; }
  .announce { font-size: .78rem; }
  .announce .pill { display: none; }
  .nav-cta .btn-pink { display: none; }
  .hero-points { grid-template-columns: 1fr; }
  .hero-points li:nth-child(odd) { border-right: 0; }
  .hero-points li:nth-child(even) { padding-left: 0; }
  .globe { aspect-ratio: .82; }
  .clock { min-width: 0; padding: 10px 12px; }
  .clock.us { left: 5%; top: 5%; }
  .clock.pk { right: 5%; bottom: 25%; }
  .clock time { font-size: 1.15rem; }
  .globe-foot { grid-template-columns: 1fr 1fr; padding: 14px 16px; }
  .globe-foot b { font-size: 1.05rem; }
  .ledger { grid-template-columns: 1fr; }
  .ledger-item { min-height: 0; padding: 26px 22px; }
  .cpa-grid { grid-template-columns: 1fr 1fr; }
  .calc { grid-template-columns: 1fr; }
  .calc-in, .calc-out { padding: 22px; }
  .preview-card { grid-template-columns: 1fr; padding: 24px; }
  .mini-ring { display: none; }
  .wl-copy, .wl-list { padding: 32px 24px; }
  .form { grid-template-columns: 1fr; padding: 22px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; }
  .industries { grid-template-columns: 1fr; }
  .cta-band { padding: 32px 24px; }
  .grid6 { grid-template-columns: 1fr 1fr; }
  .sc-body { padding: 28px 20px; }
  .sc-result { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .prio { text-align: left; }
  .dual-col { padding: 28px 22px; }
  .auth-table td:first-child { white-space: normal; }
  .logo-tile { width: 160px; height: 72px; }
}

/* =====================================================================
   v3 — theme approved from the Dual-Jurisdiction mockup (navy + green)
   ===================================================================== */
body { background: #fff; }
.eyebrow { font-family: var(--f-body); font-size: .72rem; letter-spacing: .16em; }
.eyebrow.light { color: var(--teal-300); }
.btn-pink { box-shadow: 0 8px 20px -10px rgba(23, 163, 74, .7); }
.btn-mint { background: var(--teal-300); color: var(--navy-950); font-weight: 700; }
.btn-mint:hover { background: #86EFAC; transform: translateY(-1px); }
.btn-ghost.green { border-color: var(--pink); color: var(--pink-600); }
.btn-ghost.green:hover { background: var(--pink-50); }
.center-head { text-align: center; max-width: 760px; margin: 0 auto 40px; }
.center-head .h2 { margin-bottom: 10px; }
.center-head p:last-child { margin: 0; }

/* Top bar */
.topbar { background: var(--navy-950); color: #C9D4E3; font-size: .78rem; }
.topbar-in { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 40px; }
.topbar svg { width: 15px; height: 15px; color: var(--teal-300); flex-shrink: 0; }
.tb-tag { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: #fff; }
.tb-list { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; }
.tb-list li, .tb-list a { display: inline-flex; align-items: center; gap: 7px; }
.tb-list a { color: var(--teal-300); font-weight: 600; }

/* Header */
.site-header { background: rgba(255, 255, 255, .94); border-bottom-color: var(--line); }
.brand3 { flex-direction: row; align-items: center; gap: 10px; }
.brand3 img { width: 40px; height: 40px; }
.brand3 b { display: block; font-weight: 800; font-size: 1.2rem; letter-spacing: -.02em; line-height: 1.1; color: var(--ink); }
.brand3 small { display: block; font-family: var(--f-body); font-size: .68rem; letter-spacing: .02em; text-transform: none; color: var(--muted); padding: 0; }
.brand3.light b { color: #fff; }
.brand3.light small { color: #93A3B8; }
.foot-brand .brand3 { margin-bottom: 18px; }
.foot-brand .brand3 img { height: 40px; margin: 0; }
.nav-link { border-radius: 8px; font-weight: 600; }

/* Hero */
.hero3 { position: relative; background: var(--navy-900); color: #fff; overflow: hidden; min-height: 560px; display: flex; align-items: center; }
.hero3-media { position: absolute; top: 0; right: 0; bottom: 0; width: 60%; }
.hero3-media img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero3-media::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, var(--navy-900) 0%, rgba(10, 31, 53, .75) 22%, rgba(10, 31, 53, .1) 55%, transparent 100%); }
.hero3-media::after { content: ""; position: absolute; inset: auto 0 0 0; height: 30%; z-index: 1; background: linear-gradient(to top, rgba(10, 31, 53, .7), transparent); }
.jur-chip { position: absolute; z-index: 2; display: flex; align-items: center; gap: 10px; padding: 9px 14px 9px 10px; border-radius: 12px; background: rgba(255, 255, 255, .92); color: var(--ink); box-shadow: var(--shadow); }
.jur-chip b { display: block; font-size: .84rem; line-height: 1.2; }
.jur-chip small { display: block; font-size: .7rem; color: var(--muted); }
.jur-chip.us { left: 34%; top: 9%; }
.jur-chip.pk { right: 5%; top: 16%; }
.flag { width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0; background-size: cover; background-position: center; box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--line); }
.flag-us { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath fill='%23fff' d='M0 0h30v30H0z'/%3E%3Cpath fill='%23B22234' d='M0 0h30v2.3H0zm0 4.6h30v2.3H0zm0 4.6h30v2.3H0zm0 4.6h30v2.3H0zm0 4.6h30v2.3H0zm0 4.6h30v2.3H0zm0 4.6h30v2.3H0z'/%3E%3Cpath fill='%233C3B6E' d='M0 0h14v16H0z'/%3E%3C/svg%3E"); }
.flag-pk { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath fill='%23fff' d='M0 0h8v30H0z'/%3E%3Cpath fill='%2301411C' d='M8 0h22v30H8z'/%3E%3Ccircle cx='19.5' cy='15' r='7' fill='%23fff'/%3E%3Ccircle cx='21.5' cy='13.4' r='6' fill='%2301411C'/%3E%3Cpath fill='%23fff' d='m23.6 9.8.7 1.7 1.8.1-1.4 1.1.5 1.8-1.6-1-1.5 1 .5-1.8-1.4-1.1 1.8-.1z'/%3E%3C/svg%3E"); }
.hero3-in { position: relative; z-index: 3; padding: 64px 24px; }
.hero3-copy { max-width: 560px; }
.hero3 .h1 { color: #fff; margin-bottom: 18px; }
.hero3 .h1 em { color: var(--teal-300); display: block; }
.hero3 .lead { color: #C9D4E3; margin: 0 0 28px; }
.hero3-feats { display: flex; flex-wrap: wrap; gap: 26px; list-style: none; margin: 8px 0 0; padding: 0; }
.hero3-feats li { display: flex; align-items: center; gap: 10px; font-size: .8rem; font-weight: 600; line-height: 1.3; color: #E3EAF3; }
.hero3-feats svg { width: 26px; height: 26px; color: var(--teal-300); }

/* Trust strip */
.trust { border-bottom: 1px solid var(--line); background: #fff; }
.trust-in { display: grid; grid-template-columns: 1.1fr repeat(4, 1fr); align-items: center; min-height: 104px; }
.trust-title { font-size: 1.15rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; padding-right: 20px; }
.trust-item { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-left: 1px solid var(--line); }
.ti-ico { width: 40px; height: 40px; border-radius: 50%; background: var(--pink-50); color: var(--pink-600); display: grid; place-items: center; flex-shrink: 0; }
.ti-ico svg { width: 20px; height: 20px; }
.trust-item b { display: block; font-size: .9rem; }
.trust-item small { display: block; font-size: .76rem; color: var(--muted); }

/* Help cards */
.help { background: var(--paper); padding: 80px 0; }
.help-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.help-card { display: flex; gap: 16px; align-items: flex-start; padding: 26px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s, border-color .3s; }
.help-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--pink); }
.help-card.featured { background: var(--pink-50); border-color: rgba(23, 163, 74, .35); }
.hc-ico { width: 50px; height: 50px; border-radius: 12px; display: grid; place-items: center; background: var(--pink-50); color: var(--pink-600); flex-shrink: 0; }
.help-card.featured .hc-ico { background: #fff; }
.hc-ico svg { width: 26px; height: 26px; }
.help-card b { display: block; font-size: 1.08rem; font-weight: 800; letter-spacing: -.01em; margin-bottom: 6px; }
.help-card span span { display: block; font-size: .88rem; color: var(--ink-2); margin-bottom: 14px; }
.help-card em { font-style: normal; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: .86rem; color: var(--pink-600); }
.help-card em svg { width: 14px; height: 14px; }

/* Coordinated system */
.system { position: relative; padding: 76px 0; color: #fff; overflow: hidden; background: radial-gradient(60% 80% at 50% 50%, rgba(34, 197, 94, .14), transparent 70%), var(--navy-900); }
.system::before { content: ""; position: absolute; inset: 0; background: url("../img/network-connections.svg") center/cover no-repeat; opacity: .35; }
.system .wrap { position: relative; }
.system .h2 { color: #fff; }
.system .center-head p { color: #B6C1D4; }
.sys-grid { display: grid; grid-template-columns: 1fr auto 1.05fr auto 1fr; align-items: center; gap: 18px; }
.sys-card { padding: 24px; border-radius: var(--r-lg); border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .04); backdrop-filter: blur(4px); }
.sys-head { display: flex; gap: 12px; align-items: center; padding-bottom: 14px; margin-bottom: 12px; border-bottom: 1px solid var(--line-dark); }
.sys-head b { display: block; font-size: 1.02rem; }
.sys-head small { color: #93A3B8; font-size: .78rem; }
.sys-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.sys-card li { display: flex; gap: 10px; align-items: center; font-size: .88rem; color: #DCE4EE; }
.sys-card li svg { width: 17px; height: 17px; color: var(--teal-300); flex-shrink: 0; }
.sys-arrow { font-size: 1.6rem; color: var(--teal-300); }
.sys-core { text-align: center; padding: 28px 22px; border-radius: 24px; border: 1px solid rgba(74, 222, 128, .45); background: linear-gradient(160deg, rgba(34, 197, 94, .16), rgba(255, 255, 255, .03)); box-shadow: 0 0 60px -10px rgba(34, 197, 94, .35); }
.sys-core img { width: 48px; height: 48px; margin: 0 auto 10px; }
.sys-core b { display: block; font-size: 1.4rem; font-weight: 800; letter-spacing: -.02em; }
.sys-core small { display: block; color: #B6C1D4; font-size: .82rem; margin-bottom: 18px; }
.sys-core-feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.sys-core-feats span { display: grid; justify-items: center; gap: 6px; font-size: .68rem; line-height: 1.3; color: #DCE4EE; }
.sys-core-feats svg { width: 22px; height: 22px; color: var(--teal-300); }

/* Tools */
.tools3 { background: #fff; }
.tools3 .tools-shell { align-items: center; }
.tools-box { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 14px; }
.tools3 .tabs { width: 100%; border-radius: 12px; background: var(--paper); }
.tools3 .tab { flex: 1; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; }
.tools3 .tab svg { width: 16px; height: 16px; }
.tools3 .tab[aria-selected="true"] { background: var(--pink); color: #fff; }
.calc3 { display: grid; grid-template-columns: 1.1fr .9fr; gap: 18px; padding: 10px; }
.calc3.single { grid-template-columns: 1fr; }
.calc3-in { display: grid; gap: 14px; align-content: start; }
.calc3-in h3 { font-size: 1.1rem; font-weight: 800; }
.calc3-in p { margin: 0; }
.calc3-row { display: grid; grid-template-columns: 1.2fr 1fr; gap: 12px; }
.calc3-out { border-radius: var(--r); background: var(--pink-50); padding: 22px; display: grid; align-content: start; gap: 2px; }
.c3-label { display: inline-flex; align-items: center; gap: 8px; font-size: .8rem; font-weight: 700; color: var(--ink-2); margin-bottom: 10px; }
.c3-label svg { width: 18px; height: 18px; color: var(--pink-600); }
.c3-big { font-size: 2rem; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.c3-sub { font-size: .82rem; color: var(--muted); }
.c3-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; padding-top: 14px; border-top: 1px solid rgba(23, 163, 74, .2); }
.c3-pair b { display: block; font-size: 1rem; font-variant-numeric: tabular-nums; }
.c3-pair span { font-size: .74rem; color: var(--muted); }

/* Services */
.svc3-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.svc3 { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: start; padding: 24px; border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; transition: border-color .25s, box-shadow .25s, transform .25s var(--ease); }
.svc3:hover { border-color: var(--pink); box-shadow: var(--shadow); transform: translateY(-2px); }
.svc3-ico { width: 46px; height: 46px; border-radius: 12px; background: var(--pink-50); color: var(--pink-600); display: grid; place-items: center; }
.svc3-ico svg { width: 24px; height: 24px; }
.svc3-body b { display: block; font-size: 1.05rem; font-weight: 800; margin-bottom: 10px; }
.svc3-body ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.svc3-body li { display: flex; gap: 8px; align-items: center; font-size: .87rem; color: var(--ink-2); }
.svc3-body li svg { width: 15px; height: 15px; color: var(--pink); flex-shrink: 0; }
.svc3-go { align-self: center; color: var(--muted); transform: rotate(-90deg); }
.svc3-go svg { width: 16px; height: 16px; }
.svc3:hover .svc3-go { color: var(--pink-600); }

/* CPA reports */
.cpa3-box { border-radius: 22px; background: var(--paper); padding: 36px; }
.cpa3-head { max-width: 640px; margin-bottom: 24px; }
.cpa3-head .h2 { margin-bottom: 8px; }
.cpa3-head p:last-child { margin: 0; }
.cpa3 .cpa-card { min-height: 0; }
.cpa3 .cpa-card .ico { background: var(--pink-50); color: var(--pink-600); }

/* Proof */
.proof-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 34px; }
.stats3 { display: grid; grid-template-columns: repeat(3, 1fr); border-radius: var(--r-lg); background: var(--pink-50); padding: 26px 10px; }
.stats3 div { padding: 0 18px; }
.stats3 div + div { border-left: 1px solid rgba(23, 163, 74, .2); }
.stats3 b { display: block; font-size: 2rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; margin-bottom: 6px; }
.stats3 span { font-size: .82rem; color: var(--ink-2); }
.quote3 { border-radius: var(--r-lg); border: 1px solid var(--line); box-shadow: var(--shadow-sm); padding: 24px 26px; }
.quote3 .q-mark { font-size: 2.6rem; line-height: .6; color: var(--pink); font-weight: 800; }
.quote3 p { margin: 6px 0 12px; color: var(--ink-2); }
.q-by { font-size: .84rem; color: var(--muted); }
.clients-label { font-size: .74rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin: 0 0 16px; text-align: center; }

/* White label */
.wl3-wrap { padding-bottom: 40px; }
.wl3 { display: grid; grid-template-columns: 1.4fr 1fr auto; gap: 32px; align-items: center; padding: 38px 42px; border-radius: 24px; color: #fff; background: radial-gradient(80% 120% at 100% 0%, rgba(34, 197, 94, .2), transparent 60%), var(--navy-900); }
.wl3 .h2 { color: #fff; font-size: clamp(1.4rem, 2.4vw, 1.9rem); margin-bottom: 8px; }
.wl3-copy p:last-child { margin: 0; color: #B6C1D4; font-size: .92rem; }
.wl3-list { list-style: none; margin: 0; padding: 0 0 0 32px; border-left: 1px solid var(--line-dark); display: grid; gap: 10px; }
.wl3-list li { display: flex; gap: 10px; align-items: center; font-size: .9rem; }
.wl3-list svg { width: 17px; height: 17px; color: var(--teal-300); }

/* CTA strip */
.cta3 { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding-top: 20px; padding-bottom: 64px; }
.cta3 h2 { font-size: 1.6rem; font-weight: 800; letter-spacing: -.02em; margin-bottom: 4px; }
.cta3 p { margin: 0; }
.cta3-btns { display: flex; gap: 12px; flex-wrap: wrap; }

@media (max-width: 1100px) {
  .tb-list li:not(:last-child) { display: none; }
  .trust-in { grid-template-columns: repeat(2, 1fr); padding: 14px 24px; }
  .trust-title { grid-column: 1 / -1; padding: 10px 0; }
  .trust-item:nth-child(even) { border-left: 0; padding-left: 0; }
  .sys-grid { grid-template-columns: 1fr; }
  .sys-arrow { transform: rotate(90deg); justify-self: center; }
  .wl3 { grid-template-columns: 1fr; }
  .wl3-list { border-left: 0; padding-left: 0; }
}
@media (max-width: 960px) {
  .hero3 { flex-direction: column; align-items: stretch; min-height: 0; }
  .hero3-media { position: relative; width: 100%; height: 280px; order: 2; }
  .hero3-media::before { background: linear-gradient(to bottom, var(--navy-900), transparent 35%); }
  .hero3-in { padding: 44px 24px 32px; }
  .help-grid, .svc3-grid, .proof-grid { grid-template-columns: 1fr; }
  .calc3 { grid-template-columns: 1fr; }
  .jur-chip.us { left: 6%; top: 14%; }
  .jur-chip.pk { right: 6%; top: 46%; }
}
@media (max-width: 640px) {
  .topbar .tb-tag { font-size: .72rem; }
  .tb-list { display: none; }
  .hero3-in { padding: 36px 16px 28px; }
  .hero3-feats { gap: 16px; }
  .trust-in { grid-template-columns: 1fr; padding: 10px 16px; }
  .trust-item { border-left: 0 !important; padding: 10px 0 !important; border-top: 1px solid var(--line); }
  .calc3-row { grid-template-columns: 1fr; }
  .tools3 .tab { font-size: .76rem; padding: 8px 8px; }
  .tools3 .tab svg { display: none; }
  .cpa3-box { padding: 22px 16px; }
  .stats3 { grid-template-columns: 1fr; gap: 16px; }
  .stats3 div + div { border-left: 0; }
  .wl3 { padding: 28px 22px; }
}

.proof { overflow: hidden; }
.tools-shell > * { min-width: 0; }
@media (max-width: 640px) { .tools3 .tab { white-space: normal; line-height: 1.25; } }
