/* HardTrans — styles */

/* ── Reset (replaces Tailwind preflight) ─────────────────────── */

*, *::before, *::after {
    box-sizing: border-box;
    border-width: 0;
    border-style: solid;
}

body, h1, h2, p, figure, blockquote, dl, dd {
    margin: 0;
}

button, input, select, textarea {
    font: inherit;
    color: inherit;
}

button { cursor: pointer; background: transparent; border: none; padding: 0; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }

/* ── Design tokens ───────────────────────────────────────────── */

:root {
    --color-accent: #2563eb;
    --color-accent-hover: #1d4ed8;
    --color-accent-light: #dbeafe;
    --color-accent-border: #60a5fa;
    --color-bg: #ffffff;
    --color-surface: #f8fafc;
    --color-border: #e2e8f0;
    --color-text: #0f2529;
    --color-text-secondary: #334155;
    --color-text-muted: #64748b;
    --color-error: #dc2626;
    --color-warning: #d97706;
    --color-success: #059669;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* ── Tailwind utility replacements ───────────────────────────── */

/* Display */
.hidden      { display: none; }
.block       { display: block; }
.inline-block { display: inline-block; }
.flex        { display: flex; }

/* Flex */
.flex-col     { flex-direction: column; }
.flex-1       { flex: 1 1 0%; }
.items-start  { align-items: flex-start; }
.items-center { align-items: center; }
.justify-center  { justify-content: center; }
.justify-between { justify-content: space-between; }

/* Sizing */
.w-full    { width: 100%; }
.max-w-xl  { max-width: 36rem; }
.min-h-screen { min-height: 100vh; }
.h-2       { height: 0.5rem; }

/* Spacing — padding */
.p-10  { padding: 2.5rem; }
.px-4  { padding-left: 1rem; padding-right: 1rem; }
.px-8  { padding-left: 2rem; padding-right: 2rem; }
.py-3  { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4  { padding-top: 1rem; padding-bottom: 1rem; }
.py-8  { padding-top: 2rem; padding-bottom: 2rem; }
.pt-4  { padding-top: 1rem; }
.pb-12 { padding-bottom: 3rem; }

/* Spacing — margin */
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }

/* Gap */
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }

/* Typography */
.text-xs  { font-size: 0.75rem; line-height: 1rem; }
.text-sm  { font-size: 0.875rem; line-height: 1.25rem; }
.text-lg  { font-size: 1.125rem; line-height: 1.75rem; }
.text-center { text-align: center; }
.font-medium   { font-weight: 500; }
.font-semibold { font-weight: 600; }
.underline    { text-decoration-line: underline; }
.no-underline { text-decoration-line: none; }
.uppercase     { text-transform: uppercase; }
.tracking-wide { letter-spacing: 0.025em; }

/* Borders */
.rounded-lg { border-radius: 0.5rem; }
.border-t   { border-top: 1px solid var(--color-border); }

/* Responsive (sm: 640px) */
@media (min-width: 640px) {
    .sm\:flex-row { flex-direction: row; }
    .sm\:mt-0    { margin-top: 0; }
    .sm\:inline  { display: inline; }
}

/* ── Color utilities ─────────────────────────────────────────── */

.text-secondary { color: var(--color-text-secondary); }
.text-muted     { color: var(--color-text-muted); }
.text-accent    { color: var(--color-accent); }
.text-error     { color: var(--color-error); }
.text-warning   { color: var(--color-warning); }
.text-success   { color: var(--color-success); }

/* ── Components ──────────────────────────────────────────────── */

/* Header */
.site-title {
    font-size: 1.875rem;
    font-weight: 700;
    letter-spacing: -0.025em;
}

.site-subtitle {
    font-size: 1rem;
    color: #374151;
}

/* Free note above drop zone */
.free-note {
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    text-align: center;
    margin-bottom: 1.75rem;
}

