/* ================================================================
   raw-materials.css — CostMasters  |  Production-Ready v2.0
   Fully responsive: 400px → 1920px+
   Sections: hero, login card, client strip, webinar, feature
             accordions, commodities, subscription CTA
   ================================================================ */

/* ────────────────────────────────────────────────────────────────
   CSS CUSTOM PROPERTIES
──────────────────────────────────────────────────────────────── */
:root {
    --brand-blue: #4F9FFF;
    --brand-dark-blue: #0d47a1;
    --brand-mid-blue: #1565c0;
    --dark-bg-start: #0a0a1a;
    --dark-bg-mid: #0d0d26;
    --dark-bg-end: #14143d;
    --text-muted: #b0b0b0;
    --border-subtle: rgba(255, 255, 255, 0.1);
    --glass-bg: rgba(255, 255, 255, 0.04);
    --transition-fast: 0.2s ease;
    --transition-med: 0.3s ease;
    --transition-slow: 0.4s ease;
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 20px;
    --shadow-card: 0 10px 40px rgba(0, 0, 0, 0.08);
}

/* ────────────────────────────────────────────────────────────────
   HERO SECTION
──────────────────────────────────────────────────────────────── */
.rm-hero {
    display: flex;
    align-items: center;
    padding: 40px 0;
    overflow: hidden;
}

.rm-hero .row {
    width: 100%;
    align-items: center;
}

.rm-title {
    font-weight: 600;
    font-size: clamp(24px, 4vw, 58px);
    line-height: 1.15;
    padding-bottom: 27px;
    margin-bottom: 0;
    display: block;
    background: linear-gradient(45deg, #ffffff 30%, var(--brand-blue) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    word-break: break-word;
}


 .commodity-item {
    /* padding: 10px 12px; */
    padding: 11px 13px;
    border-radius: var(--radius-md);
    color: #ffffff;
    transition: all var(--transition-med);
    word-break: break-word;
}



.category-tabs-wrapper {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: center;
    gap: 10px;
    /* margin-bottom: 40px; */
    margin-bottom: 26px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
    padding-top: 10px;
}

.rm-title span {
    display: block;
}

.service-header {
    color: var(--brand-blue);
    font-weight: 600;
    font-size: clamp(14px, 1.5vw, 18px);
    margin-bottom: 15px;
}

.service-list {
    margin-top: 0;
}

.service-item {
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    gap: 0;
}

.service-icon {
    color: var(--brand-blue);
    margin-right: 15px;
    margin-top: 4px;
    font-size: clamp(15px, 1.5vw, 18px);
    flex-shrink: 0;
}

.service-text strong {
    font-weight: 700;
    display: block;
    font-size: clamp(14px, 1.3vw, 17px);
    margin-bottom: 2px;
}

.service-text span {
    color: var(--text-muted);
    font-size: clamp(12px, 1.1vw, 13px);
    line-height: 1.4;
}

/* ────────────────────────────────────────────────────────────────
   LOGIN CARD
──────────────────────────────────────────────────────────────── */
.login-wrapper {
    max-width: 420px;
    width: 100%;
}

.login-saas-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(0, 0, 0, 0.04);
    width: 100%;
    position: relative;
    box-sizing: border-box;
}

/* ── Input Fields ── */
.saas-input {
    width: 100%;
    padding: 10px 15px;
    font-size: clamp(13px, 1.2vw, 15px);
    color: #1e293b;
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md);
    outline: none;
    transition: all var(--transition-fast);
    box-sizing: border-box;
    min-width: 0;
    /* flex shrink fix */
}

.saas-input:focus {
    background-color: #ffffff;
    border-color: #60adff;
    box-shadow: 0 0 0 3px rgba(96, 173, 255, 0.15);
}

.saas-input::placeholder {
    color: #94a3b8;
}

/* OTP compact input */
.otp-input-compact {
    width: 100px !important;
    max-width: 100px !important;
    text-align: center;
    padding: 0 !important;
    letter-spacing: 4px;
    font-weight: 700;
    flex-shrink: 0;
}

/* Secondary resend button */
.btn-secondary-saas {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
    flex-shrink: 0;
}

.btn-secondary-saas:hover:not(:disabled) {
    background: #e2e8f0;
    color: #1e293b;
}

