/* Kraken System shared stylesheet
   Brand tokens: bg #0A0A0B, surfaces #151517 and #202023, borders #26262B,
   red #C8102E, red hover #A50D26, bright accent #FF5268, text #FFFFFF,
   muted text #C9C9CE, light section #F5F5F5 with dark text #101014. */

:root {
  --bg: #0A0A0B;
  --surface: #151517;
  --surface-2: #202023;
  --border: #26262B;
  --red: #C8102E;
  --red-hover: #A50D26;
  --accent: #FF5268;
  --text: #FFFFFF;
  --muted: #C9C9CE;
  --light-bg: #F5F5F5;
  --light-text: #101014;
  --light-muted: #3D3D44;
  --max: 1200px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); }
a:hover { color: #FFFFFF; }

h1, h2, h3, .display {
  font-family: "Barlow Condensed", "Inter", sans-serif;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0.01em;
  margin: 0;
  text-transform: uppercase;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 10, 11, 0.96);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 68px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand img { height: 34px; width: auto; }

.main-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px 22px;
}

.main-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.main-nav a:hover { color: #FFFFFF; }

/* Hero */

.hero { padding: 84px 0 72px; border-bottom: 1px solid var(--border); }

.eyebrow {
  color: var(--accent);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin: 0 0 18px;
}

.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  max-width: 18ch;
  margin-bottom: 22px;
}

