/* Tappal landing — design tokens aligned with Flutter DistrictColors */

:root {
  --ink: #14171a;
  --canvas: #f4f5f7;
  --surface: #ffffff;
  --muted: #8b939c;
  --secondary: #5c6570;
  --border: #e3e6eb;
  --green: #48a54c;
  --green-dark: #3b8036;
  --green-soft: #e8f5e9;
  --ai: #6b4eff;
  --ai-soft: #eef0ff;
  --info: #2f6fed;
  --warning: #c47a12;
  --critical: #c0392b;
  --masthead: #0e1210;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --shadow: 0 1px 2px rgba(20, 23, 26, 0.04), 0 8px 24px rgba(20, 23, 26, 0.06);
  --nav-h: 64px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --max: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 12px);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: var(--green-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

a:hover {
  color: var(--green);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  background: var(--ink);
  color: #fff;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
}

.skip-link:focus {
  left: 16px;
  top: 16px;
}

.container {
  width: min(100% - 32px, var(--max));
  margin-inline: auto;
}

/* Masthead */
.masthead {
  background: var(--masthead);
  color: #e8ebe9;
  font-size: 13px;
  padding: 8px 0;
}

.masthead-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
}

.masthead-line {
  margin: 0;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.masthead-badge {
  margin: 0;
  color: #a8b0aa;
  font-size: 12px;
}

/* Sticky nav */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(244, 245, 247, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  min-height: var(--nav-h);
}

.site-nav .container {
  position: relative;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--nav-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--green);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.04em;
  text-decoration: none;
}

.brand img {
  border-radius: 10px;
}

.brand:hover {
  color: var(--green-dark);
}

.nav-menu {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 12px;
  color: var(--secondary);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  border-radius: var(--radius-sm);
}

.nav-menu a:hover,
.nav-menu a:focus-visible,
.nav-menu a.active {
  color: var(--ink);
  background: #e8eaed;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 1px;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-toggle span {
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* Hero */
.hero {
  padding: 56px 0 64px;
  background:
    radial-gradient(ellipse 80% 60% at 90% 10%, rgba(72, 165, 76, 0.12), transparent 55%),
    radial-gradient(ellipse 50% 40% at 10% 80%, rgba(107, 78, 255, 0.06), transparent 50%),
    var(--canvas);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--green-dark);
}

.hero h1 {
  margin: 0 0 20px;
}

.wordmark {
  display: block;
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  color: var(--green);
  line-height: 1.05;
}

.hero-sub {
  display: block;
  margin-top: 12px;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.35;
  max-width: 36ch;
}

.lead {
  margin: 0 0 28px;
  font-size: 1.05rem;
  color: var(--secondary);
  max-width: 48ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 20px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  border-radius: var(--radius-md);
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.btn-primary {
  background: var(--green);
  color: #fff;
}

.btn-primary:hover {
  background: var(--green-dark);
  color: #fff;
}

.btn-secondary {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--border);
}

.btn-secondary:hover {
  border-color: var(--secondary);
  color: var(--ink);
}

.hero-note {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  max-width: 46ch;
}

/* Phone mock */
.hero-device {
  position: relative;
  display: flex;
  justify-content: center;
  isolation: isolate;
}

.phone {
  width: 260px;
  background: var(--ink);
  border-radius: 28px;
  padding: 12px;
  box-shadow: var(--shadow), 0 24px 48px rgba(20, 23, 26, 0.18);
}

.phone-notch {
  width: 88px;
  height: 8px;
  margin: 4px auto 10px;
  background: #2a3036;
  border-radius: 999px;
}

.phone-screen {
  background: var(--canvas);
  border-radius: 18px;
  overflow: hidden;
  min-height: 420px;
  display: flex;
  flex-direction: column;
}

.phone-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 14px 8px;
}

.phone-brand {
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--green);
  font-size: 15px;
}

.phone-chip {
  font-size: 11px;
  font-weight: 600;
  color: var(--secondary);
  background: #e8eaed;
  padding: 4px 8px;
  border-radius: 999px;
}

.phone-cards {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px 12px 16px;
  flex: 1;
}

.mini-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.mini-card span:nth-child(2) {
  flex: 1;
}

.mini-card strong {
  font-size: 11px;
  color: var(--muted);
}

.mini-card.active {
  transform: translateX(-5px);
  border-color: rgba(72, 165, 76, 0.55);
  box-shadow: 0 8px 20px rgba(59, 128, 54, 0.1);
}

.mini-card.tira-card {
  background: var(--ai-soft);
  border-color: #d8d6f5;
  color: #3d2fb8;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dot.green { background: var(--green); }
.dot.amber { background: var(--warning); }
.dot.blue { background: var(--info); }
.dot.purple { background: var(--ai); }

.phone-tabs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 10px 4px 12px;
  font-size: 9px;
  font-weight: 600;
  color: var(--muted);
  text-align: center;
}

.phone-tabs .active {
  color: var(--green);
}

.floating-alert {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 9px;
  width: 176px;
  padding: 10px 12px;
  border: 1px solid rgba(227, 230, 235, 0.9);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 16px 36px rgba(20, 23, 26, 0.13);
  font-size: 10px;
  color: var(--secondary);
  backdrop-filter: blur(8px);
}

