/* Thundersearch.ai — design tokens & base styles
   thundersearch_1_0_6 */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600&family=Inter:wght@400;500;600&display=swap');

:root {
    --bg: #EEF1F6;
    --surface: #FFFFFF;
    --ink: #12172B;
    --ink-soft: #4A5170;
    --accent: #2A4CFF;
    --accent-ink: #FFFFFF;
    --line: #D7DCE7;
    --danger: #C4372F;
    --success: #1B7A4D;
    --radius: 4px;
    --font-display: 'Fraunces', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; }

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--ink);
    margin: 0;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.15;
    margin: 0 0 12px;
    letter-spacing: -0.01em;
}

p { color: var(--ink-soft); margin: 0 0 16px; }

a { color: var(--accent); }

/* --- Nav --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 32px;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
}
.navbar .brand {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 19px;
    text-decoration: none;
    color: var(--ink);
}
.navbar span { color: var(--ink-soft); font-size: 14px; margin-left: 16px; }
.navbar a:not(.brand) {
    margin-left: 16px;
    font-size: 14px;
    text-decoration: none;
    color: var(--ink);
    font-weight: 500;
}
.navbar a:not(.brand):hover { color: var(--accent); }

.container { max-width: 880px; margin: 0 auto; padding: 0 24px; }

/* --- Buttons --- */
.btn {
    display: inline-block;
    background: var(--accent);
    color: var(--accent-ink);
    padding: 11px 22px;
    border-radius: var(--radius);
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 15px;
}
.btn:hover { opacity: 0.9; }
.btn-danger { background: var(--danger); }
.btn-secondary { background: transparent; color: var(--ink); border: 1px solid var(--line); }

/* --- Cards / sections (hairline, not shadow-card-kit) --- */
.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 20px 24px;
    margin-bottom: 16px;
}

table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); }
th { color: var(--ink-soft); font-weight: 500; font-size: 13px; }

input, select {
    width: 100%;
    padding: 11px 12px;
    margin-bottom: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-sizing: border-box;
    font-family: var(--font-body);
    font-size: 15px;
    background: var(--surface);
    color: var(--ink);
}
input:focus, select:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
label { font-size: 14px; font-weight: 500; color: var(--ink-soft); display: block; margin-bottom: 6px; }

.badge { display: inline-block; padding: 3px 10px; border-radius: 100px; font-size: 12px; font-weight: 500; }
.badge-active { background: #E3F3EA; color: var(--success); }
.badge-trial { background: #FDF3DC; color: #8A6416; }
.badge-failed { background: #FBE7E5; color: var(--danger); }

.alert { padding: 13px 16px; border-radius: var(--radius); margin-bottom: 16px; font-size: 14px; }
.alert-success { background: #E3F3EA; color: var(--success); }
.alert-error { background: #FBE7E5; color: var(--danger); }

code { background: #E6E9F2; padding: 2px 6px; border-radius: 3px; font-size: 13px; }

footer { text-align: center; color: var(--ink-soft); font-size: 13px; padding: 32px; }

/* --- Marketing page --- */
.hero {
    display: flex;
    align-items: center;
    gap: 48px;
    padding: 64px 0 56px;
}
.hero-text { flex: 1.1; }
.hero-text h1 { font-size: 40px; max-width: 480px; }
.hero-text .lede { font-size: 18px; color: var(--ink-soft); max-width: 440px; margin-bottom: 28px; }
.hero-visual { flex: 0.9; display: flex; justify-content: center; }

.feature-list {
    border-top: 1px solid var(--line);
    margin: 40px 0;
}
.feature-row {
    display: flex;
    gap: 24px;
    padding: 22px 0;
    border-bottom: 1px solid var(--line);
}
.feature-row .icon { font-size: 22px; width: 32px; flex-shrink: 0; }
.feature-row h3 { font-size: 17px; margin-bottom: 4px; }
.feature-row p { margin: 0; font-size: 14.5px; }

.steps { counter-reset: step; margin: 0; padding: 0; list-style: none; }
.steps li {
    counter-increment: step;
    position: relative;
    padding: 4px 0 22px 44px;
    color: var(--ink-soft);
    border-left: 1px solid var(--line);
    margin-left: 15px;
}
.steps li:last-child { border-left-color: transparent; padding-bottom: 0; }
.steps li::before {
    content: counter(step);
    position: absolute;
    left: -16px;
    top: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 680px) {
    .hero { flex-direction: column; padding: 40px 0; }
    .hero-text h1 { font-size: 30px; }
    .hero-visual { order: -1; }
}
