/* =========================================================================
   LYT-X marketing site — styles.css
   Tokens block first (single place to edit the palette), then global rules,
   then components, then sections, then responsive overrides.
   ========================================================================= */

:root {
  /* Brand colors — sampled from LYT-X v4 datasheet, do not alter */
  --bg:            #0D0D0D;
  --panel:         #1D1E20;
  --panel-raised:  #26272A;
  --accent:        #F1662A;
  --accent-dark:   #C4501C;
  --text:          #E6E7E9;
  --text-dim:      #9A9CA1;
  --text-on-accent:#0D0D0D;
  --hairline:      #3A3B3E;
  --hairline-accent: rgba(241,102,42,0.35);

  /* Type scale (rem, 1rem = 16px) */
  --fs-hero:      clamp(2.25rem, 5vw, 4rem);
  --fs-h2:        clamp(1.75rem, 3.2vw, 2.5rem);
  --fs-h3:        1.375rem;
  --fs-body:      1rem;
  --fs-small:     0.875rem;
  --fs-eyebrow:   0.8125rem;

  /* Spacing scale (px) */
  --sp-1: 4px;  --sp-2: 8px;  --sp-3: 12px; --sp-4: 16px;
  --sp-5: 24px; --sp-6: 32px; --sp-7: 48px; --sp-8: 64px;
  --sp-9: 96px; --sp-10: 128px;

  /* Layout */
  --container-max: 1200px;
  --gutter-mobile: 20px;
  --gutter-desktop: 48px;
  --radius: 6px;
  --radius-chip: 999px;

  /* Motion */
  --ease: cubic-bezier(0.2, 0.6, 0.2, 1);
  --dur-fast: 150ms;
  --dur-base: 300ms;

  /* Fixed chrome heights, referenced by scroll-offset calc for anchors */
  --edgebar-h: 6px;
  --nav-h: 64px;
}

/* ---------------------------------------------------------------------- *
 * Reset / base
 * ---------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--edgebar-h) + var(--nav-h) + 14px);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: var(--fs-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 {
  font-family: "Archivo", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-weight: 800;
  line-height: 1.15;
  margin: 0;
  color: var(--text);
}
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--gutter-mobile);
}
@media (min-width: 1024px) {
  .container { padding: 0 var(--gutter-desktop); }
}

section { padding: var(--sp-7) 0; }
@media (min-width: 1024px) {
  section { padding: var(--sp-9) 0; }
}
.bg-panel { background: var(--panel); }
.bg-base  { background: var(--bg); }

.eyebrow {
  display: block;
  font-family: "IBM Plex Sans", sans-serif;
  font-weight: 600;
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--sp-3);
}
.section-head {
  max-width: 720px;
  margin: 0 0 var(--sp-7);
}
.section-head h2 { font-size: var(--fs-h2); }
.section-head p.lead {
  margin-top: var(--sp-4);
  color: var(--text-dim);
  font-size: var(--fs-body);
}

/* ---------------------------------------------------------------------- *
 * Edge bars (fixed top + above footer)
 * ---------------------------------------------------------------------- */
.edgebar {
  height: var(--edgebar-h);
  background: var(--accent);
  width: 100%;
}
.edgebar--top {
  position: fixed;
  top: 0; left: 0;
  z-index: 60;
}
.edgebar--footer {
  position: relative;
}

/* ---------------------------------------------------------------------- *
 * Buttons
 * ---------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 13px 28px;
  border-radius: var(--radius);
  font-family: "IBM Plex Sans", sans-serif;
  font-weight: 600;
  font-size: var(--fs-body);
  white-space: nowrap;
  transition: background var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.btn--primary {
  background: var(--accent);
  color: var(--text-on-accent);
  border: 1px solid var(--accent);
}
.btn--primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn--outline {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}
.btn--outline:hover { background: rgba(241,102,42,0.1); }
.btn--nav { padding: 10px 22px; font-size: 14px; }

/* ---------------------------------------------------------------------- *
 * Sticky nav
 * ---------------------------------------------------------------------- */
.nav {
  position: sticky;
  top: var(--edgebar-h);
  z-index: 50;
  height: var(--nav-h);
  background: rgba(13,13,13,0.92);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--hairline);
}
.nav__in {
  height: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--sp-5);
}
.nav__logo { justify-self: start; }
.nav__logo img { height: 28px; }
.nav__links {
  display: flex;
  align-items: center;
  gap: var(--sp-6);
  justify-content: center;
}
.nav__links a {
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--text-dim);
  padding: 4px 2px;
  border-bottom: 2px solid transparent;
  transition: color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.nav__links a:hover { color: var(--text); }
.nav__links a.is-active {
  color: var(--text);
  border-bottom-color: var(--accent);
}
.nav__cta { display: flex; align-items: center; justify-self: end; gap: var(--sp-4); }

.burger {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--text);
}

.nav-overlay {
  position: fixed;
  inset: 0;
  top: calc(var(--edgebar-h) + var(--nav-h));
  background: var(--bg);
  z-index: 55;
  display: none;
  flex-direction: column;
  overflow-y: auto;
}
.nav-overlay.is-open { display: flex; }
.nav-overlay a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 var(--gutter-mobile);
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--text);
  border-bottom: 1px solid var(--hairline);
}

@media (max-width: 899px) {
  .nav__links { display: none; }
  .burger { display: flex; }
}