.floating-alert strong {
  display: block;
  color: var(--ink);
  font-size: 11px;
}

.alert-one {
  top: 65px;
  left: -12px;
  animation: alert-float 4s ease-in-out infinite;
}

.alert-two {
  right: -12px;
  bottom: 82px;
  animation: alert-float 4s ease-in-out 1.4s infinite;
}

.alert-icon {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 8px;
  background: var(--green-soft);
  color: var(--green-dark);
  font-weight: 800;
}

.alert-icon.purple {
  background: var(--ai-soft);
  color: var(--ai);
}

@keyframes alert-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

/* Sections */
.section {
  padding: 72px 0;
}

.section-head {
  max-width: 640px;
  margin-bottom: 40px;
}

.section-head h2,
.tira-copy h2,
.security h2 {
  margin: 0 0 12px;
  font-size: clamp(1.6rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.section-lead {
  margin: 0;
  color: var(--secondary);
  font-size: 1.05rem;
}

/* Platform overview */
.impact-strip {
  position: relative;
  z-index: 3;
  border-block: 1px solid var(--border);
  background: var(--surface);
}

.impact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.impact-item {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  padding: 24px 16px;
  border-right: 1px solid var(--border);
}

.impact-item:last-child {
  border-right: 0;
}

.impact-item strong {
  font-size: 1.6rem;
  line-height: 1;
  letter-spacing: -0.05em;
  color: var(--green-dark);
}

.impact-item span {
  font-size: 13px;
  color: var(--secondary);
}

/* Leadership */
.leadership {
  background: var(--surface);
  border-block: 1px solid var(--border);
}

.leadership-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.leader-card {
  background: var(--canvas);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.leader-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.leader-card.highlight {
  background: var(--green-soft);
  border-color: #c8e6c9;
}

.leader-avatar {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: -0.02em;
  background: #e3e6eb;
  color: var(--ink);
  margin-bottom: 16px;
}

.leader-avatar.green {
  background: var(--green);
  color: #fff;
}

.leader-role {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}

.leader-card h3 {
  margin: 0 0 6px;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.leader-title {
  margin: 0 0 4px;
  font-weight: 600;
  color: var(--ink);
}

.leader-place {
  margin: 0;
  font-size: 14px;
  color: var(--secondary);
}

/* Live workflow */
.live-flow {
  overflow: hidden;
  background:
    radial-gradient(circle at 90% 20%, rgba(72, 165, 76, 0.12), transparent 30%),
    linear-gradient(180deg, #f7f8f8, var(--canvas));
}

.flow-heading {
  max-width: none;
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: 48px;
  align-items: end;
}

.flow-heading .section-lead {
  padding-bottom: 3px;
}

.scenario-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  max-width: 720px;
  margin-bottom: 16px;
  padding: 5px;
  background: #e9ecea;
  border-radius: 14px;
}

.scenario-tab {
  min-height: 48px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--secondary);
  font: 600 14px var(--font);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.scenario-tab span {
  margin-right: 6px;
  color: var(--muted);
  font-size: 11px;
}

.scenario-tab:hover {
  color: var(--ink);
}

.scenario-tab.active {
  color: var(--ink);
  background: var(--surface);
  box-shadow: 0 2px 8px rgba(20, 23, 26, 0.08);
}

.scenario-tab.active span {
  color: var(--green-dark);
}

.scenario-stage {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  min-height: 540px;
  overflow: hidden;
  border: 1px solid #d8ddda;
  border-radius: 20px;
  background: var(--surface);
  box-shadow: 0 28px 70px rgba(20, 23, 26, 0.1);
}

.chat-window {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background:
    radial-gradient(circle at 30% 20%, rgba(72, 165, 76, 0.05), transparent 22%),
    #f5f7f6;
  border-right: 1px solid var(--border);
}

.chat-topbar {
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.9);
}

.chat-room-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 12px;
  background: var(--green);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.chat-topbar > div:nth-child(2) {
  min-width: 0;
  flex: 1;
}

.chat-topbar strong,
.chat-topbar span {
  display: block;
}

.chat-topbar strong {
  font-size: 14px;
}

#demo-presence {
  font-size: 11px;
  color: var(--muted);
}

#demo-presence i,
.live-indicator i {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 4px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(72, 165, 76, 0.14);
}

.verified-badge {
  flex: 0 0 auto;
  padding: 5px 8px;
  border-radius: 999px;
  color: var(--info);
  background: #ebf1ff;
  font-size: 10px;
  font-weight: 700;
}

.chat-timeline {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  padding: 28px clamp(18px, 5vw, 48px);
}

.day-label {
  align-self: center;
  padding: 4px 9px;
  border-radius: 999px;
  background: #e8ebe9;
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
}

.message {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  max-width: 82%;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.message.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.message-avatar {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 9px;
  background: #dfe4e1;
  color: var(--secondary);
  font-size: 9px;
  font-weight: 800;
}

.message-body {
  min-width: 0;
}

.message-author {
  display: block;
  margin: 0 0 5px;
  font-size: 11px;
  font-weight: 700;
  color: var(--secondary);
}

.message-author time {
  margin-left: 5px;
  color: var(--muted);
  font-weight: 500;
}

.message p {
  margin: 0;
  padding: 11px 13px;
  border: 1px solid var(--border);
  border-radius: 4px 14px 14px;
  background: var(--surface);
  color: var(--ink);
  font-size: 13px;
  box-shadow: 0 4px 12px rgba(20, 23, 26, 0.04);
}

.message.outgoing {
  align-self: flex-end;
  justify-content: flex-end;
}

.message.outgoing .message-author {
  text-align: right;
}

.message.outgoing p {
  border-color: #bde0c0;
  border-radius: 14px 4px 14px 14px;
  background: var(--green-soft);
}

.read-state {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 9px;
  text-align: right;
}

.message.system-message {
  align-self: center;
  max-width: 92%;
  align-items: center;
  padding: 11px 14px;
  border: 1px solid #bde0c0;
  border-radius: 12px;
  background: var(--surface);
}

.system-icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 8px;
  background: var(--green-soft);
  color: var(--green-dark);
  font-weight: 800;
}

.system-message strong,
.system-message span {
  display: block;
}

.system-message strong {
  font-size: 12px;
}

.system-message span {
  color: var(--muted);
  font-size: 10px;
}

.typing-row {
  display: none;
  align-self: flex-start;
  gap: 4px;
  padding: 10px 13px;
  border: 1px solid var(--border);
  border-radius: 4px 14px 14px;
  background: var(--surface);
}

.typing-row.show {
  display: flex;
}

.typing-row span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--muted);
  animation: typing 0.8s infinite alternate;
}

