/* =========================================================
   PlanAssure Consulting — draft site styles
   Tokens first; everything else reads from them.
   ========================================================= */
:root {
  --ink: #0f1b2d;          /* headings, nav */
  --text: #2b3647;
  --muted: #5d6b7e;
  --bg: #ffffff;
  --bg-alt: #f4f6f9;
  --bg-deep: #0f1b2d;      /* dark bands */
  --on-deep: #e8edf4;
  --on-deep-muted: #a9b6c7;
  --line: #dde3ea;
  --accent: #e0861a;       /* amber: critical path / CTA */
  --accent-ink: #ffffff;
  --accent-soft: #fdf1e2;
  --teal: #157a84;         /* secondary: float / non-critical */
  --teal-soft: #e3f2f3;
  --ok: #2f8f4e;
  --warn: #c58a00;
  --bad: #c2412d;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(15,27,45,.06), 0 6px 20px rgba(15,27,45,.06);
  --maxw: 1180px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #eef2f7; --text: #cdd6e1; --muted: #93a1b3;
    --bg: #0c1522; --bg-alt: #111d2e; --bg-deep: #070d16;
    --line: #22324a; --accent-soft: #3a2a12; --teal: #45b3bd; --teal-soft: #0f2d33;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 6px 20px rgba(0,0,0,.25);
  }
}
:root[data-theme="dark"] {
  --ink: #eef2f7; --text: #cdd6e1; --muted: #93a1b3;
  --bg: #0c1522; --bg-alt: #111d2e; --bg-deep: #070d16;
  --line: #22324a; --accent-soft: #3a2a12; --teal: #45b3bd; --teal-soft: #0f2d33;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 6px 20px rgba(0,0,0,.25);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); color: var(--text); background: var(--bg);
  line-height: 1.6; font-size: 16.5px; -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); font-weight: 750; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 650; }
