/*
Theme Name: Type Voice
Theme URI: https://voice.message-r.com
Author: mcarena
Description: Custom landing page theme for Type Voice bot
Version: 1.0
Text Domain: tvoice
*/

/* ── Reset ── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    overflow-x: hidden;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #fff;
    color: #111;
}

/* ── Site header: transparent, fixed, overlays hero ── */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    padding: 1.25rem 2rem;
    background: transparent;
    transition: background 0.3s ease, backdrop-filter 0.3s ease;
}

.site-header.is-scrolled {
    background: rgba(13, 2, 33, 0.82);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
}

.site-header__logo {
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.02em;
}

.site-header__nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.site-header__nav a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.site-header__nav a:hover {
    color: #fff;
}

/* Language switcher */
.site-header__lang ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    overflow: hidden;
}

.site-header__lang li {
    display: flex;
}

.site-header__lang li + li {
    border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.site-header__lang a {
    display: block;
    padding: 0.3rem 0.65rem;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: color 0.2s, background 0.2s;
}

.site-header__lang a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.site-header__lang .current-lang a {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
}

/* ── Front page: no gaps, full bleed ── */
.home #main {
    padding: 0;
    margin: 0;
}

.home .wp-block-cover.alignfull {
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
}

/* ── Hero typography ── */
.wp-block-cover h1.wp-block-heading {
    font-size: clamp(2.2rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.15;
}

h2.wp-block-heading, h3.wp-block-heading {
    margin: 0.5em 0 0.25em 0;
}

ul.wp-block-list {
    margin: 0.5em 0 0.25em 0;

    li {
        margin-left: 1em;
        margin-bottom: 0.25em;
    }
}

.wp-block-table  {
    margin: 0.5em 0;
}


.hero-tagline {
    font-size: 0.85rem !important;
    letter-spacing: 0.22em !important;
    text-transform: uppercase;
    color: rgba(196, 181, 253, 0.65) !important;
    margin-top: 1rem !important;
}

/* ── Hero gradient ── */
.wp-block-cover__background {
    background: linear-gradient(
            135deg,
            #0d0221 0%,
            #1e1b4b 25%,
            #312e81 55%,
            #5b21b6 80%,
            #4c1d95 100%
    ) !important;
}

.wp-block-cover::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(
            ellipse 70% 60% at 50% 50%,
            rgba(139, 92, 246, 0.28) 0%,
            transparent 70%
    );
    z-index: 0;
    pointer-events: none;
}

.wp-block-cover__inner-container {
    position: relative;
    z-index: 1;
}

/* ── CTA button ── */
.wp-block-cover .wp-block-button__link {
    font-size: 1rem !important;
    padding: 0.85rem 2rem !important;
    border-radius: 8px !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.22) !important;
    backdrop-filter: blur(8px);
    color: #fff !important;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.wp-block-cover .wp-block-button__link:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
}

/* ── Regular page layout (Privacy, Terms, Contact) ── */
.page-content {
    padding: 9rem 2rem 5rem;
    max-width: 820px;
    margin: 0 auto;
}

.page-content h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: #111;
}

/* ── How It Works section ── */
.hiw-section {
    background: #0d0221;
    padding: 7rem 2rem;
    position: relative;
}

.hiw-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(139, 92, 246, 0.55) 50%, transparent 100%);
}

.hiw-container {
    max-width: 1100px;
    margin: 0 auto;
}

.hiw-label {
    display: block;
    font-size: 0.72rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(139, 92, 246, 0.65);
    margin-bottom: 1rem;
    font-weight: 600;
}

.hiw-title {
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    font-weight: 700;
    color: #fff;
    margin-bottom: 4.5rem;
    line-height: 1.2;
}

.hiw-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    position: relative;
}

.hiw-step__icon {
    width: 72px;
    height: 72px;
    margin-bottom: 2rem;
    position: relative;
}

.hiw-step__icon::before {
    content: "";
    position: absolute;
    inset: -20px;
    background: radial-gradient(circle, rgba(91, 33, 182, 0.22) 0%, transparent 68%);
    border-radius: 50%;
    pointer-events: none;
}

.hiw-step__icon svg {
    width: 72px;
    height: 72px;
    position: relative;
    z-index: 1;
}

.hiw-step {
    padding: 0 2.5rem 0 0;
    position: relative;
}

.hiw-step + .hiw-step {
    padding-left: 2.5rem;
    border-left: 1px solid rgba(139, 92, 246, 0.2);
}

.hiw-step__number {
    display: block;
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 1.75rem;
    background: linear-gradient(135deg, rgba(91, 33, 182, 0.6) 0%, rgba(139, 92, 246, 1) 60%, rgba(196, 181, 253, 0.85) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
}

.hiw-step__heading {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.65rem;
    line-height: 1.35;
}

.hiw-step__desc {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.65;
}

@media (max-width: 768px) {
    .hiw-section {
        padding: 5rem 1.5rem;
    }

    .hiw-steps {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hiw-step,
    .hiw-step + .hiw-step {
        padding: 0;
        border-left: none;
        padding-left: 0;
        border-top: 1px solid rgba(139, 92, 246, 0.2);
        padding-top: 3rem;
    }

    .hiw-step:first-child {
        border-top: none;
        padding-top: 0;
    }

    .hiw-title {
        margin-bottom: 3rem;
    }
}

/* ── Pricing section ── */
.pricing-section {
    background: #0d0221;
    padding: 7rem 2rem;
    position: relative;
}

.pricing-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(139, 92, 246, 0.55) 50%, transparent 100%);
}

