/* Dog Food Calculator - Premium Design */
/* Inspired by Apple, Stripe, Linear - Elite tier design */

/* ===== CSS VARIABLES ===== */
:root {
    /* Colors - Refined palette */
    --primary: #f97316;
    --primary-dark: #ea580c;
    --primary-light: #fb923c;
    --primary-muted: #fdba74;
    --primary-subtle: #ffedd5;

    --accent: #78350f;
    --accent-light: #92400e;

    --amber: #fbbf24;
    --amber-light: #fef3c7;

    --neutral-900: #1c1917;
    --neutral-800: #292524;
    --neutral-700: #44403c;
    --neutral-600: #57534e;
    --neutral-500: #78716c;
    --neutral-400: #a8a29e;
    --neutral-300: #d6d3d1;
    --neutral-200: #e7e5e4;
    --neutral-100: #f5f5f4;
    --neutral-50: #fafaf9;

    --white: #ffffff;
    --black: #000000;

    /* Semantic */
    --text-primary: var(--neutral-900);
    --text-secondary: var(--neutral-600);
    --text-tertiary: var(--neutral-500);
    --text-inverse: var(--white);

    --bg-primary: var(--white);
    --bg-secondary: var(--neutral-50);
    --bg-tertiary: var(--neutral-100);
    --bg-warm: #fffbf5;

    --border-default: var(--neutral-200);
    --border-strong: var(--neutral-300);

    /* Shadows - Layered depth */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.04), 0 2px 4px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 12px 24px rgba(0, 0, 0, 0.06), 0 4px 8px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 24px 48px rgba(0, 0, 0, 0.08), 0 12px 24px rgba(0, 0, 0, 0.04);
    --shadow-glow: 0 0 40px rgba(249, 115, 22, 0.15);
    --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.04), 0 6px 16px rgba(0, 0, 0, 0.06);

    /* Radius */
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-2xl: 24px;
    --radius-full: 9999px;

    /* Spacing - 4px base */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-8: 32px;
    --space-10: 40px;
    --space-12: 48px;
    --space-16: 64px;
    --space-20: 80px;
    --space-24: 96px;
    --space-32: 128px;

    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;

    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    --text-5xl: 3rem;

    --leading-tight: 1.25;
    --leading-snug: 1.375;
    --leading-normal: 1.5;
    --leading-relaxed: 1.625;

    /* Layout */
    --max-width: 1200px;
    --content-width: 680px;

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 200ms ease;
    --transition-slow: 300ms ease;
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body {
    font-family: var(--font-sans);
    font-size: var(--text-base);
    line-height: var(--leading-relaxed);
    color: var(--text-primary);
    background-color: var(--bg-warm);
    min-height: 100vh;
}

/* ===== LAYOUT ===== */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-6);
}

/* ===== HEADER / HERO ===== */
.site-header {
    background: linear-gradient(180deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--text-inverse);
    padding: var(--space-16) var(--space-6) var(--space-20);
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Subtle pattern overlay */
.site-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 20% 50%, rgba(255,255,255,0.1) 0%, transparent 50%),
                      radial-gradient(circle at 80% 50%, rgba(255,255,255,0.08) 0%, transparent 40%);
    pointer-events: none;
}

/* Bottom curve for smooth transition */
.site-header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 80px;
    background: var(--bg-warm);
    border-radius: 100% 100% 0 0 / 100% 100% 0 0;
}

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

.site-header h1 {
    font-size: clamp(var(--text-3xl), 6vw, var(--text-5xl));
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: var(--leading-tight);
    margin-bottom: var(--space-4);
}

.site-header .icon {
    display: inline-block;
    margin-right: var(--space-2);
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.site-header .tagline {
    font-size: clamp(var(--text-lg), 3vw, var(--text-xl));
    font-weight: 400;
    opacity: 0.9;
    max-width: 500px;
    margin: 0 auto;
}

/* ===== MAIN ===== */
main {
    position: relative;
    z-index: 2;
    margin-top: calc(var(--space-16) * -1);
    padding-bottom: var(--space-24);
}

/* ===== QUICK ANSWER - Featured Card ===== */
.quick-answer {
    background: var(--bg-primary);
    border-radius: var(--radius-2xl);
    padding: var(--space-8);
    margin-bottom: var(--space-12);
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
}

/* Accent top border */
.quick-answer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--amber));
}

