/* ----- Reset / base ----- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img { max-width: 100%; display: block; }

:root {
    --bg:           #0f0f0f;
    --surface:      #161616;
    --surface-2:    #1c1c1c;
    --border:       #262626;
    --border-soft:  #1f1f1f;
    --text:         #e6edf3;
    --heading:      #f0f6fc;
    --muted:        #8b949e;
    --muted-strong: #b1bac4;
    --accent:       #2f81f7;
    --accent-hover: #4493f8;
    --code-bg:      #1c1c1c;
    --success:      #3fb950;
    --error:        #f85149;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: "Lora", Georgia, "Times New Roman", serif;
    font-size: 17px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

code {
    font-family: "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
    font-size: 0.92em;
    background: var(--code-bg);
    color: var(--text);
    padding: 1px 6px;
    border-radius: 4px;
}

kbd {
    font-family: "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
    font-size: 0.82em;
    background: var(--surface-2);
    color: var(--muted-strong);
    padding: 1px 6px;
    border-radius: 4px;
    border: 1px solid var(--border);
}

blockquote {
    margin: 0;
    padding-left: 18px;
    border-left: 3px solid var(--border);
    color: var(--muted-strong);
    font-style: italic;
}

.wrap {
    max-width: 880px;
    margin: 0 auto;
    padding: 0 28px;
}

.muted { color: var(--muted); }
.visually-hidden {
    position: absolute;
    width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ----- Header ----- */
.site-header {
    border-bottom: 1px solid var(--border-soft);
    background: var(--bg);
}
.site-header .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 18px;
    padding-bottom: 18px;
}
.brand {
    font-weight: 700;
    color: var(--heading);
    font-size: 20px;
    letter-spacing: 0.02em;
}
.nav { display: flex; gap: 22px; }
.nav a { color: var(--muted); font-size: 14px; }
.nav a:hover { color: var(--text); }

/* ----- Hero ----- */
.hero { padding: 64px 0 40px; }
.hero h1 {
    font-family: "Lora", Georgia, serif;
    font-weight: 600;
    font-size: 44px;
    line-height: 1.18;
    color: var(--heading);
    margin: 0 0 14px;
    letter-spacing: -0.01em;
}
.hero h1 strong { font-weight: 700; }
.hero h1 em { color: var(--accent); font-style: italic; font-weight: 600; }

.hero .lead {
    font-size: 21px;
    color: var(--muted-strong);
    margin: 0 0 28px;
    font-style: italic;
}
.hero p { margin: 14px 0; }

.cta-row {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    margin-top: 32px !important;
}
.cta-row .muted { font-size: 14px; }

.btn {
    display: inline-block;
    padding: 11px 20px;
    border-radius: 6px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn-primary {
    background: var(--accent);
    color: #ffffff;
    border-color: var(--accent);
}
.btn-primary:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    color: #ffffff;
}

/* ----- Screenshot ----- */
.screenshot { padding: 24px 0 56px; }
.screenshot figure { margin: 0; }
.screenshot img {
    width: 100%;
    height: auto;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface);
}
.screenshot figcaption {
    margin-top: 14px;
    color: var(--muted);
    font-size: 14px;
    text-align: center;
}

/* ----- Sections ----- */
section { padding: 56px 0; }
section h2 {
    font-family: "Lora", Georgia, serif;
    font-weight: 600;
    font-size: 28px;
    color: var(--heading);
    margin: 0 0 24px;
    letter-spacing: -0.01em;
}

.features { background: var(--surface); border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); }
.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}
.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 20px;
    background: var(--surface-2);
    border: 1px solid var(--border-soft);
    border-radius: 8px;
}
.feature-list .feature-icon {
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    color: var(--accent);
    margin-top: 4px;
}
.feature-list .feature-body {
    flex: 1;
    min-width: 0;
}
.feature-list strong {
    color: var(--heading);
    margin-right: 4px;
}

