:root {
  --bg: #f4f1ea;
  --bg-gradient: linear-gradient(180deg, #fcfaf6 0%, #eef5f2 42%, #eef3f8 100%);
  --panel: rgba(255, 255, 255, 0.82);
  --panel-hover: rgba(255, 255, 255, 0.94);
  --text: #10243e;
  --text-muted: #5b6d82;
  --text-dark: #32475e;
  --accent: #0f766e;
  --accent-glow: rgba(15, 118, 110, 0.18);
  --accent-2: #c26d3a;
  --border: rgba(16, 36, 62, 0.08);
  --border-light: rgba(16, 36, 62, 0.16);
  --success: #1f8a5c;
  --warn: #a86d14;
  --danger: #c05621;
  --shadow: 0 28px 60px -30px rgba(15, 23, 42, 0.22);
  --radius: 16px;
  --radius-sm: 8px;
}

html {
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body, html {
  font-family: 'Manrope', system-ui, -apple-system, sans-serif;
  background-color: var(--bg);
  background-image: var(--bg-gradient);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.2s ease;
}

.container {
  width: min(1200px, 100% - 3rem);
  margin: 0 auto;
}

/* ───── Background Effects ───── */

.grid-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image:
    linear-gradient(to right, rgba(16, 36, 62, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(16, 36, 62, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: -2;
}

.glow-bg {
  position: absolute;
  top: -20vh;
  left: 50%;
  transform: translateX(-50%);
  width: 80vw;
  height: 60vh;
  background: radial-gradient(ellipse at center, rgba(15, 118, 110, 0.12), transparent 70%);
  filter: blur(100px);
  pointer-events: none;
  z-index: -1;
}

.glow-bg-2 {
  position: absolute;
  top: 45%;
  right: -20vw;
  width: 60vw;
  height: 80vh;
  background: radial-gradient(ellipse at center, rgba(194, 109, 58, 0.08), transparent 70%);
  filter: blur(120px);
  pointer-events: none;
  z-index: -1;
}

/* ───── Header ───── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 10px 28px -24px rgba(15, 23, 42, 0.25);
}

.glass {
  background: var(--panel);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  box-shadow: 0 20px 40px -30px rgba(15, 23, 42, 0.18);
}

.header-inner {
  min-height: 90px;
  height: auto;
  padding: 1rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  align-self: center;
  gap: 0.75rem;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-logo {
  height: 40px;
  width: auto;
  display: block;
  vertical-align: middle;
  object-fit: contain;
  margin: 0;
}

.nav {
  display: flex;
  align-items: center;
  align-self: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.nav a:not(.btn-sm) {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
}

.nav a:hover:not(.btn-sm) {
  color: var(--text);
}

.language-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.4rem 1.5rem;
  border-radius: var(--radius);
  margin-bottom: 2.25rem;
}

.language-toolbar > div:first-child {
  flex: 1 1 34rem;
  min-width: 0;
}

.language-toolbar-title {
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  margin-top: 0.25rem;
}

.language-toolbar-copy {
  color: var(--text-muted);
  margin-top: 0.55rem;
  max-width: 62ch;
}

.language-toolbar-control {
  flex: 0 0 260px;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.language-toolbar-control label {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--text-dark);
}

.page-language-select {
  min-width: 220px;
  font-weight: 600;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(245, 249, 248, 0.92));
}

/* ───── Buttons ───── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 99px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  text-align: center;
  line-height: 1.35;
  white-space: normal;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

.btn-sm {
  padding: 0.65rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.4;
  border-radius: 99px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  min-height: 2.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: 0 4px 15px var(--accent-glow);
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--accent-glow);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.7);
  color: var(--text);
  border: 1px solid var(--border-light);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.95);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-light);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.62);
  border-color: var(--text-muted);
}

.full-width { width: 100%; }
.mt-4 { margin-top: 1rem; }

/* ───── Hero ───── */

.hero {
  padding: 7rem 0 6rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.eyebrow-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  border-radius: 99px;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.2);
  color: var(--accent);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.7);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%   { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.7); }
  70%  { transform: scale(1);    box-shadow: 0 0 0 6px rgba(56, 189, 248, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(56, 189, 248, 0); }
}

.hero-brand {
  font-size: clamp(3.5rem, 7vw, 6rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #10243e 0%, var(--accent) 58%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.25rem;
  line-height: 1.1;
  filter: drop-shadow(0 0 30px rgba(56, 189, 248, 0.15));
}

.hero-tagline {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--text-dark);
  margin-bottom: 2rem;
}

.hero-copy {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 560px;
  margin-bottom: 2rem;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: stretch;
  margin-bottom: 3rem;
}

.hero-cta .btn {
  min-width: 12.75rem;
  min-height: 3.35rem;
}

.hero-proof-bar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  padding: 1rem;
  border-radius: calc(var(--radius) - 2px);
}

.hero-proof-item {
  padding: 0.95rem 1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(16, 36, 62, 0.08);
}

.hero-proof-kicker {
  display: inline-flex;
  align-items: center;
  padding: 0.24rem 0.5rem;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.08);
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero-proof-item strong {
  display: block;
  margin-top: 0.65rem;
  font-size: 0.98rem;
  line-height: 1.35;
}

.hero-proof-item p {
  margin-top: 0.4rem;
  color: var(--text-muted);
  font-size: 0.86rem;
  line-height: 1.55;
}

.social-proof p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  font-weight: 500;
}

