/* Toolversal site shell — VoiceAI-style SaaS */
:root {
    --tv-ink: #0f172a;
    --tv-muted: #64748b;
    --tv-line: #e2e8f0;
    --tv-surface: #f8fafc;
    --tv-blue: #2563eb;
    --tv-blue-deep: #1d4ed8;
    --tv-blue-soft: #eff6ff;
    --tv-blue-tint: #dbeafe;
    --tv-font: 'Plus Jakarta Sans', system-ui, sans-serif;
}

.desktop-only { display: none; }
.mobile-only { display: inline-flex; }
@media (min-width: 1024px) {
    .desktop-only { display: flex; }
    .mobile-only { display: none !important; }
}

.tv-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--tv-line);
}
.tv-header.is-scrolled {
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.05);
}
.tv-header__inner {
    max-width: 72rem;
    margin: 0 auto;
    padding: 0 1.25rem;
    height: 4.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
@media (min-width: 1024px) {
    .tv-header__inner { padding: 0 2rem; }
}

.tv-brand { display: inline-flex; align-items: center; text-decoration: none; }
.tv-brand__logo {
    height: 2.75rem;
    width: auto;
    object-fit: contain;
}
.tv-brand__logo--sm { height: 2.35rem; }
.tv-brand__logo--footer { height: 2.5rem; }

.tv-nav {
    align-items: center;
    gap: 0.15rem;
    margin-left: auto;
}
.tv-nav__link {
    padding: 0.5rem 0.85rem;
    border-radius: 0.5rem;
    color: #475569;
    font-size: 0.925rem;
    font-weight: 550;
    text-decoration: none;
    transition: color 0.15s ease, background 0.15s ease;
}
.tv-nav__link:hover,
.tv-nav__link.is-active {
    color: var(--tv-blue);
    background: var(--tv-blue-soft);
}

.tv-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    border-radius: 0.65rem;
    font-weight: 650;
    font-size: 0.9rem;
    line-height: 1;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease, color 0.15s ease, border-color 0.15s ease;
    font-family: inherit;
}
.tv-btn--solid {
    background: var(--tv-blue);
    color: #fff;
    padding: 0.7rem 1.15rem;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.25);
}
.tv-btn--solid:hover {
    background: var(--tv-blue-deep);
    transform: translateY(-1px);
}
.tv-btn--ghost {
    background: transparent;
    color: #334155;
    padding: 0.65rem 0.9rem;
}
.tv-btn--ghost:hover { background: #f1f5f9; }
.tv-btn--outline {
    background: #fff;
    color: var(--tv-blue);
    border-color: #bfdbfe;
    padding: 0.7rem 1.15rem;
}
.tv-btn--outline:hover {
    background: var(--tv-blue-soft);
    border-color: #93c5fd;
}
.tv-btn--white {
    background: #fff;
    color: var(--tv-ink);
    padding: 0.75rem 1.2rem;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}
.tv-btn--white:hover { transform: translateY(-1px); }
.tv-btn--block { width: 100%; padding: 0.85rem 1rem; }

.tv-menu-toggle {
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 0.65rem;
    border: 1px solid var(--tv-line);
    background: #fff;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
}
.tv-menu-toggle span {
    display: block;
    width: 1rem;
    height: 2px;
    border-radius: 2px;
    background: var(--tv-ink);
}

.tv-drawer { background: #fff; }
.tv-drawer__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.1rem 1.15rem 0.35rem;
}
.tv-drawer__close {
    width: 2.35rem;
    height: 2.35rem;
    border: 0;
    border-radius: 0.6rem;
    background: #f1f5f9;
    color: var(--tv-ink);
    cursor: pointer;
}
.tv-drawer__nav {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.85rem 1.15rem;
    flex: 1;
}
.tv-drawer__nav a {
    padding: 0.8rem 0.85rem;
    border-radius: 0.7rem;
    color: var(--tv-ink);
    font-weight: 600;
    text-decoration: none;
}
.tv-drawer__nav a:hover { background: var(--tv-blue-soft); color: var(--tv-blue); }
.tv-drawer__foot {
    padding: 1.15rem;
    border-top: 1px solid var(--tv-line);
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    background: #fafbfc;
}

/* Footer — light SaaS style like reference */
.tv-footer {
    background: #fff;
    color: var(--tv-muted);
    padding: 4rem 0 1.75rem;
    border-top: 1px solid var(--tv-line);
}
.tv-footer__inner {
    max-width: 72rem;
    margin: 0 auto;
    padding: 0 1.25rem;
}
@media (min-width: 1024px) {
    .tv-footer__inner { padding: 0 2rem; }
}
.tv-footer__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    padding-bottom: 2.5rem;
}
@media (min-width: 768px) {
    .tv-footer__grid {
        grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
        gap: 1.5rem;
    }
}
.tv-footer__tagline {
    margin: 0.9rem 0 0;
    max-width: 16rem;
    font-size: 0.9rem;
    line-height: 1.65;
    color: var(--tv-muted);
}
.tv-footer__heading {
    margin: 0 0 0.9rem;
    color: var(--tv-ink);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.tv-footer__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}
