/* ===== Transcription Accuracy Page ===== */

/* Hero */
.tp-hero {
    padding: 9rem 1.5rem 4rem;
    background:
        radial-gradient(circle at 15% 20%, rgba(102,126,234,0.22) 0%, transparent 55%),
        radial-gradient(circle at 85% 10%, rgba(52,13,130,0.45) 0%, transparent 55%),
        linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.tp-hero-inner {
    max-width: 820px;
    margin: 0 auto;
}

.tp-eyebrow {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--brand-accent);
    margin-bottom: 1rem;
}

.tp-hero h1 {
    font-size: clamp(2rem, 5.5vw, 3.4rem);
    line-height: 1.15;
    font-weight: 800;
    margin-bottom: 1.25rem;
}

.tp-hero-tagline {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--text-muted);
    max-width: 660px;
    margin: 0 auto 2rem;
}

.tp-hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.tp-hero-note {
    margin-top: 1.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    opacity: 0.85;
}

/* Sections */
.tp-section {
    padding: 4.5rem 1.5rem;
    max-width: var(--max-content);
    margin: 0 auto;
}

.tp-band {
    background: rgba(0,0,0,0.25);
    border-top: 1px solid rgba(255,255,255,0.06);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.tp-band .tp-section { max-width: var(--max-content); }

.tp-section .section-title {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
}

.tp-section .section-subtitle {
    text-align: center;
    color: var(--text-muted);
    max-width: 740px;
    margin: 0 auto 3rem;
}

/* ===== Accuracy bars (note detection) ===== */
.tp-bars {
    display: grid;
    gap: 1rem;
    max-width: 860px;
    margin: 0 auto;
}

.tp-bar {
    display: grid;
    grid-template-columns: 2rem 110px 1fr 64px;
    align-items: center;
    gap: 1rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 1rem 1.4rem;
    transition: transform 0.2s, border-color 0.2s, background 0.2s;
}

.tp-bar:hover {
    transform: translateY(-2px);
    background: rgba(255,255,255,0.06);
    border-color: rgba(255,255,255,0.18);
}

.tp-bar-icon {
    font-size: 1.25rem;
    line-height: 1;
    text-align: center;
}

.tp-bar-name {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-light);
}

.tp-bar-track {
    position: relative;
    height: 12px;
    border-radius: 999px;
    background: rgba(255,255,255,0.08);
    overflow: hidden;
}

.tp-bar-fill {
    display: block;
    height: 100%;
    width: 0;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--brand-accent) 0%, #4CAF50 100%);
    transition: width 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}

.tp-bar-value {
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-light);
    text-align: right;
}

/* ===== Headline score cards ===== */
.tp-scores {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 1.25rem;
    max-width: 860px;
    margin: 0 auto 2.5rem;
    align-items: stretch;
}

.tp-score {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    text-align: center;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 1.5rem 1rem;
    transition: transform 0.2s, border-color 0.2s, background 0.2s;
}

.tp-score:hover {
    transform: translateY(-3px);
    border-color: rgba(102,126,234,0.4);
    background: rgba(102,126,234,0.07);
}

.tp-score-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-light);
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.tp-score-label {
    font-size: 0.76rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 500;
    line-height: 1.35;
    text-wrap: balance;
}

/* ===== Metric table ===== */
.tp-table-wrap {
    max-width: 860px;
    margin: 0 auto;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    background: rgba(255,255,255,0.03);
}

.tp-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
    min-width: 520px;
}

.tp-table caption {
    caption-side: bottom;
    padding: 0.9rem 1.2rem 1.1rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: left;
    line-height: 1.6;
}

.tp-table th {
    text-align: left;
    padding: 0.9rem 1.2rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-muted);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.tp-table th.num,
