/* Home page sections. Shared tokens and components live in features/front/shared/front.css. */

/* ---------- Utilities ---------- */
.hx-stack-0 { display: flex; flex-direction: column; }
.hx-stack-2 { display: flex; flex-direction: column; gap: 2px; }
.hx-stack-4 { display: flex; flex-direction: column; gap: 4px; }
.hx-stack-12 { display: flex; flex-direction: column; gap: 12px; }
.hx-stack-48 { display: flex; flex-direction: column; gap: 48px; }
.hx-stack-56 { display: flex; flex-direction: column; gap: 56px; }
.hx-inline-6 { display: flex; flex-wrap: wrap; gap: 6px; }
.hx-inline-8 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.hx-inline-12 { display: flex; align-items: center; gap: 12px; }
.hx-min0 { min-width: 0; }
.hx-max-640 { max-width: 640px; }
.hx-max-680 { max-width: 680px; }
.hx-center { text-align: center; }
.hx-ellipsis { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.hx-strong { font: var(--text-body); font-weight: 600; }
.hx-muted { color: var(--ink-muted); }
.hx-subtle { color: var(--ink-subtle); }
.hx-inverse { color: var(--ink-inverse); }
.hx-mist { color: var(--mist); }
.hx-on-brand { color: var(--on-brand); }
.hx-brand-text { color: var(--brand); }
.hx-accent-text { color: var(--accent-text); }
.hx-label { font: var(--text-label); }
.hx-label--15 { font-size: 15px; }
.hx-label-muted { font: var(--text-label); color: var(--ink-muted); }
.hx-label-subtle { font: var(--text-label); color: var(--ink-subtle); }
.hx-label-brand { font: var(--text-label); color: var(--brand); }
.hx-figure { font: var(--text-figure); text-align: right; }
.hx-mono { font: var(--text-mono); }
.hx-mono-sm { font-family: var(--font-mono); font-size: 12px; color: var(--ink-subtle); }
.hx-time { font: var(--text-mono); color: var(--ink-subtle); }
.hx-eyebrow-subtle { font: var(--text-eyebrow); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-subtle); }
.hx-tone-danger { color: var(--danger); }
.hx-tone-ink { color: var(--ink); }
.hx-tone-muted { color: var(--ink-muted); }
.hx-tone-success { color: var(--success); }
.hx-tone-brand { color: var(--brand); }
.hx-border-bottom { border-bottom: 1px solid var(--line-100); }

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

.hx-chip {
    padding: 4px 10px;
    border-radius: 6px;
    background: var(--surface-200);
    color: var(--ink-muted);
    font: var(--text-mono);
}

/* ---------- Shared visual frames ---------- */
.hx-stage {
    border-radius: 24px;
    padding: 40px;
}

.hx-stage--tint {
    background: var(--brand-tint);
}

.hx-stage--sunken {
    background: var(--surface-200);
}

.hx-stage--relative {
    position: relative;
}

.hx-stage--tall {
    padding-bottom: 64px;
}

.hx-card {
    overflow: hidden;
    border-radius: 16px;
    background: var(--surface-000);
    box-shadow: var(--shadow-2);
}

.hx-card--padded {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 24px;
}

.hx-card__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 22px;
    border-bottom: 1px solid var(--line-100);
}

.hx-card__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 22px;
    background: var(--surface-200);
}

/* ---------- Split section heads ---------- */
.hx-split-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px 64px;
}

.hx-split-head--start {
    justify-content: flex-start;
}

.hx-split-head__title {
    display: flex;
    flex: 1 1 520px;
    flex-direction: column;
    gap: 12px;
}

.hx-split-head__title--wide {
    flex-basis: 560px;
    gap: 16px;
}

.hx-split-head__lead {
    flex: 1 1 320px;
    max-width: 420px;
}

.hx-split-head__lead--wide {
    max-width: none;
}

.hx-section-intro {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 720px;
}

/* ---------- Hero ---------- */
.hx-hero {
    padding: 72px 32px 96px;
}

.hx-hero__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 56px;
}

.hx-hero__copy {
    display: flex;
    flex: 1 1 460px;
    flex-direction: column;
    gap: 28px;
    min-width: 0;
}

.hx-hero__lead {
    max-width: 520px;
    font-size: 20px;
    line-height: 30px;
}

.hx-hero__visual {
    position: relative;
    flex: 1 1 520px;
    min-width: 0;
}

.hx-hero__visual .hx-stage {
    padding: 40px 32px 56px;
}

