/* Shared tokens, nav, hero, tabs and the code viewer are in shared/site.css. */

.tab-content { display: none; animation: fadeUp 0.35s ease both; }
.tab-content.active { display: block; }
.hz-live { margin-top: 20px; }

/* ── Demo panels (dark, like the other demos) ── */
.hz-panel { border: 1px solid var(--border); border-radius: 14px; overflow: hidden; background: var(--panel); margin-bottom: 24px; padding: 24px; }
.hz-plan { display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 1fr); gap: 40px; }
.hz-form { display: flex; flex-direction: column; gap: 18px; }
.hz-field { display: flex; flex-direction: column; gap: 8px; font-size: 13px; color: var(--muted); min-width: 0; }
.hz-field > span { display: flex; justify-content: space-between; }
.hz-field b { color: var(--text); font-family: var(--font-mono); }
.hz-field select, .hz-field input[type="date"], .hz-field textarea {
    font: 14px var(--font-body); color: var(--text); background: var(--surface); border: 1px solid var(--border);
    border-radius: 8px; padding: 9px 11px; width: 100%; color-scheme: dark;
}
.hz-panel input[type="range"] { accent-color: var(--accent); width: 100%; }
.hz-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.hz-days button, .hz-presets button, .hz-alt button {
    font: 500 13px var(--font-body); color: var(--muted); background: transparent; border: 1px solid var(--border);
    border-radius: 8px; padding: 8px 0; cursor: pointer; transition: color .15s, background .15s;
}
.hz-days button[aria-pressed="true"], .hz-presets button[aria-pressed="true"] { color: var(--accent-text); background: var(--accent-dim); border-color: transparent; }
.hz-days button:hover, .hz-presets button:hover, .hz-alt button:hover { color: var(--text); }
.hz-days button:focus-visible, .hz-presets button:focus-visible, .hz-alt button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.hz-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 20px; margin: 0; }
.hz-stats div { display: flex; flex-direction: column; }
.hz-stats dt { order: 2; font-size: 12px; color: var(--muted); margin-top: 6px; line-height: 1.4; }
.hz-stats dd { margin: 0; font: 600 1.75rem/1 var(--font-display); color: var(--text); font-variant-numeric: tabular-nums; }
.hz-stats div:first-child dd { color: var(--accent-text); }
.hz-alt { margin-top: 24px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; font-size: 14px; }
.hz-alt button { padding: 8px 12px; text-align: left; }
.ok { color: #4ade80; }
.no { color: #f87171; }

.hz-map-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: center; margin: 28px 0 14px; font-size: 14px; color: var(--text); }
.hz-map { display: grid; grid-template-columns: repeat(auto-fill, minmax(13px, 1fr)); gap: 3px; }
.hz-map i, .hz-key i { aspect-ratio: 1; border-radius: 3px; background: #1c1d22; }
.hz-map .is-goal, .hz-key .is-goal { background: #3d3f49; }
.hz-map .is-part, .hz-key .is-part { background: linear-gradient(135deg, #f0703a 50%, #3d3f49 50%); }
.hz-map .is-done, .hz-key .is-done { background: #f0703a; }
.hz-key { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 12px; color: var(--muted); }
.hz-key li { display: flex; align-items: center; gap: 8px; }
.hz-key i { width: 13px; }

/* ── Check the AI ── */
.hz-presets { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.hz-presets button { padding: 8px 12px; }
.hz-ai-body { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.hz-field textarea { font: 13px/1.5 var(--font-mono); min-height: 290px; resize: vertical; }
.hz-result { font-size: 14px; color: var(--text); line-height: 1.55; padding-top: 28px; min-width: 0; }
.hz-verdict { font-weight: 700; font-size: 16px; margin-bottom: 10px; }
.hz-why { font: 13px/1.6 var(--font-mono); background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 12px; overflow-wrap: anywhere; }
.hz-say { margin-bottom: 14px; }
.hz-dim { color: var(--muted); margin-top: 12px; }
.hz-changes { padding-left: 18px; margin-bottom: 14px; }
.hz-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.hz-table th, .hz-table td { text-align: left; padding: 8px 8px 8px 0; border-bottom: 1px solid var(--border); font-weight: 400; }
.hz-table th { color: var(--muted); }

/* ── The app ── */
.hz-shots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.hz-shots figure { margin: 0; }
.hz-shots img { width: 100%; height: auto; border-radius: 18px; border: 1px solid var(--border); }
.hz-shots figcaption { font-size: 13px; color: var(--muted); margin-top: 8px; text-align: center; }
.app-open { margin-top: 16px; font-size: 0.875rem; text-align: center; }
.app-open a { color: var(--accent-text); }

.ds-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ds-title { font-family: var(--font-display); font-weight: 700; font-size: 0.95rem; margin-bottom: 8px; color: var(--text); }
.ds-desc { font-size: 0.875rem; color: var(--muted); line-height: 1.6; }

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}
@media (max-width: 760px) {
    .hz-panel { padding: 16px; }
    .hz-plan, .hz-ai-body, .hz-map-head { grid-template-columns: 1fr; gap: 20px; }
    .hz-map-head { gap: 10px; }
    .hz-result { padding-top: 0; }
    .hz-field textarea { min-height: 220px; }
    .ds-grid { grid-template-columns: 1fr; }
    .hz-shots { grid-template-columns: minmax(0, 320px); justify-content: center; }
}
