/* motion-redesign.css - stÖkd Homepage Redesign */

/* --- Trust Banner --- */
.trust-banner {
    background: rgba(0, 0, 0, 0.03);
    border-bottom: 1px solid var(--color-border);
    padding: 0.75rem 0;
    text-align: center;
    position: relative;
    z-index: 1001;
    font-size: 0.85rem;
    color: var(--color-text-secondary);
}

.trust-banner-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.trust-banner-accent {
    color: var(--color-accent-primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* --- Hero Adjustments --- */
.hero_redesign {
    padding: 8rem 0 6rem;
    text-align: center;
}

.hero_redesign h1 {
    font-size: clamp(3rem, 8vw, 6rem);
    margin-bottom: 1.5rem;
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.hero_redesign .subtext {
    font-size: 1.25rem;
    max-width: 60ch;
    margin: 0 auto 3rem;
    color: var(--color-text-secondary);
}

/* --- Interactive Feature Menu --- */
.interactive-section {
    padding: 6rem 0;
}

.interactive-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: start;
}

.interactive-tabs {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.tab-item {
    border: 1px solid rgba(0, 0, 0, 0.06);
    padding: 1.5rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.tab-item:hover {
    border-color: rgba(0, 0, 0, 0.12);
}

.tab-item.is-active {
    border-color: var(--color-accent-primary);
}

/* --- Interactive Feature Menu (Accordion Style) --- */
.tab-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.dropdown-icon {
    transition: transform 0.3s ease;
    opacity: 0.5;
}

.tab-item.is-active .dropdown-icon {
    transform: rotate(180deg);
    opacity: 1;
}

.tab-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, margin-top 0.3s ease;
    margin-top: 0;
}

.tab-item.is-active .tab-content {
    max-height: 500px;
    margin-top: 1rem;
}

.tab-item h4 {
    margin-bottom: 0;
    font-size: 1.15rem;
    line-height: 1.4;
    color: var(--color-text-primary);
    max-width: 90%;
}

.tab-item p {
    font-size: 0.95rem;
    margin: 0;
    opacity: 0.8;
    line-height: 1.6;
}

/* --- Dual-List Comparison Comparison --- */
.dual-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 4rem;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.comparison-column {
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    padding: 2rem;
    background: var(--color-bg-primary);
}

.column-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 2rem;
    text-align: center;
    opacity: 0.6;
}

.stokd-list .column-label {
    color: var(--color-accent-primary);
    opacity: 1;
}

.comparison-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.comparison-row {
    height: 80px;
    /* Force alignment across columns */
    padding: 1rem;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: 1px solid transparent;
}

.others-list .comparison-row {
    background: transparent !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    opacity: 0.65;
    border-radius: 0;
}

.stokd-list .comparison-row {
    background: transparent !important;
    border-bottom: 1px solid rgba(45, 212, 191, 0.1);
    border-radius: 0;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.stokd-list .comparison-row:hover {
    background: linear-gradient(90deg, rgba(45, 212, 191, 0.04) 0%, transparent 100%) !important;
    border-bottom-color: rgba(45, 212, 191, 0.4);
    padding-left: 1.5rem;
    /* Subtle reactive movement */
}

.comparison-row strong {
    display: block;
    font-size: 0.95rem;
    margin-bottom: 0.2rem;
    transition: color 0.3s ease;
}

.stokd-list .comparison-row strong {
    color: var(--color-text-primary);
    display: flex;
    align-items: center;
}

.comparison-row p {
    font-size: 0.85rem;
    margin: 0;
    line-height: 1.4;
    opacity: 0.7;
}

.others-list .comparison-row p {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Responsive Dual-List */
@media (max-width: 768px) {
    .dual-comparison {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .comparison-row {
        height: auto;
        min-height: 70px;
    }
}

.interactive-visual {
    position: sticky;
    top: 120px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

/* --- Browser Frame Treatment --- */
.browser-frame {
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    background: #F0EEEB;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow:
        0 40px 100px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(0, 0, 0, 0.05),
        0 0 80px rgba(20, 184, 166, 0.04);
}

.browser-chrome {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #e8e6e3;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.browser-dots {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.browser-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.1);
}

.browser-dots span:first-child {
    background: #ff5f57;
}

.browser-dots span:nth-child(2) {
    background: #febc2e;
}

.browser-dots span:nth-child(3) {
    background: #28c840;
}

.browser-address-bar {
    flex: 1;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 6px;
    padding: 5px 12px;
    font-size: 0.75rem;
    color: rgba(0, 0, 0, 0.4);
    font-family: 'Inter', monospace;
    letter-spacing: 0.02em;
}

.browser-viewport {
    background: #f8faf9;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 280px;
}

.visual-placeholder {
    width: 100%;
    height: auto;
    max-width: 100%;
    object-fit: contain;
    border-radius: 8px;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Strategy Document Mockup --- */
.strategy-mockup {
    background: #F0EEEB;
    border-radius: 0 0 16px 16px;
    overflow: hidden;
}

.strat-doc {
    display: grid;
    grid-template-columns: 180px 1fr;
    min-height: 340px;
    font-family: 'Inter', sans-serif;
}

.strat-doc-sidebar {
    background: #e8e6e3;
    padding: 20px 16px;
    border-right: 1px solid rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.strat-sidebar-logo {
    font-size: 1.1rem;
    font-weight: 700;
    color: rgba(0, 0, 0, 0.85);
    letter-spacing: -0.02em;
}

.strat-sidebar-logo span {
    color: var(--color-accent-primary, #2DD4BF);
}

.strat-sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.strat-nav-item {
    font-size: 0.65rem;
    padding: 6px 10px;
    border-radius: 6px;
    color: rgba(0, 0, 0, 0.4);
    cursor: default;
    transition: all 0.2s;
}

.strat-nav-item.is-active {
    background: rgba(20, 184, 166, 0.1);
    color: var(--color-accent-primary, #14B8A6);
    font-weight: 600;
}

.strat-sidebar-meta {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-top: 16px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.strat-meta-label {
    font-size: 0.55rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(0, 0, 0, 0.35);
}

.strat-meta-value {
    font-size: 0.75rem;
    color: rgba(0, 0, 0, 0.7);
    font-weight: 600;
    margin-bottom: 8px;
}

.strat-doc-body {
    padding: 24px 28px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    overflow: hidden;
}

.strat-doc-header {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.strat-doc-badge {
    display: inline-block;
    width: fit-content;
    font-size: 0.55rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 3px 10px;
    border-radius: 4px;
    border: 1px solid var(--color-accent-primary, #2DD4BF);
    color: var(--color-accent-primary, #2DD4BF);
    margin-bottom: 4px;
}

.strat-doc-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: rgba(0, 0, 0, 0.9);
    margin: 0;
    letter-spacing: -0.02em;
}

.strat-doc-subtitle {
    font-size: 0.75rem;
    color: rgba(0, 0, 0, 0.45);
    margin: 0;
}

.strat-doc-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.strat-section-label {
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(0, 0, 0, 0.35);
    font-weight: 600;
}

.strat-metrics-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.strat-metric {
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 10px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.strat-metric-value {
    font-size: 1.4rem;
    font-weight: 700;
    color: rgba(0, 0, 0, 0.85);
    letter-spacing: -0.02em;
}

.strat-metric-label {
    font-size: 0.6rem;
    color: rgba(0, 0, 0, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.strat-metric-trend {
    font-size: 0.65rem;
    font-weight: 600;
    margin-top: 4px;
}

.strat-metric-trend.up {
    color: var(--color-accent-primary, #2DD4BF);
}

.strat-metric-trend.neutral {
    color: rgba(0, 0, 0, 0.35);
}

/* Redacted content lines */
.strat-redacted-block {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.strat-redacted-line {
    height: 8px;
    background: rgba(0, 0, 0, 0.06);
    border-radius: 4px;
}

.strat-redacted-line.w45 { width: 45%; }
.strat-redacted-line.w50 { width: 50%; }
.strat-redacted-line.w60 { width: 60%; }
.strat-redacted-line.w70 { width: 70%; }
.strat-redacted-line.w75 { width: 75%; }
.strat-redacted-line.w80 { width: 80%; }
.strat-redacted-line.w85 { width: 85%; }
.strat-redacted-line.w90 { width: 90%; }
.strat-redacted-line.w95 { width: 95%; }

/* Callout block */
.strat-callout {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    background: rgba(45, 212, 191, 0.04);
    border: 1px solid rgba(45, 212, 191, 0.12);
    border-radius: 8px;
    padding: 12px;
}

.strat-callout-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(45, 212, 191, 0.15);
    color: var(--color-accent-primary, #2DD4BF);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 700;
    flex-shrink: 0;
}

.strat-callout-text {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

/* Recommendations */
.strat-recommendations {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.strat-rec {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 10px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.strat-rec-num {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--color-accent-primary, #2DD4BF);
    opacity: 0.6;
    flex-shrink: 0;
    padding-top: 1px;
}

.strat-rec-content {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

/* --- Comparison Table Refinement --- */
.comparison-header {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.comparison-table tr td:first-child {
    vertical-align: top;
    padding-top: 2.2rem;
}

.check-icon {
    color: var(--color-accent-primary);
    margin-right: 0.5rem;
}

.cross-icon {
    color: var(--color-accent-secondary);
    margin-right: 0.5rem;
    opacity: 0.5;
}

/* --- Enhanced Testimonials --- */
.testimonial-scroller {
    overflow: hidden;
    padding: 2rem 0 4rem;
}

.testimonial-track {
    display: flex;
    gap: 2rem;
    animation: testimonial-scroll 30s linear infinite;
    width: max-content;
}

.testimonial-scroller:hover .testimonial-track {
    animation-play-state: paused;
}

@keyframes testimonial-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-50% - 1rem)); }
}

.review-card {
    flex: 0 0 400px;
    background: var(--color-bg-secondary);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid var(--color-border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

.review-stars {
    color: #FFD700;
    margin-bottom: 1rem;
    font-size: 0.8rem;
    letter-spacing: 0.2em;
}

.review-body {
    font-size: 1.125rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    font-style: italic;
    color: var(--color-text-primary) !important;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 48px;
    height: 48px;
    background: var(--color-bg-tertiary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--color-accent-primary);
}

.author-info h5 {
    margin: 0;
    font-size: 1rem;
}

.author-info p {
    margin: 0;
    font-size: 0.85rem;
}

/* Responsive Grid */
@media (max-width: 991px) {
    .interactive-grid {
        grid-template-columns: 1fr;
    }

    /* Show the visual ABOVE the tabs on mobile */
    .interactive-visual {
        position: static;
        order: -1;
    }

    .interactive-tabs {
        order: 1;
    }

    .browser-viewport {
        min-height: 180px;
        padding: 12px;
    }

    .strat-doc {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .strat-doc-sidebar {
        display: none;
    }

    .strat-doc-body {
        padding: 16px;
    }

    /* Remove overflow clipping on mobile containers */
    .container.overflow-hidden {
        overflow: visible;
    }
}

/* =========================================
   Mobile Responsiveness - iPhone 16 Pro (393px)
   ========================================= */

/* --- Trust Banner Mobile --- */
@media (max-width: 768px) {
    .trust-banner {
        font-size: 0.75rem;
        padding: 0.5rem 0;
    }

    .trust-banner-content {
        flex-wrap: wrap;
        gap: 0.25rem 0.5rem;
        font-size: 0.7rem;
    }

    .trust-separator {
        display: none;
    }
}

/* --- Hero Mobile --- */
@media (max-width: 480px) {
    .hero_redesign {
        padding: 4rem 0 3rem;
    }

    .hero_redesign h1 {
        font-size: clamp(2.25rem, 10vw, 3.5rem);
    }
}

/* --- Interactive Section Mobile --- */
@media (max-width: 768px) {
    .interactive-section {
        padding: 3rem 0;
    }

    .interactive-section .section_header {
        margin-bottom: 2rem;
    }

    .interactive-tabs {
        gap: 0.75rem;
    }

    .tab-item {
        padding: 1rem;
    }

    .tab-item h4 {
        font-size: 0.95rem;
        max-width: 85%;
    }

    .tab-item p {
        font-size: 0.85rem;
    }

    .tab-item.is-active .tab-content {
        max-height: none;
    }

    /* Browser frame on mobile */
    .browser-chrome {
        padding: 8px 12px;
        gap: 8px;
    }

    .browser-dots span {
        width: 8px;
        height: 8px;
    }

    .browser-address-bar {
        font-size: 0.65rem;
        padding: 4px 8px;
    }

    .browser-viewport {
        min-height: 150px;
        padding: 8px;
    }

    /* Strategy mockup mobile */
    .strat-doc-body {
        padding: 12px;
        gap: 12px;
    }

    .strat-doc-title {
        font-size: 1rem;
    }

    .strat-metrics-row {
        gap: 6px;
    }

    .strat-metric {
        padding: 8px;
    }

    .strat-metric-value {
        font-size: 1rem;
    }

    .strat-metric-label {
        font-size: 0.5rem;
    }

    .strat-rec {
        padding: 6px;
        gap: 8px;
    }
}

/* --- Comparison Section Mobile --- */
@media (max-width: 768px) {
    .comparison-section {
        padding: 2rem 0 !important;
        overflow: visible !important;
    }

    .comparison-section .container {
        overflow: visible !important;
    }

    .comparison-header {
        margin-bottom: 2rem;
    }

    .comparison-header h2 {
        font-size: 1.5rem;
    }

    .dual-comparison {
        gap: 1.5rem;
        margin-top: 2rem;
    }

    .comparison-column {
        padding: 1rem;
        border-radius: 12px;
        overflow: visible;
    }

    .column-label {
        margin-bottom: 1rem;
    }

    .comparison-list {
        gap: 0.5rem;
    }

    .comparison-row {
        height: auto;
        min-height: auto;
        padding: 0.75rem;
    }

    .comparison-row strong {
        font-size: 0.8rem;
        line-height: 1.3;
    }

    .comparison-row p {
        font-size: 0.75rem;
        line-height: 1.3;
    }

    /* Fix text overflow in "others" column */
    .others-list .comparison-row p {
        white-space: normal;
        overflow: visible;
        text-overflow: unset;
    }
}

/* --- Testimonials Mobile --- */
@media (max-width: 480px) {
    .review-card {
        flex: 0 0 calc(100vw - 3rem);
        max-width: calc(100vw - 3rem);
        padding: 1.5rem;
        border-radius: 16px;
    }

    .review-body {
        font-size: 0.95rem;
        margin-bottom: 1.25rem;
    }

    .author-info h5 {
        font-size: 0.9rem;
    }

    .author-info p {
        font-size: 0.75rem;
    }

    .testimonial-scroller {
        padding: 1rem 0 2rem;
    }

    .testimonial-track {
        gap: 1rem;
        animation-duration: 20s;
    }
}

@media (min-width: 481px) and (max-width: 768px) {
    .review-card {
        flex: 0 0 340px;
    }
}

/* --- "Why You Can't Build This" Section Mobile --- */
@media (max-width: 768px) {
    .section.bg-light .interactive-grid {
        gap: 2rem;
    }

    .section.bg-light .feature_visual {
        padding: 1.5rem !important;
    }

    .section.bg-light .hero_content h2 {
        font-size: 1.5rem;
    }
}

/* --- CTA Section Mobile --- */
@media (max-width: 480px) {
    .cta_section h2 {
        font-size: 1.5rem;
    }

    .button {
        font-size: 0.85rem;
        padding: 0.75em 1.5em;
    }
}

/* --- Footer Mobile --- */
@media (max-width: 480px) {
    .footer {
        padding: 3rem 0 2rem;
    }

    .footer_grid {
        gap: 2rem;
    }

    .footer_nav {
        gap: 1.5rem;
    }
}

/* --- General Mobile Spacing --- */
@media (max-width: 480px) {
    .section {
        padding: 3rem 0;
    }

    .section_header h2 {
        font-size: 1.5rem;
    }

    /* Override overflow-hidden on mobile so content isn't clipped */
    .overflow-hidden {
        overflow: visible !important;
    }
}