/* ---------------------------------------------------------------------- *
 * Hero
 * ---------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 96px 0 88px;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__bg img {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  width: 62%;
  min-width: 520px;
  object-fit: cover;
  object-position: center;
}
.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, #0D0D0D 0%, rgba(13,13,13,0.92) 38%, rgba(13,13,13,0.45) 72%, rgba(13,13,13,0.7) 100%);
}
.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(340px, 1fr) minmax(360px, 1.05fr);
  gap: 56px;
  align-items: center;
}
.hero__content {
  opacity: 0;
  animation: hero-fade-in 500ms var(--ease) forwards;
}
@keyframes hero-fade-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .hero__content { animation: hero-fade-in 50ms linear forwards; }
}
.hero__logo { height: 52px; margin-bottom: var(--sp-5); }
.hero h1 {
  font-family: "Archivo", sans-serif;
  font-weight: 800;
  font-variation-settings: "wdth" 112;
  font-size: var(--fs-hero);
  line-height: 1.06;
  margin-bottom: var(--sp-4);
}
.hero__sub {
  color: var(--text-dim);
  font-size: 17px;
  line-height: 1.6;
  max-width: 530px;
  margin-bottom: var(--sp-6);
}
.hero__cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

@media (max-width: 1024px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero-mockup { margin-top: var(--sp-7); }
  .hero__bg img { width: 100%; min-width: 0; opacity: 0.4; }
  .hero__bg::after { background: linear-gradient(100deg, #0D0D0D 0%, rgba(13,13,13,0.85) 35%, rgba(13,13,13,0.5) 100%); }
}
@media (max-width: 640px) {
  .hero { padding-top: var(--sp-7); padding-bottom: var(--sp-7); }
  .hero__bg { height: 240px; position: absolute; top: 0; left: 0; right: 0; bottom: auto; }
  .hero__bg img { width: 100%; height: 100%; opacity: 0.5; }
  .hero__bg::after { background: linear-gradient(180deg, rgba(13,13,13,0.35) 0%, rgba(13,13,13,0.9) 85%, var(--bg) 100%); }
  .hero__grid { padding-top: 140px; }
  .hero__cta .btn { width: 100%; }
}

/* ---------------------------------------------------------------------- *
 * Scroll-reveal
 * ---------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity var(--dur-base) var(--ease), transform var(--dur-base) var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { transform: none; transition: opacity 50ms linear; }
}

/* ---------------------------------------------------------------------- *
 * Cards / tiles (shared component)
 * ---------------------------------------------------------------------- */
.card {
  background: var(--panel-raised);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: var(--sp-5);
}

/* ---------------------------------------------------------------------- *
 * Benefits grid
 * ---------------------------------------------------------------------- */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-5);
}
.benefit-tile {
  background: var(--bg);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: var(--sp-5);
  transition: border-color var(--dur-fast) var(--ease);
}
.benefit-tile:hover { border-color: var(--accent); }
.icon-ring {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-family: "Archivo", sans-serif;
  font-weight: 800;
  font-size: 12px;
  margin-bottom: var(--sp-4);
}
.icon-ring svg { width: 16px; height: 16px; }
.benefit-tile h3 {
  font-size: var(--fs-h3);
  margin-bottom: var(--sp-2);
}
.benefit-tile p {
  color: var(--text-dim);
  font-size: var(--fs-small);
}

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

/* ---------------------------------------------------------------------- *
 * Pillar rows (CSIM concept)
 * ---------------------------------------------------------------------- */
.pillar-row {
  display: grid;
  grid-template-columns: 35% 65%;
  gap: var(--sp-6);
  padding: var(--sp-7) 0;
  border-bottom: 1px solid var(--hairline);
}
.pillar-row:last-child { border-bottom: none; }
.pillar-num {
  font-family: "Archivo", sans-serif;
  font-weight: 900;
  font-size: 48px;
  color: var(--accent);
  line-height: 1;
  margin-bottom: var(--sp-3);
}
.pillar-left h3 { font-size: var(--fs-h3); margin-bottom: var(--sp-2); }
.pillar-left p { color: var(--text-dim); font-size: var(--fs-body); }
.pillar-bullets li {
  position: relative;
  padding-left: var(--sp-5);
  margin-bottom: var(--sp-3);
  color: var(--text);
  font-size: var(--fs-body);
}
.pillar-bullets li:last-child { margin-bottom: 0; }
.pillar-bullets li::before {
  content: "\2014";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

@media (max-width: 640px) {
  .pillar-row { grid-template-columns: 1fr; gap: var(--sp-4); }
}

/* ---------------------------------------------------------------------- *
 * Architecture diagram
 * ---------------------------------------------------------------------- */
.arch-diagram {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: var(--sp-5);
  align-items: stretch;
  margin-bottom: var(--sp-9);
}
.arch-col h3 {
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: var(--sp-4);
}
.arch-col.arch-core h3 { color: var(--accent); }
.arch-col ul li {
  font-size: var(--fs-small);
  color: var(--text-dim);
  padding: 6px 0;
  border-bottom: 1px solid var(--hairline);
}
.arch-col.arch-core ul li { color: var(--text); }
.arch-col ul li:last-child { border-bottom: none; }
.arch-col.arch-core {
  background: var(--bg);
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  padding: var(--sp-5);
}
.arch-connector {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 1.5rem;
}

@media (max-width: 1024px) {
  .arch-diagram { grid-template-columns: 1fr; }
  .arch-connector { transform: rotate(90deg); padding: var(--sp-2) 0; }
}

/* ---------------------------------------------------------------------- *
 * Stepper (event journey / export online)
 * ---------------------------------------------------------------------- */
.stepper {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-4);
}
.step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
}
.step__badge {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Archivo", sans-serif;
  font-weight: 800;
  font-size: 1.125rem;
  background: var(--bg);
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}
.step__line {
  position: absolute;
  top: 24px;
  left: calc(50% + 24px);
  right: calc(-50% + 24px);
  height: 2px;
  background: var(--hairline);
  z-index: 0;
}
.step__line-fill {
  position: absolute;
  inset: 0;
  width: 0;
  background: var(--accent);
  transition: width 600ms var(--ease);
}
.step:last-child .step__line { display: none; }
.step h3 {
  font-size: 1rem;
  margin-top: var(--sp-4);
  margin-bottom: var(--sp-2);
}
.step p {
  font-size: var(--fs-small);
  color: var(--text-dim);
}