.typing-row span:nth-child(2) { animation-delay: 0.15s; }
.typing-row span:nth-child(3) { animation-delay: 0.3s; }

@keyframes typing {
  to { transform: translateY(-4px); opacity: 0.45; }
}

.chat-composer {
  min-height: 62px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 16px 16px;
  padding: 8px 9px 8px 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  color: var(--muted);
  font-size: 12px;
}

.composer-plus {
  color: var(--secondary);
  font-size: 18px;
}

.chat-composer > span:nth-child(2) {
  flex: 1;
}

.chat-composer button {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 10px;
  background: var(--green);
  color: #fff;
}

.action-panel {
  display: flex;
  flex-direction: column;
  padding: 22px;
  background: var(--surface);
}

.action-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
}

.action-preview {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: 24px;
}

.action-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 14px;
  background: var(--green-soft);
  color: var(--green-dark);
  font-size: 20px;
  font-weight: 800;
}

.action-icon.is-ai {
  background: var(--ai-soft);
  color: var(--ai);
}

.action-kicker {
  margin: 0 0 5px;
  color: var(--green-dark);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.action-preview h3 {
  margin: 0 0 8px;
  font-size: 1.3rem;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.action-preview > p:not(.action-kicker) {
  margin: 0 0 20px;
  color: var(--secondary);
  font-size: 13px;
}

.action-details {
  margin: 0;
}

.action-details div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
  font-size: 11px;
}

.action-details dt { color: var(--muted); }
.action-details dd {
  margin: 0;
  color: var(--ink);
  font-weight: 600;
  text-align: right;
}

.priority-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 4px;
  border-radius: 50%;
  background: var(--warning);
}

.action-progress {
  height: 4px;
  margin-top: 24px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8ebe9;
}

.action-progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--green);
  transition: width 0.45s ease;
}

.demo-controls {
  display: flex;
  gap: 8px;
}

.demo-controls .btn {
  padding-inline: 14px;
  font-size: 12px;
}

.demo-play {
  flex: 1;
}

.demo-play:disabled {
  cursor: wait;
  opacity: 0.78;
}

.button-spinner {
  width: 12px;
  height: 12px;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.demo-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 9px;
  text-align: center;
}

/* Animated app screen showcase */
.app-showcase {
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 36%, rgba(47, 111, 237, 0.08), transparent 27%),
    var(--surface);
  border-bottom: 1px solid var(--border);
}

.showcase-heading {
  max-width: none;
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: 48px;
  align-items: end;
}

.showcase-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: 660px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--canvas);
  box-shadow: 0 28px 70px rgba(20, 23, 26, 0.1);
}

.showcase-nav {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 18px;
  border-right: 1px solid var(--border);
  background: var(--surface);
}

.screen-tab {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 11px;
  align-items: center;
  min-height: 70px;
  padding: 10px;
  border: 1px solid transparent;
  border-radius: 13px;
  background: transparent;
  color: var(--secondary);
  font-family: var(--font);
  text-align: left;
  cursor: pointer;
  transition: background 0.22s ease, border-color 0.22s ease, transform 0.22s ease;
}

.screen-tab:hover {
  transform: translateX(3px);
  background: var(--canvas);
}

.screen-tab.active {
  border-color: #cce4ce;
  background: var(--green-soft);
  color: var(--ink);
}

.screen-tab-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: #edf0ee;
  color: var(--secondary);
  font-size: 17px;
  font-weight: 700;
}

.screen-tab.active .screen-tab-icon {
  background: var(--green);
  color: #fff;
}

.screen-tab.active .screen-tab-icon.ai,
.screen-tab-icon.ai {
  background: var(--ai-soft);
  color: var(--ai);
}

