/* Styles shared by the detail pages: features, how-it-works, download, pricing, reviews. */

.sec-head { max-width: 720px; margin-bottom: 32px; }
.sec-head h2 { font-size: clamp(24px, 3vw, 32px); letter-spacing: -0.03em; margin: 10px 0 10px; }
.sec-head p { color: var(--text-2); font-size: 16px; line-height: 1.65; }
.page-section { padding: 56px 0; border-top: 1px solid var(--line); }
.page-section:first-child { border-top: 0; padding-top: 8px; }

.tile h3 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tile p + p { margin-top: 10px; }
.tile .list-check { margin-top: 14px; }

.chat { display: grid; gap: 10px; font-size: 14px; margin-top: 18px; }
.chat-msg { max-width: 92%; padding: 10px 14px; border-radius: 12px; line-height: 1.5; }
.chat-msg.me { justify-self: end; background: var(--signal); color: var(--on-signal); border-bottom-right-radius: 4px; }
.chat-msg.ai { background: var(--surface-2); border: 1px solid var(--line); color: var(--text-2); border-bottom-left-radius: 4px; }
.chat-msg .mono { font-family: var(--font-mono); font-size: 12px; color: var(--signal-ink); display: block; margin-bottom: 4px; }

.code-block { background: var(--bg-raise); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; overflow-x: auto; font-family: var(--font-mono); font-size: 13px; line-height: 1.6; color: var(--text); margin-top: 14px; white-space: pre; }

/* Flow diagram */
.flow { display: flex; align-items: stretch; margin-top: 8px; }
.flow-node { flex: 1; min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px 16px; text-align: center; }
.flow-node.hl { border-color: var(--signal-line); background: var(--signal-soft); }
.flow-node svg { width: 26px; height: 26px; color: var(--signal-ink); margin: 0 auto 10px; display: block; }
.flow-node b { display: block; font-size: 15px; font-weight: 600; color: var(--text); }
.flow-node span { display: block; font-size: 13px; color: var(--text-2); margin-top: 4px; line-height: 1.5; }
.flow-arrow { flex: 0 0 44px; display: grid; place-items: center; color: var(--text-3); }
.flow-arrow svg { width: 22px; height: 22px; }
.flow-label { font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-3); margin: 28px 0 10px; }
@media (max-width: 760px) {
  .flow { flex-direction: column; }
  .flow-arrow { flex-basis: 34px; transform: rotate(90deg); }
}

/* Data table: wrap long cells on small screens */
.table td { line-height: 1.55; }
.table-wrap + .table-note { margin-top: 12px; font-size: 13px; color: var(--text-3); }

/* Download cards (same look as the home page) */
.dl-card { display: flex; flex-direction: column; gap: 14px; }
.dl-os { display: flex; align-items: center; gap: 12px; font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.dl-os svg { width: 26px; height: 26px; }
.dl-meta { font-family: var(--font-mono); font-size: 12px; color: var(--text-3); }
.dl-card p { color: var(--text-2); font-size: 15px; flex: 1; }
.dl-card p strong { color: var(--text); font-weight: 500; }

.os-steps { list-style: none; counter-reset: s; display: grid; gap: 12px; margin-top: 14px; }
.os-steps li { counter-increment: s; display: grid; grid-template-columns: 28px 1fr; gap: 10px; font-size: 14px; color: var(--text-2); line-height: 1.6; }
.os-steps li::before { content: counter(s); width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-mono); font-size: 12px; background: var(--signal-soft); color: var(--signal-ink); }
.os-steps li strong { color: var(--text); font-weight: 500; }

/* Pricing extras */
.local-note { display: flex; justify-content: center; margin-bottom: 32px; }

/* Reviews */
.rv-summary { display: grid; grid-template-columns: 220px 1fr; gap: 32px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; margin-bottom: 28px; }
.rv-avg { text-align: center; }
.rv-avg b { display: block; font-size: 52px; font-weight: 600; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.rv-avg .review-card-stars { justify-content: center; margin: 10px 0 6px; }
.rv-avg span { font-family: var(--font-mono); font-size: 12px; color: var(--text-3); }
.rv-bars { display: grid; gap: 8px; }
.rv-bar { display: grid; grid-template-columns: 40px 1fr 36px; gap: 12px; align-items: center; font-family: var(--font-mono); font-size: 12px; color: var(--text-2); background: none; border: 0; padding: 4px 6px; border-radius: var(--r-sm); text-align: left; cursor: pointer; }
.rv-bar:hover, .rv-bar[aria-pressed="true"] { background: var(--surface-2); color: var(--text); }
.rv-bar span:last-child { text-align: right; color: var(--text-3); }
@media (max-width: 640px) { .rv-summary { grid-template-columns: 1fr; gap: 20px; } }

.rv-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.rv-filters { display: flex; gap: 6px; flex-wrap: wrap; }
.rv-filter { font-family: var(--font-mono); font-size: 12px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--text-2); cursor: pointer; }
.rv-filter:hover { color: var(--text); border-color: var(--line-strong); }
.rv-filter[aria-pressed="true"] { background: var(--signal-soft); border-color: var(--signal-line); color: var(--signal-ink); }
.rv-sort { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-3); }
.rv-sort select { width: auto; padding: 6px 10px; font-size: 13px; }

.reviews-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; margin-bottom: 48px; }
.review-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.review-card-stars { display: flex; gap: 2px; color: var(--signal-ink); }
.review-card-stars svg { width: 15px; height: 15px; }
.review-card-stars svg.off { color: var(--line-strong); }
.review-card-comment { color: var(--text); font-size: 15px; line-height: 1.65; flex: 1; overflow-wrap: anywhere; }
.review-card-name { font-family: var(--font-mono); font-size: 12px; color: var(--text-3); display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.reviews-empty { grid-column: 1 / -1; text-align: center; color: var(--text-3); padding: 32px 0; font-family: var(--font-mono); font-size: 14px; }
.review-form { max-width: 640px; margin: 0 auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; }
.review-form h3 { font-size: 18px; margin-bottom: 20px; }
.rating-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.review-stars { display: flex; gap: 2px; }
.review-stars button { width: 40px; height: 40px; display: grid; place-items: center; background: none; border: 0; border-radius: var(--r-sm); color: var(--line-strong); transition: color var(--t-fast), transform var(--t-fast); cursor: pointer; }
.review-stars button svg { width: 24px; height: 24px; }
.review-stars button:hover, .review-stars button.active { color: var(--signal-ink); }
.review-stars button:hover { transform: scale(1.08); }
.review-form-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 16px; }
.review-msg { font-size: 14px; flex: 1; min-width: 200px; }
.review-msg.success { color: var(--ok); }
.review-msg.error { color: var(--danger); }
