/*
 * TakeoffBOT brand layer — 2026 Brand Guideline.
 *
 * Loaded last on every page, after styles.css (and hero-animation.css), so it
 * can re-skin the Webflow export without rewriting it. styles.css leans on
 * !important heavily, so most rules here use !important too, and a few are
 * prefixed with `html body` purely to out-rank existing selectors.
 *
 * Palette (guide p.12)
 *   Deep Purple  #291740   foundation: nav, hero, dark bands, footer
 *   Bright Purple #4A2973  primary accent on light backgrounds
 *   Signal Yellow #EDFF3D  calls to action and highlights on purple
 *   Graphite     #292630   body text
 *   White        #FFFFFF
 *   Mark-up Yellow #D7D109 and Drafting Lilac #CCC2DE (secondary)
 * Type (guide p.13): Halyard Display, Book -> Black. Halyard is licensed
 * through Adobe Fonts; until a kit is added, Libre Franklin stands in.
 */

:root {
  --tb-deep: #291740;
  --tb-deep-2: #1f1131; /* a step darker, for depth inside Deep Purple areas */
  --tb-deep-3: #33204f; /* a step lighter: cards on Deep Purple */
  --tb-bright: #4a2973;
  --tb-bright-2: #5d3790;
  --tb-signal: #edff3d;
  --tb-signal-2: #e1f43a;
  --tb-markup: #d7d109;
  --tb-lilac: #ccc2de;
  --tb-lilac-strong: #bf99c9; /* the lilac as drawn in the logo artwork */
  --tb-graphite: #292630;
  --tb-ink-2: #57515f;
  --tb-ink-3: #77717f;
  --tb-paper: #f4f3f5; /* light panel colour used throughout the guide */
  --tb-tint: #efebf5;
  --tb-line: #e4dfeb;
  --tb-line-2: #d6cfe1;
  --tb-on-dark: rgba(255, 255, 255, 0.78);
  --tb-on-dark-2: rgba(255, 255, 255, 0.6);
  --tb-line-dark: rgba(204, 194, 222, 0.16);
  --tb-radius: 14px;
  --tb-radius-s: 10px;
  --tb-shadow-1: 0 1px 2px rgba(41, 23, 64, 0.06), 0 4px 14px -6px rgba(41, 23, 64, 0.12);
  --tb-shadow-2: 0 2px 4px rgba(41, 23, 64, 0.05), 0 22px 48px -22px rgba(41, 23, 64, 0.35);
  --tb-font: "halyard-display", "Halyard Display", "Libre Franklin", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Re-point the tokens styles.css already uses */
  --font-sans: var(--tb-font);
  --_typography---font-family--body: var(--tb-font);
  --_typography---font-family--heading: var(--tb-font);
  --brand-primary: var(--tb-bright);
  --brand-primary-dark: var(--tb-deep);
  --brand-primary-light: #6b47a0;
  --brand-accent: var(--tb-lilac-strong);
  --color-off-white: #fbfafc;
  --color-off-black: var(--tb-deep);
  --color-off-black-soft: var(--tb-deep-3);
  --text-primary: var(--tb-graphite);
  --text-secondary: var(--tb-ink-2);
  --text-tertiary: var(--tb-ink-3);
  --text-muted: #a09aaa;
  --surface-primary: #fff;
  --surface-secondary: var(--tb-paper);
  --surface-tertiary: var(--tb-tint);
  --surface-elevated: #fff;
  --border-light: rgba(41, 23, 64, 0.08);
  --border-medium: rgba(41, 23, 64, 0.14);
  --shadow-sm: 0 1px 2px rgba(41, 23, 64, 0.05);
  --shadow-md: 0 4px 12px rgba(41, 23, 64, 0.08);
  --shadow-lg: 0 12px 40px rgba(41, 23, 64, 0.1);
  --shadow-xl: 0 24px 60px rgba(41, 23, 64, 0.14);
  --main--yellow: var(--tb-signal);
  --primary: var(--tb-bright); /* referenced by styles.css, never defined */
  --neutral-1: var(--tb-graphite);

  /* Dark theme is Deep Purple, not neutral black */
  --dark-bg-primary: #170d24;
  --dark-bg-secondary: #1f1230;
  --dark-bg-tertiary: #2a1842;
  --dark-bg-elevated: #301d4b;
  --dark-text-primary: #ffffff;
  --dark-text-secondary: rgba(255, 255, 255, 0.8);
  --dark-text-tertiary: rgba(255, 255, 255, 0.62);
  --dark-border: rgba(204, 194, 222, 0.14);
  --dark-accent: var(--tb-signal);

  /* Button colours, re-pointed per context below */
  --btn-bg: var(--tb-bright);
  --btn-bg-hover: var(--tb-deep);
  --btn-fg: #fff;
  --btn-icon-bg: var(--tb-signal);
  --btn-icon-fg: var(--tb-deep);
  --btn-shadow: 0 6px 18px -6px rgba(74, 41, 115, 0.55);
}

/* Contexts that sit on purple: Signal Yellow buttons */
.nav-wrap,
.section.hero,
.section.demo,
.section.solution,
.section.process-flow,
.section.bottom-cta,
.section.footer,
.tb-on-dark,
html[data-theme="dark"] body {
  --btn-bg: var(--tb-signal);
  --btn-bg-hover: #f6ff8a;
  --btn-fg: var(--tb-deep);
  --btn-icon-bg: var(--tb-deep);
  --btn-icon-fg: var(--tb-signal);
  --btn-shadow: 0 8px 22px -8px rgba(237, 255, 61, 0.45);
}

/* ---- Base type ----------------------------------------------------------- */
html body {
  font-family: var(--tb-font) !important;
  letter-spacing: 0 !important; /* the old theme tracked everything at -0.03em */
  color: var(--tb-graphite) !important;
  background-color: #fff !important;
  font-feature-settings: "ss01" 0;
}
::selection {
  background: var(--tb-signal);
  color: var(--tb-deep);
}
html body :is(h1, h2, h3, h4, h5, h6, .display-h1, .display-h2, .display-h3, .display-h4, .display-h5, .display-h6) {
  font-family: var(--tb-font) !important;
  color: var(--tb-deep) !important;
  letter-spacing: -0.015em !important;
}
/* Display headings are set in the Black weight, as in the guide */
html body :is(h1, h2, .display-h1, .display-h2) {
  font-weight: 900 !important;
  letter-spacing: -0.02em !important;
}
html body :is(h3, .display-h3, .display-h4) {
  font-weight: 800 !important;
}
html body :is(h4, h5, h6, .display-h5, .display-h6) {
  font-weight: 700 !important;
}
html body .display-h1 {
  font-size: clamp(2.5rem, 5.2vw, 4.25rem) !important;
  line-height: 1.04 !important;
}
html body .display-h2 {
  font-size: clamp(2rem, 3.6vw, 3rem) !important;
  line-height: 1.08 !important;
}
html body :is(p, .paragraph, .large-paragraph, .small-paragraph, li) {
  font-family: var(--tb-font) !important;
}
html body :is(p, .paragraph, .small-paragraph) {
  color: var(--tb-ink-2) !important;
}
html body .large-paragraph {
  color: var(--tb-ink-2) !important;
  font-weight: 400 !important;
  line-height: 1.6 !important;
}
html body .t---neutral-10 {
  color: var(--tb-ink-3) !important;
}
html body a:not([class]) {
  color: var(--tb-bright);
  text-decoration-color: rgba(74, 41, 115, 0.35);
  text-underline-offset: 3px;
}
html body a:not([class]):hover {
  color: var(--tb-deep);
  background: linear-gradient(transparent 62%, rgba(237, 255, 61, 0.75) 62%);
}