.hero-sub {
  color: var(--muted);
  font-size: 1.125rem;
  max-width: 62ch;
  margin: 0 0 32px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
}
.btn-primary { background: var(--red); color: #FFFFFF; }
.btn-primary:hover { background: var(--red-hover); color: #FFFFFF; }
.btn-ghost { background: transparent; color: #FFFFFF; border-color: var(--border); }
.btn-ghost:hover { border-color: var(--accent); color: #FFFFFF; }

/* Sections */

.section { padding: 72px 0; border-bottom: 1px solid var(--border); }
.section:last-of-type { border-bottom: none; }

.section-head { max-width: 760px; margin-bottom: 36px; }
.section-head h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 14px; }
.section-head p { color: var(--muted); margin: 0; font-size: 1.05rem; }

.section-label {
  color: var(--accent);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin: 0 0 12px;
}

/* Cards and grids */

.grid-2, .grid-3 {
  display: grid;
  gap: 20px;
}
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 28px;
  min-width: 0;
}
.card h3 { font-size: 1.55rem; margin-bottom: 12px; }
.card p { color: var(--muted); margin: 0 0 12px; }
.card p:last-child { margin-bottom: 0; }
.card a { font-weight: 600; }

.edge-note {
  margin-top: 24px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-left: 4px solid var(--red);
  border-radius: 10px;
  padding: 24px 28px;
}
.edge-note h3 { font-size: 1.4rem; margin-bottom: 10px; }
.edge-note p { color: var(--muted); margin: 0; }

/* Components */

.component {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 28px;
  margin-bottom: 20px;
  min-width: 0;
}
.component-head { display: flex; align-items: baseline; gap: 16px; margin-bottom: 16px; }
.component-num {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  font-size: 1.8rem;
  color: var(--accent);
  line-height: 1;
  flex-shrink: 0;
}
.component h3 { font-size: 1.6rem; }
.component-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.sub-label {
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 8px;
}
.component-cols p { color: var(--muted); margin: 0; font-size: 0.95rem; }

/* Light section: Live Proof */

.section-light {
  background: var(--light-bg);
  color: var(--light-text);
  border-bottom: none;
}
.section-light .section-head p,
.section-light .card p { color: var(--light-muted); }
.section-light .section-label { color: var(--red); }
.section-light .card {
  background: #FFFFFF;
  border-color: #DDDDDD;
  color: var(--light-text);
}
.section-light a { color: var(--red); }
.section-light a:hover { color: var(--red-hover); }

.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.badge-live { background: var(--red); color: #FFFFFF; }
.badge-dark { background: var(--surface-2); color: #FFFFFF; border: 1px solid var(--border); }
.section-light .badge-dark { background: var(--light-text); border-color: var(--light-text); }

.member-list { margin: 0 0 14px; padding-left: 20px; color: var(--light-muted); }
.member-list li { margin-bottom: 4px; }

/* Partners */

.logo-chip {
  background: #FFFFFF;
  border-radius: 8px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 84px;
  margin-bottom: 18px;
}
.logo-chip img { max-height: 52px; width: auto; max-width: 100%; object-fit: contain; }

.partner-trade {
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 10px;
}
.partner-status { color: var(--muted); }
.roster-line { margin-top: 26px; color: var(--muted); }
.roster-line a { font-weight: 600; }

/* Trades */

.trade-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.trade-tile {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
  min-width: 0;
}
.trade-tile h3 { font-size: 1.25rem; margin-bottom: 8px; text-transform: none; font-family: "Inter", sans-serif; font-weight: 600; letter-spacing: 0; line-height: 1.3; }
.trade-tile .badge { margin-bottom: 0; }

/* Setup stepper */

.stepper {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  counter-reset: step;
}
.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 24px;
  min-width: 0;
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--red);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 14px;
}
.step h3 { font-size: 1.45rem; margin-bottom: 8px; }
.step p { color: var(--muted); margin: 0; font-size: 0.95rem; }

/* Ownership */

.ownership-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0 48px;
  background: var(--surface);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}
.footer-wordmark {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  font-size: 1.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #FFFFFF;
}
.footer-nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.footer-nav a { color: var(--muted); text-decoration: none; font-size: 0.875rem; font-weight: 600; }
.footer-nav a:hover { color: #FFFFFF; }
.footer-note { color: var(--muted); font-size: 0.85rem; margin: 22px 0 0; max-width: 70ch; }

/* Responsive */

@media (max-width: 960px) {
  .component-cols { grid-template-columns: minmax(0, 1fr); }
  .grid-3, .stepper, .ownership-points { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trade-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .container { padding: 0 18px; }
  .header-inner { flex-direction: column; align-items: flex-start; gap: 10px; }
  .main-nav { justify-content: flex-start; gap: 6px 16px; }
  .hero { padding: 56px 0 52px; }
  .section { padding: 52px 0; }
  .grid-2, .grid-3, .stepper, .ownership-points, .trade-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-actions .btn { width: 100%; text-align: center; }
  .card, .component { padding: 22px; }
  .edge-note { padding: 20px 22px; }
}

/* Platform module map (ported from the LotLogix overview, Kraken tokens) */

.mod-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  max-width: 980px;
  margin: 0 auto;
}
.mod-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 9px 18px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  text-decoration: none;
  white-space: nowrap;
}
.mod-chip b {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--accent);
  letter-spacing: 0.03em;
}
.mod-chip { transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease, color 0.16s ease; }
.mod-chip:hover {
  color: #FFFFFF;
  border-color: var(--red);
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px var(--red), 0 0 20px rgba(255, 82, 104, 0.5), 0 8px 22px rgba(200, 16, 46, 0.35);
}
.mod-chip:active { transform: translateY(0); box-shadow: 0 0 0 1px var(--red), 0 0 10px rgba(255, 82, 104, 0.45); }
.mod-chip:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; box-shadow: 0 0 0 1px var(--red), 0 0 20px rgba(255, 82, 104, 0.5); }
.mod-chip-social { border-color: rgba(200, 16, 46, 0.55); }
.mod-note {
  max-width: 820px;
  margin: 28px auto 0;
  color: var(--muted);
  font-size: 0.92rem;
  text-align: center;
}
.mod-note b { color: #FFFFFF; }

/* Social channel panel (ported from the LotLogix overview, Kraken tokens) */

.social-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 12px;
}
.social-tile {
  aspect-ratio: 1 / 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 10px 6px;
  min-width: 0;
}
.social-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 8px;
  border-radius: 9px;
  background: var(--red);
  color: #FFFFFF;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.05em;
}
.social-tile span {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  text-align: center;
  line-height: 1.2;
}
.social-cap {
  margin-top: 20px;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
}

@media (max-width: 960px) {
  .social-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .social-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mod-chip { white-space: normal; text-align: center; }
}

/* Marketing site additions */

/* Centered hero */

