/* ============================================================
   DocsNG — marketing site design system
   Brand: navy #051421 · green #00C853 · deep blue #053061
          logo pink #FE9FC6 · accent blue #0099E5
   ============================================================ */

:root {
  --navy: #051421;
  --navy-2: #0a2233;
  --navy-3: #103049;
  --green: #00c853;
  --green-600: #00b24a;
  --green-700: #009e42;
  --blue: #053061;
  --blue-accent: #0099e5;
  --pink: #fe9fc6;
  --pink-soft: #ffd9e8;

  --ink: #0d1b26;
  --body: #384049;
  --muted: #6b7683;
  --line: #e2e8ee;
  --line-2: #eef2f6;
  --bg: #ffffff;
  --bg-soft: #f6f9fb;
  --bg-tint: #eef7f2;

  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(5, 20, 33, .06), 0 1px 3px rgba(5, 20, 33, .08);
  --shadow: 0 10px 30px rgba(5, 20, 33, .10);
  --shadow-lg: 0 24px 60px rgba(5, 20, 33, .18);
  --maxw: 1160px;
  --gap: clamp(16px, 3vw, 28px);
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--body);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--blue-accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.15; margin: 0 0 .5em; font-weight: 800; letter-spacing: -.02em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); }
h2 { font-size: clamp(1.7rem, 3.3vw, 2.5rem); }
h3 { font-size: 1.28rem; }
p { margin: 0 0 1rem; }
.lead { font-size: 1.2rem; color: var(--body); }
.muted { color: var(--muted); }

