/* Takar landing page. Colors, radii and shadows come from tokens.css
   (copied from src/design-system at build time); no raw colors here. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-size: 16px; line-height: 26px; }
img, svg { display: block; max-width: 100%; }
a { color: var(--link); }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
.num { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--font-mono-stack); font-size: 0.875em; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .wrap { padding: 0 32px; } }

.skip { position: absolute; left: -9999px; top: 8px; }
.skip:focus { left: 16px; z-index: 10; background: var(--surface-raised); color: var(--ink); padding: 8px 12px; border-radius: var(--radius-sm); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: var(--radius-sm); font: inherit; font-size: 15px; font-weight: 600; text-decoration: none; border: 1px solid transparent; cursor: pointer; white-space: nowrap; }
.btn-primary { background: var(--brand); color: var(--on-brand); }
.btn-primary:hover { background: var(--brand-hover); }
.btn-ghost { color: var(--shell-ink); border-color: var(--shell-ink-muted); }
.btn-ghost:hover { background: var(--shell-hover); }
.btn-outline { color: var(--ink); border-color: var(--line-strong); background: var(--surface-raised); }
.btn-outline:hover { background: var(--surface-sunken); }

/* Header + hero share the shell (identity dark blue) */
.shell { background: var(--shell); color: var(--shell-ink); }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.topbar .logo img { height: 32px; width: auto; }
.topbar nav { display: flex; align-items: center; gap: 4px; font-size: 14px; }
.topbar nav a { color: var(--shell-ink); text-decoration: none; padding: 8px 10px; border-radius: var(--radius-sm); }
.topbar nav a:hover { background: var(--shell-hover); }
.topbar nav .lang { color: var(--shell-ink-muted); font-weight: 600; letter-spacing: 0.04em; }
.topbar nav .nav-cta { background: var(--brand); color: var(--on-brand); font-weight: 600; margin-left: 4px; }
.topbar nav .nav-cta:hover { background: var(--brand-hover); }
.topbar nav .hide-sm { display: none; }
@media (min-width: 768px) { .topbar nav .hide-sm { display: inline-block; } }

.hero { display: grid; gap: 40px; padding-top: 48px; padding-bottom: 64px; }
.hero > * { min-width: 0; }
@media (min-width: 960px) { .hero { grid-template-columns: 1.05fr 1fr; align-items: center; padding-top: 72px; padding-bottom: 96px; } }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--shell-accent); margin-bottom: 16px; }
.hero h1 { font-size: 34px; line-height: 42px; font-weight: 600; letter-spacing: -0.01em; }
@media (min-width: 768px) { .hero h1 { font-size: 46px; line-height: 56px; } }
.hero .lead { margin-top: 20px; font-size: 18px; line-height: 28px; color: var(--shell-ink-muted); max-width: 34em; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero .facts { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 32px; font-size: 14px; color: var(--shell-ink-muted); }
.hero .facts li { display: flex; align-items: center; gap: 8px; }
.hero .facts svg { color: var(--shell-accent); flex: none; }

/* Product illustration: a payroll review card */
.mock { margin: 0; background: var(--surface-raised); color: var(--ink); border-radius: var(--radius-lg); box-shadow: var(--shadow-popover); overflow: hidden; font-size: 14px; line-height: 20px; }
.mock-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.mock-head strong { font-size: 16px; font-weight: 600; }
.mock-head span { display: block; color: var(--ink-muted); font-size: 12px; }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; }
.status.positive { color: var(--positive); }
.status.info { color: var(--info); }
.mock-kpis { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); }
.mock-kpis div { padding: 12px 20px; }
.mock-kpis div + div { border-left: 1px solid var(--line); }
.mock-kpis dt { font-size: 12px; color: var(--ink-muted); }
.mock-kpis dd { margin: 2px 0 0; font-size: 18px; line-height: 24px; font-weight: 500; }
.mock table { width: 100%; border-collapse: collapse; }
.mock th, .mock td { padding: 10px 20px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
.mock th { background: var(--surface-sunken); color: var(--ink-muted); font-size: 12px; font-weight: 600; }
.mock td.amt, .mock th.amt { text-align: right; font-variant-numeric: tabular-nums; }
.mock td.neg { color: var(--negative); }
.mock tr.total td { background: var(--surface-sunken); font-weight: 600; border-bottom: 0; }
.mock-scroll { overflow-x: auto; }
@media (max-width: 479px) { .mock th, .mock td { padding: 10px 10px; font-size: 13px; } .mock th:first-child, .mock td:first-child { padding-left: 16px; } .mock th:last-child, .mock td:last-child { padding-right: 16px; } .mock-kpis div { padding: 12px 16px; } }

/* Sections */
section { padding: 64px 0; }
@media (min-width: 768px) { section { padding: 88px 0; } }
.section-head { max-width: 46em; margin-bottom: 40px; }
.section-head h2 { font-size: 28px; line-height: 36px; font-weight: 600; letter-spacing: -0.01em; }
@media (min-width: 768px) { .section-head h2 { font-size: 34px; line-height: 42px; } }
.section-head p { margin-top: 12px; color: var(--ink-muted); font-size: 17px; line-height: 28px; }
.alt { background: var(--surface-raised); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* Lifecycle */
.flow { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; counter-reset: step; }
@media (min-width: 640px) { .flow { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .flow { grid-template-columns: repeat(6, 1fr); } }
.flow li { counter-increment: step; background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 16px; }
.flow li::before { content: counter(step, decimal-leading-zero); display: block; font-family: var(--font-mono-stack); font-size: 12px; color: var(--brand); font-weight: 500; }
.flow strong { display: block; margin-top: 4px; font-size: 16px; font-weight: 600; }
.flow span { display: block; margin-top: 4px; color: var(--ink-muted); font-size: 14px; line-height: 20px; }
.flow li.lock { border-color: var(--brand); background: var(--brand-soft); }

/* Feature grid */
.grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); padding: 24px; }
.alt .card { background: var(--surface); box-shadow: none; }
.card .icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: var(--radius-sm); background: var(--brand-soft); color: var(--brand); margin-bottom: 16px; }
.card h3 { font-size: 18px; line-height: 24px; font-weight: 600; }
.card > p { margin-top: 8px; color: var(--ink-muted); font-size: 15px; line-height: 24px; }
.checks { margin-top: 16px; display: grid; gap: 8px; font-size: 15px; line-height: 22px; }
.checks li { display: flex; gap: 10px; }
.checks svg { flex: none; margin-top: 3px; color: var(--positive); }

