/* AntAI Payroll website. Mobile first, light and dark. No external resources. */
:root {
  --bg: #ffffff;
  --bg-soft: #f3f6fa;
  --surface: #ffffff;
  --text: #15212b;
  --muted: #4a5a66;
  --line: #d5dee8;
  --brand: #1d4f7c;
  --brand-strong: #133a5e;
  --brand-ink: #ffffff;
  --brand-tint: #e6eef7;
  --accent: #8a4b00;
  --accent-tint: #fff3e0;
  --code-bg: #eef2f4;
  --focus: #1f5fd1;
  --shadow: 0 1px 2px rgba(16, 36, 48, .06), 0 6px 20px rgba(16, 36, 48, .06);
  --radius: 12px;
  --wrap: 1120px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f151c;
    --bg-soft: #151d26;
    --surface: #18222d;
    --text: #e7eef0;
    --muted: #a9b8be;
    --line: #2b3a4a;
    --brand: #8cc4f5;
    --brand-strong: #b3d8fa;
    --brand-ink: #0b1f33;
    --brand-tint: #17293b;
    --accent: #ffc47a;
    --accent-tint: #33270f;
    --code-bg: #0b1114;
    --focus: #9cc2ff;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 20px rgba(0, 0, 0, .25);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; }
a { color: var(--brand); text-underline-offset: .15em; }
a:hover { color: var(--brand-strong); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .6em; }
h1 { font-size: clamp(1.9rem, 5vw, 2.9rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.45rem, 3.4vw, 2rem); }
h3 { font-size: 1.15rem; }
p, ul, ol { margin: 0 0 1em; }
li { margin-bottom: .35em; }
code, kbd, pre { font-family: Consolas, "Cascadia Mono", Menlo, monospace; font-size: .92em; }
code { background: var(--code-bg); padding: .1em .35em; border-radius: 4px; }
pre { background: var(--code-bg); padding: 14px 16px; border-radius: 8px; overflow-x: auto; border: 1px solid var(--line); }
pre code { background: none; padding: 0; }
kbd { border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 4px; padding: 0 .35em; background: var(--surface); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 780px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); color: var(--text); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }

/* Header and navigation */
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: 0; z-index: 5; }
.header-in { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; min-height: 64px; gap: 8px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 700; font-size: 1.15rem; }
.brand img { width: 34px; height: 34px; }
.brand b { color: var(--brand); font-weight: 700; }
.nav-toggle {
  display: none; font: inherit; font-size: 1rem; background: var(--surface); color: var(--text);
  border: 1px solid var(--line); border-radius: 8px; padding: 6px 14px; cursor: pointer;
}
.site-nav ul { list-style: none; margin: 0; padding: 0 0 12px; display: flex; flex-wrap: wrap; gap: 4px 6px; }
.site-nav a { display: block; padding: 8px 10px; border-radius: 8px; color: var(--text); text-decoration: none; }
.site-nav a:hover { background: var(--bg-soft); }
.site-nav a[aria-current="page"] { color: var(--brand); font-weight: 600; box-shadow: inset 0 -2px 0 var(--brand); border-radius: 0; }
.site-nav .nav-cta { background: var(--brand); color: var(--brand-ink); font-weight: 600; }
.site-nav .nav-cta:hover { background: var(--brand-strong); color: var(--brand-ink); }
.site-nav .nav-cta[aria-current="page"] { box-shadow: none; border-radius: 8px; color: var(--brand-ink); }
.js .nav-toggle { display: inline-block; }
.js .site-nav { display: none; width: 100%; }
.js .site-nav.open { display: block; }
.js .site-nav ul { flex-direction: column; }
@media (min-width: 860px) {
  .js .nav-toggle { display: none; }
  .js .site-nav, .site-nav { display: block; width: auto; }
  .js .site-nav ul, .site-nav ul { flex-direction: row; padding: 0; align-items: center; }
  .header-in { flex-wrap: nowrap; }
}

/* Sections */
main { display: block; }
.section { padding: 48px 0; }
.section.soft { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.page-head { padding: 40px 0 8px; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 46em; }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; font-weight: 700; color: var(--brand); margin-bottom: .5em; }
.muted { color: var(--muted); }
.small { font-size: .92rem; }

.hero { padding: 48px 0 32px; }
.hero h1 { max-width: 15em; }
.hero .lead { margin-bottom: 1.4em; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 0 0 1em; }

