/* ===== Design System ===== */
:root {
    --white: #FFFFFF;
    --bg: #FAFBFC;
    --gray-50: #F8F9FA;
    --gray-100: #F1F3F5;
    --gray-200: #E9ECEF;
    --gray-300: #DEE2E6;
    --gray-400: #ADB5BD;
    --gray-500: #868E96;
    --gray-600: #6C757D;
    --gray-700: #495057;
    --gray-800: #343A40;
    --gray-900: #212529;

    --blue-50: #EBF3FF;
    --blue-100: #D0E2FF;
    --blue-400: #4F8CFF;
    --blue-500: #3B7DFF;
    --blue-600: #2563EB;

    --orange-50: #FFF6E8;
    --orange-100: #FFEDCC;
    --orange-400: #FFB547;
    --orange-500: #F59E0B;

    --red-50: #FEF2F2;
    --red-100: #FEE2E2;
    --red-400: #F87171;
    --red-500: #EF4444;

    --green-50: #ECFDF5;
    --green-100: #D1FAE5;
    --green-400: #34D399;
    --green-500: #10B981;

    --yellow-50: #FFFBEB;
    --yellow-100: #FEF3C7;
    --yellow-400: #FBBF24;
    --yellow-500: #F59E0B;

    --font-sans: 'Inter', 'Noto Sans TC', -apple-system, BlinkMacSystemFont, sans-serif;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
    --shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.05), 0 2px 4px rgba(0,0,0,0.04);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.06), 0 4px 6px rgba(0,0,0,0.04);
    --radius-sm: 6px;
    --radius: 10px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --transition: 0.2s ease;
}

/* ===== Reset ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    background: var(--white);
    color: var(--gray-800);
    line-height: 1.6;
    font-size: 15px;
}

/* ===== Utility ===== */
.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 24px;
}

.hidden {
    display: none !important;
}

/* ===== Section ===== */
.section {
    padding: 64px 0;
}

.section:nth-child(even) {
    background: var(--gray-50);
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-number {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    color: var(--blue-500);
    background: var(--blue-50);
    padding: 4px 14px;
    border-radius: 100px;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.section-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.section-desc {
    font-size: 15px;
    color: var(--gray-500);
}

/* ===== Hero ===== */
#hero {
    background: linear-gradient(160deg, var(--white) 0%, var(--blue-50) 50%, var(--gray-50) 100%);
    padding: 100px 24px 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

#hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(79,140,255,0.06) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-container {
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    color: var(--blue-600);
    background: var(--white);
    border: 1px solid var(--blue-100);
    padding: 6px 16px;
    border-radius: 100px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
}

#hero h1 {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 8px;
    letter-spacing: -0.03em;
}

.hero-subtitle {
    font-size: clamp(18px, 3vw, 24px);
    font-weight: 400;
    color: var(--blue-500);
    margin-bottom: 20px;
}

.hero-desc {
    font-size: 15px;
    color: var(--gray-500);
    line-height: 1.7;
    margin-bottom: 32px;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 14px 32px;
    background: var(--blue-600);
    color: var(--white);
    border-radius: 100px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all var(--transition);
    box-shadow: 0 4px 14px rgba(37,99,235,0.3);
}

.hero-cta:hover {
    background: var(--blue-500);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37,99,235,0.4);
}

/* ===== Data Input ===== */
.input-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}

.input-card {
    background: var(--white);
    border: 2px dashed var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 36px 24px;
    text-align: center;
    transition: all var(--transition);
}

.upload-card {
    cursor: pointer;
    position: relative;
}

.upload-card:hover, .upload-card.drag-over {
    border-color: var(--blue-400);
    background: var(--blue-50);
}

.upload-card.drag-over {
    border-style: solid;
}

.upload-icon {
    color: var(--gray-400);
    margin-bottom: 16px;
}

.upload-card:hover .upload-icon {
    color: var(--blue-500);
}

.upload-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 6px;
}

.upload-hint {
    font-size: 13px;
    color: var(--gray-500);
    margin-bottom: 8px;
}

