/* ==========================================================================
   Taxonomix — Design System
   Single stylesheet shared by every page. Light + dark themes via [data-theme].
   ========================================================================== */

/* ---- Design tokens ------------------------------------------------------- */
:root {
  /* Brand */
  --brand-400: #60a5fa;
  --brand-500: #3b82f6;
  --brand-600: #2563eb;
  --brand-700: #1d4ed8;
  --brand-800: #1e40af;
  --brand-grad: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
  --accent-green: #10b981;
  --accent-green-soft: #ecfdf5;

  /* Light theme (default) */
  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --bg-muted: #f1f5f9;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --text: #0f172a;
  --text-2: #475569;
  --text-muted: #64748b;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 3px rgba(15, 23, 42, .08);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, .08), 0 2px 4px -2px rgba(15, 23, 42, .06);
  --shadow-lg: 0 20px 40px -12px rgba(15, 23, 42, .18);
  --ring: rgba(59, 130, 246, .35);

  /* Dark surfaces used inside light pages (e.g. AI chat panel, hero band) */
  --navy-900: #0b1220;
  --navy-800: #0f172a;
  --navy-700: #1e293b;
  --navy-600: #334155;

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --maxw: 1160px;
  --header-h: 68px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

[data-theme="dark"] {
  --bg: #0b1220;
  --bg-soft: #0f172a;
  --bg-muted: #111c30;
  --surface: #111c30;
  --surface-2: #0f172a;
  --border: #24324a;
  --border-strong: #334155;
  --text: #e8eef7;
  --text-2: #aeb9cc;
  --text-muted: #8595ad;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, .45);
  --shadow-lg: 0 24px 48px -12px rgba(0, 0, 0, .6);
  --accent-green-soft: rgba(16, 185, 129, .12);
}

/* ---- Reset / base -------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 18px); }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color .25s ease, color .25s ease;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--brand-600); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.2; color: var(--text); margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1rem; }
:focus-visible { outline: 3px solid var(--ring); outline-offset: 2px; border-radius: 4px; }

/* ---- Layout helpers ------------------------------------------------------ */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }
.section { padding: clamp(56px, 8vw, 100px) 0; }
.section--soft { background: var(--bg-soft); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .82rem; font-weight: 600; letter-spacing: .02em;
  color: var(--brand-700);
  background: color-mix(in srgb, var(--brand-500) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--brand-500) 28%, transparent);
  padding: 6px 14px; border-radius: 999px;
}
.section-head { max-width: 680px; margin: 0 auto clamp(36px, 5vw, 56px); text-align: center; }
.section-head p { color: var(--text-2); font-size: 1.05rem; margin: 0; }
.text-grad {
  background: var(--brand-grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { font-size: 1.12rem; color: var(--text-2); }

/* ---- Buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 600; font-size: .95rem;
  padding: 11px 20px; border-radius: var(--radius-sm);
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform .08s ease, box-shadow .2s ease, background-color .2s ease, border-color .2s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand-grad); color: #fff; box-shadow: 0 6px 16px -6px rgba(37, 99, 235, .6); }
.btn-primary:hover { box-shadow: 0 10px 22px -8px rgba(37, 99, 235, .7); color: #fff; }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { background: var(--bg-muted); }
.btn-lg { padding: 14px 26px; font-size: 1rem; }
.btn-block { width: 100%; }

/* ---- Header (injected by app.js) ---------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex; align-items: center; gap: 18px; height: var(--header-h);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.18rem; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand svg { width: 30px; height: 30px; }
.brand img { height: 28px; width: auto; }
.brand .x { color: inherit; } /* uniform wordmark like the footer (no blue accent) */
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a {
  color: var(--text-2); font-weight: 500; font-size: .94rem;
  padding: 8px 12px; border-radius: 8px; white-space: nowrap;
}
.nav a:hover { color: var(--text); background: var(--bg-muted); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--brand-700); }
.header-actions { display: flex; align-items: center; gap: 10px; }

.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--surface); border: 1px solid var(--border-strong);
  color: var(--text-2); cursor: pointer; transition: background-color .2s, color .2s;
}
.theme-toggle:hover { background: var(--bg-muted); color: var(--text); }
.theme-toggle svg { width: 20px; height: 20px; }
.theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

