/* =============================================
   WaitlistGrow — Clean light theme
   ============================================= */

:root {
    /* App design tokens */
    --bg: #f6f3ee;
    --bg-card: #ffffff;
    --text: #1a1714;
    --muted: #7c7570;
    --muted-light: #a09a95;
    --line: #e6e1da;
    --line-strong: #ccc8c1;

    --btn-primary-bg: #1a1714;
    --btn-primary-text: #f6f3ee;
    --btn-secondary-bg: transparent;

    --danger: #dc2626;
    --danger-bg: #fef2f2;
    --success: #16a34a;
    --success-bg: rgba(22, 163, 74, 0.08);
    --warn: #d97706;

    --shadow-xs: 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.07);
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.10);

    --r-xs: 6px;
    --r-sm: 8px;
    --r: 12px;
    --r-lg: 18px;
    --r-xl: 24px;
    --r-pill: 100px;

    /* DaisyUI variable overrides — force light theme */
    --color-base-100: #f6f3ee;
    --color-base-200: #edeae4;
    --color-base-300: #e1ddd7;
    --color-base-content: #1a1714;
    --color-primary: #1a1714;
    --color-primary-content: #f6f3ee;
    --color-secondary: #7c7570;
    --color-neutral: #1a1714;
    --color-neutral-content: #f6f3ee;
    --color-error: #dc2626;
    --color-success: #16a34a;
    --color-warning: #d97706;
    color-scheme: light;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }

html {
    background: var(--bg);
    color: var(--text);
    font-family: "Manrope", system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    margin: 0;
    min-height: 100vh;
}

a {
    color: inherit;
    text-decoration: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid var(--text);
    outline-offset: 3px;
    border-radius: 4px;
}

/* ---- Typography ---- */
h1, h2, h3, h4 {
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.05;
    margin: 0;
}

h1 { font-size: clamp(2.8rem, 7vw, 5.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
h3 { font-size: 1.12rem; font-weight: 700; margin-bottom: 8px; }

p { margin: 0; line-height: 1.7; }

/* ---- Layout ---- */
main { padding: 0 20px 80px; }

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

/* ---- Flash messages ---- */
.flash-stack {
    max-width: 1100px;
    margin: 20px auto 0;
    padding: 0 4px;
}

.flash-message {
    border-radius: var(--r);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 10px;
    padding: 12px 16px;
    transition: opacity 220ms ease, transform 220ms ease;
    background: var(--bg-card);
    border: 1px solid var(--line);
    color: var(--text);
}

.flash-message.is-dismissing {
    opacity: 0;
    transform: translateY(-6px);
}

.flash-message.success {
    background: var(--success-bg);
    border-color: rgba(22, 163, 74, 0.2);
    color: var(--success);
}

.flash-message.error {
    background: var(--danger-bg);
    border-color: rgba(220, 38, 38, 0.2);
    color: var(--danger);
}

/* =============================================
   NAVIGATION
   ============================================= */
.site-header {
    align-items: center;
    backdrop-filter: blur(16px);
    background: rgba(246, 243, 238, 0.9);
    border-bottom: 1px solid var(--line);
    display: flex;
    gap: 16px;
    justify-content: space-between;
    padding: 0 24px;
    position: sticky;
    top: 0;
    z-index: 100;
    height: 60px;
}

.brand {
    align-items: center;
    color: var(--text);
    display: inline-flex;
    font-size: 1.05rem;
    font-weight: 800;
    gap: 8px;
    letter-spacing: -0.04em;
    text-decoration: none;
    flex-shrink: 0;
}

.brand-logo {
    display: block;
    height: 24px;
    width: auto;
}

.hero-logo {
    display: block;
    height: 40px;
    margin-bottom: 20px;
    width: auto;
}

.thanks-logo {
    display: block;
    height: 32px;
    margin: 0 auto 24px;
    width: auto;
}

.site-nav {
    align-items: center;
    display: flex;
    gap: 4px;
    margin-left: auto;
}

.site-nav form { margin: 0; }

.nav-link {
    border-radius: var(--r-sm);
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 500;
    padding: 7px 12px;
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    transition: color 140ms ease, background 140ms ease;
}

.nav-link:hover {
    background: rgba(0,0,0,0.05);
    color: var(--text);
}

.nav-cta {
    background: var(--text);
    border-radius: var(--r-sm);
    color: var(--bg) !important;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 8px 16px;
    text-decoration: none;
    transition: opacity 140ms ease, transform 140ms ease;
    white-space: nowrap;
}

.nav-cta:hover {
    opacity: 0.88;
    transform: translateY(-1px);
}

.feedback-cta {
    background: #18181b !important;
    border-radius: var(--r-sm) !important;
    color: #fafafa !important;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    padding: 8px 14px !important;
    border: none !important;
    cursor: pointer !important;
    font-family: inherit !important;
    text-decoration: none;
    transition: opacity 140ms ease !important;
    box-shadow: none !important;
    transform: none !important;
}

.feedback-cta:hover,
.feedback-cta:focus-visible {
    opacity: 0.82 !important;
    transform: none !important;
    box-shadow: none !important;
}

/* Mobile nav toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: var(--r-sm);
    flex-direction: column;
    gap: 5px;
    align-items: center;
    justify-content: center;
}

.nav-toggle-bar {
    width: 20px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform 200ms ease, opacity 200ms ease;
}

/* =============================================
   BUTTONS
   ============================================= */
.primary-button {
    align-items: center;
    background: var(--btn-primary-bg);
    border: none;
    border-radius: var(--r);
    color: var(--btn-primary-text);
    cursor: pointer;
    display: inline-flex;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    gap: 6px;
    justify-content: center;
    padding: 13px 22px;
    text-decoration: none;
    transition: opacity 140ms ease, transform 140ms ease;
    white-space: nowrap;
}

.primary-button:hover {
    opacity: 0.88;
    transform: translateY(-1px);
}

.primary-button:active {
    opacity: 1;
    transform: translateY(0);
}

.primary-button:disabled,
.primary-button[aria-disabled="true"] {
    cursor: not-allowed;
    opacity: 0.44;
    transform: none;
}

.secondary-button {
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--line-strong);
    border-radius: var(--r);
    color: var(--text);
    cursor: pointer;
    display: inline-flex;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    gap: 6px;
    justify-content: center;
    padding: 11px 20px;
    text-decoration: none;
    transition: background 140ms ease, border-color 140ms ease, transform 140ms ease;
    white-space: nowrap;
}

.secondary-button:hover {
    background: var(--bg);
    border-color: var(--text);
    transform: translateY(-1px);
}

.back-button {
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    color: var(--muted);
    display: inline-flex;
    font-size: 0.85rem;
    font-weight: 500;
    gap: 6px;
    padding: 6px 12px;
    text-decoration: none;
    transition: color 140ms ease, border-color 140ms ease;
}

.back-button:hover {
    border-color: var(--text);
    color: var(--text);
}

.back-button::before {
    content: "←";
    font-size: 0.9em;
}

/* =============================================
   FORMS
   ============================================= */
.stack-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.field-shell {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 0;
    padding: 0;
}

.field-shell label,
.field-shell legend {
    color: var(--text);
    font-size: 0.875rem;
    font-weight: 600;
}

.field-shell small {
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.5;
    margin-top: 2px;
}

.field-shell input[type="text"],
.field-shell input[type="email"],
.field-shell input[type="password"],
.field-shell input[type="date"],
.field-shell input[type="url"],
.field-shell textarea,
.field-shell select,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="date"],
textarea,
select {
    appearance: none;
    background: var(--bg-card);
    border: 1.5px solid var(--line);
    border-radius: var(--r-sm);
    color: var(--text);
    font-family: inherit;
    font-size: 0.9rem;
    line-height: 1.5;
    padding: 10px 12px;
    transition: border-color 140ms ease, box-shadow 140ms ease;
    width: 100%;
}

