/* =========================================================
   Amit R Jain & Associates LLP — Design System
   Theme: "Ledger meets Circuit" — where financial precision
   (tally lines, ledger rules, tabular figures) resolves into
   digital protection (circuit traces, nodes, secure locks).
   ========================================================= */

/* Self-hosted fonts — avoids third-party font CDN dependency and lets
   the browser cache these locally with full control over headers. */
@font-face{
  font-family:'Space Grotesk'; font-style:normal; font-weight:400; font-display:swap;
  src: url('../assets/fonts/space-grotesk-latin-400-normal.woff2') format('woff2');
}
@font-face{
  font-family:'Space Grotesk'; font-style:normal; font-weight:500; font-display:swap;
  src: url('../assets/fonts/space-grotesk-latin-500-normal.woff2') format('woff2');
}
@font-face{
  font-family:'Space Grotesk'; font-style:normal; font-weight:600; font-display:swap;
  src: url('../assets/fonts/space-grotesk-latin-600-normal.woff2') format('woff2');
}
@font-face{
  font-family:'Space Grotesk'; font-style:normal; font-weight:700; font-display:swap;
  src: url('../assets/fonts/space-grotesk-latin-700-normal.woff2') format('woff2');
}
@font-face{
  font-family:'Inter'; font-style:normal; font-weight:400; font-display:swap;
  src: url('../assets/fonts/inter-latin-400-normal.woff2') format('woff2');
}
@font-face{
  font-family:'Inter'; font-style:normal; font-weight:500; font-display:swap;
  src: url('../assets/fonts/inter-latin-500-normal.woff2') format('woff2');
}
@font-face{
  font-family:'Inter'; font-style:normal; font-weight:600; font-display:swap;
  src: url('../assets/fonts/inter-latin-600-normal.woff2') format('woff2');
}
@font-face{
  font-family:'Inter'; font-style:normal; font-weight:700; font-display:swap;
  src: url('../assets/fonts/inter-latin-700-normal.woff2') format('woff2');
}
@font-face{
  font-family:'JetBrains Mono'; font-style:normal; font-weight:400; font-display:swap;
  src: url('../assets/fonts/jetbrains-mono-latin-400-normal.woff2') format('woff2');
}
@font-face{
  font-family:'JetBrains Mono'; font-style:normal; font-weight:500; font-display:swap;
  src: url('../assets/fonts/jetbrains-mono-latin-500-normal.woff2') format('woff2');
}
@font-face{
  font-family:'JetBrains Mono'; font-style:normal; font-weight:600; font-display:swap;
  src: url('../assets/fonts/jetbrains-mono-latin-600-normal.woff2') format('woff2');
}

