/* ==================== BenzoHelp App-Specific Styles ==================== */
/* Beer CSS handles: cards, buttons, forms, toggles/switches, navigation, */
/* grids, typography, badges, chips, tables, dialogs, toasts, tabs         */

[hidden] { display: none !important; }

/* ==================== Theme & Colors ==================== */
:root {
    /* Mood colors */
    --mood-1: #c62828; --mood-2: #d84315; --mood-3: #ef6c00;
    --mood-4: #f9a825; --mood-5: #fdd835; --mood-6: #c0ca33;
    --mood-7: #7cb342; --mood-8: #43a047; --mood-9: #2e7d32; --mood-10: #1b5e20;

    /* Severity colors */
    --sev-mild: #a5d6a7; --sev-moderate: #fff176; --sev-significant: #ffb74d; --sev-severe: #ef5350;

    /* App-specific (for JS-created elements that reference these) */
    --primary: #00695C;
    --primary-fg: #ffffff;
    --primary-light: #e0f2f1;
    --destructive: #c62828;
    --warning: #f57f17;
    --success: #2e7d32;
    --muted-fg: #6b7e6b;
    --text: #1a2e1a;
    --text-secondary: #5a6e5a;
    --card: #ffffff;
    --card-fg: #1a2e1a;
    --bg: #f5f7f5;
    --border: #d4ddd4;
    --input: #d4ddd4;
    --accent: #e0f2f1;
    --accent-fg: #004D40;
    --shadow: 0 1px 3px rgba(0,50,30,0.06), 0 1px 2px rgba(0,50,30,0.04);
    --shadow-md: 0 4px 6px -1px rgba(0,50,30,0.08), 0 2px 4px -2px rgba(0,50,30,0.04);
    --shadow-lg: 0 10px 15px -3px rgba(0,50,30,0.1), 0 4px 6px -4px rgba(0,50,30,0.05);
    --radius: 0.75rem;
    --nav-height: 80px;
    --topbar-height: 64px;
}

[data-theme="dark"] {
    --primary: #80cbc4;
    --primary-fg: #0a1a0a;
    --primary-light: rgba(0,105,92,0.15);
    --destructive: #ef5350;
    --muted-fg: #7a947a;
    --text: #e0ece0;
    --text-secondary: #8fa88f;
    --card: #1a241a;
    --card-fg: #e0ece0;
    --bg: #121a12;
    --border: rgba(0,105,92,0.2);
    --input: rgba(0,105,92,0.25);
    --accent: rgba(0,105,92,0.15);
    --accent-fg: #a7d7d2;
    --shadow: 0 1px 3px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.4);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.5);
}

/* Sync data-theme="dark" on <html> to Beer CSS dark mode on <body> */
html[data-theme="dark"] body {
    color-scheme: dark;
}

/* ==================== Layout & Body ==================== */
body {
    padding-bottom: calc(var(--nav-height) + 16px);
}

/* Success text color utility (not in Beer CSS) */
.success-text { color: var(--success); }

/* ==================== Views (show/hide logic) ==================== */
.view {
    display: none;
    max-width: 800px;
    margin: 0 auto;
    padding: calc(var(--topbar-height) + 16px) 16px 16px;
    animation: fadeIn 0.15s ease;
}

.view.active { display: block; }

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

/* ==================== Mood Scale ==================== */
.mood-scale {
    display: flex; gap: 4px;
    justify-content: space-between;
    margin: 12px 0;
}

.mood-btn {
    flex: 1;
    height: 44px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg);
    font-size: 15px; font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
    display: flex; align-items: center; justify-content: center;
    color: var(--text);
}

.mood-btn:hover { border-color: var(--primary); }
.mood-btn.active { border-color: var(--primary); background: var(--primary); color: var(--primary-fg); }

.mood-labels {
    display: flex; justify-content: space-between;
    font-size: 11px; color: var(--muted-fg);
    margin-top: -4px;
}

/* Window/Wave toggle */
.type-toggle { display: flex; gap: 0; margin: 12px 0; }

.type-btn {
    flex: 1;
    padding: 8px;
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--text-secondary);
    font-size: 13px; font-weight: 500; font-family: inherit;
    cursor: pointer;
    transition: all 0.15s;
}

