/* Transkrip video ke teks.
   Palet ikut DESIGN.md: biru primary, amber cuma buat kuota/upgrade, netral hangat.
   Tanpa gradient kedua, tanpa glow, tanpa kartu bersarang. */

.trk-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 45%, #1e3a8a 100%);
    color: #fff;
    padding: 40px 0 72px;
}

.trk-hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.trk-wrap {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 16px;
}

/* Elemen komponen pakai display:flex/grid, jadi [hidden] harus dipaksa. */
.trk-tool [hidden],
.trk-export [hidden],
.trk-ai [hidden],
.trk-section [hidden] {
    display: none !important;
}

@media (min-width: 640px) {
    .trk-wrap { padding: 0 24px; }
}

.trk-hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
    align-items: start;
}

@media (min-width: 900px) {
    .trk-hero-grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 460px);
        gap: 48px;
        padding-top: 24px;
    }
}

.trk-hero-copy h1 {
    font-size: clamp(30px, 5vw, 44px);
    line-height: 1.1;
    letter-spacing: -0.03em;
    font-weight: 800;
    max-width: 14ch;
}

.trk-lede {
    margin-top: 16px;
    max-width: 52ch;
    font-size: 16px;
    line-height: 1.65;
    color: #eff6ff;
}

.trk-facts {
    margin-top: 22px;
    display: grid;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #eff6ff;
}

.trk-facts li {
    display: flex;
    align-items: center;
    gap: 10px;
}

.trk-facts li::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 1px;
    background: #bfdbfe;
    flex: 0 0 auto;
}

.trk-hero-note {
    margin-top: 24px;
    font-size: 13px;
    color: #eff6ff;
}

