/* Matches /tools/ hub + main Vendora marketing site (dark shell, glass cards, text nav). */
body.vendora-tool {
  color-scheme: dark;
  --bg: #081324;
  --bg-soft: #0b1a30;
  --panel: rgba(12, 27, 49, 0.92);
  --panel-strong: rgba(14, 32, 56, 0.96);
  --text: #f4f7f6;
  --muted: #9fb1c9;
  --line: rgba(255, 255, 255, 0.09);
  --brand: #00d084;
  --brand-dark: #00b370;
  --blue-accent: #5b8cff;
  --shadow: 0 30px 70px rgba(0, 0, 0, 0.28);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --surface-inset: rgba(255, 255, 255, 0.04);
  --surface-chip: rgba(255, 255, 255, 0.06);
  --input-bg: rgba(255, 255, 255, 0.04);
  --input-border: rgba(255, 255, 255, 0.1);
  --paper: rgba(12, 27, 49, 0.96);
  --paper-ink: #f4f7f6;
  --paper-muted: #9fb1c9;
  --paper-line: rgba(255, 255, 255, 0.12);
  background:
    radial-gradient(circle at 10% 10%, rgba(0, 208, 132, 0.16), transparent 25%),
    radial-gradient(circle at 90% 20%, rgba(59, 130, 246, 0.18), transparent 28%),
    linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 100%);
  color: var(--text);
  overflow-x: hidden;
}

body.vendora-tool .page-shell {
  width: min(1180px, calc(100% - 32px));
  max-width: 100%;
  min-width: 0;
  padding: 20px 0 56px;
  box-sizing: border-box;
}

body.vendora-tool .card:not(.site-nav),
body.vendora-tool .cta {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.02)),
    var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

body.vendora-tool .site-nav.card,
body.vendora-tool footer.site-nav {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.02)),
    var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

body.vendora-tool .hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.02)),
    var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 36px;
}

body.vendora-tool .hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -45% auto;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: rgba(0, 208, 132, 0.14);
  filter: blur(80px);
  pointer-events: none;
}

body.vendora-tool .eyebrow,
body.vendora-tool .hero-point-highlight,
body.vendora-tool .hero-tag-highlight {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--brand);
}

