/* TargunTech — RetroUI NeoBrutalism Theme
   Based on https://www.retroui.dev design system */

:root {
    /* RetroUI color tokens (HSL) */
    --background: #ffffff;
    --foreground: #000000;
    --card: #ffffff;
    --card-foreground: #000000;
    --primary: hsl(50, 100%, 60%);
    --primary-hover: hsl(50, 100%, 52%);
    --primary-foreground: #000000;
    --accent: hsl(50, 89%, 74%);
    --accent-foreground: #000000;
    --muted: hsl(0, 0%, 68%);
    --muted-foreground: hsl(0, 0%, 35%);
    --destructive: hsl(355, 78%, 56%);
    --destructive-foreground: #ffffff;
    --border: #000000;

    /* RetroUI shadow system — hard offset, no blur */
    --shadow-xs: 1px 1px 0 0 var(--border);
    --shadow-sm: 2px 2px 0 0 var(--border);
    --shadow: 3px 3px 0 0 var(--border);
    --shadow-md: 4px 4px 0 0 var(--border);
    --shadow-lg: 6px 6px 0 0 var(--border);
    --shadow-xl: 10px 10px 0 1px var(--border);

    /* Sidebar */
    --sidebar-bg: #000000;
    --sidebar-text: #ffffff;
    --sidebar-active: var(--primary);
}

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

body {
    font-family: system-ui, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: var(--background);
    color: var(--foreground);
}

/* ===================== LAYOUT ===================== */

.app-container {
    display: flex;
    min-height: 100vh;
}

/* ===================== SIDEBAR (RetroUI Pro) ===================== */

.sidebar {
    width: 256px;
    background: var(--background);
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    overflow-y: auto;
    border-right: 2px solid var(--border);
    display: flex;
    flex-direction: column;
    transition: width 0.3s ease;
    z-index: 40;
}

.sidebar-collapsed { width: 64px; }

/* Header */
.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
    padding: 0 1rem;
    border-bottom: 2px solid var(--border);
}

.sidebar-brand-text {
    font-weight: 800;
    font-size: 1.15rem;
    letter-spacing: -0.02em;
}

.sidebar-brand-icon {
    width: 32px;
    height: 32px;
    background: var(--foreground);
    color: var(--background);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1rem;
    margin: 0 auto;
}

/* User Profile */
.sidebar-user {
    display: flex;
    align-items: center;
    padding: 1rem;
    border-bottom: 2px solid var(--border);
    gap: 0.75rem;
}

.sidebar-user-collapsed { justify-content: center; padding: 0.75rem; }

.sidebar-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent);
    flex-shrink: 0;
}

.sidebar-avatar-sm { width: 32px; height: 32px; }

.sidebar-user-info {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.sidebar-user-name { font-weight: 600; font-size: 0.95rem; }

.sidebar-user-badge {
    display: inline-block;
    width: fit-content;
    padding: 0.1rem 0.5rem;
    font-size: 0.7rem;
    font-weight: 700;
    background: var(--foreground);
    color: var(--background);
    border-radius: 3px;
}

/* Navigation */
.sidebar-nav {
    flex: 1;
    padding: 0.5rem;
}

.sidebar-nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

/* Force all sidebar nav links — override browser defaults */
.sidebar-nav a,
.sidebar-nav a:link,
.sidebar-nav a:visited {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0.75rem;
    color: var(--foreground) !important;
    text-decoration: none !important;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: background 0.15s;
}

.sidebar-nav a:hover {
    background: var(--accent);
}

.sidebar-nav a.active {
    background: var(--accent);
    font-weight: 700;
}

.sidebar-collapsed .sidebar-nav a {
    justify-content: center;
    padding: 0.6rem;
    gap: 0;
}

.sidebar-nav a svg {
    flex-shrink: 0;
}

/* Footer */
.sidebar-footer {
    padding: 1rem;
    border-top: 2px solid var(--border);
}

.sidebar-footer-collapsed { padding: 0.75rem; }

.sidebar-logout,
.sidebar-logout:link,
.sidebar-logout:visited {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0.75rem;
    color: var(--destructive) !important;
    text-decoration: none !important;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: background 0.15s;
}

.sidebar-logout:hover { background: hsl(355, 78%, 95%); }

.sidebar-collapsed .sidebar-logout { justify-content: center; padding: 0.6rem; gap: 0; }

.sidebar-logout svg { flex-shrink: 0; }

/* Mobile */
.sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 30;
    display: none;
}

@media (max-width: 767px) {
    .sidebar { transform: translateX(-100%); }
    .sidebar-mobile-open { transform: translateX(0); }
    .sidebar-overlay { display: block; }
}

/* ===================== TOP NAVBAR ===================== */

.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
    padding: 0 1.5rem;
    background: var(--background);
    border-bottom: 2px solid var(--border);
}

.topbar-left, .topbar-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.topbar-toggle {
    background: none;
    border: 2px solid var(--border);
    border-radius: 4px;
    padding: 6px;
    cursor: pointer;
    line-height: 0;
    transition: background 0.15s;
}

.topbar-toggle:hover { background: var(--accent); }

.topbar-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent);
    cursor: pointer;
}

/* ===================== MAIN CONTENT ===================== */

.main-area {
    margin-left: 256px;
    flex: 1;
    min-height: 100vh;
    transition: margin-left 0.3s ease;
    /* RetroUI grid background */
    background-color: hsl(50, 100%, 95%);
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.04) 1px, transparent 1px);
    background-size: 24px 24px;
}

.main-area-expanded { margin-left: 64px; }

@media (max-width: 767px) {
    .main-area, .main-area-expanded { margin-left: 0; }
}

.main-content {
    padding: 2rem 2.5rem;
}

@media (max-width: 767px) {
    .main-content { padding: 1.5rem; }
}

.main-content h1 {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 0.25rem;
}

