/* Heblish landing — Adi Aloni brand palette (Ink / Emerald / Mint / Cool White / Sage).
   Light-only, editorial, monospace accents for hotkey labels and code. */

:root {
    /* Brand palette */
    --ink:        #13171A;
    --emerald:    #1F8A63;
    --mint:       #AEDCC7;
    --cool-white: #F3F6F3;
    --sage:       #64706A;
    --line:       #D9E2DA;
    --panel:      #E6EFE8;

    --emerald-hover: #1A7856;
    --emerald-soft:  rgba(31, 138, 99, 0.10);

    /* Semantic */
    --bg:        var(--cool-white);
    --bg-elev:   #ffffff;
    --fg:        var(--ink);
    --fg-mute:   var(--sage);
    --accent:    var(--emerald);
    --border:    var(--line);
    --shadow:    0 18px 50px -16px rgba(19, 23, 26, 0.14);

    --radius:    10px;
    --radius-lg: 16px;
    --maxw:      960px;

    --font-display: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body:    'Hanken Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono:    'IBM Plex Mono', "SF Mono", ui-monospace, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--fg);
    line-height: 1.6;
    font-size: 17px;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: -0.012em;
    line-height: 1.15;
    color: var(--ink);
}

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

code, kbd {
    font-family: var(--font-mono);
    font-size: 0.92em;
}
code {
    background: var(--panel);
    color: var(--ink);
    padding: 0.1em 0.4em;
    border-radius: 4px;
}
kbd {
    background: var(--bg-elev);
    border: 1px solid var(--border);
    color: var(--ink);
    padding: 0.15em 0.55em;
    border-radius: 4px;
    margin: 0 1px;
    font-weight: 500;
}

/* ─── topbar ─────────────────────────────────────────────────────────────── */

.topbar {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 24px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 18px;
    text-decoration: none;
}
.brand img { border-radius: 7px; }
.topbar nav {
    display: flex;
    gap: 24px;
    font-size: 15px;
}
.topbar nav a {
    color: var(--sage);
    font-weight: 500;
}
.topbar nav a:hover { color: var(--ink); text-decoration: none; }

/* ─── hero ───────────────────────────────────────────────────────────────── */

main { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

.hero {
    text-align: center;
    padding: 40px 0 64px;
}
.hero-icon {
    border-radius: 30px;
    box-shadow: var(--shadow);
    margin-bottom: 24px;
}
.hero h1 {
    font-size: clamp(28px, 4.5vw, 44px);
    margin: 0 0 16px;
}
.lede {
    font-size: clamp(16px, 1.8vw, 19px);
    color: var(--sage);
    max-width: 640px;
    margin: 0 auto 32px;
}

.cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-bottom: 48px;
}
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 999px;
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 16px;
    transition: background 0.15s ease, transform 0.06s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn.primary {
    background: var(--emerald);
    color: var(--cool-white);
}
.btn.primary:hover { background: var(--emerald-hover); }
.meta { color: var(--sage); font-size: 13px; }

/* demo strip */

.demos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 8px;
}
.demo {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 20px;
    box-shadow: var(--shadow);
}
.demo-typed, .demo-fixed {
    font-family: var(--font-mono);
    font-size: 18px;
    min-width: 4ch;
    text-align: center;
}
.demo-typed { color: var(--sage); }
.demo-fixed { color: var(--ink); font-weight: 500; }
.demo-arrow { color: var(--emerald); font-size: 18px; }
.cursor {
    display: inline-block;
    width: 1ch;
    height: 1em;
    background: var(--sage);
    vertical-align: -0.15em;
    margin-left: 1px;
    animation: blink 1s steps(2) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* ─── sections ───────────────────────────────────────────────────────────── */

.section {
    padding: 56px 0;
    border-top: 1px solid var(--border);
}
.section h2 {
    font-size: clamp(22px, 3vw, 28px);
    margin: 0 0 24px;
}
.section h3 {
    font-size: 17px;
    margin: 0 0 8px;
    font-weight: 600;
}
.section p {
    color: var(--sage);
    margin: 0 0 12px;
}
.section p:last-child { margin-bottom: 0; }

.cols {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 28px;
}

/* hotkey table */
.hotkeys {
    border-collapse: collapse;
    width: 100%;
    max-width: 640px;
}
.hotkeys th {
    text-align: left;
    padding: 14px 16px 14px 0;
    font-weight: 500;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
    color: var(--ink);
}
.hotkeys td {
    padding: 14px 0;
    color: var(--sage);
    border-bottom: 1px solid var(--border);
}
.hotkeys tr:last-child th,
.hotkeys tr:last-child td { border-bottom: none; }

/* checklist */
.checklist {
    list-style: none;
    padding: 0;
    margin: 0;
}
.checklist li {
    padding: 10px 0 10px 32px;
    color: var(--sage);
    position: relative;
}
.checklist li::before {
    content: "✓";
    color: var(--emerald);
    position: absolute;
    left: 0;
    top: 10px;
    font-weight: 700;
}
.checklist li strong {
    color: var(--ink);
    font-weight: 600;
}

/* FAQ details */
details {
    border-bottom: 1px solid var(--border);
    padding: 14px 0;
}
details:last-of-type { border-bottom: none; }
summary {
    cursor: pointer;
    font-weight: 500;
    list-style: none;
    padding-right: 28px;
    position: relative;
    color: var(--ink);
    font-family: var(--font-display);
}
summary::-webkit-details-marker { display: none; }
summary::after {
    content: "+";
    position: absolute;
    right: 0;
    top: -2px;
    color: var(--sage);
    font-size: 22px;
    line-height: 1;
    transition: transform 0.15s ease;
}
details[open] summary::after { transform: rotate(45deg); }
details p {
    padding-top: 10px;
    color: var(--sage);
}

/* changelog */
.release {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 24px;
}
.release h3 {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin: 0 0 10px;
    font-size: 18px;
}
.release-date {
    font-weight: 400;
    color: var(--sage);
    font-size: 14px;
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}
.release ul {
    margin: 0;
    padding-left: 18px;
    color: var(--sage);
}
.release li { padding: 3px 0; }

/* ─── footer ─────────────────────────────────────────────────────────────── */

footer {
    max-width: var(--maxw);
    margin: 40px auto 60px;
    padding: 28px;
    color: var(--sage);
    font-size: 14px;
    border-top: 1px solid var(--border);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
}
footer a { color: var(--sage); }
footer a:hover { color: var(--ink); text-decoration: none; }
.footer-meta { color: var(--sage); opacity: 0.8; }

/* ─── small screens ──────────────────────────────────────────────────────── */

@media (max-width: 640px) {
    .topbar nav { display: none; }
    .demos { flex-direction: column; align-items: stretch; }
    .demo { justify-content: space-between; }
}
