/* ===========================================================
   Tinquer Hub — Design tokens & shared components
   Light, premium SaaS system. No gradient blobs, no glass.
   =========================================================== */

:root {
  /* Core palette */
  --bg: #f7f8fc;
  --surface: #ffffff;
  --surface-2: #f1f3f9;
  --surface-sunken: #eceef6;
  --border: #e3e6f0;
  --border-strong: #d3d7e6;

  --text: #12142a;
  --text-dim: #565b78;
  --text-dimmer: #8991ad;

  /* Brand */
  --brand: #4338ca;
  --brand-600: #3730a3;
  --brand-100: #ebe9fe;
  --brand-50: #f5f4ff;
  --accent: #0f9d78; /* used sparingly: success/won states */
  --accent-100: #e3f6ef;
  --warn: #b45309;
  --warn-100: #fdf1e0;

  /* High-contrast (dark) sections */
  --ink: #0d0f22;
  --ink-surface: #171a34;
  --ink-border: #2a2e4d;
  --ink-text: #f2f3fb;
  --ink-text-dim: #a7acc8;

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;
  --max-w: 1180px;
  --shadow-sm: 0 1px 2px rgba(15, 17, 40, 0.06);
  --shadow-md: 0 8px 24px rgba(15, 17, 40, 0.08);
  --shadow-lg: 0 24px 60px rgba(15, 17, 40, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 0;
}

body.has-mobile-cta {
  padding-bottom: 76px;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  background: var(--brand);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  z-index: 1000;
  transition: top 0.15s ease;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

/* ===================== Buttons ===================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  min-height: 44px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.15s ease, background 0.12s ease, border-color 0.12s ease;
  line-height: 1.2;
  transform: translateY(0);
}

.btn:active {
  transform: translateY(1px) scale(0.98);
}

.btn-primary {
  background: linear-gradient(180deg, var(--brand) 0%, var(--brand-600) 100%);
  color: #fff;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.18) inset, 0 1px 1px rgba(15, 17, 40, 0.05), 0 8px 16px -6px rgba(67, 56, 202, 0.45);
}

.btn-primary:hover {
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.22) inset, 0 2px 2px rgba(15, 17, 40, 0.06), 0 14px 26px -8px rgba(67, 56, 202, 0.55);
  transform: translateY(-2px);
}

.btn-primary:active {
  box-shadow: 0 1px 1px rgba(15, 17, 40, 0.08), 0 4px 10px -6px rgba(67, 56, 202, 0.5);
}

.btn-secondary {
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
  color: var(--text);
  border-color: var(--border-strong);
  box-shadow: 0 1px 1px rgba(15, 17, 40, 0.03), 0 6px 14px -8px rgba(15, 17, 40, 0.18);
}

.btn-secondary:hover {
  background: var(--surface);
  box-shadow: 0 2px 2px rgba(15, 17, 40, 0.04), 0 10px 20px -8px rgba(15, 17, 40, 0.22);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-dim);
  border-color: transparent;
  padding: 12px 14px;
}

.btn-ghost:hover {
  color: var(--text);
  transform: none;
}

.btn-on-dark {
  background: linear-gradient(180deg, #ffffff 0%, #e9eafc 100%);
  color: var(--ink);
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1), 0 10px 20px -8px rgba(0, 0, 0, 0.35);
}

.btn-on-dark:hover {
  box-shadow: 0 2px 2px rgba(0, 0, 0, 0.12), 0 16px 30px -10px rgba(0, 0, 0, 0.4);
  transform: translateY(-2px);
}

.btn-block {
  width: 100%;
}

.btn-sm {
  padding: 9px 16px;
  min-height: 38px;
  font-size: 13.5px;
}

/* ===================== Header / Nav ===================== */
header.site {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(247, 248, 252, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(15, 17, 40, 0), 0 12px 24px -18px rgba(15, 17, 40, 0);
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

header.site.is-scrolled {
  border-bottom-color: transparent;
  box-shadow: 0 1px 0 var(--border), 0 16px 28px -18px rgba(15, 17, 40, 0.18);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.brand img {
  height: 30px;
  width: 30px;
  border-radius: 7px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  flex: 1;
  justify-content: center;
}

.nav-links a {
  position: relative;
  color: var(--text-dim);
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 600;
  transition: color 0.15s ease, transform 0.15s ease;
  white-space: nowrap;
  display: inline-block;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -4px;
  height: 2px;
  border-radius: 2px;
  background: var(--brand);
  transition: right 0.2s ease;
}

.nav-links a:hover {
  transform: translateY(-1px);
}

.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after {
  right: 0;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--brand);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown > button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  color: var(--text-dim);
  font: inherit;
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  padding: 6px 0;
}

.nav-dropdown > button:hover {
  color: var(--brand);
}

.nav-dropdown-panel {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-6px) scale(0.97);
  transform-origin: top center;
  margin-top: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 2px 2px rgba(15, 17, 40, 0.05), 0 24px 48px -16px rgba(15, 17, 40, 0.28);
  padding: 10px;
  min-width: 240px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.18s;
  z-index: 70;
}

.nav-dropdown-panel::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  height: 10px;
}

.nav-dropdown:hover .nav-dropdown-panel,
.nav-dropdown:focus-within .nav-dropdown-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0) scale(1);
}

