/* ==========================================================================
   site-unify.css — Shared visual layer for legacy Webflow pages.

   Goal: make pages that still use the original Webflow markup
   (platform-overview, company, etc.) feel like the redesigned homepage
   without rewriting their HTML.

   Loaded AFTER css/automatum-4c6d68.webflow.css so cascade wins.
   Mirrors the tokens defined in css/homepage.css.
   ========================================================================== */

:root {
  --u-bg: #FBF9F4;
  --u-bg-2: #FFFFFF;
  --u-ink: #121B48;
  --u-ink-soft: rgba(18, 27, 72, 0.78);
  --u-ink-mute: rgba(18, 27, 72, 0.58);
  --u-line: rgba(18, 27, 72, 0.08);
  --u-line-2: rgba(18, 27, 72, 0.14);
  --u-blue: #3D4BCA;
  --u-blue-2: #2F3CB5;
  --u-shadow-sm: 0 1px 2px rgba(18, 27, 72, 0.04), 0 6px 18px rgba(18, 27, 72, 0.05);
  --u-shadow-md: 0 6px 18px rgba(61, 75, 202, 0.25);
}

/* ===== BASE ===== */

html, body {
  background: var(--u-bg);
}

body.body,
.body {
  color: var(--u-ink);
  font-family: 'Inter', -apple-system, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

/* ===== TYPOGRAPHY — headings ===== */

.h-1 {
  color: var(--u-ink);
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.02;
  font-size: clamp(40px, 4.6vw, 64px);
}

.h-2 {
  color: var(--u-ink);
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.06;
  font-size: clamp(32px, 3.4vw, 48px);
}

/* Smaller utility headings used across the legacy pages */
.text-block-21,
.heading,
.heading-4,
.heading-5 {
  color: var(--u-ink);
  font-family: 'Inter', sans-serif;
  letter-spacing: -0.01em;
}

/* ===== TYPOGRAPHY — body copy ===== */

.text-block,
.text-block._2,
.text-block._3,
.text-block.left,
.text-block.left._16px,
.text-block._56px,
.paragraph,
.text-block-10,
.text-block-11,
.text-block-12,
.text-block-16,
.text-block-17,
.text-block-18,
.text-block-19,
.text-block-34,
.text-block-35,
.text-block-36,
.text-block-37 {
  color: var(--u-ink-soft);
  font-family: 'Inter', sans-serif;
  line-height: 1.55;
}

/* ===== BUTTONS ===== */

.demo-btn {
  height: auto;
  padding: 14px 22px;
  border-radius: 10px;
  background-color: var(--u-blue);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  box-shadow: var(--u-shadow-md);
  transition: transform .15s ease, background .2s ease;
}

.demo-btn:hover {
  background-color: var(--u-blue-2);
  transform: translateY(-1px);
}

.demo-btn.trans {
  background-color: #fff;
  color: var(--u-ink);
  border: 1px solid var(--u-line-2);
  -webkit-text-stroke-width: 0;
  box-shadow: none;
}

.demo-btn.trans:hover {
  background-color: #fff;
  border-color: var(--u-ink-mute);
}

.white-btn {
  height: auto;
  padding: 14px 22px;
  border-radius: 10px;
  background-color: #fff;
  color: var(--u-ink);
  border: 1px solid var(--u-line-2);
  font-weight: 600;
  font-size: 15px;
  transition: transform .15s ease, background .2s ease, border-color .2s ease;
}

.white-btn:hover {
  transform: translateY(-1px);
  border-color: var(--u-ink-mute);
}

.white-btn.blue {
  background-color: var(--u-blue);
  color: #fff;
  border-color: transparent;
  box-shadow: var(--u-shadow-md);
}

.white-btn.blue:hover {
  background-color: var(--u-blue-2);
}

/* "Read more" inline link arrow */
.link-block {
  color: var(--u-blue);
  font-weight: 600;
}

.link-block .text-block-10 {
  color: var(--u-blue);
}

/* ===== CARDS (feature loop) ===== */

.loop-box {
  background: var(--u-bg-2);
  border: 1px solid var(--u-line);
  border-radius: 16px;
  box-shadow: var(--u-shadow-sm);
}

.loop-box .text-block-21 {
  color: var(--u-ink);
  font-weight: 600;
}

.loop-box .paragraph {
  color: var(--u-ink-soft);
}

/* ===== NAVIGATION ===== */

.navigation {
  background: rgba(251, 249, 244, 0.85);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--u-line);
}

.nav-links {
  color: var(--u-ink);
}

.nav-links:hover,
.nav-links.w--current {
  color: var(--u-blue);
}

/* ===== FOOTER ===== */

.footer {
  background: var(--u-ink);
  color: rgba(255, 255, 255, 0.82);
}

.footer-links,
.footer-links._2 {
  color: rgba(255, 255, 255, 0.78);
}

.footer-links:hover,
.footer-links._2:hover {
  color: #fff;
}

.footer-section-label {
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
  font-weight: 600;
}

/* ===== TOUCH-TARGET ADAPTATIONS (mobile + coarse pointer) ===== */

/* Footer links sit at ~24px tall by default — too short for thumb taps.
   At narrow widths give each link 10px vertical padding so it clears the
   WCAG 2.5.5 / Apple HIG 44x44 minimum. Density loss is acceptable on
   mobile; thumb accuracy wins. */
@media (max-width: 640px) {
  .footer-links,
  .footer-links._2 {
    display: block;
    padding: 10px 0;
    min-height: 44px;
    line-height: 1.4;
    box-sizing: border-box;
  }

  /* The "Log in" link sits next to the hamburger at narrow widths. Without
     vertical padding it lands at 24px tall — too small for tapping. */
  .nav-links._3 {
    display: inline-flex;
    align-items: center;
    padding: 10px 14px;
    min-height: 44px;
    box-sizing: border-box;
  }
}

/* Coarse pointer (touch / stylus regardless of screen width — e.g. a touch
   laptop). Apply the same 44px minimum so finger-accuracy holds. */
@media (pointer: coarse) {
  .footer-links,
  .footer-links._2 {
    min-height: 44px;
    padding: 10px 0;
    display: block;
    box-sizing: border-box;
  }
}

/* No-hover devices: remove translateY lifts that read as "stuck" without
   a pointer to acknowledge them. Active state stays for tap feedback.
   Includes .btn (homepage), .demo-btn / .white-btn (legacy pages). */
@media (hover: none) {
  .btn:hover,
  .demo-btn:hover,
  .white-btn:hover {
    transform: none;
  }
}
