/* Marketing site styles — extracted from web/marketing/d.html 2026-07-31.
   Previously 16KB of inline <style> in a static file, which is why the
   homepage could not share a layout or a stylesheet with any other page.
   Served from /static/css/ so it is cached across pages instead of
   re-sent on every load. */

/* NOTE: the site header and footer are NOT styled here. They moved to the
   shared .as-header / .as-footer rules in app.css when the homepage became
   a view (2026-07-31), so both layouts render identical chrome. The old
   `nav {}` and `footer {}` element selectors were removed — they matched
   the new markup and fought it. Keep chrome out of this file. */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

    :root {
      --navy:   #151f3c;
      --navy2:  #0f1a30;
      --accent: #fec810;
      --green:  #16a34a;
      --yellow: #ca8a04;
      --red:    #dc2626;
      --gray:   #6b7280;
      --border: #e5e7eb;
      --bg:     #f5f5f7;
    }

    html { scroll-behavior: smooth; }
    body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
           font-size: 16px; line-height: 1.6; color: var(--navy); background: #fff; }
    a { color: inherit; text-decoration: none; }


    /* ── Sections ── */
    section { padding: 96px 24px; }
    .inner  { max-width: 1100px; margin: 0 auto; }
    .inner-sm { max-width: 720px; margin: 0 auto; }

    /* ── Hero ── */
    .hero {
      background: var(--navy); color: #fff;
      padding: 100px 24px 80px; text-align: center;
    }
    .hero-eyebrow {
      display: inline-block;
      background: rgba(254,200,16,0.15); color: #fec810;
      font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
      padding: 4px 12px; border-radius: 99px; margin-bottom: 24px;
    }
    .hero h1 {
      font-size: clamp(38px, 5.5vw, 66px);
      font-weight: 800; line-height: 1.1; letter-spacing: -0.03em;
      max-width: 820px; margin: 0 auto 24px;
    }
    .hero h1 em { color: #818cf8; font-style: normal; }
    .hero p { font-size: 19px; color: #94a3b8; max-width: 620px; margin: 0 auto 40px; line-height: 1.6; }
    .hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
    .btn-primary {
      background: var(--navy); color: #fff; padding: 14px 28px; border-radius: 10px;
      font-size: 16px; font-weight: 700; display: inline-flex; align-items: center; gap: 10px;
    }
    .btn-primary:hover { background: var(--navy2); }
    .btn-secondary {
      background: rgba(255,255,255,0.08); color: #fff; padding: 14px 28px; border-radius: 10px;
      font-size: 16px; font-weight: 600; border: 1px solid rgba(255,255,255,0.15);
    }
    .btn-secondary:hover { background: rgba(255,255,255,0.14); }
    /* Sizes the icon inside the hero CTAs. Lives here, not with the site
       chrome — the old nav used the same class, and deleting the nav rules
       took this with it, which blew the hero buttons up to three lines. */
    .slack-icon { width: 18px; height: 18px; flex-shrink: 0; }
    .teams-icon { width: 18px; height: 18px; flex-shrink: 0; }

    .btn-slack {
      display: inline-flex; align-items: center; gap: 10px;
      background: #fff; color: var(--navy); padding: 14px 22px; border-radius: 10px;
      font-size: 16px; font-weight: 700; border: 1px solid rgba(255,255,255,0.2);
      box-shadow: 0 10px 24px rgba(0,0,0,0.18);
    }
    .btn-slack:hover { background: #f8fafc; }
    .btn-teams {
      display: inline-flex; align-items: center; gap: 10px;
      background: rgba(255,255,255,0.08); color: #fff; padding: 14px 22px; border-radius: 10px;
      font-size: 16px; font-weight: 700; border: 1px solid rgba(255,255,255,0.15);
    }
    .btn-teams:hover { background: rgba(255,255,255,0.14); }
    .teams-icon { width: 20px; height: 20px; flex-shrink: 0; }

    /* ── Two-card hero ── */
    .hero-cards {
      margin: 64px auto 0; max-width: 860px;
      display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
    }
    @media (max-width: 680px) { .hero-cards { grid-template-columns: 1fr; } }
    .hero-card {
      background: #fff; border-radius: 14px; overflow: hidden;
      box-shadow: 0 24px 60px rgba(0,0,0,0.35); text-align: left;
    }
    .card-titlebar {
      background: #350d36; padding: 9px 14px;
      display: flex; align-items: center; gap: 6px;
      font-size: 12px; color: #fff; font-weight: 600;
    }
    .dot { width: 9px; height: 9px; border-radius: 50%; }
    .dot-r { background: #ff5f57; } .dot-y { background: #febc2e; } .dot-g { background: #28c840; }
    .card-label {
      margin-left: 6px; font-size: 11px; font-weight: 700;
      letter-spacing: 0.05em; text-transform: uppercase; color: rgba(255,255,255,0.6);
    }
    .slack-card-inner { padding: 14px 18px; color: var(--navy); }
    .slack-bot-header { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
    .bot-avatar {
      width: 32px; height: 32px; border-radius: 7px;
      background: var(--navy); display: flex; align-items: center;
      justify-content: center; font-size: 16px; flex-shrink: 0;
    }
    .bot-name { font-weight: 700; font-size: 13px; }
    .bot-tag {
      background: #e8f4fd; color: #0369a1; font-size: 10px;
      font-weight: 700; padding: 1px 4px; border-radius: 3px; margin-left: 4px;
    }
    .bot-time { color: var(--gray); font-size: 11px; margin-left: auto; }
    .slack-msg-title { font-weight: 700; font-size: 14px; margin-bottom: 2px; }
    .slack-msg-sub { font-size: 12px; color: var(--gray); margin-bottom: 10px; }
    .slack-divider { border: none; border-top: 1px solid var(--border); margin: 10px 0; }
    .slack-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 8px; }
    .slack-field label { font-size: 10px; color: var(--gray); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; display: block; }
    .slack-field span { font-size: 12px; font-weight: 500; }
    .risk-badge { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 99px; }
    .risk-red { background: #fee2e2; color: var(--red); }
    .risk-yellow { background: #fef9c3; color: var(--yellow); }
    .risk-green { background: #dcfce7; color: var(--green); }
    .redline-badge { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 99px; background: #ede9fe; color: #7c3aed; }
    .slack-actions { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
    .slack-btn { font-size: 12px; font-weight: 600; padding: 5px 12px; border-radius: 5px; border: 1px solid var(--border); }
    .slack-btn-primary { background: var(--navy); color: #fff; border-color: var(--navy); }
    .slack-btn-danger  { background: #fff; color: var(--red); border-color: #fca5a5; }

    /* ── Use case split ── */
    .use-cases { background: var(--bg); }
    .use-cases h2 { font-size: 36px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 12px; }
    .use-cases > .inner > p { font-size: 18px; color: var(--gray); margin-bottom: 56px; }
    .uc-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 24px; }
    @media (max-width: 900px) { .uc-grid { grid-template-columns: 1fr; } }
    .uc-card {
      background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 32px;
    }
    .uc-tag {
      display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 0.06em;
      text-transform: uppercase; padding: 4px 10px; border-radius: 99px; margin-bottom: 16px;
    }
    .uc-tag-nda { background: rgba(21,31,60,0.08); color: var(--navy); }
    .uc-tag-redline { background: #ede9fe; color: #7c3aed; }
    .uc-tag-deal { background: #f0fdf4; color: var(--green); }
    .uc-card h3 { font-size: 22px; font-weight: 800; margin-bottom: 10px; letter-spacing: -0.02em; }
    .uc-card p { font-size: 15px; color: var(--gray); line-height: 1.6; margin-bottom: 20px; }
    .uc-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
    .uc-list li { font-size: 14px; display: flex; align-items: flex-start; gap: 8px; }
    .uc-list li::before { content: '\2713'; font-weight: 700; flex-shrink: 0; }
    .uc-list-nda li::before { color: var(--accent); }
    .uc-list-redline li::before { color: #7c3aed; }
    .uc-list-deal li::before { color: var(--green); }

    /* ── How it works ── */
    .hiw { text-align: center; }
    .hiw h2 { font-size: 36px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 12px; }
    .hiw > .inner-sm > p { font-size: 18px; color: var(--gray); margin-bottom: 64px; }
    .steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; margin-top: 48px; }
    .step { padding: 28px; background: var(--bg); border-radius: 12px; text-align: left; }
    .step-num { width: 34px; height: 34px; border-radius: 50%; background: var(--navy); color: #fff; font-size: 14px; font-weight: 800; display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
    .step h3 { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
    .step p { font-size: 13px; color: var(--gray); line-height: 1.6; }
    .step code { background: var(--navy); color: #fec810; font-size: 11px; padding: 2px 6px; border-radius: 4px; font-family: 'SF Mono', 'Fira Code', monospace; }

    /* ── Risk ── */
    .risk-demo { text-align: center; background: var(--bg); }
    .risk-demo h2 { font-size: 36px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 12px; }
    .risk-demo > .inner-sm > p { font-size: 18px; color: var(--gray); margin-bottom: 48px; }
    .risk-row { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
    .risk-pill { display: flex; align-items: flex-start; gap: 14px; background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 20px 24px; max-width: 300px; text-align: left; }
    .risk-dot { width: 13px; height: 13px; border-radius: 50%; flex-shrink: 0; margin-top: 4px; }
    .risk-dot-g { background: var(--green); } .risk-dot-y { background: #eab308; } .risk-dot-r { background: var(--red); }
    .risk-pill h4 { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
    .risk-pill p  { font-size: 13px; color: var(--gray); line-height: 1.5; }

    /* ── Features ── */
    .features { }
    .features h2 { font-size: 36px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 8px; }
    .features > .inner > p { font-size: 18px; color: var(--gray); margin-bottom: 56px; }
    .feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
    .feature-card { background: var(--bg); border: 1px solid var(--border); border-radius: 14px; padding: 28px; }
    .feature-icon { font-size: 30px; margin-bottom: 12px; }
    .feature-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
    .feature-card p { font-size: 14px; color: var(--gray); line-height: 1.6; }
    .feature-tag { display: inline-block; margin-top: 10px; font-size: 11px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: #4338ca; background: rgba(99,102,241,0.10); padding: 3px 8px; border-radius: 5px; }
    .feature-tag-both { color: #475569; background: #f1f5f9; }
    .feature-tag-deal { color: var(--green); background: #f0fdf4; }

    /* ── Pricing ── */
    .pricing { background: var(--bg); text-align: center; }
    .pricing h2 { font-size: 36px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 12px; }
    .pricing > .inner > p { font-size: 18px; color: var(--gray); margin-bottom: 56px; }
    .pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; align-items: start; }
    .pricing-card { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 32px 28px; text-align: left; position: relative; }
    .pricing-card.featured { background: var(--navy); color: #fff; border-color: var(--navy); }
    .featured-badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--accent); color: #151f3c; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; padding: 4px 12px; border-radius: 99px; white-space: nowrap; }
    .plan-name { font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--gray); margin-bottom: 8px; }
    .featured .plan-name { color: #94a3b8; }
    .plan-price { font-size: 42px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
    .plan-price sup { font-size: 22px; font-weight: 700; vertical-align: top; margin-top: 8px; }
    .plan-price span { font-size: 16px; font-weight: 500; color: var(--gray); }
    .featured .plan-price span { color: #94a3b8; }
    .plan-tagline { font-size: 14px; color: var(--gray); margin: 8px 0 24px; }
    .featured .plan-tagline { color: #94a3b8; }
    .plan-divider { border: none; border-top: 1px solid var(--border); margin: 20px 0; }
    .featured .plan-divider { border-color: rgba(255,255,255,0.12); }
    .plan-features { list-style: none; display: flex; flex-direction: column; gap: 10px; }
    .plan-features li { font-size: 14px; display: flex; align-items: flex-start; gap: 8px; }
    .plan-features li::before { content: '\2713'; color: var(--green); font-weight: 700; flex-shrink: 0; }
    .featured .plan-features li::before { color: #4ade80; }
    .plan-features li.excluded { opacity: 0.5; }
    .plan-features li.excluded::before { content: '\2717'; color: var(--gray); }
    .featured .plan-features li.excluded::before { color: #64748b; }
    .plan-btn { display: block; width: 100%; text-align: center; margin-top: 28px; padding: 12px; border-radius: 8px; font-size: 15px; font-weight: 700; background: var(--navy); color: #fff; }
    .plan-btn:hover { background: var(--navy2); }
    .featured .plan-btn { background: var(--accent); color: #151f3c; }
    .featured .plan-btn:hover { background: #e6ac00; }
    .plan-btn-outline { display: block; width: 100%; text-align: center; margin-top: 28px; padding: 12px; border-radius: 8px; font-size: 15px; font-weight: 700; border: 1px solid var(--border); color: var(--navy); }
    .plan-btn-outline:hover { background: var(--bg); }
    .plan-limit { font-size: 28px; font-weight: 800; margin: 4px 0 0; letter-spacing: -0.02em; }
    .plan-limit-label { font-size: 13px; color: var(--gray); }
    .featured .plan-limit-label { color: #94a3b8; }

    /* ── CTA ── */
    .cta-section { background: var(--navy); color: #fff; text-align: center; }
    .cta-section h2 { font-size: 42px; font-weight: 800; letter-spacing: -0.03em; margin-bottom: 16px; }
    .cta-section p { font-size: 18px; color: #94a3b8; margin-bottom: 40px; }
    .cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

    /* ── Footer ── */ .footer-links a:hover { color: #fff; }

    @media (max-width: 640px) {
      section { padding: 64px 20px; }
      .hero { padding: 72px 20px 56px; }
      .hero h1 { font-size: 34px; }
      .pricing-grid { grid-template-columns: 1fr; }
      .uc-grid { grid-template-columns: 1fr; }
    }

/* ── Collision overrides: app.css classes that also exist here ──────────────
   The homepage now loads app.css (it never did as a static file), so any class
   name defined in BOTH stylesheets is a conflict. app.css wins on properties
   this file does not explicitly set — which is exactly how the 5-step section
   broke: app.css's `.step { display: inline-flex }` (the setup-wizard stepper
   pill) applied to the homepage's step CARDS, putting the number beside the
   heading instead of above it.

   Scoped under body.as-marketing so they outrank app.css without affecting the
   app itself. tests/marketingCssIsolation.test.js fails when a NEW collision
   appears, so the next one is caught at build time rather than by eye. */

body.as-marketing .step {
  display: block;              /* app.css: inline-flex (wizard stepper pill) */
  align-items: initial;
  gap: initial;
  border-radius: 12px;
  border: 0;
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
}
body.as-marketing .btn-slack  { background: #fff; }   /* app.css: --as-slack  */
body.as-marketing .risk-pill  { border: 0; }          /* app.css: pill border */