:root{
  /* Color */
  --navy-deep:  #12163F;
  --navy:       #1F2A6D;
  --navy-mid:   #2A3080;
  --gold:       #F5A623;
  --gold-deep:  #C97F0E;
  --teal:       #3DDAD7;
  --teal-deep:  #0E7A78;
  --paper:      #FAF9F5;
  --paper-dim:  #F1EFE7;
  --ink:        #14161F;
  --ink-soft:   #4A4D5C;
  --line:       #E3E0D5;
  --white:      #FFFFFF;

  /* Type */
  --f-display: 'Space Grotesk', sans-serif;
  --f-body: 'Inter', sans-serif;
  --f-mono: 'JetBrains Mono', monospace;

  --container: 1180px;
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  font-family: var(--f-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img{ max-width:100%; display:block; }
a{ color: inherit; text-decoration: none; }
ul{ margin:0; padding:0; list-style:none; }
h1,h2,h3,h4{
  font-family: var(--f-display);
  color: var(--navy-deep);
  margin: 0 0 .5em;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
p{ margin: 0 0 1em; color: var(--ink-soft); }
.mono{ font-family: var(--f-mono); }

:focus-visible{
  outline: 2px solid var(--teal-deep);
  outline-offset: 3px;
}

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

@media (prefers-reduced-motion: reduce){
  *{ animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

/* ---------- Eyebrow / labels ---------- */
.eyebrow{
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-deep);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
.eyebrow::before{
  content: "";
  width: 18px; height: 2px;
  background: var(--gold);
  display: inline-block;
}

/* ---------- Signature divider: ledger tally -> circuit trace ---------- */
.ledger-divider{
  width: 100%;
  height: 20px;
  margin: 8px 0 36px;
}
.ledger-divider svg{ width: 100%; height: 100%; display:block; }

/* ---------- Header ---------- */
.site-header{
  position: sticky; top:0; z-index: 100;
  border-bottom: 1px solid var(--line);
  isolation: isolate;
}
.site-header::before{
  content:"";
  position:absolute; inset:0; z-index:-1;
  background: rgba(250,249,245,0.92);
  backdrop-filter: blur(10px);
}
.header-inner{
  display:flex; align-items:center; justify-content: space-between;
  padding: 14px 0;
}
.brand-cluster{ display:flex; align-items:center; }
.brand{
  display:flex; align-items:center; gap: 12px;
}
.brand img{ height: 44px; width: auto; object-fit: contain; }
.brand-text{ display:flex; flex-direction:column; line-height:1.15; }
.brand-name{
  font-family: var(--f-display); font-weight:700; font-size: 1.02rem; color: var(--navy-deep);
}
.brand-sub{
  font-family: var(--f-mono); font-size: 0.62rem; letter-spacing: .08em; color: var(--gold-deep); text-transform:uppercase;
}

/* Nav layout — CSS Grid with `gap`, which creates uniform spacing
   between every item directly (no margin-collapse ambiguity, no
   last-child exceptions, nothing for one item's box to "leak" past). */
nav.main-nav{ display:grid; grid-auto-flow:column; align-items:center; gap:30px; }
nav.main-nav a{
  font-size: 0.92rem; font-weight: 500; color: var(--ink);
  position: relative; padding: 4px 0;
}
nav.main-nav a:hover{ color: var(--navy); }
nav.main-nav a.active{ color: var(--navy); }
nav.main-nav a.active::after{
  content:""; position:absolute; left:0; right:0; bottom:-6px; height:2px; background: var(--gold);
}
.has-dropdown{ position: relative; }
.has-dropdown > a{
  display:inline-flex; align-items:center; cursor:pointer;
}
.nav-chevron{ flex:none; width:10px; height:10px; transition: transform .15s ease; }
.has-dropdown.js-open .nav-chevron{ transform: rotate(180deg); }

/* Services mega-menu — visibility is driven entirely by the .js-open
   class, toggled from JS on hover (with a short close-delay so moving
   the mouse across the gap below doesn't lose it), click, and keyboard
   focus. No raw :hover/:focus-within rule is used here — a delay-free
   CSS :hover rule is exactly what caused the mouse to lose the dropdown
   while crossing the gap between the trigger and the panel. */
.dropdown.mega-menu{
  position:absolute; top: calc(100% + 16px); left: 0;
  transform: translateY(8px);
  background: var(--white); border:1px solid var(--line); border-radius: 14px;
  box-shadow: 0 2px 6px rgba(18,22,63,0.06), 0 16px 40px rgba(18,22,63,0.14), 0 30px 60px rgba(18,22,63,0.08);
  padding: 10px; width: 580px; max-width: calc(100vw - 32px);
  opacity:0; visibility:hidden; pointer-events:none;
  transition: opacity .16s cubic-bezier(.4,0,.2,1), transform .16s cubic-bezier(.4,0,.2,1), visibility .16s;
}
.has-dropdown.js-open .dropdown.mega-menu{
  pointer-events:auto;
  opacity:1; visibility:visible; transform: translateY(0);
}
.mega-grid{
  display:grid; grid-template-columns: 1fr 1fr; gap: 4px;
}
.mega-item{
  display:block;
  padding: 12px 14px; border-radius: 10px;
  position: relative; overflow: hidden;
  transition: background-color .14s ease;
}
.mega-item::before{
  content:""; position:absolute; inset:0; border-radius:10px;
  background: var(--teal); opacity:0; transform: scale(0.85);
  transition: opacity .25s ease, transform .35s cubic-bezier(.4,0,.2,1);
  pointer-events:none;
}
.mega-item:hover{ background: var(--paper-dim); }
.mega-item:hover::before{ opacity: 0.06; transform: scale(1); }
.mega-item:active::before{ opacity: 0.12; }
.mega-text{ position:relative; z-index:1; min-width:0; }
.mega-title{
  display:block; font-family: var(--f-display); font-weight:600; font-size: 0.88rem;
  color: var(--navy-deep); margin-bottom: 2px;
}
.mega-item.active{ background: rgba(61,218,215,0.08); }
.mega-item.active .mega-title{ color: var(--teal-deep); }
.mega-desc{
  display:block; font-size: 0.76rem; color: var(--ink-soft); line-height:1.4;
}
.mega-footer{
  display:flex; align-items:center; justify-content:space-between;
  margin-top: 6px; padding: 12px 14px 8px; border-top: 1px solid var(--line);
  font-family: var(--f-mono); font-size: 0.74rem; letter-spacing:.03em;
  color: var(--navy); font-weight:600; text-transform:uppercase;
  border-radius: 0 0 8px 8px;
}
.mega-footer:hover{ color: var(--teal-deep); }
.mega-footer span{ transition: transform .15s ease; }
.mega-footer:hover span{ transform: translateX(3px); }

@media (max-width: 900px){
  .dropdown.mega-menu{
    position:static; opacity:1; visibility:visible; transform:none;
    box-shadow:none; border:none; width:auto; max-width:none; padding: 4px 0 4px 6px;
    background: transparent; display:none;
  }
  .has-dropdown.js-open .dropdown.mega-menu{ display:block; }
  .mega-grid{ grid-template-columns: 1fr; gap:2px; }
  .mega-item{ padding: 10px 8px; }
  .mega-footer{ display:none; }
}

/* Contact Us now behaves like any other nav link (no button treatment) */

/* CA India membership badge, shown in the header */
.ca-badge{
  display:flex; align-items:center; gap:8px;
  padding-left: 18px; margin-left: 6px; border-left: 1px solid var(--line);
}
.ca-badge img{ width: 34px; height: 34px; object-fit: contain; }
.ca-badge-text{ display:flex; flex-direction:column; line-height:1.1; }
.ca-badge-text .l1{ font-family: var(--f-mono); font-size: 0.6rem; letter-spacing:.06em; text-transform:uppercase; color: var(--ink-soft); }
.ca-badge-text .l2{ font-family: var(--f-display); font-size: 0.74rem; font-weight:600; color: var(--navy-deep); }
@media (max-width: 980px){
  .ca-badge{ display:none; }
}

.nav-toggle{
  display:none; background:none; border:none; cursor:pointer; padding:8px;
}
.nav-toggle span{ display:block; width:24px; height:2px; background: var(--navy-deep); margin:5px 0; transition: all .2s; }

@media (max-width: 900px){
  nav.main-nav{
    position: fixed;
    top: var(--mobile-header-h, 72px); left:0; right:0; bottom:0;
    background: var(--paper);
    display:flex; flex-direction: column; flex-wrap: nowrap; align-items: stretch;
    gap:0;
    padding: 10px 28px 30px; overflow-y:auto; overflow-x:hidden;
    transform: translateX(100%); transition: transform .25s ease;
    z-index: 99;
  }
  nav.main-nav.open{ transform: translateX(0); }
  nav.main-nav > a{ display:block; width:100%; padding: 14px 0; border-bottom:1px solid var(--line); }
  nav.main-nav > .has-dropdown{ display:block; width:100%; }
  .has-dropdown > a{ display:block; width:100%; padding: 14px 0; border-bottom:1px solid var(--line); }
  .nav-cta{ margin-top: 16px; text-align:center; }
  .nav-toggle{ display:block; }
}

/* ---------- Hero ---------- */
.hero{
  position: relative;
  padding: 84px 0 70px;
  background: var(--navy-deep);
  color: var(--white);
  overflow: hidden;
}
.hero::before{
  content:"";
  position:absolute; inset:0;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at 70% 30%, black 10%, transparent 65%);
  pointer-events:none;
}
.hero-grid{
  position:relative; z-index:1;
  display:grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items:center;
}
.hero h1{
  color: var(--white);
  font-size: clamp(2.2rem, 4.4vw, 3.6rem);
  margin-bottom: 18px;
}
.hero h1 .accent{ color: var(--gold); }
.hero h1 .accent2{ color: var(--teal); }
.hero p.lead{
  color: rgba(255,255,255,0.75);
  font-size: 1.08rem;
  max-width: 46ch;
  margin-bottom: 30px;
}
.hero-stats{
  display:flex; gap: 30px; margin-top: 34px; flex-wrap:wrap;
}
.hero-stat .num{
  font-family: var(--f-mono); font-size: 1.5rem; color: var(--teal); font-weight:600;
}
.hero-stat .label{
  font-size: 0.76rem; color: rgba(255,255,255,0.6); text-transform:uppercase; letter-spacing: .06em;
}
.hero-visual{ position:relative; }

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex; align-items:center; gap:8px;
  padding: 13px 26px; border-radius: 8px;
  font-weight: 600; font-size: 0.94rem; cursor:pointer; border:1px solid transparent;
  transition: all .15s ease;
}
.btn-primary{ background: var(--gold); color: var(--navy-deep); }
.btn-primary:hover{ background: var(--gold-deep); transform: translateY(-1px); }
.btn-ghost{ background: transparent; color: var(--white); border-color: rgba(255,255,255,0.35); }
.btn-ghost:hover{ border-color: var(--teal); color: var(--teal); }
.btn-dark{ background: var(--navy); color: var(--white); }
.btn-dark:hover{ background: var(--navy-mid); }
.btn-row{ display:flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Sections ---------- */
section{ padding: 76px 0; }
.section-alt{ background: var(--paper-dim); }
.section-navy{ background: var(--navy-deep); color: var(--white); }
.section-navy h2, .section-navy h3{ color: var(--white); }
.section-navy p{ color: rgba(255,255,255,0.72); }
.section-head{ max-width: 640px; margin-bottom: 40px; }
.section-head.center{ margin-left:auto; margin-right:auto; text-align:center; }

/* ---------- Cards ---------- */
.grid{ display:grid; gap: 24px; }
.grid-2{ grid-template-columns: repeat(2, 1fr); }
.grid-3{ grid-template-columns: repeat(3, 1fr); }
.grid-4{ grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px){
  .grid-2, .grid-3, .grid-4{ grid-template-columns: 1fr 1fr; }
  .hero-grid{ grid-template-columns: 1fr; }
}
@media (max-width: 620px){
  .grid-2, .grid-3, .grid-4{ grid-template-columns: 1fr; }
}

.card{
  display: block;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 28px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover{
  transform: translateY(-3px);
  box-shadow: 0 20px 40px rgba(18,22,63,0.08);
  border-color: var(--teal);
}
.card .icon-mark{
  width: 46px; height: 46px; border-radius: 10px;
  display:flex; align-items:center; justify-content:center;
  background: var(--navy-deep); color: var(--gold); margin-bottom: 18px;
  font-family: var(--f-mono); font-weight:600;
}
.card h3{ font-size: 1.08rem; margin-bottom: 8px; }
.card p{ font-size: 0.92rem; margin-bottom: 14px; }
.card .card-link{
  font-size: 0.84rem; font-weight:600; color: var(--navy);
  display:inline-flex; align-items:center; gap:6px;
}
.card .card-link:hover{ color: var(--teal-deep); }

/* Service list rows (ledger style) */
.ledger-list{ border-top: 1px solid var(--line); }
.ledger-list li{
  display:flex; align-items:baseline; justify-content:space-between; gap: 20px;
  padding: 16px 0; border-bottom: 1px dashed var(--line);
  font-family: var(--f-mono); font-size: 0.86rem; color: var(--ink);
}
.ledger-list li span.tag{
  font-size: 0.68rem; color: var(--teal-deep); text-transform:uppercase; letter-spacing:.06em;
}

/* Value / pillar blocks */
.pillar{
  display:flex; gap:16px; align-items:flex-start;
  padding: 22px 0; border-bottom: 1px solid var(--line);
}
.pillar:last-child{ border-bottom:none; }
.pillar .num{
  font-family: var(--f-mono); color: var(--gold-deep); font-weight:600; font-size: 0.85rem;
  padding-top: 4px;
}
.pillar h3{ font-size: 1.05rem; margin-bottom:6px; }
.pillar p{ margin:0; font-size: 0.92rem; }

/* Leadership */
.leader-card{ text-align:center; }
.leader-photo{
  width: 108px; height: 108px; border-radius: 50%;
  margin: 0 auto 16px; overflow:hidden; border: 3px solid var(--gold);
  background: var(--navy); display:flex; align-items:center; justify-content:center;
  color: var(--white); font-family: var(--f-display); font-weight:700; font-size:1.3rem;
}
.leader-photo img{ width:100%; height:100%; object-fit: cover; display:block; }
.leader-card h3{ font-size: 1rem; margin-bottom:2px; }
.leader-role{ font-family: var(--f-mono); font-size: 0.72rem; color: var(--gold-deep); text-transform:uppercase; letter-spacing:.05em; margin-bottom:6px; }
.leader-focus{ font-size: 0.86rem; color: var(--ink-soft); }

/* Timeline */
.timeline{ position:relative; padding-left: 30px; border-left: 2px dashed var(--line); }
.timeline-item{ position:relative; padding-bottom: 34px; }
.timeline-item:last-child{ padding-bottom:0; }
.timeline-item::before{
  content:""; position:absolute; left:-37px; top:2px;
  width:12px; height:12px; border-radius:50%; background: var(--white); border: 2px solid var(--teal);
}
.timeline-item .timeline-year{ font-family: var(--f-mono); color: var(--gold-deep); font-size:0.82rem; font-weight:600; margin-bottom:4px; }

/* CTA band */
.cta-band{
  background: var(--navy-deep); border-radius: 18px; padding: 52px 44px;
  display:flex; align-items:center; justify-content:space-between; gap: 30px; flex-wrap:wrap;
  position:relative; overflow:hidden;
}
.cta-band h2{ color: var(--white); margin-bottom: 8px; font-size: 1.7rem; }
.cta-band p{ color: rgba(255,255,255,0.72); margin:0; }

/* Breadcrumb / page hero (interior pages) */
.page-hero{
  background: var(--navy-deep); color: var(--white); padding: 54px 0 46px;
  position: relative; overflow:hidden;
}
.page-hero::before{
  content:"";
  position:absolute; inset:0;
  background-image: linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse at 85% 20%, black 5%, transparent 60%);
}
.breadcrumb{
  font-family: var(--f-mono); font-size: 0.76rem; color: rgba(255,255,255,0.55);
  position:relative; z-index:1; margin-bottom: 14px;
}
.breadcrumb a:hover{ color: var(--teal); }
.page-hero h1{ color: var(--white); position:relative; z-index:1; font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
.page-hero .tagline{ color: var(--gold); font-family: var(--f-mono); font-size:0.9rem; position:relative; z-index:1; }

/* Contact */
.contact-grid{ display:grid; grid-template-columns: 1fr 1fr; gap: 50px; }
@media (max-width: 900px){ .contact-grid{ grid-template-columns: 1fr; } }
.info-row{ display:flex; gap:16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.info-row .ic{
  width:38px; height:38px; border-radius:8px; background: var(--paper-dim); color: var(--navy);
  display:flex; align-items:center; justify-content:center; flex:none;
}
.info-row h4{ margin:0 0 4px; font-family: var(--f-display); font-size:0.96rem; color: var(--navy-deep); }
.info-row p{ margin:0; font-size:0.9rem; }

.form-field{ margin-bottom: 18px; }
.form-field label{ display:block; font-size:0.82rem; font-weight:600; margin-bottom:6px; color: var(--navy-deep); }
.form-field input, .form-field select, .form-field textarea{
  width:100%; padding: 12px 14px; border:1px solid var(--line); border-radius:8px;
  font-family: var(--f-body); font-size: 0.94rem; background: var(--white); color: var(--ink);
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus{
  outline:none; border-color: var(--teal-deep); box-shadow: 0 0 0 3px rgba(14,122,120,0.12);
}
.form-note{ font-size: 0.78rem; color: var(--ink-soft); margin-top: 10px; }
.form-success{
  display:none; background:#EAF7EE; border:1px solid #B7E4C7; color:#1E7B3C;
  padding:14px 16px; border-radius:8px; font-size:0.88rem; margin-bottom:18px;
}
.form-success.show{ display:block; }

/* Map placeholder */
.map-box{
  border-radius: 12px; overflow:hidden; border:1px solid var(--line); margin-top: 20px;
}

/* ---------- Service-detail building blocks (used on individual sub-service pages) ---------- */

/* Quick-facts spec panel */
.fact-panel{ border:1px solid var(--line); border-radius: 12px; overflow:hidden; background: var(--white); }
.fact-row{
  display:flex; justify-content:space-between; align-items:baseline; gap: 16px;
  padding: 15px 20px; border-bottom: 1px dashed var(--line);
}
.fact-row:last-child{ border-bottom:none; }
.fact-row .fact-label{
  font-family: var(--f-mono); font-size: 0.72rem; text-transform:uppercase; letter-spacing:.05em;
  color: var(--ink-soft); flex:none;
}
.fact-row .fact-value{ font-weight:600; color: var(--navy-deep); text-align:right; font-size: 0.92rem; }

/* Document / requirement checklist */
.doc-checklist{ display:grid; grid-template-columns: 1fr 1fr; gap: 2px 28px; }
.doc-checklist li{
  display:flex; gap:10px; align-items:flex-start;
  padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 0.92rem; color: var(--ink);
}
.doc-checklist li svg{ flex:none; margin-top: 3px; color: var(--teal-deep); width:18px; height:18px; }
@media (max-width: 700px){ .doc-checklist{ grid-template-columns: 1fr; } }

/* Applicability / requirement list with a status chip */
.req-list li{
  display:flex; gap: 14px; align-items:flex-start;
  padding: 16px 0; border-bottom: 1px solid var(--line);
}
.req-list li:last-child{ border-bottom:none; }
.req-list .chip{
  flex:none; font-family: var(--f-mono); font-size: 0.66rem; text-transform:uppercase; letter-spacing:.05em;
  color: var(--gold-deep); background: rgba(245,166,35,0.12); border-radius: 6px; padding: 4px 8px;
  margin-top: 2px;
}
.req-list p{ margin:0; }

/* FAQ accordion (native <details>, no JS required) */
.faq-item{ border-bottom: 1px solid var(--line); }
.faq-item summary{
  cursor:pointer; list-style:none; padding: 18px 4px;
  font-family: var(--f-display); font-weight:600; color: var(--navy-deep); font-size: 1rem;
  display:flex; justify-content:space-between; align-items:center; gap: 16px;
}
.faq-item summary::-webkit-details-marker{ display:none; }
.faq-item summary::after{
  content:"+"; font-size: 1.4rem; line-height:1; color: var(--gold-deep); flex:none;
  transition: transform .2s ease;
}
.faq-item[open] summary::after{ transform: rotate(45deg); }
.faq-item .faq-answer{ padding: 0 4px 20px; margin:0; color: var(--ink-soft); max-width: 68ch; }

/* Sub-service breadcrumb chip on parent service pages */
.pillar.subservice-link{
  display:flex; align-items:center; justify-content:space-between; gap: 12px;
  cursor:pointer;
}
.pillar.subservice-link:hover h3{ color: var(--teal-deep); }
.subservice-link .go{
  font-family: var(--f-mono); font-size: 0.72rem; color: var(--teal-deep); text-transform:uppercase;
  letter-spacing:.04em; flex:none; opacity:0; transition: opacity .15s ease;
}
.pillar:hover .subservice-link .go, .subservice-link:hover .go{ opacity:1; }

/* Horizontal process flow (used for "Our Process" on service-detail pages) — a
   continuous wave connecting numbered steps, alternating crest/trough. */
.wave-flow{ position:relative; margin-top: 6px; }
.wave-connector-svg{
  position:absolute; top:0; left:0; width:100%; height:100%;
  pointer-events:none; z-index:0; overflow:visible;
}
.wave-track{
  position:relative; z-index:1;
  display:grid; grid-template-columns: repeat(7, minmax(128px, 1fr));
  grid-template-rows: auto 120px auto;
  column-gap: 8px;
  overflow-x:auto; overflow-y:visible;
  padding: 6px 4px 10px;
}
.wave-track::-webkit-scrollbar{ height:6px; }
.wave-track::-webkit-scrollbar-track{ background: var(--paper-dim); border-radius:4px; }
.wave-track::-webkit-scrollbar-thumb{ background: var(--line); border-radius:4px; }

.wave-slot{ display:flex; flex-direction:column; align-items:center; text-align:center; }
.wave-slot.slot-top{ justify-content:flex-end; padding-bottom: 14px; }
.wave-slot.slot-bottom{ justify-content:flex-start; padding-top: 14px; }

.wave-pill{
  display:inline-block; border: 1.5px solid var(--gold); color: var(--navy-deep);
  background: var(--white); border-radius: 999px; padding: 6px 16px;
  font-family: var(--f-display); font-weight:700; font-size: 0.8rem;
  white-space:nowrap; margin-bottom: 6px;
}
.wave-slot .wave-pill.accent-teal{ border-color: var(--teal-deep); }
.wave-slot.slot-bottom .wave-pill{ margin-bottom:0; margin-top:6px; order:2; }
.wave-desc{ font-size: 0.76rem; color: var(--ink-soft); margin:0; line-height:1.4; }

.wave-node{
  width:44px; height:44px; border-radius:50%;
  background: var(--navy-deep); color: var(--gold);
  display:flex; align-items:center; justify-content:center;
  font-family: var(--f-mono); font-weight:600; font-size:0.78rem;
  border: 3px solid var(--paper-dim);
  position:relative; z-index:2; justify-self:center;
}
.wave-node.align-top{ align-self:start; }
.wave-node.align-bottom{ align-self:end; }
.wave-node.wave-final{
  background: var(--teal-deep); color: var(--white);
  box-shadow: 0 0 0 5px rgba(61,218,215,0.16);
}

@media (max-width: 900px){
  .wave-track{ grid-template-columns: repeat(7, 150px); }
}

/* Footer */
footer{
  background: var(--navy-deep); color: rgba(255,255,255,0.75);
  padding: 60px 0 26px;
}
.footer-grid{
  display:grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 40px; margin-bottom: 44px;
}
@media (max-width: 900px){ .footer-grid{ grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px){ .footer-grid{ grid-template-columns: 1fr; } }
.footer-brand{ display:flex; gap:12px; align-items:center; margin-bottom: 14px; }
.footer-brand img{ width:36px; height:36px; }
.footer-brand span{ font-family: var(--f-display); color:var(--white); font-weight:700; }
.footer-ca-badge{
  display:flex; align-items:center; gap:10px; margin-top:18px;
  padding-top:18px; border-top:1px solid rgba(255,255,255,0.12);
}
.footer-ca-badge img{ width:32px; height:32px; object-fit:contain; background:var(--white); border-radius:6px; padding:3px; }
.footer-ca-badge span{ font-size:0.78rem; color:rgba(255,255,255,0.6); }
footer h5{
  font-family: var(--f-mono); font-size: 0.74rem; letter-spacing:.08em; text-transform:uppercase;
  color: var(--gold); margin: 0 0 16px;
}
footer ul li{ margin-bottom: 10px; }
footer ul li a{ font-size: 0.88rem; color: rgba(255,255,255,0.7); }
footer ul li a:hover{ color: var(--teal); }
.footer-bottom{
  border-top: 1px solid rgba(255,255,255,0.12); padding-top: 22px;
  display:flex; justify-content:space-between; flex-wrap:wrap; gap:10px;
  font-size: 0.8rem; color: rgba(255,255,255,0.5);
}

/* Utility */
.mt-0{ margin-top:0 !important; }
.text-center{ text-align:center; }
.sr-only{
  position:absolute; width:1px; height:1px; padding:0; margin:-1px;
  overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0;
}

/* ---------- Advisory-style building blocks (consultative service pages) ---------- */

/* Pull quote */
.pull-quote{
  font-family: var(--f-display); font-weight:500; font-style:italic;
  font-size: clamp(1.3rem, 2.4vw, 1.7rem); line-height:1.45;
  color: var(--navy-deep); position:relative; padding-left: 30px; margin: 0;
}
.pull-quote::before{
  content:"\201C"; position:absolute; left:-8px; top:-14px;
  font-family: Georgia, serif; font-style:normal; font-size: 3.4rem; color: var(--gold); line-height:1;
}
.pull-quote cite{
  display:block; font-style:normal; font-family: var(--f-mono); font-size: 0.72rem;
  color: var(--ink-soft); text-transform:uppercase; letter-spacing:.05em; margin-top: 18px;
}

/* Quick-fact stat strip (qualitative, not fabricated metrics) */
.stat-strip{ display:flex; gap: 36px; flex-wrap:wrap; margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--line); }
.stat-strip .stat-block{ min-width: 130px; }
.stat-strip .stat-label{
  font-family: var(--f-mono); font-size: 0.68rem; text-transform:uppercase; letter-spacing:.05em;
  color: var(--ink-soft); margin-bottom: 6px;
}
.stat-strip .stat-value{ font-family: var(--f-display); font-weight:700; color: var(--teal-deep); font-size: 1.02rem; }

/* Without / With comparison */
.compare-grid{ display:grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 780px){ .compare-grid{ grid-template-columns: 1fr; } }
.compare-card{ border-radius: 16px; padding: 34px; }
.compare-card.without{ background: var(--paper-dim); border: 1px solid var(--line); }
.compare-card.with{ background: var(--navy-deep); }
.compare-card h3{ margin-bottom: 20px; font-size: 1.1rem; }
.compare-card.with h3{ color: var(--white); }
.compare-list li{ display:flex; gap: 12px; align-items:flex-start; padding: 11px 0; font-size: 0.92rem; }
.compare-card.without .compare-list li{ color: var(--ink-soft); }
.compare-card.with .compare-list li{ color: rgba(255,255,255,0.85); }
.compare-list svg{ flex:none; margin-top: 3px; width:18px; height:18px; }
.compare-card.without .compare-list svg{ color: #C1554A; }
.compare-card.with .compare-list svg{ color: var(--teal); }

/* Alternating feature rows */
.feature-row{ display:flex; gap: 46px; align-items:center; padding: 42px 0; border-bottom: 1px solid var(--line); }
.feature-row:last-child{ border-bottom:none; }
.feature-row.reverse{ flex-direction: row-reverse; }
.feature-icon{
  flex:none; width: 116px; height:116px; border-radius: 22px;
  background: var(--navy-deep); color: var(--gold);
  display:flex; align-items:center; justify-content:center;
}
.feature-icon svg{ width: 50px; height:50px; }
.feature-text h3{ font-size: 1.15rem; margin-bottom: 10px; }
.feature-text p{ margin:0; max-width: 54ch; }
@media (max-width: 780px){
  .feature-row, .feature-row.reverse{ flex-direction:column; text-align:center; gap: 18px; }
  .feature-text p{ max-width:none; }
}

/* Flat 4-phase engagement bar */
.phase-flow{ border: 1px solid var(--line); border-radius: 16px; overflow:hidden; }
.phase-bar{ display:grid; grid-template-columns: repeat(4, 1fr); }
.phase-block{ padding: 30px 24px; border-right: 1px solid var(--line); position:relative; background: var(--white); }
.phase-block:last-child{ border-right:none; }
.phase-block::after{ content:""; position:absolute; left:0; right:0; bottom:0; height:4px; background: var(--gold); }
.phase-block:nth-child(2)::after{ background: linear-gradient(to right, var(--gold), var(--teal)); }
.phase-block:nth-child(3)::after{ background: var(--teal); }
.phase-block:nth-child(4)::after{ background: var(--teal-deep); }
.phase-num{ font-family: var(--f-mono); font-size: 1.8rem; font-weight:700; color: var(--gold-deep); margin-bottom: 12px; }
.phase-block:nth-child(3) .phase-num, .phase-block:nth-child(4) .phase-num{ color: var(--teal-deep); }
.phase-block h3{ font-size: 1rem; margin-bottom: 8px; }
.phase-block p{ font-size: 0.84rem; margin:0; }
@media (max-width: 780px){
  .phase-bar{ grid-template-columns: 1fr; }
  .phase-block{ border-right:none; border-bottom: 1px solid var(--line); }
  .phase-block:last-child{ border-bottom:none; }
}

/* ---------- Tax & Compliance-style building blocks (transactional/filing service pages) ---------- */

/* Entity / option comparison table */
.compare-table-wrap{ overflow-x:auto; border:1px solid var(--line); border-radius:14px; }
table.compare-table{ width:100%; border-collapse:collapse; font-size:0.88rem; min-width:660px; }
.compare-table thead th{
  background: var(--navy-deep); color: var(--white); font-family: var(--f-display); font-weight:600;
  text-align:left; padding: 16px 18px; font-size:0.92rem;
}
.compare-table thead th.highlight-col{ background: var(--teal-deep); }
.compare-table .badge-recommend{
  display:block; margin-top:5px; font-family: var(--f-mono); font-size: 0.6rem; font-weight:600;
  text-transform:uppercase; letter-spacing:.05em; color: var(--gold); opacity:0.9;
}
.compare-table tbody th{
  text-align:left; font-family: var(--f-mono); font-size: 0.7rem; text-transform:uppercase; letter-spacing:.04em;
  color: var(--ink-soft); padding: 14px 18px; background: var(--paper-dim); white-space:nowrap; font-weight:600;
}
.compare-table td{ padding: 14px 18px; border-top: 1px solid var(--line); color: var(--ink); vertical-align:top; }
.compare-table tbody tr:nth-child(even) td, .compare-table tbody tr:nth-child(even) th{ background: rgba(18,22,63,0.02); }
.compare-table td.highlight-col{ background: rgba(61,218,215,0.06); }

/* Horizontal registration-timeline stepper (pure CSS, no JS needed) */
.reg-steps{ display:flex; gap:0; position:relative; overflow-x:auto; padding: 6px 4px 4px; }
.reg-step{ flex:1 1 0; min-width:140px; display:flex; flex-direction:column; align-items:center; text-align:center; position:relative; padding: 0 10px; }
.reg-step:not(:first-child)::before{
  content:""; position:absolute; top:18px; left:-50%; width:100%; height:3px;
  background: linear-gradient(to right, var(--gold), var(--teal)); z-index:1;
}
.reg-step-marker{
  width:36px; height:36px; border-radius:50%; background: var(--navy-deep); color: var(--gold);
  display:flex; align-items:center; justify-content:center; font-family: var(--f-mono); font-weight:700;
  font-size:0.82rem; position:relative; z-index:2; margin-bottom: 14px; border: 3px solid var(--paper);
}
.reg-step:last-child .reg-step-marker{ background: var(--teal-deep); color: var(--white); box-shadow: 0 0 0 5px rgba(61,218,215,0.16); }
.reg-step-day{
  font-family: var(--f-mono); font-size:0.66rem; color: var(--gold-deep); text-transform:uppercase;
  letter-spacing:.04em; font-weight:700; margin-bottom: 6px;
}
.reg-step:last-child .reg-step-day{ color: var(--teal-deep); }
.reg-step h3{ font-size:0.88rem; margin: 0 0 6px; }
.reg-step p{ font-size:0.78rem; margin:0; color: var(--ink-soft); }
@media (max-width: 780px){ .reg-step{ flex: 0 0 155px; } }

/* Grouped document checklist */
.doc-group{ margin-bottom: 30px; }
.doc-group:last-child{ margin-bottom:0; }
.doc-group-title{
  font-family: var(--f-display); font-weight:600; font-size:0.98rem; color: var(--navy-deep);
  margin-bottom: 14px; padding-bottom: 10px; border-bottom: 2px solid var(--gold); display:inline-block;
}

/* Included-items summary box */
.included-box{ border:1px solid var(--line); border-radius: 16px; padding: 32px; background: var(--white); }
.included-box h3{ margin-bottom: 6px; }
.included-sub{ font-size:0.86rem; color: var(--ink-soft); margin-bottom: 20px; }
.included-list li{
  display:flex; gap: 12px; align-items:flex-start; padding: 11px 0;
  border-bottom: 1px dashed var(--line); font-size:0.92rem;
}
.included-list li:last-child{ border-bottom:none; }
.included-list svg{ flex:none; color: var(--teal-deep); margin-top:3px; width:18px; height:18px; }

/* ---------- Cyber Security-style building blocks (VAPT/security service pages) ---------- */

/* Severity legend */
.severity-legend{ display:flex; gap: 22px; flex-wrap:wrap; margin-top: 26px; }
.severity-item{
  display:flex; align-items:center; gap: 8px; font-family: var(--f-mono); font-size:0.74rem;
  color: rgba(255,255,255,0.78); text-transform:uppercase; letter-spacing:.04em;
}
.severity-dot{ width:10px; height:10px; border-radius:50%; display:inline-block; flex:none; }
.severity-dot.critical{ background:#E5484D; box-shadow:0 0 0 3px rgba(229,72,77,0.22); }
.severity-dot.high{ background:#F0883E; box-shadow:0 0 0 3px rgba(240,136,62,0.22); }
.severity-dot.medium{ background:#F5A623; box-shadow:0 0 0 3px rgba(245,166,35,0.22); }
.severity-dot.low{ background:#3DDAD7; box-shadow:0 0 0 3px rgba(61,218,215,0.22); }
.severity-dot.info{ background:#8B93A8; box-shadow:0 0 0 3px rgba(139,147,168,0.22); }

/* Terminal-style card */
.terminal-card{ background: var(--navy-deep); border-radius:14px; overflow:hidden; border:1px solid rgba(255,255,255,0.08); height:100%; }
.terminal-bar{ display:flex; align-items:center; gap:6px; padding: 12px 16px; background: rgba(255,255,255,0.04); border-bottom: 1px solid rgba(255,255,255,0.06); }
.terminal-dot{ width:9px; height:9px; border-radius:50%; flex:none; }
.terminal-dot.red{ background:#E5484D; } .terminal-dot.yellow{ background:#F5A623; } .terminal-dot.green{ background:#3DDAD7; }
.terminal-label{ margin-left:8px; font-family: var(--f-mono); font-size:0.68rem; color: rgba(255,255,255,0.4); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.terminal-body{ padding: 24px; }
.terminal-body .icon-mark{ background: rgba(245,166,35,0.14); color: var(--gold); margin-bottom:14px; }
.terminal-body h3{ color: var(--white); font-size:1rem; margin-bottom:8px; }
.terminal-body p{ color: rgba(255,255,255,0.65); font-size:0.86rem; margin:0; }

/* Sample vulnerability finding card */
.finding-card{ background: var(--white); border:1px solid var(--line); border-radius:14px; overflow:hidden; }
.finding-header{
  display:flex; align-items:center; justify-content:space-between; gap: 10px; flex-wrap:wrap;
  padding: 18px 22px; background: var(--paper-dim); border-bottom: 1px solid var(--line);
}
.finding-title{ font-family: var(--f-display); font-weight:600; color: var(--navy-deep); font-size:1rem; }
.finding-sev-badge{
  font-family: var(--f-mono); font-size:0.66rem; text-transform:uppercase; letter-spacing:.05em; font-weight:700;
  padding: 5px 12px; border-radius: 999px; color: var(--white); flex:none;
}
.finding-sev-badge.high{ background:#F0883E; }
.finding-body{ padding: 22px; }
.finding-row{ margin-bottom: 18px; }
.finding-row:last-child{ margin-bottom:0; }
.finding-label{
  font-family: var(--f-mono); font-size:0.66rem; text-transform:uppercase; letter-spacing:.05em;
  color: var(--ink-soft); margin-bottom: 7px;
}
.finding-cvss{ display:flex; align-items:center; gap: 12px; }
.finding-cvss-bar{ flex:1; height:8px; background: var(--paper-dim); border-radius:4px; overflow:hidden; }
.finding-cvss-fill{ height:100%; background: linear-gradient(to right, var(--gold), #F0883E); border-radius:4px; }
.finding-cvss-score{ font-family: var(--f-mono); font-weight:700; color: var(--navy-deep); font-size:0.9rem; flex:none; }
.finding-text{ font-size:0.9rem; color: var(--ink); margin:0; }
.finding-footer{
  padding: 16px 22px; background: rgba(61,218,215,0.07); border-top: 1px solid var(--line);
  display:flex; gap: 10px; align-items:flex-start;
}
.finding-footer svg{ flex:none; color: var(--teal-deep); margin-top:2px; width:18px; height:18px; }
.finding-footer p{ margin:0; font-size:0.86rem; color: var(--ink); }
.finding-note{ font-size:0.8rem; color: var(--ink-soft); margin-top:14px; font-style:italic; }

/* Kill-chain methodology (dark) */
.kill-chain{ background: var(--navy-deep); border-radius:18px; padding: 42px 32px; }
.kill-steps{ display:flex; gap:0; overflow-x:auto; padding: 4px; }
.kill-step{ flex:1 1 0; min-width:165px; padding: 0 16px; position:relative; }
.kill-step:not(:first-child)::before{
  content:""; position:absolute; top:15px; left:-50%; width:100%; height:2px; background: rgba(255,255,255,0.15);
}
.kill-marker{
  width:32px; height:32px; border-radius:7px; background: rgba(245,166,35,0.15); border:1px solid var(--gold);
  color: var(--gold); display:flex; align-items:center; justify-content:center; font-family: var(--f-mono);
  font-weight:700; font-size:0.76rem; position:relative; z-index:2; margin-bottom:16px;
}
.kill-step:last-child .kill-marker{ background: rgba(61,218,215,0.15); border-color: var(--teal); color: var(--teal); }
.kill-step h3{ color: var(--white); font-size:0.9rem; margin-bottom:8px; }
.kill-step p{ color: rgba(255,255,255,0.6); font-size:0.8rem; margin:0; }
@media (max-width: 780px){ .kill-step{ flex: 0 0 160px; } }

/* Compliance framework badge cloud */
.badge-cloud{ display:flex; flex-wrap:wrap; gap: 12px; }
.compliance-badge{
  display:inline-flex; align-items:center; gap: 9px; padding: 11px 20px; border-radius: 10px;
  background: var(--paper-dim); border: 1px solid var(--line); font-family: var(--f-display);
  font-weight:600; font-size:0.88rem; color: var(--navy-deep);
}
.compliance-badge svg{ color: var(--teal-deep); width:16px; height:16px; flex:none; }

/* ---------- Managed Services-style building blocks (retained/ongoing service pages) ---------- */

/* Organisation position diagram */
.org-chart{ display:flex; flex-direction:column; align-items:center; }
.org-box{
  background: var(--white); border:2px solid var(--line); border-radius:12px;
  padding: 14px 26px; text-align:center; font-family: var(--f-display); font-weight:600;
  color: var(--navy-deep); font-size:0.9rem; position:relative; z-index:1;
}
.org-box.primary{
  background: var(--navy-deep); color: var(--white); border-color: var(--navy-deep);
  padding: 18px 34px; font-size:1.02rem; box-shadow: 0 16px 32px rgba(18,22,63,0.16);
}
.org-connector{ width:2px; height:26px; background: var(--line); }
.org-branch{ position:relative; width:100%; max-width:720px; margin: 0 auto; padding-top:26px; }
.org-branch::before{
  content:""; position:absolute; top:0; left:50%; width:2px; height:26px;
  background: var(--line); transform:translateX(-50%);
}
.org-branch-line{ position:absolute; top:26px; left:16.6%; right:16.6%; height:2px; background: var(--line); }
.org-level{ display:flex; justify-content:space-between; gap: 12px; padding-top:26px; }
.org-item{ flex:1; display:flex; flex-direction:column; align-items:center; }
.org-drop{ width:2px; height:22px; background: var(--line); }
@media (max-width: 620px){
  .org-level{ flex-direction:column; align-items:center; gap:22px; }
  .org-branch-line{ display:none; }
  .org-item{ width:100%; }
}

/* Monthly rhythm strip */
.rhythm-grid{ display:grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.rhythm-card{ border:1px solid var(--line); border-radius:14px; overflow:hidden; background: var(--white); }
.rhythm-tab{
  background: var(--navy-deep); color: var(--gold); font-family: var(--f-mono); font-size:0.68rem;
  text-transform:uppercase; letter-spacing:.05em; padding: 10px 16px; font-weight:700;
}
.rhythm-card:nth-child(4) .rhythm-tab{ background: var(--teal-deep); color: var(--white); }
.rhythm-body{ padding: 18px 16px; }
.rhythm-body h3{ font-size:0.92rem; margin-bottom:8px; }
.rhythm-body p{ font-size:0.8rem; margin:0; color: var(--ink-soft); }
@media (max-width: 780px){ .rhythm-grid{ grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px){ .rhythm-grid{ grid-template-columns: 1fr; } }

/* Engagement tier cards */
.tier-grid{ display:grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items:stretch; }
.tier-card{
  border:1px solid var(--line); border-radius:16px; padding: 32px 28px; background: var(--white);
  display:flex; flex-direction:column; position:relative;
}
.tier-card.recommended{
  border-color: var(--teal-deep); border-width:2px; box-shadow: 0 20px 44px rgba(18,22,63,0.1);
}
.tier-badge{
  position:absolute; top:-13px; left:50%; transform:translateX(-50%);
  background: var(--teal-deep); color: var(--white); font-family: var(--f-mono); font-size:0.64rem;
  text-transform:uppercase; letter-spacing:.05em; padding: 5px 14px; border-radius:999px; font-weight:700;
  white-space:nowrap;
}
.tier-name{ font-family: var(--f-display); font-weight:700; font-size:1.15rem; color: var(--navy-deep); margin-bottom:8px; }
.tier-for{ font-size:0.84rem; color: var(--ink-soft); margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.tier-list{ flex:1; margin-bottom: 24px; }
.tier-list li{ display:flex; gap: 10px; align-items:flex-start; padding: 8px 0; font-size:0.88rem; }
.tier-list svg{ flex:none; color: var(--teal-deep); margin-top:3px; width:16px; height:16px; }
.tier-card .btn{ width:100%; justify-content:center; }
@media (max-width: 900px){ .tier-grid{ grid-template-columns: 1fr; } }

/* ---------- Legal document pages (Privacy / Legal Statement) ---------- */
.legal-updated{
  font-family: var(--f-mono); font-size: 0.78rem; color: var(--ink-soft);
  margin-bottom: 30px; padding-bottom: 20px; border-bottom: 1px solid var(--line);
}
.legal-layout{ display:grid; grid-template-columns: 260px 1fr; gap: 56px; align-items:start; }
@media (max-width: 900px){ .legal-layout{ grid-template-columns: 1fr; } }
.legal-toc{
  position:sticky; top: 100px; border: 1px solid var(--line); border-radius: 12px; padding: 18px;
  background: var(--white);
}
.legal-toc h4{
  font-family: var(--f-mono); font-size: 0.7rem; text-transform:uppercase; letter-spacing:.05em;
  color: var(--ink-soft); margin: 4px 6px 12px;
}
.legal-toc ol{ list-style:none; counter-reset: toc; margin:0; padding-left:0; }
.legal-toc li{ counter-increment: toc; margin-bottom: 2px; }
.legal-toc a{
  display:flex; align-items:flex-start; gap: 10px;
  font-size: 0.86rem; line-height:1.4; color: var(--ink);
  padding: 8px 8px; border-radius: 8px;
  transition: background-color .15s ease, color .15s ease;
}
.legal-toc a::before{
  content: counter(toc);
  flex:none; width: 21px; height: 21px; border-radius: 50%; margin-top: 1px;
  background: var(--paper-dim); color: var(--gold-deep);
  font-family: var(--f-mono); font-weight:700; font-size: 0.68rem;
  display:flex; align-items:center; justify-content:center;
  transition: background-color .15s ease, color .15s ease;
}
.legal-toc a:hover{ background: var(--paper-dim); color: var(--teal-deep); }
.legal-toc a:hover::before{ background: var(--teal-deep); color: var(--white); }
@media (max-width: 900px){ .legal-toc{ position:static; } }

.legal-body{ max-width: 74ch; }
.legal-section{ padding: 34px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 100px; }
.legal-section:last-child{ border-bottom:none; }
.legal-section h2{
  font-size: 1.3rem; display:flex; align-items:baseline; gap: 12px; margin-bottom: 16px;
}
.legal-section h2 .num{
  font-family: var(--f-mono); font-size: 0.9rem; color: var(--gold-deep); font-weight:700; flex:none;
}
.legal-section h3{ font-size: 1.02rem; margin: 22px 0 10px; }
.legal-section p{ margin-bottom: 14px; }
.legal-section ul, .legal-section ol{ margin: 0 0 14px; padding-left: 22px; }
.legal-section li{ margin-bottom: 8px; color: var(--ink-soft); }
.legal-section li strong{ color: var(--ink); }
.legal-note{
  background: var(--paper-dim); border-left: 3px solid var(--gold); border-radius: 0 8px 8px 0;
  padding: 16px 20px; font-size: 0.9rem; margin: 18px 0;
}
.legal-note strong{ color: var(--navy-deep); }

/* ---------- Digital business card pages ---------- */
.card-page{
  min-height: 100vh;
  background: linear-gradient(180deg, var(--navy-deep) 0%, var(--navy-deep) 220px, var(--paper) 220px);
  display:flex; flex-direction:column; align-items:center;
  padding: 28px 16px 40px;
}
.card-page-brand{
  display:flex; align-items:center; gap:10px; margin-bottom: 22px;
}
.card-page-brand img{ width:30px; height:30px; }
.card-page-brand span{
  font-family: var(--f-display); font-weight:600; color: var(--white); font-size:0.92rem;
}
.vcard{
  width:100%; max-width: 380px; background: var(--white);
  border-radius: 22px; box-shadow: 0 24px 60px rgba(18,22,63,0.18);
  overflow:hidden; text-align:center;
}
.vcard-photo-wrap{ padding: 32px 24px 0; }
.vcard-photo{
  width: 116px; height:116px; border-radius:50%; margin:0 auto;
  border: 4px solid var(--gold); overflow:hidden; background: var(--navy);
}
.vcard-photo img{ width:100%; height:100%; object-fit:cover; }
.vcard-name{ font-family: var(--f-display); font-size:1.35rem; font-weight:700; color: var(--navy-deep); margin: 16px 24px 2px; }
.vcard-title{ font-size:0.9rem; color: var(--teal-deep); font-weight:600; margin: 0 24px 6px; }
.vcard-org{ font-family: var(--f-mono); font-size:0.72rem; color: var(--ink-soft); text-transform:uppercase; letter-spacing:.04em; margin: 0 24px 22px; }

.vcard-actions{ display:grid; grid-template-columns: 1fr 1fr; gap:10px; padding: 0 20px 20px; }
.vcard-save-btn{
  grid-column: 1 / -1;
  display:flex; align-items:center; justify-content:center; gap:9px;
  background: var(--gold); color: var(--navy-deep); font-weight:700; font-size:0.94rem;
  padding: 15px; border-radius: 12px; transition: background-color .15s ease, transform .15s ease;
}
.vcard-save-btn svg{ width:19px; height:19px; flex:none; }
.vcard-save-btn span, .vcard-share-btn span{ white-space:nowrap; }
.vcard-save-btn:hover{ background: var(--gold-deep); transform: translateY(-1px); }
.vcard-action{
  display:flex; flex-direction:column; align-items:center; gap:6px;
  background: var(--paper-dim); border: 1px solid var(--line); border-radius: 12px;
  padding: 14px 8px; font-size:0.76rem; font-weight:600; color: var(--navy-deep);
  transition: background-color .15s ease;
}
.vcard-action:hover{ background: var(--white); border-color: var(--teal); }
.vcard-action svg{ width:20px; height:20px; color: var(--teal-deep); }

.vcard-divider{ height:1px; background: var(--line); margin: 4px 20px 20px; }
.vcard-qr-section{ padding: 0 24px 30px; }
.vcard-qr-label{
  font-family: var(--f-mono); font-size:0.68rem; text-transform:uppercase; letter-spacing:.05em;
  color: var(--ink-soft); margin-bottom:12px;
}
.vcard-qr-section img{ width:140px; height:140px; margin:0 auto; border-radius:10px; border:1px solid var(--line); padding:8px; }
.vcard-footer-link{
  display:block; padding: 16px 24px; background: var(--paper-dim);
  font-size:0.8rem; color: var(--ink-soft); border-top:1px solid var(--line);
}
.vcard-footer-link a{ color: var(--teal-deep); font-weight:600; }

@media (max-width: 420px){
  .vcard-actions{ grid-template-columns: 1fr 1fr; }
}

.leader-vcard-link{
  display:inline-flex; align-items:center; gap:6px; margin-top:10px;
  font-family: var(--f-mono); font-size:0.7rem; text-transform:uppercase; letter-spacing:.04em;
  color: var(--teal-deep); border:1px solid var(--line); border-radius:999px; padding:6px 14px;
  transition: border-color .15s ease, background-color .15s ease;
}
.leader-vcard-link:hover{ border-color: var(--teal); background: var(--paper-dim); }
.leader-vcard-link svg{ width:13px; height:13px; }

/* ---------- Digital card v2 — white header, dark navy body ---------- */
.card-page-dark{ background: var(--navy-deep); }
.vcard-dark{ background: var(--navy-deep); }
.vcard-header-band{
  background: var(--paper); display:flex; align-items:center; gap:10px;
  padding: 20px 24px 16px;
}
.vcard-header-band img{ width:30px; height:30px; flex:none; }
.vcard-header-firm{ font-family: var(--f-display); font-size:0.82rem; font-weight:700; color: var(--navy-deep); line-height:1.2; }
.vcard-header-sub{ font-family: var(--f-mono); font-size:0.62rem; color: var(--ink-soft); letter-spacing:.05em; }

.vcard-dark .vcard-name{ color: var(--white); margin: 16px 24px 2px; }
.vcard-dark .vcard-title{ color: var(--teal); }
.vcard-head-pill{
  display:inline-block; margin: 10px 24px 22px; padding: 5px 15px; border-radius:999px;
  background: rgba(245,166,35,0.15); color: var(--gold); font-size:0.76rem; font-weight:600;
}

.vcard-dark .vcard-actions{ display:flex; flex-direction:column; gap:10px; padding: 0 20px 16px; }
.vcard-share-btn{
  display:flex; align-items:center; justify-content:center; gap:9px;
  background: var(--teal-deep); color: var(--white); font-weight:700; font-size:0.9rem;
  padding: 14px; border-radius: 12px; transition: background-color .15s ease, transform .15s ease;
}
.vcard-share-btn svg{ width:19px; height:19px; flex:none; }
.vcard-share-btn:hover{ background: #0a5f5d; transform: translateY(-1px); }

.vcard-icon-grid{ display:grid; grid-template-columns: repeat(4,1fr); gap:8px; padding: 0 20px 16px; }
.vcard-dark .vcard-action{
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); color: var(--white);
  padding: 12px 4px;
}
.vcard-dark .vcard-action svg{ color: var(--teal); }
.vcard-dark .vcard-action:hover{ background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.25); }

.vcard-link-rows{ display:flex; flex-direction:column; gap:8px; padding: 0 20px 4px; }
.vcard-link-row{
  display:flex; align-items:center; justify-content:space-between;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); border-radius:10px;
  padding: 12px 14px; font-size:0.84rem; font-weight:600; color: var(--white);
  transition: background-color .15s ease;
}
.vcard-link-row:hover{ background: rgba(255,255,255,0.1); }
.vcard-link-row span{ display:flex; align-items:center; gap:9px; }
.vcard-link-row svg:first-child{ width:16px; height:16px; color: var(--gold); flex:none; }
.vcard-link-row svg:last-child{ width:15px; height:15px; color: rgba(255,255,255,0.4); }

.vcard-dark .vcard-divider{ background: rgba(255,255,255,0.12); }
.vcard-dark .vcard-qr-label{ color: rgba(255,255,255,0.55); }
.vcard-dark .vcard-qr-section img{ border: none; }