@media (prefers-reduced-motion: reduce) {
  .step__line-fill { transition: none; }
}

@media (max-width: 899px) {
  .stepper { flex-direction: column; gap: 0; }
  .step {
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
    width: 100%;
    padding-bottom: var(--sp-6);
    gap: var(--sp-4);
  }
  .step:last-child { padding-bottom: 0; }
  .step__line {
    top: 48px;
    left: 24px;
    right: auto;
    bottom: calc(-1 * var(--sp-6) + 24px);
    width: 2px;
    height: auto;
  }
  .step__line-fill { width: 100%; height: 0; }
  .step__body { flex: 1; }
  .step h3 { margin-top: 0; }
}

/* ---------------------------------------------------------------------- *
 * Deployment cards
 * ---------------------------------------------------------------------- */
.deploy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-5);
  margin-bottom: var(--sp-9);
}
.deploy-card {
  background: var(--panel);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: var(--sp-5);
}
.deploy-card .scale-icon { margin-bottom: var(--sp-4); color: var(--accent); }
.deploy-card h3 { font-size: var(--fs-h3); margin-bottom: var(--sp-2); }
.deploy-card p { color: var(--text-dim); font-size: var(--fs-small); }

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

/* ---------------------------------------------------------------------- *
 * Incident status board
 * ---------------------------------------------------------------------- */
.status-board {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-5);
  margin-bottom: var(--sp-7);
}
.status-card {
  background: var(--panel);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: var(--sp-5);
}
.status-card .status-icon { color: var(--accent); margin-bottom: var(--sp-3); }
.status-card h3 { font-size: var(--fs-h3); margin-bottom: var(--sp-2); }
.status-card p { color: var(--text-dim); font-size: var(--fs-small); }

@media (max-width: 1024px) { .status-board { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .status-board { grid-template-columns: 1fr; } }

/* operator-gets grid: hairline-divided 2x3 */
.operator-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--hairline);
  border-left: 1px solid var(--hairline);
  margin-bottom: var(--sp-6);
}
.operator-tile {
  padding: var(--sp-5);
  border-right: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.operator-tile .icon-ring { margin-bottom: var(--sp-3); }
.operator-tile h3 { font-size: 1rem; margin-bottom: var(--sp-2); }
.operator-tile p { font-size: var(--fs-small); color: var(--text-dim); }

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

.callout {
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: var(--sp-4) var(--sp-5);
  color: var(--accent);
  font-size: var(--fs-small);
  font-weight: 600;
}

/* Export Online highlight cards */
.highlight-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-5);
  margin-top: var(--sp-8);
}
.highlight-card {
  background: var(--bg);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: var(--sp-5);
}
.highlight-card h3 { font-size: var(--fs-h3); margin-bottom: var(--sp-3); color: var(--accent); }
.highlight-card p { color: var(--text); font-size: var(--fs-body); }

@media (max-width: 640px) { .highlight-grid { grid-template-columns: 1fr; } }

.subsection-head { margin-bottom: var(--sp-6); }
.subsection-head h2 { font-size: var(--fs-h2); }
.subsection-head h2.subsection-head__h2 { font-size: var(--fs-h3); }
.subsection { margin-top: var(--sp-9); }
.subsection:first-child { margin-top: 0; }

/* ---------------------------------------------------------------------- *
 * Compatibility chips
 * ---------------------------------------------------------------------- */
.chip-group { margin-bottom: var(--sp-6); }
.chip-group:last-of-type { margin-bottom: var(--sp-8); }
.chip-group h3 {
  font-family: "IBM Plex Sans", sans-serif;
  font-weight: 600;
  font-size: var(--fs-small);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: var(--sp-3);
}
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}
.chip {
  border-radius: var(--radius-chip);
  border: 1px solid var(--hairline);
  background: var(--bg);
  color: var(--text-dim);
  padding: 6px 14px;
  font-size: var(--fs-small);
  transition: border-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.chip:hover, .chip:focus-visible { border-color: var(--accent); color: var(--text); }

/* AI metadata strip */
.ai-strip {
  background: var(--accent);
  color: var(--text-on-accent);
  padding: var(--sp-6) 0;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--sp-4) var(--sp-5);
  padding-left: var(--sp-5);
  padding-right: var(--sp-5);
}
.ai-strip__label {
  font-weight: 600;
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-on-accent);
  flex-shrink: 0;
}
.ai-pills { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.chip--inverted {
  border-radius: var(--radius-chip);
  background: var(--text-on-accent);
  color: var(--accent);
  padding: 6px 14px;
  font-size: var(--fs-small);
  font-weight: 600;
}

/* ---------------------------------------------------------------------- *
 * Footer
 * ---------------------------------------------------------------------- */
.footer { padding-top: var(--sp-9); padding-bottom: var(--sp-7); }
.footer__top {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--sp-8);
  margin-bottom: var(--sp-8);
}
.footer__logo { height: 40px; margin-bottom: var(--sp-4); }
.footer__desc { color: var(--text-dim); max-width: 420px; }
.footer__contact h3 {
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: var(--sp-4);
}
.footer__contact dl { display: grid; grid-template-columns: auto 1fr; gap: var(--sp-2) var(--sp-4); }
.footer__contact dt { color: var(--text-dim); font-size: var(--fs-small); }
.footer__contact dd { margin: 0; font-size: var(--fs-small); }
.footer__contact a:hover { color: var(--accent); }
.footer__bottom {
  border-top: 1px solid var(--hairline);
  padding-top: var(--sp-5);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-3);
  color: var(--text-dim);
  font-size: var(--fs-small);
}
.footer__bottom a { text-decoration: underline; }
.footer__bottom a:hover { color: var(--accent); }

