/* =====================================================================
   TransactBridge homepage (design system): page-only styles.
   Loaded by pages/main/home.ejs and by the new-design hero in pages/main/product.ejs, after style.css
   (which holds the shared ds tokens, base, components and site chrome).
   Every rule is scoped :where(.ds-home), so it only applies inside <body class="ds ds-home"> or a
   <div class="ds ds-home"> wrapper.
   ===================================================================== */

/* display scale: the homepage runs one step larger than inner pages */
:where(.ds-home) h1 {
    font-size: clamp(38px, 5.6vw, 64px);
    line-height: 1.04;
}
:where(.ds-home) h2 {
    font-size: clamp(28px, 3.6vw, 42px);
    line-height: 1.12;
}
:where(.ds-home) h3 {
    font-size: 19px;
}
:where(.ds-home) section {
    padding-block: 96px;
}
:where(.ds-home) .ds-lede {
    max-width: 62ch;
}
:where(.ds-home) .ds-head {
    max-width: 760px;
    margin-bottom: 48px;
}
/* Homepage type scale, matching the reference homepage (px steps of its fluid sizes). Component rules below
   (statement, takeaway label, market panel, closing CTA) set their own sizes and still win. .ds-h1.ds-display
   (64px / 38px) already matches. */
:where(.ds-home) .ds-h2 {
    font-size: 28px;
    line-height: 31px;
}
:where(.ds-home) :is(.ds-step, .ds-steps) h3 {
    font-size: 19px;
    line-height: 1.3;
    letter-spacing: -0.01em;
}
@media (min-width: 992px) {
    :where(.ds-home) .ds-h2 {
        font-size: 36px;
        line-height: 40px;
    }
}
@media (min-width: 1200px) {
    :where(.ds-home) .ds-h2 {
        font-size: 42px;
        line-height: 47px;
    }
}
@media (max-width: 760px) {
    :where(.ds-home) section {
        padding-block: 60px;
    }
    :where(.ds-home) .ds-head {
        margin-bottom: 30px;
    }
}

/* hero: globe stage with three localized checkout cards */
:where(.ds-home) .ds-hero {
    padding-block: 72px 64px;
}
:where(.ds-home) .ds-hero .ds-container {
    gap: 40px;
}
:where(.ds-home) .ds-hero-copy {
    gap: 24px;
}
:where(.ds-home) .ds-hero .ds-lede {
    font-size: 19px;
}
:where(.ds-home) .ds-facts {
    gap: 10px 28px;
    padding-top: 8px;
}
:where(.ds-home) .ds-stage {
    position: relative;
    min-height: 540px;
    min-width: 0;
}
:where(.ds-home) .ds-globe {
    position: absolute;
    inset: 0;
    margin: auto;
    width: min(520px, 100%);
    height: auto;
    color: var(--ds-line-2);
}
:where(.ds-home) .ds-globe .ds-globe-route {
    stroke: var(--ds-blue);
    stroke-width: 1.6;
    fill: none;
    stroke-dasharray: 4 7;
    animation: ds-route-dash 6s linear infinite;
}
:where(.ds-home) .ds-globe .ds-node {
    fill: var(--ds-surface);
    stroke: var(--ds-blue);
    stroke-width: 2;
}
:where(.ds-home) .ds-globe .ds-hub {
    fill: var(--ds-blue);
}
@keyframes ds-route-dash {
    to {
        stroke-dashoffset: -110;
    }
}
:where(.ds-home) .ds-card {
    position: absolute;
    width: 236px;
    background: var(--ds-surface);
    border: 1px solid var(--ds-line);
    border-radius: 12px;
    box-shadow: var(--ds-shadow);
    font-size: 13px;
    overflow: hidden;
}
:where(.ds-home) .ds-card .ds-url {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-bottom: 1px solid var(--ds-line);
    font-family: var(--ds-f-mono);
    font-size: 10.5px;
    color: var(--ds-slate);
    background: var(--ds-bg);
}
:where(.ds-home) .ds-card .ds-url i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--ds-line-2);
}
:where(.ds-home) .ds-card .ds-bd {
    padding: 12px 14px 14px;
    display: grid;
    gap: 8px;
}
:where(.ds-home) .ds-card .ds-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 10px;
}
:where(.ds-home) .ds-card .ds-mk {
    font-family: var(--ds-f-head);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ds-slate);
}
:where(.ds-home) .ds-card .ds-plan {
    font-weight: 600;
    color: var(--ds-heading);
}
:where(.ds-home) .ds-card .ds-amt {
    font-family: var(--ds-f-head);
    font-weight: 800;
    font-size: 24px;
    color: var(--ds-heading);
    letter-spacing: -0.02em;
}
:where(.ds-home) .ds-card .ds-tax {
    font-size: 12px;
    color: var(--ds-slate);
}
/* homepage chips (hero cards + markets panel) sit 1px tighter than the shared component */
:where(.ds-home) .ds-methods {
    gap: 5px;
}
:where(.ds-home) .ds-card .ds-methods span {
    font-size: 11.5px;
    padding: 3px 8px;
}
:where(.ds-home) .ds-card .ds-pay {
    height: 30px;
    border-radius: 7px;
    background: var(--ds-blue);
    display: grid;
    place-items: center;
    color: #fff;
    font-family: var(--ds-f-head);
    font-weight: 700;
    font-size: 13px;
}
:where(.ds-home) .ds-card .ds-sold {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-top: 1px dashed var(--ds-line-2);
    font-size: 11.5px;
    color: var(--ds-ink);
    background: var(--ds-bg);
}
:where(.ds-home) .ds-card .ds-sold b {
    color: var(--ds-heading);
}
:where(.ds-home) .ds-card .ds-sold svg {
    flex: none;
    color: var(--ds-ok);
}
:where(.ds-home) .ds-c-in {
    top: 24px;
    right: 4%;
}
:where(.ds-home) .ds-c-eu {
    bottom: 22px;
    right: 30%;
}
:where(.ds-home) .ds-c-us {
    top: 44%;
    left: 0;
}
@media (max-width: 980px) {
    :where(.ds-home) .ds-stage {
        min-height: 0;
        display: grid;
        justify-items: center;
        padding-top: 8px;
    }
    :where(.ds-home) .ds-globe {
        position: absolute;
        width: 360px;
        opacity: 0.55;
        top: -30px;
    }
    :where(.ds-home) .ds-card {
        position: relative;
        inset: auto;
    }
    :where(.ds-home) .ds-c-eu,
    :where(.ds-home) .ds-c-us {
        display: none;
    }
}

