/* Marketing site - reuses the app's own color tokens (--brand/--bg/--surface/... defined in
   app.css, loaded alongside this file) so the public site and the logged-in product look like one
   coherent brand, not two different apps stitched together. */

.mkt-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 48px;
  background: rgba(21, 14, 31, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}
.mkt-nav .mkt-brand { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 700; color: var(--text); text-decoration: none; }
.mkt-nav .mkt-links { display: flex; align-items: center; gap: 28px; }
.mkt-nav .mkt-links a { color: var(--muted); text-decoration: none; font-size: 14px; }
.mkt-nav .mkt-links a:hover { color: var(--text); }
.mkt-nav .mkt-cta { display: flex; align-items: center; gap: 12px; }

.mkt-hero {
  padding: 96px 48px 80px;
  text-align: center;
  background: linear-gradient(160deg, #2a1a40 0%, #150e1f 60%);
}
.mkt-hero h1 {
  font-size: 48px;
  line-height: 1.15;
  margin: 0 0 20px;
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text);
}
.mkt-hero p.mkt-subhead {
  font-size: 19px;
  color: var(--muted);
  max-width: 620px;
  margin: 0 auto 34px;
  line-height: 1.5;
}
.mkt-hero .mkt-cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.mkt-hero .mkt-cta-row .btn { padding: 13px 28px; font-size: 15px; }

.mkt-section { padding: 80px 48px; max-width: 1080px; margin: 0 auto; }
.mkt-section-label { text-align: center; text-transform: uppercase; letter-spacing: 0.08em; font-size: 12px; color: var(--brand); font-weight: 700; margin-bottom: 12px; }
.mkt-section h2 { text-align: center; font-size: 32px; margin: 0 0 14px; color: var(--text); }
.mkt-section p.mkt-lead { text-align: center; color: var(--muted); max-width: 600px; margin: 0 auto 48px; font-size: 16px; line-height: 1.5; }

/* About Us page (src/views/marketing/about.ejs) - same layout language as the homepage
   (.mkt-hero/.mkt-section/.mkt-card), plus a couple of page-specific pieces: the small "Who we
   are" / "Our story" style label above a hero headline, and the founding-story text block. */
.mkt-eyebrow { text-align: center; text-transform: uppercase; letter-spacing: 0.08em; font-size: 12px; color: var(--brand); font-weight: 700; margin-bottom: 14px; }
.mkt-story-block { max-width: 720px; margin: 0 auto; }
.mkt-story-block p { color: var(--muted); font-size: 16px; line-height: 1.75; margin: 0 0 20px; }
.mkt-story-block p:last-child { color: var(--text); font-weight: 600; margin-bottom: 0; }

.mkt-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.mkt-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 860px) { .mkt-grid-3, .mkt-grid-4 { grid-template-columns: 1fr; } }

.mkt-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 28px;
}
.mkt-card .mkt-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: rgba(167, 139, 250, 0.16);
  display: flex; align-items: center; justify-content: center;
  color: var(--brand);
  font-size: 20px;
  margin-bottom: 16px;
}
.mkt-card h3 { margin: 0 0 8px; font-size: 17px; color: var(--text); }
.mkt-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }

.mkt-steps { display: flex; flex-direction: column; gap: 0; max-width: 720px; margin: 0 auto; }
.mkt-step { display: flex; gap: 20px; padding: 24px 0; border-bottom: 1px solid var(--border); }
.mkt-step:last-child { border-bottom: none; }
.mkt-step .mkt-step-num {
  flex-shrink: 0;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--brand);
  color: #1e1030;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.mkt-step h3 { margin: 4px 0 6px; font-size: 16px; color: var(--text); }
.mkt-step p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }

.mkt-pricing-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 32px 26px;
  display: flex;
  flex-direction: column;
}
.mkt-pricing-card.mkt-featured { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); }
.mkt-pricing-card .mkt-plan-name { font-size: 15px; font-weight: 700; color: var(--brand); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 10px; }
.mkt-pricing-card .mkt-plan-price { font-size: 38px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.mkt-pricing-card .mkt-plan-price span { font-size: 14px; font-weight: 400; color: var(--muted); }
.mkt-pricing-card .mkt-plan-desc { color: var(--muted); font-size: 13px; margin-bottom: 20px; min-height: 34px; }
.mkt-pricing-card ul { list-style: none; padding: 0; margin: 0 0 24px; flex: 1; }
.mkt-pricing-card li { color: var(--text); font-size: 14px; padding: 6px 0; border-top: 1px solid var(--border); }
.mkt-pricing-card li:first-child { border-top: none; }

.mkt-cta-band {
  background: linear-gradient(135deg, var(--brand-dark), var(--brand));
  border-radius: 14px;
  margin: 0 48px 80px;
  padding: 56px 40px;
  text-align: center;
}
.mkt-cta-band h2 { margin: 0 0 14px; font-size: 28px; color: #1e1030; }
.mkt-cta-band p { margin: 0 0 26px; color: #2a1a40; font-size: 15px; }
.mkt-cta-band .btn { background: #1e1030; color: #ece6f7; }
.mkt-cta-band .btn:hover { background: #0f0a18; }

.mkt-footer { border-top: 1px solid var(--border); padding: 40px 48px; text-align: center; color: var(--muted); font-size: 13px; }
.mkt-footer a { color: var(--muted); margin: 0 10px; }

/* Participant landing page (src/views/marketing/participants.ejs) and the two-audience split on the
   homepage. The public site now serves two completely different readers - a company deciding
   whether to buy, and a person deciding whether to earn - so these are the few pieces the
   company-facing layout language above didn't already cover. */

.mkt-hero-note { margin: 22px 0 0; color: var(--muted); font-size: 13px; }

/* The quality-to-pay figure. Text inside an inline <svg> is not styled by the surrounding
   rules (SVG has its own presentation model and no inherited font-size from .mkt-section), so
   these set it explicitly. Colors come from the same tokens as everything else, which is also why
   the figure follows the theme rather than being a flat exported image. */
.mkt-pay-figure { max-width: 620px; margin: 0 auto 44px; }
.mkt-pay-figure text { font-family: inherit; }
.mkt-pay-label { font-size: 13px; font-weight: 600; fill: var(--text); }
.mkt-pay-axis { font-size: 12px; fill: var(--muted); }
.mkt-pay-label-end { text-anchor: end; }
.mkt-pay-axis-y { text-anchor: middle; }

/* The "two ways in" split. Two cards side by side, the participant one visually distinguished so a
   visitor scanning the page can tell at a glance that it is a different offer, not a second plan. */
.mkt-split { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 900px; margin: 0 auto; }
@media (max-width: 860px) { .mkt-split { grid-template-columns: 1fr; } }
.mkt-split-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
}
.mkt-split-card.mkt-split-participant { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); }
.mkt-split-card .mkt-split-eyebrow { text-transform: uppercase; letter-spacing: 0.08em; font-size: 12px; font-weight: 700; color: var(--brand); margin-bottom: 12px; }
.mkt-split-card h3 { margin: 0 0 10px; font-size: 21px; color: var(--text); }
.mkt-split-card p { margin: 0 0 22px; color: var(--muted); font-size: 15px; line-height: 1.55; flex: 1; }
.mkt-split-card .btn { align-self: flex-start; }

/* Security Status page (src/views/securityStatus/index.ejs) - modeled after public status-page
   sites like statusgator: a big overall banner, then each check category as a card with a colored
   status dot per check. Green = no issues (pass), yellow = warnings, red = issues (fail) - the same
   traffic-light convention those sites use for "Up"/"Down". */
.status-hero {
  padding: 72px 48px 48px;
  text-align: center;
  background: linear-gradient(160deg, #2a1a40 0%, #150e1f 60%);
}
.status-hero h1 { font-size: 40px; margin: 0 0 14px; color: var(--text); }
.status-hero p.mkt-subhead { font-size: 17px; }

.status-banner {
  max-width: 900px;
  margin: -28px auto 0;
  padding: 22px 30px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  border: 1px solid var(--border);
  position: relative;
  z-index: 2;
}
.status-banner.status-pass { background: var(--ok-bg); border-color: var(--ok); }
.status-banner.status-warn { background: var(--warn-bg); border-color: var(--warn); }
.status-banner.status-fail { background: var(--danger-bg); border-color: var(--danger); }
.status-banner .status-banner-title { display: flex; align-items: center; gap: 12px; font-size: 19px; font-weight: 700; color: var(--text); }
.status-banner .status-banner-meta { color: var(--muted); font-size: 13px; }
.status-dot {
  width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; display: inline-block;
}
.status-dot.status-pass { background: var(--ok); box-shadow: 0 0 0 4px var(--ok-bg); }
.status-dot.status-warn { background: var(--warn); box-shadow: 0 0 0 4px var(--warn-bg); }
.status-dot.status-fail { background: var(--danger); box-shadow: 0 0 0 4px var(--danger-bg); }

.status-categories { max-width: 900px; margin: 40px auto 80px; padding: 0 48px; }
.status-category-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 18px;
  overflow: hidden;
}
.status-category-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 22px;
  border-bottom: 1px solid var(--border);
  gap: 12px;
  flex-wrap: wrap;
}
.status-category-header h3 { margin: 0; font-size: 15px; color: var(--text); }
.status-pill {
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  white-space: nowrap;
}
.status-pill.status-pass { background: var(--ok-bg); color: var(--ok); }
.status-pill.status-warn { background: var(--warn-bg); color: var(--warn); }
.status-pill.status-fail { background: var(--danger-bg); color: var(--danger); }

.status-check-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 22px;
  border-bottom: 1px solid var(--border);
}
.status-check-row:last-child { border-bottom: none; }
.status-check-row .status-dot { margin-top: 5px; }
.status-check-name { font-size: 14px; color: var(--text); font-weight: 600; margin-bottom: 3px; }
.status-check-message { font-size: 13px; color: var(--muted); line-height: 1.5; }

.status-footnote { text-align: center; color: var(--muted); font-size: 13px; margin: -20px auto 60px; }

/* "Automatic Remediation" section - the audit trail of fixes the scanner applied to itself. Shares
   the .status-category-card / .status-check-row vocabulary above so a repair entry reads visually
   like a check result, which is what it is: a check that was failing and what happened next. */
.status-remediation { max-width: 900px; margin: 0 auto 40px; padding: 0 48px; }
.status-remediation h2 { font-size: 20px; color: var(--text); margin: 0 0 8px; }
.status-remediation-intro { font-size: 13px; color: var(--muted); line-height: 1.6; margin: 0 0 18px; }
.status-remediation-intro code {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 5px;
  font-size: 12px;
}
.status-remediation .status-check-name .status-pill { margin-left: 8px; }

/* Get Started signup wizard */
.wizard-page {
  min-height: 100vh;
  background: linear-gradient(160deg, #2a1a40 0%, #0f0a18 100%);
  padding: 48px 20px;
}
.wizard-box {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 40px 44px;
  border-radius: 10px;
  max-width: 560px;
  margin: 0 auto;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.wizard-box h1 { font-size: 22px; margin: 0 0 6px; color: var(--text); }
.wizard-box .wizard-subtitle { color: var(--muted); font-size: 13px; margin-bottom: 24px; }
.wizard-steps { display: flex; gap: 8px; justify-content: center; margin-bottom: 28px; }
.wizard-steps span {
  width: 32px; height: 4px; border-radius: 2px; background: var(--border);
}
.wizard-steps span.done, .wizard-steps span.active { background: var(--brand); }
.wizard-plan-option {
  display: block;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 12px;
  cursor: pointer;
}
.wizard-plan-option:has(input:checked) { border-color: var(--brand); background: rgba(167,139,250,0.08); }
.wizard-plan-option .wizard-plan-price { color: var(--muted); font-size: 13px; }

/* ==============================================================================================
   Small screens (marketing site + signup wizard)
   ==============================================================================================
   These rules live here rather than in app.css for a concrete cascade reason: the wizard pages
   load app.css FIRST and marketing.css SECOND. Media queries add no specificity, so a
   `.wizard-box` rule inside a media query in app.css would still lose to the plain `.wizard-box`
   rule in this file simply because this file comes later. Putting the small-screen overrides in
   the same (later) stylesheet is what makes them actually apply.
   ============================================================================================== */

/* The wrapper around the links and CTAs is transparent to layout at desktop widths - `display:
   contents` means it generates no box at all, so .mkt-nav still lays out exactly three flex
   children (brand, links, CTAs) precisely as it did before this wrapper existed. */
.mkt-nav-menu { display: contents; }
.mkt-nav-toggle { display: none; }

@media (max-width: 767px) {
  /* Five links plus two buttons plus the brand cannot share one row on a phone. An earlier attempt
     just set flex-wrap here, which was not good enough: this bar is position:sticky, so wrapping
     turned it into three or four rows that follow the visitor down the page and swallow most of a
     small screen. Instead the links and CTAs collapse behind a hamburger and open as one vertical
     panel, leaving the sticky bar a single compact row. */
  .mkt-nav {
    flex-wrap: wrap;
    gap: 10px;
    padding: 12px 16px;
  }

  .mkt-nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    width: 40px;
    height: 40px;
    padding: 8px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 6px;
    cursor: pointer;
  }
  .mkt-nav-toggle-bar { display: block; height: 2px; background: var(--text); border-radius: 2px; }

  /* Closed by default; `display: contents` is dropped here so the wrapper becomes a real box that
     can be hidden and, when open, laid out as a full-width column below the brand row. */
  .mkt-nav-menu {
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    gap: 4px;
    padding-top: 8px;
    border-top: 1px solid var(--border);
  }
  .mkt-nav.is-open .mkt-nav-menu { display: flex; }

  /* Links become full-width rows with a comfortable tap target rather than a cramped inline list. */
  .mkt-nav .mkt-links { flex-direction: column; align-items: stretch; gap: 0; }
  .mkt-nav .mkt-links a { padding: 11px 4px; font-size: 15px; }
  .mkt-nav .mkt-cta { flex-direction: column; align-items: stretch; gap: 8px; padding: 8px 0 4px; }
  .mkt-nav .mkt-cta .btn { text-align: center; }

  .mkt-hero { padding: 48px 16px 40px; }
  .mkt-hero h1 { font-size: 30px; }
  .mkt-hero p.mkt-subhead { font-size: 15px; }
  .mkt-hero .mkt-cta-row .btn { padding: 12px 20px; }

  .mkt-section { padding: 40px 16px; }
  .mkt-card { padding: 20px; }

  /* Signup wizard: fill the screen instead of sitting in a 560px card with 44px of side padding,
     which leaves very little room for the actual fields on a 375px-wide phone. */
  .wizard-box {
    max-width: 100%;
    padding: 24px 16px;
    border-radius: 0;
    border-left: none;
    border-right: none;
  }
  .wizard-page { padding: 0; }
}
