/* Soo Gig design system
   Deliberately shares soolife.ca's palette and typography — the two are
   sister sites and should read as a family. What's new here is the public
   (logged-out) chrome, the service-listing surfaces, and the map. */

:root {
    --teal-deep: #0B4A52;
    --teal: #0E6E77;
    --teal-bright: #14939F;
    --amber: #E08A2C;
    --amber-deep: #B4661A;
    --forest: #3F7D3A;
    --forest-soft: #E7F0E4;
    --sand: #FAF6EF;
    --sand-deep: #F1EADC;
    --ink: #24211B;
    --slate: #6B655A;
    --line: #E4DCC9;

    --radius: 10px;
    --shadow: 0 1px 2px rgba(36, 33, 27, 0.08), 0 1px 1px rgba(36, 33, 27, 0.04);
    --shadow-lift: 0 2px 10px rgba(36, 33, 27, 0.09);
    --sidebar-width: 220px;
    --font-heading: 'Barlow', 'Barlow Condensed', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', 'IBM Plex Mono', monospace;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--sand);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.5;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    margin: 0 0 0.5em;
}

a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }

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

img { max-width: 100%; }

.skip-link {
    position: absolute;
    top: -100%;
    left: 0.5rem;
    z-index: 1100;
    background: var(--teal-deep);
    color: #fff;
    padding: 0.6rem 1rem;
    border-radius: var(--radius);
    font-weight: 600;
}
.skip-link:focus {
    top: 0.5rem;
    text-decoration: none;
}

.label-mono {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--slate);
}

.optional { font-weight: 400; color: var(--slate); }

.page-intro { color: var(--slate); margin-top: -0.25rem; }

/* --- App shell: fixed left sidebar + top bar + content (logged in) --- */
.app-shell {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: var(--sidebar-width);
    flex-shrink: 0;
    background: var(--teal-deep);
    color: #fff;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    padding: 1.25rem 0.75rem;
    overflow-y: auto;
}

.sidebar .brand {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.35rem;
    color: #fff;
    padding: 0 0.5rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}