.hero-center { text-align: center; padding: 88px 0 76px; }
.hero-center .hero-logo { height: 56px; width: auto; margin: 0 auto 30px; }
.hero-center h1 { max-width: 20ch; margin-left: auto; margin-right: auto; }
.hero-center .hero-sub { margin-left: auto; margin-right: auto; }
.hero-center .hero-actions { justify-content: center; }
.header-cta { flex-shrink: 0; }

/* Stats band */

.stats-band { border-bottom: 1px solid var(--border); background: var(--surface); }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  padding: 34px 0;
}
.stat { text-align: center; min-width: 0; }
.stat-num {
  display: block;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  font-size: 3rem;
  line-height: 1;
  color: #FFFFFF;
}
.stat-num em { font-style: normal; color: var(--accent); }
.stat-label {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Lead system flow */

.flow-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 40px;
}
.flow-step {
  background: #FFFFFF;
  border: 1px solid #DDDDDD;
  border-radius: 10px;
  padding: 22px;
  min-width: 0;
}
.flow-step .step-num { margin-bottom: 12px; }
.flow-step h3 { font-size: 1.3rem; margin-bottom: 8px; }
.flow-step p { color: var(--light-muted); margin: 0; font-size: 0.92rem; }
.section-light .flow-step h3 { color: var(--light-text); }

/* Light-section partner cards: dark-enough text on white */

.section-light .partner-trade { color: var(--red); }
.section-light .partner-status { color: var(--light-muted); }

/* Crew */

.agent-role {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 10px;
}

/* FAQ */

.faq-list { max-width: 860px; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  padding: 24px 28px;
  margin-bottom: 14px;
}
.faq-item h3 { font-size: 1.35rem; margin-bottom: 8px; }
.faq-item p { color: var(--muted); margin: 0; }

/* CTA band */

.cta-band {
  background: linear-gradient(180deg, rgba(200, 16, 46, 0.16), rgba(200, 16, 46, 0.04)), var(--surface);
  border-bottom: 1px solid var(--border);
  text-align: center;
  padding: 76px 0;
}
.cta-band h2 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); margin-bottom: 14px; }
.cta-band p { color: var(--muted); max-width: 58ch; margin: 0 auto 30px; font-size: 1.05rem; }
.cta-band .hero-actions { justify-content: center; }

@media (max-width: 960px) {
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .stats-grid, .flow-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-center { padding: 60px 0 54px; }
  .header-cta { display: none; }
}

/* Social logos: official brand marks (replaces letter monograms) */

.social-tile .social-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
}
.social-logo svg { width: 40px; height: 40px; display: block; }

/* System cards as links */

a.card-link {
  display: block;
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.15s ease;
}
a.card-link p { color: var(--muted); }
a.card-link:hover { border-color: var(--red); color: var(--text); }
a.card-link:hover h3 { color: var(--accent); }
a.card-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.card-more {
  display: inline-block;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.92rem;
}

/* System subpages */

.narrow { max-width: 880px; }
.back-line { margin: 0 0 26px; }
.back-line a { font-weight: 600; text-decoration: none; }
.page-title { font-size: clamp(2.5rem, 5.4vw, 4rem); margin-bottom: 16px; }
.page-lede { color: var(--muted); font-size: 1.125rem; max-width: 62ch; margin: 0; }

/* Diagram panels */

