/* ============================================================
   PLATFORM PAGE — specific styles
   ============================================================ */

.verb-icon {
    font-size: 24px;
    color: rgba(10, 10, 10, 0.4);
    display: block;
    margin-bottom: 12px;
}

/* Platform Hero — reuses .hero base but with own class */
.platform-hero {
    padding-top: 160px;
    padding-bottom: 60px;
}

.platform-hero h1 {
    font-family: 'Instrument Serif', serif;
    font-size: 120px;
    font-weight: 300;
    letter-spacing: -2.4px;
    line-height: 114px;
    margin-bottom: 16px;
}

.platform-hero h1 .line2 {
    display: block;
    margin-left: 300px;
}

.platform-hero .subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 22px;
    margin-bottom: 32px;
    max-width: 600px;
    opacity: 0.8;
}

/* Tighten action verbs to hero image */
.platform-hero + .action-verbs {
    padding-top: 32px;
}

/* PLATFORM FEATURE — Accordion variant (2-column: image + accordion) */
.platform-feature {
    padding: 80px 0;
}

.platform-feature-layout {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 32px;
    align-items: start;
}

.platform-feature-layout--reverse {
    grid-template-columns: 2fr 3fr;
}

.platform-feature-image {
    background-color: rgb(243, 238, 231);
    overflow: hidden;
}

.platform-feature-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    aspect-ratio: 3 / 2;
}

/* Illustration switcher — stacks multiple .scale-wrapper illustrations
   and fades between them as the adjacent accordion item changes. */
.platform-illustration-switcher {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.platform-illustration-switcher .switcher-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.45s ease;
    pointer-events: none;
}

.platform-illustration-switcher .switcher-slide.switcher-active {
    opacity: 1;
    pointer-events: auto;
}

/* Scale down the UI elements on the platform page so there's more
   breathing room / background around each illustration. Scoped to
   the switcher so the start-page illustrations are unaffected.
   Applied to .ui-content (not individual cards) because the cards
   themselves use transform for their entrance animations, which
   would override a card-level scale. */
.platform-illustration-switcher .ui-content {
    transform: scale(0.7);
    transform-origin: center;
}

/* Routines on the platform page: drop the right-side mask (there's
   room to show the full list) and center it instead of left-aligning.
   Start-page variant keeps its mask + left alignment. */
.platform-illustration-switcher .ill-routines .routines-ui {
    justify-content: center;
    padding: 0;
    -webkit-mask-image: none;
    mask-image: none;
}
.platform-illustration-switcher .ill-routines .routines-wrapper {
    width: 100%;
    max-width: none;
}

.platform-feature-content {
    padding-top: 0;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* Text breathes from edge, but lines and icons stay flush */
.platform-feature-content .platform-heading,
.platform-feature-text,
.accordion-panel p {
    padding-right: 24px;
}

.platform-feature-content .platform-label {
    margin-bottom: 16px;
}

.platform-feature-content .platform-heading {
    margin-bottom: 16px;
}

.platform-feature-text {
    font-size: 15px;
    line-height: 22px;
    opacity: 0.8;
    margin-bottom: 0;
}

/* Accordion */
.accordion {
    border-top: 1px solid rgba(10, 10, 10, 0.12);
}

.accordion-item {
    border-bottom: 1px solid rgba(10, 10, 10, 0.12);
    position: relative;
}

/* Auto-rotation progress bar */
.accordion-item::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: rgba(10, 10, 10, 0.35);
    transform: scaleX(0);
    transform-origin: left;
    pointer-events: none;
    z-index: 1;
}

.accordion-item.auto-active::before {
    animation: accordion-progress 5s linear forwards;
}

.accordion-item.auto-paused::before {
    animation-play-state: paused;
}

