/* ============================================================
   marketing-subdomain.css
   Shared design system for all p9p9.top subdomain sites.
   Standalone bundle (Option A) — no cross-origin dependency.
   Inherits design tokens from main p9p9.top site.
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  /* Brand */
  --brand-primary: #1f6feb;
  --brand-primary-dark: #1455c4;
  --brand-accent: #4cc2ff;
  --brand-cyan: #00b8d9;

  /* Surfaces */
  --bg-page: #ffffff;
  --bg-soft: #f6f8fb;
  --bg-soft-2: #eef2f8;
  --bg-card: #ffffff;
  --bg-footer: #0d1b2a;

  /* Text */
  --text-strong: #0d1b2a;
  --text-body: #3a4a5e;
  --text-muted: #6b7a8f;
  --text-invert: #ffffff;

  /* Borders */
  --border-soft: #e3e8ef;
  --border-strong: #c4ccd6;

  /* Radius */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-xl: 20px;

  /* Spacing scale */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;
  --sp-7: 48px;
  --sp-8: 64px;
  --sp-9: 96px;

  /* Type */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  /* Shadow */
  --shadow-sm: 0 1px 2px rgba(13, 27, 42, 0.06), 0 1px 3px rgba(13, 27, 42, 0.04);
  --shadow-md: 0 4px 12px rgba(13, 27, 42, 0.08), 0 2px 4px rgba(13, 27, 42, 0.04);
  --shadow-lg: 0 12px 32px rgba(13, 27, 42, 0.12);

  /* Container */
  --container: 1180px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text-body);
  background: var(--bg-page);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-primary); text-decoration: none; }
a:hover { color: var(--brand-primary-dark); text-decoration: underline; }
h1, h2, h3, h4 { color: var(--text-strong); margin: 0 0 var(--sp-4); line-height: 1.25; }
h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.25rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }
p  { margin: 0 0 var(--sp-4); }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--sp-5);
}
.section { padding: var(--sp-9) 0; }
.section--soft { background: var(--bg-soft); }
.section--dark { background: var(--bg-footer); color: var(--text-invert); }
.section--dark h1, .section--dark h2, .section--dark h3 { color: var(--text-invert); }

/* ---------- Top bar / Nav ---------- */
.topbar {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border-soft);
  font-size: 0.85rem;
  color: var(--text-muted);
}
.topbar .container {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: var(--sp-2); padding-bottom: var(--sp-2);
}
.topbar a { color: var(--text-muted); margin-left: var(--sp-4); }

