﻿/* ===== AutoAI â€“ Design System ===== */

:root {
    --cream: #F4F8FD;
    --warm-white: #FFFFFF;
    --stone-100: #EAF2FB;
    --stone-200: #CFE1F5;
    --stone-400: #6A86A2;
    --stone-700: #31597F;
    --stone-900: #042C53;
    --accent: #185FA5;
    --accent-light: #EEF5FC;
    --accent-mid: #0F4D86;
    --amber: #378ADD;
    --amber-light: #EEF5FC;
    --blue-dark: #042C53;
    --blue-light: #F0F6FD;
    --danger: #b91c1c;
    --font-heading: 'DM Serif Display', Georgia, serif;
    --font-display: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    --font-sans: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

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

body {
    font-family: var(--font-sans);
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.92), transparent 32%),
        radial-gradient(circle at 82% 18%, rgba(55, 138, 221, 0.14), transparent 28%),
        linear-gradient(180deg, #F4F8FD 0%, #EAF2FB 100%);
    color: var(--stone-900);
    font-size: 1rem;
    line-height: 1.7;
    font-weight: 400;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===== Layout ===== */
.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 3rem;
}

/* ===== FadeUp Animation ===== */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

.fade-up {
    animation: fadeUp 0.45s ease both;
}

.fade-up-d1 { animation-delay: 0.1s; }
.fade-up-d2 { animation-delay: 0.2s; }
.fade-up-d3 { animation-delay: 0.3s; }
.fade-up-d4 { animation-delay: 0.4s; }
.fade-up-d5 { animation-delay: 0.5s; }
.fade-up-d6 { animation-delay: 0.6s; }
.fade-up-d7 { animation-delay: 0.7s; }
.fade-up-d8 { animation-delay: 0.8s; }

/* ===== Navigation ===== */
.site-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--stone-200);
    padding: 0 3rem;
    box-shadow: 0 10px 26px rgba(4,44,83,0.05);
}

.site-nav .nav-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
    gap: 24px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
}

.nav-logo-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--accent), var(--accent-mid));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-logo-icon svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: #fff;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.nav-logo-text {
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--stone-900);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-links a {
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--stone-700);
    padding: 6px 12px;
    border-radius: 6px;
    transition: color 0.2s, background 0.2s;
}

.nav-links a:hover {
    color: var(--stone-900);
    background: var(--stone-100);
}

.nav-links a.active {
    color: var(--accent);
    font-weight: 500;
}

.nav-cta {
    background: linear-gradient(135deg, var(--accent), var(--accent-mid)) !important;
    color: var(--warm-white) !important;
    font-weight: 500 !important;
    padding: 7px 16px !important;
    border-radius: 999px !important;
    box-shadow: 0 18px 28px rgba(24,95,165,0.18);
    transition: transform 0.2s, box-shadow 0.2s !important;
}

.nav-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 20px 30px rgba(24,95,165,0.22);
}

/* ===== Page Header ===== */
.page-header {
    text-align: center;
    padding: 3.5rem 0 2.25rem;
}

.page-header h1 {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 600;
    color: var(--stone-900);
    margin-bottom: 0.5rem;
    letter-spacing: -0.03em;
}

.page-header p {
    font-size: 0.95rem;
    color: var(--stone-400);
    font-weight: 400;
    max-width: 64ch;
    margin: 0 auto;
}

.tool-hero {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--stone-200);
    border-radius: 28px;
    background:
        linear-gradient(135deg, rgba(255,255,255,0.96), rgba(238,245,252,0.92)),
        linear-gradient(180deg, rgba(255,255,255,0.4), transparent);
    box-shadow: 0 24px 48px rgba(24,95,165,0.10);
    margin-bottom: 1.25rem;
}

.tool-hero::before {
    content: '';
    position: absolute;
    inset: auto -110px -150px auto;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(55,138,221,0.16), transparent 68%);
}

.tool-hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
    gap: 18px;
    padding: 26px;
}

