/* ==========================================================================
   Nebula R&D — public website design system
   Brand: navy #0f172a · deep teal #0c3a4a · teal #0d9488 / #14b8a6 · mint #5eead4 · indigo #4f46e5
   Type: Inter (UI) + Lora (editorial accents)
   ========================================================================== */

:root {
  --navy: #0f172a; --navy-2: #0b1a2e; --deep: #0c3a4a;
  --teal-800: #115e59; --teal-700: #0f766e; --teal: #0d9488; --teal-500: #14b8a6; --mint: #5eead4; --teal-50: #f0fdfa; --teal-100: #ccfbf1;
  --indigo: #4f46e5; --indigo-50: #eef2ff; --indigo-100: #e0e7ff; --violet: #7c3aed;
  --wa: #25d366; --wa-ink: #052e16;
  --ink: #0f172a; --text: #334155; --muted: #64748b; --line: #e2e8f0; --line-2: #cbd5e1;
  --bg: #ffffff; --soft: #f8fafc; --soft-2: #f1f5f9;
  --amber-50: #fffbeb; --amber-700: #b45309; --red-700: #b91c1c;
  --radius: 14px; --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(15,23,42,.05);
  --shadow: 0 1px 2px rgba(15,23,42,.04), 0 10px 30px -12px rgba(15,23,42,.14);
  --shadow-lg: 0 24px 60px -24px rgba(15,23,42,.35);
  --container: 1180px;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body { font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif; font-size: 16px; line-height: 1.65; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: var(--teal-700); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--teal-800); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; letter-spacing: -0.02em; font-weight: 800; }
