/* ==========================================================================
   ai-nate.com — AI System Intensive application page.
   Loaded after css/home.css; only page-specific layout lives here.
   ========================================================================== */

/* ---------- hero ---------- */
.ahero {
    padding: clamp(48px, 8vw, 96px) 0 clamp(32px, 5vw, 56px);
}

.ahero .eyebrow {
    display: block;
    margin-bottom: 20px;
}

.ahero h1 {
    font-size: clamp(2.4rem, 6.5vw, 4.4rem);
    line-height: .98;
    letter-spacing: -.04em;
    font-weight: 700;
    max-width: 14ch;
}

.ahero__lede {
    margin-top: 20px;
    max-width: 52ch;
    font-size: clamp(1.05rem, 1.6vw, 1.25rem);
    line-height: 1.5;
    color: var(--ink-2);
}

.ahero__facts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 26px;
}

.ahero__facts li {
    padding: 6px 13px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--surface);
    font-size: .82rem;
    font-weight: 600;
    color: var(--ink-2);
}

/* ---------- layout ---------- */
.apply {
    display: grid;
    gap: 28px;
    padding-bottom: clamp(56px, 8vw, 104px);
}

@media (min-width: 961px) {
    .apply {
        grid-template-columns: minmax(0, 1fr) 320px;
        gap: 48px;
        align-items: start;
    }

    .apply__aside {
        position: sticky;
        top: calc(var(--nav-h) + 24px);
    }
}

/* ---------- form card ---------- */
.form-card {
    padding: clamp(24px, 4vw, 44px);
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: var(--surface);
}

.fieldset {
    border: 0;
    padding: 0;
    margin: 0;
}

.fieldset + .fieldset {
    margin-top: 40px;
    padding-top: 36px;
    border-top: 1px solid var(--line);
}

.fieldset__head {
    margin-bottom: 22px;
}

.fieldset__head .eyebrow {
    display: block;
    margin-bottom: 6px;
}

.fieldset__head h2 {
    font-size: 1.35rem;
    letter-spacing: -.025em;
    font-weight: 700;
}

.fieldset__head p {
    margin-top: 6px;
    color: var(--ink-2);
    font-size: .95rem;
    max-width: 56ch;
}

.field {
    margin-top: 22px;
}

.field:first-of-type {
    margin-top: 0;
}

.row {
    display: grid;
    gap: 18px;
}

@media (min-width: 640px) {
    .row {
        grid-template-columns: 1fr 1fr;
    }

    .row .field {
        margin-top: 0;
    }
}

.row + .field,
.field + .row,
.row + .row {
    margin-top: 22px;
}

.field > label,
.field > .label {
    display: block;
    font-weight: 600;
    font-size: .95rem;
    letter-spacing: -.01em;
    margin-bottom: 8px;
}

.req {
    color: var(--accent);
    font-weight: 700;
}

.hint {
    display: block;
    margin: -2px 0 8px;
    font-size: .85rem;
    color: var(--ink-3);
}

.field input[type="text"],
.field input[type="email"],
.field input[type="url"],
.field input[type="tel"],
.field select,
.field textarea {
    width: 100%;
    padding: 13px 15px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--canvas);
    color: var(--ink);
    font: inherit;
    font-size: 1rem;
    line-height: 1.45;
    transition: border-color .2s var(--ease), background-color .2s var(--ease), box-shadow .2s var(--ease);
}

.field select {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 42px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' fill='none' stroke='%234a505a' stroke-width='1.6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
}

.field textarea {
    min-height: 132px;
    resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
    color: #9aa1ab;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: var(--surface);
    box-shadow: 0 0 0 3px rgba(44, 95, 128, .15);
}

.counter {
    margin-top: 6px;
    text-align: right;
    font-size: .8rem;
    color: var(--ink-3);
}

.counter.is-ok {
    color: var(--accent);
    font-weight: 600;
}

/* ---------- choice chips (radio) ---------- */
.choices {
    display: grid;
    gap: 8px;
}

.choices--2 {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.choice {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--canvas);
    cursor: pointer;
    font-size: .95rem;
    line-height: 1.35;
    transition: border-color .2s var(--ease), background-color .2s var(--ease);
}

