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

/* Light mode — yellow brand accent */
:root {
    --bg: #fdfdfd;
    --surface: #ffffff;
    --text: #111827;
    --muted: #6b7280;
    --accent: var(--brand-primary);
    --accent-hover: var(--brand-primary-hover);
    --accent-light: var(--brand-primary-light);
    --cta: var(--brand-primary);
    --cta-hover: var(--brand-primary-hover);
    --cta-light: var(--brand-primary-light);
    --border: #e5e7eb;
    --surface-hover: #f9fafb;
    --code-bg: #f3f4f6;
    --shadow: rgba(0,0,0,0.04);
    --badge-bg: #f3f4f6;
    --entity-bg: #f3f4f6;
    --entity-text: #374151;
    --btn-text: #111827;
    --card-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
}

/* Dark mode */
@media (prefers-color-scheme: dark) {
    :root {
        --bg: #0f0f13;
        --surface: #1a1a24;
        --text: #e8e8ed;
        --muted: #9ca3af;
        --accent: #e8e8ed;
        --accent-hover: #ffffff;
        --accent-light: #2a2a35;
        --cta: #e8e8ed;
        --cta-hover: #ffffff;
        --cta-light: #2a2a35;
        --border: #2a2a35;
        --surface-hover: #22222e;
        --code-bg: #14141c;
        --shadow: rgba(0,0,0,0.4);
        --badge-bg: #2a2a35;
        --entity-bg: #2a2a35;
        --entity-text: #d1d5db;
        --btn-text: #111827;
        --card-shadow: 0 1px 3px rgba(0,0,0,0.3);
    }
}

/* Manual toggle via data attribute */
[data-theme="light"] {
    --bg: #fdfdfd;
    --surface: #ffffff;
    --text: #111827;
    --muted: #6b7280;
    --accent: var(--brand-primary);
    --accent-hover: var(--brand-primary-hover);
    --accent-light: var(--brand-primary-light);
    --cta: var(--brand-primary);
    --cta-hover: var(--brand-primary-hover);
    --cta-light: var(--brand-primary-light);
    --border: #e5e7eb;
    --surface-hover: #f9fafb;
    --code-bg: #f3f4f6;
    --shadow: rgba(0,0,0,0.04);
    --badge-bg: #f3f4f6;
    --entity-bg: #f3f4f6;
    --entity-text: #374151;
    --btn-text: #111827;
    --card-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
}

[data-theme="dark"] {
    --bg: #0f0f13;
    --surface: #1a1a24;
    --text: #e8e8ed;
    --muted: #9ca3af;
    --accent: #e8e8ed;
    --accent-hover: #ffffff;
    --accent-light: #2a2a35;
    --cta: #e8e8ed;
    --cta-hover: #ffffff;
    --cta-light: #2a2a35;
    --border: #2a2a35;
    --surface-hover: #22222e;
    --code-bg: #14141c;
    --shadow: rgba(0,0,0,0.4);
    --badge-bg: #2a2a35;
    --entity-bg: #2a2a35;
    --entity-text: #d1d5db;
    --btn-text: #111827;
    --card-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

body {
    font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Nav */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.875rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
}

.logo {
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--accent);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.logo-fish {
    flex-shrink: 0;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    flex-direction: column;
    gap: 5px;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform 0.2s;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
    -webkit-tap-highlight-color: transparent;
}

.nav-links a:hover {
    color: var(--text);
}

/* Feed search */
.feed-search {
    margin-bottom: 0.5rem;
}

.sort-and-filter {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 0.5rem;
}

.search-form {
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 0.875rem;
    color: var(--muted);
    pointer-events: none;
}

.search-form input {
    width: 100%;
    padding: 0.625rem 2.5rem 0.625rem 2.5rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface);
    color: var(--text);
    font-size: 0.9rem;
    font-family: inherit;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.search-form input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-light);
}

.search-form input::placeholder {
    color: var(--muted);
}

.search-clear {
    position: absolute;
    right: 0.625rem;
    color: var(--muted);
    display: flex;
    align-items: center;
    padding: 0.25rem;
    border-radius: 50%;
    transition: all 0.15s;
}

.search-clear:hover {
    color: var(--text);
    background: var(--surface-hover);
}

.search-count {
    font-size: 0.8rem;
    color: var(--muted);
    margin-top: 0.5rem;
}

.search-context {
    font-size: 0.85rem;
    color: var(--muted);
    padding: 0.5rem 0;
    margin-bottom: 0.5rem;
}
.search-context-clear {
    color: var(--muted);
    text-decoration: underline;
    margin-left: 0.5rem;
    font-size: 0.8rem;
}

/* Search results */
.search-results-header {
    padding: 0 0 0.75rem;
}

.nav-create {
    color: var(--cta) !important;
    font-weight: 600 !important;
}

/* Nav user */
.nav-user {
    color: var(--accent) !important;
    font-weight: 600;
}

.btn-small {
    padding: 0.35rem 1rem;
    font-size: 0.8rem;
    border-radius: 6px;
    color: #ffffff !important;
}

/* Theme toggle */
.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--muted);
    padding: 0.4rem;
    display: flex;
    align-items: center;
    transition: color 0.2s;
}

.theme-toggle:hover { color: var(--text); }

/* Light mode: show moon, hide sun */
.icon-sun { display: none; }
.icon-moon { display: block; }

/* Dark mode: show sun, hide moon */
@media (prefers-color-scheme: dark) {
    .icon-sun { display: block; }
    .icon-moon { display: none; }
}

[data-theme="dark"] .icon-sun { display: block; }
[data-theme="dark"] .icon-moon { display: none; }
[data-theme="light"] .icon-sun { display: none; }
[data-theme="light"] .icon-moon { display: block; }

/* Main */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 2rem;
}

