/* ==========================================================================
   HASSAN DURGHAM — Part 3: product page, custom production, responsive, RTL
   ========================================================================== */

/* ==========================================================================
   Product page — split hero
   ========================================================================== */
.product-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
    min-height: 600px;
    background: var(--green-950);
    color: #fff;
    isolation: isolate;
    overflow: hidden;
}

.product-hero__copy {
    padding: clamp(40px, 5vw, 72px) 0 clamp(40px, 5vw, 72px) var(--gutter);
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 3;
    max-width: 760px;
    margin-inline-start: auto;
    width: 100%;
    padding-inline-start: max(var(--gutter), calc((100vw - var(--container)) / 2));
}

.product-hero__media {
    position: relative
}

.product-hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover
}

/* Feather the photo into the dark copy column */
.product-hero__media::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(90deg, var(--green-950) 0%, rgba(10, 28, 15, .55) 22%, transparent 55%);
}

[dir="rtl"] .product-hero__media::before {
    background: linear-gradient(-90deg, var(--green-950) 0%, rgba(10, 28, 15, .55) 22%, transparent 55%)
}

.product-hero__title {
    font-family: var(--font-display);
    font-size: clamp(2.9rem, 5vw, 5rem);
    line-height: 1;
    margin-bottom: 12px
}

.product-hero__subtitle {
    font-size: clamp(1.05rem, 1.5vw, 1.4rem);
    color: var(--gold-soft);
    font-weight: 500;
    margin-bottom: 18px
}

.product-hero__text {
    font-size: .98rem;
    line-height: 1.72;
    color: var(--on-dark-muted);
    max-width: 50ch
}

/* Circular "natural goodness" seal */
.seal {
    position: absolute;
    z-index: 4;
    inset-block-start: 38px;
    inset-inline-end: 46px;
    width: 104px;
    height: 104px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .5);
    display: grid;
    place-items: center;
    background: rgba(10, 28, 15, .30);
    backdrop-filter: blur(3px);
}

.seal svg {
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0
}

.seal__mark {
    width: 26px;
    height: 26px;
    color: var(--leaf)
}

.seal__text {
    font-size: 8px;
    letter-spacing: .14em;
    fill: rgba(255, 255, 255, .9);
    text-transform: uppercase
}

.product-hero__script {
    position: absolute;
    z-index: 4;
    inset-block-end: 16%;
    inset-inline-end: 7%;
    font-family: var(--font-script);
    color: #fff;
    font-size: clamp(1.6rem, 2.4vw, 2.4rem);
    line-height: 1.1;
    text-align: center;
    transform: rotate(-8deg);
    text-shadow: 0 2px 18px rgba(0, 0, 0, .4);
}

/* ==========================================================================
   Product gallery strip
   ========================================================================== */
.gallery {
    background: var(--cream-2);
    padding: 18px 0
}

.gallery__track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(150px, 1fr);
    gap: 12px;
    overflow-x: auto;
    scrollbar-width: none
}

.gallery__track::-webkit-scrollbar {
    display: none
}

.gallery__item {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    background: var(--cream-3)
}

.gallery__item>img,
.gallery__item>.ph {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover
}

.gallery__item.is-active {
    border-color: var(--green-600)
}

.gallery__play {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: rgba(10, 24, 12, .32);
    color: #fff;
}

.gallery__play svg {
    width: 30px;
    height: 30px
}

/* ==========================================================================
   Product body — spec column + configurator
   ========================================================================== */
.product-body {
    display: grid;
    grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr);
    gap: clamp(28px, 4vw, 56px);
    align-items: start
}

.spec-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0 26px
}

.spec-table th,
.spec-table td {
    text-align: start;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
    font-size: .84rem;
    vertical-align: top
}

.spec-table th {
    font-weight: 500;
    color: var(--muted);
    width: 38%
}

.spec-table td {
    font-weight: 500;
    color: var(--ink)
}

.video-card {
    position: relative;
    margin-top: 28px;
    min-height: 300px;
    overflow: hidden;
    display: grid;
    place-items: center;
    isolation: isolate
}

.video-card__media {
    position: absolute;
    inset: 0;
    z-index: -2
}

.video-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover
}

