/* CampMarket site layer.
   Loaded after the inline styles in base.html, so it wins over them.
   Look: clean retail. White surfaces, thin grey borders, one typeface (Inter),
   grey icons, green only for the main action. The logo colours appear as a thin
   stripe at the top of the header and nowhere else. */

:root {
    --ink: #0F172A;
    --ink-2: #334155;
    --muted: #64748B;
    --line: #E5E7EB;
    --line-2: #D1D5DB;
    --surface: #FFFFFF;
    --surface-2: #F6F7F9;
    --green: #16A34A;
    --green-dark: #15803D;
    --green-tint: #F0FDF4;
    --sale: #DC2626;

    /* remap the tokens older templates use */
    --navy: var(--ink);
    --navy-light: var(--ink-2);
    --text-primary: var(--ink);
    --text-secondary: var(--muted);
    --cream: var(--surface-2);
    --orange: var(--ink);
    --orange-dark: var(--ink);
    --shadow-light: 0 1px 2px rgba(15, 23, 42, 0.05);
    --shadow-medium: 0 4px 16px rgba(15, 23, 42, 0.08);
    --shadow-hover: 0 8px 24px rgba(15, 23, 42, 0.10);
    --radius-card: 10px;
    --radius-button: 8px;
    --radius-sm: 6px;
    --border-light: 1px solid var(--line);

    --logo-blue: #2EC4FF;
    --logo-gold: #F5C400;
    --logo-red: #E31C23;
}

[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body {
    background: var(--surface);
    color: var(--ink);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 15px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { color: var(--ink); letter-spacing: -0.01em; }

input, select, textarea, button { font-family: inherit; }

::selection { background: #DCFCE7; color: var(--ink); }

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--ink);
    outline-offset: 2px;
}

.brand-lines { display: none !important; }

/* Lots of older templates set style="padding: 2rem 0" on .container, which
   wipes the side padding and glues content to the screen edge on phones. */
.container {
    max-width: 1280px;
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
}
@media (max-width: 480px) {
    .container {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
}

/* ---------- Header ---------- */
.main-header {
    background: var(--surface);
    border-bottom: 0;
    backdrop-filter: none;
    position: sticky;
    top: 0;
    z-index: 100;
}
.main-header::after { display: none; }
.main-header::before {
    content: '';
    display: block;
    height: 3px;
    background: linear-gradient(90deg,
        var(--logo-blue) 0 33.3%, var(--logo-gold) 33.3% 66.6%, var(--logo-red) 66.6% 100%);
}

.header-content {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap;
    align-items: center;
    gap: 1.25rem;
    padding: 0.8rem 0;
}

.logo { display: flex; align-items: center; gap: 0.55rem; text-decoration: none; flex-shrink: 0; }
.logo img { width: 34px; height: 34px; object-fit: contain; border-radius: 0; }
.logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--ink);
}