/* Hero (about page) */
.hero {
    text-align: center;
    padding: 6rem 0 4rem;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.subtitle {
    font-size: 1.2rem;
    color: var(--muted);
    max-width: 600px;
    margin: 0 auto;
}

/* Feed hero (compact, for homepage) */
.feed-hero {
    text-align: center;
    padding: 2rem 0 1.5rem;
}

.feed-hero h1 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
    letter-spacing: -0.01em;
}

.feed-hero p {
    color: var(--muted);
    font-size: 0.95rem;
}

/* How it works — 3 steps for new visitors */
.how-it-works {
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding: 0.75rem 0 1rem;
    max-width: 640px;
    margin: 0 auto;
}

.hiw-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    text-align: center;
    flex: 1;
}

.hiw-icon {
    color: var(--accent);
    margin-bottom: 0.15rem;
}

.hiw-step strong {
    font-size: 0.85rem;
}

.hiw-step span:last-child {
    font-size: 0.75rem;
    color: var(--muted);
    line-height: 1.3;
}

/* Feed controls */
.feed-controls {
    position: sticky;
    top: 0;
    background: var(--bg);
    z-index: 50;
    padding: 0.75rem 0 0.5rem;
    margin-bottom: 1rem;
}

/* Sort row */
.sort-row {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    margin-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
}

/* Sort tabs */
.sort-tabs {
    display: flex;
    gap: 0;
}

.sort-tab {
    padding: 0.6rem 1rem;
    color: var(--muted);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    border-bottom: 2px solid transparent;
    transition: all 0.15s;
    -webkit-tap-highlight-color: transparent;
    letter-spacing: -0.01em;
}

.sort-tab:hover {
    color: var(--text);
}

.sort-tab.active {
    color: var(--text);
    border-bottom-color: var(--accent);
}

/* Features */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    padding: 4rem 0;
}

.feature {
    background: var(--surface);
    border-radius: 12px;
    padding: 1.75rem;
    border: 1px solid var(--border);
    box-shadow: var(--card-shadow);
}

.feature h3 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    color: var(--accent);
}

.feature p {
    color: var(--muted);
    font-size: 0.95rem;
}

.feature pre {
    margin-top: 1rem;
    background: var(--code-bg);
    border-radius: 8px;
    padding: 1rem;
    overflow-x: auto;
}

.feature code {
    font-size: 0.8rem;
    color: var(--text);
}

/* Pricing */
.pricing {
    text-align: center;
    padding: 4rem 0 2rem;
}

.pricing h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.pricing p {
    color: var(--muted);
}

/* CTA */
.cta {
    text-align: center;
    padding: 4rem 0;
}

.cta h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.cta p {
    color: var(--muted);
    margin-bottom: 1.5rem;
}

/* Buttons */
.btn {
    display: inline-block;
    background: var(--accent);
    color: var(--btn-text);
    padding: 0.625rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.15s;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
}

.btn-outline {
    border: 1px solid var(--muted);
    padding: 0.4rem 1rem;
    border-radius: 6px;
    font-size: 0.85rem;
}

/* About page */
.about-fish {
    display: block;
    margin: 0 auto 1.5rem;
}

.about-how {
    text-align: center;
    padding: 3rem 0;
}

.about-how h2 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
}

.about-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.about-step {
    text-align: center;
}

.about-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: var(--accent);
    color: var(--btn-text);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

.about-step h3 {
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
}

.about-step p {
    color: var(--muted);
    font-size: 0.9rem;
}

.about-examples {
    text-align: center;
    padding: 3rem 0;
    border-top: 1px solid var(--border);
}

.about-examples h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.about-example-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    max-width: 700px;
    margin: 0 auto;
}

.about-example {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 2rem;
    padding: 0.5rem 1.25rem;
    font-size: 0.9rem;
    color: var(--text);
    box-shadow: var(--card-shadow);
}

.about-why, .about-free {
    text-align: center;
    padding: 3rem 0;
    border-top: 1px solid var(--border);
}

.about-why h2, .about-free h2 {
    font-size: 1.8rem;
    margin-bottom: 0.75rem;
}

.about-why p, .about-free p {
    color: var(--muted);
    max-width: 600px;
    margin: 0 auto;
    font-size: 1rem;
    line-height: 1.6;
}

/* Business page */
.biz-integrations, .biz-usecases, .biz-api {
    padding: 3rem 0;
    border-top: 1px solid var(--border);
}

.biz-integrations h2, .biz-usecases h2, .biz-api h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.biz-integration-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.biz-integration-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--card-shadow);
}

.biz-integration-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.biz-integration-card p {
    color: var(--muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.biz-code-block {
    position: relative;
    background: var(--code-bg);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    overflow-x: auto;
}

.biz-code-block pre {
    margin: 0;
}

.biz-code-block code {
    font-size: 0.78rem;
    color: var(--text);
    white-space: pre;
}

.biz-code-wide {
    max-width: 600px;
    margin: 0 auto;
}

.biz-copy-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    opacity: 0.5;
    transition: opacity 0.2s;
}

.biz-copy-btn:hover {
    opacity: 1;
}

.biz-preview-label {
    font-size: 0.78rem;
    color: var(--muted);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.biz-float-note {
    font-size: 0.85rem;
    color: var(--accent);
    font-style: italic;
}

.biz-usecase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.biz-usecase {
    text-align: center;
    padding: 1.5rem;
}

.biz-usecase-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.75rem;
}

.biz-usecase h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.biz-usecase p {
    color: var(--muted);
    font-size: 0.9rem;
}

.biz-api p {
    text-align: center;
    color: var(--muted);
    margin-bottom: 1.5rem;
}

.biz-proof {
    text-align: center;
    padding: 2rem 0;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 0.95rem;
    font-style: italic;
}

/* For-biz section */
.for-biz {
    text-align: center;
    padding: 4rem 0;
    border-top: 1px solid var(--border);
}

.for-biz h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.for-biz p {
    color: var(--muted);
    max-width: 600px;
    margin: 0 auto 1.5rem;
}

/* Buttons */
.btn-secondary {
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
    margin-left: 1rem;
}

.btn-secondary:hover {
    background: var(--accent);
    color: var(--btn-text);
}

.cta .btn {
    padding: 0.875rem 2rem;
    font-size: 1.05rem;
    font-weight: 700;
    border-radius: 10px;
    box-shadow: 0 4px 14px rgba(254, 190, 16, 0.35);
    transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}

.cta .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(254, 190, 16, 0.5);
}

