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

:root {
    --bg: #0d1117;
    --bg-card: #161b22;
    --bg-hover: #1c2129;
    --text: #e6edf3;
    --text-dim: #8b949e;
    --text-muted: #6e7681;
    --blue: #58a6ff;
    --blue-dark: #1f6feb;
    --blue-glow: rgba(88, 166, 255, 0.1);
    --border: #21262d;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
}

/* ===== Page Container ===== */
.page {
    max-width: 960px;
    margin: 0 auto;
    padding: 40px 32px 60px;
}

hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 28px 0;
}

a {
    color: var(--blue);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* ===== Header ===== */
.page-header {
    margin-bottom: 4px;
}

.tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--blue);
    text-transform: uppercase;
    margin-bottom: 12px;
    padding: 4px 10px;
    border: 1px solid var(--border);
    background: var(--blue-glow);
}

.page-header h1 {
    font-size: clamp(26px, 4.5vw, 38px);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.03em;
    margin-bottom: 8px;
}

.subtitle {
    color: var(--text-dim);
    font-size: 15px;
    white-space: nowrap;
}

/* ===== Two-column Row ===== */
.row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.row .col-text:only-child {
    grid-column: 1 / -1;
}

/* When two text cols side by side */
.row .col-text+.col-text {
    /* nothing special, grid handles it */
}

.row:has(.col-text + .col-text) {
    grid-template-columns: 1fr 1fr;
}

/* ===== Section Headings ===== */
h2 {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}

h3 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 6px;
}

p {
    margin-bottom: 6px;
    color: var(--text-dim);
}

strong {
    color: var(--text);
    font-weight: 600;
}

em {
    font-style: italic;
}

ul {
    margin-bottom: 12px;
    padding-left: 20px;
}

li {
    margin-bottom: 6px;
    color: var(--text-dim);
    line-height: 1.6;
}

li strong {
    color: var(--text);
}

/* ===== Left Column (text + poll + CTA stacked) ===== */
.col-left {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* ===== Right Column Photo ===== */
.col-photo {
    position: sticky;
    top: 40px;
}

.photo-frame {
    border: 1px solid var(--border);
    background: var(--bg-card);
    padding: 8px;
}

.photo-frame img {
    display: block;
    width: 100%;
    height: auto;
}

.photo-label {
    display: block;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    padding: 6px 0 2px;
    text-align: center;
}

/* ===== Poll (inline in column) ===== */
.poll-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 20px;
}

.poll-header {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text);
}

.poll-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

#pollStatus {
    color: var(--blue);
    font-weight: 600;
}

.poll-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.poll-option {
    display: grid;
    grid-template-columns: 100px 1fr 44px;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: var(--bg);
    border: 1px solid var(--border);
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
    font-family: var(--font);
    color: var(--text);
    font-size: 14px;
    text-align: left;
    width: 100%;
}

.poll-option:hover:not(.disabled) {
    background: var(--bg-hover);
    border-color: var(--blue-dark);
}

.poll-option.disabled {
    cursor: default;
}

.poll-option.selected {
    border-color: var(--blue);
    background: var(--blue-glow);
}

.poll-option-label {
    font-weight: 600;
    white-space: nowrap;
    font-size: 13px;
}

.poll-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.04);
    overflow: hidden;
}

.poll-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--blue-dark), var(--blue));
    transition: width 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.poll-option-count {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 600;
    text-align: right;
    opacity: 0;
    transition: opacity 0.3s;
}

.poll-option-count.visible {
    opacity: 1;
}

/* ===== CTA ===== */
.cta-card {
    text-align: center;
    padding: 28px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    position: relative;
}

.cta-card.cta-compact {
    padding: 16px;
}

.cta-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--blue), transparent);
}

.cta-pre {
    font-size: 14px;
    color: var(--text-dim);
    margin-bottom: 14px;
}

.cta-button {
    display: inline-block;
    padding: 10px 24px;
    background: var(--blue-dark);
    color: white;
    font-weight: 600;
    font-size: 14px;
    border: none;
    transition: background 0.2s;
}

.cta-button:hover {
    background: var(--blue);
    color: white;
    text-decoration: none;
}

.cta-sub {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 10px;
    margin-bottom: 0;
    font-style: italic;
}

/* ===== FAQ Grid ===== */
.faq-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.faq-item {
    padding: 14px;
    background: var(--bg-card);
    border: 1px solid var(--border);
}

.faq-item h3 {
    color: var(--text);
    font-size: 14px;
    margin-bottom: 6px;
}

.faq-item p {
    font-size: 13px;
    margin-bottom: 0;
}

/* ===== Footer ===== */
footer {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    text-align: center;
}

footer p {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.muted {
    opacity: 0.6;
    font-size: 11px;
}

/* ===== Responsive ===== */
@media (max-width: 700px) {
    .page {
        padding: 24px 16px 40px;
    }

    .row {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .row:has(.col-text + .col-text) {
        grid-template-columns: 1fr;
    }

    .faq-grid {
        grid-template-columns: 1fr;
    }

    .photo-frame img {
        max-width: 260px;
        margin: 0 auto;
    }

    .subtitle {
        white-space: normal;
    }

    hr {
        margin: 20px 0;
    }
}