/*
 * Coming Soon Page — Styles
 *
 * All selectors scoped to .tty-cs-page to avoid conflicts
 * with any other WordPress styles that may be loaded.
 *
 * @package Transtoyou
 * @since   2.0.0
 */

/* ── Reset & base ── */
*, *::before, *::after {
    box-sizing: border-box;
}

.tty-cs-page {
    min-height: 100vh;
    background: #f8fafa;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
    color: #0d1f1f;
    overflow-x: hidden;
    position: relative;
}

/* Ensure [hidden] always wins */
.tty-cs-page [hidden] {
    display: none !important;
}

/* ── Scrollable wrapper ── */
.tty-cs-page .tty-cs-scroll {
    position: relative;
    z-index: 1;
}

.tty-cs-page .tty-cs-inner {
    max-width: 860px;
    margin: 0 auto;
    padding: 48px 24px 64px;
}

/* ── Background blobs ── */
.tty-cs-page .tty-cs-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.tty-cs-page .tty-cs-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.18;
    animation: tty-cs-drift 14s ease-in-out infinite alternate;
}

.tty-cs-page .tty-cs-blob-1 {
    width: 600px;
    height: 600px;
    background: #005F5F;
    top: -200px;
    right: -150px;
    animation-delay: 0s;
}

.tty-cs-page .tty-cs-blob-2 {
    width: 400px;
    height: 400px;
    background: #E5924C;
    bottom: 100px;
    left: -100px;
    animation-delay: -5s;
}

.tty-cs-page .tty-cs-blob-3 {
    width: 300px;
    height: 300px;
    background: #005F5F;
    bottom: -100px;
    right: 20%;
    animation-delay: -9s;
}

@keyframes tty-cs-drift {
    from { transform: translate(0, 0) scale(1); }
    to   { transform: translate(30px, 20px) scale(1.08); }
}

/* ── Header ── */
.tty-cs-page .tty-cs-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 56px;
    flex-wrap: wrap;
    gap: 16px;
}

.tty-cs-page .tty-cs-logo {
    height: 50px;
    width: auto;
}

.tty-cs-page .tty-cs-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #005F5F12;
    border: 1px solid #005F5F30;
    color: #005F5F;
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.tty-cs-page .tty-cs-badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #005F5F;
    animation: tty-cs-pulse 2s ease-in-out infinite;
}

@keyframes tty-cs-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.5; transform: scale(1.4); }
}

/* ── Hero ── */
.tty-cs-page .tty-cs-hero {
    text-align: center;
    margin-bottom: 48px;
}

.tty-cs-page .tty-cs-title {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 800;
    line-height: 1.15;
    color: #0d1f1f;
    margin: 0 0 20px;
    letter-spacing: -0.02em;
}

.tty-cs-page .tty-cs-gradient {
    background: linear-gradient(135deg, #005F5F 0%, #00a08a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tty-cs-page .tty-cs-subtitle {
    font-size: 1.1rem;
    color: #4a6060;
    max-width: 580px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ── Sign-up form ── */
.tty-cs-page .tty-cs-signup-section {
    background: white;
    border-radius: 20px;
    padding: 36px;
    box-shadow: 0 4px 40px rgba(0, 95, 95, 0.10);
    margin-bottom: 56px;
}

.tty-cs-page .tty-cs-signup-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: #005F5F;
    margin: 0 0 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tty-cs-page .tty-cs-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.tty-cs-page .tty-cs-field-label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: #4a6060;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.tty-cs-page .tty-cs-input {
    width: 100%;
    padding: 13px 16px;
    border: 1.5px solid #d0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    color: #0d1f1f;
    background: #f8fafa;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
    box-sizing: border-box;
}

.tty-cs-page .tty-cs-input:focus {
    border-color: #005F5F;
    box-shadow: 0 0 0 3px rgba(0, 95, 95, 0.12);
    background: white;
}

.tty-cs-page .tty-cs-submit {
    width: 100%;
    padding: 15px 24px;
    background: linear-gradient(135deg, #005F5F 0%, #006868 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
}

.tty-cs-page .tty-cs-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(0, 95, 95, 0.35);
}

.tty-cs-page .tty-cs-submit:active {
    transform: translateY(0);
}

.tty-cs-page .tty-cs-submit.is-loading .tty-cs-submit-text {
    opacity: 0;
}

.tty-cs-page .tty-cs-submit-loading {
    position: absolute;
}

.tty-cs-page .tty-cs-submit:not(.is-loading) .tty-cs-submit-loading {
    display: none;
}

.tty-cs-page .tty-cs-success {
    text-align: center;
    padding: 24px 0 8px;
}

.tty-cs-page .tty-cs-success-icon {
    font-size: 3rem;
    color: #005F5F;
    margin-bottom: 12px;
}

.tty-cs-page .tty-cs-success-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #0d1f1f;
    margin: 0 0 8px;
}

.tty-cs-page .tty-cs-success-text {
    color: #4a6060;
    line-height: 1.6;
    margin: 0;
}

.tty-cs-page .tty-cs-error {
    margin-top: 12px;
    color: #c0392b;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ── Section shared ── */
.tty-cs-page .tty-cs-section-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: #0d1f1f;
    margin: 0 0 12px;
    letter-spacing: -0.01em;
}