.sidebar .brand:hover { text-decoration: none; color: #fff; }
.sidebar .brand .mark { color: var(--amber); }

.sidebar nav { display: flex; flex-direction: column; gap: 0.15rem; }

.sidebar nav a {
    color: rgba(255, 255, 255, 0.82);
    text-decoration: none;
    padding: 0.6rem 0.75rem;
    border-radius: var(--radius);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.sidebar nav a:hover,
.sidebar nav a.active {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.nav-badge {
    margin-left: auto;
    background: var(--amber);
    color: #fff;
    border-radius: 99px;
    padding: 0.05rem 0.45rem;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 600;
}

.main-area {
    margin-left: var(--sidebar-width);
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.topbar {
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.topbar-search { display: flex; gap: 0.4rem; align-items: center; flex-wrap: nowrap; min-width: 0; }

.topbar input[type="search"],
.public-nav-search input[type="search"] {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 0.5rem 0.6rem;
    width: 240px;
    max-width: 42vw;
    min-width: 0;
    flex: 1 1 auto;
    font-family: var(--font-body);
}

.topbar select,
.public-nav-search select {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 0.5rem 0.4rem;
    font-family: var(--font-body);
    background: #fff;
    color: var(--ink);
    width: auto;
    max-width: 32vw;
    min-width: 0;
    flex: 0 1 auto;
}

.avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--forest-soft);
    color: var(--forest);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-family: var(--font-heading);
    overflow: hidden;
    flex-shrink: 0;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }

.topbar-profile { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--ink); text-decoration: none; }
.topbar-username { font-weight: 600; font-size: 0.9rem; }

.content {
    padding: 1.5rem;
    max-width: 720px;
    width: 100%;
    margin: 0 auto;
}

.content.wide { max-width: 1040px; }

/* --- Public chrome: top nav + footer (logged out, public routes) --- */
.public-nav {
    background: var(--teal-deep);
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 30;
}

.public-nav-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0.85rem clamp(1rem, 3vw, 2rem);
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.public-nav .brand {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.25rem;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-shrink: 0;
}
.public-nav .brand:hover { text-decoration: none; color: #fff; }
.public-nav .brand .mark { color: var(--amber); }

.public-nav-links { display: flex; gap: 0.35rem; flex: 1; }
.public-nav-links a {
    color: rgba(255, 255, 255, 0.82);
    font-weight: 500;
    padding: 0.45rem 0.75rem;
    border-radius: var(--radius);
}
.public-nav-links a:hover,
.public-nav-links a.active { background: rgba(255, 255, 255, 0.13); color: #fff; text-decoration: none; }

.public-nav-actions { display: flex; gap: 0.5rem; align-items: center; flex-shrink: 0; }

.public-nav-search {
    background: rgba(0, 0, 0, 0.12);
    padding: 0.6rem clamp(1rem, 3vw, 2rem);
}
.public-nav-search .topbar-search { max-width: 1100px; margin: 0 auto; }

.public-shell { min-height: 60vh; }

.site-footer {
    background: var(--teal-deep);
    color: rgba(255, 255, 255, 0.75);
    margin-top: 3rem;
    padding: 2.5rem clamp(1rem, 3vw, 2rem);
    font-size: 0.88rem;
}
.site-footer-inner { max-width: 1100px; margin: 0 auto; text-align: center; }
.site-footer .brand {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.15rem;
    color: #fff;
    display: flex;
    justify-content: center;
    gap: 0.45rem;
    margin-bottom: 0.75rem;
}
.site-footer .brand .mark { color: var(--amber); }
.site-footer nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 0.35rem 1.25rem; margin-bottom: 1rem; }
.site-footer a { color: rgba(255, 255, 255, 0.85); }
.site-footer a:hover { color: #fff; }
.site-footer p { margin: 0; }

/* --- Cards / forms / buttons --- */
.card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.25rem;
    margin-bottom: 1rem;
}

.btn {
    display: inline-block;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: var(--radius);
    padding: 0.55rem 1.1rem;
    border: 1px solid transparent;
    cursor: pointer;
    text-align: center;
}

.btn-primary { background: var(--amber); color: #fff; }
.btn-primary:hover { background: var(--amber-deep); color: #fff; text-decoration: none; }

.btn-secondary { background: #fff; color: var(--teal); border-color: var(--teal); }
.btn-secondary:hover { background: var(--teal); color: #fff; text-decoration: none; }

/* Sits on the dark nav band, where .btn-secondary's white fill is too loud. */
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.45); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.14); color: #fff; text-decoration: none; }

.btn-link { background: none; border: none; color: var(--slate); font-weight: 500; padding: 0.3rem 0.5rem; cursor: pointer; font-family: var(--font-body); font-size: 0.9rem; }
.btn-link:hover { color: var(--teal); }

.btn-danger { background: none; border: none; color: #a33; cursor: pointer; font-family: var(--font-body); font-weight: 600; font-size: 0.9rem; }
.btn-danger:hover { text-decoration: underline; }

.btn-row { display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center; }

input[type="text"], input[type="email"], input[type="password"],
input[type="search"], input[type="url"], input[type="number"], input[type="tel"],
textarea, select {
    font-family: var(--font-body);
    font-size: 1rem;
    padding: 0.6rem 0.75rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    width: 100%;
    background: #fff;
    color: var(--ink);
}
textarea { resize: vertical; min-height: 90px; }

label { font-weight: 600; font-size: 0.9rem; display: block; margin-bottom: 0.3rem; }
.field { margin-bottom: 1rem; }
.field small { color: var(--slate); font-size: 0.8rem; display: block; margin-top: 0.25rem; }
.field-disabled { opacity: 0.55; }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.field-group {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1rem 1.1rem 0.25rem;
    margin: 0 0 1.25rem;
    background: var(--sand);
}
.field-group legend {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    padding: 0 0.4rem;
}
.field-group-note { color: var(--slate); font-size: 0.85rem; margin: 0 0 1rem; }

.form-photo-preview {
    display: block;
    max-width: 220px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    margin-bottom: 0.5rem;
}

/* --- Flash messages --- */
.flash { border-radius: var(--radius); padding: 0.75rem 1rem; margin-bottom: 1rem; font-size: 0.9rem; }
.flash-success { background: var(--forest-soft); color: var(--forest); border: 1px solid var(--forest); }
.flash-error { background: #FBEAEA; color: #A33; border: 1px solid #C66; }
.flash-info { background: #EAF6F7; color: var(--teal-deep); border: 1px solid var(--teal-bright); }

/* --- Auth pages (login/register/forgot) --- */
.auth-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--sand-deep);
    padding: 2rem;
}

.auth-card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 2rem;
    width: 100%;
    max-width: 400px;
}

.auth-card .brand {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--teal-deep);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.auth-card .brand:hover { text-decoration: none; }
.auth-card .brand .mark { color: var(--amber); }

.auth-card .switch { text-align: center; margin-top: 1rem; font-size: 0.9rem; color: var(--slate); }

/* --- Listings --- */
.listing-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1rem; }
.listing-card { display: block; padding: 0; overflow: hidden; color: var(--ink); }
.listing-card:hover { text-decoration: none; box-shadow: var(--shadow-lift); }
.listing-photo { width: 100%; height: 150px; object-fit: cover; display: block; }
.listing-photo-placeholder {
    display: flex; align-items: center; justify-content: center;
    background: var(--sand-deep); font-size: 2.4rem; height: 150px;
}
.listing-body { padding: 0.85rem 1rem; }
.listing-title { font-weight: 600; margin-bottom: 0.2rem; font-family: var(--font-heading); font-size: 1.05rem; }
.listing-meta { color: var(--slate); font-size: 0.85rem; }
.listing-note { color: var(--amber-deep); font-size: 0.82rem; margin-top: 0.2rem; }

.badge {
    display: inline-block; border-radius: 99px; padding: 0.15rem 0.6rem;
    font-size: 0.75rem; font-weight: 600; margin-top: 0.4rem;
}
.badge-active, .badge-open { background: var(--forest-soft); color: var(--forest); }
.badge-closed, .badge-paused { background: var(--sand-deep); color: var(--slate); }
.badge-alert { background: #FBEAEA; color: #A33; }
.badge-info { background: #EAF6F7; color: var(--teal-deep); }
.badge-amber { background: var(--amber); color: #fff; }

.stars { color: var(--amber); letter-spacing: 0.08em; }
.stars-empty { color: var(--line); }

.btn-secondary.saved { background: var(--teal); color: #fff; }

.tabs { display: flex; gap: 0.5rem; margin-bottom: 1rem; flex-wrap: wrap; }
.tabs a {
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    font-weight: 600;
    color: var(--slate);
    background: var(--sand-deep);
}
.tabs a:hover { text-decoration: none; background: var(--line); }
.tabs a.active { background: var(--teal); color: #fff; }

.empty-state { text-align: center; padding: 2.5rem 1rem; color: var(--slate); }

/* --- Browse filters --- */
.filter-bar {
    display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center;
    margin-bottom: 1rem;
}
.filter-bar input[type="search"] { flex: 1; min-width: 190px; }
.filter-bar select { width: auto; min-width: 150px; }

.category-chips { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.category-chip {
    display: inline-flex; align-items: center; gap: 0.35rem;
    background: #fff; border: 1px solid var(--line); border-radius: 99px;
    padding: 0.35rem 0.85rem; font-size: 0.85rem; font-weight: 500; color: var(--ink);
}
.category-chip:hover { text-decoration: none; border-color: var(--teal); color: var(--teal); }
.category-chip.active { background: var(--teal); border-color: var(--teal); color: #fff; }
.category-chip .count { color: var(--slate); font-size: 0.78rem; }
.category-chip.active .count { color: rgba(255, 255, 255, 0.75); }

/* --- Service detail --- */
.service-hero { padding: 0; overflow: hidden; }
.service-hero-photo { width: 100%; max-height: 380px; object-fit: cover; display: block; }
.service-hero-body { padding: 1.5rem; }
.service-hero h1 { font-size: 1.7rem; margin-bottom: 0.35rem; }
.service-hero-meta { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; align-items: center; margin-bottom: 1rem; }

.rate-pill {
    background: var(--amber); color: #fff; font-weight: 700;
    border-radius: 99px; padding: 0.3rem 0.9rem; font-size: 0.95rem;
}
.rate-pill.rate-quote { background: var(--sand-deep); color: var(--amber-deep); }

.service-body { white-space: pre-wrap; margin-bottom: 1.25rem; }

.detail-list { list-style: none; padding: 0; margin: 0 0 1.25rem; }
.detail-list li {
    display: flex; gap: 0.7rem; padding: 0.5rem 0;
    border-top: 1px solid var(--sand-deep); font-size: 0.94rem;
}
.detail-list li:first-child { border-top: none; }
.detail-list .detail-icon { flex-shrink: 0; width: 1.4rem; text-align: center; }
.detail-list .detail-label { color: var(--slate); flex: 0 0 7.5rem; }
.detail-list .detail-value { flex: 1; min-width: 0; overflow-wrap: anywhere; }

.worker-strip { display: flex; align-items: center; gap: 0.9rem; }
.worker-strip .avatar { width: 52px; height: 52px; font-size: 1.25rem; }
.worker-strip-body { flex: 1; min-width: 0; }
.worker-strip-name { font-weight: 600; font-family: var(--font-heading); font-size: 1.05rem; }
.worker-strip-note { color: var(--slate); font-size: 0.85rem; }

.review { padding: 0.85rem 0; border-top: 1px solid var(--sand-deep); }
.review:first-of-type { border-top: none; }
.review-head { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 0.25rem; }
.review-head .name { font-weight: 600; }
.review-head .time { color: var(--slate); font-size: 0.8rem; margin-left: auto; }
.review-body { white-space: pre-wrap; font-size: 0.94rem; }

.rating-summary { display: flex; align-items: baseline; gap: 0.6rem; flex-wrap: wrap; }
.rating-score { font-family: var(--font-heading); font-size: 2rem; font-weight: 700; color: var(--teal-deep); line-height: 1; }

/* --- Maps --- */
.map-panel { padding: 0; overflow: hidden; }
.service-map { height: 460px; width: 100%; background: var(--sand-deep); }
.service-map.map-tall { height: min(70vh, 700px); }
.service-map.map-inline { height: 260px; border-radius: var(--radius); }

.map-legend { padding: 0.85rem 1.25rem; border-top: 1px solid var(--line); color: var(--slate); font-size: 0.85rem; }

/* Popup contents on the browse map. */
.map-popup { font-family: var(--font-body); }
.map-popup .map-popup-title { font-family: var(--font-heading); font-weight: 600; font-size: 1rem; margin-bottom: 0.15rem; display: block; }
.map-popup .map-popup-meta { color: var(--slate); font-size: 0.82rem; }
.leaflet-popup-content { margin: 0.75rem 0.9rem; }

.pin-picker { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; margin-bottom: 1rem; }
.pin-picker-map { height: 320px; width: 100%; background: var(--sand-deep); }
.pin-picker-noscript { padding: 1rem; color: var(--slate); font-size: 0.85rem; margin: 0; }
.pin-picker-bar {
    display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
    padding: 0.5rem 0.85rem; border-top: 1px solid var(--line); background: var(--sand);
}
.pin-picker-status { font-size: 0.85rem; color: var(--slate); }

/* --- Messages --- */
.message-layout { display: flex; gap: 1rem; align-items: flex-start; flex-wrap: wrap; }
.message-list { width: 260px; flex-shrink: 0; padding: 0.5rem; }
.message-thread { flex: 1; min-width: 280px; }
.conversation-link {
    display: flex; gap: 0.6rem; align-items: center; padding: 0.5rem;
    border-radius: var(--radius); color: var(--ink);
}
.conversation-link:hover { text-decoration: none; background: var(--sand); }
.conversation-link.active { background: var(--sand-deep); }
.conversation-body { flex: 1; min-width: 0; }
.conversation-name { font-weight: 600; }
.conversation-preview { font-size: 0.8rem; color: var(--slate); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.bubbles { display: flex; flex-direction: column; gap: 0.6rem; max-height: 420px; overflow-y: auto; margin-bottom: 1rem; }
.bubble { max-width: 75%; padding: 0.5rem 0.75rem; border-radius: var(--radius); white-space: pre-wrap; }
.bubble-mine { align-self: flex-end; background: var(--teal); color: #fff; }
.bubble-theirs { align-self: flex-start; background: var(--sand-deep); }

.notification-item { display: flex; align-items: center; gap: 0.75rem; color: var(--ink); }
.notification-item:hover { text-decoration: none; box-shadow: var(--shadow-lift); }
.notification-item.unread { border-left: 4px solid var(--amber); }
.notification-icon { font-size: 1.3rem; }
.notification-body { flex: 1; }
.notification-body .time { color: var(--slate); font-size: 0.8rem; margin-top: 0.15rem; }

/* --- Admin --- */
.chart-row { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.5rem; }
.chart-label { flex: 0 0 140px; font-size: 0.85rem; color: var(--slate); }
.chart-track { flex: 1; background: var(--sand-deep); border-radius: 99px; height: 14px; overflow: hidden; }
.chart-fill { height: 100%; background: var(--teal); border-radius: 99px; }
.chart-value { flex: 0 0 auto; font-weight: 600; font-size: 0.85rem; min-width: 2ch; text-align: right; }

.stat-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; margin-bottom: 1rem; }
.stat-tile { text-align: center; }
.stat-tile .stat-value { font-size: 1.6rem; font-weight: 700; color: var(--teal-deep); font-family: var(--font-heading); }
.stat-tile .stat-label { color: var(--slate); font-size: 0.8rem; }
.stat-tile-link { display: block; text-decoration: none; transition: box-shadow 0.15s; }
.stat-tile-link:hover { box-shadow: 0 0 0 2px var(--teal-deep) inset; text-decoration: none; }

.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th, .admin-table td { text-align: left; padding: 0.5rem 0.6rem; border-bottom: 1px solid var(--line); font-size: 0.9rem; }
.admin-table th a { color: var(--ink); }
.admin-table tr:hover td { background: var(--sand-deep); }

.bottom-nav { display: none; }

@media (max-width: 780px) {
    .sidebar { display: none; }
    .main-area { margin-left: 0; }
    .content { padding-bottom: 5rem; }

    .field-row { grid-template-columns: 1fr; gap: 0; }
    .stat-tiles { grid-template-columns: repeat(2, 1fr); }
    .topbar-username { display: none; }
    .topbar { padding: 0.6rem 1rem; gap: 0.5rem; }
    .topbar input[type="search"] { width: 110px; max-width: 45vw; }
    .topbar select { max-width: 30vw; font-size: 0.85rem; }

    .public-nav-inner { flex-wrap: wrap; gap: 0.5rem 0.75rem; }
    .public-nav-links { order: 3; width: 100%; flex: none; overflow-x: auto; }
    .public-nav-actions { margin-left: auto; }
    .public-nav-actions .btn { padding: 0.5rem 0.8rem; font-size: 0.85rem; }

    .message-list { width: 100%; }
    .service-map.map-tall { height: 60vh; }

    .detail-list li { flex-wrap: wrap; }
    .detail-list .detail-label { flex-basis: auto; }

    .bottom-nav {
        display: flex;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 20;
        background: var(--teal-deep);
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.15);
        padding: 0.35rem 0.25rem calc(0.35rem + env(safe-area-inset-bottom, 0px));
        justify-content: space-around;
    }
    .bottom-nav > a,
    .bottom-nav-more summary {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.15rem;
        flex: 1;
        color: rgba(255, 255, 255, 0.7);
        font-size: 0.68rem;
        padding: 0.2rem;
        cursor: pointer;
    }
    .bottom-nav > a:hover,
    .bottom-nav > a.active,
    .bottom-nav-more[open] summary,
    .bottom-nav-sheet a.active {
        color: #fff;
        text-decoration: none;
    }
    .bottom-nav-more summary { list-style: none; }
    .bottom-nav-more summary::-webkit-details-marker { display: none; }
    .bottom-nav-icon { position: relative; font-size: 1.25rem; line-height: 1; }
    .bottom-nav-badge {
        position: absolute;
        top: -0.3rem;
        right: -0.6rem;
        background: var(--amber);
        color: #fff;
        border-radius: 99px;
        font-size: 0.6rem;
        padding: 0 0.3rem;
    }
    .bottom-nav-more { position: relative; flex: 1; }
    .bottom-nav-sheet {
        position: absolute;
        bottom: 100%;
        right: 0;
        margin-bottom: 0.6rem;
        background: var(--teal-deep);
        border-radius: var(--radius);
        box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.25);
        padding: 0.4rem;
        width: max-content;
        min-width: 210px;
        max-height: 70vh;
        overflow-y: auto;
        display: flex;
        flex-direction: column;
        gap: 0.1rem;
    }
    .bottom-nav-sheet a {
        display: flex;
        align-items: center;
        gap: 0.6rem;
        padding: 0.55rem 0.7rem;
        border-radius: 6px;
        color: rgba(255, 255, 255, 0.85);
        font-size: 0.9rem;
    }
    .bottom-nav-sheet a:hover { background: rgba(255, 255, 255, 0.1); color: #fff; text-decoration: none; }
}

/* --- Public landing page (/) --- */
.landing-nav {
    position: absolute; top: 0; left: 0; right: 0; z-index: 3;
    padding: 1.25rem clamp(1.25rem, 4vw, 3rem);
}
.landing-nav-inner {
    max-width: 1100px; margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.landing-nav .brand { font-family: var(--font-heading); font-weight: 700; font-size: 1.2rem; color: #fff; display: flex; align-items: center; gap: 0.4rem; }
.landing-nav .brand:hover { text-decoration: none; color: #fff; }
.landing-nav .brand .mark { color: var(--amber); }
.landing-nav-actions { display: flex; gap: 0.5rem; align-items: center; }

.landing-hero {
    position: relative; overflow: hidden;
    background: var(--teal-deep);
    padding: 7.5rem clamp(1.25rem, 4vw, 3rem) 0;
    color: #fff;
}
/* padding-bottom clears .landing-waves (260px tall) — this hero carries two
   buttons plus a secondary link, so it needs more room than soolife's does
   or the amber foam line cuts straight through the link text. */
.landing-hero-inner {
    max-width: 760px; margin: 0 auto; padding-bottom: 12.5rem; position: relative; z-index: 2;
    text-align: center;
}
.landing-eyebrow {
    font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.12em;
    text-transform: uppercase; color: var(--amber); margin-bottom: 1rem;
}
.landing-headline {
    font-family: var(--font-heading); font-weight: 700; font-size: clamp(2.4rem, 6vw, 4.2rem);
    line-height: 1.05; letter-spacing: -0.01em; margin-bottom: 1.1rem; color: #fff;
}
.landing-subhead {
    font-size: 1.15rem; color: rgba(255, 255, 255, 0.82);
    max-width: 560px; margin: 0 auto 2rem;
}
.landing-hero-actions { display: flex; flex-direction: column; align-items: center; gap: 0.75rem; }
.landing-hero-buttons { display: flex; gap: 0.75rem; flex-wrap: wrap; justify-content: center; }
.landing-cta { font-size: 1.05rem; padding: 0.85rem 2rem; }
.landing-secondary-link { color: rgba(255, 255, 255, 0.75); font-size: 0.9rem; }
.landing-secondary-link:hover { color: #fff; }

.landing-waves { position: absolute; left: 0; right: 0; bottom: 0; height: 260px; z-index: 1; pointer-events: none; overflow: hidden; }
.landing-wave { position: absolute; left: 0; bottom: 0; width: 200%; height: 100%; }
.landing-wave-1 { animation: wave-drift 24s linear infinite; }
.landing-wave-2 { bottom: -16px; animation: wave-drift 17s linear infinite reverse; }
.landing-wave-3 { bottom: -34px; animation: wave-drift 11s linear infinite; }
.landing-wave-foam { bottom: 16px; animation: wave-drift 8s linear infinite reverse; }

@keyframes wave-drift {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
    .landing-wave { animation: none !important; }
}

.landing-section { max-width: 1100px; margin: 0 auto; padding: 5rem clamp(1.25rem, 4vw, 3rem); }
.landing-section-alt { background: var(--sand-deep); }
.landing-section-title { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 2.5rem; max-width: 34ch; }

.landing-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.landing-feature { padding: 1.5rem; background: #fff; border-radius: var(--radius); border: 1px solid var(--line); }
.landing-feature-icon { font-size: 1.8rem; display: block; margin-bottom: 0.75rem; }
.landing-feature h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.landing-feature p { color: var(--slate); font-size: 0.92rem; margin: 0; }

.landing-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.landing-step-num { font-family: var(--font-mono); font-size: 0.85rem; color: var(--amber-deep); letter-spacing: 0.08em; }
.landing-step h3 { margin: 0.5rem 0 0.4rem; font-size: 1.05rem; }
.landing-step p { color: var(--slate); font-size: 0.92rem; margin: 0; }

/* The category cloud on the landing page — same chips as the browse page,
   just centred and given room to breathe. */
.landing-categories { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; }
.landing-categories .category-chip { font-size: 0.95rem; padding: 0.5rem 1.1rem; }

.landing-faq { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 0.75rem; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 0 1.25rem; }
.faq-item summary {
    list-style: none; cursor: pointer; padding: 1.1rem 0; font-weight: 600; font-size: 1rem;
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 1.3rem; color: var(--amber-deep); flex-shrink: 0; }
.faq-item[open] summary::after { content: '\2212'; }
.faq-item .faq-body { padding: 0 0 1.1rem; color: var(--slate); font-size: 0.92rem; }
.faq-item .faq-body p { margin: 0 0 0.75rem; }
.faq-item .faq-body p:last-child { margin-bottom: 0; }

.landing-cta-band {
    background: var(--forest); color: #fff; text-align: center; padding: 4rem clamp(1.25rem, 4vw, 3rem);
}
.landing-cta-band h2 { font-size: clamp(1.4rem, 3vw, 2rem); margin-bottom: 0.75rem; color: #fff; }
.landing-cta-band p { color: rgba(255, 255, 255, 0.85); margin: 0 auto 1.5rem; max-width: 46ch; }
.landing-cta-band .btn-primary { background: #fff; color: var(--forest); }
.landing-cta-band .btn-primary:hover { background: var(--sand); color: var(--forest); }

.landing-footer {
    text-align: center; padding: 3rem clamp(1.25rem, 4vw, 3rem); color: var(--slate); font-size: 0.85rem;
}
.landing-footer .brand { justify-content: center; font-family: var(--font-heading); font-weight: 700; color: var(--ink); display: flex; gap: 0.4rem; margin-bottom: 0.5rem; }
.landing-footer .brand .mark { color: var(--amber); }
.landing-footer nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 0.35rem 1.25rem; margin-bottom: 0.75rem; }

@media (max-width: 780px) {
    .landing-features { grid-template-columns: 1fr; }
    .landing-steps { grid-template-columns: 1fr; }
    .landing-hero { padding-top: 6rem; }
    .landing-hero-inner { padding-bottom: 7rem; }
    .landing-waves { height: 160px; }
    .landing-wave-2 { bottom: -10px; }
    .landing-wave-3 { bottom: -20px; }
    .landing-wave-foam { bottom: 10px; }
    .landing-section { padding: 3.5rem clamp(1.25rem, 4vw, 3rem); }
}