.tool-hero-copy {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.tool-pill {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    border-radius: 999px;
    padding: 7px 12px;
    background: rgba(24,95,165,0.1);
    color: var(--accent);
    font-size: 0.72rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.tool-hero-copy h2 {
    margin: 0;
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: var(--stone-900);
}

.tool-hero-copy p {
    margin: 0;
    max-width: 58ch;
    color: var(--stone-700);
    font-size: 0.95rem;
    line-height: 1.7;
}

.tool-kpi-grid {
    display: grid;
    gap: 12px;
}

.tool-kpi {
    border-radius: 18px;
    border: 1px solid var(--stone-200);
    background: rgba(255,255,255,0.88);
    padding: 16px;
}

.tool-kpi strong {
    display: block;
    font-size: 1rem;
    color: var(--stone-900);
    margin-bottom: 6px;
}

.tool-kpi span {
    display: block;
    font-size: 0.82rem;
    line-height: 1.55;
    color: var(--stone-400);
}

/* ===== Main Content ===== */
main.container {
    padding-top: 0;
    padding-bottom: 4rem;
}

/* ===== Form Sections (Cards) ===== */
.form-section {
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid var(--stone-200);
    border-radius: 24px;
    padding: 1.75rem;
    margin-bottom: 1rem;
    box-shadow: 0 18px 36px rgba(24,95,165,0.08);
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.form-section + .form-section {
    margin-top: 1rem;
}

.form-section h2 {
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--stone-400);
    margin-bottom: 0.75rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid var(--stone-200);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.form-group {
    flex: 1 1 200px;
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    flex: 1 1 100%;
}

label {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--stone-700);
    margin-bottom: 6px;
    display: block;
}

.required {
    color: var(--danger);
    font-weight: 400;
}

input[type="text"],
input[type="number"],
input[type="password"],
select,
textarea {
    padding: 0.65rem 1rem;
    border: 1px solid var(--stone-200);
    border-radius: 14px;
    font-size: 0.9rem;
    font-family: var(--font-sans);
    color: var(--stone-900);
    background: rgba(255,255,255,0.96);
    transition: border-color 0.2s, box-shadow 0.2s;
    width: 100%;
    font-weight: 400;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(24,95,165,0.12);
}

input.invalid,
select.invalid,
textarea.invalid {
    border-color: var(--danger);
    box-shadow: 0 0 0 3px rgba(185,28,28,0.08);
}

.vin-field {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

small {
    font-size: 0.75rem;
    color: var(--stone-400);
    margin-top: 5px;
}

textarea {
    resize: vertical;
    font-family: var(--font-sans);
}

/* ===== Power display ===== */
.power-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.power-wrapper input {
    flex: 1;
}

.hp-display {
    white-space: nowrap;
    font-size: 0.8rem;
    color: var(--stone-400);
    font-weight: 500;
    min-width: 70px;
}

/* ===== Tier Grid ===== */
.tier-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.tier-card {
    cursor: pointer;
    display: block;
    font-weight: 400;
    margin: 0;
}

.tier-card input[type="radio"] {
    display: none;
}

.tier-card-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
    padding: 20px 12px 16px;
    border: 1px solid var(--stone-200);
    border-radius: 18px;
    transition: all 0.2s ease;
    background: rgba(255,255,255,0.94);
}

.tier-card-inner:hover {
    border-color: var(--accent);
    background: var(--accent-light);
}

.tier-card input[type="radio"]:checked + .tier-card-inner {
    border-color: var(--accent);
    background: var(--accent-light);
    box-shadow: 0 0 0 2px rgba(24,95,165,0.18);
}

.tier-icon {
    font-size: 1.5rem;
    line-height: 1;
    opacity: 0.85;
}

.tier-card-inner strong {
    font-size: 0.82rem;
    color: var(--stone-900);
    font-weight: 500;
}

.tier-desc {
    font-size: 0.72rem;
    color: var(--stone-400);
    line-height: 1.35;
}

.tier-meta {
    font-size: 0.68rem;
    color: var(--accent);
    font-weight: 500;
    margin-top: 2px;
    letter-spacing: 0.01em;
}

/* ===== Checkbox Grid ===== */
.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 4px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 300;
    cursor: pointer;
    padding: 7px 10px;
    border-radius: 8px;
    transition: background 0.15s;
}

.checkbox-label:hover {
    background: var(--stone-100);
}

.checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--accent);
    cursor: pointer;
}