@media (max-width: 640px) {
  .footer__top { grid-template-columns: 1fr; gap: var(--sp-6); }
}

.footer__email {
  font-size: 15px;
  font-weight: 600;
  color: var(--accent);
  display: block;
}
.footer__email:hover { color: var(--accent-dark); }
.footer__links { display: flex; gap: var(--sp-5); margin-top: 22px; flex-wrap: wrap; }
.footer__links a { font-size: var(--fs-small); color: var(--text-dim); }
.footer__links a:hover { color: var(--accent); }

/* =========================================================================
   Four-page rebuild additions (2026-08-01) — page header, hero mockup,
   product tour, spec cards, notification cards, CTA band, contact form.
   ========================================================================= */

/* ---------------------------------------------------------------------- *
 * Inner-page header (Platform / Specifications / Contact)
 * ---------------------------------------------------------------------- */
.page-header {
  background: var(--bg);
  border-bottom: 1px solid var(--hairline);
  padding: 72px 0 56px;
}
.page-header--plain { border-bottom: none; padding-bottom: 40px; }
.page-header h1 {
  font-size: clamp(2rem, 3.8vw, 3.1rem);
  line-height: 1.08;
  margin: 0 0 18px;
  max-width: 900px;
}
.page-header .lead {
  color: var(--text-dim);
  font-size: 17px;
  line-height: 1.6;
  max-width: 780px;
  margin: 0;
}
.page-header__anchors {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  margin-top: 34px;
  padding-top: 26px;
  border-top: 1px solid var(--hairline);
}
.page-header__anchors a {
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--text-dim);
  transition: color var(--dur-fast) var(--ease);
}
.page-header__anchors a:hover,
.page-header__anchors a.is-active { color: var(--text); }

/* ---------------------------------------------------------------------- *
 * Hero control-room mockup (Overview)
 * ---------------------------------------------------------------------- */
.hero-mockup {
  border: 1px solid var(--hairline);
  border-radius: 8px;
  background: var(--bg);
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,0.55);
}
.hero-mockup__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 1px solid var(--hairline);
  background: var(--panel);
}
.hero-mockup__title {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  font-weight: 600;
}
.hero-mockup__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  display: block;
  flex-shrink: 0;
}
.hero-mockup__meta {
  font-size: 11px;
  color: var(--text-dim);
  font-family: "IBM Plex Sans", monospace;
}
.hero-mockup__body {
  display: grid;
  grid-template-columns: 1.05fr 1.35fr;
  gap: 1px;
  background: var(--hairline);
}
.hero-mockup__col {
  background: var(--bg);
  padding: var(--sp-3);
  display: grid;
  gap: var(--sp-2);
  align-content: start;
}
.hero-mockup__col-label {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  font-weight: 600;
}
.hero-event {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: var(--sp-2);
  align-items: center;
  padding: 8px 9px;
  border: 1px solid var(--hairline);
  border-radius: 4px;
  background: var(--panel);
}
.hero-event__bar {
  width: 6px; height: 22px;
  border-radius: 2px;
  background: var(--accent);
  display: block;
  opacity: 0.85;
}
.hero-event__text { display: grid; gap: 2px; min-width: 0; }
.hero-event__title {
  font-size: 11.5px; font-weight: 600; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.hero-event__meta {
  font-size: 10px; color: var(--text-dim);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.hero-event__time { font-size: 9.5px; color: var(--text-dim); font-weight: 600; }
.hero-cams { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-2); }
.hero-cam {
  position: relative;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--hairline);
  border-radius: 4px;
  background: linear-gradient(140deg, var(--panel-raised) 0%, var(--panel) 55%, var(--bg) 100%);
  overflow: hidden;
}
.hero-cam__id { position: absolute; left: 6px; top: 5px; font-size: 9px; font-weight: 600; color: var(--text); letter-spacing: 0.04em; }
.hero-cam__live { position: absolute; right: 6px; top: 5px; font-size: 8.5px; font-weight: 600; color: var(--accent); }
.hero-cam__place { position: absolute; left: 6px; bottom: 5px; font-size: 8.5px; color: var(--text-dim); }
.hero-cam__box {
  position: absolute; left: 50%; top: 52%; width: 34%; height: 34%;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(241,102,42,0.55);
  border-radius: 2px;
}
.hero-status-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.hero-status {
  border: 1px solid var(--hairline);
  border-top: 2px solid var(--accent);
  border-radius: 3px;
  background: var(--panel);
  padding: 7px 8px;
  display: grid;
  gap: 2px;
}
.hero-status__label { font-size: 9px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-dim); font-weight: 600; }
.hero-status__count { font-family: "Archivo", sans-serif; font-weight: 800; font-size: 17px; color: var(--text); line-height: 1; }

@media (max-width: 640px) {
  .hero-mockup { overflow-x: auto; }
  .hero-mockup__body { min-width: 480px; }
}

/* ---------------------------------------------------------------------- *
 * Deployment scale bars (replaces circle icon)
 * ---------------------------------------------------------------------- */
.scale-bars { display: flex; gap: 5px; align-items: flex-end; height: 26px; margin-bottom: var(--sp-5); }
.scale-bars span { width: 9px; background: var(--accent); display: block; border-radius: 1px; }
.deploy-card .footnote {
  font-size: 12px;
  color: var(--text-dim);
  border-top: 1px solid var(--hairline);
  padding-top: var(--sp-3);
  letter-spacing: 0.04em;
  margin-top: var(--sp-4);
}

