/*
 * EasyVerbatim redesign (Nov 2026)
 * Loaded after style.css on every page. Redefines the shared tokens so older
 * components pick up the new palette, then styles the header, footer, landing
 * page and the app screens.
 *
 * One recording, two languages: accent A is always the speaker's language,
 * accent B the interpreter's. Keep that pairing wherever a language is shown.
 */

/* ========== Tokens ========== */
:root {
    --ink: #111318;
    --text-body: #4A5160;
    --text-muted: #5B6271;
    --text-nav: #3D4452;
    --surface: #F4F5F7;
    --surface-2: #F7F8FA;
    --line: #E3E5EA;
    --line-strong: #CDD1D9;

    --accent-a: #2346D8;
    --accent-a-dark: #1A35A8;
    --accent-a-tint: rgba(35, 70, 216, 0.08);
    --accent-b: #C2410C;
    --accent-b-dark: #9A3412;
    --accent-b-tint: rgba(194, 65, 12, 0.07);

    --ok: #1B7F4B;
    --ok-ink: #155E39;
    --ok-bg: #E4F4EB;
    --warn-ink: #92400E;
    --warn-bg: #FEF3C7;
    --danger: #B42318;
    --danger-bg: #FDECEA;

    --font-head: 'Space Grotesk', Inter, system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

    /* Older tokens from style.css, mapped onto the new system */
    --color-primary: var(--accent-a);
    --color-primary-dark: var(--accent-a-dark);
    --color-primary-light: var(--accent-a);
    --color-primary-rgb: 35, 70, 216;
    --color-secondary: var(--accent-b);
    --color-success: var(--ok);
    --color-warning: #B45309;
    --color-error: var(--danger);
    --color-bg: #FFFFFF;
    --color-bg-elevated: var(--surface-2);
    --color-bg-card: #FFFFFF;
    --color-text: var(--ink);
    --color-text-muted: var(--text-body);
    --color-border: var(--line);
    --gradient-primary: linear-gradient(var(--accent-a), var(--accent-a));
    --gradient-hero: #FFFFFF;
    --shadow-glow: 0 0 0 transparent;
    --shadow-md: 0 1px 2px rgba(17, 19, 24, 0.06);
    --shadow-lg: 0 1px 2px rgba(17, 19, 24, 0.05), 0 12px 32px rgba(17, 19, 24, 0.08);
    --font-family: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
    --radius-md: 10px;
    --radius-lg: 16px;
}

/* ========== Base ========== */
body {
    color: var(--ink);
    background: #FFFFFF;
    line-height: 1.55;
}

h1, h2, h3,
.lp-display {
    font-family: var(--font-head);
    letter-spacing: -0.02em;
}

h4, h5, h6 {
    font-family: var(--font-family);
}

a {
    color: var(--accent-a);
}

a:hover {
    color: var(--accent-a-dark);
}

a[href],
button:not(:disabled),
summary,
select,
label[for],
input[type="checkbox"],
input[type="radio"],
[role="button"] {
    cursor: pointer;
}

button:disabled,
.btn:disabled,
.btn[aria-disabled="true"] {
    cursor: not-allowed;
}

:focus-visible {
    outline: 2px solid var(--accent-a);
    outline-offset: 2px;
}

.form-input:focus-visible,
.form-select:focus-visible,
.speaker-select:focus-visible,
.speaker-name-input:focus-visible,
.auth-form input:focus-visible,
.auth-form select:focus-visible,
.upload-card select:focus-visible,
.upload-card input:focus-visible {
    outline: 2px solid var(--accent-a);
    outline-offset: 1px;
    border-color: var(--accent-a);
}

.mono {
    font-family: var(--font-mono);
}

.icon {
    width: 18px;
    height: 18px;
    flex: none;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.icon-sm {
    width: 16px;
    height: 16px;
}

.lang-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex: none;
    background: var(--accent-a);
}

.lang-dot-b {
    background: var(--accent-b);
}

/* ========== Header ========== */
.navbar {
    background: #FFFFFF;
    backdrop-filter: none;
    border-bottom: 1px solid var(--line);
}

.navbar-container {
    height: auto;
    min-height: 68px;
    padding-top: 8px;
    padding-bottom: 8px;
    gap: 12px 24px;
}

.navbar-brand {
    gap: 10px;
    min-height: 44px;
    color: var(--ink);
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 1.25rem;
    letter-spacing: -0.01em;
}

.navbar-brand:hover {
    color: var(--ink);
}

.brand-logo {
    height: 36px;
    width: auto;
}

.navbar-menu {
    gap: 4px 22px;
    font-size: 15px;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: var(--text-nav);
    font-weight: 400;
}