/* ===== Photo Upload ===== */
.photo-hint {
    font-size: 0.82rem;
    color: var(--stone-400);
    margin-bottom: 14px;
    line-height: 1.5;
}

.photo-upload-area {
    border: 2px dashed var(--stone-200);
    border-radius: 20px;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}

.photo-upload-area:hover,
.photo-upload-area.dragover {
    border-color: var(--accent);
    background: var(--accent-light);
}

.upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 32px 20px;
    color: var(--stone-400);
    font-size: 0.85rem;
}

.upload-placeholder small {
    font-size: 0.72rem;
    margin-top: 2px;
}

.upload-icon {
    font-size: 1.8rem;
    font-weight: 300;
    line-height: 1;
    color: var(--accent);
}

.photo-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 10px;
    margin-top: 12px;
}

.photo-preview-grid:empty {
    display: none;
}

.photo-thumb {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    border: 1px solid var(--stone-200);
}

.photo-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.photo-thumb-remove {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(0,0,0,0.6);
    color: #fff;
    border: none;
    font-size: 0.7rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: background 0.15s;
}

.photo-thumb-remove:hover {
    background: var(--danger);
}

/* ===== Buttons ===== */
.form-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 1rem;
}

#submitBtn,
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--accent), var(--accent-mid));
    color: var(--warm-white);
    border: none;
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    font-family: var(--font-sans);
    border-radius: 999px;
    cursor: pointer;
    box-shadow: 0 18px 28px rgba(24,95,165,0.18);
    transition: transform 0.15s, box-shadow 0.2s;
    letter-spacing: 0.02em;
    min-width: 220px;
}

#submitBtn:hover:not(:disabled),
.btn-primary:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 22px 30px rgba(24,95,165,0.22);
}

#submitBtn:active:not(:disabled),
.btn-primary:active:not(:disabled) {
    transform: translateY(0);
}

#submitBtn:disabled,
.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(255,255,255,0.86);
    color: var(--stone-700);
    border: 1px solid var(--stone-200);
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    font-family: var(--font-sans);
    border-radius: 999px;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
    letter-spacing: 0.02em;
}

.btn-secondary:hover {
    border-color: var(--accent);
    color: var(--stone-900);
    background: var(--accent-light);
}

/* ===== Spinner ===== */
.spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===== Result Section ===== */
.result-section {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 24px;
    padding: 1.75rem;
    margin-top: 1.25rem;
    border: 1px solid var(--stone-200);
    box-shadow: 0 18px 36px rgba(24,95,165,0.08);
}

@media (max-width: 980px) {
    .tool-hero-grid {
        grid-template-columns: 1fr;
    }
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--stone-200);
}

.result-header h2 {
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--stone-400);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border: none;
    padding: 0;
    margin: 0;
}

.copy-btn {
    background: rgba(255,255,255,0.86);
    color: var(--stone-700);
    border: 1px solid var(--stone-200);
    padding: 7px 16px;
    border-radius: 999px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 500;
    font-family: var(--font-sans);
    transition: all 0.2s;
    letter-spacing: 0.02em;
}

.copy-btn:hover {
    color: var(--stone-900);
    border-color: var(--accent);
}

.copy-btn.copied {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

/* ===== Result content ===== */
.result-content {
    font-size: 0.875rem;
    line-height: 1.7;
    color: var(--stone-700);
}

.result-content h1,
.result-content h2,
.result-content h3 {
    color: var(--stone-900);
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.result-content h1 { font-size: 1.25rem; font-weight: 500; }
.result-content h2 { font-size: 1rem; font-weight: 500; border-bottom: 1px solid var(--stone-200); padding-bottom: 6px; }
.result-content h3 { font-size: 0.95rem; font-weight: 500; }

.result-content p {
    margin-bottom: 12px;
}

.result-content ul,
.result-content ol {
    margin-bottom: 12px;
    padding-left: 24px;
}

.result-content li {
    margin-bottom: 4px;
}

.result-content strong {
    color: var(--stone-900);
    font-weight: 500;
}

.cache-notice {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .78rem;
    font-weight: 500;
    color: var(--stone-700);
    background: var(--stone-100);
    border: 1px solid var(--stone-200);
    border-radius: 999px;
    padding: 4px 12px;
    margin-bottom: 14px;
}
.cache-notice-fresh {
    color: #1a6b4a;
    background: #eaf7f2;
    border-color: #c8ebdd;
}

.result-content .price-highlight {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--accent);
    text-align: center;
    padding: 1.25rem;
    margin: 1.25rem 0;
    background: var(--accent-light);
    border-radius: 20px;
    border: 1px solid rgba(24,95,165,0.12);
}

.result-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 12px 0;
}

