/* ============================================================
   Agent Rails — shared design system for SEO content pages.
   Light & airy, brand blue. Mirrors the main landing tokens.
   ============================================================ */
:root {
  --blue: #1d4ed8; --blue-600: #2563eb; --blue-500: #3b82f6;
  --blue-50: #eff6ff; --blue-100: #dbeafe; --blue-200: #c3d6fb;
  --ink: #0f172a; --body: #475569; --muted: #94a3b8;
  --line: #e7ebf3; --line-2: #eef2f8;
  --bg: #ffffff; --surface: #f7f9fc;
  --radius: 18px; --radius-sm: 13px; --radius-lg: 26px;
  --shadow-xs: 0 1px 2px rgba(15,23,42,.05);
  --shadow-sm: 0 2px 4px rgba(15,23,42,.04), 0 4px 12px -6px rgba(15,23,42,.08);
  --shadow: 0 8px 24px -10px rgba(15,23,42,.14);
  --shadow-lg: 0 24px 50px -20px rgba(20,40,90,.22);
  --shadow-blue: 0 12px 28px -10px rgba(29,78,216,.42);
  --grad-blue: linear-gradient(125deg, #2563eb 0%, #1d4ed8 60%, #3b82f6 100%);
  --maxw: 1080px;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, monospace;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--sans); color: var(--ink); background: var(--bg); line-height: 1.65; font-size: 17px; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* nav */
.nav { position: sticky; top: 0; z-index: 80; background: rgba(255,255,255,.85); backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand img { height: 28px; width: auto; display: block; }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-login { font-size: 15px; font-weight: 700; color: var(--ink); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; font-weight: 700; font-size: 15.5px; letter-spacing: -.01em; padding: 12px 22px; border-radius: 12px; border: 1px solid transparent; transition: transform .16s, box-shadow .25s, filter .2s, border-color .2s; white-space: nowrap; }
.btn svg { width: 18px; height: 18px; }
.btn-primary { color: #fff; background: var(--grad-blue); box-shadow: var(--shadow-blue), inset 0 1px 0 rgba(255,255,255,.25); }
.btn-primary:hover { transform: translateY(-2px); filter: brightness(1.06); }
.btn-ghost { color: var(--ink); background: #fff; border-color: var(--line); box-shadow: var(--shadow-xs); }
.btn-ghost:hover { transform: translateY(-2px); border-color: #cdd8ec; }
.btn-light { color: var(--blue); background: #fff; }
.btn-light:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -14px rgba(0,0,0,.35); }
.btn-lg { padding: 14px 26px; font-size: 16.5px; }

/* breadcrumbs */
.crumbs { font-size: 13.5px; color: var(--muted); padding: 18px 0 0; }
.crumbs a:hover { color: var(--blue); }
.crumbs span { margin: 0 7px; opacity: .6; }

/* hero */
.phero { position: relative; overflow: hidden; padding: 40px 0 52px;
  background: radial-gradient(60% 60% at 85% 0%, var(--blue-50), transparent 62%), linear-gradient(180deg, #fbfcfe, #fff); }
.phero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--line); opacity: .6; }
.eyebrow { font-family: var(--mono); font-size: 12.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); display: inline-flex; align-items: center; gap: 8px; }
.eyebrow::before { content: ""; width: 18px; height: 1px; background: var(--blue); opacity: .5; }
h1 { font-size: clamp(30px, 4.4vw, 46px); line-height: 1.1; letter-spacing: -.022em; font-weight: 800; margin: 14px 0 16px; max-width: 18ch; }
.phero .lead { color: var(--body); font-size: clamp(16px, 1.9vw, 20px); max-width: 620px; }
.grad-text { background: linear-gradient(100deg, #2563eb, #3b82f6 55%, #60a5fa); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 13px; margin: 26px 0 18px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 7px 20px; color: var(--muted); font-size: 14px; }
.hero-trust span { display: inline-flex; align-items: center; gap: 7px; }
.hero-trust svg { width: 16px; height: 16px; color: #16a34a; flex: none; }

/* generic sections */
.section { padding: clamp(46px, 6vw, 72px) 0; }
.section--surface { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
h2 { font-size: clamp(25px, 3vw, 34px); line-height: 1.15; letter-spacing: -.02em; font-weight: 800; }
h3 { font-size: 18.5px; letter-spacing: -.01em; font-weight: 800; }
.section > .wrap > h2 { margin-bottom: 8px; }
.section-sub { color: var(--body); font-size: 17px; max-width: 680px; margin-bottom: 30px; }

/* prose */
.prose p { color: var(--body); margin: 0 0 16px; max-width: 720px; }
.prose h2 { margin: 8px 0 14px; }
.prose h3 { margin: 26px 0 8px; }
.prose ul.ticks { display: grid; gap: 10px; margin: 4px 0 18px; max-width: 720px; }
.prose ul.ticks li { display: flex; gap: 11px; color: var(--body); align-items: flex-start; }
.prose ul.ticks li svg { width: 20px; height: 20px; color: var(--blue); flex: none; margin-top: 2px; }

/* feature/benefit cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.card { padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-xs); transition: transform .2s, box-shadow .25s, border-color .2s, background .25s; }
.card:hover { transform: translateY(-4px); border-color: var(--blue-200); background: linear-gradient(180deg,#fff,var(--blue-50)); box-shadow: 0 14px 30px -14px rgba(29,78,216,.3); }
.ic-tile { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--blue-50); border: 1px solid var(--blue-100); }
.ic-tile svg { width: 22px; height: 22px; color: var(--blue); }
.card:hover .ic-tile { background: var(--grad-blue); border-color: transparent; }
.card:hover .ic-tile svg { color: #fff; }
.card h3 { margin: 13px 0 6px; font-size: 16.5px; }
.card p { color: var(--body); font-size: 14.5px; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: s; }
.step { padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-xs); }
.step::before { counter-increment: s; content: "0" counter(s); font-family: var(--mono); font-weight: 700; font-size: 13px; color: var(--blue); }
.step h3 { margin: 10px 0 6px; font-size: 16.5px; } .step p { color: var(--body); font-size: 14.5px; }

/* comparison table */
.tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-xs); }
table.cmp { width: 100%; border-collapse: collapse; background: #fff; min-width: 560px; }
table.cmp th, table.cmp td { text-align: left; padding: 15px 18px; border-bottom: 1px solid var(--line-2); font-size: 14.5px; }
table.cmp thead th { font-size: 13px; font-family: var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--muted); background: var(--surface); }
table.cmp td:first-child { font-weight: 700; color: var(--ink); }
table.cmp .ar { color: var(--blue); font-weight: 700; }
table.cmp tr:last-child td { border-bottom: 0; }

/* faq */
.faq { max-width: 800px; display: flex; flex-direction: column; gap: 11px; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; overflow: hidden; }
.faq-item.open { border-color: #cdd8ec; box-shadow: var(--shadow-xs); }
.faq-q { width: 100%; text-align: left; background: none; border: 0; padding: 19px 22px; font-size: 16px; font-weight: 700; color: var(--ink); display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq-q svg { width: 22px; height: 22px; color: var(--muted); flex: none; transition: transform .25s; }
.faq-item.open .faq-q svg { transform: rotate(45deg); color: var(--blue); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a p { padding: 0 22px 20px; color: var(--body); font-size: 15px; }

/* internal links */
.links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.linkcard { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow-xs); font-weight: 700; font-size: 15px; color: var(--ink); transition: transform .2s, border-color .2s, box-shadow .2s; }
.linkcard:hover { transform: translateY(-3px); border-color: var(--blue-200); box-shadow: var(--shadow-sm); color: var(--blue); }
.linkcard svg { width: 18px; height: 18px; color: var(--blue); flex: none; }

/* cta band */
.cta { position: relative; overflow: hidden; color: #fff; border-radius: var(--radius-lg); padding: 56px 40px; text-align: center;
  background: radial-gradient(130% 150% at 0% 0%, #3a74ff 0%, transparent 46%), radial-gradient(120% 150% at 100% 100%, #6aa0ff 0%, transparent 44%), linear-gradient(135deg, #16319a 0%, #1d4ed8 52%, #2563eb 100%);
  box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(255,255,255,.14); }
.cta::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.18) 1px, transparent 1.5px); background-size: 22px 22px; opacity: .5; -webkit-mask-image: radial-gradient(85% 80% at 50% 28%, #000, transparent 78%); mask-image: radial-gradient(85% 80% at 50% 28%, #000, transparent 78%); }
.cta > * { position: relative; z-index: 1; }
.cta h2 { color: #fff; }
.cta p { color: rgba(255,255,255,.92); max-width: 540px; margin: 12px auto 24px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 13px; justify-content: center; }

/* footer */
footer { background: var(--surface); border-top: 1px solid var(--line); padding: 44px 0 26px; margin-top: 8px; }
.foot-top { display: flex; flex-wrap: wrap; gap: 18px; justify-content: space-between; align-items: center; margin-bottom: 26px; }
.foot-top img { height: 26px; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot-nav a { color: var(--body); font-size: 15px; }
.foot-nav a:hover { color: var(--blue); }
.foot-bottom { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding-top: 22px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--muted); }

@media (max-width: 860px) {
  .cards, .steps, .links { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .wrap { padding: 0 18px; }
  .cards, .steps, .links { grid-template-columns: 1fr; }
  .hero-cta .btn { flex: 1 1 100%; }
  .cta { padding: 40px 22px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
