/* 
 * DTC Tools Specific Layout & Components 
 * Auto-restored and enhanced by Antigravity
 */

/* =========================================
   PERIODIC TABLE GRID 
   ========================================= */
.table-wrapper {
    width: 100%;
    overflow-x: auto;
    padding: 1rem 0 3rem;
    -webkit-overflow-scrolling: touch;
}

.periodic-table {
    display: grid;
    grid-template-columns: repeat(18, 1fr);
    gap: 6px;
    user-select: none;
    min-width: 1100px;
}

.element {
    aspect-ratio: 1/1;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 6px;
    padding: 6px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    background: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.element:hover {
    transform: scale(1.3) translateY(-5px);
    z-index: 100;
    box-shadow: 0 12px 24px -6px rgba(0, 0, 0, 0.15);
    border-color: rgba(0, 0, 0, 0.1);
}

.element.faded {
    opacity: 0.15;
    filter: grayscale(80%);
    transform: scale(0.95);
}

.el-num { font-size: 0.65rem; color: var(--dtc-text-2); font-weight: 700; }
.el-symbol { font-size: 1.4rem; font-weight: 900; text-align: center; color: var(--dtc-text); line-height: 1; }
.el-name { font-size: 0.65rem; font-weight: 600; text-align: center; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: var(--dtc-text-2); }

.cat-alkali { background: #fee2e2; }
.cat-alkaline { background: #ffedd5; }
.cat-transition { background: #fef9c3; }
.cat-post-transition { background: #ecfdf5; }
.cat-metalloid { background: #dcfce7; }
.cat-polyatomic { background: #ecfeff; }
.cat-diatomic { background: #e0f2fe; }
.cat-noble { background: #f5f3ff; }
.cat-lanthanide { background: #fae8ff; }
.cat-actinide { background: #fff1f2; }
.cat-unknown { background: #f1f5f9; }

.empty { border: none; background: transparent; pointer-events: none; box-shadow: none; }
.row-gap { height: 20px; grid-column: 1 / -1; }
.label-cell { grid-column: 3 / 4; display: flex; align-items: center; justify-content: center; font-size: 0.8rem; font-weight: bold; color: var(--dtc-text-2); background: #f1f5f9; border-radius: 4px; }

.legend { display: flex; justify-content: center; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 3rem; padding: 1.5rem; background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: var(--r-md); box-shadow: var(--sh-sm); }
.legend-item { display: flex; align-items: center; gap: 8px; padding: 0.5rem 1rem; border-radius: var(--r-sm); font-size: 0.85rem; font-weight: 600; cursor: pointer; transition: all 0.2s ease; border: 1px solid transparent; }
.legend-item:hover { background: white; box-shadow: var(--sh-xs); border-color: var(--dtc-border); }
.legend-item.active { background: var(--dtc-primary); color: white; }
.legend-color { width: 14px; height: 14px; border-radius: 3px; border: 1px solid rgba(0,0,0,0.05); }

/* Modal */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(15, 23, 42, 0.85); backdrop-filter: blur(8px); display: none; justify-content: center; align-items: center; padding: 20px; z-index: 2000; }
.modal-overlay.active { display: flex; }
.modal-content { background: var(--dtc-surface); width: 100%; max-width: 900px; max-height: 90vh; border-radius: var(--r-xl); position: relative; overflow-y: auto; box-shadow: 0 40px 100px -20px rgba(0,0,0,0.8); animation: fadeInUp 0.4s ease-out; }
.close-btn { position: absolute; top: 20px; right: 20px; width: 40px; height: 40px; border-radius: 50%; background: rgba(0,0,0,0.05); border: none; font-size: 24px; cursor: pointer; z-index: 100; transition: all 0.2s; }
.close-btn:hover { background: var(--dtc-accent); color: white; transform: rotate(90deg); }

/* =========================================
   CALCULATOR RESULTS & GRIDS 
   ========================================= */
.calc-grid, .results-grid, .stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem; margin-bottom: 2rem; }
.res-card, .stat-card { background: white; padding: 1.5rem; border-radius: var(--r-md); border: 1px solid var(--dtc-border); display: flex; flex-direction: column; gap: 0.5rem; text-align: center; }
.res-card.full-width { grid-column: 1 / -1; background: #f0fdfa; border-color: var(--dtc-primary-light); }
.res-label, .stat-label { font-size: 0.8rem; font-weight: 700; color: var(--dtc-text-2); text-transform: uppercase; }
.res-value, .stat-value { font-size: 1.5rem; font-weight: 700; color: var(--dtc-primary); }

.final-mass-display, .element-hero { text-align: center; margin-bottom: 3rem; }
.total-mass-value { font-size: 4.5rem; font-weight: 800; color: var(--dtc-primary); line-height: 1; margin: 1rem 0; letter-spacing: -0.04em; }
.mass-unit { font-size: 1.25rem; color: var(--dtc-text-2); font-weight: 600; margin-top: -0.5rem; display: block; }
#formulaFormatted { font-size: 2.5rem; font-weight: 800; color: var(--dtc-text); margin-bottom: 0.5rem; }
#formulaFormatted sub { font-size: 0.55em; bottom: -0.2em; color: var(--dtc-primary); }
.element-symbol-large { font-size: 6rem; font-weight: 800; color: var(--dtc-primary); line-height: 1; }
.element-name-large { font-size: 2.5rem; font-weight: 700; color: var(--dtc-text); margin-bottom: 1rem; }

.visuals-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; margin-bottom: 3rem; }
.chart-container, .table-container { background: #f8fafc; padding: 2rem; border-radius: var(--r-md); border: 1px solid var(--dtc-border); }
.breakdown-table { width: 100%; border-collapse: collapse; text-align: left; }
.breakdown-table th { padding: 1rem; font-size: 0.85rem; font-weight: 700; color: var(--dtc-text-2); border-bottom: 2px solid var(--dtc-border); }
.breakdown-table td { padding: 1.25rem 1rem; border-bottom: 1px solid var(--dtc-border); }

/* Input wrapper extra styles */
.input-section { max-width: 600px; margin: 0 auto 2rem; text-align: center; }
.formula-input-wrapper { position: relative; margin-bottom: 1.5rem; }
#formulaInput { text-align: center; font-size: 2rem; font-family: var(--font-heading); }

.examples { margin-top: 1.5rem; font-size: 0.9rem; color: var(--dtc-text-2); }
.example-pill { display: inline-block; background: #f0fdfa; color: var(--dtc-primary); padding: 0.4rem 1rem; border-radius: 20px; margin: 0.25rem; cursor: pointer; font-weight: 600; border: 1px solid transparent; transition: 0.2s; }
.example-pill:hover { background: var(--dtc-primary); color: white; }

#resultArea, #resultContainer, .result-display { display: none; animation: fadeInUp 0.6s ease-out; }

/* Equation box */
.equation-box { background: #1e293b; color: #e2e8f0; padding: 1.5rem; border-radius: var(--r-sm); font-family: monospace; text-align: center; margin: 1.5rem 0; position: relative; overflow-x: auto; box-shadow: inset 0 0 20px rgba(0,0,0,0.5); font-size: 1.25rem;}
.equation-box::after { content: 'Formula'; position: absolute; top: 0; right: 0; background: var(--dtc-accent); color: white; font-size: 0.75rem; font-weight: 600; padding: 2px 10px; border-bottom-left-radius: 8px; }

/* Element specific */
.element-badge { width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; color: white; font-weight: 800; font-size: 0.85rem; box-shadow: 0 4px 10px rgba(0,0,0,0.1); }
.percentage-value { font-size: 1.1rem; font-weight: 800; color: var(--dtc-primary); }

.figure-box { text-align: center; margin: 2.5rem 0; padding: 1rem; background: white; border-radius: var(--r-md); box-shadow: var(--sh-sm); border: 1px solid var(--dtc-border); }
.highlight-box { background: #f0fdfa; border-left: 5px solid var(--dtc-primary); padding: 2rem; border-radius: 0 16px 16px 0; margin: 2rem 0; }

details { background: white; border: 1px solid var(--dtc-border); border-radius: var(--r-sm); padding: 1rem; margin-bottom: 1rem; transition: all 0.3s; }
details[open] { border-color: var(--dtc-primary); box-shadow: var(--sh-sm); }
summary { color: var(--dtc-text); font-size: 1.05rem; font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
summary::after { content: '+'; font-size: 1.2rem; color: var(--dtc-primary); }
details[open] summary::after { content: '-'; }
details p { margin-top: 1rem; margin-bottom: 0; font-size: 1rem; }

/* Dashboard index.html grid (legacy - keep for compat) */
.tools-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 2rem; margin-bottom: 3rem; }
.tool-card { background: white; border-radius: var(--r-md); border: 1px solid var(--dtc-border); padding: 2rem; transition: all 0.3s; text-align: center; display: flex; flex-direction: column; gap: 1rem; text-decoration: none; color: var(--dtc-text); }
.tool-card:hover { transform: translateY(-5px); box-shadow: var(--sh-md); border-color: var(--dtc-primary); }
.tool-icon { font-size: 3rem; margin-bottom: 1rem; }
.tool-card h3 { font-size: 1.25rem; color: var(--dtc-primary); }
.tool-card p { font-size: 0.95rem; color: var(--dtc-text-2); }

/* =========================================
   DASHBOARD v2 — index.html (BEM classes)
   ========================================= */

/* --- Utility --- */
.wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}
.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* --- Header v2 (BEM) --- */
.site-header .header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.header__brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--dtc-text);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
}
.header__brand img {
    height: 44px;
    width: auto;
    object-fit: contain;
    border-radius: var(--r-sm);
}
.header__brand span {
    background: linear-gradient(135deg, var(--dtc-primary-dark), var(--dtc-primary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.header__nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}
.header__link {
    color: var(--dtc-text-2);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.4rem 0;
    position: relative;
    transition: color 0.3s;
}
.header__link:hover { color: var(--dtc-primary); }
.header__link::after {
    content: '';
    position: absolute;
    bottom: 0; left: 50%;
    width: 0; height: 2px;
    background: var(--dtc-primary);
    border-radius: 1px;
    transition: all 0.3s;
}
.header__link:hover::after { width: 100%; left: 0; }

.header__cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--dtc-primary);
    color: #fff !important;
    padding: 0.55rem 1.2rem;
    border-radius: var(--r-full);
    font-weight: 700;
    font-size: 0.85rem;
    box-shadow: 0 4px 12px rgba(15,124,120,0.25);
    transition: all 0.3s cubic-bezier(0.34,1.56,0.64,1);
    text-decoration: none;
}
.header__cta:hover {
    background: var(--dtc-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(15,124,120,0.35);
    color: #fff !important;
}
.site-header.scrolled {
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    border-bottom-color: transparent;
}

/* --- Hero v2 --- */
.hero {
    padding: 5rem 1.5rem 3rem;
    text-align: center;
    animation: fadeInUp 0.6s ease-out both;
}
.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--dtc-primary-surface);
    color: var(--dtc-primary);
    padding: 0.5rem 1.2rem;
    border-radius: var(--r-full);
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(15,124,120,0.15);
}
.hero__badge .dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--dtc-primary);
    animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.4); }
}
.hero__title {
    font-size: 3.2rem;
    font-weight: 800;
    color: var(--dtc-text);
    line-height: 1.15;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}
.gradient-text {
    background: linear-gradient(135deg, var(--dtc-primary-dark), var(--dtc-primary-light));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero__subtitle {
    font-size: 1.15rem;
    color: var(--dtc-text-2);
    max-width: 640px;
    margin: 0 auto 2rem;
    line-height: 1.7;
}

/* --- Search v2 --- */
.search {
    position: relative;
    max-width: 540px;
    margin: 0 auto 1.5rem;
}
.search__input {
    width: 100%;
    padding: 1rem 1.25rem 1rem 3rem;
    font-size: 1rem;
    font-family: var(--font-sans);
    border: 2px solid var(--dtc-border);
    border-radius: var(--r-full);
    background: var(--dtc-surface);
    color: var(--dtc-text);
    transition: all 0.3s;
    box-shadow: var(--sh-sm);
}
.search__input:focus {
    outline: none;
    border-color: var(--dtc-primary);
    box-shadow: var(--sh-glow);
}
.search__input::placeholder { color: var(--dtc-text-3); }
.search__icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--dtc-text-3);
    pointer-events: none;
}

/* --- Filter Chips --- */
.chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}
.chip {
    padding: 0.5rem 1.1rem;
    border: 1.5px solid var(--dtc-border);
    border-radius: var(--r-full);
    background: var(--dtc-surface);
    color: var(--dtc-text-2);
    font-size: 0.85rem;
    font-weight: 600;
    font-family: var(--font-sans);
    cursor: pointer;
    transition: all 0.25s;
}
.chip:hover {
    border-color: var(--dtc-primary);
    color: var(--dtc-primary);
    background: var(--dtc-primary-surface);
}
.chip[aria-pressed="true"] {
    background: var(--dtc-primary);
    color: #fff;
    border-color: var(--dtc-primary);
    box-shadow: 0 4px 12px rgba(15,124,120,0.2);
}

/* --- Stats Bar --- */
.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin: 2rem auto 3rem;
    padding: 1.5rem;
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: var(--r-xl);
    box-shadow: var(--sh-md);
    animation: fadeInUp 0.6s ease-out 0.15s both;
}
.stat {
    text-align: center;
    padding: 0.5rem;
}
.stat__number {
    display: block;
    font-size: 1.8rem;
    font-weight: 800;
    font-family: var(--font-heading);
    color: var(--dtc-primary);
    line-height: 1.2;
}
.stat__label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--dtc-text-2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2px;
}

/* --- Tools Grid v2 --- */
.tools-section {
    margin-bottom: 3rem;
}
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

/* --- Card v2 --- */
.card {
    display: flex;
    flex-direction: column;
    background: var(--dtc-surface);
    border: 1px solid var(--dtc-border);
    border-radius: var(--r-lg);
    padding: 1.5rem;
    text-decoration: none;
    color: var(--dtc-text);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}
.card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 3px;
    background: linear-gradient(90deg, var(--dtc-primary), var(--dtc-primary-light));
    opacity: 0;
    transition: opacity 0.3s;
}
.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--sh-xl);
    border-color: rgba(15,124,120,0.25);
}
.card:hover::before { opacity: 1; }