/* Highlighter: the guide's nod to the marker pens estimators use */
.tb-hl {
  color: var(--tb-signal) !important;
}
.tb-mark {
  background: linear-gradient(transparent 58%, var(--tb-signal) 58%, var(--tb-signal) 92%, transparent 92%);
  padding: 0 0.08em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

:focus-visible {
  outline-color: var(--tb-bright);
}

/* ---- Navigation: always on Deep Purple, so the full-colour logo can live there */
html body .nav-wrap {
  background: rgba(41, 23, 64, 0.94) !important;
  backdrop-filter: blur(16px) saturate(140%) !important;
  -webkit-backdrop-filter: blur(16px) saturate(140%) !important;
  border-bottom: 1px solid var(--tb-line-dark) !important;
  box-shadow: none !important;
}
html body .navbar {
  background: transparent !important;
  box-shadow: none !important;
  /* span the content width (logo left, CTA right) instead of a centred pill */
  width: min(1200px, calc(100% - 48px)) !important;
  flex: none !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}
html body .nav-wrap .button-text {
  white-space: nowrap;
}
@media (max-width: 1180px) {
  html body .nav-wrap .nav-menu .navbar-link {
    padding-left: 0.375rem !important;
    padding-right: 0.375rem !important;
  }
  html body .nav-wrap .nav-menu .nav {
    font-size: 0.875rem !important;
  }
}
/* Hamburger from tablet down: the full link row no longer fits beside the logo + CTA */
@media (max-width: 1023px) {
  html body .nav-menu {
    display: none !important;
  }
  html body .nav-menu-button-wrap {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  html body .nav-menu-button,
  html body .hamburger-icon {
    display: flex !important;
    visibility: visible !important;
  }
  html body .nav-wrapper .nav-button {
    margin-left: auto !important;
  }
}
html body .nav-logo {
  width: auto !important;
  height: 32px !important;
  max-width: none !important;
}
html body .brand {
  min-width: 0 !important;
}
html body .nav-wrap .nav,
html body .nav-wrap .navbar-link .nav {
  color: var(--tb-on-dark) !important;
  font-weight: 500 !important;
  font-size: 0.9375rem !important;
}
html body .nav-wrap .navbar-link:hover .nav,
html body .nav-wrap .navbar-link:focus-visible .nav,
html body .nav-wrap .navbar-link.w--current .nav {
  color: var(--tb-signal) !important;
}
html body .nav-menu .navbar-link:not(:last-child)::after {
  background-color: var(--tb-line-dark) !important;
  opacity: 1 !important;
}
html body .hamburger-icon span {
  background-color: #fff !important;
}
html body .nav-dropdown-menu {
  background-color: var(--tb-deep) !important;
  border: 1px solid var(--tb-line-dark) !important;
  box-shadow: 0 24px 48px -16px rgba(0, 0, 0, 0.5) !important;
}
html body .nav-dropdown-menu .nav {
  color: #fff !important;
}

/* ---- Buttons ------------------------------------------------------------- */
/* [class] repeats lift these above the old dark-theme variant rules (0,3,1) */
html body .primary-button[class][class][class] {
  background: var(--btn-bg) !important;
  color: var(--btn-fg) !important;
  border-radius: var(--tb-radius-s) !important;
  font-family: var(--tb-font) !important;
  font-weight: 700 !important;
  letter-spacing: 0.005em;
  box-shadow: var(--btn-shadow) !important;
  border: 0 !important;
}
html body .primary-button[class][class][class]:hover,
html body .primary-button[class][class][class]:focus-visible {
  background: var(--btn-bg-hover) !important;
  transform: translateY(-1px) !important;
  box-shadow: var(--btn-shadow) !important;
}
html body .primary-button[class][class][class] :is(p, span, .nav, .button-text, .paragraph, .small-paragraph) {
  color: var(--btn-fg) !important;
  font-weight: 700 !important;
}
html body .primary-button[class][class][class] .button-icon-wrap {
  background-color: var(--btn-icon-bg) !important;
  color: var(--btn-icon-fg) !important;
}
html body .primary-button[class][class][class] .button-icon-wrap .icon {
  color: var(--btn-icon-fg) !important;
}
html body .primary-button:focus-visible {
  outline: 3px solid var(--tb-signal) !important;
  outline-offset: 3px;
}
html body .outline-button,
html body .outline-button[class] {
  border: 1.5px solid var(--tb-line-2) !important;
  border-radius: var(--tb-radius-s) !important;
  color: var(--tb-deep) !important;
  font-weight: 700 !important;
}
html body .outline-button:hover {
  border-color: var(--tb-bright) !important;
  background: var(--tb-tint) !important;
}
html body .outline-button[class] .button-text {
  color: inherit !important;
  font-weight: 700 !important;
}
html body .section.bottom-cta .outline-button[class] {
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.55) !important;
  background: transparent !important;
}
html body .section.bottom-cta .outline-button[class]:hover {
  background: rgba(255, 255, 255, 0.12) !important;
  border-color: var(--tb-signal) !important;
}

/* ---- Hero: Deep Purple, with the guide's drafting grid ------------------- */
html body .section.hero,
html body .section.about-hero {
  background-color: var(--tb-deep) !important;
  background-image:
    radial-gradient(120% 70% at 50% 0%, rgba(74, 41, 115, 0.55), transparent 70%),
    linear-gradient(rgba(204, 194, 222, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(204, 194, 222, 0.07) 1px, transparent 1px) !important;
  background-size: 100% 100%, 40px 40px, 40px 40px !important;
  background-position: 0 0, center -1px, center -1px !important;
  color: #fff;
}
html body .section.hero::before {
  content: none !important;
}
html body :is(.section.hero, .section.about-hero) :is(h1, h2, h3, .display-h1, .display-h2, .display-h3) {
  color: #fff !important;
}
html body .section.hero .hero-headline .display-h1::after {
  content: none !important;
}
html body :is(.section.hero, .section.about-hero) :is(p, .paragraph, .large-paragraph, .small-paragraph) {
  color: var(--tb-on-dark) !important;
}
html body :is(.section.hero, .section.about-hero) .t---neutral-10 {
  color: var(--tb-on-dark) !important;
}
/* Simple page heroes (contact, FAQ, 404): centred, with room under the copy */
html body .section.hero.hero--simple:not(.hero--anim):not(.hero--focal):not(.article-hero) {
  padding-bottom: 72px !important;
  min-height: 0 !important;
}
html body .section.hero.hero--simple:not(.hero--anim):not(.hero--focal):not(.article-hero) :is(h1, p) {
  text-align: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
@media (max-width: 767px) {
  html body .section.hero.hero--simple:not(.hero--anim):not(.hero--focal):not(.article-hero) {
    padding: 128px 0 56px !important;
  }
}
html body .section.about-hero {
  padding-bottom: 72px !important;
}
html body .hero-video-thumb {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid var(--tb-line-dark) !important;
  box-shadow: none !important;
  color: #fff !important;
}
html body .hero-video-thumb:hover,
html body .hero-video-thumb:focus-visible {
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: rgba(237, 255, 61, 0.5) !important;
}
html body .hero-video-thumb__media {
  border-color: rgba(255, 255, 255, 0.14) !important;
}
html body .hero-video-thumb__label {
  color: #fff !important;
  font-weight: 600;
}

/* ---- Testimonials + logos ------------------------------------------------ */
html body .section.trust {
  background: #fff !important;
}
.testimonial {
  border-radius: var(--tb-radius) !important;
  border: 1px solid var(--tb-line) !important;
  box-shadow: var(--tb-shadow-1) !important;
}
.testimonial__mark {
  color: var(--tb-lilac-strong) !important;
}
html body .testimonial__headline {
  color: var(--tb-deep) !important;
  font-weight: 800 !important;
}
.testimonial__avatar:not(img) {
  background: var(--tb-deep) !important;
  color: var(--tb-signal) !important;
}

/* ---- Problem ------------------------------------------------------------- */
html body .section.problem {
  background: var(--tb-paper) !important;
}
html body .pain-point-card {
  background: #fff !important;
  border: 1px solid var(--tb-line) !important;
  border-radius: var(--tb-radius) !important;
  box-shadow: var(--tb-shadow-1) !important;
}
html body .pain-icon-wrapper {
  background: var(--tb-tint) !important;
  color: var(--tb-bright) !important;
  border: 0 !important;
}
html body .pain-icon-wrapper svg {
  color: var(--tb-bright) !important;
  stroke: currentColor;
}
html body .impact-label {
  color: var(--tb-bright) !important;
  letter-spacing: 0.08em !important;
}
html body .impact-bar {
  background: var(--tb-tint) !important;
}
html body .impact-bar::after,
html body .impact-bar > * {
  background: var(--tb-markup) !important;
}
html body .problem-differentiator {
  background: var(--tb-deep) !important;
  border: 0 !important;
  border-radius: var(--tb-radius) !important;
  box-shadow: var(--tb-shadow-2) !important;
}
html body .problem-differentiator .display-h3 {
  color: #fff !important;
}
html body .problem-differentiator .paragraph {
  color: var(--tb-on-dark) !important;
}
html body .problem-differentiator__icon {
  background: transparent !important;
  border: 3px solid var(--tb-signal) !important;
  border-radius: 50% !important;
  color: var(--tb-signal) !important;
}
html body .stat-card {
  background: #fff !important;
  border: 1px solid var(--tb-line) !important;
  border-radius: var(--tb-radius) !important;
  box-shadow: var(--tb-shadow-1) !important;
}
html body .stat-number {
  color: var(--tb-deep) !important;
  -webkit-text-fill-color: var(--tb-deep) !important;
  background: linear-gradient(transparent 60%, var(--tb-signal) 60%, var(--tb-signal) 90%, transparent 90%) !important;
  -webkit-background-clip: border-box !important;
  background-clip: border-box !important;
  display: inline-block;
  padding: 0 0.12em;
  font-weight: 900 !important;
}
html body .stat-label {
  color: var(--tb-ink-2) !important;
  font-weight: 600 !important;
}

/* ---- Purple bands: demo + how it works ----------------------------------- */
html body .section.demo,
html body .section.solution,
html body .section.process-flow {
  background: var(--tb-deep) !important;
}
html body .section.demo {
  background-image: radial-gradient(90% 120% at 100% 0%, rgba(74, 41, 115, 0.6), transparent 60%) !important;
  background-color: var(--tb-deep) !important;
}
html body :is(.section.demo, .section.solution, .section.process-flow) :is(h2, h3, .display-h2, .display-h3, .display-h5, .display-h6) {
  color: #fff !important;
}
html body .workflow-step-card {
  background: var(--tb-deep-3) !important;
  border: 1px solid var(--tb-line-dark) !important;
  border-radius: var(--tb-radius) !important;
}
html body .workflow-step-card::before {
  background: var(--tb-signal) !important;
}
html body .workflow-step-badge {
  background: var(--tb-signal) !important;
  color: var(--tb-deep) !important;
  border: 0 !important;
  font-weight: 800 !important;
}
html body .workflow-step-icon {
  background: transparent !important;
  border: 1.5px solid var(--tb-lilac-strong);
  color: var(--tb-lilac) !important;
}
html body .workflow-step-number-large {
  color: transparent !important;
  -webkit-text-stroke: 1px rgba(204, 194, 222, 0.22);
}

/* ---- Pricing ------------------------------------------------------------- */
html body .section.pricing-hero {
  background: #fff !important;
}
html body .pricing-card-new {
  border: 1px solid var(--tb-line) !important;
  border-radius: 18px !important;
  box-shadow: var(--tb-shadow-1) !important;
}
html body .pricing-card-new--featured {
  background: var(--tb-deep) !important;
  border: 0 !important;
  box-shadow: var(--tb-shadow-2) !important;
  --btn-bg: var(--tb-signal);
  --btn-bg-hover: #f6ff8a;
  --btn-fg: var(--tb-deep);
  --btn-icon-bg: var(--tb-deep);
  --btn-icon-fg: var(--tb-signal);
  --btn-shadow: none;
}
html body .pricing-card-new--featured :is(h3, .display-h5, .pricing-card-new__amount) {
  color: #fff !important;
}
html body .pricing-card-new--featured :is(p, span, .small-paragraph, .t---neutral-10, .pricing-feature) {
  color: var(--tb-on-dark) !important;
}
html body .pricing-card-new__popular-badge {
  background: var(--tb-signal) !important;
  color: var(--tb-deep) !important;
  border: 0 !important;
  box-shadow: 0 6px 16px -6px rgba(41, 23, 64, 0.5) !important;
}
html body .pricing-card-new__popular-badge * {
  color: var(--tb-deep) !important;
  fill: currentColor;
}
html body .pricing-card-new__amount {
  color: var(--tb-deep) !important;
  font-weight: 900 !important;
}
html body .pricing-feature__check {
  background: var(--tb-tint) !important;
  color: var(--tb-bright) !important;
}
html body .pricing-card-new--featured .pricing-feature__check {
  background: var(--tb-signal) !important;
  color: var(--tb-deep) !important;
}
html body .pricing-card-new--featured .pricing-card-new__amount[class] {
  color: #fff !important;
}
html body .pricing-card-new--featured .pricing-card-new__savings[class] {
  background: transparent !important;
  border: 1px solid rgba(237, 255, 61, 0.5) !important;
  color: var(--tb-signal) !important;
}
html body .pricing-card-new__btn {
  align-items: center !important;
}
@media (max-width: 767px) {
  html body #pricing-hero.section.pricing-hero {
    padding-top: 128px !important;
  }
}

/* ---- FAQ ----------------------------------------------------------------- */
html body .section.homepage-faq {
  background: var(--tb-paper) !important;
}
html body .homepage-faq-item {
  background: #fff !important;
  border: 1px solid var(--tb-line) !important;
  border-radius: var(--tb-radius) !important;
  box-shadow: none !important;
}
html body .homepage-faq-question {
  color: var(--tb-deep) !important;
  font-weight: 800 !important;
}

/* ---- Bottom CTA: Bright Purple with the guide's callout ring -------------- */
html body .section.bottom-cta {
  background: var(--tb-bright) !important;
  border: 0 !important;
  overflow: hidden;
  isolation: isolate;
}
html body .section.bottom-cta::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 520px;
  height: 520px;
  left: -390px; /* only the arc shows, in the page margin */
  top: 50%;
  transform: translateY(-50%);
  border-radius: 50%;
  border: 22px solid var(--tb-signal);
  pointer-events: none;
}
@media (max-width: 1279px) {
  /* narrower margins: keep the ring in the corner so it never crosses the heading */
  html body .section.bottom-cta::before {
    width: 300px;
    height: 300px;
    border-width: 16px;
    left: -210px;
    top: auto;
    bottom: -250px;
    transform: none;
  }
}
html body .section.bottom-cta :is(h2, .display-h2, .display-h3) {
  color: #fff !important;
}
html body .section.bottom-cta :is(p, .paragraph, .large-paragraph, .small-paragraph, .t---neutral-10) {
  color: var(--tb-on-dark) !important;
}
html body .section.bottom-cta :is(p, .large-paragraph) {
  text-align: center !important;
}
html body .section.bottom-cta .container {
  gap: 28px !important;
}

/* ---- Footer -------------------------------------------------------------- */
html body .section.footer {
  background: var(--tb-deep) !important;
  color: #fff !important;
  border: 0 !important;
  border-radius: 0 !important;
}
html body .section.footer .footer-content {
  background: transparent !important;
}
html body .section.footer :is(.nav, .nav.footer) {
  color: var(--tb-on-dark) !important;
}
html body .section.footer .navbar-link:hover .nav {
  color: var(--tb-signal) !important;
}
html body .section.footer :is(.display-h6, h6) {
  color: #fff !important;
}
html body .section.footer :is(p, .paragraph, .small-paragraph, .t---neutral-10) {
  color: var(--tb-on-dark-2) !important;
}
html body .section.footer .nav-header .icon {
  color: var(--tb-lilac-strong) !important;
}
/* Footer as one grid: brand block | Pages | Solutions, then a copyright rule */
html body .section.footer .footer-content {
  display: grid !important;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 2.5rem 3rem !important;
  align-items: start !important;
}
html body .section.footer :is(.footer-info, .footer-contact-copyrights) {
  display: contents !important;
}
html body .section.footer .footer-contact {
  grid-column: 1;
  grid-row: 1;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 1rem !important;
  max-width: 320px;
}
html body .section.footer .footer-info > .footer-nav-block:nth-child(1) {
  grid-column: 2;
  grid-row: 1;
}
html body .section.footer .footer-info > .footer-nav-block:nth-child(2) {
  grid-column: 3;
  grid-row: 1;
}
html body .section.footer .footer-copyright {
  grid-column: 1 / -1;
  padding-top: 1.5rem;
  border-top: 1px solid var(--tb-line-dark);
}
html body .section.footer .nav {
  white-space: normal !important;
}
@media (max-width: 767px) {
  html body .section.footer .footer-content {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 2rem 1.5rem !important;
  }
  html body .section.footer .footer-contact {
    grid-column: 1 / -1;
  }
  html body .section.footer .footer-info > .footer-nav-block:nth-child(1) {
    grid-column: 1;
    grid-row: 2;
  }
  html body .section.footer .footer-info > .footer-nav-block:nth-child(2) {
    grid-column: 2;
    grid-row: 2;
  }
}
html body .footer-logo {
  width: auto !important;
  height: 40px !important;
  max-width: none !important;
}
html body .pricing-hero-content {
  max-width: 860px !important;
}

/* ---- Theme toggle -------------------------------------------------------- */
html body .theme-toggle {
  background: var(--tb-deep) !important;
  border: 1px solid var(--tb-line-dark) !important;
  color: var(--tb-signal) !important;
  box-shadow: 0 10px 24px -10px rgba(41, 23, 64, 0.6) !important;
}
html body .theme-toggle svg {
  color: var(--tb-signal) !important;
  stroke: currentColor;
}

/* ---- Dark theme ---------------------------------------------------------- */
html[data-theme="dark"] body {
  background-color: var(--dark-bg-primary) !important;
  color: #fff !important;
}
html[data-theme="dark"] body :is(h1, h2, h3, h4, h5, h6, .display-h1, .display-h2, .display-h3, .display-h4, .display-h5, .display-h6) {
  color: #fff !important;
}
html[data-theme="dark"] body :is(p, .paragraph, .large-paragraph, .small-paragraph) {
  color: var(--dark-text-secondary) !important;
}
html[data-theme="dark"] body .t---neutral-10 {
  color: var(--dark-text-tertiary) !important;
}
html[data-theme="dark"] body :is(.section.trust, .section.pricing-hero) {
  background: var(--dark-bg-primary) !important;
}
html[data-theme="dark"] body :is(.section.problem, .section.homepage-faq) {
  background: var(--dark-bg-secondary) !important;
}
html[data-theme="dark"] body .section.hero {
  background-color: var(--tb-deep-2) !important;
}
html[data-theme="dark"] body :is(.testimonial, .pain-point-card, .stat-card, .homepage-faq-item, .pricing-card-new:not(.pricing-card-new--featured)) {
  background: var(--dark-bg-tertiary) !important;
  border-color: var(--dark-border) !important;
  box-shadow: none !important;
}
html[data-theme="dark"] body :is(.testimonial__headline, .homepage-faq-question, .stat-number, .pricing-card-new__amount) {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}
html[data-theme="dark"] body :is(.stat-label) {
  color: var(--dark-text-secondary) !important;
}
html[data-theme="dark"] body :is(.pain-icon-wrapper, .pricing-feature__check) {
  background: rgba(204, 194, 222, 0.12) !important;
  color: var(--tb-lilac) !important;
}
html[data-theme="dark"] body .pain-icon-wrapper svg {
  color: var(--tb-lilac) !important;
}
html[data-theme="dark"] body .impact-label {
  color: var(--tb-lilac) !important;
}
html[data-theme="dark"] body .problem-differentiator {
  background: var(--dark-bg-elevated) !important;
}
html[data-theme="dark"] body .pricing-card-new--featured {
  background: var(--tb-bright) !important;
}
html[data-theme="dark"] body .testimonial__avatar:not(img) {
  background: var(--tb-signal) !important;
  color: var(--tb-deep) !important;
}
html[data-theme="dark"] body a:not([class]) {
  color: var(--tb-signal) !important;
  text-decoration-color: rgba(237, 255, 61, 0.45) !important;
}
html[data-theme="dark"] body a:not([class]):hover {
  color: #fff !important;
  background: linear-gradient(transparent 62%, rgba(237, 255, 61, 0.35) 62%) !important;
}
html[data-theme="dark"] body :is(.section.hero.hero--simple, .section.about-hero) {
  background-color: var(--tb-deep-2) !important;
  background-image:
    linear-gradient(rgba(204, 194, 222, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(204, 194, 222, 0.06) 1px, transparent 1px) !important;
  background-size: 40px 40px !important;
}
html[data-theme="dark"] body .section.footer {
  background: var(--tb-deep-2) !important;
}
html[data-theme="dark"] body .nav-wrap {
  background: rgba(23, 13, 36, 0.92) !important;
}
html[data-theme="dark"] body .navbar {
  background: transparent !important;
  box-shadow: none !important;
}
/* The old theme whitened the (blue) logo in dark mode; the new one is already made for purple */
html[data-theme="dark"] body .brand img,
html[data-theme="dark"] body .footer-logo {
  filter: none !important;
}
html[data-theme="dark"] body :is(.section.demo, .section.solution, .section.process-flow) {
  background: var(--tb-deep-2) !important;
}
html[data-theme="dark"] body .section.bottom-cta {
  background: var(--tb-bright) !important;
}
html[data-theme="dark"] body .stat-number {
  color: var(--tb-signal) !important;
  -webkit-text-fill-color: var(--tb-signal) !important;
  background: none !important;
}
html[data-theme="dark"] body .workflow-step-card {
  background: var(--dark-bg-tertiary) !important;
}
html[data-theme="dark"] body .outline-button {
  border-color: var(--dark-border) !important;
  color: #fff !important;
}

/* ==== Page-level fixes ===================================================== */

/* ---- Forms (contact) ----------------------------------------------------- */
html body :is(input, textarea, select, button) {
  font-family: var(--tb-font) !important;
}
html:not([data-theme="dark"]) body .w-input {
  background: #fff !important;
  border-color: var(--tb-line-2) !important;
}
html body .required {
  color: var(--tb-bright) !important;
}

/* ---- Mailing list signup (contact) --------------------------------------- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.section.mailing-list-section {
  padding-top: 0;
  padding-bottom: 4rem;
}
.mailing-list-card {
  display: grid;
  grid-template-columns: 1fr minmax(0, 1.2fr);
  align-items: center;
  gap: 1rem 3rem;
  padding: 2rem 2.5rem;
  background: var(--tb-tint);
  border: 1px solid var(--tb-line);
  border-radius: 20px;
}
.mailing-list-copy .display-h4 {
  margin: 0 0 0.5rem;
}
.mailing-list-copy .paragraph {
  margin: 0;
}
.mailing-list-form {
  display: flex;
  gap: 0.75rem;
}
.mailing-list-form .w-input {
  flex: 1;
  min-width: 0;
  height: auto;
  margin: 0;
  padding: 0.875rem 1rem;
  font-size: 1rem;
  border: 1.5px solid var(--tb-line-2);
  border-radius: 12px;
  color: var(--text-primary);
}
.mailing-list-form .w-input:focus {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(74, 41, 115, 0.12);
  outline: none;
}
.mailing-list-form button.primary-button {
  flex-shrink: 0;
  border: none;
  cursor: pointer;
}
.mailing-list-form button.primary-button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}
.mailing-list-status {
  grid-column: 2;
  margin: 0;
  font-size: 0.9375rem;
  color: var(--tb-bright);
}
.mailing-list-status:empty {
  display: none;
}
.mailing-list-status.is-error {
  color: #b91c1c;
}
@media screen and (max-width: 767px) {
  .mailing-list-card {
    grid-template-columns: 1fr;
    padding: 1.5rem;
    text-align: center;
  }
  .mailing-list-status {
    grid-column: 1;
  }
}
@media screen and (max-width: 479px) {
  .mailing-list-form {
    flex-direction: column;
  }
  .mailing-list-form button.primary-button {
    justify-content: center;
  }
}
html[data-theme="dark"] .mailing-list-card {
  background: var(--dark-bg-elevated);
  border-color: var(--dark-border);
}
html[data-theme="dark"] .mailing-list-copy .display-h4 {
  color: var(--dark-text-primary);
}
html[data-theme="dark"] .mailing-list-copy .paragraph {
  color: var(--dark-text-secondary);
}
html[data-theme="dark"] .mailing-list-form .w-input {
  background: var(--dark-bg-primary);
  border-color: var(--dark-border);
  color: var(--dark-text-primary);
}
html[data-theme="dark"] .mailing-list-status {
  color: var(--tb-lilac);
}
html[data-theme="dark"] .mailing-list-status.is-error {
  color: #fca5a5;
}

/* ---- Icon tiles: one brand treatment instead of per-card hues ------------ */
html body :is(.contact-card__icon-wrap, .faq-card__icon-wrap, .contact-reason__icon) {
  background: var(--tb-tint) !important;
  color: var(--tb-bright) !important;
  border-color: transparent !important;
}
html body :is(.contact-card__icon-wrap, .faq-card__icon-wrap, .contact-reason__icon) svg {
  color: var(--tb-bright) !important;
}
html[data-theme="dark"] body :is(.contact-card__icon-wrap, .faq-card__icon-wrap, .contact-reason__icon) {
  background: rgba(204, 194, 222, 0.12) !important;
  color: var(--tb-lilac) !important;
}
html[data-theme="dark"] body :is(.contact-card__icon-wrap, .faq-card__icon-wrap, .contact-reason__icon) svg {
  color: var(--tb-lilac) !important;
}
html body .contact-card--featured {
  background: #fff !important;
  border-color: var(--tb-line) !important;
}
html[data-theme="dark"] body .contact-card--featured {
  background: var(--dark-bg-tertiary) !important;
  border-color: var(--dark-border) !important;
}

/* ---- About: team ---------------------------------------------------------- */
html body .team-profile-info {
  background: transparent !important;
}
html body .team-profile-info .large-paragraph {
  color: var(--tb-deep) !important;
  font-weight: 800 !important;
}
html[data-theme="dark"] body .team-profile-info {
  background: var(--dark-bg-tertiary) !important;
  border: 1px solid var(--dark-border);
}
html[data-theme="dark"] body .team-profile-info .large-paragraph {
  color: #fff !important;
}

/* ---- FAQ ------------------------------------------------------------------ */
html body .faq-section-divider__text {
  color: var(--tb-bright) !important;
}
html[data-theme="dark"] body .faq-section-divider__text {
  color: var(--tb-lilac) !important;
}

/* ---- Articles (resources) ------------------------------------------------- */
html body .section.hero.article-hero {
  padding-bottom: 4rem !important;
}
html body .section.hero .article-date {
  color: var(--tb-on-dark-2) !important;
}
html body .section.hero .article-badge {
  background: rgba(237, 255, 61, 0.08) !important;
  border-color: rgba(237, 255, 61, 0.35) !important;
  color: var(--tb-signal) !important;
}
html body .section.hero .article-badge svg {
  color: var(--tb-signal) !important;
}
html body .section.hero .article-disclosure {
  background: rgba(255, 255, 255, 0.05) !important;
  border-color: var(--tb-line-dark) !important;
}
html body .section.hero .article-disclosure svg {
  color: var(--tb-lilac) !important;
}
html body .article-hero .article-header {
  max-width: 940px !important;
}
html body .article-container > .article-section {
  align-self: stretch !important;
  width: 100% !important;
}
html body .article-content .article-section h2:is(.display-h2, .display-h3) {
  font-size: clamp(1.75rem, 2.8vw, 2.25rem) !important;
  font-weight: 900 !important;
  line-height: 1.12 !important;
}
/* AI-level badges: one scale, Deep -> Bright -> tint */
html body :is(.tool-card__badge, .ai-level--high) {
  background: var(--tb-deep) !important;
  color: var(--tb-signal) !important;
  border-color: transparent !important;
}
html body :is(.tool-card__badge--medium, .ai-level--medium) {
  background: var(--tb-bright) !important;
  color: #fff !important;
  border-color: transparent !important;
}
html body :is(.tool-card__badge--low, .ai-level--low) {
  background: var(--tb-tint) !important;
  color: var(--tb-bright) !important;
  border: 1px solid var(--tb-line-2) !important;
}
html[data-theme="dark"] body :is(.tool-card__badge, .ai-level--high) {
  background: var(--tb-signal) !important;
  color: var(--tb-deep) !important;
}
html[data-theme="dark"] body :is(.tool-card__badge--medium, .ai-level--medium) {
  background: var(--tb-bright-2) !important;
  color: #fff !important;
}
html[data-theme="dark"] body :is(.tool-card__badge--low, .ai-level--low) {
  background: rgba(204, 194, 222, 0.14) !important;
  color: var(--tb-lilac) !important;
  border-color: transparent !important;
}
html body .quick-answer-box::before {
  background: var(--tb-bright) !important;
}
html[data-theme="dark"] body .quick-answer-box::before {
  background: var(--tb-signal) !important;
}
html body .quick-answer-box::after {
  content: none !important;
}
html body .tool-card__number {
  background: var(--tb-bright) !important;
}
html body .tip-box {
  background: var(--tb-tint) !important;
  border-color: var(--tb-line-2) !important;
}
html body .tip-box svg {
  color: var(--tb-bright) !important;
}
html body :is(.stack-card__header, .question-number) {
  background: var(--tb-paper) !important;
  border-color: var(--tb-line) !important;
}
html body .question-card:hover {
  border-left-color: var(--tb-deep) !important;
}
html body .tool-card__footer .t---neutral-10 {
  color: var(--tb-ink-2) !important;
}
html[data-theme="dark"] body .tool-card__footer .t---neutral-10 {
  color: var(--dark-text-tertiary) !important;
}
html[data-theme="dark"] body .comparison-table-wrap::before {
  background: linear-gradient(to left, var(--dark-bg-primary), transparent) !important;
}
@media (max-width: 767px) {
  html body .section.hero.article-hero {
    min-height: 0 !important;
    padding-top: 7rem !important;
    padding-bottom: 2.5rem !important;
  }
  html body .article-meta {
    align-items: flex-start !important;
  }
}
@media (max-width: 600px) {
  html body .tool-card__header-left {
    padding-right: 3rem !important;
    box-sizing: border-box;
  }
  html body .tool-card__summary {
    align-items: center !important;
  }
  html body .comparison-table-wrap {
    padding-bottom: 2.75rem !important;
  }
  html body .comparison-table-wrap::after {
    background: var(--tb-bright) !important;
  }
}

/* ---- 404 / 401 ------------------------------------------------------------ */
html body .section.hero.tb-utility {
  margin-bottom: 0 !important;
  min-height: 72vh !important;
  display: flex !important;
  align-items: center;
  padding-top: 140px !important;
}
html body .tb-utility .container {
  align-items: center !important;
  gap: 1.25rem;
}
html body .tb-utility__code {
  display: grid !important;
  place-items: center;
  width: 128px;
  height: 128px;
  margin: 0 auto 0.5rem !important;
  border: 8px solid var(--tb-signal);
  border-radius: 50%;
  color: #fff !important;
  font-size: 2.25rem !important;
  font-weight: 900 !important;
  letter-spacing: -0.02em !important;
}
html body .tb-utility .large-paragraph {
  max-width: 560px;
}

/* ---- Solution pages (kitchen, joinery, millwork) and FR home ------------- */
html body .section.hero {
  margin-bottom: 0 !important;
}
html body .section.hero.hero--focal:not(.hero--anim) {
  padding-bottom: clamp(3.5rem, 6vw, 5.5rem) !important;
}
@media (min-width: 768px) {
  /* don't stretch the hero CTA across the column */
  html body .section.hero:not(.hero--anim) .hero-cta-primary {
    align-items: flex-start !important;
  }
}
html body .section.hero .hero-badge {
  width: fit-content !important;
  background: rgba(237, 255, 61, 0.08) !important;
  border: 1px solid rgba(237, 255, 61, 0.35) !important;
  color: var(--tb-signal) !important;
}
html body .section.hero .hero-badge :is(span, svg, p, div) {
  color: var(--tb-signal) !important;
}
html body .section.hero .hero-secondary-actions .text-link {
  color: #fff !important;
  font-weight: 600 !important;
}
html body .section.hero .hero-secondary-actions .text-link svg {
  color: var(--tb-signal) !important;
}
html body .section.hero .outline-button[class] {
  border-color: rgba(204, 194, 222, 0.45) !important;
  background: transparent !important;
  color: #fff !important;
}
html body .section.hero .outline-button[class] :is(p, .button-text) {
  color: #fff !important;
}
html body .section.hero .outline-button[class]:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: var(--tb-signal) !important;
}
html body .video-play-button {
  background: var(--tb-signal) !important;
  color: var(--tb-deep) !important;
  border: 0 !important;
  box-shadow: 0 10px 30px -8px rgba(41, 23, 64, 0.6) !important;
}
html body .video-play-button svg,
html body .video-play-button svg path {
  fill: currentColor !important;
  color: var(--tb-deep) !important;
}
html body .section.use-cases .section-header {
  align-self: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
html body .quote-card {
  border: 1px solid var(--tb-line) !important;
  border-radius: var(--tb-radius) !important;
  box-shadow: var(--tb-shadow-1) !important;
}
html body .accordions {
  background: transparent !important;
  padding: 0 !important;
}
html body .accordion-block {
  background: #fff !important;
  border: 1px solid var(--tb-line) !important;
  border-radius: var(--tb-radius) !important;
}
html body .accordion-button {
  color: var(--tb-bright) !important;
}
html[data-theme="dark"] body .accordion-block {
  background: var(--dark-bg-tertiary) !important;
  border-color: var(--dark-border) !important;
}
html[data-theme="dark"] body .accordion-button {
  color: var(--tb-lilac) !important;
}
/* accordion open/close (js/accordion.js) */
.accordion-list {
  height: 0;
  overflow: hidden;
  opacity: 0;
  transition: height 0.35s ease, opacity 0.35s ease;
}
.accordion.is-open .accordion-list {
  opacity: 1;
}
.accordion-button {
  transition: transform 0.35s ease;
}
.accordion.is-open .accordion-button {
  transform: rotate(135deg);
}
@media (prefers-reduced-motion: reduce) {
  .accordion-list,
  .accordion-button {
    transition: none;
  }
}
html[data-theme="dark"] body .section.cabinet-types {
  background: var(--dark-bg-secondary) !important;
}
html[data-theme="dark"] body .section.use-cases {
  background: var(--dark-bg-primary) !important;
}
html[data-theme="dark"] body :is(.cabinet-type-chip, .use-case-card) {
  background: var(--dark-bg-tertiary) !important;
  border-color: var(--dark-border) !important;
  color: #fff !important;
  box-shadow: none !important;
}
html[data-theme="dark"] body .use-case-icon {
  background: rgba(204, 194, 222, 0.12) !important;
  color: var(--tb-lilac) !important;
}
html[data-theme="dark"] body .section.faq-section {
  background: var(--dark-bg-secondary) !important;
  background-image: none !important;
}
html[data-theme="dark"] body .impact-bar {
  background: rgba(204, 194, 222, 0.16) !important;
}

/* Buttons without the arrow circle in their markup get one drawn in, so every
   CTA carries the same mark (yellow on purple, purple on yellow). */
:root {
  --btn-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23291740' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E");
}
.nav-wrap,
.section.hero,
.section.demo,
.section.solution,
.section.process-flow,
.section.bottom-cta,
.section.footer,
.tb-on-dark,
.pricing-card-new--featured,
html[data-theme="dark"] body {
  --btn-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23edff3d' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E");
}
html body .primary-button .button-content:not(:has(.button-icon-wrap))::after {
  content: "";
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--btn-icon-bg) var(--btn-arrow) center / 16px no-repeat;
}
html body .primary-button .button-content:not(:has(.button-icon-wrap)) {
  display: flex !important;
  align-items: center !important;
  gap: 0.625rem !important;
}
/* Two-column heroes: the headline shares the row with a product shot */
html body .section.hero.hero--focal:not(.hero--anim) .display-h1 {
  font-size: clamp(2.25rem, 3.5vw, 3.25rem) !important;
  line-height: 1.06 !important;
}
/* Workflow stepper (millwork) */
html body .workflow-step__icon {
  background: var(--tb-tint) !important;
  color: var(--tb-bright) !important;
}
html[data-theme="dark"] body .workflow-step__icon {
  background: rgba(204, 194, 222, 0.12) !important;
  color: var(--tb-lilac) !important;
}

/* ==== Content Revision v2 ================================================== */

/* ---- Navigation: Solutions / Resources dropdowns, sign-in link ------------ */
html body .nav-wrapper .nav-menu {
  margin: 0 auto !important;
  align-items: center;
}
.nav-dd {
  position: relative;
  display: flex;
  align-items: center;
}
html body .nav-dd__toggle {
  appearance: none;
  background: none;
  border: 0;
  cursor: pointer;
  gap: 0.3rem;
  font: inherit;
}
html body .nav-wrap .nav-dd__toggle .nav {
  width: auto !important;
}
.nav-dd__caret {
  color: var(--tb-on-dark-2);
  transition: transform 0.2s ease;
}
.nav-dd.is-open .nav-dd__caret {
  transform: rotate(180deg);
}
html body .nav-wrap .nav-dd.has-current .nav-dd__toggle .nav,
html body .nav-wrap .nav-dd__toggle:hover .nav,
html body .nav-wrap .nav-dd.is-open .nav-dd__toggle .nav {
  color: var(--tb-signal) !important;
}
.nav-dd__panel {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  z-index: 1001;
  display: grid;
  gap: 2px;
  width: 300px;
  padding: 0.5rem;
  background: var(--tb-deep);
  border: 1px solid var(--tb-line-dark);
  border-radius: var(--tb-radius);
  box-shadow: 0 24px 48px -16px rgba(0, 0, 0, 0.55);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
}
/* bridge the gap so the pointer can travel from toggle to panel */
.nav-dd__panel::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -16px;
  height: 16px;
}
.nav-dd.is-open .nav-dd__panel {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}
@media (hover: hover) and (min-width: 1024px) {
  .nav-dd:hover .nav-dd__panel {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
  }
  .nav-dd:hover .nav-dd__caret {
    transform: rotate(180deg);
  }
}
html body .nav-dd__link {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0.625rem 0.75rem;
  border-radius: var(--tb-radius-s);
  text-decoration: none;
  background: none !important;
}
html body .nav-dd__link:hover,
html body .nav-dd__link:focus-visible,
html body .nav-dd__link[aria-current="page"] {
  background: rgba(204, 194, 222, 0.1) !important;
}
.nav-dd__title {
  color: #fff;
  font-weight: 700;
  font-size: 0.9375rem;
  line-height: 1.3;
}
.nav-dd__link:hover .nav-dd__title,
.nav-dd__link[aria-current="page"] .nav-dd__title {
  color: var(--tb-signal);
}
.nav-dd__desc {
  color: var(--tb-on-dark-2);
  font-size: 0.8125rem;
  line-height: 1.35;
}
html body .nav-signin {
  flex-shrink: 0;
  color: var(--tb-on-dark) !important;
  font-weight: 500;
  font-size: 0.9375rem;
  text-decoration: none;
  white-space: nowrap;
  background: none !important;
}
html body .nav-signin:hover,
html body .nav-signin:focus-visible {
  color: var(--tb-signal) !important;
}
html body .nav-wrapper .nav-button {
  margin-left: 0 !important;
}
@media (max-width: 1023px) {
  html body .nav-signin {
    display: none;
  }
  html body .nav-wrapper .nav-button {
    margin-left: auto !important;
  }
}
/* Mobile menu: grouped Solutions / Resources */
html body .nav-dropdown-menu {
  align-items: stretch !important;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
}
html body .nav-dropdown-menu .navbar-link.in-menu {
  justify-content: flex-start !important;
  padding: 0.625rem 1.5rem !important;
}
html body .nav-dropdown-menu .navbar-link.in-menu .nav {
  text-align: left !important;
  font-size: 1.0625rem !important;
}
.nav-dropdown-menu__group {
  display: flex;
  flex-direction: column;
  padding: 0.375rem 0;
  border-top: 1px solid var(--tb-line-dark);
  border-bottom: 1px solid var(--tb-line-dark);
}
.nav-dropdown-menu__label {
  padding: 0.375rem 1.5rem 0.125rem;
  color: var(--tb-lilac-strong);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
html body .nav-dropdown-menu .navbar-link.in-menu--sub {
  padding-left: 2.25rem !important;
}
html body .nav-dropdown-menu .navbar-link.in-menu--sub .nav {
  color: var(--tb-on-dark) !important;
  font-size: 1rem !important;
}
html body .nav-dropdown-menu .navbar-link.w--current .nav {
  color: var(--tb-signal) !important;
}
/* the header CTA is hidden on phones, so the menu carries it */
.nav-dropdown-menu__cta {
  display: none;
  padding: 0.75rem 1.5rem 0.5rem;
}
@media (max-width: 767px) {
  .nav-dropdown-menu__cta {
    display: block;
  }
  html body .nav-dropdown-menu__cta .primary-button {
    width: 100%;
    justify-content: center;
  }
}

/* ---- Footer: brand block + Solutions | Resources | Company ---------------- */
html body .section.footer .footer-content {
  grid-template-columns: minmax(0, 1.7fr) repeat(3, minmax(0, 1fr));
}
html body .section.footer .footer-info > .footer-nav-block:nth-child(3) {
  grid-column: 4;
  grid-row: 1;
}
html body .section.footer .footer-contact {
  max-width: 380px;
  gap: 0.75rem !important;
}
html body .section.footer .footer-tagline {
  margin: 0.25rem 0 0;
  color: #fff !important;
  font-weight: 800;
  font-size: 1.125rem;
  line-height: 1.35;
}
html body .section.footer .footer-contact .paragraph {
  margin: 0;
}
html body .section.footer .footer-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
  margin: 0.25rem 0 0;
  font-size: 0.9375rem;
  color: var(--tb-on-dark-2) !important;
}
html body .section.footer .footer-meta a {
  color: var(--tb-on-dark) !important;
  text-decoration: underline;
  text-decoration-color: rgba(204, 194, 222, 0.35);
  text-underline-offset: 3px;
  background: none !important;
}
html body .section.footer .footer-meta > [aria-hidden="true"] {
  display: none;
}
html body .section.footer .footer-meta a:hover {
  color: var(--tb-signal) !important;
  text-decoration-color: var(--tb-signal);
}
html body .section.footer .footer-nav-block .display-h6 {
  font-size: 0.8125rem !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase;
  color: var(--tb-lilac-strong) !important;
}
html body .section.footer .footer-nav-menu {
  margin-top: 0.25rem;
  gap: 0.125rem;
}
html body .section.footer .nav.footer {
  font-size: 1rem !important;
}
html body .section.footer .navbar-link.footer {
  padding-left: 0 !important;
  padding-right: 0 !important;
}
@media (max-width: 991px) {
  html body .section.footer .footer-content {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  html body .section.footer .footer-contact {
    grid-column: 1 / -1;
    max-width: 560px;
  }
  html body .section.footer .footer-info > .footer-nav-block:nth-child(n) {
    grid-row: 2;
  }
  html body .section.footer .footer-info > .footer-nav-block:nth-child(1) { grid-column: 1; }
  html body .section.footer .footer-info > .footer-nav-block:nth-child(2) { grid-column: 2; }
  html body .section.footer .footer-info > .footer-nav-block:nth-child(3) { grid-column: 3; }
}
@media (max-width: 560px) {
  html body .section.footer .footer-content {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  html body .section.footer .footer-info > .footer-nav-block:nth-child(3) {
    grid-column: 1;
    grid-row: 3;
  }
}

/* ---- Hero: kicker line above a smaller, descriptive H1 -------------------- */
html body .section.hero .hero-kicker {
  margin: 0;
  color: #fff !important;
  font-size: clamp(2.5rem, 4.6vw, 3.875rem) !important;
  font-weight: 900 !important;
  line-height: 1.04 !important;
  letter-spacing: -0.02em !important;
}
html body .section.hero .hero-title {
  margin: 1rem 0 0;
  color: var(--tb-lilac) !important;
  font-size: clamp(1.5rem, 2.4vw, 2rem) !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
  letter-spacing: -0.01em !important;
}
html body .section.hero.hero--anim .hero-left .large-paragraph {
  font-size: clamp(1.0625rem, 1.4vw, 1.1875rem) !important;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.75rem;
  margin-top: 1.75rem;
}

/* ---- "Watch the 3-minute walkthrough" text link --------------------------- */
html body .tb-watch-link {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  color: var(--tb-bright) !important;
  font-weight: 700;
  text-decoration: none;
  background: none !important;
  cursor: pointer;
}
.tb-watch-link__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  transition: background 0.2s ease, color 0.2s ease;
}
.tb-watch-link__icon svg {
  width: 13px;
  height: 13px;
  margin-left: 2px;
}
html body .tb-watch-link:hover .tb-watch-link__text {
  text-decoration: underline;
  text-underline-offset: 4px;
}
:is(.section.hero, .section.demo, .section.solution, .section.bottom-cta, .tb-on-dark) .tb-watch-link,
html[data-theme="dark"] body .tb-watch-link {
  color: #fff !important;
}
:is(.section.hero, .section.demo, .section.solution, .section.bottom-cta, .tb-on-dark) .tb-watch-link__icon,
html[data-theme="dark"] body .tb-watch-link__icon {
  border-color: var(--tb-signal);
  color: var(--tb-signal);
}
:is(.section.hero, .section.demo, .section.solution, .section.bottom-cta, .tb-on-dark) .tb-watch-link:hover .tb-watch-link__icon {
  background: var(--tb-signal);
  color: var(--tb-deep);
}

/* ---- Section shells -------------------------------------------------------- */
html body .section.tb-light {
  background: #fff !important;
}
html body .section.tb-paper {
  background: var(--tb-paper) !important;
}
html[data-theme="dark"] body .section.tb-light {
  background: var(--dark-bg-primary) !important;
}
html[data-theme="dark"] body .section.tb-paper {
  background: var(--dark-bg-secondary) !important;
}
.tb-section-head {
  max-width: 780px;
  margin: 0 auto 2.75rem;
  text-align: center;
}
.tb-section-head--left {
  margin-left: 0;
  text-align: left;
}
html body .tb-section-head .large-paragraph {
  margin: 1rem auto 0;
}
.tb-eyebrow {
  display: inline-block;
  margin-bottom: 0.75rem;
  color: var(--tb-bright);
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
html[data-theme="dark"] body .tb-eyebrow,
:is(.section.hero, .section.demo, .section.solution, .tb-on-dark) .tb-eyebrow {
  color: var(--tb-signal);
}

/* ---- Tiles: feature / audience / problem cards ---------------------------- */
.tb-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  width: 100%;
}
.tb-tiles--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tb-tiles--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tb-tiles--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) {
  .tb-tiles--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .tb-tiles--3 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 767px) {
  .tb-tiles--2,
  .tb-tiles--4 { grid-template-columns: minmax(0, 1fr); }
}
.tb-tile {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-width: 0;
  padding: 1.75rem;
  background: #fff;
  border: 1px solid var(--tb-line);
  border-radius: var(--tb-radius);
  box-shadow: var(--tb-shadow-1);
}
.tb-paper .tb-tile,
.section.problem .tb-tile {
  box-shadow: none;
}
.tb-tile__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 0.25rem;
  border-radius: 12px;
  background: var(--tb-tint);
  color: var(--tb-bright);
}
.tb-tile__icon svg {
  width: 26px;
  height: 26px;
}
html body .tb-tile :is(h3, .tb-tile__title) {
  margin: 0;
  font-size: 1.25rem !important;
  font-weight: 800 !important;
  line-height: 1.25 !important;
}
html body .tb-tile p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
}
html body .tb-tile__link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  margin-top: auto;
  padding-top: 0.5rem;
  color: var(--tb-bright) !important;
  font-weight: 700;
  text-decoration: none;
  background: none !important;
}
html body .tb-tile__link::after {
  content: "\2192";
  transition: transform 0.2s ease;
}
html body .tb-tile__link:hover::after {
  transform: translateX(3px);
}
html body .tb-tile__link:hover {
  color: var(--tb-deep) !important;
}
html[data-theme="dark"] body .tb-tile {
  background: var(--dark-bg-tertiary);
  border-color: var(--dark-border);
  box-shadow: none;
}
html[data-theme="dark"] body .tb-tile__icon {
  background: rgba(204, 194, 222, 0.12);
  color: var(--tb-lilac);
}
html[data-theme="dark"] body .tb-tile__link {
  color: var(--tb-signal) !important;
}
/* Tiles on purple bands */
:is(.section.demo, .section.solution, .tb-on-dark) .tb-tile {
  background: var(--tb-deep-3);
  border-color: var(--tb-line-dark);
  box-shadow: none;
}
html body :is(.section.demo, .section.solution, .tb-on-dark) .tb-tile p {
  color: var(--tb-on-dark) !important;
}
:is(.section.demo, .section.solution, .tb-on-dark) .tb-tile__icon {
  background: transparent;
  border: 1.5px solid var(--tb-lilac-strong);
  color: var(--tb-lilac);
}

