/*
 * protastructure.css — styles scoped to .protastructure-page
 * Loaded only on /products/protastructure/.
 *
 * Depends on theme tokens.css (--red, --dark, --gray-*, etc. already defined).
 * Adds: --dark-3, --mid (missing from theme tokens) and section-specific rules.
 */

/* ── Page Header ───────────────────────────────────────────────────────── */
#page-header {
    background: var(--ultra-light-blue);
    padding: 0;
    border-bottom: 1px solid var(--gray-200);
    overflow: hidden;
}
.ph-main {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 0;
    margin-bottom: 0;
}
.ph-left {
    flex: 1;
    max-width: 560px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 80px 64px 80px 0;
    min-height: 348px;
}
.ph-eyebrow {
    font-family: var(--font-display);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--red);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: var(--space-xl);
}
.ph-eyebrow::before {
    content: '';
    display: block;
    width: 20px;
    height: 2px;
    background: var(--red);
    flex-shrink: 0;
}
.ph-title {
    font-family: var(--font-display);
    font-size: var(--fs-subheading);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--white);
    margin: 0 0 16px;
    line-height: 1.05;
}
.ps-hero-logo-wrap {
    margin: 0 0 20px;
    font-size: 0;
    line-height: 0;
}
.ph-logo-img {
    display: block;
    width: 100%;
    max-width: 380px;
    height: 42px;
    object-fit: contain;
    object-position: left center;
}
.ph-desc {
    font-size: 0.95rem;
    color: var(--color-black);
    line-height: 1.7;
    margin: 0;
}
.ph-desc strong { color: var(--black); }
.ph-right {
    flex-shrink: 0;
    width: 48%;
    align-self: stretch;
    overflow: hidden;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
}
.ph-hero-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: left top;
}
.ph-version-pill {
    font-family: var(--font-display);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--gray-300);
    border: 1px solid var(--gray-700);
    padding: 5px 12px;
    border-radius: 2px;
}
.ph-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
}
.ph-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid rgba(255,255,255,0.08);
    margin-top: 8px;
}
.ph-stat {
    padding: 24px 0;
    border-right: 1px solid rgba(255,255,255,0.08);
}
.ph-stat:last-child { border-right: none; }
.ph-stat-num {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
    color: var(--red);
    line-height: 1;
    margin-bottom: 6px;
}
.ph-stat-label {
    font-family: var(--font-display);
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gray-500);
}
@media (max-width: 768px) {
    .ph-main { flex-direction: column; gap: 28px; }
    .ph-left { min-height: auto; padding: 48px 0; }
    .ph-right { width: 100%; align-items: flex-start; }
    .ph-actions { justify-content: flex-start; }
    .ph-stats { grid-template-columns: repeat(2, 1fr); }
    .ph-stat:nth-child(2) { border-right: none; }
    .ph-stat:nth-child(3) { border-top: 1px solid rgba(255,255,255,0.08); }
    .ph-stat:nth-child(4) { border-top: 1px solid rgba(255,255,255,0.08); }
}

/* ── Local token additions ─────────────────────────────────────────────── */

.protastructure-page {
    --dark-3:       #1f2125;
    --mid:          #2a2d33;
    --section-gap:  120px; /* prototype value; theme default is 80px */
    overflow-x: hidden;
}

/* ── Button variants used in this template ─────────────────────────────── */
/* Theme has .btn base + .btn-outline-red. We add the three missing variants. */
/* Shared by all four product pages — ProtaStructure + the 3 copies          */
/* (ProtaDetails / ProtaSteel / ProtaBIM) — which all enqueue this file and   */
/* reuse the same .bim-intro markup, so the variants must apply to each.      */