.type-btn:first-child { border-radius: var(--radius) 0 0 var(--radius); }
.type-btn:last-child { border-radius: 0 var(--radius) var(--radius) 0; }
.type-btn:not(:first-child) { border-left: none; }
.type-btn.active { background: var(--primary); color: var(--primary-fg); border-color: var(--primary); }

/* ==================== Breathing Circle ==================== */
.breathing-timer {
    display: flex; flex-direction: column; align-items: center;
    gap: 16px; padding: 24px;
}

.breathing-circle {
    width: 160px; height: 160px;
    border-radius: 50%;
    border: 4px solid var(--primary);
    display: flex; align-items: center; justify-content: center;
    flex-direction: column;
    transition: transform 1s ease-in-out;
}

.breathing-circle.inhale { transform: scale(1.3); }
.breathing-circle.hold { transform: scale(1.3); }
.breathing-circle.exhale { transform: scale(1); }

.breathing-label { font-size: 18px; font-weight: 600; color: var(--primary); }
.breathing-count { font-size: 32px; font-weight: 700; }

/* ==================== Chart Container ==================== */
.chart-container {
    position: relative;
    height: 250px;
    margin: 12px 0;
}

.chart-container canvas { width: 100% !important; }

/* ==================== CIWA Score Display ==================== */
.ciwa-score-display {
    text-align: center;
    padding: 24px;
    margin: 16px 0;
}

.ciwa-score-number {
    font-size: 48px; font-weight: 700;
    color: var(--primary);
}

.ciwa-severity {
    font-size: 18px; font-weight: 600;
    margin-top: 4px;
}

.ciwa-severity.mild { color: var(--success); }
.ciwa-severity.moderate { color: var(--warning); }
.ciwa-severity.significant { color: #e65100; }
.ciwa-severity.severe { color: var(--destructive); }

.ciwa-guidance {
    font-size: 14px; color: var(--text-secondary);
    margin-top: 8px;
    line-height: 1.5;
}

/* ==================== Equivalency Result ==================== */
.equiv-result {
    text-align: center;
    padding: 24px;
    background: var(--primary-light);
    border-radius: var(--radius);
    margin: 16px 0;
}

.equiv-result-dose {
    font-size: 36px; font-weight: 700;
    color: var(--primary);
}

.equiv-result-label {
    font-size: 13px; color: var(--text-secondary);
    margin-top: 4px;
}

/* ==================== Calendar Dots ==================== */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    margin: 12px 0;
}

.cal-header { font-size: 11px; font-weight: 600; text-align: center; color: var(--muted-fg); padding: 4px; }

.cal-day {
    aspect-ratio: 1;
    display: flex; align-items: center; justify-content: center;
    font-size: 12px;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.15s;
    position: relative;
}

.cal-day:hover { background: var(--accent); }
.cal-day.today { font-weight: 700; }
.cal-day.has-data::after {
    content: '';
    position: absolute; bottom: 2px;
    width: 4px; height: 4px;
    border-radius: 50%;
    background: var(--primary);
}

.cal-day.empty { pointer-events: none; }

/* Calendar navigation */
.cal-nav {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 8px;
}
.cal-nav-title { font-size: 14px; font-weight: 600; }
.cal-nav button {
    background: none; border: none; cursor: pointer;
    color: var(--primary); font-size: 20px; padding: 4px 8px;
    border-radius: 50%; transition: background 0.15s;
    font-family: inherit;
}
.cal-nav button:hover { background: var(--accent); }

/* Mood-colored dot override */
.cal-day.mood-1::after { background: var(--mood-1); }
.cal-day.mood-2::after { background: var(--mood-2); }
.cal-day.mood-3::after { background: var(--mood-3); }
.cal-day.mood-4::after { background: var(--mood-4); }
.cal-day.mood-5::after { background: var(--mood-5); }
.cal-day.mood-6::after { background: var(--mood-6); }
.cal-day.mood-7::after { background: var(--mood-7); }
.cal-day.mood-8::after { background: var(--mood-8); }
.cal-day.mood-9::after { background: var(--mood-9); }
.cal-day.mood-10::after { background: var(--mood-10); }

/* Mood calendar tooltip */
.cal-tooltip {
    position: absolute; bottom: calc(100% + 6px); left: 50%;
    transform: translateX(-50%);
    background: var(--card); color: var(--text);
    border: 1px solid var(--border);
    border-radius: 6px; padding: 4px 8px;
    font-size: 11px; font-weight: 600;
    white-space: nowrap; z-index: 10;
    box-shadow: var(--shadow-md);
    pointer-events: none;
}

