/* ============================================================
   Certant — SEO landing pages
   Shared layout primitives for /ai-agents-for-business and friends.
   Extends design_system/colors_and_type.css + styles/homepage.css.
   ============================================================ */

/* ---------- HERO ---------- */
.lp-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(56px, 8vw, 104px) 0 clamp(56px, 8vw, 96px);
  background:
    radial-gradient(ellipse 80% 60% at 10% -10%, rgba(42,123,136,0.12), transparent 60%),
    radial-gradient(ellipse 70% 55% at 95% 12%, rgba(197,160,101,0.16), transparent 60%),
    radial-gradient(ellipse 90% 70% at 50% 100%, rgba(45,49,54,0.04), transparent 70%),
    linear-gradient(180deg, #FBF8F1 0%, #F5F2EB 55%, #F0EBE0 100%);
}
.lp-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(42,123,136,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(42,123,136,0.06) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 60% 70% at 50% 40%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 50% 40%, black 30%, transparent 80%);
}
.lp-hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(45,49,54,0.10), transparent);
  pointer-events: none;
}
.lp-hero-inner { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.lp-hero-copy { max-width: 600px; }
.lp-hero h1 { margin-top: 22px; font-size: clamp(40px, 5.4vw, 64px); font-weight: 800; letter-spacing: -0.025em; line-height: 1.02; }
.lp-hero .lead { margin-top: 22px; font-size: clamp(16px, 1.3vw, 19px); color: var(--fg-2); }
.lp-hero .lead em { font-style: italic; color: var(--fg-1); font-weight: 500; }
.lp-hero .hero-cta { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 12px; }
.lp-hero-meta { margin-top: 36px; display: flex; gap: 36px; padding-top: 24px; border-top: 1px solid var(--brand-charcoal-10); flex-wrap: wrap; }
.lp-hero-meta .n { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.lp-hero-meta .l { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-3); margin-top: 4px; }

/* The hero visual frame — sand canvas with hairline border */
.lp-hero-viz {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 24px;
  background: rgba(255,255,255,0.62);
  border: 1px solid var(--brand-charcoal-10);
  box-shadow: 0 30px 60px -30px rgba(45,49,54,0.20), 0 8px 24px -12px rgba(45,49,54,0.10);
  overflow: hidden;
  backdrop-filter: blur(8px);
}
.lp-hero-viz svg { width: 100%; height: 100%; display: block; }
.lp-hero-viz .grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(42,123,136,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(42,123,136,0.06) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}

/* ---------- DEFINITION CARD (LLM-quotable one-liner) ---------- */
.lp-def {
  margin: 0 auto;
  max-width: 880px;
  background: var(--bg-surface);
  border: 1px solid var(--brand-charcoal-10);
  border-radius: 20px;
  padding: 36px 40px;
  box-shadow: 0 10px 30px -18px rgba(45,49,54,0.15);
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 24px;
  align-items: start;
}
.lp-def-mark {
  width: 56px; height: 56px; border-radius: 14px;
  background: var(--brand-teal-10); color: var(--brand-teal);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-weight: 700; font-size: 12px;
  letter-spacing: 0.08em;
}
.lp-def-mark i { width: 22px; height: 22px; }
.lp-def .eyebrow { color: var(--brand-teal); display: block; margin-bottom: 6px; }
.lp-def-body { font-size: clamp(20px, 1.8vw, 26px); font-weight: 600; line-height: 1.3; letter-spacing: -0.015em; color: var(--fg-1); }
.lp-def-body em { color: var(--brand-teal); font-style: normal; }
.lp-def-foot { margin-top: 12px; font-size: 14.5px; color: var(--fg-2); line-height: 1.6; }

/* ---------- KEY-VALUE BAND ---------- */
.lp-kvs {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  margin-top: 56px;
}
.lp-kv {
  background: var(--bg-surface);
  border: 1px solid var(--brand-charcoal-10);
  border-radius: 16px;
  padding: 28px;
  display: flex; flex-direction: column; gap: 10px;
}
.lp-kv .icon-tile { margin-bottom: 6px; }
.lp-kv h4 { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; }
.lp-kv p { font-size: 14.5px; color: var(--fg-2); }

/* ---------- COMPARE TABLE ---------- */
.lp-compare {
  display: grid;
  grid-template-columns: 220px repeat(3, 1fr);
  background: var(--bg-surface);
  border: 1px solid var(--brand-charcoal-10);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.lp-compare > div {
  padding: 18px 20px;
  border-bottom: 1px solid var(--brand-charcoal-05);
  border-right: 1px solid var(--brand-charcoal-05);
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--fg-2);
  background: #fff;
}
.lp-compare > div:nth-child(4n) { border-right: none; }
.lp-compare .lp-compare-head {
  font-family: var(--font-mono); font-weight: 700; font-size: 11px;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--fg-3);
  background: var(--brand-sand);
  padding-top: 22px; padding-bottom: 22px;
}
.lp-compare .lp-compare-head.is-cert {
  color: var(--brand-teal);
  background: linear-gradient(180deg, rgba(42,123,136,0.07), rgba(42,123,136,0.02));
}
.lp-compare .lp-compare-row-label {
  font-family: var(--font-mono); font-weight: 700; font-size: 11px;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--fg-3);
  background: var(--brand-sand);
}
.lp-compare .lp-cell-cert {
  background: rgba(42,123,136,0.04);
  color: var(--fg-1);
  font-weight: 500;
}
.lp-compare > div:last-child { border-bottom: none; }
.lp-compare > div:nth-last-child(-n+4) { border-bottom: none; }