/* Drop zone */
.drop-zone {
    border: 2.5px dashed var(--color-accent-border);
    border-radius: 16px;
    background: var(--color-accent-light);
    transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

.drop-zone:hover,
.drop-zone.drag-over {
    border-color: var(--color-accent);
    background-color: #bfdbfe;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.drop-zone.has-file {
    border-color: var(--color-success);
    border-style: solid;
    background: #ecfdf5;
}

/* Multi-file banner */
.multi-file-banner {
    background: #eff6ff;
    color: #1e40af;
}

/* Progress bar */
.progress-bar-track {
    background: var(--color-border);
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: var(--color-accent);
    transition: width 0.5s ease;
    border-radius: 4px;
}

/* Form elements */
.select-field {
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    background: white;
    color: var(--color-text);
    font-family: inherit;
}

.select-field:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.file-input {
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    font-family: inherit;
}

/* Button */
.btn-primary {
    background: var(--color-accent);
    color: white;
    border-radius: 10px;
    transition: background-color 0.15s ease, box-shadow 0.15s ease;
    box-shadow: 0 1px 3px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover:not(:disabled) {
    background: var(--color-accent-hover);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.4);
}

.btn-primary:active:not(:disabled) {
    transform: translateY(1px);
    box-shadow: 0 1px 2px rgba(37, 99, 235, 0.3);
}

.btn-primary:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    box-shadow: none;
}

.btn-secondary {
    background: var(--color-surface);
    color: var(--color-text);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.15s;
}

.btn-secondary:hover {
    background: var(--color-border);
}

/* Advanced options */
.advanced-summary {
    color: var(--color-text);
    font-weight: 600;
    cursor: pointer;
    user-select: none;
}

.advanced-summary:hover {
    color: var(--color-text);
}

details[open] .advanced-summary {
    color: var(--color-text);
}

/* Custom file picker */
.file-pick {
    display: flex;
    align-items: center;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    transition: border-color 0.2s;
    font-size: 0.875rem;
}

.file-pick:hover {
    border-color: var(--color-accent);
}

.file-pick-label {
    flex: 1;
    color: var(--color-text-secondary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-pick-label.has-file {
    color: var(--color-text);
}

#selected-filename,
#estimate-filename,
#progress-filename,
#result-filename {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-pick-clear {
    margin-left: 0.5rem;
    color: var(--color-text-muted);
    font-size: 1.1rem;
    line-height: 1;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0 2px;
}

.file-pick-clear:hover {
    color: var(--color-error);
}

/* Checkbox styling */
input[type="checkbox"] {
    accent-color: var(--color-accent);
}

/* ── Landing info sections ──────────────────────────────────────── */

#landing-info {
    margin-top: 0;
}

/* Section labels */
.section-label {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-bottom: 1rem;
}

/* Value proposition block */
.value-prop {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-text-secondary);
    text-align: center;
    margin-top: 1.25rem;
}

/* Steps list */
.steps-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.steps-list li {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    padding: 0.625rem 0;
    font-size: 1.125rem;
    color: var(--color-text-secondary);
}

.step-num {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-accent);
    line-height: 1;
    min-width: 1.5rem;
    text-align: center;
}

/* Format badges */
.format-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.format-badge {
    display: inline-block;
    background: #f1f5f9;
    padding: 0.375rem 0.75rem;
    border-radius: 4px;
    font-size: 1rem;
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
    color: var(--color-text-secondary);
    letter-spacing: 0.02em;
}

.formats-languages {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-text-secondary);
}

/* Price highlight */
.price-hero {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text);
}

.price-unit {
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--color-text-secondary);
}

/* Speed note */
.speed-note {
    font-size: 1rem;
    color: var(--color-text-muted);
    margin-top: 1rem;
}

/* Footer */
footer {
    border-top: 1px solid var(--color-border);
    padding-top: 2rem !important;
    margin-top: 2rem;
}

/* ── Accessibility ──────────────────────────────────────────── */

/* Focus-visible for keyboard navigation */
:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

:focus:not(:focus-visible) {
    outline: none;
}

.btn-primary:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.2);
}

.drop-zone:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

/* Skip link */
.skip-link {
    position: absolute;
    top: -100px;
    left: 16px;
    background: var(--color-accent);
    color: white;
    padding: 8px 16px;
    border-radius: 0 0 8px 8px;
    z-index: 100;
    font-size: 0.875rem;
    text-decoration: none;
}

.skip-link:focus {
    top: 0;
}

/* ── Landing page styles ────────────────────────────────────── */

/* Landing header */
.landing-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
}

.landing-brand {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--color-text);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.landing-brand-icon {
    width: 28px;
    height: 28px;
}

.landing-login-btn {
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-accent);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: background-color 0.15s;
}

.landing-login-btn:hover {
    background: var(--color-accent-light);
}