.card__head {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}
.card__icon {
    width: 44px; height: 44px;
    border-radius: var(--r-md);
    background: linear-gradient(135deg, var(--dtc-primary), var(--dtc-primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(15,124,120,0.2);
}
.card__title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--dtc-text);
    line-height: 1.3;
    font-family: var(--font-heading);
}
.card__badge {
    display: inline-block;
    background: var(--dtc-accent-glow);
    color: var(--dtc-accent);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: var(--r-full);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2px;
    border: 1px solid rgba(245,158,11,0.2);
}

.card__body {
    flex: 1;
    margin-bottom: 1rem;
}
.card__desc {
    font-size: 0.9rem;
    color: var(--dtc-text-2);
    line-height: 1.6;
}

.card__foot {
    margin-top: auto;
}
.card__cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--dtc-primary);
    font-weight: 700;
    font-size: 0.85rem;
    transition: gap 0.3s;
}
.card:hover .card__cta { gap: 10px; }
.card__cta svg { transition: transform 0.3s; }
.card:hover .card__cta svg { transform: translateX(3px); }

/* --- Empty State --- */
.empty-state {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 4rem 2rem;
    color: var(--dtc-text-3);
    text-align: center;
    grid-column: 1 / -1;
}
.empty-state.visible { display: flex; }
.empty-state svg { opacity: 0.4; }
.empty-state p { font-size: 1.1rem; font-weight: 600; }

