/*
 * Ranker — Home / Landing Page
 * Design language: matches the dashboard and auth pages exactly.
 * Palette, radii, shadows, and typography are pulled directly from
 * dashboard.css and auth.css so the transition into the app feels seamless.
 */

/* ── Variables (kept in sync with dashboard.css / auth.css) ─── */
:root {
    --bg-page:        #f7f7f9;
    --bg-panel:       #ffffff;
    --bg-subtle:      #f7f7f9;
    --text-primary:   #1d1d1f;
    --text-secondary: #515154;
    --accent:         #007aff;
    --border:         #e5e5e5;
    --shadow:         0 4px 12px rgba(0, 0, 0, 0.05);
    --radius-panel:   12px;
    --radius-outer:   18px;
    --radius-btn:     10px;
}

/* ── Reset / base ────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
    background: var(--bg-page);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    padding: 3rem 1.5rem;
}

/* ── Outer wrapper ───────────────────────────────────────────── */
.page-wrapper {
    max-width: 1060px;
    width: 100%;
}

.content-container {
    background: var(--bg-panel);
    border-radius: var(--radius-outer);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border);
    padding: 3rem;
    text-align: center;
}

/* ── Header / Logo ───────────────────────────────────────────── */
.main-header .logo {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
}

/* ── Intro / tagline ─────────────────────────────────────────── */
.intro-section .tagline {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    letter-spacing: -0.3px;
    line-height: 1.25;
}

.intro-section .description {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin: 0 auto 2.5rem;
    line-height: 1.65;
    max-width: 580px;
}

/* ── CTA buttons ─────────────────────────────────────────────── */
.auth-group { margin-bottom: 3rem; }

.cta-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.cta-links .auth-link {
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-btn);
    transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

/* Primary — solid blue, matches dashboard .btn */
.cta-links .auth-link--primary {
    color: #fff;
    background-color: var(--accent);
    box-shadow: 0 2px 8px rgba(0, 122, 255, 0.18);
}
.cta-links .auth-link--primary:hover {
    background-color: #0066d6;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.22);
}

/* Secondary — muted fill, matches dashboard .btn-secondary */
.cta-links .auth-link--secondary {
    color: var(--text-primary);
    background-color: var(--bg-subtle);
    border: 1px solid var(--border);
}
.cta-links .auth-link--secondary:hover {
    background-color: var(--border);
    transform: translateY(-1px);
}

/* Fallback for logged-in dashboard link (no modifier class) */
.cta-links .auth-link:not(.auth-link--primary):not(.auth-link--secondary) {
    color: #fff;
    background-color: var(--accent);
    box-shadow: 0 2px 8px rgba(0, 122, 255, 0.18);
}
.cta-links .auth-link:not(.auth-link--primary):not(.auth-link--secondary):hover {
    background-color: #0066d6;
    transform: translateY(-1px);
}

.private-note {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* ── How it works strip ──────────────────────────────────────── */
/* Each step styled as a dashboard method-card */
.how-it-works {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin: 0 0 1.5rem;
    text-align: left;
}

.how-it-works__step {
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    border-radius: var(--radius-panel);
    padding: 1.25rem;
}

.step-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.step-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.35rem;
}

.step-body {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.55;
}

/* ── "Not a Vote" distinction section ───────────────────────── */
.not-vote-section {
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: var(--radius-panel);
    box-shadow: var(--shadow);
    padding: 2rem;
    margin: 1.5rem 0;
    text-align: center;
}

.not-vote-eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: #b45309;          /* amber-700 — signals caution/attention */
    background: rgba(180, 83, 9, 0.08);
    padding: 0.25rem 0.8rem;
    border-radius: 99px;
    margin-bottom: 0.85rem;
}

.not-vote-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.3px;
    line-height: 1.25;
    margin-bottom: 0.75rem;
}

.not-vote-lead {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.65;
    max-width: 620px;
    margin: 0 auto 1.75rem;
}

