/* Business Launch Desk — Aicorp Inc / AI Corp Inc
   Brand: charcoal + steel-blue */

:root {
  --charcoal: #1a1d23;
  --charcoal-soft: #252a33;
  --charcoal-muted: #3a4150;
  --steel: #4a7ab5;
  --steel-bright: #5b8fc9;
  --steel-deep: #3a6494;
  --steel-glow: rgba(74, 122, 181, 0.25);
  --steel-tint: rgba(74, 122, 181, 0.12);
  --text: #e8eaed;
  --text-muted: #9aa3b2;
  --text-dim: #6b7385;
  --white: #ffffff;
  --border: rgba(255, 255, 255, 0.08);
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --max: 1080px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--charcoal);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

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

a {
  color: var(--steel-bright);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(26, 29, 35, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.logo:hover {
  text-decoration: none;
}

.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: linear-gradient(145deg, var(--steel-bright), var(--steel-deep));
  display: grid;
  place-items: center;
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 800;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 4px 14px var(--steel-glow);
}

.logo-text span {
  display: block;
  font-size: 0.95rem;
  line-height: 1.15;
}

.logo-text small {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.nav {
  display: none;
  gap: 1.25rem;
  align-items: center;
}

.nav a {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1.35rem;
  border-radius: 999px;
  font-weight: 650;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  line-height: 1.2;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(145deg, var(--steel-bright), var(--steel-deep));
  color: var(--white);
  box-shadow: 0 6px 20px var(--steel-glow);
}

.btn-primary:hover {
  box-shadow: 0 8px 28px rgba(74, 122, 181, 0.4);
  color: var(--white);
}

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

.btn-ghost:hover {
  border-color: var(--steel);
  color: var(--steel-bright);
}

.btn-lg {
  padding: 0.95rem 1.75rem;
  font-size: 1.05rem;
}

.btn-header {
  padding: 0.55rem 1.1rem;
  font-size: 0.85rem;
}

/* Hero */
.hero {
  padding: 3.5rem 0 3rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto;
  height: 70%;
  background:
    radial-gradient(ellipse 50% 60% at 70% 20%, var(--steel-glow), transparent 70%),
    radial-gradient(ellipse 40% 50% at 15% 40%, rgba(74, 122, 181, 0.12), transparent 65%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: var(--steel-tint);
  border: 1px solid rgba(74, 122, 181, 0.3);
  color: var(--steel-bright);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 1.1rem;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.15rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  font-weight: 800;
  margin-bottom: 1rem;
  max-width: 16ch;
}

.hero h1 em {
  font-style: normal;
  color: var(--steel-bright);
}

.hero-lead {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 38ch;
  margin-bottom: 1.75rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
  margin-bottom: 1.25rem;
}

.price-chip {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  flex-wrap: wrap;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.price-chip .was {
  text-decoration: line-through;
  color: var(--text-dim);
}

.price-chip .now {
  color: var(--text);
  font-weight: 700;
  font-size: 1.15rem;
}

.hero-note {
  font-size: 0.85rem;
  color: var(--text-dim);
  max-width: 42ch;
}

.hero-card {
  background: linear-gradient(160deg, var(--charcoal-soft), #1e232c);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.hero-card h2 {
  font-size: 1rem;
  font-weight: 650;
  margin-bottom: 1rem;
  color: var(--text);
}

.checklist {
  list-style: none;
  display: grid;
  gap: 0.7rem;
}

.checklist li {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.checklist .check {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--steel-tint);
  color: var(--steel-bright);
  display: grid;
  place-items: center;
  font-size: 0.7rem;
  font-weight: 800;
  margin-top: 0.1rem;
}

/* Sections */
section {
  padding: 3.25rem 0;
}

.section-head {
  margin-bottom: 2rem;
  max-width: 40rem;
}

.section-head h2 {
  font-size: clamp(1.55rem, 3vw, 2rem);
  letter-spacing: -0.02em;
  margin-bottom: 0.55rem;
}

.section-head p {
  color: var(--text-muted);
}

.section-alt {
  background: linear-gradient(180deg, rgba(37, 42, 51, 0.55), transparent);
  border-block: 1px solid var(--border);
}

/* Cards grid */
.cards {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

.card {
  background: var(--charcoal-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem;
}

.card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.45rem;
  letter-spacing: -0.01em;
}

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

.card-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--steel-tint);
  color: var(--steel-bright);
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  margin-bottom: 0.85rem;
}

/* Steps */
.steps {
  display: grid;
  gap: 1rem;
  counter-reset: step;
}

.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
  background: var(--charcoal-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
}

.step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--steel-bright), var(--steel-deep));
  color: var(--white);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.9rem;
}

.step h3 {
  font-size: 1.05rem;
  margin-bottom: 0.3rem;
}

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

/* Pricing */
.pricing-wrap {
  display: grid;
  gap: 1.25rem;
}

.price-card {
  background: linear-gradient(165deg, #222833, var(--charcoal-soft));
  border: 1px solid rgba(74, 122, 181, 0.35);
  border-radius: calc(var(--radius) + 4px);
  padding: 2rem 1.5rem;
  box-shadow: 0 0 0 1px var(--steel-glow), var(--shadow);
  text-align: center;
}

.price-card .label {
  color: var(--steel-bright);
  font-weight: 650;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.75rem;
}

.price-row {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.65rem;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}

.price-was {
  font-size: 1.35rem;
  color: var(--text-dim);
  text-decoration: line-through;
}

.price-now {
  font-size: clamp(2.5rem, 6vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--white);
}

.price-now span {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
}

.price-sub {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.price-includes {
  text-align: left;
  list-style: none;
  display: grid;
  gap: 0.55rem;
  margin: 0 auto 1.5rem;
  max-width: 26rem;
}

.price-includes li {
  color: var(--text-muted);
  font-size: 0.95rem;
  padding-left: 1.4rem;
  position: relative;
}

.price-includes li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--steel-bright);
  font-weight: 700;
}

.fee-note {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem 1.15rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  text-align: left;
}

.fee-note strong {
  color: var(--text);
}

/* Who for */
.split {
  display: grid;
  gap: 1rem;
}

.for-card {
  border-radius: var(--radius);
  padding: 1.35rem;
  border: 1px solid var(--border);
}

.for-card.yes {
  background: rgba(74, 122, 181, 0.1);
  border-color: rgba(74, 122, 181, 0.28);
}

.for-card.no {
  background: rgba(0, 0, 0, 0.2);
}

.for-card h3 {
  margin-bottom: 0.85rem;
  font-size: 1.05rem;
}

.for-card ul {
  list-style: none;
  display: grid;
  gap: 0.55rem;
}

.for-card li {
  color: var(--text-muted);
  font-size: 0.95rem;
  padding-left: 1.35rem;
  position: relative;
}

.for-card.yes li::before {
  content: "+";
  position: absolute;
  left: 0;
  color: var(--steel-bright);
  font-weight: 700;
}

.for-card.no li::before {
  content: "–";
  position: absolute;
  left: 0;
  color: var(--text-dim);
  font-weight: 700;
}

/* FAQ */
.faq {
  display: grid;
  gap: 0.65rem;
}

.faq details {
  background: var(--charcoal-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.95rem 1.15rem;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

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

.faq summary::after {
  content: "+";
  color: var(--steel-bright);
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1;
}

.faq details[open] summary::after {
  content: "–";
}

.faq details p {
  margin-top: 0.75rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  padding-right: 1.5rem;
}

/* CTA band */
.cta-band {
  text-align: center;
  padding: 3rem 0;
}

.cta-band .inner {
  background: linear-gradient(145deg, rgba(74, 122, 181, 0.18), rgba(37, 42, 51, 0.9));
  border: 1px solid rgba(74, 122, 181, 0.3);
  border-radius: calc(var(--radius) + 4px);
  padding: 2.25rem 1.5rem;
}

.cta-band h2 {
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  margin-bottom: 0.5rem;
}

.cta-band p {
  color: var(--text-muted);
  margin-bottom: 1.35rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0 2rem;
}

.footer-grid {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.footer-brand {
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.footer-brand small {
  display: block;
  font-weight: 500;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 0.15rem;
}

.footer-meta,
.footer-links {
  font-size: 0.9rem;
  color: var(--text-muted);
}

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

.disclaimers {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  font-size: 0.8rem;
  color: var(--text-dim);
  display: grid;
  gap: 0.65rem;
  line-height: 1.55;
}

.copyright {
  margin-top: 1.5rem;
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* Mobile nav toggle */
.menu-btn {
  display: inline-flex;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 8px;
  padding: 0.4rem 0.65rem;
  font-size: 0.85rem;
  cursor: pointer;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0 0 1rem;
  border-bottom: 1px solid var(--border);
}

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

.mobile-nav a {
  color: var(--text-muted);
  font-weight: 500;
  text-decoration: none;
}

@media (min-width: 720px) {
  .menu-btn {
    display: none;
  }

  .nav {
    display: flex;
  }

  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
  }

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

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

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

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

@media (min-width: 960px) {
  .cards {
    grid-template-columns: repeat(3, 1fr);
  }

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

/* Inline strikethrough helper */
.was-inline {
  text-decoration: line-through;
  color: var(--text-dim);
}

/* Intake / wizard */
.intake-card {
  background: linear-gradient(165deg, #222833, var(--charcoal-soft));
  border: 1px solid rgba(74, 122, 181, 0.28);
  border-radius: calc(var(--radius) + 4px);
  padding: 1.5rem 1.35rem 1.75rem;
  box-shadow: var(--shadow);
  max-width: 40rem;
}

.sensitive-note {
  background: var(--steel-tint);
  border: 1px solid rgba(74, 122, 181, 0.3);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.35rem;
}

.form-success {
  text-align: center;
  padding: 1.5rem 0.5rem;
}

.form-success h3 {
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
}

.form-success p {
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.botcheck {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.wizard-progress {
  margin-bottom: 1.5rem;
}

.wizard-progress-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 0.65rem;
  flex-wrap: wrap;
}

#wizardStepLabel {
  font-size: 0.85rem;
  font-weight: 650;
  color: var(--steel-bright);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

#wizardStepTitle {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
}

.wizard-track {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  margin-bottom: 0.75rem;
}

.wizard-track-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--steel-deep), var(--steel-bright));
  transition: width 0.25s ease;
}

.wizard-dots {
  list-style: none;
  display: flex;
  gap: 0.45rem;
  justify-content: space-between;
}

.wizard-dots li {
  flex: 1;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.wizard-dots li.is-active,
.wizard-dots li.is-done {
  background: var(--steel-bright);
}

.wizard-step {
  border: none;
  margin: 0;
  padding: 0;
  min-width: 0;
}

.wizard-step[hidden] {
  display: none !important;
}

.wizard-legend {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.35rem;
  color: var(--text);
  padding: 0;
}

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

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

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-width: 0;
}

.form-field-full {
  grid-column: 1 / -1;
}

.form-field label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}

.req {
  color: var(--steel-bright);
}

.optional {
  font-weight: 500;
  color: var(--text-dim);
  font-size: 0.85em;
}

.field-help {
  font-size: 0.82rem;
  color: var(--text-dim);
  line-height: 1.45;
}

.checkbox-help {
  margin: -0.35rem 0 0.65rem 1.85rem;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font: inherit;
  font-size: 0.95rem;
  padding: 0.7rem 0.85rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--steel);
  box-shadow: 0 0 0 3px var(--steel-glow);
}

.form-field input.is-invalid,
.form-field select.is-invalid,
.form-field textarea.is-invalid {
  border-color: #c45b5b;
}

.form-field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%239aa3b2' d='M1.4 0L6 4.6 10.6 0 12 1.4 6 7.4 0 1.4z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  padding-right: 2.25rem;
}

.form-field textarea {
  resize: vertical;
  min-height: 5rem;
}

.checkbox-list {
  display: grid;
  gap: 0.35rem;
}

.check-row {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 0.75rem 0.9rem;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.check-row:hover {
  border-color: rgba(74, 122, 181, 0.4);
}

.check-row input {
  margin-top: 0.2rem;
  accent-color: var(--steel-bright);
  width: 1.05rem;
  height: 1.05rem;
  flex-shrink: 0;
}

.review-summary {
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  display: grid;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.review-row {
  display: grid;
  gap: 0.15rem;
}

.review-row dt {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-dim);
  font-weight: 650;
}

.review-row dd {
  font-size: 0.95rem;
  color: var(--text);
  word-break: break-word;
}

.wizard-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.85rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.wizard-nav-right {
  display: flex;
  gap: 0.65rem;
  margin-left: auto;
}

.form-hint {
  margin-top: 1rem;
  font-size: 0.82rem;
  color: var(--text-dim);
}

.form-error {
  margin-top: 1rem;
  padding: 0.75rem 0.95rem;
  border-radius: var(--radius-sm);
  background: rgba(196, 91, 91, 0.15);
  border: 1px solid rgba(196, 91, 91, 0.4);
  color: #f0b4b4;
  font-size: 0.9rem;
}

/* Buy gate */
.buy-gate-note {
  background: rgba(0, 0, 0, 0.25);
  border: 1px dashed rgba(74, 122, 181, 0.35);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.15rem;
  text-align: left;
}

.buy-cta.is-locked {
  opacity: 0.45;
  pointer-events: none;
  filter: grayscale(0.25);
  box-shadow: none;
  cursor: not-allowed;
}

.buy-cta.is-unlocked {
  opacity: 1;
  pointer-events: auto;
  filter: none;
  animation: buyPulse 0.6s ease;
}

.buy-card-ready {
  box-shadow: 0 0 0 1px rgba(74, 122, 181, 0.55), 0 12px 40px rgba(74, 122, 181, 0.25);
}

.not-law-firm {
  margin-top: 1rem;
  font-size: 0.82rem;
  color: var(--text-dim);
}

.cta-band .inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cta-band-buy {
  margin-top: 0.75rem;
}

@keyframes buyPulse {
  0% { transform: scale(0.98); }
  50% { transform: scale(1.02); }
  100% { transform: scale(1); }
}

@media (min-width: 640px) {
  .intake-card {
    padding: 1.85rem 1.75rem 2rem;
  }

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

/* ===== Chat intake ===== */
.chat-shell {
  background: linear-gradient(165deg, #222833, var(--charcoal-soft));
  border: 1px solid rgba(74, 122, 181, 0.28);
  border-radius: calc(var(--radius) + 4px);
  padding: 1.25rem 1.1rem 1.35rem;
  box-shadow: var(--shadow);
  max-width: 44rem;
  /* Do not clip state suggestions that sit above the composer */
  overflow: visible;
  position: relative;
  z-index: 1;
}

.chat-status {
  margin-bottom: 0.85rem;
}

.chat-status #chatProgressLabel {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 650;
  color: var(--steel-bright);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 0.45rem;
}

.chat-track {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.chat-track-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--steel-deep), var(--steel-bright));
  transition: width 0.25s ease;
}

.chat-log {
  height: min(52vh, 420px);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0.75rem 0.35rem 1rem;
  margin-bottom: 0.75rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  scroll-behavior: smooth;
}

.chat-row {
  display: flex;
  width: 100%;
}

.chat-row--bot { justify-content: flex-start; }
.chat-row--user { justify-content: flex-end; }

.chat-bubble {
  max-width: min(92%, 34rem);
  padding: 0.75rem 0.95rem;
  border-radius: 14px;
  font-size: 0.95rem;
  line-height: 1.5;
  word-break: break-word;
}

.chat-bubble--bot {
  background: rgba(74, 122, 181, 0.14);
  border: 1px solid rgba(74, 122, 181, 0.28);
  color: var(--text);
  border-bottom-left-radius: 4px;
}

.chat-bubble--user {
  background: linear-gradient(145deg, var(--steel-bright), var(--steel-deep));
  color: var(--white);
  border-bottom-right-radius: 4px;
}

.chat-bubble .fee-disclaimer,
.chat-bubble .fee-notes {
  display: block;
  margin-top: 0.55rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.chat-bubble .summary-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.25rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.9rem;
}

.chat-bubble .summary-row span {
  color: var(--text-dim);
  flex-shrink: 0;
}

.chat-bubble .summary-row strong {
  text-align: right;
  font-weight: 600;
}

.chat-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}

.chat-chip {
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(74, 122, 181, 0.4);
  color: var(--steel-bright);
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
}

.chat-chip:hover {
  background: var(--steel-tint);
  border-color: var(--steel-bright);
}

.chat-suggest-wrap {
  position: relative;
  z-index: 30;
  overflow: visible;
  /* Reserve a little space so the absolute panel isn't flush against the log */
  padding-top: 0.15rem;
}

.chat-suggestions {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 100%;
  max-height: min(42vh, 280px);
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: #1a1f28;
  border: 1px solid rgba(74, 122, 181, 0.55);
  border-radius: var(--radius-sm);
  box-shadow: 0 -8px 28px rgba(0, 0, 0, 0.45), var(--shadow);
  z-index: 40;
  display: flex;
  flex-direction: column;
  margin-bottom: 8px;
  /* Solid panel so keyboard / footer don't make chips hard to see */
  backdrop-filter: none;
}

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

.chat-suggest-item {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 0.15rem;
  width: 100%;
  text-align: left;
  background: #1a1f28;
  border: none;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  font: inherit;
  font-size: 0.95rem;
  /* Touch-friendly ~44px tap targets */
  min-height: 44px;
  padding: 0.7rem 0.95rem;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.chat-suggest-item:last-child { border-bottom: none; }

.chat-suggest-item:hover,
.chat-suggest-item:focus {
  background: var(--steel-tint);
  outline: none;
}

.chat-suggest-item small {
  color: var(--steel-bright);
  font-weight: 650;
  margin-left: 0.35rem;
}

.suggest-fee {
  font-size: 0.75rem;
  color: var(--text-dim);
}

@media (max-width: 639px) {
  .chat-shell {
    overflow: visible;
  }

  .chat-suggest-wrap {
    z-index: 50;
  }

  .chat-suggestions {
    /* Keep list clearly above composer / soft keyboard chrome on phones */
    max-height: min(38vh, 240px);
    z-index: 60;
    border-width: 1.5px;
  }

  .chat-suggest-item {
    min-height: 48px;
    padding: 0.8rem 1rem;
  }

  .chat-composer .btn,
  .chat-chip {
    min-height: 44px;
  }
}

.chat-composer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.55rem;
  align-items: center;
}

.chat-composer input {
  width: 100%;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  font: inherit;
  font-size: 0.95rem;
  padding: 0.75rem 1rem;
}

.chat-composer input:focus {
  outline: none;
  border-color: var(--steel);
  box-shadow: 0 0 0 3px var(--steel-glow);
}

@media (min-width: 640px) {
  .chat-shell {
    padding: 1.5rem 1.5rem 1.6rem;
  }
  .chat-log {
    height: min(56vh, 480px);
  }
}