.btn-secondary-saas:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Resend outline button */
.btn-outline-brand {
    font-weight: 600;
    font-size: 12px;
    min-width: 64px;
    padding: 6px 12px;
    border-radius: 50px;
    background: transparent;
    border: 1px solid var(--brand-dark-blue);
    color: var(--brand-dark-blue);
    text-decoration: none;
    transition: all var(--transition-med);
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    line-height: 1.4;
    text-align: center;
}

.btn-outline-brand:hover:not(:disabled) {
    background: var(--brand-blue);
    color: #ffffff;
    border-color: var(--brand-blue);
}

.btn-outline-brand:disabled {
    border-color: #e2e8f0;
    color: #cbd5e1;
    background: #f8fafc;
    cursor: not-allowed;
}

/* Loading spinner */
.btn-loader {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #ffffff;
    animation: spin 1s ease-in-out infinite;
    display: inline-block;
    vertical-align: middle;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* OTP row — flex layout that wraps gracefully */
#loginOtp .otp-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 12px;
}

#loginOtp .otp-row .otp-input-compact {
    flex: 0 0 90px;
}

#loginOtp .otp-row .btn-outline-brand {
    flex: 1 1 70px;
}

#loginOtp .otp-row #otp-submit {
    flex: 1 1 80px;
    height: 42px;
}

/* ────────────────────────────────────────────────────────────────
   WHITE CLIENT STRIP
──────────────────────────────────────────────────────────────── */
.client-strip {
    padding: 35px 0;
    background: #ffffff;
}

.client-strip-text {
    font-size: clamp(13px, 1.3vw, 16px);
}

/* .marquee-wrapper {
    display: flex;
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee-content {
    display: flex;
    animation: scrollMarquee 300s linear infinite;
    will-change: transform;
}

.client-logo {
    height: 40px;
    margin: 0 60px;
    object-fit: contain;
    flex-shrink: 0;
}

@keyframes scrollMarquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
} */
/* Logo */
.client-logo {
    height: 40px;
    width: auto;
    margin: 0 60px;
    object-fit: contain;
    flex-shrink: 0;
    display: block;
}

/* Marquee wrapper */
.marquee-wrapper {
    overflow: hidden;
    width: 100%;
}

/* Scrolling track */
.marquee-content {
    display: flex;
    align-items: center;
    width: max-content;
    animation: scroll 250s linear infinite;
    will-change: transform;
}

/* Smooth animation using transform */
@keyframes scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

/* ────────────────────────────────────────────────────────────────
   WEBINAR STRIP
──────────────────────────────────────────────────────────────── */
.webinar-strip {
    background: linear-gradient(135deg, var(--dark-bg-start) 0%, var(--dark-bg-mid) 50%, var(--dark-bg-end) 100%);
    padding: 30px 0;
}

.strip-tagline {
    font-size: clamp(22px, 3.5vw, 42px);
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
}

.webinar-container {
    position: relative;
    width: 100%;
    /* REMOVED: height: 320px; */
    height: auto;
    min-height: 250px;
    display: flex;
}

.webinar-card {
    /* CHANGE: relative allows it to expand the container's height */
    position: relative;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgb(92, 92, 92);
    color: #fff;
    padding: 1.25rem;
    border-radius: var(--radius-lg);
    width: 100%;
    z-index: 2;

    /* CRITICAL: This fixes the text breaking out of the box */
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
}

.webinar-card h3 {
    font-size: clamp(20px, 2.5vw, 28px);
    margin-top: 10px;
    margin-bottom: 15px;
    line-height: 1.2;
}

.webinar-card p {
    font-size: 15px;
    line-height: 1.5;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.8);
}


/* Ensure the image doesn't interfere with text height if used as background */
.webinar-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.webinar-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-lg);
}

.webinar-badge {
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .15);
    backdrop-filter: blur(10px);
    color: #fff;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    width: fit-content;
}

.live-dot {
    width: 8px;
    height: 8px;
    background: #ff3b30;
    border-radius: 50%;
    display: inline-block;
}

.hidden {
    opacity: 0 !important;
    pointer-events: none !important;
}

/* ────────────────────────────────────────────────────────────────
   FEATURE ACCORDIONS
──────────────────────────────────────────────────────────────── */
.feature-snap-section {
    padding: 60px 0;
    background: #ffffff;
    color: #333;
}

.internal-card-title {
    font-size: clamp(20px, 2.5vw, 32px);
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 20px;
    color: #1a1a1a;
}