.nav-link:hover {
    color: var(--ink);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.nav-link-strong {
    color: var(--ink);
    font-weight: 500;
}

.navbar-menu .btn.nav-link,
.navbar-mobile-links .btn.nav-link {
    padding: 0 18px;
    font-weight: 500;
}

.navbar-menu .btn.nav-link:hover,
.navbar-mobile-links .btn.nav-link:hover {
    text-decoration: none;
}

.nav-link-compact {
    min-height: 44px;
    border: 1px solid var(--line-strong);
    border-radius: 10px;
    background: #FFFFFF;
    box-shadow: none;
}

.nav-link-compact:hover {
    border-color: var(--ink);
    background: #FFFFFF;
    box-shadow: none;
    transform: none;
    text-decoration: none;
}

.nav-link-compact-primary,
.nav-link.nav-link-compact-primary {
    background: var(--ink);
    border-color: var(--ink);
    color: #FFFFFF;
    box-shadow: none;
}

.nav-link-compact-primary:hover,
.nav-link.nav-link-compact-primary:hover {
    background: #2A2E37;
    color: #FFFFFF;
    box-shadow: none;
}

.navbar-toggle {
    width: 44px;
    height: 44px;
    background: #FFFFFF;
    border: 1px solid var(--line-strong);
    box-shadow: none;
}

.navbar-toggle:hover {
    transform: none;
    box-shadow: none;
    border-color: var(--ink);
}

.navbar-toggle-bar {
    background: var(--ink);
}

.navbar-mobile-menu[open] .navbar-toggle {
    background: var(--ink);
    border-color: var(--ink);
    box-shadow: none;
}

.navbar-mobile-panel {
    background: #FFFFFF;
    backdrop-filter: none;
    box-shadow: var(--shadow-lg);
}

/* ========== Buttons ========== */
.btn {
    min-height: 44px;
    padding: 0 20px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 15px;
    line-height: 1.2;
    text-decoration: none;
    box-shadow: none;
    transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease;
}

.btn-lg {
    min-height: 50px;
    padding: 0 24px;
    font-size: 16px;
}

.btn-sm {
    min-height: 44px;
    padding: 0 14px;
    font-size: 14px;
    font-weight: 500;
}

.btn-primary {
    background: var(--accent-a);
    color: #FFFFFF;
    box-shadow: none;
}

.btn-primary:hover {
    background: var(--accent-a-dark);
    color: #FFFFFF;
    transform: none;
    box-shadow: none;
}

.btn-primary:active {
    background: #142A86;
}

.btn-dark {
    background: var(--ink);
    color: #FFFFFF;
}

.btn-dark:hover {
    background: #2A2E37;
    color: #FFFFFF;
}

.btn-outline,
.btn-outline.btn-sm {
    background: #FFFFFF;
    border: 1px solid var(--line-strong);
    color: var(--ink);
}

.btn-outline:hover,
.btn-outline.btn-sm:hover {
    border-color: var(--ink);
    color: var(--ink);
}

.btn-outline:active {
    background: var(--surface);
}

.btn:disabled,
.btn[aria-disabled="true"] {
    opacity: 0.55;
}

.btn-lang-a {
    background: #FFFFFF;
    border: 1.5px solid var(--accent-a);
    color: var(--accent-a);
}

.btn-lang-a:hover {
    background: var(--accent-a-tint);
    color: var(--accent-a-dark);
}

.btn-lang-b {
    background: #FFFFFF;
    border: 1.5px solid var(--accent-b);
    color: var(--accent-b);
}

.btn-lang-b:hover {
    background: var(--accent-b-tint);
    color: var(--accent-b-dark);
}

.btn-delete {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 44px;
    padding: 0 14px;
    border-radius: 10px;
    border: 1px solid #E8B4AE;
    background: #FFFFFF;
    color: var(--danger);
    font: 500 14px var(--font-family);
}

.btn-delete:hover {
    background: var(--danger-bg);
    color: var(--danger);
}

.btn-danger {
    background: var(--danger);
}

.btn-danger:hover {
    background: #8F1C13;
}

.btn-google {
    border: 1px solid var(--line-strong);
}

.btn-google:hover {
    border-color: var(--ink);
}

/* ========== Footer ========== */
.footer {
    background: #FFFFFF;
    border-top: 1px solid var(--line);
    padding: 20px 0;
    text-align: left;
    color: var(--text-body);
    font-size: 14px;
}

.footer-content {
    gap: 4px 24px;
}

.footer-links {
    flex-wrap: wrap;
    gap: 0 20px;
}

.footer-links a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: var(--text-body);
}

.footer-links a:hover {
    color: var(--ink);
    text-decoration: underline;
    text-underline-offset: 4px;
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }
}

/* ========== Alerts and badges ========== */
.alert {
    margin-top: 16px;
    border-radius: 10px;
}

.alert-success {
    background: var(--ok-bg);
    border: 1px solid #B7DFC6;
    color: var(--ok-ink);
}

.alert-error {
    background: var(--danger-bg);
    border: 1px solid #F1C0BA;
    color: var(--danger);
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 12px;
    font-weight: 500;
    font-size: 13px;
}

.status-pending {
    background: var(--warn-bg);
    color: var(--warn-ink);
}

.status-processing {
    background: var(--accent-a-tint);
    color: var(--accent-a-dark);
}

.status-completed {
    background: var(--ok-bg);
    color: var(--ok-ink);
}

.status-failed {
    background: var(--danger-bg);
    color: var(--danger);
}

/* =====================================================================
   Landing page
   ===================================================================== */
.lp {
    --lp-gap: clamp(64px, 8vw, 88px);
}

.lp-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.lp-section {
    padding: var(--lp-gap) 0;
}

.lp-section-alt {
    background: var(--surface);
}

.lp-h2 {
    margin: 0;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: clamp(1.9rem, 3.2vw, 2.75rem);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.lp-lede {
    margin: 0;
    font-size: 18px;
    color: var(--text-body);
}

.lp-head {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 720px;
    margin-bottom: 40px;
}

.lp-check-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.lp-check-list li {
    display: flex;
    align-items: center;
    gap: 8px;
}

.lp-check-list .icon {
    color: var(--ok);
    stroke-width: 2.2;
}

/* ---------- Hero ---------- */
.lp-hero {
    padding: clamp(48px, 7vw, 80px) 0 clamp(56px, 7vw, 72px);
}

.lp-hero-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 56px;
}