.nav-dropdown-panel a {
  display: block;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.nav-dropdown-panel a:hover {
  background: var(--brand-50);
  color: var(--brand);
  transform: translateX(3px);
}

.nav-dropdown-panel small {
  display: block;
  font-weight: 400;
  color: var(--text-dimmer);
  font-size: 12px;
  margin-top: 1px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.nav-login {
  color: var(--text-dim);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  padding: 10px 8px;
}

.nav-login:hover {
  color: var(--text);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  position: relative;
  transition: transform 0.15s ease;
}

.nav-toggle span::before {
  position: absolute;
  top: -6px;
}

.nav-toggle span::after {
  position: absolute;
  top: 6px;
}

.mobile-menu {
  display: none;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.mobile-menu.open {
  display: block;
}

.mobile-menu .wrap {
  padding: 16px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-menu a {
  padding: 12px 4px;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  border-bottom: 1px solid var(--surface-2);
}

.mobile-menu .mobile-cta {
  margin-top: 12px;
}

/* Sticky mobile demo CTA */
.mobile-sticky-cta {
  display: none;
}

@media (max-width: 640px) {
  .mobile-sticky-cta {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 80;
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 10px 16px;
    box-shadow: 0 -6px 20px rgba(15, 17, 40, 0.08);
  }

  /* Header CTA and login are redundant with the sticky CTA bar and the
     mobile menu drawer at this width — dropping them stops the brand
     name from being squeezed into a wrapped line. */
  .nav-actions .nav-login,
  .nav-actions > .btn {
    display: none;
  }
}

/* ===================== Breadcrumbs ===================== */
.breadcrumbs {
  padding-top: 18px;
}

.breadcrumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  font-size: 13px;
  color: var(--text-dimmer);
}

.breadcrumbs a {
  color: var(--text-dimmer);
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--brand);
}

.breadcrumbs li:not(:last-child)::after {
  content: "/";
  margin-left: 6px;
  color: var(--border-strong);
}

.breadcrumbs li[aria-current="page"] {
  color: var(--text-dim);
  font-weight: 600;
}

/* ===================== Sections / headings ===================== */
section {
  padding: 64px 0;
}

.section-tight {
  padding-top: 40px;
  padding-bottom: 40px;
}

.section-hero-follow {
  padding-top: 8px;
}

.section-head {
  max-width: 680px;
  margin: 0 auto 36px;
}

.section-head.center {
  text-align: center;
}

.kicker {
  display: inline-block;
  color: var(--brand);
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-head h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  margin: 0 0 14px;
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.2;
}

.section-head p {
  color: var(--text-dim);
  font-size: 16px;
  margin: 0;
}

h1 {
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  line-height: 1.12;
  margin: 0 0 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  color: var(--brand-600);
  font-size: 13px;
  font-weight: 700;
  background: var(--brand-50);
  margin-bottom: 22px;
}

.eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
}

/* ===================== Hero ===================== */
.hero {
  padding-top: 68px;
  padding-bottom: 40px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.hero p.lead {
  color: var(--text-dim);
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  max-width: 540px;
  margin: 0 0 32px;
}

.cta-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.hero-trust {
  color: var(--text-dimmer);
  font-size: 13.5px;
  margin: 0;
}

.page-hero {
  padding-top: 56px;
  padding-bottom: 20px;
  text-align: center;
}

.page-hero .lead {
  max-width: 620px;
  margin: 0 auto 8px;
  color: var(--text-dim);
  font-size: 17px;
}

/* ---- Hero product visualization ---- */
.hero-visual {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  transform-style: preserve-3d;
  transform: perspective(1400px) rotateX(var(--ry, 0deg)) rotateY(var(--rx, 0deg)) translateZ(0);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease;
  box-shadow:
    0 2px 2px rgba(15, 17, 40, 0.04),
    0 30px 40px -20px rgba(15, 17, 40, 0.18),
    0 60px 90px -30px rgba(67, 56, 202, 0.16);
}

.flow-diagram {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px 14px;
  position: relative;
}

.flow-node {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  position: relative;
  z-index: 2;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.5s ease, transform 0.5s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  transition-delay: calc(var(--i, 0) * 120ms);
  box-shadow: 0 1px 1px rgba(15, 17, 40, 0.03), 0 6px 14px -8px rgba(15, 17, 40, 0.14);
}

[data-animate].in-view .flow-node {
  opacity: 1;
  transform: translateY(0);
  transition-delay: calc(var(--i, 0) * 120ms), calc(var(--i, 0) * 120ms), 0s, 0s;
}

[data-animate].in-view .flow-node:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: 0 2px 2px rgba(15, 17, 40, 0.04), 0 16px 26px -12px rgba(67, 56, 202, 0.25);
}

.flow-node:not(:nth-child(3n))::after {
  content: "→";
  position: absolute;
  top: 50%;
  right: -19px;
  transform: translateY(-50%);
  color: var(--brand);
  font-weight: 700;
  font-size: 15px;
}

.flow-node:nth-child(3n)::after {
  content: "↓";
  position: absolute;
  bottom: -22px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--brand);
  font-weight: 700;
  font-size: 15px;
}