.upload-link {
    color: var(--blue-500);
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.upload-formats {
    font-size: 12px;
    color: var(--gray-400);
}

.paste-card {
    border-style: solid;
    border-color: var(--gray-200);
    text-align: left;
    display: flex;
    flex-direction: column;
}

.paste-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 12px;
}

.paste-header svg {
    color: var(--gray-400);
}

#pasteArea {
    flex: 1;
    min-height: 100px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    padding: 12px;
    font-family: var(--font-sans);
    font-size: 13px;
    color: var(--gray-700);
    resize: vertical;
    outline: none;
    transition: border-color var(--transition);
}

#pasteArea:focus {
    border-color: var(--blue-400);
}

#pasteArea::placeholder {
    color: var(--gray-400);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    border: none;
}

.btn-primary {
    background: var(--blue-600);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--blue-500);
}

.btn-outline {
    background: transparent;
    color: var(--blue-600);
    border: 1.5px solid var(--blue-200);
    margin-top: 12px;
}

.btn-outline:hover {
    background: var(--blue-50);
    border-color: var(--blue-400);
}

/* Sample Data */
.sample-data-section {
    text-align: center;
    padding: 24px 0;
}

.sample-label {
    font-size: 13px;
    color: var(--gray-500);
    margin-bottom: 14px;
}

.sample-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.sample-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--white);
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius);
    cursor: pointer;
    font-family: var(--font-sans);
    font-size: 13px;
    color: var(--gray-700);
    transition: all var(--transition);
    box-shadow: var(--shadow-sm);
}

.sample-btn:hover {
    border-color: var(--blue-300);
    box-shadow: var(--shadow);
    transform: translateY(-1px);
}

.sample-icon {
    font-size: 18px;
}

.sample-name {
    font-weight: 500;
}

.sample-tag {
    font-size: 10px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 100px;
    letter-spacing: 0.5px;
}

.tag-normal {
    color: var(--green-500);
    background: var(--green-50);
}

.tag-anomaly {
    color: var(--red-500);
    background: var(--red-50);
}

/* Column Selector */
.column-selector {
    background: var(--blue-50);
    border: 1px solid var(--blue-100);
    border-radius: var(--radius);
    padding: 20px;
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.selector-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--gray-700);
    flex: 1;
    min-width: 200px;
}

.selector-header svg {
    color: var(--blue-500);
    flex-shrink: 0;
}

#columnSelect {
    padding: 8px 16px;
    border: 1px solid var(--blue-200);
    border-radius: var(--radius-sm);
    font-family: var(--font-sans);
    font-size: 14px;
    background: var(--white);
    outline: none;
    min-width: 150px;
}

/* Data Preview */
.data-preview {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    margin-top: 20px;
    overflow: hidden;
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-700);
}

.preview-count {
    font-weight: 400;
    color: var(--gray-500);
}

.preview-table {
    padding: 8px;
    max-height: 300px;
    overflow-y: auto;
}

.preview-table table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.preview-table th {
    background: var(--gray-50);
    padding: 8px 12px;
    text-align: left;
    font-weight: 600;
    color: var(--gray-600);
    border-bottom: 1px solid var(--gray-200);
    position: sticky;
    top: 0;
}

.preview-table td {
    padding: 8px 12px;
    border-bottom: 1px solid var(--gray-100);
    color: var(--gray-700);
}

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

/* ===== Applicability Check ===== */
.check-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.check-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 24px 16px;
    text-align: center;
    transition: all var(--transition);
    box-shadow: var(--shadow-sm);
}

.check-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    background: var(--gray-100);
}

.check-card.status-green .check-icon {
    background: var(--green-50);
}
.check-card.status-green .check-icon::after { content: '✅'; }

.check-card.status-yellow .check-icon {
    background: var(--yellow-50);
}
.check-card.status-yellow .check-icon::after { content: '⚠️'; }

.check-card.status-red .check-icon {
    background: var(--red-50);
}
.check-card.status-red .check-icon::after { content: '❌'; }

.check-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-600);
    margin-bottom: 6px;
}

.check-value {
    font-size: 16px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 6px;
    word-break: break-word;
}

.check-hint {
    font-size: 11px;
    color: var(--gray-500);
    line-height: 1.4;
}