.pricing-container {
    max-width: 1100px;
    margin: 0 auto;
}

.pricing-label {
    display: block;
    font-size: 0.72rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(139, 92, 246, 0.65);
    margin-bottom: 1rem;
    font-weight: 600;
}

.pricing-title {
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    font-weight: 700;
    color: #fff;
    margin-bottom: 3.5rem;
    line-height: 1.2;
}

.pricing-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    align-items: start;
}

/* ── Base card ── */
.pricing-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 2rem 1.75rem 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
    transition: border-color 0.25s ease;
}

.pricing-card:hover {
    border-color: rgba(139, 92, 246, 0.3);
}

/* ── Featured card ── */
.pricing-card--featured {
    background: rgba(91, 33, 182, 0.12);
    border-color: rgba(139, 92, 246, 0.5);
    box-shadow: 0 0 40px rgba(91, 33, 182, 0.25);
    padding-top: 2.75rem;
}

.pricing-card--featured:hover {
    border-color: rgba(139, 92, 246, 0.75);
}

/* Recommended badge */
.pricing-card__badge {
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(90deg, #5b21b6, #7c3aed);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.3rem 0.9rem;
    border-radius: 0 0 8px 8px;
    white-space: nowrap;
}

/* Plan name */
.pricing-card__name {
    font-size: 1rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.65);
    letter-spacing: 0.04em;
    margin-bottom: 1.25rem;
    text-transform: uppercase;
    font-size: 0.82rem;
}

/* Price */
.pricing-card__price {
    display: flex;
    align-items: baseline;
    gap: 0.2rem;
    margin-bottom: 0.4rem;
}

.pricing-card__amount {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(135deg, #a78bfa 0%, #ddd6fe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pricing-card__period {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 400;
}

/* Stars */
.pricing-card__stars {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.3);
    margin-bottom: 1.75rem;
}

/* Features list */
.pricing-card__features {
    list-style: none;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    flex: 1;
}

.pricing-card__features li {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.6);
    padding-left: 1.35rem;
    position: relative;
    line-height: 1.5;
}

.pricing-card__features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: rgba(139, 92, 246, 0.8);
    font-weight: 700;
    font-size: 0.8rem;
    top: 0.05em;
}

/* CTA button */
.pricing-card__cta {
    display: block;
    text-align: center;
    padding: 0.8rem 1.25rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.75);
}

.pricing-card--featured .pricing-card__cta {
    background: linear-gradient(135deg, #5b21b6, #7c3aed);
    border-color: transparent;
    color: #fff;
}

.pricing-card__cta:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.25);
    color: #fff;
}

.pricing-card--featured .pricing-card__cta:hover {
    background: linear-gradient(135deg, #6d28d9, #8b5cf6);
    border-color: transparent;
    color: #fff;
}

/* Note below cards */
.pricing-note {
    text-align: center;
    margin-top: 2rem;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.25);
    letter-spacing: 0.03em;
}

@media (max-width: 768px) {
    .pricing-section {
        padding: 5rem 1.5rem;
    }

    .pricing-cards {
        grid-template-columns: 1fr;
        max-width: 380px;
        margin: 0 auto;
    }

    .pricing-card--featured {
        order: -1;
    }
}

/* ── Footer ── */
.site-footer {
    padding: 2rem;
    background: #0d0221;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.85rem;
}

.site-footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.site-footer a {
    color: rgba(255, 255, 255, 0.45);
    text-decoration: none;
    margin-left: 1.5rem;
    transition: color 0.2s;
}

.site-footer a:hover {
    color: #fff;
}

/* ── Contact Form 7 ── */
.wpcf7-form p {
    margin-bottom: 1.25rem;
}

.wpcf7-form label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: #555;
    margin-bottom: 0.4rem;
}

.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    font-family: inherit;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fafafa;
    color: #111;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}

.wpcf7-form input[type="text"]:focus,
.wpcf7-form input[type="email"]:focus,
.wpcf7-form textarea:focus {
    border-color: #7c3aed;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.12);
    background: #fff;
}

.wpcf7-form textarea {
    min-height: 140px;
    resize: vertical;
}

.wpcf7-form input[type="submit"] {
    display: inline-block;
    padding: 0.8rem 2rem;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #5b21b6, #7c3aed);
    color: #fff;
    transition: opacity 0.2s;
}

.wpcf7-form input[type="submit"]:hover {
    opacity: 0.88;
}

.wpcf7-not-valid-tip {
    font-size: 0.8rem;
    color: #dc2626;
    margin-top: 0.25rem;
    display: block;
}

.wpcf7-response-output {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.88rem;
}

.wpcf7-mail-sent-ok {
    background: #f0fdf4;
    border: 1px solid #86efac;
    color: #166534;
}

.wpcf7-validation-errors,
.wpcf7-mail-sent-ng {
    background: #fef2f2;
    border: 1px solid #fca5a5;
    color: #991b1b;
}