.tv-footer__list a {
    color: var(--tv-muted);
    text-decoration: none;
    font-size: 0.9rem;
}
.tv-footer__list a:hover { color: var(--tv-blue); }
.tv-footer__bottom {
    padding-top: 1.35rem;
    border-top: 1px solid var(--tv-line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.82rem;
}
.tv-footer__social {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.tv-footer__social a {
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 999px;
    border: 1px solid var(--tv-line);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--tv-muted);
    text-decoration: none;
}
.tv-footer__social a:hover {
    color: var(--tv-blue);
    border-color: #bfdbfe;
    background: var(--tv-blue-soft);
}

/* Mobile: stack copyright and social icons vertically */
@media (max-width: 640px) {
    .tv-footer__bottom {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1rem;
    }
    .tv-footer__social {
        justify-content: center;
    }
}

/* Legal / contact pages (home-aligned) */
.legal-hero {
    position: relative;
    overflow: hidden;
    background: #f7f8fb;
    padding: 3.25rem 0 3.5rem;
    text-align: center;
}
.legal-hero__title {
    margin: 0 auto 0.85rem;
    font-size: clamp(2rem, 4.5vw, 3.1rem);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.1;
    color: #2563eb;
}
.legal-hero__lead {
    margin: 0 auto 0.85rem;
    max-width: 40rem;
    color: #64748b;
    font-size: 1.05rem;
    line-height: 1.7;
}
.legal-hero__meta {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: #94a3b8;
    font-size: 0.88rem;
    font-weight: 600;
}
.legal-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}
@media (min-width: 1024px) {
    .legal-layout {
        grid-template-columns: 15rem minmax(0, 1fr);
        gap: 2.5rem;
        align-items: start;
    }
}
.legal-toc {
    position: sticky;
    top: 5.5rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 1.15rem;
    padding: 1.15rem 1rem;
}
.legal-toc__label {
    margin: 0 0 0.75rem;
    padding: 0 0.35rem;
    color: #94a3b8;
    font-size: 0.72rem;
    font-weight: 750;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.legal-toc nav {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}
.legal-toc a {
    display: block;
    padding: 0.45rem 0.55rem;
    border-radius: 0.5rem;
    color: #64748b;
    text-decoration: none;
    font-size: 0.86rem;
    font-weight: 550;
    border-left: 2px solid transparent;
}
.legal-toc a:hover {
    color: #2563eb;
    background: #eff6ff;
    border-left-color: #93c5fd;
}
.legal-doc {
    display: flex;
    flex-direction: column;
    gap: 2.25rem;
}
.legal-intro {
    background: linear-gradient(135deg, #eff6ff 0%, #f8fafc 100%);
    border: 1px solid #dbeafe;
    border-radius: 1.25rem;
    padding: 1.5rem 1.35rem;
}
.legal-intro h2 {
    margin: 0 0 0.75rem;
    font-size: 1.25rem;
    color: #0f172a;
    font-weight: 750;
}
.legal-intro p {
    margin: 0 0 0.75rem;
    color: #64748b;
    line-height: 1.7;
}
.legal-intro p:last-child { margin-bottom: 0; }
.legal-block { scroll-margin-top: 6rem; }
.legal-block__head {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.9rem;
    padding-bottom: 0.65rem;
    border-bottom: 1px solid #f1f5f9;
}
.legal-block__num {
    width: 2rem;
    height: 2rem;
    border-radius: 0.55rem;
    background: #dbeafe;
    color: #1d4ed8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 800;
    flex-shrink: 0;
}
.legal-block h2 {
    margin: 0;
    font-size: clamp(1.2rem, 2vw, 1.45rem);
    color: #0f172a;
    font-weight: 750;
}
.legal-block p,
.legal-block li {
    color: #64748b;
    line-height: 1.7;
    font-size: 0.98rem;
}
.legal-block p { margin: 0 0 0.85rem; }
.legal-block ul {
    margin: 0 0 0.85rem;
    padding-left: 1.2rem;
}
.legal-block li { margin-bottom: 0.4rem; }
.legal-note {
    margin: 0.85rem 0 0;
    padding: 0.9rem 1rem;
    border-radius: 0.85rem;
    background: #fffbeb;
    border-left: 3px solid #f59e0b;
    color: #92400e;
    font-size: 0.92rem;
    line-height: 1.6;
}
.legal-card {
    background: #f8fafc;
    border: 1px solid #eef2f7;
    border-radius: 1rem;
    padding: 1.1rem 1.15rem;
    margin-bottom: 0.85rem;
}
.legal-card h3 {
    margin: 0 0 0.45rem;
    font-size: 1rem;
    color: #0f172a;
    font-weight: 700;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}
@media (min-width: 960px) {
    .contact-grid {
        grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
        gap: 2.75rem;
        align-items: start;
    }
}
.contact-form {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 1.35rem;
    padding: 1.5rem 1.35rem 1.65rem;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.05);
}
@media (min-width: 768px) {
    .contact-form { padding: 1.75rem 1.75rem 1.9rem; }
}
.contact-form h2 {
    margin: 0 0 1.25rem;
    font-size: 1.35rem;
    color: #0f172a;
    font-weight: 750;
}
.contact-field { margin-bottom: 1rem; }
.contact-field label {
    display: block;
    margin-bottom: 0.4rem;
    color: #334155;
    font-size: 0.88rem;
    font-weight: 650;
}
.contact-field input,
.contact-field textarea {
    width: 100%;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    background: #f8fafc;
    padding: 0.8rem 0.95rem;
    color: #0f172a;
    font: inherit;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.contact-field input { height: 2.85rem; }
.contact-field textarea { min-height: 8rem; resize: vertical; }
.contact-field input:focus,
.contact-field textarea:focus {
    outline: none;
    border-color: #93c5fd;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
    background: #fff;
}
.contact-field__error {
    margin: 0.35rem 0 0;
    color: #dc2626;
    font-size: 0.82rem;
}
.contact-submit {
    width: 100%;
    margin-top: 0.35rem;
    border: 0;
    border-radius: 0.75rem;
    background: #2563eb;
    color: #fff;
    font: inherit;
    font-weight: 700;
    padding: 0.9rem 1.15rem;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.28);
}
.contact-submit:hover { background: #1d4ed8; }
.contact-aside h2 {
    margin: 0 0 0.85rem;
    font-size: 1.35rem;
    color: #0f172a;
    font-weight: 750;
}
.contact-aside > p {
    margin: 0 0 1.5rem;
    color: #64748b;
    line-height: 1.7;
}
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}
.contact-info__item {
    display: flex;
    gap: 0.9rem;
}
.contact-info__icon {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.8rem;
    background: #eff6ff;
    color: #2563eb;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.contact-info__item h3 {
    margin: 0 0 0.25rem;
    font-size: 1rem;
    color: #0f172a;
    font-weight: 700;
}
.contact-info__item p {
    margin: 0;
    color: #64748b;
    font-size: 0.92rem;
    line-height: 1.55;
}
.contact-info__item a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 650;
}
.contact-info__item a:hover { text-decoration: underline; }
.contact-tip {
    margin-top: 1.5rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 1.1rem;
    padding: 1.15rem 1.2rem;
}
.contact-tip h3 {
    margin: 0 0 0.55rem;
    font-size: 1rem;
    color: #0f172a;
    font-weight: 700;
}
.contact-tip ul {
    margin: 0;
    padding-left: 1.1rem;
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.6;
}
.contact-alert {
    max-width: 40rem;
    margin: 0 auto 1.25rem;
    padding: 0.9rem 1rem;
    border-radius: 0.85rem;
    font-size: 0.92rem;
    text-align: left;
}
.contact-alert--ok {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
}
.contact-alert--err {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

@media (max-width: 1023px) { .legal-toc { display: none; } }