.result-content table th,
.result-content table td {
    padding: 9px 14px;
    border: 1px solid var(--stone-200);
    text-align: left;
    font-size: 0.85rem;
}

.result-content table th {
    background: var(--stone-100);
    font-weight: 500;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--stone-400);
}

.result-content table tr:hover td {
    background: rgba(0,0,0,0.012);
}

/* ===== Footer ===== */
.site-footer {
    border-top: 1px solid var(--stone-200);
    padding: 2rem 3rem;
    background: rgba(255,255,255,0.7);
}

.site-footer .footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-footer span {
    font-size: 0.8rem;
    color: var(--stone-400);
}

/* ===== Landing Page ===== */
.landing-main {
    padding-top: 2rem;
    padding-bottom: 4rem;
}

/* Hero */
.hero {
    text-align: center;
    padding: 5rem 3rem 3.5rem;
    background: linear-gradient(180deg, rgba(255,255,255,0.9) 0%, rgba(234,242,251,0.55) 100%);
}

.hero-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--accent);
    background: var(--accent-light);
    border: 1px solid rgba(24,95,165,0.12);
    padding: 5px 14px;
    border-radius: 20px;
    letter-spacing: 0.03em;
    margin-bottom: 1.5rem;
}

.hero-heading {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 600;
    color: var(--stone-900);
    line-height: 1.2;
    margin-bottom: 1.25rem;
    letter-spacing: -0.04em;
}

.hero-subtitle {
    font-size: 1.05rem;
    color: var(--stone-400);
    font-weight: 300;
    line-height: 1.7;
    max-width: 540px;
    margin: 0 auto 2rem;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-hero-primary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, var(--accent), var(--accent-mid));
    color: var(--warm-white);
    text-decoration: none;
    padding: 0.8rem 1.6rem;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 18px 28px rgba(24,95,165,0.18);
    transition: transform 0.15s, box-shadow 0.2s;
    letter-spacing: 0.02em;
}

.btn-hero-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 22px 30px rgba(24,95,165,0.22);
}

.btn-hero-secondary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.86);
    color: var(--stone-700);
    text-decoration: none;
    padding: 0.8rem 1.6rem;
    border-radius: 999px;
    border: 1px solid var(--stone-200);
    font-size: 0.9rem;
    font-weight: 500;
    transition: border-color 0.2s, color 0.2s;
}

.btn-hero-secondary:hover {
    border-color: var(--accent);
    color: var(--stone-900);
}

/* Stats bar */
.stats-bar {
    background: rgba(255,255,255,0.84);
    border-top: 1px solid var(--stone-200);
    border-bottom: 1px solid var(--stone-200);
    padding: 1.5rem 3rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    text-align: center;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--accent);
}

.stat-label {
    font-size: 0.78rem;
    color: var(--stone-400);
    font-weight: 400;
}

/* Tools section */
.tools-section {
    padding: 4rem 0;
}

.section-heading {
    text-align: center;
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 400;
    color: var(--stone-900);
    margin-bottom: 0.5rem;
}

.section-subtitle {
    text-align: center;
    font-size: 0.95rem;
    color: var(--stone-400);
    font-weight: 300;
    margin-bottom: 2.5rem;
}

.tool-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.tool-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: 10px;
    background: rgba(255,255,255,0.88);
    border: 1px solid var(--stone-200);
    border-radius: 24px;
    padding: 1.75rem;
    text-decoration: none;
    color: var(--stone-900);
    transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.tool-card:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 16px 32px rgba(24,95,165,0.12);
}

.tool-icon {
    font-size: 2rem;
    line-height: 1;
}

.tool-card strong {
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--stone-900);
}

