/* Static, policy, contact and account routes */

/* About */
.tm-route-about .tm-about-hero {
    min-height: 430px;
    display: grid;
    place-items: end start;
    padding: 92px max(24px, calc((100vw - 1280px) / 2)) 72px;
    border: 0;
    border-radius: 0 0 var(--tm-radius-banner) var(--tm-radius-banner) !important;
    background:
        radial-gradient(circle at 82% 16%, rgba(171, 72, 251, .34), transparent 28rem),
        radial-gradient(circle at 18% 100%, rgba(247, 49, 69, .28), transparent 30rem),
        #09090c;
    text-align: left;
}

.tm-route-about .tm-about-hero::before {
    background:
        linear-gradient(115deg, transparent 42%, rgba(255, 255, 255, .025) 42%, rgba(255, 255, 255, .025) 43%, transparent 43%),
        linear-gradient(35deg, rgba(255, 255, 255, .018) 1px, transparent 1px);
    background-size: auto, 18px 18px;
}

.tm-route-about .tm-about-hero-inner {
    width: min(100%, 900px);
    max-width: none;
    margin: 0;
}

.tm-route-about .tm-about-hero-eyebrow,
.tm-route-contact .tm-contact-hero::before {
    color: var(--tm-refresh-yellow);
}

.tm-route-about .tm-about-hero h1,
.tm-route-contact .tm-contact-hero h1 {
    font-family: 'Graphik Headings', 'Graphik', system-ui, sans-serif;
    font-size: clamp(3.2rem, 7.5vw, 6.6rem);
    font-weight: 700;
    letter-spacing: -.065em;
    line-height: .88;
    text-wrap: balance;
}

.tm-route-about .tm-about-mission {
    max-width: 940px;
    padding: 88px 24px 54px;
}

.tm-route-about .tm-about-quote {
    font-size: clamp(1.9rem, 4.2vw, 3.6rem);
    font-weight: 800;
    letter-spacing: -.045em;
    line-height: 1.06;
}

.tm-route-about .tm-about-quote::before {
    color: var(--tm-refresh-red-dark);
}

.tm-route-about .tm-about-divider {
    height: 6px;
    border-radius: var(--tm-radius-pill) !important;
    background: linear-gradient(90deg, var(--tm-refresh-red), var(--tm-refresh-yellow));
}

.tm-route-about .tm-about-body {
    max-width: 860px;
    padding: 18px 24px 92px;
}

.tm-route-about .tm-about-body p {
    color: #4f4c52;
    font-size: 1.06rem;
    line-height: 1.82;
}

.tm-route-about .tm-about-cols {
    padding: 84px 0;
    border: 0;
    background: #111115;
}

.tm-route-about .tm-about-cols-inner {
    max-width: 1280px;
    gap: 18px;
    padding: 0 24px;
}

.tm-route-about .tm-about-col {
    min-height: 250px;
    padding: 28px;
    border: 1px solid rgba(255, 255, 255, .1);
    border-top-color: rgba(255, 255, 255, .1);
    border-radius: var(--tm-radius-card) !important;
    background: rgba(255, 255, 255, .045);
    color: #fff;
}

.tm-route-about .tm-about-col-icon,
.tm-route-about .tm-about-contact-icon {
    border-radius: var(--tm-radius-control) !important;
    background: var(--tm-refresh-yellow);
    color: #090909;
}

.tm-route-about .tm-about-col h3 {
    color: #fff;
    font-size: 1.13rem;
    letter-spacing: -.02em;
    text-transform: none;
}

.tm-route-about .tm-about-col p {
    color: #b2afb8;
    font-size: .95rem;
}

.tm-route-about .tm-about-contact {
    max-width: 1000px;
    padding: 86px 24px;
}

.tm-route-about .tm-about-contact-item {
    padding: 18px;
    border: 1px solid var(--tm-refresh-line);
    border-radius: var(--tm-radius-card) !important;
    background: var(--tm-refresh-paper);
}

.tm-route-about .tm-about-contact-grid > div:last-child a {
    border-radius: var(--tm-radius-control) !important;
}

