/* ===================================================
   FrontSafe SEO Pages — Shared Stylesheet
   Unbounded (display) + Onest (body), Teal accent
   =================================================== */

:root {
  --accent: #00d4aa;
  --accent-dark: #00b894;
  --accent-light: #e6faf5;
  --navy: #0c1222;
  --white: #ffffff;
  --bg: #fafbfc;
  --bg-alt: #f3f5f7;
  --ink: #1a1f36;
  --ink-secondary: #5a6178;
  --ink-muted: #9ca3b8;
  --border: #e5e8ee;
  --font-display: 'Unbounded', sans-serif;
  --font-body: 'Onest', -apple-system, BlinkMacSystemFont, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --r-md: 20px;
  --r-lg: 28px;
  --sh-card: 0 2px 12px rgba(0,0,0,0.04), 0 0 0 1px rgba(0,0,0,0.03);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--white);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
main { display: block; }

/* ————— NAV ————— */
.seo-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}
.seo-nav-inner {
  max-width: 1100px; margin: 0 auto; padding: 0 32px;
  display: flex; align-items: center; justify-content: space-between;
}
.seo-nav-brand {
  font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; color: var(--ink);
}
.seo-nav-brand span { color: var(--accent); }
.seo-nav-links { display: flex; gap: 24px; align-items: center; }
.seo-nav-links a { font-size: 0.9rem; color: var(--ink-secondary); transition: color 0.2s; }
.seo-nav-links a:hover { color: var(--accent); }
.seo-nav-cta {
  background: var(--accent); color: var(--white); padding: 10px 24px;
  border-radius: 999px; font-weight: 600; font-size: 0.9rem; transition: background 0.2s;
}
.seo-nav-cta:hover { background: var(--accent-dark); }

/* ————— LAYOUT ————— */
.container { max-width: 1100px; margin: 0 auto; padding: 0 32px; }

/* ————— BREADCRUMBS ————— */
.seo-breadcrumbs { padding: 16px 0 0; font-size: 0.85rem; color: var(--ink-muted); }
.seo-breadcrumbs a { color: var(--accent); }