.video-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(10, 28, 15, .32), rgba(10, 28, 15, .55))
}

.video-card__script {
    font-family: var(--font-script);
    color: #fff;
    font-size: clamp(1.9rem, 2.8vw, 2.8rem);
    line-height: 1.05;
    text-align: center;
    transform: rotate(-6deg);
    position: absolute;
    inset-block-start: 16%;
    inset-inline-start: 8%;
}

.video-card__play {
    position: absolute;
    inset-block-end: 24px;
    inset-inline-start: 24px;
    display: flex;
    align-items: center;
    gap: 13px;
    color: #fff
}

.video-card__play .circle-btn {
    border-color: rgba(255, 255, 255, .7);
    color: #fff;
    background: transparent
}

.video-card__play span {
    font-size: .68rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    font-weight: 700
}

/* Estimated-details summary bar */
.summary-bar {
    display: flex;
    align-items: center;
    gap: clamp(14px, 2vw, 28px);
    flex-wrap: wrap;
    background: var(--cream-2);
    border: 1px solid var(--line);
    padding: 18px 20px;
    margin-top: 18px;
}

.summary-bar__label {
    font-size: .64rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--muted);
    width: 100%
}

.summary-bar__item {
    display: flex;
    align-items: center;
    gap: 10px
}

.summary-bar__item svg {
    width: 22px;
    height: 22px;
    color: var(--green-600);
    flex: none
}

.summary-bar__item small {
    display: block;
    font-size: .66rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .08em
}

.summary-bar__item strong {
    display: block;
    font-size: .84rem;
    font-weight: 600
}

.summary-bar__actions {
    margin-inline-start: auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px
}

.summary-bar__save {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: .76rem;
    color: var(--muted)
}

.summary-bar__save:hover {
    color: var(--red)
}

/* "Perfect for" + related products */
.uses {
    display: flex;
    flex-wrap: wrap;
    gap: 26px;
    margin: 24px 0 30px
}

.use {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 9px;
    min-width: 74px
}

.use__icon {
    width: 34px;
    height: 34px;
    color: var(--ink-2)
}

.use__label {
    font-size: .72rem;
    color: var(--muted)
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px
}

/* ==========================================================================
   Custom production — process strip
   ========================================================================== */
.process-strip {
    display: grid;
    grid-template-columns: .8fr repeat(4, 1fr) .8fr;
    background: var(--green-900);
    color: #fff
}

.process-strip__label,
.process-strip__end {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    padding: clamp(20px, 2.4vw, 30px);
    font-size: .92rem;
    line-height: 1.35;
}

.process-strip__end {
    background: var(--cream-2);
    color: var(--ink);
    align-items: center;
    text-align: center;
    font-size: .8rem
}

.process-strip__end svg {
    width: 26px;
    height: 26px;
    color: var(--green-600)
}

.process-card {
    position: relative;
    min-height: 170px;
    overflow: hidden;
    isolation: isolate
}

.process-card__media {
    position: absolute;
    inset: 0;
    z-index: -2
}

.process-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover
}

.process-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(8, 20, 10, .15), rgba(8, 20, 10, .82))
}

.process-card__body {
    position: absolute;
    inset-block-end: 0;
    inset-inline: 0;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 10px
}

.process-card__num {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .92);
    color: var(--green-900);
    display: grid;
    place-items: center;
    font-size: .68rem;
    font-weight: 700;
    flex: none;
}

.process-card__title {
    font-size: .8rem;
    font-weight: 500
}

/* Custom production form layout: photo rail + form */
.cp-layout {
    display: grid;
    grid-template-columns: minmax(0, .34fr) minmax(0, 1fr)
}

.cp-rail {
    position: relative;
    min-height: 600px;
    overflow: hidden;
    isolation: isolate;
    color: #fff
}

.cp-rail__media {
    position: absolute;
    inset: 0;
    z-index: -2
}

.cp-rail__media img {
    width: 100%;
    height: 100%;
    object-fit: cover
}

.cp-rail::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(8, 20, 10, .25), rgba(8, 20, 10, .72))
}

