/**
 * BusinessQ landing / legal pages — aligned with Flutter AppColors (Metal + Orange).
 * Source copy: keep in sync with public/css/businessq-landing.css
 */
:root {
  --metal-900: #091e42;
  --metal-800: #15294b;
  --metal-700: #243757;
  --metal-600: #354764;
  --metal-500: #42526d;
  --metal-300: #5d6b82;
  --metal-100: #7a8699;
  --orange-400: #ff5722;
  --orange-300: #ff8c59;
  --orange-500: #db3918;
  --orange-50: #ffead2;
  --surface: #ffffff;
  --surface-soft: #f2f3f6;
  --surface-warm: #fff6f0;
  --border: #dfe1e6;
  --text: #091e42;
  --text-muted: #505f79;
  --text-soft: #6b788e;
  --success: #0d9488;
  --success-bg: #ccfbf1;
  --error: #dc2626;
  --error-bg: #fee2e2;
  --warning-bg: #fef3c7;
  --warning-border: #f59e0b;
  --warning-text: #92400e;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 4px 24px rgba(9, 30, 66, 0.08);
  --shadow-hover: 0 8px 32px rgba(9, 30, 66, 0.12);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: var(--surface-soft);
}

.bq-container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 28px);
}

/* —— Top bar —— */
.bq-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(180deg, var(--metal-900) 0%, var(--metal-800) 100%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}

.bq-header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  padding: 14px 0;
}

.bq-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
}

.bq-logo img {
  height: 34px;
  width: auto;
  display: block;
}

.bq-logo-mark {
  color: var(--orange-400);
}

.bq-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 4px;
}

.bq-nav a {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.875rem;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: background 0.15s, color 0.15s;
}

.bq-nav a:hover {
  background: rgba(255, 87, 34, 0.18);
  color: #fff;
}

/* —— Hero (welcome) —— */
.bq-hero {
  position: relative;
  padding: clamp(48px, 10vw, 96px) 0 clamp(56px, 8vw, 80px);
  background: linear-gradient(165deg, var(--surface-warm) 0%, #fff 45%, var(--surface-soft) 100%);
  overflow: hidden;
}

.bq-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 50% at 100% 0%, rgba(255, 87, 34, 0.12), transparent 55%);
  pointer-events: none;
}

.bq-hero-inner {
  position: relative;
  z-index: 1;
}

.bq-hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(28px, 6vw, 56px);
  align-items: end;
}

@media (min-width: 900px) {
  .bq-hero-grid {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    gap: clamp(20px, 4vw, 48px);
  }
}

.bq-hero-copy {
  min-width: 0;
}

.bq-hero-visual {
  display: flex;
  justify-content: center;
  min-width: 0;
}

@media (min-width: 900px) {
  .bq-hero-visual {
    justify-content: flex-end;
    align-self: end;
  }
}

.bq-hero-figure {
  margin: 0;
  width: 100%;
  max-width: min(100%, 400px);
}

@media (min-width: 520px) and (max-width: 899px) {
  .bq-hero-figure {
    max-width: 320px;
  }
}

@media (min-width: 900px) {
  .bq-hero-figure {
    max-width: 440px;
  }
}

.bq-hero-figure img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  object-position: bottom center;
}

.bq-hero-caption {
  margin: 14px 0 0;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--metal-600);
  text-align: center;
}

@media (min-width: 900px) {
  .bq-hero-caption {
    text-align: right;
    padding-right: 4px;
  }
}

.bq-eyebrow {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--orange-500);
  margin-bottom: 12px;
}

.bq-hero h1 {
  margin: 0 0 16px;
  font-size: clamp(1.75rem, 5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--metal-900);
  letter-spacing: -0.03em;
  max-width: 18ch;
}

@media (min-width: 768px) {
  .bq-hero h1 {
    max-width: 22ch;
  }
}

.bq-hero-grid .bq-hero-copy h1 {
  max-width: min(100%, 22ch);
}

@media (min-width: 900px) {
  .bq-hero-grid .bq-hero-copy h1 {
    max-width: min(100%, 26ch);
  }
}

.bq-hero-lead {
  margin: 0 0 28px;
  font-size: clamp(1rem, 2.2vw, 1.125rem);
  color: var(--text-muted);
  max-width: 36rem;
}

.bq-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.bq-actions--center {
  justify-content: center;
}

.bq-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  font-size: 0.9375rem;
  font-weight: 600;
  font-family: inherit;
  border-radius: var(--radius-sm);
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.12s, box-shadow 0.12s, background 0.15s;
}

.bq-btn:active {
  transform: scale(0.98);
}

.bq-btn-primary {
  background: var(--orange-400);
  color: #fff;
  box-shadow: 0 4px 14px rgba(255, 87, 34, 0.35);
}

.bq-btn-primary:hover {
  background: var(--orange-500);
  color: #fff;
  box-shadow: 0 6px 20px rgba(255, 87, 34, 0.4);
}

.bq-btn-secondary {
  background: #fff;
  color: var(--metal-800);
  border: 2px solid var(--border);
}

.bq-btn-secondary:hover {
  border-color: var(--orange-300);
  color: var(--orange-500);
}

/* —— Feature grid —— */
.bq-section-title {
  text-align: center;
  margin: 0 0 8px;
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  font-weight: 700;
  color: var(--metal-900);
}