/* Contact */
.tm-route-contact .tm-contact-hero {
    position: relative;
    min-height: 350px;
    display: grid;
    place-content: center;
    padding: 72px 24px;
    border: 0;
    border-radius: 0 0 var(--tm-radius-banner) var(--tm-radius-banner) !important;
    background:
        radial-gradient(circle at 12% 90%, rgba(247, 49, 69, .27), transparent 24rem),
        radial-gradient(circle at 85% 12%, rgba(78, 197, 255, .18), transparent 25rem),
        #0a0a0d;
}

.tm-route-contact .tm-contact-hero::before {
    content: 'OPEN LINE';
    margin-bottom: 16px;
    font-size: .7rem;
    font-weight: 850;
    letter-spacing: .17em;
}

.tm-route-contact .tm-contact-hero h1 {
    font-size: clamp(2.82rem, 6.6vw, 5.65rem);
}

.tm-route-contact .tm-contact-hero p {
    color: #aaa7b0;
    font-size: 1.05rem;
}

.tm-route-contact .tm-contact-grid {
    max-width: 1180px;
    gap: 48px;
    padding: 86px 24px 100px;
}

.tm-route-contact .tm-contact-grid > div {
    min-width: 0;
}

.tm-route-contact .tm-contact-info-item {
    margin-bottom: 10px;
    padding: 16px;
    border: 1px solid var(--tm-refresh-line);
    border-radius: var(--tm-radius-card) !important;
    background: rgba(255, 255, 255, .66);
}

.tm-route-contact .tm-contact-info-icon {
    width: 42px;
    height: 42px;
    border-radius: var(--tm-radius-control) !important;
    background: var(--tm-refresh-yellow);
    color: #090909;
}

.tm-route-contact .tm-contact-social-btn {
    min-height: 42px;
    padding: 10px 14px;
    border-color: var(--tm-refresh-line);
    border-radius: var(--tm-radius-pill) !important;
}

.tm-route-contact .tm-contact-social-btn:hover {
    border-color: var(--tm-refresh-red-dark);
    background: #fff;
    color: var(--tm-refresh-red-dark);
}

.tm-route-contact form {
    padding: 26px;
    border: 1px solid var(--tm-refresh-line);
    border-radius: var(--tm-radius-card) !important;
    background: var(--tm-refresh-paper);
    box-shadow: 0 20px 60px rgba(20, 18, 18, .075);
}

.tm-route-contact .tm-contact-input {
    padding: 13px 15px;
    border-radius: var(--tm-radius-control) !important;
}

.tm-route-contact .tm-contact-status {
    border-radius: var(--tm-radius-control) !important;
}

.tm-route-contact form .tm-btn {
    border-radius: var(--tm-radius-control) !important;
}

/* Policies */
.tm-family-policies .tm-policy-hero {
    min-height: 300px;
    display: flex;
    align-items: flex-end;
    padding: 72px max(24px, calc((100vw - 960px) / 2)) 54px;
    border: 0;
    border-radius: 0 0 var(--tm-radius-banner) var(--tm-radius-banner) !important;
    background:
        radial-gradient(circle at 86% 20%, rgba(171, 72, 251, .25), transparent 26rem),
        #0b0b0e;
}

.tm-family-policies .tm-policy-hero > div {
    width: 100%;
    max-width: 960px !important;
    margin: 0;
}

.tm-family-policies .tm-policy-hero h1 {
    font-family: 'Graphik Headings', 'Graphik', system-ui, sans-serif;
    font-size: clamp(2.63rem, 5.65vw, 4.9rem);
    font-weight: 700;
    letter-spacing: -.06em;
    line-height: .94;
}