/* ---- Results band ----------------------------------------------------------- */
.tb-results {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  width: 100%;
}
@media (max-width: 900px) {
  .tb-results { grid-template-columns: minmax(0, 1fr); }
}
.tb-result {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  padding: 1.75rem;
  background: #fff;
  border: 1px solid var(--tb-line);
  border-top: 4px solid var(--tb-signal);
  border-radius: var(--tb-radius);
}
html body .tb-result__value {
  margin: 0;
  color: var(--tb-deep) !important;
  font-size: clamp(1.375rem, 2vw, 1.625rem) !important;
  font-weight: 900 !important;
  line-height: 1.2 !important;
  letter-spacing: -0.015em !important;
}
html body .tb-result__label {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.5;
}
html body .tb-results__note {
  max-width: 720px;
  margin: 1.75rem auto 0;
  text-align: center;
  font-size: 0.9375rem;
  color: var(--tb-ink-3) !important;
}
html[data-theme="dark"] body .tb-result {
  background: var(--dark-bg-tertiary);
  border-color: var(--dark-border);
  border-top-color: var(--tb-signal);
}
html[data-theme="dark"] body .tb-result__value {
  color: #fff !important;
}
html[data-theme="dark"] body .tb-results__note {
  color: var(--dark-text-tertiary) !important;
}

