:root {
    --indigo: #4f46e5;
    --indigo-dark: #3730a3;
    --text: #1e1b4b;
    --muted: #4b5563;
    --background: #ffffff;
    --surface: #f5f6fb;
    --border: #e5e7eb;
    --focus: #4f46e5;
    color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
    :root {
        --indigo: #818cf8;
        --indigo-dark: #a5b4fc;
        --text: #f3f4f6;
        --muted: #c7cbd3;
        --background: #111827;
        --surface: #1f2937;
        --border: #374151;
        --focus: #a5b4fc;
    }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 1.0625rem;
    line-height: 1.6;
    color: var(--text);
    background: var(--background);
    -webkit-font-smoothing: antialiased;
    /* Large text on a phone: long words break instead of widening the page. */
    overflow-wrap: anywhere;
}

a { color: var(--indigo); }
a:focus-visible, .button:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

.wrap { max-width: 64rem; margin: 0 auto; padding: 0 1.25rem; }

.bar { border-bottom: 1px solid var(--border); }
.bar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4rem; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; font-weight: 800; font-size: 1.2rem; color: var(--text); text-decoration: none; }
.brand img { border-radius: 7px; }
.bar nav { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.bar nav a { color: var(--muted); text-decoration: none; font-weight: 500; }
.bar nav a:hover { color: var(--indigo); }

.hero { padding: 4.5rem 0 3.5rem; background: linear-gradient(180deg, var(--background), var(--surface)); }
.hero .wrap { display: grid; grid-template-columns: 1.2fr 1fr; gap: 3rem; align-items: center; }
.status { display: inline-block; font-size: 0.875rem; font-weight: 600; color: var(--indigo); border: 1px solid var(--indigo); border-radius: 6px; padding: 0.15rem 0.6rem; }
h1 { font-size: clamp(2.1rem, 5vw, 3.3rem); line-height: 1.12; letter-spacing: -0.02em; margin: 1rem 0 1.25rem; font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); line-height: 1.2; letter-spacing: -0.015em; margin: 0 0 1.25rem; font-weight: 800; }
h3 { font-size: 1.15rem; margin: 0 0 0.4rem; }
h1, h2, h3, summary { hyphens: auto; text-wrap: balance; }
.lead { font-size: 1.2rem; color: var(--muted); margin: 0 0 2rem; }
.actions { display: flex; align-items: center; gap: 1rem 1.25rem; flex-wrap: wrap; margin: 0; }
.button { display: inline-block; background: var(--indigo-dark); color: #ffffff; font-weight: 700; text-decoration: none; border-radius: 10px; padding: 0.85rem 1.4rem; min-height: 44px; }
.button:hover { background: var(--indigo); }
@media (prefers-color-scheme: dark) { .button { background: #4f46e5; } .button:hover { background: #4338ca; } }
.meta { color: var(--muted); font-size: 0.95rem; }

.demo { background: var(--background); border: 1px solid var(--border); border-radius: 18px; padding: 1.5rem; box-shadow: 0 12px 32px rgba(30, 27, 75, 0.08); }
.keys { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; color: var(--muted); font-size: 0.95rem; }
kbd { font: inherit; font-weight: 700; color: var(--text); min-width: 2.4rem; height: 2.4rem; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--border); border-bottom-width: 3px; border-radius: 8px; background: var(--surface); padding: 0 0.6rem; }
.wave { display: flex; align-items: center; gap: 5px; height: 3rem; margin: 1.25rem 0; }
.wave span { width: 6px; border-radius: 3px; background: var(--indigo); opacity: 0.8; }
.wave span:nth-child(1) { height: 20%; }
.wave span:nth-child(2) { height: 45%; }
.wave span:nth-child(3) { height: 70%; }
.wave span:nth-child(4) { height: 95%; }
.wave span:nth-child(5) { height: 60%; }
.wave span:nth-child(6) { height: 80%; }
.wave span:nth-child(7) { height: 100%; }
.wave span:nth-child(8) { height: 55%; }
.wave span:nth-child(9) { height: 75%; }
.wave span:nth-child(10) { height: 35%; }
.wave span:nth-child(11) { height: 50%; }
.wave span:nth-child(12) { height: 25%; }
.typed { border: 1px solid var(--border); border-radius: 12px; padding: 1rem; background: var(--surface); margin: 0; }
/* Keys inside running text: no higher than the line, and the shortcut never breaks apart. */
p kbd { display: inline-block; min-width: 1.7em; height: auto; padding: 0.05em 0.4em; line-height: 1.25; text-align: center; border-bottom-width: 2px; border-radius: 5px; font-size: 0.9em; }
.shortcut { white-space: nowrap; }

section { padding: 4rem 0; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.steps li, .features article { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 1.4rem; }
.steps strong { display: block; font-size: 1.15rem; margin-bottom: 0.3rem; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.features p, .steps p { margin: 0; color: var(--muted); }

.faq details { border-bottom: 1px solid var(--border); padding: 1rem 0; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 1.1rem; }
.faq details p { color: var(--muted); margin: 0.75rem 0 0; }

.closing { text-align: center; background: var(--surface); }
.closing .actions { justify-content: center; }

footer { border-top: 1px solid var(--border); padding: 2rem 0 3rem; color: var(--muted); font-size: 0.95rem; }
footer .wrap { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
footer nav { display: flex; gap: 1.25rem; flex-wrap: wrap; }

.legal { padding: 3rem 0 4rem; }
.legal .wrap { max-width: 46rem; }
.legal h2 { font-size: 1.35rem; margin: 2.25rem 0 0.75rem; }
.legal p, .legal li { color: var(--muted); }
.legal ul { padding-left: 1.2rem; }

@media (max-width: 820px) {
    .hero .wrap, .steps, .features { grid-template-columns: 1fr; }
    .hero { padding-top: 3rem; }
}

@media (prefers-reduced-motion: no-preference) {
    .button { transition: background-color 0.15s ease; }
}
