﻿:root {
    --bg: #ffffff;
    --bg-soft: #f7f8fb;
    --text: #111827;
    --muted: #4b5563;
    --line: #e5e7eb;
    --accent: #111827;
    --accent-soft: #1f2937;
    --white: #ffffff;
    --shadow: 0 10px 30px rgba(17, 24, 39, 0.08);
    --radius: 18px;
    --max: 1120px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background: var(--bg);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
}

.t2w-container {
    width: min(var(--max), 100%);
    margin: 0 auto;
}

.narrow {
    max-width: 760px;
}

.section {
    padding: 4.5rem 0;
    margin: 0;
}

.section-soft {
    background: var(--bg-soft);
}

.hero {
    padding: 5.5rem 0 4.5rem;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.25fr 0.9fr;
    gap: 2rem;
    align-items: center;
}

.eyebrow {
    margin: 0 0 0.75rem;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

h1,
h2,
h3 {
    margin-top: 0;
    line-height: 1.15;
    color: var(--text);
}

h1 {
    font-size: clamp(2.3rem, 4vw, 4.25rem);
    margin-bottom: 1rem;
}

h2 {
    font-size: clamp(1.7rem, 3vw, 2.5rem);
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.15rem;
    margin-bottom: 0.6rem;
}

p {
    margin: 0 0 1rem;
    color: var(--muted);
}

.lead {
    font-size: 1.12rem;
    max-width: 48rem;
}

.hero-actions {
    display: flex;
    gap: 0.85rem;
    flex-wrap: wrap;
    margin: 1.5rem 0 1rem;
}

.btn {
    display: inline-block;
    padding: 0.9rem 1.2rem;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    transition: transform 0.15s ease, opacity 0.15s ease, background 0.15s ease;
    border: 1px solid transparent;
    cursor: pointer;
}

.btn-sm {
    padding: 0.55rem 1rem;
    font-size: 0.92rem;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: var(--accent);
    color: var(--white);
}

    .btn-primary:hover {
        background: var(--accent-soft);
    }

.btn-secondary {
    background: var(--white);
    color: var(--text);
    border-color: var(--line);
}

.microcopy {
    font-size: 0.95rem;
    margin-top: 0.5rem;
}

.card,
.feature-card,
.example-card,
.use-case-card,
.cta-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.hero-card .card {
    padding: 1.5rem;
}

.card-highlight {
    background: #111827;
    border-color: #111827;
}

.card-label {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.9rem;
}

.card-big {
    font-size: 1.35rem;
    line-height: 1.4;
    color: #ffffff;
    margin: 0;
}

.section-heading {
    margin-bottom: 1.75rem;
    max-width: 760px;
}

.feature-grid,
.use-case-grid,
.example-grid {
    display: grid;
    gap: 1rem;
}

.feature-grid {
    grid-template-columns: repeat(3, 1fr);
}

.use-case-grid {
    grid-template-columns: repeat(4, 1fr);
}

.example-grid {
    grid-template-columns: repeat(3, 1fr);
}

.feature-card,
.use-case-card,
.example-card {
    padding: 1.35rem;
}

.example-raw {
    background: #fffdf6;
}

.example-label {
    display: inline-block;
    margin-bottom: 0.8rem;
    padding: 0.3rem 0.55rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    background: #f3f4f6;
    color: var(--text);
}

.cta-section {
    padding-bottom: 5.5rem;
}

.cta-card {
    padding: 2rem;
    text-align: center;
}

.waitlist-form {
    margin-top: 1.5rem;
}

.form-row {
    display: flex;
    gap: 0.8rem;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

    .form-row input[type="email"] {
        width: min(420px, 100%);
        padding: 0.95rem 1rem;
        border: 1px solid var(--line);
        border-radius: 999px;
        font-size: 1rem;
        outline: none;
    }

        .form-row input[type="email"]:focus {
            border-color: #9ca3af;
        }

.form-note {
    margin-top: 0.9rem;
    font-size: 0.92rem;
}

/* T2W live area */
.t2w-live-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: start;
}

.t2w-live-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.t2w-label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
}

.t2w-textarea,
.t2w-select {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 12px 14px;
    font: inherit;
    background: #fff;
}