.btn {
  display: inline-block; text-decoration: none; font-weight: 600; border-radius: 10px;
  padding: 12px 20px; border: 2px solid var(--brand); background: var(--brand); color: var(--brand-ink);
}
.btn:hover { background: var(--brand-strong); border-color: var(--brand-strong); color: var(--brand-ink); }
.btn.ghost { background: transparent; color: var(--brand); }
.btn.ghost:hover { background: var(--brand-tint); color: var(--brand-strong); }
.btn.big { font-size: 1.2rem; padding: 16px 28px; }
.btn-note { display: block; font-weight: 400; font-size: .85rem; }

.grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid.two, .grid.four, .grid.three { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .grid.three { grid-template-columns: repeat(3, 1fr); } .grid.four { grid-template-columns: repeat(4, 1fr); } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.card h3 { margin-bottom: .4em; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.pillar .num { display: inline-block; font-weight: 700; color: var(--brand); font-size: .85rem; margin-bottom: .3em; }

.shot { margin: 0; }
.shot img { display: block; width: 100%; border-radius: 10px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.shot figcaption { color: var(--muted); font-size: .92rem; margin-top: 8px; }

.pairs { list-style: none; padding: 0; display: grid; gap: 12px; }
.pairs li { margin: 0; display: grid; gap: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; }
.pairs .pain { font-weight: 600; }
.pairs .fix { color: var(--muted); }
@media (min-width: 760px) { .pairs li { grid-template-columns: 2fr 3fr; gap: 16px; } }

.steps { counter-reset: step; list-style: none; padding: 0; display: grid; gap: 16px; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { counter-increment: step; margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.steps li::before {
  content: counter(step); display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: var(--brand); color: var(--brand-ink); font-weight: 700; margin-bottom: 8px;
}
ol.howto { padding-left: 1.3em; }
ol.howto li { margin-bottom: .7em; }

.check { list-style: none; padding: 0; }
.check li { position: relative; padding-left: 1.6em; }
.check li::before { content: "\2713"; position: absolute; left: 0; color: var(--brand); font-weight: 700; }
.cross { list-style: none; padding: 0; }
.cross li { position: relative; padding-left: 1.6em; }
.cross li::before { content: "\2013"; position: absolute; left: .2em; color: var(--muted); font-weight: 700; }

.callout { border-left: 4px solid var(--brand); background: var(--brand-tint); padding: 14px 16px; border-radius: 0 10px 10px 0; margin: 0 0 1.2em; }
.callout.warn { border-left-color: var(--accent); background: var(--accent-tint); }
.callout p:last-child { margin-bottom: 0; }

/* Pricing */
.plans { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .plans { grid-template-columns: repeat(3, 1fr); } }
.plan { display: flex; flex-direction: column; }
.plan.featured { border: 2px solid var(--brand); }
.plan .size { color: var(--muted); margin-bottom: .6em; }
.plan .price { font-size: 2rem; font-weight: 700; line-height: 1.1; margin: 0; }
.plan .per { color: var(--muted); font-size: .95rem; margin-bottom: .8em; }
.plan .annual { border-top: 1px solid var(--line); padding-top: .8em; }
.plan .btn { margin-top: auto; text-align: center; }
.tag { display: inline-block; font-size: .78rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--brand-tint); color: var(--brand); margin-bottom: .6em; }
.offer { background: var(--accent-tint); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.offer strong { color: var(--accent); }

table { border-collapse: collapse; width: 100%; margin: 0 0 1em; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 600; }
.table-scroll { overflow-x: auto; }

/* FAQ */
details { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 0 16px; margin-bottom: 10px; }
summary { cursor: pointer; padding: 14px 0; font-weight: 600; }
details[open] summary { border-bottom: 1px solid var(--line); margin-bottom: 12px; }
details > :last-child { margin-bottom: 14px; }

/* Release info */
.release-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); }
.release-box dl { display: grid; grid-template-columns: 1fr; gap: 2px 16px; margin: 0; }
.release-box dt { font-weight: 600; color: var(--muted); font-size: .9rem; margin-top: 8px; }
.release-box dd { margin: 0; }
@media (min-width: 640px) { .release-box dl { grid-template-columns: max-content 1fr; } .release-box dt { margin-top: 0; } }
.hash { word-break: break-all; }
.release-status { margin: 12px 0 0; }
.release-status:empty { display: none; }

.release { border-top: 1px solid var(--line); padding-top: 24px; margin-top: 24px; }
.release h2 { margin-bottom: .2em; }

.cta-band { text-align: center; }
.cta-band .actions { justify-content: center; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-soft); padding: 28px 0; margin-top: 48px; color: var(--muted); font-size: .95rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0 0 12px; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.site-footer a { color: var(--text); }
.site-footer p { margin: 0 0 .4em; }

@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
@media print { .site-header, .site-footer, .nav-toggle { display: none; } }
