/* ==========================================================================
   Template: Thank You (page-thank-you.php)
   Depends on css/tokens.css and css/blocks/get-listed-hero.css
   ========================================================================== */

/* Everything on this page is centred, including the parts the hero does not
   own. The hero centres its own text but leaves block-level children where
   the grid put them, which left the steps and the actions sitting left of a
   centred headline. */
.ty .gl-hero__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 44rem;
    margin-inline: auto;
    text-align: center;
}

/* The column centres its children, which makes each of them shrink to its own
   content. The ones that need the full width ask for it; the mark must not,
   or the circle stretches into a bar. */
.ty__steps,
.ty__lead,
.ty__content,
.ty .gl-hero__title {
    width: 100%;
}

.ty__eyebrow {
    margin: 0 0 var(--space-3);
    color: var(--accent-400);
    font-family: var(--font-body);
    font-size: var(--text-caption);
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.ty__title {
    margin-bottom: var(--space-4);
}

.ty__lead {
    max-width: 34rem;
    margin-inline: auto;
}

.ty__mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    margin-bottom: var(--space-5);
    border-radius: var(--radius-pill);
    color: var(--accent-400);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.ty__mark svg {
    width: 1.75rem;
    height: 1.75rem;
}

.ty__content {
    margin-top: var(--space-5);
    color: var(--mist);
    font-size: var(--text-base);
}

.ty__content p:last-child {
    margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   What happens next
   Three cards on a desktop, a stack on a phone. Numbered rather than ticked:
   none of this has happened yet, and a tick would suggest otherwise.
   -------------------------------------------------------------------------- */

.ty__steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-4);
    margin: var(--space-7) 0 0;
    padding: 0;
    list-style: none;
    text-align: left;
    counter-reset: none;
}

@media (max-width: 48rem) {
    .ty__steps {
        grid-template-columns: 1fr;
        gap: var(--space-3);
    }
}

.ty__step {
    padding: var(--space-5);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, .05);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1);
}

.ty__step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    margin-bottom: var(--space-3);
    border-radius: var(--radius-pill);
    background: var(--accent-500);
    color: var(--ink-950);
    font-family: var(--font-display);
    font-size: var(--text-caption);
    font-weight: 800;
}

.ty__step-title {
    margin: 0 0 6px;
    color: #fff;
    font-family: var(--font-display);
    font-size: var(--text-base);
    font-weight: 700;
    line-height: 1.3;
}

.ty__step-text {
    margin: 0;
    color: var(--mist);
    font-size: var(--text-small);
    line-height: 1.55;
}

.ty__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: var(--space-4);
    margin-top: var(--space-7);
    margin-bottom: 0;
}

.ty__button {
    display: inline-block;
    padding: 0.875rem 1.75rem;
    border-radius: var(--radius-pill);
    background: var(--accent-500);
    color: var(--ink-950);
    font-family: var(--font-display);
    font-size: var(--text-small);
    font-weight: 700;
    letter-spacing: 0.02em;
    text-decoration: none;
    transition: background 0.18s ease, transform 0.18s ease;
}

.ty__button:hover,
.ty__button:focus-visible {
    background: var(--accent-400);
    transform: translateY(-1px);
}

.ty__button:focus-visible {
    outline: none;
    box-shadow: var(--ring-brand);
}

/* The quieter of the two: somewhere to go that is not home, for an attorney
   who wants to see what they have just joined. */
.ty__link {
    color: var(--mist);
    font-size: var(--text-small);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, .25);
    padding-bottom: 1px;
    transition: color .18s ease, border-color .18s ease;
}

.ty__link:hover,
.ty__link:focus-visible {
    color: #fff;
    border-bottom-color: #fff;
}

.ty__help {
    margin: var(--space-6) 0 0;
    color: var(--mist);
    font-size: var(--text-caption);
}

.ty__help a {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 2px;
}