.header-search {
    flex: 1;
    display: flex;
    max-width: 720px;
    height: 44px;
}
.header-search input {
    flex: 1;
    min-width: 0;
    height: 100%;
    border: 1px solid var(--line-2);
    border-right: 0;
    border-radius: 8px 0 0 8px;
    padding: 0 0.95rem;
    font-size: 0.95rem;
    color: var(--ink);
    background: var(--surface);
    outline: none;
}
.header-search input:focus { border-color: var(--ink); }
.header-search button {
    width: 52px;
    border: 0;
    border-radius: 0 8px 8px 0;
    background: var(--ink);
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
}
.header-search button:hover { background: #1E293B; }

.auth-buttons { display: flex; align-items: center; gap: 0.5rem; flex-shrink: 0; margin-left: auto; }
.hdr-link {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.35rem 0.6rem;
    border: 0;
    border-radius: 8px;
    background: none;
    color: var(--ink);
    text-decoration: none;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.15;
    text-align: left;
}
.hdr-link:hover { background: var(--surface-2); }
.hdr-link > i { font-size: 1.2rem; color: var(--ink-2); }
.hdr-link-text small { display: block; font-size: 0.72rem; font-weight: 400; color: var(--muted); }
.hdr-caret { font-size: 0.65rem !important; color: var(--muted) !important; }

.main-header .auth-buttons .btn.hdr-sell {
    height: 40px;
    padding: 0 1.2rem;
    font-size: 0.9rem;
    width: auto;
    min-height: 0;
    margin: 0;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: 0;
    color: var(--ink);
    font-size: 1.2rem;
    padding: 0.4rem;
    margin-left: -0.4rem;
    cursor: pointer;
}

/* department row */
.dept-bar {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: var(--surface);
}
.dept-bar .desktop-nav {
    display: flex !important;
    align-items: center;
    gap: 0.1rem;
    overflow-x: auto;
    scrollbar-width: none;
    flex-wrap: nowrap;
}
.dept-bar .desktop-nav::-webkit-scrollbar { display: none; }
.dept-bar .nav-link {
    display: block;
    padding: 0.6rem 0.75rem;
    margin: 0;
    border-radius: 0;
    background: none !important;
    color: var(--ink-2);
    font-size: 0.86rem;
    font-weight: 500;
    white-space: nowrap;
    text-decoration: none;
    box-shadow: inset 0 -2px 0 transparent;
}
.dept-bar .nav-link:first-child { margin-left: -0.75rem; }
.dept-bar .nav-link:hover { color: var(--ink); box-shadow: inset 0 -2px 0 var(--ink); }
.dept-bar .nav-end { margin-left: auto; }

.mobile-menu { background: var(--surface); border-top: 1px solid var(--line); padding: 0.25rem 0 0.75rem; }
.mobile-nav-link {
    display: block;
    padding: 0.8rem 0;
    color: var(--ink);
    font-weight: 500;
    border-bottom: 1px solid var(--line);
    text-decoration: none;
}
.mobile-nav-link:hover { background: none; color: var(--green-dark); }
.mobile-menu .install-link { color: var(--green-dark); }

.user-menu { position: relative; }
.user-dropdown {
    top: calc(100% + 6px);
    right: 0;
    min-width: 210px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: 0 12px 32px -12px rgba(15, 23, 42, 0.25);
    padding: 0.35rem 0;
}
.user-dropdown a, .user-dropdown button {
    padding: 0.55rem 1rem;
    color: var(--ink);
    font-size: 0.875rem;
}
.user-dropdown a:hover, .user-dropdown button:hover { background: var(--surface-2); color: var(--ink); }
.dropdown-divider { background: var(--line); margin: 0.35rem 0; }

@media (max-width: 960px) {
    .header-content { flex-wrap: wrap; gap: 0.6rem 0.75rem; padding: 0.6rem 0 0.7rem; }
    .mobile-menu-btn { display: block !important; }
    .header-search { order: 10; flex-basis: 100%; max-width: none; height: 42px; }
    .hdr-link-text, .hdr-caret { display: none; }
    .dept-bar .nav-end { margin-left: 0; }
}
@media (max-width: 480px) {
    .logo-text { font-size: 1.12rem; }
    .main-header .auth-buttons .btn.hdr-sell { height: 36px; padding: 0 0.95rem; }
}

/* ---------- Flash messages ---------- */
.flash-wrap { margin-top: 1rem; }
.flash {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.8rem 1rem;
    margin-bottom: 0.75rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-left: 4px solid var(--ink-2);
    border-radius: 8px;
    color: var(--ink);
    font-size: 0.92rem;
    animation: none;
    transition: opacity 0.3s ease;
}
.flash i { margin-top: 0.15rem; color: var(--ink-2); }
.flash-success { border-left-color: var(--green); }
.flash-success i { color: var(--green); }
.flash-error { border-left-color: var(--sale); }
.flash-error i { color: var(--sale); }
.flash-warning { border-left-color: #D97706; }
.flash-warning i { color: #D97706; }

/* ---------- Buttons + forms ---------- */
.btn {
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: none;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn:hover { transform: none !important; box-shadow: none !important; }
.btn-primary { background: var(--green); color: #fff; border: 1px solid var(--green); }
.btn-primary:hover { background: var(--green-dark); border-color: var(--green-dark); color: #fff; }
.btn-outline { background: var(--surface); color: var(--ink); border: 1px solid var(--line-2); }
.btn-outline:hover { background: var(--surface-2); color: var(--ink); border-color: #9CA3AF; }
.btn-dark { background: var(--ink); color: #fff; border: 1px solid var(--ink); }
.btn-dark:hover { background: #1E293B; color: #fff; }

.form-input, .form-select, .form-textarea {
    background: var(--surface);
    border: 1px solid var(--line-2);
    border-radius: 8px;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.14);
    background: var(--surface);
}

.auth-card::before,
body .auth-card::before {
    animation: none;
    height: 3px;
    background: linear-gradient(90deg,
        var(--logo-blue) 0 33.3%, var(--logo-gold) 33.3% 66.6%, var(--logo-red) 66.6% 100%);
}
.auth-card { box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06); border: 1px solid var(--line); }

::-webkit-scrollbar-thumb { background: #CBD5E1; }

/* Microsoft's own "light" sign-in button: white, grey border, logo in colour */
.btn-microsoft, .btn-microsoft-signup {
    background: var(--surface) !important;
    color: var(--ink) !important;
    border: 1px solid var(--line-2) !important;
    border-radius: 8px;
    font-weight: 600;
    box-shadow: none !important;
}
.btn-microsoft:hover, .btn-microsoft-signup:hover {
    background: var(--surface-2) !important;
    border-color: #9CA3AF !important;
    transform: none !important;
}

/* ---------- Section headings ---------- */
.sec-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}
.sec-head h2 { font-size: 1.3rem; font-weight: 700; line-height: 1.25; }
.sec-head p { color: var(--muted); margin-top: 0.15rem; font-size: 0.9rem; }
.sec-link {
    color: var(--ink);
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    white-space: nowrap;
}
.sec-link:hover { text-decoration: underline; }
.sec-link i { font-size: 0.7em; margin-left: 0.25rem; color: var(--muted); }

/* ---------- Product grid + card ---------- */
.pgrid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}
@media (min-width: 700px) { .pgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; } }
@media (min-width: 1040px) { .pgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1240px) { .pgrid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); } }

.pcard {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    min-width: 0;
    transition: box-shadow 0.15s ease, border-color 0.15s ease;
}
.pcard:hover { border-color: var(--line-2); box-shadow: 0 6px 18px -8px rgba(15, 23, 42, 0.18); }
.pcard-media {
    position: relative;
    aspect-ratio: 1 / 1;
    background: #F3F4F6;
    overflow: hidden;
}
.pcard-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pcard-noimg {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9CA3AF;
    font-size: 1.6rem;
    font-weight: 600;
    text-transform: uppercase;
}
.pcard-tags {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    display: flex;
    gap: 0.3rem;
    flex-wrap: wrap;
    pointer-events: none;
}
.tag {
    display: inline-flex;
    align-items: center;
    padding: 0.12rem 0.45rem;
    border-radius: 4px;
    font-size: 0.68rem;
    font-weight: 600;
    line-height: 1.5;
    white-space: nowrap;
    background: var(--surface);
    color: var(--ink);
    border: 1px solid var(--line);
}
.tag-sale { background: var(--sale); color: #fff; border-color: var(--sale); }

.pcard-body {
    padding: 0.7rem 0.8rem 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
}
.pcard-title {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--ink-2);
    line-height: 1.4;
    letter-spacing: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.8em;
}
.pcard:hover .pcard-title { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.pcard-price { font-size: 1.05rem; font-weight: 700; color: var(--ink); line-height: 1.3; }
.pcard-price.is-sale { color: var(--sale); }
.pcard-price s { font-size: 0.78rem; font-weight: 400; color: var(--muted); margin-left: 0.35rem; }
.pcard-meta {
    margin-top: 0.15rem;
    font-size: 0.75rem;
    color: var(--muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.empty-box {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem 1.25rem;
    border: 1px dashed var(--line-2);
    border-radius: 10px;
    background: var(--surface);
}
.empty-box h3 { font-size: 1.1rem; margin-bottom: 0.35rem; }
.empty-box p { color: var(--muted); margin-bottom: 1rem; }

/* ---------- Browse page ---------- */
.browse { padding-top: 1.25rem; padding-bottom: 3rem; }
.crumbs { font-size: 0.8rem; color: var(--muted); margin-bottom: 0.6rem; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.crumbs span { margin: 0 0.35rem; }
.browse-head h1 { font-size: 1.5rem; font-weight: 700; line-height: 1.2; }
.browse-head p { color: var(--muted); margin-top: 0.2rem; font-size: 0.9rem; }
.browse-layout {
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr);
    gap: 2rem;
    margin-top: 1.25rem;
    align-items: start;
}
.filters {
    position: sticky;
    top: 130px;
    font-size: 0.875rem;
}
.filters summary { display: none; }
.filter-group { padding: 0 0 1.1rem; margin-bottom: 1.1rem; border-bottom: 1px solid var(--line); }
.filter-group:last-of-type { border-bottom: 0; }
.filter-group h4 {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
    margin-bottom: 0.6rem;
}
.filter-list { list-style: none; padding: 0; margin: 0; }
.filter-list a, .filter-list label {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.3rem 0;
    color: var(--ink-2);
    text-decoration: none;
    cursor: pointer;
}
.filter-list a:hover { color: var(--ink); text-decoration: underline; }
.filter-list a.is-on { color: var(--ink); font-weight: 600; }
.filter-list small { color: var(--muted); }
.filter-list input { accent-color: var(--ink); margin-right: 0.45rem; }
.filter-list label span { display: flex; align-items: center; }
.price-row { display: flex; gap: 0.4rem; align-items: center; }
.price-row input {
    width: 100%;
    min-width: 0;
    height: 36px;
    border: 1px solid var(--line-2);
    border-radius: 6px;
    padding: 0 0.55rem;
    font-size: 0.85rem;
}
.filters .btn { width: 100%; margin-top: 0.25rem; }
.filters-clear { display: block; text-align: center; margin-top: 0.6rem; color: var(--muted); font-size: 0.82rem; }

.browse-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding-bottom: 0.85rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--line);
    font-size: 0.875rem;
    color: var(--muted);
}
.browse-toolbar strong { color: var(--ink); }
.browse-toolbar select {
    height: 36px;
    border: 1px solid var(--line-2);
    border-radius: 6px;
    padding: 0 0.6rem;
    font-size: 0.85rem;
    color: var(--ink);
    background: var(--surface);
}
.active-filters { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1rem; }
.active-filters a {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.25rem 0.6rem;
    border: 1px solid var(--line-2);
    border-radius: 999px;
    font-size: 0.8rem;
    color: var(--ink);
    text-decoration: none;
}
.active-filters a:hover { border-color: var(--ink); }

@media (max-width: 900px) {
    .browse-layout { grid-template-columns: 1fr; gap: 0; margin-top: 0.9rem; }
    .filters { position: static; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 1rem; }
    .filters summary {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.75rem 1rem;
        font-weight: 600;
        cursor: pointer;
        list-style: none;
    }
    .filters summary::-webkit-details-marker { display: none; }
    .filters[open] summary { border-bottom: 1px solid var(--line); }
    .filters-body { padding: 1rem; }
}

.pager {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.4rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}
.pager a, .pager span {
    min-width: 2.3rem;
    height: 2.3rem;
    padding: 0 0.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    border: 1px solid var(--line-2);
    background: var(--surface);
    color: var(--ink);
    font-weight: 500;
    font-size: 0.875rem;
    text-decoration: none;
}
.pager a:hover { border-color: var(--ink); }
.pager .is-on { background: var(--ink); border-color: var(--ink); color: #fff; }
.pager .pager-note { border: 0; color: var(--muted); }

/* ---------- Visitor name popup ---------- */
.hello-pop {
    position: fixed;
    left: 1rem;
    bottom: 1rem;
    z-index: 300;
    width: min(330px, calc(100vw - 2rem));
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: 0 20px 40px -16px rgba(15, 23, 42, 0.3);
    padding: 1rem 1rem 0.9rem;
    transform: translateY(10px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}
.hello-pop.is-open { opacity: 1; transform: none; visibility: visible; }
.hello-pop h3 { font-size: 1rem; font-weight: 600; margin-bottom: 0.15rem; padding-right: 1.75rem; }
.hello-pop p { font-size: 0.85rem; color: var(--muted); margin-bottom: 0.7rem; }
.hello-pop form { display: flex; gap: 0.45rem; }
.hello-pop input {
    flex: 1;
    min-width: 0;
    height: 38px;
    padding: 0 0.7rem;
    border: 1px solid var(--line-2);
    border-radius: 8px;
    font-size: 0.9rem;
}
.hello-pop input:focus { outline: none; border-color: var(--green); }
.hello-pop button[type="submit"] {
    border: 0;
    border-radius: 8px;
    padding: 0 0.95rem;
    background: var(--green);
    color: #fff;
    font-weight: 600;
    cursor: pointer;
}
.hello-close {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 2rem;
    height: 2rem;
    border: 0;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    border-radius: 6px;
}
.hello-close:hover { background: var(--surface-2); color: var(--ink); }
.hello-skip {
    margin-top: 0.5rem;
    background: none;
    border: 0;
    color: var(--muted);
    font-size: 0.8rem;
    cursor: pointer;
    padding: 0;
}
.hello-skip:hover { color: var(--ink); text-decoration: underline; }

/* ---------- Install the app ---------- */
.install-bar {
    position: fixed;
    left: 0.75rem;
    right: 0.75rem;
    bottom: calc(0.75rem + env(safe-area-inset-bottom));
    z-index: 290;
    display: none;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 0.75rem;
    background: var(--surface);
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: 0 20px 40px -16px rgba(15, 23, 42, 0.3);
}
.install-bar.is-open { display: flex; }
.install-bar img { width: 40px; height: 40px; border-radius: 9px; border: 1px solid var(--line); object-fit: contain; flex-shrink: 0; }
.install-bar div { flex: 1; min-width: 0; font-size: 0.85rem; line-height: 1.35; }
.install-bar strong { display: block; font-size: 0.9rem; }
.install-bar small { color: var(--muted); }
.install-bar .btn { padding: 0.45rem 0.9rem; }
.install-bar .install-x { background: none; border: 0; color: var(--muted); font-size: 1rem; cursor: pointer; padding: 0.3rem; }
@media (min-width: 720px) {
    .install-bar { left: auto; right: 1rem; width: 380px; }
}
.install-sheet {
    position: fixed;
    inset: 0;
    z-index: 400;
    background: rgba(15, 23, 42, 0.5);
    display: none;
    align-items: flex-end;
    justify-content: center;
}
.install-sheet.is-open { display: flex; }
.install-sheet-card {
    width: 100%;
    max-width: 440px;
    background: var(--surface);
    border-radius: 14px 14px 0 0;
    padding: 1.3rem 1.25rem calc(1.3rem + env(safe-area-inset-bottom));
}
.install-sheet-card h3 { font-size: 1.05rem; margin-bottom: 0.7rem; }
.install-sheet-card ol { padding-left: 1.2rem; color: var(--ink-2); line-height: 1.8; font-size: 0.93rem; }
.install-sheet-card .btn { width: 100%; margin-top: 1rem; }
@media (min-width: 720px) {
    .install-sheet { align-items: center; }
    .install-sheet-card { border-radius: 14px; }
}

/* ---------- Footer ---------- */
.main-footer {
    background: var(--surface-2);
    color: var(--ink-2);
    border-top: 1px solid var(--line);
    margin-top: 3rem;
    padding: 2.5rem 0 1.25rem;
}
.main-footer::before { display: none; }
.footer-content {
    display: grid;
    grid-template-columns: 1.6fr repeat(4, minmax(0, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}
.footer-brand .logo { margin-bottom: 0.75rem; }
.footer-brand .logo-text { font-size: 1.1rem; }
.footer-section h3 {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--ink);
    margin-bottom: 0.8rem;
}
.footer-section p { color: var(--muted); font-size: 0.875rem; line-height: 1.6; max-width: 22rem; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 0.45rem; font-size: 0.875rem; color: var(--muted); }
.footer-links a { color: var(--ink-2); font-size: 0.875rem; text-decoration: none; }
.footer-links a:hover { color: var(--ink); text-decoration: underline; }
.footer-app {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-top: 1rem;
    padding: 0.5rem 0.85rem;
    border-radius: 8px;
    border: 1px solid var(--line-2);
    background: var(--surface);
    color: var(--ink);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
}
.footer-app:hover { border-color: var(--ink); }
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding-top: 1.1rem;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.8rem;
    text-align: left;
}
.social-links { display: flex; gap: 0.5rem; margin: 0; }
.social-links a {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid var(--line-2);
    background: var(--surface);
    color: var(--ink-2);
    font-size: 0.9rem;
}
.social-links a:hover { background: var(--surface); color: var(--ink); border-color: var(--ink); transform: none; }

@media (max-width: 900px) {
    .footer-content { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
    .footer-brand { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; }
}