.internal-card-title span {
    display: block;
    background: linear-gradient(90deg, var(--brand-dark-blue), var(--brand-blue));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.accordion-item {
    border: none;
    background: transparent;
    position: relative;
    margin-top: 5px;
}

.accordion-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: #eeeeee;
    transition: all var(--transition-slow);
    z-index: 1;
}

.accordion-item:has(.accordion-button:not(.collapsed))::before {
    background: linear-gradient(90deg, var(--brand-dark-blue), var(--brand-blue));
    height: 1.5px;
}

.accordion-button {
    background: transparent !important;
    color: #333 !important;
    font-weight: 700;
    font-size: clamp(14px, 1.5vw, 20px);
    padding: 18px 0;
    border: none;
    transition: color var(--transition-med);
    box-shadow: none !important;
    width: 100%;
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.accordion-button::after {
    background-image: none !important;
    content: "\f078";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    margin-left: auto;
    font-size: 14px;
    transition: transform var(--transition-slow);
    color: #ccc;
    flex-shrink: 0;
    padding-left: 12px;
}

.accordion-button:not(.collapsed) {
    color: var(--brand-blue) !important;
}

.accordion-button:not(.collapsed)::after {
    transform: rotate(-180deg);
    color: var(--brand-blue);
}

.accordion-body {
    padding: 0 0 25px 10px;
    font-size: clamp(13px, 1.2vw, 15px);
    color: #666;
    line-height: 1.7;
}

.accordion-button:hover {
    color: var(--brand-blue) !important;
}

.accordion-button:hover::after {
    color: var(--brand-blue);
}

/* Feature image transition */
#dynamicFeatureImg,
#dynamicFeatureImg2 {
    transition: opacity var(--transition-slow);
    max-height: 850px;
    width: auto;
    max-width: 100%;
}

/* ────────────────────────────────────────────────────────────────
   COMMODITIES — DARK + GLASS STYLE
──────────────────────────────────────────────────────────────── */
.commodities-track-section {
    /* padding: 80px 0; */
    padding: 30px 0;
    background: linear-gradient(135deg, var(--dark-bg-start) 0%, var(--dark-bg-mid) 50%, var(--dark-bg-end) 100%);
    color: #ffffff;
}

.track-title {
    font-size: clamp(22px, 3.5vw, 42px);
    font-weight: 700;
    background: linear-gradient(45deg, #ffffff 30%, var(--brand-blue) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.category-tabs-wrapper {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: center;
    gap: 10px;
    /* margin-bottom: 40px; */
    margin-bottom: 20px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
}

.category-tabs-wrapper::-webkit-scrollbar {
    display: none;
}

.tab-pill {
    background: var(--glass-bg);
    border: 1px solid var(--border-subtle);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #ffffff;
    white-space: nowrap;
    padding: 8px 18px;
    border-radius: 50px;
    font-size: clamp(12px, 1.1vw, 13px);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-med);
    flex-shrink: 0;
}

.tab-pill:hover {
    background: rgba(79, 159, 255, 0.15);
    border-color: var(--brand-blue);
}