/* Side-by-side contrast table */
.not-vote-contrast {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius-panel);
    overflow: hidden;
    margin-bottom: 1.75rem;
    text-align: left;
}

.not-vote-col {
    padding: 1.25rem 1.5rem;
}

.not-vote-col--left {
    background: var(--bg-subtle);
    border-right: 1px solid var(--border);
}

.not-vote-col--right {
    background: var(--bg-panel);
}

.not-vote-col__label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-secondary);
    margin-bottom: 0.85rem;
}

.not-vote-col--right .not-vote-col__label {
    color: var(--accent);
}

.not-vote-contrast__note {
    font-size: 0.78rem;
    color: var(--text-secondary);
    line-height: 1.55;
    margin: 0.85rem 0 0;
    padding: 0.75rem 1rem;
    background: var(--bg-subtle);
    border-radius: 8px;
    border-left: 3px solid var(--border);
    text-align: left;
}

.not-vote-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.not-vote-col--left .not-vote-list li {
    font-size: 0.875rem;
    color: var(--text-secondary);
    padding-left: 1.2rem;
    position: relative;
    line-height: 1.45;
}
.not-vote-col--left .not-vote-list li::before {
    content: "✗";
    position: absolute;
    left: 0;
    color: #d1d5db;  /* muted grey */
    font-size: 0.75rem;
    top: 0.05em;
}

.not-vote-col--right .not-vote-list li {
    font-size: 0.875rem;
    color: var(--text-primary);
    padding-left: 1.2rem;
    position: relative;
    line-height: 1.45;
}
.not-vote-col--right .not-vote-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-size: 0.75rem;
    top: 0.05em;
}

/* Score-distribution example */
.not-vote-example {
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    border-radius: var(--radius-panel);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: left;
}

.not-vote-example__intro {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 1.25rem;
}

.not-vote-example__columns {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 1rem;
    align-items: start;
    margin-bottom: 1.25rem;
}

.not-vote-example__divider {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    align-self: center;
    padding-top: 2rem;
}

.not-vote-ranker {
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1rem;
}

.not-vote-ranker__name {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.2rem;
}

.not-vote-ranker__note {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 0.85rem;
    font-style: italic;
}

.score-rows {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    margin-bottom: 0.85rem;
}

.score-row {
    display: grid;
    grid-template-columns: 8rem 1fr 2rem;
    align-items: center;
    gap: 0.5rem;
}

.score-row--cliff {
    border-top: 1.5px dashed var(--border);
    padding-top: 0.45rem;
    margin-top: 0.1rem;
}