.protastructure-page .btn-red,
.protadetails-page .btn-red,
.protasteel-page .btn-red,
.protabim-page .btn-red {
    background: var(--red);
    color: var(--white);
    border-color: var(--red);
    box-shadow: 0 2px 12px rgba(0,0,0,0.18);
}
.protastructure-page .btn-red:hover,
.protadetails-page .btn-red:hover,
.protasteel-page .btn-red:hover,
.protabim-page .btn-red:hover {
    background: var(--red-dark);
    border-color: var(--red-dark);
    color: var(--white);
    transform: translateY(-1px);
}
.protastructure-page .btn-outline,
.protadetails-page .btn-outline,
.protasteel-page .btn-outline,
.protabim-page .btn-outline {
    background: transparent;
    color: var(--black);
    border-color: var(--black);
}
.protastructure-page .btn-outline:hover,
.protadetails-page .btn-outline:hover,
.protasteel-page .btn-outline:hover,
.protabim-page .btn-outline:hover {
    background: var(--black);
    color: var(--white);
    transform: translateY(-1px);
}
.protastructure-page .btn-outline-white,
.protadetails-page .btn-outline-white,
.protasteel-page .btn-outline-white,
.protabim-page .btn-outline-white {
    background: transparent;
    color: var(--white);
    border-color: rgba(255,255,255,0.5);
}
.protastructure-page .btn-outline-white:hover,
.protadetails-page .btn-outline-white:hover,
.protasteel-page .btn-outline-white:hover,
.protabim-page .btn-outline-white:hover {
    background: var(--white);
    color: var(--black);
    transform: translateY(-1px);
}

/* ── Section label / heading shared utility ─────────────────────────────── */

.protastructure-page .ps-section-label,
.protabim-page .ps-section-label {
    font-family: var(--font-display);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: var(--space-xl);
    color: var(--red);
}
.protastructure-page .ps-section-label::before,
.protabim-page .ps-section-label::before {
    content: '';
    display: block;
    width: 20px;
    height: 2px;
    background: currentColor;
}
.protastructure-page .ps-section-heading,
.protabim-page .ps-section-heading {
    font-family: var(--font-display);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

/* ── Scroll reveal ──────────────────────────────────────────────────────── */

.protastructure-page .reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}
.protastructure-page .reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
.protastructure-page .reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}
.protastructure-page .reveal-left.visible {
    opacity: 1;
    transform: translateX(0);
}
.protastructure-page .reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}
.protastructure-page .reveal-right.visible {
    opacity: 1;
    transform: translateX(0);
}
.protastructure-page .feat-slide-left {
    opacity: 0;
    transform: translateX(-56px);
    transition: opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}
.protastructure-page .feat-slide-right {
    opacity: 0;
    transform: translateX(56px);
    transition: opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: 0.1s;
}
.protastructure-page .feat-slide-left.visible,
.protastructure-page .feat-slide-right.visible {
    opacity: 1;
    transform: translateX(0);
}
.protastructure-page .delay-1 { transition-delay: 0.1s; }
.protastructure-page .delay-2 { transition-delay: 0.2s; }
.protastructure-page .delay-3 { transition-delay: 0.3s; }

/* ═══════════════════════════════════════════════════════════════════════════
   1. CAPABILITIES
═══════════════════════════════════════════════════════════════════════════ */

#capabilities {
    background: var(--ultra-light-blue);
    padding: 56px 0 64px;
    overflow: hidden;
    border-bottom: 1px solid var(--gray-200);
    position: relative;
}
.cap-bg-img-wrap {
    position: absolute;
    inset: -200px 0;
    pointer-events: none;
    z-index: 0;
    will-change: transform;
}
.cap-bg-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0.55;
}
.cap-content-wrap { position: relative; z-index: 1; }

/* Header row */
.cap-header-row .eyebrow {
    margin-bottom: var(--space-xl);
}
.cap-header-row {
    display: flex;
    align-items: center;
    gap: 48px;
    margin-bottom: 48px;
    padding-bottom: 40px;
}
.cap-header-left {
    flex: 1;
}
.cap-heading {
    font-family: var(--font-display);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--black);
    margin: 0;
    line-height: 1.15;
}
.cap-header-right {
    flex: 1;
    padding-left: 32px;
    padding-top: 20px;
    padding-bottom: 20px;
    border-left: 2px solid var(--red);
    align-self: center;
}
.cap-header-desc {
    font-size: 0.92rem;
    color: var(--color-black);
    line-height: 1.75;
    margin: 0;
}
.cap-header-desc strong { color: var(--black); }
.cap-header-right .cap-header-desc { margin: 0; }