.tab-pill.active {
    background: linear-gradient(135deg, var(--brand-dark-blue) 0%, #0b3d91 60%, var(--brand-blue) 100%);
    border-color: var(--brand-blue);
    color: #ffffff;
}

.commodity-list-container {
    background: var(--glass-bg);
    border: 1px solid var(--border-subtle);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.commodity-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* padding: 16px 30px; */
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-size: clamp(12px, 1.1vw, 14px);
}

.commodity-row:last-child {
    border-bottom: none;
}

.commodity-row:nth-child(even) {
    background: rgba(255, 255, 255, 0.02);
}

.commodity-item {
    /* padding: 10px 12px; */
    padding: 6px 12px;
    border-radius: var(--radius-md);
    color: #ffffff;
    transition: all var(--transition-med);
    word-break: break-word;
}

.commodity-item:hover {
    background: rgba(79, 159, 255, 0.15);
    color: var(--brand-blue);
    transform: translateY(-2px);
}

/* ────────────────────────────────────────────────────────────────
   SUBSCRIPTION CTA SECTION
──────────────────────────────────────────────────────────────── */
.subscription-section {
    background: #ffffff;
    padding: 40px 0;
}

.subscription-section h2 {
    color: #0d1b3e;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 16px;
    font-size: clamp(20px, 3vw, 36px);
}

.subscription-highlight {
    color: var(--brand-blue);
    font-style: italic;
}

/* last section */

.rm-glass-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgb(245, 245, 255);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 20px;
    padding: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.rm-glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

.rm-sq-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: white;
    font-size: 20px;
    background: linear-gradient(135deg, #0d47a1 0%, #4F9FFF 100%);
    flex-shrink: 0;
}

.rm-glass-card h4 {
    font-size: 19px;
    font-weight: 700;
    color: #0d47a1;
    margin-bottom: 0;
    transition: 0.4s;
}

.rm-glass-card p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

.rm-feature-title {
    color: #1d1d1f;
    font-weight: 700;
    font-size: 20px;
    margin-bottom: 12px;
}

.rm-sub-feature-list {
    list-style: none;
    padding: 0;
    margin-top: 15px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.rm-sub-feature-list li {
    font-size: 13px;
    color: #6e6e73;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ════════════════════════════════════════════════════════════════
   RESPONSIVE BREAKPOINTS
   Strategy: mobile-first fluid sizing via clamp() + targeted
   overrides for layout changes at key breakpoints
════════════════════════════════════════════════════════════════ */

/* ── XL (≤1199px) ── */
@media (max-width: 1199px) {
    .feature-snap-section {
        padding: 80px 0;
    }

    .commodities-track-section {
        padding: 70px 0;
    }

    .subscription-section {
        padding: 80px 0;
    }
}

/* ── Tablet landscape (≤991px) ── */
@media (max-width: 991px) {

    /* Hero */
    .rm-hero {
        padding: 40px 0;
    }

    /* Stack hero columns */
    .rm-hero .row {
        flex-direction: column !important;
    }

    .rm-hero .col-lg-6 {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
    }

    .rm-hero .col-lg-6:first-child {
        margin-bottom: 32px;
    }

    /* Login wrapper full width on tablet */
    .login-wrapper {
        max-width: 100% !important;
        width: 100%;
    }

    .webinar-strip {
        padding: 40px 0;
    }

    .webinar-card {
        padding: 20px;
    }

    .strip-tagline {
        margin-bottom: 30px;
        text-align: center;
    }

    .webinar-strip .col-lg-7,
    .webinar-strip .col-lg-5 {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
    }

    .webinar-container {
        height: 280px;
        margin-top: 24px;
    }

    /* Feature accordions: stack image above text */
    .feature-snap-section {
        padding: 60px 0;
    }

    .feature-snap-section .row {
        flex-direction: column !important;
    }

    /* Second feature row: image comes after text on tablet */
    .feature-snap-section .row.row-reverse-tablet {
        flex-direction: column-reverse !important;
    }

    .feature-snap-section .col-lg-6 {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    #dynamicFeatureImg,
    #dynamicFeatureImg2 {
        max-height: 380px !important;
        margin-bottom: 28px;
    }

    /* Commodities: 3-col grid */
    .commodities-track-section {
        padding: 60px 0;
    }

    .commodity-row {
        grid-template-columns: repeat(3, 1fr);
        padding: 12px 20px;
    }

    /* Subscription */
    .subscription-section {
        padding: 60px 0;
    }

    /* Bootstrap col overrides */
    .row>.col-lg-6,
    .row>.col-lg-7,
    .row>.col-lg-5,
    .row>.col-lg-4 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* ── Tablet portrait (≤768px) ── */
@media (max-width: 768px) {

    /* Client strip */
    .client-strip {
        padding: 24px 0;
    }

    .client-logo {
        height: 28px;
        margin: 0 36px;
    }

    /* Webinar */
    .webinar-card {
        padding: 22px;
    }

    .webinar-card h3 {
        font-size: 18px;
    }

    .webinar-card p {
        font-size: 14px;
    }

    .webinar-container {
        height: 260px;
    }

    /* Feature accordions */
    .accordion-button {
        padding: 16px 0;
    }

    #dynamicFeatureImg,
    #dynamicFeatureImg2 {
        max-height: 320px !important;
    }

    /* Commodities: 2-col grid */
    .commodity-row {
        grid-template-columns: repeat(2, 1fr);
        padding: 10px 16px;
    }

    /* Subscription: single column */
    .subscription-section .sub-row {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        max-width: 100%;
    }

    .subscription-section .sub-row::after {
        display: none;
    }

    .subscription-section .sub-col {
        padding: 0 4px;
    }

    .subscription-section .sub-col:first-child .col-title,
    .subscription-section .sub-col:first-child p {
        text-align: left;
    }
}

/* ── Mobile (≤575px) ── */
@media (max-width: 575px) {

    /* Hero */
    .rm-hero {
        padding: 28px 0;
    }

    .service-header {
        font-size: 14px;
    }

    /* Login card */
    .login-saas-card {
        padding: 18px 16px;
    }

    /* OTP row stacks cleanly */
    .otp-input-compact {
        width: 80px !important;
        max-width: 80px !important;
    }

    /* Client strip */
    .client-strip {
        padding: 20px 0;
    }

    .client-logo {
        height: 22px;
        margin: 0 24px;
    }

    /* Webinar */
    .strip-tagline {
        text-align: center;
    }

    .webinar-card {
        padding: 18px 16px;
    }

    .webinar-card h3 {
        font-size: 16px;
    }

    .webinar-card p {
        font-size: 13px;
    }

    .webinar-container {
        height: 270px;
    }

    /* Feature accordions */
    .feature-snap-section {
        padding: 40px 0;
    }

    .accordion-button {
        padding: 14px 0;
    }

    .accordion-body {
        padding-bottom: 18px;
    }

    #dynamicFeatureImg,
    #dynamicFeatureImg2 {
        max-height: 240px !important;
        margin-bottom: 20px;
    }

    /* Commodities */
    .commodities-track-section {
        padding: 44px 0;
    }

    .category-tabs-wrapper {
        justify-content: flex-start;
    }

    .tab-pill {
        padding: 6px 14px;
    }

    .commodity-row {
        grid-template-columns: repeat(2, 1fr);
        padding: 8px 12px;
    }

    .commodity-item {
        padding: 8px;
        font-size: 12px;
    }

    /* Subscription */
    .subscription-section {
        padding: 44px 0;
    }

    .subscription-section h2 {
        padding: 0 8px;
    }

    .subscription-section .sub-col {
        padding: 0;
    }
}

/* ── Small mobile (≤400px) ── */
@media (max-width: 400px) {
    .rm-hero {
        padding: 20px 0;
    }

    .service-icon {
        font-size: 14px;
    }

    .login-saas-card {
        padding: 14px 12px;
    }

    /* OTP row: allow wrapping on very small screens */
    #loginOtp .d-flex.gap-2 {
        flex-wrap: wrap;
    }

    #loginOtp .btn-outline-brand,
    #loginOtp #otp-submit {
        flex: 1 1 auto;
    }

    .otp-input-compact {
        width: 100% !important;
        max-width: 100% !important;
    }

    .client-logo {
        height: 18px;
        margin: 0 16px;
    }

    /* Commodities: always 2-col, tighter */
    .commodity-row {
        grid-template-columns: 1fr 1fr;
        padding: 6px 8px;
    }

    .commodity-item {
        padding: 6px;
        font-size: 11px;
    }

    /* Subscription */
    .subscription-section .sub-row {
        grid-template-columns: 1fr;
    }

    .subscription-section .sub-row::after {
        display: none;
    }

    .subscription-section .sub-col {
        padding: 0;
    }

    .subscription-section .sub-col:first-child p {
        text-align: left;
    }
}