.quick-answer h2 {
    color: var(--text-primary);
    font-size: var(--text-xl);
    font-weight: 700;
    margin-bottom: var(--space-4);
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.quick-answer h2::before {
    content: '💡';
    font-size: var(--text-2xl);
}

.quick-answer > p {
    font-size: var(--text-lg);
    color: var(--text-secondary);
    margin-bottom: var(--space-3);
    max-width: 600px;
}

.quick-answer > p:first-of-type {
    color: var(--text-primary);
    font-weight: 500;
}

mark {
    background: linear-gradient(120deg, var(--amber-light) 0%, var(--primary-subtle) 100%);
    padding: 0.1em 0.4em;
    border-radius: var(--radius-sm);
    font-weight: 600;
    color: var(--accent);
}

/* Quick Table */
.quick-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: var(--space-6) 0;
    font-size: var(--text-sm);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-default);
}

.quick-table caption {
    text-align: left;
    font-weight: 600;
    font-size: var(--text-sm);
    color: var(--text-tertiary);
    margin-bottom: var(--space-3);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.quick-table th {
    background: var(--neutral-800);
    color: var(--white);
    font-weight: 600;
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: var(--space-4);
    text-align: left;
}

.quick-table td {
    padding: var(--space-4);
    border-bottom: 1px solid var(--border-default);
}

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

.quick-table tbody tr {
    transition: background var(--transition-fast);
}

.quick-table tbody tr:nth-child(even) {
    background: var(--bg-secondary);
}

.quick-table tbody tr:hover {
    background: var(--primary-subtle);
}

.quick-table tfoot td {
    font-size: var(--text-xs);
    color: var(--text-tertiary);
    background: var(--bg-tertiary);
    padding: var(--space-3) var(--space-4);
}

.source {
    font-size: var(--text-sm);
    color: var(--text-tertiary);
    margin-top: var(--space-6);
    padding-top: var(--space-4);
    border-top: 1px solid var(--border-default);
}

/* ===== CALCULATOR SECTION ===== */
.calculator-section {
    background: var(--bg-primary);
    border-radius: var(--radius-2xl);
    padding: var(--space-8);
    margin-bottom: var(--space-12);
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-default);
}

.calculator-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
}

.form-section {
    background: var(--bg-secondary);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    border: 1px solid transparent;
    transition: all var(--transition-base);
}

.form-section:hover {
    background: var(--bg-tertiary);
}

.form-section:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-subtle);
}

.form-section h2 {
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-5);
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: var(--primary);
    color: var(--white);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: 700;
}

/* ===== FORM ELEMENTS ===== */
.form-group {
    margin-bottom: var(--space-5);
}

.form-group:last-child {
    margin-bottom: 0;
}

.form-group > label {
    display: block;
    font-weight: 500;
    font-size: var(--text-sm);
    color: var(--text-secondary);
    margin-bottom: var(--space-2);
}

.input-with-toggle {
    display: flex;
    gap: var(--space-3);
}

.input-with-toggle input {
    flex: 1;
    min-width: 0;
}

input[type="number"],
select {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    font-size: var(--text-base);
    font-family: inherit;
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: all var(--transition-fast);
}

input[type="number"]:hover,
select:hover {
    border-color: var(--border-strong);
}

input[type="number"]:focus,
select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-subtle);
}

input[type="number"]::placeholder {
    color: var(--text-tertiary);
}

select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20' fill='%2378716c'%3E%3Cpath d='M6 8l4 4 4-4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right var(--space-3) center;
    padding-right: var(--space-10);
}

.help-text {
    display: block;
    font-size: var(--text-xs);
    color: var(--text-tertiary);
    margin-top: var(--space-2);
}