.tm-family-policies .tm-policy-updated {
    margin-top: 14px;
    color: #aaa7b0;
    font-size: .75rem;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.tm-family-policies .tm-policy-body {
    max-width: 900px;
    margin: 46px auto 88px;
    padding: 42px 48px 64px;
    border: 1px solid var(--tm-refresh-line);
    border-radius: var(--tm-radius-card) !important;
    background: var(--tm-refresh-paper);
    box-shadow: 0 18px 54px rgba(20, 18, 18, .06);
}

.tm-family-policies .tm-policy-toc {
    margin-bottom: 50px;
    padding: 24px 26px;
    border: 0;
    border-radius: var(--tm-radius-card) !important;
    background: #efebe4;
}

.tm-family-policies .tm-policy-toc > p {
    color: var(--tm-refresh-red-dark);
}

.tm-family-policies .tm-policy-body h2 {
    scroll-margin-top: 130px;
    margin-top: 48px;
    padding-top: 28px;
    border-color: var(--tm-refresh-line);
    color: var(--tm-refresh-ink);
    font-size: 1.4rem;
    letter-spacing: -.025em;
    line-height: 1.18;
}

.tm-family-policies .tm-policy-body p,
.tm-family-policies .tm-policy-body li {
    color: #555259;
    font-size: 1rem;
    line-height: 1.78;
}

.tm-family-policies .tm-policy-body a {
    color: var(--tm-refresh-red-dark);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

/* Login / register */
.tm-family-auth,
.tm-family-auth #tm-main,
.tm-family-auth .page_wrapper {
    background: #09090c !important;
}

.tm-family-auth #tm-main > .min-h-screen {
    min-height: 100vh;
    background:
        radial-gradient(circle at 12% 14%, rgba(247, 49, 69, .2), transparent 29rem),
        radial-gradient(circle at 90% 82%, rgba(171, 72, 251, .2), transparent 30rem),
        #09090c;
}

@media (min-width: 1024px) {
    .tm-family-auth #tm-main > .min-h-screen > div:first-child {
        border-radius: 0 var(--tm-radius-banner) var(--tm-radius-banner) 0 !important;
    }
}

.tm-family-auth .gradient-bg {
    background:
        linear-gradient(180deg, rgba(0, 0, 0, .08), rgba(0, 0, 0, .7)),
        radial-gradient(circle at 25% 20%, rgba(247, 49, 69, .72), transparent 24rem),
        radial-gradient(circle at 80% 75%, rgba(171, 72, 251, .55), transparent 25rem),
        #111116;
}

.tm-family-auth .glass-morphism {
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: var(--tm-radius-card) !important;
    background: rgba(20, 20, 25, .88);
    color: #fff;
    box-shadow: 0 28px 90px rgba(0, 0, 0, .42);
}

.tm-family-auth .glass-morphism h1 {
    color: #fff !important;
    font-size: clamp(2.07rem, 3.75vw, 3.3rem);
    font-weight: 700;
    letter-spacing: -.05em;
}

.tm-family-auth .glass-morphism p,
.tm-family-auth .glass-morphism label,
.tm-family-auth .glass-morphism a {
    color: #b7b4bd;
}

.tm-family-auth .glass-morphism a:hover {
    color: var(--tm-refresh-yellow);
}

.tm-family-auth .glass-morphism input:not([type="checkbox"]):not([type="hidden"]) {
    min-height: 50px;
    border-color: rgba(255, 255, 255, .15) !important;
    border-radius: var(--tm-radius-control) !important;
    background: rgba(255, 255, 255, .07);
    color: #fff;
}

.tm-family-auth .glass-morphism input::placeholder {
    color: #77747d;
}

.tm-family-auth .glass-morphism button[type="submit"] {
    min-height: 50px;
    border-radius: var(--tm-radius-control) !important;
    background: var(--tm-refresh-yellow) !important;
    color: #080808 !important;
    box-shadow: none;
}

.tm-family-auth .glass-morphism button[type="button"] {
    min-width: 44px;
    min-height: 44px;
    border-radius: var(--tm-radius-control) !important;
}

.tm-family-auth .tm-google-login,
.tm-family-auth .tm-google-login span {
    color: #15151a !important;
}

.tm-family-auth .tm-google-login {
    border-radius: var(--tm-radius-control) !important;
    background: #fff !important;
}

.tm-family-auth [class*="bg-white/10"] {
    border-radius: var(--tm-radius-card) !important;
}

