/* Shared page-specific styles for index.html and filio.html */

/* Custom sizing for Filio portrait image (applies globally via .app-portrait and also when scoped under #app) */
.app-portrait,
#app .app-portrait {
    width: 260px;
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

@media (min-width: 980px) {

    .app-portrait,
    #app .app-portrait {
        width: 320px;
    }
}

/* Reduce left padding specifically for the app highlight to tighten visual focus */
#app .inner {
    padding-left: 1.25rem;
    padding-right: 1.75rem;
}

@media (min-width: 736px) {
    #app .inner {
        padding-left: 1.75rem;
        padding-right: 2rem;
    }
}

@media (min-width: 980px) {
    #app .inner {
        padding-left: 2rem;
        padding-right: 2.5rem;
    }
}

/* Center the Filio portrait image vertically relative to adjacent text */
#app .split.style1 {
    align-items: center;
}

#app .split.style1>section:first-child {
    display: flex;
    justify-content: center;
}

#app .split.style1>section:first-child .image {
    margin: 0;
}

/* New layout to align with spotlights image/content proportions */
#app .app-layout {
    display: flex;
    flex-direction: row;
    align-items: center;
}

#app .app-media {
    width: 25em;
    display: flex;
    justify-content: center;
}

#app .app-media .image {
    width: 100%;
    margin: 0;
}

#app .app-content {
    padding: 4em 5em 2em 5em;
    max-width: 50em;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media (max-width:1680px) {
    #app .app-content {
        padding: 4em 4em 2em 4em;
    }
}

@media (max-width:980px) {
    #app .app-layout {
        flex-direction: column;
    }

    #app .app-media {
        width: 100%;
    }

    #app .app-content {
        padding: 3em 2em 1em 2em;
    }
}

/* Imprint (legal notice) font size reduction */
ul.contact.imprint {
    font-size: 0.85rem;
    line-height: 1.35;
}

ul.contact.imprint h3 {
    font-size: 1.05rem;
    margin-bottom: 0.6rem;
}

ul.contact.imprint address,
ul.contact.imprint p {
    margin: 0 0 0.75rem 0;
}

@media (min-width: 980px) {
    ul.contact.imprint {
        font-size: 0.8rem;
    }
}

/* Professional social icons for profile */
#one .profile-social {
    display: flex;
    gap: 0.75rem;
    margin: 1rem 0 1.5rem 0;
}

#one .profile-social .social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

#one .profile-social .social-link:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    color: #ffffff;
    transform: translateY(-2px);
}

#one .profile-social .linkedin {
    background: rgba(0, 119, 181, 0.15);
    border-color: rgba(0, 119, 181, 0.3);
}

#one .profile-social .linkedin:hover {
    background: rgba(0, 119, 181, 0.25);
    border-color: rgba(0, 119, 181, 0.5);
}

#one .profile-social .substack {
    background: rgba(255, 103, 25, 0.08);
    border-color: rgba(255, 103, 25, 0.35);
}

#one .profile-social .substack:hover {
    background: rgba(255, 103, 25, 0.18);
    border-color: rgba(255, 103, 25, 0.55);
}

#one .profile-social .substack-svg {
    width: 1.15rem;
    height: 1.15rem;
    display: block;
}

#one .profile-social .substack-img {
    width: 1.25rem;
    height: 1.25rem;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.25));
}

/* Education section */
.education-wrapper {
    max-width: 70rem;
}

.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(22rem, 1fr));
    gap: 2.25rem 3rem;
    margin-top: 2.5rem;
    padding-left: 1rem;
    /* added indentation */
    position: relative;
}

@media (min-width: 980px) {
    .education-grid {
        padding-left: 1.5rem;
    }
}

.education-grid .edu-item {
    background: none;
    border: 0;
    border-radius: 0;
    padding: 0 0 0 0;
    position: relative;
    transition: transform 0.3s ease;
    /* vertical rhythm */
    margin: 0;
}

/* add subtle divider between items on wider screens */
.education-grid .edu-item:not(:last-child)::after {
    content: '';
    display: block;
    margin: 1.75rem 0 0 0;
    height: 1px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0));
}

.education-grid .edu-item:hover {
    transform: translateY(-4px);
}

