/* About — the hero of the home screen. It sits on a primary-tinted gradient
   so it stands apart from the neutral sections below, in both themes. */
.home-section.about {
    position: relative;
    background:
        linear-gradient(140deg,
            color-mix(in srgb, var(--theme-color-primary) 16%, var(--theme-bg-secondary)) 0%,
            color-mix(in srgb, var(--theme-color-primary) 7%, var(--theme-bg-secondary)) 55%,
            var(--theme-bg-secondary) 100%);
    border-color: color-mix(in srgb, var(--theme-color-primary) 26%, var(--theme-border-subtle));
}

/* Soft decorative glow in the top corner, behind the content. */
.home-section.about::before {
    content: '';
    position: absolute;
    top: -120px;
    inset-inline-end: -120px;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle,
        color-mix(in srgb, var(--theme-color-primary) 16%, transparent) 0%,
        transparent 70%);
    pointer-events: none;
}

.about-header.home-section-header {
    position: relative;
    padding-bottom: 0;
    border-bottom: none;
}

.about-title.home-section-title {
    font-size: var(--theme-font-xl);
    font-weight: var(--theme-font-weight-bold);
}

.about-title.home-section-title::before {
    height: 22px;
}

.about-body.home-section-body {
    position: relative;
}

/* Logo — the Edukors brand mark, swapped per theme for legible contrast. */
.about-logo {
    margin: 0 0 var(--theme-space-4);
}

.about-logo-image {
    display: block;
    width: auto;
    max-width: 220px;
    height: auto;
}

.about-logo-dark {
    display: none;
}

:root[data-theme="dark"] .about-logo-light {
    display: none;
}

:root[data-theme="dark"] .about-logo-dark {
    display: block;
}

.about-lead {
    margin: 0 0 var(--theme-space-3);
    max-width: 64ch;
    font-size: var(--theme-font-xl);
    font-weight: var(--theme-font-weight-medium);
    line-height: 1.55;
    color: var(--theme-text-primary);
}

.about-text {
    margin: 0 0 var(--theme-space-5);
    max-width: 64ch;
    font-size: var(--theme-font-lg);
    line-height: 1.65;
    color: var(--theme-text-secondary);
}

/* Manifesto — the primary call to action of the section. */
.about-manifesto {
    display: inline-flex;
    align-items: center;
    gap: var(--theme-space-2);
    margin: 0 0 var(--theme-space-6);
    padding: var(--theme-space-2) var(--theme-space-5);
    border: none;
    border-radius: var(--theme-radius-full);
    background: var(--theme-color-primary);
    color: var(--theme-text-inverse);
    font: inherit;
    font-size: var(--theme-font-lg);
    font-weight: var(--theme-font-weight-semibold);
    cursor: pointer;
    box-shadow: var(--theme-shadow-sm);
    transition: box-shadow 0.15s ease, transform 0.15s ease, filter 0.15s ease;
}

.about-manifesto:hover {
    filter: brightness(1.08);
    box-shadow: var(--theme-shadow-md);
    transform: translateY(-1px);
}

.about-manifesto-icon {
    display: inline-flex;
    color: currentColor;
}

.about-steps-intro {
    margin: 0 0 var(--theme-space-3);
    font-weight: var(--theme-font-weight-semibold);
    color: var(--theme-text-primary);
}

/* Steps — three raised cards laid out side by side on the tinted background. */
.about-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--theme-space-3);
    list-style: none;
    margin: 0;
    padding: 0;
}

.about-step {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: var(--theme-space-3);
    padding: var(--theme-space-4);
    background: var(--theme-surface-raised);
    border: 1px solid var(--theme-border-subtle);
    border-radius: var(--theme-radius-md);
    box-shadow: var(--theme-shadow-sm);
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.about-step:hover {
    border-color: color-mix(in srgb, var(--theme-color-primary) 35%, var(--theme-border-subtle));
    box-shadow: var(--theme-shadow-md);
    transform: translateY(-1px);
}

.about-step:focus-visible {
    outline: 2px solid var(--theme-color-primary);
    outline-offset: 2px;
}

/* Top row — number and icon on the left, the "go" button pushed to the end. */
.about-step-top {
    display: flex;
    align-items: center;
    gap: var(--theme-space-3);
}

.about-step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    border-radius: var(--theme-radius-full);
    background: var(--theme-color-primary);
    color: var(--theme-text-inverse);
    font-size: var(--theme-font-xs);
    font-weight: var(--theme-font-weight-semibold);
}

.about-step-icon {
    display: inline-flex;
    flex-shrink: 0;
    color: var(--theme-color-primary);
}

.about-step-label {
    min-width: 0;
    font-weight: var(--theme-font-weight-medium);
    color: var(--theme-text-primary);
}

/* Go — a compact accent-tinted cue with a trailing arrow; reacts to the whole
   card being hovered, since the entire step is now clickable. */
.about-go {
    display: inline-flex;
    align-items: center;
    gap: var(--theme-space-1);
    flex-shrink: 0;
    margin-inline-start: auto;
    padding: var(--theme-space-1) var(--theme-space-3);
    border-radius: var(--theme-radius-sm);
    background: transparent;
    color: var(--theme-color-primary);
    font-size: var(--theme-font-sm);
    font-weight: var(--theme-font-weight-semibold);
    transition: background 0.15s ease, transform 0.15s ease;
}

.about-step:hover .about-go {
    background: color-mix(in srgb, var(--theme-color-primary) 12%, transparent);
    transform: translateX(2px);
}

/* Manifesto modal — long-form reading, scrolls within the dialog. */
.about-manifesto-content {
    max-height: 62vh;
    overflow-y: auto;
    padding-right: var(--theme-space-2);
    line-height: 1.7;
    color: var(--theme-text-primary);
}

.about-manifesto-content > *:first-child {
    margin-top: 0;
}

.about-manifesto-content > *:last-child {
    margin-bottom: 0;
}

.about-manifesto-content p {
    margin: 0 0 var(--theme-space-4);
}

.about-manifesto-content h1,
.about-manifesto-content h2,
.about-manifesto-content h3 {
    margin: var(--theme-space-5) 0 var(--theme-space-3);
    line-height: 1.3;
}

.about-manifesto-content strong {
    color: var(--theme-text-primary);
}

@media (max-width: 640px) {
    .about-steps {
        grid-template-columns: 1fr;
    }
}