.screen-tab strong,
.screen-tab small {
  display: block;
}

.screen-tab strong {
  margin-bottom: 2px;
  font-size: 13px;
}

.screen-tab small {
  color: var(--muted);
  font-size: 10px;
}

.showcase-canvas {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(330px, 1.15fr);
  gap: 40px;
  align-items: center;
  padding: 48px clamp(28px, 5vw, 72px);
}

.showcase-copy {
  min-width: 0;
}

.showcase-number {
  display: inline-block;
  margin-bottom: 40px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.showcase-kicker {
  margin: 0 0 8px;
  color: var(--green-dark);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.showcase-copy h3 {
  margin: 0 0 12px;
  font-size: clamp(1.45rem, 3vw, 2.15rem);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.showcase-copy > p:not(.showcase-kicker) {
  margin: 0 0 22px;
  color: var(--secondary);
  font-size: 14px;
}

.showcase-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.showcase-actions span {
  padding: 7px 9px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--secondary);
  font-size: 10px;
  font-weight: 600;
}

.showcase-progress {
  height: 3px;
  margin-top: 36px;
  overflow: hidden;
  border-radius: 99px;
  background: #e1e5e2;
}

.showcase-progress span {
  display: block;
  width: 20%;
  height: 100%;
  background: var(--green);
  border-radius: inherit;
  transition: width 0.45s ease, background 0.3s ease;
}

.app-device {
  position: relative;
  width: min(100%, 350px);
  min-height: 570px;
  justify-self: center;
  overflow: hidden;
  border: 9px solid var(--ink);
  border-radius: 34px;
  background: var(--canvas);
  box-shadow: 0 30px 60px rgba(20, 23, 26, 0.22);
  transform: rotate(1deg);
  transition: transform 0.35s ease;
}

.app-device:hover {
  transform: rotate(0) translateY(-5px);
}

.app-device::before {
  content: "";
  position: absolute;
  z-index: 4;
  top: 6px;
  left: 50%;
  width: 82px;
  height: 18px;
  transform: translateX(-50%);
  border-radius: 99px;
  background: var(--ink);
}

.app-device-top {
  display: flex;
  justify-content: space-between;
  padding: 8px 15px 5px;
  background: var(--surface);
  color: var(--ink);
  font-size: 8px;
  font-weight: 700;
}

.device-status {
  letter-spacing: 2px;
}

.app-screen-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 19px 16px 12px;
  background: var(--surface);
}

.app-screen-head small,
.app-screen-head strong {
  display: block;
}

.app-screen-head small {
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 8px;
}

.app-screen-head strong {
  font-size: 15px;
  letter-spacing: -0.03em;
}

.officer-avatar {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--green-soft);
  color: var(--green-dark);
  font-size: 9px;
  font-weight: 800;
}

.app-screen-content {
  min-height: 444px;
  padding: 13px;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.app-screen-content.switching {
  opacity: 0;
  transform: translateY(8px);
}

.app-summary-card {
  margin-bottom: 10px;
  padding: 15px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
}

.app-summary-card.featured {
  color: #fff;
  border-color: var(--green-dark);
  background: linear-gradient(135deg, var(--green-dark), var(--green));
}

.app-summary-card.ai-card {
  color: #fff;
  border-color: #4a3ad4;
  background: linear-gradient(135deg, #4031b7, var(--ai));
}

.app-summary-card small,
.app-summary-card strong,
.app-summary-card span {
  display: block;
}

.app-summary-card small {
  margin-bottom: 8px;
  font-size: 8px;
  opacity: 0.8;
}

.app-summary-card strong {
  margin-bottom: 4px;
  font-size: 14px;
  letter-spacing: -0.02em;
}

.app-summary-card span {
  font-size: 8px;
  opacity: 0.8;
}

.summary-bar {
  display: block;
  height: 3px;
  margin-top: 14px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.25);
}

.summary-bar b {
  display: block;
  width: 68%;
  height: 100%;
  border-radius: inherit;
  background: #fff;
  animation: summary-grow 2.5s ease-in-out infinite alternate;
}

@keyframes summary-grow {
  from { width: 28%; }
  to { width: 82%; }
}

.app-row {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  gap: 10px;
  align-items: center;
  margin-bottom: 7px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  animation: app-row-in 0.35s both;
}

.app-row:nth-child(3) { animation-delay: 0.07s; }
.app-row:nth-child(4) { animation-delay: 0.14s; }
.app-row:nth-child(5) { animation-delay: 0.21s; }

@keyframes app-row-in {
  from { opacity: 0; transform: translateY(6px); }
}

.app-row > span {
  min-width: 0;
}

.app-row strong,
.app-row small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-row strong {
  color: var(--ink);
  font-size: 9px;
}

.app-row small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 7px;
}

.app-row em {
  padding: 4px 6px;
  border-radius: 6px;
  background: #edf0ee;
  color: var(--secondary);
  font-size: 7px;
  font-style: normal;
  font-weight: 700;
}

