@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600;700&family=IBM+Plex+Mono:wght@500;600&display=swap');

:root {
  --ink:#28352A;
  --paper:#F5F4F0;
  --panel:#FBFAF7;
  --line:#DDE2D9;
  --steel:#5C6B5F;
  --muted:#7A8A7D;
  --accent:#2F5D3A;
  --accent-dark:#233F2A;
  --go:#2F5D3A;
  --go-bg:#E4EBE1;
  --caution:#D97706;
  --caution-bg:#FBEEDD;
  --brass:#A9762F;
  --brass-soft:#F0E4CE;
  --shadow: 0 1px 2px rgba(40,53,42,0.06), 0 8px 24px -12px rgba(40,53,42,0.18);
}

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

html, body { background: var(--paper); }
body {
  margin: 0;
  font-family: 'IBM Plex Sans', sans-serif;
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: 'IBM Plex Sans', sans-serif; font-weight: 700; letter-spacing: -0.01em; margin: 0 0 0.5em; }
p { margin: 0 0 1em; }
.mono { font-family: 'IBM Plex Mono', monospace; letter-spacing: 0.02em; }

:focus-visible {
  outline: 2.5px solid var(--brass);
  outline-offset: 2px;
  border-radius: 3px;
}

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 0 0 8px 0;
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { left: 0; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

.eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 12px;
  display: flex; align-items: center; gap: 8px;
}
.eyebrow::before {
  content: ""; width: 16px; height: 1.5px; background: var(--brass); display: inline-block;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: 'IBM Plex Sans', sans-serif; font-weight: 600; font-size: 15.5px;
  padding: 13px 22px; border-radius: 8px; text-decoration: none; cursor: pointer;
  border: 1.5px solid transparent; transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.1s ease;
  line-height: 1.2;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-primary:active { transform: translateY(1px); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-ghost { background: transparent; color: var(--steel); }
.btn-ghost:hover { color: var(--ink); }
.btn-small { padding: 9px 16px; font-size: 14px; }
.btn-large { padding: 16px 28px; font-size: 17px; }
.btn-block { width: 100%; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(245,244,240,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding-top: 14px; padding-bottom: 14px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex-shrink: 0; }
.brand-mark { width: 32px; height: 32px; flex-shrink: 0; }
.brand-name { font-weight: 700; font-size: 19px; letter-spacing: -0.01em; }

.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav a { text-decoration: none; font-weight: 500; font-size: 15px; color: var(--steel); }
.site-nav a:hover { color: var(--ink); }
.site-nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.site-nav a.btn-primary, .site-nav a.btn-primary:hover { color: #fff; }
.nav-signin { font-family: 'IBM Plex Mono', monospace; font-size: 13.5px !important; letter-spacing: 0.02em; }
.nav-cta { margin-left: 4px; }

.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 40px; height: 40px; background: none; border: 1.5px solid var(--line); border-radius: 8px; cursor: pointer;
}
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--ink); margin: 0 auto; transition: transform 0.2s ease, opacity 0.2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- disciplines strip ---------- */
.disciplines {
  display: flex; flex-wrap: wrap; gap: 10px;
}
.discipline-pill {
  font-family: 'IBM Plex Mono', monospace; font-size: 12.5px; font-weight: 600;
  color: var(--steel); background: var(--panel); border: 1px solid var(--line);
  padding: 7px 13px; border-radius: 20px; letter-spacing: 0.02em; white-space: nowrap;
}
.discipline-pill b { color: var(--ink); }

/* ---------- stamp / reticle motif ---------- */
.stamp {
  position: relative; width: 168px; height: 168px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.stamp svg { width: 100%; height: 100%; }
.reticle {
  position: relative; border-radius: 14px;
}
.reticle::before, .reticle::after,
.reticle .rc-tl, .reticle .rc-tr, .reticle .rc-bl, .reticle .rc-br { content: ""; }
.rc-corner {
  position: absolute; width: 18px; height: 18px; border: 2px solid var(--brass); opacity: 0.55;
  transition: opacity 0.15s ease;
}
.rc-tl { top: -1px; left: -1px; border-right: none; border-bottom: none; border-radius: 6px 0 0 0; }
.rc-tr { top: -1px; right: -1px; border-left: none; border-bottom: none; border-radius: 0 6px 0 0; }
.rc-bl { bottom: -1px; left: -1px; border-right: none; border-top: none; border-radius: 0 0 0 6px; }
.rc-br { bottom: -1px; right: -1px; border-left: none; border-top: none; border-radius: 0 0 6px 0; }
.reticle:hover .rc-corner { opacity: 1; }

/* ---------- section scaffolding ---------- */
section { padding: 88px 0; }
.section-tight { padding: 56px 0; }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(26px, 3.4vw, 34px); }
.section-head .lead { color: var(--steel); font-size: 17px; }
.section-alt { background: var(--panel); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-ink { background: var(--ink); color: #fff; }
.section-ink .steel-text { color: #A9B6A6; }

/* ---------- hero ---------- */
.hero { padding: 72px 0 88px; }
.hero-inner { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(34px, 5vw, 54px); line-height: 1.08; }
.hero .lead { font-size: 18.5px; color: var(--steel); max-width: 540px; }
.hero-cta { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
.hero-note { margin-top: 16px; font-size: 13.5px; color: var(--muted); }

.hero-visual {
  background: var(--panel); border: 1px solid var(--line); border-radius: 16px;
  padding: 28px; box-shadow: var(--shadow); position: relative;
}
.hero-cert-card {
  background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 18px;
}
.hero-cert-card .ref { font-size: 12px; color: var(--muted); }
.hero-cert-card .title { font-size: 16px; font-weight: 700; margin: 3px 0 10px; }
.hero-cert-row { display: flex; justify-content: space-between; font-size: 13px; color: var(--steel); padding: 7px 0; border-top: 1px dashed var(--line); }
.hero-cert-row:first-of-type { border-top: none; }
.hero-verdict {
  margin-top: 14px; display: flex; align-items: center; gap: 8px;
  background: var(--go-bg); color: var(--go); border: 1px solid rgba(47,93,58,0.25);
  border-radius: 8px; padding: 9px 12px; font-size: 13px; font-weight: 600;
}
.hero-stamp-badge {
  position: absolute; top: -18px; right: -14px; width: 84px; height: 84px;
}

/* ---------- feature cards ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 26px;
}
.card h3 { font-size: 18px; margin-bottom: 8px; }
.card p { color: var(--steel); font-size: 14.5px; margin-bottom: 0; }
.card-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-weight: 600; font-size: 14px; color: var(--accent); text-decoration: none; }
.card-link:hover { text-decoration: underline; }

.pain-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.pain-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 15.5px; color: var(--steel); }
.pain-list .mark { color: var(--brass); font-family: 'IBM Plex Mono', monospace; font-weight: 700; flex-shrink: 0; }

.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 15.5px; }
.check-list .tick {
  flex-shrink: 0; width: 20px; height: 20px; border-radius: 50%; background: var(--go-bg);
  color: var(--go); display: flex; align-items: center; justify-content: center; font-size: 12px; margin-top: 2px;
}

/* ---------- outcome groups (features page) ---------- */
.outcome-group { padding: 44px 0; border-top: 1px solid var(--line); }
.outcome-group:first-of-type { border-top: none; }
.outcome-head { display: flex; align-items: baseline; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.outcome-head .tag {
  font-family: 'IBM Plex Mono', monospace; font-size: 12px; font-weight: 600; color: var(--brass);
  background: var(--brass-soft); padding: 4px 10px; border-radius: 6px; letter-spacing: 0.04em;
}
.outcome-head h2 { font-size: 26px; margin: 0; }
.feature-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 32px; }
.feature-item { display: flex; gap: 14px; }
.feature-item .num { font-family: 'IBM Plex Mono', monospace; color: var(--muted); font-size: 13px; padding-top: 3px; flex-shrink: 0; width: 24px; }
.feature-item h4 { font-size: 15.5px; margin: 0 0 4px; }
.feature-item p { font-size: 14px; color: var(--steel); margin: 0; }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; }
.cta-band h2 { font-size: clamp(26px, 3.6vw, 36px); max-width: 700px; margin: 0 auto 14px; }
.cta-band .lead { max-width: 560px; margin: 0 auto 28px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- pricing ---------- */
.pricing-panel {
  background: var(--panel); border: 1px solid var(--line); border-radius: 16px;
  padding: 44px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center;
  box-shadow: var(--shadow);
}
.pricing-panel h2 { font-size: 28px; }
.pricing-panel .lead { color: var(--steel); }
.pricing-includes { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 24px; }
.pricing-includes h4 { font-family: 'IBM Plex Mono', monospace; font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 14px; }

.tier-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 28px;
  display: flex; flex-direction: column; gap: 14px;
}
.tier-card .tier-name { font-family: 'IBM Plex Mono', monospace; font-size: 13px; color: var(--brass); text-transform: uppercase; letter-spacing: 0.08em; }
.tier-card h3 { font-size: 21px; margin: 0; }
.tier-card p { color: var(--steel); font-size: 14.5px; flex-grow: 1; }
.tier-card .price-note { font-size: 13.5px; color: var(--muted); font-family: 'IBM Plex Mono', monospace; }

.faq-item { border-top: 1px solid var(--line); padding: 20px 0; }
.faq-item summary { cursor: pointer; font-weight: 600; font-size: 16px; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--brass); font-family: 'IBM Plex Mono', monospace; font-size: 20px; flex-shrink: 0; }
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p { margin-top: 12px; color: var(--steel); }

/* ---------- form ---------- */
.form-panel { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 40px; box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 20px; }
.field label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 7px; }
.field .optional { font-weight: 400; color: var(--muted); font-size: 13px; }
.field input, .field select, .field textarea {
  width: 100%; font-family: 'IBM Plex Sans', sans-serif; font-size: 15px; color: var(--ink);
  background: #fff; border: 1.5px solid var(--line); border-radius: 8px; padding: 12px 14px;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); }
.form-note { font-size: 13.5px; color: var(--muted); margin-top: 4px; }
.form-status { margin-top: 16px; font-size: 14px; font-weight: 600; display: none; }
.form-status.visible { display: block; }
.form-status.ok { color: var(--go); }
.form-status.error { color: #B91C1C; }

.contact-info-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.contact-info-list li { display: flex; gap: 14px; }
.contact-info-list .ico { width: 38px; height: 38px; border-radius: 8px; background: var(--brass-soft); color: var(--brass); display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 16px; }
.contact-info-list h4 { margin: 0 0 3px; font-size: 15px; }
.contact-info-list p { margin: 0; color: var(--steel); font-size: 14px; }

/* ---------- status mockup (portfolio / client portal) ---------- */
.status-board { background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.status-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 18px; border-top: 1px solid var(--line); }
.status-row:first-child { border-top: none; }
.status-row .site-name { font-weight: 600; font-size: 14.5px; }
.status-row .site-sub { font-size: 12.5px; color: var(--muted); }
.status-pill {
  font-family: 'IBM Plex Mono', monospace; font-size: 11px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.05em; padding: 4px 10px; border-radius: 20px; white-space: nowrap;
}
.status-pill.compliant { background: var(--go-bg); color: var(--go); }
.status-pill.due-soon { background: var(--caution-bg); color: var(--caution); }
.status-pill.overdue { background: rgba(220,38,38,0.1); color: #B91C1C; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: #fff; padding: 56px 0 28px; }
.footer-top { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.12); }
.footer-brand-block .brand { color: #fff; margin-bottom: 12px; }
.footer-brand-block p { color: #A9B6A6; font-size: 14px; max-width: 260px; }
.footer-col h4 { font-family: 'IBM Plex Mono', monospace; font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; color: #A9B6A6; margin-bottom: 14px; }
.footer-col a { display: block; text-decoration: none; color: #D7DED5; font-size: 14.5px; margin-bottom: 10px; }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 24px; flex-wrap: wrap; gap: 10px; }
.footer-bottom p { margin: 0; color: #7E8C7F; font-size: 13px; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 420px; margin: 0 auto; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
  .feature-row { grid-template-columns: 1fr; }
  .pricing-panel { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0; background: var(--paper);
    border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch;
    padding: 8px 24px 20px; gap: 4px; display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .site-nav a:last-child { border-bottom: none; }
  .nav-cta { margin: 10px 0 0; }
  section { padding: 56px 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  .cta-actions { flex-direction: column; align-items: stretch; }
  .cta-actions .btn { width: 100%; }
}