/* ==================== Symptom Items ==================== */
.symptom-item {
    display: flex; align-items: center;
    gap: 12px; padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

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

.symptom-name { flex: 1; font-size: 14px; }

.symptom-slider { flex: 0 0 120px; }

.symptom-value {
    min-width: 28px; height: 28px;
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 600;
    border-radius: 14px;
    color: var(--primary-fg);
}

/* Range slider (used in symptom/CIWA scales) */
.range-slider {
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    border-radius: 3px;
    background: var(--border);
    outline: none;
}

.range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px; height: 20px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    border: 2px solid var(--primary-fg);
    box-shadow: var(--shadow);
}

.range-slider::-moz-range-thumb {
    width: 20px; height: 20px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    border: 2px solid var(--primary-fg);
}

.range-value {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 36px; height: 28px;
    background: var(--primary); color: var(--primary-fg);
    border-radius: 14px;
    font-size: 13px; font-weight: 600;
}

/* ==================== Taper Step Rows ==================== */
tr.step-done { opacity: 0.6; }
tr.step-done td:first-child { text-decoration: line-through; }
tr.step-current { background: var(--primary-light); font-weight: 600; }

/* ==================== Crisis Call Button ==================== */
.crisis-call-btn {
    display: flex; align-items: center; justify-content: center;
    gap: 10px;
    width: 100%; height: 56px;
    background: var(--destructive); color: #fff;
    border: none; border-radius: var(--radius);
    font-size: 18px; font-weight: 700; font-family: inherit;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    margin-bottom: 16px;
    transition: opacity 0.15s;
    text-decoration: none;
}

.crisis-call-btn:hover { opacity: 0.9; }

/* ==================== Crisis FAB ==================== */
.crisis-fab {
    position: fixed !important;
    bottom: calc(var(--nav-height) + 16px);
    right: 16px;
    z-index: 99;
}

/* ==================== Resource Cards (JS-created) ==================== */
.resource-card {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 16px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 8px;
    transition: box-shadow 0.15s;
}

.resource-card:hover { box-shadow: var(--shadow-md); }

.resource-info { flex: 1; }
.resource-name { font-size: 14px; font-weight: 600; }
.resource-desc { font-size: 12px; color: var(--text-secondary); }
.resource-phone { font-size: 13px; color: var(--primary); font-weight: 600; }

.resource-action { flex-shrink: 0; }

.resource-action a, .resource-action button {
    display: inline-flex; align-items: center; justify-content: center;
    gap: 4px; padding: 6px 12px;
    border-radius: calc(var(--radius) - 2px);
    background: var(--primary); color: var(--primary-fg);
    text-decoration: none;
    font-size: 12px; font-weight: 600; font-family: inherit;
    border: none; cursor: pointer;
}

/* ==================== Diary Entries (JS-created) ==================== */
.diary-entry {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: background 0.15s;
}

.diary-entry:hover { background: var(--accent); }
.diary-entry-title { font-size: 14px; font-weight: 600; }
.diary-entry-preview { font-size: 13px; color: var(--text-secondary); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.diary-entry-meta { font-size: 11px; color: var(--muted-fg); margin-top: 4px; display: flex; gap: 8px; }

/* ==================== Offline Bar ==================== */
.offline-bar {
    position: fixed;
    top: var(--topbar-height);
    left: 0; right: 0;
    background: var(--warning);
    color: #000;
    text-align: center;
    padding: 4px;
    font-size: 12px; font-weight: 600;
    z-index: 99;
    display: none;
}

.offline-bar.show { display: block; }

/* ==================== Disclaimer Banner ==================== */
.disclaimer-banner {
    background: var(--warning);
    color: #000;
    padding: 12px 16px;
    font-size: 13px;
    line-height: 1.5;
    text-align: center;
}

/* ==================== Toast (JS shows/hides) ==================== */
.toast {
    position: fixed;
    top: calc(var(--topbar-height) + 8px);
    right: 16px; left: 16px;
    max-width: 400px;
    margin: 0 auto;
    background: var(--card);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px 20px;
    font-size: 14px; font-weight: 500;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    opacity: 0;
    transform: translateY(-8px);
    transition: transform 0.2s ease, opacity 0.2s ease;
    pointer-events: none;
    text-align: center;
}

.toast.show { transform: translateY(0); opacity: 1; }
.toast.toast-success { border-left: 4px solid var(--success); }
.toast.toast-error { border-left: 4px solid var(--destructive); }
.toast.toast-warning { border-left: 4px solid var(--warning); }

/* ==================== Quick Action Cards ==================== */
.quick-action {
    display: flex; flex-direction: column; align-items: center;
    gap: 8px; padding: 16px;
    cursor: pointer;
    text-align: center;
}

.quick-action i { font-size: 28px; }
.quick-action span { font-size: 13px; font-weight: 500; }

/* ==================== Coping Strategy Cards (JS-created) ==================== */
.strategy-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: box-shadow 0.15s;
    margin-bottom: 8px;
}