h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: 1.15rem; letter-spacing: -0.01em; }
p + p { margin-top: .9em; }
strong, b { color: var(--ink); font-weight: 700; }
::selection { background: var(--teal-100); color: var(--ink); }
:focus-visible { outline: 3px solid var(--teal-500); outline-offset: 2px; border-radius: 6px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 820px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip:focus { left: 12px; color: #fff; }
.i { width: 22px; height: 22px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.i-sm { width: 16px; height: 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-size: .95rem; font-weight: 700; line-height: 1;
  padding: 14px 22px; border-radius: 10px; border: 1.5px solid transparent; cursor: pointer; text-decoration: none; transition: background .15s, color .15s, border-color .15s, transform .15s, box-shadow .15s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: none; }
.btn-primary { background: var(--teal); color: #fff; box-shadow: 0 6px 18px -8px rgba(13,148,136,.7); }
.btn-primary:hover { background: var(--teal-700); color: #fff; }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-outline:hover { border-color: var(--teal); color: var(--teal-700); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--teal-50); color: var(--ink); }
.btn-ghost-light { background: rgba(255,255,255,.06); color: #fff; border-color: rgba(255,255,255,.35); }
.btn-ghost-light:hover { background: rgba(255,255,255,.14); color: #fff; }
.btn-wa { background: var(--wa); color: var(--wa-ink); }
.btn-wa:hover { background: #1fbe5a; color: var(--wa-ink); }
.btn-sm { padding: 10px 16px; font-size: .88rem; }
.btn-block { width: 100%; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; text-decoration: none; }
.link-arrow .i { width: 18px; height: 18px; transition: transform .15s; }
.link-arrow:hover .i { transform: translateX(3px); }

/* ---------- Header / navigation ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.site-header.scrolled { border-color: var(--line); box-shadow: 0 6px 24px -18px rgba(15,23,42,.45); }
.hdr { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); flex-shrink: 0; }
.brand svg { width: 40px; height: 40px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text b { font-size: 1.12rem; font-weight: 800; letter-spacing: -0.01em; }
.brand-text small { font-size: .7rem; color: var(--muted); letter-spacing: .14em; text-transform: uppercase; font-weight: 600; margin-top: 3px; }
.site-nav { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.site-nav > ul { display: flex; align-items: center; gap: 2px; list-style: none; }
.site-nav > ul > li { position: relative; }
.site-nav > ul > li > a { display: flex; align-items: center; gap: 4px; padding: 10px 13px; border-radius: 8px; color: var(--text); text-decoration: none; font-weight: 600; font-size: .94rem; }
.site-nav > ul > li > a:hover { color: var(--ink); background: var(--soft-2); }
.site-nav .caret { width: 14px; height: 14px; opacity: .6; }
.sub { list-style: none; position: absolute; top: calc(100% + 6px); left: -8px; min-width: 260px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg); padding: 8px;
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .15s, transform .15s, visibility .15s; }
.sub::before { content: ''; position: absolute; top: -10px; left: 0; right: 0; height: 10px; }
.has-sub:hover > .sub, .has-sub:focus-within > .sub { opacity: 1; visibility: visible; transform: none; }
.sub a { display: block; padding: 10px 12px; border-radius: 8px; color: var(--text); text-decoration: none; font-size: .92rem; }
.sub a b { display: block; font-size: .93rem; }
.sub a span { display: block; font-size: .8rem; color: var(--muted); margin-top: 1px; }
.sub a:hover { background: var(--teal-50); color: var(--ink); }
.nav-cta { margin-left: 10px; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 10px; width: 44px; height: 44px; align-items: center; justify-content: center; color: var(--ink); cursor: pointer; }
.nav-toggle .i { width: 22px; height: 22px; }

/* active nav state, driven by <body data-page="..."> */
body[data-page="home"] .nav-home > a,
body[data-page="about"] .nav-about > a,
body[data-page="services"] .nav-services > a,
body[data-page="how"] .nav-how > a,
body[data-page="resources"] .nav-resources > a,
body[data-page="contact"] .nav-contact > a { color: var(--teal-700); background: var(--teal-50); }

@media (max-width: 1040px) {
  /* backdrop-filter would make the header the containing block of the fixed menu panel */
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: #fff; }
  .nav-toggle { display: inline-flex; }
  .site-nav { position: fixed; inset: var(--header-h) 0 0 0; background: #fff; flex-direction: column; align-items: stretch; gap: 0; padding: 12px 20px 28px; overflow-y: auto;
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .18s, transform .18s, visibility .18s; border-top: 1px solid var(--line); }
  .nav-open .site-nav { opacity: 1; visibility: visible; transform: none; }
  .site-nav > ul { flex-direction: column; align-items: stretch; }
  .site-nav > ul > li > a { padding: 14px 6px; font-size: 1.05rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .site-nav .caret { display: none; }
  .sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 4px 0 10px 10px; min-width: 0; }
  .sub a span { display: none; }
  .nav-cta { margin: 18px 0 0; padding: 16px; }
  body.nav-open { overflow: hidden; }
  body.nav-open .wa-float { display: none; }
}

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }
.section.soft { background: var(--soft); }
.section.tint { background: linear-gradient(180deg, var(--teal-50), #fff); }
.section.dark { background: var(--navy); color: #cbd5e1; }
.section.dark h2, .section.dark h3 { color: #fff; }
.section-head { max-width: 760px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { font-size: 1.08rem; color: var(--muted); margin-top: 14px; }
.section.dark .section-head p { color: #94a3b8; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--teal-700); margin-bottom: 14px; }
.eyebrow::before { content: ''; width: 18px; height: 2px; background: currentColor; border-radius: 2px; }
.section.dark .eyebrow, .hero .eyebrow, .page-hero .eyebrow { color: var(--mint); }
.lead { font-size: 1.15rem; color: var(--muted); }
.serif { font-family: 'Lora', Georgia, serif; font-style: italic; font-weight: 400; }

.grid { display: grid; gap: 24px; }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: start; }
.split.even { grid-template-columns: 1fr 1fr; }
.split.wide-right { grid-template-columns: .85fr 1.15fr; }
.stack > * + * { margin-top: 16px; }

/* ---------- Hero (home) ---------- */
.hero { position: relative; overflow: hidden; color: #cbd5e1;
  background: radial-gradient(1200px 520px at 85% -10%, rgba(20,184,166,.35), transparent 60%),
              radial-gradient(800px 480px at -10% 110%, rgba(124,58,237,.25), transparent 60%),
              linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 45%, var(--deep) 100%); }
.hero::before { content: ''; position: absolute; inset: 0; opacity: .5; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 44px 44px; -webkit-mask-image: radial-gradient(ellipse at 70% 30%, #000 20%, transparent 70%); mask-image: radial-gradient(ellipse at 70% 30%, #000 20%, transparent 70%); }
.hero .container { position: relative; display: grid; grid-template-columns: 1.25fr .75fr; gap: 56px; align-items: center; padding-top: 96px; padding-bottom: 104px; }
.hero h1 { color: #fff; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, var(--mint), #a5b4fc); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { color: #cbd5e1; margin-top: 22px; max-width: 620px; font-size: 1.18rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-note { margin-top: 26px; font-size: .86rem; color: #94a3b8; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.hero-note span { display: inline-flex; align-items: center; gap: 7px; }
.hero-note .i { width: 17px; height: 17px; color: var(--mint); }
.hero-card { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: 18px; padding: 28px; backdrop-filter: blur(6px); box-shadow: var(--shadow-lg); }
.hero-card h3 { color: #fff; font-size: 1rem; margin-bottom: 18px; display: flex; align-items: center; gap: 10px; }
.hero-card ul { list-style: none; }
.hero-card li { display: flex; gap: 12px; padding: 13px 0; border-top: 1px solid rgba(255,255,255,.1); font-size: .95rem; }
.hero-card li:first-child { border-top: 0; padding-top: 0; }
.hero-card li .i { color: var(--mint); margin-top: 2px; }
.hero-card li b { color: #fff; display: block; }
.hero-card li span { color: #94a3b8; font-size: .86rem; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { position: relative; overflow: hidden; color: #cbd5e1; padding: 64px 0 56px;
  background: radial-gradient(900px 420px at 90% -20%, rgba(20,184,166,.32), transparent 60%), linear-gradient(135deg, var(--navy), var(--deep)); }
.page-hero::before { content: ''; position: absolute; inset: 0; opacity: .35; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 40px 40px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 60%); mask-image: linear-gradient(90deg, transparent, #000 60%); }
.page-hero .container { position: relative; }
.page-hero h1 { color: #fff; font-size: clamp(1.9rem, 4vw, 2.9rem); max-width: 860px; }
.page-hero .lead { color: #cbd5e1; margin-top: 16px; max-width: 720px; }
.page-hero.indigo { background: radial-gradient(900px 420px at 90% -20%, rgba(129,140,248,.35), transparent 60%), linear-gradient(135deg, var(--navy), #1e1b4b); }
.page-hero .hero-ctas { margin-top: 26px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: .84rem; margin-bottom: 18px; color: #94a3b8; list-style: none; }
.crumbs a { color: #cbd5e1; text-decoration: none; }
.crumbs a:hover { color: #fff; }
.crumbs li + li::before { content: '/'; margin-right: 6px; opacity: .5; }

/* sub-section tabs (About / Services) */
.subnav { position: sticky; top: var(--header-h); z-index: 20; background: #fff; border-bottom: 1px solid var(--line); }
.subnav ul { display: flex; gap: 4px; list-style: none; overflow-x: auto; scrollbar-width: none; }
.subnav ul::-webkit-scrollbar { display: none; }
.subnav a { display: block; padding: 16px 16px 14px; color: var(--muted); font-weight: 600; font-size: .93rem; text-decoration: none; border-bottom: 2.5px solid transparent; white-space: nowrap; }
.subnav a:hover { color: var(--ink); }
.subnav a[aria-current="page"] { color: var(--teal-700); border-bottom-color: var(--teal); }

/* ---------- Cards ---------- */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); }
.card.hover { transition: transform .18s, box-shadow .18s, border-color .18s; }
.card.hover:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #d6e4e2; }
a.card { display: block; color: inherit; text-decoration: none; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); font-size: .97rem; }
.card .link-arrow { margin-top: 18px; }
.card.flat { box-shadow: none; }
.card.soft { background: var(--soft); }
.ico { width: 48px; height: 48px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: var(--teal-50); color: var(--teal-700); margin-bottom: 18px; border: 1px solid var(--teal-100); }
.ico.indigo { background: var(--indigo-50); color: var(--indigo); border-color: var(--indigo-100); }
.ico.dark { background: rgba(255,255,255,.08); color: var(--mint); border-color: rgba(255,255,255,.12); }
.ico .i { width: 24px; height: 24px; }

.div-card { position: relative; overflow: hidden; border-radius: 18px; padding: 36px; border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow); }
.div-card::after { content: ''; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(90deg, var(--teal), var(--mint)); }
.div-card.ii::after { background: linear-gradient(90deg, var(--indigo), #a5b4fc); }
.div-card .tag { font-size: .75rem; font-weight: 800; letter-spacing: .16em; color: var(--teal-700); }
.div-card.ii .tag { color: var(--indigo); }
.div-card h3 { font-size: 1.5rem; margin: 8px 0 6px; }
.div-card .who { color: var(--muted); font-size: .93rem; margin-bottom: 20px; }
.checklist { list-style: none; }
.checklist li { display: flex; gap: 11px; padding: 9px 0; border-top: 1px solid var(--line); font-size: .97rem; }
.checklist li:first-child { border-top: 0; }
.checklist li .i { width: 19px; height: 19px; color: var(--teal); margin-top: 3px; }
.div-card.ii .checklist li .i { color: var(--indigo); }
.checklist.plain li { border: 0; padding: 6px 0; }
.div-card .actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }

/* credentials strip */
.cred-strip { border-bottom: 1px solid var(--line); background: #fff; }
.cred-strip .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 34px; padding-top: 26px; padding-bottom: 26px; }
.cred-strip .lbl { font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.cred-strip span.c { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--ink); font-size: .93rem; }
.cred-strip span.c .i { width: 18px; height: 18px; color: var(--teal); }

/* steps / process */
.steps-row { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; counter-reset: st; }
.steps-row .st { position: relative; counter-increment: st; padding: 22px 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.steps-row .st::before { content: counter(st, decimal-leading-zero); display: block; font-size: .8rem; font-weight: 800; color: var(--teal); letter-spacing: .08em; margin-bottom: 10px; }
.steps-row .st b { display: block; font-size: .98rem; color: var(--ink); line-height: 1.3; }
.steps-row .st span { display: block; font-size: .85rem; color: var(--muted); margin-top: 6px; line-height: 1.5; }
.steps-row .st.free { border-color: var(--teal-100); background: var(--teal-50); }
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: .72rem; font-weight: 700; letter-spacing: .04em; padding: 3px 9px; border-radius: 99px; background: var(--teal-100); color: var(--teal-800); }
.badge.indigo { background: var(--indigo-100); color: #3730a3; }
.badge.amber { background: #fef3c7; color: var(--amber-700); }
.badge.slate { background: var(--soft-2); color: var(--text); }

/* timeline (How it works) */
.timeline { list-style: none; position: relative; }
.timeline::before { content: ''; position: absolute; left: 27px; top: 10px; bottom: 10px; width: 2px; background: linear-gradient(var(--teal-100), var(--line)); }
.tl { position: relative; display: grid; grid-template-columns: 56px 1fr; gap: 24px; padding-bottom: 36px; }
.tl:last-child { padding-bottom: 0; }
.tl .num { position: relative; z-index: 1; width: 56px; height: 56px; border-radius: 50%; background: #fff; border: 2px solid var(--teal); color: var(--teal-700); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.05rem; }
.tl.free .num { background: var(--teal); color: #fff; }
.tl .body { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 26px; box-shadow: var(--shadow-sm); }
.tl .body h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 1.2rem; }
.tl .body p { color: var(--muted); margin-top: 8px; }
.tl .who { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 14px; font-size: .9rem; }
.tl .who span { display: inline-flex; gap: 7px; align-items: baseline; }
.tl .who b { font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--teal-700); }
.tl .body .link-arrow { margin-top: 14px; font-size: .93rem; }

/* pills */
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: 99px; background: #fff; border: 1px solid var(--line); font-size: .86rem; font-weight: 600; color: var(--text); }
.section.dark .pill { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.14); color: #e2e8f0; }
.pill.t { background: var(--teal-50); border-color: var(--teal-100); color: var(--teal-800); }
.pill.n { background: var(--indigo-50); border-color: var(--indigo-100); color: #3730a3; }

/* data table */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table.data { width: 100%; border-collapse: collapse; font-size: .93rem; min-width: 720px; }
table.data th { text-align: left; font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); background: var(--soft); padding: 14px 18px; border-bottom: 1px solid var(--line); }
table.data td { padding: 16px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data tr:last-child td { border-bottom: 0; }
table.data td b { display: block; }
table.data td small { color: var(--muted); font-size: .82rem; }
table.data .nowrap { white-space: nowrap; }

/* stats / facts */
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.fact { padding: 24px; border-left: 1px solid var(--line); }
.fact:first-child { border-left: 0; }
.fact b { display: block; font-size: 1.5rem; color: var(--ink); letter-spacing: -0.02em; }
.fact span { font-size: .87rem; color: var(--muted); }

/* quote / statement */
.statement { font-family: 'Lora', Georgia, serif; font-style: italic; font-size: clamp(1.25rem, 2.2vw, 1.6rem); line-height: 1.5; color: var(--ink); border-left: 4px solid var(--teal); padding: 6px 0 6px 26px; }

/* notices */
.notice { display: flex; gap: 14px; padding: 18px 20px; border-radius: 12px; background: var(--teal-50); border: 1px solid var(--teal-100); color: var(--teal-800); font-size: .95rem; }
.notice .i { color: var(--teal); margin-top: 2px; }
.notice.amber { background: var(--amber-50); border-color: #fde68a; color: #78350f; }
.notice.amber .i { color: var(--amber-700); }
.notice.slate { background: var(--soft); border-color: var(--line); color: var(--text); }
.notice b { color: inherit; }

/* person cards (team) */
.person { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start; }
.avatar { width: 64px; height: 64px; border-radius: 16px; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--teal), var(--deep)); color: #fff; }
.avatar .i { width: 30px; height: 30px; }
.avatar.indigo { background: linear-gradient(135deg, var(--indigo), #312e81); }
.avatar.amber { background: linear-gradient(135deg, #d97706, #78350f); }
.avatar.blue { background: linear-gradient(135deg, #2563eb, #1e3a8a); }
.person .role { font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--teal-700); }
.person h3 { margin: 4px 0 4px; }
.person .quals { font-size: .87rem; color: var(--muted); }
.principal { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; }
.cred-list { list-style: none; }
.cred-list li { display: flex; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.cred-list li:first-child { border-top: 0; padding-top: 0; }
.cred-list .i { color: var(--teal); margin-top: 2px; }
.cred-list b { display: block; font-size: .95rem; }
.cred-list span { font-size: .85rem; color: var(--muted); }

/* CTA band */
.cta-band { position: relative; overflow: hidden; border-radius: 22px; padding: 56px; color: #cbd5e1;
  background: radial-gradient(600px 300px at 100% 0%, rgba(20,184,166,.45), transparent 60%), linear-gradient(135deg, var(--navy), var(--deep));
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center; box-shadow: var(--shadow-lg); }
.cta-band h2 { color: #fff; }
.cta-band p { margin-top: 12px; font-size: 1.06rem; }
.cta-band .hero-ctas { margin-top: 0; justify-content: flex-end; }

/* accordion (FAQ) */
.faq-group + .faq-group { margin-top: 48px; }
.faq-group h2 { font-size: 1.35rem; margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
details.qa { background: #fff; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; transition: border-color .15s, box-shadow .15s; }
details.qa[open] { border-color: var(--teal-100); box-shadow: var(--shadow-sm); }
details.qa summary { list-style: none; cursor: pointer; padding: 18px 22px; font-weight: 700; color: var(--ink); display: flex; justify-content: space-between; gap: 16px; align-items: center; }
details.qa summary::-webkit-details-marker { display: none; }
details.qa summary::after { content: '+'; font-size: 1.4rem; font-weight: 400; color: var(--teal); line-height: 1; transition: transform .2s; }
details.qa[open] summary::after { transform: rotate(45deg); }
details.qa .a { padding: 0 22px 20px; color: var(--muted); }
details.qa .a ul { margin: 8px 0 0 20px; }
details.qa.warn { border-color: #fde68a; background: var(--amber-50); }
.search-box { position: relative; max-width: 520px; }
.search-box input { padding-left: 46px; }
.search-box .i { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--muted); }

/* ---------- Forms ---------- */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 36px; box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.form-grid .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field > label, .field > .label, fieldset > legend.label { font-size: .88rem; font-weight: 700; color: var(--ink); }
.field .hint, .hint { font-size: .82rem; color: var(--muted); font-weight: 400; }
.req { color: var(--red-700); }
input[type="text"], input[type="email"], input[type="tel"], input[type="date"], input[type="number"], input[type="search"], input[type="url"], select, textarea {
  width: 100%; font: inherit; font-size: .97rem; color: var(--ink); background: #fff; border: 1.5px solid var(--line-2); border-radius: 10px; padding: 12px 14px; transition: border-color .15s, box-shadow .15s; }
textarea { min-height: 112px; resize: vertical; line-height: 1.55; }
select { appearance: none; -webkit-appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
input:hover, select:hover, textarea:hover { border-color: #94a3b8; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(20,184,166,.18); }
input:user-invalid, select:user-invalid, textarea:user-invalid { border-color: var(--red-700); }
::placeholder { color: #94a3b8; }
fieldset { border: 0; min-width: 0; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice span { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border: 1.5px solid var(--line-2); border-radius: 99px; font-size: .9rem; font-weight: 600; color: var(--text); background: #fff; transition: all .12s; user-select: none; }
.choice span::before { content: ''; width: 15px; height: 15px; border: 1.5px solid #94a3b8; border-radius: 4px; flex-shrink: 0; transition: all .12s; }
.choice input[type="radio"] + span::before { border-radius: 50%; }
.choice input:checked + span { border-color: var(--teal); background: var(--teal-50); color: var(--teal-800); }
.choice input:checked + span::before { background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/11px no-repeat; border-color: var(--teal); }
.choice input:focus-visible + span { box-shadow: 0 0 0 4px rgba(20,184,166,.25); }
.choices.indigo .choice input:checked + span { border-color: var(--indigo); background: var(--indigo-50); color: #3730a3; }
.choices.indigo .choice input:checked + span::before { background-color: var(--indigo); border-color: var(--indigo); }
.consent { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border: 1.5px solid var(--line-2); border-radius: 12px; cursor: pointer; }
.consent input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--teal); flex-shrink: 0; }
.consent:has(input:checked) { border-color: var(--teal); background: var(--teal-50); }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 28px; }
.form-foot { font-size: .84rem; color: var(--muted); margin-top: 18px; display: flex; gap: 8px; }
.form-foot .i { width: 16px; height: 16px; margin-top: 3px; color: var(--teal); }
.success { display: none; text-align: center; padding: 20px 8px; }
.success.show { display: block; }
.success .ico { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 18px; }
.success .ico .i { width: 30px; height: 30px; }
.success h3 { font-size: 1.4rem; }
.success p { color: var(--muted); margin: 10px auto 0; max-width: 520px; }
.success .form-actions { justify-content: center; }
.ref-chip { display: inline-block; font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace; font-size: .9rem; background: var(--soft-2); border: 1px solid var(--line); padding: 4px 10px; border-radius: 8px; color: var(--ink); }

/* stepper (Scoping Sheet) */
.stepper { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; list-style: none; margin-bottom: 32px; }
.stepper li { position: relative; padding-top: 14px; font-size: .82rem; font-weight: 600; color: var(--muted); }
.stepper li::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 5px; border-radius: 5px; background: var(--line); }
.stepper li.done::before, .stepper li.on::before { background: var(--teal); }
.stepper li.on { color: var(--ink); }
.stepper li button { all: unset; cursor: pointer; }
.stepper li button:focus-visible { outline: 3px solid var(--teal-500); border-radius: 4px; }
.step-pane { display: none; }
.step-pane.on { display: block; animation: fade .25s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.pane-head { margin-bottom: 24px; }
.pane-head h2 { font-size: 1.5rem; }
.pane-head p { color: var(--muted); margin-top: 6px; }
.subblock { border: 1px solid var(--line); border-radius: 14px; padding: 24px; margin-top: 8px; }
.subblock + .subblock { margin-top: 18px; }
.subblock > h3 { display: flex; align-items: center; gap: 10px; font-size: 1.02rem; margin-bottom: 18px; }
.declare { background: var(--teal-50); border: 1px solid var(--teal-100); border-radius: 14px; padding: 24px; }
.declare ol { margin: 10px 0 0 20px; color: var(--text); }
.declare li { margin-bottom: 8px; }
.review { border: 1px solid var(--line); border-radius: 14px; padding: 6px 22px; background: var(--soft); max-height: 520px; overflow: auto; }
.review h4 { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--teal-700); margin: 18px 0 6px; }
.review dl { display: grid; grid-template-columns: 220px 1fr; gap: 6px 18px; font-size: .92rem; }
.review dt { color: var(--muted); }
.review dd { color: var(--ink); font-weight: 600; white-space: pre-wrap; }
.save-state { font-size: .82rem; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }

/* side panel */
.aside-card { position: sticky; top: calc(var(--header-h) + 24px); }
.mini-steps { list-style: none; counter-reset: ms; }
.mini-steps li { counter-increment: ms; display: grid; grid-template-columns: 34px 1fr; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.mini-steps li:first-child { border-top: 0; padding-top: 0; }
.mini-steps li::before { content: counter(ms); width: 30px; height: 30px; border-radius: 50%; background: var(--teal-50); color: var(--teal-700); border: 1px solid var(--teal-100); font-weight: 800; font-size: .85rem; display: flex; align-items: center; justify-content: center; }
.mini-steps b { display: block; font-size: .95rem; }
.mini-steps span { font-size: .87rem; color: var(--muted); }

/* contact */
.contact-card { display: flex; gap: 18px; align-items: flex-start; }
.contact-card .ico { margin: 0; }
.contact-card h3 { font-size: 1.02rem; }
.contact-card a.big { font-size: 1.15rem; font-weight: 800; color: var(--ink); text-decoration: none; }
.contact-card a.big:hover { color: var(--teal-700); }
.contact-card p { font-size: .9rem; color: var(--muted); }
dl.kv { display: grid; grid-template-columns: 160px 1fr; gap: 10px 18px; font-size: .94rem; }
dl.kv dt { color: var(--muted); }
dl.kv dd { color: var(--ink); font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #94a3b8; padding: 72px 0 28px; font-size: .93rem; }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr 1.2fr; gap: 36px; }
.site-footer .brand, .site-footer .brand-text b { color: #fff; }
.site-footer .brand-text small { color: #64748b; }
.site-footer p { margin-top: 16px; font-size: .9rem; max-width: 320px; }
.site-footer h4 { color: #fff; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { color: #cbd5e1; text-decoration: none; }
.site-footer a:hover { color: var(--mint); }
.foot-contact li { display: flex; gap: 10px; }
.foot-contact .i { width: 17px; height: 17px; color: var(--mint); margin-top: 4px; }
.foot-bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.08); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .82rem; color: #64748b; }
.foot-bottom .tag { letter-spacing: .3em; }

/* floating WhatsApp */
.wa-float { position: fixed; right: 22px; bottom: 22px; z-index: 60; display: flex; align-items: center; gap: 10px; background: var(--wa); color: var(--wa-ink); text-decoration: none; font-weight: 700; font-size: .92rem;
  padding: 12px 18px 12px 14px; border-radius: 99px; box-shadow: 0 12px 30px -10px rgba(5,46,22,.55); transition: transform .15s, box-shadow .15s; }
.wa-float:hover { color: var(--wa-ink); transform: translateY(-2px); box-shadow: 0 16px 34px -10px rgba(5,46,22,.6); }
.wa-float svg { width: 26px; height: 26px; fill: currentColor; }
@media (max-width: 640px) { .wa-float span { display: none; } .wa-float { padding: 14px; } }

/* utilities */
.mt-0 { margin-top: 0 !important; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 32px; } .mt-6 { margin-top: 48px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.flex { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.hidden { display: none !important; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .steps-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .foot-grid { grid-template-columns: 1fr 1fr 1fr; }
  .foot-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .section { padding: 72px 0; }
  .hero .container, .split, .split.even, .split.wide-right, .principal, .cta-band { grid-template-columns: 1fr; }
  .hero .container { padding-top: 64px; padding-bottom: 72px; gap: 40px; }
  .g-3, .g-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .fact:nth-child(3) { border-left: 0; }
  .fact:nth-child(n+3) { border-top: 1px solid var(--line); }
  .cta-band { padding: 40px 28px; }
  .cta-band .hero-ctas { justify-content: flex-start; }
  .aside-card { position: static; }
  .stepper li span.long { display: none; }
}
@media (max-width: 640px) {
  :root { --header-h: 64px; }
  .container { padding: 0 16px; }
  .section { padding: 56px 0; }
  .section-head { margin-bottom: 32px; }
  .g-2, .g-3, .g-4, .form-grid { grid-template-columns: 1fr; }
  .steps-row { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .card, .div-card { padding: 24px; }
  .form-card { padding: 22px 18px; }
  .brand-text small { display: none; }
  .brand svg { width: 36px; height: 36px; }
  .tl { grid-template-columns: 40px 1fr; gap: 14px; }
  .tl .num { width: 40px; height: 40px; font-size: .9rem; }
  .timeline::before { left: 19px; }
  .tl .body { padding: 20px; }
  .review dl, dl.kv { grid-template-columns: 1fr; gap: 2px; }
  .review dd, dl.kv dd { margin-bottom: 10px; }
  .stepper { gap: 5px; }
  .stepper li { font-size: 0; padding-top: 8px; }
  .hero-ctas .btn { flex: 1 1 auto; }
}

/* ---------- Scoping Sheet A4 print copy ---------- */
.print-sheet { display: none; }
@media print {
  @page { size: A4; margin: 14mm 14mm 16mm; }
  body[data-page="scoping"] main > section { display: none !important; }
  .print-sheet { display: block; font-size: 9.5pt; color: #1e293b; line-height: 1.45; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .ps-lh { display: flex; justify-content: space-between; gap: 16px; background: linear-gradient(135deg, #0f172a, #0c3a4a 60%, #0d9488); color: #fff; padding: 14px 18px; border-radius: 0 0 8px 8px; }
  .ps-lh b { display: block; font-size: 14pt; color: #fff; }
  .ps-lh span { font-size: 7.5pt; color: #99f6e4; }
  .ps-c { text-align: right; font-size: 8pt; color: #cbd5e1; }
  .ps-title { display: flex; justify-content: space-between; align-items: flex-end; border-bottom: 2px solid #14b8a6; padding: 12px 0 8px; margin-bottom: 4px; }
  .ps-title h1 { font-size: 14pt; color: #0f172a; letter-spacing: 0; }
  .ps-title p { font-size: 8pt; color: #64748b; }
  .ps-ref { font-size: 8.5pt; color: #475569; text-align: right; }
  .print-sheet h2 { font-size: 10.5pt; color: #0f172a; margin: 12px 0 5px; letter-spacing: 0; break-after: avoid; }
  .print-sheet table { width: 100%; border-collapse: collapse; }
  .print-sheet th, .print-sheet td { border: 1px solid #cbd5e1; padding: 4px 8px; text-align: left; vertical-align: top; font-size: 8.8pt; }
  .print-sheet th { width: 32%; background: #f8fafc; color: #334155; font-weight: 600; }
  .print-sheet tr { break-inside: avoid; }
  .ps-dec { margin: 0 0 0 18px; font-size: 8.6pt; }
  .ps-note { font-size: 8pt; color: #64748b; margin-top: 6px; }
  .ps-sig { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 26px; font-size: 8.5pt; color: #475569; break-inside: avoid; }
  .ps-sig > div { border-top: 1.5px solid #0f172a; padding-top: 5px; }
  .ps-sig span { color: #0f172a; font-weight: 700; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .site-footer, .wa-float, .subnav, .no-print { display: none !important; }
  body { font-size: 11pt; }
  .page-hero { background: none !important; color: #000; padding: 0 0 12pt; }
  .page-hero h1 { color: #000; }
  .section { padding: 12pt 0; }
}
