:root {
  --primary: #0f172a;
  --accent: #00674f;
  --dark: #020617;
  --light: #f8fafc;
  --border: #e2e8f0;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, system-ui, sans-serif;
  color: var(--primary);
  background: var(--light);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 64px;
  padding: 0 32px;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 22px;
  letter-spacing: 0;
}

.brand em {
  color: #64748b;
  font-style: normal;
  font-weight: 300;
}

.brand-mark {
  position: relative;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--accent);
  border-radius: 8px;
}

.brand-mark img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

nav {
  display: flex;
  align-items: center;
  gap: 28px;
  color: #475569;
  font-size: 14px;
  font-weight: 600;
}

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

.header-cta,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 700;
}

.header-cta,
.btn-dark {
  color: #fff;
  background: var(--accent);
}

.btn-dark:hover {
  background: #075f4a;
}

.btn-light {
  color: #334155;
  background: #fff;
  border-color: #cbd5e1;
}

i,
svg {
  width: 18px;
  height: 18px;
}

.icon {
  position: relative;
  display: inline-block;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
}

.icon-arrow::before,
.icon-arrow::after {
  position: absolute;
  content: "";
}

.icon-arrow::before {
  top: 8px;
  left: 2px;
  width: 13px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
}

.icon-arrow::after {
  top: 4px;
  right: 2px;
  width: 8px;
  height: 8px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
}

.icon-play {
  width: 0;
  height: 0;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 12px solid currentColor;
}

.icon-shield,
.icon-cloud,
.icon-lock,
.icon-rocket {
  color: currentColor;
}

.icon-shield::before {
  position: absolute;
  inset: 1px 3px 2px;
  border: 2px solid currentColor;
  border-radius: 9px 9px 10px 10px;
  clip-path: polygon(50% 0, 100% 18%, 88% 78%, 50% 100%, 12% 78%, 0 18%);
  content: "";
}

.icon-cloud::before {
  position: absolute;
  left: 1px;
  right: 1px;
  bottom: 3px;
  height: 10px;
  border: 2px solid currentColor;
  border-radius: 999px;
  content: "";
}

.icon-cloud::after {
  position: absolute;
  top: 3px;
  left: 5px;
  width: 9px;
  height: 9px;
  border: 2px solid currentColor;
  border-bottom: 0;
  border-radius: 999px 999px 0 0;
  background: transparent;
  content: "";
}

.icon-lock::before {
  position: absolute;
  left: 3px;
  right: 3px;
  bottom: 2px;
  height: 10px;
  border: 2px solid currentColor;
  border-radius: 4px;
  content: "";
}

.icon-lock::after {
  position: absolute;
  top: 1px;
  left: 6px;
  width: 6px;
  height: 8px;
  border: 2px solid currentColor;
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  content: "";
}

.icon-rocket::before {
  position: absolute;
  inset: 1px 5px 4px;
  background: currentColor;
  border-radius: 9px 9px 7px 7px;
  transform: rotate(35deg);
  content: "";
}

.icon-rocket::after {
  position: absolute;
  right: 1px;
  bottom: 1px;
  width: 7px;
  height: 7px;
  background: #fbbf24;
  border-radius: 999px 999px 999px 0;
  content: "";
}

.section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 80px 28px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
  gap: 56px;
  align-items: center;
  min-height: calc(100vh - 64px);
}

.eyebrow,
.section-heading p {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow .dot {
  display: inline-block;
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  background: var(--success);
  border-radius: 50%;
}

/* Ensure eyebrow text span does not inherit dot styling */
.eyebrow > span:not(.dot) {
  line-height: 1.5;
  background: transparent;
  border-radius: 0;
  width: auto;
  height: auto;
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: 0;
}

h1 {
  max-width: 780px;
  font-size: clamp(42px, 7vw, 72px);
  line-height: 0.96;
  font-weight: 800;
}

h1::first-line {
  color: #111827;
}

h2 {
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.05;
}

.hero-text {
  max-width: 620px;
  color: #475569;
  font-size: 19px;
  line-height: 1.7;
}

.hero-actions,
.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 26px;
}

.trust-row {
  color: #334155;
  font-size: 14px;
  font-weight: 700;
}