.page-subtitle {
    color: var(--muted-foreground);
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

/* ===================== CARDS ===================== */

.card {
    background: var(--card);
    border: 2px solid var(--border);
    border-radius: 4px;
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    transition: all 0.2s;
}

.card:hover {
    box-shadow: none;
    transform: translate(2px, 2px);
}

.card h3 {
    color: var(--muted-foreground);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.card .stat {
    font-size: 2.25rem;
    font-weight: 800;
    margin-top: 0.5rem;
    letter-spacing: -0.02em;
}

/* ===================== DASHBOARD GRID ===================== */

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

/* ===================== FORMS ===================== */

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

.form-group label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 700;
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    padding: 0.6rem 1rem;
    border: 2px solid var(--border);
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
    box-shadow: var(--shadow-md);
    transition: box-shadow 0.15s;
    background: var(--background);
}

.form-control:focus {
    outline: none;
    box-shadow: var(--shadow-xs);
}

/* ===================== BUTTONS ===================== */

.btn {
    padding: 0.6rem 1.25rem;
    border: 2px solid var(--border);
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    box-shadow: var(--shadow-md);
    transition: all 0.15s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn:hover {
    box-shadow: var(--shadow-xs);
    transform: translateY(2px);
}

.btn:active {
    box-shadow: none;
    transform: translate(2px, 4px);
}

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

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

.btn-secondary {
    background: var(--background);
    color: var(--foreground);
}

.btn-destructive {
    background: var(--destructive);
    color: var(--destructive-foreground);
}

.btn-outline {
    background: transparent;
    color: var(--foreground);
}

.btn-full { width: 100%; }

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: var(--shadow-md);
}

/* ===================== TABLE ===================== */

.table-container {
    border: 2px solid var(--border);
    border-radius: 4px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
    margin-top: 1.5rem;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: var(--card);
}

thead {
    background: var(--foreground);
    color: var(--background);
}

th {
    padding: 0.75rem 1rem;
    text-align: left;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

td {
    padding: 0.75rem 1rem;
    border-top: 2px solid var(--border);
    font-size: 0.95rem;
}

tr:hover td {
    background: var(--accent);
}

/* ===================== BADGE ===================== */

.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.625rem;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 4px;
    border: 2px solid var(--border);
}

.badge-default { background: var(--muted); color: var(--muted-foreground); }
.badge-primary { background: var(--primary); color: var(--primary-foreground); }
.badge-accent { background: var(--accent); color: var(--accent-foreground); }
.badge-destructive { background: var(--destructive); color: var(--destructive-foreground); }

/* ===================== LOGIN ===================== */

.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: var(--accent);
}

.login-card {
    background: var(--card);
    padding: 2.5rem;
    border: 3px solid var(--border);
    border-radius: 4px;
    box-shadow: var(--shadow-xl);
    width: 100%;
    max-width: 420px;
}

.login-card h1 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    outline: none;
}

.login-subtitle {
    text-align: center;
    color: var(--muted-foreground);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.error-message {
    color: var(--destructive);
    background: hsl(355, 78%, 95%);
    border: 2px solid var(--destructive);
    border-radius: 4px;
    padding: 0.5rem 0.75rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    font-weight: 600;
}

/* ===================== CODE INPUT ===================== */

.code-input-group {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.code-input {
    width: 56px;
    height: 64px;
    text-align: center;
    font-size: 1.75rem;
    font-weight: 800;
    border: 2px solid var(--border);
    border-radius: 4px;
    box-shadow: var(--shadow-md);
    font-family: inherit;
    background: var(--background);
    transition: box-shadow 0.15s;
}

.code-input:focus {
    outline: none;
    box-shadow: var(--shadow-xs);
    border-color: var(--primary);
}

/* ===================== LOADING ===================== */

.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 3rem;
}

.retro-loader {
    display: flex;
    gap: 6px;
    align-items: flex-end;
    height: 32px;
}

.retro-loader-square {
    width: 10px;
    height: 10px;
    background: var(--primary);
    border: 2px solid var(--foreground);
    box-shadow: 2px 2px 0 var(--foreground);
    animation: retro-bounce 0.5s ease-in-out infinite alternate;
}

@keyframes retro-bounce {
    0% { transform: translateY(0); }
    100% { transform: translateY(-14px); }
}

/* ===================== TOOLBAR & SEARCH ===================== */

.toolbar {
    margin-bottom: 1rem;
}

.search-input {
    max-width: 400px;
    margin-bottom: 0.75rem;
}

.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    align-items: center;
}

.chip {
    padding: 0.22rem 0.6rem;
    font-size: 0.78rem;
    font-weight: 600;
    border: 2px solid var(--border);
    border-radius: 4px;
    background: var(--background);
    cursor: pointer;
    font-family: inherit;
    transition: all 0.15s;
    white-space: nowrap;
    line-height: 1.4;
}

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

.chip-active {
    background: var(--primary);
    color: var(--primary-foreground);
    box-shadow: var(--shadow-sm);
}

.chip-divider {
    color: var(--muted);
    font-weight: 300;
    margin: 0 0.15rem;
    user-select: none;
}

.filter-chips {
    row-gap: 0.35rem;
}

/* ===================== LEAD TABLE EXTRAS ===================== */

.lead-row { cursor: pointer; }
.lead-row-expanded td { background: var(--accent); }

/* RetroUI Select */
.retro-select {
    appearance: none;
    -webkit-appearance: none;
    padding: 0.35rem 2rem 0.35rem 0.75rem;
    font-size: 0.85rem;
    font-weight: 600;
    border: 2px solid var(--border);
    border-radius: 4px;
    background: var(--background);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.5rem center;
    font-family: inherit;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.15s;
    min-width: 7rem;
}

.retro-select:focus {
    outline: none;
    box-shadow: var(--shadow-xs);
}

.retro-select:hover {
    box-shadow: var(--shadow);
}

.status-select {
    padding: 0.25rem 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    border: 2px solid var(--border);
    border-radius: 4px;
    background: var(--background);
    font-family: inherit;
    cursor: pointer;
}

.detail-row td {
    padding: 0 !important;
    border-top: none !important;
}

.lead-detail {
    padding: 1rem 1.5rem 1.5rem;
    background: hsl(50, 100%, 97%);
    border-top: 2px dashed var(--border);
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.detail-section h4 {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted-foreground);
    margin-bottom: 0.5rem;
}

.detail-section p {
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
    word-break: break-word;
}

.detail-notes {
    border-top: 1px solid var(--border);
    padding-top: 0.75rem;
}

.detail-notes h4 {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted-foreground);
    margin-bottom: 0.5rem;
}

.detail-notes p {
    font-size: 0.9rem;
    line-height: 1.5;
    white-space: pre-wrap;
}

/* ===================== VIDEO EMBED ===================== */

.detail-video {
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 2px dashed var(--border);
}

.detail-video h4 {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted-foreground);
    margin-bottom: 0.5rem;
}