.field-shell input:focus,
.field-shell textarea:focus,
.field-shell select:focus,
input:focus,
textarea:focus,
select:focus {
    border-color: var(--text);
    box-shadow: 0 0 0 3px rgba(26, 23, 20, 0.08);
    outline: none;
}

.field-shell textarea {
    min-height: 90px;
    resize: vertical;
}

.field-shell select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%237c7570' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-position: right 12px center;
    background-repeat: no-repeat;
    padding-right: 36px;
    cursor: pointer;
}

.field-shell--invalid input,
.field-shell--invalid textarea,
.field-shell--invalid select {
    border-color: var(--danger);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.08);
}

.field-error {
    color: var(--danger);
    font-size: 0.82rem;
    font-weight: 500;
}

.form-block {
    border: 1px solid var(--line);
    border-radius: var(--r);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.form-block-title {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    margin: 0 0 4px;
    text-transform: uppercase;
}

.form-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: 1fr 1fr;
}

.form-grid--triple {
    grid-template-columns: 1fr 1fr 1fr;
}

.form-grid--double-stack {
    grid-template-columns: 1fr 1fr;
}

.form-row-note,
.form-inline-note {
    color: var(--muted);
    font-size: 0.82rem;
    margin: 0;
}

.form-status-row {
    align-items: center;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.form-message-slot {
    min-height: 20px;
}

.form-message {
    border-radius: var(--r-sm);
    font-size: 0.875rem;
    font-weight: 500;
    padding: 10px 14px;
}

.form-message.success {
    background: var(--success-bg);
    color: var(--success);
    border: 1px solid rgba(22, 163, 74, 0.2);
}

.form-message.error {
    background: var(--danger-bg);
    color: var(--danger);
    border: 1px solid rgba(220, 38, 38, 0.2);
}

.field-help {
    position: relative;
}

/* Feature vote checkboxes */
.field-shell--feature-votes {
    border: none;
    padding: 0;
    margin: 0;
}

.field-shell--feature-votes legend {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.feature-vote-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 4px;
}

.feature-vote-list label {
    align-items: center;
    background: var(--bg-card);
    border: 1.5px solid var(--line);
    border-radius: var(--r-sm);
    cursor: pointer;
    display: flex;
    gap: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 10px 14px;
    transition: border-color 140ms ease, background 140ms ease;
}

.feature-vote-list label:hover {
    border-color: var(--text);
    background: var(--bg);
}

.feature-vote-list input[type="checkbox"] {
    accent-color: var(--text);
    flex-shrink: 0;
    height: 16px;
    width: 16px;
    border-radius: 4px;
    cursor: pointer;
}

.feature-vote-list input[type="checkbox"]:checked + * {
    font-weight: 600;
}

/* =============================================
   EYEBROW / LABEL
   ============================================= */
.eyebrow {
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--r-pill);
    color: var(--muted);
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 5px 12px;
    text-transform: uppercase;
}

/* =============================================
   LANDING PAGE — HERO
   ============================================= */