.lp-hero-copy {
    flex: 1 1 440px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.lp-pill {
    display: inline-flex;
    align-self: flex-start;
    align-items: center;
    gap: 8px;
    padding: 6px 14px 6px 8px;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 14px;
    color: var(--text-nav);
}

/* The two bars are the product in miniature: one recording, two languages */
.lp-bars {
    display: inline-flex;
    gap: 3px;
}

.lp-bars span {
    width: 8px;
    height: 14px;
    border-radius: 3px;
    background: var(--accent-a);
}

.lp-bars span + span {
    background: var(--accent-b);
}

.lp-hero h1 {
    margin: 0;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: clamp(2.5rem, 5vw, 4.25rem);
    line-height: 1.04;
    letter-spacing: -0.03em;
}

.lp-hero-sub {
    margin: 0;
    max-width: 34em;
    font-size: clamp(17px, 1.6vw, 19px);
    color: var(--text-body);
}

.lp-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.lp-hero .lp-check-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    font-size: 15px;
    color: var(--text-nav);
}

/* Sample transcript card: the hero's focal point */
.lp-demo {
    flex: 1 1 520px;
    min-width: 0;
    margin: 0;
    background: #FFFFFF;
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: 0 1px 2px rgba(17, 19, 24, 0.05), 0 20px 48px rgba(17, 19, 24, 0.08);
    overflow: hidden;
}

.lp-demo-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 14px 20px;
    border-bottom: 1px solid var(--line);
    background: var(--surface-2);
    font-size: 13px;
    color: var(--text-nav);
}

.lp-demo-bar .mono {
    font-size: 13px;
    overflow-wrap: anywhere;
}

.lp-demo-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.lp-done {
    padding: 2px 10px;
    border-radius: 999px;
    background: var(--ok-bg);
    color: var(--ok-ink);
    font-weight: 500;
}

.lp-demo-cols {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.lp-demo-col {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.lp-demo-col + .lp-demo-col {
    background: var(--accent-b-tint);
    border-left: 1px solid var(--line);
}

.lp-col-head {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 14px;
}

.lp-col-head small {
    font-size: 14px;
    font-weight: 400;
    color: var(--text-muted);
}

.lp-seg time {
    display: block;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-muted);
}

.lp-seg p {
    margin: 2px 0 0;
    font-size: 15px;
}

.lp-demo-files {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 10px;
    padding: 14px 20px;
    border-top: 1px solid var(--line);
    font-size: 13px;
    color: var(--text-muted);
}

.lp-file {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 8px;
    font-family: var(--font-mono);
    font-size: 12px;
}

.lp-file-a {
    background: var(--accent-a-tint);
    color: var(--accent-a-dark);
}

.lp-file-b {
    background: var(--accent-b-tint);
    color: var(--accent-b-dark);
}

@media (max-width: 520px) {
    .lp-demo-col + .lp-demo-col {
        border-left: 0;
        border-top: 1px solid var(--line);
    }
}

/* ---------- Problem ---------- */
.lp-compare {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
    gap: 24px;
}

.lp-card {
    background: #FFFFFF;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.lp-label {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.lp-label-a {
    color: var(--accent-a);
}

.lp-tangle {
    margin: 0;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-nav);
}

.lp-tangle span {
    text-decoration: underline wavy #C9CDD6;
    text-underline-offset: 5px;
}

.lp-card-foot {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--line);
    font-size: 15px;
    color: var(--text-body);
}

.lp-split {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
    gap: 12px;
}

.lp-split > div {
    border-radius: 10px;
    padding: 14px 16px;
    background: var(--accent-a-tint);
}

.lp-split > div + div {
    background: var(--accent-b-tint);
}

.lp-split strong {
    display: block;
    margin-bottom: 4px;
    font-size: 13px;
    color: var(--accent-a);
}

.lp-split > div + div strong {
    color: var(--accent-b);
}

.lp-split p {
    margin: 0;
    font-size: 15px;
}

/* ---------- How it works: one track that splits in two at the end ---------- */
.lp-flow {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
}

.lp-flow li {
    position: relative;
    padding: 0 32px 0 0;
}

.lp-flow-mark {
    position: relative;
    display: flex;
    align-items: center;
    height: 28px;
    margin-bottom: 20px;
}

/* the shared track */
.lp-flow-mark::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 2px;
    background: var(--ink);
}

.lp-flow li:last-child .lp-flow-mark::before {
    display: none;
}

.lp-flow-num {
    position: relative;
    z-index: 1;
    padding-right: 12px;
    background: #FFFFFF;
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--text-muted);
}

/* step 3: the track becomes two language lines */
.lp-flow-fork {
    position: relative;
    flex: 1;
    height: 28px;
}

.lp-flow-fork::before,
.lp-flow-fork::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: 4px;
    border-radius: 2px;
    background: var(--accent-a);
    top: 6px;
}

.lp-flow-fork::after {
    background: var(--accent-b);
    top: auto;
    bottom: 6px;
}

.lp-flow h3 {
    margin: 0 0 8px;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 22px;
}

.lp-flow p {
    margin: 0;
    font-size: 16px;
    color: var(--text-body);
}

.lp-flow-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
}