.chips {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.chip {
  padding: 0.4rem 1rem;
  border-radius: 99px;
  background: var(--panel);
  border: 1px solid var(--border);
  font-size: 0.875rem;
  color: var(--text-dark);
  font-weight: 600;
}

.hero-image-wrapper {
  position: relative;
  border-radius: var(--radius);
  padding: 1rem;
  background: linear-gradient(145deg, rgba(255,255,255,0.92), rgba(247,249,252,0.84));
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow: visible;
}

.hero-img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  display: block;
  box-shadow: 0 26px 54px -36px rgba(15, 23, 42, 0.4);
}

.hero-frame-card {
  position: absolute;
  width: min(240px, 62%);
  padding: 0.9rem 1rem;
  border-radius: 18px;
  border: 1px solid rgba(16, 36, 62, 0.08);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 22px 48px -34px rgba(15, 23, 42, 0.38);
}

.hero-frame-card-top {
  top: 1.35rem;
  right: -1.2rem;
}

.hero-frame-card-bottom {
  left: -1.2rem;
  bottom: 1.35rem;
}

.hero-frame-label {
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.5rem;
  border-radius: 999px;
  background: rgba(194, 109, 58, 0.1);
  color: var(--accent-2);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero-frame-card strong {
  display: block;
  margin-top: 0.55rem;
  line-height: 1.35;
  font-size: 0.94rem;
}

.image-glow {
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 60px;
  background: radial-gradient(ellipse at center, var(--accent-glow), transparent 70%);
  filter: blur(30px);
  pointer-events: none;
  z-index: -1;
}

.floating {
  animation: float 6s ease-in-out infinite;
}

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

/* ───── Sections ───── */

.section {
  padding: 5rem 0;
  position: relative;
}

.trust-section {
  padding-top: 1rem;
  padding-bottom: 2rem;
}

.trust-ribbon {
  padding: 2rem;
  border-radius: calc(var(--radius) + 2px);
}

.trust-ribbon-lead {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 2rem;
  align-items: end;
  margin-bottom: 1.75rem;
}

.trust-ribbon-lead .request-subtitle {
  margin-left: auto;
}

.trust-ribbon-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.trust-ribbon-card {
  padding: 1.25rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(16, 36, 62, 0.08);
}

.trust-ribbon-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  font-size: 0.8rem;
  font-weight: 800;
  box-shadow: 0 8px 18px -12px rgba(15, 118, 110, 0.5);
}

.trust-ribbon-card h3 {
  margin-top: 0.9rem;
  font-size: 1.08rem;
}

.trust-ribbon-card p {
  margin-top: 0.45rem;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.metrics {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255,255,255,0.4) 0%, transparent 100%);
}

.section-header {
  margin-bottom: 3.25rem;
}