.strategy-card:hover { box-shadow: var(--shadow-md); }

.strategy-header {
    display: flex; align-items: center; gap: 10px;
    padding: 14px 16px;
    cursor: pointer;
}

.strategy-header i { font-size: 22px; color: var(--primary); }

.strategy-header h3 {
    flex: 1; font-size: 14px; font-weight: 600;
}

.strategy-header .chevron {
    font-size: 20px; color: var(--muted-fg);
    transition: transform 0.2s;
}

.strategy-card.open .chevron { transform: rotate(180deg); }

.strategy-body {
    display: none;
    padding: 0 16px 14px;
    font-size: 13px; color: var(--text-secondary);
    line-height: 1.6;
}

.strategy-card.open .strategy-body { display: block; }

.strategy-body p { margin-bottom: 8px; }
.strategy-body strong { color: var(--text); }

/* ==================== Chip Group (JS-created chips) ==================== */
.chip-group { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }

.chip {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 6px 14px;
    border: 1px solid var(--border);
    border-radius: 9999px;
    background: var(--bg);
    color: var(--text-secondary);
    font-size: 13px; font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
}

.chip:hover { border-color: var(--primary); color: var(--primary); }
.chip.active { background: var(--primary); color: var(--primary-fg); border-color: var(--primary); }
.chip i { font-size: 16px; }

/* ==================== Empty State ==================== */
.empty-state {
    text-align: center;
    padding: 48px 16px;
    color: var(--muted-fg);
}

.empty-state i { font-size: 48px; margin-bottom: 12px; opacity: 0.5; display: block; }
.empty-state p { font-size: 14px; margin-bottom: 16px; }

/* ==================== Sub-nav Tabs ==================== */
.sub-nav {
    display: flex; gap: 0;
    margin-bottom: 16px;
    border-bottom: 2px solid var(--border);
}

.sub-nav-item {
    padding: 10px 16px;
    border: none; background: none;
    color: var(--text-secondary);
    font-size: 14px; font-weight: 500; font-family: inherit;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: color 0.15s, border-color 0.15s;
}

.sub-nav-item:hover { color: var(--text); }
.sub-nav-item.active { color: var(--primary); border-bottom-color: var(--primary); }

/* ==================== JS-created Toggle Switch ==================== */
/* Used by JS when creating toggles dynamically (e.g., taper table, profile wizard) */
.toggle { position: relative; display: inline-block; width: 44px; height: 24px; flex-shrink: 0; }
.toggle input { opacity: 0; width: 0; height: 0; position: absolute; }
.toggle-track {
    position: absolute; inset: 0;
    background: var(--border);
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.2s;
}
.toggle-track::before {
    content: ''; position: absolute;
    width: 20px; height: 20px;
    left: 2px; bottom: 2px;
    background: var(--bg);
    border-radius: 50%;
    transition: transform 0.2s;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}
