/* =====================================================================
   Paytools — AI-assisted payroll page
   Shared tokens + fonts come from home.css; this file is page-specific.
   Section-based page (no storyboard carousel) — mirrors the tone of
   payroll-processing.css / governance.css without the beat spine.
   ===================================================================== */

@import url("https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,400..800&family=Hanken+Grotesk:wght@400;500;600;700&display=swap");

:root {
  --accent: #5A45DE;
  --lav: #CEC2EF;
  --paper: #F1E8E2;
  --paper-alt: #FCFAF8;
  --ink: #1A1613;
  --ink-2: #2A2420;
  --ink-soft: #5A514A;
  --ink-mute: #8A8078;
  --border: #E6DBD2;
  --border-card: #ECE2DA;
  --green: #3E9A6D;
  --red: #B4452F;
}

* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Aeonik', 'General Sans', 'Hanken Grotesk', -apple-system, sans-serif;
  font-size: 18.4px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font-family: 'Aeonik', 'General Sans', 'Hanken Grotesk', sans-serif; cursor: pointer; }

/* ============ NAVBAR ============ shared, see nav.css */

/* ============ HERO ============ */
.ai-hero { padding:clamp(48px,6vw,88px) 0 clamp(40px,5vw,72px); }
/* structure comes from .pt-split in layout.css */
.ai-hero-inner { grid-template-columns:1.05fr 1fr; gap:clamp(28px,4vw,56px); }
.ai-hero-eyebrow { display:inline-flex; align-items:center; gap:9px; font-size:16px; font-weight:700; letter-spacing:.14em; text-transform:uppercase; color:var(--accent); margin-bottom:22px; }
.ai-hero-h1 { font-family:'Bricolage Grotesque',sans-serif; font-weight:700; font-size:clamp(32.4px,4.4vw,54.4px); line-height:1.08; letter-spacing:-.025em; margin:0; }
.ai-hero-sub { font-size:clamp(15.39px,1.81vw,18.43px); line-height:1.55; color:var(--ink-soft); margin:24px 0 0; max-width:52ch; }
.ai-hero-btns { display:flex; flex-wrap:wrap; gap:14px; margin-top:34px; }
.ai-btn-primary { font-size:16.2px; font-weight:500; color:var(--paper); background:var(--accent); border:none; padding:15px 28px; border-radius:999px; transition:transform .18s,background-color .18s; display:inline-flex; align-items:center; text-decoration:none; }
.ai-btn-primary:hover { background:#4A37C8; transform:translateY(-2px); }
.ai-btn-ghost { font-size:16.2px; font-weight:500; color:var(--ink); background:transparent; border:1.5px solid #C9BBB0; padding:15px 28px; border-radius:999px; transition:transform .18s; display:inline-flex; align-items:center; text-decoration:none; }
.ai-btn-ghost:hover { transform:translateY(-2px); }
/* Hero mock is fully self-contained in lib/mocks/ai/HeroMock.jsx */

/* ============ CONTENT SECTIONS ============ */
.ai-section { padding:clamp(56px,7vw,96px) 0; background:var(--paper-alt); }
.ai-h2 { font-family:'Bricolage Grotesque',sans-serif; font-weight:700; font-size:clamp(28.1px,3.6vw,42.6px); line-height:1.08; letter-spacing:-.02em; margin:0 0 20px; }
.ai-body { font-size:18px; line-height:1.65; color:var(--ink-soft); margin:0 0 16px; max-width:66ch; }
.ai-body:last-child { margin-bottom:0; }

/* ============ AVAILABLE NOW — items grid ============ */
.ai-items-inner { max-width:1180px; margin:0 auto; padding:0 clamp(20px,5vw,48px); }
.ai-items-intro { max-width:760px; margin-bottom:clamp(36px,4.5vw,52px); }
/* Numbered spine, matching the storyboards on the other platform pages. */
.ai-uc-list { display:grid; grid-template-columns:56px 1fr; gap:clamp(16px,2.6vw,32px); max-width:85%; }
.ai-uc-list > * { min-width: 0; }
.ai-uc-spine { display:flex; flex-direction:column; align-items:center; }
.ai-uc-num { flex:none; width:46px; height:46px; border-radius:50%; background:var(--accent); color:var(--paper); display:flex; align-items:center; justify-content:center; font-family:'Bricolage Grotesque',sans-serif; font-weight:700; font-size:18.4px; letter-spacing:-.01em; box-shadow:0 12px 24px -14px var(--accent); }
.ai-uc-line { flex:1; width:2px; background:var(--border); margin-top:6px; }
.ai-uc { padding-bottom:clamp(44px,5.5vw,76px); }
.ai-uc:last-of-type { padding-bottom:0; }
.ai-uc-h3 {
  font-family:'Bricolage Grotesque',sans-serif; font-weight:700;
  font-size:clamp(21.6px,2.3vw,28.1px); line-height:1.16; letter-spacing:-.02em;
  color:var(--ink); margin:0 0 12px;
}
.ai-uc-body { font-size:17.3px; line-height:1.6; color:var(--ink-soft); margin:0; }
/* Copy keeps the 85% measure; the images break out to the inner edge. At the
   column width their fine print drops under 9px and stops being readable. */
.ai-uc-graphic { margin-top:clamp(20px,2.4vw,30px); width:119.5%; }
.ai-uc-graphic svg { display:block; width:100%; height:auto; }
@media (max-width:820px) {
  .ai-uc-list { max-width:100%; grid-template-columns:38px 1fr; }
  /* Shrinking these to the column puts their type at ~2.6px. Hold the
     drawing at its own size and let the reader pan across it instead. */
  /* Snap-centre so the panel opens on the drawing rather than on the empty
     margin the canvas carries either side of it. */
  .ai-uc-graphic { width:100%; overflow-x:auto; -webkit-overflow-scrolling:touch; scroll-snap-type:x proximity; }
  .ai-uc-graphic svg { width:1280px; max-width:none; scroll-snap-align:center; }
}

/* ============ FINAL CTA ============ */
.ai-final { background:#15120F; color:#F1E8E2; padding:clamp(48px,5.5vw,80px) 0; position:relative; overflow:hidden; }
.ai-final-glow { position:absolute; left:-100px; bottom:-140px; width:420px; height:420px; border-radius:50%; background:radial-gradient(circle,rgba(90,69,222,.22),transparent 70%); pointer-events:none; }
.ai-final-inner { max-width:900px; margin:0 auto; padding:0 clamp(20px,5vw,48px); text-align:center; position:relative; }
.ai-final-h2 { font-family:'Bricolage Grotesque',sans-serif; font-weight:700; font-size:clamp(30.78px,4.09vw,53.39px); line-height:1.04; letter-spacing:-.025em; margin:0 0 18px; }
.ai-final-sub { font-size:clamp(17.3px,2.1vw,21.6px); line-height:1.55; color:#C7BEB6; margin:0 auto 34px; max-width:48ch; }
.ai-final-actions { display:flex; flex-direction:column; gap:18px; justify-content:center; align-items:center; }
.ai-btn-final { font-size:16.7px; font-weight:500; color:#F1E8E2; background:var(--accent); border:none; padding:16px 32px; border-radius:999px; transition:transform .18s,background .18s; display:inline-flex; align-items:center; text-decoration:none; }
.ai-btn-final:hover { background:#4A37C8; transform:translateY(-2px); }
.ai-talk-team { font-size:16.2px; font-weight:600; color:#C7BEB6; text-decoration:none; transition:color .18s; }
.ai-talk-team:hover { color:#B6A9F5; }

/* ============ REST OF THE PLATFORM ============ */
.ai-other { background:var(--paper); padding:clamp(64px,8vw,104px) 0; }
.ai-other-inner { max-width:1180px; margin:0 auto; padding:0 clamp(20px,5vw,48px); }
.ai-other-hdr { margin-bottom:clamp(32px,4vw,48px); }
.ai-other-h2 { font-family:'Bricolage Grotesque',sans-serif; font-weight:700; font-size:clamp(28.1px,3.7vw,45.4px); line-height:1.05; letter-spacing:-.02em; margin:0; }
.ai-other-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:clamp(18px,2.4vw,28px); }
.ai-other-card { display:flex; flex-direction:column; text-decoration:none; background:var(--paper-alt); border:1px solid var(--border); border-radius:22px; padding:clamp(28px,3vw,40px); transition:transform .2s,box-shadow .2s,border-color .2s; }
a.ai-other-card:hover { transform:translateY(-3px); box-shadow:0 30px 60px -42px rgba(26,22,19,.45); border-color:#D8CCC2; }
.ai-other-card-h3 { font-family:'Bricolage Grotesque',sans-serif; font-weight:700; font-size:clamp(23.8px,2.6vw,30.2px); line-height:1.1; letter-spacing:-.02em; margin:0 0 14px; color:var(--ink); }
.ai-other-card-p { font-size:17.3px; line-height:1.6; color:var(--ink-soft); margin:0; }
.ai-other-link { display:inline-flex; align-items:center; gap:8px; margin-top:24px; font-size:16.2px; font-weight:600; color:var(--accent); }

/* ============ FOOTER (same as home) ============ */
.pt-footer { background:#15120F; color:#C7BEB6; padding:clamp(48px,6vw,80px) 0 0; }
.pt-footer-inner { max-width:1180px; margin:0 auto; padding:0 clamp(20px,5vw,48px); display:grid; grid-template-columns:1.4fr repeat(3,1fr); gap:clamp(24px,3vw,48px); }
.pt-footer-tagline { font-size:15.1px; line-height:1.6; color:#8A8078; margin:16px 0 8px; max-width:28ch; }
.pt-footer-col-h { font-size:13px; font-weight:700; letter-spacing:.1em; text-transform:uppercase; color:#A89E95; margin-bottom:16px; }
.pt-footer-col ul { list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:10px; }
.pt-footer-col ul li a { font-size:15.1px; color:#8A8078; transition:color .15s; }
.pt-footer-col ul li a:hover { color:#C7BEB6; }
.pt-footer-bottom { max-width:1180px; margin:0 auto; padding:24px clamp(20px,5vw,48px); display:flex; align-items:center; justify-content:space-between; border-top:1px solid #2A2420; margin-top:clamp(40px,5vw,64px); font-size:14px; color:#8A8078; }
.pt-footer-bottom a { color:#8A8078; }
.pt-footer-bottom a:hover { color:#C7BEB6; }
.pt-footer-socials { display:flex; gap:10px; margin-top:20px; }
.pt-social-badge { display:flex; align-items:center; justify-content:center; width:34px; height:34px; border-radius:8px; background:#2A2420; color:#8A8078; transition:background .15s,color .15s; }
.pt-social-badge:hover { background:#3A3430; color:#C7BEB6; }

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .ai-hero-inner { grid-template-columns: 1fr; }
  .ai-other-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .ai-other-grid { grid-template-columns: 1fr; }
  .pt-footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .pt-footer-inner { grid-template-columns: 1fr; }
}