.flow-node:last-child::after {
  content: "";
}

@media (max-width: 720px) {
  .flow-node::after {
    display: none;
  }
}

.flow-node .fn-label {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dimmer);
  margin-bottom: 6px;
  display: block;
}

.flow-node .fn-title {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.flow-node .fn-sub {
  font-size: 11px;
  color: var(--text-dimmer);
}

.flow-node .fn-badge {
  display: inline-block;
  font-size: 9.5px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 999px;
  margin-top: 8px;
}

.badge-won {
  background: var(--accent-100);
  color: var(--accent);
}

.badge-active {
  background: var(--brand-100);
  color: var(--brand-600);
}

.badge-mention {
  background: var(--warn-100);
  color: var(--warn);
}

.flow-caption {
  text-align: center;
  color: var(--text-dimmer);
  font-size: 12px;
  margin-top: 14px;
}

/* ===================== Trust strip ===================== */
.trust-strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 26px 0;
  background: var(--surface);
}

.trust-strip .wrap {
  text-align: center;
  color: var(--text-dimmer);
  font-size: 13.5px;
  font-weight: 600;
}

/* ===================== 3D card system ===================== */
/* Applies a layered "lifted" elevation, a glossy cursor-tracked sheen,
   and a subtle perspective tilt (driven by --rx/--ry set in script.js
   on mousemove) to the site's primary interactive card grids. */
