/* ABAIQ site pages (2026-10). Loaded AFTER css/home.css on every public page.
   home.css holds the tokens, nav, footer, buttons, cards, plans, faq, final CTA.
   site.css adds the page-level primitives used by the inner pages. */

/* ---------- nav extras ---------- */
.nav-links a.active { background: var(--paper-2); color: var(--ink); }
.nav-actions button.lang { border: 0; background: transparent; cursor: pointer; font: inherit; }

/* ---------- page hero ---------- */
.page-hero { padding: clamp(56px, 8vw, 96px) 0 clamp(36px, 5vw, 60px); text-align: center; }
.page-hero .eyebrow { margin-bottom: 14px; }
.page-hero h1 { font-size: clamp(34px, 5vw, 60px); font-weight: 700; max-width: 20ch; margin: 0 auto; }
.page-hero .lead { margin: 16px auto 0; max-width: 700px; font-size: clamp(17px, 1.5vw, 20px); color: var(--ink-2); }
.page-hero .cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }
.page-hero .note { margin-top: 14px; font-size: 13px; color: var(--ink-3); }
.page-hero.tint { background: var(--paper-2); }
.page-hero.dark { background: var(--brand-ink); color: #fff; }
.page-hero.dark .lead { color: rgba(255, 255, 255, 0.8); }
.page-hero.dark .eyebrow { color: #c4b5fd; }
.page-hero.dark .note { color: rgba(255, 255, 255, 0.6); }
.page-hero.left { text-align: left; }
.page-hero.left h1, .page-hero.left .lead { margin-inline: 0; }
.page-hero.left .cta { justify-content: flex-start; }
.page-hero .media { margin: clamp(32px, 5vw, 56px) auto 0; max-width: 1080px; }

/* ---------- layout helpers ---------- */
.narrow { max-width: 820px; margin-inline: auto; }
.mid { max-width: 1000px; margin-inline: auto; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 64px); align-items: center; }
.split > * { min-width: 0; }
.split.reverse > :first-child { order: 2; }
.band { background: var(--paper-2); }
.band.dark { background: var(--brand-ink); color: #fff; }
.band.dark .sec-head p, .band.dark .tile p { color: rgba(255, 255, 255, 0.78); }
.band.dark .tile { background: rgba(255, 255, 255, 0.06); color: #fff; }
.band.dark .tile .ic { background: rgba(255, 255, 255, 0.12); color: #fff; }
.sec-head.left { text-align: left; margin-inline: 0; }
.media { border-radius: var(--radius-lg); overflow: hidden; background: var(--paper-2); }
.media img, .media video { width: 100%; height: auto; display: block; }
.media.shadow { box-shadow: 0 24px 50px rgba(30, 27, 75, 0.16); }
.media.frame { padding: clamp(12px, 2vw, 24px); }
.media.frame img { border-radius: 12px; }
.divider { border: 0; border-top: 1px solid var(--line); margin: clamp(32px, 5vw, 56px) 0; }

/* ---------- tiles (feature / option cards) ---------- */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.tiles.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tiles.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tiles.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tile { background: var(--paper-2); border-radius: var(--radius-lg); padding: 28px 24px; display: flex; flex-direction: column; gap: 8px; color: var(--ink); text-decoration: none; }
.tile.white { background: #fff; border: 1px solid var(--line); }
a.tile { transition: background-color 0.15s, transform 0.15s; }
a.tile:hover { background: var(--paper-3); }
.tile .ic { width: 44px; height: 44px; border-radius: 12px; background: #fff; display: grid; place-items: center; color: var(--brand-deep); margin-bottom: 10px; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05); }
.tile.white .ic { background: var(--paper-2); }
.tile .ic svg { width: 22px; height: 22px; }
.tile h3 { font-size: 19px; font-weight: 700; }
.tile p { font-size: 15px; color: var(--ink-2); }
.tile .go { margin-top: auto; padding-top: 10px; color: var(--brand-deep); font-weight: 600; font-size: 15px; }
.tile small { font-size: 12px; color: var(--ink-3); line-height: 1.4; }
.tile .price { font-size: 32px; font-weight: 800; letter-spacing: -0.03em; }
.tile .price span { font-size: 14px; font-weight: 500; color: var(--ink-3); letter-spacing: 0; }

/* ---------- steps ---------- */
.steps { display: grid; gap: 18px; counter-reset: step; }
.step { display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start; }
.step .n { width: 44px; height: 44px; border-radius: 50%; background: var(--brand-ink); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 16px; }
.step h3 { font-size: 19px; font-weight: 700; margin-bottom: 4px; }
.step p { font-size: 15px; color: var(--ink-2); }
.steps.cols { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.steps.cols .step { grid-template-columns: 1fr; gap: 12px; background: var(--paper-2); border-radius: var(--radius-lg); padding: 24px; }

/* ---------- check list ---------- */
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; color: var(--ink-2); }
.checks li::before { content: "\2713"; flex: none; width: 22px; height: 22px; border-radius: 50%; background: #dcfce7; color: #15803d; font-size: 13px; font-weight: 700; display: grid; place-items: center; margin-top: 2px; }
.checks.cols { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

/* ---------- prose (long-form, legal, articles) ---------- */
.prose { font-size: 17px; line-height: 1.7; color: var(--ink-2); }
.prose h1 { font-size: clamp(30px, 4vw, 44px); color: var(--ink); margin: 0 0 12px; }
.prose h2 { font-size: clamp(24px, 3vw, 32px); color: var(--ink); margin: 44px 0 14px; letter-spacing: -0.02em; }
.prose h3 { font-size: 20px; color: var(--ink); margin: 28px 0 8px; }
.prose h4 { font-size: 17px; color: var(--ink); margin: 20px 0 6px; }
.prose p { margin: 0 0 16px; }
.prose ul, .prose ol { margin: 0 0 16px; padding-left: 24px; }
.prose li { margin-bottom: 6px; }
.prose li::marker { color: var(--brand-deep); }
.prose a { color: var(--brand-deep); }
.prose strong { color: var(--ink); }
.prose blockquote { margin: 20px 0; padding: 14px 20px; border-left: 4px solid var(--brand); background: #eef0fc; border-radius: 0 12px 12px 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 20px; font-size: 15px; }
.prose th, .prose td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { color: var(--ink); font-weight: 600; background: var(--paper-2); }
.prose img { max-width: 100%; border-radius: 12px; }
.prose .meta { font-size: 14px; color: var(--ink-3); margin-bottom: 24px; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 32px 0; }
.callout { border-left: 4px solid var(--brand); background: #eef0fc; padding: 16px 20px; border-radius: 0 12px 12px 0; margin: 20px 0; font-size: 15px; color: var(--ink-2); }
.callout.warn { border-color: #f59e0b; background: #fff7e6; }
.callout.ok { border-color: var(--mint); background: #e6f7f1; }
.callout b, .callout strong { color: var(--ink); }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ---------- legal layout ---------- */
.legal-wrap { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.legal-toc { position: sticky; top: 84px; font-size: 14px; }
.legal-toc h4 { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 10px; }
.legal-toc a { display: block; padding: 6px 0; color: var(--ink-2); text-decoration: none; border-left: 2px solid transparent; padding-left: 10px; margin-left: -12px; }
.legal-toc a:hover, .legal-toc a.active { color: var(--ink); border-left-color: var(--brand); }
.legal-head { padding: clamp(40px, 6vw, 72px) 0 clamp(24px, 4vw, 40px); }
.legal-head h1 { font-size: clamp(30px, 4vw, 46px); font-weight: 700; max-width: 22ch; }
.legal-head .meta { margin-top: 10px; font-size: 14px; color: var(--ink-3); }

/* ---------- forms ---------- */
.form { display: grid; gap: 14px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form label, .form .label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
.form input, .form select, .form textarea,
.input, .select, .textarea { width: 100%; padding: 12px 14px; border: 1.5px solid rgba(21, 19, 31, 0.14); border-radius: 12px; font: inherit; font-size: 15px; color: var(--ink); background: #fff; transition: border-color 0.15s, box-shadow 0.15s; }
.form input:focus, .form select:focus, .form textarea:focus, .input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.18); }
.form textarea { min-height: 120px; resize: vertical; }
.form .hint { font-size: 12px; color: var(--ink-3); margin-top: 6px; }
.form .check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-2); }
.form .check input { width: 18px; height: 18px; margin-top: 2px; flex: none; }
.form .msg { display: none; padding: 12px 14px; border-radius: 12px; font-size: 14px; }
.form .msg.show { display: block; }
.form .msg.ok { background: #dcfce7; color: #166534; }
.form .msg.error { background: #fee2e2; color: #991b1b; }
.form .btn { width: 100%; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-xl); padding: clamp(24px, 3vw, 40px); box-shadow: 0 10px 40px rgba(30, 27, 75, 0.08); }
.form-card h2, .form-card h3 { margin-bottom: 6px; }
.form-card > p { color: var(--ink-2); font-size: 15px; margin-bottom: 20px; }

/* ---------- auth pages ---------- */
.auth-wrap { min-height: calc(100vh - 64px); display: grid; place-items: center; background: var(--paper-2); padding: 40px var(--gutter); }
.auth-card { width: min(460px, 100%); background: #fff; border-radius: var(--radius-xl); padding: clamp(28px, 4vw, 40px) clamp(22px, 3vw, 36px); box-shadow: 0 10px 40px rgba(30, 27, 75, 0.08); }
.auth-card .nav-brand { margin-bottom: 20px; }
.auth-card h1 { font-size: 26px; font-weight: 700; margin-bottom: 6px; }
.auth-card .sub { color: var(--ink-2); font-size: 15px; margin-bottom: 22px; }
.auth-card .alt { text-align: center; font-size: 14px; color: var(--ink-2); margin-top: 18px; }
.auth-card .alt a { color: var(--brand-deep); font-weight: 600; text-decoration: none; }
.auth-divider { display: flex; align-items: center; gap: 12px; color: var(--ink-3); font-size: 13px; margin: 18px 0; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.otp-row { display: flex; gap: 8px; justify-content: center; }
.otp-row input { width: 48px; text-align: center; font-size: 22px; font-weight: 700; padding: 12px 0; }

/* ---------- misc ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: var(--pill); font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; background: #eef0fc; color: var(--brand-deep); }
.badge.mint { background: #dcfce7; color: #15803d; }
.badge.warm { background: #fff1e0; color: #b45309; }
.badge.dark { background: var(--brand-ink); color: #fff; }
.lang-toggle { display: inline-flex; border: 1.5px solid rgba(21, 19, 31, 0.14); border-radius: var(--pill); overflow: hidden; }
.lang-toggle button { border: 0; background: transparent; padding: 8px 14px; font: inherit; font-size: 14px; font-weight: 600; color: var(--ink-2); cursor: pointer; }
.lang-toggle button.on { background: var(--ink); color: #fff; }
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.video-card { display: block; border-radius: var(--radius-lg); overflow: hidden; background: var(--paper-2); text-decoration: none; color: var(--ink); }
.video-card .thumb { position: relative; aspect-ratio: 16 / 9; background: var(--paper-3); }
.video-card .thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.video-card .thumb::after { content: ""; position: absolute; left: 50%; top: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 50%; background: rgba(255, 255, 255, 0.92) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%231e1b4b'><path d='M8 5v14l11-7z'/></svg>") center / 22px no-repeat; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2); }
.video-card .body { padding: 14px 16px 18px; }
.video-card h3 { font-size: 16px; font-weight: 600; }
.video-card p { font-size: 13px; color: var(--ink-3); margin-top: 4px; }
.stat-row { display: flex; justify-content: center; gap: clamp(24px, 6vw, 80px); flex-wrap: wrap; text-align: center; }
.stat-row b { display: block; font-size: clamp(30px, 3.6vw, 42px); font-weight: 800; letter-spacing: -0.03em; color: var(--brand-ink); }
.stat-row span { font-size: 14px; color: var(--ink-3); }
.logo-row { display: flex; flex-wrap: wrap; gap: 20px 36px; justify-content: center; align-items: center; }
.logo-row img { height: 44px; width: auto; opacity: 0.9; }
.state { text-align: center; padding: clamp(48px, 8vw, 96px) var(--gutter); }
.state .ic { width: 72px; height: 72px; border-radius: 50%; background: #dcfce7; color: #15803d; display: grid; place-items: center; margin: 0 auto 18px; }
.state .ic svg { width: 32px; height: 32px; }
.state h1, .state h2 { font-size: clamp(26px, 3.4vw, 40px); }
.state p { margin-top: 10px; color: var(--ink-2); max-width: 520px; margin-inline: auto; }

/* ---------- CASP strip (kept on every public page) ---------- */
.casp-strip { background: var(--paper-2); border-top: 1px solid var(--line); padding: 28px 0; }
.casp-strip .in { display: flex; align-items: center; gap: 18px; max-width: 860px; margin: 0 auto; }
.casp-strip img { width: 64px; height: auto; border-radius: 8px; flex: none; }
.casp-strip strong { display: block; font-size: 15px; margin-bottom: 4px; }
.casp-strip p { margin: 0; font-size: 12px; line-height: 1.6; color: var(--ink-3); }
.casp-strip a { color: var(--brand-deep); }

/* ---------- responsive ---------- */
@media (max-width: 1080px) { .tiles.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split.reverse > :first-child { order: 0; }
  .tiles.cols-2, .tiles.cols-3 { grid-template-columns: 1fr; }
  .legal-wrap { grid-template-columns: 1fr; }
  .legal-toc { position: static; display: flex; flex-wrap: wrap; gap: 4px 14px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
  .legal-toc h4 { width: 100%; }
  .legal-toc a { border: 0; margin: 0; padding: 4px 0; }
  .form .row { grid-template-columns: 1fr; }
  .casp-strip .in { flex-direction: column; text-align: center; }
}
@media (max-width: 560px) { .tiles.cols-4 { grid-template-columns: 1fr; } .page-hero .cta .btn { width: 100%; } }