/* Unit Toggle */
.unit-toggle {
    display: flex;
    background: var(--bg-primary);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.unit-btn {
    padding: var(--space-3) var(--space-4);
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: var(--text-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
    font-family: inherit;
}

.unit-btn.active {
    background: var(--primary);
    color: var(--white);
}

.unit-btn:hover:not(.active) {
    background: var(--bg-tertiary);
}

/* Radio Groups */
.radio-group {
    display: flex;
    gap: var(--space-3);
    flex-wrap: wrap;
}

.radio-group.vertical {
    flex-direction: column;
}

.radio-label {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    cursor: pointer;
    padding: var(--space-3) var(--space-4);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    background: var(--bg-primary);
    flex: 1;
    min-width: fit-content;
}

.radio-group.vertical .radio-label {
    flex: none;
}

.radio-label:hover {
    border-color: var(--primary-muted);
    background: var(--primary-subtle);
}

.radio-label:has(input:checked) {
    border-color: var(--primary);
    background: var(--primary-subtle);
}

.radio-label input {
    display: none;
}

.radio-custom {
    width: 18px;
    height: 18px;
    border: 2px solid var(--border-strong);
    border-radius: var(--radius-full);
    flex-shrink: 0;
    margin-top: 2px;
    transition: all var(--transition-fast);
    background: var(--bg-primary);
    position: relative;
}

.radio-label input:checked + .radio-custom {
    border-color: var(--primary);
    background: var(--primary);
}

.radio-label input:checked + .radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    background: var(--white);
    border-radius: var(--radius-full);
}

.radio-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.radio-text strong {
    font-weight: 500;
    font-size: var(--text-sm);
    color: var(--text-primary);
}

.radio-text small {
    font-size: var(--text-xs);
    color: var(--text-tertiary);
    line-height: var(--leading-snug);
}

/* Calculate Button */
.calculate-btn {
    width: 100%;
    padding: var(--space-4) var(--space-8);
    font-size: var(--text-base);
    font-weight: 600;
    font-family: inherit;
    color: var(--white);
    background: var(--primary);
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-base);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.calculate-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.calculate-btn:active {
    transform: translateY(0);
}

.calculate-btn .icon {
    font-size: 1.2em;
    margin: 0;
}

/* ===== RESULTS SECTION ===== */
.results-section {
    margin-top: var(--space-10);
    padding-top: var(--space-10);
    border-top: 1px solid var(--border-default);
    animation: fadeUp 0.4s ease;
}

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

.results-section h2 {
    font-size: var(--text-xl);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-6);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
}

.results-grid {
    display: grid;
    gap: var(--space-4);
    margin-bottom: var(--space-6);
}

.result-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    text-align: center;
    border: 1px solid var(--border-default);
}

.result-card.highlight {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    border: none;
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.result-label {
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-2);
    opacity: 0.8;
}

.result-value {
    font-size: var(--text-4xl);
    font-weight: 700;
    line-height: var(--leading-tight);
}

.result-card.highlight .result-value {
    font-size: var(--text-5xl);
}

.cups-visual {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin-top: var(--space-3);
    font-size: var(--text-2xl);
}

/* Feeding Schedule */
.feeding-schedule {
    background: var(--bg-secondary);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    margin-bottom: var(--space-6);
    border: 1px solid var(--border-default);
}

.feeding-schedule h3 {
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-4);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.schedule-grid {
    display: grid;
    gap: var(--space-3);
}

.schedule-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-3) var(--space-4);
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-default);
}

.schedule-item .meal-name {
    font-weight: 500;
    color: var(--text-primary);
    font-size: var(--text-sm);
}

.schedule-item .meal-amount {
    font-weight: 600;
    color: var(--primary-dark);
}

/* Additional Info */
.additional-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
    margin-bottom: var(--space-6);
}

.info-item {
    background: var(--bg-secondary);
    padding: var(--space-4);
    border-radius: var(--radius-lg);
    text-align: center;
    border: 1px solid var(--border-default);
}

.info-label {
    font-size: var(--text-xs);
    color: var(--text-tertiary);
    margin-bottom: var(--space-1);
    display: block;
}

.info-value {
    font-weight: 600;
    color: var(--text-primary);
    font-size: var(--text-base);
}