/* ————— HERO ————— */
.seo-hero { padding: 100px 0 80px; }
.seo-hero--green { background: linear-gradient(180deg, var(--accent-light) 0%, var(--white) 100%); }
.seo-hero--mint { background: linear-gradient(180deg, #f0fdf9 0%, var(--white) 100%); }
.seo-hero--blue { background: linear-gradient(180deg, #f0f7ff 0%, var(--white) 100%); }
.seo-hero--violet { background: linear-gradient(180deg, #f5f0ff 0%, var(--white) 100%); }
.seo-hero h1 {
  font-family: var(--font-display); font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 700; line-height: 1.2; letter-spacing: -0.02em;
  margin-bottom: 24px; max-width: 720px;
}
.seo-hero h1 em { font-style: normal; color: var(--accent); }
.seo-hero-sub {
  font-size: 1.15rem; color: var(--ink-secondary); max-width: 620px;
  margin-bottom: 40px; line-height: 1.7;
}
.seo-hero-cta {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--accent); color: var(--white); padding: 16px 36px;
  border-radius: 999px; font-weight: 600; font-size: 1.05rem;
  transition: background 0.2s, transform 0.2s;
}
.seo-hero-cta:hover { background: var(--accent-dark); transform: translateY(-2px); }

/* ————— STATS ————— */
.seo-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  padding: 60px 0;
}
.seo-stat {
  text-align: center; padding: 32px 16px;
  background: var(--white); border-radius: var(--r-md);
  box-shadow: var(--sh-card);
}
.seo-stat-num {
  font-family: var(--font-display); font-size: 2.2rem; font-weight: 700;
  color: var(--accent); display: block;
}
.seo-stat-label { font-size: 0.9rem; color: var(--ink-secondary); margin-top: 8px; }

/* ————— SECTIONS ————— */
.seo-section { padding: 80px 0; }
.seo-section--alt { background: var(--bg-alt); }
.seo-section h2 {
  font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700; line-height: 1.2; margin-bottom: 20px;
}
.seo-section h2 em { font-style: normal; color: var(--accent); }
.seo-section > .container > p,
.seo-section p.seo-lead {
  color: var(--ink-secondary); max-width: 680px; margin-bottom: 16px;
}

/* ————— FEATURE GRID ————— */
.seo-features {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  margin-top: 48px;
}
.seo-feature {
  background: var(--white); border-radius: var(--r-md);
  padding: 32px; box-shadow: var(--sh-card);
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}
.seo-feature:hover { transform: translateY(-4px); box-shadow: 0 8px 32px rgba(0,0,0,0.08); }
.seo-feature-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--accent-light); display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px; font-size: 1.5rem;
}
.seo-feature h3 {
  font-family: var(--font-display); font-size: 1rem; font-weight: 600;
  margin-bottom: 12px;
}
.seo-feature p { font-size: 0.92rem; color: var(--ink-secondary); margin: 0; }

/* ————— TWO COLUMN ————— */
.seo-two-col {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px;
  align-items: center;
}
.seo-two-col--reverse .seo-two-col-text { order: -1; }
.seo-two-col-visual {
  background: var(--accent-light); border-radius: var(--r-lg);
  padding: 48px; display: flex; align-items: center; justify-content: center;
  min-height: 320px;
}
.seo-two-col-visual-inner {
  background: var(--white); border-radius: var(--r-md); padding: 24px;
  box-shadow: var(--sh-card); width: 100%; max-width: 380px;
}

/* ————— CHAT BUBBLES ————— */
.seo-chat-bubble {
  padding: 12px 16px; border-radius: 16px; margin-bottom: 12px;
  font-size: 0.9rem; line-height: 1.5; max-width: 85%;
}
.seo-chat-bubble--user {
  background: var(--accent); color: var(--white); margin-left: auto;
  border-bottom-right-radius: 4px;
}
.seo-chat-bubble--bot {
  background: var(--bg-alt); color: var(--ink);
  border-bottom-left-radius: 4px;
}

/* ————— COMPARISON TABLE ————— */
.seo-compare { width: 100%; border-collapse: collapse; margin-top: 32px; }
.seo-compare th, .seo-compare td {
  padding: 16px 20px; text-align: left;
  border-bottom: 1px solid var(--border); font-size: 0.95rem;
}
.seo-compare th {
  font-family: var(--font-display); font-size: 0.85rem; font-weight: 600;
  color: var(--ink-muted); text-transform: uppercase; letter-spacing: 0.05em;
}
.seo-compare td:first-child { font-weight: 600; }
.seo-compare .check { color: var(--accent); font-weight: 700; }
.seo-compare .cross { color: #e74c3c; }

/* ————— CALCULATOR ————— */
.seo-calc {
  background: var(--white); border-radius: var(--r-lg);
  padding: 48px; box-shadow: var(--sh-card);
  max-width: 600px; margin: 48px auto 0;
}
.seo-calc h3 {
  font-family: var(--font-display); font-size: 1.2rem;
  text-align: center; margin-bottom: 32px;
}
.seo-calc-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 0; border-bottom: 1px solid var(--border);
}
.seo-calc-row:last-child { border: none; padding-top: 24px; }
.seo-calc-label { font-size: 0.95rem; color: var(--ink-secondary); }
.seo-calc-value { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; }
.seo-calc-value--accent { color: var(--accent); }
.seo-calc-value--red { color: #e74c3c; }
.seo-calc-value--green { color: var(--accent); font-size: 1.3rem; }
.seo-calc-note { text-align: center; margin-top: 16px; font-size: 0.85rem; color: var(--ink-muted); }

/* ————— STEPS ————— */
.seo-steps {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px;
  margin-top: 48px;
}
.seo-step { text-align: center; position: relative; }
.seo-step::after {
  content: ''; position: absolute; top: 32px; right: -16px;
  width: 32px; height: 2px; background: var(--accent);
}
.seo-step:last-child::after { display: none; }
.seo-step-num {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--accent); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 1.5rem;
  margin: 0 auto 16px;
}
.seo-step h3 { font-family: var(--font-display); font-size: 0.9rem; font-weight: 600; margin-bottom: 8px; }
.seo-step p { font-size: 0.85rem; color: var(--ink-secondary); }

/* ————— INTEGRATIONS ————— */
.seo-integrations { display: flex; gap: 24px; flex-wrap: wrap; margin-top: 32px; }
.seo-int-card {
  background: var(--white); border-radius: var(--r-md); padding: 24px 32px;
  box-shadow: var(--sh-card); display: flex; align-items: center; gap: 16px;
  flex: 1; min-width: 220px;
}
.seo-int-card-icon { font-size: 2rem; }
.seo-int-card h3 { font-family: var(--font-display); font-size: 0.95rem; font-weight: 600; }
.seo-int-card p { font-size: 0.85rem; color: var(--ink-secondary); margin: 0; }

/* ————— FAQ ————— */
.seo-faq { margin-top: 48px; }
.seo-faq-item { border-bottom: 1px solid var(--border); padding: 24px 0; }
.seo-faq-q {
  font-family: var(--font-display); font-size: 1rem; font-weight: 600;
  cursor: pointer; display: flex; justify-content: space-between; align-items: center;
}
.seo-faq-q::after { content: '+'; font-size: 1.4rem; color: var(--accent); transition: transform 0.3s; }
.seo-faq-item.open .seo-faq-q::after { transform: rotate(45deg); }
.seo-faq-a {
  max-height: 0; overflow: hidden; transition: max-height 0.4s var(--ease);
  color: var(--ink-secondary); font-size: 0.95rem; line-height: 1.7;
}
.seo-faq-item.open .seo-faq-a { max-height: 500px; padding-top: 16px; }

/* ————— CTA SECTION ————— */
.seo-cta-section {
  padding: 100px 0; text-align: center;
  background: var(--navy); color: var(--white);
}
.seo-cta-section h2 { color: var(--white); margin-bottom: 16px; }
.seo-cta-section p { color: rgba(255,255,255,0.7); margin: 0 auto 40px; max-width: 500px; }
.seo-cta-btn {
  display: inline-flex; background: var(--accent); color: var(--white);
  padding: 18px 48px; border-radius: 999px; font-weight: 600; font-size: 1.1rem;
  transition: background 0.2s, transform 0.2s;
}
.seo-cta-btn:hover { background: var(--accent-dark); transform: translateY(-2px); }

/* ————— FOOTER ————— */
.seo-footer {
  padding: 40px 0; text-align: center; font-size: 0.85rem;
  color: var(--ink-muted); border-top: 1px solid var(--border);
}
.seo-footer a { color: var(--accent); }
.seo-footer-legal {
  margin-top: 12px; font-size: 0.8rem; color: var(--ink-muted);
}

/* ————— IN-BODY LINKS ————— */
.seo-link { color: var(--accent); border-bottom: 1px solid rgba(0,212,170,0.3); transition: border-color 0.2s; }
.seo-link:hover { border-color: var(--accent); }

/* ————— RESPONSIVE ————— */
@media (max-width: 768px) {
  .seo-stats { grid-template-columns: repeat(2, 1fr); }
  .seo-features { grid-template-columns: 1fr; }
  .seo-two-col { grid-template-columns: 1fr; gap: 32px; }
  .seo-two-col--reverse .seo-two-col-text { order: 0; }
  .seo-steps { grid-template-columns: repeat(2, 1fr); }
  .seo-step::after { display: none; }
  .seo-nav-links { display: none; }
  .seo-hero { padding: 60px 0 40px; }
  .seo-compare th, .seo-compare td { padding: 10px 8px; font-size: 0.85rem; }
}