@keyframes accordion-progress {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

@media (prefers-reduced-motion: reduce) {
    .accordion-item::before {
        display: none;
    }
}

.accordion-trigger {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    background: none;
    border: none;
    cursor: pointer;
    font-family: 'Instrument Serif', serif;
    font-size: 18px;
    font-weight: 300;
    color: rgb(10, 10, 10);
    text-align: left;
    transition: opacity 0.2s;
}

.accordion-trigger:hover {
    opacity: 0.6;
}

.accordion-icon {
    font-family: 'Inter', sans-serif;
    font-size: 20px;
    font-weight: 300;
    color: rgba(10, 10, 10, 0.4);
    flex-shrink: 0;
    margin-left: 16px;
    transition: transform 0.2s;
}

.accordion-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.accordion-item.active .accordion-panel {
    max-height: 200px;
    padding-bottom: 14px;
}

.accordion-item.active .accordion-icon {
    transform: rotate(45deg);
}

.accordion-panel p {
    font-size: 14px;
    line-height: 20px;
    opacity: 0.7;
    max-width: 480px;
}

/* PLATFORM COMPARE — inverted (dark) 3-column comparison summary */
.platform-compare {
    background-color: rgb(35, 33, 30);
    color: rgb(254, 254, 252);
    padding: 100px 0;
    margin: 80px 0;
}

.platform-compare .platform-label {
    color: rgba(254, 254, 252, 0.5);
}

.platform-label--with-dots {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.compare-dots {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.compare-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    display: inline-block;
}

.compare-dot--red {
    background-color: rgb(210, 63, 49);
}

.compare-dot--yellow {
    background-color: rgb(214, 172, 0);
}

.compare-dot--green {
    background-color: rgb(52, 168, 83);
}

.platform-compare .platform-heading {
    color: rgb(254, 254, 252);
}

.platform-compare-intro {
    font-size: 15px;
    line-height: 22px;
    color: rgba(254, 254, 252, 0.7);
    margin-bottom: 64px;
    max-width: 600px;
}

.platform-compare-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
    margin-bottom: 48px;
    border-top: 1px solid rgba(254, 254, 252, 0.12);
    padding-top: 40px;
}

.platform-compare-col h3 {
    font-family: 'Instrument Serif', serif;
    font-size: 24px;
    font-weight: 300;
    letter-spacing: -0.48px;
    line-height: 30px;
    margin-bottom: 24px;
    color: rgb(254, 254, 252);
}

.platform-compare-tag {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(254, 254, 252, 0.4);
    margin-bottom: 6px;
}

.platform-compare-copilot {
    font-size: 13px;
    line-height: 20px;
    color: rgba(254, 254, 252, 0.5);
    margin-bottom: 20px;
}

.platform-compare-yesper {
    font-size: 14px;
    line-height: 21px;
    color: rgb(254, 254, 252);
    margin-bottom: 0;
}

.platform-compare-cta {
    display: inline-block;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: rgb(254, 254, 252);
    text-decoration: none;
    border-bottom: 1px solid rgba(254, 254, 252, 0.4);
    padding-bottom: 2px;
    transition: border-color 0.2s, opacity 0.2s;
}

.platform-compare-cta:hover {
    border-color: rgb(254, 254, 252);
    opacity: 0.8;
}

/* SECURITY & COMPLIANCE — dark band, joins seamlessly with .cta-strip--dark below */
.security {
    background-color: rgb(35, 33, 30);
    color: rgb(254, 254, 252);
    padding: 100px 0 80px;
}

.security .platform-label {
    color: rgba(254, 254, 252, 0.5);
    margin-bottom: 16px;
}

.security .platform-heading {
    color: rgb(254, 254, 252);
    margin-bottom: 24px;
}

.security-intro {
    font-size: 15px;
    line-height: 22px;
    color: rgba(254, 254, 252, 0.78);
    max-width: 640px;
    margin: 0 0 40px;
}

.security-symbols {
    display: flex;
    align-items: center;
    gap: 56px;
    margin-bottom: 56px;
    flex-wrap: wrap;
}

.security-symbols-group {
    display: flex;
    align-items: center;
    gap: 40px;
}

.security-symbols-group img {
    height: 56px;
    width: auto;
    display: block;
    opacity: 0.9;
}

.security-symbols-group--azure img {
    height: 45px;
}

.security-symbols-divider {
    display: inline-block;
    width: 1px;
    height: 48px;
    background-color: rgba(254, 254, 252, 0.4);
}

.security-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 48px 64px;
    border-top: 1px solid rgba(254, 254, 252, 0.18);
    padding-top: 40px;
    margin-bottom: 64px;
}