.recalculate-btn {
    width: 100%;
    padding: var(--space-3) var(--space-6);
    font-size: var(--text-sm);
    font-weight: 500;
    font-family: inherit;
    color: var(--primary);
    background: transparent;
    border: 1px solid var(--primary);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.recalculate-btn:hover {
    background: var(--primary);
    color: var(--white);
}

/* ===== SECTION SPACING ===== */
.charts-section,
.formula-section,
.faq-section {
    margin-bottom: var(--space-16);
}

/* ===== CHARTS SECTION ===== */
.charts-section > h2,
.formula-section > h2,
.faq-section > h2 {
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-8);
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.chart-card {
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    margin-bottom: var(--space-6);
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-default);
}

.chart-card:last-child {
    margin-bottom: 0;
}

.chart-card h3 {
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-4);
    padding-bottom: var(--space-3);
    border-bottom: 1px solid var(--border-default);
}

.chart-card table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: var(--text-sm);
}

.chart-card caption {
    text-align: left;
    font-size: var(--text-xs);
    color: var(--text-tertiary);
    margin-bottom: var(--space-3);
}

.chart-card th {
    background: var(--neutral-800);
    color: var(--white);
    font-weight: 600;
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: var(--space-3) var(--space-4);
    text-align: left;
}

.chart-card th:first-child {
    border-radius: var(--radius-md) 0 0 0;
}

.chart-card th:last-child {
    border-radius: 0 var(--radius-md) 0 0;
}

.chart-card td {
    padding: var(--space-3) var(--space-4);
    border-bottom: 1px solid var(--border-default);
}

.chart-card tbody tr:last-child td {
    border-bottom: none;
}

.chart-card tbody tr {
    transition: background var(--transition-fast);
}

.chart-card tbody tr:nth-child(even) {
    background: var(--bg-secondary);
}

.chart-card tbody tr:hover {
    background: var(--primary-subtle);
}

.chart-card tfoot td {
    font-size: var(--text-xs);
    color: var(--text-tertiary);
    background: var(--bg-tertiary);
    padding: var(--space-3) var(--space-4);
}

/* ===== FORMULA SECTION ===== */
.formula-section {
    background: var(--bg-primary);
    border-radius: var(--radius-2xl);
    padding: var(--space-8);
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-default);
}

.formula-section > h2 {
    margin-bottom: var(--space-6);
}

.formula-card {
    margin-bottom: var(--space-6);
    padding-bottom: var(--space-6);
    border-bottom: 1px solid var(--border-default);
}

.formula-card:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.formula-card h3 {
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-3);
}

.formula-card p {
    color: var(--text-secondary);
    margin-bottom: var(--space-3);
}

.formula-box {
    background: var(--bg-secondary);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
    padding: var(--space-5);
    margin: var(--space-4) 0;
    text-align: center;
}

.formula-box code {
    font-family: var(--font-mono);
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--primary-dark);
}

.multiplier-table {
    width: 100%;
    margin-top: var(--space-4);
    border-collapse: separate;
    border-spacing: 0;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-default);
    font-size: var(--text-sm);
}

.multiplier-table caption {
    text-align: left;
    font-size: var(--text-xs);
    color: var(--text-tertiary);
    margin-bottom: var(--space-3);
}

.multiplier-table th,
.multiplier-table td {
    padding: var(--space-3) var(--space-4);
    text-align: left;
}

.multiplier-table th {
    background: var(--accent);
    color: var(--white);
    font-weight: 600;
}

.multiplier-table tbody tr:nth-child(even) {
    background: var(--bg-secondary);
}

/* ===== FAQ SECTION ===== */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.faq-item {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-default);
    transition: all var(--transition-fast);
}

.faq-item:hover {
    border-color: var(--border-strong);
}

.faq-item[open] {
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.faq-item summary {
    padding: var(--space-4) var(--space-5);
    font-weight: 500;
    font-size: var(--text-sm);
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-4);
    transition: background var(--transition-fast);
    line-height: var(--leading-snug);
}

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