/* Hero */
.landing-hero {
    text-align: center;
    padding: 1rem 2rem 1.5rem;
    max-width: 960px;
    margin: 0 auto;
}

.hero-title {
    font-size: 2.25rem;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0;
    color: var(--color-text);
    margin: 0;
}

.hero-subtitle {
    font-size: 1.125rem;
    font-weight: 400;
    line-height: 1.6;
    color: var(--color-text-secondary);
    margin-top: 1rem;
}

/* Landing upload area */
.landing-upload {
    max-width: 560px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.landing-upload .select-field {
    font-size: 1rem;
    padding: 0.75rem 1rem;
}

.landing-upload .text-xs,
.landing-upload .text-sm {
    font-size: 1rem;
}

.upload-hint {
    font-size: 0.875rem !important;
}

.landing-upload .file-pick {
    font-size: 1rem;
    padding: 0.625rem 0.875rem;
}

.landing-upload details a[download] {
    font-size: 0.875rem;
}

/* Drop zone — landing enhancements */
.landing-upload .drop-zone {
    padding: 2.5rem 2rem;
}

.drop-zone-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 12px;
    color: var(--color-accent);
    opacity: 0.8;
}

.drop-zone-title--mobile { display: none; }

.drop-zone-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 6px;
}

.drop-zone-formats {
    font-size: 1rem;
    color: var(--color-text-secondary);
    letter-spacing: 0.03em;
}

.drop-zone-free {
    font-size: 0.8125rem;
    color: var(--color-accent);
    font-weight: 500;
    margin-top: 8px;
}

/* Landing CTA */
.btn-cta {
    display: block;
    width: 100%;
    padding: 14px 24px;
    font-size: 1.125rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    color: #ffffff;
    background: var(--color-accent);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.15s ease, box-shadow 0.15s ease;
    box-shadow: 0 1px 3px rgba(37, 99, 235, 0.3);
}

.btn-cta:hover:not(:disabled) {
    background: var(--color-accent-hover);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.4);
}

.btn-cta:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.2);
}

.btn-cta:active:not(:disabled) {
    transform: translateY(1px);
    box-shadow: 0 1px 2px rgba(37, 99, 235, 0.3);
}

.btn-cta:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    box-shadow: none;
}

.cta-hint,
.landing-section .cta-hint {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    text-align: center;
    margin-top: 0.75rem;
}

/* Landing content sections */
.landing-content {
    margin: 0;
    padding: 0;
}

.landing-section {
    padding: 5rem 0;
}

.landing-section-inner {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 2rem;
}

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

.landing-section h2 {
    font-size: 1.75rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--color-text);
    margin: 0 0 1.5rem;
}

.landing-section p,
.landing-section li {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-text-secondary);
}

/* Comparison table */
.comparison-table {
    width: 100%;
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 1rem;
    margin-top: 2rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0, 11, 48, 0.08);
    border: 1px solid var(--color-border);
}

.comparison-table col.col-feature { width: 25%; }
.comparison-table col.col-mt { width: 37.5%; }
.comparison-table col.col-ht { width: 37.5%; }

.comparison-table th {
    text-align: left;
    font-weight: 600;
    padding: 1rem 1.25rem;
    background: var(--color-surface);
    color: var(--color-text);
    border-bottom: 1px solid var(--color-border);
}

.comparison-table th:last-child,
.comparison-table td:last-child {
    background: #eff6ff !important;
    color: var(--color-text);
}

.comparison-table td {
    padding: 0.875rem 1.25rem;
    color: var(--color-text-secondary);
    vertical-align: top;
    border-bottom: 1px solid var(--color-border);
}

.comparison-table tbody tr:nth-child(even) td {
    background: var(--color-surface);
}


.comparison-table td:first-child {
    font-weight: 500;
    color: var(--color-text);
    white-space: nowrap;
}

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

/* Before/after document comparison */
.example-heading {
    font-size: 1.375rem;
    font-weight: 600;
    color: var(--color-text);
    margin: 3rem 0 0.5rem;
}

.example-subheading {
    font-size: 0.9375rem;
    color: var(--color-text-muted) !important;
    margin-bottom: 1.5rem;
}

.doc-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.doc-panel {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 11, 48, 0.06);
    display: flex;
    flex-direction: column;
}

.doc-panel--bad {
    border: 2px solid #fca5a5;
}

.doc-panel--good {
    border: 2px solid #6ee7b7;
}