.hx-ledger-row {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 12px 22px;
    border-bottom: 1px solid var(--line-100);
}

.hx-float-stat {
    position: absolute;
    bottom: -24px;
    left: -28px;
    width: 250px;
    padding: 16px;
    border-radius: 10px;
    background: var(--surface-000);
    box-shadow: var(--shadow-3);
}

/* ---------- Trust strip ---------- */
.hx-trust {
    border-top: 1px solid var(--line-100);
    border-bottom: 1px solid var(--line-100);
    background: var(--surface-000);
}

.hx-trust__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 24px 56px;
    padding: 28px 32px;
}

.hx-trust__logos {
    display: flex;
    flex: 1 1 auto;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 24px 56px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.hx-trust__logos img {
    display: block;
    width: auto;
    max-height: 64px;
    opacity: 0.7;
    filter: grayscale(1);
    transition: opacity 0.16s ease-out;
}

.hx-trust__logos img:hover {
    opacity: 1;
}

/* ---------- Modules index ---------- */
.hx-modules {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 2px solid var(--ink);
}

.vx-body .hx-module {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 168px;
    padding: 28px 28px 32px 0;
    border-bottom: 1px solid var(--line-100);
    color: var(--ink);
    text-decoration: none;
}

.vx-body .hx-module:hover .hx-module__name {
    color: var(--brand);
}

.hx-module__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    /* Same height as the "Nuevo" badge, so titles line up whether or not a module has one. */
    min-height: 24px;
    padding-right: 8px;
}

.hx-module__n {
    font: var(--text-mono);
    font-size: 14px;
    color: var(--ink-subtle);
}

.hx-module__name {
    letter-spacing: -0.01em;
    transition: color 0.16s ease-out;
}

.hx-module__desc {
    max-width: 320px;
}

/* ---------- Feature sections ---------- */
.hx-feature {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 64px;
}

.hx-feature--reverse {
    flex-wrap: wrap-reverse;
}

.hx-feature__copy {
    display: flex;
    flex: 1 1 400px;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
}

.hx-feature__visual {
    flex: 1 1 520px;
    min-width: 0;
}

/* iPad app */
.hx-ipad {
    padding: 12px;
    border-radius: 26px;
    background: #1d1d1f;
    box-shadow: var(--shadow-3);
}

.hx-ipad img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 14px;
}

.vx-body .hx-appstore {
    display: inline-flex;
    flex: none;
    align-items: center;
    gap: 10px;
    height: 52px;
    padding: 0 18px 0 14px;
    border-radius: 10px;
    background: #000;
    color: #fff;
    text-decoration: none;
    transition: opacity 0.16s ease-out;
}

.vx-body .hx-appstore:hover {
    opacity: 0.85;
}

.hx-appstore img {
    width: 24px;
    height: 24px;
}

.hx-appstore__small {
    font: 500 11px/13px var(--font-sans);
}

.hx-appstore__big {
    font: 600 20px/22px var(--font-sans);
    letter-spacing: -0.01em;
}

/* Expenses */
.hx-expense {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 20px;
}

/* A photographed A4 supplier invoice: small type, portrait proportions, slightly tilted. */
.hx-invoice-doc {
    display: flex;
    flex: 0 1 250px;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
    aspect-ratio: 1 / 1.414;
    padding: 20px 18px;
    border-top: 4px solid var(--ink);
    border-radius: 4px;
    background: var(--surface-000);
    box-shadow: var(--shadow-2);
    color: var(--ink-muted);
    font: 400 9px/13px var(--font-sans);
    font-variant-numeric: tabular-nums;
    transform: rotate(-2.5deg);
}

.hx-invoice-doc__head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.hx-invoice-doc__supplier {
    color: var(--ink);
    font-size: 12px;
    font-weight: 700;
    line-height: 16px;
}

.hx-invoice-doc__ref {
    text-align: right;
    white-space: nowrap;
}

.hx-invoice-doc__label {
    color: var(--ink);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 16px;
}

.hx-invoice-doc__client {
    padding: 6px 8px;
    border-radius: 3px;
    background: var(--surface-100);
}

