/*
    OutAds landing / signing pages — light blue theme.

    Standalone pages (no admin chrome): home (logo + login form), login,
    unapproved. Only these pages link this file; the admin UI is untouched.
*/
:root {
    --td-primary: #4299e1;
    --td-primary-hover: #3182ce;
    --td-primary-active: #2b6cb0;
    --td-text: #2c5282;
    --td-text-muted: #7f9db9;
    --td-bg-top: #e7f4fe;
    --td-bg-bottom: #c9e6fb;
    --td-card-shadow: 0 12px 40px rgba(66, 153, 225, 0.18);
    --td-input-border: #bee3f8;
    --td-input-bg: #f5fbff;
}

* {
    box-sizing: border-box;
}

body.td-body {
    margin: 0;
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6.5rem 1.5rem 1.5rem;
    font-family: Inter, "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--td-text);
    background: linear-gradient(160deg, var(--td-bg-top) 0%, var(--td-bg-bottom) 100%);
}

/* ── full logo, top-left corner ─────────────────────────────── */
.td-corner {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
}

.td-corner-logo {
    height: 4.5rem;
    width: auto;
    object-fit: contain;
}

@media (max-width: 575.98px) {
    .td-corner {
        top: 1rem;
        left: 1rem;
    }

    .td-corner-logo {
        height: 3rem;
    }
}

.td-wrapper {
    width: 100%;
    max-width: 26rem;
}

.td-card {
    background: #ffffff;
    border-radius: 1.25rem;
    box-shadow: var(--td-card-shadow);
    padding: 2.5rem 2.25rem;
    text-align: center;
}

/* ── form head: short logo + inviting text ────────────────── */
.td-form-head {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    text-align: left;
    margin-bottom: 1.25rem;
}

.td-form-logo {
    width: 2.75rem;
    height: 2.75rem;
    object-fit: contain;
    flex: none;
}

.td-form-title {
    font-size: 1.05rem;
    font-weight: 600;
}

.td-form-subtitle {
    margin-top: 0.125rem;
    font-size: 0.8rem;
    color: var(--td-text-muted);
}

/* ── form ──────────────────────────────────────────────────────────── */
.td-form {
    text-align: left;
}

.td-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    margin: 0.875rem 0 0.25rem;
}