.row-icon {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.row-icon.green { background: var(--green-soft); color: var(--green-dark); }
.row-icon.blue { background: #ebf1ff; color: var(--info); }
.row-icon.amber { background: #fff5e5; color: var(--warning); }
.row-icon.purple { background: var(--ai-soft); color: var(--ai); }

.app-chat-row {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  margin-bottom: 10px;
}

.app-chat-row.out {
  justify-content: flex-end;
}

.app-chat-bubble {
  max-width: 78%;
  padding: 10px 11px;
  border: 1px solid var(--border);
  border-radius: 4px 12px 12px;
  background: var(--surface);
  color: var(--ink);
  font-size: 8px;
}

.app-chat-row.out .app-chat-bubble {
  border-color: #bde0c0;
  border-radius: 12px 4px 12px 12px;
  background: var(--green-soft);
}

.app-form-field {
  margin-bottom: 8px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
}

.app-form-field small,
.app-form-field strong {
  display: block;
}

.app-form-field small {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 7px;
}

.app-form-field strong {
  font-size: 9px;
}

.app-submit {
  padding: 10px;
  border-radius: 10px;
  background: var(--green);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  text-align: center;
}

.app-bottom-nav {
  position: absolute;
  inset: auto 0 0;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  padding: 9px 5px 10px;
  border-top: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  font-size: 10px;
  text-align: center;
}

.app-bottom-nav span {
  display: grid;
  gap: 2px;
}

.app-bottom-nav small {
  font-size: 6px;
}

.app-bottom-nav .active {
  color: var(--green);
}

/* Features */
.feature-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -12px 0 24px;
}

.feature-filter {
  min-height: 40px;
  padding: 8px 13px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--secondary);
  font: 600 12px var(--font);
  cursor: pointer;
}

.feature-filter:hover,
.feature-filter.active {
  border-color: var(--green);
  background: var(--green-soft);
  color: var(--green-dark);
}

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

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 20px;
  box-shadow: 0 1px 0 rgba(20, 23, 26, 0.02);
  transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.feature-card.is-hidden {
  display: none;
}

.feature-card h3 {
  margin: 0 0 10px;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.feature-card p {
  margin: 0;
  font-size: 14px;
  color: var(--secondary);
}

.feature-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--green-soft);
  color: var(--green-dark);
  font-size: 1.1rem;
  margin-bottom: 14px;
}

.feature-icon.purple,
.tira-feature .feature-icon {
  background: var(--ai-soft);
  color: var(--ai);
}

.tira-feature {
  border-color: #d8d6f5;
}

/* How it works */
.how {
  background: var(--surface);
  border-block: 1px solid var(--border);
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}

.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  align-items: start;
  background: var(--canvas);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.step:hover {
  transform: translateX(4px);
  border-color: rgba(72, 165, 76, 0.5);
}

.step-num {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--green);
  color: #fff;
  font-weight: 800;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.step h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
  font-weight: 700;
}

.step p {
  margin: 0;
  color: var(--secondary);
  font-size: 15px;
}

/* TIRA */
.tira-section {
  background:
    linear-gradient(180deg, var(--ai-soft) 0%, var(--canvas) 100%);
}

.tira-eyebrow {
  color: #4a3ad4;
}

.tira-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.check-list {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.check-list li {
  position: relative;
  padding-left: 28px;
  color: var(--secondary);
  font-size: 15px;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 14px;
  height: 14px;
  border-radius: 4px;
  background: var(--ai);
  box-shadow: inset 0 0 0 3px var(--ai-soft);
}

.tira-pipeline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  background: var(--surface);
  border: 1px solid #d8d6f5;
  border-radius: var(--radius-lg);
  padding: 24px;
}

.pipe-step {
  background: var(--ai-soft);
  color: #3d2fb8;
  font-size: 13px;
  font-weight: 700;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.pipe-step:hover {
  transform: translateY(-2px);
  background: var(--ai);
  color: #fff;
}

.pipe-arrow {
  color: var(--ai);
  font-weight: 700;
  font-size: 14px;
}

/* Control Tower */
.tower-groups {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.tower-group {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
}

.tower-group h3 {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--green-dark);
}

.tower-group ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.tower-group li {
  font-size: 14px;
  color: var(--secondary);
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
}

.tower-group li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

/* Security — matched to live-flow light style */
.security {
  overflow: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 90% 20%, rgba(72, 165, 76, 0.12), transparent 30%),
    linear-gradient(180deg, #f7f8f8, var(--canvas));
}

.security-heading {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 48px;
  align-items: end;
  margin-bottom: 38px;
}

.security-heading h2 {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2rem);
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.security-heading .section-lead {
  color: var(--secondary);
}

.security-eyebrow {
  color: var(--green-dark);
}

.security-console {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  min-height: 560px;
  overflow: hidden;
  border: 1px solid #d8ddda;
  border-radius: 20px;
  background: var(--surface);
  box-shadow: 0 28px 70px rgba(20, 23, 26, 0.1);
}

.security-controls {
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 16px;
  border-right: 1px solid var(--border);
  background: #f5f7f6;
}

.security-control {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  gap: 11px;
  align-items: center;
  min-height: 66px;
  padding: 10px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: var(--secondary);
  font-family: var(--font);
  text-align: left;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.security-control:hover {
  transform: translateX(3px);
  background: var(--surface);
}

.security-control.active {
  border-color: #cce4ce;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 2px 8px rgba(20, 23, 26, 0.08);
}

.security-control-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #e9ecea;
  color: var(--secondary);
  font-size: 15px;
}

.security-control.active .security-control-icon {
  background: var(--green);
  color: #fff;
}

.security-control strong,
.security-control small {
  display: block;
}

.security-control strong {
  margin-bottom: 2px;
  font-size: 12px;
}

.security-control small {
  color: var(--muted);
  font-size: 9px;
}

.security-control i {
  color: var(--muted);
  font-style: normal;
}

.security-demo {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(270px, 1.1fr);
  grid-template-rows: auto 1fr;
  min-width: 0;
}

.security-demo-top {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.7);
}