.video-container {
    width: 356px;
    height: 200px;
    border: 2px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.video-container iframe {
    width: 100%;
    height: 100%;
    display: block;
}

/* Trend badges */
.badge-growing { background: hsl(142, 72%, 50%); color: #fff; }
.badge-stable { background: var(--primary); color: var(--primary-foreground); }
.badge-declining { background: var(--destructive); color: var(--destructive-foreground); }

/* ===================== TABS ===================== */

.tabs {
    display: flex;
    gap: 0;
    border: 2px solid var(--border);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    width: fit-content;
    margin-top: 1rem;
}

.tab {
    padding: 0.6rem 1.25rem;
    font-size: 0.9rem;
    font-weight: 700;
    border: none;
    border-right: 2px solid var(--border);
    background: var(--background);
    cursor: pointer;
    font-family: inherit;
    transition: all 0.15s;
}

.tab:last-child { border-right: none; }
.tab:hover { background: var(--accent); }

.tab-active {
    background: var(--primary);
    color: var(--primary-foreground);
}

/* ===================== SUCCESS MESSAGE ===================== */

.success-message {
    color: hsl(142, 72%, 30%);
    background: hsl(142, 72%, 95%);
    border: 2px solid hsl(142, 72%, 50%);
    border-radius: 4px;
    padding: 0.5rem 0.75rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    font-weight: 600;
}

/* ===================== ADD USER FORM ===================== */

.add-user-form {
    padding: 1rem;
    background: hsl(50, 100%, 97%);
    border: 2px dashed var(--border);
    border-radius: 4px;
}

/* ===================== SORTABLE HEADERS ===================== */

.sortable-header {
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
}

.sortable-header:hover {
    background: #222;
}

/* ===================== MODAL ===================== */

.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 2rem;
}

.modal-card {
    background: var(--card);
    border: 3px solid var(--border);
    border-radius: 4px;
    box-shadow: var(--shadow-xl);
    padding: 2rem;
    width: 100%;
    max-width: 600px;
    max-height: 85vh;
    overflow-y: auto;
}

.modal-large {
    max-width: 800px;
}

/* ===================== DISCOVERY ===================== */

.discovery-grid {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-height: 50vh;
    overflow-y: auto;
}

.discovery-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border);
    border-radius: 4px;
    box-shadow: var(--shadow-sm);
    background: var(--card);
}

.discovery-card-existing {
    opacity: 0.6;
}

.discovery-thumb {
    width: 48px;
    height: 48px;
    border-radius: 4px;
    border: 2px solid var(--border);
    object-fit: cover;
    flex-shrink: 0;
}

.discovery-info {
    flex: 1;
    min-width: 0;
}

.discovery-info h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0;
    text-transform: none;
    letter-spacing: normal;
    color: var(--foreground);
}

.discovery-info p {
    margin: 0;
}

.discovery-actions {
    flex-shrink: 0;
}

/* ===================== OUTREACH ===================== */

.detail-outreach {
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 2px dashed var(--border);
}

.detail-outreach h4 {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted-foreground);
    margin-bottom: 0.5rem;
}

.outreach-dots {
    display: flex;
    gap: 4px;
    align-items: center;
}

.dot {
    width: 10px;
    height: 10px;
    border: 2px solid var(--border);
    border-radius: 0;
    background: var(--background);
}

.dot-filled {
    background: var(--primary);
}

.history-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0;
    border-bottom: 1px solid #eee;
    flex-wrap: wrap;
}

/* ===================== BULK TOOLBAR ===================== */

.bulk-toolbar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: hsl(50, 100%, 95%);
    border: 2px solid var(--border);
    border-radius: 4px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 0.75rem;
}

.bulk-count {
    font-weight: 700;
    font-size: 0.9rem;
    margin-right: 0.5rem;
}

/* ===================== NICHE CHIPS ===================== */

.niche-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.4rem;
}

/* ===================== UTILITIES ===================== */

.text-muted { color: var(--muted-foreground); }
.text-destructive { color: var(--destructive); }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.gap-2 { gap: 1rem; }
.flex { display: flex; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.flex-wrap { flex-wrap: wrap; }

/* ===================== PROGRESS BAR (RetroUI) ===================== */

.progress-compact {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.75rem;
    background: var(--card);
    border: 2px solid var(--border);
    border-radius: 4px;
    box-shadow: var(--shadow-sm);
}

.progress-compact .progress-track {
    width: 80px;
    height: 10px;
}

.progress-card {
    background: var(--card);
    border: 2px solid var(--border);
    border-radius: 4px;
    padding: 0.75rem 1rem;
    box-shadow: var(--shadow-sm);
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.progress-label {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted-foreground);
}

.progress-count {
    font-size: 0.9rem;
    font-weight: 800;
}

.progress-count-danger {
    color: var(--destructive);
}

.progress-track {
    position: relative;
    height: 16px;
    width: 100%;
    overflow: hidden;
    background: var(--background);
    border: 2px solid var(--border);
    border-radius: 0;
}

.progress-bar {
    height: 100%;
    background: var(--primary);
    transition: width 0.4s ease, background 0.3s ease;
}

.progress-bar-danger {
    background: var(--destructive);
}

.progress-warning {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--destructive);
    margin-top: 0.35rem;
}

/* ===================== TOAST (RetroUI Sonner) ===================== */

.toast-container {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    pointer-events: none;
}

.toast {
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: var(--background);
    border: 2px solid var(--border);
    box-shadow: var(--shadow-md);
    min-width: 300px;
    max-width: 420px;
    animation: toast-in 0.3s ease;
}

.toast-success { border-left: 4px solid hsl(145, 63%, 49%); }
.toast-error { border-left: 4px solid var(--destructive); }

.toast-icon { flex-shrink: 0; font-size: 1.1rem; }
.toast-body { flex: 1; }
.toast-title { font-weight: 700; font-size: 0.9rem; }
.toast-desc { font-size: 0.8rem; color: var(--muted-foreground); margin-top: 0.1rem; }

.toast-close {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    color: var(--muted-foreground);
    padding: 0;
    line-height: 1;
}

.toast-fade-out { animation: toast-out 0.3s ease forwards; }