.hero {
    margin: 0 auto;
    max-width: 1100px;
    padding: 80px 0 48px;
}

.hero-inner {
    max-width: 760px;
}

.hero h1 {
    margin: 20px 0 20px;
}

.highlight-text {
    text-decoration: underline;
    text-decoration-style: wavy;
    text-underline-offset: 6px;
    text-decoration-thickness: 3px;
}

.hero-lead {
    color: var(--muted);
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    line-height: 1.75;
    max-width: 52ch;
    margin-bottom: 28px;
}

.hero-stats {
    align-items: stretch;
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--r);
    display: inline-flex;
    margin-bottom: 28px;
    overflow: hidden;
}

.hero-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 16px 24px;
    text-align: center;
}

.hero-stat + .hero-stat {
    border-left: 1px solid var(--line);
}

.hero-stat strong {
    color: var(--text);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1;
}

.hero-stat span {
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-note {
    color: var(--muted-light);
    font-size: 0.82rem;
    margin-top: 12px;
}

.hero-note--trust {
    color: #15803d;
    font-size: 0.82rem;
    font-weight: 600;
}

.trust-note {
    color: #15803d;
    font-size: 0.82rem;
    font-weight: 600;
}

/* Effort card */
.effort-card {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    margin-top: 48px;
    padding: 28px 28px 24px;
    max-width: 560px;
}

.effort-kicker {
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.effort-heading {
    color: var(--text);
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.effort-list { display: flex; flex-direction: column; gap: 8px; }

.effort-line {
    align-items: baseline;
    color: var(--muted);
    display: flex;
    font-size: 0.88rem;
    gap: 8px;
    line-height: 1.5;
}

.effort-line span {
    color: var(--text);
    font-weight: 700;
    flex-shrink: 0;
    font-size: 0.82rem;
}

.effort-total {
    border-top: 1px solid var(--line);
    color: var(--text);
    font-size: 0.88rem;
    font-weight: 700;
    margin-top: 14px;
    padding-top: 14px;
}

.effort-note {
    color: var(--muted);
    font-size: 0.88rem;
    margin-top: 12px;
}

/* =============================================
   LANDING PAGE — HOW IT WORKS
   ============================================= */
.landing-section {
    margin: 0 auto;
    max-width: 1100px;
    padding: 64px 0;
    border-top: 1px solid var(--line);
}

.how-heading {
    margin-bottom: 36px;
}

.how-heading h2 {
    margin-top: 14px;
}

.feature-list--steps {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(3, 1fr);
}

.feature-list--steps article {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 24px;
}

.step-number {
    color: var(--line-strong);
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.06em;
    margin: 0 0 16px;
    line-height: 1;
}

.feature-list--steps h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.feature-list--steps p {
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.65;
}

/* =============================================
   LANDING PAGE — PRICING
   ============================================= */
.pricing-section {
    border-top: 1px solid var(--line);
    padding: 64px 0;
}

.pricing-shell {
    margin: 0 auto;
    max-width: 1100px;
}

.pricing-heading {
    margin-bottom: 36px;
    max-width: 600px;
}

.pricing-heading h2 {
    margin-top: 14px;
    margin-bottom: 12px;
}

.section-copy {
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.7;
    max-width: 52ch;
}

.pricing-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(2, 1fr);
    max-width: 640px;
}

.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 28px;
    position: relative;
}

.pricing-card--featured {
    border-color: var(--text);
    border-width: 2px;
}

.pricing-badge {
    background: var(--text);
    border-radius: var(--r-pill);
    color: var(--bg);
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    margin-bottom: 14px;
    padding: 4px 10px;
    text-transform: uppercase;
}

.pricing-tier {
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    margin: 0 0 8px;
    text-transform: uppercase;
}

.pricing-card--featured .pricing-tier {
    margin-top: 0;
}

.pricing-value {
    align-items: baseline;
    display: flex;
    gap: 6px;
    margin-bottom: 10px;
}

.pricing-value strong {
    font-size: 2.4rem;
    font-weight: 800;
    letter-spacing: -0.05em;
    line-height: 1;
}

.pricing-value span {
    color: var(--muted);
    font-size: 0.88rem;
}

.pricing-copy {
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.pricing-button {
    width: 100%;
    justify-content: center;
}

.pricing-coming-soon {
    color: var(--muted-light);
    font-size: 0.85rem;
    font-style: italic;
    margin: 0;
}

/* =============================================
   DASHBOARD — REDESIGNED (Option A drawer)
   ============================================= */

.dashboard-heading {
    margin-bottom: 24px;
}

.dashboard-heading-row {
    align-items: flex-end;
    display: flex;
    gap: 16px;
    justify-content: space-between;
    flex-wrap: wrap;
}

.dashboard-heading-row h1 {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    margin-top: 10px;
}

.dashboard-heading-actions {
    flex-shrink: 0;
    padding-bottom: 4px;
}

.dashboard-limit-note {
    color: var(--warn);
    font-size: 0.85rem;
    font-weight: 600;
}

/* Waitlist list header */
.wl-list-header {
    border-top: 1px solid var(--line);
    margin-bottom: 16px;
    padding-top: 28px;
}

.wl-list-header h2 {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 4px;
}

.wl-list-header p {
    color: var(--muted);
    font-size: 0.85rem;
}

/* Waitlist cards grid */
.wl-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
}

.wl-card {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: border-color 140ms ease, box-shadow 140ms ease;
}

.wl-card:hover {
    border-color: var(--line-strong);
    box-shadow: var(--shadow-sm);
}

.wl-card-body {
    align-items: flex-start;
    display: flex;
    gap: 16px;
    justify-content: space-between;
    padding: 20px 20px 14px;
    text-decoration: none;
    flex: 1;
}

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

.wl-card-info h3 {
    color: var(--text);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 4px;
    letter-spacing: -0.02em;
}

.wl-card-info p {
    color: var(--muted);
    font-size: 0.85rem;
    line-height: 1.5;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

.wl-card-stat {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    flex-shrink: 0;
    gap: 2px;
}

.wl-card-stat strong {
    color: var(--text);
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.05em;
    line-height: 1;
}

.wl-card-stat span {
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
}

.wl-card-actions {
    align-items: center;
    border-top: 1px solid var(--line);
    display: flex;
    gap: 4px;
    padding: 10px 14px;
}

.wl-action {
    background: none;
    border: none;
    border-radius: var(--r-xs);
    color: var(--muted);
    cursor: pointer;
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 5px 8px;
    text-decoration: none;
    transition: background 120ms ease, color 120ms ease;
    white-space: nowrap;
}

.wl-action:hover {
    background: var(--bg);
    color: var(--text);
}

.wl-action--copy {
    margin-right: auto;
}

.wl-action--view {
    color: var(--text);
}

/* Empty state */
.wl-empty {
    background: var(--bg-card);
    border: 2px dashed var(--line);
    border-radius: var(--r-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 220px;
    padding: 40px;
    grid-column: 1 / -1;
}

.wl-empty-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
}

.wl-empty-inner strong {
    font-size: 1rem;
    font-weight: 700;
}

.wl-empty-inner p {
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.6;
    max-width: 34ch;
}

.wl-empty-cta { margin-top: 8px; }

/* =============================================
   DRAWER / SLIDE-OVER
   ============================================= */

.drawer-backdrop {
    background: rgba(0, 0, 0, 0.28);
    bottom: 0;
    left: 0;
    position: fixed;
    right: 0;
    top: 0;
    z-index: 200;
    animation: fade-in 180ms ease;
}

.drawer-backdrop[hidden] { display: none; }

@keyframes fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.drawer {
    background: var(--bg-card);
    bottom: 0;
    box-shadow: -8px 0 40px rgba(0, 0, 0, 0.12);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: fixed;
    right: 0;
    top: 0;
    width: 500px;
    max-width: 100vw;
    z-index: 201;
    transform: translateX(0);
    animation: slide-in 220ms cubic-bezier(0.32, 0.72, 0, 1);
}

.drawer[hidden] {
    display: none;
}

@keyframes slide-in {
    from { transform: translateX(100%); }
    to   { transform: translateX(0); }
}

.drawer-header {
    align-items: flex-start;
    border-bottom: 1px solid var(--line);
    display: flex;
    flex-shrink: 0;
    gap: 12px;
    justify-content: space-between;
    padding: 20px 24px;
}

.drawer-title {
    color: var(--text);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0 0 3px;
}

.drawer-subtitle {
    color: var(--muted);
    font-size: 0.83rem;
    margin: 0;
}

.drawer-close {
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--muted);
    cursor: pointer;
    flex-shrink: 0;
    font-size: 0.8rem;
    height: 28px;
    line-height: 1;
    padding: 0;
    transition: background 120ms ease, color 120ms ease;
    width: 28px;
}

.drawer-close:hover {
    background: var(--line);
    color: var(--text);
}

.drawer-limit-banner {
    background: rgba(217, 119, 6, 0.07);
    border: 1px solid rgba(217, 119, 6, 0.2);
    border-radius: var(--r-sm);
    color: var(--warn);
    font-size: 0.88rem;
    line-height: 1.6;
    margin: 24px;
    padding: 14px 16px;
}

.drawer-form {
    flex: 1;
    overflow-y: auto;
    padding: 20px 24px;
    scrollbar-width: thin;
    scrollbar-color: var(--line) transparent;
}

.drawer-footer {
    border-top: 1px solid var(--line);
    display: flex;
    flex-direction: row-reverse;
    gap: 10px;
    padding: 16px 24px;
    background: var(--bg-card);
    flex-shrink: 0;
}

.drawer-submit { flex: 1; justify-content: center; }

/* Body scroll lock when drawer is open */
body.drawer-open {
    overflow: hidden;
}

/* =============================================
   STAT CARDS (dashboard & shared)
   ============================================= */
.stats-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(3, 1fr);
    margin-bottom: 32px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--r);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-card span {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.stat-card strong {
    color: var(--text);
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.05em;
    line-height: 1;
    margin: 4px 0;
}

.stat-card p {
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.5;
}

/* =============================================
   DASHBOARD
   ============================================= */
.dashboard-shell {
    margin: 0 auto;
    max-width: 1100px;
    padding-top: 48px;
}

.dashboard-heading {
    margin-bottom: 28px;
}

.dashboard-heading h1 {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    margin-top: 10px;
}

.dashboard-layout {
    display: grid;
    gap: 24px;
    grid-template-columns: 400px 1fr;
    align-items: start;
}

/* Sticky panel */
.create-waitlist-panel {
    position: sticky;
    top: 76px;
}

/* Panel */
.panel {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    overflow: hidden;
}

.panel-heading {
    border-bottom: 1px solid var(--line);
    padding: 20px 22px;
}

.panel-heading h2 {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 6px;
}

.panel-heading p {
    color: var(--muted);
    font-size: 0.85rem;
    line-height: 1.5;
}

.panel-plan-note {
    color: var(--muted) !important;
    font-size: 0.82rem !important;
    line-height: 1.55 !important;
    margin-top: 8px !important;
}

.panel-limit-banner {
    background: rgba(217, 119, 6, 0.07);
    border: 1px solid rgba(217, 119, 6, 0.2);
    border-radius: var(--r-sm);
    color: var(--warn);
    font-size: 0.85rem;
    line-height: 1.55;
    margin-top: 12px;
    padding: 10px 12px;
}

.panel > .stack-form,
.panel > .waitlist-builder {
    padding: 20px 22px;
    max-height: calc(100vh - 200px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--line) transparent;
}

.published-pages-heading {
    padding: 20px 22px;
    border-bottom: 1px solid var(--line);
}

/* Waitlist list */
.waitlist-list--scroll {
    display: flex;
    flex-direction: column;
    max-height: 580px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--line) transparent;
}