.security-tile h3 {
    font-family: 'Instrument Serif', serif;
    font-size: 24px;
    font-weight: 300;
    letter-spacing: -0.48px;
    line-height: 30px;
    margin: 0 0 14px;
    color: rgb(254, 254, 252);
}

.security-tile p {
    font-size: 14px;
    line-height: 22px;
    color: rgba(254, 254, 252, 0.75);
    margin: 0;
    max-width: 460px;
}

.security-builton {
    border-top: 1px solid rgba(254, 254, 252, 0.18);
    padding-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.security-builton-label {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(254, 254, 252, 0.5);
}

.security-builton-list {
    font-family: 'Instrument Serif', serif;
    font-size: 22px;
    font-weight: 300;
    letter-spacing: -0.44px;
    line-height: 28px;
    color: rgb(254, 254, 252);
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 14px;
}

.security-builton-dot {
    color: rgba(254, 254, 252, 0.4);
}

.security-builton-note {
    font-size: 13px;
    line-height: 20px;
    color: rgba(254, 254, 252, 0.5);
    margin: 0;
    max-width: 720px;
}

/* Dark CTA strip — joins onto the dark security section above */
.cta-strip--dark {
    background-color: rgb(35, 33, 30);
    color: rgb(254, 254, 252);
}

.cta-strip--dark .section-heading {
    color: rgb(254, 254, 252);
}

.cta-strip--dark .cta-strip-text {
    color: rgba(254, 254, 252, 0.78);
}

.cta-strip--dark .cta-btn {
    background-color: rgb(254, 254, 252);
    color: rgb(10, 10, 10);
}

.cta-strip--dark .cta-btn:hover {
    opacity: 0.85;
}

/* Remove default footer top margin/spacing so the dark band runs to the footer */
.cta-strip--dark + footer {
    margin-top: 0;
}

/* Responsive */
@media (max-width: 1200px) {
    .platform-feature-layout {
        grid-template-columns: 3fr 2fr;
        gap: 40px;
    }
    .platform-hero h1 {
        font-size: 88px;
        letter-spacing: -1.76px;
        line-height: 83.6px;
    }

    .platform-hero h1 .line2 {
        margin-left: 150px;
    }

    .security-grid {
        gap: 40px 48px;
    }
}

@media (max-width: 768px) {
    .platform-hero {
        padding-top: 120px;
        padding-bottom: 48px;
    }

    .platform-hero h1 {
        font-size: 56px;
        letter-spacing: -1.12px;
        line-height: 53px;
        margin-bottom: 24px;
    }

    .platform-hero h1 .line2 {
        margin-left: 0;
    }

    .platform-feature-layout,
    .platform-feature-layout--reverse {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    /* Dissolve the content wrapper so intro and accordion become direct
       grid items, then order: heading/para → illustration → accordion */
    .platform-feature-content {
        display: contents;
    }

    .platform-feature-intro        { order: 1; }
    .platform-illustration-switcher { order: 2; }
    .platform-feature-accordion     { order: 3; }

    .platform-feature {
        padding: 48px 0;
    }

    .platform-compare {
        padding: 48px 0;
    }

    .platform-compare-intro {
        margin-bottom: 40px;
    }

    .platform-compare-grid {
        grid-template-columns: 1fr;
        gap: 32px;
        padding-top: 32px;
    }

    .security {
        padding: 64px 0 48px;
    }

    .security-intro {
        margin-bottom: 40px;
    }

    .security-grid {
        grid-template-columns: 1fr;
        gap: 32px;
        padding-top: 32px;
        margin-bottom: 48px;
    }

    .security-tile h3 {
        font-size: 22px;
        line-height: 28px;
    }

    .security-builton-list {
        font-size: 18px;
        line-height: 24px;
        gap: 10px;
    }
}
