/* ========================================
   LANDING PAGE STYLES
   Home page: hero, outcomes, path, TEACH intro, features, AI disclosure dialog
   ======================================== */

/* MARK: - Section titles */
.landing-section-title {
    font-size: 1.85em;
    font-weight: 700;
    margin-bottom: 1.25rem;
    color: var(--color-text-primary);
}

.landing-section-title--center {
    text-align: center;
}

/* MARK: - Hero
   Horizontal padding matches other sections and .header (see --section-padding-x in base.css)
   so the hero art, headline, and CTAs share one column; overrides generic section padding. */
.hero {
    padding: 0 var(--section-padding-x) 64px;
    text-align: center;
    background: transparent;
}

.hero-image-wrapper {
    position: relative;
    display: block;
    max-width: 920px;
    margin: 0 auto 32px;
}

.hero-image {
    display: block;
    width: 100%;
    height: auto;
    margin: 0;
    object-fit: cover;
    border-radius: var(--radius-floating);
    box-shadow: var(--shadow-floating);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.ai-disclosure-badge {
    position: absolute;
    bottom: 44px;
    right: 12px;
    padding: 8px 16px;
    border: 2.5px solid rgba(255, 255, 255, 0.9);
    border-radius: 9999px;
    background: #052049;
    color: #fff;
    font-family: inherit;
    font-size: 0.9em;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: background 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.ai-disclosure-badge:hover {
    background: #06325c;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border-color: #fff;
}

.ai-disclosure-badge:focus-visible {
    outline: 2px solid var(--color-link);
    outline-offset: 2px;
}

.hero h1 {
    font-size: 2.5em;
    margin-bottom: 24px;
    padding: 0;
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-text-primary);
}

.hero p {
    font-size: 1.2em;
    margin-bottom: 40px;
    padding: 0;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    color: var(--color-text-muted);
}

/* MARK: - Outcomes */
.landing-outcomes {
    margin: 0 0 48px;
    padding: 32px var(--section-padding-x);
}

.landing-outcomes-list {
    margin: 0;
    padding-left: 1.25em;
    color: var(--color-text-muted);
    line-height: 1.7;
}

.landing-outcomes-list li {
    margin-bottom: 0.75em;
}

.landing-outcomes-list li:last-child {
    margin-bottom: 0;
}

/* MARK: - Numbered path list (How to Get There)
   Reusable pattern: wrap steps in .landing-path > ol.landing-path-steps > li.landing-path-step,
   each with .landing-path-label (title) then .landing-path-blurb (caption). Spacing tokens live on
   .landing-path-steps only; not for generic bullet lists elsewhere.
   --path-step-card-padding-x matches left inset to the number badge and right inset past the text. */

.landing-path {
    padding: 32px var(--section-padding-x) 64px;
}

.landing-path-steps {
    list-style: none;
    margin: 0 auto;
    padding: 0;
    max-width: 720px;
    counter-reset: path-step;
    /* Circle geometry; gap from badge edge to title column */
    --path-step-num-size: 28px;
    /* Same inset from card edge to the left of the circle and from the right of title/caption to card edge */
    --path-step-card-padding-x: 32px;
    --path-step-gap-num-to-body: 22px;
    /* Tighter stack: title link to caption line (see .landing-path-label line-height) */
    --path-step-title-caption-gap: 2px;
}

.landing-path-step {
    counter-increment: path-step;
    position: relative;
    padding: 20px var(--path-step-card-padding-x) 20px calc(var(--path-step-card-padding-x) + var(--path-step-num-size) + var(--path-step-gap-num-to-body));
    margin-bottom: 16px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-panel);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.landing-path-step::before {
    content: counter(path-step);
    position: absolute;
    left: var(--path-step-card-padding-x);
    top: 50%;
    transform: translateY(-50%);
    width: var(--path-step-num-size);
    height: var(--path-step-num-size);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    color: var(--color-accent-deep);
    font-weight: 700;
    font-size: 0.9em;
    display: flex;
    align-items: center;
    justify-content: center;
}

.landing-path-label {
    display: block;
    font-weight: 700;
    font-size: 1.15em;
    line-height: 1.25;
    margin-bottom: var(--path-step-title-caption-gap);
}

.landing-path-label a {
    color: var(--color-link);
}

.landing-path-label a:hover {
    color: var(--color-link-hover);
}

.landing-path-blurb {
    display: block;
    color: var(--color-text-muted);
    font-size: 0.98em;
    line-height: 1.55;
    margin-top: 0;
}

/* MARK: - What Is TEACH */
.sandbox-intro {
    padding: 64px var(--section-padding-x);
    background: transparent;
}

.sandbox-intro h2 {
    margin-bottom: 20px;
    font-weight: 700;
}

.sandbox-text {
    line-height: 1.7;
    color: var(--color-text-muted);
}

.sandbox-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.sandbox-visual-image {
    max-width: 260px;
    width: 100%;
    height: auto;
    border-radius: var(--radius-panel);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

/* MARK: - Features grid */
.features {
    padding: 64px var(--section-padding-x) 80px;
    background: transparent;
}

.features h2 {
    text-align: center;
    margin-bottom: 48px;
    font-weight: 700;
}

.feature-title {
    margin-bottom: 16px;
    font-weight: 600;
    font-size: 1.3em;
}

.feature-title a {
    color: inherit;
    text-decoration: none;
    display: block;
    transition: color 0.2s ease;
}

.feature-title a:hover {
    color: var(--color-accent);
}

.feature-desc {
    min-height: 60px;
    line-height: 1.6;
}

/* MARK: - AI disclosure dialog */
.ai-disclosure-dialog:not([open]) {
    display: none;
}

.ai-disclosure-dialog {
    border: none;
    padding: 0;
    margin: auto;
    max-width: none;
    width: 100%;
    height: 100%;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ai-disclosure-dialog-inner {
    position: relative;
    background: rgba(15, 23, 42, 0.95);
    color: var(--color-text-primary);
    border-radius: var(--radius-panel);
    padding: 28px;
    max-width: 440px;
    width: calc(100% - 2 * var(--layout-gutter));
    box-shadow: var(--shadow-floating-strong);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

@supports (backdrop-filter: blur(12px)) {
    .ai-disclosure-dialog-inner {
        background: rgba(15, 23, 42, 0.88);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
    }
}

.ai-disclosure-dialog::backdrop {
    background: rgba(0, 0, 0, 0.55);
}

.ai-disclosure-dialog-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    padding: 0;
    border: none;
    background: transparent;
    color: var(--color-text-muted);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    border-radius: 4px;
    transition: color 0.2s ease, background 0.2s ease;
}

.ai-disclosure-dialog-close:hover {
    color: var(--color-text-primary);
    background: rgba(255, 255, 255, 0.08);
}

.ai-disclosure-dialog-title {
    font-size: 1.25em;
    margin-bottom: 16px;
    padding-right: 36px;
    color: var(--color-text-primary);
}

.ai-disclosure-dialog-intro {
    font-size: 0.95em;
    margin-bottom: 16px;
    line-height: 1.6;
    color: var(--color-text-muted);
}

.ai-disclosure-dialog-prompt {
    margin-bottom: 16px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.06);
    border-left: 3px solid var(--color-link);
    border-radius: 4px;
    font-size: 0.9em;
}

.ai-disclosure-dialog-prompt p {
    margin: 0;
    line-height: 1.6;
    color: var(--color-text-muted);
}

.ai-disclosure-dialog-tips {
    margin-bottom: 16px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    font-size: 0.9em;
}

.ai-disclosure-dialog-tips p {
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--color-text-primary);
}

.ai-disclosure-dialog-tips ul {
    margin: 0;
    padding-left: 20px;
}

.ai-disclosure-dialog-tips li {
    margin-bottom: 4px;
    line-height: 1.5;
    color: var(--color-text-muted);
}

.ai-disclosure-dialog-attribution {
    font-size: 0.9em;
    line-height: 1.6;
    color: var(--color-text-muted);
    margin-bottom: 20px;
}

.ai-disclosure-dialog-dismiss {
    display: block;
    width: 100%;
    padding: 12px 24px;
    border: 2px solid rgba(255, 255, 255, 0.85);
    background: rgba(255, 255, 255, 0.95);
    color: var(--color-accent-deep);
    font-weight: 600;
    font-size: 1em;
    cursor: pointer;
    border-radius: 8px;
    transition: background 0.2s ease;
}

.ai-disclosure-dialog-dismiss:hover {
    background: #fff;
}
