/* Tesla Cybertruck catalog — mirrors PDF spreads (main site navbar) */

.ct-catalog-page {
    background: #050505;
    color: rgba(255, 255, 255, 0.92);
    padding-top: 5rem;
}

/* Toolbar: download above PDF pages (does not overlay catalog art) */
.ct-pdf-toolbar {
    position: sticky;
    top: 5.5rem;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1rem;
    background: rgba(5, 5, 5, 0.94);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    line-height: normal;
}

.ct-pdf-toolbar__download {
    min-height: 48px;
    padding: 0.65rem 1.65rem;
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

/* Each PNG = one PDF page (same order as catalog PDF) */
.ct-pdf-page {
    margin: 0;
    padding: 0;
    line-height: 0;
    background: #050505;
}

.ct-pdf-page img {
    display: block;
    width: 100%;
    height: auto;
    margin: 0 auto;
}

.ct-pdf-page--cover img {
    max-height: none;
}

.ct-pdf-page--empty {
    padding: 4rem 0;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.65);
}

@media (min-width: 992px) {
    .ct-pdf-page img {
        max-width: min(1320px, 100%);
    }
}

/* Landing page navbar (replaces main site header on this page) */
.ct-catalog-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    height: var(--ct-catalog-nav-h);
    background: rgba(5, 5, 5, 0.94);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(14px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
}

.ct-catalog-nav__inner {
    --ct-nav-edge: clamp(0.75rem, 2.5vw, 1.5rem);
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--navbar-sector-gap);
    max-width: 1320px;
    width: 100%;
    height: 100%;
    margin: 0 auto;
    padding-inline: var(--ct-nav-edge);
    box-sizing: border-box;
}