/* Cards row */
.cap-cards-row {
    display: grid;
    /* 5 cards, each capped at 280px; minmax(0,…) lets them shrink to fit the
       container (≈250px at 1380px) instead of overflowing + being clipped */
    grid-template-columns: repeat(5, minmax(0, 280px));
    justify-content: center;   /* centered; cards don't stretch to full width */
    gap: var(--space-md);      /* tightened from --space-lg (24px) → 16px */
}
.cap-card-item {
    display: flex;
    flex-direction: column;
    min-width: 0;          /* allow each card to shrink inside the 5-col grid */
    gap: 14px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 24px 20px;
    opacity: 0;
    transform: translateY(-40px);
    transition: opacity 1.1s cubic-bezier(0.22,1,0.36,1), transform 1.1s cubic-bezier(0.22,1,0.36,1);
}
.cap-card-item.cap-card-in {
    opacity: 1;
    transform: translateY(0);
}
/* Icon + title share the top row; description sits full-width below */
.cap-card-head {
    display: flex;
    align-items: flex-end;
    gap: 12px;                 /* slightly tighter than --space-md (16px) → more room for the title */
}
.cap-card-icon {
    width: 80px;               /* reduced from 96px so the title area can widen */
    height: 80px;
    flex: 0 0 80px;            /* fixed-width icon; title takes the remaining space */
}
.cap-card-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.cap-card-title {
    font-family: var(--font-display);
    font-size: 1.125rem;   /* Figma: 18px */
    font-weight: 700;
    color: var(--black);
    margin: 0;
    flex: 1;               /* take all remaining width beside the fixed-width icon */
    min-width: 0;          /* let the title shrink/wrap beside the icon instead of overflowing */
    line-height: 1.333;    /* Figma: 24px */
    letter-spacing: -0.01em;
    word-break: normal;    /* break on whole words only — never mid-word ("Documenta/tion") */
    overflow-wrap: normal;
    hyphens: none;
}
.cap-card-desc {
    font-size: 0.75rem;    /* Figma: 12px */
    color: var(--black);   /* black body text (was --gray-600) */
    line-height: 1.5;      /* Figma: 18px */
    margin: 0;
}

@media (max-width: 1024px) {
    .cap-header-row { grid-template-columns: 1fr; gap: 24px; }
    .cap-cards-row  { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
    .cap-cards-row { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
    .cap-cards-row { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   2. BIM INTRO
═══════════════════════════════════════════════════════════════════════════ */

#bim-intro {
    background: var(--ultra-light-blue);
    padding: 0;
    border-bottom: 1px solid #d8eef7;
    overflow: hidden;
}
.bim-intro-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    align-items: stretch;
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}
.bim-intro-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 48px 48px 48px 0;
}
.bim-intro-text .eyebrow {
    margin-bottom: var(--space-xl);
}
.bim-intro-heading {
    font-family: var(--font-display);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
    color: var(--black);
    margin-bottom: 14px;
}
.bim-intro-heading .accent { color: var(--red); }
.bim-intro-lead {
    font-size: 0.9rem;
    color: var(--color-black);
    line-height: 1.65;
    margin-bottom: 20px;
    max-width: 480px;
}
.bim-workflow {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 24px;
}
.bim-workflow-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(0,0,0,0.08);
}
.bim-workflow-label {
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--black);
}
.bim-workflow-desc {
    font-size: 0.8rem;
    color: var(--color-black);
    line-height: 1.55;
    margin: 0;
}
.bim-intro-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.bim-intro-visual {
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    overflow: hidden;
}
.bim-intro-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: left bottom;
    min-height: 520px;
}
.bim-img-badge {
    position: absolute;
    bottom: 16px;
    left: 16px;
    background: var(--dark);
    color: var(--white);
    font-family: var(--font-display);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 7px 14px;
    border-radius: var(--radius, 2px);
    border: 1px solid var(--border);
}
.bim-img-tag {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--red);
    color: var(--white);
    font-family: var(--font-display);
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: var(--radius, 2px);
}

