/* =============================================================================
 * public.css — Shared styling for OnTrack's public (pre-login) content pages.
 * Layered on top of nicepage.css + index.css. Dark theme, matches the site
 * palette: background #1a1a2e, cards #243447, accent #478ac9, light accent
 * #8fbae4. Used by how-it-works.php, what-is-pov-poc.php, faq.php.
 * ========================================================================== */

.pub-page {
  background: #1a1a2e;
  color: #e0e0e0;
  font-family: 'Open Sans', sans-serif;
  line-height: 1.75;
}

/* Hero band at the top of each content page */
.pub-hero {
  background: linear-gradient(160deg, #243447 0%, #1a1a2e 100%);
  padding: 56px 0 44px;
  border-bottom: 1px solid rgba(71, 138, 201, 0.35);
}
.pub-hero .pub-wrap { max-width: 1140px; margin: 0 auto; padding: 0 44px; }
.pub-hero .pub-lede { max-width: 820px; }
.pub-hero h1 {
  color: #fff;
  font-size: 2.15rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.2px;
  margin: 0 0 14px;
}
.pub-hero .pub-lede {
  font-size: 1.15rem;
  color: #f0f0f0;
  margin: 0;
  max-width: 760px;
}

/* Main article column */
.pub-article { padding: 52px 0 72px; }
.pub-article .pub-wrap { max-width: 1140px; margin: 0 auto; padding: 0 44px; }
/* Keep running text at a readable measure while wide elements (tables, grids,
 * steppers, cards) use the full container width. */
.pub-article > .pub-wrap > p,
.pub-article > .pub-wrap > ul:not(.pub-icolist):not(.pub-check),
.pub-article > .pub-wrap > ol { max-width: 760px; }

.pub-article h2 {
  color: #fff;
  font-size: 1.55rem;
  font-weight: 700;
  margin: 40px 0 12px;
  letter-spacing: 0.2px;
}
.pub-article h2:first-child { margin-top: 0; }
.pub-article h3 {
  color: #fff;
  font-size: 1.2rem;
  font-weight: 700;
  margin: 28px 0 8px;
}
.pub-article p { font-size: 1.04rem; margin: 0 0 18px; }
.pub-article strong { color: #fff; }
.pub-article a { color: #478ac9; text-decoration: none; font-weight: 600; }
.pub-article a:hover { text-decoration: underline; }

.pub-article ul, .pub-article ol { margin: 0 0 20px; padding-left: 22px; }
.pub-article li { padding: 4px 0; font-size: 1.02rem; }

.pub-article ul.pub-check { list-style: none; padding-left: 0; }
.pub-article ul.pub-check li { padding: 6px 0; }
.pub-article ul.pub-check li::before {
  content: "\2713";
  color: #478ac9;
  font-weight: 700;
  margin-right: 10px;
}

/* Callout / key-fact box */
.pub-callout {
  background: #243447;
  border: 1px solid #478ac9;
  border-radius: 8px;
  padding: 18px 22px;
  margin: 0 0 26px;
}
.pub-callout p:last-child { margin-bottom: 0; }

/* Definition cards */
.pub-def {
  background: #202b3c;
  border-left: 3px solid #478ac9;
  border-radius: 6px;
  padding: 16px 20px;
  margin: 0 0 18px;
}
.pub-def .pub-def-term { color: #8fbae4; font-weight: 700; font-size: 1.05rem; }

/* Comparison / data tables */
.pub-table-wrap { overflow-x: auto; margin: 0 0 28px; }
.pub-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.97rem;
  background: #243447;
  border-radius: 8px;
  overflow: hidden;
}
.pub-table thead tr { background: #478ac9; color: #fff; text-align: left; }
.pub-table th { padding: 12px 16px; font-weight: 700; }
.pub-table td { padding: 11px 16px; vertical-align: top; }
.pub-table tbody tr { border-top: 1px solid #34506a; }
.pub-table td.pub-rowhead { color: #8fbae4; font-weight: 600; white-space: nowrap; }

/* FAQ list */
.pub-faq-item {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 20px 0;
}
.pub-faq-item:first-of-type { border-top: none; }
.pub-faq-item { max-width: 840px; }
.pub-faq-item h3 { margin: 0 0 8px; font-size: 1.12rem; }
.pub-faq-item p { margin: 0 0 8px; }
.pub-faq-item p:last-child { margin-bottom: 0; }

/* Cross-links row at the bottom of an article */
.pub-more {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 34px 0 0;
}
.pub-more a {
  display: inline-block;
  background: #243447;
  border: 1px solid #34506a;
  border-radius: 6px;
  padding: 12px 18px;
  color: #cfe0f2;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}
.pub-more a:hover { border-color: #478ac9; color: #fff; }

.pub-updated { color: rgba(255, 255, 255, 0.5); font-size: 0.85rem; margin: 6px 0 0; }

/* =============================================================================
 * Graphics: inline-SVG icons, badges, lifecycle stepper, dual cards, feature
 * grid, and the hero glow motif. All CSP-safe (no external assets) and themed
 * to match the brand (glowing blue #478ac9 / #8fbae4 on dark).
 * ========================================================================== */

/* Base icon */
.pub-ico { width: 1.4em; height: 1.4em; display: inline-block; vertical-align: middle; color: #8fbae4; flex-shrink: 0; }

/* Glowing circular icon badge (echoes the logo's blue ring) */
.pub-badge {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 50% 40%, #2b3d54 0%, #1d2838 100%);
  border: 1px solid #478ac9;
  box-shadow: 0 0 0 4px rgba(71, 138, 201, 0.12), 0 0 18px rgba(71, 138, 201, 0.35);
  flex-shrink: 0;
}
.pub-badge .pub-ico { width: 28px; height: 28px; color: #8fc4ff; }

/* Hero glow motif — decorative concentric ring, top-right of the hero */
.pub-hero { position: relative; overflow: hidden; }
.pub-hero-motif {
  position: absolute;
  top: -70px;
  right: -70px;
  width: 320px;
  height: 320px;
  color: #478ac9;
  opacity: 0.22;
  pointer-events: none;
}
.pub-hero .pub-wrap { position: relative; z-index: 1; }

/* Lifecycle stepper: Plan -> Launch -> Track -> Report */
.pub-steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin: 6px 0 34px;
  flex-wrap: wrap;
}
.pub-step {
  flex: 1 1 0;
  min-width: 150px;
  text-align: center;
  padding: 0 6px;
  position: relative;
}
.pub-step .pub-badge { margin: 0 auto 12px; }
.pub-step-num {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #478ac9;
  margin-bottom: 2px;
}
.pub-step-title { color: #fff; font-weight: 700; font-size: 1.05rem; margin: 0 0 4px; }
.pub-step-text { color: #c3c9d4; font-size: 0.9rem; line-height: 1.6; margin: 0; }
/* Connector arrow between steps (hidden on the last / on mobile) */
.pub-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 28px;
  right: -12px;
  width: 24px;
  height: 2px;
  background: linear-gradient(90deg, rgba(71,138,201,0.15), rgba(71,138,201,0.75));
}
@media (max-width: 700px) {
  .pub-step { flex-basis: 100%; display: flex; text-align: left; gap: 14px; align-items: flex-start; margin-bottom: 14px; }
  .pub-step .pub-badge { margin: 0; }
  .pub-step:not(:last-child)::after { display: none; }
}

/* Dual comparison cards (POC vs PoV) with icons */
.pub-dual { display: flex; gap: 18px; flex-wrap: wrap; margin: 0 0 26px; }
.pub-dual-card {
  flex: 1 1 260px;
  background: #202b3c;
  border: 1px solid #34506a;
  border-top: 3px solid #478ac9;
  border-radius: 8px;
  padding: 20px 22px;
}
.pub-dual-card .pub-badge { width: 48px; height: 48px; margin-bottom: 12px; }
.pub-dual-card .pub-badge .pub-ico { width: 24px; height: 24px; }
.pub-dual-card h3 { margin: 0 0 4px; font-size: 1.12rem; color: #fff; }
.pub-dual-card .pub-dual-q { color: #8fbae4; font-weight: 600; font-size: 0.9rem; margin: 0 0 10px; }
.pub-dual-card p { font-size: 0.96rem; margin: 0; color: #d5dae2; }

/* Feature grid with icons */
.pub-featgrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: 4px 0 28px;
}
.pub-feat {
  background: #202b3c;
  border: 1px solid #2c3a4d;
  border-radius: 8px;
  padding: 18px 18px;
}
.pub-feat .pub-badge { width: 46px; height: 46px; margin-bottom: 12px; }
.pub-feat .pub-badge .pub-ico { width: 23px; height: 23px; }
.pub-feat h3 { margin: 0 0 5px; font-size: 1.02rem; color: #fff; }
.pub-feat p { margin: 0; font-size: 0.92rem; color: #c3c9d4; line-height: 1.6; }

/* Icon check list (icons instead of glyph bullets) */
.pub-icolist { list-style: none; padding-left: 0; }
.pub-icolist li { display: flex; align-items: flex-start; gap: 11px; padding: 7px 0; font-size: 1.02rem; }
.pub-icolist li .pub-ico { width: 20px; height: 20px; color: #478ac9; margin-top: 3px; }

@media (max-width: 640px) {
  .pub-hero h1 { font-size: 1.7rem; }
  .pub-hero .pub-lede { font-size: 1.02rem; }
  .pub-article h2 { font-size: 1.35rem; }
  .pub-hero-motif { width: 220px; height: 220px; top: -50px; right: -50px; }
}

/* =============================================================================
 * Landing page (index.php) — full-bleed marketing bands that use the full width
 * of the viewport, with a wide centred content wrapper and multi-column grids.
 * Prefix: .lp-*  (kept separate from the .pub-* article styles).
 * ========================================================================== */

.lp-band { width: 100%; padding: 74px 0; font-family: 'Open Sans', sans-serif; }
.lp-band--dark { background: #1a1a2e; }
.lp-band--alt  { background: #14141f; }
.lp-band--panel{ background: #171a2b; }
.lp-band--cta  { background: linear-gradient(135deg, #243447 0%, #1a2740 55%, #12203a 100%); }

.lp-wrap { max-width: 1240px; margin: 0 auto; padding: 0 44px; }

.lp-eyebrow {
  display: inline-block;
  color: #6aa6df;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.lp-h2 {
  color: #fff;
  font-size: 2.15rem;
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: 0.2px;
  margin: 0 0 16px;
}
.lp-lead { color: #d5dae2; font-size: 1.14rem; line-height: 1.7; margin: 0 0 18px; }
.lp-lead strong { color: #fff; }
.lp-p { color: #c3c9d4; font-size: 1.02rem; line-height: 1.75; margin: 0 0 16px; }
.lp-p strong { color: #fff; }

/* Section header centred over a full-width band */
.lp-head { max-width: 780px; margin: 0 auto 44px; text-align: center; }
.lp-head .lp-h2 { font-size: 2.3rem; }
.lp-head .lp-lead { margin: 0 auto; }

/* Two-column split that uses the horizontal real estate */
.lp-split {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 56px;
  align-items: center;
}
.lp-split--even { grid-template-columns: 1fr 1fr; align-items: start; }

/* "At a glance" side panel */
.lp-panel {
  background: #202b3c;
  border: 1px solid #34506a;
  border-radius: 14px;
  padding: 30px 32px;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.35);
}
.lp-panel h3 {
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 18px;
}
.lp-panel ul { list-style: none; padding: 0; margin: 0; }
.lp-panel li {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 12px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #dfe4ec;
  font-size: 0.98rem;
  line-height: 1.5;
}
.lp-panel li:first-child { border-top: none; padding-top: 0; }
.lp-panel li .pub-ico { width: 22px; height: 22px; color: #6aa6df; margin-top: 1px; }
.lp-panel li strong { color: #fff; display: block; font-weight: 600; }

/* CTA buttons */
.lp-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
.lp-btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none;
  transition: transform .1s ease, background .15s ease, border-color .15s ease;
}
.lp-btn--primary { background: #478ac9; color: #fff; border: 1px solid #478ac9; }
.lp-btn--primary:hover { background: #5a9bd8; border-color: #5a9bd8; }
.lp-btn--ghost { background: transparent; color: #cfe0f2; border: 1px solid #47617f; }
.lp-btn--ghost:hover { border-color: #478ac9; color: #fff; }

/* Wide comparison table on the landing */
.lp-band .pub-table { font-size: 1rem; }
.lp-band .pub-table th, .lp-band .pub-table td { padding: 14px 20px; }

/* Constrain super-wide rows of cards to read well */
.lp-narrow { max-width: 980px; margin: 0 auto; }

/* ── Early-access / demo lead form ─────────────────────────────────────────── */
.lp-formpanel { background: rgba(19, 26, 40, 0.72); }
.lp-form { display: flex; flex-direction: column; gap: 14px; }
.lp-field { display: flex; flex-direction: column; gap: 6px; }
.lp-field > span {
  color: #cfe0f2;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.lp-field > span em { color: #8b93a1; font-style: normal; font-weight: 400; }
.lp-form input,
.lp-form textarea {
  width: 100%;
  background: #141b28;
  border: 1px solid #34506a;
  border-radius: 7px;
  padding: 11px 13px;
  color: #eef2f7;
  font-size: 0.98rem;
  font-family: inherit;
  transition: border-color .15s ease, box-shadow .15s ease;
  box-sizing: border-box;
}
.lp-form textarea { resize: vertical; min-height: 76px; }
.lp-form input:focus,
.lp-form textarea:focus {
  outline: none;
  border-color: #478ac9;
  box-shadow: 0 0 0 3px rgba(71, 138, 201, 0.22);
}
.lp-form .lp-btn--primary { width: 100%; text-align: center; cursor: pointer; margin-top: 4px; }
.lp-form button[disabled] { opacity: 0.65; cursor: default; }
.lp-form-note { margin: 4px 0 0; font-size: 0.9rem; line-height: 1.5; min-height: 1em; }
.lp-form-note.lp-form-ok  { color: #7fd6a4; }
.lp-form-note.lp-form-err { color: #f0a3a3; }
/* Honeypot — visually and mechanically removed from the tab order for humans */
.lp-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

@media (max-width: 900px) {
  .lp-split, .lp-split--even { grid-template-columns: 1fr; gap: 34px; }
  .lp-h2 { font-size: 1.8rem; }
  .lp-head .lp-h2 { font-size: 1.9rem; }
}
@media (max-width: 640px) {
  .lp-band { padding: 52px 0; }
  .lp-wrap { padding: 0 24px; }
  .lp-h2, .lp-head .lp-h2 { font-size: 1.55rem; }
  .lp-lead { font-size: 1.04rem; }
}