/* ----- Comparison table ----- */
.table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 8px;
    border: 1px solid var(--border-soft);
}
.comparison table {
    width: 100%;
    min-width: 560px;          /* below this, the wrapper scrolls horizontally */
    border-collapse: collapse;
    background: var(--surface-2);
}
.comparison th, .comparison td {
    text-align: left;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-soft);
    font-size: 15px;
}
.comparison th {
    background: var(--surface);
    color: var(--heading);
    font-weight: 600;
}
.comparison tr:last-child td { border-bottom: none; }

.status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.status-icon {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
}
.status-yes  { color: var(--success); }
.status-no   { color: var(--error); }
.status-warn { color: #d29922; }

/* ----- Story ----- */
.story blockquote {
    font-size: 22px;
    line-height: 1.5;
    color: var(--text);
    border-left-color: var(--accent);
    padding: 6px 0 6px 22px;
    margin-bottom: 18px;
}

/* ----- Roadmap ----- */
.roadmap { background: var(--surface); border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); }
.roadmap p { color: var(--muted-strong); }

/* ----- Signup ----- */
.signup h2 { margin-bottom: 8px; }
.signup p { color: var(--muted); margin-bottom: 22px; }
.signup-form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    max-width: 480px;
}
.signup-form input[type="email"] {
    flex: 1 1 240px;
    padding: 11px 14px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text);
    font-family: inherit;
    font-size: 15px;
}
.signup-form input[type="email"]::placeholder { color: var(--muted); }
.signup-form input[type="email"]:focus {
    outline: none;
    border-color: var(--accent);
}
.form-success {
    color: var(--success) !important;
    font-weight: 600;
    margin-top: 4px !important;
}
.form-error {
    color: var(--error);
    font-size: 14px;
    margin-top: 10px;
}

/* ----- Footer ----- */
.site-footer {
    border-top: 1px solid var(--border-soft);
    padding: 32px 0;
    color: var(--muted);
    font-size: 14px;
    text-align: center;
}
.site-footer code { background: transparent; color: var(--muted-strong); padding: 0; }

/* ----- Responsive tweaks ----- */
@media (max-width: 640px) {
    .hero { padding: 40px 0 28px; }
    .hero h1 { font-size: 32px; }
    .hero .lead { font-size: 18px; }
    section { padding: 44px 0; }
    section h2 { font-size: 24px; }
    .nav { gap: 14px; }

    /* Comparison: each concern becomes a card; the three product cells
       collapse into inline pills underneath. Keeps the side-by-side
       comparison story without forcing horizontal scroll. */
    .comparison .table-wrap {
        overflow: visible;
        border: none;
        border-radius: 0;
    }
    .comparison table,
    .comparison thead,
    .comparison tbody,
    .comparison tr,
    .comparison td { display: block; }
    .comparison thead { display: none; }
    .comparison table {
        background: transparent;
        border: none;
        min-width: 0;
        width: 100%;
    }
    .comparison tr {
        background: var(--surface-2);
        border: 1px solid var(--border-soft);
        border-radius: 8px;
        padding: 14px 16px;
        margin-bottom: 12px;
    }
    .comparison td {
        padding: 0;
        border: none;
    }
    .comparison td:first-child {
        font-weight: 600;
        color: var(--heading);
        font-size: 15px;
        margin-bottom: 10px;
    }
    .comparison td:not(:first-child) {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        background: var(--surface);
        border: 1px solid var(--border-soft);
        border-radius: 999px;
        padding: 5px 12px;
        margin: 0 6px 4px 0;
        font-size: 13px;
    }
    .comparison td:not(:first-child)::before {
        content: attr(data-label);
        color: var(--muted);
        font-weight: 500;
        margin-right: 2px;
    }
    .comparison .status { gap: 4px; }
    .comparison .status-icon { width: 14px; height: 14px; }
    .comparison td code { font-size: 12px; padding: 1px 5px; }
}