.tty-cs-page .tty-cs-section-desc {
    color: #4a6060;
    line-height: 1.7;
    margin: 0 0 36px;
    font-size: 1.05rem;
}

/* ── About / pillars ── */
.tty-cs-page .tty-cs-about {
    margin-bottom: 56px;
}

.tty-cs-page .tty-cs-about-header {
    margin-bottom: 32px;
}

.tty-cs-page .tty-cs-pillars {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.tty-cs-page .tty-cs-pillar {
    background: white;
    border-radius: 16px;
    padding: 28px 24px;
    box-shadow: 0 2px 20px rgba(0, 95, 95, 0.07);
    transition: transform 0.2s, box-shadow 0.2s;
}

.tty-cs-page .tty-cs-pillar:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 32px rgba(0, 95, 95, 0.12);
}

.tty-cs-page .tty-cs-pillar-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #005F5F 0%, #006868 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.4rem;
    margin-bottom: 16px;
}

.tty-cs-page .tty-cs-pillar h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #0d1f1f;
    margin: 0 0 8px;
}

.tty-cs-page .tty-cs-pillar p {
    font-size: 0.9rem;
    color: #4a6060;
    line-height: 1.6;
    margin: 0;
}

/* ── How it works ── */
.tty-cs-page .tty-cs-how {
    margin-bottom: 56px;
}

.tty-cs-page .tty-cs-steps {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    flex-wrap: wrap;
}

.tty-cs-page .tty-cs-step {
    flex: 1;
    min-width: 160px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
}

.tty-cs-page .tty-cs-step-num {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #005F5F 0%, #006868 100%);
    color: white;
    font-size: 1.1rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.tty-cs-page .tty-cs-step-body h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #0d1f1f;
    margin: 0 0 6px;
}

.tty-cs-page .tty-cs-step-body p {
    font-size: 0.85rem;
    color: #4a6060;
    line-height: 1.6;
    margin: 0;
}

.tty-cs-page .tty-cs-step-arrow {
    color: #005F5F;
    font-size: 1rem;
    opacity: 0.4;
    padding-top: 12px;
    flex-shrink: 0;
}

/* ── Categories ── */
.tty-cs-page .tty-cs-categories {
    margin-bottom: 56px;
}

.tty-cs-page .tty-cs-cat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 24px;
}

.tty-cs-page .tty-cs-cat {
    background: white;
    border-radius: 14px;
    padding: 20px 16px;
    text-align: center;
    box-shadow: 0 2px 16px rgba(0, 95, 95, 0.07);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.tty-cs-page .tty-cs-cat:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(0, 95, 95, 0.13);
}

.tty-cs-page .tty-cs-cat i {
    font-size: 1.8rem;
    color: #005F5F;
}

.tty-cs-page .tty-cs-cat span {
    font-size: 0.9rem;
    font-weight: 600;
    color: #0d1f1f;
}

/* ── Footer ── */
.tty-cs-page .tty-cs-footer {
    text-align: center;
    padding-top: 32px;
    border-top: 1px solid #e0eded;
}

.tty-cs-page .tty-cs-footer-legal {
    font-size: 0.85rem;
    color: #7a9090;
    margin: 0 0 20px;
}

.tty-cs-page .tty-cs-footer-legal a {
    color: #005F5F;
    text-decoration: none;
}

/* ── Developer access ── */
.tty-cs-page .tty-cs-dev-toggle {
    background: none;
    border: none;
    color: #aababa;
    font-size: 0.78rem;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: color 0.2s;
    display: block;
    margin: 0 auto 12px;
}

.tty-cs-page .tty-cs-dev-toggle:hover {
    color: #005F5F;
}

.tty-cs-page .tty-cs-dev-panel {
    max-width: 380px;
    margin: 0 auto;
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0, 95, 95, 0.10);
}

.tty-cs-page .tty-cs-dev-row {
    display: flex;
    gap: 8px;
    margin-top: 6px;
}

.tty-cs-page .tty-cs-dev-input {
    flex: 1;
}

.tty-cs-page .tty-cs-dev-submit {
    padding: 13px 18px;
    background: linear-gradient(135deg, #005F5F 0%, #006868 100%);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1rem;
    transition: transform 0.15s;
    flex-shrink: 0;
}

.tty-cs-page .tty-cs-dev-submit:hover {
    transform: scale(1.05);
}

.tty-cs-page .tty-cs-dev-error {
    color: #c0392b;
    font-size: 0.85rem;
    margin: 8px 0 0;
}

.tty-cs-page .tty-cs-dev-success {
    color: #005F5F;
    font-size: 0.85rem;
    margin: 8px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

/* ── Responsive ── */
@media (max-width: 640px) {
    .tty-cs-page .tty-cs-inner {
        padding: 32px 16px 48px;
    }

    .tty-cs-page .tty-cs-fields {
        grid-template-columns: 1fr;
    }

    .tty-cs-page .tty-cs-pillars {
        grid-template-columns: 1fr;
    }

    .tty-cs-page .tty-cs-steps {
        flex-direction: column;
        align-items: center;
    }

    .tty-cs-page .tty-cs-step-arrow {
        transform: rotate(90deg);
        padding: 0;
    }

    .tty-cs-page .tty-cs-cat-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .tty-cs-page .tty-cs-header {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 36px;
    }
}