.faq-item summary::after {
    content: '+';
    font-size: var(--text-xl);
    font-weight: 300;
    color: var(--primary);
    transition: transform var(--transition-base);
    flex-shrink: 0;
}

.faq-item[open] summary::after {
    transform: rotate(45deg);
}

.faq-item summary:hover {
    background: var(--bg-secondary);
}

.faq-item p {
    padding: 0 var(--space-5) var(--space-5);
    color: var(--text-secondary);
    font-size: var(--text-sm);
    line-height: var(--leading-relaxed);
}

/* ===== DISCLAIMER ===== */
.disclaimer {
    background: var(--amber-light);
    border: 1px solid var(--amber);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    margin-bottom: var(--space-16);
}

.disclaimer h3 {
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--accent);
    margin-bottom: var(--space-3);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.disclaimer p {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    margin-bottom: var(--space-2);
}

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

/* ===== FOOTER ===== */
.site-footer {
    background: var(--neutral-900);
    color: var(--white);
    padding: var(--space-12) var(--space-6);
}

.footer-content {
    text-align: center;
    max-width: var(--content-width);
    margin: 0 auto;
}

.footer-brand {
    font-size: var(--text-xl);
    font-weight: 600;
    margin-bottom: var(--space-4);
}

.footer-sources {
    font-size: var(--text-sm);
    color: var(--neutral-400);
    margin-bottom: var(--space-4);
    line-height: var(--leading-relaxed);
}

.footer-sources strong {
    color: var(--white);
}

.footer-sources a {
    color: var(--primary-muted);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-sources a:hover {
    color: var(--primary);
}

.footer-copy {
    font-size: var(--text-xs);
    color: var(--neutral-500);
}

/* ===== RESPONSIVE - TABLET (640px+) ===== */
@media (min-width: 640px) {
    .site-header {
        padding: var(--space-20) var(--space-8) var(--space-24);
    }

    .site-header::after {
        height: 100px;
    }

    main {
        margin-top: calc(var(--space-20) * -1);
    }

    .quick-answer,
    .calculator-section,
    .formula-section {
        padding: var(--space-10);
    }

    .results-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .schedule-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .radio-group:not(.vertical) .radio-label {
        justify-content: center;
    }

    .radio-group:not(.vertical) .radio-text {
        align-items: center;
    }
}

/* ===== RESPONSIVE - DESKTOP (900px+) ===== */
@media (min-width: 900px) {
    .container {
        padding: 0 var(--space-10);
    }

    .site-header {
        padding: var(--space-24) var(--space-10) var(--space-32);
    }

    .site-header::after {
        height: 120px;
    }

    main {
        margin-top: calc(var(--space-24) * -1);
    }

    /* Two-column calculator layout */
    .calculator-form {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-6);
    }

    .calculator-form .calculate-btn {
        grid-column: 1 / -1;
    }

    .quick-answer,
    .calculator-section,
    .formula-section,
    .chart-card {
        padding: var(--space-10);
    }

    .result-card.highlight .result-value {
        font-size: 4rem;
    }

    /* FAQ two columns */
    .faq-list {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-4);
    }
}

/* ===== RESPONSIVE - LARGE DESKTOP (1200px+) ===== */
@media (min-width: 1200px) {
    /* Charts side by side */
    .charts-section {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-6);
    }

    .charts-section > h2 {
        grid-column: 1 / -1;
    }

    .chart-card {
        margin-bottom: 0;
    }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

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

.skip-link {
    position: absolute;
    top: -100%;
    left: var(--space-4);
    background: var(--primary);
    color: var(--white);
    padding: var(--space-3) var(--space-4);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    font-weight: 500;
    z-index: 1000;
    transition: top var(--transition-fast);
}

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

/* ===== PRINT ===== */
@media print {
    .site-header,
    .site-footer,
    .calculate-btn,
    .recalculate-btn {
        display: none;
    }

    body {
        background: white;
        color: black;
    }

    main {
        margin-top: 0;
    }

    .calculator-section,
    .chart-card,
    .quick-answer,
    .formula-section {
        box-shadow: none;
        border: 1px solid #ddd;
        break-inside: avoid;
    }
}