.section-header h2,
.section-header .request-subtitle {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.text-center {
  text-align: center;
}

.text-center .eyebrow {
  justify-content: center;
}

.eyebrow {
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  margin-bottom: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 24px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 2px;
}

h2 {
  font-size: clamp(2rem, 3vw, 2.5rem);
  letter-spacing: -0.01em;
  color: var(--text);
  line-height: 1.25;
}

/* ───── Metrics ───── */

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.metric-card {
  padding: 2rem;
  border-radius: var(--radius);
  text-align: center;
  transition: transform 0.3s ease, border-color 0.3s ease;
  border-top: 2px solid transparent;
  background: rgba(255, 255, 255, 0.78);
}

.metric-card:hover {
  transform: translateY(-5px);
  border-top-color: var(--accent);
}

.metric-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 76px;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(15, 118, 110, 0.18);
  background: rgba(15, 118, 110, 0.08);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.metric-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.metric-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ───── Split Section (How It Works) ───── */

.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.steps-list {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.step-item {
  display: flex;
  gap: 1.5rem;
  position: relative;
}

.step-item:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 22px;
  top: 48px;
  width: 2px;
  height: calc(100% - 16px);
  background: linear-gradient(180deg, rgba(56, 189, 248, 0.3), transparent);
}

.step-num {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.2rem;
  box-shadow: 0 4px 12px var(--accent-glow);
}

.step-item h4 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.step-item p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.split-image {
  position: relative;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: visible;
  box-shadow: 0 20px 40px -22px rgba(15,23,42,0.25);
  height: 100%;
  min-height: 400px;
}

.split-image img {
  border-radius: var(--radius);
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dashboard-img {
  width: 100%;
  display: block;
  transform: scale(1.02);
  transition: transform 0.5s ease;
}

.split-image:hover .dashboard-img {
  transform: scale(1);
}

.image-caption-card {
  position: absolute;
  right: 1.2rem;
  bottom: 1.2rem;
  width: min(260px, calc(100% - 2.4rem));
  padding: 0.85rem 0.95rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(16, 36, 62, 0.08);
  box-shadow: 0 20px 42px -30px rgba(15, 23, 42, 0.38);
}

.image-caption-kicker {
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.48rem;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.08);
  color: var(--accent);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.image-caption-card strong {
  display: block;
  margin-top: 0.45rem;
  font-size: 0.92rem;
  line-height: 1.4;
}

/* ───── Who It's For (Audience) ───── */

.audience-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.audience-card {
  padding: 2.5rem;
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  border-top: 3px solid transparent;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(16, 36, 62, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(248, 250, 252, 0.76));
  box-shadow: 0 18px 38px -30px rgba(15, 23, 42, 0.18);
}

.audience-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.audience-card:hover {
  border-color: transparent;
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -24px rgba(15, 23, 42, 0.2);
}

.audience-card:hover::before {
  opacity: 1;
}

.audience-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 82px;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(16, 36, 62, 0.12);
  background: rgba(16, 36, 62, 0.05);
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.audience-card h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.audience-desc {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.audience-list {
  list-style: none;
  margin-bottom: 2rem;
  flex-grow: 1;
}

.audience-list li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: var(--text-dark);
  font-size: 0.95rem;
}

.audience-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: 700;
}

/* ───── Capabilities ───── */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.feature-card {
  padding: 2.5rem 2rem;
  border-radius: var(--radius);
  transition: all 0.3s ease;
  border-top: 2px solid transparent;
  border: 1px solid rgba(16, 36, 62, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(247, 250, 252, 0.74));
  box-shadow: 0 16px 34px -30px rgba(15, 23, 42, 0.16);
}

.feature-card:hover {
  background: var(--panel-hover);
  border-color: var(--border-light);
  border-top-color: var(--accent-2);
  transform: translateY(-4px);
  box-shadow: 0 18px 40px -26px rgba(15,23,42,0.22);
}

.feature-icon {
  min-width: 88px;
  height: 40px;
  padding: 0 0.9rem;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(15, 118, 110, 0.16);
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ───── Business Request Form ───── */

.request-wrapper {
  padding: 3rem;
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(248, 250, 252, 0.82));
}

.request-wrapper::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.request-header {
  margin-bottom: 1.35rem;
}

.request-header h2 {
  margin-bottom: 0.6rem;
}

.request-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 600px;
}

.request-section-shell {
  padding-top: 5.5rem;
}

.request-assurance-bar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  margin-bottom: 1.75rem;
}

.request-assurance-card {
  padding: 0.95rem 1rem;
  border-radius: 18px;
  border: 1px solid rgba(16, 36, 62, 0.08);
  background: rgba(255, 255, 255, 0.72);
}

.request-assurance-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.request-assurance-card strong {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.98rem;
  line-height: 1.35;
}

.location-map {
  height: 250px;
  width: 100%;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  z-index: 1; /* Keep below dropdowns/header */
}

.address-search-shell {
  position: relative;
  z-index: 4;
}

.address-suggestions {
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.4rem;
  border-radius: calc(var(--radius-sm) + 2px);
  border: 1px solid var(--border-light);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 24px 40px -28px rgba(15, 23, 42, 0.35);
}

.address-suggestions[hidden] {
  display: none !important;
}

.address-suggestion-item {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: rgba(15, 118, 110, 0.03);
  color: var(--text);
  cursor: pointer;
  text-align: left;
  font: inherit;
  transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.address-suggestion-item:hover,
.address-suggestion-item:focus {
  border-color: rgba(15, 118, 110, 0.16);
  background: rgba(15, 118, 110, 0.08);
  outline: none;
  transform: translateY(-1px);
}

.address-suggestion-item-active {
  border-color: rgba(15, 118, 110, 0.2);
  background: rgba(15, 118, 110, 0.12);
}

.address-suggestion-primary {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}

.address-suggestion-secondary {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.address-status,
.map-status,
.precision-note {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
}

.address-status-pending,
.map-status-pending,
.precision-note-pending {
  color: var(--warn);
}

.address-status-ready,
.map-status-ready,
.precision-note-ready {
  color: var(--success);
}

.address-status-error,
.map-status-error,
.precision-note-error {
  color: var(--danger);
}

.map-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.6rem;
  flex-wrap: wrap;
}

.coordinate-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  background: rgba(255, 255, 255, 0.72);
}

