/* NickIT ZeroPortal website - self-hosted, no external fonts or frameworks. */
:root {
  --navy: #14213d;
  --navy-2: #1c2f57;
  --blue: #2b7de9;
  --blue-dark: #1b5fc0;
  --orange: #f0a02b;
  --bg: #f6f8fb;
  --card: #ffffff;
  --text: #1f2933;
  --muted: #5b6b7b;
  --border: #dbe3ec;
  --code-bg: #eef2f7;
  --callout-bg: #fdf7ea;
  --callout-border: #d9a441;
  --radius: 10px;
  --shadow: 0 6px 24px rgba(20, 33, 61, .08);
  --font: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: Consolas, "Cascadia Mono", "Courier New", monospace;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.6; color: var(--text); background: var(--bg); }
img { max-width: 100%; height: auto; }
a { color: var(--blue-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { color: var(--navy); line-height: 1.25; margin: 1.6em 0 .5em; }
h1 { font-size: 2rem; margin-top: .4em; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.15rem; }
p, ul, ol, table, pre { margin: 0 0 1em; }
code { font-family: var(--mono); font-size: .92em; background: var(--code-bg); padding: .1em .35em; border-radius: 4px; }
pre { background: #1e2733; color: #e6edf3; padding: 1em 1.2em; border-radius: var(--radius); overflow-x: auto; font-size: .9rem; line-height: 1.5; }
pre code { background: none; padding: 0; color: inherit; font-size: inherit; }
blockquote { margin: 1.2em 0; padding: .8em 1.1em; border-left: 4px solid var(--callout-border); background: var(--callout-bg); border-radius: 0 var(--radius) var(--radius) 0; }
blockquote p:last-child { margin-bottom: 0; }
table { border-collapse: collapse; width: 100%; font-size: .95rem; background: var(--card); }
th, td { border: 1px solid var(--border); padding: .5em .7em; text-align: left; vertical-align: top; }
th { background: #eaf0f8; color: var(--navy); }
hr { border: 0; border-top: 1px solid var(--border); margin: 2em 0; }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 1.25rem; }
.muted { color: var(--muted); }
.lead { font-size: 1.15rem; color: var(--muted); }
.notice { background: #eaf3ff; border: 1px solid #c6dcf7; border-radius: var(--radius); padding: 1em 1.2em; }
.badge { display: inline-block; font-size: .72rem; font-weight: 600; letter-spacing: .02em; padding: .15em .55em; border-radius: 999px; background: var(--blue); color: #fff; vertical-align: middle; }
.badge-muted { background: #c9d3dd; color: var(--navy); }

/* buttons */
.btn { display: inline-block; padding: .65em 1.3em; border-radius: 8px; font-weight: 600; border: 2px solid transparent; transition: background .15s, color .15s, transform .15s; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); }
.btn-ghost { border-color: rgba(255,255,255,.7); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.btn-outline { border-color: var(--blue); color: var(--blue-dark); background: #fff; }
.btn-outline:hover { background: #eaf3ff; }
.btn-small { padding: .35em .9em; font-size: .9rem; border-color: var(--border); background: #fff; color: var(--navy); }
.btn-small:hover { background: #eaf0f8; }

/* header */
.site-header { background: #fff; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 20; }
.header-row { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 1rem; }
.brand img { display: block; width: 210px; height: auto; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .2rem; align-items: center; }
.site-nav a { display: block; padding: .55em .6em; border-radius: 8px; color: var(--navy); font-weight: 500; white-space: nowrap; font-size: .92rem; }
.site-nav a:hover { background: #eaf0f8; text-decoration: none; }
.site-nav li.active > a { color: var(--blue-dark); background: #eaf3ff; }

/* Drop-down: the parent still links to its own page; children open on hover, keyboard
   focus and tap. The panel is a quiet list, left aligned, no pill backgrounds. */
.site-nav li.has-sub { position: relative; }
.site-nav li.has-sub > a { display: flex; align-items: center; gap: .3em; }
.site-nav .caret { width: 0; height: 0; border: .28em solid transparent; border-top-color: currentColor; margin-top: .2em; opacity: .55; transition: transform .12s ease; }
.site-nav li.has-sub:hover .caret, .site-nav li.has-sub:focus-within .caret { transform: rotate(180deg); margin-top: -.2em; }
.site-nav ul.sub {
  display: none; position: absolute; top: calc(100% + 2px); left: 0;
  flex-direction: column; align-items: stretch; gap: 0;
  min-width: 11.5rem; padding: .3rem; margin: 0;
  background: #fff; border: 1px solid var(--border); border-radius: 10px;
  box-shadow: 0 8px 24px rgba(16, 32, 64, .12); z-index: 40;
}
.site-nav li.has-sub:hover > ul.sub, .site-nav li.has-sub:focus-within > ul.sub { display: flex; }
.site-nav ul.sub li { display: block; }
.site-nav ul.sub a { display: block; text-align: left; padding: .45em .6em; border-radius: 6px; font-weight: 500; font-size: .9rem; background: none; color: var(--navy); }
.site-nav ul.sub a:hover { background: #eef3fa; }
.site-nav ul.sub li.active > a { color: var(--blue-dark); background: none; font-weight: 600; }

.site-nav li.lang a { text-transform: uppercase; font-size: .8rem; letter-spacing: .08em; border: 1px solid var(--border); padding: .35em .7em; margin-left: .5rem; }
.nav-toggle, .nav-burger { display: none; }
@media (max-width: 1000px) {
  .nav-burger { display: flex; flex-direction: column; gap: 5px; cursor: pointer; padding: .5rem; }
  .nav-burger span { width: 24px; height: 2px; background: var(--navy); display: block; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 64px; background: #fff; border-bottom: 1px solid var(--border); box-shadow: var(--shadow); }
  .site-nav ul { flex-direction: column; align-items: stretch; padding: .5rem 1rem 1rem; }
  .nav-toggle:checked ~ .site-nav { display: block; }
  /* On small screens the group is shown expanded and indented, without panel chrome. */
  .site-nav ul.sub { display: flex; position: static; border: 0; box-shadow: none; padding: 0 0 .3rem 1rem; min-width: 0; background: none; }
  .site-nav ul.sub a { padding: .45em .6em; }
  .site-nav .caret { display: none; }
  .brand img { width: 190px; }
}

/* footer */
.site-footer { background: var(--navy); color: #c9d3dd; margin-top: 4rem; padding: 2.5rem 0; font-size: .92rem; }
.site-footer a { color: #fff; }
.footer-row { display: grid; grid-template-columns: 1.2fr .8fr; gap: 3rem; align-items: start; }
.footer-row img { opacity: .85; margin-bottom: .6rem; }
.footer-row p { margin: .2em 0; }
.footer-company .muted { margin-top: 1.2rem; }
.footer-newsletter h3 { color: #fff; margin: 0 0 .3em; font-size: 1.05rem; }
.footer-newsletter p { color: #b9c6d8; margin-bottom: .6em; }
.footer-newsletter form { display: grid; gap: .5rem; }
.footer-newsletter label { font-size: .85rem; color: #dfe7f2; }
.footer-newsletter input { padding: .5em .7em; border: 1px solid #3b5a8c; border-radius: 6px; background: #1c2f57; color: #fff; font: inherit; width: 100%; }
.footer-newsletter input::placeholder { color: #8fa3bf; }
.footer-newsletter .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.footer-newsletter .hp { position: absolute; left: -5000px; }
.footer-newsletter .btn { justify-self: start; font: inherit; font-weight: 600; cursor: pointer; }
.footer-newsletter .small { font-size: .8rem; color: #8fa3bf; margin: 0; }
@media (max-width: 800px) { .footer-row { grid-template-columns: 1fr; gap: 2rem; } }

.notice-ok { background: #e7f6ec; border-color: #b7e0c4; color: #1d5b33; }
.notice-err { background: #fdecec; border-color: #f2c2c2; color: #7a1f1f; }

/* generic page */
.page { padding: 1.5rem 1.25rem 3rem; max-width: 960px; }
.page h1 + .lead { margin-top: -.3em; }

/* home */
.hero { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 45%, var(--blue-dark) 100%); color: #fff; padding: 4.5rem 0 4rem; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(43,125,233,.45), transparent 65%); }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; position: relative; }
.hero h1 { color: #fff; font-size: 2.45rem; font-weight: 600; line-height: 1.18; margin: 0 0 .55em; letter-spacing: -.012em; }
.hero .kicker { text-transform: uppercase; letter-spacing: .12em; font-size: .74rem; color: var(--orange); font-weight: 600; margin: 0 0 1.1em; }
.hero p { font-size: 1.1rem; line-height: 1.55; color: #dfe7f2; max-width: 34rem; margin-bottom: .9em; }
.hero .tags { display: flex; flex-wrap: wrap; gap: .45rem; margin: 0 0 1.4rem; }
.hero .tags span { font-size: .8rem; font-weight: 600; letter-spacing: .02em; padding: .28em .75em; border-radius: 999px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22); color: #eaf1fb; }
.hero .actions { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 0; }
.hero .note { font-size: .9rem; color: #b9c6d8; margin-top: 1rem; }
.hero svg { width: 100%; height: auto; filter: drop-shadow(0 10px 30px rgba(0,0,0,.35)); }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } .hero h1 { font-size: 2.1rem; } }

.band { padding: 3.5rem 0; }
.band-alt { background: #fff; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.band h2 { text-align: center; font-size: 1.9rem; margin-top: 0; }
.band .sub { text-align: center; color: var(--muted); max-width: 44rem; margin: -.5rem auto 2.2rem; font-size: 1.08rem; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; }
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); }
.card svg { width: 40px; height: 40px; color: var(--blue); margin-bottom: .6rem; }
.card h3 { margin: .2em 0 .4em; }
.card p { margin: 0; color: var(--muted); }
.card a.more { display: inline-block; margin-top: .8em; font-weight: 600; }
@media (max-width: 900px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .cards { grid-template-columns: 1fr; } }

.claims { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.claim h3 { font-size: 1.25rem; margin-top: 0; }
.claim p { color: var(--muted); margin: 0; }
.claim .num { display: inline-flex; width: 36px; height: 36px; align-items: center; justify-content: center; border-radius: 50%; background: var(--orange); color: var(--navy); font-weight: 700; margin-bottom: .6rem; }
@media (max-width: 800px) { .claims { grid-template-columns: 1fr; } }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; counter-reset: step; }
.step { background: var(--card); border-radius: var(--radius); padding: 1.5rem; border: 1px solid var(--border); position: relative; }
.step::before { counter-increment: step; content: counter(step); position: absolute; top: -18px; left: 1.3rem; width: 36px; height: 36px; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.step h3 { margin-top: .4em; }
.step p { color: var(--muted); margin: 0; }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; gap: 2rem; } }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; text-align: center; }
.stat strong { display: block; font-size: 2.4rem; color: var(--blue-dark); line-height: 1.1; }
.stat span { color: var(--muted); }
@media (max-width: 700px) { .stats { grid-template-columns: 1fr 1fr; } }

.cta { background: var(--navy); color: #fff; text-align: center; padding: 3.5rem 0; }
.cta h2 { color: #fff; margin-top: 0; }
.cta p { color: #c9d3dd; max-width: 40rem; margin: 0 auto 1.5rem; }
.cta .actions { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; }

.audience { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; }
.audience .card h3 { color: var(--blue-dark); }
@media (max-width: 800px) { .audience { grid-template-columns: 1fr; } }

/* feature page */
.feature { display: grid; grid-template-columns: 56px 1fr; gap: 1.2rem; padding: 1.6rem 0; border-bottom: 1px solid var(--border); }
.feature:last-child { border-bottom: 0; }
.feature svg { width: 44px; height: 44px; color: var(--blue); }
.feature h2 { margin-top: 0; }
.feature ul { padding-left: 1.2em; }
.feature .tag { font-size: .8rem; font-weight: 600; color: #fff; background: var(--orange); border-radius: 999px; padding: .1em .6em; margin-left: .4em; vertical-align: middle; }
.feature .tag-free { background: #2fa36b; }

/* pricing */
.price-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin: 2rem 0; }
.price-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow); }
.price-card.featured { border: 2px solid var(--blue); position: relative; }
.price-card.featured::before { content: attr(data-label); position: absolute; top: -14px; left: 1.5rem; background: var(--blue); color: #fff; font-size: .75rem; font-weight: 700; letter-spacing: .05em; padding: .2em .8em; border-radius: 999px; }
.price-card h2 { margin-top: 0; }
.price { font-size: 2.6rem; font-weight: 700; color: var(--navy); line-height: 1.1; margin: .4em 0 .1em; }
.price small { font-size: 1rem; font-weight: 500; color: var(--muted); }
.price-card ul { padding-left: 1.2em; }
.price-card li { margin-bottom: .35em; }
.price-card .btn { margin-top: .8rem; }
@media (max-width: 800px) { .price-grid { grid-template-columns: 1fr; } }
.calc { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem 2rem; margin: 1.5rem 0 2.5rem; }
.calc label { font-weight: 600; color: var(--navy); }
.calc input[type=range] { width: 100%; margin: .8rem 0; accent-color: var(--blue); }
.calc .calc-row { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; align-items: baseline; }
.calc output { font-weight: 700; color: var(--blue-dark); font-size: 1.2rem; }
.calc .calc-total { font-size: 1.6rem; font-weight: 700; color: var(--navy); margin: 0; }
.calc .calc-total small { font-size: 1rem; font-weight: 500; color: var(--muted); }
.calc .calc-total small.calc-unit { display: block; font-size: .9rem; margin-top: .1rem; }
.calc .calc-edu { margin: 1rem 0 0; padding-top: .9rem; border-top: 1px solid var(--border); font-size: .95rem; color: var(--navy); }
.calc .calc-edu strong { color: var(--blue-dark); }
.calc .calc-vat { display: inline-block; margin-top: .35rem; font-size: .87rem; color: var(--muted); }
.faq h3 { margin-top: 1.4em; }

/* downloads */
.dl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-bottom: 2rem; }
.dl-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.dl-card h3 { margin-top: 0; }
.dl-card .btn { align-self: flex-start; margin-top: auto; }
.dl-meta { display: grid; grid-template-columns: max-content 1fr; gap: .25em 1em; font-size: .92rem; margin: 0 0 1.2rem; }
.dl-meta dt { color: var(--muted); }
.dl-meta dd { margin: 0; word-break: break-all; }
.dl-meta code.hash { font-size: .78rem; }
.dl-table td { vertical-align: middle; }
@media (max-width: 800px) { .dl-grid { grid-template-columns: 1fr; } }

/* documentation index */
.doc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin-bottom: 2rem; }
.doc-card { display: block; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.3rem 1.4rem; color: var(--text); transition: transform .15s, box-shadow .15s; }
.doc-card:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow); border-color: #c6dcf7; }
.doc-card h3 { margin: 0 0 .4em; color: var(--blue-dark); font-size: 1.05rem; }
.doc-card p { margin: 0; color: var(--muted); font-size: .95rem; }
@media (max-width: 900px) { .doc-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .doc-grid { grid-template-columns: 1fr; } }

/* documentation page */
.doc-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 2.5rem; padding-top: 1.5rem; padding-bottom: 3rem; }
.doc-side { position: sticky; top: 80px; align-self: start; max-height: calc(100vh - 100px); overflow: auto; font-size: .9rem; }
.doc-side-home { margin-bottom: .6rem; }
.doc-toc-title { font-weight: 700; color: var(--navy); margin: .8rem 0 .3rem; text-transform: uppercase; font-size: .75rem; letter-spacing: .08em; }
.doc-toc ul { list-style: none; padding-left: 0; margin: 0; }
.doc-toc ul ul { padding-left: .9rem; }
.doc-toc li { margin: .15em 0; }
.doc-toc a { color: var(--text); display: block; padding: .15em .4em; border-radius: 4px; }
.doc-toc a:hover { background: #eaf0f8; text-decoration: none; }
.doc-toc a.current { background: #eaf3ff; color: var(--blue-dark); font-weight: 600; }
.doc-toc.ps a { font-family: var(--mono); font-size: .76rem; padding: .12em .4em; line-height: 1.35; }
.doc-toc.ps a.current { border-left: 3px solid var(--blue); padding-left: .3em; }
.doc-toc.ps .doc-toc-title { margin-top: 1rem; }
.doc-body { min-width: 0; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem 2.5rem 2.5rem; }
.doc-body h1 { font-size: 1.9rem; }
.doc-body h2 { border-bottom: 1px solid var(--border); padding-bottom: .25em; margin-top: 2em; }
.doc-body img { border: 1px solid var(--border); border-radius: 6px; display: block; margin: .8em 0 1.2em; }
.doc-body a.img-full { display: block; text-decoration: none; }
.doc-body a.img-full:hover img { border-color: var(--blue); }
.doc-body img.w50 { width: 50%; }
.doc-body img.w70 { width: 70%; }
.doc-body .doc-meta { color: var(--muted); font-size: .95rem; margin-top: -.2em; }
.doc-body .breadcrumb { color: var(--muted); font-size: .9rem; margin-bottom: 0; }
.doc-body table { display: block; overflow-x: auto; }
.doc-body pre { background: #f4f6fa; color: #1f2933; border: 1px solid var(--border); border-left: 4px solid var(--blue); border-radius: 6px; padding: .9em 1.1em; font-size: .86rem; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.doc-body pre code { color: inherit; }
.ps-table td:first-child { white-space: nowrap; width: 40%; }
.syntax { white-space: pre-wrap; word-break: break-word; }
.params dt { margin-top: .8em; font-weight: 600; }
.params dd { margin: .2em 0 0 1.2em; }
.params dd p { margin-bottom: .4em; }
@media (max-width: 900px) {
  .doc-layout { grid-template-columns: 1fr; gap: 1rem; }
  .doc-side { position: static; max-height: none; }
  .doc-body { padding: 1.2rem; }
  .doc-body img.w50, .doc-body img.w70 { width: 100%; }
}

/* contact card: address block with icons; the e-mail link is built by script from data attributes */
.contact-card { font-style: normal; background: var(--navy); color: #fff; border-radius: var(--radius); padding: 1.5rem 1.8rem; font-size: 1.1rem; line-height: 1.7; }
.contact-card p { margin: 0 0 1rem; }
.contact-card p:last-child { margin-bottom: 0; }
.contact-card a { color: var(--orange); }
.contact-card a.tel { color: #fff; }
.contact-card .ci { display: inline-block; width: 1.1em; height: 1.1em; margin-right: .55em; vertical-align: -.18em; }
.contact-card .ci svg { width: 100%; height: 100%; fill: currentColor; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
@media (max-width: 700px) { .contact-grid { grid-template-columns: 1fr; } }

/* community: M.A.D. Day, book, newsletter */
.community-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; }
.community .card img { border-radius: 8px; margin-bottom: .8rem; display: block; }
.community .card p { margin-bottom: .6rem; }
.newsletter form { display: grid; gap: .5rem; margin-top: .4rem; }
.newsletter label { font-weight: 600; font-size: .9rem; color: var(--navy); }
.newsletter input { padding: .55em .7em; border: 1px solid var(--border); border-radius: 6px; font: inherit; width: 100%; }
.newsletter .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.newsletter .hp { position: absolute; left: -5000px; }
.newsletter .small { font-size: .8rem; margin: 0; }
.newsletter .btn { justify-self: start; font: inherit; font-weight: 600; cursor: pointer; }
@media (max-width: 900px) { .community-grid { grid-template-columns: 1fr; } }

/* screenshot slider */
.slider { position: relative; }
.slides { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; padding: 4px; }
.slides::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; scroll-snap-align: start; margin: 0; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.slide .frame { aspect-ratio: 2 / 1; display: flex; align-items: center; justify-content: center; background: #fff; overflow: hidden; }
.slide img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; }
.slide figcaption { padding: .8rem 1.2rem; color: var(--muted); font-size: .95rem; border-top: 1px solid var(--border); }
.slider-nav { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 1rem; }
.slider-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border); background: #fff; color: var(--navy); font-size: 1.4rem; line-height: 1; cursor: pointer; }
.slider-btn:hover { background: #eaf0f8; }
.slider-dots { display: flex; gap: .4rem; }
.slider-dots button { width: 10px; height: 10px; border-radius: 50%; border: 0; background: #c9d3dd; padding: 0; cursor: pointer; }
.slider-dots button.on { background: var(--blue); }

/* M.A.D. page */
.mad-signup { display: grid; grid-template-columns: 1.1fr .9fr; gap: 2rem; align-items: center; background: linear-gradient(135deg, var(--navy) 0%, var(--blue-dark) 100%); color: #fff; border-radius: var(--radius); padding: 1.8rem 2rem; margin: 1.5rem 0 2rem; }
.mad-signup h2 { color: #fff; margin-top: 0; }
.mad-signup p { color: #dfe7f2; }
.mad-signup form { display: grid; gap: .5rem; }
.mad-signup label { font-size: .85rem; font-weight: 600; color: #eaf1fb; }
.mad-signup input { padding: .6em .75em; border: 1px solid #5b7fb3; border-radius: 6px; background: #fff; color: var(--text); font: inherit; width: 100%; }
.mad-signup .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.mad-signup .hp { position: absolute; left: -5000px; }
.mad-signup .btn { justify-self: start; font: inherit; font-weight: 600; cursor: pointer; border: 2px solid transparent; background: var(--orange); color: var(--navy); }
.mad-signup .btn:hover { background: #f7b24a; }
.mad-signup .small { font-size: .8rem; margin: 0; color: #b9c6d8; }
.mad-signup .small a { color: #fff; }
.mad-hero { border-radius: var(--radius); box-shadow: var(--shadow); margin: 0 0 1.5rem; }
@media (max-width: 800px) { .mad-signup { grid-template-columns: 1fr; } }

/* book card */
.card.book img { float: right; width: 116px; height: auto; margin: 0 0 .6rem 1rem; border-radius: 6px; box-shadow: 0 6px 18px rgba(20, 33, 61, .25); }
.card.book .btn-small { margin-right: .6rem; }
.card.book p:last-child { margin-top: .8rem; clear: both; }

/* author box */
.author { display: flex; gap: 1.2rem; align-items: center; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.2rem 1.4rem; margin-top: 2rem; }
.author img { border-radius: 50%; width: 120px; height: 120px; flex: none; }
.author p { margin: 0; }
@media (max-width: 600px) { .author { flex-direction: column; text-align: center; } }

/* release notes */
.release { border-left: 3px solid var(--blue); padding-left: 1.2rem; margin: 2rem 0; }
.release h2 { margin-top: 0; }
.release .date { color: var(--muted); font-size: .9rem; }

/* Short pointer inside a feature block or a document page. */
.feature .note, .doc-body .note { background: #f4f7fc; border-left: 3px solid var(--blue); border-radius: 0 8px 8px 0; padding: .7rem .9rem; margin: .8rem 0 0; font-size: .93rem; }
.feature .note code, .doc-body .note code { background: #fff; }

/* Roadmap: one line per item, title first. */
.road-list { list-style: none; margin: 1.2rem 0 2rem; padding: 0; max-width: 62rem; }
.road-list li { padding: .8rem 0 .8rem 1.4rem; border-bottom: 1px solid var(--border); position: relative; line-height: 1.55; }
.road-list li:before { content: ""; position: absolute; left: 0; top: 1.35em; width: .5rem; height: .5rem; border-radius: 50%; background: var(--blue); }
.road-list li:last-child { border-bottom: 0; }
.road-list strong { color: var(--navy); }