.secure-status {
  color: var(--green-dark);
}

.secure-status i {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 5px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(72, 165, 76, 0.14);
  animation: secure-pulse 2s ease-out infinite;
}

@keyframes secure-pulse {
  50% { box-shadow: 0 0 0 8px rgba(72, 165, 76, 0); }
}

.security-visual {
  display: grid;
  place-items: center;
  min-height: 460px;
  padding: 28px;
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 20%, rgba(72, 165, 76, 0.06), transparent 28%),
    #f5f7f6;
  border-right: 1px solid var(--border);
}

.capture-phone {
  position: relative;
  width: min(100%, 280px);
  min-height: 390px;
  overflow: hidden;
  border: 8px solid var(--ink);
  border-radius: 28px;
  background: #edf0ee;
  box-shadow: 0 24px 48px rgba(20, 23, 26, 0.16);
}

.capture-chat {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 60px 17px 20px;
}

.capture-lock {
  align-self: center;
  padding: 5px 8px;
  border-radius: 99px;
  background: rgba(20, 23, 26, 0.08);
  color: var(--secondary);
  font-size: 7px;
  font-weight: 700;
}

.capture-bubble {
  max-width: 82%;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 4px 12px 12px;
  background: #fff;
  color: var(--ink);
  font-size: 8px;
}

.capture-bubble.outgoing {
  align-self: flex-end;
  border-color: #bde0c0;
  border-radius: 12px 4px 12px 12px;
  background: var(--green-soft);
}

.identity-watermarks {
  position: absolute;
  z-index: 1;
  inset: 22px -30px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  align-content: space-around;
  gap: 38px;
  transform: rotate(-22deg);
  color: rgba(59, 128, 54, 0.13);
  font-size: 9px;
  font-weight: 800;
  white-space: nowrap;
  animation: watermark-drift 12s ease-in-out infinite alternate;
}

@keyframes watermark-drift {
  to { transform: rotate(-22deg) translate(12px, 8px); }
}

.capture-flash {
  position: absolute;
  z-index: 5;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--green-dark);
  font-size: 11px;
  font-weight: 800;
  text-align: center;
  opacity: 0;
  pointer-events: none;
}

.capture-flash.flash {
  animation: capture-flash 1.35s ease;
}

@keyframes capture-flash {
  0% { opacity: 0; }
  12%, 55% { opacity: 1; }
  100% { opacity: 0; }
}

.crypto-visual {
  position: relative;
  width: min(100%, 310px);
  aspect-ratio: 1;
}

.crypto-ring {
  position: absolute;
  inset: 15%;
  border: 1px solid rgba(72, 165, 76, 0.35);
  border-radius: 50%;
  animation: crypto-spin 12s linear infinite;
}

.crypto-ring::before,
.crypto-ring::after {
  content: "";
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 12px rgba(72, 165, 76, 0.45);
}

.crypto-ring::before { top: 12%; left: 12%; }
.crypto-ring::after { right: 12%; bottom: 12%; }
.crypto-ring.ring-two {
  inset: 28%;
  animation-direction: reverse;
  animation-duration: 8s;
}

@keyframes crypto-spin {
  to { transform: rotate(360deg); }
}

.crypto-core {
  position: absolute;
  inset: 36%;
  display: grid;
  place-items: center;
  align-content: center;
  border: 1px solid #bde0c0;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green-dark);
  font-size: 30px;
  box-shadow: 0 10px 30px rgba(72, 165, 76, 0.12);
}

.crypto-core span {
  margin-top: 2px;
  font-size: 7px;
  font-weight: 700;
  text-transform: uppercase;
}

.crypto-peer {
  position: absolute;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--surface);
  color: var(--secondary);
  font-size: 9px;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(20, 23, 26, 0.06);
}

.peer-one { top: 3%; left: 44%; }
.peer-two { right: 4%; bottom: 17%; }
.peer-three { left: 4%; bottom: 17%; }

.biometric-phone {
  position: relative;
  width: 220px;
  min-height: 350px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 7px solid var(--ink);
  border-radius: 28px;
  background: linear-gradient(180deg, #f7f9f7, #edf1ee);
  box-shadow: 0 24px 48px rgba(20, 23, 26, 0.16);
}

.fingerprint {
  color: var(--green);
  font-size: 68px;
  line-height: 1;
}

.biometric-phone strong {
  margin-top: 24px;
  color: var(--ink);
  font-size: 12px;
}

.biometric-phone small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 8px;
}