/* what is TransactBridge (section uses .ds-alt.ds-tight) */
:where(.ds-home) .ds-what-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 56px;
    align-items: center;
}
:where(.ds-home) .ds-what-copy {
    display: grid;
    gap: 14px;
    min-width: 0;
}
:where(.ds-home) .ds-what-copy .ds-statement {
    font-family: var(--ds-f-head);
    line-height: 1.25;
    letter-spacing: -0.015em;
    color: var(--ds-heading);
    margin: 0;
    text-wrap: pretty;
}
:where(.ds-home) .ds-what-copy .ds-statement {
    font-weight: 700;
    font-size: 22px;
    line-height: 1.25;
}
@media (min-width: 992px) {
    :where(.ds-home) .ds-what-copy .ds-statement {
        font-size: 23px;
    }
}
@media (min-width: 1200px) {
    :where(.ds-home) .ds-what-copy .ds-statement {
        font-size: 28px;
    }
}
:where(.ds-home) .ds-what-copy .ds-statement em {
    font-style: normal;
    color: var(--ds-blue);
}
:where(.ds-home) .ds-entities {
    font-size: 14px;
    color: var(--ds-slate);
}
:where(.ds-home) .ds-entities b {
    color: var(--ds-heading);
    font-weight: 600;
}
:where(.ds-home) .ds-takeon {
    display: grid;
    gap: 14px;
    min-width: 0;
}
:where(.ds-home) .ds-takeon h3 {
    font-size: 12.5px;
    line-height: 1.3;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ds-slate);
}
:where(.ds-home) .ds-takeon ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px 20px;
}
:where(.ds-home) .ds-takeon li {
    display: grid;
    gap: 6px;
    align-content: start;
    font-weight: 600;
    color: var(--ds-heading);
    font-size: 14.5px;
    line-height: 1.3;
}
:where(.ds-home) .ds-takeon li small {
    display: block;
    font-weight: 400;
    color: var(--ds-slate);
    font-size: 13px;
    margin-top: 2px;
}
:where(.ds-home) .ds-ico {
    color: var(--ds-blue);
    display: block;
}
:where(.ds-home) .ds-takeon .ds-who {
    font-size: 13.5px;
    color: var(--ds-slate);
}
@media (max-width: 980px) {
    :where(.ds-home) .ds-what-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
    }
}
@media (max-width: 560px) {
    :where(.ds-home) .ds-takeon ul {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* comparison table (stacks into cards below 760px) */
:where(.ds-home) .ds-cmp-wrap {
    border: 1px solid var(--ds-line);
    border-radius: 14px;
    overflow: hidden;
    background: var(--ds-surface);
}
:where(.ds-home) table.ds-cmp {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
}
:where(.ds-home) .ds-cmp th,
:where(.ds-home) .ds-cmp td {
    text-align: left;
    padding: 15px 20px;
    border-bottom: 1px solid var(--ds-line);
    vertical-align: top;
}
:where(.ds-home) .ds-cmp thead th {
    font-family: var(--ds-f-head);
    font-size: 14px;
    font-weight: 700;
    color: var(--ds-heading);
    background: var(--ds-bg);
}
:where(.ds-home) .ds-cmp thead th.ds-us {
    background: var(--ds-blue);
    color: #fff;
}
:where(.ds-home) .ds-cmp tbody th {
    font-weight: 600;
    color: var(--ds-heading);
    width: 22%;
}
:where(.ds-home) .ds-cmp td {
    color: var(--ds-ink);
    width: 26%;
}
:where(.ds-home) .ds-cmp td.ds-us {
    background: var(--ds-mist);
    color: var(--ds-heading);
    font-weight: 600;
}
:where(.ds-home) .ds-cmp tbody tr:last-child th,
:where(.ds-home) .ds-cmp tbody tr:last-child td {
    border-bottom: 0;
}
:where(.ds-home) .ds-cmp tr.ds-fit th,
:where(.ds-home) .ds-cmp tr.ds-fit td {
    background: var(--ds-bg);
}
:where(.ds-home) .ds-cmp tr.ds-fit td.ds-us {
    background: var(--ds-mist);
}
:where(.ds-home) .ds-below {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 28px;
    align-items: center;
    margin-top: 20px;
    font-size: 14.5px;
    color: var(--ds-slate);
}
@media (max-width: 760px) {
    :where(.ds-home) .ds-cmp-wrap {
        border: 0;
        border-radius: 0;
        background: transparent;
        overflow: visible;
    }
    :where(.ds-home) .ds-cmp thead {
        display: none;
    }
    :where(.ds-home) .ds-cmp,
    :where(.ds-home) .ds-cmp tbody {
        display: grid;
        gap: 12px;
        width: 100%;
    }
    :where(.ds-home) .ds-cmp tr,
    :where(.ds-home) .ds-cmp tr.ds-fit {
        display: flex;
        flex-direction: column;
        gap: 8px;
        background: var(--ds-surface);
        border: 1px solid var(--ds-line);
        border-radius: 14px;
        padding: 16px;
    }
    :where(.ds-home) .ds-cmp tbody th,
    :where(.ds-home) .ds-cmp td,
    :where(.ds-home) .ds-cmp tr.ds-fit th,
    :where(.ds-home) .ds-cmp tr.ds-fit td {
        display: grid;
        gap: 1px;
        width: auto !important;
        border: 0;
        padding: 0;
        background: transparent;
    }
    :where(.ds-home) .ds-cmp tbody th {
        font-family: var(--ds-f-head);
        font-size: 16.5px;
        line-height: 1.3;
        margin-bottom: 2px;
    }
    :where(.ds-home) .ds-cmp td {
        font-size: 14px;
        color: var(--ds-slate);
        display: grid;
        gap: 1px;
    }
    :where(.ds-home) .ds-cmp td::before {
        content: attr(data-col);
        font-size: 11.5px;
        font-weight: 700;
        letter-spacing: 0.06em;
        text-transform: uppercase;
        color: var(--ds-slate);
    }
    :where(.ds-home) .ds-cmp td.ds-us,
    :where(.ds-home) .ds-cmp tr.ds-fit td.ds-us {
        order: -1;
        background: transparent;
        color: var(--ds-heading);
        font-size: 15px;
        border: 0;
        border-left: 3px solid var(--ds-blue);
        border-radius: 0;
        padding: 2px 0 2px 12px;
        margin-bottom: 4px;
    }
    :where(.ds-home) .ds-cmp td.ds-us::before {
        color: var(--ds-blue-ink);
    }
    :where(.ds-home) .ds-cmp tbody th {
        order: -2;
    }
}

/* how it works */
:where(.ds-home) .ds-flow {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px;
}
:where(.ds-home) .ds-step {
    padding-top: 20px;
    border-top: 2px solid var(--ds-line-2);
    display: grid;
    gap: 10px;
    align-content: start;
    min-width: 0;
}
:where(.ds-home) .ds-step.ds-mid {
    border-top-color: var(--ds-blue);
}
:where(.ds-home) .ds-step .ds-k {
    font-family: var(--ds-f-head);
    font-weight: 800;
    font-size: 13px;
    color: var(--ds-blue-ink);
}
:where(.ds-home) .ds-step p {
    font-size: 15px;
}
:where(.ds-home) .ds-step .ds-tags {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--ds-slate);
}
@media (max-width: 860px) {
    :where(.ds-home) .ds-flow {
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
    }
}

/* markets explorer (tabs driven by [data-tabs] in /js/script.js) */
:where(.ds-home) .ds-mk-grid {
    display: grid;
    grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}
:where(.ds-home) .ds-mk-list {
    display: grid;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}
:where(.ds-home) .ds-mk-list button {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font: inherit;
    font-weight: 600;
    color: var(--ds-heading);
    background: var(--ds-bg);
    border: 1px solid var(--ds-line);
    border-radius: 10px;
    padding: 12px 14px;
    cursor: pointer;
    text-align: left;
}
:where(.ds-home) .ds-mk-list button:hover {
    border-color: var(--ds-line-2);
}
:where(.ds-home) .ds-mk-list button[aria-selected='true'] {
    border-color: var(--ds-blue);
    background: var(--ds-mist);
}
:where(.ds-home) .ds-mk-panel {
    border: 1px solid var(--ds-line);
    border-radius: 14px;
    padding: 28px;
    display: grid;
    gap: 22px;
    background: var(--ds-bg);
    min-width: 0;
}
:where(.ds-home) .ds-mk-panel .ds-top {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
    align-items: baseline;
}
:where(.ds-home) .ds-mk-panel h3 {
    font-size: 26px;
    line-height: 1.3;
}
:where(.ds-home) .ds-mk-panel .ds-lbl {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ds-slate);
    margin-bottom: 8px;
}
:where(.ds-home) .ds-mk-panel .ds-methods span {
    font-size: 13px;
    padding: 5px 10px;
}
:where(.ds-home) .ds-mk-note {
    border-left: 3px solid var(--ds-blue);
    padding-left: 14px;
}
:where(.ds-home) .ds-mk-note {
    font-size: 14.5px;
    color: var(--ds-ink);
}
:where(.ds-home) .ds-mk-side {
    display: grid;
    gap: 14px;
    align-content: start;
    min-width: 0;
}
:where(.ds-home) .ds-mk-all {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 14px;
    border: 1px dashed var(--ds-blue);
    border-radius: 10px;
    background: var(--ds-surface);
}
:where(.ds-home) .ds-mk-all:hover {
    background: var(--ds-mist);
    text-decoration: none;
}
:where(.ds-home) .ds-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 18px;
    font-size: 13.5px;
    color: var(--ds-slate);
}
@media (max-width: 860px) {
    :where(.ds-home) .ds-mk-grid {
        grid-template-columns: minmax(0, 1fr);
    }
    :where(.ds-home) .ds-mk-panel {
        padding: 20px;
    }
    :where(.ds-home) .ds-mk-panel h3 {
        font-size: 22px;
    }
}