@keyframes toast-in {
    from { opacity: 0; transform: translateY(1rem); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes toast-out {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 0; transform: translateY(1rem); }
}

/* ===================== RANGE SLIDER (RetroUI) ===================== */

.retro-slider {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
}

.retro-slider input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 140px;
    height: 0.75rem;
    background: var(--background);
    border: 2px solid var(--border);
    border-radius: 0;
    outline: none;
    cursor: pointer;
}

.retro-slider input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 1.125rem;
    height: 1.125rem;
    background: var(--background);
    border: 2px solid var(--border);
    border-radius: 0;
    cursor: pointer;
    box-shadow: 0 1px 2px 0 rgba(0,0,0,0.05);
}

.retro-slider input[type="range"]::-moz-range-thumb {
    width: 1.125rem;
    height: 1.125rem;
    background: var(--background);
    border: 2px solid var(--border);
    border-radius: 0;
    cursor: pointer;
    box-shadow: 0 1px 2px 0 rgba(0,0,0,0.05);
}

/* ===================== RETRO CHECKBOX ===================== */

.retro-checkbox {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border: 2px solid var(--border);
    border-radius: 4px;
    background: var(--background);
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
    transition: background 0.1s, box-shadow 0.1s;
    box-shadow: var(--shadow-xs);
}

.retro-checkbox:hover {
    box-shadow: var(--shadow-sm);
}

.retro-checkbox.checked {
    background: var(--primary);
}

.retro-checkbox .check-icon {
    display: none;
    width: 14px;
    height: 14px;
    stroke: var(--foreground);
    stroke-width: 3;
    fill: none;
}

.retro-checkbox.checked .check-icon {
    display: block;
}

/* Hide the native checkbox inside the label */
.retro-checkbox input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

/* ===================== INLINE EDIT ===================== */

.inline-editable {
    cursor: pointer;
    padding: 2px 4px;
    border-radius: 2px;
    border: 1px solid transparent;
    min-height: 1.4em;
}

.inline-editable:hover {
    border-color: var(--muted);
    background: hsl(50, 100%, 95%);
}

.inline-edit-input {
    width: 100%;
    padding: 2px 4px;
    font-size: inherit;
    font-family: inherit;
    font-weight: inherit;
    border: 2px solid var(--primary);
    border-radius: 2px;
    background: var(--background);
    outline: none;
    box-shadow: var(--shadow-xs);
}

/* ===================== EXCLUDED EMAILS ===================== */

.excluded-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.25rem;
}

.excluded-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.15rem 0.5rem;
    font-size: 0.75rem;
    background: hsl(0, 0%, 93%);
    border: 1px solid var(--border);
    border-radius: 3px;
    font-family: monospace;
}

.excluded-chip button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.85rem;
    padding: 0;
    line-height: 1;
    color: var(--destructive);
    font-weight: 700;
}

.excluded-add {
    display: flex;
    gap: 0.35rem;
    margin-top: 0.35rem;
    max-width: 300px;
}

.excluded-add input {
    flex: 1;
    padding: 0.2rem 0.5rem;
    font-size: 0.8rem;
    border: 2px solid var(--border);
    border-radius: 3px;
    font-family: inherit;
}

.excluded-add button {
    padding: 0.2rem 0.6rem;
    font-size: 0.8rem;
}


/* ════════════════════════════════════════════════════════════════════
   PUBLIC LANDING (targuntech.com)
   Reuses RetroUI tokens from :root above. Same brand as the CRM.
   ════════════════════════════════════════════════════════════════════ */

.public-shell {
    background: var(--background);
    color: var(--foreground);
    font-family: 'Space Grotesk', system-ui, -apple-system, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-size: 16px;
    line-height: 1.55;
}

.public-shell *,
.public-shell *::before,
.public-shell *::after {
    box-sizing: border-box;
}

/* ─── Nav ──────────────────────────────────────────────── */
.public-nav {
    border-bottom: 2px solid var(--border);
    background: var(--background);
    position: sticky;
    top: 0;
    z-index: 50;
}

.public-nav-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.public-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--foreground);
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 800;
    font-size: 18px;
    letter-spacing: -0.01em;
}

.public-brand-logo {
    width: 36px;
    height: 36px;
    display: block;
}

.public-nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
    font-size: 14px;
}

.public-nav-links a {
    color: var(--foreground);
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.15s;
}

.public-nav-links a:hover { opacity: 0.6; }

.public-nav-signin {
    padding: 6px 12px;
    border: 2px solid var(--border);
    border-radius: 6px;
    background: var(--background);
    font-size: 13px !important;
    font-weight: 700 !important;
    transition: transform 0.18s cubic-bezier(.2,.7,.2,1), box-shadow 0.18s cubic-bezier(.2,.7,.2,1), background 0.2s;
}

.public-nav-signin:hover {
    opacity: 1 !important;
    box-shadow: var(--shadow-sm);
    transform: translateY(-1px);
    background: hsl(50, 100%, 96%);
}

.public-nav-signin:active {
    transform: translateY(1px);
    box-shadow: none;
}

.public-nav-signin:focus-visible,
.public-nav-links a:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
}

/* ─── Buttons (RetroUI press-into-shadow) ──────────────── */
/* ─── Buttons (retroui v2 press-physics) ─────────────────
   v2 design language: buttons feel like physical buttons being
   pressed into the page. translate-y on hover, slight x+y push
   on active, shadow gradient shrinks throughout. */
.public-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    cursor: pointer;
    border: 2px solid var(--border);
    border-radius: 6px;
    transition: transform 0.18s cubic-bezier(.2,.7,.2,1), box-shadow 0.18s cubic-bezier(.2,.7,.2,1), background 0.18s ease;
}

.public-btn:disabled { opacity: 0.55; cursor: not-allowed; }

.public-btn:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
}

.public-btn-primary {
    background: var(--border);
    color: var(--primary);
    box-shadow: var(--shadow-md);
}

.public-btn-primary:hover:not(:disabled) {
    transform: translateY(2px);
    box-shadow: 2px 2px 0 0 var(--border);
}

.public-btn-primary:active:not(:disabled) {
    transform: translate(2px, 4px);
    box-shadow: none;
}

.public-btn-ghost {
    background: var(--background);
    color: var(--foreground);
    box-shadow: var(--shadow-md);
}

.public-btn-ghost:hover:not(:disabled) {
    transform: translateY(2px);
    box-shadow: 2px 2px 0 0 var(--border);
    background: hsl(50, 100%, 96%);
}

.public-btn-ghost:active:not(:disabled) {
    transform: translate(2px, 4px);
    box-shadow: none;
}

