/* Self-hosted typefaces (Inter and Sora, SIL Open Font License) */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('/assets/fonts/inter-variable.woff2') format('woff2'); }
@font-face { font-family: 'Sora'; font-style: normal; font-weight: 600 800; font-display: swap; src: url('/assets/fonts/sora-variable.woff2') format('woff2'); }

/* CentralBlock — site stylesheet
   Structure: tokens → base → layout → header/footer → components → diagrams → forms → utilities → responsive */

:root {
  --ink: #0f1c2e;
  --text: #33415a;
  --muted: #6b7690;
  --line: #e3e7ef;
  --line-strong: #cbd2df;
  --bg: #ffffff;
  --bg-soft: #f5f7fa;
  --bg-warm: #faf9f6;
  --brand: #14314f;
  --brand-2: #1e4a75;
  --brand-ink: #0b1e33;
  --accent: #f0a63a;

  --crm: #2f6df6;
  --crm-soft: #e8efff;
  --fin: #159a6e;
  --fin-soft: #e3f6ee;
  --phone: #e5772e;
  --phone-soft: #fdeee2;
  --mkt: #8f4fe0;
  --mkt-soft: #f0e8fc;

  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(15, 28, 46, .06), 0 1px 3px rgba(15, 28, 46, .08);
  --shadow: 0 8px 24px rgba(15, 28, 46, .08);
  --shadow-lg: 0 20px 50px rgba(15, 28, 46, .14);

  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-head: "Sora", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  --container: 1180px;
  --gutter: 24px;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--brand-2); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 .5em;
  font-weight: 700;
}
h1 { font-size: clamp(2.1rem, 4.2vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.25rem); }
h3 { font-size: 1.25rem; letter-spacing: -0.01em; }
h4 { font-size: 1.05rem; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.3em; margin: 0 0 1em; }
li { margin-bottom: .35em; }
strong { color: var(--ink); font-weight: 600; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
blockquote {
  margin: 1.5rem 0; padding: 1rem 1.25rem;
  border-left: 4px solid var(--accent);
  background: var(--bg-warm);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--ink);
}
:focus-visible { outline: 3px solid #7fb0ff; outline-offset: 2px; border-radius: 4px; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.container-narrow { max-width: 820px; }
.container-mid { max-width: 980px; }

.skip-link {
  position: absolute; left: -999px; top: 8px; z-index: 1000;
  background: var(--ink); color: #fff; padding: .6rem 1rem; border-radius: 8px;
}
.skip-link:focus { left: 8px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; gap: 1.5rem;
  height: var(--header-h);
}
.logo {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--font-head); font-weight: 600; font-size: 1.2rem;
  color: var(--ink); letter-spacing: -0.02em;
}
.logo:hover { text-decoration: none; }
.logo b { font-weight: 800; }
.logo-mark { width: 30px; height: 30px; flex: none; }

.primary-nav { margin-left: .5rem; }
.primary-nav > ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .25rem; }
.primary-nav > ul > li { position: relative; }
.primary-nav a, .primary-nav button {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .55rem .8rem; border-radius: 10px;
  font: inherit; font-weight: 500; font-size: .95rem; color: var(--text);
  background: none; border: 0; cursor: pointer;
}
.primary-nav a:hover, .primary-nav button:hover,
.primary-nav a[aria-current="page"], .primary-nav li.active > a, .primary-nav li.active > button {
  color: var(--ink); background: var(--bg-soft); text-decoration: none;
}
.primary-nav button svg { width: 12px; height: 12px; transition: transform .2s; }
.primary-nav button[aria-expanded="true"] svg { transform: rotate(180deg); }

.menu {
  position: absolute; top: calc(100% + 10px); left: 0;
  min-width: 300px; padding: .6rem;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  display: none;
}
.menu.open { display: block; }
.menu a {
  display: flex; align-items: flex-start; gap: .75rem; padding: .6rem .7rem; border-radius: 10px;
  font-weight: 500;
}
.menu a:hover { background: var(--bg-soft); text-decoration: none; }
.menu .dot { width: 12px; height: 12px; border-radius: 4px; margin-top: .4rem; flex: none; background: var(--c, var(--brand)); }
.menu .menu-title { display: block; color: var(--ink); }
.menu .menu-sub { display: block; font-size: .82rem; color: var(--muted); font-weight: 400; line-height: 1.35; }
.menu .menu-foot { border-top: 1px solid var(--line); margin-top: .4rem; padding-top: .4rem; }
.menu .menu-foot a { color: var(--brand-2); font-size: .9rem; }