.ct-catalog-nav__brand {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.ct-catalog-nav__brand img {
    height: 38px;
    width: auto;
    display: block;
}

.ct-catalog-nav__scroll {
    flex: 1 1 0;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
}

.ct-catalog-nav__list {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    justify-content: stretch;
    gap: 0.15rem;
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
}

.ct-catalog-nav__list li {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
}

.ct-catalog-nav__link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 100%;
    padding: 0.42rem 0.35rem;
    border-radius: 999px;
    font-size: clamp(0.72rem, 1.05vw, 0.88rem);
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    border: 1px solid transparent;
    transition: color 0.2s, background 0.2s, border-color 0.2s;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ct-catalog-nav__link:hover,
.ct-catalog-nav__link.is-active {
    color: #fff;
    background: rgba(30, 89, 131, 0.22);
    border-color: rgba(30, 89, 131, 0.45);
}

.ct-catalog-nav__actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

@media (max-width: 900px) {
    :root {
        --ct-catalog-nav-h: 60px;
    }

    .ct-catalog-nav__brand img {
        height: 34px;
    }

    .ct-catalog-nav__inner {
        --ct-nav-edge: clamp(0.5rem, 3vw, 1rem);
        --ct-nav-segment-gap: clamp(0.45rem, 2vw, 0.85rem);
    }

    .ct-catalog-nav__list {
        gap: 0.1rem;
    }

    .ct-catalog-nav__link {
        padding: 0.45rem 0.2rem;
        font-size: clamp(0.65rem, 2.8vw, 0.78rem);
    }

    .ct-catalog-nav__pdf .d-none {
        display: none !important;
    }

    .ct-catalog-nav__pdf {
        padding: 0.4rem 0.55rem !important;
    }
}

/* Cover */
.ct-cover {
    position: relative;
    min-height: calc(100vh - var(--ct-catalog-nav-h));
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3rem 0 4rem;
    background:
        radial-gradient(ellipse 80% 60% at 70% 20%, rgba(30, 89, 131, 0.18), transparent 55%),
        linear-gradient(180deg, #0a0a0a 0%, #050505 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.ct-cover__inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    align-items: center;
}

@media (min-width: 992px) {
    .ct-cover__inner {
        grid-template-columns: 1fr 1fr;
    }
}

.ct-cover__eyebrow {
    font-size: 0.72rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: 1rem;
}

.ct-cover__title {
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.ct-cover__lead {
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    color: rgba(255, 255, 255, 0.72);
    max-width: 520px;
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.ct-cover__intro {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.58);
    max-width: 560px;
    line-height: 1.6;
    margin-bottom: 1.75rem;
}

.ct-cover__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

/* Personal / Corporate catalog switcher */
.ct-variant-switcher {
    display: flex;
    width: 100%;
    max-width: 420px;
    gap: 0.5rem;
    padding: 0.35rem;
    margin: 0 0 1.25rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.ct-variant-switcher__btn {
    flex: 1 1 50%;
    appearance: none;
    border: 0;
    cursor: pointer;
    min-height: 46px;
    padding: 0.55rem 1rem;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.68);
    background: transparent;
    transition: color 0.2s, background 0.2s, box-shadow 0.2s;
}

.ct-variant-switcher__btn:hover {
    color: #fff;
}

.ct-variant-switcher__btn.is-active {
    color: #fff;
    background: rgba(30, 89, 131, 0.55);
    box-shadow: 0 0 0 1px rgba(30, 89, 131, 0.65);
}

.ct-catalog-variant[hidden] {
    display: none !important;
}

/* PDF spread gallery (folder images) */
.ct-spreads {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-top: 1rem;
}

.ct-spread {
    margin: 0;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: #0a0a0a;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.ct-spread img {
    display: block;
    width: 100%;
    height: auto;
}

.ct-cover__media {
    margin: 0;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.ct-cover__media img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    aspect-ratio: 16 / 10;
}

.ct-cover__legal {
    text-align: center;
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.35);
    margin: 2rem 0 0;
    padding: 0 1rem;
}

/* Sections */
.ct-section {
    padding: 4.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.ct-section:nth-child(even) {
    background: rgba(255, 255, 255, 0.02);
}

.ct-section-head {
    margin-bottom: 2rem;
    position: relative;
    padding-left: 3.5rem;
}

.ct-section-head__page {
    position: absolute;
    left: 0;
    top: 0.15rem;
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
    color: rgba(30, 89, 131, 0.25);
    font-variant-numeric: tabular-nums;
}

.ct-section-head__kicker {
    font-size: 1.5rem;
    letter-spacing: 0.22em;
    font-weight: 700;
    text-transform: uppercase;
    color: rgba(30, 89, 131, 0.95);
    margin: 0 0 0.5rem;
}

.ct-section-head__title {
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    font-weight: 800;
    line-height: 1.2;
    margin: 0;
    max-width: 720px;
}

.ct-lead,
.ct-body {
    font-size: 1.02rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.78);
    max-width: 720px;
}

.ct-body--center {
    text-align: center;
    margin-inline: auto;
}

.ct-section-footer {
    margin-top: 1.5rem;
    font-weight: 700;
    color: rgba(30, 89, 131, 0.95);
    letter-spacing: 0.04em;
}

/* Intro */
.ct-intro {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
}

@media (min-width: 768px) {
    .ct-intro {
        grid-template-columns: 1fr 1fr;
    }
}

.ct-intro__media {
    margin: 0;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.ct-intro__media img {
    width: 100%;
    display: block;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

/* Personal / Corporate tabs + card grid */
.ct-tabs {
    margin-top: 0.5rem;
}

.ct-tabs__bar {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.35rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 1.75rem;
}

.ct-tabs__btn {
    appearance: none;
    border: 0;
    cursor: pointer;
    padding: 0.65rem 1.35rem;
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.65);
    background: transparent;
    transition: color 0.2s, background 0.2s, box-shadow 0.2s;
}

.ct-tabs__btn:hover {
    color: #fff;
}

.ct-tabs__btn.is-active {
    color: #fff;
    background: rgba(30, 89, 131, 0.55);
    box-shadow: 0 0 0 1px rgba(30, 89, 131, 0.6);
}

.ct-tabs__panel {
    display: none;
}

.ct-tabs__panel.is-active {
    display: block;
}

.ct-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

@media (min-width: 768px) {
    .ct-cards-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.25rem;
    }
}

@media (min-width: 1200px) {
    .ct-cards-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.ct-card {
    border-radius: 14px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: border-color 0.2s, transform 0.2s;
}

.ct-card:hover {
    border-color: rgba(30, 89, 131, 0.45);
    transform: translateY(-3px);
}

.ct-card__media {
    margin: 0;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #0a0a0a;
}

.ct-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ct-card__title {
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.35;
    margin: 0;
    padding: 0.85rem 1rem 1rem;
    color: rgba(255, 255, 255, 0.92);
}

/* Pillars */
.ct-pillars {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 576px) {
    .ct-pillars {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .ct-pillars {
        grid-template-columns: repeat(3, 1fr);
    }
}

.ct-pillar {
    padding: 1.25rem 1.35rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
}

.ct-pillar__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(30, 89, 131, 0.2);
    margin-bottom: 0.85rem;
}

.ct-pillar__icon i {
    color: rgba(120, 180, 220, 1);
}

.ct-pillar__title {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 0.4rem;
}

.ct-pillar__text {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.65);
    margin: 0;
    line-height: 1.5;
}

/* Checklist */
.ct-checklist {
    list-style: none;
    margin: 1.25rem 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.ct-checklist--cols {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.65rem;
}

@media (min-width: 768px) {
    .ct-checklist--cols {
        grid-template-columns: repeat(2, 1fr);
    }
}

.ct-checklist li {
    position: relative;
    padding-left: 1.35rem;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.45;
}

.ct-checklist li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(30, 89, 131, 0.95);
    box-shadow: 0 0 8px rgba(30, 89, 131, 0.5);
}

/* Goals & chips */
.ct-goals,
.ct-sectors,
.ct-chips,
.ct-screen-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 1.25rem;
}

.ct-goal-chip,
.ct-sector-chip,
.ct-chip,
.ct-screen-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 1rem;
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 600;
    background: rgba(30, 89, 131, 0.15);
    border: 1px solid rgba(30, 89, 131, 0.35);
    color: rgba(255, 255, 255, 0.9);
}