.problem-card,
.industry-card,
.feature,
.price-card,
.content-card,
.toc-card {
  position: relative;
  transform-style: preserve-3d;
  transform: perspective(900px) rotateX(var(--ry, 0deg)) rotateY(var(--rx, 0deg)) translateY(0) translateZ(0);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease, border-color 0.25s ease;
  box-shadow:
    0 1px 1px rgba(15, 17, 40, 0.04),
    0 10px 20px -12px rgba(15, 17, 40, 0.16),
    0 26px 46px -28px rgba(15, 17, 40, 0.18);
}

.problem-card::before,
.industry-card::before,
.feature::before,
.price-card::before,
.content-card::before,
.toc-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(480px circle at var(--mx, 50%) var(--my, 20%), rgba(255, 255, 255, 0.55), transparent 45%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.problem-card:hover,
.industry-card:hover,
.feature:hover,
.price-card:hover,
.content-card:hover,
.toc-card:hover {
  transform: perspective(900px) rotateX(var(--ry, 0deg)) rotateY(var(--rx, 0deg)) translateY(-6px) translateZ(0);
  border-color: var(--border-strong);
  box-shadow:
    0 2px 2px rgba(15, 17, 40, 0.05),
    0 18px 30px -14px rgba(15, 17, 40, 0.2),
    0 40px 64px -24px rgba(67, 56, 202, 0.18);
}

.problem-card:hover::before,
.industry-card:hover::before,
.feature:hover::before,
.price-card:hover::before,
.content-card:hover::before,
.toc-card:hover::before {
  opacity: 1;
}

.price-card.featured {
  box-shadow:
    0 2px 2px rgba(15, 17, 40, 0.05),
    0 16px 28px -14px rgba(67, 56, 202, 0.22),
    0 40px 64px -20px rgba(67, 56, 202, 0.22);
}

.price-card.featured:hover {
  box-shadow:
    0 3px 3px rgba(15, 17, 40, 0.06),
    0 22px 36px -14px rgba(67, 56, 202, 0.3),
    0 50px 76px -20px rgba(67, 56, 202, 0.3);
}

@media (prefers-reduced-motion: reduce) {
  .problem-card,
  .industry-card,
  .feature,
  .price-card,
  .content-card,
  .toc-card {
    transition: none;
  }
}

/* ===================== Problem cards ===================== */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.problem-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 22px;
}

.problem-card .p-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: linear-gradient(160deg, var(--brand-50) 0%, var(--brand-100) 100%);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset, 0 6px 12px -6px rgba(67, 56, 202, 0.35);
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s ease;
}

.problem-card:hover .p-icon {
  transform: translateZ(20px) rotate(-4deg) scale(1.06);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset, 0 10px 18px -6px rgba(67, 56, 202, 0.45);
}

.problem-card h3 {
  font-size: 16px;
  margin: 0 0 8px;
  font-weight: 700;
}

.problem-card p {
  font-size: 13.8px;
  color: var(--text-dim);
  margin: 0;
}

/* ===================== Workflow stages ===================== */
.workflow-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.workflow-track::before {
  content: "";
  position: absolute;
  top: 22px;
  left: 4%;
  right: 4%;
  height: 2px;
  background: repeating-linear-gradient(to right, var(--border-strong) 0 8px, transparent 8px 14px);
  z-index: 0;
}

.wf-stage {
  position: relative;
  z-index: 1;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  transition-delay: calc(var(--i, 0) * 100ms);
}

[data-animate].in-view .wf-stage {
  opacity: 1;
  transform: translateY(0);
}

.wf-stage .wf-num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--brand);
  color: var(--brand);
  font-weight: 800;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  box-shadow: 0 6px 14px -6px rgba(67, 56, 202, 0.35);
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.wf-stage:hover .wf-num {
  background: var(--brand);
  color: #fff;
  transform: scale(1.1);
  box-shadow: 0 10px 20px -6px rgba(67, 56, 202, 0.5);
}