@media (max-width: 820px) {
    .lp-flow {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .lp-flow li {
        padding: 0 0 32px 36px;
    }

    .lp-flow li:last-child {
        padding-bottom: 0;
    }

    /* vertical track on small screens */
    .lp-flow li::before {
        content: "";
        position: absolute;
        left: 8px;
        top: 6px;
        bottom: 0;
        width: 2px;
        background: var(--ink);
    }

    .lp-flow li:last-child::before {
        display: none;
    }

    .lp-flow-mark {
        position: absolute;
        left: 0;
        top: 6px;
        height: auto;
        margin: 0;
    }

    .lp-flow-mark::before,
    .lp-flow-fork {
        display: none;
    }

    .lp-flow-num {
        width: 18px;
        padding: 0;
        background: #FFFFFF;
        font-size: 12px;
        line-height: 18px;
        text-align: center;
        color: var(--ink);
    }

    .lp-flow-body {
        padding-top: 0;
    }
}

/* ---------- Use cases ---------- */
.lp-cases {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 20px;
}

.lp-case {
    background: #FFFFFF;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.lp-case .icon {
    width: 28px;
    height: 28px;
    color: var(--ink);
    stroke-width: 1.75;
}

.lp-case h3 {
    margin: 4px 0 0;
    font-family: var(--font-family);
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0;
}

.lp-case p {
    margin: 0;
    font-size: 15px;
    color: var(--text-body);
}

.lp-case a {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    min-height: 44px;
    margin-top: auto;
    font-size: 15px;
    font-weight: 500;
}

.lp-case a:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* ---------- Features ---------- */
.lp-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
    gap: 32px 40px;
}

.lp-feature {
    display: flex;
    gap: 16px;
}

.lp-feature-icon {
    flex: 0 0 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--accent-a-tint);
    color: var(--accent-a);
    display: flex;
    align-items: center;
    justify-content: center;
}

.lp-feature-icon .icon {
    width: 22px;
    height: 22px;
    stroke-width: 1.9;
}

.lp-feature h3 {
    margin: 0 0 4px;
    font-family: var(--font-family);
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0;
}

.lp-feature p {
    margin: 0;
    font-size: 15px;
    color: var(--text-body);
}

/* ---------- Pricing band ---------- */
.lp-pricing {
    padding: 0 0 var(--lp-gap);
}

.lp-band {
    background: var(--ink);
    color: #FFFFFF;
    border-radius: 24px;
    padding: clamp(28px, 5vw, 64px);
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
    justify-content: space-between;
}

.lp-band-copy {
    flex: 1 1 380px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.lp-band .lp-h2 {
    color: #FFFFFF;
}

.lp-band-copy > p {
    margin: 0;
    font-size: 18px;
    color: #C3C8D2;
}

.lp-band .lp-check-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 8px;
    font-size: 16px;
    color: #E6E8EC;
}

.lp-band .lp-check-list li {
    gap: 10px;
}

.lp-band .lp-check-list .icon {
    color: #7FD3A4;
}