.ct-notes {
    margin-top: 1.5rem;
    padding-left: 1.25rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Split layouts */
.ct-split {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
    margin-top: 0.5rem;
}

@media (min-width: 992px) {
    .ct-split {
        grid-template-columns: 1fr 1fr;
    }

    .ct-split--reverse .ct-split__text {
        order: 2;
    }

    .ct-split--reverse .ct-split__media {
        order: 1;
    }
}

.ct-split__media {
    margin: 0;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.ct-split__media img {
    width: 100%;
    display: block;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

/* Wrap cards */
.ct-wrap-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

@media (min-width: 768px) {
    .ct-wrap-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.ct-wrap-card {
    border-radius: 16px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.ct-wrap-card__img {
    margin: 0;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.ct-wrap-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ct-wrap-card__label {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 1rem 1.25rem 0.35rem;
}

.ct-wrap-card__desc {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.65);
    margin: 0 1.25rem 1.25rem;
    line-height: 1.5;
}

/* Contact */
.ct-contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin-top: 2rem;
}

/* Thank you */
.ct-thanks {
    padding: 4rem 0 5rem;
    background: linear-gradient(180deg, transparent, rgba(30, 89, 131, 0.12));
}

.ct-thanks__title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    margin: 0 0 0.5rem;
}

.ct-thanks__legal {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
    margin: 0;
}

/* --------------------------------------------------------------------------
   Mobile / narrow viewports — touch-friendly layout
   -------------------------------------------------------------------------- */

@media (max-width: 767.98px) {
    .ct-catalog-page {
        padding-bottom: max(3.5rem, calc(env(safe-area-inset-bottom, 0px) + 2.5rem));
    }

    .ct-catalog-page .r-container {
        padding-left: max(1rem, env(safe-area-inset-left, 0px) + 0.75rem);
        padding-right: max(1rem, env(safe-area-inset-right, 0px) + 0.75rem);
    }

    .ct-cover {
        min-height: 0;
        padding: 1.5rem 0 2.25rem;
    }

    .ct-cover__eyebrow {
        font-size: 0.65rem;
        letter-spacing: 0.2em;
    }

    .ct-cover__title {
        font-size: clamp(1.55rem, 7.5vw, 2.35rem);
    }

    .ct-cover__lead {
        font-size: 1rem;
    }

    .ct-cover__intro {
        font-size: 0.9rem;
        margin-bottom: 1.25rem;
    }

    .ct-cover__actions {
        flex-direction: column;
        align-items: stretch;
        gap: 0.65rem;
    }

    .ct-cover__actions .btn {
        width: 100%;
        min-height: 48px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        touch-action: manipulation;
    }

    .ct-cover__inner {
        gap: 1.75rem;
    }

    .ct-cover__legal {
        margin: 1.25rem 0 0;
        font-size: 0.68rem;
    }

    .ct-section {
        padding: 2.5rem 0;
    }

    .ct-section-head {
        padding-left: 0;
        margin-bottom: 1.5rem;
    }

    .ct-section-head__page {
        position: static;
        font-size: 1.6rem;
        margin-bottom: 0.4rem;
        display: block;
        top: auto;
        left: auto;
    }

    .ct-section-head__kicker {
        font-size: 0.65rem;
        letter-spacing: 0.18em;
    }

    .ct-section-head__title {
        font-size: clamp(1.25rem, 5vw, 1.85rem);
    }

    .ct-lead,
    .ct-body {
        font-size: 0.98rem;
        line-height: 1.6;
    }

    .ct-tabs__bar {
        display: flex;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        border-radius: 14px;
        justify-content: stretch;
        padding: 0.3rem;
    }

    .ct-tabs__btn {
        flex: 1 1 50%;
        min-height: 48px;
        padding: 0.65rem 0.85rem;
        font-size: 0.84rem;
        touch-action: manipulation;
    }

    .ct-cards-grid {
        gap: 0.85rem;
    }

    .ct-card__title {
        font-size: 0.85rem;
        padding: 0.7rem 0.85rem 0.9rem;
    }

    .ct-pillars {
        gap: 0.85rem;
    }

    .ct-pillar {
        padding: 1.1rem 1.15rem;
    }

    .ct-wrap-card__label {
        font-size: 1rem;
        margin: 0.85rem 1rem 0.3rem;
    }

    .ct-wrap-card__desc {
        font-size: 0.86rem;
        margin: 0 1rem 1rem;
    }

    .ct-contact-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .ct-contact-actions .btn {
        min-height: 48px;
        justify-content: center;
        touch-action: manipulation;
    }

    .ct-thanks {
        padding: 2.5rem 0 3.5rem;
    }

    .ct-goals,
    .ct-sectors,
    .ct-chips,
    .ct-screen-grid {
        gap: 0.5rem;
    }

    .ct-goal-chip,
    .ct-sector-chip,
    .ct-chip,
    .ct-screen-chip {
        font-size: 0.82rem;
        padding: 0.5rem 0.85rem;
    }
}

@media (max-width: 575.98px) {
    :root {
        /* Two rows of icon tabs; keep in sync with actual bar height */
        --ct-catalog-nav-h: 112px;
    }

    .ct-catalog-nav {
        height: auto;
        min-height: var(--ct-catalog-nav-h);
    }

    .ct-catalog-nav__inner {
        align-content: center;
        min-height: var(--ct-catalog-nav-h);
        padding-block: 0.45rem;
    }

    .ct-catalog-nav__scroll {
        overflow: visible;
    }

    .ct-catalog-nav__list {
        flex-wrap: wrap;
        row-gap: 0.35rem;
        column-gap: 0.15rem;
    }

    .ct-catalog-nav__list li {
        flex: 1 1 calc(50% - 0.15rem);
        min-width: 0;
        max-width: none;
    }

    .ct-catalog-nav__link {
        min-height: 40px;
        padding: 0.4rem 0.25rem;
        touch-action: manipulation;
    }

    .ct-catalog-nav__brand img {
        height: 32px;
    }

    .ct-catalog-nav__actions .btn {
        min-height: 44px;
        touch-action: manipulation;
    }

    .ct-cards-grid {
        grid-template-columns: 1fr;
    }

    .ct-card:hover {
        transform: none;
    }
}

@media (max-width: 420px) {
    :root {
        --ct-catalog-nav-h: 118px;
    }

    .ct-catalog-nav__inner {
        --ct-nav-segment-gap: 0.4rem;
    }
}
