/* promulga.com - promotional and documentation site. Same design system as the application
   (docs/BRAND.md of the Promulga repository): slate / blue / emerald, Inter served locally. */

@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../assets/fonts/inter-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../assets/fonts/inter-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --primary: #1e293b; --dark: #0f172a; --accent: #2563eb; --accent-soft: #93c5fd; --ok: #047857; --ok-bright: #10b981;
  --text: #0f172a; --muted: #475569; --soft: #64748b; --bg: #f8fafc; --surface: #ffffff; --surface-alt: #f1f5f9;
  --border: #e2e8f0; --border-strong: #cbd5e1; --danger: #b91c1c; --amber: #b45309; --amber-bg: #fef3c7;
  --radius: 14px; --max: 1160px; --shadow: 0 1px 2px rgba(15,23,42,.04), 0 6px 18px rgba(15,23,42,.06);
  --font: "Inter", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 16px/1.65 var(--font); color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { color: var(--primary); line-height: 1.2; letter-spacing: -.018em; margin: 0 0 .55em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); } h2 { font-size: clamp(1.45rem, 2.6vw, 2rem); } h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; } a { color: var(--accent); text-decoration: none; } a:hover { text-decoration: underline; }
img, svg { max-width: 100%; }
code, pre { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: .88em; }
code { background: var(--surface-alt); border: 1px solid var(--border); padding: .08em .35em; border-radius: 5px; }
pre { background: var(--dark); color: #e2e8f0; padding: 1rem 1.1rem; border-radius: 10px; overflow-x: auto; position: relative; }
pre code { background: none; border: 0; padding: 0; color: inherit; }
:focus-visible { outline: 3px solid rgba(37,99,235,.45); outline-offset: 2px; border-radius: 4px; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 1.5rem; }
.muted { color: var(--muted); } .small { font-size: .88rem; }
.eyebrow { color: var(--accent); font-weight: 700; letter-spacing: .09em; text-transform: uppercase; font-size: .76rem; margin-bottom: .6rem; }
.skip { position: absolute; left: -9999px; } .skip:focus { left: 1rem; top: 1rem; background: #fff; padding: .5rem 1rem; z-index: 300; }
.icon { width: 1.2em; height: 1.2em; vertical-align: -.22em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Navigation */
.nav { background: var(--dark); position: sticky; top: 0; z-index: 100; border-bottom: 1px solid rgba(255,255,255,.06); }
.nav-inner { max-width: var(--max); margin: 0 auto; padding: .65rem 1.5rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .6rem; color: #fff; font-weight: 750; font-size: 1.12rem; letter-spacing: -.01em; }
.brand:hover { text-decoration: none; } .brand img { width: 34px; height: 34px; }
.nav-links { display: flex; align-items: center; gap: 1.4rem; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: #cbd5e1; font-weight: 500; font-size: .93rem; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: #fff; text-decoration: none; }
.nav-links a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--accent-soft); }
.nav-toggle { display: none; background: none; border: 0; color: #fff; cursor: pointer; padding: .4rem; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: .5rem; padding: .72rem 1.25rem; border-radius: 10px; font-weight: 650; font-size: .95rem;
  background: var(--accent); color: #fff; border: 1.5px solid transparent; cursor: pointer; font-family: inherit; }
.btn:hover { text-decoration: none; filter: brightness(.93); }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--border-strong); }
.btn-outline:hover { border-color: var(--primary); filter: none; }
.btn-light { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.35); }
.btn-green { background: var(--ok); }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }

/* Hero */
.hero { background: radial-gradient(1100px 420px at 85% -10%, rgba(37,99,235,.38), transparent 60%), linear-gradient(160deg, var(--primary), var(--dark) 75%); color: #fff; }
.hero-inner { max-width: var(--max); margin: 0 auto; padding: 4.5rem 1.5rem 4rem; display: grid; grid-template-columns: 1.2fr .8fr; gap: 2.5rem; align-items: center; }
.hero h1 { color: #fff; } .hero p { color: #cbd5e1; font-size: 1.15rem; max-width: 640px; }
.hero .eyebrow { color: var(--accent-soft); }
.hero sup { font-size: .55em; }
.hero-card { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: 18px; padding: 1.4rem; }
.hero-card .row { display: flex; gap: .6rem; align-items: center; color: #e2e8f0; font-size: .92rem; padding: .45rem 0; border-top: 1px solid rgba(255,255,255,.08); }
.hero-card .row:first-child { border-top: 0; }
.dot { width: .62rem; height: .62rem; border-radius: 50%; flex: none; }
.page-hero { background: linear-gradient(160deg, var(--primary), var(--dark) 80%); color: #fff; }
.page-hero .container { padding-top: 3rem; padding-bottom: 2.5rem; }
.page-hero h1 { color: #fff; } .page-hero p { color: #cbd5e1; max-width: 760px; font-size: 1.08rem; }
.page-hero .eyebrow { color: var(--accent-soft); }
.crumbs { font-size: .85rem; color: #94a3b8; margin-bottom: .8rem; } .crumbs a { color: #cbd5e1; }

/* Sections */
.section { padding: 4rem 0; } .section-alt { background: var(--surface-alt); }
.section-head { max-width: 760px; margin-bottom: 2.2rem; } .section-head p { color: var(--muted); font-size: 1.05rem; }
.grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.grid-2 { display: grid; gap: 2rem; grid-template-columns: 1fr 1fr; align-items: start; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.4rem 1.5rem; box-shadow: var(--shadow); }
.card h3 { margin-bottom: .4rem; } .card p { color: var(--muted); margin-bottom: 0; }
.card .ic { width: 44px; height: 44px; border-radius: 12px; background: var(--surface-alt); color: var(--primary); display: grid; place-items: center; border: 1px solid var(--border); margin-bottom: .9rem; }
.card .ic .icon { width: 22px; height: 22px; }
.tag { display: inline-block; font-size: .74rem; padding: .1rem .55rem; border-radius: 999px; border: 1px solid var(--border); color: var(--muted); background: var(--surface-alt); margin: 0 .3rem .3rem 0; }
.pill { display: inline-flex; align-items: center; gap: .35rem; font-size: .76rem; font-weight: 650; padding: .14rem .62rem; border-radius: 999px; }
.pill::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: currentColor; }
.st-draft { background: #f1f5f9; color: #334155; } .st-review { background: #fef3c7; color: #92400e; } .st-revision { background: #ffedd5; color: #9a3412; }
.st-approval { background: #dbeafe; color: #1d4ed8; } .st-published { background: #d1fae5; color: #065f46; }
.quote { border-left: 4px solid var(--accent); padding: .2rem 0 .2rem 1.1rem; color: var(--primary); font-size: 1.12rem; font-weight: 500; }
.notice { background: var(--amber-bg); border: 1px solid #fde68a; color: #78350f; border-radius: 10px; padding: .85rem 1.1rem; }
.ok-box { background: #ecfdf5; border: 1px solid #a7f3d0; color: #064e3b; border-radius: 12px; padding: 1.1rem 1.3rem; }
.checklist { list-style: none; padding: 0; margin: 0 0 1rem; } .checklist li { padding: .3rem 0 .3rem 1.7rem; position: relative; }
.checklist li::before { content: ""; position: absolute; left: 0; top: .55rem; width: 1rem; height: 1rem; border-radius: 50%; background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E") center/70% no-repeat; }

/* BPMN */
.bpmn-wrap { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem; box-shadow: var(--shadow); overflow-x: auto; }
.bpmn-wrap svg { min-width: 980px; width: 100%; height: auto; display: block; font-family: var(--font); }
.legend { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin-top: .9rem; font-size: .84rem; color: var(--muted); }

/* Tables */
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
table { border-collapse: collapse; width: 100%; font-size: .92rem; }
th, td { text-align: left; padding: .75rem .9rem; border-bottom: 1px solid var(--border); vertical-align: top; }
thead th { background: var(--surface-alt); font-size: .74rem; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
tbody tr:last-child td { border-bottom: 0; }
td.yes { color: var(--ok); font-weight: 650; } td.part { color: var(--amber); font-weight: 650; } td.no { color: var(--danger); font-weight: 650; }
th.us, td.us { background: #f0f7ff; }

/* Tabs (download) */
.tabs { display: flex; gap: .4rem; flex-wrap: wrap; border-bottom: 1px solid var(--border); margin-bottom: 1.4rem; }
.tabs button { background: none; border: 0; border-bottom: 3px solid transparent; padding: .7rem 1rem; font: inherit; font-weight: 650; color: var(--muted); cursor: pointer; }
.tabs button[aria-selected="true"] { color: var(--accent); border-bottom-color: var(--accent); }
.tab-panel[hidden] { display: none; }
ol.steps { counter-reset: s; list-style: none; padding: 0; }
ol.steps > li { counter-increment: s; position: relative; padding: 0 0 1.25rem 2.8rem; }
ol.steps > li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 1.9rem; height: 1.9rem; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .85rem; }
.copy { position: absolute; top: .5rem; right: .5rem; background: rgba(255,255,255,.1); color: #e2e8f0; border: 1px solid rgba(255,255,255,.2); border-radius: 6px; font: inherit; font-size: .75rem; padding: .15rem .5rem; cursor: pointer; }

/* Docs */
.doc-layout { display: grid; grid-template-columns: 240px 1fr; gap: 2.5rem; align-items: start; }
.toc { position: sticky; top: 5rem; font-size: .9rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.1rem; }
.toc ol { padding-left: 1.1rem; margin: 0; } .toc li { margin: .3rem 0; }
.doc h2 { margin-top: 2.4rem; padding-top: .5rem; } .doc h2:first-child { margin-top: 0; } .doc h3 { margin-top: 1.6rem; }
.doc table { margin: 1rem 0; }

/* Pricing */
.price { font-size: 2.2rem; font-weight: 800; color: var(--primary); letter-spacing: -.02em; }
.plan.highlight { border: 2px solid var(--ok); }

/* Business card (same as olivier-bouchez.com) */
.biz { background: linear-gradient(160deg, var(--primary), var(--dark)); color: #cbd5e1; border-radius: 18px; padding: 1.6rem; display: flex; gap: 1.25rem; align-items: flex-start; }
.biz-photo { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; border: 2px solid #d4af5c; flex: none; }
.biz-body { border-left: 2px solid #d4af5c; padding-left: 1.25rem; min-width: 0; }
.biz-body p { margin: 0; } .biz-name { color: #fff; font-weight: 700; font-size: 1.3rem; }
.biz-title { color: #d4af5c; font-weight: 600; font-size: .92rem; }
.biz-org { display: flex; align-items: center; gap: .5rem; font-size: .86rem; margin: .35rem 0 .8rem !important; }
.biz-contacts { list-style: none; padding: 0; margin: 0 0 .8rem; display: flex; flex-wrap: wrap; gap: .5rem 1.6rem; }
.biz-contacts li { display: flex; align-items: center; gap: .55rem; font-size: .9rem; }
.biz-contacts a { color: #e2e8f0; overflow-wrap: anywhere; }
.biz-ic { width: 22px; height: 22px; border-radius: 50%; background: #d4af5c; color: #0d1b33; display: grid; place-items: center; flex: none; }
.biz-ic svg { width: 12px; height: 12px; fill: currentColor; }
.biz-tag { font-size: .8rem; color: #94a3b8; } .biz-tag a { color: #d4af5c; font-weight: 600; }

/* Footer */
.footer { background: var(--dark); color: #94a3b8; font-size: .9rem; }
.footer-inner { max-width: var(--max); margin: 0 auto; padding: 3rem 1.5rem 1.5rem; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
.footer h4 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: .8rem; }
.footer ul { list-style: none; padding: 0; margin: 0; } .footer li { margin: .35rem 0; }
.footer a { color: #cbd5e1; } .footer a:hover { color: #fff; }
.footer-bottom { max-width: var(--max); margin: 0 auto; padding: 1.2rem 1.5rem 2rem; border-top: 1px solid rgba(255,255,255,.08); font-size: .8rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; }

@media (max-width: 900px) {
  .hero-inner, .grid-2, .doc-layout { grid-template-columns: 1fr; }
  .toc { position: static; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .nav-toggle { display: block; }
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--dark); flex-direction: column; align-items: flex-start; padding: 1rem 1.5rem; gap: .9rem; }
  .nav-links.open { display: flex; }
  .biz { flex-direction: column; } .biz-body { border-left: 0; padding-left: 0; border-top: 2px solid #d4af5c; padding-top: .9rem; }
}
@media print { .nav, .footer, .copy { display: none; } }