/* ---------- TWO-UP: BEFORE / AFTER ---------- */
.lp-vs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.lp-vs-col {
  background: var(--bg-surface);
  border: 1px solid var(--brand-charcoal-10);
  border-radius: 18px;
  padding: 32px;
  position: relative;
}
.lp-vs-col.is-bad { background: linear-gradient(180deg, #FAF6EE, #fff 70%); }
.lp-vs-col.is-good { border-color: var(--brand-teal); box-shadow: 0 16px 40px -28px rgba(42,123,136,0.45); }
.lp-vs-col .lp-vs-eye {
  font-family: var(--font-mono); font-weight: 700; font-size: 11px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--fg-3); margin-bottom: 12px;
}
.lp-vs-col.is-good .lp-vs-eye { color: var(--brand-teal); }
.lp-vs-col h3 { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 8px; }
.lp-vs-col p { font-size: 15px; color: var(--fg-2); }

/* ---------- STEP STRIP ---------- */
.lp-steps {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px;
  counter-reset: lpstep;
}
.lp-step {
  background: var(--bg-surface);
  border: 1px solid var(--brand-charcoal-10);
  border-radius: 14px;
  padding: 24px;
  position: relative;
}
.lp-step::before {
  counter-increment: lpstep;
  content: "0" counter(lpstep);
  font-family: var(--font-mono); font-weight: 700; font-size: 32px;
  color: var(--brand-teal); opacity: 0.32;
  letter-spacing: -0.02em;
  line-height: 1;
  display: block; margin-bottom: 14px;
}
.lp-step h4 { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 6px; }
.lp-step p { font-size: 14px; color: var(--fg-2); line-height: 1.55; }
@media (max-width: 1023px) { .lp-steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .lp-steps { grid-template-columns: 1fr; } }

/* ---------- QUOTE-CALLOUT (LLM-friendly summary) ---------- */
.lp-pull {
  max-width: 880px; margin: 0 auto;
  text-align: center;
  font-size: clamp(22px, 2.4vw, 32px);
  font-weight: 600;
  line-height: 1.25; letter-spacing: -0.018em;
  color: var(--fg-1);
  padding: 0 24px;
}
.lp-pull em { color: var(--brand-teal); font-style: italic; }
.lp-pull strong { font-weight: 700; }

/* ---------- FAQ ---------- */
.lp-faq { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.lp-faq details {
  background: var(--bg-surface);
  border: 1px solid var(--brand-charcoal-10);
  border-radius: 16px;
  padding: 22px 26px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.lp-faq details[open] {
  border-color: var(--brand-teal);
  box-shadow: 0 16px 40px -24px rgba(42,123,136,0.30);
}
.lp-faq summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font-size: 17px; font-weight: 600; color: var(--fg-1);
  letter-spacing: -0.01em;
}
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary .chev { width: 18px; height: 18px; color: var(--brand-teal); transition: transform 0.2s; flex-shrink: 0; }
.lp-faq details[open] summary .chev { transform: rotate(90deg); }
.lp-faq .answer { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--brand-charcoal-05); color: var(--fg-2); font-size: 15px; line-height: 1.65; }
.lp-faq .answer p + p { margin-top: 10px; }

/* ---------- BOTTOM CTA ---------- */
.lp-cta-strip {
  position: relative; overflow: hidden;
  background: var(--brand-charcoal); color: #fff;
  padding: clamp(72px, 10vw, 120px) 0;
  text-align: center;
}
.lp-cta-strip::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.18) 1px, transparent 1px);
  background-size: 30px 30px; opacity: 0.06; pointer-events: none;
}
.lp-cta-strip .glow {
  position: absolute; width: 700px; height: 700px; border-radius: 50%;
  background: radial-gradient(circle, rgba(42,123,136,0.55), transparent 60%);
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  filter: blur(110px); pointer-events: none;
}
.lp-cta-strip h2 { color: #fff; font-size: clamp(34px, 4.6vw, 56px); font-weight: 800; letter-spacing: -0.025em; line-height: 1.05; }
.lp-cta-strip h2 em { color: var(--brand-gold); font-style: normal; }
.lp-cta-strip p { color: rgba(255,255,255,0.72); margin: 20px auto 0; max-width: 560px; font-size: 18px; }
.lp-cta-strip .cta-row { margin-top: 36px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; position: relative; }

/* ---------- TOP CTA RIBBON ---------- */
.lp-topcta {
  background: linear-gradient(90deg, var(--brand-teal), var(--brand-teal-dark));
  color: #fff;
  font-family: var(--font-mono);
  font-weight: 700; font-size: 12px;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 10px 16px;
  display: flex; align-items: center; justify-content: center; gap: 14px;
  flex-wrap: wrap;
  text-align: center;
}
.lp-topcta a {
  color: #fff; text-decoration: underline; text-underline-offset: 3px;
  text-decoration-color: rgba(255,255,255,0.45);
}
.lp-topcta a:hover { text-decoration-color: #fff; }
.lp-topcta .dot { opacity: 0.55; }

/* ---------- INDUSTRY GRID ---------- */
.lp-industry-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.lp-industry-card {
  background: var(--bg-surface);
  border: 1px solid var(--brand-charcoal-10);
  border-radius: 18px;
  padding: 28px;
  display: flex; flex-direction: column; gap: 14px;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.lp-industry-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--brand-teal); }
.lp-industry-card .lp-industry-eye {
  font-family: var(--font-mono); font-weight: 700; font-size: 11px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--brand-teal);
}
.lp-industry-card h3 { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.18; }
.lp-industry-card p { font-size: 14.5px; color: var(--fg-2); line-height: 1.6; }
.lp-industry-card ul { margin: 6px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.lp-industry-card ul li { display: flex; gap: 8px; align-items: flex-start; color: var(--fg-2); }
.lp-industry-card ul li i { width: 14px; height: 14px; color: var(--brand-teal); flex-shrink: 0; margin-top: 3px; }
@media (max-width: 1023px) { .lp-industry-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .lp-industry-grid { grid-template-columns: 1fr; } }

/* ---------- TWO-UP responsive ---------- */
@media (max-width: 1023px) {
  .lp-hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .lp-hero-viz { aspect-ratio: 4 / 3; }
  .lp-kvs { grid-template-columns: 1fr; }
  .lp-compare { grid-template-columns: 1fr; }
  .lp-compare > div { border-right: none; }
  .lp-vs { grid-template-columns: 1fr; }
}

/* ---------- diagram primitives (svg classes) ---------- */
.dgr-node {
  fill: #fff;
  stroke: rgba(45,49,54,0.18);
  stroke-width: 1.25;
}
.dgr-node-teal { fill: rgba(42,123,136,0.10); stroke: var(--brand-teal); stroke-width: 1.5; }
.dgr-node-gold { fill: rgba(197,160,101,0.18); stroke: var(--brand-gold); stroke-width: 1.5; }
.dgr-node-clay { fill: rgba(188,108,88,0.18); stroke: var(--brand-clay); stroke-width: 1.5; }
.dgr-node-charcoal { fill: rgba(45,49,54,0.08); stroke: var(--brand-charcoal); stroke-width: 1.5; }
.dgr-line { fill: none; stroke: rgba(45,49,54,0.40); stroke-width: 1.4; stroke-dasharray: 4 4; animation: dashflow 1.4s linear infinite; }
.dgr-line-solid { fill: none; stroke: var(--brand-teal); stroke-width: 1.6; }
.dgr-label { font-family: var(--font-mono); font-size: 10px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; fill: var(--brand-charcoal); }
.dgr-label-muted { fill: var(--brand-charcoal-70); }
.dgr-title { font-family: 'Outfit', sans-serif; font-size: 13px; font-weight: 600; fill: var(--brand-charcoal); }
.dgr-body { font-family: 'Outfit', sans-serif; font-size: 11px; font-weight: 500; fill: var(--brand-charcoal-70); }

@keyframes lp-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.lp-float { animation: lp-float 6s ease-in-out infinite; transform-origin: center; }
@keyframes lp-pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }
.lp-pulse { animation: lp-pulse 2.4s ease-in-out infinite; }

/* spacing utilities specific to landing pages */
.lp-section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.lp-section-head .eyebrow { color: var(--brand-teal); display: block; margin-bottom: 14px; }
.lp-section-head h2 { margin-bottom: 16px; }
.lp-section-head p { font-size: 18px; color: var(--fg-2); }