.wf-stage h3 {
  font-size: 14.5px;
  margin: 0 0 6px;
  font-weight: 700;
}

.wf-stage p {
  font-size: 13px;
  color: var(--text-dim);
  margin: 0;
}

/* ===================== Feature showcase (split) ===================== */
.showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.showcase.reverse .showcase-copy {
  order: 2;
}

.showcase.reverse .showcase-visual {
  order: 1;
}

.showcase-copy h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 800;
  margin: 0 0 16px;
  letter-spacing: -0.01em;
}

.showcase-copy p {
  color: var(--text-dim);
  font-size: 15.5px;
  margin: 0 0 22px;
}

.showcase-copy ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.showcase-copy li {
  display: flex;
  gap: 10px;
  font-size: 14px;
  color: var(--text-dim);
}

.showcase-copy li::before {
  content: "✓";
  color: var(--accent);
  font-weight: 800;
  flex-shrink: 0;
}

.showcase-visual {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px;
  transform-style: preserve-3d;
  transform: perspective(1400px) rotateX(var(--ry, 0deg)) rotateY(var(--rx, 0deg)) translateZ(0);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease;
  box-shadow:
    0 2px 2px rgba(15, 17, 40, 0.04),
    0 30px 40px -20px rgba(15, 17, 40, 0.18),
    0 60px 90px -30px rgba(67, 56, 202, 0.14);
}

/* Task mock */
.task-mock-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 14px;
}

.task-mock-head .mock-title {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 700;
}

.task-mock-head .chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chip {
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text-dim);
  white-space: nowrap;
}

.chip-brand {
  background: var(--brand-100);
  color: var(--brand-600);
}

.chip-warn {
  background: var(--warn-100);
  color: var(--warn);
}

.chip-accent {
  background: var(--accent-100);
  color: var(--accent);
}

.task-mock-body {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 16px;
}

.task-mock-thread {
  display: grid;
  gap: 10px;
}

.msg {
  background: var(--surface-2);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 12.5px;
}

.msg strong {
  display: block;
  font-size: 11.5px;
  margin-bottom: 3px;
}

.msg .mention {
  color: var(--brand);
  font-weight: 700;
}

.task-mock-side .mock-label {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dimmer);
  margin: 0 0 8px;
}

.task-mock-side .activity-item {
  font-size: 11.5px;
  color: var(--text-dim);
  padding: 7px 0;
  border-bottom: 1px dashed var(--border);
}

.task-mock-attachments {
  display: flex;
  gap: 8px;
  margin: 12px 0;
}

.file-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--surface-2);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 11px;
  color: var(--text-dim);
  font-weight: 600;
}

/* Handover transform */
.handover-visual {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 18px;
  align-items: center;
}

.handover-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: 0 1px 1px rgba(15, 17, 40, 0.03), 0 10px 20px -12px rgba(15, 17, 40, 0.16);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease;
}

.handover-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 2px 2px rgba(15, 17, 40, 0.04), 0 18px 30px -14px rgba(67, 56, 202, 0.22);
}

.handover-card .mock-title {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 700;
}

.handover-card ul {
  margin: 0;
  padding-left: 16px;
  font-size: 12.5px;
  color: var(--text-dim);
}

.handover-card li {
  margin-bottom: 6px;
}

.handover-arrow {
  font-size: 22px;
  color: var(--brand);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}