body.vendora-tool .eyebrow {
  padding: 10px 14px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

body.vendora-tool .hero h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(2.1rem, 5vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

body.vendora-tool .hero-copy {
  max-width: 820px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

body.vendora-tool .hero-points,
body.vendora-tool .hero-tags,
body.vendora-tool .cta-list {
  gap: 12px;
  margin-top: 22px;
}

body.vendora-tool .hero-point,
body.vendora-tool .hero-tag,
body.vendora-tool .cta-list li {
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: #d7e0ec;
  font-size: 0.9rem;
}

body.vendora-tool .input-card,
body.vendora-tool .results-card,
body.vendora-tool .preview-card,
body.vendora-tool .bulk-card,
body.vendora-tool .faq,
body.vendora-tool .cta {
  padding: 24px;
}

body.vendora-tool .section-title {
  font-size: 1.32rem;
  letter-spacing: -0.02em;
}

body.vendora-tool .section-copy,
body.vendora-tool .faq p,
body.vendora-tool .faq li,
body.vendora-tool .summary-note,
body.vendora-tool .status-text,
body.vendora-tool .helper-note,
body.vendora-tool .input-hint {
  color: var(--muted);
  line-height: 1.7;
  overflow-wrap: anywhere;
}

body.vendora-tool .site-nav {
  padding: 18px 22px;
}

/* Tool page header: brand + nav (footer.site-nav has no brand link) */
body.vendora-tool header.site-nav {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
}

body.vendora-tool .site-nav-brand {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
  line-height: 1.2;
  border-bottom: none;
  padding-bottom: 0;
}

body.vendora-tool .site-nav-brand:hover {
  color: var(--brand);
}

body.vendora-tool .site-nav .nav-sep {
  display: none;
}

body.vendora-tool .site-nav .section-copy {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin: 0;
  line-height: 1.4;
  min-width: 0;
  /* Hide raw "|" text nodes between links; restore size on anchors */
  font-size: 0;
}

/* Same rhythm as /tools/ index: muted text links, not pill buttons */
body.vendora-tool .site-nav .section-copy a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 6px 4px;
  border: none;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
}

body.vendora-tool .site-nav .section-copy a:hover {
  color: var(--text);
  background: transparent;
}

@media (min-width: 721px) {
  body.vendora-tool header.site-nav {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px 20px;
  }

  body.vendora-tool header.site-nav .site-nav-brand {
    align-self: center;
  }

  body.vendora-tool header.site-nav nav {
    flex: 1 1 14rem;
    min-width: 0;
  }

  body.vendora-tool header.site-nav .section-copy {
    justify-content: flex-end;
  }
}

body.vendora-tool label,
body.vendora-tool .field-label,
body.vendora-tool .group-title {
  color: #e8eef6;
}

body.vendora-tool input,
body.vendora-tool select,
body.vendora-tool textarea,
body.vendora-tool .readonly-output,
body.vendora-tool .line-total-box,
body.vendora-tool .custom-input,
body.vendora-tool .custom-select {
  background: var(--input-bg);
  color: var(--text);
  border: 1px solid var(--input-border);
  min-height: 50px;
}

body.vendora-tool textarea {
  min-height: 100px;
}

body.vendora-tool input::placeholder,
body.vendora-tool textarea::placeholder {
  color: #7f93ad;
}

body.vendora-tool input:focus,
body.vendora-tool select:focus,
body.vendora-tool textarea:focus,
body.vendora-tool .custom-input:focus,
body.vendora-tool .custom-select:focus {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(0, 208, 132, 0.55);
  box-shadow: 0 0 0 4px rgba(0, 208, 132, 0.15);
  outline: none;
}

body.vendora-tool select,
body.vendora-tool .custom-select {
  appearance: auto;
  -webkit-appearance: menulist;
  -moz-appearance: menulist;
}

body.vendora-tool .select-wrap::after {
  display: none;
}

body.vendora-tool .field-grid,
body.vendora-tool .result-grid,
body.vendora-tool .preview-stats,
body.vendora-tool .faq-grid {
  gap: 14px;
}

body.vendora-tool .result-grid .metric-card,
body.vendora-tool .preview-stats .metric-card,
body.vendora-tool .faq-item,
body.vendora-tool .metric-card,
body.vendora-tool .meta-block,
body.vendora-tool .field-section,
body.vendora-tool .form-group,
body.vendora-tool .tool-section-header,
body.vendora-tool .advanced-panel,
body.vendora-tool .status-banner {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

body.vendora-tool .status-banner {
  background:
    radial-gradient(circle at top right, rgba(0, 208, 132, 0.2), transparent 42%),
    rgba(255, 255, 255, 0.04);
  border-color: rgba(0, 208, 132, 0.35);
}

body.vendora-tool .status-label {
  background: rgba(0, 208, 132, 0.15);
  color: var(--brand);
}

body.vendora-tool .btn {
  min-height: 48px;
  padding: 0 16px;
  border-radius: 14px;
  font-size: 0.95rem;
  font-weight: 700;
}

body.vendora-tool .btn-primary {
  background: var(--brand);
  color: #081324;
  box-shadow: 0 14px 32px rgba(0, 208, 132, 0.28);
}

body.vendora-tool .btn-secondary {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  box-shadow: none;
}

body.vendora-tool .btn-ghost {
  border: 1px solid rgba(0, 208, 132, 0.35);
  background: rgba(0, 208, 132, 0.1);
  color: var(--brand);
}

body.vendora-tool .page-shell .card:not(.site-nav) a:not(.btn),
body.vendora-tool .page-shell .cta a:not(.btn) {
  color: var(--brand);
  text-decoration: none;
}

body.vendora-tool .page-shell .card:not(.site-nav) a:not(.btn):hover,
body.vendora-tool .page-shell .cta a:not(.btn):hover {
  color: var(--brand-dark);
}

body.vendora-tool .tool-layout,
body.vendora-tool .calculator-shell {
  gap: 24px;
  align-items: start;
}

/*
 * Mobile overflow guard (same idea as work-hours shift tables): CSS Grid items
 * default to min-width:auto, so wide children (tables, long flex rows) inflate
 * the column past the viewport. min-width:0 + max-width:100% lets tracks shrink.
 */
body.vendora-tool .calculator-shell,
body.vendora-tool .tool-layout {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

body.vendora-tool .calculator-shell > .input-card,
body.vendora-tool .calculator-shell > .results-card,
body.vendora-tool .tool-layout > .input-card,
body.vendora-tool .tool-layout > .results-card,
body.vendora-tool .tool-layout > .preview-card,
body.vendora-tool .tool-layout > .bulk-card {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

body.vendora-tool .stack {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

body.vendora-tool .stack > .input-card,
body.vendora-tool .stack > .results-card,
body.vendora-tool .stack > .faq,
body.vendora-tool .stack > .card {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

body.vendora-tool .page-shell > .compare-card {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

body.vendora-tool .field-grid > *,
body.vendora-tool .result-grid > *,
body.vendora-tool .preview-stats > *,
body.vendora-tool .faq-grid > * {
  min-width: 0;
}

body.vendora-tool .results-card,
body.vendora-tool .preview-card {
  position: sticky;
  top: 20px;
}

@media (max-width: 1020px) {
  body.vendora-tool .tool-layout,
  body.vendora-tool .calculator-shell {
    grid-template-columns: 1fr !important;
  }

  body.vendora-tool .results-card,
  body.vendora-tool .preview-card {
    position: static;
    order: -1;
  }
}

@media (max-width: 720px) {
  body.vendora-tool .page-shell {
    width: min(100% - 12px, 1180px);
    max-width: calc(100% - 12px);
    padding: 14px 0 28px;
    padding-bottom: max(28px, env(safe-area-inset-bottom, 0px));
  }

  body.vendora-tool .hero,
  body.vendora-tool .input-card,
  body.vendora-tool .results-card,
  body.vendora-tool .preview-card,
  body.vendora-tool .bulk-card,
  body.vendora-tool .faq,
  body.vendora-tool .cta,
  body.vendora-tool .site-nav {
    padding: 18px 16px;
    border-radius: 18px;
  }

  body.vendora-tool .hero h1 {
    font-size: 1.72rem;
    line-height: 1.08;
  }

  body.vendora-tool .hero-copy,
  body.vendora-tool .section-copy,
  body.vendora-tool .faq p,
  body.vendora-tool .faq li,
  body.vendora-tool .summary-note,
  body.vendora-tool .status-text,
  body.vendora-tool .helper-note,
  body.vendora-tool .input-hint {
    font-size: 0.9rem;
    line-height: 1.55;
  }

  body.vendora-tool .hero-point,
  body.vendora-tool .hero-tag,
  body.vendora-tool .cta-list li,
  body.vendora-tool .eyebrow {
    padding: 8px 10px;
    font-size: 0.76rem;
  }

  body.vendora-tool .field-grid,
  body.vendora-tool .result-grid,
  body.vendora-tool .preview-stats,
  body.vendora-tool .actions,
  body.vendora-tool .faq-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  body.vendora-tool .field-wide {
    grid-column: 1 / -1;
  }

  body.vendora-tool .btn {
    width: 100%;
    min-height: 46px;
    padding: 0 12px;
    font-size: 0.88rem;
  }

  body.vendora-tool .site-nav {
    padding: 12px 14px;
  }

  body.vendora-tool header.site-nav {
    gap: 12px;
  }

  body.vendora-tool .site-nav-brand {
    font-size: 0.92rem;
  }

  body.vendora-tool .site-nav .section-copy {
    flex-wrap: wrap;
    gap: 4px 14px;
    overflow-x: visible;
    overflow-y: visible;
    font-size: 0;
  }

  body.vendora-tool .site-nav .section-copy a {
    flex: 0 1 auto;
    min-height: 44px;
    padding: 8px 2px;
    font-size: 0.88rem;
    white-space: normal;
    max-width: 100%;
    text-align: left;
    justify-content: flex-start;
  }

  body.vendora-tool .sticky-cta {
    display: none;
  }

  body.vendora-tool .whatsapp-support-fab {
    left: 10px;
    bottom: max(10px, env(safe-area-inset-bottom, 10px));
    padding: 12px;
  }

  body.vendora-tool .whatsapp-support-fab span {
    display: none;
  }
}

@media (max-width: 360px) {
  body.vendora-tool .page-shell {
    width: calc(100% - 8px);
    max-width: calc(100% - 8px);
    padding: 10px 0 24px;
    padding-bottom: max(24px, env(safe-area-inset-bottom, 0px));
  }

  body.vendora-tool .hero,
  body.vendora-tool .input-card,
  body.vendora-tool .results-card,
  body.vendora-tool .preview-card,
  body.vendora-tool .bulk-card,
  body.vendora-tool .faq,
  body.vendora-tool .cta,
  body.vendora-tool .site-nav {
    padding: 14px 12px;
    border-radius: 16px;
  }

  body.vendora-tool .hero h1 {
    font-size: 1.42rem;
    line-height: 1.12;
  }

  body.vendora-tool .hero-copy,
  body.vendora-tool .section-copy,
  body.vendora-tool .faq p,
  body.vendora-tool .faq li,
  body.vendora-tool .summary-note,
  body.vendora-tool .status-text,
  body.vendora-tool .helper-note,
  body.vendora-tool .input-hint {
    font-size: 0.88rem;
    line-height: 1.5;
  }

  body.vendora-tool .field-grid,
  body.vendora-tool .result-grid,
  body.vendora-tool .preview-stats,
  body.vendora-tool .faq-grid {
    grid-template-columns: 1fr !important;
  }

  body.vendora-tool .actions {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  body.vendora-tool .btn {
    min-height: 44px;
    font-size: 0.86rem;
  }

  body.vendora-tool .site-nav .section-copy {
    gap: 2px 10px;
  }

  body.vendora-tool .site-nav .section-copy a {
    min-height: 42px;
    padding: 6px 2px;
    font-size: 0.82rem;
  }
}

@media (max-width: 560px) {
  body.vendora-tool .table-wrap {
    min-width: 0;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}