/* ---- Two audiences: estimator / owner ------------------------------------- */
.tb-audiences {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  width: 100%;
}
@media (max-width: 860px) {
  .tb-audiences { grid-template-columns: minmax(0, 1fr); }
}
.tb-audience {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: clamp(1.75rem, 3.5vw, 2.75rem);
  background: #fff;
  border: 1px solid var(--tb-line);
  border-radius: 18px;
}
.tb-audience--dark {
  background: var(--tb-deep);
  border-color: var(--tb-deep);
}
html body .tb-audience :is(h2, h3) {
  margin: 0;
  font-size: clamp(1.5rem, 2.4vw, 2rem) !important;
  font-weight: 900 !important;
  line-height: 1.15 !important;
}
html body .tb-audience p {
  margin: 0;
  font-size: 1.0625rem;
  line-height: 1.65;
}
html body .tb-audience--dark :is(h2, h3) {
  color: #fff !important;
}
html body .tb-audience--dark p {
  color: var(--tb-on-dark) !important;
}
.tb-audience--dark .tb-eyebrow {
  color: var(--tb-signal);
}
html[data-theme="dark"] body .tb-audience {
  background: var(--dark-bg-tertiary);
  border-color: var(--dark-border);
}
html[data-theme="dark"] body .tb-audience--dark {
  background: var(--tb-bright);
  border-color: var(--tb-bright);
}