.handover-arrow span {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--text-dimmer);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ===================== Dashboard mock ===================== */
.dash-mock {
  background: var(--ink);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.dash-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.dash-card {
  background: var(--ink-surface);
  border: 1px solid var(--ink-border);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 10px 20px -12px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

.dash-card:hover {
  transform: translateY(-4px);
  border-color: #454b7a;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset, 0 20px 32px -14px rgba(0, 0, 0, 0.6);
}

.dash-card .d-label {
  font-size: 11px;
  color: var(--ink-text-dim);
  font-weight: 600;
  margin-bottom: 8px;
}

.dash-card .d-value {
  font-size: 22px;
  font-weight: 800;
  color: var(--ink-text);
}

.dash-card .d-note {
  font-size: 11px;
  color: var(--ink-text-dim);
  margin-top: 4px;
}

.dash-caption {
  text-align: center;
  color: var(--text-dimmer);
  font-size: 12px;
  margin-top: 14px;
}

/* ===================== Industry / solution cards ===================== */
.industry-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.industry-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 22px;
  text-decoration: none;
  color: inherit;
}

.industry-card .i-icon {
  margin-bottom: 14px;
  display: inline-flex;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.industry-card .i-icon .icon-svg {
  width: 24px;
  height: 24px;
}

.industry-card:hover .i-icon {
  transform: scale(1.15) rotate(-6deg) translateZ(10px);
}

.industry-card h3 {
  font-size: 15.5px;
  margin: 0 0 8px;
  font-weight: 700;
}

.industry-card p {
  font-size: 13px;
  color: var(--text-dim);
  margin: 0 0 14px;
}

.industry-card .link {
  font-size: 13px;
  font-weight: 700;
  color: var(--brand);
  display: inline-block;
  transition: transform 0.2s ease;
}

.industry-card:hover .link {
  transform: translateX(4px);
}

/* ===================== Feature grid ===================== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.feature .f-icon {
  margin-bottom: 10px;
  display: inline-flex;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Vector line icons render black & white; brand icons (e.g. Meta) keep their color */
.f-icon,
.i-icon,
.p-icon,
.m-icon,
.s-icon {
  color: var(--text);
}

.icon-svg {
  display: block;
  flex-shrink: 0;
}

.feature:hover .f-icon {
  transform: scale(1.15) rotate(-6deg) translateZ(10px);
}

.feature h3 {
  margin: 0 0 6px;
  font-size: 14.5px;
  font-weight: 700;
}

.feature p {
  margin: 0;
  color: var(--text-dim);
  font-size: 13px;
}

.feature-soon {
  border-style: dashed;
  position: relative;
}

/* ===================== Testimonials ===================== */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.testimonial-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  background: var(--surface-2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px -12px rgba(15, 17, 40, 0.14);
}

.testimonial-card .placeholder-tag {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dimmer);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  padding: 3px 9px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.testimonial-card p {
  color: var(--text-dim);
  font-size: 13.5px;
  font-style: italic;
  margin: 0 0 14px;
}

.testimonial-card .t-name {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-dimmer);
}

/* ===================== Pricing ===================== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}

.price-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
}

.price-card.featured {
  border: 2px solid var(--brand);
  position: relative;
}

.price-card .price-tag {
  position: absolute;
  top: -13px;
  left: 24px;
  background: var(--brand);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 999px;
}

.price-card h2 {
  font-size: 18px;
  margin: 0 0 6px;
  font-weight: 800;
}

.price-card .price-module {
  font-size: 12px;
  color: var(--text-dimmer);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 14px;
}

.price-card .price-value {
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 4px;
}

.price-card .price-value small {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dimmer);
}

.price-card p.price-desc {
  color: var(--text-dim);
  font-size: 13.5px;
  margin: 0 0 20px;
}

.price-card ul {
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
  flex: 1;
}

.price-card li {
  font-size: 13.5px;
  color: var(--text-dim);
  display: flex;
  gap: 8px;
}

.price-card li::before {
  content: "✓";
  color: var(--accent);
  font-weight: 800;
}

.compare-table-wrap {
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

table.compare-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
}

.compare-table th,
.compare-table td {
  text-align: left;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  font-size: 13.5px;
}

.compare-table th {
  color: var(--text-dimmer);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  background: var(--surface-2);
}

.compare-table td:first-child,
.compare-table th:first-child {
  font-weight: 700;
  color: var(--text);
}

.compare-table tr:last-child td {
  border-bottom: none;
}

.compare-table tbody tr {
  transition: background 0.15s ease;
}

.compare-table tbody tr:hover {
  background: var(--brand-50);
}

.compare-yes {
  color: var(--accent);
  font-weight: 800;
}

.compare-no {
  color: var(--text-dimmer);
}

.compare-soon {
  color: var(--warn);
  font-weight: 700;
  font-size: 12px;
}

@media (max-width: 720px) {
  .compare-table-wrap {
    border: none;
    background: none;
  }
  table.compare-table,
  .compare-table thead,
  .compare-table tbody,
  .compare-table th,
  .compare-table td,
  .compare-table tr {
    display: block;
    width: 100%;
    min-width: 0;
  }
  .compare-table thead {
    display: none;
  }
  .compare-table tr {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 16px;
    margin-bottom: 12px;
  }
  .compare-table td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    border-bottom: 1px dashed var(--border);
    padding: 8px 0;
  }
  .compare-table td:last-child {
    border-bottom: none;
  }
  .compare-table td::before {
    content: attr(data-label);
    font-weight: 700;
    color: var(--text-dimmer);
    font-size: 11.5px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
  }
  .compare-table td:first-child {
    padding-top: 0;
  }
  .compare-table td:first-child::before {
    content: "";
  }
}

.pricing-note {
  text-align: center;
  color: var(--text-dimmer);
  font-size: 13px;
  margin-top: 28px;
}

/* ===================== FAQ ===================== */
.faq-list {
  max-width: 780px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 4px 20px;
}

.faq-item summary {
  cursor: pointer;
  padding: 16px 0;
  font-weight: 700;
  font-size: 15px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 20px;
  color: var(--brand);
  flex-shrink: 0;
  transition: transform 0.15s ease;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  margin: 0 0 18px;
  color: var(--text-dim);
  font-size: 14px;
}

/* ===================== CTA band ===================== */
.cta-band {
  background: var(--ink);
  color: var(--ink-text);
  border-radius: var(--radius-lg);
  padding: 60px 36px;
  text-align: center;
}

.cta-band h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  margin: 0 0 12px;
  font-weight: 800;
}