.public-btn-accent {
    background: var(--primary);
    color: var(--border);
    box-shadow: var(--shadow-md);
}

.public-btn-accent:hover:not(:disabled) {
    transform: translateY(2px);
    box-shadow: 2px 2px 0 0 var(--border);
    background: var(--primary-hover);
}

.public-btn-accent:active:not(:disabled) {
    transform: translate(2px, 4px);
    box-shadow: none;
}

.public-btn-lg { padding: 14px 26px; font-size: 16px; }

/* ─── Eyebrow tag (solid black pill) ───────────────────── */
.landing-eyebrow {
    display: inline-block;
    background: var(--border);
    color: #ffffff;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.02em;
    margin-bottom: 18px;
    border-radius: 2px;
}

/* ─── Main + sections ──────────────────────────────────── */
.public-main { flex: 1; }

.landing-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

.landing-section {
    padding: 80px 0;
    border-bottom: 2px solid var(--border);
}

.landing-section-soft { background: hsl(50, 60%, 96%); }
.landing-section-dark {
    background: var(--border);
    color: #ffffff;
    border-bottom: 2px solid var(--border);
}
.landing-section-dark .landing-h2 { color: #ffffff; }

.landing-section-head {
    max-width: 720px;
    margin: 0 auto 48px;
    text-align: center;
}
.landing-section-lede {
    color: var(--muted-foreground);
    font-size: 17px;
    margin-top: 8px;
    font-weight: 500;
}

/* ─── Headings ─────────────────────────────────────────── */
.landing-h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin: 0 0 22px 0;
    color: var(--foreground);
}

.landing-h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(28px, 3.5vw, 40px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.015em;
    margin: 0 0 12px 0;
    color: var(--foreground);
}

.landing-h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(22px, 2.5vw, 28px);
    font-weight: 800;
    line-height: 1.2;
    margin: 0 0 12px 0;
}

/* Highlighted word in headings — RetroUI signature */
.landing-accent {
    display: inline-block;
    background: var(--primary);
    color: var(--foreground);
    border: 3px solid var(--border);
    padding: 0 10px;
    line-height: 1.05;
    margin: 0 1px;
}

/* ─── Hero ─────────────────────────────────────────────── */
.landing-hero {
    padding: 80px 0;
    background: var(--background);
    border-bottom: 2px solid var(--border);
}

.landing-hero-inner {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 56px;
    align-items: center;
}

.landing-sub {
    font-size: 17px;
    color: var(--muted-foreground);
    max-width: 540px;
    margin: 0 0 28px 0;
    border-left: 4px solid var(--border);
    padding-left: 16px;
    font-weight: 500;
}

.landing-hero-cta {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

/* Hero image — yellow shadow behind black-bordered card */
.landing-hero-image {
    position: relative;
    display: block;
}
.landing-hero-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--primary);
    transform: translate(12px, 12px);
    z-index: 0;
}
.landing-hero-image img {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: auto;
    border: 4px solid var(--border);
    background: #fff;
}

@media (max-width: 820px) {
    .landing-hero { padding: 56px 0; }
    .landing-hero-inner { grid-template-columns: 1fr; gap: 40px; }
    .landing-section { padding: 56px 0; }
}

/* ─── Channel strip ────────────────────────────────────── */
.channel-strip { text-align: center; }

.channel-strip-label {
    display: inline-block;
    background: var(--border);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    padding: 5px 12px;
    margin-bottom: 24px;
}

.channel-strip-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 24px;
}

.channel-chip {
    background: var(--background);
    border: 2px solid var(--border);
    border-radius: 6px;
    box-shadow: var(--shadow-sm);
    padding: 10px 14px;
    min-width: 150px;
    text-align: left;
    transition: transform 0.18s cubic-bezier(.2,.7,.2,1), box-shadow 0.18s cubic-bezier(.2,.7,.2,1), background 0.2s;
}

.channel-chip:hover {
    transform: translateY(2px);
    box-shadow: 1px 1px 0 0 var(--border);
    background: hsl(50, 100%, 96%);
}

.channel-chip-name {
    font-weight: 700;
    font-size: 14px;
    color: var(--foreground);
}

.channel-chip-niche {
    font-size: 12px;
    color: var(--muted-foreground);
    margin-top: 2px;
    font-weight: 500;
}

.channel-strip-reach {
    font-size: 16px;
    color: var(--muted-foreground);
    max-width: 640px;
    margin: 0 auto;
    font-weight: 500;
    border-left: 4px solid var(--border);
    padding-left: 14px;
    text-align: left;
    display: inline-block;
}

/* ─── Steps ────────────────────────────────────────────── */
.landing-steps {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    position: relative;
}

.landing-steps li {
    position: relative;
    background: var(--background);
    border: 3px solid var(--border);
    border-radius: 6px;
    box-shadow: var(--shadow-md);
    padding: 32px 24px 28px;
    transition: transform 0.18s cubic-bezier(.2,.7,.2,1), box-shadow 0.18s cubic-bezier(.2,.7,.2,1), background 0.2s;
    overflow: hidden;
}

.landing-steps li::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--primary) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
}

.landing-steps li:hover {
    transform: translate(-3px, -3px);
    box-shadow: 8px 8px 0 0 var(--border);
}

.landing-steps li:hover::before { opacity: 0.18; }

/* Connecting arrow between steps on desktop — CSS-drawn chevron */
.landing-steps li:not(:last-child)::after {
    content: "";
    position: absolute;
    right: -16px;
    top: 50%;
    width: 14px;
    height: 14px;
    border-top: 3px solid var(--border);
    border-right: 3px solid var(--border);
    transform: translateY(-50%) rotate(45deg);
    z-index: 2;
}

.landing-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: var(--foreground);
    border: 2px solid var(--border);
    box-shadow: 2px 2px 0 0 var(--border);
    font-family: 'Space Mono', monospace;
    font-weight: 700;
    width: 44px;
    height: 44px;
    font-size: 15px;
    margin-bottom: 18px;
    transition: transform 0.2s ease;
}

.landing-steps li:hover .landing-step-num {
    transform: rotate(-6deg) scale(1.05);
}

.landing-steps h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 20px;
    font-weight: 800;
    margin: 0 0 10px 0;
    color: var(--foreground);
}

.landing-steps p {
    color: var(--muted-foreground);
    font-size: 15px;
    margin: 0;
    font-weight: 500;
}