/* ═══════════════════════════════════════════════════════════════════════════
   3. FEATURES
═══════════════════════════════════════════════════════════════════════════ */

#features {
    background: var(--ultra-light-blue);
    padding: var(--section-gap) 0 0;
}
/* Row 5 "Powerful Integrated Design Modules" art is portrait (600×742); the
   shared .feat__img-panel fills the full panel height, making it tower over
   the landscape feature images. Center it and cap its height to match. */
.feat__img-panel--portrait {
    display: flex;
    align-items: center;
    justify-content: center;
}
.features-header {
    margin-bottom: 72px;
    padding-bottom: 64px;
    border-bottom: 1px solid var(--gray-200);
}
.features-main-heading {
    font-family: var(--font-display);
    font-weight: 800;
    line-height: 1.1;
    color: var(--black);
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}
.features-main-heading .accent { color: var(--red); }
.features-sub {
    font-size: 1.05rem;
    color: var(--color-black);
    max-width: 480px;
    line-height: 1.7;
}
.feat-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-top: 1px solid var(--gray-200);
}
.feat-row:last-child {
    border-bottom: 1px solid var(--gray-200);
    margin-bottom: var(--section-gap);
}
.feat-row-img {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    padding: 40px;
    min-height: 440px;
}
.feat-row-img img {
    display: block;
    width: 100%;
    max-height: 420px;
    object-fit: contain;
    box-shadow: 0 8px 32px rgba(0,0,0,0.08);
    transition: transform 0.55s cubic-bezier(0.22,1,0.36,1);
}
.feat-row:hover .feat-row-img img { transform: scale(1.03); }
.feat-row-text {
    position: relative;
    padding: 72px 64px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.feat-step {
    position: absolute;
    top: 20px;
    left: 48px;
    font-family: var(--font-display);
    font-size: clamp(88px, 9vw, 120px);
    font-weight: 800;
    color: transparent;
    -webkit-text-stroke: 1px var(--black);
    opacity: 0.07;
    letter-spacing: -0.04em;
    line-height: 1;
    pointer-events: none;
    user-select: none;
    z-index: 0;
}
.feat-row-label {
    font-family: var(--font-display);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--red);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}
.feat-row-label::before {
    content: '';
    display: block;
    width: 18px;
    height: 2px;
    background: var(--red);
    flex-shrink: 0;
}
.feat-row-title {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 2.2vw, 2rem);
    font-weight: 800;
    color: var(--black);
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}
.feat-row-desc {
    font-size: 0.95rem;
    color: var(--color-black);
    line-height: 1.75;
    margin-bottom: 28px;
    max-width: 440px;
    position: relative;
    z-index: 1;
}
.feat-row-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-display);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--red);
    transition: gap 0.2s ease;
    position: relative;
    z-index: 1;
}
.feat-row-link:hover { gap: 12px; color: var(--red); }
.feat-row-link svg { width: 14px; height: 14px; flex-shrink: 0; }

/* ═══════════════════════════════════════════════════════════════════════════
   4. VIDEO / DEMO
═══════════════════════════════════════════════════════════════════════════ */