/* ---- Checklist (what it covers) ------------------------------------------- */
.tb-checklist {
  display: grid;
  gap: 0.875rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
html body .tb-checklist li {
  position: relative;
  padding-left: 2.25rem;
  color: var(--tb-ink-2);
  font-size: 1.0625rem;
  line-height: 1.55;
}
.tb-checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.1rem;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: var(--tb-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256' fill='%234a2973'%3E%3Cpath d='M232.49,80.49l-128,128a12,12,0,0,1-17,0l-56-56a12,12,0,1,1,17-17L96,183,215.51,63.51a12,12,0,0,1,17,17Z'/%3E%3C/svg%3E") center / 0.875rem no-repeat;
}
html body .tb-checklist li strong {
  color: var(--tb-deep);
}
html[data-theme="dark"] body .tb-checklist li {
  color: var(--dark-text-secondary);
}
html[data-theme="dark"] body .tb-checklist li strong {
  color: #fff;
}
html[data-theme="dark"] body .tb-checklist li::before {
  background-color: rgba(204, 194, 222, 0.14);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256' fill='%23edff3d'%3E%3Cpath d='M232.49,80.49l-128,128a12,12,0,0,1-17,0l-56-56a12,12,0,1,1,17-17L96,183,215.51,63.51a12,12,0,0,1,17,17Z'/%3E%3C/svg%3E");
}

/* ---- Split: copy beside a list or card ------------------------------------ */
.tb-split {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
  width: 100%;
}
@media (max-width: 860px) {
  .tb-split { grid-template-columns: minmax(0, 1fr); }
}
html body .tb-split .large-paragraph {
  margin-top: 1rem;
}

/* ---- Problem: two cards, no impact bars ----------------------------------- */
@media (min-width: 768px) {
  html body .pain-points-grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
html body .pain-points-grid--2 .pain-point-card {
  gap: 0.75rem;
}
html body .pain-points-grid--2 .pain-title,
html body .pain-points-grid--2 .pain-description {
  margin: 0;
}
html body .problem-differentiator h2 {
  font-size: clamp(1.5rem, 2.4vw, 2rem) !important;
  line-height: 1.15 !important;
}
html body .problem-compare-link {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

/* ---- Pricing: seat note with its own CTA ---------------------------------- */
html body .pricing-seat-note {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
}
html body .pricing-seat-note .small-paragraph {
  margin: 0;
}

/* ---- Single quote ---------------------------------------------------------- */
.tb-quote {
  max-width: 820px;
  margin: 0 auto;
  width: 100%;
}

/* ---- In-body link line ----------------------------------------------------- */
html body .tb-inline-link {
  margin: 2rem 0 0;
  text-align: center;
  font-weight: 600;
}

/* ---- Closing CTA: primary button + walkthrough link ----------------------- */
html body .section.bottom-cta .bottom-cta-buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem 1.75rem;
}
html body .section.bottom-cta .large-paragraph {
  max-width: 640px;
  margin: 0 auto;
}

/* ---- Credentials strip (about, AWI) --------------------------------------- */
.tb-credentials {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
html body .tb-credentials li {
  padding: 0.625rem 1.125rem;
  background: var(--tb-tint);
  border: 1px solid var(--tb-line-2);
  border-radius: 999px;
  color: var(--tb-deep);
  font-weight: 700;
  font-size: 0.9375rem;
}
html[data-theme="dark"] body .tb-credentials li {
  background: rgba(204, 194, 222, 0.1);
  border-color: var(--dark-border);
  color: #fff;
}

/* ---- Glossary -------------------------------------------------------------- */
.tb-glossary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 0;
}
@media (max-width: 767px) {
  .tb-glossary { grid-template-columns: minmax(0, 1fr); }
}
.tb-term {
  padding: 1.5rem;
  background: #fff;
  border: 1px solid var(--tb-line);
  border-left: 4px solid var(--tb-bright);
  border-radius: var(--tb-radius);
  scroll-margin-top: 110px;
}
html body .tb-term h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1875rem !important;
  font-weight: 800 !important;
}
html body .tb-term p {
  margin: 0;
  line-height: 1.6;
}
html[data-theme="dark"] body .tb-term {
  background: var(--dark-bg-tertiary);
  border-color: var(--dark-border);
  border-left-color: var(--tb-signal);
}
.tb-term-index {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 2rem;
  padding: 0;
  list-style: none;
}
html body .tb-term-index a {
  display: inline-block;
  padding: 0.375rem 0.75rem;
  border: 1px solid var(--tb-line-2);
  border-radius: 999px;
  color: var(--tb-bright) !important;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  background: none !important;
}
html body .tb-term-index a:hover {
  border-color: var(--tb-bright);
  background: var(--tb-tint) !important;
}
html[data-theme="dark"] body .tb-term-index a {
  color: var(--tb-signal) !important;
  border-color: var(--dark-border);
}

/* ---- 404 / 401: actions and helpful links ---------------------------------- */
.tb-utility .hero-actions {
  justify-content: center;
  margin-top: 0.5rem;
}
html body .tb-utility .tb-utility__links {
  margin: 0.75rem auto 0;
  font-size: 1rem;
}
html body .tb-utility .tb-utility__links a {
  color: #fff !important;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--tb-signal);
  text-underline-offset: 4px;
  background: none !important;
}
html body .tb-utility .tb-utility__links a:hover {
  color: var(--tb-signal) !important;
}

/* ---- Pricing page + joinery: seat note and quote under the cards ---------- */
.pricing-under-cards {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
}
html body .pricing-under-cards .pricing-seat-note {
  margin: 0;
}
.pricing-quote {
  max-width: 720px;
  margin-top: 3.5rem;
}
html body #pricing-hero .pricing-hero-content .large-paragraph {
  max-width: 600px;
}