.coordinate-pill-pending {
  color: var(--text-muted);
}

.coordinate-pill-ready {
  color: var(--accent);
  border-color: rgba(15, 118, 110, 0.16);
  background: rgba(15, 118, 110, 0.08);
}

.glass-lite {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--border);
  box-shadow: 0 18px 38px -32px rgba(15, 23, 42, 0.2);
}

.location-workflow {
  margin-bottom: 1rem;
  padding: 1rem 1rem 1.05rem;
  border-radius: var(--radius);
}

.workflow-steps {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.85rem;
}

.workflow-step {
  display: inline-flex;
  align-items: center;
  padding: 0.38rem 0.72rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.65);
  color: var(--text-muted);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.workflow-step-active {
  color: var(--accent);
  border-color: rgba(15, 118, 110, 0.2);
  background: rgba(15, 118, 110, 0.08);
}

.workflow-step-done {
  color: var(--success);
  border-color: rgba(31, 138, 92, 0.18);
  background: rgba(31, 138, 92, 0.08);
}

.workflow-step-pending {
  color: var(--text-muted);
}

.workflow-copy {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.workflow-copy strong {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  color: var(--text);
}

.workflow-copy p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.workflow-actions {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin-top: 0.95rem;
}

.workflow-btn {
  min-width: 160px;
}

.workflow-btn:disabled {
  opacity: 0.45;
}

.map-shell {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.map-shell-locked .location-map {
  filter: saturate(0.7) brightness(0.92);
}

.map-overlay {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: linear-gradient(180deg, rgba(10, 20, 35, 0.14), rgba(10, 20, 35, 0.26));
  backdrop-filter: blur(2px);
}

.map-overlay[hidden] {
  display: none !important;
}

.map-overlay-card {
  width: min(420px, 100%);
  padding: 1rem 1.1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(16, 36, 62, 0.08);
  box-shadow: 0 28px 52px -34px rgba(15, 23, 42, 0.45);
}

.map-overlay-kicker {
  display: inline-flex;
  margin-bottom: 0.45rem;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.08);
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.map-overlay-card strong {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  line-height: 1.35;
  color: var(--text);
}

.map-overlay-card p {
  margin-top: 0.4rem;
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.setup-details {
  margin-bottom: 2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.68);
}

.setup-summary {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  list-style: none;
  user-select: none;
}

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

.setup-summary::after {
  content: "▸";
  margin-left: auto;
  transition: transform 0.2s ease;
  font-size: 0.8rem;
}

details[open] .setup-summary::after {
  transform: rotate(90deg);
}

.setup-icon {
  font-size: 1.1rem;
}

.setup-status {
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  border-radius: 99px;
  background: rgba(248, 113, 113, 0.1);
  color: var(--danger);
  border: 1px solid rgba(248, 113, 113, 0.2);
  font-weight: 600;
}

.setup-status.setup-ok {
  background: rgba(52, 211, 153, 0.1);
  color: var(--success);
  border-color: rgba(52, 211, 153, 0.2);
}

.setup-body {
  padding: 0 1.25rem 1.25rem;
}

.setup-help {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.setup-save-btn {
  align-self: flex-end;
  margin-top: 1.65rem;
  flex-shrink: 0;
}

.biz-form-grid {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.label-hint {
  font-weight: 400;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.flex-grow { flex: 1; }

.btn-geo {
  margin-top: -0.5rem;
  margin-bottom: 1rem;
  font-size: 0.875rem;
  padding: 0.5rem 1rem;
}

/* geo button handled by JS textContent */

/* Business result card */

.biz-result {
  margin-top: 2rem;
}

.result-card {
  padding: 1.5rem 2rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.result-card h4 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

.result-card p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-dark);
}

.result-success {
  background: rgba(52, 211, 153, 0.05);
  border-color: rgba(52, 211, 153, 0.3);
}

.result-success h4 {
  color: var(--success);
}

.result-error {
  background: rgba(248, 113, 113, 0.05);
  border-color: rgba(248, 113, 113, 0.3);
}

.result-error h4 {
  color: var(--danger);
}

/* ───── Developer Console ───── */

.console-section {
  padding-bottom: 8rem;
}

.console-wrapper {
  padding: 3rem;
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
}

.console-wrapper::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
}

.console-header {
  margin-bottom: 2rem;
}

.console-header h2 {
  margin-bottom: 0.5rem;
}

.console-header p {
  color: var(--text-muted);
}

.api-example-bar {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.api-chip {
  padding: 0.4rem 0.9rem;
  border-radius: 99px;
  background: rgba(15, 118, 110, 0.08);
  border: 1px solid rgba(15, 118, 110, 0.16);
  color: var(--accent);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.8rem;
  font-weight: 500;
}

.console-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 2rem;
}

.panel {
  background: rgba(255,255,255,0.76);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.panel-span-2 {
  grid-column: 1 / -1;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1rem;
}

.panel-head h3 {
  font-size: 1.1rem;
}

.inline-head {
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.founder-inline-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.compact-inline-input {
  min-width: 220px;
}

.panel-copy {
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-row {
  display: flex;
  gap: 1rem;
}

.half {
  flex: 1;
}

label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.input-modern {
  width: 100%;
  background-color: rgba(255,255,255,0.7);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-family: 'Manrope', sans-serif;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.input-modern:focus {
  outline: none;
  border-color: var(--accent);
  background-color: rgba(255,255,255,0.92);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.1);
}

.input-modern::placeholder {
  color: var(--border-light);
}

textarea.input-modern {
  resize: vertical;
  min-height: 80px;
}

select.input-modern {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23a1a1aa' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

select.input-modern:focus {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2338bdf8' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
}

select.input-modern option {
  background-color: var(--bg);
  color: var(--text);
}

.agent-benefits-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2rem;
}

.benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
}

.benefit-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.1), rgba(129, 140, 248, 0.1));
  border: 1px solid rgba(56, 189, 248, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.benefit-item h4 {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
  color: var(--text);
}

.benefit-item p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.join-qualification-panel .request-header {
  margin-bottom: 1.75rem;
}

.qualification-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.qualification-step {
  display: flex;
  gap: 0.9rem;
  padding: 1.1rem;
  border-radius: 18px;
  border: 1px solid rgba(16, 36, 62, 0.08);
  background: rgba(255, 255, 255, 0.72);
}

.qualification-step-num {
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 800;
  box-shadow: 0 10px 24px -16px rgba(15, 118, 110, 0.55);
}

.qualification-step-body h4 {
  font-size: 0.98rem;
  margin-bottom: 0.35rem;
}

.qualification-step-body p {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.join-task-class-grid {
  margin-top: 0.25rem;
}

.join-class-card {
  padding: 1.6rem 1.4rem;
}

.join-class-status {
  margin-top: 0.9rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--text-dark);
}

.check-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.check-option {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.95rem 1rem;
  border-radius: 16px;
  border: 1px solid rgba(16, 36, 62, 0.08);
  background: rgba(255, 255, 255, 0.74);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.check-option:hover {
  border-color: rgba(15, 118, 110, 0.22);
  transform: translateY(-1px);
  box-shadow: 0 16px 30px -24px rgba(15, 23, 42, 0.18);
}

.check-option input {
  margin-top: 0.15rem;
  accent-color: var(--accent);
  flex-shrink: 0;
}

.check-option-body {
  display: flex;
  flex-direction: column;
  gap: 0.22rem;
  min-width: 0;
}

.check-option-body strong {
  font-size: 0.93rem;
  line-height: 1.35;
}

.check-option-body span {
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

.button-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.inline-link-row {
  margin-top: 1.1rem;
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.inline-link-row a {
  color: var(--accent);
  font-weight: 700;
}

.hero-brand-tight {
  max-width: 12ch;
}

.join-overview-hero .hero-grid {
  align-items: center;
}

.join-overview-panel {
  align-self: center;
}

.audience-list-block .audience-list {
  margin-top: 0;
}

.field-main {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.field-shell {
  padding: 1.5rem;
  border-radius: 28px;
  border: 1px solid var(--border);
}

.field-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  flex-wrap: wrap;
}

.field-meta-copy {
  margin-top: 0.5rem;
  color: var(--text-muted);
}

.field-grid {
  margin-top: 1.4rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1rem;
}

.field-panel {
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.7);
}

.field-summary {
  display: grid;
  gap: 0.85rem;
}

.field-assignment-block {
  padding: 0.9rem 1rem;
  border-radius: 18px;
  border: 1px solid rgba(16, 36, 62, 0.08);
  background: rgba(255, 255, 255, 0.76);
}

.field-assignment-label {
  margin-bottom: 0.2rem;
  color: var(--text-muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.field-current-step {
  margin-top: 0.5rem;
}

.field-current-card {
  padding: 1rem;
  border-radius: 18px;
  border: 1px solid rgba(15, 118, 110, 0.16);
  background: rgba(15, 118, 110, 0.07);
}

.field-current-card h4 {
  margin-top: 0.35rem;
}

.field-current-card p:last-child {
  margin-top: 0.45rem;
}

.field-token-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.field-token-btn {
  justify-content: center;
}

.founder-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.compact-field {
  margin-bottom: 0;
  min-width: 180px;
}

.founder-actions {
  margin-top: 0;
}

.founder-meta {
  margin-top: 1rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.objective-panel {
  margin-top: 1.25rem;
  padding: 1.1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.07), rgba(194, 109, 58, 0.04)),
    rgba(255, 255, 255, 0.72);
}

.objective-header {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(220px, 0.8fr);
  gap: 1rem;
  align-items: start;
}

.objective-kicker {
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.objective-header h4 {
  margin-top: 0.3rem;
  font-size: 1.1rem;
}

.objective-rule {
  margin-top: 0.45rem;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.objective-score-box {
  padding: 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(15, 118, 110, 0.16);
  background: rgba(15, 118, 110, 0.08);
  text-align: right;
}

.objective-score-box[data-severity="warn"] {
  border-color: rgba(251, 191, 36, 0.25);
  background: rgba(251, 191, 36, 0.07);
}

.objective-score-box[data-severity="critical"] {
  border-color: rgba(248, 113, 113, 0.28);
  background: rgba(248, 113, 113, 0.08);
}

.objective-score-label,
.objective-score-sub {
  display: block;
}

.objective-score-label {
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.objective-score-value {
  display: block;
  margin-top: 0.35rem;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.5rem;
  font-weight: 900;
  line-height: 1;
}

.objective-score-sub {
  margin-top: 0.35rem;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.objective-mini-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.objective-mini-card {
  padding: 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.62);
}

.objective-mini-top {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  align-items: start;
  color: var(--text-muted);
  font-size: 0.74rem;
}

.objective-mini-top strong {
  color: var(--text);
  font-size: 0.8rem;
}

.objective-mini-value {
  margin-top: 0.35rem;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
}

.objective-mini-card p {
  margin-top: 0.3rem;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.objective-detail-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.objective-detail-block h5 {
  margin-bottom: 0.6rem;
  font-size: 0.9rem;
}

.objective-list {
  display: grid;
  gap: 0.5rem;
  padding-left: 1rem;
  color: var(--text-muted);
  font-size: 0.84rem;
}

.objective-list strong {
  color: var(--text);
}

.constraint-list {
  display: grid;
  gap: 0.6rem;
}

.constraint-item {
  padding: 0.75rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.62);
}

.constraint-item[data-status="watch"] {
  border-color: rgba(251, 191, 36, 0.22);
  background: rgba(251, 191, 36, 0.06);
}

.constraint-item[data-status="breached"] {
  border-color: rgba(248, 113, 113, 0.24);
  background: rgba(248, 113, 113, 0.06);
}

.constraint-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.constraint-item p {
  margin-top: 0.3rem;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.alert-list {
  margin-top: 1rem;
  display: grid;
  gap: 0.75rem;
}

.alert-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.68);
}

.alert-item[data-severity="warn"] {
  border-color: rgba(251, 191, 36, 0.25);
  background: rgba(251, 191, 36, 0.06);
}

.alert-item[data-severity="critical"] {
  border-color: rgba(248, 113, 113, 0.3);
  background: rgba(248, 113, 113, 0.07);
}

.alert-severity {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 70px;
  height: fit-content;
  padding: 0.25rem 0.6rem;
  border-radius: 99px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.alert-item[data-severity="warn"] .alert-severity {
  color: var(--warn);
  background: rgba(251, 191, 36, 0.12);
}

.alert-item[data-severity="critical"] .alert-severity {
  color: var(--danger);
  background: rgba(248, 113, 113, 0.12);
}

.alert-copy strong {
  display: block;
  color: var(--text);
  margin-bottom: 0.2rem;
}

.alert-copy p {
  color: var(--text-muted);
  font-size: 0.88rem;
}

.kpi-grid {
  margin-top: 1.25rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
}

.kpi-card {
  padding: 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.68);
}

.kpi-label {
  display: block;
  color: var(--text-muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.kpi-value {
  display: block;
  margin-top: 0.35rem;
  color: var(--text);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.1;
}

.kpi-note {
  display: block;
  margin-top: 0.35rem;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.founder-grid {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 1.25rem;
}

.founder-grid-secondary {
  margin-top: 1rem;
}

.founder-column h4 {
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}

.founder-column h4 + .compact-list,
.founder-column h4 + .scorecard-list {
  margin-bottom: 1.25rem;
}

.compact-list,
.scorecard-list {
  display: grid;
  gap: 0.75rem;
}

.compact-item,
.scorecard-item {
  padding: 0.9rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.68);
}

.compact-item-header,
.scorecard-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.compact-item strong,
.scorecard-top strong {
  color: var(--text);
}

.compact-item p,
.scorecard-item p {
  margin-top: 0.35rem;
  color: var(--text-muted);
  font-size: 0.86rem;
}

.compact-meta,
.compact-actions {
  font-size: 0.8rem;
}

.compact-actions {
  color: var(--text-dark);
}

.compact-form {
  margin-top: 1rem;
}

.compact-code-input {
  font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
}

.founder-mini-actions {
  align-items: flex-end;
}

.founder-form-submit {
  display: flex;
  align-items: flex-end;
}

.founder-form-submit .btn {
  width: 100%;
}

.compact-item-actions {
  margin-top: 0.75rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.compact-action-btn {
  padding: 0.5rem 0.8rem;
}

.mini-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: 99px;
  background: rgba(15, 118, 110, 0.08);
  border: 1px solid rgba(15, 118, 110, 0.16);
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 600;
}

.metric-inline {
  margin-top: 0.6rem;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  color: var(--text-dark);
  font-size: 0.82rem;
}

.empty-state {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.badge-neutral {
  background: rgba(255,255,255,0.65);
  color: var(--text);
  padding: 0.25rem 0.75rem;
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 600;
}

.status-success {
  background: rgba(52, 211, 153, 0.1);
  color: var(--success);
  border: 1px solid rgba(52, 211, 153, 0.2);
}

.status-warn {
  background: rgba(251, 191, 36, 0.1);
  color: var(--warn);
  border: 1px solid rgba(251, 191, 36, 0.2);
}

.status-error {
  background: rgba(248, 113, 113, 0.1);
  color: var(--danger);
  border: 1px solid rgba(248, 113, 113, 0.2);
}

.checkbox-modern {
  display: flex;
  align-items: center;
  position: relative;
  padding-left: 30px;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--text-muted);
  user-select: none;
  margin-top: 1rem;
}

.checkbox-modern input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.checkmark {
  position: absolute;
  top: 0;
  left: 0;
  height: 20px;
  width: 20px;
  background-color: rgba(255,255,255,0.7);
  border: 1px solid var(--border);
  border-radius: 4px;
  transition: all 0.2s ease;
}

.checkbox-modern:hover input ~ .checkmark {
  border-color: var(--accent);
}

.checkbox-modern input:checked ~ .checkmark {
  background-color: var(--accent);
  border-color: var(--accent);
}

.checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

.checkbox-modern input:checked ~ .checkmark:after {
  display: block;
}

.checkbox-modern .checkmark:after {
  left: 7px;
  top: 3px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.output-panel {
  margin-top: 2rem;
}

.code-block {
  background: #000;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.5rem;
  overflow-x: auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.85rem;
  color: #a1a1aa;
  max-height: 400px;
}

/* ───── CTA Banner ───── */

.cta-section {
  padding-bottom: 0;
}

.cta-banner {
  padding: 4rem 3rem;
  border-radius: var(--radius);
  text-align: center;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 30% 50%, rgba(56, 189, 248, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 50%, rgba(129, 140, 248, 0.08) 0%, transparent 50%),
    var(--panel);
}

.cta-banner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent));
}

.cta-content h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  margin-bottom: 1rem;
}

.cta-content p {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ───── Footer ───── */

.site-footer {
  position: relative;
  padding: 4.5rem 0 2rem;
  margin-top: 4.5rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.14) 0%, rgba(16, 36, 62, 0.06) 100%);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(15, 118, 110, 0), rgba(15, 118, 110, 0.26), rgba(194, 109, 58, 0.26), rgba(194, 109, 58, 0));
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 3rem;
  margin-bottom: 3rem;
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid rgba(16, 36, 62, 0.08);
  background: rgba(255, 255, 255, 0.6);
  box-shadow: 0 18px 40px -34px rgba(15, 23, 42, 0.2);
  align-items: flex-start;
}

.footer-brand {
  max-width: 360px;
}

.footer-logo {
  height: 32px;
  width: auto;
  display: block;
}

.footer-copy {
  color: var(--text-muted);
  margin-top: 1rem;
  font-size: 0.95rem;
}

.footer-links {
  display: flex;
  gap: 1.75rem;
  flex-wrap: wrap;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-width: 180px;
}

.footer-col h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.footer-col a {
  font-size: 0.95rem;
  color: var(--text);
  font-weight: 500;
}

.footer-col a:hover {
  color: var(--text);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 2rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.875rem;
}

.field-shell {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.field-header,
.field-main,
.field-sidebar {
  padding: 1.5rem;
}

.field-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.field-status-stack {
  display: grid;
  gap: 0.6rem;
  min-width: 180px;
  justify-items: end;
}

.field-grid {
  margin-top: 1.25rem;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.8fr);
  gap: 1.25rem;
}

.field-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.field-card-head-tight {
  margin-top: 1.25rem;
}

.field-meta {
  color: var(--text-muted);
  font-size: 0.84rem;
}

.field-step-panel,
.field-control-panel {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.68);
}

.field-step-top,
.field-step-item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.field-step-panel p,
.field-step-item p {
  margin-top: 0.45rem;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.field-form {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.72);
}

.field-submit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.field-control-actions {
  margin-top: 0.75rem;
}

.field-assignment-list {
  display: grid;
  gap: 0.9rem;
  margin-top: 0.75rem;
}

.field-assignment-list dt {
  color: var(--text-muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.field-assignment-list dd {
  margin: 0.3rem 0 0;
  color: var(--text);
  font-size: 0.96rem;
  line-height: 1.5;
}

.field-steps-list {
  margin-top: 0.75rem;
  display: grid;
  gap: 0.75rem;
}

.field-step-item {
  padding: 0.9rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.68);
}

.field-step-item[data-status="validated"] {
  border-color: rgba(52, 211, 153, 0.24);
  background: rgba(52, 211, 153, 0.08);
}

.field-step-item[data-status="pending"] {
  border-color: rgba(251, 191, 36, 0.22);
  background: rgba(251, 191, 36, 0.06);
}

.field-output {
  margin-top: 0.75rem;
  min-height: 220px;
  max-height: 420px;
  overflow: auto;
}

/* ───── Responsive ───── */

@media (max-width: 968px) {
  .hero-grid,
  .split-section,
  .audience-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

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

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

  .kpi-grid,
  .founder-grid {
    grid-template-columns: 1fr 1fr;
  }

  .objective-header,
  .objective-detail-grid,
  .objective-mini-grid {
    grid-template-columns: 1fr;
  }

  .objective-score-box {
    text-align: left;
  }

  .hero-proof-bar,
  .trust-ribbon-grid,
  .request-assurance-bar,
  .trust-ribbon-lead,
  .qualification-flow {
    grid-template-columns: 1fr;
  }

  .trust-ribbon-lead .request-subtitle {
    margin-left: 0;
  }

  .hero-frame-card {
    position: static;
    width: 100%;
    margin-top: 0.85rem;
  }

  .hero-image-wrapper {
    padding-bottom: 1rem;
  }

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

  .hero-brand {
    font-size: clamp(2.5rem, 8vw, 4rem);
  }

  .footer-top {
    flex-direction: column;
    gap: 1.5rem;
  }

  .language-toolbar {
    flex-direction: column;
    align-items: flex-start;
    padding: 1.1rem 1.1rem 1.15rem;
    gap: 1rem;
    margin-bottom: 1.5rem;
  }

  .language-toolbar > div:first-child {
    flex: 1 1 auto;
    width: 100%;
  }

  .language-toolbar-control {
    flex: 1 1 auto;
    width: 100%;
  }

  .field-grid,
  .field-token-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .metrics-grid,
  .grid-3,
  .check-grid {
    grid-template-columns: 1fr;
  }

  .header-inner {
    flex-direction: column;
    height: auto;
    padding: 1rem 0;
    gap: 1rem;
  }

  .field-header,
  .field-submit-row {
    flex-direction: column;
    align-items: stretch;
  }

  .field-status-stack {
    justify-items: start;
    min-width: 0;
  }

  .nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.7rem;
    width: 100%;
  }


  .hero {
    padding: 4rem 0;
  }

  .hero-copy,
  .request-subtitle,
  .audience-desc,
  .cta-content p,
  .language-toolbar-copy {
    font-size: 0.98rem;
  }

  .hero-proof-bar,
  .trust-ribbon,
  .request-assurance-bar {
    gap: 0.75rem;
  }

  .trust-ribbon {
    padding: 1.5rem;
  }

  .form-row {
    flex-direction: column;
    gap: 0;
  }

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

  .workflow-btn {
    width: 100%;
  }

  .map-overlay {
    padding: 0.75rem;
  }

  .request-wrapper,
  .console-wrapper,
  .cta-banner {
    padding: 1.5rem;
  }

  .hero-cta .btn,
  .cta-buttons .btn {
    width: 100%;
  }

  .split-image {
    min-height: 240px;
  }

  .image-caption-card {
    position: static;
    width: 100%;
    margin-top: 1rem;
  }

  .api-example-bar {
    gap: 0.5rem;
  }

  .kpi-grid,
  .founder-grid {
    grid-template-columns: 1fr;
  }

  .objective-panel {
    padding: 0.9rem;
  }

  .objective-score-value {
    font-size: 2rem;
  }

  .founder-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .footer-links {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .inline-link-row,
  .field-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-top {
    padding: 1.35rem;
    margin-bottom: 2rem;
  }

  .footer-col {
    min-width: 0;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
  }

  .footer-col:first-child {
    padding-top: 0;
    border-top: none;
  }

  .page-language-select {
    width: 100%;
    min-width: 0;
  }
}