.lp-price {
    flex: 0 1 340px;
    min-width: min(100%, 260px);
    background: #1D2029;
    border: 1px solid #2E3340;
    border-radius: 18px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.lp-price-from,
.lp-price-note {
    font-size: 14px;
    color: #C3C8D2;
}

.lp-price-note {
    font-size: 15px;
    margin-bottom: 20px;
}

.lp-price-value {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px;
}

.lp-price-value strong {
    font-family: var(--font-head);
    font-size: clamp(48px, 6vw, 64px);
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1;
}

.lp-price-value span {
    font-size: 18px;
    color: #C3C8D2;
}

.lp-price .btn {
    background: #FFFFFF;
    color: var(--ink);
}

.lp-price .btn:hover {
    background: #E6E8EC;
    color: var(--ink);
}

.lp-band :focus-visible {
    outline-color: #FFFFFF;
}

/* ---------- Final call to action ---------- */
.lp-final {
    padding: 0 0 96px;
}

.lp-final-inner {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

/* =====================================================================
   App screens
   ===================================================================== */

/* ---------- Auth ---------- */
.auth-section {
    background: var(--surface);
}

.auth-card {
    background: #FFFFFF;
    border-radius: 18px;
    padding: clamp(24px, 5vw, 40px);
}

.auth-card h1 {
    font-size: clamp(1.6rem, 3vw, 2rem);
    font-weight: 600;
}

.auth-divider::after,
.or-divider::after {
    background: var(--line);
}

/* ---------- Forms ---------- */
.form-input,
.form-select,
.auth-form input:not([type="checkbox"]):not([type="radio"]),
.auth-form select,
.upload-card select,
.upload-card input[type="text"],
.upload-card input[type="url"] {
    min-height: 44px;
    border: 1px solid var(--line-strong);
    border-radius: 10px;
    background: #FFFFFF;
    color: var(--ink);
}

.form-input::placeholder {
    color: var(--text-muted);
}

.form-group label {
    font-weight: 500;
}

.form-hint {
    color: var(--text-body);
}

/* ---------- Dashboard ---------- */
.dashboard {
    background: var(--surface);
    padding-top: 40px;
    padding-bottom: 64px;
}

.dashboard-header h1 {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 600;
}

.dashboard-search-input,
.dashboard-status-filter {
    min-height: 44px;
    border: 1px solid var(--line-strong);
    border-radius: 10px;
    background: #FFFFFF;
}

.transcription-card {
    background: #FFFFFF;
    border-radius: 14px;
    padding: 18px 20px;
}

.transcription-card:hover {
    border-color: var(--accent-a);
    background: #FFFFFF;
    transform: none;
}

.transcription-info h3 {
    font-family: var(--font-family);
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0;
    overflow-wrap: anywhere;
}

.transcription-meta {
    flex-wrap: wrap;
    gap: 4px 16px;
    color: var(--text-body);
    font-size: 14px;
}

.transcription-meta .language {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    color: var(--ink);
}

.transcription-meta .lang-dot {
    width: 8px;
    height: 8px;
}

.transcription-meta .lang-plus {
    color: var(--text-muted);
}

.transcription-meta .duration {
    font-size: 13px;
}

.pagination-current {
    font-family: var(--font-mono);
    font-size: 14px;
}

.empty-state {
    background: #FFFFFF;
    border: 1px solid var(--line);
    border-radius: 16px;
}

.empty-icon {
    display: flex;
    justify-content: center;
    color: var(--text-muted);
}

.empty-icon .icon {
    width: 40px;
    height: 40px;
    stroke-width: 1.6;
}

/* ---------- Upload ---------- */
.upload-section {
    background: var(--surface);
}

.upload-card {
    background: #FFFFFF;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: clamp(24px, 5vw, 40px);
}

.upload-card h1 {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 600;
}

.upload-zone {
    border: 1.5px dashed var(--line-strong);
    border-radius: 14px;
    background: var(--surface-2);
}

.upload-zone:hover,
.upload-zone.dragover {
    border-color: var(--accent-a);
    background: var(--accent-a-tint);
}

.upload-zone:focus-within {
    outline: 2px solid var(--accent-a);
    outline-offset: 2px;
}

.upload-icon {
    display: flex;
    justify-content: center;
    font-size: 0;
    color: var(--accent-a);
}

.upload-icon .icon {
    width: 36px;
    height: 36px;
    stroke-width: 1.75;
}

.upload-formats {
    font-family: var(--font-mono);
    font-size: 12px;
}

.file-preview {
    border-radius: 10px;
    background: var(--surface-2);
}

.file-icon {
    display: inline-flex;
    color: var(--accent-a);
}

.file-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
}

.bilingual-toggle,
.option-toggle {
    background: var(--surface-2);
    border-radius: 12px;
}

.checkbox-label {
    min-height: 44px;
}

.checkbox-label .lp-bars {
    margin-right: 2px;
}

/* Upload as three steps, matching "How it works" on the landing page */
.upload-card {
    max-width: 680px;
}

.upload-card h1,
.upload-subtitle {
    text-align: left;
}

.upload-form {
    gap: 0;
}

.upload-step {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
    margin: 0;
    padding: 24px 0;
    border: 0;
    border-top: 1px solid var(--line);
}

.upload-step legend {
    float: left;
    width: 100%;
    margin-bottom: 4px;
    padding: 0;
    font-family: var(--font-head);
    font-size: 18px;
    font-weight: 600;
}

.upload-step legend + * {
    clear: both;
}

.upload-step-num {
    margin-right: 6px;
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 400;
    color: var(--text-muted);
}

.upload-step .bilingual-toggle,
.upload-step .option-toggle {
    margin-top: 0;
}

.upload-lang-pair {
    display: grid;
    gap: 16px;
}

.upload-lang-pair.is-pair {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
}

.upload-lang label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.upload-form > .form-error,
.upload-form > .btn {
    margin-top: 8px;
}

/* ---------- Transcript workspace ---------- */
.detail-section {
    background: var(--surface);
    padding: 24px 0 64px;
}

.detail-section > .container {
    max-width: 1440px;
}

.detail-header {
    margin-bottom: 20px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 44px;
    margin-bottom: 0;
    color: var(--text-body);
}

.back-link:hover {
    color: var(--ink);
}

.detail-header h1 {
    margin: 8px 0 6px;
    font-size: clamp(1.5rem, 3vw, 1.75rem);
    font-weight: 600;
    overflow-wrap: anywhere;
}

.detail-meta {
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 8px;
    font-size: 14px;
    color: var(--text-body);
}

.detail-meta > * + *::before {
    content: "·";
    margin-right: 8px;
    color: var(--text-muted);
}

.language-badge {
    background: none;
    padding: 0;
}

.detail-meta .mono {
    font-size: 13px;
}

.audio-player-section {
    margin: 0 0 20px;
}

.meeting-container {
    gap: 24px;
    margin-top: 0;
}

.transcript-pane,
.intelligence-pane {
    background: #FFFFFF;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 0;
}

.transcript-pane {
    max-height: none;
    overflow: visible;
    align-self: start;
    min-width: 0;
}

.intelligence-pane {
    padding: 20px;
    align-self: start;
    max-height: none;
}

.transcript-pane > .pane-header {
    flex-wrap: wrap;
    gap: 12px;
    margin: 0;
    padding: 16px 20px;
}

.pane-header h3,
.pane-header h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.pane-actions {
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.speaker-select {
    min-height: 44px;
    padding: 0 10px;
    border: 1px solid var(--line-strong);
    border-radius: 10px;
    font-size: 14px;
}

.transcript-pane > div:not(.pane-header):not(.transcript-content) {
    padding: 0 20px;
}

/* Banner text flows as a sentence; as a flex row it broke apart on phones */
.transcript-pane .polish-banner {
    display: block;
    border-radius: 10px;
}

.transcript-pane .polish-banner .link-button {
    min-height: 32px;
}

.transcript-pane .polish-banner:first-child,
.transcript-pane .editor-notes:first-child {
    margin-top: 12px;
}

.transcript-content {
    max-height: 70vh;
    overflow-y: auto;
    padding: 16px 20px 20px;
}

/* View switch: Side by side / language 1 / language 2 */
.ws-viewbar {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 16px;
}

.ws-viewbar-label {
    font-size: 14px;
    color: var(--text-body);
}

.ws-switch {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 4px;
    background: #E9EBEF;
    border-radius: 12px;
}

.ws-switch button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 14px;
    border: none;
    border-radius: 9px;
    background: transparent;
    color: var(--text-nav);
    font: 500 14px var(--font-family);
}

.ws-switch button:hover {
    background: rgba(255, 255, 255, 0.6);
    color: var(--ink);
}

.ws-switch button[aria-pressed="true"] {
    background: #FFFFFF;
    color: var(--ink);
    box-shadow: 0 1px 2px rgba(17, 19, 24, 0.12);
}

.ws-switch .lp-bars span {
    height: 12px;
    width: 6px;
}

/* Side-by-side columns */
#transcript-text-all {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 0;
    padding: 0;
}