.toggle input:checked + .toggle-track { background: var(--primary); }
.toggle input:checked + .toggle-track::before { transform: translateX(20px); background: #fff; }

/* ==================== JS-created Badges ==================== */
.badge-success { background: #c8e6c9; color: #2e7d32; }
.badge-warning { background: #fff9c4; color: #f57f17; }
.badge-danger { background: #ffcdd2; color: #c62828; }
.badge-info { background: var(--primary-light); color: var(--primary); }

[data-theme="dark"] .badge-success { background: rgba(46,125,50,0.2); }
[data-theme="dark"] .badge-warning { background: rgba(245,127,23,0.2); }
[data-theme="dark"] .badge-danger { background: rgba(198,40,40,0.2); }

/* ==================== JS-created Setting Rows ==================== */
.setting-row {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}

.setting-row:last-child { border-bottom: none; }
.setting-label { font-size: 14px; font-weight: 500; }
.setting-desc { font-size: 12px; color: var(--text-secondary); margin-top: 2px; }

/* ==================== JS-created Medication Items ==================== */
.med-item {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.med-check {
    width: 24px; height: 24px;
    border: 2px solid var(--border);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.15s;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}

.med-check.checked {
    background: var(--success);
    border-color: var(--success);
    color: #fff;
}

.med-info { flex: 1; }
.med-name { font-size: 14px; font-weight: 600; }
.med-dose { font-size: 12px; color: var(--text-secondary); }

/* ==================== JS-created Buttons (kept for dynamic elements) ==================== */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    gap: 6px; padding: 0 16px; height: 36px;
    border: 1px solid var(--input);
    border-radius: calc(var(--radius) - 2px);
    background: var(--bg);
    color: var(--text);
    font-size: 14px; font-weight: 500; font-family: inherit;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
    white-space: nowrap;
    outline: none;
}

.btn:hover { background: var(--accent); color: var(--accent-fg); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-primary {
    background: var(--primary); color: var(--primary-fg);
    border-color: var(--primary);
}

.btn-primary:hover { opacity: 0.9; background: var(--primary); color: var(--primary-fg); }

.btn-danger { background: var(--destructive); color: #fff; border-color: var(--destructive); }
.btn-danger:hover { opacity: 0.9; }

.btn-sm { height: 28px; padding: 0 10px; font-size: 12px; }
.btn-block { width: 100%; }

.btn-icon {
    padding: 0; width: 40px; height: 40px;
    border: none; background: none;
    border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    cursor: pointer; color: var(--text);
    transition: background 0.15s;
}

.btn-icon:hover { background: var(--accent); }

/* ==================== JS-created Confirm Dialog ==================== */
.confirm-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 200;
    display: flex; align-items: center; justify-content: center;
}

.confirm-dialog {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    max-width: 360px;
    width: 90%;
    box-shadow: var(--shadow-lg);
}

.confirm-dialog h3 { font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.confirm-dialog p { font-size: 14px; color: var(--text-secondary); margin-bottom: 16px; }
.confirm-actions { display: flex; gap: 8px; justify-content: flex-end; }

/* ==================== JS-created Form Elements ==================== */
.form-group { margin-bottom: 16px; }

.form-label {
    display: block;
    font-size: 13px; font-weight: 600;
    margin-bottom: 6px;
}

.form-input, .form-select, .form-textarea {
    display: block; width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--input);
    border-radius: calc(var(--radius) - 2px);
    background: var(--bg);
    color: var(--text);
    font-size: 14px; font-family: inherit;
    outline: none;
    transition: border-color 0.15s;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0,105,92,0.1);
}

.form-textarea { resize: vertical; min-height: 80px; line-height: 1.5; }
.form-select { cursor: pointer; appearance: auto; }
.form-hint { font-size: 12px; color: var(--muted-fg); margin-top: 4px; }

/* ==================== Table Overflow Wrapper ==================== */
.table-wrap { overflow-x: auto; margin: 12px 0; }

/* ==================== Responsive ==================== */
@media (max-width: 480px) {
    .view { padding: calc(var(--topbar-height) + 12px) 12px 12px; }
    .mood-scale { gap: 2px; }
    .mood-btn { height: 38px; font-size: 13px; }
}

/* ==================== Community Feed ==================== */
.post-avatar {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 22px;
    flex-shrink: 0;
}

.community-reactions .chip {
    min-height: 32px;
    font-size: 13px;
}

.community-reactions .chip:not(.border) {
    background: var(--primary-light);
    border-color: var(--primary);
    color: var(--primary);
}

/* ==================== Print ==================== */
@media print {
    header, nav.bottom, .crisis-fab, .toast, .offline-bar { display: none !important; }
    body { padding: 0; }
    .view { max-width: 100%; }
}

/* ==================== Landing Page ==================== */
#landing-page {
    position: fixed;
    inset: 0;
    z-index: 100;
    overflow-y: auto;
    overflow-x: hidden;
    background: #f0f9f4;
    font-family: inherit;
    -webkit-overflow-scrolling: touch;
}

.lp-container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Hero */
.lp-hero {
    background: linear-gradient(155deg, #0b3320 0%, #195c3e 45%, #2a7a56 100%);
    padding: 72px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.lp-deco {
    position: absolute;
    background: #95d5b2;
    border-radius: 60% 40% 70% 30% / 50% 60% 40% 50%;
    opacity: 0.055;
    pointer-events: none;
}
.lp-deco-1 { width: 420px; height: 420px; top: -160px; left: -110px; transform: rotate(22deg); }
.lp-deco-2 { width: 260px; height: 260px; bottom: -90px; right: -70px; transform: rotate(-18deg); }
.lp-deco-3 { width: 160px; height: 160px; top: 40%; right: 8%; opacity: 0.035; }

.lp-logo-wrap { margin-bottom: 8px; }
.lp-leaf-icon { width: 68px; height: 68px; filter: drop-shadow(0 6px 16px rgba(0,0,0,0.35)); }

.lp-title {
    font-size: clamp(2.4rem, 7vw, 4rem);
    font-weight: 800;
    color: #fff;
    margin: 0 0 14px;
    letter-spacing: -0.03em;
    line-height: 1;
}

.lp-tagline {
    font-size: clamp(1rem, 2.6vw, 1.25rem);
    color: #b7e4c7;
    margin: 0 0 20px;
    font-weight: 400;
}

.lp-desc {
    font-size: .98rem;
    color: #95d5b2;
    max-width: 540px;
    margin: 0 auto 38px;
    line-height: 1.75;
}

.lp-cta-row {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.lp-btn-primary {
    background: #52b788;
    color: #0b3320;
    border: none;
    padding: 15px 30px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    transition: background .2s, transform .15s, box-shadow .2s;
    font-family: inherit;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
.lp-btn-primary:hover  { background: #74c69d; transform: translateY(-2px); box-shadow: 0 8px 28px rgba(0,0,0,0.35); }
.lp-btn-primary:active { transform: translateY(0); }

.lp-btn-ghost {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.55);
    padding: 13px 30px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: background .2s, border-color .2s;
    font-family: inherit;
}
.lp-btn-ghost:hover { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.85); }

.lp-trust-line {
    color: #74c69d;
    font-size: .86rem;
    margin: 0;
}

/* Section base */
.lp-sec { padding: 64px 24px; }
.lp-sec-green { background: #f0f9f4; }
.lp-sec-dark  { background: #1a4731; }
.lp-sec-warn  { background: #fffde7; padding: 36px 24px; }
.lp-sec-light { background: #f8fdf9; }
.lp-sec-cta   { background: #185c3e; text-align: center; padding: 56px 24px; }

.lp-sh {
    text-align: center;
    font-size: clamp(1.35rem, 4vw, 1.85rem);
    font-weight: 700;
    color: #1a4731;
    margin: 0 0 40px;
}

/* Feature cards */
.lp-feat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.lp-feat {
    background: #fff;
    border-radius: 18px;
    padding: 28px 22px;
    box-shadow: 0 2px 16px rgba(20,80,50,0.07);
    transition: transform .2s, box-shadow .2s;
}
.lp-feat:hover { transform: translateY(-4px); box-shadow: 0 10px 28px rgba(20,80,50,0.13); }
.lp-feat-icon { font-size: 2.1rem; display: block; margin-bottom: 12px; line-height: 1; }
.lp-feat h3   { font-size: 1rem; font-weight: 700; color: #1a4731; margin: 0 0 8px; }
.lp-feat p    { font-size: .87rem; color: #5a7a6a; line-height: 1.65; margin: 0; }

/* Privacy section */
.lp-priv-inner {
    display: flex;
    align-items: center;
    gap: 48px;
    flex-wrap: wrap;
}

.lp-priv-text { flex: 1; min-width: 280px; }

.lp-priv-badge {
    display: inline-block;
    background: rgba(82,183,136,0.2);
    color: #95d5b2;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: .84rem;
    font-weight: 600;
    margin-bottom: 16px;
    letter-spacing: .02em;
}

.lp-priv-text h2 { color: #fff; font-size: 1.6rem; font-weight: 700; margin: 0 0 14px; }
.lp-priv-text > p { color: #b7e4c7; font-size: .95rem; line-height: 1.7; margin: 0 0 18px; }
.lp-priv-text strong { color: #d8f3dc; }

.lp-priv-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.lp-priv-list li {
    color: #95d5b2;
    font-size: .9rem;
    padding: 5px 0;
    border-bottom: 1px solid rgba(82,183,136,0.12);
}
.lp-priv-list li:last-child { border-bottom: none; }

.lp-priv-deco { flex-shrink: 0; display: none; }
@media (min-width: 600px) { .lp-priv-deco { display: block; } }

/* Disclaimer */
.lp-warn-box {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    background: #fff;
    border: 1px solid #ffe082;
    border-left: 5px solid #f9a825;
    border-radius: 14px;
    padding: 20px 24px;
    max-width: 820px;
    margin: 0 auto;
}
.lp-warn-icon { font-size: 2rem; flex-shrink: 0; line-height: 1.1; }
.lp-warn-box strong { display: block; color: #bf6f00; margin-bottom: 8px; font-size: .98rem; }
.lp-warn-box p { color: #5a5a5a; font-size: .87rem; line-height: 1.65; margin: 0; }

/* Legal section */
.lp-legal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}
.lp-legal-col h3 {
    color: #1a4731;
    font-size: 1.02rem;
    font-weight: 700;
    margin: 0 0 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #d8f3dc;
}
.lp-legal-col p { font-size: .82rem; color: #5a6e5a; line-height: 1.65; margin: 0 0 10px; }

/* Bottom CTA section */
.lp-sec-cta h2 { color: #d8f3dc; margin: 0 0 8px; font-size: 1.6rem; font-weight: 700; }
.lp-sec-cta p  { color: #95d5b2; margin: 0 0 28px; }

/* Footer */
.lp-footer {
    background: #0b3320;
    color: #52b788;
    padding: 24px;
}
.lp-footer-row {
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: .84rem;
}
.lp-footer a { color: #95d5b2; text-decoration: none; }
.lp-footer a:hover { text-decoration: underline; }

/* ==================== Landing — Community Section ==================== */
.lp-community-hero {
    background: linear-gradient(180deg, #fff 0%, #f0f9f4 100%);
    padding: 72px 24px;
}

.lp-comm-badge {
    display: inline-block;
    background: #d8f3dc;
    color: #1a4731;
    padding: 5px 16px;
    border-radius: 20px;
    font-size: .88rem;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: .02em;
}

.lp-comm-title {
    font-size: clamp(1.8rem, 5vw, 2.8rem);
    font-weight: 800;
    color: #0d3b27;
    margin: 0 0 12px;
    letter-spacing: -.02em;
}

.lp-comm-sub {
    font-size: 1rem;
    color: #5a7a6a;
    max-width: 600px;
    line-height: 1.75;
    margin: 0 0 40px;
}

.lp-comm-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.lp-comm-card {
    background: #fff;
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 4px 24px rgba(20,80,50,0.09);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.lp-comm-card-forum {
    background: #1a4731;
}

.lp-comm-card-top {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.lp-comm-icon {
    font-size: 2rem;
    flex-shrink: 0;
    line-height: 1;
}

.lp-comm-card h3 { font-size: 1.05rem; font-weight: 700; color: #1a4731; margin: 0 0 6px; }
.lp-comm-card p  { font-size: .88rem; color: #5a7a6a; line-height: 1.6; margin: 0; }

.lp-comm-card-forum h3 { color: #d8f3dc; }
.lp-comm-card-forum p  { color: #95d5b2; }

/* Mock posts */
.lp-comm-preview { display: flex; flex-direction: column; gap: 12px; }

.lp-post-mock {
    display: flex;
    gap: 12px;
    background: #f8fdf9;
    border-radius: 12px;
    padding: 12px 14px;
}

.lp-post-avatar { font-size: 1.5rem; flex-shrink: 0; line-height: 1.2; }
.lp-post-name   { font-size: .78rem; color: #5a7a6a; font-weight: 600; margin-bottom: 3px; }
.lp-post-text   { font-size: .88rem; color: #1a2e1a; line-height: 1.5; margin-bottom: 6px; }
.lp-post-reacts { font-size: .76rem; color: #2d8055; }

/* Forum topics */
.lp-forum-topics {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.lp-topic {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 8px;
    padding: 10px 14px;
    font-size: .87rem;
    color: #b7e4c7;
}

.lp-forum-link {
    display: inline-block;
    background: #52b788;
    color: #0b3320;
    font-weight: 700;
    font-size: .9rem;
    padding: 10px 20px;
    border-radius: 50px;
    text-decoration: none;
    text-align: center;
    transition: background .2s;
}
.lp-forum-link:hover { background: #74c69d; }