.cta-band p {
  color: var(--ink-text-dim);
  margin: 0 0 26px;
  font-size: 15px;
}

/* ===================== Footer ===================== */
footer.site {
  background: var(--ink);
  color: var(--ink-text-dim);
  padding: 56px 0 28px;
  margin-top: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr;
  gap: 28px;
  margin-bottom: 36px;
}

.footer-brand .brand {
  color: var(--ink-text);
  margin-bottom: 12px;
}

.footer-brand p {
  color: var(--ink-text-dim);
  font-size: 13px;
  max-width: 260px;
  margin: 0;
}

.footer-col .footer-col-title {
  margin: 0 0 14px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #6f75a0;
}

.footer-col a {
  display: block;
  color: var(--ink-text-dim);
  text-decoration: none;
  font-size: 13.5px;
  margin-bottom: 10px;
  transition: color 0.15s ease, transform 0.15s ease;
}

.footer-col a:hover {
  transform: translateX(3px);
}

.footer-col a:hover {
  color: var(--ink-text);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 22px;
  border-top: 1px solid var(--ink-border);
  color: #6f75a0;
  font-size: 12.5px;
}

.footer-bottom a {
  color: #8992b3;
  text-decoration: none;
}

/* ===================== Forms ===================== */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field.full {
  grid-column: 1 / -1;
}

.form-field label {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text);
}

.form-field .req {
  color: var(--accent);
}

.form-field input,
.form-field select,
.form-field textarea {
  font: inherit;
  padding: 12px 14px;
  min-height: 44px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
}

.form-field textarea {
  min-height: 100px;
  resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: 2px solid var(--brand);
  outline-offset: 1px;
  border-color: var(--brand);
}

.form-hint {
  font-size: 12px;
  color: var(--text-dimmer);
}

.form-success {
  display: none;
  text-align: center;
  padding: 40px 20px;
}

.form-success.show {
  display: block;
}

.form-success .s-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent-100);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
}

.form-success .s-icon .icon-svg {
  width: 26px;
  height: 26px;
}