p { margin: 0 0 1em; }
code, .mono { font-family: var(--mono); font-size: .92em; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.section { padding: 80px 0; }
.section.alt { background: var(--bg-alt); }
.section.deep { background: var(--bg-deep); color: var(--on-deep); }
.section.deep h2, .section.deep h3 { color: #fff; }
.section.deep p { color: var(--on-deep-muted); }
.eyebrow {
  font-family: var(--mono); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent); font-weight: 600; margin-bottom: .8em; display: inline-block;
}
.lead { font-size: 1.15rem; color: var(--muted); max-width: 62ch; }
.section.deep .lead { color: var(--on-deep-muted); }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* ---------- draft banner ---------- */
.draft-banner {
  background: repeating-linear-gradient(45deg, #fff3cd, #fff3cd 12px, #ffecb0 12px, #ffecb0 24px);
  color: #5c4300; font-size: .85rem; text-align: center; padding: 6px 12px; font-weight: 500;
}
.placeholder {
  background: var(--accent-soft); border: 1px dashed var(--accent); border-radius: 4px;
  padding: 0 4px; color: var(--ink); font-size: .92em;
}

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 750; font-size: 1.1rem; }
.brand:hover { text-decoration: none; }
.brand small { display: block; font-weight: 500; font-size: .68rem; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
.brand-mark { width: 34px; height: 34px; flex: none; }
.nav-links { display: flex; gap: 4px; align-items: center; list-style: none; margin: 0; padding: 0; }
.nav-links a { white-space: nowrap; color: var(--text); padding: 8px 12px; border-radius: 6px; font-size: .95rem; font-weight: 500; }
.nav-links a:hover { background: var(--bg-alt); text-decoration: none; }
.nav-links a.active { color: var(--ink); background: var(--bg-alt); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 6px; padding: 8px 10px; color: var(--ink); cursor: pointer; }
@media (max-width: 1140px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 10px 16px 16px;
  }
  .nav-links.open { display: flex; }
  .nav-links .btn { margin-top: 8px; text-align: center; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 8px;
  font-weight: 600; font-size: .97rem; border: 1px solid transparent; cursor: pointer; transition: .15s;
  font-family: inherit;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink) !important; }
.btn-primary:hover { background: #c97412; }
.btn-ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.section.deep .btn-ghost, .hero .btn-ghost, .page-hero .btn-ghost { color: #fff; border-color: rgba(255,255,255,.3); }
.section.deep .btn-ghost:hover, .hero .btn-ghost:hover, .page-hero .btn-ghost:hover { border-color: #fff; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }
.nav-links .btn-primary { padding: 9px 16px; }

/* ---------- hero ---------- */
.hero { background: var(--bg-deep); color: var(--on-deep); padding: 84px 0 72px; position: relative; overflow: hidden; }
.hero h1 { color: #fff; }
.hero .lead { color: var(--on-deep-muted); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 28px; }
.chip {
  font-family: var(--mono); font-size: .75rem; padding: 4px 10px; border-radius: 99px;
  border: 1px solid rgba(255,255,255,.18); color: var(--on-deep);
}
.chip.light { border-color: var(--line); color: var(--muted); background: var(--bg); }
.hero-visual {
  background: #13233a; border: 1px solid #1f3552; border-radius: 14px; padding: 18px; box-shadow: 0 20px 60px rgba(0,0,0,.35);
}
.hero-visual .hv-head { display: flex; justify-content: space-between; font-family: var(--mono); font-size: .72rem; color: #8ea3bf; margin-bottom: 10px; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

.page-hero { background: var(--bg-deep); color: var(--on-deep); padding: 64px 0 52px; }
.page-hero h1 { color: #fff; font-size: clamp(1.9rem, 4vw, 2.8rem); }
.page-hero .lead { color: var(--on-deep-muted); }
.crumbs { font-family: var(--mono); font-size: .78rem; color: var(--on-deep-muted); margin-bottom: 14px; }
.crumbs a { color: var(--on-deep-muted); }

/* ---------- grids & cards ---------- */
.grid { display: grid; gap: 20px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .g3, .g4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } .section { padding: 56px 0; } }

.card {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px;
  box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.section.alt .card { background: var(--bg); }
.card h3 { margin-top: 4px; }
.card p { color: var(--muted); font-size: .97rem; }
.card .more { margin-top: auto; font-weight: 600; font-size: .92rem; }
a.card { color: inherit; transition: .15s; }
a.card:hover { text-decoration: none; border-color: var(--accent); transform: translateY(-2px); }
.card .icon {
  width: 42px; height: 42px; border-radius: 9px; background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center; margin-bottom: 10px;
}
.card .icon svg { width: 22px; height: 22px; }
.card .tag { font-family: var(--mono); font-size: .72rem; color: var(--teal); letter-spacing: .05em; }
.section.deep .card { background: #13233a; border-color: #1f3552; box-shadow: none; }
.section.deep .card p { color: var(--on-deep-muted); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 28px; } }

.ticks { list-style: none; padding: 0; margin: 0 0 1em; }
.ticks li { position: relative; padding-left: 26px; margin-bottom: 8px; }
.ticks li::before {
  content: ""; position: absolute; left: 2px; top: .55em; width: 12px; height: 7px;
  border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg);
}
.section.deep .ticks li { color: var(--on-deep); }

/* stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat { border-left: 3px solid var(--accent); padding: 4px 0 4px 16px; }
.stat b { display: block; font-size: 2rem; color: var(--ink); font-weight: 750; line-height: 1.1; }
.section.deep .stat b { color: #fff; }
.stat span { color: var(--muted); font-size: .9rem; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* lifecycle strip */
.lifecycle { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; counter-reset: step; margin-top: 36px; }
.lc-step { padding: 20px 18px; border-top: 4px solid var(--line); position: relative; }
.lc-step.on { border-top-color: var(--accent); }
.lc-step::before {
  counter-increment: step; content: "0" counter(step); font-family: var(--mono); font-size: .8rem; color: var(--accent); font-weight: 600;
}
.lc-step h3 { font-size: 1.05rem; margin: 6px 0; }
.lc-step p { font-size: .9rem; color: var(--muted); margin: 0 0 8px; }
.lc-step .mono { font-size: .74rem; color: var(--teal); }
@media (max-width: 900px) { .lifecycle { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .lifecycle { grid-template-columns: 1fr; } }

/* service detail blocks */
.svc-layout { display: grid; grid-template-columns: 250px 1fr; gap: 48px; }
.svc-nav { position: sticky; top: 90px; align-self: start; }
.svc-nav a { display: block; padding: 7px 12px; border-left: 2px solid var(--line); color: var(--muted); font-size: .92rem; }
.svc-nav a:hover { color: var(--ink); border-left-color: var(--accent); text-decoration: none; }
.svc { padding: 8px 0 56px; border-bottom: 1px solid var(--line); margin-bottom: 48px; scroll-margin-top: 90px; }
.svc:last-child { border-bottom: 0; }
.svc .clause { font-family: var(--mono); font-size: .8rem; color: var(--teal); background: var(--teal-soft); padding: 3px 9px; border-radius: 99px; display: inline-block; margin-bottom: 10px; }
.svc h2 { font-size: 1.75rem; }
.svc h4 { font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 22px 0 10px; font-family: var(--mono); }
.deliv { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 28px; }
@media (max-width: 980px) { .svc-layout { grid-template-columns: 1fr; } .svc-nav { display: none; } }
@media (max-width: 640px) { .deliv { grid-template-columns: 1fr; } }
.callout { background: var(--bg-alt); border-left: 3px solid var(--teal); padding: 14px 18px; border-radius: 0 8px 8px 0; font-size: .95rem; margin: 18px 0; }
.callout.amber { border-left-color: var(--accent); background: var(--accent-soft); }

/* tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: .93rem; background: var(--bg); }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--bg-alt); color: var(--ink); font-weight: 650; font-size: .85rem; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
td .mono { color: var(--teal); }

/* forms / tool panels */
.tool {
  background: var(--bg); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); overflow: hidden;
}
.tool-head { padding: 18px 22px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.tool-head h3 { margin: 0; }
.tool-body { padding: 22px; }
label { font-size: .85rem; font-weight: 600; color: var(--ink); display: block; margin-bottom: 4px; }
input, select, textarea {
  width: 100%; font-family: inherit; font-size: .95rem; padding: 9px 11px; border: 1px solid var(--line);
  border-radius: 7px; background: var(--bg); color: var(--ink);
}
input:focus, select:focus, textarea:focus { outline: 2px solid color-mix(in srgb, var(--accent) 50%, transparent); border-color: var(--accent); }
.field-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 760px) { .field-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .field-grid { grid-template-columns: minmax(0, 1fr); } }
/* stop wide tables/inputs from blowing grid tracks out */
.grid > *, .split > *, .svc-layout > *, .field-grid > * { min-width: 0; }
.split.evm { grid-template-columns: 330px minmax(0, 1fr); gap: 28px; }
@media (max-width: 900px) { .split.evm { grid-template-columns: minmax(0, 1fr); } }
.tool table input { padding: 6px 7px; font-size: .88rem; min-width: 64px; }
.tool td, .tool th { padding: 7px 8px; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 18px 0; }
@media (max-width: 760px) { .kpis { grid-template-columns: 1fr 1fr; } }
.kpi { background: var(--bg-alt); border-radius: 9px; padding: 12px 14px; }
.kpi span { font-size: .75rem; color: var(--muted); font-family: var(--mono); text-transform: uppercase; letter-spacing: .05em; }
.kpi b { display: block; font-size: 1.35rem; color: var(--ink); }
.kpi.good b { color: var(--ok); } .kpi.warn b { color: var(--warn); } .kpi.bad b { color: var(--bad); }
.chart { width: 100%; height: auto; display: block; }
.note { font-size: .82rem; color: var(--muted); }

/* checklist */
.checklist label { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; padding: 8px 10px; border-radius: 7px; cursor: pointer; }
.checklist label:hover { background: var(--bg-alt); }
.checklist input { width: auto; margin-top: 4px; accent-color: var(--accent); }
.checklist .ref { font-family: var(--mono); font-size: .75rem; color: var(--teal); margin-left: auto; white-space: nowrap; }
.meter { height: 10px; background: var(--bg-alt); border-radius: 99px; overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--accent); width: 0; transition: width .3s; }

/* timeline (NEC) */
.timeline { position: relative; padding-left: 28px; }
.timeline::before { content: ""; position: absolute; left: 8px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.tl-item { position: relative; margin-bottom: 22px; }
.tl-item::before { content: ""; position: absolute; left: -26px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--bg); border: 3px solid var(--accent); }
.tl-item h4 { margin: 0 0 2px; font-size: 1rem; }
.tl-item .when { font-family: var(--mono); font-size: .8rem; color: var(--teal); }
.tl-item p { margin: 4px 0 0; color: var(--muted); font-size: .93rem; }

/* tabs */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; border-bottom: 1px solid var(--line); margin-bottom: 26px; }
.tab { background: none; border: 0; padding: 12px 16px; font: inherit; font-weight: 600; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--accent); }
.tab-panel[hidden] { display: none; }

/* FAQ */
details { border: 1px solid var(--line); border-radius: 9px; padding: 14px 18px; margin-bottom: 10px; background: var(--bg); }
summary { cursor: pointer; font-weight: 600; color: var(--ink); }
details p { margin: 10px 0 0; color: var(--muted); }

/* CTA band */
.cta-band { background: linear-gradient(120deg, var(--bg-deep), #1a3150); color: #fff; border-radius: 16px; padding: 44px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin: 0 0 6px; }
.cta-band p { color: var(--on-deep-muted); margin: 0; }

/* footer */
.site-footer { background: var(--bg-deep); color: var(--on-deep-muted); padding: 56px 0 28px; font-size: .92rem; }
.site-footer h4 { color: #fff; font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; }
.site-footer a { color: var(--on-deep-muted); display: block; padding: 3px 0; }
.site-footer a:hover { color: #fff; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.foot-legal { border-top: 1px solid #1f3552; margin-top: 36px; padding-top: 20px; font-size: .8rem; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } }

/* gantt animation in hero */
.gbar { transform-box: fill-box; transform-origin: left center; animation: grow 1.1s ease-out backwards; }
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) { .gbar { animation: none; } html { scroll-behavior: auto; } }

.logos { display: flex; flex-wrap: wrap; gap: 10px; }
.badge-std { border: 1px solid var(--line); border-radius: 8px; padding: 10px 14px; font-size: .85rem; background: var(--bg); }
.badge-std b { display: block; color: var(--ink); font-size: .92rem; }
.badge-std span { color: var(--muted); font-size: .8rem; }
