/* Hero, install box and the content blocks. */
.hero { padding: 44px 0 12px; }
.hero h1 { margin: 0 0 12px; font-size: clamp(30px, 5vw, 44px); line-height: 1.12; letter-spacing: -0.02em; text-wrap: balance; }
.lead { margin: 0 0 26px; max-width: 62ch; font-size: 18px; color: var(--muted); }

.install { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.install-tabs { display: flex; gap: 2px; padding: 6px 6px 0; border-bottom: 1px solid var(--border); }
.install-tabs button { border: 0; background: none; padding: 8px 14px; border-radius: 8px 8px 0 0; font-size: 14px; color: var(--muted); border-bottom: 2px solid transparent; }
.install-tabs button[aria-selected='true'] { color: var(--accent); border-bottom-color: var(--accent); font-weight: 600; }
.install-hint { margin: 0; padding: 8px 14px 12px; font-size: 13px; color: var(--muted); }
.install .code { margin: 12px 12px 0; }

.code { position: relative; margin: 14px 0; border-radius: 10px; background: var(--code-bg); }
.code pre { margin: 0; padding: 14px 92px 14px 16px; overflow-x: auto; color: var(--code-text); font: 14px/1.6 var(--mono); }
.code button {
  position: absolute; top: 8px; right: 8px;
  padding: 4px 10px; border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 7px;
  background: rgba(255, 255, 255, 0.08); color: #e8e6e1; font-size: 12.5px;
}
.code button:hover { background: rgba(255, 255, 255, 0.16); }

.doc-section { padding-top: 36px; }
.doc-section h2 { margin: 0 0 12px; padding-bottom: 8px; border-bottom: 1px solid var(--border); font-size: 25px; letter-spacing: -0.01em; }
.doc-section p { margin: 12px 0; max-width: 72ch; }
.doc-section ul, .doc-section ol { margin: 12px 0; padding-left: 22px; max-width: 72ch; }
.doc-section li { margin: 7px 0; }
.doc-section ol li::marker { color: var(--accent); font-weight: 700; }

code { padding: 2px 6px; border-radius: 6px; background: var(--sunken); border: 1px solid var(--border); font: 0.87em var(--mono); overflow-wrap: anywhere; }
pre code { padding: 0; border: 0; background: none; font-size: inherit; }

.note { margin: 16px 0; padding: 12px 16px; max-width: 72ch; border-left: 3px solid var(--accent); border-radius: 0 10px 10px 0; background: var(--accent-soft); }

.table-wrap { margin: 14px 0; overflow-x: auto; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
th, td { padding: 9px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); }
th { font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); background: var(--sunken); }
tr:last-child td { border-bottom: 0; }
td:first-child { white-space: nowrap; font-weight: 500; }
@media (max-width: 800px) { td:first-child { white-space: normal; } }

/* Three connected cards: source → server → browser. */
.doc-section ol.flow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin: 18px 0; padding: 0; max-width: none; list-style: none; }
.flow li { position: relative; margin: 0; padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.flow li strong { display: block; margin-bottom: 4px; }
.flow li span { font-size: 14.5px; color: var(--muted); }
.flow li + li::before { content: '→'; position: absolute; left: -22px; top: 50%; transform: translateY(-50%); color: var(--accent); font-weight: 700; }
@media (max-width: 800px) {
  .doc-section ol.flow { grid-template-columns: 1fr; }
  .flow li + li::before { content: '↓'; left: 50%; top: -25px; transform: translateX(-50%); }
}

/* Feedback form. */
.feedback { display: grid; gap: 14px; max-width: 560px; margin: 16px 0; padding: 18px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.feedback label { display: grid; gap: 5px; font-size: 14px; font-weight: 500; }
.feedback select, .feedback textarea, .feedback input[type='email'], .feedback input[type='text'] { width: 100%; padding: 9px 11px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg); color: var(--text); font: inherit; }
.feedback textarea { resize: vertical; min-height: 110px; }
.feedback .hp { position: absolute; left: -9999px; }
.feedback-foot { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.feedback button { padding: 8px 18px; border: 0; border-radius: 8px; background: var(--accent); color: #fff; font-weight: 600; }
.feedback button:disabled { opacity: 0.6; cursor: default; }
.feedback-status { font-size: 14px; color: var(--muted); }
.feedback-status[data-state='ok'] { color: #15803d; }
.feedback-status[data-state='error'] { color: #dc2626; }
.doc-section .feedback-note { margin: 0; font-size: 12.5px; color: var(--muted); }

/* Screenshots. */
.shot { margin: 18px 0; }
.shot img { display: block; width: 100%; height: auto; border: 1px solid var(--border); border-radius: var(--radius); }
.shot figcaption { margin-top: 8px; font-size: 14px; color: var(--muted); }


/* Version badge and release notes. */
.version { display: inline-block; margin-bottom: 14px; padding: 3px 12px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); font: 600 13px var(--mono); }
.release { margin: 16px 0; padding: 16px 18px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.release h3 { display: flex; align-items: baseline; gap: 12px; margin: 0 0 6px; font: 700 18px var(--mono); }
.release time { font: 400 13px var(--font); color: var(--muted); }
.release ul { margin: 0; }
.version[hidden] { display: none; }
.captcha:empty { display: none; }
