/* ==========================================================================
   Nexix Academy — For Instructors (for-instructors.html)
   Depends on base.css for tokens, background, navbar, footer, buttons, FAQ,
   browser frames, the lab screenshot and the closing CTA. Component
   structure follows corporates.css so the two audience pages feel related.
   ========================================================================== */

/* --- Page hero --- */
.instr-hero {
    position: relative;
    padding: calc(var(--nav-h) + 6rem) 0 5rem;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
}
.instr-hero__shapes { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.instr-hero__shapes .shape { position: absolute; border-radius: 50%; filter: blur(90px); }
.instr-hero__shapes .shape--a {
    width: 480px; height: 480px;
    background: radial-gradient(circle, rgba(26, 172, 172, 0.14) 0%, transparent 70%);
    top: -14%; right: -6%;
}
.instr-hero__shapes .shape--b {
    width: 380px; height: 380px;
    background: radial-gradient(circle, rgba(0, 86, 210, 0.12) 0%, transparent 70%);
    bottom: -20%; left: -8%;
}

.instr-hero__inner { position: relative; z-index: 1; max-width: 50rem; }
.instr-hero .badge { margin-bottom: 1.5rem; }
.instr-hero__title {
    font-family: var(--font-h);
    font-size: clamp(2.1rem, 5vw, 3.6rem);
    font-weight: 300;
    line-height: 1.06;
    letter-spacing: -0.03em;
    color: var(--ink);
    margin-bottom: 1.25rem;
}
.instr-hero__title em,
.teach__title em,
.brand__title em {
    font-style: italic;
    font-weight: 500;
    background: var(--gradient-img);
    background-size: cover;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    /* Italic overhang fix, same as .section__title em in base.css. */
    padding-right: 0.12em;
    margin-right: -0.12em;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
}
.instr-hero__desc {
    color: var(--grey);
    font-size: 1.1rem;
    line-height: 1.7;
    max-width: 41rem;
    margin-bottom: 2.25rem;
}
.instr-hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 2.25rem; }

.instr-hero__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    list-style: none;
}
.instr-hero__chips li {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--primary-deep);
    background: var(--primary-soft);
    border: 1px solid rgba(0, 86, 210, 0.18);
    border-radius: var(--radius-pill);
    padding: 0.45rem 1rem;
}

/* --- Pain cards (Sound familiar?) --- */
.pain-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.6rem;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.pain-card:hover { transform: translateY(-5px); border-color: var(--border-hover); box-shadow: var(--shadow-md); }
.pain-card__icon {
    width: 2.6rem; height: 2.6rem;
    display: flex; align-items: center; justify-content: center;
    border-radius: 0.8rem;
    background: var(--primary-soft);
    border: 1px solid rgba(0, 86, 210, 0.16);
    color: var(--primary);
    margin-bottom: 0.95rem;
}
.pain-card__icon svg { width: 20px; height: 20px; }
.pain-card h3 { font-family: var(--font-h); font-weight: 600; font-size: 1.05rem; color: var(--ink); margin-bottom: 0.45rem; }
.pain-card p { color: var(--grey); font-size: 0.9rem; line-height: 1.6; }

/* --- Week one, two ways: before / after timeline --- */
.twoways {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    max-width: 64rem;
    margin: 0 auto;
}
.twoways__col {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
}
.twoways__col--old { background: var(--card-bg-alt); }
.twoways__col--new {
    background: linear-gradient(135deg, var(--primary-soft) 0%, rgba(26, 172, 172, 0.07) 100%);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-lg);
}
.twoways__head {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-h);
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--grey-dim);
    margin-bottom: 1.5rem;
}
.twoways__head svg { width: 18px; height: 18px; flex: none; }
.twoways__col--new .twoways__head { color: var(--primary-deep); }

.twoways__list { list-style: none; display: grid; gap: 1.25rem; counter-reset: tw; }
.twoways__list li {
    position: relative;
    padding-left: 2.75rem;
    min-height: 1.9rem;
    color: var(--grey);
    font-size: 0.95rem;
    line-height: 1.55;
    counter-increment: tw;
}
.twoways__list li::before {
    content: counter(tw);
    position: absolute;
    left: 0; top: -0.1rem;
    width: 1.9rem; height: 1.9rem;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    border: 1px solid var(--border-strong);
    background: var(--bg);
    color: var(--grey-dim);
    font-family: var(--font-h);
    font-weight: 700;
    font-size: 0.8rem;
}
/* Connector between step numbers, so each column reads as a sequence. */
.twoways__list li:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 0.95rem;
    top: 1.85rem;
    bottom: -1.2rem;
    width: 1px;
    background: var(--border-strong);
}
.twoways__col--new .twoways__list li { color: var(--ink); }
.twoways__col--new .twoways__list li::before {
    background: var(--gradient-img);
    background-size: cover;
    border-color: transparent;
    color: var(--on-brand);
}
.twoways__col--new .twoways__list li:not(:last-child)::after { background: rgba(0, 86, 210, 0.25); }