#video-demo {
    position: relative;
    background: var(--dark);
    padding: var(--section-gap) 0;
    background-image: var(--video-demo-bg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
#video-demo::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    pointer-events: none;
}
.video-demo-inner {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0;
    text-align: left;
}
.video-demo-label {
    font-family: var(--font-display);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--red);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: var(--space-xl);
}
.video-demo-label::before {
    content: '';
    display: block;
    width: 20px;
    height: 2px;
    background: var(--red);
}
.video-demo-heading {
    font-family: var(--font-display);
    font-size: clamp(2rem, 3.5vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
    color: var(--white);
    margin-bottom: 16px;
}
.video-demo-sub {
    font-size: 1rem;
    color: var(--white);
    line-height: 1.65;
    max-width: 540px;
    margin: 0 0 48px;
}
.video-frame-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    background: var(--dark-2);
    border: 1px solid var(--border);
    border-radius: var(--radius, 2px);
    overflow: hidden;
    margin-bottom: 40px;
}
.video-frame-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--dark-3) 0%, var(--dark-2) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}
.video-thumbnail {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.video-play-btn {
    position: relative;
    z-index: 2;
    width: 72px;
    height: 72px;
    background: var(--red);
    border: none;
    border-radius: 2px;
    opacity: 0.88;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s, opacity 0.2s;
    box-shadow: 0 8px 32px rgba(225,27,34,0.4);
}
.video-play-btn:hover {
    background: var(--red-dark);
    opacity: 1;
    transform: scale(1.08);
    box-shadow: 0 12px 40px rgba(225,27,34,0.5);
}
.video-play-btn svg { width: 28px; height: 28px; color: var(--white); margin-left: 4px; }
.video-frame-label {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 16px 24px;
    background: linear-gradient(0deg, rgba(0,0,0,0.7) 0%, transparent 100%);
    font-family: var(--font-display);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.6);
    text-align: center;
}
.video-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ═══════════════════════════════════════════════════════════════════════════
   5. TECHNICAL SPECS
═══════════════════════════════════════════════════════════════════════════ */

#specs {
    background: var(--ultra-light-blue);
    padding: var(--section-gap) 0;
    border-bottom: 1px solid var(--gray-200);
}
.specs-layout {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 80px;
    align-items: start;
}
.specs-left { position: sticky; top: 96px; }
.specs-left .ps-section-label { color: var(--red); margin-bottom: var(--space-xl); }
.specs-left-img {
    display: block;
    width: 85%;
    margin-top: 28px;
}
.specs-left p {
    font-size: 0.95rem;
    color: var(--color-black);
    line-height: 1.75;
    max-width: 360px;
}
.specs-table-wrap {
    border: 1px solid #DCDDDE;
    border-radius: 2px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    background: var(--white);
}
.specs-table { width: 100%; border-collapse: collapse; }
.specs-table thead th {
    background: #000000;
    color: var(--white);
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 16px 24px;
    text-align: left;
    border-bottom: 1px solid #DCDDDE;
}
.specs-table thead th:first-child {
    border-right: 1px solid rgba(255, 255, 255, 0.15);
}
.specs-table tbody td {
    padding: 16px 24px;
    vertical-align: top;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.6;
    color: var(--black);
    border-bottom: 1px solid #DCDDDE;
}
.specs-table tbody tr:last-child td { border-bottom: none; }
.specs-table tbody td:first-child {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--black);
    white-space: nowrap;
    width: 200px;
    border-right: 1px solid #DCDDDE;
}
.specs-version {
    font-family: var(--font-display);
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--color-black);
    margin-top: var(--space-md);
    letter-spacing: 0.04em;
}

/* ═══════════════════════════════════════════════════════════════════════════
   6. CODES
═══════════════════════════════════════════════════════════════════════════ */