@media (max-width: 820px) {
    .landing-steps { grid-template-columns: 1fr; }
    .landing-steps li:not(:last-child)::after {
        right: 50%;
        top: auto;
        bottom: -16px;
        transform: translate(50%, 0) rotate(135deg);
    }
}

/* ─── What you get grid ────────────────────────────────── */
.landing-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.landing-card {
    position: relative;
    background: var(--background);
    border: 3px solid var(--border);
    border-radius: 6px;
    box-shadow: var(--shadow-md);
    padding: 26px 22px 22px;
    transition: transform 0.18s cubic-bezier(.2,.7,.2,1), box-shadow 0.18s cubic-bezier(.2,.7,.2,1);
    overflow: hidden;
}

.landing-card:nth-child(1) { background: var(--primary); }
.landing-card:nth-child(2) { background: hsl(180, 60%, 88%); }
.landing-card:nth-child(3) { background: hsl(50, 89%, 88%); }
.landing-card:nth-child(4) { background: hsl(15, 90%, 88%); }

.landing-card:hover {
    transform: translate(-2px, -4px) rotate(-0.5deg);
    box-shadow: 7px 8px 0 0 var(--border);
}

.landing-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--background);
    border: 2px solid var(--border);
    box-shadow: 2px 2px 0 0 var(--border);
    font-family: 'Space Mono', monospace;
    font-weight: 800;
    font-size: 18px;
    margin-bottom: 14px;
    transition: transform 0.25s ease;
}

.landing-card:hover .landing-card-icon {
    transform: rotate(-8deg) scale(1.08);
}

.landing-card h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 18px;
    font-weight: 800;
    margin: 0 0 10px 0;
    color: var(--foreground);
}

.landing-card p {
    font-size: 14px;
    color: var(--muted-foreground);
    margin: 0;
    line-height: 1.55;
    font-weight: 500;
}

.landing-card:nth-child(1) p,
.landing-card:nth-child(3) p { color: var(--foreground); }

@media (max-width: 820px) {
    .landing-grid-4 { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 520px) {
    .landing-grid-4 { grid-template-columns: 1fr; }
}

/* ─── Reveal animation (CSS-only, fires on page load with stagger) ─── */
@keyframes reveal-in {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

.reveal {
    animation: reveal-in 0.6s cubic-bezier(.2,.7,.2,1) both;
    animation-delay: var(--reveal-delay, 0ms);
}

@media (prefers-reduced-motion: reduce) {
    .reveal { animation: none; }
}

/* ─── Stats strip ──────────────────────────────────────── */
.landing-stats-section {
    background: var(--foreground);
    color: #ffffff;
    padding: 48px 0;
    border-top: 3px solid var(--border);
    border-bottom: 3px solid var(--border);
    position: relative;
    overflow: hidden;
}

.landing-stats-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        repeating-linear-gradient(45deg, transparent 0, transparent 22px, rgba(255,255,255,0.04) 22px, rgba(255,255,255,0.04) 23px);
    pointer-events: none;
}

.landing-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    position: relative;
    z-index: 1;
}

.landing-stat {
    text-align: left;
}

.landing-stat-num {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(36px, 4.6vw, 56px);
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    letter-spacing: -0.02em;
    display: flex;
    align-items: baseline;
    gap: 2px;
}

.landing-stat-suffix {
    color: var(--primary);
    font-size: 0.55em;
    font-weight: 700;
    margin-left: 2px;
}

.landing-stat-label {
    font-family: 'Space Mono', monospace;
    font-size: 13px;
    color: #b5b5b5;
    margin-top: 10px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
}

@media (max-width: 820px) {
    .landing-stats { grid-template-columns: 1fr 1fr; gap: 28px; }
}
@media (max-width: 480px) {
    .landing-stats { grid-template-columns: 1fr; }
}

/* Headings get auto-focused by Blazor's FocusOnNavigate on every navigation.
   They are not interactive elements — suppress all focus styling on them. */
h1, h2, h3,
h1:focus, h2:focus, h3:focus,
h1:focus-visible, h2:focus-visible, h3:focus-visible {
    outline: none !important;
}

/* ─── FAQ ──────────────────────────────────────────────── */
.landing-faq {
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.landing-faq-item {
    background: #ffffff;
    border: 2px solid var(--border);
    border-radius: 6px;
    box-shadow: 3px 3px 0 0 var(--border);
    padding: 18px 22px;
    transition: transform 0.18s cubic-bezier(.2,.7,.2,1), box-shadow 0.18s cubic-bezier(.2,.7,.2,1), background 0.2s;
}

.landing-faq-item:hover {
    transform: translate(-1px, -1px);
    box-shadow: 5px 5px 0 0 var(--border);
}

.landing-faq-item[open] {
    background: hsl(50, 100%, 96%);
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 0 var(--border);
}

.landing-faq-item summary {
    cursor: pointer;
    font-weight: 600;
    font-size: 1.02rem;
    color: var(--foreground);
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.landing-faq-item summary::-webkit-details-marker { display: none; }

.landing-faq-item summary::after {
    content: "+";
    font-size: 1.4rem;
    font-weight: 300;
    color: hsl(40, 20%, 50%);
    transition: transform .2s ease;
    line-height: 1;
}

.landing-faq-item[open] summary::after {
    content: "−";
}

.landing-faq-item p {
    margin: 12px 0 0;
    color: hsl(40, 10%, 35%);
    line-height: 1.6;
    font-size: 0.98rem;
}

/* ─── Leverage stat callout ───────────────────────────── */
.landing-leverage-section {
    background: var(--primary);
    border-top: 3px solid var(--border);
    border-bottom: 3px solid var(--border);
    padding: 56px 0;
    position: relative;
    overflow: hidden;
}

.landing-leverage-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(135deg, transparent 0, transparent 24px, rgba(0,0,0,0.04) 24px, rgba(0,0,0,0.04) 25px);
    pointer-events: none;
}

.landing-leverage {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.landing-leverage-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--background);
    border: 3px solid var(--border);
    border-radius: 8px;
    box-shadow: 6px 6px 0 0 var(--border);
    padding: 24px 36px;
    min-width: 200px;
}

.landing-leverage-num {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.02em;
    color: var(--foreground);
}