.cta .btn-secondary {
    border-color: var(--border);
    color: var(--muted);
    box-shadow: none;
}

.cta .btn-secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: transparent;
    box-shadow: none;
    transform: none;
}

.cta .btn + .btn {
    margin-left: 1rem;
}

/* How it works */
.how-it-works {
    padding: 2rem 0;
}

.how-it-works h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 1rem;
}

/* Filters */
.filters {
    margin-bottom: 2rem;
}

.geo-filter {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
}

.geo-pill {
    padding: 0.35rem 0.875rem;
    border-radius: 8px;
    background: transparent;
    color: var(--muted);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.15s;
    border: 1px solid var(--border);
}

.geo-pill:hover { background: var(--surface-hover); color: var(--text); border-color: var(--muted); }
.geo-pill.active { background: var(--surface); color: var(--text); border-color: var(--accent); font-weight: 600; box-shadow: 0 0 0 1px var(--accent); }
.geo-pill-disabled { opacity: 0.35; cursor: default; pointer-events: auto; }
.geo-pill-disabled:hover { opacity: 0.5; border-color: var(--border); }

/* Category filters */
.category-filters {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.cat-pill {
    padding: 0.35rem 0.875rem;
    border-radius: 8px;
    background: transparent;
    color: var(--muted);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.15s;
    border: 1px solid var(--border);
}

.cat-pill:hover {
    background: var(--surface-hover);
    color: var(--text);
    border-color: var(--muted);
}

.cat-pill.active {
    background: var(--surface);
    color: var(--text);
    border-color: var(--accent);
    font-weight: 600;
    box-shadow: 0 0 0 1px var(--accent);
}

/* Feed actions / filter dropdown */
.feed-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-dropdown {
    position: relative;
}

.filter-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--muted);
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.15s;
    display: flex;
    align-items: center;
}

.filter-btn:hover {
    background: var(--surface-hover);
    color: var(--text);
}

.filter-btn.filter-active {
    color: var(--accent);
}

.filter-menu {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 4px);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: 0 8px 24px var(--shadow);
    min-width: 140px;
    z-index: 100;
    overflow: hidden;
}

.filter-dropdown.open .filter-menu {
    display: block;
}

.filter-divider {
    height: 1px;
    background: var(--border);
    margin: 0.25rem 0;
}

.filter-item {
    display: block;
    padding: 0.6rem 1rem;
    color: var(--muted);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: background 0.1s;
}

.filter-item:hover {
    background: var(--surface-hover);
    color: var(--text);
}

.filter-item.active {
    color: var(--accent);
    font-weight: 600;
}

/* Geo-filter section in dropdown: hidden on desktop, shown on mobile */
.filter-geo-mobile { display: none; }
@media (max-width: 640px) {
    .filter-geo-mobile { display: block; }
}

/* Beep grid */
.beep-grid {
    columns: 320px;
    column-gap: 1rem;
    max-width: 680px;
    margin: 0 auto;
}

@media (min-width: 900px) {
    .beep-grid {
        max-width: 100%;
    }
}

.beep-card {
    background: var(--surface);
    border-radius: 12px;
    padding: 1.25rem;
    border: 1px solid var(--border);
    box-shadow: var(--card-shadow);
    transition: border-color 0.15s, box-shadow 0.15s;
    break-inside: avoid;
    margin-bottom: 1rem;
}

.beep-card-hero {
    position: relative;
    margin: -1.25rem -1.25rem 0.5rem;
    border-radius: 12px 12px 0 0;
    overflow: hidden;
    min-height: 120px;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
}

/* Category gradient backgrounds */
.beep-card-hero-music      { background: linear-gradient(135deg, rgba(124,58,237,0.1), rgba(168,85,247,0.1)); }
.beep-card-hero-concert     { background: linear-gradient(135deg, rgba(124,58,237,0.1), rgba(168,85,247,0.1)); }
.beep-card-hero-sport       { background: linear-gradient(135deg, rgba(5,150,105,0.1), rgba(52,211,153,0.1)); }
.beep-card-hero-game        { background: linear-gradient(135deg, rgba(67,56,202,0.1), rgba(99,102,241,0.1)); }
.beep-card-hero-gaming      { background: linear-gradient(135deg, rgba(67,56,202,0.1), rgba(99,102,241,0.1)); }
.beep-card-hero-film        { background: linear-gradient(135deg, rgba(190,18,60,0.1), rgba(244,63,94,0.1)); }
.beep-card-hero-tech        { background: linear-gradient(135deg, rgba(14,116,144,0.1), rgba(34,211,238,0.1)); }
.beep-card-hero-launch      { background: linear-gradient(135deg, rgba(14,116,144,0.1), rgba(34,211,238,0.1)); }
.beep-card-hero-finance     { background: linear-gradient(135deg, rgba(6,95,70,0.1), rgba(16,185,129,0.1)); }
.beep-card-hero-tax         { background: linear-gradient(135deg, rgba(51,65,85,0.1), rgba(100,116,139,0.1)); }
.beep-card-hero-government  { background: linear-gradient(135deg, rgba(51,65,85,0.1), rgba(100,116,139,0.1)); }
.beep-card-hero-sale        { background: linear-gradient(135deg, rgba(220,38,38,0.1), rgba(248,113,113,0.1)); }
.beep-card-hero-seasonal    { background: linear-gradient(135deg, rgba(180,83,9,0.1), rgba(251,191,36,0.1)); }
.beep-card-hero-tv          { background: linear-gradient(135deg, rgba(15,118,110,0.1), rgba(45,212,191,0.1)); }
.beep-card-hero-entertainment { background: linear-gradient(135deg, rgba(162,28,175,0.1), rgba(232,121,249,0.1)); }
.beep-card-hero-politics    { background: linear-gradient(135deg, rgba(30,58,138,0.1), rgba(59,130,246,0.1)); }
.beep-card-hero-career      { background: linear-gradient(135deg, rgba(194,65,12,0.1), rgba(251,146,60,0.1)); }
.beep-card-hero-education   { background: linear-gradient(135deg, rgba(29,78,216,0.1), rgba(96,165,250,0.1)); }
.beep-card-hero-family      { background: linear-gradient(135deg, rgba(190,24,93,0.1), rgba(244,114,182,0.1)); }
.beep-card-hero-travel      { background: linear-gradient(135deg, rgba(3,105,161,0.1), rgba(56,189,248,0.1)); }
.beep-card-hero-deadline    { background: linear-gradient(135deg, rgba(146,64,14,0.1), rgba(245,158,11,0.1)); }