/* ---------------------------------------------------------------------- *
 * Status card modifiers (Platform incident-response statuses)
 * ---------------------------------------------------------------------- */
.status-card--flat-top { border-radius: 0 0 6px 6px; }
.status-card__label {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 10px;
}

/* ---------------------------------------------------------------------- *
 * Generic feature card (E-Map & GIS grid)
 * ---------------------------------------------------------------------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-5);
}
.feature-card {
  background: var(--bg);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: var(--sp-5);
  transition: border-color var(--dur-fast) var(--ease);
}
.feature-card:hover { border-color: var(--accent); }
.feature-card h3 { font-size: 1rem; margin-bottom: var(--sp-2); }
.feature-card p { color: var(--text-dim); font-size: var(--fs-small); }

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

/* ---------------------------------------------------------------------- *
 * Closing CTA band (Overview / Specifications)
 * ---------------------------------------------------------------------- */
.cta-band {
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 44px;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: var(--sp-8);
  align-items: center;
}
.cta-band h2 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  line-height: 1.16;
  margin: 0 0 var(--sp-3);
}
.cta-band p { color: var(--text-dim); }
.cta-band__actions { display: flex; gap: var(--sp-4); flex-wrap: wrap; justify-self: end; }

@media (max-width: 900px) {
  .cta-band { grid-template-columns: 1fr; padding: var(--sp-6) var(--sp-5); }
  .cta-band__actions { justify-self: start; }
  .cta-band__actions .btn { width: 100%; }
}

/* ---------------------------------------------------------------------- *
 * Chip group spacing (Compatibility)
 * ---------------------------------------------------------------------- */
.chip-groups { display: grid; gap: 34px; }
.chip-groups > .chip-group { margin-bottom: 0; }

/* ---------------------------------------------------------------------- *
 * Technical specification cards
 * ---------------------------------------------------------------------- */
.spec-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-5);
}
.spec-card {
  background: var(--panel);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: var(--sp-6);
  transition: border-color var(--dur-fast) var(--ease);
}
.spec-card:hover { border-color: var(--accent); }
.spec-card h3 { font-size: 17px; margin-bottom: var(--sp-4); }
.spec-row {
  display: grid;
  grid-template-columns: minmax(120px, 0.8fr) 1.6fr;
  gap: var(--sp-4);
  padding: 10px 0;
  border-top: 1px solid var(--hairline);
}
.spec-row__k {
  font-size: 12.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-dim);
  font-weight: 600;
}
.spec-row__v { font-size: 14px; color: var(--text); }

@media (max-width: 1024px) { .spec-grid { grid-template-columns: 1fr; } }

/* Notification cards (Specifications) */
.notif-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-5); }
.notif-card {
  background: var(--bg);
  border: 1px solid var(--hairline);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: var(--sp-5);
}
.notif-card h3 { font-size: 1rem; margin-bottom: var(--sp-2); }
.notif-card p { color: var(--text-dim); font-size: var(--fs-small); }

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

/* ---------------------------------------------------------------------- *
 * Product tour (Platform, #tour)
 * ---------------------------------------------------------------------- */
.tour-tabs { display: flex; gap: var(--sp-2); flex-wrap: wrap; margin-bottom: var(--sp-5); }
.tour-tab {
  padding: 9px 16px;
  border-radius: var(--radius-chip);
  border: 1px solid var(--hairline);
  background: transparent;
  color: var(--text-dim);
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.tour-tab[aria-selected="true"] {
  background: var(--accent);
  color: var(--text-on-accent);
  border-color: var(--accent);
}
.tour-frame {
  border: 1px solid var(--hairline);
  border-radius: 8px;
  background: var(--bg);
  overflow: hidden;
}
.tour-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 16px;
  border-bottom: 1px solid var(--hairline);
  background: var(--panel-raised);
}
.tour-toolbar__title {
  display: flex; align-items: center; gap: var(--sp-3);
  font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text); font-weight: 600;
}
.tour-toolbar__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); display: block; flex-shrink: 0; }
.tour-toolbar__meta { font-size: 11.5px; color: var(--text-dim); }
.tour-panel { min-height: 460px; }

@media (max-width: 999px) {
  .tour-tabs { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; }
  .tour-panel { overflow-x: auto; }
  .tp-wrap { min-width: 900px; }
}

