/* ===============================================================
   TOPQuote — Homepage Styles
   Brand red: #CC2427  /  Brand black: #000000

   FONT NOTE
   The style guide specifies TT Norms (Light/Regular/Medium/Bold/Extra Bold).
   TT Norms is not currently loaded via @@font-face — no licensed web
   distribution is in place yet. The font stack below falls back through
   Inter (a close visual cousin) and then to the platform sans-serifs.
   Swap in the TT Norms web kit when licensing is sorted, e.g.:
       @@font-face {
           font-family: "TT Norms";
           src: url("/assets/fonts/tt-norms/TTNorms-Regular.woff2") format("woff2");
           font-weight: 400; font-style: normal; font-display: swap;
       }
   =============================================================== */

:root {
    /* Brand palette — components reference these, never hard-coded hex */
    --tq-red:        #CC2427;
    --tq-red-dark:   #A41C1F;
    --tq-red-soft:   #FCEEEF;
    --tq-black:      #000000;
    --tq-ink:        #0E0E10;
    --tq-ink-2:      #2B2B2F;
    --tq-muted:      #5C5F66;
    --tq-line:       #E4E6EA;
    --tq-bg:         #FFFFFF;
    --tq-bg-soft:    #F7F8FA;
    --tq-bg-darker:  #0E0E10;
    --tq-excel-green:#1F7244;

    /* Brand-aligned aliases recommended by the style guide */
    --color-brand-red: var(--tq-red);
    --color-brand-black: var(--tq-black);

    /* RGB component triplet for the brand red — used in rgba(...) declarations
       so alpha tints of the brand color stay driven by the custom property. */
    --color-brand-red-rgb: 204, 36, 39;

    /* Lighter tint of the brand red — used for accents on dark backgrounds
       (eyebrows on dark sections, AI capability icons, chips). */
    --color-brand-red-light: var(--color-brand-red-light);

    /* Radii / shadows */
    --tq-radius:    14px;
    --tq-radius-sm:  8px;
    --tq-shadow-sm: 0 2px  8px  rgba(14,14,16,.06);
    --tq-shadow-md: 0 12px 30px rgba(14,14,16,.10);
    --tq-shadow-lg: 0 30px 60px rgba(14,14,16,.14);

    /* Typography — single canonical stack with semantic display/body aliases */
    --tq-font:      "TT Norms", "TT Norms Pro", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-display: var(--tq-font);
    --font-body:    var(--tq-font);
}

/* ---------- Base typography ---------- */
.tq-section {
    font-family: var(--tq-font);
    color: var(--tq-ink);
    background: var(--tq-bg);
    padding: 110px 0;
    position: relative;
}

.tq-section--soft { background: var(--tq-bg-soft); }
.tq-section--dark { background: var(--tq-bg-darker); color: #fff; }
.tq-section--dark p, .tq-section--dark li { color: #C7CAD0; }

.tq-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--tq-font);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--tq-red);
    margin-bottom: 18px;
}
.tq-eyebrow::before {
    content: "";
    width: 28px; height: 2px; background: var(--tq-red);
}
.tq-section--dark .tq-eyebrow { color: var(--color-brand-red-light); }
.tq-section--dark .tq-eyebrow::before { background: var(--color-brand-red-light); }

