/* AccentKey site. System fonts only: no third-party requests, no tracking. */

:root {
  --bg: #fbfbfa;
  --bg-alt: #f2f3f5;
  --surface: #ffffff;
  --text: #16181d;
  --muted: #5b616e;
  --line: #e2e4e9;
  --accent: #0078d4;
  --accent-ink: #ffffff;
  --accent-soft: #e6f1fb;
  --shadow: 0 1px 2px rgb(16 24 40 / 6%), 0 8px 24px rgb(16 24 40 / 8%);
  --radius: 14px;
  --max: 1080px;
  font-family: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111317;
    --bg-alt: #171a20;
    --surface: #1d2027;
    --text: #eceef2;
    --muted: #a3a9b6;
    --line: #2b2f38;
    --accent: #3b9eff;
    --accent-ink: #06121f;
    --accent-soft: #14273b;
    --shadow: 0 1px 2px rgb(0 0 0 / 40%), 0 8px 24px rgb(0 0 0 / 35%);
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

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

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 650; font-size: 18px; color: var(--text); text-decoration: none; }
.brand img { width: 30px; height: 30px; border-radius: 7px; }
.site-nav { display: flex; gap: 22px; margin-left: auto; }
.site-nav a { color: var(--muted); text-decoration: none; font-size: 15px; }
.site-nav a:hover { color: var(--text); }
@media (max-width: 760px) { .site-nav { display: none; } .site-header .btn { margin-left: auto; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 10px; border: 1px solid transparent;
  font: inherit; font-size: 16px; font-weight: 600; text-decoration: none; cursor: pointer;
  transition: transform .08s ease, background .15s ease;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: color-mix(in srgb, var(--accent) 88%, black); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { background: var(--bg-alt); }
.btn:active { transform: translateY(1px); }
.btn[aria-disabled="true"] { opacity: .55; cursor: default; pointer-events: none; }
.btn-sm { padding: 8px 14px; font-size: 14px; }

/* Hero */
.hero { padding: 72px 0 56px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; gap: 40px; } .hero { padding-top: 48px; } }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .02em; color: var(--accent); background: var(--accent-soft); padding: 4px 10px; border-radius: 999px; margin-bottom: 16px; }
h1 { font-size: clamp(36px, 5.2vw, 58px); line-height: 1.05; letter-spacing: -0.025em; margin: 0 0 18px; font-weight: 750; }
.lead { font-size: 20px; color: var(--muted); margin: 0 0 28px; max-width: 34ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.fine { font-size: 14px; color: var(--muted); margin-top: 14px; }

/* Demo window */
.demo {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: visible; position: relative;
}
.demo-bar { display: flex; align-items: center; gap: 7px; padding: 12px 14px; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.demo-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); display: inline-block; }
.demo-bar span { margin-left: 8px; }
.demo-body { padding: 28px 26px 120px; font-size: 22px; }
.demo-text .caret { display: inline-block; width: 2px; height: 1.15em; background: var(--text); vertical-align: -0.2em; margin-left: 1px; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.picker {
  position: absolute; left: 150px; top: 124px;
  display: flex; gap: 4px; padding: 6px;
  background: #f8f8f8; border: 1px solid #cccccc; border-radius: 8px;
  box-shadow: 0 2px 12px rgb(0 0 0 / 22%);
  font-family: "Segoe UI", system-ui, sans-serif;
  animation: pop .45s cubic-bezier(.2,.9,.3,1.2) both .3s;
}
@media (max-width: 520px) { .picker { left: 18px; } .demo-body { padding-bottom: 116px; } }
@keyframes pop { from { opacity: 0; transform: translateY(6px) scale(.97); } to { opacity: 1; transform: none; } }
.key {
  width: 40px; height: 44px; border-radius: 4px; border: 1px solid #cccccc; background: #ffffff;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: #16181d; font-size: 20px; line-height: 1;
}
.key small { font-size: 10px; opacity: .55; margin-top: 3px; }
.key.on { background: #0078d4; border-color: #0078d4; color: #fff; }
@media (max-width: 420px) { .key:nth-child(n+5) { display: none; } }

/* Sections */
section { padding: 72px 0; }
section.alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
h2 { font-size: clamp(28px, 3.4vw, 38px); letter-spacing: -0.02em; line-height: 1.15; margin: 0 0 12px; }
.section-lead { color: var(--muted); font-size: 18px; margin: 0 0 40px; max-width: 60ch; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.step::before { counter-increment: step; content: counter(step); display: inline-flex; width: 30px; height: 30px; border-radius: 50%; align-items: center; justify-content: center; background: var(--accent-soft); color: var(--accent); font-weight: 700; margin-bottom: 14px; }
.step h3 { margin: 0 0 6px; font-size: 19px; }
.step p { margin: 0; color: var(--muted); }
kbd { font: 600 0.85em "Segoe UI", system-ui, sans-serif; background: var(--surface); border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 6px; padding: 1px 7px; color: var(--text); white-space: nowrap; }

/* Features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .features { grid-template-columns: 1fr; } }
.feature { padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.feature h3 { margin: 0 0 6px; font-size: 18px; }
.feature p { margin: 0; color: var(--muted); font-size: 16px; }
.feature .ico { font-size: 22px; line-height: 1; display: block; margin-bottom: 12px; }

/* Accent grid */
.accents { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.acc { display: flex; gap: 14px; align-items: baseline; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; }
.acc b { font-size: 18px; min-width: 22px; color: var(--accent); }
.acc span { font-size: 19px; letter-spacing: .03em; white-space: nowrap; }
.langs { color: var(--muted); margin-top: 24px; font-size: 15px; }

/* Free markers */
.tag { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .02em; color: var(--accent); background: var(--accent-soft); padding: 1px 8px; border-radius: 999px; vertical-align: 1px; }
.acc.free { position: relative; }
.acc.free::after { content: "Free"; position: absolute; top: -9px; right: 10px; font-size: 11px; font-weight: 700; color: var(--accent); background: var(--accent-soft); border: 1px solid var(--bg-alt); padding: 0 7px; border-radius: 999px; }
.full-only { font-style: normal; opacity: .45; }

/* Plans */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 860px; }
@media (max-width: 720px) { .plans { grid-template-columns: 1fr; } }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; }
.plan-full { border: 2px solid var(--accent); box-shadow: var(--shadow); }
.plan h3 { margin: 0; font-size: 24px; }
.plan-sub { margin: 4px 0 18px; color: var(--muted); }
.plan ul { margin: 0 0 24px; padding: 0; list-style: none; flex: 1; }
.plan li { padding: 7px 0 7px 26px; position: relative; color: var(--text); font-size: 16px; }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.chars { letter-spacing: .04em; }
.center { text-align: center; max-width: 860px; }

/* FAQ */
.faq { max-width: 760px; }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); font-weight: 400; font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p, .faq details ol, .faq details ul { color: var(--muted); margin: 12px 0 0; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0 40px; color: var(--muted); font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; }
.site-footer a { color: var(--muted); }
.site-footer .spacer { flex: 1; }

/* Prose pages */
.prose { max-width: 720px; padding: 56px 20px 80px; margin: 0 auto; }
.prose h1 { font-size: clamp(32px, 4vw, 44px); }
.prose h2 { font-size: 24px; margin-top: 40px; }
.prose p, .prose li { color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