.trk-hero-note strong { color: #fff; }

/* Tool */

.trk-tool {
    background: #fff;
    color: #111827;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    padding: 18px;
    box-shadow: 0 18px 40px -24px rgba(15, 23, 42, 0.55);
}

@media (min-width: 640px) {
    .trk-tool { padding: 22px; }
}

.trk-drop {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    padding: 28px 16px;
    border: 1.5px dashed #cbd5e1;
    border-radius: 16px;
    background: #f8fafc;
    cursor: pointer;
    transition: border-color .18s ease, background .18s ease;
}

.trk-drop:hover,
.trk-drop:focus-visible {
    border-color: #2563eb;
    background: #eff6ff;
}

.trk-drop.is-over {
    border-color: #2563eb;
    background: #eff6ff;
}

.trk-drop-icon {
    width: 34px;
    height: 34px;
    color: #2563eb;
}

.trk-drop-title {
    font-size: 15px;
    font-weight: 700;
}

.trk-drop-sub {
    font-size: 12px;
    color: #6b7280;
}

.trk-picked {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #f9fafb;
}

.trk-picked-main {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.trk-picked-icon {
    width: 26px;
    height: 26px;
    color: #2563eb;
    flex: 0 0 auto;
}

.trk-picked-name {
    font-size: 13px;
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 46vw;
}

.trk-picked-meta {
    font-size: 12px;
    color: #6b7280;
}

.trk-field {
    margin-top: 16px;
}

.trk-field label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}

.trk-field select,
.trk-ai-target select {
    width: 100%;
    min-height: 44px;
    padding: 0 12px;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    background: #fff;
    font-size: 14px;
    color: #111827;
}

.trk-help {
    margin-top: 6px;
    font-size: 12px;
    line-height: 1.5;
    color: #6b7280;
}

.trk-help a { color: #1d4ed8; font-weight: 600; }

.trk-actions {
    display: flex;
    gap: 8px;
    margin-top: 16px;
}

.trk-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 12px;
    border: 1px solid transparent;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: background .16s ease, color .16s ease, border-color .16s ease, opacity .16s ease;
}

.trk-btn:disabled {
    opacity: .5;
    cursor: not-allowed;
}

.trk-btn-primary {
    background: #2563eb;
    color: #fff;
    flex: 1;
}

.trk-btn-primary:hover:not(:disabled) { background: #1d4ed8; }

.trk-btn-ghost {
    background: #fff;
    color: #1d4ed8;
    border-color: #bfdbfe;
}

.trk-btn-ghost:hover:not(:disabled) { background: #eff6ff; }

.trk-btn-quiet {
    background: #f3f4f6;
    color: #374151;
}

.trk-btn-quiet:hover:not(:disabled) { background: #e5e7eb; }

.trk-btn-amber {
    background: #fbbf24;
    color: #451a03;
}

.trk-btn-amber:hover { background: #f59e0b; }

.trk-link {
    background: none;
    border: 0;
    padding: 4px;
    color: #1d4ed8;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.trk-alert {
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
    font-size: 13px;
    line-height: 1.5;
}

.trk-alert a { color: #991b1b; font-weight: 700; text-decoration: underline; }

.trk-alert-warn {
    background: #fffbeb;
    border-color: #fde68a;
    color: #92400e;
}

.trk-alert-warn a { color: #92400e; }

.trk-progress { margin-top: 16px; }

.trk-progress-head,
.trk-quota-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    font-size: 12px;
    font-weight: 600;
    color: #374151;
}

.trk-meter {
    margin-top: 6px;
    height: 6px;
    border-radius: 3px;
    background: #e5e7eb;
    overflow: hidden;
}

.trk-meter span {
    display: block;
    height: 100%;
    background: #2563eb;
    transition: width .25s ease;
}

.trk-quota { margin-top: 18px; padding-top: 16px; border-top: 1px solid #e5e7eb; }

.trk-quota .trk-meter span { background: #f59e0b; }

/* Sections */

.trk-section { padding: 56px 0; }

@media (min-width: 900px) {
    .trk-section { padding: 72px 0; }
}

.trk-editor-section { background: #f9fafb; border-bottom: 1px solid #e5e7eb; }

.trk-editor-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 20px;
}

.trk-eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #1d4ed8;
}

.trk-title-input {
    display: block;
    width: min(560px, 100%);
    margin-top: 4px;
    padding: 2px 0;
    border: 0;
    border-bottom: 1px solid transparent;
    background: transparent;
    font-size: clamp(20px, 3vw, 26px);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #111827;
}

.trk-title-input:hover { border-bottom-color: #d1d5db; }
.trk-title-input:focus { outline: none; border-bottom-color: #2563eb; }

.trk-editor-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.trk-player { margin-bottom: 16px; }

.trk-player video,
.trk-player audio {
    width: 100%;
    max-height: 340px;
    border-radius: 16px;
    background: #0f172a;
}

.trk-player-note {
    padding: 18px;
    border: 1px dashed #d1d5db;
    border-radius: 14px;
    background: #f9fafb;
    font-size: 13px;
    line-height: 1.6;
    color: #4b5563;
}

.trk-export {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #fff;
}

.trk-export-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #6b7280;
    margin-right: 4px;
}

.trk-chip {
    min-height: 44px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid #d1d5db;
    background: #fff;
    color: #111827;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.trk-chip:hover { border-color: #2563eb; color: #1d4ed8; }

.trk-save-note { font-size: 12px; color: #047857; }

.trk-segments {
    margin-top: 16px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 8px;
}

.trk-seg {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 10px;
    padding: 10px 8px;
    border-bottom: 1px solid #f3f4f6;
}

.trk-seg:last-child { border-bottom: 0; }

.trk-seg-time {
    align-self: start;
    min-height: 44px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #f9fafb;
    color: #4b5563;
    font-size: 11px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    cursor: pointer;
}

.trk-seg-time:hover:not(:disabled) { border-color: #2563eb; color: #1d4ed8; }
.trk-seg-time:disabled { cursor: default; opacity: .65; }

.trk-seg-text {
    width: 100%;
    min-height: 44px;
    padding: 10px 8px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    color: #111827;
    font-size: 14px;
    line-height: 1.6;
    resize: none;
    font-family: inherit;
}

@media (max-width: 640px) {
    .trk-seg {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .trk-seg-time {
        justify-self: start;
        min-width: 92px;
    }
}

.trk-seg-text:hover { border-color: #e5e7eb; }
.trk-seg-text:focus { outline: none; border-color: #93c5fd; background: #f8fafc; }

.trk-ai {
    margin-top: 24px;
    padding: 18px;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    background: #fff;
}

.trk-ai-head h2 { font-size: 17px; font-weight: 800; }
.trk-ai-head p { margin-top: 4px; font-size: 13px; color: #4b5563; }

.trk-ai-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 8px;
    margin-top: 14px;
}

.trk-ai-target { display: grid; gap: 4px; font-size: 12px; font-weight: 600; color: #374151; }
.trk-ai-target select { width: auto; min-width: 150px; }

.trk-ai-out {
    margin-top: 14px;
    padding: 14px;
    border-radius: 12px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    font-size: 14px;
    line-height: 1.65;
    white-space: pre-wrap;
}

.trk-history-section { background: #fff; }

.trk-section-head h2 {
    font-size: clamp(22px, 3vw, 28px);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.trk-section-head p {
    margin-top: 6px;
    max-width: 60ch;
    font-size: 14px;
    line-height: 1.6;
    color: #4b5563;
}

.trk-history-list {
    margin-top: 20px;
    display: grid;
    gap: 10px;
}

.trk-history-item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #fff;
}

.trk-history-item:hover { border-color: #bfdbfe; }

.trk-history-main { min-width: 0; }

.trk-history-title {
    font-size: 14px;
    font-weight: 700;
    color: #111827;
    text-align: left;
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
}

.trk-history-title:hover { color: #1d4ed8; }

.trk-history-meta {
    margin-top: 3px;
    font-size: 12px;
    color: #6b7280;
}

.trk-history-actions { display: flex; gap: 6px; }

.trk-badge {
    display: inline-block;
    margin-left: 6px;
    padding: 2px 8px;
    border-radius: 999px;
    background: #fffbeb;
    color: #92400e;
    font-size: 10px;
    font-weight: 700;
    vertical-align: middle;
}

.trk-empty {
    margin-top: 20px;
    padding: 24px;
    border: 1px dashed #d1d5db;
    border-radius: 14px;
    text-align: center;
    font-size: 14px;
    color: #6b7280;
}

.trk-how-section { background: #fbfaf6; }

.trk-how-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

@media (min-width: 900px) {
    .trk-how-grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 56px; }
}

.trk-how-grid h2 {
    margin-top: 4px;
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.trk-steps {
    margin-top: 22px;
    display: grid;
    gap: 18px;
}

.trk-steps li {
    display: grid;
    grid-template-columns: 40px 1fr;
    gap: 14px;
}

.trk-steps li > span {
    font-size: 13px;
    font-weight: 800;
    color: #1d4ed8;
    font-variant-numeric: tabular-nums;
    padding-top: 2px;
}

.trk-steps h3 { font-size: 15px; font-weight: 700; }
.trk-steps p { margin-top: 3px; font-size: 14px; line-height: 1.6; color: #4b5563; }

.trk-privacy {
    align-self: start;
    padding: 22px;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    background: #fff;
}

.trk-privacy h2 { font-size: 17px; font-weight: 800; }

.trk-privacy-lead {
    margin-top: 6px;
    font-size: 13px;
    line-height: 1.6;
    color: #4b5563;
}

.trk-privacy ul {
    margin-top: 14px;
    display: grid;
    gap: 10px;
    font-size: 13px;
    line-height: 1.6;
    color: #374151;
}

.trk-privacy ul li { padding-left: 14px; border-left: 2px solid #dbeafe; }
.trk-privacy strong { color: #111827; }

.trk-faq-section { background: #fff; }

.trk-faq {
    margin-top: 20px;
    max-width: 820px;
    border-top: 1px solid #e5e7eb;
}

.trk-faq details { border-bottom: 1px solid #e5e7eb; }

.trk-faq summary {
    padding: 16px 4px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
}

.trk-faq summary::-webkit-details-marker { display: none; }

.trk-faq summary::after {
    content: "+";
    float: right;
    color: #2563eb;
    font-weight: 800;
}

.trk-faq details[open] summary::after { content: "−"; }

.trk-faq p {
    padding: 0 4px 16px;
    max-width: 70ch;
    font-size: 14px;
    line-height: 1.7;
    color: #4b5563;
}

.trk-cta {
    padding: 40px 0;
    background: #1e3a8a;
    color: #fff;
}

.trk-cta-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.trk-cta h2 { font-size: clamp(20px, 3vw, 26px); font-weight: 800; letter-spacing: -0.02em; }
.trk-cta p { margin-top: 4px; font-size: 14px; line-height: 1.6; color: #bfdbfe; max-width: 62ch; }

@media (prefers-reduced-motion: reduce) {
    .trk-drop,
    .trk-btn,
    .trk-meter span { transition: none; }
}