/* Watermark SVG patterns per category */
.beep-card-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0.045;
    background-size: 80px 80px;
    background-repeat: repeat;
}
.beep-card-hero-music::before,
.beep-card-hero-concert::before    { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-24 -24 72 72' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round'%3E%3Cpath d='M9 18V5l12-2v13'/%3E%3Ccircle cx='6' cy='18' r='3'/%3E%3Ccircle cx='18' cy='16' r='3'/%3E%3C/svg%3E"); }
.beep-card-hero-sport::before      { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-24 -24 72 72' fill='none' stroke='%23000' stroke-width='1.5'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 2a15.3 15.3 0 014 10 15.3 15.3 0 01-4 10 15.3 15.3 0 01-4-10 15.3 15.3 0 014-10z'/%3E%3Cpath d='M2 12h20'/%3E%3C/svg%3E"); }
.beep-card-hero-game::before,
.beep-card-hero-gaming::before     { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-24 -24 72 72' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round'%3E%3Crect x='2' y='7' width='20' height='10' rx='2'/%3E%3Cpath d='M6 12h4M8 10v4M15 11h2M15 13h2'/%3E%3C/svg%3E"); }
.beep-card-hero-film::before       { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-24 -24 72 72' fill='none' stroke='%23000' stroke-width='1.5'%3E%3Crect x='2' y='2' width='20' height='20' rx='2'/%3E%3Cpath d='M7 2v20M17 2v20M2 12h20M2 7h5M17 7h5M2 17h5M17 17h5'/%3E%3C/svg%3E"); }
.beep-card-hero-tech::before,
.beep-card-hero-launch::before     { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-24 -24 72 72' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round'%3E%3Cpath d='M13 2L3 14h9l-1 8 10-12h-9l1-8z'/%3E%3C/svg%3E"); }
.beep-card-hero-finance::before    { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-24 -24 72 72' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round'%3E%3Cline x1='12' y1='1' x2='12' y2='23'/%3E%3Cpath d='M17 5H9.5a3.5 3.5 0 000 7h5a3.5 3.5 0 010 7H6'/%3E%3C/svg%3E"); }
.beep-card-hero-tax::before,
.beep-card-hero-government::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-24 -24 72 72' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round'%3E%3Cpath d='M3 21h18M3 7l9-4 9 4M4 7v14M20 7v14M9 21V12M15 21V12'/%3E%3C/svg%3E"); }
.beep-card-hero-sale::before       { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-24 -24 72 72' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round'%3E%3Cline x1='19' y1='5' x2='5' y2='19'/%3E%3Ccircle cx='6.5' cy='6.5' r='2.5'/%3E%3Ccircle cx='17.5' cy='17.5' r='2.5'/%3E%3C/svg%3E"); }
.beep-card-hero-seasonal::before   { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-24 -24 72 72' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round'%3E%3Cline x1='12' y1='2' x2='12' y2='22'/%3E%3Cpath d='M17 7l-5 5-5-5M17 17l-5-5-5 5'/%3E%3Cline x1='2' y1='12' x2='22' y2='12'/%3E%3Cpath d='M7 7l-5 5 5 5M17 7l5 5-5 5'/%3E%3C/svg%3E"); }
.beep-card-hero-tv::before         { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-24 -24 72 72' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round'%3E%3Crect x='2' y='7' width='20' height='15' rx='2'/%3E%3Cpath d='M17 2l-5 5-5-5'/%3E%3C/svg%3E"); }
.beep-card-hero-entertainment::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-24 -24 72 72' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round'%3E%3Cpolygon points='12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2'/%3E%3C/svg%3E"); }
.beep-card-hero-politics::before   { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-24 -24 72 72' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round'%3E%3Cpath d='M4 15s1-1 4-1 5 2 8 2 4-1 4-1V3s-1 1-4 1-5-2-8-2-4 1-4 1z'/%3E%3Cline x1='4' y1='22' x2='4' y2='15'/%3E%3C/svg%3E"); }
.beep-card-hero-career::before     { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-24 -24 72 72' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round'%3E%3Crect x='2' y='7' width='20' height='14' rx='2'/%3E%3Cpath d='M16 7V5a2 2 0 00-2-2h-4a2 2 0 00-2 2v2'/%3E%3C/svg%3E"); }
.beep-card-hero-education::before  { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-24 -24 72 72' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round'%3E%3Cpath d='M2 3h6a4 4 0 014 4v14a3 3 0 00-3-3H2z'/%3E%3Cpath d='M22 3h-6a4 4 0 00-4 4v14a3 3 0 013-3h7z'/%3E%3C/svg%3E"); }
.beep-card-hero-family::before     { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-24 -24 72 72' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round'%3E%3Cpath d='M20.84 4.61a5.5 5.5 0 00-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 00-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 000-7.78z'/%3E%3C/svg%3E"); }
.beep-card-hero-travel::before     { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-24 -24 72 72' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round'%3E%3Cpath d='M17.8 19.2L16 11l3.5-3.5C21 6 21 4 21 4s-2 0-3.5 1.5L14 9 5.8 7.2c-.5-.1-.9.1-1.1.5l-.3.5c-.2.5-.1 1 .3 1.3L9 12l-2 3H4l-1 1 3 2 2 3 1-1v-3l3-2 3.5 3.3c.3.4.8.5 1.3.3l.5-.2c.4-.3.6-.7.5-1.1z'/%3E%3C/svg%3E"); }
.beep-card-hero-deadline::before   { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-24 -24 72 72' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 6v6l4 2'/%3E%3C/svg%3E"); }

.beep-card-hero img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    z-index: 1;
}

.beep-card-hero-overlay {
    position: absolute;
    inset: 0;
    background: transparent;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 0.5rem 1rem;
    color: var(--text);
    z-index: 2;
}

/* When hero has an image, add gradient and use white text */
.beep-card-hero:has(img) .beep-card-hero-overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.35) 50%, transparent 100%);
}

.beep-card-hero:has(img) .beep-card-hero-overlay .beep-category,
.beep-card-hero:has(img) .beep-card-hero-overlay h2,
.beep-card-hero:has(img) .beep-card-hero-overlay .beep-date,
.beep-card-hero:has(img) .beep-card-hero-overlay .beep-date-tba {
    color: #fff;
}

.beep-card-hero:has(img) .beep-card-hero-overlay .beep-date svg,
.beep-card-hero:has(img) .beep-card-hero-overlay .share-btn svg {
    stroke: #fff;
}

.beep-card-hero:has(img) .beep-card-hero-overlay .beep-countdown {
    color: var(--brand-primary-light);
}

.beep-card-hero-overlay .beep-category {
    color: var(--muted);
    font-size: 0.72rem;
}

.beep-card-hero-overlay h2 {
    color: var(--text);
    font-size: 1.1rem;
    margin-bottom: 0.15rem;
}

.beep-card-hero-overlay .beep-date {
    color: var(--muted);
    margin-bottom: 0;
}

.beep-card-hero-overlay .beep-date svg {
    stroke: var(--muted);
}

.beep-card-hero-overlay .beep-date-tba {
    color: var(--muted);
}

.beep-card-hero-overlay .beep-countdown {
    color: var(--brand-primary-deep);
}

.beep-card-hero-overlay .share-btn {
    color: var(--muted);
}

.beep-card-hero-overlay .share-btn svg {
    stroke: var(--muted);
}

.beep-card:hover {
    border-color: var(--accent);
    box-shadow: 0 4px 12px var(--shadow);
}

.beep-card h2,
.beep-card h3 {
    font-size: 1.15rem;
    margin-bottom: 0.25rem;
}

.beep-date {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.85rem;
    color: var(--text);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.beep-date svg {
    flex-shrink: 0;
    opacity: 0.7;
}

.beep-date-tba {
    color: var(--accent);
    font-style: italic;
}

.beep-countdown {
    color: var(--accent);
    font-weight: 600;
    margin-left: 0.15rem;
}

.beep-countdown::before {
    content: "·";
    margin-right: 0.35rem;
    color: var(--muted);
    font-weight: 400;
}

.beep-clicktext {
    cursor: pointer;
}

.beep-clicktext:hover {
    text-decoration-line: underline;
    text-decoration-style: dotted;
    text-decoration-color: var(--accent);
    text-underline-offset: 3px;
}

.beep-category {
    font-size: 0.75rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}
.beep-cat-link {
    color: inherit;
    text-decoration: none;
}
.beep-cat-link:hover {
    text-decoration: underline;
}

.beep-desc {
    font-size: 0.85rem;
    color: var(--muted);
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.beep-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--muted);
    margin-top: 0.5rem;
}

.beep-count {
    font-size: 0.8rem;
    color: var(--muted);
    font-weight: 500;
    margin-top: 0.4rem;
}

.beep-org {
    font-size: 0.75rem;
    color: var(--muted);
    margin-top: 0.5rem;
}

/* Dashboard */
.lookup-form form {
    display: flex;
    gap: 0.75rem;
    max-width: 500px;
    margin: 0 auto;
}

.lookup-form input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    color: var(--text);
    font-size: 0.95rem;
}

.dashboard-email {
    color: var(--muted);
    margin-bottom: 2rem;
}

.dashboard-email strong { color: var(--text); }

/* Biz dashboard */
.biz-header { margin-bottom: 2rem; }

.biz-stats {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--surface);
    border-radius: 12px;
    padding: 1.5rem 2rem;
    flex: 1;
    text-align: center;
    border: 1px solid var(--border);
    box-shadow: var(--card-shadow);
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--muted);
    margin-top: 0.25rem;
}

.section-title {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.widget-code {
    margin-top: 0.75rem;
    background: var(--bg);
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
}

.widget-code code {
    font-size: 0.7rem;
    color: var(--muted);
}

.empty-state {
    column-span: all;
    text-align: center;
    padding: 3rem 1rem;
    color: var(--muted);
}

.empty-state-icon {
    color: var(--muted);
    opacity: 0.4;
    margin-bottom: 1rem;
}

.empty-state h3 {
    color: var(--text);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.empty-state p {
    margin-bottom: 1rem;
}

.empty-state .btn { font-size: 0.85rem; }

.beep-debug-id {
    font-size: 0.65rem;
    color: #e55;
    font-family: monospace;
    opacity: 0.7;
}

/* Beep card extras */
.beep-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.share-btn {
    background: none;
    border: none;
    color: var(--muted);
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 6px;
    transition: all 0.15s;
    display: flex;
}

.share-btn:hover {
    color: var(--cta);
    background: var(--cta-light);
}

.beep-status-badge {
    font-size: 0.7rem;
    background: var(--badge-bg);
    color: var(--accent);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-weight: 600;
}

.beep-entities {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.5rem;
}

.entity-tag {
    font-size: 0.75rem;
    background: var(--entity-bg);
    color: var(--entity-text);
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.1s;
}

.entity-tag:hover {
    filter: brightness(0.9);
}

.beep-tag {
    font-size: 0.7rem;
    color: #006DCB;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.1s;
    opacity: 0.5;
}

.beep-tag:hover {
    opacity: 1;
}

.beep-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.4rem;
}

.beep-location {
    font-size: 0.75rem;
    color: var(--muted);
}

.beep-org-link {
    font-size: 0.75rem;
    color: var(--accent);
    text-decoration: none;
}

.beep-org-link:hover {
    text-decoration: underline;
}

/* Beep org (duplicate removed — see main .beep-org above) */

/* Beep CTA */
.beep-cta {
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--border);
}

.beep-date-cta {
    margin-bottom: 0.5rem;
}

.beep-date {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text);
}

.beep-time-small {
    font-weight: 500;
    color: var(--muted);
    font-size: 0.85rem;
}

.beep-date-tba {
    color: var(--accent);
    font-style: italic;
}

/* Remind button: icon + label */
.beep-remind-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    justify-content: flex-end;
}

.btn-remind-icon {
    width: 48px;
    height: 40px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(254, 190, 16, 0.12);
    color: #FEBE10;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    flex-shrink: 0;
    position: relative;
    overflow: visible;
}
.btn-remind-icon:hover {
    background: rgba(254, 190, 16, 0.22);
    transform: translateY(-1px) scale(1.05);
}

.btn-remind-icon .fish-icon {
    transition: transform 0.2s, color 0.3s;
}

.btn-remind-icon:hover .fish-icon {
    transform: scale(1.1);
}

/* Subscribed state — green fish */
.btn-remind-icon.subscribed {
    background: rgba(0, 164, 51, 0.12);
    color: #22c55e;
    pointer-events: none;
}
.btn-remind-icon.subscribed .fish-icon {
    animation: fishPop 0.5s ease;
}
@keyframes fishPop {
    0%   { transform: scale(1); }
    30%  { transform: scale(1.4) rotate(10deg); }
    50%  { transform: scale(0.9) rotate(-5deg); }
    70%  { transform: scale(1.15) rotate(3deg); }
    100% { transform: scale(1) rotate(0); }
}

/* Fish bubbles on hover — blue bubbles */
.btn-remind-icon::before,
.btn-remind-icon::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: rgba(0, 143, 245, 0.35);
    opacity: 0;
    pointer-events: none;
}
.btn-remind-icon::before {
    width: 5px; height: 5px;
    top: -2px; right: 6px;
}
.btn-remind-icon::after {
    width: 4px; height: 4px;
    top: 0; right: 14px;
}
.btn-remind-icon:hover::before {
    animation: bubble 1s ease-out infinite;
}
.btn-remind-icon:hover::after {
    animation: bubble 1s 0.3s ease-out infinite;
}
.fish-count {
    position: absolute;
    top: -3px;
    right: -5px;
    background: #16a34a;
    color: #fff;
    font-size: 0.5rem;
    font-weight: 700;
    min-width: 15px;
    height: 15px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
    line-height: 1;
}
.btn-remind-icon.subscribed .fish-count {
    background: #16a34a;
}

.btn-remind-icon.subscribed::before,
.btn-remind-icon.subscribed::after {
    animation: none;
    opacity: 0;
}
@keyframes bubble {
    0%   { opacity: 0; transform: translateY(0) scale(0.5); }
    20%  { opacity: 0.7; }
    100% { opacity: 0; transform: translateY(-18px) scale(1); }
}

.beep-remind-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
}

.beep-subscribe-form {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.beep-subscribe-form .beep-remind-label {
    flex: 1;
    min-width: 0;
}

.beep-subscribe-form input {
    flex: 1;
    min-width: 120px;
}

.beep-subscribe-form .beep-remind-label.confirmed + input {
    display: none;
}

.beep-remind-label.confirmed {
    color: rgba(0, 113, 63, 0.87);
    font-style: italic;
    font-weight: 500;
}

.cta-trust-signal {
    display: block;
    font-size: 0.7rem;
    color: var(--muted);
    text-align: right;
    margin-top: 0.25rem;
}

.beep-subscribe-form {
    display: flex;
    gap: 0.5rem;
}

.beep-subscribe-form input {
    flex: 1;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg);
    color: var(--text);
    font-size: 0.85rem;
    min-width: 0;
}

.beep-subscribe-form .btn-remind {
    width: auto;
    white-space: nowrap;
    flex-shrink: 0;
}

.section-divider {
    grid-column: 1 / -1;
    font-size: 0.8rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 1rem 0 0.5rem;
    border-top: 1px solid var(--border);
}

.seo-footer {
    text-align: center;
    padding: 2rem 0;
    font-size: 0.85rem;
    color: var(--muted);
}

.seo-footer a { color: var(--accent); }

/* Login */
.login-box {
    max-width: 400px;
    margin: 0 auto;
    background: var(--surface);
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid var(--border);
    box-shadow: var(--card-shadow);
}

.login-box form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.login-box input[type="email"] {
    padding: 0.875rem 1rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg);
    color: var(--text);
    font-size: 1rem;
}

.login-box .btn {
    text-align: center;
    padding: 0.875rem;
    font-size: 1rem;
}

.magic-sent {
    text-align: center;
}

.magic-sent h3 {
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.muted-small {
    font-size: 0.85rem;
    color: var(--muted);
    margin-top: 0.5rem;
}

/* Beep detail page */
.beep-detail {
    max-width: 620px;
    margin: 0 auto;
    padding: 2rem 0;
}

.beep-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.beep-detail h1 {
    font-size: 1.8rem;
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
}

.beep-detail-desc {
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.beep-detail-info {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.25rem;
    margin: 1.5rem 0;
}

.beep-detail-date {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.25rem;
}

.beep-detail-location {
    color: var(--muted);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.beep-detail-count {
    color: var(--accent);
    font-weight: 600;
    font-size: 0.9rem;
}

.beep-detail-org {
    color: var(--muted);
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.beep-detail-org a {
    color: var(--accent);
    text-decoration: none;
}

.beep-detail-cta {
    margin: 1.5rem 0;
}

.beep-detail-link {
    color: rgba(0, 109, 203, 0.95);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
}

.beep-detail-tags {
    margin-top: 1.5rem;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* Related beeps */
.beep-related {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.beep-related h2 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.beep-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.75rem;
}

.beep-related-card {
    display: block;
    padding: 0.85rem 1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    text-decoration: none;
    color: var(--text);
    transition: box-shadow 0.15s;
}

.beep-related-card:hover {
    box-shadow: var(--card-shadow);
}

.beep-related-name {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.beep-related-meta {
    font-size: 0.78rem;
    color: var(--muted);
}

/* Profile */
.profile-header {
    padding: 2rem 0 1.5rem;
}

.profile-header h1 {
    font-size: 1.8rem;
    color: var(--accent);
}

.profile-name {
    color: var(--muted);
    font-size: 0.95rem;
}

.profile-link {
    color: var(--accent);
    font-size: 0.85rem;
    text-decoration: none;
}

.profile-stats {
    color: var(--muted);
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

/* Onboarding */
.onboard {
    max-width: 560px;
    margin: 0 auto;
    padding: 2rem 0;
    text-align: center;
}

.onboard h1 {
    font-size: 2rem;
    margin-bottom: 0.25rem;
}

.onboard-section {
    margin: 2rem 0;
    text-align: left;
}

.onboard-section h3 {
    font-size: 1rem;
    margin-bottom: 0.75rem;
}

.optional {
    color: var(--muted);
    font-weight: 400;
    font-size: 0.85rem;
}

.onboard-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.onboard-chip {
    cursor: pointer;
}

.onboard-chip input {
    display: none;
}

.onboard-chip span {
    display: inline-block;
    padding: 0.6rem 1.25rem;
    border-radius: 24px;
    background: var(--surface);
    color: var(--muted);
    font-size: 0.9rem;
    transition: all 0.15s;
    border: 2px solid transparent;
}

.onboard-chip input:checked + span {
    background: var(--accent);
    color: var(--btn-text);
    border-color: var(--accent);
}

.onboard-chip span:hover {
    border-color: var(--accent);
    color: var(--text);
}

.onboard-count {
    color: var(--muted);
    font-size: 0.85rem;
    margin: 1.5rem 0 0.75rem;
}

.onboard-submit {
    width: 100%;
    padding: 0.875rem;
    font-size: 1.1rem;
}

.onboard-submit:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.skip-link {
    display: block;
    margin-top: 1rem;
    color: var(--muted);
    font-size: 0.85rem;
    text-decoration: none;
}

.skip-link:hover {
    color: var(--text);
}

/* Create beep */
.create-beep {
    max-width: 560px;
    margin: 0 auto;
    padding: 2rem 0;
}

.create-beep h1 {
    font-size: 1.6rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.create-form {
    margin-top: 1.5rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
    color: var(--text);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.625rem 0.875rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    color: var(--text);
    font-size: 0.9rem;
    font-family: inherit;
    transition: border-color 0.15s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-light);
}

.form-row {
    display: flex;
    gap: 1rem;
}

.form-row .form-group {
    flex: 1;
}

.create-submit {
    width: 100%;
    padding: 0.75rem;
    font-size: 1rem;
    margin-top: 0.5rem;
}

@media (max-width: 640px) {
    .form-row { flex-direction: column; gap: 0; }
}

.form-error {
    color: #e74c3c;
    font-size: 0.85rem;
    text-align: center;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    color: var(--muted);
    font-size: 0.8rem;
    border-top: 1px solid var(--border);
    margin-top: 2rem;
}

.footer-links {
    margin-top: 0.5rem;
}

.footer-links a {
    color: var(--muted);
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--text);
}

.footer-attribution {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
    font-size: 0.65rem;
    color: var(--muted);
    opacity: 0.7;
}

.footer-attribution img {
    opacity: 0.5;
}

/* Legal pages */
.legal {
    max-width: 680px;
    margin: 0 auto;
    padding: 2rem 0;
}

.legal h1 {
    font-size: 2rem;
    margin-bottom: 0.25rem;
}

.legal-updated {
    color: var(--muted);
    font-size: 0.85rem;
    margin-bottom: 2rem;
}

.legal h2 {
    font-size: 1.2rem;
    margin-top: 2rem;
    margin-bottom: 0.5rem;
}

.legal h3 {
    font-size: 1rem;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.legal p, .legal li {
    color: var(--muted);
    line-height: 1.7;
    margin-bottom: 0.5rem;
}

.legal ul {
    padding-left: 1.5rem;
}

.legal a {
    color: var(--accent);
}

/* ── Responsive ─────────────────────────────────────────── */

/* Touch targets: minimum 44px for all interactive elements */
@media (pointer: coarse) {
    .btn, .cat-pill, .geo-pill, .nav-links a {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }
}

/* Tablet (max 900px) */
@media (max-width: 900px) {
    nav { padding: 1.25rem 2rem; }
    main { padding: 1.5rem 2rem; }

    .hero { padding: 4rem 0 3rem; }
    .hero h1 { font-size: 2.8rem; }

    .features {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: 1.25rem;
    }

    .beep-grid {
        columns: 260px;
    }

    .biz-stats { flex-wrap: wrap; }
    .stat-card { min-width: 140px; }
}

/* Mobile (max 640px) */
@media (max-width: 640px) {
    .how-it-works { gap: 1rem; padding: 0.5rem 0 0.75rem; }
    .hiw-step span:last-child { font-size: 0.7rem; }

    nav { padding: 1rem 1.25rem; }
    main { padding: 1rem 1.25rem; }

    /* Hamburger menu */
    .nav-toggle { display: flex; }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--surface);
        flex-direction: column;
        gap: 0;
        padding: 0.5rem 0;
        border-radius: 0 0 12px 12px;
        z-index: 100;
        box-shadow: 0 8px 24px var(--shadow);
    }

    .nav-links.open { display: flex; }

    .nav-links a {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
        border-bottom: 1px solid #222;
        width: 100%;
    }

    .nav-links a:last-child { border-bottom: none; }

    /* Hero */
    .hero { padding: 2.5rem 0 1.5rem; }
    .hero h1 { font-size: 2rem; }

    /* Feed hero */
    .feed-hero { padding: 1.25rem 0 1rem; }
    .feed-hero h1 { font-size: 1.4rem; }

    /* Feed controls */
    .feed-controls { padding: 0.5rem 0; }
    .subtitle { font-size: 0.95rem; }

    /* Features */
    .features {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 2rem 0;
    }

    .feature { padding: 1.25rem; }

    .feature pre {
        padding: 0.75rem;
        font-size: 0.7rem;
    }

    /* Beep grid */
    .beep-grid {
        columns: 1;
    }

    .beep-card { padding: 1.25rem; }

    /* Hide geo-filters on mobile — keep category + sort visible */
    .geo-filter { display: none; }

    /* Filters: horizontal scroll instead of wrap */
    .category-filters {
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 0.25rem;
    }

    .category-filters::-webkit-scrollbar { display: none; }

    .cat-pill {
        white-space: nowrap;
        flex-shrink: 0;
    }

    /* CTA buttons stack vertically */
    .cta .btn + .btn {
        margin-left: 0;
        margin-top: 0.75rem;
    }

    .cta .btn, .for-biz .btn {
        display: block;
        width: 100%;
        text-align: center;
    }

    .btn-secondary { margin-left: 0; }

    /* Dashboard form stacks */
    .lookup-form form {
        flex-direction: column;
    }

    .lookup-form .btn {
        width: 100%;
        text-align: center;
    }

    /* Biz stats stack */
    .biz-stats {
        flex-direction: column;
        gap: 0.75rem;
    }

    .stat-value { font-size: 2rem; }

    /* Pricing */
    .pricing h2 { font-size: 1.5rem; }
    .how-it-works h2 { font-size: 1.5rem; }
    .cta h2 { font-size: 1.5rem; }
    .for-biz h2 { font-size: 1.4rem; }

    /* Footer */
    footer { padding: 2rem 1.25rem; }
}

/* Small mobile (max 380px) */
@media (max-width: 380px) {
    .hero h1 { font-size: 1.7rem; }
    .beep-card { padding: 1rem; }
    .stat-value { font-size: 1.75rem; }
}

/* AI Parse — freetext create beep */
.parse-step {
    margin-top: 1.5rem;
}

.parse-input {
    width: 100%;
    min-height: 80px;
    padding: 1rem;
    font-size: 1.1rem;
    border: 2px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    color: var(--text);
    resize: vertical;
    font-family: inherit;
}

.parse-input:focus {
    border-color: var(--accent);
    outline: none;
}

.parse-btn {
    margin-top: 0.75rem;
    width: 100%;
}

.parse-loading {
    text-align: center;
    padding: 2rem;
    color: var(--muted);
}

.parse-preview {
    display: none;
    margin-top: 1.5rem;
    padding: 1.5rem;
    border: 2px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
}

.parse-preview.visible {
    display: block;
}

.parse-preview .form-group label {
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: var(--muted);
}

.parse-questions {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    background: var(--accent-faint, rgba(255,200,0,0.1));
    border-radius: 6px;
    font-size: 0.9rem;
}

.parse-questions ul {
    margin: 0.5rem 0 0 1.2rem;
}

.parse-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.3rem;
}

.parse-tag {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 0.2rem 0.5rem;
    font-size: 0.85rem;
}

.parse-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.parse-actions .btn {
    flex: 1;
}

/* Beep type badges */
.beep-type-badges {
    display: flex;
    gap: 0.5rem;
}

.beep-type-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 99px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.beep-type-event { background: var(--accent-faint, rgba(255,200,0,0.1)); color: var(--accent); }
.beep-type-series { background: rgba(99,102,241,0.1); color: rgb(99,102,241); }
.beep-type-deadline { background: rgba(239,68,68,0.1); color: rgb(239,68,68); }
.beep-type-release { background: rgba(16,185,129,0.1); color: rgb(16,185,129); }
.beep-type-season { background: rgba(245,158,11,0.1); color: rgb(245,158,11); }

.entity-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.3rem 0.65rem;
    border-radius: 99px;
    font-size: 0.8rem;
    font-weight: 500;
    background: var(--surface);
    border: 1px solid var(--border);
}

.entity-pill-role {
    font-size: 0.7rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* Recurring beep badge */
.beep-recurring {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.85rem;
    color: var(--accent);
    font-weight: 600;
    margin-top: 0.15rem;
}

/* Pending review notice */
.pending-notice {
    background: var(--accent-faint, rgba(255,200,0,0.1));
    border: 1px solid var(--accent);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--text);
}