.tool-card p {
    font-size: 0.875rem;
    color: var(--stone-400);
    line-height: 1.6;
    margin: 0;
    font-weight: 300;
}

.tool-link {
    margin-top: auto;
    padding-top: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--accent);
    letter-spacing: 0.02em;
}

/* Tool card badge */
.tool-card-badge {
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 20px;
    margin-bottom: 4px;
}

.tool-badge-green {
    background: var(--accent-light);
    color: var(--accent);
    border: 1px solid rgba(42,92,69,0.12);
}

/* Tool card features list */
.tool-features {
    list-style: none;
    padding: 0;
    margin: 6px 0 4px;
    width: 100%;
}

.tool-features li {
    font-size: 0.8rem;
    color: var(--stone-700);
    padding: 4px 0;
    padding-left: 20px;
    position: relative;
    font-weight: 300;
    line-height: 1.5;
}

.tool-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 500;
    font-size: 0.75rem;
}

/* How it works */
.how-section {
    padding: 4rem 0;
    background: rgba(255,255,255,0.76);
    border-top: 1px solid var(--stone-200);
    border-bottom: 1px solid var(--stone-200);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 0.5rem;
}

.step-card {
    text-align: center;
    padding: 2rem 1.5rem;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    font-family: var(--font-display);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.step-card strong {
    display: block;
    font-size: 1rem;
    font-weight: 500;
    color: var(--stone-900);
    margin-bottom: 0.5rem;
}

.step-card p {
    font-size: 0.85rem;
    color: var(--stone-400);
    font-weight: 300;
    line-height: 1.6;
}

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

.cta-box {
    text-align: center;
    background: linear-gradient(135deg, var(--accent), var(--accent-mid));
    color: var(--warm-white);
    border-radius: 28px;
    padding: 3.5rem 2rem;
}

.cta-box h2 {
    font-family: var(--font-display);
    font-size: 1.65rem;
    font-weight: 400;
    margin-bottom: 0.75rem;
}

.cta-box p {
    font-size: 0.95rem;
    font-weight: 300;
    opacity: 0.85;
    margin-bottom: 1.5rem;
    max-width: 440px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.cta-box .btn-hero-primary {
    background: var(--warm-white);
    color: var(--accent);
}

.cta-box .btn-hero-primary:hover {
    background: var(--stone-100);
    color: var(--accent);
}

/* Time comparison section */
.time-section {
    padding: 4rem 0;
}

.time-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 0.5rem;
}

.time-card {
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--stone-200);
    background: rgba(255,255,255,0.88);
}

.time-card-header {
    padding: 14px 20px;
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-align: center;
}

.time-header-old {
    background: var(--stone-100);
    color: var(--stone-700);
}

.time-header-new {
    background: var(--accent);
    color: var(--warm-white);
}

.time-card-body {
    padding: 8px 20px 16px;
}

.time-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--stone-100);
    font-size: 0.85rem;
    color: var(--stone-700);
    font-weight: 300;
}

.time-row:last-child {
    border-bottom: none;
}

.time-row-total {
    border-bottom: none;
    padding-top: 14px;
    margin-top: 4px;
    border-top: 2px solid var(--stone-200);
    font-weight: 500;
    color: var(--stone-900);
}

.time-val {
    font-weight: 500;
    white-space: nowrap;
    font-size: 0.85rem;
}

.time-slow {
    color: var(--stone-400);
}

.time-fast {
    color: var(--accent);
}

/* ===== 3-column Tier Grid ===== */
.tier-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

/* ===== Shared Data Notice ===== */
.shared-notice {
    background: var(--accent-light);
    color: var(--accent);
    padding: 10px 16px;
    border-radius: 14px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 16px;
    border: 1px solid rgba(24,95,165,0.12);
}

/* ===== Subsection heading ===== */
.subsection-heading {
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--stone-400);
    margin-top: 20px;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* ===== Description Output ===== */
.desc-output {
    font-size: 0.875rem;
    line-height: 1.7;
    white-space: pre-wrap;
    background: var(--blue-light);
    padding: 1.5rem;
    border-radius: 20px;
    color: var(--stone-700);
}