/* Panel 1 — Control room */
.tp-control { display: grid; grid-template-columns: 1fr 1.6fr 1fr; gap: 1px; background: var(--hairline); min-height: 460px; }
.tp-col { background: var(--bg); padding: 14px; display: grid; gap: 10px; align-content: start; }
.tp-col-label { font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-dim); font-weight: 600; }
.tp-event { display: grid; grid-template-columns: auto 1fr; gap: 9px; padding: 9px 10px; border: 1px solid var(--hairline); border-radius: 4px; background: var(--panel); }
.tp-event__bar { width: 5px; border-radius: 2px; background: var(--accent); display: block; }
.tp-event__body { display: grid; gap: 3px; min-width: 0; }
.tp-event__title { font-size: 12px; font-weight: 600; color: var(--text); }
.tp-event__meta { font-size: 10.5px; color: var(--text-dim); }
.tp-event__pri { font-size: 10px; color: var(--text-dim); letter-spacing: 0.06em; text-transform: uppercase; }
.tp-cams { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tp-cam { position: relative; aspect-ratio: 16 / 9; border: 1px solid var(--hairline); border-radius: 4px; background: linear-gradient(140deg, var(--panel-raised) 0%, var(--panel) 55%, var(--bg) 100%); overflow: hidden; }
.tp-cam__id { position: absolute; left: 8px; top: 7px; font-size: 10px; font-weight: 600; color: var(--text); }
.tp-cam__live { position: absolute; right: 8px; top: 7px; font-size: 9px; font-weight: 600; color: var(--accent); }
.tp-cam__place { position: absolute; left: 8px; bottom: 7px; font-size: 9.5px; color: var(--text-dim); }
.tp-cam__codec { position: absolute; right: 8px; bottom: 7px; font-size: 9px; color: var(--text-dim); }
.tp-cam__box { position: absolute; left: 50%; top: 50%; width: 30%; height: 38%; transform: translate(-50%, -50%); border: 1px solid rgba(241,102,42,0.6); border-radius: 2px; }
.tp-wall { border: 1px solid var(--hairline); border-radius: 4px; background: var(--panel); padding: 12px 14px; display: grid; gap: var(--sp-2); }
.tp-wall-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.tp-wall-slot { aspect-ratio: 16 / 10; border: 1px solid var(--hairline); border-radius: 2px; background: var(--panel-raised); display: flex; align-items: center; justify-content: center; font-size: 9px; color: var(--text-dim); }
.tp-incident { border: 1px solid var(--accent); border-radius: 4px; padding: 12px; display: grid; gap: 6px; }
.tp-incident__ref { font-size: 9.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
.tp-incident__title { font-family: "Archivo", sans-serif; font-weight: 800; font-size: 15px; }
.tp-incident__detail { font-size: 11px; color: var(--text-dim); }
.tp-field { display: grid; gap: 3px; padding: 9px 0; border-bottom: 1px solid var(--hairline); }
.tp-field__k { font-size: 9.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-dim); font-weight: 600; }
.tp-field__v { font-size: 12.5px; color: var(--text); }
.tp-actions { display: grid; gap: var(--sp-2); margin-top: 4px; }
.tp-action { padding: 10px; border-radius: 4px; font-size: 12px; font-weight: 600; text-align: center; }
.tp-action--primary { background: var(--accent); color: var(--text-on-accent); }
.tp-action--outline { border: 1px solid var(--hairline); color: var(--text-dim); }

/* Panel 2 — E-Map / GIS */
.tp-map { display: grid; grid-template-columns: 1fr 250px; gap: 1px; background: var(--hairline); min-height: 460px; }
.tp-map-canvas {
  position: relative;
  background: #141518;
  background-image: linear-gradient(rgba(58,59,62,0.55) 1px, transparent 1px), linear-gradient(90deg, rgba(58,59,62,0.55) 1px, transparent 1px);
  background-size: 56px 56px;
  overflow: hidden;
}
.tp-map-road-h { position: absolute; left: 0; top: 38%; width: 100%; height: 26px; background: var(--panel); border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.tp-map-road-v { position: absolute; left: 26%; top: 0; width: 22px; height: 100%; background: var(--panel); border-left: 1px solid var(--hairline); border-right: 1px solid var(--hairline); }
.tp-map-building { position: absolute; left: 58%; top: 12%; width: 26%; height: 34%; border: 1px solid var(--hairline); background: rgba(38,39,42,0.7); border-radius: 3px; }
.tp-map-building-label { position: absolute; left: 58%; top: 12%; padding: 4px 7px; font-size: 9.5px; color: var(--text-dim); }
.tp-pin { position: absolute; display: grid; gap: 4px; justify-items: center; }
.tp-pin__cone { width: 0; height: 0; border-left: 26px solid transparent; border-right: 26px solid transparent; border-bottom: 46px solid rgba(241,102,42,0.16); display: block; }
.tp-pin__dot { width: 12px; height: 12px; border-radius: 50%; background: var(--accent); border: 2px solid var(--bg); display: block; margin-top: -46px; }
.tp-pin__label { font-size: 9px; font-weight: 600; color: var(--text); background: rgba(13,13,13,0.8); padding: 2px 5px; border-radius: 2px; white-space: nowrap; }
.tp-map-tools { position: absolute; left: 16px; bottom: 16px; display: flex; gap: 6px; }
.tp-map-tool { width: 30px; height: 30px; border: 1px solid var(--hairline); border-radius: 3px; background: rgba(13,13,13,0.85); display: flex; align-items: center; justify-content: center; font-size: 12px; color: var(--text-dim); }
.tp-map-credit { position: absolute; right: 16px; bottom: 16px; font-size: 9.5px; color: var(--text-dim); background: rgba(13,13,13,0.85); padding: 5px 9px; border-radius: 3px; border: 1px solid var(--hairline); }
.tp-map-rail { background: var(--bg); padding: 14px; display: grid; gap: 14px; align-content: start; }
.tp-layer { display: flex; align-items: center; justify-content: space-between; padding: 7px 9px; border: 1px solid var(--hairline); border-radius: 4px; background: var(--panel); }
.tp-layer__name { font-size: 11.5px; color: var(--text); }
.tp-switch { width: 26px; height: 14px; border-radius: var(--radius-chip); display: flex; align-items: center; padding: 2px; }
.tp-switch__knob { width: 10px; height: 10px; border-radius: 50%; background: var(--bg); display: block; }
.tp-switch--on { background: var(--accent); justify-content: flex-end; }
.tp-switch--off { background: var(--hairline); justify-content: flex-start; }
.tp-health { display: grid; gap: 4px; padding: 8px 9px; border: 1px solid var(--hairline); border-radius: 4px; background: var(--panel); }
.tp-health__row { display: flex; justify-content: space-between; font-size: 11px; }
.tp-health__name { color: var(--text-dim); }
.tp-health__val { color: var(--text); font-weight: 600; }
.tp-health__track { height: 3px; background: var(--hairline); border-radius: 2px; overflow: hidden; }
.tp-health__fill { display: block; height: 100%; background: var(--accent); }

/* Panel 3 — Incident board */
.tp-board { padding: 16px; min-height: 460px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; align-content: start; }
.tp-board-col { display: grid; gap: var(--sp-3); align-content: start; }
.tp-board-head { display: flex; align-items: center; justify-content: space-between; border-top: 3px solid var(--accent); background: var(--panel); border-radius: 0 0 4px 4px; padding: 10px 12px; }
.tp-board-head__name { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text); font-weight: 600; }
.tp-board-head__count { font-family: "Archivo", sans-serif; font-weight: 800; font-size: 14px; color: var(--accent); }
.tp-board-desc { font-size: 11px; color: var(--text-dim); padding: 0 2px; }
.tp-board-card { border: 1px solid var(--hairline); border-radius: 4px; background: var(--panel); padding: 11px; display: grid; gap: 6px; }
.tp-board-card__top { display: flex; justify-content: space-between; align-items: center; }
.tp-board-card__id { font-size: 9.5px; letter-spacing: 0.06em; color: var(--accent); font-weight: 600; }
.tp-board-card__age { font-size: 9px; color: var(--text-dim); }
.tp-board-card__title { font-size: 12px; font-weight: 600; color: var(--text); }
.tp-board-card__meta { font-size: 10.5px; color: var(--text-dim); }
.tp-board-card__tags { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 2px; }
.tp-board-card__tag { font-size: 9px; color: var(--text-dim); border: 1px solid var(--hairline); border-radius: var(--radius-chip); padding: 2px 7px; }

@media (max-width: 999px) { .tp-board { grid-template-columns: repeat(4, 220px); } }

/* Panel 4 — SOP panel */
.tp-sop { display: grid; grid-template-columns: 1.25fr 1fr; gap: 1px; background: var(--hairline); min-height: 460px; }
.tp-sop-left, .tp-sop-right { background: var(--bg); padding: 18px; display: grid; gap: 14px; align-content: start; }
.tp-sop-head { display: grid; gap: 5px; }
.tp-sop-head__label { font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
.tp-sop-head__title { font-family: "Archivo", sans-serif; font-weight: 800; font-size: 19px; }
.tp-sop-head__note { font-size: 12px; color: var(--text-dim); }
.tp-sop-step { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 12px; border: 1px solid var(--hairline); border-radius: 4px; background: var(--panel); }
.tp-sop-badge { width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--accent); display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 700; flex-shrink: 0; }
.tp-sop-badge--done { background: var(--accent); color: var(--text-on-accent); }
.tp-sop-badge--pending { background: transparent; color: var(--accent); }
.tp-sop-step__body { display: grid; gap: 3px; }
.tp-sop-step__title { font-size: 13px; font-weight: 600; color: var(--text); }
.tp-sop-step__detail { font-size: 11px; color: var(--text-dim); }
.tp-sop-step__state { font-size: 10px; color: var(--text-dim); letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; }
.tp-sop-callout { border: 1px solid var(--accent); border-radius: 4px; padding: 12px 14px; color: var(--accent); font-size: 12px; font-weight: 600; }
.tp-sop-right-label { font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-dim); font-weight: 600; }
.tp-sop-fields { display: grid; gap: 10px; }
.tp-sop-field { display: grid; gap: 5px; }
.tp-sop-field__label { font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-dim); font-weight: 600; }
.tp-sop-field__value { border: 1px solid var(--hairline); border-radius: 4px; background: var(--panel); padding: 9px 11px; font-size: 12.5px; color: var(--text); }
.tp-sop-field__value--tall { min-height: 62px; }
.tp-sop-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 2px; }
.tp-sop-notify { border-top: 1px solid var(--hairline); padding-top: 12px; display: grid; gap: 7px; }
.tp-sop-channels { display: flex; gap: 6px; flex-wrap: wrap; }
.tp-sop-channel { font-size: 10.5px; color: var(--text-dim); border: 1px solid var(--hairline); border-radius: var(--radius-chip); padding: 4px 10px; }