/* ===== Analysis Blocks (all charts visible) ===== */
.analysis-block {
    margin-bottom: 40px;
}

.analysis-block:last-child {
    margin-bottom: 0;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Chart Wrapper */
.chart-wrapper {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 20px;
    position: relative;
}

/* Summary Cards */
.summary-cards {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.summary-card {
    flex: 1;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 16px;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.summary-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--gray-500);
    margin-bottom: 4px;
}

.summary-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--gray-900);
}

.conformity-high {
    color: var(--green-500) !important;
}

.conformity-marginal {
    color: var(--yellow-500) !important;
}

.conformity-low {
    color: var(--red-500) !important;
}

/* Anomaly List */
.anomaly-list {
    background: var(--red-50);
    border: 1px solid var(--red-100);
    border-radius: var(--radius);
    padding: 16px 20px;
}

.anomaly-list h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--red-500);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.anomaly-item {
    font-size: 13px;
    color: var(--gray-700);
    padding: 6px 0;
    border-bottom: 1px solid var(--red-100);
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

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

.anomaly-digit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: var(--red-500);
    color: var(--white);
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}

.anomaly-desc {
    flex: 1;
    line-height: 1.5;
}

/* Pattern Card */
.pattern-card {
    background: var(--yellow-50);
    border: 1px solid var(--yellow-100);
    border-radius: var(--radius);
    padding: 16px 20px;
    margin-top: 12px;
}

.pattern-card h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--yellow-500);
    margin-bottom: 8px;
}

.pattern-card p {
    font-size: 13px;
    color: var(--gray-700);
    line-height: 1.6;
}

/* Heatmap */
.heatmap-wrapper {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 16px;
    position: relative;
    overflow-x: auto;
}

.heatmap-wrapper canvas {
    display: block;
    margin: 0 auto;
}

.heatmap-tooltip {
    position: fixed;
    background: var(--gray-900);
    color: var(--white);
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    pointer-events: none;
    z-index: 100;
    box-shadow: var(--shadow-lg);
    line-height: 1.5;
}

.heatmap-legend {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.legend-label {
    font-size: 12px;
    color: var(--gray-500);
}

.legend-gradient {
    width: 200px;
    height: 12px;
    border-radius: 6px;
    background: linear-gradient(to right, #10B981, #FBBF24, #EF4444);
}

.ftd-detail {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 16px 20px;
    font-size: 13px;
    color: var(--gray-700);
}

/* ===== Report ===== */
.report-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.report-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.report-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 20px;
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
    font-size: 15px;
    font-weight: 600;
    color: var(--gray-800);
}

.report-card-header svg {
    color: var(--gray-500);
}

.report-body {
    padding: 20px;
}

.report-verdict {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
}

.verdict-safe {
    color: var(--green-500);
}

.verdict-warning {
    color: var(--yellow-500);
}

.verdict-danger {
    color: var(--red-500);
}

.report-verdict-desc {
    font-size: 14px;
    color: var(--gray-600);
    line-height: 1.6;
}

.report-anomaly-item {
    display: flex;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--gray-100);
    font-size: 14px;
}

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

.suggestion-list {
    list-style: none;
}

.suggestion-list li {
    padding: 10px 0;
    border-bottom: 1px solid var(--gray-100);
    font-size: 14px;
    color: var(--gray-700);
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.suggestion-list li:last-child {
    border-bottom: none;
}

.suggestion-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: var(--blue-50);
    color: var(--blue-600);
    border-radius: 50%;
    font-weight: 700;
    font-size: 12px;
    flex-shrink: 0;
}

/* ===== Export ===== */
.export-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.export-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: var(--white);
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius);
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-700);
    cursor: pointer;
    transition: all var(--transition);
    box-shadow: var(--shadow-sm);
}