.doc-panel-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    font-weight: 600;
    font-size: 0.9375rem;
}

.doc-panel-header--bad {
    background: #fef2f2;
    color: #b91c1c;
}

.doc-panel-header--good {
    background: #ecfdf5;
    color: #047857;
}

.doc-panel-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.doc-panel-body {
    padding: 1.25rem;
    background: #fff;
    flex: 1;
    font-family: 'Times New Roman', 'Georgia', serif;
    font-size: 0.9375rem;
    line-height: 1.7;
    color: #1e293b;
}

.doc-para {
    margin: 0 0 0.875rem;
    text-indent: 0;
}

.doc-para:last-child {
    margin-bottom: 0;
}

mark.hl-bad {
    background: #fee2e2;
    color: #b91c1c;
    padding: 1px 4px;
    border-radius: 3px;
    font-weight: 600;
    text-decoration: none;
}

mark.hl-good {
    background: #d1fae5;
    color: #047857;
    padding: 1px 4px;
    border-radius: 3px;
    font-weight: 600;
    text-decoration: none;
}

.doc-panel-verdict {
    padding: 0.625rem 1.25rem;
    font-size: 0.8125rem;
    font-weight: 600;
    text-align: center;
}

.doc-panel-verdict--bad {
    background: #fef2f2;
    color: #b91c1c;
    border-top: 1px solid #fca5a5;
}

.doc-panel-verdict--good {
    background: #ecfdf5;
    color: #047857;
    border-top: 1px solid #6ee7b7;
}

/* Annotations below comparison */
.example-annotations {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.annotation {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    flex-wrap: wrap;
}

.annotation-label {
    font-family: 'Courier New', monospace;
    font-size: 0.8125rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
    white-space: nowrap;
}

.annotation-label--bad {
    background: #fee2e2;
    color: #b91c1c;
    text-decoration: line-through;
}

.annotation-label--good {
    background: #d1fae5;
    color: #047857;
}

.annotation-arrow {
    color: var(--color-text-muted);
    font-size: 1rem;
}

.annotation-text {
    color: var(--color-text-muted);
    font-size: 0.8125rem;
}

/* Pricing cards */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-top: 2rem;
}

.pricing-card {
    border: 2px solid var(--color-border);
    border-radius: 12px;
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 11, 48, 0.06);
    transition: box-shadow 0.2s;
    background: #fff;
}

.pricing-card:hover {
    box-shadow: 0 4px 16px rgba(0, 11, 48, 0.1);
}

.pricing-card--free {
    border-color: #f87171;
    background: #fff;
}

.pricing-card--primary {
    border: 2px solid var(--color-accent);
    background: #eff6ff;
    padding: 2.25rem 1.75rem;
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.15);
}

.pricing-card--primary:hover {
    box-shadow: 0 8px 28px rgba(37, 99, 235, 0.22);
}

.pricing-card--muted {
    background: #fff;
    border-color: #d97706;
}

.pricing-card-label {
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--color-text-secondary);
    margin-bottom: 0.75rem;
}

.pricing-card-price {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 0.5rem;
}

.pricing-card-desc {
    font-size: 1rem;
    color: var(--color-text-secondary);
    line-height: 1.5;
}

.pricing-free-note {
    text-align: center;
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-accent);
    margin-top: 1.5rem;
}

.pricing-explanation {
    font-size: 1rem;
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.pricing-includes {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0;
}

.pricing-includes li {
    padding: 0.375rem 0;
    font-size: 1rem;
    color: var(--color-text-secondary);
}

/* "For whom" cards */
.audience-card {
    margin-bottom: 1rem;
    padding: 1.25rem 1.5rem;
    border-radius: 10px;
    border: 1px solid var(--color-border);
    background: #fff;
    box-shadow: 0 1px 4px rgba(0, 11, 48, 0.05);
}

.audience-card-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 0.375rem;
}

.audience-card-desc {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-text-secondary);
}

.audience-disclaimer {
    font-size: 1rem;
    color: var(--color-text-muted);
    font-style: italic;
    margin-top: 2.5rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

/* Confidentiality list */
.conf-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.conf-list li {
    padding: 0.5rem 0;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-text-secondary);
    padding-left: 1.5rem;
    position: relative;
}

.conf-list li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    color: var(--color-success);
    font-weight: 600;
}