.cp-rail__script {
    font-family: var(--font-script);
    font-size: clamp(1.9rem, 2.6vw, 2.7rem);
    line-height: 1.1;
    position: absolute;
    inset-block-start: 9%;
    inset-inline-start: 12%;
    transform: rotate(-8deg);
    text-align: center;
}

.cp-rail__caption {
    position: absolute;
    inset-block-end: 38px;
    inset-inline-start: 30px;
    font-size: .68rem;
    letter-spacing: .24em;
    text-transform: uppercase;
    font-weight: 700;
    line-height: 2;
}

.cp-form {
    padding: clamp(32px, 4vw, 58px) clamp(24px, 4vw, 58px);
    background: var(--cream)
}

.cp-form__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 26px;
    flex-wrap: wrap;
    margin-bottom: 26px
}

.cp-mode {
    display: flex;
    gap: 10px
}

.cp-mode .tile {
    min-width: 170px
}

.cp-submit {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 22px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
}

.cp-submit__note {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .74rem;
    color: var(--muted)
}

.cp-submit__note svg {
    width: 15px;
    height: 15px;
    flex: none
}

/* Why-partner band */
.partner-band {
    display: grid;
    grid-template-columns: .9fr 1.7fr .7fr;
    background: var(--green-900);
    color: #fff;
    align-items: stretch
}

.partner-band__promo {
    position: relative;
    padding: clamp(34px, 4vw, 56px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 14px;
    isolation: isolate;
    overflow: hidden
}

.partner-band__promo .media--fill {
    z-index: -2
}

.partner-band__promo::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(90deg, rgba(8, 20, 10, .55), rgba(8, 20, 10, .82))
}

.partner-band__list {
    padding: clamp(34px, 4vw, 56px);
    display: flex;
    flex-wrap: wrap;
    gap: clamp(20px, 3vw, 44px);
    align-items: center;
    justify-content: center
}

.partner-band__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
    min-width: 120px
}

.partner-band__item svg {
    width: 32px;
    height: 32px;
    color: var(--gold)
}

.partner-band__item strong {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 400
}

.partner-band__item span {
    font-size: .7rem;
    color: rgba(255, 255, 255, .66)
}

.partner-band__pillars {
    background: var(--cream-2);
    color: var(--ink);
    padding: clamp(30px, 3vw, 48px);
    display: flex;
    align-items: center;
    justify-content: center
}

/* ==========================================================================
   Inquiry basket + thank-you
   ========================================================================== */
.basket-item {
    display: grid;
    grid-template-columns: 96px 1fr auto;
    gap: 18px;
    align-items: center;
    padding: 18px 0;
    border-bottom: 1px solid var(--line)
}

.basket-item__media {
    aspect-ratio: 1/1;
    overflow: hidden;
    position: relative
}

.basket-item__media>img,
.basket-item__media>.ph {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%
}

.basket-item__title {
    font-family: var(--font-display);
    font-size: 1.2rem;
    margin-bottom: 4px
}

.basket-item__meta {
    font-size: .82rem;
    color: var(--muted)
}

.basket-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
    gap: clamp(28px, 4vw, 56px);
    align-items: start
}

.basket-panel {
    border: 1px solid var(--line);
    background: var(--paper);
    padding: clamp(22px, 2.6vw, 32px)
}

.thanks {
    text-align: center;
    max-width: 56ch;
    margin-inline: auto
}

.thanks__ref {
    display: inline-block;
    margin: 18px 0 22px;
    padding: 12px 22px;
    background: var(--cream-2);
    border: 1px solid var(--line);
    font-family: var(--font-display);
    font-size: 1.5rem;
    letter-spacing: .06em;
}

/* ==========================================================================
   Editorial page blocks
   ========================================================================== */
.rich {
    line-height: 1.8;
    color: var(--muted)
}

.rich p {
    margin-bottom: 1em
}

.rich p:last-child {
    margin-bottom: 0
}

.rich h2,
.rich h3 {
    font-family: var(--font-display);
    color: var(--ink);
    margin: 1.4em 0 .5em;
    font-weight: 400
}

.rich ul {
    list-style: disc;
    padding-inline-start: 1.2em;
    margin-bottom: 1em
}

.rich li {
    margin-bottom: .4em
}

.rich a {
    color: var(--red);
    text-decoration: underline
}