.header-actions { margin-left: auto; display: flex; gap: .5rem; align-items: center; }
.nav-toggle {
  display: none; margin-left: auto;
  width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line);
  background: #fff; cursor: pointer; align-items: center; justify-content: center;
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--ink); position: relative; }
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: var(--ink); transition: transform .2s;
}
.nav-toggle span::before { top: -6px; } .nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

.mobile-nav {
  display: none; border-top: 1px solid var(--line); background: #fff;
  padding: .75rem 0 1.25rem;
}
.mobile-nav.open { display: block; }
.mobile-nav ul { list-style: none; margin: 0; padding: 0; }
.mobile-nav li > a, .mobile-nav .group-title {
  display: block; padding: .65rem var(--gutter); font-weight: 500; color: var(--ink);
}
.mobile-nav .group-title { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding-top: 1rem; }
.mobile-nav .group a { padding-left: calc(var(--gutter) + 12px); font-weight: 400; color: var(--text); }
.mobile-nav .mobile-actions { display: flex; gap: .5rem; padding: 1rem var(--gutter) 0; }
.mobile-nav .mobile-actions .btn { flex: 1; justify-content: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  padding: .72rem 1.15rem; border-radius: 11px;
  font: inherit; font-weight: 600; font-size: .95rem; line-height: 1.2;
  border: 1px solid transparent; cursor: pointer; text-decoration: none;
  transition: background .15s, border-color .15s, transform .15s, box-shadow .15s;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--brand-2); color: #fff; }