.scan-line {
  position: absolute;
  left: 20%;
  right: 20%;
  top: 30%;
  height: 1px;
  background: var(--green);
  box-shadow: 0 0 10px rgba(72, 165, 76, 0.5);
  animation: biometric-scan 2.2s ease-in-out infinite;
}

@keyframes biometric-scan {
  0%, 100% { transform: translateY(0); opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { transform: translateY(135px); opacity: 0; }
}

.session-visual {
  width: min(100%, 300px);
}

.session-step {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 11px;
  align-items: center;
  padding: 13px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
}

.session-step > i {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #e9ecea;
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
}

.session-step.complete > i,
.session-step.active > i {
  background: var(--green-soft);
  color: var(--green-dark);
}

.session-step strong,
.session-step small {
  display: block;
}

.session-step strong { color: var(--ink); font-size: 10px; }
.session-step small { margin-top: 2px; color: var(--muted); font-size: 7px; }
.session-step em { color: var(--green-dark); font-size: 10px; font-style: normal; }
.session-step.active { border-color: #cce4ce; background: #f7fbf7; }

.session-step.active em {
  animation: secure-pulse-text 1.2s ease-in-out infinite alternate;
}

@keyframes secure-pulse-text {
  to { opacity: 0.35; }
}

.session-line {
  width: 1px;
  height: 22px;
  margin-left: 30px;
  background: var(--border);
}

.audit-visual {
  width: min(100%, 340px);
}

.audit-line {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 11px;
  align-items: center;
  margin-bottom: 9px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--surface);
  animation: audit-in 0.35s both;
}

.audit-line:nth-child(2) { animation-delay: 0.12s; }
.audit-line:nth-child(3) { animation-delay: 0.24s; }

@keyframes audit-in {
  from { opacity: 0; transform: translateX(-10px); }
}

.audit-line > i {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
}

.audit-line > i.green { background: var(--green-soft); color: var(--green-dark); }
.audit-line > i.blue { background: #ebf1ff; color: var(--info); }
.audit-line > i.amber { background: #fff5e5; color: var(--warning); }
.audit-line strong,
.audit-line small { display: block; }
.audit-line strong { color: var(--ink); font-size: 9px; }
.audit-line small { margin-top: 2px; color: var(--muted); font-size: 7px; }

.audit-seal {
  margin-top: 16px;
  padding: 9px;
  border: 1px dashed #bde0c0;
  border-radius: 9px;
  color: var(--green-dark);
  font-size: 8px;
  font-weight: 700;
  text-align: center;
  background: var(--green-soft);
}

.security-demo-copy {
  align-self: center;
  padding: 36px clamp(24px, 4vw, 52px);
}

.security-label {
  margin: 0 0 8px;
  color: var(--green-dark);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.security-demo-copy h3 {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: clamp(1.2rem, 2.4vw, 1.55rem);
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.security-demo-copy > p:not(.security-label):not(.security-disclosure) {
  margin: 0 0 20px;
  color: var(--secondary);
  font-size: 13px;
}

.security-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 22px;
}

.security-facts span {
  padding: 6px 8px;
  border: 1px solid var(--border);
  border-radius: 7px;
  color: var(--secondary);
  background: var(--canvas);
  font-size: 9px;
  font-weight: 600;
}

.security-action {
  min-height: 42px;
  padding: 8px 14px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: var(--green);
  color: #fff;
  font: 700 12px var(--font);
  cursor: pointer;
}

.security-action:hover {
  background: var(--green-dark);
}

.security-action[hidden] {
  display: none;
}

.security-disclosure {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.security-boundary {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: center;
  margin-top: 18px;
  padding: 17px 20px;
  border: 1px solid #d8ddda;
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 8px 24px rgba(20, 23, 26, 0.04);
}

.boundary-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--green-soft);
  color: var(--green-dark);
}

.security-boundary p {
  margin: 0;
  color: var(--secondary);
  font-size: 12px;
}

.security-boundary strong {
  color: var(--ink);
}


/* Compact credit strip — only this block uses smaller type */
.credit-strip {
  padding: 14px 0;
  border-block: 1px solid var(--border);
  background: var(--surface);
}

.credit-strip-inner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px 24px;
  align-items: center;
}

.credit-strip-label {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--green-dark);
  white-space: nowrap;
}

.credit-strip-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.credit-mini {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--canvas);
}

.credit-mini.highlight {
  background: var(--green-soft);
  border-color: #c8e6c9;
}

.credit-mini-avatar {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #e3e6eb;
  color: var(--ink);
  font-size: 10px;
  font-weight: 800;
}

.credit-mini-avatar.green {
  background: var(--green);
  color: #fff;
}

.credit-mini small,
.credit-mini strong,
.credit-mini span {
  display: block;
}

.credit-mini small {
  margin-bottom: 1px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.credit-mini strong {
  font-size: 13px;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.credit-mini span {
  margin-top: 1px;
  font-size: 11px;
  color: var(--secondary);
}

/* Platforms */
.platform-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.platform-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  text-align: center;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.platform-card:hover {
  transform: translateY(-4px);
  border-color: rgba(72, 165, 76, 0.5);
}

.platform-card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--green-dark);
}

.platform-card p {
  margin: 0;
  font-size: 14px;
  color: var(--secondary);
}