#codes {
    background: var(--ultra-light-blue);
    border-top: 1px solid var(--gray-200);
    padding: var(--section-gap) 0;
}
.codes-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}
.codes-left .ps-section-label { margin-bottom: var(--space-xl); }
.codes-left .ps-section-heading { margin-bottom: 20px; }
.codes-left p {
    color: var(--color-black);
    font-size: 1rem;
    line-height: 1.75;
    max-width: 420px;
    margin-bottom: 28px;
}
.codes-stats {
    display: flex;
    gap: 28px;
    margin: 24px 0 28px;
    padding-top: 4px;
}
.codes-stat-num {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--red);
    line-height: 1;
}
.codes-stat-label {
    font-family: var(--font-display);
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-black);
    margin-top: 3px;
}
.codes-regional {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius, 2px);
    overflow: hidden;
    margin-top: 32px;
}
.codes-region {
    padding: 18px 20px;
    border-right: 1px solid var(--gray-200);
    border-bottom: 1px solid var(--gray-200);
}
.codes-region:nth-child(even) { border-right: none; }
.codes-region:nth-last-child(-n+2) { border-bottom: none; }
.codes-region-name {
    font-family: var(--font-display);
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--red);
    margin-bottom: 6px;
}
.codes-region-detail { font-size: 0.78rem; color: var(--color-black); line-height: 1.6; }
.codes-right { padding-top: 8px; }
.codes-group {
    margin-bottom: 24px;
    background: #FFFFFF;
    border: 1px solid #DCDDDE;
    border-radius: 2px;
    padding: 24px;
}
.codes-group:last-child { margin-bottom: 0; }
.codes-group-title {
    font-family: var(--font-display);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #E11B22;
    margin-bottom: 16px;
}
.codes-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.code-pill {
    font-family: var(--font-display);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 6px 14px;
    min-width: 96px;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border: 1px solid #DCDDDE;
    color: var(--black);
    border-radius: 2px;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
    cursor: default;
    text-decoration: none;
    opacity: 0;
    transform: translateY(8px);
}
.code-pill.visible {
    opacity: 1;
    transform: translateY(0);
}
.code-pill--link {
    cursor: pointer;
}
.code-pill--link:hover {
    background: var(--red);
    border-color: var(--red);
    color: var(--white);
    transform: translateY(-1px);
}
.code-pill.visible {
    opacity: 1;
    transform: translateY(0);
}
.code-pill:hover {
    background: var(--red);
    border-color: var(--red);
    color: var(--white);
    transform: translateY(-1px);
}

/* ═══════════════════════════════════════════════════════════════════════════
   7. ADVANCED EARTHQUAKE
═══════════════════════════════════════════════════════════════════════════ */

#seismic-advanced {
    background: var(--dark);
    padding: var(--section-gap) 0;
}
.seismic-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: end;
    margin-bottom: 56px;
    padding-bottom: 48px;
    border-bottom: 1px solid var(--border);
}
.seismic-header-left .ps-section-label { color: var(--red); }
.seismic-heading {
    font-family: var(--font-display);
    font-size: clamp(2rem, 3.2vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
    color: var(--white);
}
.seismic-header-right p {
    font-size: 0.95rem;
    color: var(--white);
    line-height: 1.75;
    margin-bottom: 0;
}
.seismic-lead {
    border: 1px solid var(--border);
    background: var(--dark-2);
    padding: 48px 56px;
    margin-bottom: 2px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
}
.seismic-lead-label {
    font-family: var(--font-display);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--red);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}
.seismic-lead-label::before {
    content: '';
    display: block;
    width: 16px;
    height: 2px;
    background: var(--red);
}
.seismic-lead-heading {
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 2.2vw, 2rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.15;
    color: var(--white);
    margin-bottom: 16px;
}
.seismic-lead-desc { font-size: 0.92rem; color: var(--white); line-height: 1.75; }
.seismic-lead-points {
    display: flex;
    flex-direction: column;
    gap: 16px;
    border-left: 1px solid var(--border);
    padding-left: 48px;
}
.seismic-point { display: flex; align-items: flex-start; gap: 12px; }
.seismic-point-mark {
    width: 4px;
    height: 4px;
    background: var(--red);
    flex-shrink: 0;
    margin-top: 8px;
}
.seismic-point-text { font-size: 0.875rem; color: rgba(255,255,255,0.6); line-height: 1.6; }
.seismic-point-text strong {
    color: var(--white);
    font-weight: 600;
    display: block;
    margin-bottom: 2px;
}
.seismic-modules {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--border);
    margin-top: 2px;
}
.seismic-card {
    background: var(--dark-2);
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: background 0.2s;
}
.seismic-card:hover { background: var(--dark-3); }
.seismic-card-num {
    font-family: var(--font-display);
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    color: var(--red);
}
.seismic-card-icon {
    width: 36px;
    height: 36px;
    background: rgba(225,27,34,0.1);
    border: 1px solid rgba(225,27,34,0.2);
    border-radius: var(--radius, 2px);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
}
.seismic-card-icon svg { width: 18px; height: 18px; color: var(--red); }
.seismic-card-title {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: var(--white);
    line-height: 1.3;
}
.seismic-card-desc { font-size: 0.8rem; color: var(--white); line-height: 1.65; }