.form-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-md);
}

/* ===================== Content pages (legal / blog) ===================== */
.prose {
  max-width: 780px;
  margin: 0 auto;
}

.prose h2 {
  font-size: 19px;
  margin: 34px 0 12px;
  font-weight: 700;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose h3 {
  font-size: 15.5px;
  margin: 20px 0 8px;
  font-weight: 700;
}

.prose p,
.prose li {
  color: var(--text-dim);
  font-size: 14.5px;
  line-height: 1.75;
}

.prose ul {
  padding-left: 20px;
  margin: 10px 0;
}

.prose li {
  margin-bottom: 6px;
}

.prose a {
  color: var(--brand);
}

.callout {
  border: 1px solid var(--brand-100);
  background: var(--brand-50);
  border-radius: 12px;
  padding: 16px 18px;
  font-size: 13.5px;
  color: var(--text-dim);
  margin: 20px 0;
}

.toc-card {
  max-width: 780px;
  margin: 0 auto 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px 26px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 22px;
}

.toc-card a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 13.5px;
}

.toc-card a:hover {
  color: var(--brand);
}

/* Simple content page card grid (features hub, blog listing) */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.content-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-decoration: none;
  color: inherit;
}

.content-card:hover {
  border-color: var(--brand);
}

.content-card h2 {
  font-size: 16px;
  margin: 0 0 8px;
  font-weight: 700;
}

.client-logo {
  display: block;
  height: 40px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: left center;
  margin: 0 0 16px;
}

.content-card p {
  font-size: 13.5px;
  color: var(--text-dim);
  margin: 0;
}

.content-card .link {
  display: inline-block;
  margin-top: 12px;
  font-size: 13px;
  font-weight: 700;
  color: var(--brand);
}

.content-card .post-meta {
  display: block;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-dimmer);
  margin: 0 0 8px;
}

.post-hero-meta {
  font-size: 13.5px;
  color: var(--text-dimmer);
  margin: 10px 0 0;
}

.blog-placeholder {
  text-align: center;
  padding: 60px 20px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  background: var(--surface-2);
  max-width: 620px;
  margin: 0 auto;
}

/* ===================== Module callout (sell modules separately) ===================== */
.module-note {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--brand-50);
  border: 1px solid var(--brand-100);
  border-radius: var(--radius);
  padding: 18px 20px;
}

.module-note .m-icon {
  font-size: 20px;
  flex-shrink: 0;
}

.module-note p {
  margin: 0;
  color: var(--text-dim);
  font-size: 13.5px;
}

.module-note strong {
  color: var(--text);
}

/* ===================== Responsive ===================== */
@media (max-width: 980px) {
  .hero-grid,
  .showcase,
  .showcase.reverse .showcase-copy,
  .showcase.reverse .showcase-visual {
    order: unset;
  }
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .showcase {
    grid-template-columns: 1fr;
  }
  .problem-grid,
  .industry-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .pricing-grid,
  .testimonial-grid,
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .dash-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .workflow-track {
    grid-template-columns: repeat(3, 1fr);
    row-gap: 32px;
  }
  .workflow-track::before {
    display: none;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
  .nav-links {
    display: none;
  }
  .nav-toggle {
    display: flex;
  }
}

@media (max-width: 720px) {
  section {
    padding: 44px 0;
  }
  .problem-grid,
  .industry-grid,
  .feature-grid,
  .pricing-grid,
  .testimonial-grid,
  .card-grid,
  .dash-grid,
  .workflow-track {
    grid-template-columns: 1fr;
  }
  .task-mock-body,
  .handover-visual {
    grid-template-columns: 1fr;
  }
  .handover-arrow {
    flex-direction: row;
    justify-content: center;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .toc-card {
    grid-template-columns: 1fr;
  }
  .flow-diagram {
    grid-template-columns: 1fr;
  }
  h1 {
    font-size: clamp(1.7rem, 8vw, 2.4rem);
  }
}