.landing-leverage-label {
    font-family: 'Space Mono', monospace;
    font-size: 13px;
    color: hsl(40, 10%, 35%);
    margin-top: 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.landing-leverage-equals {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 800;
    color: var(--foreground);
    padding: 0 4px;
}

.landing-leverage-explain {
    margin: 24px auto 0;
    max-width: 680px;
    text-align: center;
    color: var(--foreground);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.55;
    position: relative;
    z-index: 1;
}

.landing-leverage-explain strong {
    background: var(--foreground);
    color: var(--primary);
    padding: 1px 6px;
    font-weight: 800;
}

@media (max-width: 600px) {
    .landing-leverage { gap: 16px; }
    .landing-leverage-stat { padding: 18px 24px; min-width: 0; flex: 1 1 140px; }
}

/* ─── Tech stack cards ────────────────────────────────── */
.landing-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.landing-tech-card {
    background: var(--background);
    border: 3px solid var(--border);
    border-radius: 6px;
    box-shadow: var(--shadow-md);
    padding: 24px 22px;
    transition: transform 0.18s cubic-bezier(.2,.7,.2,1), box-shadow 0.18s cubic-bezier(.2,.7,.2,1);
}

.landing-tech-card:hover {
    transform: translate(-2px, -3px);
    box-shadow: 7px 8px 0 0 var(--border);
}

.landing-tech-tag {
    display: inline-block;
    background: var(--foreground);
    color: var(--primary);
    border: 2px solid var(--border);
    box-shadow: 2px 2px 0 0 var(--border);
    font-family: 'Space Mono', monospace;
    font-weight: 700;
    font-size: 11px;
    padding: 3px 10px;
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-radius: 4px;
}

.landing-tech-card h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 20px;
    font-weight: 800;
    margin: 0 0 10px 0;
    color: var(--foreground);
}

.landing-tech-card p {
    color: var(--muted-foreground);
    font-size: 14px;
    margin: 0;
    line-height: 1.55;
    font-weight: 500;
}

@media (max-width: 820px) {
    .landing-grid-3 { grid-template-columns: 1fr; }
}

/* ─── Compare table ────────────────────────────────────── */
.compare-wrap {
    background: var(--background);
    border: 3px solid var(--border);
    border-radius: 8px;
    box-shadow: 6px 6px 0 0 var(--border);
    overflow-x: auto;
}

.compare-table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Space Grotesk', sans-serif;
    min-width: 720px;
}

.compare-table th,
.compare-table td {
    padding: 16px 18px;
    text-align: left;
    border-bottom: 2px solid hsl(40, 18%, 88%);
    font-size: 14px;
    font-weight: 500;
    color: var(--foreground);
    vertical-align: middle;
}

.compare-table thead th {
    background: hsl(50, 30%, 96%);
    border-bottom: 3px solid var(--border);
    font-weight: 800;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: hsl(40, 10%, 35%);
    padding: 18px;
}

.compare-table tbody th[scope="row"] {
    font-weight: 700;
    color: var(--foreground);
    background: hsl(50, 30%, 98%);
    width: 28%;
}

.compare-table tr:last-child th,
.compare-table tr:last-child td { border-bottom: none; }

.compare-pill {
    display: inline-block;
    background: var(--primary);
    color: var(--foreground);
    border: 2px solid var(--border);
    box-shadow: 2px 2px 0 0 var(--border);
    padding: 6px 12px;
    font-weight: 800;
    font-size: 14px;
    letter-spacing: 0;
    text-transform: none;
}

.compare-col-us {
    background: hsl(50, 100%, 92%) !important;
    border-left: 3px solid var(--border);
    border-right: 3px solid var(--border);
    font-weight: 700;
}

.compare-table thead .compare-col-us { background: hsl(50, 100%, 88%) !important; }

.compare-yes { color: hsl(150, 60%, 28%); font-weight: 700; }
.compare-bad { color: hsl(0, 60%, 42%); font-weight: 600; }
.compare-mid { color: hsl(35, 80%, 38%); font-weight: 600; }

.compare-footnote {
    margin: 22px auto 0;
    max-width: 720px;
    text-align: center;
    color: hsl(40, 10%, 38%);
    font-size: 14px;
    font-style: italic;
}

@media (max-width: 720px) {
    .compare-wrap { box-shadow: 4px 4px 0 0 var(--border); }
}

/* ─── About ────────────────────────────────────────────── */
.landing-about {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 48px;
    align-items: start;
}

.landing-about-photo {
    position: relative;
}

.landing-about-photo::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--primary);
    transform: translate(10px, 10px);
    z-index: 0;
    border-radius: 0;
}

.landing-about-photo img {
    position: relative;
    z-index: 1;
    width: 220px;
    height: 220px;
    object-fit: cover;
    border: 4px solid var(--border);
    background: #fff;
    display: block;
}

.landing-about-copy p {
    color: var(--muted-foreground);
    font-size: 16px;
    margin: 0 0 14px 0;
    max-width: 620px;
    font-weight: 500;
}

.landing-about-shipped {
    margin-top: 22px !important;
    padding: 14px 16px;
    background: var(--background);
    border: 2px solid var(--border);
    box-shadow: var(--shadow-sm);
    font-size: 14px !important;
    color: var(--foreground) !important;
    font-weight: 600 !important;
}

.landing-about-shipped a {
    color: var(--foreground);
    font-weight: 800;
    text-decoration: none;
    background: var(--primary);
    padding: 0 4px;
    border-bottom: 2px solid var(--border);
}

@media (max-width: 820px) {
    .landing-about { grid-template-columns: 1fr; gap: 28px; }
    .landing-about-photo img { width: 160px; height: 160px; }
}

/* ─── Book ─────────────────────────────────────────────── */
.landing-book {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 56px;
    align-items: start;
}

.landing-book-copy p {
    color: #d4d4d4;
    font-size: 17px;
    margin: 0 0 14px 0;
    max-width: 480px;
    font-weight: 500;
}

.landing-book-alt {
    font-size: 14px !important;
    padding: 12px 14px;
    background: rgba(255,255,255,0.06);
    border: 2px solid var(--primary);
    margin-top: 24px !important;
}

.landing-book-alt a {
    color: var(--primary);
    font-weight: 800;
    text-decoration: none;
}

@media (max-width: 820px) {
    .landing-book { grid-template-columns: 1fr; gap: 32px; }
}