.tq-h1 {
    font-family: var(--tq-font);
    font-weight: 800;
    font-size: clamp(40px, 5.4vw, 72px);
    line-height: 1.04;
    letter-spacing: -0.02em;
    margin: 0 0 18px;
    color: var(--tq-ink);
}
.tq-section--dark .tq-h1 { color: #fff; }
.tq-h1 .tq-dot { color: var(--tq-red); }

.tq-h2 {
    font-family: var(--tq-font);
    font-weight: 800;
    font-size: clamp(30px, 3.2vw, 46px);
    line-height: 1.1;
    letter-spacing: -0.015em;
    margin: 0 0 16px;
    color: var(--tq-ink);
}
.tq-section--dark .tq-h2 { color: #fff; }

.tq-h3 {
    font-family: var(--tq-font);
    font-weight: 700;
    font-size: 22px;
    line-height: 1.25;
    margin: 0 0 10px;
    color: var(--tq-ink);
}
.tq-section--dark .tq-h3 { color: #fff; }

.tq-lead {
    font-size: 18px;
    line-height: 1.6;
    color: var(--tq-muted);
    margin: 0 0 12px;
    max-width: 720px;
}
.tq-section--dark .tq-lead { color: #B6B9C0; }

.tq-text { color: var(--tq-muted); line-height: 1.65; }
.tq-section--dark .tq-text { color: #B6B9C0; }

/* ---------- Buttons ---------- */
.tq-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 26px;
    font-family: var(--tq-font);
    font-weight: 700;
    font-size: 15px;
    letter-spacing: .01em;
    border-radius: 999px;
    text-decoration: none;
    border: 2px solid transparent;
    transition: transform .15s ease, background .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
    line-height: 1;
    cursor: pointer;
    white-space: nowrap;
}
.tq-btn i { font-size: 14px; }
.tq-btn:hover { transform: translateY(-1px); }

.tq-btn--primary {
    background: var(--tq-red);
    color: #fff;
    border-color: var(--tq-red);
    box-shadow: 0 8px 18px rgba(var(--color-brand-red-rgb),.28);
}
.tq-btn--primary:hover { background: var(--tq-red-dark); border-color: var(--tq-red-dark); color: #fff; }

.tq-btn--ghost {
    background: transparent;
    color: var(--tq-ink);
    border-color: var(--tq-ink);
}
.tq-btn--ghost:hover { background: var(--tq-ink); color: #fff; }
.tq-section--dark .tq-btn--ghost { color: #fff; border-color: #fff; }
.tq-section--dark .tq-btn--ghost:hover { background: #fff; color: var(--tq-ink); }

.tq-btn--link {
    color: var(--tq-red);
    background: transparent;
    padding: 10px 0;
    border: none;
    border-radius: 0;
    border-bottom: 2px solid var(--tq-red);
}

/* ---------- HERO ---------- */
.tq-hero {
    position: relative;
    padding: 130px 0 80px;
    background: radial-gradient(120% 80% at 80% 0%, #FBE7E8 0%, #FFFFFF 55%) ,
                #ffffff;
    overflow: hidden;
}
.tq-hero::before {
    content: "";
    position: absolute;
    right: -120px;
    top: -120px;
    width: 420px; height: 420px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(var(--color-brand-red-rgb),.10), transparent 65%);
    pointer-events: none;
}
.tq-hero__pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border: 1px solid var(--tq-line);
    color: var(--tq-ink);
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    box-shadow: var(--tq-shadow-sm);
    margin-bottom: 28px;
}
.tq-hero__pill .dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--tq-red);
    box-shadow: 0 0 0 4px rgba(var(--color-brand-red-rgb),.18);
}
.tq-hero__sub {
    font-size: 19px;
    line-height: 1.55;
    color: var(--tq-ink-2);
    margin: 6px 0 32px;
    max-width: 580px;
}
.tq-hero__cta-row {
    display: flex; flex-wrap: wrap; gap: 14px;
    margin-bottom: 28px;
}
.tq-hero__trust {
    display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
    color: var(--tq-muted);
    font-size: 14px;
}
.tq-hero__trust strong { color: var(--tq-ink); font-weight: 700; }
.tq-hero__trust .tq-trust-lead { font-weight: 800; }
.tq-hero__trust .tq-trust-pair {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    white-space: nowrap;
}

/* ---------- Reusable brand dot
   The trailing-dot motif from the wordmark, rendered as a real circle
   (not a typed period). Reuse this component for every dot accent on
   the site — separator dots, bullet dots, active-state indicators. */
.tq-brand-dot {
    display: inline-block;
    flex-shrink: 0;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--color-brand-red);
}
.tq-brand-dot--lg { width: 8px;  height: 8px;  }
.tq-brand-dot--sm { width: 5px;  height: 5px;  }

.tq-hero__visual {
    position: relative;
    display: block;
    width: 100%;
}
.tq-hero__visual svg { width: 100%; height: auto; display: block; }

/* Floating tags around hero visual */
.tq-float {
    position: absolute;
    background: #fff;
    border: 1px solid var(--tq-line);
    box-shadow: var(--tq-shadow-md);
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    color: var(--tq-ink);
    display: flex; align-items: center; gap: 10px;
    z-index: 3;
}
.tq-float .tq-float__icon {
    width: 28px; height: 28px; border-radius: 8px;
    background: var(--tq-red-soft);
    color: var(--tq-red);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 13px;
}
.tq-float--tl { top: 4%;  left: -6px; }
.tq-float--br { bottom: 6%; right: -10px; }

/* ---------- Logo strip ---------- */
.tq-logos {
    padding: 36px 0 28px;
    border-top: 1px solid var(--tq-line);
    border-bottom: 1px solid var(--tq-line);
    background: #fff;
}
.tq-logos__label {
    text-align: center;
    color: var(--tq-muted);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    margin: 0 0 22px;
}
.tq-logos__row {
    display: flex; align-items: center; justify-content: center; gap: 60px; flex-wrap: wrap;
    filter: grayscale(100%);
    opacity: .82;
}
.tq-logos__row img { max-height: 46px; max-width: 160px; object-fit: contain; }

/* ---------- Problem cards ---------- */
.tq-problem-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
    margin-top: 50px;
}
.tq-problem-card {
    background: #fff;
    border: 1px solid var(--tq-line);
    border-radius: var(--tq-radius);
    padding: 30px 26px;
    position: relative;
    transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.tq-problem-card:hover {
    border-color: var(--tq-red);
    transform: translateY(-3px);
    box-shadow: var(--tq-shadow-md);
}
.tq-problem-card__num {
    font-weight: 800;
    font-size: 14px;
    letter-spacing: .14em;
    color: var(--tq-red);
    text-transform: uppercase;
    margin-bottom: 10px;
}
.tq-problem-card h3 { font-size: 18px; font-weight: 700; margin: 0 0 8px; }
.tq-problem-card p { color: var(--tq-muted); font-size: 15px; line-height: 1.55; margin: 0; }

/* ---------- Feature with split image ---------- */
.tq-split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 70px; align-items: center; }
.tq-split--reverse { grid-template-columns: 1fr 1.05fr; }
.tq-split--reverse .tq-split__copy { order: 2; }
.tq-split--reverse .tq-split__visual { order: 1; }
.tq-split__list { list-style: none; padding: 0; margin: 22px 0 8px; }
.tq-split__list li {
    display: flex; gap: 12px; align-items: flex-start;
    padding: 10px 0;
    font-size: 16px;
    color: var(--tq-ink-2);
}
.tq-split__list li::before {
    content: "";
    flex: 0 0 22px;
    width: 22px; height: 22px;
    margin-top: 2px;
    border-radius: 50%;
    background: var(--tq-red) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'><polyline points='4 12 10 18 20 6'/></svg>") center/14px no-repeat;
}
.tq-split__visual {
    position: relative;
    border-radius: var(--tq-radius);
    overflow: hidden;
    box-shadow: var(--tq-shadow-lg);
    background: #fff;
    border: 1px solid var(--tq-line);
}
.tq-split__visual img, .tq-split__visual svg { width: 100%; display: block; height: auto; }

/* ---------- Drill-down dimension matrix ---------- */
.tq-dimensions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-top: 36px;
}
.tq-dim {
    background: #fff;
    border: 1px solid var(--tq-line);
    border-radius: 12px;
    padding: 20px 18px;
    transition: all .2s ease;
}
.tq-dim:hover { border-color: var(--tq-red); transform: translateY(-2px); box-shadow: var(--tq-shadow-md); }
.tq-dim__icon {
    width: 36px; height: 36px;
    background: var(--tq-red-soft);
    color: var(--tq-red);
    border-radius: 10px;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 16px;
    margin-bottom: 14px;
}
.tq-dim h4 { font-size: 16px; font-weight: 700; margin: 0 0 4px; color: var(--tq-ink); }
.tq-dim p  { font-size: 13.5px; color: var(--tq-muted); margin: 0; line-height: 1.45; }

/* ---------- Dashboard cards (mocked) ---------- */
.tq-dash-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    margin-top: 50px;
}
.tq-dash-card {
    background: #fff;
    border: 1px solid var(--tq-line);
    border-radius: var(--tq-radius);
    overflow: hidden;
    box-shadow: var(--tq-shadow-md);
    transition: transform .2s ease, box-shadow .2s ease;
}
.tq-dash-card:hover { transform: translateY(-4px); box-shadow: var(--tq-shadow-lg); }
.tq-dash-card__head {
    display: flex; justify-content: space-between; align-items: center;
    padding: 18px 22px;
    border-bottom: 1px solid var(--tq-line);
    background: #FAFBFC;
}
.tq-dash-card__title { font-weight: 700; font-size: 15px; color: var(--tq-ink); }
.tq-dash-card__tag {
    font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
    color: var(--tq-red); background: var(--tq-red-soft); padding: 5px 10px; border-radius: 999px;
}
.tq-dash-card__body { padding: 22px; }
.tq-dash-card__body svg { width: 100%; height: auto; display: block; }

/* ---------- AI capabilities ---------- */
.tq-ai-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 20px; margin-top: 50px;
}
.tq-ai-card {
    background: #14141A;
    border: 1px solid #25262D;
    color: #E5E6EA;
    border-radius: var(--tq-radius);
    padding: 28px 26px;
    position: relative;
    transition: border-color .2s ease, transform .2s ease;
}
.tq-ai-card:hover { border-color: var(--tq-red); transform: translateY(-3px); }
.tq-ai-card__icon {
    width: 44px; height: 44px;
    border-radius: 10px;
    background: rgba(var(--color-brand-red-rgb),.12);
    color: var(--color-brand-red-light);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 18px;
    margin-bottom: 18px;
}
.tq-ai-card h4 { color: #fff; font-size: 18px; font-weight: 700; margin: 0 0 8px; }
.tq-ai-card p { color: #B6B9C0; font-size: 14.5px; line-height: 1.55; margin: 0; }

/* ---------- AI hero (chat mockup + copy) ---------- */
.tq-ai-hero {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 60px;
    align-items: center;
    margin-top: 60px;
}
.tq-ai-hero__copy h3 {
    color: #fff; font-size: 30px; font-weight: 800; line-height: 1.15;
    letter-spacing: -0.01em; margin: 0 0 14px;
}
.tq-ai-hero__copy p { color: #B6B9C0; font-size: 16.5px; line-height: 1.6; margin: 0 0 16px; }
.tq-ai-hero__chips {
    display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px;
}
.tq-chip {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(255,255,255,.04);
    border: 1px solid #25262D;
    color: #C7CAD0;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 12.5px; font-weight: 600;
}
.tq-chip i { color: var(--color-brand-red-light); font-size: 11px; }

/* Chat-style mockup */
.tq-chat {
    background: #0A0A0E;
    border: 1px solid #25262D;
    border-radius: 16px;
    box-shadow: 0 30px 60px rgba(0,0,0,.45);
    overflow: hidden;
}
.tq-chat__head {
    display: flex; align-items: center; gap: 10px;
    padding: 14px 18px;
    background: #14141A;
    border-bottom: 1px solid #25262D;
}
.tq-chat__head .dots { display: flex; gap: 6px; }
.tq-chat__head .dots span { width: 10px; height: 10px; border-radius: 50%; }
.tq-chat__head .dots span:nth-child(1) { background: #FF5F57; }
.tq-chat__head .dots span:nth-child(2) { background: #FEBC2E; }
.tq-chat__head .dots span:nth-child(3) { background: #28C840; }
.tq-chat__head .title {
    color: #fff; font-weight: 800; font-size: 13px; margin-left: 12px;
    display: flex; align-items: center; gap: 8px;
}
.tq-chat__head .title .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--color-brand-red); }
.tq-chat__body { padding: 22px; display: flex; flex-direction: column; gap: 18px; }
.tq-bubble { max-width: 92%; }
.tq-bubble--user {
    align-self: flex-end;
    background: #1A1A22;
    border: 1px solid #2A2B33;
    color: #E5E6EA;
    padding: 12px 16px;
    border-radius: 14px 14px 4px 14px;
    font-size: 14px; line-height: 1.5;
}
.tq-bubble--ai {
    align-self: flex-start;
    background: linear-gradient(180deg, #14141A 0%, #101015 100%);
    border: 1px solid #2A2B33;
    color: #E5E6EA;
    padding: 14px 16px 16px;
    border-radius: 14px 14px 14px 4px;
    font-size: 14px; line-height: 1.55;
    width: 100%;
}
.tq-bubble--ai .tq-bubble__head {
    display: flex; align-items: center; gap: 8px;
    color: #C7CAD0; font-weight: 700; font-size: 12px;
    margin-bottom: 10px;
    letter-spacing: .04em; text-transform: uppercase;
}
.tq-bubble--ai .tq-bubble__head .ai-mark {
    width: 18px; height: 18px; border-radius: 5px;
    background: var(--tq-red); color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 10px; font-weight: 800;
}
.tq-bubble__chart {
    background: #0A0A0E;
    border: 1px solid #25262D;
    border-radius: 10px;
    padding: 14px;
    margin-top: 10px;
}
.tq-bubble__chart svg { width: 100%; height: auto; display: block; }
.tq-bubble__actions {
    display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap;
}
.tq-bubble__action {
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(var(--color-brand-red-rgb),.10);
    border: 1px solid rgba(var(--color-brand-red-rgb),.32);
    color: #FF8A8C;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px; font-weight: 700;
}
.tq-bubble__action--ghost {
    background: transparent;
    border-color: #2A2B33;
    color: #B6B9C0;
}

/* Two-stage architecture */
.tq-stages {
    display: grid;
    grid-template-columns: 1fr 60px 1fr;
    gap: 0;
    margin-top: 70px;
    align-items: stretch;
}
.tq-stage {
    background: #14141A;
    border: 1px solid #25262D;
    border-radius: 14px;
    padding: 28px;
    position: relative;
}
.tq-stage__label {
    display: inline-block;
    font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
    color: var(--color-brand-red-light); background: rgba(var(--color-brand-red-rgb),.12);
    padding: 5px 10px; border-radius: 999px;
    margin-bottom: 14px;
}
.tq-stage h4 { color: #fff; font-size: 20px; font-weight: 700; margin: 0 0 10px; }
.tq-stage p  { color: #B6B9C0; font-size: 14.5px; line-height: 1.6; margin: 0 0 16px; }
.tq-stage ul { list-style: none; padding: 0; margin: 0; }
.tq-stage ul li {
    display: flex; gap: 10px; align-items: flex-start;
    color: #C7CAD0; font-size: 13.5px; padding: 6px 0;
}
.tq-stage ul li::before {
    content: "▸"; color: var(--tq-red); flex: 0 0 12px; font-size: 12px; line-height: 1.4;
}
.tq-stages__arrow {
    align-self: center; justify-self: center;
    width: 60px; height: 60px;
    border-radius: 50%;
    background: var(--tq-red);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 12px 24px rgba(var(--color-brand-red-rgb),.30);
}

/* Architecture benefits row */
.tq-bens {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 18px; margin-top: 50px;
}
.tq-ben {
    background: rgba(255,255,255,.02);
    border: 1px solid #25262D;
    border-radius: 12px;
    padding: 22px;
}
.tq-ben__num {
    color: var(--color-brand-red-light); font-weight: 800; font-size: 26px; letter-spacing: -.02em; margin-bottom: 6px;
}
.tq-ben h5 { color: #fff; font-size: 14px; font-weight: 700; margin: 0 0 4px; letter-spacing: .02em; }
.tq-ben p  { color: #B6B9C0; font-size: 13px; line-height: 1.5; margin: 0; }

@@media (max-width: 991px) {
    .tq-ai-hero { grid-template-columns: 1fr; gap: 40px; }
    .tq-stages { grid-template-columns: 1fr; gap: 18px; }
    .tq-stages__arrow { transform: rotate(90deg); }
    .tq-bens { grid-template-columns: repeat(2, 1fr); }
}
@@media (max-width: 575px) {
    .tq-bens { grid-template-columns: 1fr; }
}

/* ---------- How It Works flow figure ---------- */
.tq-flow-figure {
    margin: 56px auto 0;
    max-width: 1100px;
    text-align: center;
}
.tq-flow-figure img {
    display: block;
    width: 100%;
    height: auto;
}
.tq-flow-figure__caption {
    margin-top: 18px;
    font-family: var(--tq-font);
    font-weight: 700;
    font-size: 22px;
    letter-spacing: -0.01em;
    color: var(--tq-ink);
}

@@media (max-width: 768px) {
    .tq-flow-figure { margin-top: 36px; }
    .tq-flow-figure__caption { font-size: 18px; }
}

/* ---------- How It Works steps ---------- */
.tq-steps {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0;
    counter-reset: tqstep;
    margin-top: 60px;
    position: relative;
}
.tq-step {
    text-align: center;
    padding: 0 18px;
    position: relative;
}
.tq-step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 32px;
    right: -30%;
    width: 60%; height: 2px;
    background: linear-gradient(to right, transparent, var(--tq-red) 20%, var(--tq-red) 80%, transparent);
    opacity: .35;
}
.tq-step__num {
    width: 64px; height: 64px;
    border-radius: 50%;
    background: var(--tq-red);
    color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    font-family: var(--tq-font);
    font-weight: 800;
    font-size: 22px;
    margin-bottom: 18px;
    box-shadow: 0 12px 24px rgba(var(--color-brand-red-rgb),.30);
    position: relative; z-index: 2;
}
.tq-step__icon {
    width: 32px; height: 32px;
    margin: 0 auto 10px;
    color: var(--tq-red);
}
.tq-step h4 { font-size: 16px; font-weight: 700; margin: 0 0 6px; color: var(--tq-ink); }
.tq-section--dark .tq-step h4 { color: #fff; }
.tq-step p { font-size: 14px; color: var(--tq-muted); line-height: 1.5; margin: 0; }
.tq-section--dark .tq-step p { color: #B6B9C0; }

/* ---------- Track-record band (sits below the two-column credibility grid) ---------- */
.tq-track-record {
    text-align: center;
    margin-top: 70px;
    padding-top: 56px;
    border-top: 1px solid var(--tq-line);
}
.tq-track-record .tq-eyebrow {
    justify-content: center;
    margin-bottom: 28px;
}
.tq-track-record__logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 56px;
    flex-wrap: wrap;
}
/* Logos are historical references to prior platforms — not active customer
   endorsements. Default to grayscale + low opacity so they don't read as
   "Trusted by..." at first glance. Hover restores full color for anyone who
   wants a closer look. Heights normalized so mixed aspect ratios sit on a
   common visual baseline. */
.tq-track-record__logos img {
    max-height: 56px;
    width: auto;
    object-fit: contain;
    filter: grayscale(100%) opacity(.65);
    transition: filter .2s ease;
}
.tq-track-record__logos img:hover {
    filter: grayscale(0%) opacity(1);
}
@@media (max-width: 991px) {
    .tq-track-record { margin-top: 56px; padding-top: 40px; }
    .tq-track-record__logos { gap: 32px; }
    .tq-track-record__logos img { max-height: 48px; }
}
@@media (max-width: 575px) {
    .tq-track-record { margin-top: 40px; padding-top: 32px; }
    .tq-track-record__logos { gap: 22px; }
    .tq-track-record__logos img { max-height: 38px; }
}

/* ---------- Credibility / 12 Platforms ---------- */
.tq-cred {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 70px;
    align-items: center;
}
.tq-bignum {
    font-family: var(--tq-font);
    font-weight: 800;
    font-size: clamp(160px, 22vw, 280px);
    line-height: 0.85;
    color: var(--tq-red);
    letter-spacing: -0.04em;
    position: relative;
    display: inline-block;
}
.tq-bignum .tq-dot {
    color: var(--tq-red);
    display: inline-block;
    transform: translateY(.05em);
}
.tq-bignum__caption {
    font-family: var(--tq-font);
    font-weight: 700;
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: .14em;
    color: var(--tq-ink);
    margin-top: 16px;
    line-height: 1.4;
}
.tq-bignum__sub {
    font-family: var(--tq-font);
    font-size: 14px;
    color: var(--tq-muted);
    margin-top: 8px;
    line-height: 1.45;
}
.tq-cred__points { list-style: none; padding: 0; margin: 22px 0 0; }
.tq-cred__points li {
    padding: 14px 0;
    border-top: 1px solid var(--tq-line);
    color: var(--tq-ink-2);
    font-size: 16px;
    line-height: 1.55;
    display: flex; gap: 14px; align-items: flex-start;
}
.tq-cred__points li:last-child { border-bottom: 1px solid var(--tq-line); }
.tq-cred__points li::before {
    content: "—";
    color: var(--tq-red);
    font-weight: 800;
    flex: 0 0 auto;
}

/* ---------- FAQ ---------- */
.tq-faq { max-width: 820px; margin: 50px auto 0; }
.tq-faq__item {
    background: #fff;
    border: 1px solid var(--tq-line);
    border-radius: 12px;
    padding: 0;
    margin-bottom: 12px;
    overflow: hidden;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.tq-faq__item.is-open { border-color: var(--tq-red); box-shadow: var(--tq-shadow-sm); }
.tq-faq__btn {
    width: 100%;
    text-align: left;
    background: transparent;
    border: 0;
    padding: 22px 24px;
    font-family: var(--tq-font);
    font-weight: 700;
    font-size: 17px;
    color: var(--tq-ink);
    display: flex; justify-content: space-between; align-items: center; gap: 18px;
    cursor: pointer;
}
.tq-faq__icon {
    width: 28px; height: 28px;
    border-radius: 50%;
    background: var(--tq-red-soft);
    color: var(--tq-red);
    display: inline-flex; align-items: center; justify-content: center;
    font-weight: 800;
    font-size: 18px;
    flex: 0 0 auto;
    transition: transform .2s ease;
}
.tq-faq__item.is-open .tq-faq__icon { transform: rotate(45deg); background: var(--tq-red); color: #fff; }
.tq-faq__body {
    max-height: 0; overflow: hidden;
    transition: max-height .25s ease;
    padding: 0 24px;
    color: var(--tq-muted);
    font-size: 15.5px;
    line-height: 1.65;
}
.tq-faq__item.is-open .tq-faq__body { max-height: 360px; padding: 0 24px 22px; }

/* ---------- Final CTA ---------- */
.tq-final {
    background: var(--tq-bg-darker);
    color: #fff;
    padding: 110px 0;
    position: relative;
    overflow: hidden;
}
.tq-final::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(60% 60% at 80% 50%, rgba(var(--color-brand-red-rgb),.22), transparent 60%);
    pointer-events: none;
}
.tq-final h2 { color: #fff; font-weight: 800; }
.tq-final .tq-lead { color: #C7CAD0; }
.tq-final__points {
    list-style: none; padding: 0; margin: 30px 0 0;
}
.tq-final__points li {
    color: #C7CAD0; font-size: 15px; padding: 8px 0;
    display: flex; align-items: center; gap: 10px;
}
.tq-final__points li i { color: var(--tq-red); }

.tq-final__card {
    background: #fff;
    color: var(--tq-ink);
    border-radius: var(--tq-radius);
    padding: 40px;
    box-shadow: var(--tq-shadow-lg);
    position: relative;
    z-index: 2;
}
.tq-final__card h3 { color: var(--tq-ink); }
.tq-final__row { display: grid; grid-template-columns: 1fr; gap: 14px; margin-top: 20px; }
.tq-final__row label { font-size: 13px; font-weight: 700; color: var(--tq-ink); margin-bottom: 4px; display: block; }
.tq-final__row input,
.tq-final__row textarea,
.tq-final__row select {
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid var(--tq-line);
    font-family: var(--tq-font);
    font-size: 15px;
    background: #fff;
    color: var(--tq-ink);
    transition: border-color .15s ease, box-shadow .15s ease;
}
.tq-final__row input:focus,
.tq-final__row textarea:focus,
.tq-final__row select:focus {
    outline: none;
    border-color: var(--tq-red);
    box-shadow: 0 0 0 4px rgba(var(--color-brand-red-rgb),.12);
}
.tq-final__card .tq-btn { width: 100%; justify-content: center; margin-top: 4px; }
.tq-final__small { font-size: 12px; color: var(--tq-muted); margin-top: 12px; text-align: center; }

/* ---------- Section header ---------- */
.tq-section-head { max-width: 760px; margin: 0 auto 10px; text-align: center; }
.tq-section-head .tq-eyebrow { justify-content: center; }

/* ---------- Responsive ---------- */
@@media (max-width: 1199px) {
    .tq-problem-grid { grid-template-columns: repeat(2, 1fr); }
    .tq-dimensions  { grid-template-columns: repeat(3, 1fr); }
    .tq-ai-grid      { grid-template-columns: repeat(2, 1fr); }
    .tq-steps        { grid-template-columns: repeat(5, 1fr); }
    .tq-cred         { grid-template-columns: 1fr; gap: 30px; }
    .tq-cred__left   { text-align: center; }
    .tq-cred__right  { text-align: left; }
}
@@media (max-width: 991px) {
    .tq-section { padding: 80px 0; }
    .tq-hero    { padding: 100px 0 60px; }
    .tq-split, .tq-split--reverse { grid-template-columns: 1fr; gap: 40px; }
    .tq-split--reverse .tq-split__copy { order: 1; }
    .tq-split--reverse .tq-split__visual { order: 2; }
    .tq-dash-grid { grid-template-columns: 1fr; }
    .tq-steps { grid-template-columns: repeat(2, 1fr); gap: 36px 18px; }
    .tq-step:not(:last-child)::after { display: none; }
    .tq-final__points { display: none; }
}
@@media (max-width: 575px) {
    .tq-section { padding: 64px 0; }
    .tq-hero    { padding: 80px 0 50px; }
    .tq-problem-grid, .tq-dimensions, .tq-ai-grid { grid-template-columns: 1fr; }
    .tq-final__card { padding: 26px; }
    .tq-hero__cta-row .tq-btn { width: 100%; justify-content: center; }
}

/* ---------- Hero composition (Excel + arrow + dashboard SVG) ---------- */
.tq-hero-comp { position: relative; }
.tq-hero-comp__excel,
.tq-hero-comp__dash {
    background: #fff;
    border-radius: 14px;
    box-shadow: var(--tq-shadow-lg);
    border: 1px solid var(--tq-line);
    overflow: hidden;
}
.tq-hero-comp__arrow {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%,-50%);
    width: 90px; height: 90px;
    border-radius: 50%;
    background: var(--tq-red);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 18px 36px rgba(var(--color-brand-red-rgb),.35);
    z-index: 4;
}
.tq-hero-comp__arrow .tq-arrow-label {
    position: absolute;
    bottom: -36px; left: 50%; transform: translateX(-50%);
    background: #fff;
    color: var(--tq-ink);
    font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
    padding: 6px 10px; border-radius: 999px;
    border: 1px solid var(--tq-line);
    white-space: nowrap;
}

/* small util */
.tq-mb-0 { margin-bottom: 0 !important; }
.tq-mt-0 { margin-top: 0 !important; }
.tq-text-white { color: #fff !important; }

/* ---------- Legal pages (Privacy, T&C) ---------- */
.tq-legal-hero {
    font-family: var(--tq-font);
    background: var(--tq-bg-darker);
    color: #fff;
    padding: 150px 0 70px;
    position: relative;
    overflow: hidden;
}
.tq-legal-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(60% 60% at 90% 30%, rgba(var(--color-brand-red-rgb),.22), transparent 60%);
    pointer-events: none;
}
.tq-legal-hero h1 {
    color: #fff;
    font-weight: 800;
    font-size: clamp(36px, 4vw, 56px);
    letter-spacing: -.015em;
    margin: 8px 0 14px;
    position: relative;
}
.tq-legal-hero h1 .tq-dot { color: var(--tq-red); }
.tq-legal-hero p {
    color: #B6B9C0;
    font-size: 16px;
    margin: 0;
    max-width: 640px;
    position: relative;
}
.tq-legal-hero .tq-eyebrow { color: var(--color-brand-red-light); }
.tq-legal-hero .tq-eyebrow::before { background: var(--color-brand-red-light); }

.tq-legal-body {
    font-family: var(--tq-font);
    background: #fff;
    padding: 80px 0 120px;
    color: var(--tq-ink-2);
}
.tq-legal-body__inner { max-width: 820px; margin: 0 auto; }
.tq-legal-body p { font-size: 16px; line-height: 1.7; color: var(--tq-ink-2); margin: 0 0 18px; }
.tq-legal-body h2 {
    font-family: var(--tq-font);
    font-weight: 800;
    font-size: 24px;
    color: var(--tq-ink);
    margin: 44px 0 14px;
    letter-spacing: -.005em;
    padding-top: 24px;
    border-top: 1px solid var(--tq-line);
}
.tq-legal-body h2:first-child { padding-top: 0; border-top: 0; margin-top: 0; }
.tq-legal-body h3 {
    font-family: var(--tq-font);
    font-weight: 700;
    font-size: 17px;
    color: var(--tq-ink);
    margin: 22px 0 8px;
}
.tq-legal-body ul {
    list-style: none;
    padding: 0;
    margin: 0 0 18px;
}
.tq-legal-body ul li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
    color: var(--tq-ink-2);
    font-size: 16px;
    line-height: 1.65;
}
.tq-legal-body ul li::before {
    content: "";
    position: absolute;
    left: 0; top: 10px;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--tq-red);
}
.tq-legal-body strong { color: var(--tq-ink); font-weight: 700; }
.tq-legal-body a { color: var(--tq-red); text-decoration: none; border-bottom: 1px solid rgba(var(--color-brand-red-rgb),.4); }
.tq-legal-body a:hover { border-bottom-color: var(--tq-red); }
.tq-legal-meta {
    font-size: 13px;
    color: var(--tq-muted);
    margin: 0 0 36px;
    padding: 12px 16px;
    background: var(--tq-bg-soft);
    border-radius: 8px;
    display: inline-block;
}

/* ===============================================================
   Mobile refinements
   Bootstrap handles the column grid; these rules tighten the
   custom tq-* components for phones and small tablets.
   =============================================================== */

@@media (max-width: 991px) {
    /* Legal pages — tighter top hero, calmer body padding */
    .tq-legal-hero { padding: 110px 0 50px; }
    .tq-legal-body { padding: 60px 0 90px; }
    .tq-legal-body h2 { font-size: 22px; margin: 36px 0 12px; padding-top: 20px; }

    /* Logo strip */
    .tq-logos__row { gap: 32px; }

    /* Hero trust strip — drop pipe separators on tablet */
    .tq-hero__trust { gap: 8px 18px; flex-wrap: wrap; }

    /* AI chat mockup */
    .tq-chat__head .title { font-size: 12px; }
    .tq-bubble { max-width: 100%; }
}

@@media (max-width: 768px) {
    /* Steps go to 2-col, then 1-col below */
    .tq-steps { grid-template-columns: repeat(2, 1fr); gap: 32px 18px; }
    .tq-step:not(:last-child)::after { display: none; }
}

@@media (max-width: 575px) {
    /* Form inputs at 16px to prevent iOS Safari auto-zoom on focus */
    .tq-final__row input,
    .tq-final__row textarea,
    .tq-final__row select { font-size: 16px; }

    /* Steps: stack to single column with comfortable spacing */
    .tq-steps { grid-template-columns: 1fr; gap: 32px; }
    .tq-step { padding: 0; }

    /* Hero typography — keep the headline from wrapping awkwardly on tiny phones */
    .tq-h1 { font-size: 36px; line-height: 1.05; }
    .tq-hero__sub { font-size: 16.5px; }
    .tq-hero__pill { font-size: 11px; padding: 7px 12px; margin-bottom: 22px; }

    /* Hero trust strip — stack vertically, hide the brand-dot separators
       (keep the pair wrapper visible so its strong still renders). */
    .tq-hero__trust { flex-direction: column; align-items: flex-start; gap: 6px; font-size: 13.5px; }
    .tq-hero__trust .tq-trust-pair { display: block; }
    .tq-hero__trust .tq-brand-dot { display: none; }

    /* Big credibility number — keep visible without overflow */
    .tq-bignum { font-size: 140px; }
    .tq-bignum__caption { font-size: 14px; letter-spacing: .12em; }

    /* Cards — slightly tighter padding */
    .tq-problem-card { padding: 24px 22px; }
    .tq-dim         { padding: 18px 16px; }
    .tq-ai-card     { padding: 24px 22px; }

    /* Logo strip — tighter still */
    .tq-logos { padding: 28px 0 22px; }
    .tq-logos__label { margin-bottom: 16px; }
    .tq-logos__row { gap: 20px; }
    .tq-logos__row img { max-height: 34px; max-width: 110px; }

    /* Legal pages */
    .tq-legal-hero { padding: 90px 0 40px; }
    .tq-legal-body { padding: 40px 0 70px; }
    .tq-legal-body p,
    .tq-legal-body ul li { font-size: 15.5px; }
    .tq-legal-body h2 { font-size: 20px; margin: 30px 0 10px; padding-top: 18px; }
    .tq-legal-body h3 { font-size: 16px; }
    .tq-legal-meta { font-size: 12.5px; padding: 10px 14px; margin-bottom: 26px; }

    /* AI dark section */
    .tq-ai-hero__copy h3 { font-size: 24px; }
    .tq-ben__num { font-size: 22px; }
    .tq-stage { padding: 22px; }
    .tq-stage h4 { font-size: 18px; }

    /* Final CTA card padding */
    .tq-final { padding: 80px 0; }
    .tq-final__card { padding: 24px 20px; }

    /* Buttons — guaranteed tap target height */
    .tq-btn { padding: 14px 22px; min-height: 46px; }
}

@@media (max-width: 380px) {
    /* Ultra-small phones — keep everything from cramping */
    .tq-h1 { font-size: 32px; }
    .tq-h2 { font-size: 26px; }
    .tq-bignum { font-size: 120px; }
    .tq-section { padding: 56px 0; }
    .tq-hero { padding: 70px 0 44px; }
}
