/* ============================================================
   ToDo Landing Page — ToDo Velocity System
   Tokens sourced from Stitch project 10736973945272488863
   ============================================================ */

:root {
    --tv-primary: #600a76;
    --tv-primary-container: #7a2b8f;
    --tv-accent: #fecb00;
    --tv-surface: #f7faf9;
    --tv-surface-card: #ffffff;
    --tv-on-surface: #181c1c;
    --tv-outline: #817380;
    --tv-outline-variant: #d2c2d1;
    --tv-error: #ba1a1a;
    --tv-success: #00aa6d;
    --tv-footer-bg: #25082e;
    --tv-radius-sm: 0.5rem;
    --tv-radius-md: 1rem;
    --tv-radius-pill: 9999px;
    --tv-font: 'Baloo Bhaijaan 2', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--tv-font);
    background: var(--tv-surface);
    color: var(--tv-on-surface);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    line-height: 1.7;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

.tv-container {
    width: min(1140px, 92%);
    margin-inline: auto;
}

/* ============ Header ============ */

.tv-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--tv-outline-variant);
}

.tv-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 0;
}

.tv-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--tv-primary);
}

.tv-logo img {
    height: 56px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
}

.tv-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    flex-wrap: wrap;
}

.tv-nav a {
    display: inline-block;
    padding: 8px 16px;
    border-radius: var(--tv-radius-pill);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--tv-on-surface);
    transition: background 0.2s, color 0.2s;
}

.tv-nav a:hover {
    background: var(--tv-surface);
    color: var(--tv-primary);
}

.tv-nav a.active {
    background: var(--tv-accent);
    color: var(--tv-on-surface);
}

/* ============ Hero ============ */

.tv-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--tv-primary) 0%, var(--tv-primary-container) 55%, #4a0759 100%);
    color: #fff;
    text-align: center;
    padding: 96px 0 110px;
}

.tv-hero::before,
.tv-hero::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: rgba(254, 203, 0, 0.12);
    filter: blur(2px);
}

.tv-hero::before {
    width: 340px;
    height: 340px;
    top: -120px;
    inset-inline-start: -80px;
}

.tv-hero::after {
    width: 260px;
    height: 260px;
    bottom: -110px;
    inset-inline-end: -60px;
    background: rgba(255, 255, 255, 0.07);
}

.tv-hero-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.tv-hero-logo {
    width: 104px;
    height: 104px;
    border-radius: 28px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

.tv-hero-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.tv-hero-badge {
    display: inline-block;
    padding: 4px 18px;
    border-radius: var(--tv-radius-pill);
    background: rgba(254, 203, 0, 0.16);
    color: var(--tv-accent);
    border: 1px solid rgba(254, 203, 0, 0.45);
    font-weight: 600;
    font-size: 0.9rem;
}

.tv-hero h1 {
    font-size: clamp(2rem, 5vw, 3.4rem);
    font-weight: 800;
    line-height: 1.35;
    max-width: 780px;
}

.tv-hero h1 .tv-accent {
    color: var(--tv-accent);
}

.tv-hero p {
    font-size: clamp(1rem, 2.2vw, 1.25rem);
    color: rgba(255, 255, 255, 0.85);
    max-width: 640px;
}

.tv-hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 10px;
}

.tv-store-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.tv-store-badges a img {
    height: 46px;
    width: auto;
    transition: transform 0.2s, opacity 0.2s;
}

.tv-store-badges a:hover img {
    transform: translateY(-3px);
    opacity: 0.9;
}

.tv-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: var(--tv-radius-sm);
    font-family: var(--tv-font);
    font-weight: 700;
    font-size: 1rem;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.tv-btn:hover {
    transform: translateY(-2px);
}

.tv-btn-accent {
    background: var(--tv-accent);
    color: var(--tv-on-surface);
    box-shadow: 0 10px 24px rgba(254, 203, 0, 0.35);
}

.tv-btn-ghost {
    border: 1.5px solid rgba(255, 255, 255, 0.5);
    color: #fff;
}

.tv-btn-ghost:hover {
    background: rgba(255, 255, 255, 0.12);
}

/* ============ Quick links ============ */

.tv-links-section {
    padding: 72px 0 80px;
    flex: 1;
}

.tv-section-head {
    text-align: center;
    margin-bottom: 40px;
}

.tv-section-head h2 {
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    font-weight: 800;
    color: var(--tv-primary);
}

.tv-section-head p {
    color: var(--tv-outline);
    margin-top: 4px;
}

