/* ===========================================================
   VerityRadar - marketing page chrome shared by landing.html and
   enterprise.html. Tokens come from theme.css; nothing here defines
   a raw colour or a font family of its own.

   Extracted from landing.html's inline <style> when the Enterprise and
   API sections moved onto their own page, so the two cannot drift.
   =========================================================== */

/* Tokens + base styles live in /_shared/theme.css. */

/* --- Layout --- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
section { padding: 100px 0; }
.g2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.g3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.g4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.alt-bg { background: var(--bg-alt); }

/* --- Typography --- */
h1 { margin: 0 0 20px; font-size: clamp(40px, 5.8vw, 64px); line-height: 1.05; letter-spacing: -0.035em; font-weight: 800; color: var(--heading); }
h2 { margin: 0 0 16px; font-size: clamp(28px, 3.6vw, 42px); line-height: 1.12; letter-spacing: -0.025em; font-weight: 700; color: var(--heading); }
h3 { margin: 0 0 10px; font-size: 18px; font-weight: 600; color: var(--heading); line-height: 1.35; }
p  { margin: 0 0 16px; }
p:last-child { margin-bottom: 0; }
a  { color: var(--accent); }
a:hover { color: var(--accent-hov); }
strong { color: var(--text-1); font-weight: 700; }

.stag  { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.intro { font-size: 17px; color: var(--body); max-width: 640px; margin-bottom: 40px; line-height: 1.75; }
.micro { font-size: 13px; color: var(--muted); }
.hl    { color: var(--lime); }
.hl-d  { color: var(--lime-dim); }

/* --- Buttons (WiseTech-style: square corners, but the primary CTA carries
       a brand-tinted gradient + soft glow so it pulls focus as the main
       product apply action. Secondary stays flat-quiet.) --- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border-radius: var(--vr-btn-radius); padding: 14px 32px; font-size: 15px; font-weight: 500; letter-spacing: -0.15px; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background var(--vr-dur) var(--vr-ease), border-color var(--vr-dur) var(--vr-ease), color var(--vr-dur) var(--vr-ease), box-shadow 220ms var(--vr-ease), transform 220ms var(--vr-ease); white-space: nowrap; line-height: 1; position: relative; }

.btn-lg { padding: 20px 50px; font-size: 16px; font-weight: 700; }

/* Primary CTA — gradient body + faint inner top highlight + soft glow.
   On light surfaces uses signal-blue; on dark hero/footer cyan takes over
   via .panel-deep override below. */
.btn-p {
  color: var(--vr-btn-fg);
  font-weight: 600;
  background: linear-gradient(180deg, var(--vr-brand-primary-h) 0%, var(--vr-brand-primary) 55%, var(--vr-brand-primary-a) 100%);
  border-color: var(--vr-brand-primary-a);
  box-shadow:
    0 1px 0 rgba(255,255,255,.28) inset,
    0 0 0 1px rgba(255,255,255,.06) inset,
    0 8px 24px -10px rgba(30,127,212,.65),
    0 2px 6px rgba(14,41,66,.18);
}
.btn-p:hover {
  background: linear-gradient(180deg, var(--vr-brand-primary-ll) 0%, var(--vr-brand-primary-h) 55%, var(--vr-brand-primary) 100%);
  border-color: var(--vr-brand-primary);
  box-shadow:
    0 1px 0 rgba(255,255,255,.34) inset,
    0 0 0 1px rgba(255,255,255,.08) inset,
    0 14px 32px -10px rgba(30,127,212,.78),
    0 3px 8px rgba(14,41,66,.22);
  transform: translateY(-1px);
}
.btn-p:active { transform: translateY(0); }
.btn-p:focus-visible { outline: 3px solid rgba(255,255,255,.55); outline-offset: 2px; }

/* The primary CTA gets a trailing arrow that slides on hover — a small
   affordance signalling "this is the action". Auto-injected via ::after,
   and only on .btn-p so secondaries stay clean. */
.btn-p::after {
  content: "\2192"; /* → */
  display: inline-block;
  font-size: 1.05em;
  line-height: 0;
  transform: translateX(0);
  transition: transform 220ms var(--vr-ease);
}
.btn-p:hover::after { transform: translateX(4px); }

.btn-g, .btn-gd { background: transparent; color: var(--accent); border-color: var(--accent); }
.btn-g:hover, .btn-gd:hover { background: var(--accent); color: var(--vr-btn-fg); }

/* On dark panels: primary CTA pivots to cyan gradient (higher contrast on
   indigo) and the secondary inverts to white-on-clear. */
.panel-deep .btn-p, #hero .btn-p, #final-cta .btn-p {
  color: var(--vr-brand-deep);
  background: linear-gradient(180deg, var(--vr-brand-cyan-lo) 0%, var(--vr-brand-cyan) 55%, var(--vr-brand-cyan-dk) 100%);
  border-color: rgba(255,255,255,.35);
  box-shadow:
    0 1px 0 rgba(255,255,255,.55) inset,
    0 0 0 1px rgba(255,255,255,.10) inset,
    0 10px 30px -8px rgba(95,204,230,.55),
    0 2px 8px rgba(0,0,0,.22);
}
.panel-deep .btn-p:hover, #hero .btn-p:hover, #final-cta .btn-p:hover {
  background: linear-gradient(180deg, var(--vr-brand-cyan-pale) 0%, var(--vr-brand-cyan-mid) 55%, var(--vr-brand-cyan) 100%);
  border-color: rgba(255,255,255,.5);
  box-shadow:
    0 1px 0 rgba(255,255,255,.65) inset,
    0 0 0 1px rgba(255,255,255,.14) inset,
    0 16px 40px -8px rgba(95,204,230,.75),
    0 3px 10px rgba(0,0,0,.28);
}
.panel-deep .btn-g, .panel-deep .btn-gd, #hero .btn-g, #hero .btn-gd { color: var(--vr-btn-fg); border-color: rgba(255,255,255,.55); }
.panel-deep .btn-g:hover, .panel-deep .btn-gd:hover, #hero .btn-g:hover, #hero .btn-gd:hover { background: var(--vr-btn-fg); color: var(--vr-brand-deep); border-color: var(--vr-btn-fg); }