#transcript-text-all .language-section {
    min-width: 0;
    padding: 16px 20px 20px;
}

.transcript-content[data-language="2"],
#transcript-text-all .language-section + .language-section {
    background: var(--accent-b-tint);
}

#transcript-text-all .language-section + .language-section {
    border-left: 1px solid var(--line);
}

@media (max-width: 680px) {
    #transcript-text-all .language-section + .language-section {
        border-left: 0;
        border-top: 1px solid var(--line);
    }
}

.speaker-label.lang-badge-1,
.speaker-label.lang-badge-2 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    padding: 0;
    background: none;
    color: var(--ink);
    font-size: 15px;
    font-weight: 600;
}

.speaker-label.lang-badge-1::before,
.speaker-label.lang-badge-2::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent-a);
}

.speaker-label.lang-badge-2::before {
    background: var(--accent-b);
}

.utterance {
    margin-bottom: 4px;
    padding: 8px 10px;
    border-radius: 8px;
}

.utterance:hover {
    background: rgba(17, 19, 24, 0.04);
}

.utterance.active {
    background: var(--accent-a-tint);
    border-left: 0;
    box-shadow: inset 0 0 0 1px rgba(35, 70, 216, 0.25);
}

.utterance-text {
    font-size: 15px;
}

/* In bilingual recordings the speaker name carries its language colour */
.is-bilingual .utterance .speaker-label {
    padding: 0;
    background: none;
    font-size: 13px;
    color: var(--accent-a);
}

.is-bilingual .utterance[data-lang="2"] .speaker-label {
    color: var(--accent-b);
}

.editor-notes summary {
    padding: 10px 0;
}

/* Details list in the side pane */
.stats-list > div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid var(--line);
    font-size: 15px;
}

.stats-list > div:last-child {
    border-bottom: 0;
}

.stats-list dt {
    color: var(--text-body);
}

.stats-list dd {
    margin: 0;
    text-align: right;
}

/* Intelligence pane */
.intelligence-pane .pane-header {
    margin-bottom: 16px;
    padding-bottom: 12px;
}

.summary-section h4,
.stats-section h4 {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--text-muted);
}

.speaker-names-section h4 {
    font-size: 15px;
    font-weight: 600;
}

.speaker-name-input {
    min-height: 44px;
    border: 1px solid var(--line-strong);
    border-radius: 10px;
}

.speaker-badge.speaker-A { background: var(--accent-a-tint); color: var(--accent-a-dark); }
.speaker-badge.speaker-B { background: var(--accent-b-tint); color: var(--accent-b-dark); }

.processing-section,
.error-section {
    background: #FFFFFF;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 40px 24px;
}

.loader {
    border-color: var(--line);
    border-top-color: var(--accent-a);
}

.timeout-warning {
    background: var(--warn-bg);
    border-color: #F2C46D;
}

.timeout-warning p {
    color: var(--warn-ink);
}

/* Modals */
.modal-content {
    background: #FFFFFF;
    border: 1px solid var(--line);
    border-radius: 16px;
    max-width: calc(100vw - 32px);
}

.modal-content h3 {
    font-size: 20px;
    font-weight: 600;
}

.modal-actions {
    flex-wrap: wrap;
}

.radio-option,
.checkbox-option {
    min-height: 44px;
    border-radius: 10px;
    background: var(--surface-2);
}

.radio-option:hover,
.checkbox-option:hover {
    background: var(--surface);
}

.export-section h4 {
    font-size: 14px;
    font-weight: 600;
}

/* ---------- Pricing page ---------- */
.pricing-section {
    background: var(--surface);
}

.pricing-header h1 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 600;
    letter-spacing: -0.02em;
}

.free-trial-banner {
    background: var(--ink);
    border-radius: 10px;
    box-shadow: none;
}

.current-credits {
    background: #FFFFFF;
    border-radius: 10px;
}

.package-card {
    background: #FFFFFF;
    border: 1px solid var(--line);
    border-radius: 18px;
}

.package-card:hover {
    transform: none;
    box-shadow: none;
    border-color: var(--line-strong);
}

.package-card.popular {
    border: 2px solid var(--accent-a);
    box-shadow: none;
}

.popular-badge {
    left: 26px;
    transform: none;
    border-radius: 8px;
}

.package-card h2 {
    font-size: 1.25rem;
    font-weight: 600;
}

.package-card {
    padding: 32px 28px;
    text-align: left;
    display: flex;
    flex-direction: column;
}

.package-card .btn {
    margin-top: auto;
}

.package-per-min {
    margin-bottom: 20px;
}

.package-features {
    margin-top: 0;
    margin-bottom: 24px;
}

.package-minutes span {
    font-family: var(--font-family);
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0;
    color: var(--text-body);
}

.package-price {
    font-family: var(--font-head);
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 12px;
}

.package-minutes {
    font-size: 2.5rem;
    line-height: 1.1;
    font-family: var(--font-head);
    font-weight: 600;
    letter-spacing: -0.03em;
    color: var(--accent-a);
    -webkit-text-fill-color: currentColor;
    background: none;
}