.twoways__result {
    margin-top: 1.6rem;
    padding-top: 1.1rem;
    border-top: 1px dashed var(--border-strong);
    font-family: var(--font-h);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--grey-dim);
}
.twoways__col--new .twoways__result { color: var(--teal-ink); border-top-color: rgba(0, 86, 210, 0.22); }

/* --- A teaching week: alternating copy / screenshot splits --- */
.teach {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 3.5rem;
    align-items: center;
}
.teach + .teach { margin-top: 5.5rem; }
.teach--flip .teach__media { order: -1; }

.teach__title {
    font-family: var(--font-h);
    font-weight: 300;
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--ink);
    margin: 0.4rem 0 0.9rem;
}
.teach__copy > p { color: var(--grey); line-height: 1.7; margin-bottom: 1.2rem; }

/* Founding-programme callout inside a step (priority custom targets). */
.teach__perk {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--primary-deep);
    background: var(--primary-soft);
    border: 1px solid rgba(0, 86, 210, 0.18);
    border-radius: var(--radius);
    padding: 0.6rem 0.95rem;
}
.teach__perk svg { width: 16px; height: 16px; flex: none; color: var(--primary); }

/* --- Your brand: copy + certificate illustration --- */
.brand {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
    align-items: center;
}
.brand__title {
    font-family: var(--font-h);
    font-weight: 300;
    font-size: clamp(1.9rem, 4vw, 2.9rem);
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--ink);
    margin-bottom: 1.1rem;
}
.brand__copy > p { color: var(--grey); font-size: 1.05rem; line-height: 1.7; margin-bottom: 1.5rem; }
.brand__points { list-style: none; display: grid; gap: 0.75rem; margin-bottom: 2rem; }
.brand__points li {
    position: relative;
    padding-left: 1.9rem;
    color: var(--ink);
    font-size: 0.95rem;
    line-height: 1.5;
}
.brand__points li::before {
    content: '\2713';
    position: absolute; left: 0; top: 0.05rem;
    width: 1.25rem; height: 1.25rem;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.7rem; font-weight: 700;
    color: var(--teal-ink);
    background: rgba(26, 172, 172, 0.12);
    border: 1px solid rgba(11, 110, 110, 0.25);
    border-radius: 50%;
}

/* Certificate mock. Pure HTML/CSS and captioned "Illustration only", so it
   never reads as a screenshot of a product screen. */
.cert {
    position: relative;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 2.5rem 2.5rem 2rem;
    overflow: hidden;
}
.cert::before {
    content: '';
    position: absolute;
    inset: 0.75rem;
    border: 1px solid rgba(0, 86, 210, 0.18);
    border-radius: calc(var(--radius-lg) - 0.5rem);
    pointer-events: none;
}
.cert::after {
    content: '';
    position: absolute;
    right: -4rem; bottom: -4rem;
    width: 14rem; height: 14rem;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(26, 172, 172, 0.12) 0%, transparent 70%);
    pointer-events: none;
}
.cert__brand { display: flex; align-items: center; gap: 0.8rem; position: relative; }
.cert__logo {
    width: 2.9rem; height: 2.9rem;
    display: flex; align-items: center; justify-content: center;
    border-radius: 0.85rem;
    background: var(--gradient-img);
    background-size: cover;
    color: var(--on-brand);
    font-family: var(--font-h);
    font-weight: 700;
    letter-spacing: 0.03em;
}
.cert__academy { font-family: var(--font-h); font-weight: 700; color: var(--ink); line-height: 1.2; }
.cert__academy small { display: block; font-family: var(--font-b); font-weight: 400; font-size: 0.78rem; color: var(--grey-dim); }
.cert__seal {
    position: absolute;
    top: 2.25rem; right: 2.25rem;
    width: 3.2rem; height: 3.2rem;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    border: 2px solid rgba(11, 110, 110, 0.35);
    color: var(--teal-ink);
}
.cert__seal svg { width: 22px; height: 22px; }
.cert__kicker {
    position: relative;
    margin-top: 2rem;
    font-family: var(--font-h);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--teal-ink);
}
.cert__name {
    position: relative;
    font-family: var(--font-h);
    font-weight: 300;
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    letter-spacing: -0.01em;
    color: var(--ink);
    margin: 0.35rem 0 0.6rem;
}
.cert__for { position: relative; color: var(--grey); font-size: 0.92rem; line-height: 1.6; }
.cert__for strong { color: var(--ink); font-weight: 600; }
.cert__foot {
    position: relative;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.9rem;
    padding-top: 1rem;
    border-top: 1px dashed var(--border-strong);
    font-size: 0.78rem;
    color: var(--grey-dim);
}
.brand__media .shot-note { text-align: center; }