.hx-invoice-doc__caption,
.hx-invoice-doc__th {
    color: var(--ink-subtle);
    font-size: 8px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.hx-invoice-doc__table,
.hx-invoice-doc__totals {
    display: grid;
    gap: 4px 10px;
}

.hx-invoice-doc__table {
    grid-template-columns: minmax(0, 1fr) auto auto;
}

.hx-invoice-doc__th {
    padding-bottom: 4px;
    border-bottom: 1px solid var(--line-100);
}

.hx-invoice-doc__table > :nth-child(3n),
.hx-invoice-doc__totals > :nth-child(2n) {
    text-align: right;
}

.hx-invoice-doc__totals {
    grid-template-columns: auto auto;
    justify-content: end;
    margin-top: auto;
    padding-top: 8px;
    border-top: 1px solid var(--line-100);
}

.hx-invoice-doc__totals strong {
    color: var(--ink);
    font-size: 11px;
    line-height: 16px;
}

.hx-modal {
    display: flex;
    flex: 1 1 260px;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border-radius: 16px;
    background: var(--surface-000);
    box-shadow: var(--shadow-3);
}

.hx-modal__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--line-100);
}

.hx-modal__close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    color: var(--ink-muted);
}

.hx-modal__body {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 16px 20px 20px;
}

.hx-fields {
    padding: 4px 16px;
    border: 1px solid var(--line-100);
    border-radius: 10px;
    background: var(--surface-100);
}

.hx-field-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 0;
    border-bottom: 1px solid var(--line-100);
}

.hx-field-row:last-child {
    border-bottom: 0;
}

/* Inventory */
.hx-product-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.hx-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 16px 10px;
}

.hx-tiles .vd-stat__value {
    font-size: 26px;
    line-height: 34px;
}

.hx-subsection {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 16px;
    border-top: 1px solid var(--line-100);
}

.hx-margin-bar {
    display: flex;
    height: 36px;
    overflow: hidden;
    border-radius: 6px;
    font: var(--text-label);
}

.hx-margin-bar > div {
    display: flex;
    align-items: center;
    padding: 0 10px;
    white-space: nowrap;
}

.hx-margin-bar__cost {
    width: 27%;
    min-width: max-content;
    background: var(--surface-200);
    color: var(--ink);
}

.hx-margin-bar__margin {
    flex: 1;
    justify-content: flex-end;
    background: var(--success-tint);
    color: var(--success);
}

.hx-margin-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    color: var(--ink-muted);
    font: var(--text-body-sm);
}

.hx-lot {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border: 1px solid var(--line-100);
    border-radius: 10px;
}

/* Bookings + time tracking */
.hx-duo {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.hx-panel {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 24px;
    border: 1px solid var(--line-100);
    border-radius: 16px;
    background: var(--surface-100);
}

.hx-panel__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.hx-booking {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    border: 1px solid var(--line-100);
    border-radius: 10px;
    background: var(--surface-000);
}

.hx-shift {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px 14px;
    border: 1px solid var(--line-100);
    border-radius: 10px;
    background: var(--surface-000);
}

.hx-shift__top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.hx-shift__track {
    position: relative;
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: var(--surface-200);
}

.hx-shift__bar {
    position: absolute;
    top: 0;
    bottom: 0;
    border-radius: 999px;
    background: var(--mist);
}

.hx-shift__bar.is-active {
    background: var(--brand);
}

.hx-shift__scale {
    display: flex;
    justify-content: space-between;
}

/* Sales + invoicing */
.hx-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.hx-fact {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-top: 12px;
    border-top: 1px solid var(--line-200);
}

.hx-invoice-row {
    display: grid;
    grid-template-columns: 116px minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 14px;
    padding: 12px 22px;
    border-bottom: 1px solid var(--line-100);
}

.hx-stage--ticket {
    padding-bottom: 140px;
}

.hx-ticket {
    position: absolute;
    right: -20px;
    bottom: -28px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 200px;
    padding: 16px;
    border-radius: 6px;
    background: var(--surface-000);
    box-shadow: var(--shadow-3);
    transform: rotate(2deg);
}

.hx-ticket__lines {
    color: var(--ink-muted);
    white-space: nowrap;
    font-size: 11px;
    line-height: 16px;
}

.hx-ticket__total {
    display: flex;
    justify-content: space-between;
    padding-top: 6px;
    border-top: 1px dashed var(--line-200);
    font-size: 13px;
    font-weight: 600;
}

.hx-ticket__paid {
    color: var(--success);
    font: var(--text-body-sm);
    font-weight: 600;
}

/* ---------- Navy band ---------- */
.hx-navy {
    background: var(--surface-inverse);
    color: var(--ink-inverse);
}

.hx-navy__lead {
    flex: 1 1 300px;
    max-width: 380px;
    opacity: 0.78;
}

.hx-flow {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    margin: 0;
    padding: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.22);
    list-style: none;
}