/* Layout ---------------------------------------------------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section-sm { padding: clamp(40px, 5vw, 64px) 0; }
.center { text-align: center; }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--green-700); margin-bottom: 14px;
}
.section-head { max-width: 720px; margin: 0 auto 48px; }
.section-head.center { text-align: center; }
.grid { display: grid; gap: var(--gap); }
.g-2 { grid-template-columns: repeat(2, 1fr); }
.g-3 { grid-template-columns: repeat(3, 1fr); }
.g-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .g-3, .g-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .g-2, .g-3, .g-4 { grid-template-columns: 1fr; } }

/* Buttons --------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px; cursor: pointer;
  font-weight: 700; font-size: 1rem; padding: 13px 22px; border-radius: 999px;
  border: 1.5px solid transparent; transition: .18s ease; text-decoration: none; white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--green); color: #04231a; box-shadow: 0 8px 20px rgba(0, 200, 83, .28); }
.btn-primary:hover { background: var(--green-600); color: #04231a; }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: var(--navy-3); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--navy); }
.btn-light { background: #fff; color: var(--navy); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .35); }
.btn-outline-light:hover { border-color: #fff; color: #fff; }
.btn-lg { padding: 16px 30px; font-size: 1.08rem; }

/* Header ---------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid var(--line-2);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 30px; width: auto; }
.brand:hover { text-decoration: none; }
.nav-links { display: flex; align-items: center; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--ink); font-weight: 600; font-size: .96rem; }
.nav-links a:hover { color: var(--green-700); text-decoration: none; }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: .2s; }
@media (max-width: 980px) {
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .nav-toggle { display: block; }
  .nav.open .nav-links {
    display: flex; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column;
    align-items: flex-start; gap: 4px; background: #fff; padding: 16px 22px 24px;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  }
  .nav.open .nav-links a { padding: 10px 0; width: 100%; }
}

/* Hero ------------------------------------------------------ */
.hero {
  position: relative; overflow: hidden; color: #eaf2f8;
  background: radial-gradient(1200px 600px at 80% -10%, rgba(0, 200, 83, .22), transparent 60%),
              radial-gradient(900px 500px at 5% 10%, rgba(254, 159, 198, .18), transparent 55%),
              linear-gradient(160deg, #051421 0%, #071e30 55%, #0a2841 100%);
}
.hero .container { position: relative; z-index: 2; padding-top: clamp(56px, 8vw, 96px); padding-bottom: clamp(56px, 8vw, 96px); }
.hero h1 { color: #fff; max-width: 15ch; }
.hero .lead { color: #b9cede; max-width: 54ch; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 28px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; }
.hero-note { margin-top: 18px; font-size: .9rem; color: #8fa6b8; }

.chip {
  display: inline-flex; align-items: center; gap: 7px; font-size: .82rem; font-weight: 600;
  padding: 7px 13px; border-radius: 999px; background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .16); color: #d6e5f0;
}
.chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }

/* Product mock (hero right) */
.mock {
  background: linear-gradient(180deg, #ffffff, #f3f8fb); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); border: 1px solid rgba(255, 255, 255, .5); overflow: hidden;
  transform: rotate(-.6deg);
}
.mock-bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; background: #0a2233; }
.mock-bar i { width: 11px; height: 11px; border-radius: 50%; background: #2c4257; display: inline-block; }
.mock-body { background: #fff; padding: 20px; }
.mock-row { height: 12px; border-radius: 6px; background: #e8eef3; margin: 0 0 12px; }
.mock-row.short { width: 40%; }
.mock-row.mid { width: 70%; }
.mock-field {
  display: inline-block; font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: .8rem; color: var(--blue); background: var(--pink-soft);
  border: 1px dashed var(--pink); border-radius: 6px; padding: 1px 7px; margin: 2px 3px;
}
.mock-seal {
  margin-top: 14px; display: inline-flex; align-items: center; gap: 8px; font-weight: 700;
  color: var(--green-700); font-size: .85rem; background: #eafaf0; border: 1px solid #bfe9cf;
  border-radius: 999px; padding: 6px 12px;
}

/* Cards ----------------------------------------------------- */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow-sm); transition: .18s ease; height: 100%;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: #d6e0e8; }
.card .ico {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(0, 200, 83, .16), rgba(0, 153, 229, .14));
  margin-bottom: 16px; font-size: 22px;
}
.card h3 { margin-bottom: 8px; }
.card p { margin: 0; color: var(--body); font-size: .98rem; }
.card--dark { background: var(--navy-2); border-color: #14324a; color: #c6d7e4; }
.card--dark h3 { color: #fff; }
.card--dark p { color: #a9c0d1; }

/* Pillars (trust) */
.pillar { border-left: 3px solid var(--green); padding: 4px 0 4px 18px; }
.pillar h3 { margin-bottom: 6px; }

/* Feature split -------------------------------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split.reverse .split-media { order: -1; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 30px; } .split.reverse .split-media { order: 0; } }
.tick { list-style: none; margin: 18px 0 0; padding: 0; }
.tick li { position: relative; padding: 7px 0 7px 30px; }
.tick li::before {
  content: "✓"; position: absolute; left: 0; top: 7px; color: var(--green-700);
  font-weight: 900; width: 20px; height: 20px;
}
.media-panel {
  background: linear-gradient(160deg, #f6fbf8, #eef5fb); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow-sm);
}

/* Badges ---------------------------------------------------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px; font-size: .72rem; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px;
}
.badge-live { background: #eafaf0; color: var(--green-700); border: 1px solid #bfe9cf; }
.badge-roadmap { background: #fff4e6; color: #b5651d; border: 1px solid #f3d6a8; }
.badge-pink { background: var(--pink-soft); color: #b23a6f; border: 1px solid var(--pink); }

/* Bands ----------------------------------------------------- */
.band-navy { background: var(--navy); color: #cfe0ec; }
.band-navy h2, .band-navy h3 { color: #fff; }
.band-soft { background: var(--bg-soft); }
.band-tint {
  background: radial-gradient(900px 400px at 90% 0%, rgba(0, 200, 83, .10), transparent 60%), var(--bg-soft);
}

/* Stats ----------------------------------------------------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 720px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat { text-align: center; }
.stat .n { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; color: #fff; letter-spacing: -.02em; }
.stat .n span { color: var(--green); }
.stat .l { color: #9fb6c8; font-size: .95rem; }

/* Comparison table ----------------------------------------- */
.tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
table.compare { width: 100%; border-collapse: collapse; min-width: 760px; background: #fff; }
table.compare th, table.compare td { padding: 15px 18px; text-align: left; border-bottom: 1px solid var(--line-2); font-size: .95rem; }
table.compare thead th { background: var(--navy); color: #fff; font-weight: 700; position: sticky; top: 0; }
table.compare thead th.hl { background: var(--green-700); }
table.compare tbody th { font-weight: 700; color: var(--ink); }
table.compare td.hl { background: #f2fbf6; font-weight: 700; color: var(--ink); }
table.compare .yes { color: var(--green-700); font-weight: 800; }
table.compare .no { color: #c0392b; font-weight: 800; }
table.compare .part { color: #b5651d; font-weight: 700; }
table.compare tbody tr:hover td, table.compare tbody tr:hover th { background: #f8fbfd; }

/* Steps ----------------------------------------------------- */
.steps { counter-reset: step; display: grid; gap: 22px; }
.step { display: grid; grid-template-columns: 54px 1fr; gap: 18px; align-items: start; }
.step .num {
  counter-increment: step; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: var(--navy); color: #fff; font-weight: 800; font-size: 1.1rem;
}
.step .num::before { content: counter(step); }

/* Pricing --------------------------------------------------- */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
@media (max-width: 900px) { .price-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; } }
.plan {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px; display: flex; flex-direction: column;
}
.plan.pop { border: 2px solid var(--green); box-shadow: var(--shadow); position: relative; }
.plan.pop::after {
  content: "Most popular"; position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--green); color: #04231a; font-weight: 700; font-size: .74rem; letter-spacing: .04em;
  text-transform: uppercase; padding: 5px 14px; border-radius: 999px;
}
.plan h3 { font-size: 1.25rem; }
.plan .price { font-size: 2.2rem; font-weight: 800; color: var(--ink); margin: 6px 0 2px; }
.plan .price small { font-size: .95rem; font-weight: 600; color: var(--muted); }
.plan .desc { color: var(--muted); font-size: .95rem; min-height: 44px; }
.plan ul { list-style: none; margin: 18px 0 24px; padding: 0; }
.plan li { padding: 7px 0 7px 28px; position: relative; font-size: .95rem; }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--green-700); font-weight: 900; }
.plan .btn { width: 100%; justify-content: center; margin-top: auto; }

/* CTA ------------------------------------------------------- */
.cta-band {
  background: radial-gradient(700px 300px at 15% 20%, rgba(254, 159, 198, .18), transparent 60%),
              linear-gradient(120deg, #061a2b, #0b2c47);
  color: #fff; border-radius: var(--radius-lg); padding: clamp(36px, 6vw, 68px); text-align: center;
  box-shadow: var(--shadow-lg);
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #bcd2e2; max-width: 60ch; margin: 0 auto 26px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* Logos strip ----------------------------------------------- */
.logostrip { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 30px; opacity: .8; }
.logostrip span { font-weight: 700; color: var(--muted); letter-spacing: .02em; }

/* FAQ ------------------------------------------------------- */
.faq details {
  border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 4px 20px; margin-bottom: 12px; background: #fff;
}
.faq summary { cursor: pointer; font-weight: 700; color: var(--ink); padding: 14px 0; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--green-700); font-weight: 800; }
.faq details[open] summary::after { content: "–"; }
.faq p { padding-bottom: 14px; margin: 0; }

/* Footer ---------------------------------------------------- */
.site-footer { background: var(--navy); color: #9fb6c8; padding: 64px 0 30px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 34px; }
@media (max-width: 820px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .foot-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; font-size: .95rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { color: #9fb6c8; font-size: .95rem; }
.site-footer a:hover { color: #fff; text-decoration: none; }
.foot-brand img { height: 30px; width: auto; margin-bottom: 14px; filter: brightness(0) invert(1); }
.foot-bottom {
  margin-top: 40px; padding-top: 22px; border-top: 1px solid #14324a; display: flex;
  justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .86rem; color: #7d95a8;
}

/* Utilities ------------------------------------------------- */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.hide-sm { }
@media (max-width: 640px) { .hide-sm { display: none; } }
.pill-row { display: flex; flex-wrap: wrap; gap: 10px; }
.kbd {
  font-family: ui-monospace, Consolas, monospace; background: var(--pink-soft); color: var(--blue);
  border: 1px dashed var(--pink); border-radius: 6px; padding: 1px 8px; font-size: .9em; white-space: nowrap;
}

/* ============ Code blocks & tabs ============ */
.codewrap { border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); border: 1px solid #10314a; }
.codetabs { display: flex; gap: 2px; background: #0a2233; padding: 8px 8px 0; }
.codetab {
  border: 0; background: transparent; color: #8fa6b8; font-weight: 700; font-size: .84rem;
  padding: 9px 15px; cursor: pointer; border-radius: 9px 9px 0 0; font-family: var(--font);
}
.codetab.active { background: #061725; color: #fff; }
.code {
  margin: 0; background: #061725; color: #d6e5f0; padding: 20px 22px; overflow-x: auto;
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: .85rem; line-height: 1.7;
}
.code .cmt { color: #6b8296; }
.code .str { color: #9fe0b0; }
.code .kw { color: #ffb3d1; }
.code .fn { color: #7cc7ff; }
.code-panel { display: none; }
.code-panel.active { display: block; }

/* ============ Screenshots / gallery ============ */
.shot {
  border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: #fff;
  box-shadow: var(--shadow);
}
.shot-bar { display: flex; gap: 6px; padding: 10px 14px; background: #eef2f6; border-bottom: 1px solid var(--line); }
.shot-bar i { width: 10px; height: 10px; border-radius: 50%; background: #cdd8e1; display: inline-block; }
.shot img { display: block; width: 100%; height: auto; }
.shot-cap { padding: 12px 16px; font-size: .86rem; color: var(--muted); border-top: 1px solid var(--line-2); background: #fbfdff; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .gallery { grid-template-columns: 1fr; } }
.gallery .shot img { aspect-ratio: 3/4; object-fit: cover; object-position: top; }

/* ============ Docs layout ============ */
.docs-shell { display: grid; grid-template-columns: 260px 1fr; gap: 40px; align-items: start; }
@media (max-width: 900px) { .docs-shell { grid-template-columns: 1fr; } }
.docs-nav { position: sticky; top: 92px; }
.docs-nav h5 {
  font-size: .74rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted);
  margin: 22px 0 8px; font-weight: 800;
}
.docs-nav h5:first-child { margin-top: 0; }
.docs-nav a { display: block; padding: 7px 12px; border-radius: 8px; color: var(--body); font-size: .93rem; font-weight: 500; }
.docs-nav a:hover { background: var(--bg-soft); text-decoration: none; color: var(--ink); }
.docs-nav a.active { background: #eafaf0; color: var(--green-700); font-weight: 700; }
@media (max-width: 900px) { .docs-nav { position: static; border-bottom: 1px solid var(--line); padding-bottom: 16px; margin-bottom: 8px; } }
.docs-content { min-width: 0; max-width: 820px; }
.docs-content h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin-bottom: .3em; }
.docs-content h2 { font-size: 1.5rem; margin-top: 2.2em; padding-top: .4em; border-top: 1px solid var(--line-2); }
.docs-content h3 { font-size: 1.15rem; margin-top: 1.6em; }
.docs-content ul, .docs-content ol { padding-left: 22px; }
.docs-content li { margin: 6px 0; }
.docs-content code {
  font-family: ui-monospace, Consolas, monospace; background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: 6px; padding: 1px 6px; font-size: .88em; color: var(--blue);
}
.docs-content pre code { border: 0; background: transparent; padding: 0; color: inherit; }
.docs-content table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: .93rem; }
.docs-content th, .docs-content td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line-2); }
.docs-content thead th { background: var(--bg-soft); }

.callout {
  border-left: 4px solid var(--green); background: #f2fbf6; border-radius: 8px;
  padding: 14px 18px; margin: 18px 0; font-size: .95rem;
}
.callout.warn { border-left-color: #e0a100; background: #fff8e8; }
.callout.info { border-left-color: var(--blue-accent); background: #eef7ff; }
.callout strong { color: var(--ink); }

.breadcrumb { font-size: .85rem; color: var(--muted); margin-bottom: 10px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--green-700); }

/* ============ Comparison hub / verdict ============ */
.cmp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 860px) { .cmp-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .cmp-grid { grid-template-columns: 1fr; } }
.cmp-card {
  display: block; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px;
  box-shadow: var(--shadow-sm); transition: .16s; color: var(--ink);
}
.cmp-card:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--green); }
.cmp-card b { display: block; font-size: 1.05rem; }
.cmp-card span { font-size: .86rem; color: var(--muted); }
.cmp-card .arrow { color: var(--green-700); font-weight: 800; }

.winlose { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 720px) { .winlose { grid-template-columns: 1fr; } }
.winlose .col { border-radius: 14px; padding: 22px; border: 1px solid var(--line); }
.winlose .win { background: #f2fbf6; border-color: #bfe9cf; }
.winlose .lose { background: #fbfdff; }
.winlose h3 { margin-top: 0; }
.winlose ul { list-style: none; margin: 0; padding: 0; }
.winlose li { position: relative; padding: 6px 0 6px 26px; font-size: .95rem; }
.winlose .win li::before { content: "✓"; position: absolute; left: 0; color: var(--green-700); font-weight: 900; }
.winlose .lose li::before { content: "→"; position: absolute; left: 0; color: var(--muted); font-weight: 900; }

.verdict {
  background: linear-gradient(120deg, #061a2b, #0b2c47); color: #fff; border-radius: 16px;
  padding: 26px 28px; box-shadow: var(--shadow);
}
.verdict h3 { color: #fff; margin-top: 0; }
.verdict p { color: #bcd2e2; margin: 0; }

/* ============ DocuSign-style mega menu ============ */
.dg-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid var(--line-2); }
.dg-bar { display: flex; align-items: center; gap: 22px; height: 74px; }
.dg-brand { display: flex; align-items: center; }
.dg-brand img { height: 30px; width: auto; display: block; }
.dg-nav { flex: 1; display: flex; justify-content: center; }
.dg-menu { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.dg-has-mega { position: static; }
.dg-top, .dg-top-link {
  display: inline-flex; align-items: center; gap: 6px; font-family: inherit; font-weight: 600;
  font-size: .97rem; color: var(--ink); background: none; border: 0; cursor: pointer;
  padding: 10px 14px; border-radius: 10px; text-decoration: none;
}
.dg-top-link:hover, .dg-top:hover, .dg-has-mega:hover .dg-top {
  background: var(--bg-soft); color: var(--green-700); text-decoration: none;
}
.dg-caret { font-size: .62em; opacity: .65; transition: transform .2s; }
.dg-has-mega:hover .dg-caret { transform: rotate(180deg); }
.dg-actions { display: flex; align-items: center; gap: 12px; }

.dg-mega {
  position: absolute; left: 0; right: 0; top: 100%; background: #fff;
  border-top: 1px solid var(--line-2); box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.dg-has-mega:hover .dg-mega, .dg-has-mega:focus-within .dg-mega { opacity: 1; visibility: visible; transform: none; }
.dg-mega-inner { display: grid; grid-template-columns: repeat(3, 1fr) 1.15fr; gap: 34px; padding: 30px 0 38px; }
.dg-col h4 { font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin: 0 0 8px; font-weight: 800; }
.dg-col a { display: block; padding: 9px 12px; margin: 2px -12px; border-radius: 10px; text-decoration: none; color: var(--ink); transition: background .14s; }
.dg-col a:hover { background: var(--bg-soft); text-decoration: none; }
.dg-col a b { display: block; font-size: .95rem; font-weight: 700; }
.dg-col a span { display: block; font-size: .82rem; color: var(--muted); margin-top: 1px; }
.dg-feature { background: linear-gradient(160deg, #f2fbf6, #eef5fb); border: 1px solid var(--line); border-radius: 16px; padding: 24px; display: flex; flex-direction: column; }
.dg-feature h4 { font-size: 1.15rem; color: var(--ink); margin: 8px 0; text-transform: none; letter-spacing: normal; }
.dg-feature p { font-size: .9rem; color: var(--body); margin: 0 0 16px; }
.dg-feature .btn { align-self: flex-start; margin-top: auto; }

.dg-burger { display: none; background: none; border: 0; cursor: pointer; padding: 8px; margin-left: auto; }
.dg-burger span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; }

/* mobile full-screen menu */
.dg-mobile {
  position: fixed; inset: 0; width: 100%; height: 100vh; height: 100dvh; z-index: 200;
  background: #fff; display: flex; flex-direction: column;
  padding: 14px 22px 34px; overflow-y: auto; transform: translateX(100%);
  transition: transform .28s cubic-bezier(.4,0,.2,1);
}
.dg-mobile.open { transform: none; }
.dg-m-head { display: flex; align-items: center; justify-content: space-between; height: 56px; flex: none; }
.dg-m-head img { height: 28px; width: auto; }
.dg-close { background: none; border: 0; font-size: 2rem; line-height: 1; cursor: pointer; color: var(--ink); padding: 4px 10px; }
.dg-acc { border-bottom: 1px solid var(--line-2); }
.dg-acc-btn { width: 100%; display: flex; align-items: center; justify-content: space-between; background: none; border: 0; font-family: inherit; font-weight: 700; font-size: 1.18rem; color: var(--ink); padding: 18px 2px; cursor: pointer; }
.dg-acc-btn .pm { color: var(--green-700); font-weight: 800; font-size: 1.4rem; transition: transform .2s; line-height: 1; }
.dg-acc.open .dg-acc-btn .pm { transform: rotate(45deg); }
.dg-acc-panel { display: none; padding: 0 2px 14px; }
.dg-acc.open .dg-acc-panel { display: block; }
.dg-acc-panel h5 { font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 10px 0 2px; }
.dg-acc-panel a { display: block; padding: 9px 0; color: var(--body); font-weight: 500; text-decoration: none; font-size: 1rem; }
.dg-m-link { display: block; border-bottom: 1px solid var(--line-2); font-weight: 700; font-size: 1.18rem; color: var(--ink); padding: 18px 2px; text-decoration: none; }
.dg-m-cta { margin-top: 26px; display: flex; flex-direction: column; gap: 12px; }
.dg-m-cta .btn { width: 100%; justify-content: center; }
body.dg-lock { overflow: hidden; }

@media (max-width: 1040px) {
  .dg-nav, .dg-actions { display: none; }
  .dg-burger { display: block; }
}
@media (min-width: 1041px) {
  .dg-mobile { display: none; }
}

/* ============ Cookie banner + footer legal ============ */
.dg-legal { font-size: .86rem; }
.dg-legal a { color: #9fb6c8; }
.dg-legal a:hover { color: #fff; text-decoration: none; }
.dg-cookie {
  position: fixed; left: 16px; right: 16px; bottom: 16px; max-width: 760px; margin: 0 auto;
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-lg); border-radius: 14px;
  padding: 16px 18px; z-index: 300; display: flex; gap: 16px; align-items: center;
  justify-content: space-between; flex-wrap: wrap;
}
.dg-cookie p { margin: 0; font-size: .9rem; color: var(--body); flex: 1 1 320px; }
.dg-cookie-actions { display: flex; gap: 10px; flex: none; }
@media (max-width: 520px) {
  .dg-cookie { padding: 14px; }
  .dg-cookie-actions { width: 100%; }
  .dg-cookie-actions .btn { flex: 1; justify-content: center; }
}

/* ── Accessibility: skip link, focus, reduced motion ─────────────── */
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 2000;
  background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px;
  font-weight: 700; text-decoration: none; transition: top .15s ease;
}
.skip-link:focus { top: 12px; outline: 3px solid var(--green); }
main#main { display: block; }
main#main:focus { outline: none; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
}

/* ── Mobile overflow hardening ───────────────────────────────── */
.tablewrap { -webkit-overflow-scrolling: touch; }
.docs-content .tablewrap { margin: 18px 0; }
.docs-content .tablewrap table { margin: 0; }
.docs-content th, .docs-content td { overflow-wrap: anywhere; }
.docs-content code { overflow-wrap: anywhere; word-break: break-word; }
.docs-content pre { max-width: 100%; overflow-x: auto; }
@media (max-width: 600px) {
  .container { padding: 0 16px; }
  .docs-content table { font-size: .85rem; }
  .docs-content th, .docs-content td { padding: 8px 9px; }
}