.bq-section-sub {
  text-align: center;
  margin: 0 auto 36px;
  max-width: 36rem;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.bq-features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  padding-bottom: clamp(40px, 8vw, 72px);
}

@media (min-width: 520px) {
  .bq-features {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .bq-features {
    grid-template-columns: repeat(4, 1fr);
  }
}

.bq-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s, transform 0.2s;
}

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

.bq-card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--orange-50);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 12px;
}

.bq-card h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--metal-900);
}

.bq-card p {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--text-soft);
  line-height: 1.45;
}

/* —— CTA strip —— */
.bq-cta-strip {
  background: linear-gradient(135deg, var(--metal-900) 0%, var(--metal-800) 100%);
  color: #fff;
  padding: clamp(40px, 6vw, 56px) 0;
  text-align: center;
}

.bq-cta-strip h2 {
  margin: 0 0 10px;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 700;
}

.bq-cta-strip p {
  margin: 0 auto 24px;
  max-width: 32rem;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9375rem;
}

.bq-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.bq-cta-strip .bq-btn-primary {
  box-shadow: none;
}

.bq-cta-strip .bq-btn-secondary {
  background: rgba(255, 255, 255, 0.12);
  border: 2px solid rgba(255, 255, 255, 0.35);
  color: #fff;
}

.bq-cta-strip .bq-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
}

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

.bq-btn-block {
  width: 100%;
}

/* —— Footer —— */
.bq-footer {
  background: var(--metal-900);
  color: rgba(255, 255, 255, 0.85);
  padding: 48px 0 24px;
}

.bq-footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  margin-bottom: 28px;
}

@media (min-width: 600px) {
  .bq-footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .bq-footer-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.bq-footer h4 {
  margin: 0 0 12px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--orange-300);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.bq-footer a,
.bq-footer p {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  margin: 0 0 8px;
  display: block;
}

.bq-footer a:hover {
  color: var(--orange-300);
}

.bq-footer-bottom {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.45);
}

/* —— Static / legal inner pages —— */
.bq-page-hero {
  background: linear-gradient(180deg, var(--metal-800) 0%, var(--metal-900) 100%);
  color: #fff;
  padding: clamp(32px, 6vw, 48px) 0;
  text-align: center;
}

.bq-page-hero h1 {
  margin: 0 0 8px;
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
}

.bq-page-hero p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 1rem;
}

.bq-main {
  background: var(--surface);
  padding: clamp(28px, 5vw, 48px) 0 clamp(40px, 6vw, 64px);
}

.bq-main .bq-container {
  max-width: 800px;
}

.bq-main h2 {
  margin: 28px 0 12px;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--metal-900);
}

.bq-main h2:first-child {
  margin-top: 0;
}

.bq-main h3 {
  margin: 20px 0 10px;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--metal-800);
}

.bq-main p,
.bq-main li {
  color: var(--text-muted);
  line-height: 1.65;
}

.bq-main p {
  margin: 0 0 14px;
}

.bq-main ul {
  margin: 8px 0 16px 1.25rem;
  padding: 0;
}

.bq-main li {
  margin-bottom: 6px;
}

.bq-panel {
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(20px, 4vw, 28px);
  margin: 24px 0;
}

.bq-panel-highlight {
  background: var(--surface-warm);
  border-color: rgba(255, 87, 34, 0.2);
}

.bq-panel h2:first-of-type,
.bq-panel h3:first-of-type {
  margin-top: 0;
}

.bq-link {
  color: var(--orange-500);
  font-weight: 600;
  text-decoration: none;
}

.bq-link:hover {
  text-decoration: underline;
  color: var(--orange-400);
}

/* —— Forms (data deletion) —— */
.bq-form-group {
  margin-bottom: 18px;
}

.bq-form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--metal-800);
  margin-bottom: 6px;
}

.bq-form-group input,
.bq-form-group textarea {
  width: 100%;
  max-width: 100%;
  padding: 12px 14px;
  font-size: 1rem;
  font-family: inherit;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--text);
}

.bq-form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.bq-form-group input:focus,
.bq-form-group textarea:focus {
  outline: 2px solid rgba(255, 87, 34, 0.35);
  outline-offset: 0;
  border-color: var(--orange-300);
}

.bq-checkbox {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 20px 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.bq-checkbox input {
  width: auto;
  margin-top: 4px;
}

.bq-alert {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  font-size: 0.9375rem;
}

.bq-alert-success {
  background: var(--success-bg);
  color: #0f766e;
  border: 1px solid var(--success);
}

.bq-alert-error {
  background: var(--error-bg);
  color: #991b1b;
  border: 1px solid var(--error);
}

.bq-warning {
  background: var(--warning-bg);
  border: 2px solid var(--warning-border);
  border-radius: var(--radius);
  padding: 20px;
  margin: 24px 0;
}

.bq-main .bq-warning h2 {
  margin: 0 0 10px;
  color: var(--warning-text);
  font-size: 1.1rem;
}

.bq-main .bq-warning p {
  margin: 0;
  color: #78350f;
}

.bq-meta-muted {
  color: var(--text-soft);
  font-size: 0.875rem;
  text-align: center;
}

.bq-section-divider {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 28px 0;
}