.tp-table td.num {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.tp-table td {
    padding: 0.85rem 1.2rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    color: var(--text-muted);
}

.tp-table td:first-child {
    color: var(--text-light);
    font-weight: 600;
}

.tp-table td.num {
    color: var(--text-light);
    font-weight: 700;
}

.tp-table tr:last-child td { border-bottom: none; }

.tp-table tbody tr {
    transition: background 0.15s;
}

.tp-table tbody tr:hover { background: rgba(102,126,234,0.07); }

/* ===== Difficulty cards ===== */
.tp-diffs {
    display: grid;
    /* Two per row so the four levels pair up (Easy/Medium, Hard/Expert) instead of
       leaving Expert stranded alone on a second row at 3-across. */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.25rem;
    max-width: 720px;
    margin: 0 auto;
}

.tp-diff {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    padding: 1.5rem 1.4rem;
    transition: transform 0.25s, border-color 0.25s, background 0.25s;
}

.tp-diff:hover {
    transform: translateY(-3px);
    border-color: rgba(102,126,234,0.4);
    background: rgba(102,126,234,0.07);
}

.tp-diff-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.25rem;
}

.tp-diff-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #d0d0ff;
}

.tp-diff-f1 {
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--brand-accent);
}

.tp-diff-track {
    height: 10px;
    border-radius: 999px;
    background: rgba(255,255,255,0.08);
    overflow: hidden;
    margin: 1rem 0 0.7rem;
}

.tp-diff-fill {
    display: block;
    height: 100%;
    width: 0;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--brand-accent) 0%, #4CAF50 100%);
    transition: width 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}

.tp-diff-meta {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ===== Method list ===== */
.tp-method {
    max-width: 780px;
    margin: 0 auto;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 1rem;
}

.tp-method li {
    position: relative;
    padding-left: 2.1rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

.tp-method li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0.05rem;
    width: 1.4rem;
    height: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(102,126,234,0.18);
    color: var(--brand-accent);
    font-size: 0.75rem;
    font-weight: 700;
}

.tp-method strong { color: var(--text-light); font-weight: 600; }

/* ===== Plain-English explainer ===== */
.tp-explain {
    max-width: 740px;
    margin: 3rem auto 0;
    background: rgba(102,126,234,0.07);
    border: 1px solid rgba(102,126,234,0.25);
    border-radius: 14px;
    padding: 1.9rem 1.9rem 1.7rem;
}

.tp-explain h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #d0d0ff;
    margin-bottom: 1rem;
}

.tp-explain p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.75;
    margin-bottom: 0.9rem;
}

.tp-explain p:last-child { margin-bottom: 0; }

.tp-explain strong { color: var(--text-light); font-weight: 600; }

.tp-explain-note {
    padding-top: 0.9rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.88rem !important;
    opacity: 0.9;
}

/* Footnote */
.tp-footnote {
    max-width: 740px;
    margin: 2.5rem auto 0;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.7;
    opacity: 0.9;
}

.tp-footnote a { color: var(--brand-accent); }
.tp-footnote a:hover { text-decoration: underline; }

/* Inline note */
.tp-inline-note {
    text-align: center;
    margin-top: 2.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.tp-inline-note a { color: var(--brand-accent); }
.tp-inline-note a:hover { text-decoration: underline; }

/* Final CTA */
.tp-final { text-align: center; }

@media (prefers-reduced-motion: reduce) {
    .tp-bar-fill,
    .tp-diff-fill { transition: none; }
}

/* Responsive */
@media (max-width: 640px) {
    .tp-hero { padding: 7rem 1.25rem 3rem; }
    .tp-section { padding: 3rem 1.25rem; }
    .tp-bar {
        grid-template-columns: 1.5rem 84px 1fr 52px;
        gap: 0.7rem;
        padding: 0.85rem 1rem;
    }
    .tp-bar-name { font-size: 0.9rem; }
    .tp-bar-value { font-size: 1rem; }
    .tp-score-value { font-size: 1.6rem; }
    .tp-hero-buttons .btn { width: 100%; }
    .tp-table { font-size: 0.88rem; }
    .tp-table th, .tp-table td { padding: 0.7rem 0.85rem; }
    .tp-explain { padding: 1.3rem 1.2rem 1.1rem; }
}