/* segments */
:where(.ds-home) .ds-seg {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
    gap: 48px;
    align-items: start;
}
:where(.ds-home) .ds-seg-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 32px;
    margin: 0;
    padding: 0;
    list-style: none;
}
:where(.ds-home) .ds-seg-list a {
    display: grid;
    gap: 4px;
    padding: 20px 0;
    border-bottom: 1px solid var(--ds-line);
    text-decoration: none;
}
:where(.ds-home) .ds-seg-list a b {
    font-family: var(--ds-f-head);
    font-size: 18px;
    color: var(--ds-heading);
    display: flex;
    justify-content: space-between;
}
:where(.ds-home) .ds-seg-list a b::after {
    content: '→';
    color: var(--ds-blue);
    transition: transform 0.15s;
}
:where(.ds-home) .ds-seg-list a:hover b::after {
    transform: translateX(4px);
}
:where(.ds-home) .ds-seg-list a span {
    font-size: 14.5px;
    color: var(--ds-ink);
}
@media (max-width: 860px) {
    :where(.ds-home) .ds-seg {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
    }
}
@media (max-width: 560px) {
    :where(.ds-home) .ds-seg-list {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* proof band (section uses .ds-band) */
:where(.ds-home) .ds-story {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 48px;
    align-items: center;
}
:where(.ds-home) .ds-story-copy {
    display: grid;
    gap: 18px;
}
:where(.ds-home) .ds-story-copy p {
    max-width: 56ch;
}
:where(.ds-home) .ds-story-copy p {
    font-size: 17px;
}
:where(.ds-home) .ds-story-copy .ds-arrow-link {
    color: var(--ds-band-accent);
}
:where(.ds-home) .ds-mrr {
    display: grid;
    gap: 12px;
}
:where(.ds-home) .ds-mrr .ds-lbl {
    font-size: 12.5px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ds-band-ink);
}
:where(.ds-home) .ds-mrr .ds-big {
    font-family: var(--ds-f-head);
    font-weight: 800;
    font-size: 44px;
    color: var(--ds-band-head);
    letter-spacing: -0.03em;
}
:where(.ds-home) .ds-mrr svg {
    width: 100%;
    height: auto;
}
:where(.ds-home) .ds-mrr .ds-axis {
    font-size: 11px;
    fill: var(--ds-band-ink);
    font-family: var(--ds-f-body);
}
:where(.ds-home) .ds-proof .ds-stats {
    margin-top: 72px;
    padding-top: 36px;
    border-top: 1px solid var(--ds-band-line);
}
@media (max-width: 980px) {
    :where(.ds-home) .ds-story {
        grid-template-columns: minmax(0, 1fr);
    }
    :where(.ds-home) .ds-proof .ds-stats {
        --ds-cols: 2 !important;
    }
}

/* developers */
:where(.ds-home) .ds-dev {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    gap: 48px;
    align-items: center;
}
:where(.ds-home) .ds-dev-copy {
    display: grid;
    gap: 18px;
}
:where(.ds-home) .ds-dev-list {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 15px;
}
:where(.ds-home) .ds-dev-list li {
    display: flex;
    gap: 10px;
}
:where(.ds-home) .ds-dev-list li::before {
    content: '';
    width: 6px;
    height: 6px;
    margin-top: 10px;
    border-radius: 2px;
    background: var(--ds-blue);
    flex: none;
}
@media (max-width: 980px) {
    :where(.ds-home) .ds-dev {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* closing CTA (section uses .ds-cta-band) */
:where(.ds-home) .ds-final {
    padding-block: 80px;
}
:where(.ds-home) .ds-final h2 {
    font-size: 30px;
    line-height: 34px;
}
@media (min-width: 768px) {
    :where(.ds-home) .ds-final h2 {
        font-size: 31px;
        line-height: 35px;
    }
}
@media (min-width: 992px) {
    :where(.ds-home) .ds-final h2 {
        font-size: 40px;
        line-height: 45px;
    }
}
@media (min-width: 1200px) {
    :where(.ds-home) .ds-final h2 {
        font-size: 48px;
        line-height: 54px;
    }
}

@media (max-width: 760px) {
    :where(.ds-home) .ds-hero {
        padding-block: 40px 48px;
    }
    :where(.ds-home) .ds-hero-copy {
        gap: 20px;
    }
    :where(.ds-home) .ds-hero .ds-ctas .ds-btn,
    :where(.ds-home) .ds-dev .ds-ctas .ds-btn {
        justify-content: center;
    }
    :where(.ds-home) .ds-facts {
        gap: 8px 20px;
    }
    :where(.ds-home) .ds-stage {
        margin-top: 8px;
    }
    :where(.ds-home) section.ds-what {
        padding-block: 44px;
    }
    :where(.ds-home) .ds-takeon ul {
        gap: 20px 16px;
    }
    :where(.ds-home) .ds-flow {
        gap: 24px;
    }
    /* The reference also declares tighter mobile values for .proof .stats (margin-top 48px),
       .mrr .big (36px) and .final (padding 56px), but its cascade cancels them, so the live
       site keeps the desktop values. Omitted here to match the approved design pixel for pixel. */
    :where(.ds-home) .ds-proof .ds-stats div:last-child {
        grid-column: 1 / -1;
    }
    :where(.ds-home) .ds-final .ds-ctas .ds-btn {
        justify-content: center;
    }
}