.education-grid .edu-title {
    margin: 0 0 0.35rem 0;
    font-size: 1.0rem;
    /* reduced for clearer hierarchy */
    letter-spacing: 0.03em;
    font-weight: 600;
    line-height: 1.3;
}

.education-grid .edu-entity {
    font-size: 0.9rem;
    letter-spacing: 0.04em;
    margin: 0 0 0.75rem 0;
    text-transform: uppercase;
    opacity: 0.8;
}

.education-grid .edu-date {
    display: block;
    font-weight: 600;
    margin: 0.25rem 0 0 0;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    opacity: 0.7;
}

.education-grid .edu-desc {
    font-size: 0.95rem;
    line-height: 1.45;
    margin: 0;
}

@media (max-width: 736px) {
    .education-grid {
        grid-template-columns: 1fr;
        gap: 1.75rem;
    }

    .education-grid .edu-item:not(:last-child)::after {
        margin-top: 1.25rem;
    }
}

/* Support bullet lists inside items */
.education-grid .edu-item ul {
    margin: 0.5rem 0 0.75rem 1.25rem;
    padding: 0;
    font-size: 0.9rem;
    line-height: 1.45;
}

.education-grid .edu-item ul li {
    margin: 0 0 0.4rem 0;
}

/* Release / status note for app highlight */
.release-note {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 0.6rem 0.9rem;
    border-radius: 0.8rem;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.95);
    max-width: 44rem;
}

.release-note .status-pill {
    display: inline-block;
    background: linear-gradient(90deg, #ffd166 0%, #ff8c42 100%);
    color: #111;
    font-weight: 700;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    font-size: 0.85rem;
    letter-spacing: 0.04em;
}

.release-note .release-text {
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.25;
}

@media (max-width: 980px) {
    .release-note {
        display: block;
        padding: 0.6rem 0.75rem;
    }

    .release-note .status-pill {
        margin-bottom: 0.35rem;
    }
}

/* --- Filio page feature styles --- */
.feature-block {
    display: flex;
    gap: 3rem;
    align-items: center;
    margin: 0 0 6rem 0;
}

/* Adjust feature media to center portrait images and use a consistent width similar to index app section */
.feature-media {
    flex: 0 0 25em;
    display: flex;
    justify-content: center;
}

.feature-media .image {
    margin: 0;
}

/* Only make non-portrait images fill available width */
.feature-media img:not(.app-portrait) {
    width: 100%;
}

.feature-media img {
    height: auto;
    border-radius: 0.5rem;
}

/* Ensure portrait images keep intended fixed sizing inside feature blocks */
.feature-media img.app-portrait {
    width: 260px;
    max-width: 100%;
}

@media (min-width: 980px) {
    .feature-media img.app-portrait {
        width: 320px;
    }
}

.feature-content {
    flex: 1;
}

.feature-content h3 {
    margin: 0 0 0.75rem 0;
}

.feature-content p {
    margin: 0 0 1rem 0;
}

@media (max-width: 980px) {
    .feature-block {
        flex-direction: column !important;
        gap: 2rem;
    }

    .feature-media,
    .feature-content {
        width: 100%;
    }
}

.hero-intro {
    max-width: 54rem;
}

.back-nav {
    margin: 0 0 2rem 0;
}

/* Hero spotlight layout for community hero */
.hero-spotlight {
    display: grid;
    gap: 2rem 3rem;
    align-items: center;
    margin: 2rem 0 1rem 0;
}

@media (min-width: 980px) {
    .hero-spotlight {
        grid-template-columns: 1.25fr 1fr;
    }
}

.hero-spotlight .content h2 {
    margin: 0 0 0.75rem 0;
}

.hero-spotlight .image img {
    border-radius: 0.6rem;
}

.pill {
    display: inline-block;
    background: linear-gradient(90deg, #ffd166, #ff8c42);
    color: #111;
    font-weight: 600;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
}

.feature-tag {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.65;
    display: block;
    margin: -0.25rem 0 0.6rem 0;
}

.cta-panel {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    padding: 2.25rem 2rem;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 1rem;
    text-align: center;
}

.cta-panel h3 {
    margin: 0 0 1rem 0;
}

.cta-panel p {
    margin: 0 0 1.5rem 0;
}

/* Center the Filio CTA panel within its section */
#filio-cta .inner {
    display: flex;
    justify-content: center;
}

#filio-cta .cta-panel {
    max-width: 36rem;
    width: 100%;
    margin: 0 auto;
}