.tm-family-auth .floating-shapes::before,
.tm-family-auth .floating-shapes::after {
    border-radius: 50% !important;
}

/* Compact recovery/verification screens */
.tm-auth-page {
    min-height: 100vh;
    background:
        radial-gradient(circle at 12% 12%, rgba(247, 49, 69, .24), transparent 25rem),
        radial-gradient(circle at 86% 82%, rgba(171, 72, 251, .2), transparent 26rem),
        #09090c;
}

.tm-auth-shell {
    width: min(100%, 560px);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 28px;
    margin: 0 auto;
    padding: 32px 20px;
}

.tm-auth-brand {
    width: 54px;
    height: 54px;
    display: block;
    overflow: hidden;
    border-radius: var(--tm-radius-control) !important;
    background: #000;
}

.tm-auth-brand img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.tm-auth-card {
    padding: 38px;
    border: 1px solid rgba(255, 255, 255, .11);
    border-radius: var(--tm-radius-card) !important;
    background: rgba(20, 20, 25, .9);
    color: #fff;
    box-shadow: 0 28px 90px rgba(0, 0, 0, .4);
}

.tm-auth-eyebrow {
    display: block;
    margin-bottom: 16px;
    color: var(--tm-refresh-yellow);
    font-size: .68rem;
    font-weight: 850;
    letter-spacing: .15em;
    text-transform: uppercase;
}

.tm-auth-card h1 {
    margin: 0 0 16px;
    color: #fff;
    font-size: clamp(2.2rem, 7.5vw, 3.75rem);
    font-weight: 700;
    letter-spacing: -.06em;
    line-height: .95;
}

.tm-auth-card > p {
    color: #aaa7b0;
    line-height: 1.65;
}

.tm-auth-compact-form {
    display: grid;
    gap: 12px;
    margin-top: 28px;
}

.tm-auth-compact-form label {
    color: #d9d6de;
    font-size: .78rem;
    font-weight: 700;
}

.tm-auth-compact-form input {
    padding: 0 16px;
    border-color: rgba(255, 255, 255, .16) !important;
    border-radius: var(--tm-radius-control) !important;
    background: rgba(255, 255, 255, .07);
    color: #fff;
}

.tm-family-auth .tm-auth-compact-form button {
    padding: 0 20px;
    border: 0;
    border-radius: var(--tm-radius-control) !important;
    background: var(--tm-refresh-yellow) !important;
    color: #080808 !important;
}

.tm-auth-message {
    margin-top: 18px;
    padding: 12px 14px;
    border-radius: var(--tm-radius-control) !important;
}

.tm-auth-message.is-success {
    background: rgba(89, 255, 80, .1);
    color: #a4ff9f;
}

.tm-auth-message.is-error {
    background: rgba(247, 49, 69, .12);
    color: #ff9ba5;
}

.tm-auth-back {
    display: inline-flex;
    margin-top: 24px;
    color: #fff;
    font-size: .82rem;
    font-weight: 750;
}

@media (max-width: 767px) {
    .tm-route-about .tm-about-hero {
        min-height: 360px;
        padding: 72px 18px 52px;
    }

    .tm-route-about .tm-about-cols-inner,
    .tm-route-about .tm-about-contact-grid,
    .tm-route-contact .tm-contact-grid {
        grid-template-columns: 1fr;
    }

    .tm-route-about .tm-about-col {
        min-height: 0;
    }

    .tm-route-contact .tm-contact-grid {
        gap: 36px;
        padding: 60px 16px 76px;
    }

    .tm-family-policies .tm-policy-hero {
        min-height: 250px;
        padding: 62px 18px 40px;
    }

    .tm-family-policies .tm-policy-body {
        margin: 20px 12px 58px;
        padding: 28px 20px 44px;
    }

    .tm-family-auth #tm-main > .min-h-screen > div:last-child {
        padding: 24px 16px;
    }

    .tm-family-auth .glass-morphism,
    .tm-auth-card {
        padding: 26px 20px;
        border-radius: var(--tm-radius-card) !important;
    }
}