.hx-flow__step {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 24px 20px 8px 0;
    border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.hx-flow__step + .hx-flow__step {
    padding-left: 20px;
}

.hx-flow__n {
    color: var(--mist);
    font-size: 40px;
    font-weight: 500;
    line-height: 44px;
}

.hx-flow__desc {
    color: var(--ink-inverse);
    font: var(--text-body-sm);
    opacity: 0.75;
}

.hx-flow__ref {
    color: var(--mist);
    font-size: 12px;
}

/* ---------- Accountants ---------- */
.hx-client-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 14px;
    padding: 12px 22px;
    border-bottom: 1px solid var(--line-100);
}

.hx-export {
    position: absolute;
    right: -20px;
    bottom: -28px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 280px;
    padding: 16px;
    border-radius: 10px;
    background: var(--surface-000);
    box-shadow: var(--shadow-3);
}

.hx-icon-tile {
    display: flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--brand-tint);
    color: var(--brand);
}

/* ---------- Sectors ---------- */
.hx-sectors {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.hx-sector {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 28px;
    border: 1px solid var(--line-100);
    border-radius: 16px;
    background: var(--surface-000);
}

.hx-sector__code {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--brand-tint);
    color: var(--brand);
    font: var(--text-label);
    font-family: var(--font-mono);
}

.hx-sector__mods {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--line-100);
}

/* ---------- Testimonials ---------- */
.hx-testimonials {
    display: flex;
    flex-wrap: wrap;
    gap: 48px 64px;
}

.hx-quote-main {
    display: flex;
    flex: 1 1 560px;
    flex-direction: column;
    gap: 28px;
    margin: 0;
}

.hx-quote-main__text {
    margin: 0;
    color: var(--ink);
    font: var(--text-h1);
    font-weight: 600;
    letter-spacing: -0.02em;
}

.hx-quote-main__author {
    display: flex;
    align-items: center;
    gap: 14px;
}

.hx-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--brand-tint);
    color: var(--brand);
    font: var(--text-label);
}

.hx-quote-side {
    display: flex;
    flex: 1 1 340px;
    flex-direction: column;
    gap: 20px;
}

.hx-quote {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 0;
    padding: 24px;
    border: 1px solid var(--line-100);
    border-radius: 16px;
    background: var(--surface-100);
}

.hx-quote blockquote {
    margin: 0;
    font: var(--text-body);
    font-size: 17px;
    line-height: 26px;
}

.hx-quote strong {
    color: var(--ink);
}

/* ---------- Pricing ---------- */
.hx-pricing {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.hx-pricing .pricing {
    width: 100%;
}

.hx-pricing .hx-center + .hx-center {
    margin-top: -28px;
}

/* ---------- Get started ---------- */
.hx-start {
    padding-top: 0;
}

.hx-paths {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 24px;
}

.hx-path {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 48px;
    border: 1px solid var(--line-100);
    border-radius: 24px;
    background: var(--surface-000);
}

.hx-path--brand {
    border-color: var(--brand);
    background: var(--brand);
    color: var(--on-brand);
}

.hx-path__kicker {
    font-size: 13px;
}

.hx-path--brand .hx-path__kicker {
    opacity: 0.8;
}

.hx-path__lead {
    opacity: 0.85;
}

.hx-path__form {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 20px;
    border-radius: 16px;
    background: var(--surface-000);
    color: var(--ink);
}

/* Demo request form: the stack and foot are flex, so `hidden` needs restating. */
.hx-path [hidden] {
    display: none;
}

/* Name + contact side by side, contact wider for its longer placeholder; wraps on phones. */
.hx-demo-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hx-demo-row > :first-child {
    flex: 1 1 150px;
}

.hx-demo-row > :last-child {
    flex: 1.8 1 250px;
}

.hx-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.hx-demo-status {
    margin: 0;
}

.hx-demo-status:empty {
    display: none;
}

.hx-demo-status.is-error {
    color: var(--danger);
}

.hx-path .vd-field__input[aria-invalid="true"] {
    border-color: var(--danger);
}

.hx-demo-done {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    border-radius: 10px;
    background: var(--success-tint);
}

.hx-demo-done__icon svg {
    display: block;
    width: 24px;
    height: 24px;
}

.hx-path__foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: auto;
}

