/* =============================================================
   VizAI public site: the product visuals and motion.
   - .mock: the example report in the homepage hero (score ring,
     five tool cards, fix cards), built in HTML/CSS, no images.
   - .parts: the four small "what is in your report" tiles.
   - .plans: plans by AI tools and buyer questions (no prices).
   - .chat: the homepage chat widget.
   - .reveal and every animation, all switched off for visitors
     who ask for reduced motion (bottom of this file).
   ============================================================= */

/* ---------- Example report (hero) ---------- */
.mock-wrap { position: relative; margin: 0; }
.mock-wrap::before { content: ''; position: absolute; inset: 8% -4% -6% 6%; z-index: -1; border-radius: 40px; background: radial-gradient(closest-side, rgba(214, 91, 37, 0.45), transparent); filter: blur(30px); }
.mock { margin: 0; background: var(--card); color: var(--ink); border-radius: 22px 6px 22px 6px; box-shadow: var(--sh-3); overflow: hidden; animation: rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.mock-chrome { display: flex; align-items: center; gap: 6px; padding: 12px 16px; background: var(--sunken); border-bottom: 1px solid var(--line); }
.mock-chrome i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.mock-tag { margin-left: auto; padding: 3px 10px; border-radius: var(--r-pill); background: var(--ground); color: var(--air); font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.mock-body { padding: 20px; display: grid; gap: 16px; }
.mock-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.mock-biz { font: 700 20px/1.2 var(--font-head); }
.mock-place { font-size: 13px; color: var(--muted); margin-top: 4px; }
.ring { position: relative; width: 88px; flex-shrink: 0; text-align: center; }
.ring > svg { width: 88px; height: 88px; transform: rotate(-90deg); }
.ring .track { fill: none; stroke: var(--sunken); stroke-width: 8; }
.ring .val { fill: none; stroke: var(--good); stroke-width: 8; stroke-linecap: round; stroke-dasharray: 226.2; stroke-dashoffset: 63.3; animation: ring-draw 1.6s 0.3s cubic-bezier(0.3, 0.7, 0.2, 1) both; }
.ring-num { position: absolute; top: 0; left: 0; width: 88px; height: 88px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ring-num b { font: 700 26px/1 var(--font-head); font-variant-numeric: tabular-nums; }
.ring-num small { font-size: 9px; color: var(--muted); margin-top: 2px; }
.ring-change { display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; padding: 2px 8px; border-radius: var(--r-pill); background: var(--good-soft); color: var(--good); font-size: 11px; font-weight: 700; }
.ring-change svg { width: 9px; height: 9px; }
.mock-eyebrow { margin-bottom: 4px; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.fix-by { margin-left: auto; font-size: 12px; color: var(--muted); text-align: right; }
.fix .mono { width: 24px; height: 24px; font-size: 11px; }
@keyframes ring-draw { from { stroke-dashoffset: 226.2; } }
.mock-tools { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.tool { display: flex; align-items: center; gap: 10px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); animation: rise 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.tool:nth-child(2) { animation-delay: 0.08s; } .tool:nth-child(3) { animation-delay: 0.16s; } .tool:nth-child(4) { animation-delay: 0.24s; } .tool:nth-child(5) { animation-delay: 0.32s; }
.mono { width: 30px; height: 30px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; border-radius: 9px 3px 9px 3px; background: var(--ground); color: var(--air); font-size: 13px; font-weight: 700; }
.tool-name { font-size: 13px; font-weight: 600; line-height: 1.2; }
.status { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; line-height: 1.3; white-space: nowrap; }
.status::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status.good { color: var(--good); }
.status.bad { color: var(--bad); }
.status.open { color: var(--signal-deep); }
.tool.locked { background: var(--sunken); border-style: dashed; }
.tool.locked .mono { background: var(--line-strong); color: var(--ink-2); }
.tool.locked .tool-name, .tool.locked .lock { color: var(--muted); }
.lock { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; white-space: nowrap; }
.tool > div { min-width: 0; }
.lock svg { width: 12px; height: 12px; flex-shrink: 0; }
.mock-fixes { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.mock-fixes-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; background: var(--sunken); font-size: 13px; font-weight: 600; }
.pill { padding: 2px 10px; border-radius: var(--r-pill); background: var(--signal-soft); color: var(--signal-deep); font-size: 12px; font-weight: 700; }
.fix { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-top: 1px solid var(--line); font-size: 13px; line-height: 1.35; }
.box { width: 20px; height: 20px; flex-shrink: 0; border: 2px solid var(--line-strong); border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; }
.fix.done .box { background: var(--good); border-color: var(--good); }
.fix.done .box svg { width: 12px; height: 12px; stroke: #fff; animation: pop 0.4s 1.4s ease both; }
.fix.done .fix-title { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--line-strong); }
.fix-n { font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.mock-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.mock-foot .chip { padding: 3px 10px; font-size: 12px; }
.mock-note { margin-top: 14px; text-align: center; font-size: 13px; color: var(--on-dark-2); }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes pop { from { transform: scale(0); } }
@media (min-width: 520px) { .mock-tools { grid-template-columns: repeat(3, 1fr); } .mock-body { padding: 24px; } }
@media (min-width: 1000px) { .mock { transform: perspective(1600px) rotateY(-5deg) rotateX(2deg); } .mock-tools { grid-template-columns: repeat(3, 1fr); } }

/* ---------- The four parts of a report ---------- */
.parts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.part { background: var(--card); border: 1px solid var(--line); border-radius: 16px 4px 16px 4px; padding: 16px; box-shadow: var(--sh-1); transition: transform 0.2s ease, box-shadow 0.2s ease; }
.part:hover { transform: translateY(-2px); box-shadow: var(--sh-2); }
.part-n { font-size: 12px; font-weight: 700; color: var(--signal-deep); letter-spacing: 0.08em; }
.part h3 { font: 600 15px/1.35 var(--font-body); margin: 4px 0 12px; color: var(--ink); }
.part svg { width: 100%; height: 64px; }
.part .g-good { fill: var(--good); } .part .g-bad { fill: var(--line-strong); } .part .g-ink { fill: var(--ground); } .part .g-line { fill: var(--line); }
.part .g-signal { fill: var(--signal); } .part .g-air { fill: var(--air); }
.part .s-signal { fill: none; stroke: var(--signal); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.part .s-area { fill: rgba(214, 91, 37, 0.12); }

/* ---------- Plans by AI tools and buyer questions ---------- */
.plans { display: grid; gap: 20px; align-items: stretch; }
.plan-free { display: flex; flex-direction: column; background: var(--ground); color: var(--on-dark); border-radius: var(--r-bar); padding: 28px 24px; box-shadow: var(--sh-3); position: relative; overflow: hidden; isolation: isolate; }
.plan-free::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse 70% 60% at 100% 0%, rgba(214, 91, 37, 0.35), transparent 70%); }
.plan-free h3 { color: var(--on-dark); font-size: 24px; margin-bottom: 8px; }
.plan-free p { color: var(--on-dark-2); }
.plan-free .btn { margin-top: 22px; }
.plan-free .tiny { margin-top: 10px; text-align: center; }
.plan-split { margin-top: auto; padding-top: 22px; display: grid; gap: 4px; border-top: 1px solid rgba(254, 249, 251, 0.12); margin-top: 22px; font-size: 14px; }
.plan-split b { color: var(--on-dark); }
.plan-paid { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-bar); padding: 28px 20px; box-shadow: var(--sh-2); }
.plan-paid h3 { font-size: 24px; margin-bottom: 8px; }
.plan-paid > p { color: var(--ink-2); font-size: 15px; }
.matrix { width: 100%; margin-top: 22px; border-collapse: separate; border-spacing: 0; font-size: 14px; table-layout: fixed; }
.matrix th, .matrix td { padding: 10px 4px; text-align: center; border-top: 1px solid var(--line); }
.matrix thead th { border-top: 0; padding-bottom: 12px; font: 700 15px/1.2 var(--font-head); color: var(--ink); }
.matrix thead th:first-child, .matrix tbody th { text-align: left; }
.matrix tbody th { font-weight: 500; color: var(--ink-2); width: 34%; }
.matrix .col-max { background: var(--air-soft); }
.matrix thead .col-max { border-radius: 10px 10px 0 0; }
.matrix .yes, .matrix .no { display: inline-flex; width: 22px; height: 22px; border-radius: 50%; align-items: center; justify-content: center; }
.matrix .yes { background: var(--good-soft); color: var(--good); }
.matrix .no { color: var(--line-strong); }
.matrix .yes svg, .matrix .no svg { width: 12px; height: 12px; }
.matrix .num { font: 700 18px/1 var(--font-head); color: var(--ink); font-variant-numeric: tabular-nums; }
.plan-paid .cta-row { margin-top: 22px; }
@media (min-width: 640px) { .plan-paid { padding: 32px; } .matrix th, .matrix td { padding: 12px 8px; } }
@media (min-width: 1000px) { .plans { grid-template-columns: 0.8fr 1.2fr; } }

/* ---------- Chat widget (homepage) ---------- */
.chat { position: fixed; right: 16px; bottom: 16px; z-index: 60; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.chat-panel { width: min(360px, calc(100vw - 32px)); max-height: min(520px, calc(100vh - 110px)); display: flex; flex-direction: column; overflow: hidden; background: var(--card); border: 1px solid var(--line); border-radius: 20px 6px 20px 6px; box-shadow: var(--sh-3); transition: opacity 0.22s ease, transform 0.22s ease; }
.chat-panel.hidden { opacity: 0; pointer-events: none; visibility: hidden; transform: translateY(12px) scale(0.98); }
.chat-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; background: var(--ground); color: var(--on-dark); }
.chat-who { display: flex; align-items: center; gap: 10px; }
.chat-who .mono { background: var(--signal-deep); color: #fff; }
.chat-title { font-size: 14px; font-weight: 600; }
.chat-online { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--air); }
.chat-online::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--air); }
.chat-x { width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 8px; background: transparent; color: var(--on-dark-2); cursor: pointer; }
.chat-x:hover { color: var(--on-dark); background: rgba(254, 249, 251, 0.08); }
.chat-msgs { flex: 1; overflow-y: auto; padding: 16px; display: grid; gap: 10px; align-content: start; background: var(--page); min-height: 200px; }
.chat-row { display: flex; }
.chat-row.user { justify-content: flex-end; }
.bubble { max-width: 82%; padding: 10px 12px; font-size: 14px; line-height: 1.5; }
.bubble.bot { background: var(--card); color: var(--ink); border: 1px solid var(--line); border-radius: 4px 14px 14px 14px; }
.bubble.user { background: var(--signal-deep); color: #fff; border-radius: 14px 4px 14px 14px; }
.bubble.typing { color: var(--muted); }
.chat-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); background: var(--card); }
.chat-form input { flex: 1; min-width: 0; height: 44px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 10px; font: 16px var(--font-body); color: var(--ink); background: var(--card); }
.chat-form input:focus { outline: 2px solid var(--signal-deep); outline-offset: 1px; border-color: transparent; }
.chat-send { width: 44px; height: 44px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 10px; background: var(--signal-deep); color: #fff; cursor: pointer; }
.chat-send:disabled { opacity: 0.5; cursor: default; }
.chat-btn { width: 56px; height: 56px; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 18px 5px 18px 5px; background: var(--signal-deep); color: #fff; cursor: pointer; box-shadow: 0 12px 30px -10px rgba(176, 70, 24, 0.8); animation: chat-pulse 2.4s ease-out infinite; }
.chat-btn:hover { background: #9C3D14; }
.chat .hidden-icon { display: none; }
@keyframes chat-pulse { 0% { box-shadow: 0 0 0 0 rgba(214, 91, 37, 0.45); } 70% { box-shadow: 0 0 0 14px rgba(214, 91, 37, 0); } 100% { box-shadow: 0 0 0 0 rgba(214, 91, 37, 0); } }

/* ---------- Scroll reveal (site.js adds .in) ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Reduced motion: everything still, nothing hidden ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .mock { transform: none !important; }
}