/* FAQ */
.faq-item {
    border-bottom: 1px solid var(--color-border);
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-item summary {
    min-height: 48px;
    display: flex;
    align-items: center;
    padding: 1rem 0;
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-text);
    cursor: pointer;
    list-style: none;
}

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

.faq-item summary::after {
    content: "+";
    margin-left: auto;
    font-size: 1.5rem;
    color: var(--color-text-secondary);
    transition: transform 0.2s;
}

.faq-item[open] summary::after {
    content: "\2212";
}

.faq-answer {
    padding: 0 0 1rem;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-text-secondary);
}

/* Repeat CTA */
.landing-repeat-cta-section {
    padding: 4rem 0;
}

.landing-repeat-cta-section .btn-cta {
    display: block;
    max-width: 512px;
    width: 100%;
    margin: 0 auto;
    padding: 14px 24px;
}

/* Landing footer */
.landing-footer {
    border-top: 1px solid var(--color-border);
    padding: 2rem 1.5rem;
    text-align: center;
}

.landing-footer p {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    margin: 0;
    line-height: 1.6;
}

.landing-footer p:first-child {
    font-size: 1rem;
    color: var(--color-text-secondary);
    margin-bottom: 0.5rem;
}

.landing-footer p + p {
    margin-top: 0.375rem;
}

.landing-footer a {
    color: var(--color-accent);
}

/* Toast popup */
.toast-popup {
    position: fixed;
    top: 1.5rem;
    left: 50%;
    transform: translateX(-50%) translateY(-1rem);
    background: #155724;
    color: #fff;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    font-size: 0.9375rem;
    line-height: 1.5;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    max-width: calc(100% - 2rem);
    text-align: center;
}

.toast-popup.toast-visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ── Mobile styles ──────────────────────────────────────────── */

@media (max-width: 639px) {
    .hero-title {
        font-size: 1.75rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .landing-hero {
        padding: 0.75rem 1rem 0.25rem;
    }

    .hero-subtitle {
        display: none;
    }

    .landing-upload {
        padding: 0 1rem;
    }

    .landing-upload .drop-zone {
        padding: 2rem 1rem 2.5rem;
        border-radius: 12px;
    }

    /* Logged-in: free-note hidden, redistribute its space to drop zone */
    .logged-in .landing-upload .drop-zone {
        margin-top: 1.75rem;
        padding-top: 2.75rem;
    }

    /* Tighter spacing so CTA + disclaimer fit above fold */
    .landing-upload .mb-6 {
        margin-bottom: 1rem;
    }

    .drop-zone-icon {
        width: 32px;
        height: 32px;
        margin-bottom: 8px;
    }

    .landing-section {
        padding: 3rem 0;
    }

    .landing-section-inner {
        padding: 0 1rem;
    }

    .landing-section h2 {
        font-size: 1.375rem;
    }

    /* Pricing cards stack on mobile */
    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .pricing-card--primary {
        border-width: 2px;
        padding: 2rem 1.5rem;
    }

    /* iOS zoom prevention for inputs/selects */
    .select-field {
        font-size: 1rem;
    }

    /* Touch targets */
    .btn-cta,
    .btn-primary {
        min-height: 48px;
    }

    .select-field {
        min-height: 48px;
        padding: 0.75rem 1rem;
    }

    .landing-login-btn {
        min-height: 44px;
        min-width: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Comparison table: horizontal scroll, don't crush columns */
    .comparison-table-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: 0 -1rem;
        padding: 0 1rem;
    }

    .comparison-table {
        min-width: 520px;
    }

    /* Audience cards: tighter on mobile */
    .audience-card {
        padding: 1rem 1.125rem;
    }

    /* Document comparison: stack vertically */
    .doc-comparison {
        grid-template-columns: 1fr;
    }

    .example-heading {
        font-size: 1.125rem;
    }

    /* Annotations: wrap on mobile, bigger text */
    .annotation {
        flex-wrap: wrap;
        font-size: 0.875rem;
        gap: 0.25rem 0.5rem;
    }

    .annotation-text {
        flex-basis: 100%;
        font-size: 0.8125rem;
    }

    /* Drop zone: hide drag text, show tap text */
    .drop-zone-title--desktop { display: none; }
    .drop-zone-title--mobile { display: block; }
}

/* Safe area for iPhone notch */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    .landing-footer {
        padding-bottom: calc(2rem + env(safe-area-inset-bottom));
    }
}