.tv-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 20px;
}

.tv-card {
    background: var(--tv-surface-card);
    border: 1px solid var(--tv-outline-variant);
    border-radius: var(--tv-radius-md);
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.tv-card:hover {
    transform: translateY(-4px);
    border-color: var(--tv-primary);
    box-shadow: 0 14px 30px rgba(96, 10, 118, 0.12);
}

.tv-card-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--tv-radius-sm);
    background: rgba(96, 10, 118, 0.08);
    color: var(--tv-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.tv-card-icon svg {
    width: 26px;
    height: 26px;
}

.tv-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--tv-on-surface);
}

.tv-card p {
    font-size: 0.92rem;
    color: var(--tv-outline);
    flex: 1;
}

.tv-card .tv-card-link {
    font-weight: 700;
    color: var(--tv-primary);
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.tv-card .tv-card-link svg {
    width: 16px;
    height: 16px;
    transition: transform 0.2s;
}

.tv-card:hover .tv-card-link svg {
    transform: translateX(-4px);
}

/* ============ Footer ============ */

.tv-footer {
    background: var(--tv-footer-bg);
    color: rgba(255, 255, 255, 0.85);
    padding: 56px 0 0;
}

.tv-footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1.2fr;
    gap: 40px;
    padding-bottom: 40px;
}

.tv-footer h4 {
    color: #fff;
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 16px;
    position: relative;
    padding-bottom: 10px;
}

.tv-footer h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    inset-inline-start: 0;
    width: 36px;
    height: 3px;
    border-radius: var(--tv-radius-pill);
    background: var(--tv-accent);
}

.tv-footer-brand img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    background: #fff;
    border-radius: var(--tv-radius-sm);
    padding: 8px;
    margin-bottom: 14px;
}

.tv-footer-brand p {
    font-size: 0.92rem;
    max-width: 300px;
}

.tv-footer ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tv-footer ul a {
    font-size: 0.95rem;
    transition: color 0.2s, padding 0.2s;
}

.tv-footer ul a:hover {
    color: var(--tv-accent);
}

.tv-contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
}

.tv-contact-item svg {
    width: 18px;
    height: 18px;
    color: var(--tv-accent);
    flex-shrink: 0;
}

.tv-social {
    display: flex;
    gap: 10px;
    margin-top: 16px;
    list-style: none !important;
    flex-direction: row !important;
}

.tv-social a {
    width: 38px;
    height: 38px;
    border-radius: var(--tv-radius-sm);
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.2s;
}

.tv-social a:hover {
    background: var(--tv-accent);
    transform: translateY(-2px);
}

.tv-social a img {
    width: 18px;
    height: 18px;
}

.tv-footer-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.tv-footer-badges img {
    height: 40px;
    width: auto;
}

.tv-copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding: 18px 0;
    text-align: center;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

.tv-copyright strong {
    color: var(--tv-accent);
}

/* ============ Mobile nav ============ */

.tv-nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 10px;
    border: 1px solid var(--tv-outline-variant);
    border-radius: var(--tv-radius-sm);
    background: var(--tv-surface-card);
    cursor: pointer;
}

.tv-nav-toggle span {
    display: block;
    height: 2.5px;
    border-radius: var(--tv-radius-pill);
    background: var(--tv-primary);
    transition: transform 0.25s, opacity 0.25s;
}

.tv-nav-toggle.open span:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
}

.tv-nav-toggle.open span:nth-child(2) {
    opacity: 0;
}

.tv-nav-toggle.open span:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
}

/* ============ Inner page hero ============ */

.tv-page-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--tv-primary) 0%, var(--tv-primary-container) 60%, #4a0759 100%);
    color: #fff;
    text-align: center;
    padding: 56px 0 64px;
}

.tv-page-hero::before {
    content: '';
    position: absolute;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: rgba(254, 203, 0, 0.1);
    top: -110px;
    inset-inline-start: -70px;
}

.tv-page-hero h1 {
    position: relative;
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    font-weight: 800;
}

.tv-page-hero p {
    position: relative;
    color: rgba(255, 255, 255, 0.82);
    margin-top: 6px;
}

/* ============ Content card ============ */

.tv-content-section {
    padding: 48px 0 72px;
    flex: 1;
}

.tv-content-card {
    background: var(--tv-surface-card);
    border: 1px solid var(--tv-outline-variant);
    border-radius: var(--tv-radius-md);
    padding: clamp(24px, 4vw, 48px);
}