.contact-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-top: 28px
}

.contact-card {
    border: 1px solid var(--line);
    background: var(--paper);
    padding: 26px
}

.contact-card svg {
    width: 24px;
    height: 24px;
    color: var(--green-600);
    margin-bottom: 14px
}

.contact-card strong {
    display: block;
    font-size: .72rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 6px
}

.contact-card span {
    font-size: .95rem;
    font-weight: 500
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width:1180px) {
    .nav {
        gap: 20px;
        margin-inline-start: 180px
    }

    .nav__link {
        font-size: .82rem
    }

    .family-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr))
    }

    .stats--six .stats__inner {
        grid-template-columns: repeat(3, 1fr)
    }

    .stat:nth-child(4) {
        border-inline-start: 0
    }
}

@media (max-width:1040px) {

    .nav,
    .nav-actions .lang-switch,
    .nav-actions .icon-btn {
        display: none
    }

    .nav-toggle {
        display: grid
    }

    .brand__badge {
        width: 186px;
        inset-inline-start: -24px
    }

    .brand__logo {
        width: 116px
    }

    .site-header__inner {
        gap: 16px
    }

    .nav-actions .btn {
        padding: 12px 16px;
        font-size: .66rem
    }

    .hero {
        min-height: 620px
    }

    .hero__script,
    .hero__pillars {
        display: none
    }

    /* .hero is a flex row. Taking .hero__foot out of absolute positioning turns
     it into a second item competing for that row, which squeezed .hero__inner
     to a fraction of its width and pinned it to the edge — its auto margins
     cannot centre a flex item. Stacking the hero's children fixes the cause
     rather than patching the width. */
    .hero {
        flex-direction: column;
        justify-content: center;
        align-items: stretch
    }

    .hero__foot {
        position: static;
        margin-top: 34px;
        width: auto;
        flex-wrap: wrap
    }

    .hero__inner {
        padding: 70px 0 80px;
        width: min(var(--container), 100% - (var(--gutter) * 2));
        margin-inline: auto
    }

    .story {
        grid-template-columns: 1fr
    }

    .story__collage {
        min-height: 380px;
        order: -1
    }

    .banner__inner {
        grid-template-columns: 1fr
    }

    .banner__copy {
        grid-column: 1
    }

    .banner__tag {
        display: none
    }

    .export-band {
        grid-template-columns: 1fr
    }

    .export-band__media {
        min-height: 260px
    }

    .export-band__list {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 18px 32px
    }

    .product-hero {
        grid-template-columns: 1fr
    }

    .product-hero__media {
        min-height: 360px;
        order: -1
    }

    .product-hero__media::before {
        background: linear-gradient(0deg, var(--green-950) 0%, transparent 55%)
    }

    .product-hero__copy {
        padding-inline: var(--gutter);
        margin-inline: auto
    }

    .seal {
        width: 76px;
        height: 76px;
        inset-block-start: 20px;
        inset-inline-end: 20px
    }

    .product-hero__script {
        display: none
    }

    .product-body {
        grid-template-columns: 1fr
    }

    /* minmax(0,1fr), not 1fr: a grid item defaults to min-width:auto, so a plain
     1fr track cannot shrink below its content and stretched this column 23px
     past the viewport. The desktop rule above already guards the same way. */
    .cp-layout {
        grid-template-columns: minmax(0, 1fr)
    }

    .cp-rail {
        min-height: 300px
    }

    .cp-rail__script {
        inset-block-start: 16%
    }

    .steps--two {
        grid-template-columns: 1fr
    }

    .process-strip {
        grid-template-columns: repeat(2, 1fr)
    }

    .process-strip__label,
    .process-strip__end {
        grid-column: span 2
    }

    .partner-band {
        grid-template-columns: 1fr
    }

    .basket-layout {
        grid-template-columns: 1fr
    }

    .site-footer__grid {
        grid-template-columns: 1fr 1fr
    }
}