/* Panel 5 — Dashboard */
.tp-dash { padding: 18px; min-height: 460px; display: grid; gap: 14px; align-content: start; }
.tp-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.tp-kpi { border: 1px solid var(--hairline); border-top: 2px solid var(--accent); border-radius: 4px; background: var(--panel); padding: 14px; display: grid; gap: 5px; }
.tp-kpi__label { font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-dim); font-weight: 600; }
.tp-kpi__value { font-family: "Archivo", sans-serif; font-weight: 800; font-size: 26px; line-height: 1; color: var(--text); }
.tp-kpi__sub { font-size: 11px; color: var(--text-dim); }
.tp-dash-row { display: grid; grid-template-columns: 1.5fr 1fr; gap: 14px; }
.tp-chart-card { border: 1px solid var(--hairline); border-radius: 4px; background: var(--panel); padding: 16px; display: grid; gap: 14px; }
.tp-chart-head { display: flex; justify-content: space-between; align-items: baseline; }
.tp-chart-head__label { font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-dim); font-weight: 600; }
.tp-chart-head__peak { font-size: 10.5px; color: var(--text-dim); }
.tp-chart { display: flex; align-items: flex-end; gap: 8px; height: 150px; }
.tp-chart-bar { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 5px; }
.tp-chart-bar__fill { width: 100%; background: var(--accent); display: block; border-radius: 2px 2px 0 0; }
.tp-chart-bar__day { font-size: 8.5px; color: var(--text-dim); }
.tp-sources-card { border: 1px solid var(--hairline); border-radius: 4px; background: var(--panel); padding: 16px; display: grid; gap: 11px; align-content: start; }
.tp-sources-label { font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-dim); font-weight: 600; }
.tp-source { display: grid; gap: 5px; }
.tp-source__row { display: flex; justify-content: space-between; font-size: 11.5px; }
.tp-source__name { color: var(--text); }
.tp-source__val { color: var(--text-dim); }
.tp-source__track { height: 5px; background: var(--panel-raised); border-radius: 3px; overflow: hidden; }
.tp-source__fill { display: block; height: 100%; background: var(--accent); }