/* --- How-To & FAQ Section --- */
.section {
    margin-bottom: 3rem;
    animation: fadeInUp 0.6s ease-out 0.3s both;
}
.section__title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--dtc-text);
    margin-bottom: 1.5rem;
    font-family: var(--font-heading);
}
.section__title svg { color: var(--dtc-primary); flex-shrink: 0; }

.steps {
    list-style: none;
    counter-reset: step;
    display: grid;
    gap: 1rem;
}
.steps li {
    counter-increment: step;
    background: var(--dtc-surface);
    border: 1px solid var(--dtc-border);
    border-radius: var(--r-md);
    padding: 1.25rem 1.5rem 1.25rem 3.5rem;
    position: relative;
    transition: all 0.3s;
    font-size: 0.95rem;
    line-height: 1.6;
}
.steps li:hover {
    border-color: var(--dtc-primary);
    box-shadow: var(--sh-sm);
}
.steps li::before {
    content: counter(step);
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 28px; height: 28px;
    border-radius: 50%;
    background: var(--dtc-primary);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* FAQ v2 */
.faq-item {
    background: var(--dtc-surface);
    border: 1px solid var(--dtc-border);
    border-radius: var(--r-md);
    padding: 0;
    margin-bottom: 0.75rem;
    transition: all 0.3s;
    overflow: hidden;
}
.faq-item[open] {
    border-color: var(--dtc-primary);
    box-shadow: var(--sh-sm);
}
.faq-item summary {
    padding: 1.25rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--dtc-text);
    transition: background 0.2s;
}
.faq-item summary:hover { background: var(--dtc-surface-2); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item .icon-toggle {
    font-size: 1.3rem;
    color: var(--dtc-primary);
    font-weight: 400;
    transition: transform 0.3s;
    flex-shrink: 0;
    width: 24px;
    text-align: center;
}
.faq-item[open] .icon-toggle { transform: rotate(45deg); }
.faq-item .faq-answer {
    padding: 0 1.5rem 1.25rem;
    color: var(--dtc-text-2);
    font-size: 0.95rem;
    line-height: 1.7;
}
/* Override generic summary::after for .faq-item */
.faq-item summary::after { content: none; }

/* --- Trust / Author v2 --- */
.trust {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 2.5rem;
    background: linear-gradient(135deg, #ffffff, #f0fdfa);
    border: 1px solid var(--dtc-border);
    border-radius: var(--r-xl);
    margin-bottom: 3rem;
    box-shadow: var(--sh-md);
    animation: fadeInUp 0.6s ease-out 0.35s both;
}
.trust__avatar {
    width: 110px; height: 110px;
    border-radius: 50%;
    border: 4px solid white;
    box-shadow: var(--sh-sm);
    object-fit: cover;
    flex-shrink: 0;
}
.trust__role {
    color: var(--dtc-primary);
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.25rem;
}
.trust__name {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: var(--dtc-text);
    font-family: var(--font-heading);
}
.trust__name a { color: inherit; }
.trust__name a:hover { color: var(--dtc-primary); }
.trust__desc {
    color: var(--dtc-text-2);
    font-size: 0.9rem;
    line-height: 1.7;
}

/* --- Footer v2 --- */
.site-footer {
    background: var(--dtc-surface-2);
    border-top: 1px solid var(--dtc-border);
    padding: 2rem 0;
    text-align: center;
    color: var(--dtc-text-2);
    font-size: 0.85rem;
}
.site-footer a { font-weight: 600; }

/* --- Dashboard Responsive --- */
@media (max-width: 768px) {
    .hero { padding: 3.5rem 1rem 2rem; }
    .hero__title { font-size: 2rem; }
    .hero__subtitle { font-size: 1rem; }
    .stats { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; padding: 1rem; }
    .stat__number { font-size: 1.4rem; }
    .grid { grid-template-columns: 1fr; gap: 1rem; }
    .card { padding: 1.25rem; }
    .section__title { font-size: 1.3rem; }
    .trust {
        flex-direction: column;
        text-align: center;
        padding: 2rem 1.5rem;
    }
    .header__nav { display: none; }
    .steps li { padding-left: 3rem; }
}
@media (max-width: 480px) {
    .hero__title { font-size: 1.7rem; }
    .stats { grid-template-columns: repeat(2, 1fr); }
    .card__head { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
    .header__brand span { display: none; }
}