@media (max-width:760px) {
    :root {
        --nav-h: 72px
    }

    .section {
        padding: 52px 0
    }

    .section-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 18px
    }

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

    .stats__inner,
    .stats--six .stats__inner {
        grid-template-columns: repeat(2, 1fr)
    }

    .stat {
        border-inline-start: 0;
        border-top: 1px solid rgba(255, 255, 255, .14)
    }

    .stats--light .stat {
        border-color: var(--line)
    }

    .stats__script {
        grid-column: span 2;
        padding: 24px 0
    }

    .related-grid {
        grid-template-columns: 1fr
    }

    .field-row {
        grid-template-columns: 1fr
    }

    .filters {
        flex-direction: column;
        align-items: stretch
    }

    .search {
        margin-inline-start: 0
    }

    .summary-bar__actions {
        margin-inline-start: 0;
        width: 100%
    }

    .site-footer__grid {
        grid-template-columns: 1fr
    }

    .basket-item {
        grid-template-columns: 72px 1fr;
        row-gap: 12px
    }

    .basket-item__actions {
        grid-column: 2
    }

    .hero__foot {
        gap: 20px
    }

    .scroll-cue {
        display: none
    }

    /* The assurance list is set in wide letter-spaced caps and cannot shrink to
     fit a phone; it pushed the page 24px wider than the viewport. It repeats
     under the hero anyway, so on phones it is dropped rather than clipped. */
    .hero__assurances {
        display: none
    }

    /* Left alone, the slide counter's fixed 64px rail plus the dots ran past the
     edge once the assurances stopped holding the row together. */
    .hero__foot {
        justify-content: flex-start
    }

    .slide-count__rail {
        width: 44px
    }
}

@media (max-width:520px) {

    /* The logo badge, the order button and the menu toggle together need more
     than a phone has. The button is the one that repeats inside the menu, so
     it is the one that goes — the header stopped overflowing by 11px once it
     did. */
    .nav-actions .btn {
        display: none
    }

    .brand__badge {
        width: 158px
    }

    .brand__logo {
        width: 98px
    }

    .family-grid {
        grid-template-columns: 1fr
    }

    .hero__title {
        font-size: 2.9rem
    }

    .hero__actions {
        flex-direction: column;
        align-items: stretch
    }

    .hero__actions .btn {
        width: 100%
    }

    .assur {
        padding-inline: 14px
    }

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

    .basket-pill {
        inset-inline: 16px;
        inset-block-end: 16px;
        justify-content: center
    }
}

/* ==========================================================================
   RTL adjustments
   Logical properties cover most of it; these are the genuinely directional bits.
   ========================================================================== */
[dir="rtl"] .brand__badge {
    border-end-end-radius: 0;
    border-end-start-radius: 64px
}

[dir="rtl"] .arw {
    transform: scaleX(-1)
}

[dir="rtl"] .btn:hover .arw {
    transform: scaleX(-1) translateX(4px)
}

[dir="rtl"] .story__photo--b {
    border-inline: 8px solid var(--cream)
}

[dir="rtl"] .family-rail__nav {
    transform: scaleX(-1)
}

[dir="rtl"] .hero__script,
[dir="rtl"] .product-hero__script,
[dir="rtl"] .video-card__script,
[dir="rtl"] .cp-rail__script,
[dir="rtl"] .banner__tag {
    transform: rotate(7deg)
}

/* Cairo covers Latin and Arabic in one family, so RTL no longer needs a
   substitute face. Only the metrics below still differ by script. */

[dir="rtl"] .display,
[dir="rtl"] .h-xl,
[dir="rtl"] .h-lg,
[dir="rtl"] .h-md,
[dir="rtl"] .h-sm,
[dir="rtl"] .hero__title,
[dir="rtl"] .product-hero__title,
[dir="rtl"] .banner__title,
[dir="rtl"] .family-card__title,
[dir="rtl"] .rail-card__title {
    /* Arabic sits taller in the line than Latin at the same size; without
       this, long headings touch. The family itself is unchanged. */
    line-height: 1.35;
}

/* The script font has no Arabic glyphs at all — keep those lines in English. */
[dir="rtl"] .script,
[dir="rtl"] .hero__script,
[dir="rtl"] .story__card,
[dir="rtl"] .site-footer__script,
[dir="rtl"] .stats__script {
    font-family: var(--font-script)
}

/* ==========================================================================
   Print
   ========================================================================== */