.lang-switch {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 40px; padding: 0 12px; border-radius: 10px;
  background: var(--surface); border: 1px solid var(--border-strong);
  color: var(--text-2); font-weight: 600; font-size: .85rem; cursor: pointer;
  transition: background-color .2s, color .2s;
}
.lang-switch:hover { background: var(--bg-muted); color: var(--text); text-decoration: none; }

.menu-btn { display: none; }

/* ---- Footer (injected by app.js) ---------------------------------------- */
.site-footer { background: var(--navy-900); color: #cdd7e6; padding: 64px 0 28px; }
[data-theme="dark"] .site-footer { background: #070d18; border-top: 1px solid var(--border); }
.footer-grid {
  display: grid; gap: 40px;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
}
.footer-brand .brand { color: #fff; }
.footer-brand p { color: #8c9ab0; max-width: 260px; margin-top: 14px; font-size: .92rem; }
.footer-col h4 { color: #fff; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 14px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-col a { color: #aab6c8; font-size: .93rem; }
.footer-col a:hover { color: #fff; }
.social { display: flex; gap: 10px; margin-top: 18px; }
.social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 10px;
  background: rgba(255, 255, 255, .07); color: #cdd7e6;
}
.social a:hover { background: var(--brand-600); color: #fff; }
.social svg { width: 18px; height: 18px; }
.footer-bottom {
  margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .1);
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  color: #7e8ca3; font-size: .85rem;
}
.footer-bottom .maple { color: #ef4444; }

/* ---- Hero ---------------------------------------------------------------- */
.hero { padding: clamp(48px, 6vw, 84px) 0 clamp(40px, 5vw, 70px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero h1 { margin-top: 18px; }
.hero .lead { max-width: 30em; }
.signup { display: flex; gap: 10px; margin: 26px 0 14px; max-width: 460px; flex-wrap: wrap; }
.signup input[type="email"] {
  flex: 1 1 220px; min-width: 0; font: inherit; font-size: .95rem;
  padding: 12px 14px; border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong); background: var(--surface); color: var(--text);
}
.signup input::placeholder { color: var(--text-muted); }
.trust-row { display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--text-2); font-size: .88rem; }
.trust-row span { display: inline-flex; align-items: center; gap: 7px; }
.trust-row .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand-500); }
.cra-badge {
  margin-top: 22px; display: inline-flex; align-items: center; gap: 8px;
  font-size: .88rem; color: var(--text-2);
}
.cra-badge .maple { color: #ef4444; }

/* ---- Dashboard mockups (CSS "screenshots") ------------------------------ */
.window {
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}
.window-bar {
  display: flex; align-items: center; gap: 7px;
  padding: 10px 14px; border-bottom: 1px solid var(--border);
}
.window-bar i { width: 11px; height: 11px; border-radius: 50%; background: #cbd5e1; display: block; }
.window-bar i:nth-child(1) { background: #f87171; }
.window-bar i:nth-child(2) { background: #fbbf24; }
.window-bar i:nth-child(3) { background: #34d399; }
.window-bar span { margin-left: 8px; font-size: .78rem; color: var(--text-muted); }

/* Light dashboard panel — a T2 return */
.dash-light { background: #ffffff; color: #0f172a; }
.dash-light .window-bar { border-color: #e2e8f0; }
.dash-light .window-bar span { color: #64748b; }
.dash-body { display: grid; grid-template-columns: 130px 1fr; }
.dash-side { background: #f8fafc; border-right: 1px solid #e2e8f0; padding: 14px 10px; }
.dash-side .s-title { font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; color: #94a3b8; margin: 0 8px 10px; }
.dash-side ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.dash-side li { font-size: .82rem; color: #475569; padding: 7px 10px; border-radius: 7px; }
.dash-side li.active { background: #eff6ff; color: #1d4ed8; font-weight: 600; }
.dash-main { padding: 16px 18px; }
.dash-main h4 { font-size: .92rem; margin: 0 0 12px; color: #0f172a; }
.dash-rows { display: grid; gap: 1px; background: #eef2f7; border: 1px solid #eef2f7; border-radius: 10px; overflow: hidden; }
.dash-rows .r { display: flex; justify-content: space-between; gap: 12px; background: #fff; padding: 9px 12px; font-size: .82rem; }
.dash-rows .r span:first-child { color: #475569; }
.dash-rows .r span:last-child { color: #0f172a; font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.dash-rows .r.total { background: #eff6ff; }
.dash-rows .r.total span { color: #1d4ed8; font-weight: 700; }
.tag-ai {
  display: inline-flex; align-items: center; gap: 5px; font-size: .68rem; font-weight: 600;
  color: #fff; background: var(--accent-green); padding: 2px 8px; border-radius: 999px;
}

/* Dark AI chat panel */
.dash-dark { background: var(--navy-800); color: #e8eef7; border-color: #1e293b; }
.dash-dark .window-bar { border-color: #1e293b; }
.dash-dark .window-bar i { background: #334155; }
.dash-dark .window-bar i:nth-child(1) { background: #f87171; }
.dash-dark .window-bar i:nth-child(2) { background: #fbbf24; }
.dash-dark .window-bar i:nth-child(3) { background: #34d399; }
.dash-dark .window-bar span { color: #94a3b8; }
.chat { padding: 16px; display: grid; gap: 12px; }
.chat-head { display: flex; align-items: center; gap: 9px; font-size: .85rem; font-weight: 600; color: #cbd5e1; padding-bottom: 6px; border-bottom: 1px solid #1e293b; }
.chat-head .avatar {
  width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center;
  background: var(--brand-grad); color: #fff; font-size: .8rem; font-weight: 700;
}
.bubble { max-width: 84%; padding: 10px 13px; border-radius: 14px; font-size: .85rem; line-height: 1.5; }
.bubble.user { margin-left: auto; background: var(--brand-600); color: #fff; border-bottom-right-radius: 4px; }
.bubble.ai { background: #1e293b; color: #dbe4f0; border: 1px solid #2b3a52; border-bottom-left-radius: 4px; }
.bubble.ai .who { display: block; font-size: .68rem; color: #7ca3f5; font-weight: 600; margin-bottom: 3px; }

/* Hero product shots: desktop window mockup on large screens, phones on small */
.hero-stack { position: relative; }
.shot-desktop { display: block; }
.shot-mobile { display: none; flex-wrap: wrap; gap: 20px; justify-content: center; align-items: flex-start; max-width: 520px; margin-inline: auto; }
.shot-mobile .phone:nth-child(2) { margin-top: 36px; }
@media (max-width: 768px) {
  .shot-desktop { display: none; }
  .shot-mobile { display: flex; }
}

/* Combined desktop dashboard: T2 form (left) + docked AI analyst panel (right) in one window */
.combo-body { display: flex; align-items: stretch; }
.combo-body .dash-body { flex: 1 1 auto; min-width: 0; grid-template-columns: 112px 1fr; }
.combo-ai { flex: 0 0 36%; max-width: 248px; min-width: 176px; border-left: 1px solid #1e293b; }
.combo-ai .chat { height: 100%; }

.phone {
  flex: 0 0 auto; width: 232px; padding: 9px;
  background: #0b1220; border-radius: 38px; box-shadow: var(--shadow-lg);
  position: relative;
}
.phone-notch {
  position: absolute; top: 9px; left: 50%; transform: translateX(-50%);
  width: 92px; height: 18px; background: #0b1220; border-radius: 0 0 12px 12px; z-index: 3;
}
.phone-screen { border-radius: 30px; overflow: hidden; }

.m-bar { padding: 28px 15px 12px; }
.dash-light .m-bar { background: #fff; border-bottom: 1px solid #eef2f7; }
.dash-dark .m-bar { background: var(--navy-800); border-bottom: 1px solid #1e293b; display: flex; align-items: center; gap: 8px; }
.m-title { display: block; font-weight: 700; font-size: .82rem; color: #0f172a; }
.m-sub { font-size: .7rem; color: #64748b; }
.dash-dark .m-bar .avatar { width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; background: var(--brand-grad); color: #fff; font-size: .72rem; font-weight: 700; }
.dash-dark .m-bar b { font-size: .82rem; color: #e8eef7; }
.m-tabs { display: flex; gap: 6px; padding: 10px 12px; background: #fff; border-bottom: 1px solid #eef2f7; }
.m-tabs b, .m-tabs span { font-size: .66rem; padding: 4px 9px; border-radius: 999px; white-space: nowrap; }
.m-tabs b { background: #eff6ff; color: #1d4ed8; font-weight: 600; }
.m-tabs span { color: #94a3b8; }
.m-rows { padding: 12px; }
.phone .chat { padding: 14px; }
.phone .bubble { max-width: 92%; font-size: .8rem; }

/* Combined phone: one screen split into a light top half and a dark bottom half.
   Each half has an equal min-height (balanced "halves") but grows with content so
   nothing important — like the totals or the last chat bubble — gets clipped. */
.phone-split { display: flex; flex-direction: column; }
.phone-split .split { min-height: 236px; }
.phone-split .split.dash-dark { border-top: 1px solid #1e293b; }
.phone-split .chat { padding: 12px 14px; gap: 8px; }

/* ---- Cards (two ways to work) ------------------------------------------- */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 26px 24px; box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.card-ico {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  margin-bottom: 16px; background: color-mix(in srgb, var(--brand-500) 12%, transparent); color: var(--brand-600);
}
.card-ico svg { width: 24px; height: 24px; }
.card--ai .card-ico { background: var(--accent-green-soft); color: var(--accent-green); }
.card--best { border-color: color-mix(in srgb, var(--brand-500) 40%, var(--border)); }
.card--best .card-ico { background: var(--brand-grad); color: #fff; }
.card h3 { margin-bottom: 6px; }
.card > p { color: var(--text-2); font-size: .94rem; }
.feature-list { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 10px; }
.feature-list li { display: flex; gap: 9px; align-items: flex-start; font-size: .9rem; color: var(--text-2); }
.feature-list .check {
  flex: none; width: 18px; height: 18px; border-radius: 50%; margin-top: 2px;
  background: var(--accent-green-soft); color: var(--accent-green); display: grid; place-items: center;
}
.feature-list .check svg { width: 12px; height: 12px; }

/* ---- "In action" split --------------------------------------------------- */
.action-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 28px; align-items: stretch; }
/* Desktop windows on large screens; one combined phone on mobile (defined after
   the base rule above so the mobile override wins on source order). */
.action-mobile { display: none; }
@media (max-width: 768px) {
  .action-grid { display: none; }
  .action-mobile { display: flex; justify-content: center; }
}

/* ---- Why-choose feature grid -------------------------------------------- */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 24px; }
.why-item { text-align: center; padding: 8px; }
.why-ico {
  width: 56px; height: 56px; border-radius: 16px; margin: 0 auto 14px;
  display: grid; place-items: center; background: var(--surface);
  border: 1px solid var(--border); box-shadow: var(--shadow-sm); color: var(--brand-600);
}
.why-ico svg { width: 26px; height: 26px; }
.why-item h3 { font-size: 1.02rem; }
.why-item p { color: var(--text-2); font-size: .92rem; margin: 0; }

/* ---- CTA band ------------------------------------------------------------ */
.cta-band { background: var(--brand-grad); color: #fff; border-radius: var(--radius-xl); padding: clamp(34px, 5vw, 56px); position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; inset: 0; background: radial-gradient(600px circle at 85% -20%, rgba(255,255,255,.18), transparent 60%); pointer-events: none; }
.cta-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; align-items: center; position: relative; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.9); margin: 0; }
.cta-band .signup { margin: 0; max-width: none; }
.cta-band .signup input { background: rgba(255,255,255,.95); border-color: transparent; }
.cta-band .btn-ghost { background: rgba(255,255,255,.16); color: #fff; border-color: rgba(255,255,255,.4); }
.cta-band .btn-ghost:hover { background: rgba(255,255,255,.26); }
.cta-note { color: rgba(255,255,255,.8); font-size: .82rem; margin-top: 10px; }

/* ---- Generic content pages ---------------------------------------------- */
.page-hero { padding: clamp(48px, 6vw, 80px) 0 clamp(28px, 4vw, 44px); background: var(--bg-soft); border-bottom: 1px solid var(--border); }
.page-hero .eyebrow { margin-bottom: 16px; }
.page-hero p { color: var(--text-2); font-size: 1.08rem; max-width: 58ch; margin: 0; }
.prose { max-width: 760px; }
.prose h2 { margin-top: 2em; }
.prose h3 { margin-top: 1.6em; }
.prose p, .prose li { color: var(--text-2); }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }
.prose a { font-weight: 500; }
.meta-updated { color: var(--text-muted); font-size: .88rem; }

/* security feature grid */
.sec-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.sec-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); }
.sec-card .why-ico { margin: 0 0 14px; }
.sec-card h3 { margin-bottom: 6px; }
.sec-card p { color: var(--text-2); font-size: .93rem; margin: 0; }

/* contact */
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: start; }
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label { font-size: .88rem; font-weight: 600; color: var(--text); }
.field input, .field textarea, .field select {
  font: inherit; font-size: .95rem; padding: 11px 13px; border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); width: 100%;
}
.field textarea { min-height: 130px; resize: vertical; }
.form-note { font-size: .82rem; color: var(--text-muted); margin-top: 4px; }
/* Optional consent opt-in. The box sits beside its own wording rather than under a
   generic "I agree", because the stored consent record has to name the text shown. */
.consent { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0 4px; cursor: pointer; }
.consent input { margin-top: 3px; flex: 0 0 auto; }
.consent span { font-size: .82rem; color: var(--text-muted); line-height: 1.45; }
.contact-aside { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow-sm); }
.contact-aside h3 { margin-bottom: 4px; }
.contact-method { display: flex; gap: 12px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--border); }
.contact-method:last-child { border-bottom: 0; }
.contact-method .why-ico { width: 42px; height: 42px; margin: 0; }
.contact-method .why-ico svg { width: 20px; height: 20px; }
.contact-method b { display: block; color: var(--text); font-size: .95rem; }
.contact-method span { color: var(--text-2); font-size: .9rem; }
.form-ok { display: none; padding: 14px 16px; border-radius: var(--radius-sm); background: var(--accent-green-soft); color: #047857; border: 1px solid #6ee7b7; font-size: .92rem; margin-bottom: 16px; }
[data-theme="dark"] .form-ok { color: #6ee7b7; border-color: #065f46; }

/* blog */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post {
  display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.post:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); text-decoration: none; }
.post-thumb { height: 132px; background: var(--brand-grad); position: relative; }
.post-thumb.alt2 { background: linear-gradient(135deg, #10b981, #047857); }
.post-thumb.alt3 { background: linear-gradient(135deg, #6366f1, #1e1b4b); }
.post-thumb.alt4 { background: linear-gradient(135deg, #f59e0b, #b45309); }
.post-thumb.alt5 { background: linear-gradient(135deg, #ec4899, #831843); }
.post-thumb.alt6 { background: linear-gradient(135deg, #0ea5e9, #0c4a6e); }
.post-thumb span { position: absolute; left: 14px; bottom: 12px; color: #fff; font-weight: 700; font-size: 1.4rem; opacity: .9; }
.post-body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.post-body .pill { align-self: flex-start; font-size: .72rem; font-weight: 600; color: var(--brand-700); background: color-mix(in srgb, var(--brand-500) 12%, transparent); padding: 3px 10px; border-radius: 999px; }
.post-body h3 { margin: 0; font-size: 1.05rem; color: var(--text); }
.post-body p { color: var(--text-2); font-size: .9rem; margin: 0; }
.post-meta { margin-top: auto; color: var(--text-muted); font-size: .82rem; }

.callout { background: var(--bg-soft); border: 1px solid var(--border); border-left: 3px solid var(--brand-500); border-radius: var(--radius); padding: 18px 20px; margin: 24px 0; }
.callout p { margin: 0; color: var(--text-2); font-size: .94rem; }

/* ---- Responsive ---------------------------------------------------------- */
@media (max-width: 960px) {
  .hero-grid, .action-grid, .cta-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-stack { max-width: 560px; }
  .why-grid, .post-grid, .sec-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .cards-3 { grid-template-columns: 1fr; }
}
@media (max-width: 1024px) {
  .cta-desktop { display: none; }
  .header-actions { margin-left: auto; }
  .nav { display: none; }
  .menu-btn {
    display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px;
    background: var(--surface); border: 1px solid var(--border-strong); color: var(--text); cursor: pointer;
  }
  .nav.open {
    display: flex; flex-direction: column; align-items: stretch; gap: 2px;
    position: absolute; top: var(--header-h); left: 0; right: 0; margin: 0;
    background: var(--bg); border-bottom: 1px solid var(--border); padding: 10px 16px 16px;
    box-shadow: var(--shadow-md);
  }
  .nav.open a { padding: 12px; }
}
@media (max-width: 560px) {
  .why-grid, .post-grid, .sec-grid { grid-template-columns: 1fr; }
  .shot-mobile .phone:nth-child(2) { margin-top: 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .dash-body { grid-template-columns: 104px 1fr; }
  .footer-bottom { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