.hx-slots-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.hx-slots {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.hx-slot {
    height: 44px;
    border: 1px solid var(--line-200);
    border-radius: 6px;
    background: var(--surface-000);
    color: var(--ink);
    font: var(--text-label);
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.16s ease-out, border-color 0.16s ease-out, color 0.16s ease-out;
}

.hx-slot:hover {
    border-color: var(--brand);
}

.hx-slot[aria-pressed="true"] {
    border-color: var(--brand);
    background: var(--brand);
    color: var(--on-brand);
}

/* ---------- FAQ ---------- */
.hx-faq {
    display: flex;
    flex-wrap: wrap;
    gap: 48px 64px;
}

.hx-faq__intro {
    display: flex;
    flex: 1 1 320px;
    flex-direction: column;
    gap: 12px;
}

.hx-faq__list {
    flex: 2 1 560px;
    min-width: 0;
    border-top: 1px solid var(--line-200);
}

.hx-faq__item {
    border-bottom: 1px solid var(--line-100);
}

.hx-faq__item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 22px 0;
    color: var(--ink);
    font: var(--text-h3);
    list-style: none;
    cursor: pointer;
}

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

.hx-faq__item .vx-plus {
    flex: none;
    transition: transform 160ms ease-out;
}

.hx-faq__item[open] .vx-plus {
    transform: rotate(45deg);
}

.hx-faq__item p {
    max-width: 640px;
    margin: 0 0 22px;
}

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
    .hx-hero {
        padding: 48px 16px 64px;
    }

    .hx-trust__inner {
        padding: 24px 16px;
    }

    .hx-trust__logos img {
        max-height: 48px;
    }

    .hx-stage,
    .hx-hero__visual .hx-stage {
        padding: 20px;
    }

    .hx-stage--tall,
    .hx-stage--ticket {
        padding-bottom: 20px;
    }

    .hx-feature {
        gap: 40px;
    }

    .hx-feature__copy,
    .hx-feature__visual,
    .hx-hero__copy,
    .hx-hero__visual,
    .hx-split-head__title {
        flex-basis: 100%;
    }

    .hx-modules,
    .hx-duo,
    .hx-paths {
        grid-template-columns: minmax(0, 1fr);
    }

    .hx-actions .vd-btn {
        flex: 1 1 100%;
    }

    .vx-body .hx-module {
        gap: 6px;
        min-height: 0;
        padding: 18px 0 20px;
    }

    .hx-module__name {
        font-size: 22px;
        line-height: 28px;
    }

    .hx-module__desc {
        max-width: none;
    }

    .hx-tiles {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hx-tiles .vd-stat__value {
        font-size: 22px;
        line-height: 28px;
    }

    /* Narrow rows: wrap long names instead of truncating them, and move badges under the text. */
    .hx-ellipsis {
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .hx-lot,
    .hx-client-row {
        grid-template-columns: minmax(0, 1fr) auto;
        row-gap: 8px;
    }

    .hx-lot > .vd-badge,
    .hx-client-row > .vd-badge {
        grid-column: 1;
        grid-row: 2;
        justify-self: start;
    }

    .hx-lot > :last-child,
    .hx-client-row > :last-child {
        grid-column: 2;
        grid-row: 1 / span 2;
    }

    .hx-booking {
        grid-template-columns: 48px minmax(0, 1fr);
        row-gap: 8px;
    }

    .hx-booking > .vd-badge {
        grid-column: 2;
        justify-self: start;
    }

    .hx-panel {
        padding: 16px;
    }

    .hx-sector {
        gap: 12px;
        padding: 20px;
    }

    .hx-sector__code {
        width: 36px;
        height: 36px;
    }

    .hx-facts {
        grid-template-columns: minmax(0, 1fr);
    }

    .hx-invoice-row {
        grid-template-columns: minmax(0, 1fr) auto;
        padding: 12px 16px;
    }

    .hx-invoice-row > :nth-child(1),
    .hx-invoice-row > :nth-child(4) {
        display: none;
    }

    .hx-ledger-row,
    .hx-client-row {
        padding: 12px 16px;
    }

    .hx-path {
        padding: 28px 20px;
    }

    .hx-flow__step,
    .hx-flow__step + .hx-flow__step {
        padding: 20px 0 12px;
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    }

    .hx-quote-main__text {
        font-size: 26px;
        line-height: 34px;
    }

    .hx-faq__item summary {
        font-size: 17px;
        line-height: 24px;
    }
}