#filio-cta .actions {
    display: flex;
    justify-content: center;
}

/* =============================
   Filio landing page redesign
   ============================= */
body.filio-page .hero-section {
    padding-top: 6rem;
}

.skip-link {
    position: absolute;
    left: -999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.skip-link:focus {
    position: fixed;
    left: 1rem;
    top: 1rem;
    width: auto;
    height: auto;
    background: #fff;
    color: #111;
    padding: 0.5rem 0.75rem;
    border-radius: 0.4rem;
    z-index: 10000;
}

.hero-title {
    font-size: 2.35rem;
    line-height: 1.15;
    margin: 0 0 1rem 0;
}

@media (min-width: 980px) {
    .hero-title {
        font-size: 3rem;
    }
}

.hero-sub {
    font-size: 1.15rem;
    max-width: 50rem;
}

.value-points {
    list-style: none;
    padding: 0;
    margin: 1.25rem 0 1.75rem 0;
    display: grid;
    gap: 0.6rem 1.25rem;
    grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}

.value-points li::before {
    content: '\2713';
    margin-right: 0.5rem;
    color: #ffd166;
}

.primary-cta .button+.button {
    margin-left: 0.75rem;
}

@media (max-width: 736px) {
    .primary-cta .button {
        display: block;
        margin: 0 0 0.75rem 0;
    }

    .primary-cta .button+.button {
        margin: 0;
    }
}

/* Problem section */
.problem-section .two-col {
    display: grid;
    gap: 2.5rem;
}

@media (min-width: 980px) {
    .problem-section .two-col {
        grid-template-columns: 1fr 1fr;
    }
}

.narrow {
    max-width: 62rem;
}

/* Feature grid redesign */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
    gap: 3rem 2.5rem;
    margin-top: 3rem;
}

.feature-card {
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.025));
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 1.75rem 1.5rem 1.5rem 1.5rem;
    border-radius: 1rem;
    position: relative;
    transition: transform .35s ease, border-color .35s ease, background .35s ease;
}

.feature-card:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 255, 255, 0.15);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
}

.feature-card .media-wrap {
    margin: 0 0 1.25rem 0;
    text-align: center;
}

.feature-card img {
    border-radius: 0.5rem;
}

.feature-card .feature-body p {
    margin: 0;
}

.section-intro {
    max-width: 56rem;
}

/* How it works */
.how-steps {
    counter-reset: how;
    list-style: none;
    padding: 0;
    margin: 2rem 0 0 0;
    display: grid;
    gap: 1.4rem 2.25rem;
    grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
}

.how-steps li {
    position: relative;
    padding-left: 2.75rem;
    line-height: 1.45;
}

.how-steps li::before {
    counter-increment: how;
    content: counter(how);
    position: absolute;
    left: 0;
    top: 0;
    width: 2rem;
    height: 2rem;
    background: linear-gradient(135deg, #ffd166, #ff8c42);
    color: #111;
    border-radius: 50%;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

/* Roadmap */
.roadmap-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
    margin-top: 2.25rem;
}

.roadmap-item {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.07);
    padding: 1.5rem 1.25rem 1.25rem 1.25rem;
    border-radius: 0.9rem;
    transition: transform .3s ease, border-color .3s ease;
}

.roadmap-item:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.15);
}

.roadmap-phase {
    margin: 0 0 0.75rem 0;
    font-size: 1.05rem;
}

.roadmap-item ul {
    margin: 0;
    padding-left: 1.1rem;
    font-size: 0.9rem;
    line-height: 1.45;
}

.roadmap-item ul li {
    margin: 0 0 0.4rem 0;
}

/* FAQ */
.faq-section details {
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 0.75rem;
    padding: 0.85rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    transition: background .3s ease, border-color .3s ease;
}

.faq-section details+details {
    margin-top: 0.9rem;
}

.faq-section details[open] {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.12);
}

.faq-section summary {
    cursor: pointer;
    font-weight: 600;
    outline: none;
}

.faq-section summary::-webkit-details-marker {
    display: none;
}

/* Accessibility & motion preferences */
@media (prefers-reduced-motion: reduce) {

    .feature-card,
    .roadmap-item {
        transition: none;
    }

    .feature-card:hover,
    .roadmap-item:hover {
        transform: none;
    }
}