.nav {
  background: #fff;
  border-bottom: 1px solid var(--border-soft);
  position: sticky; top: 0; z-index: 50;
}
.nav .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.nav__brand {
  font-weight: 700; font-size: 1.1rem; color: var(--text-strong);
  display: flex; align-items: center; gap: var(--sp-2);
}
.nav__brand:hover { text-decoration: none; }
.nav__brand-mark {
  width: 28px; height: 28px; border-radius: var(--r-sm);
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-cyan));
  display: inline-flex; align-items: center; justify-content: center;
  color: white; font-weight: 700; font-size: 0.9rem;
}
.nav__menu {
  display: flex; gap: var(--sp-5);
  align-items: center; list-style: none; margin: 0; padding: 0;
}
.nav__menu a {
  color: var(--text-body); font-weight: 500;
}
.nav__menu a:hover { color: var(--brand-primary); text-decoration: none; }
.nav__cta { display: flex; gap: var(--sp-3); align-items: center; }
@media (max-width: 860px) {
  .nav__menu { display: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  padding: 10px 20px;
  border-radius: var(--r-md);
  font-weight: 600; font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer; transition: all .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn--primary { background: var(--brand-primary); color: #fff; }
.btn--primary:hover { background: var(--brand-primary-dark); color: #fff; }
.btn--ghost {
  background: transparent; color: var(--brand-primary);
  border-color: var(--brand-primary);
}
.btn--ghost:hover { background: var(--brand-primary); color: #fff; }
.btn--invert { background: #fff; color: var(--text-strong); }

/* ---------- Hero ---------- */
.hero {
  padding: var(--sp-9) 0 var(--sp-8);
  background: linear-gradient(180deg, var(--bg-soft) 0%, #fff 100%);
}
.hero__eyebrow {
  display: inline-block;
  background: rgba(31, 111, 235, 0.08);
  color: var(--brand-primary);
  padding: 4px 12px; border-radius: 999px;
  font-size: 0.8rem; font-weight: 600; margin-bottom: var(--sp-4);
}
.hero__title {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 800; color: var(--text-strong);
  max-width: 760px; margin-bottom: var(--sp-4);
}
.hero__lede {
  font-size: 1.15rem; color: var(--text-body);
  max-width: 640px; margin-bottom: var(--sp-6);
}
.hero__cta { display: flex; gap: var(--sp-3); flex-wrap: wrap; }
.hero__visual {
  margin-top: var(--sp-7);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
}
.hero__visual-placeholder {
  aspect-ratio: 16/9;
  background:
    linear-gradient(135deg, rgba(31,111,235,.08), rgba(0,184,217,.08)),
    repeating-linear-gradient(45deg, var(--bg-soft), var(--bg-soft) 12px, var(--bg-soft-2) 12px, var(--bg-soft-2) 24px);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); font-weight: 600; letter-spacing: .03em;
}

/* ---------- Logo strip ---------- */
.logos {
  padding: var(--sp-6) 0;
  border-bottom: 1px solid var(--border-soft);
}
.logos__label {
  text-align: center; color: var(--text-muted);
  font-size: 0.85rem; letter-spacing: .08em; text-transform: uppercase;
  margin-bottom: var(--sp-4);
}
.logos__row {
  display: flex; flex-wrap: wrap; gap: var(--sp-6);
  justify-content: center; align-items: center;
}
.logos__row span {
  color: var(--text-muted); font-weight: 700; font-size: 1.1rem;
  letter-spacing: .02em; opacity: .65;
}

/* ---------- Feature grid ---------- */
.features { padding: var(--sp-9) 0; }
.features__head { text-align: center; margin-bottom: var(--sp-7); }
.features__head p { max-width: 640px; margin: 0 auto; color: var(--text-muted); }
.features__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--sp-5);
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  transition: all .2s ease;
}
.feature-card:hover {
  border-color: var(--brand-primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.feature-card__icon {
  width: 44px; height: 44px;
  border-radius: var(--r-md);
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-cyan));
  color: white;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1.2rem; margin-bottom: var(--sp-4);
}
.feature-card h3 { font-size: 1.1rem; margin-bottom: var(--sp-2); }
.feature-card p { color: var(--text-muted); font-size: 0.95rem; margin: 0; }
.feature-card__link {
  display: inline-block; margin-top: var(--sp-4);
  font-weight: 600; font-size: 0.9rem; color: var(--brand-primary);
}

/* ---------- Sub-feature deep page ---------- */
.subfeat {
  padding: var(--sp-9) 0;
}
.subfeat__crumbs {
  font-size: 0.85rem; color: var(--text-muted); margin-bottom: var(--sp-4);
}
.subfeat__crumbs a { color: var(--text-muted); }
.subfeat__layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: var(--sp-7);
}
@media (max-width: 860px) {
  .subfeat__layout { grid-template-columns: 1fr; }
}
.subfeat__side {
  position: sticky; top: 88px;
  align-self: start;
  background: var(--bg-soft);
  border-radius: var(--r-md);
  padding: var(--sp-4);
}
.subfeat__side h4 {
  font-size: 0.85rem; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: .08em;
  margin-bottom: var(--sp-3);
}
.subfeat__side ul { list-style: none; padding: 0; margin: 0; }
.subfeat__side li { margin-bottom: var(--sp-2); }
.subfeat__side a {
  color: var(--text-body); font-size: 0.9rem; display: block;
  padding: 6px 8px; border-radius: var(--r-sm);
}
.subfeat__side a:hover {
  background: var(--bg-page); color: var(--brand-primary); text-decoration: none;
}
.subfeat__side a.is-active { background: var(--brand-primary); color: #fff; }

.subfeat__main h1 { margin-bottom: var(--sp-4); }
.subfeat__main h2 { margin-top: var(--sp-7); font-size: 1.5rem; }
.subfeat__main h3 { margin-top: var(--sp-6); font-size: 1.15rem; }
.subfeat__main ul { padding-left: var(--sp-5); }
.subfeat__main ul li { margin-bottom: var(--sp-2); }
.subfeat__main blockquote {
  background: var(--bg-soft);
  border-left: 4px solid var(--brand-primary);
  padding: var(--sp-4) var(--sp-5);
  border-radius: var(--r-md);
  color: var(--text-body);
  margin: var(--sp-5) 0;
}

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-primary-dark));
  color: #fff; padding: var(--sp-8) 0; text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.85); max-width: 560px; margin: 0 auto var(--sp-5); }
.cta-band .btn--invert { margin: 0 var(--sp-2); }

/* ---------- Footer ---------- */
.footer {
  background: var(--bg-footer);
  color: rgba(255,255,255,.7);
  padding: var(--sp-8) 0 var(--sp-5);
}
.footer__cols {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: var(--sp-6);
  margin-bottom: var(--sp-6);
}
@media (max-width: 860px) {
  .footer__cols { grid-template-columns: 1fr 1fr; }
}
.footer h4 {
  color: #fff; font-size: 0.95rem; margin-bottom: var(--sp-4);
}
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: var(--sp-2); }
.footer a { color: rgba(255,255,255,.7); font-size: 0.9rem; }
.footer a:hover { color: #fff; text-decoration: none; }
.footer__legal {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: var(--sp-5);
  font-size: 0.85rem;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--sp-3);
}
.footer__brand-block p { font-size: 0.9rem; max-width: 280px; }

/* ---------- Tables ---------- */
.compare {
  width: 100%; border-collapse: collapse; margin: var(--sp-5) 0;
  background: var(--bg-card); border-radius: var(--r-md);
  overflow: hidden; box-shadow: var(--shadow-sm);
}
.compare th, .compare td {
  text-align: left; padding: var(--sp-3) var(--sp-4);
  border-bottom: 1px solid var(--border-soft);
}
.compare th { background: var(--bg-soft); color: var(--text-strong); font-weight: 600; }
.compare tr:last-child td { border-bottom: none; }

/* ---------- Case cards ---------- */
.cases {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--sp-5);
}
.case-card {
  border: 1px solid var(--border-soft);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  background: var(--bg-card);
}
.case-card__industry {
  font-size: 0.8rem; color: var(--brand-primary);
  text-transform: uppercase; letter-spacing: .08em; font-weight: 600;
  margin-bottom: var(--sp-3);
}
.case-card h3 { font-size: 1.1rem; margin-bottom: var(--sp-3); }
.case-card blockquote {
  font-style: italic; color: var(--text-body);
  border-left: 3px solid var(--brand-primary);
  padding-left: var(--sp-4); margin: var(--sp-4) 0;
}
.case-card cite { font-style: normal; color: var(--text-muted); font-size: 0.85rem; }

/* ---------- Stats row ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--sp-5);
  text-align: center;
}
.stat__num {
  font-size: 2.5rem; font-weight: 800; color: var(--brand-primary);
  line-height: 1;
}
.stat__label {
  color: var(--text-muted); font-size: 0.95rem;
  margin-top: var(--sp-2);
}

/* ---------- FAQ ---------- */
.faq__item {
  border-bottom: 1px solid var(--border-soft);
  padding: var(--sp-5) 0;
}
.faq__q {
  font-weight: 600; color: var(--text-strong);
  font-size: 1.05rem; margin-bottom: var(--sp-2);
}
.faq__a { color: var(--text-body); }