.btn-secondary { background: #fff; color: var(--ink); border-color: var(--line-strong); }
.btn-secondary:hover { border-color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--bg-soft); }
.btn-light { background: #fff; color: var(--brand); }
.btn-light:hover { background: #eef3fa; }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn-outline-light:hover { border-color: #fff; color: #fff; }
.btn-lg { padding: .9rem 1.4rem; font-size: 1.02rem; border-radius: 12px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .65; cursor: progress; transform: none; }
.btn-arrow::after { content: "→"; font-weight: 500; transition: transform .15s; }
.btn-arrow:hover::after { transform: translateX(2px); }
.text-link { font-weight: 600; color: var(--brand-2); }
.text-link::after { content: " →"; }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section-tight { padding: 56px 0; }
.section-alt { background: var(--bg-soft); }
.section-warm { background: var(--bg-warm); }
.section-dark { background: var(--brand-ink); color: #c9d4e3; }
.section-dark h1, .section-dark h2, .section-dark h3 { color: #fff; }
.section-dark strong { color: #fff; }
.section-dark a:not(.btn) { color: #9cc4ff; }
.section-dark .eyebrow { color: var(--accent); }
.section-head { max-width: 760px; margin-bottom: 2.5rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--brand-2); margin-bottom: .9rem;
}
.eyebrow.tag { background: var(--bg-soft); padding: .3rem .7rem; border-radius: 999px; letter-spacing: .06em; }
.lead { font-size: 1.2rem; color: var(--text); line-height: 1.6; }
.lead-lg { font-size: 1.3rem; }
.prose { max-width: 720px; }
.prose h2 { margin-top: 2.2rem; }
.prose h3 { margin-top: 1.6rem; }
.prose p, .prose li { font-size: 1.05rem; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: 80px 0 72px;
  background:
    radial-gradient(1200px 500px at 85% -10%, #e8efff 0%, rgba(232,239,255,0) 60%),
    radial-gradient(900px 400px at 0% 110%, #fdeee2 0%, rgba(253,238,226,0) 60%),
    var(--bg-warm);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(15,28,46,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15,28,46,.05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.6), transparent 85%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.6), transparent 85%);
}
.hero .container { position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 3.5rem; align-items: center; }
.hero h1 { margin-bottom: 1rem; }
.hero .lead { max-width: 560px; }
.hero-support { color: var(--muted); font-size: 1rem; max-width: 540px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.6rem 0 .5rem; }
.hero-figure { position: relative; }
.hero-figure .diagram { box-shadow: var(--shadow-lg); border-radius: var(--radius-lg); background: #fff; }
.hero-simple { padding: 72px 0 40px; text-align: left; }
.hero-simple .lead { max-width: 680px; }
.hero-product { --c: var(--brand); }
.hero-product .eyebrow { color: var(--c); }
.hero-product .btn-primary { background: var(--c); }
.hero-product .btn-primary:hover { filter: brightness(.92); background: var(--c); }
.status-line {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .9rem; font-weight: 600; color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: .35rem .8rem .35rem .5rem;
  margin: .25rem 0 1rem;
}
.status-line .pulse { width: 10px; height: 10px; border-radius: 50%; background: var(--c, var(--accent)); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c, var(--accent)) 20%, transparent); }

/* ---------- Grids and cards ---------- */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: .4rem;
}
.card h3 { margin-bottom: .25rem; }
.card p { margin-bottom: .5rem; }
.card .text-link { margin-top: auto; padding-top: .5rem; }
.card-link { transition: transform .15s, box-shadow .15s, border-color .15s; }
.card-link:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.card-product { --c: var(--brand); border-top: 4px solid var(--c); }
.card-product .block-badge { --c: inherit; }
.card-soft { background: var(--bg-soft); border-color: transparent; box-shadow: none; }
.card-plain { box-shadow: none; }
.card-cta { background: var(--brand-ink); color: #c9d4e3; border-color: transparent; }
.card-cta h3 { color: #fff; }

.block-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-head); font-weight: 700; font-size: .95rem; color: var(--ink);
  margin-bottom: .4rem;
}
.block-badge::before { content: ""; width: 14px; height: 14px; border-radius: 4px; background: var(--c, var(--brand)); }
.block-badge.lg { font-size: 1.15rem; }
.block-badge.lg::before { width: 18px; height: 18px; border-radius: 5px; }

.c-crm { --c: var(--crm); } .c-fin { --c: var(--fin); } .c-phone { --c: var(--phone); } .c-mkt { --c: var(--mkt); } .c-brand { --c: var(--brand); }

.feature-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.25rem; }
.feature-list li { display: grid; grid-template-columns: 44px 1fr; gap: .9rem; align-items: start; }
.feature-list .icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center;
  background: color-mix(in srgb, var(--c, var(--brand)) 12%, #fff);
  color: var(--c, var(--brand));
}
.feature-list .icon svg { width: 22px; height: 22px; }
.feature-list h3 { font-size: 1.1rem; margin-bottom: .2rem; }
.feature-list p { margin: 0; color: var(--text); }

.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.pillar { padding: 1.4rem; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.pillar .num { font-family: var(--font-head); font-weight: 800; color: var(--brand-2); opacity: .5; font-size: 1.4rem; margin-bottom: .4rem; }
.pillar h3 { font-size: 1.05rem; }
.pillar p { margin: 0; font-size: .95rem; }

.audience { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.audience > div { padding: 1.4rem; border-radius: var(--radius); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); }
.audience h3 { font-size: 1rem; color: #fff; margin-bottom: .35rem; }
.audience p { margin: 0; font-size: .95rem; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center; }
.split.reverse > :first-child { order: 2; }
.split .diagram { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); }

.check-list { list-style: none; padding: 0; margin: 0 0 1rem; }
.check-list li { position: relative; padding-left: 1.9rem; margin-bottom: .6rem; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: .3em; width: 20px; height: 20px; border-radius: 6px;
  background: color-mix(in srgb, var(--c, var(--fin)) 15%, #fff);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23159a6e' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 10.5l3.2 3.2L15 7'/%3E%3C/svg%3E");
  background-size: 14px; background-position: center; background-repeat: no-repeat;
}

.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.steps li {
  counter-increment: step; display: grid; grid-template-columns: 44px 1fr; gap: 1rem; align-items: start;
  padding: 1.25rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
}
.steps li::before {
  content: counter(step); width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center; font-family: var(--font-head); font-weight: 700;
  background: var(--brand); color: #fff;
}
.steps h3 { font-size: 1.05rem; margin-bottom: .2rem; }
.steps p { margin: 0; }

.callout {
  padding: 1.25rem 1.4rem; border-radius: var(--radius);
  background: var(--bg-warm); border: 1px solid #efe6d6;
  display: flex; gap: .9rem; align-items: flex-start;
}
.callout svg { width: 22px; height: 22px; flex: none; color: var(--accent); margin-top: .15rem; }
.callout p { margin: 0; }
.callout.info { background: var(--crm-soft); border-color: #d6e2ff; }
.callout.info svg { color: var(--crm); }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table.table { width: 100%; border-collapse: collapse; font-size: .98rem; min-width: 640px; }
.table th, .table td { text-align: left; padding: .95rem 1.1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { background: var(--bg-soft); font-weight: 600; color: var(--ink); font-size: .85rem; letter-spacing: .04em; text-transform: uppercase; }
.table tr:last-child td { border-bottom: 0; }
.table td:first-child { font-weight: 600; color: var(--ink); white-space: nowrap; }
.table .block-badge { margin: 0; }
.table .pill { white-space: nowrap; }

.pill {
  display: inline-block; padding: .2rem .6rem; border-radius: 999px; font-size: .78rem; font-weight: 600;
  background: var(--bg-soft); color: var(--text); border: 1px solid var(--line);
}
.pill-available { background: var(--fin-soft); color: #0e6b4c; border-color: #bfe8d5; }
.pill-dev { background: var(--mkt-soft); color: #5f2fa3; border-color: #dccbf5; }
.pill-discuss { background: var(--phone-soft); color: #9a4a12; border-color: #f6d3ba; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: .75rem; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0 1.25rem; }
.faq summary {
  cursor: pointer; list-style: none; padding: 1.05rem 0; font-weight: 600; color: var(--ink);
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--muted); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 1.05rem; }
.faq-group h3 { margin: 2rem 0 .8rem; }

/* ---------- CTA band ---------- */
.cta-band { padding: 72px 0; background: var(--brand-ink); color: #c9d4e3; }
.cta-band h2 { color: #fff; }
.cta-band .lead { color: #c9d4e3; }
.cta-inner { display: grid; grid-template-columns: 1.3fr 1fr; gap: 3rem; align-items: center; }
.cta-inner .actions { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: flex-end; }
.cta-soft { background: var(--bg-soft); color: var(--text); }
.cta-soft h2 { color: var(--ink); }
.cta-soft .lead { color: var(--text); }

/* ---------- Footer ---------- */
.site-footer { background: #0b1526; color: #9fb0c6; padding: 64px 0 28px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 2.5rem; }
.footer-brand .logo { color: #fff; }
.footer-brand p { margin: .75rem 0 .35rem; }
.footer-brand .tagline { color: #fff; font-weight: 600; }
.site-footer h4 { color: #fff; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: .9rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .45rem; }
.site-footer a { color: #b9c7db; }
.site-footer a:hover { color: #fff; }
.footer-bottom {
  margin-top: 3rem; padding-top: 1.25rem; border-top: 1px solid rgba(255,255,255,.1);
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; font-size: .85rem;
}
.footer-bottom ul { display: flex; gap: 1.25rem; }
.footer-bottom li { margin: 0; }

/* ---------- Diagrams ---------- */
.diagram { width: 100%; display: block; }
.diagram svg { width: 100%; height: auto; display: block; }
.diagram-frame { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1rem; box-shadow: var(--shadow-sm); }
.diagram-frame.alt { background: var(--bg-warm); }
.diagram-caption { text-align: center; font-size: .9rem; color: var(--muted); margin: .75rem 0 0; }
.diagram text { font-family: var(--font-body); }
.diagram .d-title { font-family: var(--font-head); font-weight: 700; fill: var(--ink); }
.diagram .d-label { font-weight: 600; fill: var(--ink); }
.diagram .d-sub { fill: var(--muted); }
.diagram .d-soft { fill: var(--bg-soft); }
.diagram .d-line { stroke: var(--line-strong); }
.diagram .d-box { fill: #fff; stroke: var(--line-strong); }
.diagram .d-on-color { fill: #fff; }
.diagram .d-crm { fill: var(--crm); } .diagram .d-fin { fill: var(--fin); } .diagram .d-phone { fill: var(--phone); } .diagram .d-mkt { fill: var(--mkt); } .diagram .d-brand { fill: var(--brand); }
.diagram .d-crm-soft { fill: var(--crm-soft); } .diagram .d-fin-soft { fill: var(--fin-soft); } .diagram .d-phone-soft { fill: var(--phone-soft); } .diagram .d-mkt-soft { fill: var(--mkt-soft); }
.diagram .s-crm { stroke: var(--crm); } .diagram .s-fin { stroke: var(--fin); } .diagram .s-phone { stroke: var(--phone); } .diagram .s-mkt { stroke: var(--mkt); } .diagram .s-brand { stroke: var(--brand); }
.diagram .d-arrow { stroke: var(--line-strong); fill: none; stroke-width: 2; }
.diagram .d-arrow-dark { stroke: var(--brand); fill: none; stroke-width: 2; }
.diagram .d-dash { stroke-dasharray: 5 5; }

/* ---------- Forms ---------- */
.form-layout { display: grid; grid-template-columns: 1.15fr .85fr; gap: 3.5rem; align-items: start; }
.form-side .card { position: sticky; top: calc(var(--header-h) + 24px); }
.form { display: grid; gap: 1.1rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 2rem; box-shadow: var(--shadow-sm); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field { display: grid; gap: .35rem; }
.field label { font-weight: 600; color: var(--ink); font-size: .93rem; }
.field label .opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; color: var(--ink);
  padding: .7rem .85rem; border: 1px solid var(--line-strong); border-radius: 10px; background: #fff;
  width: 100%;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid #cfe0ff; border-color: var(--crm); }
.field .help { font-size: .85rem; color: var(--muted); }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #d92d20; }
.field-error { display: none; font-size: .85rem; color: #b42318; font-weight: 500; }
.field.invalid .field-error { display: block; }
.form-note { font-size: .85rem; color: var(--muted); margin: 0; }
.form-status { display: none; padding: 1rem 1.1rem; border-radius: var(--radius-sm); font-weight: 500; }
.form-status.error { display: block; background: #fef3f2; color: #b42318; border: 1px solid #fecdca; }
.form-status.success { display: block; background: var(--fin-soft); color: #0e6b4c; border: 1px solid #bfe8d5; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-success { background: #fff; border: 1px solid #bfe8d5; border-radius: var(--radius-lg); padding: 2.5rem; text-align: center; }
.form-success .icon { width: 56px; height: 56px; border-radius: 50%; background: var(--fin-soft); color: var(--fin); display: grid; place-items: center; margin: 0 auto 1rem; }

/* ---------- Login cards ---------- */
.login-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.login-card { --c: var(--brand); padding: 1.8rem; }
.login-card .btn-primary { background: var(--c); }
.login-card .btn-primary:hover { background: var(--c); filter: brightness(.92); }

/* ---------- Article ---------- */
.article-head { padding: 64px 0 24px; }
.article-meta { color: var(--muted); font-size: .9rem; display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.article-body { padding: 24px 0 72px; }
.article-body h2 { font-size: 1.5rem; margin-top: 2.4rem; }
.article-body .diagram-frame { margin: 2rem 0; }
.article-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 3rem; }
.resource-card .eyebrow { font-size: .72rem; margin-bottom: .5rem; }

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; }
.mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: 1rem; } .mb-2 { margin-bottom: 2rem; }
.center { text-align: center; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.actions.center { justify-content: center; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.breadcrumb { font-size: .88rem; color: var(--muted); margin-bottom: 1rem; }
.breadcrumb a { color: var(--muted); }
.breadcrumb span::before { content: "/"; margin: 0 .5rem; color: var(--line-strong); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .primary-nav { display: none; }
  .header-actions { display: none; }
  .nav-toggle { display: flex; }
  .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .grid-4, .pillars, .audience { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .split { grid-template-columns: 1fr; gap: 2rem; }
  .split.reverse > :first-child { order: 0; }
  .form-layout { grid-template-columns: 1fr; gap: 2rem; }
  .form-side .card { position: static; }
  .cta-inner { grid-template-columns: 1fr; }
  .cta-inner .actions { justify-content: flex-start; }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .section { padding: 56px 0; }
  .hero { padding: 48px 0 40px; }
  .grid-2, .grid-3, .grid-4, .pillars, .audience, .login-grid, .article-nav { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .form { padding: 1.4rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .hero-actions .btn, .actions .btn { width: 100%; }
  .card { padding: 1.3rem; }
  .cta-band { padding: 56px 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

/* ---------- Root sign-in ---------- */
.login-form { gap: 1rem; }
.block-switch { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.block-option {
  display: grid; gap: .15rem; padding: .9rem 1rem; border: 1px solid var(--line-strong); border-radius: 12px;
  cursor: pointer; background: #fff; position: relative;
}
.block-option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.block-option .block-badge { margin: 0; }
.block-option:has(input:checked) { border-color: var(--c); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 18%, transparent); background: color-mix(in srgb, var(--c) 5%, #fff); }
.block-option:has(input:focus-visible) { outline: 3px solid #7fb0ff; outline-offset: 2px; }
.block-option.selected { border-color: var(--c); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 18%, transparent); background: color-mix(in srgb, var(--c) 5%, #fff); }
.form-status.info { display: block; background: var(--crm-soft); color: #1e4a75; border: 1px solid #d6e2ff; }
@media (max-width: 480px) { .block-switch { grid-template-columns: 1fr; } }