.package-per-min {
    font-family: var(--font-mono);
    color: var(--text-body);
}

.package-features li::before {
    content: "";
    display: inline-block;
    width: 12px;
    height: 7px;
    margin-right: 10px;
    border-left: 2px solid var(--ok);
    border-bottom: 2px solid var(--ok);
    transform: translateY(-3px) rotate(-45deg);
}

.faq-item {
    background: #FFFFFF;
    border-radius: 14px;
}

.bilingual-pricing-info {
    background: var(--accent-a-tint);
    border-color: rgba(35, 70, 216, 0.25);
}

/* ---------- Usage page ---------- */
.usage-section {
    background: var(--surface);
    padding: 40px 0 64px;
}

.usage-layout {
    gap: 24px;
}

.usage-title {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 600;
}

.usage-subtitle {
    color: var(--text-body);
}

.usage-hero-card {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
    align-items: center;
    padding: clamp(20px, 4vw, 32px);
    background: #FFFFFF;
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: none;
}

.usage-hero-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-body);
}

.usage-hero-value {
    font-family: var(--font-head);
    font-weight: 600;
    font-size: clamp(2.75rem, 7vw, 4rem);
    letter-spacing: -0.03em;
    line-height: 1;
}

.usage-hero-unit {
    margin-bottom: 6px;
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 500;
}

.usage-progress {
    height: 8px;
    margin-top: 16px;
    background: var(--surface);
}

.usage-progress-fill {
    background: var(--accent-a);
}

.usage-hero-note {
    margin: 8px 0 0;
    font-size: 14px;
    color: var(--text-body);
}

/* Three small figures in one row instead of stacked cards */
.usage-hero-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    margin: 0;
    border: 1px solid var(--line);
    border-radius: 12px;
}

.usage-stat-card {
    padding: 16px;
    background: none;
    border: 0;
    border-radius: 0;
}

.usage-stat-card + .usage-stat-card {
    border-left: 1px solid var(--line);
}

.usage-stat-label {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
    color: var(--text-body);
}

.usage-stat-value {
    display: block;
    margin: 0;
    font-family: var(--font-mono);
    font-size: 20px;
    font-weight: 500;
}

.usage-panel {
    border-radius: 16px;
    box-shadow: none;
}

.usage-panel-header {
    background: #FFFFFF;
}

.usage-panel-header h2 {
    font-size: 18px;
    font-weight: 600;
}

.usage-table th {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
    color: var(--text-body);
    background: var(--surface-2);
}

.usage-table tbody tr:hover {
    background: var(--surface-2);
}

.usage-date-cell,
.usage-num-cell {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--text-body);
    white-space: nowrap;
}

.usage-file-name {
    overflow-wrap: anywhere;
}

.usage-status-badge {
    padding: 3px 10px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0;
}

.usage-status-completed { background: var(--ok-bg); color: var(--ok-ink); }
.usage-status-processing,
.usage-status-pending { background: var(--warn-bg); color: var(--warn-ink); }
.usage-status-failed,
.usage-status-error { background: var(--danger-bg); color: var(--danger); }

@media (max-width: 900px) {
    .usage-hero-card {
        grid-template-columns: 1fr;
    }

    .usage-hero-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* Phones: each row becomes a short card (name, then date · minutes · status) */
@media (max-width: 640px) {
    .usage-hero-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .usage-stat-card {
        padding: 12px;
    }

    .usage-stat-value {
        font-size: 16px;
    }

    .usage-table-cards {
        min-width: 0;
    }

    .usage-table-cards thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
    }

    .usage-table-cards,
    .usage-table-cards tbody {
        display: block;
    }

    .usage-table-cards tr {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 4px 12px;
        padding: 14px 16px;
        border-bottom: 1px solid var(--line);
    }

    .usage-table-cards tbody tr:last-child {
        border-bottom: 0;
    }

    .usage-table-cards td {
        display: block;
        padding: 0;
        border: 0;
    }

    .usage-table-cards .usage-file-cell {
        flex: 1 1 100%;
        min-width: 0;
    }

    .usage-table-cards .usage-status-cell {
        margin-left: auto;
    }
}

/* ---------- Resources ---------- */
.resources-hero,
.resource-article-hero {
    background: #FFFFFF;
    border-bottom: 1px solid var(--line);
    padding: clamp(40px, 6vw, 72px) 0;
}

.resources-hero-copy h1,
.resource-article-hero h1 {
    font-weight: 600;
    letter-spacing: -0.03em;
}

.resources-hero-copy p,
.resource-article-hero p {
    color: var(--text-body);
}

.resources-hero .hero-actions {
    justify-content: flex-start;
    margin-top: 24px;
}

/* Cards sit under a heading that already names their group */
.resource-card-grid .resource-card-category {
    display: none;
}

/* Category labels: plain coloured text, no tracking-heavy caps */
.resource-eyebrow,
.resource-card-category,
.resources-featured-label {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
    color: var(--accent-a);
}

.resources-featured,
.resource-sidebar-panel {
    border-radius: 16px;
    box-shadow: none;
}

.resources-featured {
    background: var(--ink);
    border-color: var(--ink);
    color: #FFFFFF;
}

.resources-featured .resources-featured-label {
    color: #C3C8D2;
}

.resources-featured p {
    color: #C3C8D2;
}

.resources-featured a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: #FFFFFF;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.resources-featured a:focus-visible {
    outline-color: #FFFFFF;
}

.resources-section {
    background: var(--surface);
}

.resource-group-header h2 {
    font-weight: 600;
}

.resource-card {
    border-radius: 16px;
    box-shadow: none;
}