.choice:hover {
    border-color: rgba(44, 95, 128, .5);
}

.choice input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    margin: 0;
}

.choice i {
    flex: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 1.6px solid var(--ink-3);
    background: var(--surface);
    transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}

.choice input:checked ~ i {
    border-color: var(--accent);
    box-shadow: inset 0 0 0 4.5px var(--accent);
}

.choice:has(input:checked) {
    border-color: var(--accent);
    background: var(--accent-soft);
}

.choice input:focus-visible ~ i {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.choice small {
    display: block;
    color: var(--ink-3);
    font-size: .82rem;
}

/* ---------- submit ---------- */
.form-foot {
    margin-top: 36px;
    padding-top: 28px;
    border-top: 1px solid var(--line);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 24px;
}

.form-foot .btn {
    min-width: 220px;
}

.form-foot p {
    font-size: .875rem;
    color: var(--ink-3);
    max-width: 40ch;
}

.btn:disabled {
    opacity: .55;
    cursor: not-allowed;
    transform: none;
}

.alert {
    display: none;
    margin-bottom: 22px;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid rgba(180, 60, 60, .3);
    background: #fbeeee;
    color: #7a2626;
    font-size: .95rem;
}

.alert.is-visible {
    display: block;
}

/* ---------- aside ---------- */
.aside-card {
    padding: 26px 24px 28px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: var(--surface);
}

.aside-card + .aside-card {
    margin-top: 14px;
}

.aside-card .eyebrow {
    display: block;
    margin-bottom: 8px;
}

.aside-card h2 {
    font-size: 1.15rem;
    letter-spacing: -.02em;
    font-weight: 700;
}

.aside-card > p {
    margin-top: 10px;
    color: var(--ink-2);
    font-size: .925rem;
}

.nsteps {
    margin-top: 18px;
    display: grid;
    gap: 14px;
    counter-reset: step;
}

.nsteps li {
    position: relative;
    padding-left: 38px;
    font-size: .925rem;
    color: var(--ink-2);
    line-height: 1.45;
}

.nsteps li::before {
    counter-increment: step;
    content: counter(step);
    position: absolute;
    left: 0;
    top: 0;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: .78rem;
    font-weight: 700;
    display: grid;
    place-items: center;
}

.nsteps b {
    color: var(--ink);
}

.aside-card--navy {
    background: var(--navy);
    background-image: radial-gradient(120% 90% at 15% 0%, var(--navy-2) 0%, var(--navy) 62%);
    border-color: transparent;
    color: #eef1f7;
}

.aside-card--navy .eyebrow {
    color: #a9c2d8;
}

.aside-card--navy > p {
    color: #c3cee0;
}

.aside-card--navy .price {
    margin-top: 10px;
    font-size: 2.2rem;
    line-height: 1;
    font-weight: 700;
    letter-spacing: -.04em;
}

.aside-card--navy .price small {
    display: block;
    margin-top: 8px;
    font-size: .875rem;
    font-weight: 500;
    letter-spacing: 0;
    color: #c3cee0;
}

.aside-card--navy a {
    color: #fff;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ---------- success ---------- */
.done {
    display: none;
    padding: clamp(32px, 5vw, 56px);
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: var(--surface);
    text-align: center;
}

.done.is-visible {
    display: block;
}

.done__mark {
    width: 64px;
    height: 64px;
    margin: 0 auto 22px;
    border-radius: 50%;
    background: var(--accent);
    display: grid;
    place-items: center;
}

.done__mark::after {
    content: "";
    width: 22px;
    height: 12px;
    border-left: 3px solid #fff;
    border-bottom: 3px solid #fff;
    transform: translateY(-3px) rotate(-45deg);
}

.done h2 {
    font-size: clamp(1.7rem, 3.5vw, 2.4rem);
    letter-spacing: -.03em;
    font-weight: 700;
}

.done > p {
    margin: 14px auto 0;
    max-width: 46ch;
    color: var(--ink-2);
}

.done .nsteps {
    margin: 28px auto 0;
    max-width: 440px;
    text-align: left;
}

.done .btn {
    margin-top: 30px;
}