.export-btn:hover {
    border-color: var(--blue-300);
    color: var(--blue-600);
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.export-btn svg {
    color: var(--gray-400);
}

.export-btn:hover svg {
    color: var(--blue-500);
}

/* ===== Knowledge Accordion ===== */
.accordion-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.accordion {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.accordion-header {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 18px 20px;
    border: none;
    background: transparent;
    font-family: var(--font-sans);
    font-size: 15px;
    font-weight: 600;
    color: var(--gray-800);
    cursor: pointer;
    transition: background var(--transition);
    text-align: left;
}

.accordion-header:hover {
    background: var(--gray-50);
}

.accordion-icon {
    font-size: 18px;
}

.accordion-arrow {
    margin-left: auto;
    color: var(--gray-400);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.accordion.open .accordion-arrow {
    transform: rotate(180deg);
}

.accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
    padding: 0 20px;
}

.accordion.open .accordion-body {
    max-height: 1200px;
    padding: 0 20px 24px;
}

.accordion-body p {
    font-size: 14px;
    color: var(--gray-700);
    line-height: 1.7;
    margin-bottom: 12px;
}

.formula-box {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    padding: 14px 20px;
    font-family: 'Inter', monospace;
    font-size: 15px;
    font-weight: 500;
    color: var(--gray-800);
    text-align: center;
    margin: 16px 0;
    letter-spacing: 0.5px;
}

.history-table {
    margin-top: 16px;
}

.history-table h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 10px;
}

.history-table table,
.pattern-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.history-table td,
.pattern-table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--gray-100);
    color: var(--gray-700);
}

.history-table td:first-child {
    font-weight: 600;
    color: var(--blue-600);
    white-space: nowrap;
    width: 60px;
}

.pattern-table td:first-child {
    font-weight: 600;
    white-space: nowrap;
    color: var(--gray-800);
}

/* Two Column */
.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.col-yes h4, .col-no h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
}

.col-yes ul, .col-no ul {
    list-style: none;
}

.col-yes li, .col-no li {
    padding: 6px 0;
    font-size: 13px;
    color: var(--gray-700);
    position: relative;
    padding-left: 18px;
}

.col-yes li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--green-500);
    font-weight: 700;
}

.col-no li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--red-500);
    font-weight: 700;
}

/* Audit Flow */
.audit-flow {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.flow-step {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    padding: 12px 20px;
    width: 100%;
    max-width: 480px;
    font-size: 14px;
    color: var(--gray-700);
}

.flow-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: var(--blue-500);
    color: var(--white);
    border-radius: 50%;
    font-weight: 700;
    font-size: 13px;
    flex-shrink: 0;
}

.flow-arrow {
    color: var(--gray-400);
    font-size: 14px;
}

/* Case Cards */
.case-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.case-card {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    padding: 16px;
}

.case-card h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 6px;
}

.case-card p {
    font-size: 13px;
    color: var(--gray-600);
    line-height: 1.6;
    margin-bottom: 0;
}

/* Disclaimer */
.disclaimer-box {
    background: var(--yellow-50);
    border: 1px solid var(--yellow-100);
    border-radius: var(--radius-sm);
    padding: 20px;
}

.disclaimer-box p {
    margin-bottom: 12px;
}

.disclaimer-box ol {
    padding-left: 20px;
    font-size: 14px;
    color: var(--gray-700);
}

.disclaimer-box li {
    padding: 4px 0;
}

/* ===== Footer ===== */
#footer {
    background: var(--gray-50);
    border-top: 1px solid var(--gray-200);
    padding: 32px 0;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
}

.footer-privacy {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--gray-600);
}

.footer-privacy svg {
    color: var(--green-500);
}

.footer-refs {
    font-size: 12px;
    color: var(--gray-500);
}

.footer-refs a {
    color: var(--blue-500);
    text-decoration: none;
}

.footer-refs a:hover {
    text-decoration: underline;
}

.footer-copy {
    font-size: 12px;
    color: var(--gray-400);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .section {
        padding: 48px 0;
    }

    .input-grid {
        grid-template-columns: 1fr;
    }

    .check-grid {
        grid-template-columns: 1fr 1fr;
    }

    .sample-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .summary-cards {
        flex-direction: column;
    }

    .export-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .two-col {
        grid-template-columns: 1fr;
    }

    .case-cards {
        grid-template-columns: 1fr;
    }

    .analysis-tabs {
        flex-direction: column;
    }
}

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

    #hero {
        padding: 72px 16px 56px;
    }

    .check-grid {
        grid-template-columns: 1fr;
    }

    .section-header h2 {
        font-size: 22px;
    }
}