/* ── Large / wide screens (≥1400px) ── */
@media (min-width: 1400px) {
    .rm-hero {
        padding: 60px 0;
    }

    .feature-snap-section {
        padding: 120px 0;
    }

    .commodities-track-section {
        padding: 100px 0;
    }

    .subscription-section {
        padding: 120px 0;
    }
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
    .marquee-content {
        animation: none;
    }

    .btn-loader {
        animation: none;
    }

    .commodity-item {
        transition: none;
    }

    #dynamicFeatureImg,
    #dynamicFeatureImg2 {
        transition: none;
    }

    .webinar-card,
    .webinar-image {
        transition: none;
    }

    .tab-pill {
        transition: none;
    }

    .saas-input {
        transition: none;
    }

    .accordion-button {
        transition: none;
    }

    .accordion-button::after {
        transition: none;
    }
}

/* ── Touch device tap highlighting ── */
@media (hover: none) and (pointer: coarse) {
    .commodity-item:hover {
        background: transparent;
        color: #ffffff;
        transform: none;
    }

    .tab-pill:hover {
        background: var(--glass-bg);
        border-color: var(--border-subtle);
    }

    .btn-outline-brand:hover:not(:disabled) {
        background: transparent;
        color: var(--brand-dark-blue);
        border-color: var(--brand-dark-blue);
    }
}