.dg {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
  margin-top: 34px;
  min-width: 0;
}
.dg-caption { color: var(--muted); font-size: 0.9rem; margin: 14px 0 0; }
.dg-flow {
  display: flex;
  align-items: stretch;
  gap: 12px;
}
.dg-node {
  flex: 1 1 0;
  min-width: 0;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.dg-node h4 {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin: 0 0 6px;
  line-height: 1.1;
}
.dg-node p { color: var(--muted); font-size: 0.88rem; margin: 0; line-height: 1.45; }
.dg-node.hot { border-color: var(--red); background: linear-gradient(180deg, rgba(200, 16, 46, 0.18), rgba(200, 16, 46, 0.05)), var(--surface-2); }
.dg-arrow {
  align-self: center;
  color: var(--accent);
  font-size: 1.35rem;
  font-weight: 700;
  flex-shrink: 0;
}
.dg-arrow.down { display: block; text-align: center; margin: 10px 0; }
.dg-stack { display: flex; flex-direction: column; }
.dg-center { max-width: 420px; margin: 0 auto; width: 100%; text-align: center; }
.dg-center p { text-align: center; }
.dg-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.dg-tag {
  display: inline-block;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  background: var(--surface);
  white-space: nowrap;
}
.dg-tag b { color: var(--accent); font-weight: 700; }

.dg-record { margin-top: 18px; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.dg-record-head {
  background: var(--surface-2);
  padding: 12px 18px;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border);
}
.dg-record-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.dg-field { padding: 12px 18px; border-bottom: 1px solid var(--border); min-width: 0; }
.dg-field:nth-child(odd) { border-right: 1px solid var(--border); }
.dg-field small {
  display: block;
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 3px;
}
.dg-field span { font-size: 0.92rem; color: var(--text); }

.dg-thread { display: grid; gap: 10px; margin-top: 18px; }
.dg-msg {
  max-width: 78%;
  border-radius: 12px;
  padding: 11px 15px;
  font-size: 0.92rem;
  line-height: 1.45;
  min-width: 0;
}
.dg-msg small {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.dg-msg.out { background: rgba(200, 16, 46, 0.16); border: 1px solid rgba(200, 16, 46, 0.5); justify-self: end; }
.dg-msg.out small { color: var(--accent); }
.dg-msg.in { background: var(--surface-2); border: 1px solid var(--border); justify-self: start; }
.dg-msg.in small { color: var(--muted); }

.dg-cols { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 22px; align-items: start; }
.dg-phone {
  border: 2px solid var(--border);
  border-radius: 22px;
  padding: 16px;
  background: var(--bg);
  min-width: 0;
}
.dg-phone-label {
  text-align: center;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 12px;
}
.dg-photo {
  border: 1px dashed #3A3A41;
  border-radius: 10px;
  aspect-ratio: 16 / 9;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 10px;
  background: var(--surface);
}
.dg-photo svg { width: 26px; height: 26px; }
.dg-photo:last-child { margin-bottom: 0; }
.dg-check { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.dg-check li {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px 14px 44px;
  position: relative;
  min-width: 0;
}
.dg-check li::before {
  content: "\2713";
  position: absolute;
  left: 16px;
  top: 13px;
  color: var(--accent);
  font-weight: 700;
}
.dg-check b { display: block; font-size: 0.98rem; margin-bottom: 2px; }
.dg-check span { color: var(--muted); font-size: 0.9rem; }

/* Steps and benefits */

.steps-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: step; }
.steps-list li {
  display: flex;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px 22px;
  min-width: 0;
}
.steps-list .step-num { flex-shrink: 0; margin-bottom: 0; }
.steps-list h3 { font-size: 1.3rem; margin-bottom: 6px; }
.steps-list p { color: var(--muted); margin: 0; font-size: 0.97rem; }

.benefit-list { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
.benefit-list li {
  padding-left: 26px;
  position: relative;
  color: var(--muted);
  min-width: 0;
}
.benefit-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background: var(--red);
}
.benefit-list b { color: var(--text); }

/* Prev / next navigation */

.sys-nav {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 40px;
}
.sys-nav-link {
  flex: 1 1 0;
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  padding: 16px 20px;
  text-decoration: none;
  color: var(--text);
}
.sys-nav-link small {
  display: block;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.sys-nav-link b {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.sys-nav-link.next { text-align: right; }
.sys-nav-link:hover { border-color: var(--red); color: var(--text); }
.page-foot { margin-top: 26px; }
.page-foot a { font-weight: 600; text-decoration: none; }

@media (max-width: 640px) {
  .dg { padding: 20px; }
  .dg-flow { flex-direction: column; }
  .dg-arrow { transform: rotate(90deg); }
  .dg-arrow.down { transform: none; }
  .dg-cols { grid-template-columns: minmax(0, 1fr); }
  .dg-record-grid { grid-template-columns: minmax(0, 1fr); }
  .dg-field:nth-child(odd) { border-right: none; }
  .sys-nav { flex-direction: column; }
  .sys-nav-link.next { text-align: left; }
  .dg-msg { max-width: 92%; }
}

/* Module pages: the system look (workspace mock) */

.mod-eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 14px;
}
.mod-eyebrow .mod-big-num {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  font-size: 2.2rem;
  line-height: 1;
  color: var(--accent);
}
.sample-tag {
  display: inline-block;
  border: 1px solid var(--red);
  color: var(--accent);
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}

.ws {
  margin-top: 36px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #0D0D0F;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}
.ws-top {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.ws-dots { display: inline-flex; gap: 6px; }
.ws-dots i { width: 10px; height: 10px; border-radius: 50%; background: #3A3A41; display: block; }
.ws-dots i:first-child { background: var(--red); }
.ws-co { font-weight: 700; font-size: 0.95rem; }
.ws-co small { display: block; color: var(--muted); font-weight: 600; font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; }
.ws-top .ws-search {
  margin-left: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.8rem;
  padding: 6px 14px;
  white-space: nowrap;
}
.ws-body { display: grid; grid-template-columns: 208px minmax(0, 1fr); min-height: 420px; }
.ws-side {
  border-right: 1px solid var(--border);
  background: var(--surface);
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.ws-side a {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 7px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 600;
  white-space: nowrap;
}
.ws-side a b {
  font-family: "Barlow Condensed", sans-serif;
  color: var(--accent);
  font-size: 0.92rem;
  min-width: 20px;
}
.ws-side a:hover { color: #FFFFFF; background: var(--surface-2); }
.ws-side a.on { background: rgba(200, 16, 46, 0.16); color: #FFFFFF; box-shadow: inset 2px 0 0 var(--red); }
.ws-main { padding: 22px; min-width: 0; }
.ws-main h4.ws-title {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin: 0 0 4px;
}
.ws-sub { color: var(--muted); font-size: 0.88rem; margin: 0 0 18px; }

.kpi-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.kpi {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  min-width: 0;
}
.kpi b {
  display: block;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 2rem;
  line-height: 1;
  color: #FFFFFF;
}
.kpi span { display: block; margin-top: 6px; color: var(--muted); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.kpi.hot { border-color: var(--red); }
.kpi.hot b { color: var(--accent); }

.ws-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 18px;
  margin-bottom: 14px;
  min-width: 0;
}
.ws-panel h5 {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 12px;
}
.ws-panel p { color: var(--muted); font-size: 0.9rem; margin: 0; }

.tbl-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 0.88rem; min-width: 520px; }
.tbl th {
  text-align: left;
  color: var(--accent);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.tbl td { padding: 10px; border-bottom: 1px solid var(--border); color: var(--text); vertical-align: top; }
.tbl td.dim, .tbl tr:last-child td { border-bottom: none; }
.tbl td.dim { color: var(--muted); }
.tbl tr:last-child td { border-bottom: none; }
.stage {
  display: inline-block;
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--muted);
  white-space: nowrap;
}
.stage.new { border-color: var(--red); color: var(--accent); }
.stage.won { background: var(--red); border-color: var(--red); color: #FFFFFF; }
.stage.work { border-color: #4A4A52; color: #FFFFFF; }

.ws-cols { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 14px; align-items: start; }
.ws-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ws-list li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 11px 14px;
  font-size: 0.88rem;
  min-width: 0;
}
.ws-list li b { display: block; font-size: 0.92rem; }
.ws-list li span { color: var(--muted); font-size: 0.82rem; }
.ws-list li.sel { border-color: var(--red); }
.ws-list li .row-meta { display: flex; justify-content: space-between; gap: 10px; }
.ws-list li .row-meta span { white-space: nowrap; }

.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.cal-cell {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 9px;
  min-height: 96px;
  min-width: 0;
}
.cal-cell .d { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); display: block; margin-bottom: 6px; }
.cal-cell.today { border-color: var(--red); }
.cal-ev {
  display: block;
  background: rgba(200, 16, 46, 0.18);
  border: 1px solid rgba(200, 16, 46, 0.5);
  border-radius: 6px;
  padding: 4px 7px;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 5px;
  color: #FFFFFF;
}
.cal-ev.plain { background: var(--surface-2); border-color: var(--border); color: var(--muted); }

.media-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.media-tile {
  border-radius: 9px;
  aspect-ratio: 4 / 3;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 10px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #FFFFFF;
  border: 1px solid var(--border);
  min-width: 0;
  background: linear-gradient(160deg, #2A2A30, #17171A);
}
.media-tile.red { background: linear-gradient(160deg, rgba(200, 16, 46, 0.55), #17171A); }
.media-tile small { font-weight: 600; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; }

.tl { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.tl li {
  display: flex;
  gap: 14px;
  padding: 11px 2px;
  border-bottom: 1px solid var(--border);
  font-size: 0.88rem;
  min-width: 0;
}
.tl li:last-child { border-bottom: none; }
.tl time { color: var(--accent); font-weight: 700; font-size: 0.78rem; white-space: nowrap; padding-top: 2px; min-width: 58px; }
.tl p { margin: 0; color: var(--muted); }
.tl p b { color: var(--text); }

.pill-toggle {
  display: inline-block;
  width: 34px;
  height: 19px;
  border-radius: 999px;
  background: var(--red);
  position: relative;
  flex-shrink: 0;
  vertical-align: middle;
}
.pill-toggle::after {
  content: "";
  position: absolute;
  top: 2.5px;
  right: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #FFFFFF;
}
.pill-toggle.off { background: #3A3A41; }
.pill-toggle.off::after { right: auto; left: 3px; }

.form-mock { display: grid; gap: 10px; }
.form-mock label { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); display: block; margin-bottom: 4px; }
.form-mock .fld {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--muted);
  font-size: 0.88rem;
}
.form-mock .fld.filled { color: var(--text); }

.widget-stage {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: linear-gradient(170deg, #1D1D21, #101013);
  padding: 26px;
  min-height: 250px;
  overflow: hidden;
}
.widget-stage h6 {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.7rem;
  text-transform: uppercase;
  margin: 0 0 8px;
}
.widget-stage p { color: var(--muted); font-size: 0.9rem; max-width: 34ch; margin: 0; }
.widget-bubble {
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 22px rgba(255, 82, 104, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  color: #FFFFFF;
}
.widget-card {
  position: absolute;
  right: 18px;
  bottom: 82px;
  width: 230px;
  background: var(--surface);
  border: 1px solid var(--red);
  border-radius: 12px;
  padding: 14px;
  font-size: 0.82rem;
  color: var(--muted);
}
.widget-card b { color: var(--text); display: block; margin-bottom: 4px; font-size: 0.9rem; }

.chan-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chan-chips .dg-tag { background: var(--bg); }

.media-slot {
  border: 1.5px dashed #3A3A41;
  border-radius: 12px;
  padding: 30px 28px;
  text-align: center;
  background: var(--surface);
}
.media-slot .ms-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid var(--red);
  color: var(--accent);
  font-size: 1.25rem;
  margin-bottom: 12px;
}
.media-slot h3 { font-size: 1.4rem; margin-bottom: 8px; }
.media-slot p { color: var(--muted); margin: 0 auto; max-width: 52ch; font-size: 0.95rem; }
.media-slot video, .media-slot audio { width: 100%; margin-top: 6px; }
.media-slot.filled { border-style: solid; border-color: var(--border); text-align: left; }
.media-slot.filled h3 { text-align: left; }

@media (max-width: 960px) {
  .kpi-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .media-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ws-cols { grid-template-columns: minmax(0, 1fr); }
  .cal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cal-cell { min-height: 0; }
}

@media (max-width: 860px) {
  .ws-body { grid-template-columns: minmax(0, 1fr); }
  .ws-side {
    flex-direction: row;
    overflow-x: auto;
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 10px;
  }
  .ws-side a { border: 1px solid var(--border); border-radius: 999px; }
  .ws-side a.on { box-shadow: none; border-color: var(--red); }
  .ws-main { padding: 16px; }
  .widget-card { position: static; width: 100%; margin-top: 16px; }
  .widget-bubble { bottom: 14px; right: 14px; }
}

@media (max-width: 640px) {
  .media-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cal-grid { grid-template-columns: minmax(0, 1fr); }
}