/* ─── Meeting form (white card on dark bg) ─────────────── */
.meeting-form-wrap {
    position: relative;
    background: var(--background);
    color: var(--foreground);
    padding: 28px;
    border: 4px solid var(--border);
    box-shadow: 8px 8px 0 0 var(--primary);
}

.meeting-form { display: flex; flex-direction: column; gap: 14px; }

.meeting-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

@media (max-width: 520px) {
    .meeting-form-row { grid-template-columns: 1fr; }
}

.meeting-form label {
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 13px;
    font-weight: 700;
    color: var(--foreground);
}

.meeting-form-hint {
    font-weight: 500;
    color: var(--muted-foreground);
    font-size: 12px;
}

.meeting-form input,
.meeting-form select,
.meeting-form textarea {
    font-family: inherit;
    font-size: 15px;
    padding: 10px 12px;
    border: 2px solid var(--border);
    background: #fff;
    color: var(--foreground);
    transition: box-shadow 0.18s cubic-bezier(.2,.7,.2,1), transform 0.18s cubic-bezier(.2,.7,.2,1);
    border-radius: 6px;
}

.meeting-form input:focus,
.meeting-form textarea:focus {
    outline: none;
    box-shadow: 3px 3px 0 0 var(--border);
    transform: translate(-1px, -1px);
}

/* Select — retroui v2 trigger style: shadow-md baseline, focus shrinks
   to xs shadow (the inverse of inputs which gain shadow on focus). */
.meeting-form select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    height: 42px;
    padding: 0 36px 0 14px;
    background-color: hsl(50, 30%, 97%);
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    font-weight: 500;
}

.meeting-form select:hover {
    background-color: hsl(50, 100%, 96%);
}

.meeting-form select:focus,
.meeting-form select:focus-visible {
    outline: none;
    box-shadow: var(--shadow-xs);
    transform: translateY(2px);
}

.meeting-form textarea { resize: vertical; min-height: 90px; }

.meeting-form-error {
    background: hsl(355, 78%, 95%);
    color: hsl(355, 78%, 30%);
    border: 2px solid hsl(355, 78%, 56%);
    padding: 10px 12px;
    font-size: 14px;
    font-weight: 600;
}

.meeting-form-fineprint {
    font-size: 12px;
    color: var(--muted-foreground);
    margin: 0;
    text-align: center;
    font-weight: 500;
}

/* Form success — borrows the v2 Empty pattern: icon, title, separator, body, action */
.meeting-form-success {
    text-align: center;
    padding: 32px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.meeting-form-success-icon {
    width: 56px;
    height: 56px;
    background: var(--primary);
    color: var(--foreground);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    font-weight: 800;
    border: 3px solid var(--border);
    border-radius: 8px;
    box-shadow: 4px 4px 0 0 var(--border);
}

.meeting-form-success::after {
    content: "";
    display: block;
    width: 64px;
    height: 4px;
    background: var(--primary);
    margin: 4px auto;
    border: 2px solid var(--border);
    order: 3;
}

.meeting-form-success h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 22px;
    font-weight: 800;
    margin: 0;
    order: 2;
}

.meeting-form-success p {
    color: var(--muted-foreground);
    font-size: 15px;
    margin: 0;
    font-weight: 500;
    max-width: 360px;
    line-height: 1.5;
    order: 4;
}

.meeting-form-success .public-btn {
    margin-top: 6px;
    order: 5;
}

/* ─── Newsletter ───────────────────────────────────────── */
.landing-newsletter {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    align-items: center;
}

.landing-newsletter-copy p {
    color: var(--muted-foreground);
    font-size: 16px;
    margin: 0;
    font-weight: 500;
}

@media (max-width: 820px) {
    .landing-newsletter { grid-template-columns: 1fr; }
}

.newsletter-form {
    display: flex;
    gap: 8px;
    align-items: stretch;
    flex-wrap: wrap;
}

.newsletter-form input {
    flex: 1 1 200px;
    min-width: 0;
    font-family: inherit;
    font-size: 15px;
    padding: 10px 14px;
    border: 2px solid var(--border);
    background: #fff;
    color: var(--foreground);
    border-radius: 0;
    box-shadow: var(--shadow-sm);
}

.newsletter-form input:focus {
    outline: none;
    box-shadow: var(--shadow);
    transform: translate(-1px, -1px);
}

.newsletter-form-compact input {
    font-size: 13px;
    padding: 8px 12px;
    background: rgba(255,255,255,0.95);
}

.newsletter-form-compact .public-btn {
    font-size: 13px;
    padding: 8px 14px;
}

.newsletter-success {
    font-size: 14px;
    color: var(--primary);
    font-weight: 700;
    padding: 8px 0;
}

.newsletter-error {
    flex-basis: 100%;
    font-size: 13px;
    color: hsl(355, 78%, 56%);
    font-weight: 600;
}

/* ─── Footer ───────────────────────────────────────────── */
.public-footer {
    background: var(--border);
    color: #d4d4d4;
    padding: 56px 0 24px;
    margin-top: auto;
}

.public-footer .public-brand {
    color: #ffffff;
    margin-bottom: 14px;
}

/* Invert the black portion of the logo when shown on a dark background
   so the brand mark doesn't disappear. */
.public-footer .public-brand-logo,
.landing-section-dark .public-brand-logo {
    filter: invert(1) hue-rotate(180deg);
}

.public-footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1.3fr 1fr 1.5fr;
    gap: 56px;
}

.public-footer-col h4 {
    color: #ffffff;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 14px;
    margin: 0 0 12px 0;
    font-weight: 800;
}

.public-footer-col a {
    display: block;
    color: #d4d4d4;
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 6px;
    font-weight: 500;
    transition: color 0.15s;
}

.public-footer-col a:hover { color: var(--primary); }

.public-footer-tagline {
    color: #999;
    font-size: 13px;
    margin: 0 0 12px 0;
    font-weight: 500;
}

.public-footer-bottom {
    max-width: 1100px;
    margin: 36px auto 0;
    padding: 18px 24px 0;
    border-top: 2px solid #333;
    font-size: 13px;
    color: #999;
    display: flex;
    justify-content: space-between;
    font-weight: 500;
}

.public-footer-bottom a { color: #999; text-decoration: none; }
.public-footer-bottom a:hover { color: var(--primary); }

@media (max-width: 820px) {
    .public-footer-inner { grid-template-columns: 1fr; gap: 32px; }
    .public-footer-bottom { flex-direction: column; gap: 8px; }
}