/* ═══════════════════════════════════════════════════════════════════════════
   8. DOWNLOAD CTA
═══════════════════════════════════════════════════════════════════════════ */

#cta-download {
    background: var(--dark);
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-top: 1px solid var(--border);
}
#cta-download::before {
    display: none;
}
.cta-dl-inner { position: relative; z-index: 1; }
.cta-dl-label {
    font-family: var(--font-display);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--red);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}
.cta-dl-label::before {
    content: '';
    display: block;
    width: 20px;
    height: 2px;
    background: var(--red);
}
.cta-dl-heading {
    font-family: var(--font-display);
    font-size: clamp(2rem, 3.8vw, 3.2rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
    color: var(--white);
    margin-bottom: 16px;
}
.cta-dl-sub {
    font-size: 1rem;
    color: var(--white);
    line-height: 1.65;
    max-width: 480px;
    margin: 0 auto 48px;
}
.cta-dl-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
}
.cta-trust {
    display: flex;
    gap: 32px;
    justify-content: center;
    flex-wrap: wrap;
}
.cta-trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-display);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.45);
}
.cta-trust-item svg { width: 14px; height: 14px; color: var(--red); flex-shrink: 0; }

/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
    .protastructure-page { --section-gap: 90px; }

    .cap-header { grid-template-columns: 1fr; gap: 28px; padding-bottom: 40px; }
    .cap-cards  { grid-template-columns: repeat(3, 1fr); }

    .bim-intro-layout { grid-template-columns: 1fr; gap: 48px; }

    .features-header { margin-bottom: 48px; padding-bottom: 40px; }
    .feat-row { grid-template-columns: 1fr; }
    .feat-row-img { order: 1; min-height: unset; padding: 28px 24px; }
    .feat-row-text { order: 2; padding: 40px 24px 48px; }
    .feat-step { font-size: 72px; top: 12px; left: 20px; }

    .specs-layout { grid-template-columns: 1fr; gap: 48px; }
    .specs-left { position: static; }

    .codes-layout { grid-template-columns: 1fr; gap: 48px; }

    .seismic-header { grid-template-columns: 1fr; gap: 28px; }
    .seismic-lead { grid-template-columns: 1fr; gap: 40px; padding: 40px; }
    .seismic-lead-points { border-left: none; padding-left: 0; border-top: 1px solid var(--border); padding-top: 32px; }
    .seismic-modules { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .protastructure-page { --section-gap: 72px; }

    .codes-regional { grid-template-columns: 1fr; }
    .codes-region { border-right: none; border-bottom: 1px solid var(--gray-200); }
    .codes-region:nth-child(even) { border-right: none; }
    .codes-region:last-child { border-bottom: none; }
}

/* Feature rows — space stacked description paragraphs (multi-paragraph live copy) */
.protastructure-page .feat__desc + .feat__desc { margin-top: var(--space-md); }
.protadetails-page .feat__desc + .feat__desc { margin-top: var(--space-md); }
.protabim-page .feat__desc + .feat__desc { margin-top: var(--space-md); }

/* FAQ styles moved to content.css (global) */