.resource-card:hover {
    transform: none;
    border-color: var(--accent-a);
    box-shadow: none;
}

.resource-card h3 {
    font-family: var(--font-family);
    letter-spacing: 0;
}

.resource-card h3 a {
    color: var(--ink);
}

.resource-card h3 a:hover {
    color: var(--accent-a);
}

.resource-card-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
}

.resource-back-link {
    align-items: center;
    gap: 4px;
    min-height: 44px;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-body);
}

.resource-meta {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--text-muted);
}

.resource-article-content {
    font-size: 17px;
    line-height: 1.7;
}

.resource-article-content section p + p,
.resource-article-content h2 + p {
    margin-top: 14px;
}

.resource-article-content h2 + p {
    margin-top: 12px;
}

/* Back link on its own line above the category label */
.resource-back-link {
    display: flex;
    width: fit-content;
}

.resource-article-content h2 {
    font-weight: 600;
}

.resource-article-content h3 {
    font-family: var(--font-family);
    letter-spacing: 0;
}

.resource-faq-item {
    border-radius: 12px;
}

.resource-related-list a {
    display: flex;
    align-items: center;
    min-height: 44px;
}

.resource-bottom-cta {
    background: var(--surface);
}

.resource-bottom-cta h2 {
    font-weight: 600;
}

/* ---------- Legal pages ---------- */
.legal-page {
    padding: clamp(40px, 6vw, 64px) 0 80px;
}

.legal-page h1 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 600;
    letter-spacing: -0.03em;
}

.legal-page .last-updated {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--text-muted);
}

.legal-content {
    max-width: 68ch;
    font-size: 16px;
    line-height: 1.7;
}

.legal-content h2 {
    margin-top: 40px;
    font-size: 20px;
    font-weight: 600;
}

.legal-content p,
.legal-content li {
    color: var(--text-nav);
}

/* ---------- Sign in and register ---------- */
.auth-section > .auth-layout {
    width: 100%;
}

.auth-footer {
    text-align: left;
}

.auth-layout {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 32px 56px;
}

.auth-layout .auth-card {
    flex: 0 1 440px;
    max-width: 440px;
}

.auth-card h1,
.auth-subtitle {
    text-align: left;
}

.auth-forgot {
    margin: 0;
    text-align: left;
}

.auth-form + .auth-forgot {
    margin-top: 8px;
}

.auth-forgot a,
.auth-footer a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
}

.auth-aside {
    flex: 0 1 380px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.auth-aside-title {
    font-family: var(--font-head);
    font-size: 26px;
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.auth-aside-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
    background: #FFFFFF;
    border: 1px solid var(--line);
    border-radius: 14px;
}

.auth-aside-cols > div {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px;
}

.auth-aside-cols > div + div {
    background: var(--accent-b-tint);
    border-left: 1px solid var(--line);
}

.auth-aside-line {
    font-size: 14px;
}

.auth-aside-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 15px;
    color: var(--text-nav);
}

/* Phones and narrow tablets: the form is the whole page */
@media (max-width: 900px) {
    .auth-aside {
        display: none;
    }
}

/* ---------- Success and error pages ---------- */
.success-section {
    background: var(--surface);
}

.success-card {
    background: #FFFFFF;
    border: 1px solid var(--line);
    border-radius: 18px;
}

.success-card h1 {
    font-weight: 600;
}

.success-actions {
    flex-wrap: wrap;
}

.success-icon {
    display: flex;
    justify-content: center;
    color: var(--ok);
}

.success-icon .icon {
    width: 48px;
    height: 48px;
}

.error-page {
    min-height: calc(100vh - 160px);
    background: var(--surface);
}

.error-content {
    max-width: 560px;
}

/* Status number in the mono face used for timestamps; the headline below carries the message */
.error-content .error-code {
    margin-bottom: 8px;
    font-family: var(--font-mono);
    font-size: clamp(3rem, 10vw, 5rem);
    font-weight: 500;
    color: var(--text-muted);
    -webkit-text-fill-color: currentColor;
    background: none;
}

.error-content h1 {
    margin-bottom: 12px;
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 600;
}

.error-content p {
    color: var(--text-body);
}

.error-actions {
    flex-wrap: wrap;
}

/* ========== Small screens ========== */
@media (max-width: 768px) {
    .navbar-container {
        height: auto;
    }

    .header-top {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
    }

    .detail-actions {
        flex-direction: row;
        flex-wrap: wrap;
    }
}

/* Narrow phones: Pricing moves from the bar into the menu so the bar fits */
.navbar-mobile-links .nav-narrow-only {
    display: none;
}

@media (max-width: 400px) {
    .nav-wide-only {
        display: none;
    }

    .navbar-mobile-links .nav-narrow-only {
        display: flex;
    }
}

.password-toggle {
    min-width: 44px;
    min-height: 44px;
    right: 2px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-body);
    opacity: 1;
}

.password-toggle:hover {
    color: var(--ink);
}

@media (max-width: 480px) {
    .lp-wrap {
        padding: 0 16px;
    }

    .brand-logo {
        height: 32px;
    }

    .navbar-brand {
        gap: 8px;
    }

    .lp-actions .btn {
        flex: 1 1 100%;
    }

    .lp-price {
        padding: 24px;
    }

    .ws-switch {
        width: 100%;
    }

    .ws-switch button {
        flex: 1 1 auto;
        justify-content: center;
        gap: 6px;
        padding: 0 8px;
    }

    .ws-switch .lp-bars {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    /* Spinners keep turning: they are the only sign that work is in progress */
    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
    }

    .toast {
        transition: none;
    }
}