.td-form input[type="text"],
.td-form input[type="email"],
.td-form input[type="password"] {
    width: 100%;
    padding: 0.625rem 0.875rem;
    font: inherit;
    color: var(--td-text);
    background: var(--td-input-bg);
    border: 1px solid var(--td-input-border);
    border-radius: 0.625rem;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.td-form input:focus {
    border-color: var(--td-primary);
    box-shadow: 0 0 0 0.2rem rgba(66, 153, 225, 0.25);
}

.td-btn {
    display: inline-block;
    width: 100%;
    margin-top: 1.5rem;
    padding: 0.625rem 1.25rem;
    font: inherit;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    color: #ffffff;
    background: var(--td-primary);
    border: none;
    border-radius: 1.25rem;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.td-btn:hover,
.td-btn:focus {
    background: var(--td-primary-hover);
    color: #ffffff;
    text-decoration: none;
}

.td-btn:active {
    background: var(--td-primary-active);
}

/* ── links ─────────────────────────────────────────────────────────── */
.td-link {
    display: block;
    margin-top: 1rem;
    font-size: 0.85rem;
    color: var(--td-primary);
    text-decoration: none;
}

.td-link:hover {
    color: var(--td-primary-hover);
    text-decoration: underline;
}

.td-link-muted {
    color: var(--td-text-muted);
}

.td-link-muted:hover {
    color: var(--td-text);
}

.td-hello {
    margin: 0 0 0.5rem;
}

/* ── messages / errors ─────────────────────────────────────────────── */
.td-messages {
    margin-bottom: 1rem;
}

.td-message {
    padding: 0.625rem 0.875rem;
    border-radius: 0.625rem;
    font-size: 0.85rem;
    text-align: left;
}

.td-message-error {
    background: #fff5f5;
    color: #c53030;
    border: 1px solid #fed7d7;
}

.td-message-info,
.td-message-success {
    background: var(--td-input-bg);
    color: var(--td-text);
    border: 1px solid var(--td-input-border);
}

.td-message-warning {
    background: #fffaf0;
    color: #975a16;
    border: 1px solid #febc8a;
}

.td-field-errors {
    margin-top: 0.25rem;
    font-size: 0.78rem;
    color: #c53030;
}

/* ── public landing page ───────────────────────────────────────────── */
body.td-body-landing {
    display: block;
    min-height: 100vh;
    padding: 0;
    color: #183b61;
    background:
        radial-gradient(ellipse at 84% 13%, rgba(255, 255, 255, 0.9) 0, rgba(255, 255, 255, 0) 35rem),
        linear-gradient(160deg, #f4faff 0%, #e7f4fe 52%, #f8fbff 100%);
}

.td-body-landing .td-corner {
    display: none;
}

.td-landing {
    width: min(100% - 3rem, 1120px);
    margin: 0 auto;
}

.td-nav {
    min-height: 6rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    border-bottom: 1px solid rgba(42, 98, 151, 0.1);
}

.td-brand {
    display: inline-flex;
    align-items: center;
}

.td-brand img {
    display: block;
    width: 10.5rem;
    height: 3.5rem;
    object-fit: contain;
    object-position: left center;
}

.td-nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.td-nav-links a,
.td-footer a {
    color: #426384;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.18s ease, background-color 0.18s ease, transform 0.18s ease;
}

.td-nav-links a:hover,
.td-footer a:hover {
    color: var(--td-primary-active);
}

.td-nav-links .td-nav-cta {
    padding: 0.75rem 1.2rem;
    color: #fff;
    background: var(--td-primary);
    border-radius: 999px;
    box-shadow: 0 7px 18px rgba(66, 153, 225, 0.2);
}

.td-nav-links .td-nav-cta:hover {
    color: #fff;
    background: var(--td-primary-hover);
    transform: translateY(-1px);
}

.td-hero {
    min-height: 37rem;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(25rem, 0.92fr);
    align-items: center;
    gap: clamp(2rem, 6vw, 5.5rem);
    padding: 4.5rem 0 5.75rem;
}

.td-hero-copy {
    position: relative;
    z-index: 1;
}

.td-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    color: #397eaf;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.13em;
    line-height: 1.5;
    text-transform: uppercase;
}

.td-eyebrow > span {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: #58bfaa;
    box-shadow: 0 0 0 0.25rem rgba(88, 191, 170, 0.14);
}

.td-hero h1 {
    margin: 1.2rem 0 1.15rem;
    color: #16385e;
    font-size: clamp(3.2rem, 5.1vw, 4.55rem);
    font-weight: 700;
    letter-spacing: -0.065em;
    line-height: 1.04;
}

.td-hero h1 span,
.td-section-heading h2 span,
.td-approach-intro h2 span {
    color: var(--td-primary);
}

.td-hero-intro {
    max-width: 34rem;
    margin: 0;
    color: #66819b;
    font-size: 1.08rem;
    line-height: 1.8;
}

.td-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 2rem;
}

.td-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    min-height: 3.25rem;
    padding: 0.75rem 1.35rem;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.td-button:hover {
    transform: translateY(-2px);
}

.td-button-primary {
    color: #fff;
    background: var(--td-primary);
    box-shadow: 0 11px 25px rgba(66, 153, 225, 0.25);
}

.td-button-primary:hover {
    color: #fff;
    background: var(--td-primary-hover);
    box-shadow: 0 14px 30px rgba(66, 153, 225, 0.32);
}

.td-button-secondary {
    color: #35638c;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(82, 140, 188, 0.2);
}

.td-button-secondary:hover {
    color: #244d72;
    background: #fff;
}

.td-hero-note {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-top: 1.65rem;
    color: #7890a6;
    font-size: 0.78rem;
    font-weight: 500;
}

.td-note-mark {
    display: inline-grid;
    width: 1.2rem;
    height: 1.2rem;
    place-items: center;
    color: #31927f;
    background: #dff6ee;
    border-radius: 50%;
    font-size: 0.7rem;
    font-weight: 700;
}

.td-network-card {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 2rem;
    border: 1px solid rgba(96, 157, 201, 0.2);
    border-radius: 1.4rem;
    background: rgba(255, 255, 255, 0.87);
    box-shadow: 0 25px 70px rgba(57, 113, 158, 0.16), 0 3px 9px rgba(57, 113, 158, 0.05);
}

.td-network-topline,
.td-network-footer {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.td-network-kicker,
.td-card-label {
    color: #76a0bd;
    font-size: 0.63rem;
    font-weight: 700;
    letter-spacing: 0.14em;
}

.td-network-topline h2 {
    margin: 0.4rem 0 0;
    color: #254a6d;
    font-size: 1.15rem;
    letter-spacing: -0.025em;
}

.td-network-spark {
    display: grid;
    width: 2.6rem;
    height: 2.6rem;
    flex: none;
    place-items: center;
    color: #4098d4;
    background: #eaf6ff;
    border-radius: 0.8rem;
}

.td-network-flow {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 2rem 1.3fr 2rem 1fr;
    align-items: center;
    margin: 3rem -0.6rem;
}

.td-network-node {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.td-node-icon {
    display: grid;
    width: 3.5rem;
    height: 3.5rem;
    place-items: center;
    border: 1px solid #deeffb;
    border-radius: 1.1rem;
    color: #3988be;
    background: #f0f8fe;
    font-size: 1.25rem;
    font-weight: 700;
}

.td-node-advertiser {
    color: #5881b9;
    background: #f1f5ff;
    border-color: #e3eaf9;
}

.td-node-title {
    margin-top: 0.75rem;
    color: #345878;
    font-size: 0.8rem;
    font-weight: 700;
}

.td-node-caption {
    margin-top: 0.25rem;
    color: #94a9ba;
    font-size: 0.65rem;
}

.td-network-line {
    position: relative;
    height: 1px;
    background: #bfd9ea;
}

.td-network-line i {
    position: absolute;
    top: -0.18rem;
    left: 40%;
    width: 0.38rem;
    height: 0.38rem;
    border-radius: 50%;
    background: #5daddb;
    box-shadow: 0 0 0 0.2rem #e7f5fe;
}

.td-network-line-right i {
    left: 55%;
    background: #7db7d9;
}

.td-network-hub {
    position: relative;
    display: flex;
    width: 6.2rem;
    height: 6.2rem;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    justify-self: center;
    border: 1px solid rgba(90, 163, 211, 0.26);
    border-radius: 50%;
    color: #3777a4;
    background: linear-gradient(145deg, #f7fcff, #e6f5ff);
    box-shadow: 0 0 0 0.6rem rgba(228, 244, 254, 0.7), 0 0 0 1.1rem rgba(228, 244, 254, 0.38);
    font-size: 0.72rem;
    font-weight: 700;
}

.td-network-logo {
    width: 1.9rem;
    height: 1.9rem;
    object-fit: contain;
}

.td-network-hub small {
    margin-top: 0.1rem;
    color: #83a1b8;
    font-size: 0.55rem;
    font-weight: 500;
}

.td-network-footer {
    padding-top: 1rem;
    border-top: 1px solid #edf3f8;
    color: #839caf;
    font-size: 0.7rem;
    font-weight: 600;
}

.td-network-pulse {
    width: 0.45rem;
    height: 0.45rem;
    margin-right: -0.55rem;
    border-radius: 50%;
    background: #55b99f;
    box-shadow: 0 0 0 0.2rem rgba(85, 185, 159, 0.14);
}

.td-footer-stars {
    color: #86bdde;
    font-size: 0.65rem;
    letter-spacing: 0.2em;
}

.td-orbit {
    position: absolute;
    z-index: -1;
    width: 18rem;
    height: 18rem;
    border: 1px solid rgba(104, 174, 218, 0.09);
    border-radius: 50%;
}

.td-orbit-one {
    top: 20%;
    left: 28%;
}

.td-orbit-two {
    top: 15%;
    left: 31%;
    width: 15rem;
    height: 15rem;
}

.td-solutions {
    padding: 5.5rem 0 6rem;
    border-top: 1px solid rgba(42, 98, 151, 0.1);
}

.td-section-heading {
    max-width: 38rem;
    margin: 0 auto 2.8rem;
    text-align: center;
}

.td-section-heading h2,
.td-approach-intro h2 {
    margin: 0.75rem 0;
    color: #16385e;
    font-size: clamp(2.2rem, 4vw, 3rem);
    letter-spacing: -0.055em;
    line-height: 1.12;
}

.td-section-heading p,
.td-approach-intro > p {
    margin: 0;
    color: #718ba3;
    font-size: 0.95rem;
    line-height: 1.75;
}

.td-solution-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.1rem;
}

.td-solution-card {
    min-height: 17rem;
    padding: 1.7rem;
    border: 1px solid rgba(96, 157, 201, 0.17);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.72);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.td-solution-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(57, 113, 158, 0.1);
}

.td-solution-card-featured {
    background: linear-gradient(155deg, #fff 0%, #f2f9ff 100%);
    border-color: rgba(66, 153, 225, 0.28);
    box-shadow: 0 12px 35px rgba(57, 113, 158, 0.08);
}

.td-solution-icon {
    display: grid;
    width: 2.8rem;
    height: 2.8rem;
    margin-bottom: 1.35rem;
    place-items: center;
    border-radius: 0.85rem;
    font-size: 1.25rem;
    font-weight: 700;
}

.td-icon-blue {
    color: #3689c0;
    background: #e8f5fd;
}

.td-icon-navy {
    color: #557bad;
    background: #edf2ff;
}

.td-icon-mint {
    color: #319780;
    background: #e4f7f0;
}

.td-solution-card h3 {
    margin: 0.45rem 0;
    color: #274a6a;
    font-size: 1.15rem;
    letter-spacing: -0.02em;
}

.td-solution-card p {
    min-height: 4.2rem;
    margin: 0;
    color: #7c93a8;
    font-size: 0.84rem;
    line-height: 1.7;
}

.td-solution-card > a {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin-top: 1.1rem;
    color: #3a83b2;
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
}

.td-solution-card > a:hover {
    color: var(--td-primary-active);
}

.td-approach {
    display: grid;
    grid-template-columns: minmax(14rem, 0.8fr) minmax(0, 1.2fr);
    gap: clamp(2rem, 8vw, 7rem);
    padding: 4.75rem 3rem;
    border: 1px solid rgba(96, 157, 201, 0.16);
    border-radius: 1.4rem;
    background: rgba(255, 255, 255, 0.68);
}

.td-approach-intro h2 {
    font-size: clamp(2rem, 3.4vw, 2.65rem);
}

.td-approach-intro > p {
    max-width: 24rem;
    font-size: 0.88rem;
}

.td-approach-list {
    display: flex;
    flex-direction: column;
}

.td-approach-item {
    display: grid;
    grid-template-columns: 2.4rem minmax(0, 1fr) 1.5rem;
    align-items: start;
    gap: 1rem;
    padding: 1.05rem 0;
    border-bottom: 1px solid #e7eff5;
}

.td-approach-item:first-child {
    padding-top: 0;
}

.td-approach-item:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.td-approach-number {
    padding-top: 0.15rem;
    color: #6da9ce;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
}

.td-approach-item h3 {
    margin: 0;
    color: #345674;
    font-size: 0.92rem;
}

.td-approach-item p {
    margin: 0.3rem 0 0;
    color: #8499ac;
    font-size: 0.78rem;
    line-height: 1.6;
}

.td-approach-arrow {
    color: #79acd0;
    font-size: 1rem;
}

.td-footer {
    display: flex;
    min-height: 7rem;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    margin-top: 3.5rem;
    border-top: 1px solid rgba(42, 98, 151, 0.1);
}

.td-footer-brand img {
    width: 8rem;
    height: 2.75rem;
}

.td-footer > span {
    color: #8ba0b2;
    font-size: 0.75rem;
}

.td-footer a:not(.td-brand) {
    color: #4388b5;
    font-size: 0.8rem;
}

@media (max-width: 900px) {
    .td-hero {
        grid-template-columns: minmax(0, 1fr) minmax(22rem, 0.9fr);
        gap: 2rem;
    }

    .td-network-card {
        padding: 1.5rem;
    }

    .td-network-flow {
        grid-template-columns: 1fr 1.25rem 1.2fr 1.25rem 1fr;
        margin-right: -0.5rem;
        margin-left: -0.5rem;
    }

    .td-approach {
        gap: 3rem;
        padding: 3rem 2rem;
    }
}

@media (max-width: 700px) {
    .td-landing {
        width: min(100% - 2rem, 36rem);
    }

    .td-nav {
        min-height: 5rem;
    }

    .td-brand img {
        width: 8.5rem;
        height: 3rem;
    }

    .td-nav-links {
        gap: 0.75rem;
    }

    .td-nav-links > a:not(.td-nav-cta) {
        display: none;
    }

    .td-nav-links .td-nav-cta {
        padding: 0.68rem 0.95rem;
        font-size: 0.78rem;
    }

    .td-hero {
        min-height: initial;
        grid-template-columns: 1fr;
        gap: 3rem;
        padding: 4rem 0 4.5rem;
    }

    .td-hero h1 {
        font-size: clamp(3rem, 12vw, 4rem);
    }

    .td-network-card {
        padding: 1.5rem 1.25rem;
    }

    .td-network-flow {
        grid-template-columns: 1fr 1.2rem 1.15fr 1.2rem 1fr;
        margin: 2.5rem -0.5rem;
    }

    .td-node-icon {
        width: 3rem;
        height: 3rem;
    }

    .td-node-title {
        font-size: 0.72rem;
    }

    .td-node-caption {
        font-size: 0.58rem;
    }

    .td-network-hub {
        width: 5.5rem;
        height: 5.5rem;
    }

    .td-solutions {
        padding: 4rem 0;
    }

    .td-solution-grid {
        grid-template-columns: 1fr;
    }

    .td-solution-card {
        min-height: initial;
    }

    .td-solution-card p {
        min-height: initial;
    }

    .td-approach {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem 1.4rem;
    }

    .td-footer {
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 0.5rem 1rem;
        padding: 1.25rem 0;
    }

    .td-footer > span {
        order: 1;
        width: 100%;
    }
}

@media (max-width: 380px) {
    .td-network-card {
        padding: 1.2rem 0.9rem;
    }

    .td-network-topline h2 {
        font-size: 1rem;
    }

    .td-network-flow {
        grid-template-columns: 1fr 0.8rem 1.05fr 0.8rem 1fr;
    }

    .td-network-hub {
        width: 4.8rem;
        height: 4.8rem;
        font-size: 0.65rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .td-body-landing *,
    .td-body-landing *::before,
    .td-body-landing *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