.waitlist-item {
    background: var(--bg-card);
    border-bottom: 1px solid var(--line);
    padding: 16px 22px;
    transition: background 120ms ease;
}

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

.waitlist-item:hover {
    background: var(--bg);
}

.waitlist-card-main {
    display: block;
    margin-bottom: 8px;
    text-decoration: none;
}

.waitlist-card-main h3 {
    color: var(--text);
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.waitlist-card-main p {
    color: var(--muted);
    font-size: 0.83rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.waitlist-meta {
    align-items: center;
    display: flex;
    gap: 12px;
    justify-content: space-between;
}

.waitlist-meta > span {
    color: var(--muted);
    font-size: 0.8rem;
}

.waitlist-actions {
    display: flex;
    gap: 6px;
    align-items: center;
}

.waitlist-share-link {
    color: var(--muted);
    font-size: 0.75rem;
    font-family: monospace;
    background: var(--bg);
    border-radius: 4px;
    padding: 2px 6px;
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.waitlist-action-link {
    font-size: 0.82rem;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: var(--r-xs);
    border: 1px solid transparent;
    text-decoration: none;
    transition: background 140ms ease, border-color 140ms ease;
}

.waitlist-action-link--muted {
    color: var(--muted);
}

.waitlist-action-link--muted:hover {
    background: var(--bg);
    border-color: var(--line);
    color: var(--text);
}

/* Loading state */
.list-loading-state {
    align-items: center;
    display: flex;
    gap: 10px;
    padding: 16px 22px;
    color: var(--muted);
    font-size: 0.85rem;
}

.list-spinner {
    border: 2px solid var(--line);
    border-top-color: var(--text);
    border-radius: 50%;
    display: block;
    flex-shrink: 0;
    height: 16px;
    width: 16px;
    animation: spin 700ms linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Empty state */
.empty-state-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 28px 22px;
}

.empty-state-card strong {
    font-size: 0.95rem;
    font-weight: 700;
}

.empty-state {
    color: var(--muted);
    font-size: 0.85rem;
    line-height: 1.6;
    max-width: 36ch;
}

.empty-state-action {
    margin-top: 4px;
    font-size: 0.85rem;
    padding: 9px 16px;
}

/* =============================================
   PUBLIC WAITLIST DASHBOARD
   ============================================= */
.public-dashboard {
    margin: 0 auto;
    max-width: 1100px;
    padding-top: 40px;
}

.public-hero {
    margin-bottom: 36px;
}

.public-hero-header {
    margin-bottom: 16px;
}

.public-hero-topbar {
    align-items: flex-start;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
}

.waitlist-share-card {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--r);
    padding: 12px 16px;
    flex: 1;
    min-width: 240px;
    max-width: 460px;
}

.waitlist-share-label {
    color: var(--muted);
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.waitlist-share-row {
    align-items: center;
    display: flex;
    gap: 10px;
}

.waitlist-share-url {
    color: var(--text);
    flex: 1;
    font-size: 0.82rem;
    font-family: "Menlo", "Monaco", monospace;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.waitlist-copy-button {
    background: var(--text);
    border: none;
    border-radius: var(--r-xs);
    color: var(--bg-card);
    cursor: pointer;
    font-family: inherit;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 5px 10px;
    transition: opacity 140ms ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.waitlist-copy-button:hover { opacity: 0.82; }

.waitlist-status-tag {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--r);
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 12px 16px;
    min-width: 140px;
}

.waitlist-status-tag span {
    font-size: 0.88rem;
    font-weight: 700;
}

.waitlist-status-tag small {
    color: var(--muted);
    font-size: 0.78rem;
}

.waitlist-status-tag.active span { color: var(--success); }
.waitlist-status-tag.warning span { color: var(--warn); }
.waitlist-status-tag.closed span { color: var(--muted); }

.waitlist-delete-form { display: flex; align-items: center; }

.waitlist-delete-button {
    background: transparent;
    border: 1px solid rgba(220, 38, 38, 0.25);
    border-radius: var(--r-sm);
    color: var(--danger);
    cursor: pointer;
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 8px 14px;
    transition: background 140ms ease;
}

.waitlist-delete-button:hover {
    background: var(--danger-bg);
}

.public-header {
    margin-bottom: 24px;
}

.public-header h1 {
    font-size: clamp(1.8rem, 4vw, 3rem);
    margin-bottom: 6px;
    max-width: 18ch;
}

.public-tagline {
    color: var(--muted);
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.hero-text {
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.7;
    max-width: 60ch;
}

/* Public stats */
.public-stats-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(3, 1fr);
}

.public-stat-card {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--r);
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 20px;
}

.public-stat-card span {
    color: var(--muted);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.public-stat-card strong {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.05em;
    line-height: 1;
    margin: 4px 0;
}

.public-stat-card p {
    color: var(--muted);
    font-size: 0.8rem;
    line-height: 1.5;
}

.public-stat-card.success strong { color: var(--success); }
.public-stat-card.warn strong { color: var(--warn); }

/* Public panels */
.public-panel {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    margin-bottom: 20px;
    overflow: hidden;
}

.public-panel-heading {
    border-bottom: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 20px 24px;
}

.public-panel-heading-row {
    align-items: flex-start;
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

.public-panel-heading-row .secondary-button {
    flex-shrink: 0;
    font-size: 0.82rem;
    padding: 8px 14px;
}

.public-panel-kicker {
    margin-bottom: 6px;
}

.public-panel-heading h2 {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 4px;
}

.public-panel-heading p {
    color: var(--muted);
    font-size: 0.85rem;
    line-height: 1.6;
}

.panel-microcopy {
    color: var(--muted-light);
    font-size: 0.8rem;
    margin-top: 2px;
}

/* Feature ranking */
.feature-ranking-list {
    padding: 8px 0;
}

.feature-ranking-row {
    align-items: center;
    border-bottom: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    padding: 14px 24px;
    transition: background 120ms ease;
}

.feature-ranking-row:last-child { border-bottom: none; }
.feature-ranking-row:hover { background: var(--bg); }

.feature-ranking-row strong {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 2px;
}

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

.feature-ranking-score {
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--r-pill);
    color: var(--text);
    font-size: 0.82rem;
    font-weight: 700;
    min-width: 32px;
    padding: 4px 10px;
    text-align: center;
}

/* Source table */
.source-table {
    overflow-x: auto;
}

.source-table-head,
.source-row {
    display: grid;
    gap: 12px;
    grid-template-columns: 1fr 80px 80px 100px;
    padding: 12px 24px;
}

.source-table-head {
    background: var(--bg);
    border-bottom: 1px solid var(--line);
}

.source-table-head span {
    color: var(--muted);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.source-row {
    align-items: center;
    border-bottom: 1px solid var(--line);
    transition: background 120ms ease;
}

.source-row:last-child { border-bottom: none; }
.source-row:hover { background: var(--bg); }

.source-row strong {
    font-size: 0.88rem;
    font-weight: 600;
}

.source-row span {
    color: var(--muted);
    font-size: 0.88rem;
    font-variant-numeric: tabular-nums;
}

.source-conversion {
    color: var(--success) !important;
    font-weight: 600 !important;
}

/* Subscriber table */
.subscriber-table {
    overflow-x: auto;
}

.subscriber-table-head,
.subscriber-row {
    display: grid;
    gap: 16px;
    grid-template-columns: 1fr 120px 120px;
    padding: 12px 24px;
    align-items: center;
}

.subscriber-table-head {
    background: var(--bg);
    border-bottom: 1px solid var(--line);
}

.subscriber-table-head span {
    color: var(--muted);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.subscriber-row {
    border-bottom: 1px solid var(--line);
    transition: background 120ms ease;
}

.subscriber-row:last-child { border-bottom: none; }
.subscriber-row:hover { background: var(--bg); }

.subscriber-user {
    align-items: flex-start;
    display: flex;
    gap: 12px;
    min-width: 0;
}

.subscriber-avatar {
    align-items: center;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--muted);
    display: flex;
    flex-shrink: 0;
    font-size: 0.72rem;
    font-weight: 700;
    height: 32px;
    justify-content: center;
    width: 32px;
}

.subscriber-user > div {
    min-width: 0;
    overflow: hidden;
}

.subscriber-user strong {
    display: block;
    font-size: 0.85rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.subscriber-user p {
    color: var(--muted);
    font-size: 0.78rem;
    line-height: 1.5;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

.subscriber-pill {
    border-radius: var(--r-pill);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 4px 10px;
    text-align: center;
}

.subscriber-pill--answered {
    background: rgba(22, 163, 74, 0.1);
    color: var(--success);
}

.subscriber-pill--missing {
    background: var(--bg);
    color: var(--muted);
    border: 1px solid var(--line);
}

.subscriber-date {
    color: var(--muted);
    font-size: 0.8rem;
}

/* =============================================
   WAITLIST SIGNUP PAGE
   ============================================= */
.signup-flow {
    display: flex;
    justify-content: center;
    margin: 0 auto;
    max-width: 1100px;
    padding: 60px 0;
}

.signup-card {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--r-xl);
    max-width: 520px;
    padding: 40px;
    width: 100%;
}

.signup-card .eyebrow {
    margin-bottom: 0;
}

.signup-card h1 {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    margin: 16px 0 12px;
}

.signup-card .hero-text {
    margin-bottom: 20px;
}

.signup-social-proof {
    align-items: center;
    color: var(--text);
    display: inline-flex;
    font-size: 0.9rem;
    font-weight: 500;
    gap: 8px;
    margin-bottom: 16px;
}

.signup-social-proof strong {
    font-weight: 700;
}

.signup-social-proof-dot {
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
    height: 10px;
    position: relative;
    width: 10px;
    background: #4ade80;
}

.signup-social-proof-dot::before,
.signup-social-proof-dot::after {
    animation: dot-ping 1.8s ease-out infinite;
    border-radius: 50%;
    content: "";
    height: 100%;
    left: 0;
    position: absolute;
    top: 0;
    width: 100%;
    background: #4ade80;
    opacity: 0;
}

.signup-social-proof-dot::after {
    animation-delay: 0.6s;
}

@keyframes dot-ping {
    0%   { transform: scale(1);   opacity: 0.6; }
    100% { transform: scale(3);   opacity: 0; }
}

.signup-trust-row {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 24px;
}

.signup-trust-row span {
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--r-pill);
    color: var(--muted);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
}

.signup-form .primary-button {
    margin-top: 4px;
    width: 100%;
}

/* =============================================
   THANK YOU PAGE
   ============================================= */
.thanks-flow {
    margin: 0 auto;
    max-width: 680px;
    padding: 72px 0 48px;
    text-align: center;
}

.thanks-badge {
    background: rgba(22, 163, 74, 0.1);
    border: 1px solid rgba(22, 163, 74, 0.2);
    border-radius: var(--r-pill);
    color: var(--success);
    display: inline-block;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    margin-bottom: 24px;
    padding: 6px 16px;
    text-transform: uppercase;
}

.thanks-flow h1 {
    font-size: clamp(2.4rem, 5vw, 4rem);
    margin-bottom: 20px;
}

.thanks-accent {
    text-decoration: underline;
    text-decoration-style: wavy;
    text-underline-offset: 6px;
    text-decoration-thickness: 3px;
    text-decoration-color: var(--success);
}

.thanks-position {
    align-items: center;
    display: inline-flex;
    gap: 10px;
    font-size: 1.05rem;
    color: var(--text);
    margin-bottom: 20px;
}

.thanks-position strong {
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.thanks-copy {
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.75;
    margin: 0 auto 36px;
    max-width: 50ch;
}

.thanks-meta {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(3, 1fr);
    margin-bottom: 32px;
}

.thanks-meta-card {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--r);
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 16px;
    text-align: left;
}

.thanks-meta-card span {
    color: var(--muted);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.thanks-meta-card strong {
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.4;
}

.thanks-countdown {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.thanks-card {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 88px;
    padding: 20px 16px;
}

.thanks-card strong {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.05em;
    line-height: 1;
}

.thanks-card span {
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* =============================================
   AUTH PAGES
   ============================================= */
.auth-shell {
    display: flex;
    justify-content: center;
    margin: 0 auto;
    max-width: 1100px;
    padding: 72px 0;
}

.auth-panel {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--r-xl);
    max-width: 440px;
    padding: 40px;
    width: 100%;
}

.auth-panel .eyebrow {
    margin-bottom: 0;
}

.auth-panel h1 {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    margin: 16px 0 28px;
}

.auth-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 14px;
}

.auth-field label {
    color: var(--text);
    font-size: 0.875rem;
    font-weight: 600;
}

.auth-field input {
    appearance: none;
    background: var(--bg-card);
    border: 1.5px solid var(--line);
    border-radius: var(--r-sm);
    color: var(--text);
    font-family: inherit;
    font-size: 0.9rem;
    padding: 10px 12px;
    transition: border-color 140ms ease, box-shadow 140ms ease;
    width: 100%;
}

.auth-field input:focus {
    border-color: var(--text);
    box-shadow: 0 0 0 3px rgba(26, 23, 20, 0.08);
    outline: none;
}

.auth-field-help {
    color: var(--muted);
    font-size: 0.8rem;
    line-height: 1.5;
}

.auth-panel .primary-button {
    margin-top: 8px;
    width: 100%;
}

.auth-link {
    color: var(--muted);
    font-size: 0.875rem;
    margin-top: 14px;
}

.auth-link a {
    color: var(--text);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.auth-link--support { margin-top: 10px; }

.auth-copy {
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

/* =============================================
   EDIT WAITLIST PAGE
   ============================================= */
.edit-shell {
    margin: 0 auto;
    max-width: 720px;
    padding-top: 48px;
}

.edit-shell h1 {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    margin: 10px 0 24px;
}

.edit-actions {
    align-items: center;
    display: flex;
    gap: 12px;
    margin-top: 8px;
    flex-wrap: wrap;
}

/* =============================================
   FEEDBACK PAGE
   ============================================= */
.feedback-shell {
    margin: 0 auto;
    max-width: 560px;
    padding: 72px 0;
}

.feedback-shell h1 {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    margin: 10px 0 8px;
}

.feedback-shell .hero-text {
    margin-bottom: 28px;
}

/* =============================================
   SKELETON LOADERS
   ============================================= */
.skeleton {
    animation: pulse 1.6s ease-in-out infinite;
    background: var(--line);
    border-radius: var(--r-sm);
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* =============================================
   PANEL MICROCOPY
   ============================================= */
.hero-support,
.hero-proof,
.panel-note {
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.75;
}

/* =============================================
   MOBILE / RESPONSIVE
   ============================================= */
@media (max-width: 900px) {
    .wl-grid {
        grid-template-columns: 1fr;
    }
    .form-grid--triple {
        grid-template-columns: 1fr 1fr;
    }
    .feature-list--steps {
        grid-template-columns: 1fr;
    }
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
}

@media (max-width: 768px) {
    main { padding: 0 16px 64px; }

    /* Nav mobile */
    .site-header {
        padding: 0 16px;
        position: relative;
        height: auto;
        flex-wrap: wrap;
        padding: 12px 16px;
    }

    .nav-toggle {
        display: flex;
        margin-left: auto;
    }

    .site-nav {
        display: none;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        padding: 8px 0 4px;
        gap: 2px;
        border-top: 1px solid var(--line);
        margin-top: 8px;
    }

    .site-nav.is-open {
        display: flex;
    }

    .site-nav .nav-link,
    .site-nav .nav-cta,
    .site-nav .feedback-cta {
        text-align: left;
        width: 100%;
        border-radius: var(--r-sm) !important;
        padding: 10px 12px !important;
        font-size: 0.9rem !important;
    }

    .site-nav form {
        width: 100%;
    }

    .site-nav form .nav-link {
        width: 100%;
        display: block;
    }

    /* Hero */
    .hero {
        padding: 48px 0 32px;
    }

    .hero-stats {
        flex-wrap: wrap;
        display: flex;
    }

    .hero-stat {
        padding: 12px 16px;
    }

    /* Effort card */
    .effort-card {
        padding: 20px;
    }

    /* Stats */
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .public-stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    /* Dashboard */
    .dashboard-shell {
        padding-top: 32px;
    }

    .drawer {
        width: 100vw;
    }

    .drawer-form {
        padding: 16px;
    }

    .drawer-header {
        padding: 16px;
    }

    .drawer-footer {
        padding: 12px 16px;
    }

    .form-grid,
    .form-grid--double-stack {
        grid-template-columns: 1fr;
    }

    /* Signup */
    .signup-flow {
        padding: 32px 0;
    }

    .signup-card {
        border-radius: var(--r-lg);
        padding: 28px 20px;
    }

    /* Thanks */
    .thanks-flow {
        padding: 48px 0 32px;
    }

    .thanks-meta {
        grid-template-columns: 1fr;
    }

    /* Source / subscriber tables */
    .source-table-head { display: none; }

    .source-row {
        border: 1px solid var(--line);
        border-radius: var(--r);
        display: flex;
        flex-direction: column;
        gap: 4px;
        margin: 8px 16px;
        padding: 12px 16px;
    }

    .source-row > span::before {
        color: var(--muted);
        font-size: 0.72rem;
        font-weight: 700;
        letter-spacing: 0.06em;
        text-transform: uppercase;
    }

    .source-row > span:nth-child(2)::before { content: "Visits: "; }
    .source-row > span:nth-child(3)::before { content: "Signups: "; }
    .source-row > span:nth-child(4)::before { content: "Conversion: "; }

    .subscriber-table-head { display: none; }

    .subscriber-row {
        border: 1px solid var(--line);
        border-radius: var(--r);
        display: flex;
        flex-direction: column;
        gap: 8px;
        margin: 8px 16px;
        padding: 12px 16px;
    }

    .subscriber-row .subscriber-date {
        font-size: 0.78rem;
    }

    /* Auth */
    .auth-shell {
        padding: 40px 0;
    }

    .auth-panel {
        border-radius: var(--r-lg);
        padding: 28px 20px;
    }

    /* Public topbar */
    .public-hero-topbar {
        flex-direction: column;
    }

    .waitlist-share-card {
        max-width: 100%;
    }

    /* Feature ranking */
    .feature-ranking-row {
        padding: 14px 16px;
    }

    /* Public panel */
    .public-panel-heading {
        padding: 16px;
    }

    .source-table-head,
    .source-row {
        grid-template-columns: 1fr 70px 70px 90px;
        padding: 12px 16px;
    }

    .subscriber-table-head,
    .subscriber-row {
        padding: 12px 16px;
    }

    /* Pricing */
    .pricing-section { padding: 48px 0; }
    .landing-section { padding: 48px 0; }
}

@media (max-width: 520px) {
    h1 { letter-spacing: -0.03em; }

    .hero-stats {
        width: 100%;
    }

    .hero-stat {
        flex: 1;
        min-width: 0;
    }

    .public-stats-grid {
        grid-template-columns: 1fr;
    }

    .thanks-countdown {
        gap: 8px;
    }

    .thanks-card {
        min-width: 72px;
        padding: 16px 12px;
    }

    .thanks-card strong {
        font-size: 1.6rem;
    }
}

/* =============================================
   SUBMIT LOADING STATE
   ============================================= */
.primary-button.is-submitting {
    opacity: 0.6;
    pointer-events: none;
    position: relative;
}

/* =============================================
   OVERRIDES FOR DAISYUI REMNANTS
   ============================================= */
.btn {
    background: none;
    border: none;
    border-radius: var(--r-sm);
    color: var(--muted);
    cursor: pointer;
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 500;
    padding: 7px 12px;
    text-decoration: none;
    transition: color 140ms ease, background 140ms ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-transform: none;
    letter-spacing: normal;
}

.btn:hover {
    background: rgba(0,0,0,0.05);
    color: var(--text);
}

.btn-ghost {
    background: none;
    border: none;
    color: var(--muted);
}

.btn-ghost:hover {
    background: rgba(0,0,0,0.05);
    color: var(--text);
}

.btn-outline {
    border: 1.5px solid var(--line-strong);
    color: var(--text);
}

.btn-outline:hover {
    background: var(--text);
    border-color: var(--text);
    color: var(--bg);
}

.btn-neutral {
    background: var(--text);
    color: var(--bg-card);
}

.btn-neutral:hover {
    background: rgba(26, 23, 20, 0.82);
}

/* Force light background on the page */
[data-theme] {
    background-color: var(--bg) !important;
    color: var(--text) !important;
}