/* Footer */
.site-footer {
  background: var(--masthead);
  color: #c5cbc7;
  padding: 56px 0 28px;
}

.site-footer a {
  color: #e8ebe9;
}

.site-footer a:hover {
  color: #fff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 40px;
}

.footer-brand .brand {
  margin-bottom: 14px;
}

.footer-brand p,
.footer-contact p,
.footer-credits p {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.55;
}

.footer-contact h3,
.footer-credits h3 {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #a8b0aa;
}

.footer-credits strong {
  color: #e8ebe9;
  font-weight: 600;
}

.footer-bottom {
  border-top: 1px solid #2a3036;
  padding-top: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 16px;
}

.footer-bottom p {
  margin: 0;
  font-size: 13px;
  color: #8a928c;
}

.footer-fine {
  max-width: 42ch;
}

/* Responsive */
@media (max-width: 960px) {
  .hero-grid,
  .tira-grid,
  .security-grid {
    grid-template-columns: 1fr;
  }

  .phone {
    width: 220px;
  }

  .phone-screen {
    min-height: 360px;
  }

  .feature-grid {
    grid-template-columns: 1fr 1fr;
  }

  .tower-groups,
  .platform-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .scenario-stage {
    grid-template-columns: 1fr;
  }

  .chat-window {
    min-height: 500px;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .action-preview {
    min-height: 320px;
  }

  .showcase-shell {
    grid-template-columns: 1fr;
  }

  .showcase-nav {
    grid-row: 2;
    flex-direction: row;
    overflow-x: auto;
    border-top: 1px solid var(--border);
    border-right: 0;
  }

  .screen-tab {
    min-width: 170px;
  }

  .security-console {
    grid-template-columns: 1fr;
  }

  .security-controls {
    grid-template-columns: repeat(5, minmax(175px, 1fr));
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .security-control {
    min-width: 175px;
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-menu {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 8px 16px 16px;
    box-shadow: var(--shadow);
  }

  .nav-menu.open {
    display: flex;
  }

  .nav-menu a {
    width: 100%;
  }

  .leadership-grid,
  .feature-grid,
  .tower-groups,
  .platform-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .impact-grid {
    grid-template-columns: 1fr 1fr;
  }

  .impact-item:nth-child(2) {
    border-right: 0;
  }

  .impact-item:nth-child(-n + 2) {
    border-bottom: 1px solid var(--border);
  }

  .flow-heading,
  .showcase-heading,
  .security-heading,
  .scenario-tabs {
    grid-template-columns: 1fr;
  }

  .flow-heading,
  .showcase-heading,
  .security-heading {
    gap: 12px;
  }

  .scenario-tab {
    text-align: left;
    padding-inline: 14px;
  }

  .scenario-stage {
    border-radius: 16px;
  }

  .chat-timeline {
    padding-inline: 16px;
  }

  .message {
    max-width: 92%;
  }

  .verified-badge {
    display: none !important;
  }

  .section {
    padding: 56px 0;
  }

  .hero {
    padding: 40px 0 48px;
  }

  .pipe-arrow {
    display: none;
  }

  .tira-pipeline {
    flex-direction: column;
    align-items: stretch;
  }

  .masthead-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .floating-alert {
    display: none;
  }

  .hero-device {
    order: -1;
    margin-bottom: 8px;
  }

  .phone {
    width: min(100%, 200px);
  }

  .phone-screen {
    min-height: 320px;
  }

  .wordmark {
    font-size: clamp(2rem, 8vw, 2.6rem);
  }

  .hero-sub {
    font-size: 1.05rem;
  }

  .lead {
    font-size: 0.98rem;
  }

  .section-head h2,
  .tira-copy h2,
  .security h2 {
    font-size: clamp(1.45rem, 6vw, 1.85rem);
  }

  .showcase-shell {
    min-height: auto;
  }

  .showcase-canvas {
    grid-template-columns: 1fr;
    padding: 30px 18px;
  }

  .showcase-copy {
    order: 2;
  }

  .showcase-number {
    margin-bottom: 16px;
  }

  .app-device {
    width: min(100%, 315px);
    min-height: 540px;
  }

  .app-screen-content {
    min-height: 414px;
  }

  .security-demo {
    grid-template-columns: 1fr;
  }

  .security-demo-top {
    grid-column: auto;
  }

  .security-visual {
    min-height: 380px;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .security-demo-copy {
    padding: 30px 22px;
  }

  .credit-strip-inner {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .credit-strip-cards {
    grid-template-columns: 1fr;
  }

  .demo-controls {
    flex-wrap: wrap;
  }

  .demo-controls .btn {
    flex: 1 1 auto;
    min-width: 120px;
  }

  .scenario-tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .showcase-nav,
  .security-controls {
    scrollbar-width: thin;
  }

  .feature-filters {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
  }

  .feature-filter {
    flex: 0 0 auto;
  }

  .action-panel {
    padding: 18px;
  }

  .chat-window {
    min-height: 420px;
  }

  .scenario-stage {
    min-height: auto;
  }

  .footer-bottom {
    flex-direction: column;
  }

  .site-footer {
    padding: 40px 0 24px;
  }
}

@media (max-width: 390px) {
  .container {
    width: min(100% - 24px, var(--max));
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }
}