/* Two CTAs share a row on tablet+; the mobile rule below stacks them
   full-width on phones (≤640px). nowrap on desktop prevents the
   gradient primary from dropping under the ghost secondary when both
   are .btn-lg. */
.cta-row { display: flex; gap: 14px; flex-wrap: nowrap; align-items: center; margin-top: 28px; }
.cta-row .btn { flex: 0 1 auto; }
.cta-row .btn-lg { padding: 18px 32px; font-size: 15px; }
/* --- Cards (generic surface) --- */
.card,
.pc,
.tcard,
.hub-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  /* Clip the thumb's negative margins so the illustration block reaches
     the card edge cleanly on mobile (was leaving awkward whitespace). */
  overflow: hidden;
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.card:hover,
.hub-card:hover {
  background: var(--surface-hov);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

/* --- Flow: visual screening pipeline (icons + arrows between stages) --- */
.flow-sub { margin-top: 48px; }
.flow-sub h3 { font-size: 22px; margin: 0 0 6px; color: var(--text-1); text-align: center; }
.flow-sub .flow-lede { font-size: 14px; color: var(--text-3); text-align: center; max-width: 640px; margin: 0 auto 28px; }
.flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr; align-items: stretch; gap: 0; }
.flow-step { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 28px 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); position: relative; }
.flow-step .flow-icon { display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); margin-bottom: 14px; }
.flow-step .flow-icon svg { width: 30px; height: 30px; }
.flow-step .flow-num { position: absolute; top: 12px; left: 12px; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; color: var(--text-3); }
.flow-step h4 { font-size: 15px; margin: 0 0 6px; color: var(--text-1); }
.flow-step p { font-size: 13px; color: var(--body); margin: 0; line-height: 1.55; }
.flow-arrow { display: flex; align-items: center; justify-content: center; color: var(--accent); padding: 0 6px; }
.flow-arrow svg { width: 24px; height: 24px; flex: none; }
@media (max-width: 900px) {
  .flow { grid-template-columns: 1fr; gap: 12px; }
  .flow-arrow { transform: rotate(90deg); padding: 4px 0; }
}
.code-wrap   { background: var(--surface-strong); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; margin-top: 20px; overflow-x: auto; }
.code-wrap pre { margin: 0; padding: 0; background: none; border: none; color: var(--text-3); font-family: var(--vr-font-mono); font-size: 13px; line-height: 1.65; white-space: pre; }
.code-intro  { font-size: 14px; color: var(--muted); margin-bottom: 4px; }
.api-links   { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 16px; }
.api-links a { font-size: 13px; color: var(--accent-hov); text-decoration: none; font-weight: 600; }
.api-links a:hover { color: var(--text-1); }
.api-table   { width: 100%; border-collapse: collapse; }
.api-table th, .api-table td { text-align: left; padding: 14px 16px; font-size: 13px; border-bottom: 1px solid var(--border-soft); }
.api-table th { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; background: var(--surface); }
.api-table td { color: var(--body); }
.api-table tr:last-child td { border-bottom: none; }
.api-table-wrap { border: 1px solid var(--border); border-radius: var(--radius); overflow-x: auto; -webkit-overflow-scrolling: touch; margin-top: 28px; }
.api-table { min-width: 560px; }

/* Footer styles live in /_shared/footer.css — injected below by footer.js. */

/* Tap-friendly buttons. `touch-action: manipulation` removes the iOS
   350ms double-tap-zoom delay. Hover effects gated on (hover: hover)
   so they don't stick after a tap on touch devices. */
.btn, .btn-nav, button { touch-action: manipulation; }
@media (hover: none) {
  .btn:hover, .btn-nav:hover, .btn-primary:hover { transform: none; box-shadow: none; }
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .g3, .g4 { grid-template-columns: 1fr 1fr; }
  .g2 { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  section { padding: 64px 0; }
  .g3, .g4 { grid-template-columns: 1fr; }
  .cta-row { flex-wrap: wrap; }
  .cta-row .btn { width: 100%; text-align: center; justify-content: center; }
  .wrap { padding: 0 16px; }
  /* Allow code samples to wrap rather than horizontal-scroll on phones. */
  .code-wrap pre { white-space: pre-wrap; word-break: break-word; }
}