@media (max-width: 999px) { .tp-dash-row { grid-template-columns: 1fr 1fr; } }

/* Panel 6 — Export Online */
.tp-export { padding: 18px; min-height: 460px; display: grid; gap: 14px; align-content: start; }
.tp-export-steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.tp-export-step { border: 1px solid var(--hairline); border-radius: 4px; background: var(--panel); padding: 12px; display: grid; gap: 6px; border-top: 2px solid var(--hairline); }
.tp-export-step--done { border-top-color: var(--accent); }
.tp-export-step__label { font-size: 9.5px; letter-spacing: 0.08em; color: var(--accent); font-weight: 600; }
.tp-export-step__name { font-size: 12.5px; font-weight: 600; color: var(--text); }
.tp-export-step__desc { font-size: 10.5px; color: var(--text-dim); }
.tp-export-table { border: 1px solid var(--hairline); border-radius: 4px; background: var(--panel); overflow: hidden; }
.tp-export-thead { display: grid; grid-template-columns: 1fr 1.3fr 0.9fr 0.9fr 0.8fr; gap: 12px; padding: 11px 14px; border-bottom: 1px solid var(--hairline); background: var(--panel-raised); }
.tp-export-th { font-size: 9.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-dim); font-weight: 600; }
.tp-export-row { display: grid; grid-template-columns: 1fr 1.3fr 0.9fr 0.9fr 0.8fr; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--hairline); align-items: center; }
.tp-export-row:last-child { border-bottom: none; }
.tp-export-ref { font-size: 11.5px; color: var(--accent); font-weight: 600; }
.tp-export-subject { font-size: 11.5px; color: var(--text); }
.tp-export-dim { font-size: 11px; color: var(--text-dim); }
.tp-export-status { font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 600; color: var(--text); border: 1px solid var(--hairline); border-radius: var(--radius-chip); padding: 3px 9px; justify-self: start; }
.tp-export-highlights { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tp-export-highlight { border: 1px solid var(--accent); border-radius: 4px; padding: 14px; display: grid; gap: 6px; }
.tp-export-highlight__title { font-family: "Archivo", sans-serif; font-weight: 800; font-size: 14px; color: var(--accent); }
.tp-export-highlight__body { font-size: 12px; color: var(--text); }

@media (max-width: 999px) {
  .tp-export-steps { grid-template-columns: repeat(5, 160px); }
  .tp-export-highlights { grid-template-columns: 1fr; min-width: 0; }
}

/* ---------------------------------------------------------------------- *
 * Contact page
 * ---------------------------------------------------------------------- */
.flex-page { display: flex; flex-direction: column; min-height: 100vh; }
.flex-page main { flex: 1; }

input, textarea, select {
  font: inherit;
  color: var(--text);
  background: var(--panel);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 11px 13px;
  width: 100%;
}
input::placeholder, textarea::placeholder { color: #6E7075; }

.contact-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: var(--sp-6); align-items: start; }
.form-card { background: var(--panel); border: 1px solid var(--hairline); border-radius: var(--radius); padding: var(--sp-6); }
.form-card h2 { font-size: 20px; margin-bottom: 6px; }
.form-card__note { color: var(--text-dim); font-size: var(--fs-small); margin-bottom: var(--sp-5); }
.form-fields { display: grid; gap: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 7px; }
.field-label {
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
  font-weight: 600;
}
.field-error {
  color: var(--accent);
  font-size: 13px;
  display: none;
}
.field-error.is-visible { display: block; }
.field-group { display: grid; gap: 9px; }
.chip-toggle-row { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.chip--toggle { cursor: pointer; border: 1px solid var(--hairline); background: var(--bg); }
.chip--toggle[aria-pressed="true"] { background: var(--accent); color: var(--text-on-accent); border-color: var(--accent); }
.form-submit-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.form-submit-note { font-size: 13px; color: var(--text-dim); }
.form-submit-note a { color: var(--accent); font-weight: 600; }
.form-submit-note a:hover { color: var(--accent-dark); }

.contact-rail { display: grid; gap: var(--sp-5); }
.rail-card { background: var(--panel); border: 1px solid var(--hairline); border-radius: var(--radius); padding: 26px; }
.rail-card--accent { border-top: 3px solid var(--accent); }
.rail-card--outline { border: 1px solid var(--accent); background: transparent; }
.rail-card__label {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  font-weight: 600;
  margin-bottom: 14px;
}
.rail-direct-email {
  font-family: "Archivo", sans-serif;
  font-weight: 800;
  font-size: 22px;
  color: var(--accent);
  display: block;
  margin-bottom: 8px;
}
.rail-direct-email:hover { color: var(--accent-dark); }
.rail-card p { color: var(--text-dim); font-size: var(--fs-small); margin: 0; }
.rail-steps .rail-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--hairline);
}
.rail-step__badge {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-family: "Archivo", sans-serif;
  font-weight: 800;
  font-size: 12px;
  flex-shrink: 0;
}
.rail-step__body { display: grid; gap: 4px; }
.rail-step__title { font-family: "Archivo", sans-serif; font-weight: 800; font-size: 15px; }
.rail-step__desc { color: var(--text-dim); font-size: 13.5px; }
.rail-card--outline .rail-card__label,
.rail-card--outline h3 { color: var(--accent); font-size: 16px; margin: 0 0 8px; }
.rail-card--outline p { color: var(--text); }

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .field-row { grid-template-columns: 1fr; }
}