.score-label {
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.score-label--dim { color: var(--text-secondary); }

.score-track {
    height: 8px;
    background: var(--border);
    border-radius: 99px;
    overflow: hidden;
}

.score-bar {
    height: 100%;
    border-radius: 99px;
}

.score-bar--1   { background: var(--accent); }
.score-bar--2   { background: rgba(0, 122, 255, 0.65); }
.score-bar--3   { background: rgba(0, 122, 255, 0.4); }
.score-bar--dim { background: #d1d5db; }
/* Poll average bars — amber/warning to signal "this is the flawed result" */
.score-bar--poll { background: #d97706; opacity: 0.55; }

/* System result bars — positive green tones */
.score-bar--system-hi  { background: #059669; }
.score-bar--system-mid { background: rgba(5, 150, 105, 0.55); }
.score-bar--system-lo  { background: #d1d5db; }

/* ── Group decision panel ────────────────────────────────────── */
.group-compare {
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1.1rem 1.25rem;
    margin-top: 0.75rem;
}

.group-compare__label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.group-compare__intro {
    font-size: 0.825rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.group-compare__columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.group-result-col {
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.85rem 1rem;
    background: var(--bg-subtle);
}

.group-result-col--bt {
    background: #f0fdf4;
    border-color: #a7f3d0;
}

.group-result-col__label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 0.2rem;
}

.group-result-col--bt .group-result-col__label {
    color: #065f46;
}

.group-result-col__note {
    font-size: 0.7rem;
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: 0.7rem;
}

.group-compare__insight {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    border-top: 1px solid var(--border);
    padding-top: 0.85rem;
}

.group-insight-row {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.group-insight-icon {
    flex-shrink: 0;
    font-weight: 700;
    color: #059669;
    font-size: 0.85rem;
    width: 1rem;
    text-align: center;
    margin-top: 0.05em;
}

.group-insight-icon--note {
    color: var(--accent);
}
.system-compare {
    background: #f0fdf4;
    border: 1px solid #6ee7b7;
    border-radius: 10px;
    padding: 1.1rem 1.25rem;
    margin-top: 0.75rem;
}

.system-compare__label {
    font-size: 0.78rem;
    font-weight: 600;
    color: #065f46;
    margin-bottom: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.system-compare__columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.system-ranker {
    background: #fff;
    border: 1px solid #a7f3d0;
    border-radius: 8px;
    padding: 0.85rem 1rem;
}

.system-ranker__name {
    font-size: 0.78rem;
    font-weight: 700;
    color: #065f46;
    margin-bottom: 0.6rem;
}

.system-ranker__note {
    font-size: 0.72rem;
    color: #047857;
    font-style: italic;
    border-top: 1px solid #d1fae5;
    padding-top: 0.5rem;
    margin: 0.6rem 0 0;
}

.system-compare__footer {
    font-size: 0.825rem;
    font-weight: 500;
    color: #065f46;
    text-align: center;
    border-top: 1px solid #a7f3d0;
    padding-top: 0.85rem;
    margin: 0;
}

.score-val {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-align: right;
}

.score-val--dim { color: #d1d5db; }

.not-vote-ranker__insight {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-style: italic;
    line-height: 1.45;
    border-top: 1px solid var(--border);
    padding-top: 0.6rem;
    margin: 0;
}

.not-vote-example__footer {
    font-size: 0.825rem;
    color: var(--text-secondary);
    line-height: 1.6;
    text-align: center;
    margin: 0 0 1.25rem;
}

/* Poll average comparison */
.poll-compare {
    background: #fffbeb;   /* faint amber tint */
    border: 1px solid #fcd34d;
    border-radius: 10px;
    padding: 1.1rem 1.25rem;
}

.poll-compare__label {
    font-size: 0.78rem;
    font-weight: 600;
    color: #92400e;
    margin-bottom: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.poll-compare__bars {
    margin-bottom: 1rem;
}

.poll-compare__problems {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.poll-problem {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: #78350f;
    line-height: 1.5;
}

.poll-problem__icon {
    flex-shrink: 0;
    font-weight: 700;
    color: #b45309;
    margin-top: 0.05em;
}

/* Four + one feature highlights */
.not-vote-features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    text-align: left;
}

/* 5th tile spans 2 of the 4 columns, centred */
.not-vote-feature--wide {
    grid-column: 2 / span 2;
}
    gap: 1rem;
    text-align: left;
}

.not-vote-feature {
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    border-radius: var(--radius-panel);
    padding: 1.1rem;
}

.not-vote-feature__icon {
    font-size: 1.4rem;
    margin-bottom: 0.45rem;
    line-height: 1;
}

.not-vote-feature__title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.35rem;
}

.not-vote-feature__body {
    font-size: 0.825rem;
    color: var(--text-secondary);
    line-height: 1.55;
}

/* ── AI Era section ──────────────────────────────────────────── */
/* Dashboard-panel style — white, clean border, no gradient */
.ai-era-section {
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: var(--radius-panel);
    box-shadow: var(--shadow);
    padding: 2rem;
    margin: 1.5rem 0;
    text-align: center;
}

.ai-era-eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--accent);
    background: rgba(0, 122, 255, 0.08);
    padding: 0.25rem 0.8rem;
    border-radius: 99px;
    margin-bottom: 0.85rem;
}

.ai-era-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.3px;
    line-height: 1.25;
    margin-bottom: 0.75rem;
}

.ai-era-lead {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.65;
    max-width: 620px;
    margin: 0 auto 1.75rem;
}

.ai-era-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    text-align: left;
    margin-bottom: 1.5rem;
}

/* Cards — dashboard method-card style */
.ai-era-card {
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    border-radius: var(--radius-panel);
    padding: 1.25rem;
}

/* Highlighted card — white with blue accent border */
.ai-era-card--highlight {
    background: var(--bg-panel);
    border-color: var(--accent);
    border-width: 1.5px;
    box-shadow: var(--shadow);
}

.ai-era-card__icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.ai-era-card__title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.4rem;
}

.ai-era-card__body {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.ai-era-cta-note {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-style: italic;
}

/* ── Use-case segments (Personal / Business) ─────────────────── */
.public-lists-section {
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    border-radius: var(--radius-panel);
    padding: 2rem;
    margin-top: 1.5rem;
}

.public-lists-section .section-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    letter-spacing: -0.1px;
}

.use-case-segments {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    text-align: left;
}

/* Group container — dashboard panel */
.use-case-group {
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: var(--radius-panel);
    box-shadow: var(--shadow);
    overflow: hidden;
}

/* Group header — flat subtle bg with bottom separator, like panel h3 */
.use-case-group__header {
    padding: 1rem 1.25rem 0.85rem;
    border-bottom: 1px solid var(--border);
    background: var(--bg-subtle);
}

.use-case-group__badge {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.35rem;
}

.use-case-group__subtitle {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Cards inside group — dashboard method-card */
.use-case-cards {
    display: flex;
    flex-direction: column;
    padding: 0.75rem;
    gap: 0.5rem;
}

.use-case-cards .example-card {
    background: var(--bg-subtle) !important;
    border: 1px solid var(--border) !important;
    border-radius: 8px !important;
    box-shadow: none !important;
    padding: 0.9rem 1rem !important;
    transition: background-color 0.15s ease, transform 0.15s ease !important;
}

.use-case-cards .example-card:hover {
    background: var(--bg-panel) !important;
    transform: translateY(-1px) !important;
    box-shadow: var(--shadow) !important;
}

/* ── Footer ──────────────────────────────────────────────────── */
.main-footer {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 0.8rem;
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 900px) {
    .use-case-segments         { grid-template-columns: 1fr; }
    .not-vote-features         { grid-template-columns: repeat(2, 1fr); }
    .not-vote-feature--wide    { grid-column: span 2; }
    .not-vote-example__columns { grid-template-columns: 1fr; }
    .not-vote-example__divider { padding-top: 0; text-align: center; }
    .system-compare__columns   { grid-template-columns: 1fr; }
    .group-compare__columns    { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    body { padding: 1.5rem 1rem; }
    .content-container { padding: 1.75rem 1.25rem; }
    .main-header .logo { font-size: 1.8rem; }
    .intro-section .tagline { font-size: 1.4rem; }
    .intro-section .description { font-size: 0.95rem; }
    .cta-links { flex-direction: column; align-items: stretch; }
    .cta-links .auth-link { justify-content: center; }
    .how-it-works { grid-template-columns: 1fr; }
    .not-vote-contrast  { grid-template-columns: 1fr; }
    .not-vote-col--left { border-right: none; border-bottom: 1px solid var(--border); }
    .not-vote-features  { grid-template-columns: 1fr; }
    .not-vote-feature--wide { grid-column: span 1; }
    .not-vote-title     { font-size: 1.3rem; }
    .ai-era-grid { grid-template-columns: 1fr; }
    .ai-era-title { font-size: 1.3rem; }
}