/* ---- Joinery --------------------------------------------------------------- */
#problem .tb-results {
  margin-top: 3rem;
}
#trust .tb-quote {
  margin-top: 1.5rem;
}
/* longer hero badge copy wraps inside the screenshot */
html body .hero-visual-badge {
  white-space: normal;
  max-width: calc(100% - 2.5rem);
}
@media (max-width: 600px) {
  .hero--simple .hero-actions {
    justify-content: center;
  }
}

/* ---- FAQ page: grouped questions ------------------------------------------- */
.tb-faq-group {
  max-width: 1100px;
  margin: 0 auto;
}
.tb-faq-group + .tb-faq-group {
  margin-top: 4rem;
}
html body .tb-faq-group__title {
  margin: 0 0 1.5rem;
  text-align: left;
}
html body .homepage-faq-answer a {
  color: var(--tb-bright);
  font-weight: 600;
}
html[data-theme="dark"] body .homepage-faq-answer a {
  color: var(--dark-accent);
}

/* ---- About: team and story ------------------------------------------------- */
.tb-team .team-profile {
  width: 100%;
  height: 320px;
}
.tb-team + .tb-credentials {
  margin-top: 3rem;
}
.tb-story .large-paragraph + .large-paragraph {
  margin-top: 1.25rem;
}

/* ---- Contact (Book a demo) ------------------------------------------------- */
.hero--simple:not(.hero--focal) .hero-actions {
  justify-content: center;
}
.tb-demo-covers .tb-checklist {
  margin-top: 0.25rem;
}
.contact-form select.w-input {
  padding-top: 0;
  padding-bottom: 0;
  text-align: left;
  text-align-last: left;
  cursor: pointer;
}

/* Problem headings are full sentences now: let them wrap */
html body .problem-header .display-h2 {
  white-space: normal !important;
  max-width: 860px;
}