.trust-row span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.trust-row svg {
  width: 22px;
  height: 22px;
  padding: 3px;
  color: var(--accent);
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: 50%;
  stroke-width: 2.4;
}

.terminal-card {
  position: relative;
  overflow: hidden;
  padding: 18px;
  color: #e2e8f0;
  background: var(--primary);
  border: 4px solid #1e293b;
  border-radius: 14px;
  box-shadow: 0 26px 60px rgba(15, 23, 42, 0.28);
}

.terminal-card::before,
.terminal-card::after {
  position: absolute;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  content: "";
  filter: blur(40px);
  opacity: 0.35;
}

.terminal-card::before {
  top: -58px;
  left: -54px;
  background: #10b981;
}

.terminal-card::after {
  right: -52px;
  bottom: -70px;
  background: #38bdf8;
}

.terminal-top,
.scan-feed,
.metric-grid {
  position: relative;
  z-index: 1;
}

.terminal-top {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 14px;
  border-bottom: 1px solid #1e293b;
}

.terminal-top span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.terminal-top span:nth-child(1) { background: #f43f5e; }
.terminal-top span:nth-child(2) { background: #f59e0b; }
.terminal-top span:nth-child(3) { background: #10b981; }

.terminal-top strong {
  margin-left: auto;
  color: #94a3b8;
  font-family: "Roboto Mono", monospace;
  font-size: 12px;
}

.scan-feed {
  margin: 18px 0;
  padding: 18px;
  background: #020617;
  border: 1px solid rgba(16, 185, 129, 0.28);
  border-radius: var(--radius);
  font-family: "Roboto Mono", monospace;
  font-size: 13px;
}

.scan-feed p {
  color: #64748b;
}

.vehicle-row {
  display: flex;
  justify-content: space-between;
  padding: 12px;
  color: #34d399;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(16, 185, 129, 0.22);
  border-radius: var(--radius);
}

dl div {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 8px;
  margin: 12px 0;
}

dt {
  color: #34d399;
}

dd {
  margin: 0;
}

.metric-grid,
.admin-kpis {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.metric-grid div,
.admin-kpis div {
  padding: 14px;
  text-align: center;
  background: rgba(2, 6, 23, 0.72);
  border: 1px solid #1e293b;
  border-radius: var(--radius);
}

small {
  display: block;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.metric-grid strong,
.admin-kpis strong {
  display: block;
  margin-top: 6px;
  color: #34d399;
  font-family: "Roboto Mono", monospace;
  font-size: 22px;
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 42px;
  text-align: center;
}

.section-heading.inverse {
  color: #fff;
}

.section-heading.inverse p {
  color: #34d399;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.card-grid article {
  padding: 24px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.card-grid svg {
  width: 30px;
  height: 30px;
  color: var(--accent);
}

.card-grid p {
  color: #64748b;
  line-height: 1.55;
}

.ecosystem {
  max-width: none;
  background: #0f172a;
}

.ecosystem-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  max-width: 1180px;
  margin: 0 auto;
}

.phone-frame,
.guard-frame,
.admin-frame {
  min-height: 420px;
  padding: 22px;
  color: #e2e8f0;
  background: #020617;
  border: 1px solid #1e293b;
  border-radius: 18px;
}

.phone-frame header,
.guard-frame header,
.admin-frame header {
  display: flex;
  justify-content: space-between;
  color: #94a3b8;
}

.phone-frame header span,
.guard-frame header span,
.admin-frame header span {
  padding: 4px 8px;
  color: #34d399;
  background: #052e26;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
}

.phone-frame button,
.guard-frame button {
  width: 100%;
  min-height: 56px;
  margin: 22px 0;
  color: #fff;
  background: var(--accent);
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 800;
}

.qr-preview {
  display: grid;
  grid-template-rows: auto auto auto;
  gap: 10px;
  min-height: 190px;
  place-items: center;
  padding: 18px 16px;
  color: #0f172a;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius);
  box-shadow: inset 0 0 0 8px #fff;
  font-family: "Roboto Mono", monospace;
  text-align: center;
}

.qr-preview strong {
  color: #00674f;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0;
}

.qr-preview small {
  color: #64748b;
}

.qr-paper {
  position: relative;
  width: 128px;
  height: 128px;
  background:
    linear-gradient(90deg, #0f172a 10px, transparent 10px 20px, #0f172a 20px 30px, transparent 30px 40px) 52px 16px / 40px 40px no-repeat,
    linear-gradient(#0f172a 10px, transparent 10px 20px, #0f172a 20px 30px, transparent 30px 40px) 16px 52px / 40px 40px no-repeat,
    linear-gradient(90deg, transparent 10px, #0f172a 10px 20px, transparent 20px 30px, #0f172a 30px 40px) 64px 76px / 40px 40px no-repeat,
    #fff;
  border: 10px solid #fff;
  outline: 1px solid #e2e8f0;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.18);
}

.qr-finder,
.qr-dot {
  position: absolute;
  z-index: 1;
  background: #fff;
  border: 6px solid #0f172a;
}

.qr-finder {
  width: 34px;
  height: 34px;
  box-shadow: inset 0 0 0 6px #fff, inset 0 0 0 12px #0f172a;
}

.qr-finder.top-left { top: 6px; left: 6px; }
.qr-finder.top-right { top: 6px; right: 6px; }
.qr-finder.bottom-left { bottom: 6px; left: 6px; }

.qr-dot {
  width: 12px;
  height: 12px;
  border: 0;
  background: #0f172a;
}

.qr-dot.d1 { top: 54px; left: 56px; }
.qr-dot.d2 { top: 54px; right: 18px; }
.qr-dot.d3 { right: 34px; bottom: 20px; }
.qr-dot.d4 { right: 10px; bottom: 44px; }
.qr-dot.d5 { left: 52px; bottom: 10px; }

.guard-screen {
  display: grid;
  grid-template-rows: auto auto auto;
  gap: 10px;
  min-height: 210px;
  place-items: center;
  margin-top: 24px;
  padding: 20px;
  text-align: center;
  background: #0f172a;
  border: 1px solid #1e293b;
  border-radius: var(--radius);
}

.guard-screen.approved {
  background: #052e26;
  border-color: #0f766e;
}

.guard-screen.denied {
  background: #7f1d1d;
}

.guard-screen svg {
  width: 58px;
  height: 58px;
  stroke-width: 2.2;
}

.scanner-window {
  width: min(156px, 68%);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  color: #d1fae5;
  background:
    linear-gradient(#34d399, #34d399) left top / 28px 3px no-repeat,
    linear-gradient(#34d399, #34d399) left top / 3px 28px no-repeat,
    linear-gradient(#34d399, #34d399) right top / 28px 3px no-repeat,
    linear-gradient(#34d399, #34d399) right top / 3px 28px no-repeat,
    linear-gradient(#34d399, #34d399) left bottom / 28px 3px no-repeat,
    linear-gradient(#34d399, #34d399) left bottom / 3px 28px no-repeat,
    linear-gradient(#34d399, #34d399) right bottom / 28px 3px no-repeat,
    linear-gradient(#34d399, #34d399) right bottom / 3px 28px no-repeat,
    rgba(2, 6, 23, 0.42);
  border-radius: 10px;
}

.scanner-window.approved-check {
  background: rgba(16, 185, 129, 0.16);
  border: 1px solid rgba(52, 211, 153, 0.5);
}

#audit-log {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

#audit-log li {
  display: flex;
  gap: 10px;
  padding: 12px 0;
  color: #cbd5e1;
  border-bottom: 1px solid #1e293b;
  font-size: 14px;
}

#audit-log span {
  color: #34d399;
  font-family: "Roboto Mono", monospace;
  font-weight: 800;
}

.pricing-layout,
.signup {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
  align-items: start;
}

.plan-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.plan-tabs button {
  min-height: 44px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 800;
}

.plan-tabs button.active {
  color: var(--accent);
  border: 2px solid var(--accent);
  background: #ecfdf5;
}

.range-label,
.price-card,
.signup-form {
  padding: 24px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.range-label {
  display: grid;
  gap: 18px;
}

input[type="range"] {
  accent-color: var(--accent);
}

.price-card strong {
  display: block;
  margin-top: 10px;
  font-size: 40px;
}

.price-card p {
  color: #64748b;
}

.signup {
  max-width: none;
  padding-inline: max(28px, calc((100vw - 1180px) / 2));
  background: #fff;
  border-top: 1px solid var(--border);
}

.signup-copy {
  max-width: 520px;
}

.signup-copy p {
  color: #475569;
  line-height: 1.65;
}

.demo-warning {
  padding: 12px 14px;
  color: #92400e !important;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 800;
}

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

.signup-form label {
  display: grid;
  gap: 8px;
  color: #334155;
  font-size: 13px;
  font-weight: 800;
}

.signup-form input,
.signup-form select {
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius);
}

.signup-form button,
.signup-form output {
  grid-column: 1 / -1;
}

.signup-form output {
  min-height: 24px;
  color: #475569;
  font-size: 14px;
  line-height: 1.5;
}

footer {
  display: flex;
  justify-content: center;
  gap: 12px;
  padding: 30px;
  color: #94a3b8;
  background: #020617;
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 100;
  max-width: 360px;
  padding: 14px 16px;
  color: #fff;
  background: var(--accent);
  border-radius: var(--radius);
  box-shadow: 0 18px 40px rgba(2, 6, 23, 0.24);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: 180ms ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* Language toggle */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  background: #f1f5f9;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.lang-toggle button {
  min-height: 28px;
  padding: 0 10px;
  color: #64748b;
  background: transparent;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.lang-toggle button.active {
  color: #fff;
  background: var(--accent);
}

/* Lead form section */
.lead {
  max-width: none;
  background: #fff;
  border-top: 1px solid var(--border);
}

.lead-copy {
  max-width: 520px;
}

.lead-copy p {
  color: #475569;
  line-height: 1.65;
}

.lead-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.lead-form label {
  display: grid;
  gap: 8px;
  color: #334155;
  font-size: 13px;
  font-weight: 800;
}

.lead-form input,
.lead-form textarea {
  min-height: 46px;
  padding: 12px;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius);
  font: inherit;
}

.lead-form textarea {
  min-height: 110px;
  resize: vertical;
}

.lead-form .full-width,
.lead-form button,
.lead-form output,
.lead-form .privacy-note {
  grid-column: 1 / -1;
}

.lead-form .privacy-note {
  color: #64748b;
  font-size: 13px;
  line-height: 1.5;
}

.lead-form .privacy-note a {
  color: var(--accent);
  text-decoration: underline;
}

.lead-form output {
  min-height: 24px;
  color: #475569;
  font-size: 14px;
  line-height: 1.5;
}

.honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
}

/* Footer with links */
.site-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  padding: 48px 32px;
  color: #94a3b8;
  background: #020617;
}

.site-footer .brand {
  color: #fff;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  align-items: center;
  font-size: 14px;
  font-weight: 600;
}

.footer-links a:hover {
  color: #34d399;
}

/* Subpage layout */
.subpage-hero {
  padding: 64px 28px 40px;
  text-align: center;
  background: #fff;
  border-bottom: 1px solid var(--border);
}

.subpage-hero h1 {
  max-width: unset;
  font-size: clamp(32px, 5vw, 52px);
}

.subpage-hero p {
  max-width: 680px;
  margin: 18px auto 0;
  color: #475569;
  font-size: 18px;
  line-height: 1.6;
}

.legal-section {
  max-width: 820px;
  margin: 0 auto;
  padding: 64px 28px;
}

.legal-section article {
  margin-bottom: 48px;
}

.legal-section h2 {
  margin-bottom: 18px;
  font-size: 24px;
}

.legal-section h3 {
  margin: 28px 0 12px;
  font-size: 18px;
  color: #1e293b;
}

.legal-section p,
.legal-section li {
  color: #475569;
  line-height: 1.7;
}

.legal-section ul {
  padding-left: 22px;
}

.legal-section li {
  margin: 8px 0;
}

.lang-en,
.lang-es {
  transition: opacity 180ms ease;
}

.lang-en.hidden,
.lang-es.hidden {
  display: none;
}

/* Support page */
.support-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  max-width: 980px;
  margin: 0 auto;
  padding: 64px 28px;
}

.support-card {
  padding: 28px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.support-card h2 {
  margin-bottom: 12px;
  font-size: 20px;
}

.support-card p {
  color: #475569;
  line-height: 1.6;
}

.support-card a {
  color: var(--accent);
  font-weight: 700;
}

.faq-item {
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
}

.faq-item h3 {
  margin-bottom: 10px;
  font-size: 17px;
}

.faq-item p {
  color: #475569;
  line-height: 1.6;
}

/* 404 page */
.error-page {
  display: grid;
  place-items: center;
  min-height: calc(100vh - 64px);
  padding: 64px 28px;
  text-align: center;
}

.error-page h1 {
  font-size: clamp(48px, 10vw, 120px);
  color: var(--accent);
}

.error-page p {
  max-width: 480px;
  margin: 18px auto 28px;
  color: #475569;
  font-size: 18px;
}

@media (max-width: 920px) {
  .site-header {
    padding: 0 18px;
  }

  nav {
    display: none;
  }

  .hero,
  .pricing-layout,
  .signup,
  .ecosystem-grid {
    grid-template-columns: 1fr;
  }

  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 620px) {
  .section {
    padding: 56px 18px;
  }

  .header-cta {
    display: none;
  }

  h1 {
    font-size: 42px;
  }

  .card-grid,
  .signup-form {
    grid-template-columns: 1fr;
  }

  footer {
    flex-direction: column;
    text-align: center;
  }

  .site-footer {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
  }

  .lead-form,
  .support-grid {
    grid-template-columns: 1fr;
  }

  .legal-section {
    padding: 48px 22px;
  }
}

/* App links bar in ecosystem section */
.app-links-bar {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.app-links-bar .app-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #94a3b8;
  font-size: 0.72rem;
  font-weight: 600;
  text-decoration: none;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.08);
  transition: color 0.2s, border-color 0.2s;
}

.app-links-bar .app-link:hover {
  color: #f8fafc;
  border-color: rgba(255,255,255,0.25);
}

.app-links-bar .icon-arrow {
  font-size: 0.6rem;
}

/* ===== Hero additions ===== */
.hero-microcopy {
  margin: 20px 0 0;
  color: #64748b;
  font-size: 14px;
  font-weight: 600;
}

.card-example-tag {
  position: relative;
  z-index: 1;
  margin: 14px 0 0;
  color: #64748b;
  font-family: "Roboto Mono", monospace;
  font-size: 11px;
  text-align: right;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ===== Placeholder banners (secciones pendientes) ===== */
.placeholder-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  max-width: 760px;
  margin: 0 auto 28px;
  padding: 12px 16px;
  background: #fffbeb;
  border: 1px dashed #f59e0b;
  border-radius: var(--radius);
}

.placeholder-banner p {
  margin: 0;
  color: #92400e;
  font-size: 13px;
  font-weight: 600;
}

.placeholder-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  color: #fff;
  background: var(--warning);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.placeholder-tag.sm {
  padding: 2px 8px;
  font-size: 10px;
}

/* ===== 2. Trust strip ===== */
.trust-strip {
  padding-top: 0;
}

.trust-strip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.trust-strip-grid div {
  padding: 22px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.trust-strip-grid svg {
  width: 26px;
  height: 26px;
  color: var(--accent);
}

.trust-strip-grid strong {
  display: block;
  margin: 12px 0 6px;
  font-size: 16px;
}

.trust-strip-grid p {
  margin: 0;
  color: #64748b;
  font-size: 14px;
  line-height: 1.5;
}

/* ===== 3. Problem ===== */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.problem-grid article {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--border);
  border-left: 3px solid var(--danger);
  border-radius: var(--radius);
}

.problem-grid svg {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  color: var(--danger);
}

.problem-grid p {
  margin: 0;
  color: #475569;
  font-size: 15px;
  line-height: 1.5;
}

/* ===== 4/5. Flow steps in ecosystem ===== */
.section-sub {
  max-width: 620px;
  margin: 14px auto 0;
  color: #94a3b8;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  text-transform: none;
  letter-spacing: 0;
}

.flow-steps {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  max-width: 1180px;
  margin: 0 auto 32px;
  padding: 0;
  list-style: none;
}

.flow-steps li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  color: #94a3b8;
  background: #020617;
  border: 1px solid #1e293b;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  transition: 200ms ease;
}

.flow-steps li span {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  color: #94a3b8;
  background: #0f172a;
  border-radius: 50%;
  font-family: "Roboto Mono", monospace;
  font-size: 13px;
  font-weight: 800;
}

.flow-steps li.active {
  color: #fff;
  border-color: var(--accent);
  background: #052e26;
}

.flow-steps li.active span {
  color: #052e26;
  background: #34d399;
}

.ecosystem-grid article {
  transition: box-shadow 200ms ease, transform 200ms ease;
}

.ecosystem-grid article.flow-active {
  box-shadow: 0 0 0 2px var(--accent), 0 18px 40px rgba(0, 103, 79, 0.35);
  transform: translateY(-4px);
}

.ecosystem-tag {
  max-width: 1180px;
  margin: 26px auto 0;
  color: #94a3b8;
  font-family: "Roboto Mono", monospace;
  font-size: 12px;
  text-align: center;
}

.ecosystem-tag a {
  color: #34d399;
  text-decoration: underline;
}

/* ===== 6. Roles ===== */
.roles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.roles-grid article {
  padding: 26px;
  background: #fff;
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius);
}

.role-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.role-head svg {
  width: 26px;
  height: 26px;
  color: var(--accent);
}

.role-head h3 {
  font-size: 20px;
}

.roles-grid ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.roles-grid li {
  position: relative;
  padding: 8px 0 8px 26px;
  color: #475569;
  font-size: 15px;
  line-height: 1.5;
  border-bottom: 1px solid var(--border);
}

.roles-grid li:last-child {
  border-bottom: 0;
}

.roles-grid li::before {
  position: absolute;
  left: 0;
  top: 9px;
  content: "✓";
  color: var(--accent);
  font-weight: 800;
}

/* ===== 7. Offline continuity ===== */
.offline {
  max-width: none;
  color: #e2e8f0;
  background: var(--primary);
}

.offline-copy {
  max-width: 820px;
  margin: 0 auto 40px;
  text-align: center;
}

.offline-copy .eyebrow {
  justify-content: center;
  color: #34d399;
}

.offline-copy h2 {
  color: #fff;
}

.offline-copy p {
  margin: 16px auto 0;
  max-width: 680px;
  color: #94a3b8;
  font-size: 17px;
  line-height: 1.7;
}

.offline-timeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.offline-timeline li {
  position: relative;
  padding: 22px 16px 18px;
  background: #020617;
  border: 1px solid #1e293b;
  border-radius: var(--radius);
  text-align: center;
}

.offline-timeline .dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-bottom: 12px;
  border-radius: 50%;
}

.offline-timeline .dot.ok { background: var(--success); }
.offline-timeline .dot.warn { background: var(--warning); }

.offline-timeline strong {
  display: block;
  margin-bottom: 6px;
  color: #fff;
  font-size: 15px;
}

.offline-timeline small {
  color: #94a3b8;
  text-transform: none;
  font-weight: 400;
  font-size: 13px;
  line-height: 1.4;
}

/* ===== 8. Security ===== */
.security-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: start;
}

.security-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.security-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: #334155;
  font-size: 14px;
  font-weight: 600;
}

.security-list svg {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  color: var(--accent);
}

.security-invite {
  padding: 26px;
  color: #e2e8f0;
  background: var(--primary);
  border-radius: var(--radius);
}

.security-invite svg {
  width: 30px;
  height: 30px;
  color: #34d399;
}

.security-invite h3 {
  margin: 14px 0 10px;
  color: #fff;
  font-size: 20px;
}

.security-invite p {
  margin: 0;
  color: #cbd5e1;
  line-height: 1.6;
}

.security-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 18px;
}

.security-links a {
  color: #34d399;
  font-weight: 700;
  font-size: 14px;
  text-decoration: underline;
}

/* ===== 9. Social proof ===== */
.social-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.quote-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  padding: 26px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.quote-card.is-placeholder {
  border-style: dashed;
  opacity: 0.85;
}

.quote-card p {
  margin: 0;
  color: #334155;
  font-size: 16px;
  line-height: 1.6;
}

.quote-card footer {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.quote-card footer strong {
  color: var(--accent);
  font-size: 14px;
}

.quote-card footer small {
  color: #94a3b8;
  text-transform: none;
  font-weight: 500;
}

/* ===== 10. Pricing additions ===== */
.price-per-unit {
  margin-top: 4px;
  color: #334155 !important;
  font-size: 14px;
  font-weight: 600;
}

.price-notes {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.price-notes li {
  position: relative;
  padding-left: 24px;
  color: #64748b;
  font-size: 14px;
  line-height: 1.4;
}

.price-notes li::before {
  position: absolute;
  left: 0;
  top: 0;
  content: "✓";
  color: var(--accent);
  font-weight: 800;
}

.price-cta {
  width: 100%;
  margin-top: 20px;
}

/* ===== 11. FAQ ===== */
.faq-list {
  max-width: 820px;
  margin: 0 auto;
}

.faq-list .faq-item {
  padding: 0;
  border-bottom: 1px solid var(--border);
}

.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 4px;
  cursor: pointer;
  color: var(--primary);
  font-size: 17px;
  font-weight: 700;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  flex: 0 0 auto;
  color: var(--accent);
  font-size: 24px;
  font-weight: 400;
  line-height: 1;
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-list details p {
  margin: 0;
  padding: 0 4px 22px;
  color: #475569;
  line-height: 1.65;
}

/* ===== 12. Lead CTA additions ===== */
.lead-alt-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.btn-whatsapp {
  color: #fff;
  background: #16a34a;
}

.btn-whatsapp svg {
  color: #fff;
}

.btn-whatsapp.is-placeholder {
  background: #94a3b8;
  cursor: not-allowed;
}

.btn-whatsapp .placeholder-tag.sm {
  background: rgba(255, 255, 255, 0.25);
}

/* ===== Secondary signup ===== */
.signup-secondary {
  background: var(--light);
}

.signup-secondary .signup-form {
  border-style: dashed;
}

/* ===== Responsive for new sections ===== */
@media (max-width: 920px) {
  .trust-strip-grid,
  .security-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .problem-grid,
  .roles-grid,
  .social-grid,
  .security-layout,
  .offline-timeline {
    grid-template-columns: 1fr;
  }

  .offline-timeline {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 620px) {
  .trust-strip-grid,
  .offline-timeline,
  .security-list {
    grid-template-columns: 1fr;
  }

  .flow-steps li {
    width: 100%;
    justify-content: flex-start;
  }
}

/* ===========================================================
   RÉPLICAS DE PANTALLAS REALES (caseta / admin / residente)
   Basadas en la UI real de las apps. Tokens: #020617 / #0F172A / #00674F
   =========================================================== */
.device-card {
  position: relative;
  overflow: hidden;
  padding: 16px;
  color: #e2e8f0;
  background: #020617;
  border: 1px solid #1e293b;
  border-radius: 16px;
  box-shadow: 0 26px 60px rgba(15, 23, 42, 0.28);
}

.device-card .card-example-tag {
  margin-top: 12px;
}

/* --- Guardhouse (caseta) --- */
.gh-card {
  align-self: center;
}

.gh-topbar,
.aw-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid #1e293b;
}

.gh-title {
  color: #cbd5e1;
  font-family: "Roboto Mono", monospace;
  font-size: 12px;
  font-weight: 700;
}

.gh-net,
.aw-online {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #34d399;
  font-size: 11px;
  font-weight: 800;
}

.net-dot {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.18);
}

.gh-scanner,
.guard-screen {
  position: relative;
  display: grid;
  place-items: center;
  gap: 10px;
  margin: 16px 0;
  padding: 20px;
  background: #0b1220;
  border: 1px solid #1e293b;
  border-radius: 12px;
}

.guard-screen strong {
  color: #fff;
  font-size: 15px;
}

.guard-screen small {
  color: #94a3b8;
  text-transform: none;
  font-weight: 500;
}

.gh-reticle {
  position: relative;
  display: grid;
  place-items: center;
  width: min(180px, 60%);
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 10px;
  background: rgba(2, 6, 23, 0.5);
}

.gh-reticle .c {
  position: absolute;
  width: 26px;
  height: 26px;
  border: 3px solid #34d399;
}

.gh-reticle .tl { top: 8px; left: 8px; border-right: 0; border-bottom: 0; }
.gh-reticle .tr { top: 8px; right: 8px; border-left: 0; border-bottom: 0; }
.gh-reticle .bl { bottom: 8px; left: 8px; border-right: 0; border-top: 0; }
.gh-reticle .br { bottom: 8px; right: 8px; border-left: 0; border-top: 0; }

.gh-reticle svg {
  width: 44px;
  height: 44px;
  color: #34d399;
}

.gh-radar {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #34d399, transparent);
  box-shadow: 0 0 12px 2px rgba(52, 211, 153, 0.6);
  animation: gh-scan 2.6s infinite linear;
}

@keyframes gh-scan {
  0% { top: 6%; }
  50% { top: 92%; }
  100% { top: 6%; }
}

.gh-scanner .gh-result {
  position: absolute;
  bottom: 12px;
}

.gh-result-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  color: #052e26;
  background: #34d399;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.gh-result-badge svg {
  width: 15px;
  height: 15px;
}

.guard-screen.approved {
  background: #052e26;
  border-color: #0f766e;
}

.gh-approved-check {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  color: #34d399;
  background: rgba(16, 185, 129, 0.16);
  border: 1px solid rgba(52, 211, 153, 0.5);
  border-radius: 50%;
}

.gh-approved-check svg {
  width: 34px;
  height: 34px;
}

.gh-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 0 0 14px;
}

.gh-detail div {
  padding: 10px 12px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid #1e293b;
  border-radius: 8px;
}

.gh-detail dt {
  color: #64748b;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.gh-detail dd {
  margin: 4px 0 0;
  color: #e2e8f0;
  font-size: 13px;
  font-weight: 700;
}

.gh-detail dd.mono,
.mono {
  font-family: "Roboto Mono", monospace;
}

.gh-tabs,
.rp-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  padding: 8px;
  background: #0b1220;
  border: 1px solid #1e293b;
  border-radius: 10px;
}

.gh-tabs span,
.rp-tabs span {
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: 8px 4px;
  color: #64748b;
  border-radius: 7px;
  font-size: 10px;
  font-weight: 700;
}

.gh-tabs span.active,
.rp-tabs span.active {
  color: #fff;
  background: #00674f;
}

.gh-tabs svg,
.rp-tabs svg {
  width: 18px;
  height: 18px;
}

/* --- Resident (residente) --- */
.rp-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.rp-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

.rp-mark {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  overflow: hidden;
  background: #00674f;
  border-radius: 7px;
}

.rp-mark img {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.rp-badge {
  padding: 4px 8px;
  color: #34d399;
  background: #052e26;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
}

.rp-welcome {
  margin: 16px 0;
  padding: 16px;
  background: linear-gradient(135deg, #0f172a, #1e293b);
  border-radius: 12px;
}

.rp-welcome small {
  color: #94a3b8;
  text-transform: none;
  font-weight: 600;
}

.rp-welcome h3 {
  margin-top: 4px;
  color: #fff;
  font-size: 18px;
}

.rp-tabs {
  margin-top: 16px;
}

/* --- Admin --- */
.aw-tenant {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #e2e8f0;
  font-size: 13px;
  font-weight: 700;
}

.aw-tenant svg {
  width: 16px;
  height: 16px;
  color: #34d399;
}

.admin-frame .admin-kpis {
  grid-template-columns: repeat(2, 1fr);
  margin-top: 16px;
}

.aw-log-title {
  margin: 18px 0 8px;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

#audit-log li time {
  margin-left: auto;
  color: #64748b;
  font-family: "Roboto Mono", monospace;
  font-size: 12px;
}

.st {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.st.ok { background: #10b981; }
.st.warn { background: #f59e0b; }
.st.err { background: #ef4444; }

/* --- Pricing: single plan + billing toggle --- */
.pricing-single {
  grid-template-columns: 1fr;
  max-width: 640px;
  margin: 0 auto;
}

.billing-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  width: fit-content;
  margin: 0 auto;
}

.billing-toggle button {
  min-height: 40px;
  padding: 0 22px;
  color: #64748b;
  background: transparent;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
}

.billing-toggle button.active {
  color: #fff;
  background: var(--accent);
}

.billing-hint {
  padding-right: 12px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
}

/* --- Responsive for replicas --- */
@media (max-width: 620px) {
  .gh-detail {
    grid-template-columns: 1fr;
  }

  .billing-toggle {
    flex-wrap: wrap;
    border-radius: var(--radius);
  }

  .billing-hint {
    width: 100%;
    text-align: center;
    padding: 4px 0 0;
  }
}