@media print {

    .site-header,
    .mobile-nav,
    .basket-pill,
    .hero__foot,
    .cta-band,
    .newsletter {
        display: none !important
    }

    body {
        background: #fff
    }

    .section {
        padding: 20px 0
    }
}

/* --------------------------------------------------------------------------
   RTL typography metrics
   Arabic sets narrower than Latin at the same point size, so a max-width in
   `ch` that suits an English headline squeezes the Arabic one hard enough to
   break inside a word. These are the same measures re-expressed for Arabic,
   and they still apply now that both scripts share Cairo.
   -------------------------------------------------------------------------- */
[dir="rtl"] .hero__title {
    max-width: 26ch
}

[dir="rtl"] .hero__text {
    max-width: 52ch
}

[dir="rtl"] .product-hero__text {
    max-width: 58ch
}

[dir="rtl"] .section-head__text {
    max-width: 52ch
}

[dir="rtl"] .section-head__aside {
    max-width: 54ch
}

[dir="rtl"] .banner__title {
    max-width: 24ch
}

[dir="rtl"] .assur__label {
    max-width: 16ch
}

[dir="rtl"] .cta-band .lead {
    max-width: 60ch
}

/* Arabic must never be hyphenated or broken mid-word. */
[dir="rtl"] .hero__title,
[dir="rtl"] .product-hero__title,
[dir="rtl"] .banner__title,
[dir="rtl"] .h-xl,
[dir="rtl"] .h-lg,
[dir="rtl"] .h-md,
[dir="rtl"] .h-sm,
[dir="rtl"] .family-card__title,
[dir="rtl"] .rail-card__title {
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none
}

/* Letter-spaced uppercase tracking is a Latin device; it corrupts Arabic
   joining, so the eyebrow and caps styles drop it in RTL. */
[dir="rtl"] .eyebrow,
[dir="rtl"] .caps,
[dir="rtl"] .btn,
[dir="rtl"] .link-explore,
[dir="rtl"] .link-underline,
[dir="rtl"] .pillars,
[dir="rtl"] .summary-bar__label,
[dir="rtl"] .summary-bar__item small,
[dir="rtl"] .stat__label,
[dir="rtl"] .cp-rail__caption {
    letter-spacing: 0
}

[dir="rtl"] .eyebrow,
[dir="rtl"] .btn {
    text-transform: none
}


/* ==========================================================================
   CUSTOMER PORTAL — the door
   Login, register and password reset. Built from the same tokens as the rest
   of the site: the way into the portal must not look like another company's.
   ========================================================================== */

.auth {
    display: grid;
    place-items: center;
    min-height: calc(100vh - var(--nav-h));
    padding: clamp(38px, 8vh, 88px) 0;
    background: var(--cream-2);
}

.auth__card {
    width: min(540px, 100%);
    margin-inline: auto;
    padding: clamp(26px, 5vw, 46px);
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.auth__logo {
    display: block;
    width: 150px;
    margin: 0 auto 16px
}

.auth__head {
    text-align: center;
    margin-bottom: 26px
}

.auth__title {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: clamp(1.85rem, 4.4vw, 2.45rem);
    line-height: 1.06;
    margin: 9px 0 11px;
}

.auth__note {
    font-size: .85rem;
    line-height: 1.68;
    color: var(--muted);
    max-width: 40ch;
    margin-inline: auto;
}

.auth__check {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: .85rem;
    color: var(--ink-2)
}

.auth__foot {
    margin-top: 22px;
    text-align: center;
    font-size: .85rem;
    color: var(--muted)
}

.auth__foot a {
    color: var(--green-600);
    font-weight: 600;
    border-bottom: 1px solid currentColor
}

.auth__aside {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
    font-size: .76rem;
    line-height: 1.6;
    color: var(--muted-2);
    text-align: center;
}

/* The honeypot. Moved off-screen rather than display:none — the cruder bots
   skip anything hidden — and hidden from assistive technology, because a
   screen-reader user must never be invited to fill in a field that would
   silently reject their submission. */
.auth__trap {
    position: absolute;
    inset-inline-start: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden
}

@media (max-width:560px) {
    .auth {
        padding: 26px 0
    }

    .auth__card {
        box-shadow: var(--shadow-sm)
    }
}