/* Reliability */
.rel { display: grid; gap: 16px; }
@media (min-width: 768px) { .rel { grid-template-columns: repeat(2, 1fr); } }
.rel .card { display: flex; gap: 16px; }
.rel .card .icon { margin-bottom: 0; flex: none; }
.rel .card p { margin-top: 6px; color: var(--ink-muted); font-size: 15px; line-height: 24px; }

.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 40px; }
@media (min-width: 768px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stats div { border-left: 3px solid var(--brand); padding: 4px 0 4px 16px; }
.stats dt { font-size: 30px; line-height: 38px; font-weight: 300; font-variant-numeric: tabular-nums; }
.stats dd { margin: 4px 0 0; color: var(--ink-muted); font-size: 14px; line-height: 20px; }

/* Note strip */
.note { display: flex; gap: 12px; margin-top: 32px; padding: 16px 20px; border-radius: var(--radius-sm); background: var(--info-soft); color: var(--ink); font-size: 15px; line-height: 24px; }
.note svg { flex: none; margin-top: 4px; color: var(--info); }

/* CTA band + footer */
.cta { background: var(--shell); color: var(--shell-ink); text-align: center; }
.cta h2 { font-size: 28px; line-height: 36px; font-weight: 600; }
.cta p { margin: 12px auto 0; max-width: 36em; color: var(--shell-ink-muted); font-size: 17px; line-height: 28px; }
.cta .actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }
.site-footer { background: var(--shell); color: var(--shell-ink-muted); font-size: 14px; line-height: 22px; border-top: 1px solid var(--shell-hover); }
.site-footer a { color: var(--shell-ink-muted); text-decoration: none; }
.site-footer a:hover { color: var(--shell-ink); text-decoration: underline; }
.footer-grid { display: grid; gap: 40px; padding-top: 48px; padding-bottom: 40px; }
@media (min-width: 960px) { .footer-grid { grid-template-columns: 1.2fr 2fr; gap: 64px; } }
.footer-brand img { height: 32px; width: auto; }
.footer-brand p { margin-top: 16px; max-width: 26em; }
.footer-brand .operator { color: var(--shell-ink-muted); }
.footer-brand .operator strong { color: var(--shell-ink); font-weight: 600; }
.footer-cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px 24px; }
@media (min-width: 640px) { .footer-cols { grid-template-columns: repeat(4, 1fr); } }
.footer-cols h2 { font-size: 13px; line-height: 18px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--shell-ink); margin-bottom: 12px; }
.footer-cols ul { display: grid; gap: 8px; }
.footer-cols li { overflow-wrap: anywhere; }
.footer-cols [aria-current] { color: var(--shell-ink); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 20px; padding-bottom: 28px; border-top: 1px solid var(--shell-hover); font-size: 13px; }

/* Theme toggle: moon in light theme, sun in dark. Hidden until theme.js wires it. */
.theme-toggle { display: inline-grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: var(--radius-sm); background: transparent; color: var(--shell-ink); cursor: pointer; }
.theme-toggle[hidden] { display: none; }
.theme-toggle:hover { background: var(--shell-hover); }
.theme-toggle .icon-sun, [data-theme="dark"] .theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