/* --- Teaching formats --- */
.fmt-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.6rem;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.fmt-card:hover { transform: translateY(-5px); border-color: var(--border-hover); box-shadow: var(--shadow-md); }
.fmt-card__icon {
    width: 2.6rem; height: 2.6rem;
    display: flex; align-items: center; justify-content: center;
    border-radius: 0.8rem;
    background: rgba(26, 172, 172, 0.10);
    border: 1px solid rgba(11, 110, 110, 0.22);
    color: var(--teal-ink);
    margin-bottom: 0.95rem;
}
.fmt-card__icon svg { width: 20px; height: 20px; }
.fmt-card h3 { font-family: var(--font-h); font-weight: 600; font-size: 1.05rem; color: var(--ink); margin-bottom: 0.45rem; }
.fmt-card p { color: var(--grey); font-size: 0.9rem; line-height: 1.6; }

/* CTF cross-sell band under the formats grid. */
.ctf-band {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.25rem 2rem;
    max-width: 64rem;
    margin: 3rem auto 0;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-left: 3px solid var(--teal-ink);
    border-radius: var(--radius-lg);
    padding: 1.6rem 2rem;
    box-shadow: var(--shadow-md);
}
.ctf-band h3 { font-family: var(--font-h); font-weight: 600; font-size: 1.1rem; color: var(--ink); margin-bottom: 0.3rem; }
.ctf-band p { color: var(--grey); font-size: 0.92rem; line-height: 1.6; max-width: 38rem; }

/* --- Founding instructor programme --- */
.founding {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 3rem;
    align-items: start;
}
.founding__places {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    padding-bottom: 1.25rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}
.founding__places strong {
    font-family: var(--font-h);
    font-weight: 700;
    font-size: 3.25rem;
    line-height: 1;
    background: var(--gradient-img);
    background-size: cover;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}
.founding__places span { font-family: var(--font-h); font-weight: 600; font-size: 1.05rem; color: var(--ink); }

.perks { list-style: none; display: grid; gap: 1.25rem; margin-bottom: 1.75rem; }
.perk { display: flex; align-items: flex-start; gap: 0.9rem; }
.perk__icon {
    flex: none;
    width: 2.4rem; height: 2.4rem;
    display: flex; align-items: center; justify-content: center;
    border-radius: 0.75rem;
    background: var(--primary-soft);
    border: 1px solid rgba(0, 86, 210, 0.16);
    color: var(--primary);
}
.perk__icon svg { width: 18px; height: 18px; }
.perk h3 { font-family: var(--font-h); font-weight: 600; font-size: 1rem; color: var(--ink); margin-bottom: 0.2rem; }
.perk p { color: var(--grey); font-size: 0.9rem; line-height: 1.55; }

.founding__fit {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-left: 3px solid var(--teal-ink);
    border-radius: var(--radius);
    padding: 1.1rem 1.35rem;
}
.founding__fit p { color: var(--grey); font-size: 0.9rem; line-height: 1.65; }
.founding__fit strong { color: var(--ink); font-weight: 600; }

/* --- Application form (same anatomy as the hiring form) --- */
.apply {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.25rem;
    box-shadow: var(--shadow-lg);
}
.apply__title { font-family: var(--font-h); font-weight: 600; font-size: 1.25rem; color: var(--ink); margin-bottom: 0.3rem; }
.apply__desc { color: var(--grey); font-size: 0.9rem; line-height: 1.55; margin-bottom: 1.5rem; }
.apply__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
.apply__group { display: flex; flex-direction: column; }
.apply__group--full { margin-bottom: 1rem; }