/* ===== Token Info ===== */
.token-info {
    margin-top: 16px;
    text-align: right;
    color: var(--stone-400);
}

/* ===== Responsive ===== */
@media (max-width: 800px) {
    .container { padding: 0 1.25rem; }
    .site-nav { padding: 0 1.25rem; }
    .site-footer { padding: 2rem 1.25rem; }
    .tier-grid { grid-template-columns: 1fr 1fr; }
    .tier-grid-3 { grid-template-columns: 1fr 1fr; }
    .tool-grid { grid-template-columns: 1fr; }
    .page-header h1 { font-size: 1.6rem; }
    .nav-links a:not(.nav-cta) { display: none; }
    .site-footer .footer-inner { flex-direction: column; gap: 0.5rem; text-align: center; }
    .hero { padding: 3.5rem 1.25rem 2.5rem; }
    .hero-heading { font-size: 2.2rem; }
    .stats-bar { padding: 1.25rem; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .steps-grid { grid-template-columns: 1fr; gap: 8px; }
    .step-card { padding: 1.5rem 1rem; }
    .tools-section { padding: 3rem 0; }
    .how-section { padding: 3rem 0; }
    .cta-section { padding: 3rem 0; }
    .time-section { padding: 3rem 0; }
    .time-grid { grid-template-columns: 1fr; }
    .cta-box { padding: 2.5rem 1.5rem; border-radius: 16px; }
}

@media (max-width: 640px) {
    .form-section { padding: 1.25rem; }
    .form-group { flex: 1 1 100%; }
    .checkbox-grid { grid-template-columns: 1fr 1fr; }
    #submitBtn { width: 100%; min-width: unset; }
    .result-section { padding: 1.25rem; }
    .result-content .price-highlight { font-size: 1.3rem; }
    .tool-grid { grid-template-columns: 1fr; }
    .hero-heading { font-size: 1.8rem; }
    .hero-subtitle { font-size: 0.9rem; }
    .hero-actions { flex-direction: column; }
    .btn-hero-primary, .btn-hero-secondary { width: 100%; justify-content: center; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .section-heading { font-size: 1.4rem; }
    .cta-box h2 { font-size: 1.3rem; }
}

@media (max-width: 400px) {
    .tier-grid { grid-template-columns: 1fr; }
    .tier-grid-3 { grid-template-columns: 1fr; }
    .checkbox-grid { grid-template-columns: 1fr; }
}

/* ===== Garáž (index.html + picker) ===== */
.garage-section {
    padding: 3rem 0;
    background: var(--warm-white);
}

.garage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.garage-card {
    background: #fff;
    border: 1px solid var(--stone-200);
    border-radius: 16px;
    padding: 1.2rem 1.4rem;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: box-shadow 0.2s ease, transform 0.15s ease;
}

.garage-card:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,.06);
    transform: translateY(-2px);
}

.garage-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.garage-card-header strong {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--stone-900);
}

.garage-remove-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.3rem;
    color: var(--stone-400);
    line-height: 1;
    padding: 0 4px;
    transition: color 0.15s;
}
.garage-remove-btn:hover { color: #c0392b; }

.garage-card-detail {
    font-size: 0.85rem;
    color: var(--stone-400);
    margin: 0;
}

.garage-card-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.garage-action {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.78rem;
    padding: 0.35rem 0.7rem;
    border-radius: 8px;
    background: var(--cream);
    color: var(--stone-700);
    text-decoration: none;
    border: 1px solid var(--stone-200);
    transition: background 0.15s, border-color 0.15s;
}
.garage-action:hover {
    background: var(--stone-100);
    border-color: var(--stone-400);
}

/* Picker sections on tool pages */
.garage-picker-section {
    border-left: 4px solid var(--accent);
}

.btn-secondary {
    background: var(--cream);
    color: var(--stone-700);
    border: 1px solid var(--stone-200);
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.85rem;
    font-family: var(--font-body);
    transition: background 0.15s, border-color 0.15s;
}
.btn-secondary:hover {
    background: var(--stone-100);
    border-color: var(--stone-400);
}

@media (max-width: 640px) {
    .garage-grid { grid-template-columns: 1fr; }
    .garage-card-actions { flex-direction: column; }
}