.t2w-textarea {
    resize: vertical;
    line-height: 1.6;
    min-height: 180px;
}

.t2w-controls {
    margin-top: 16px;
}

.t2w-tone-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.t2w-tone-wrap .t2w-label {
    margin-bottom: 0;
    white-space: nowrap;
}

.t2w-tone-wrap .t2w-select {
    flex: 1;
}

.t2w-button-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.t2w-help {
    margin-top: 12px;
    color: #6b7280;
    font-size: 0.95rem;
}

.t2w-status {
    min-height: 24px;
    margin-top: 14px;
    font-size: 0.95rem;
}

    .t2w-status.is-busy {
        color: #6b7280;
    }

    .t2w-status.is-success {
        color: #166534;
    }

    .t2w-status.is-error {
        color: #b91c1c;
    }

.t2w-meta {
    margin-top: 10px;
    color: #6b7280;
    font-size: 0.9rem;
}

/* RRTB */
.t2w-output {
    resize: vertical;
    cursor: text;
    background: #fcfcfd;
    transition: background-color 300ms ease, border-color 300ms ease, box-shadow 300ms ease, opacity 300ms ease, transform 300ms ease;
}

.t2w-output[readonly] {
    background: #fcfcfd;
}

.t2w-output.is-busy {
    opacity: 0.72;
    box-shadow: none;
    transform: scale(0.998);
}

.t2w-output.is-updated {
    background: #eafaf0;
    border-color: #22c55e;
    box-shadow: 0 0 0 5px rgba(34, 197, 94, 0.28), 0 10px 28px rgba(34, 197, 94, 0.18);
    transform: scale(1.012);
}

.t2w-output:focus,
.t2w-output:focus-visible {
    outline: none;
    border-color: #22c55e;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.22), 0 8px 24px rgba(34, 197, 94, 0.12);
}

/* Response actions row */
.t2w-response-actions {
    margin-top: 0.85rem;
    margin-right: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
    width: min(100%, 520px);
}

.t2w-response-actions-left,
.t2w-response-actions-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.t2w-feedback-inline-label {
    font-size: 0.95rem;
    color: #5f6b7a;
}

.t2w-feedback-btn {
    min-width: 44px;
    padding: 0.45rem 0.65rem;
    font-size: 1rem;
}

    .t2w-feedback-btn.is-selected {
        border-color: #8fd19e;
        background: #f3fbf5;
        box-shadow: 0 0 0 3px rgba(143, 209, 158, 0.16);
    }

/* FUIB */
.t2w-fuib-wrap {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.t2w-fuib {
    margin-top: 0.35rem;
}

.t2w-result-cue {
    font-size: 0.85rem;
    color: #16a34a;
    opacity: 0;
    transform: translateY(4px);
    transition: all 200ms ease;
}

    .t2w-result-cue.is-visible {
        opacity: 1;
        transform: translateY(0);
    }

/* Responsive */
@media (max-width: 920px) {
    .hero-grid,
    .feature-grid,
    .use-case-grid,
    .example-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        padding-top: 4.5rem;
    }

    .hero-card {
        order: -1;
    }

    .t2w-live-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .t2w-live-card {
        padding: 12px;
    }

    .t2w-response-actions {
        width: 100%;
        gap: 0.5rem;
    }

    .t2w-response-actions-right {
        gap: 0.4rem;
    }

    .t2w-feedback-inline-label {
        display: none;
    }

    .t2w-feedback-btn {
        min-width: 40px;
        padding: 0.4rem 0.55rem;
    }

    #try-t2w .t2w-container {
        width: 100%;
        max-width: none;
        margin: 0;
        padding-left: 6px;
        padding-right: 6px;
    }
}

@media (max-width: 640px) {
    .section {
        padding: 3.75rem 0;
        margin: 0;
    }

    .cta-card {
        padding: 1.4rem;
    }

    .t2w-live-card {
        padding: 12px;
        border-radius: 16px;
    }

    .t2w-textarea,
    .t2w-select {
        padding: 11px 12px;
    }

    .t2w-button-row {
        gap: 8px;
    }
}