.apply__label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 0.4rem;
}
.apply__label .required { color: #c2410c; }

.apply__input, .apply__select, .apply__textarea {
    font-family: var(--font-b);
    font-size: 0.92rem;
    color: var(--ink);
    background: var(--bg);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    padding: 0.7rem 0.9rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    width: 100%;
}
.apply__textarea { resize: vertical; min-height: 5.5rem; }
.apply__input::placeholder, .apply__textarea::placeholder { color: var(--grey-dim); }
.apply__input:focus, .apply__select:focus, .apply__textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-soft);
}
.apply__input[aria-invalid="true"], .apply__select[aria-invalid="true"] { border-color: #c2410c; }

.apply__consent {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    margin: 0.25rem 0 1.5rem;
}
.apply__consent input { margin-top: 0.2rem; width: 1rem; height: 1rem; accent-color: var(--primary); flex: none; }
.apply__consent input[aria-invalid="true"] { outline: 2px solid #c2410c; outline-offset: 2px; }
.apply__consent label { font-size: 0.85rem; color: var(--grey); line-height: 1.55; }
.apply__consent a { color: var(--teal-ink); text-decoration: underline; text-underline-offset: 2px; }

.apply__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    width: 100%;
    background: var(--gradient-img);
    background-size: 150% 150%;
    background-position: center center;
    color: var(--on-brand);
    font-family: var(--font-h);
    font-weight: 600;
    font-size: 1rem;
    padding: 0.9rem 2rem;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.3s, transform 0.2s;
}
.apply__submit:hover:not(:disabled) { box-shadow: var(--shadow-brand); transform: translateY(-2px); }
.apply__submit:disabled { cursor: not-allowed; opacity: 0.75; }
.apply__submit svg { width: 16px; height: 16px; }

.apply__note { font-size: 0.8rem; color: var(--grey-dim); text-align: center; margin-top: 1rem; }

.apply__success, .apply__error {
    display: none;
    text-align: center;
    padding: 2.5rem 1rem;
}
.apply__success.is-visible, .apply__error.is-visible { display: block; }
.apply__success-icon { width: 3rem; height: 3rem; color: var(--teal-ink); margin: 0 auto 1rem; }
.apply__error-icon { width: 3rem; height: 3rem; color: #c2410c; margin: 0 auto 1rem; }
.apply__success h3, .apply__error h3 {
    font-family: var(--font-h);
    font-weight: 600;
    font-size: 1.25rem;
    color: var(--ink);
    margin-bottom: 0.5rem;
}
.apply__success p, .apply__error p { color: var(--grey); font-size: 0.95rem; line-height: 1.6; max-width: 30rem; margin-inline: auto; }
/* :not() excludes the rescue button, as on the hiring form, so this rule does
   not paint its label teal on top of the brand gradient. */
.apply__error a:not(.apply__rescue) { color: var(--teal-ink); text-decoration: underline; text-underline-offset: 2px; }
.apply__error .apply__rescue { margin-top: 1.5rem; color: var(--on-brand); text-decoration: none; }
.apply__error .apply__rescue svg { width: 16px; height: 16px; }
.apply__error .apply__note { margin-top: 1rem; font-size: 0.85rem; }

@keyframes spin { to { transform: rotate(360deg); } }

/* --- Responsive --- */
@media (max-width: 900px) {
    .twoways, .brand, .founding { grid-template-columns: 1fr; }
    .teach { grid-template-columns: 1fr; gap: 2rem; }
    .teach--flip .teach__media { order: 0; }
    .teach + .teach { margin-top: 4rem; }
    .brand { gap: 2.5rem; }
}
@media (max-width: 580px) {
    .instr-hero { padding-top: calc(var(--nav-h) + 3.5rem); }
    .instr-hero__actions { flex-direction: column; align-items: stretch; }
    .instr-hero__actions .btn-primary, .instr-hero__actions .btn-ghost { width: 100%; }
    .twoways__col { padding: 1.5rem; }
    .cert { padding: 2rem 1.5rem 1.6rem; }
    .cert__seal { top: 1.6rem; right: 1.5rem; width: 2.8rem; height: 2.8rem; }
    .ctf-band { padding: 1.4rem 1.5rem; }
    .apply { padding: 1.5rem; }
    .apply__row { grid-template-columns: 1fr; }
}