.tv-content-card :is(h1, h2, h3, h4, h5) {
    color: var(--tv-primary);
    margin: 1.2em 0 0.5em;
    font-weight: 700;
}

.tv-content-card :is(h1, h2, h3, h4, h5):first-child {
    margin-top: 0;
}

.tv-content-card p {
    margin-bottom: 0.9em;
    color: var(--tv-on-surface);
}

.tv-content-card :is(ul, ol) {
    padding-inline-start: 1.5em;
    margin-bottom: 0.9em;
}

.tv-content-card a {
    color: var(--tv-primary);
    font-weight: 600;
    text-decoration: underline;
}

.tv-content-card img {
    border-radius: var(--tv-radius-sm);
    margin: 12px 0;
}

/* ============ Contact page ============ */

.tv-contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 24px;
    align-items: start;
}

.tv-info-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.tv-info-item {
    background: var(--tv-surface-card);
    border: 1px solid var(--tv-outline-variant);
    border-radius: var(--tv-radius-md);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tv-info-item .tv-card-icon {
    width: 44px;
    height: 44px;
}

.tv-info-item h3 {
    font-size: 1rem;
    font-weight: 700;
}

.tv-info-item a,
.tv-info-item span {
    color: var(--tv-outline);
    font-size: 0.92rem;
    word-break: break-word;
}

.tv-info-item a:hover {
    color: var(--tv-primary);
}

.tv-form-card {
    background: var(--tv-surface-card);
    border: 1px solid var(--tv-outline-variant);
    border-radius: var(--tv-radius-md);
    padding: 28px;
}

.tv-form-card h3 {
    color: var(--tv-primary);
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 18px;
}

.tv-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.tv-field {
    margin-bottom: 14px;
}

.tv-field label {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--tv-on-surface);
    margin-bottom: 6px;
}

.tv-input {
    width: 100%;
    padding: 11px 16px;
    border: 1.5px solid var(--tv-outline-variant);
    border-radius: var(--tv-radius-sm);
    font-family: var(--tv-font);
    font-size: 0.95rem;
    color: var(--tv-on-surface);
    background: var(--tv-surface);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.tv-input:focus {
    outline: none;
    border-color: var(--tv-primary);
    box-shadow: 0 0 0 3px rgba(96, 10, 118, 0.12);
}

textarea.tv-input {
    min-height: 120px;
    resize: vertical;
}

.tv-btn-primary {
    width: 100%;
    justify-content: center;
    background: var(--tv-primary);
    color: #fff;
    border: none;
    cursor: pointer;
    padding: 13px 28px;
}

.tv-btn-primary:hover {
    background: var(--tv-primary-container);
}

/* ============ Alerts ============ */

.tv-alert {
    padding: 12px 18px;
    border-radius: var(--tv-radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 18px;
}

.tv-alert-success {
    background: rgba(0, 170, 109, 0.12);
    color: #00704a;
    border: 1px solid rgba(0, 170, 109, 0.35);
}

.tv-alert-error {
    background: #ffdad6;
    color: var(--tv-error);
    border: 1px solid rgba(186, 26, 26, 0.35);
}

/* ============ Responsive ============ */

@media (max-width: 860px) {
    .tv-nav-toggle {
        display: flex;
    }

    .tv-header-inner nav {
        display: contents;
    }

    .tv-nav {
        display: none;
        position: absolute;
        top: 100%;
        inset-inline-start: 0;
        inset-inline-end: 0;
        flex-direction: column;
        align-items: stretch;
        background: var(--tv-surface-card);
        border-bottom: 1px solid var(--tv-outline-variant);
        box-shadow: 0 16px 30px rgba(24, 28, 28, 0.12);
        padding: 8px 5%;
        gap: 2px;
    }

    .tv-nav.open {
        display: flex;
    }

    .tv-nav a {
        padding: 12px 16px;
        border-radius: var(--tv-radius-sm);
        text-align: start;
    }

    .tv-hero {
        padding: 64px 0 80px;
    }

    .tv-contact-grid,
    .tv-form-row {
        grid-template-columns: 1fr;
    }

    .tv-footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
    }

    .tv-footer h4::after {
        inset-inline-start: 50%;
        transform: translateX(50%);
    }

    .tv-footer-brand p,
    .tv-footer-brand img {
        margin-inline: auto;
    }

    .tv-contact-item {
        justify-content: center;
    }

    .tv-social,
    .tv-footer-badges {
        justify-content: center;
    }
}
