/* The home page, third test copy (/home-v3.html): blocks 2 and 4-11 - trust,
   sell it, the print check, batches and the board, one board for every
   generator, MCP, the changelog. Over home-v3.css and the page's own tokens. */

/* ---------------------------------------------------------------- shared */
.v3-sub { margin: 0; max-width: 640px; font-size: 16px; line-height: 1.6; color: var(--ink-mid); }
.v3-small { margin: 0; font-size: 13.5px; color: var(--ink-dim); line-height: 1.55; }
.v3-two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; }
.v3-card { border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface);
  padding: clamp(22px, 3vw, 36px); display: flex; flex-direction: column; gap: 12px; }
.v3-card h3 { margin: 0; font-family: var(--serif); font-weight: 500; font-size: 26px; line-height: 1.15; }
.v3-card p { margin: 0; color: var(--ink-mid); font-size: 14.5px; line-height: 1.6; }
.v3-card .v3-badge { margin-left: 4px; }
.v3-reveal { opacity: 0; transform: translateY(14px);
  transition: opacity .7s cubic-bezier(0.23, 1, 0.32, 1), transform .7s cubic-bezier(0.23, 1, 0.32, 1); }
.v3-reveal.in { opacity: 1; transform: none; }

/* ---------------------------------------------------------------- 2. trust */
.v3-trust { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); margin-top: 14px;
  border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.v3-trust > div { padding: 20px 24px; border-right: 1px solid var(--line); }
.v3-trust > div:last-child { border-right: 0; }
.v3-trust > div[hidden] { display: none; }
.v3-trust b { display: block; font: 500 32px/1 var(--serif); color: var(--ink); }
.v3-trust span { display: block; margin-top: 8px; font-size: 13px; color: var(--ink-dim); }

/* ---------------------------------------------------------------- 4. sell it */
.v3-scrolly { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(20px, 3vw, 48px); align-items: start; }
.v3-steps { list-style: none; margin: 0; padding: 0; }
.v3-steps li { position: relative; padding: 16px 0 18px 22px; border-left: 2px solid var(--line);
  opacity: .5; transition: opacity .35s ease, border-color .35s ease; cursor: pointer; }
.v3-steps li:hover { opacity: .8; }
.v3-steps li p { display: none; }
.v3-steps li.on p { display: block; animation: v3-up .4s cubic-bezier(0.23, 1, 0.32, 1); }
.v3-prog { position: absolute; left: -2px; top: 0; bottom: 0; width: 2px; background: var(--accent);
  transform-origin: top; transform: scaleX(0); }
.v3-steps li .v3-prog { transform: scaleY(0); }
.v3-steps li.on { opacity: 1; border-color: var(--accent); }
.v3-num { font: 500 12px/1 var(--mono); color: var(--accent); }
.v3-steps h3 { margin: 8px 0 6px; font-family: var(--serif); font-weight: 500; font-size: 28px; line-height: 1.15; }
.v3-steps p { margin: 0; color: var(--ink-mid); font-size: 15px; line-height: 1.6; max-width: 440px; }
.v3-canvas { position: relative; height: 500px; border-radius: var(--r-xl);
  border: 1px solid var(--line); overflow: hidden; background-color: #0d0d0e;
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1.2px); background-size: 22px 22px; }
.v3-scene { position: absolute; inset: 0; display: grid; place-items: center; padding: 28px;
  opacity: 0; transform: translateY(12px) scale(0.98); pointer-events: none;
  transition: opacity .45s ease, transform .45s cubic-bezier(0.23, 1, 0.32, 1); }
.v3-scene.on { opacity: 1; transform: none; pointer-events: auto; }
.v3-scene .ev-browser { width: min(500px, 100%); }
.sc-chat { width: min(440px, 100%); display: grid; gap: 12px; }
.sc-chat .you { justify-self: end; max-width: 88%; margin: 0; padding: 11px 14px; border-radius: 16px 16px 5px 16px;
  background: rgba(255, 255, 255, 0.09); font-size: 14px; }
.sc-card { display: grid; gap: 8px; padding: 18px; border-radius: 18px; border: 1px solid var(--line-strong);
  background: #151517; font-size: 13px; }
.sc-card > b { font-family: var(--serif); font-weight: 500; font-size: 20px; }
.sc-price { color: var(--ink-dim); margin-top: -6px; }
.sc-row { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px solid var(--line); color: var(--ink-mid); }
.sc-row i { font-style: normal; font-size: 11.5px; color: var(--ink-dim); }
.sc-row i.op { color: var(--accent); }
.sc-ok { color: #3ccf7a; font-size: 12.5px; }
.sc-ok::before { content: "\2713  "; }
.sc-share { width: min(460px, 100%); display: grid; gap: 14px; }
.sc-code { margin: 0; padding: 16px; border-radius: 14px; border: 1px solid var(--line-strong); background: #0b0b0c;
  font: 13px/1.6 var(--mono); white-space: pre-wrap; word-break: break-all; color: var(--ink); }
.sc-code b, .sc-link b { color: var(--accent); font-weight: 500; }
.sc-link { padding: 12px 16px; border-radius: 999px; border: 1px solid var(--line-strong); background: #151517;
  font: 13.5px var(--mono); color: var(--ink-mid); justify-self: start; }
.sc-pin { display: flex; align-items: center; gap: 12px; color: var(--ink-mid); font-size: 14px; }
.sc-pin i { width: 22px; height: 22px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: #00ae42;
  box-shadow: 0 0 0 4px rgba(0, 174, 66, 0.15); }
.sc-pin b { color: var(--ink); font-weight: 500; }
.sc-pay { width: min(340px, 100%); display: grid; gap: 10px; padding: 24px; border-radius: 20px; background: #f4f2ec; color: #161616; }
.sc-small { font-size: 12.5px; color: #6b6a65; }
.sc-sum { font: 500 34px/1 var(--serif); }
.sc-btn { text-align: center; padding: 11px; border-radius: 11px; background: #ffc439; font-weight: 600; font-size: 14px; }
.sc-btn.ghost { background: #161616; color: #fff; }
.sc-zero { text-align: center; font-size: 12.5px; color: #2f7d3a; font-weight: 500; }
.sc-desk { width: min(460px, 100%); display: grid; gap: 8px; }
.sc-desk-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px;
  border: 1px solid var(--line); background: #151517; font-size: 13.5px; }
.sc-desk-row i { width: 32px; height: 32px; flex: none; border-radius: 50%; display: grid; place-items: center; font-style: normal;
  font-size: 11.5px; font-weight: 600; background: rgba(255, 255, 255, 0.08); }
.sc-desk-row span { flex: 1; color: var(--ink-mid); }
.sc-desk-row b { color: var(--ink); font-weight: 500; margin-right: 6px; }
.sc-desk-row em { font-style: normal; font-size: 11.5px; color: var(--ink-dim); }
.sc-desk-row.new { border-color: rgba(196, 220, 124, 0.5); }
.sc-desk-row.new em { color: var(--accent); }
.sc-file { margin-top: 6px; padding: 12px 14px; border-radius: 12px; font: 12.5px var(--mono);
  background: rgba(60, 207, 122, 0.08); border: 1px solid rgba(60, 207, 122, 0.25); }
.sc-file b { float: right; color: #3ccf7a; font-weight: 500; }
.v3-who { margin: 22px 0 0; font-size: 14px; color: var(--ink-mid); }
.v3-who span { font: 500 11.5px var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--ink-dim); margin-right: 8px; }

/* ---------------------------------------------------------------- 5. print check */
.v3-check { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(24px, 4vw, 64px); align-items: center;
  border-radius: var(--r-xl); border: 1px solid var(--line); padding: clamp(28px, 4vw, 56px);
  background: radial-gradient(80% 90% at 100% 0%, rgba(196, 220, 124, 0.10), transparent 60%), linear-gradient(180deg, #151517, #0f0f10); }
.v3-check-copy { display: grid; gap: 18px; }
.v3-check-copy h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(32px, 3.6vw, 50px); line-height: 1.06; margin: 0; }
.v3-check-copy h2 em { font-style: italic; color: var(--accent); }
.v3-check-vis { display: grid; gap: 22px; padding: 24px; border-radius: 22px; background: #0c0c0d; border: 1px solid var(--line); }
.cv-piece { width: 100%; height: auto; }
.cv-body { fill: transparent; stroke: var(--accent); stroke-width: 2; stroke-dasharray: 700; stroke-dashoffset: 700;
  transition: stroke-dashoffset 1.2s ease, fill .5s ease .9s; }
.cv-hole { fill: #0c0c0d; stroke: var(--accent); stroke-width: 2; opacity: 0; transition: opacity .4s ease .8s; }
.cv-text { font: 800 48px Inter, sans-serif; fill: #fff; opacity: 0; transition: opacity .4s ease 1s; }
.cv-thin { stroke: rgba(255, 255, 255, 0.85); stroke-width: 1.5; opacity: 0; transition: opacity .3s ease 1.1s; }
.v3-check-vis.built .cv-body { stroke-dashoffset: 0; fill: #0086d6; }
.v3-check-vis.built .cv-hole, .v3-check-vis.built .cv-text, .v3-check-vis.built .cv-thin { opacity: 1; }
.v3-check-vis.warn .cv-thin { stroke: #f06a5a; stroke-width: 3; animation: cv-flash 1s ease 2; }
@keyframes cv-flash { 50% { stroke-opacity: .25; } }
.cv-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 14px; }
.cv-list li { display: flex; align-items: center; gap: 10px; color: var(--ink-dim); transition: color .3s ease; }
.cv-list li::before { content: ""; flex: none; width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--line-strong);
  display: grid; place-items: center; font-size: 11px; line-height: 1; transition: background .3s, border-color .3s; }
.cv-list li.ok { color: var(--ink); }
.cv-list li.ok::before { content: "\2713"; background: rgba(60, 207, 122, 0.15); border-color: rgba(60, 207, 122, 0.5); color: #3ccf7a; }
.cv-list li.warn.ok { color: #f3a39a; }
.cv-list li.warn.ok::before { content: "!"; background: rgba(240, 106, 90, 0.15); border-color: rgba(240, 106, 90, 0.6); color: #f06a5a; }
.cv-slots { display: flex; align-items: center; gap: 10px; font: 500 11.5px var(--mono); color: var(--ink-dim); padding-bottom: 14px; }
.cv-slots i { position: relative; width: 34px; height: 34px; border-radius: 10px; border: 1px dashed var(--line-strong);
  display: grid; place-items: center; }
.cv-slots i::after { content: ""; position: absolute; inset: 5px; border-radius: 6px; background: var(--c);
  transform: scale(0); transition: transform .4s cubic-bezier(0.34, 1.56, 0.64, 1); }
.cv-slots i b { position: absolute; bottom: -16px; font-weight: 500; font-size: 10px; }
.v3-check-vis.slots .cv-slots i::after { transform: scale(1); }
.v3-check-vis.slots .cv-slots i:nth-of-type(2)::after { transition-delay: .12s; }
.v3-check-vis.slots .cv-slots i:nth-of-type(3)::after { transition-delay: .24s; }
.v3-check-vis.slots .cv-slots i:nth-of-type(4)::after { transition-delay: .36s; }

/* ---------------------------------------------------------------- 6. batches and the board */
#batch .v3-two { margin-top: 0; }
.bt-vis { margin-top: auto; display: grid; grid-template-columns: 1fr 40px 1fr; align-items: center; gap: 8px;
  padding: 18px; border-radius: 16px; background: #0c0c0d; border: 1px solid var(--line); overflow: hidden; }
.bt-rows { display: grid; gap: 5px; }
.bt-rows span { font: 12px var(--mono); color: var(--ink-mid); padding: 5px 9px; border-radius: 7px; background: #161618; }
.bt-arrow { height: 1px; background: var(--accent); position: relative; }
.bt-arrow::after { content: ""; position: absolute; right: 0; top: -4px; border: 4px solid transparent; border-left-color: var(--accent); }
.bt-file { display: grid; gap: 4px; padding: 16px; border-radius: 12px; border: 1px solid rgba(60, 207, 122, 0.3);
  background: rgba(60, 207, 122, 0.07); font: 12px var(--mono); color: var(--ink-dim); }
.bt-file b { color: #3ccf7a; font-weight: 500; font-size: 14px; }
.v3-card.run .bt-rows span { animation: bt-fly 4.8s ease-in-out infinite; }
.v3-card.run .bt-rows span:nth-child(2) { animation-delay: .15s; } .v3-card.run .bt-rows span:nth-child(3) { animation-delay: .3s; }
.v3-card.run .bt-rows span:nth-child(4) { animation-delay: .45s; } .v3-card.run .bt-rows span:nth-child(5) { animation-delay: .6s; }
.v3-card.run .bt-rows span:nth-child(6) { animation-delay: .75s; }
@keyframes bt-fly { 0%, 20% { transform: none; opacity: 1; } 45% { transform: translateX(120%); opacity: 0; }
  46% { transform: translateX(-20%); opacity: 0; } 70%, 100% { transform: none; opacity: 1; } }
.bd-vis { margin-top: auto; padding: 18px; border-radius: 16px; background: #0c0c0d; border: 1px solid var(--line); }
.bd-plate { position: relative; height: 170px; border-radius: 10px; border: 1px solid #2a2a2e;
  background-image: linear-gradient(#232326 1px, transparent 1px), linear-gradient(90deg, #232326 1px, transparent 1px);
  background-size: 17px 17px; transform: perspective(600px) rotateX(28deg); }
.bd-piece { position: absolute; display: grid; place-items: center; font: 800 13px Inter, sans-serif; border-radius: 8px; }
.bd-piece.p1 { left: 8%; top: 14%; width: 80px; height: 32px; border-radius: 16px; background: #0086d6; color: #fff; }
.bd-piece.p2 { left: 42%; top: 54%; width: 110px; height: 42px; background: #1d1d1f; color: #4a4a4e; border: 1px solid #3a3a3e; }
.bd-piece.p3 { left: 70%; top: 10%; width: 64px; height: 64px; border-radius: 50%; background: #161616; border: 1px solid #3a3a3e; }
.bd-piece.p3 i { width: 26px; height: 26px; border: 4px solid #fff; border-radius: 4px; }
.bd-gizmo { position: absolute; left: 8%; top: 14%; width: 80px; height: 32px; pointer-events: none; }
.bd-gizmo .gx, .bd-gizmo .gy { position: absolute; left: 50%; top: 50%; }
.bd-gizmo .gx { width: 44px; height: 2px; background: #f06a5a; }
.bd-gizmo .gy { width: 2px; height: 44px; transform: translateY(-100%); background: #3ccf7a; }
.bd-gizmo .gr { position: absolute; left: 50%; top: 50%; width: 58px; height: 58px; margin: -29px; border-radius: 50%;
  border: 2px solid rgba(143, 179, 255, 0.7); }
.v3-card.run .bd-piece.p1, .v3-card.run .bd-gizmo { animation: bd-move 6s cubic-bezier(0.65, 0, 0.35, 1) infinite; }
@keyframes bd-move { 0%, 15% { transform: none; } 40%, 55% { transform: translate(70px, 50px); }
  75%, 85% { transform: translate(70px, 50px) rotate(90deg); } 100% { transform: none; } }

/* ---------------------------------------------------------------- 7. one board for every generator */
.v3-hub { position: relative; min-height: 540px; display: grid; place-items: center; text-align: center;
  border-radius: var(--r-xl); border: 1px solid var(--line); overflow: hidden; margin-bottom: 14px;
  background-color: #0d0d0e; background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1.2px);
  background-size: 22px 22px; --pull: 0; }
.hb-center { position: relative; z-index: 2; max-width: 470px; display: grid; gap: 16px; justify-items: center; padding: 24px;
  border-radius: 24px; background: radial-gradient(closest-side, rgba(13, 13, 14, 0.95), rgba(13, 13, 14, 0.6) 70%, transparent); }
.hb-center h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(30px, 3.4vw, 46px); line-height: 1.08; margin: 0; }
.hb-center h2 em { font-style: italic; color: var(--accent); }
.hb-src { position: absolute; left: 50%; top: 50%; z-index: 1; white-space: nowrap; font-size: 13px; color: var(--ink);
  padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: rgba(22, 22, 24, 0.92);
  transform: translate(-50%, -50%) translate(calc(var(--x) * (1 - var(--pull)) * 34vw), calc(var(--y) * (1 - var(--pull)) * 190px));
  opacity: calc(1 - var(--pull) * 0.7); animation: hb-float 6s ease-in-out infinite; }
.hb-src em { font-style: normal; font: 500 10px var(--mono); text-transform: uppercase; color: var(--accent); margin-left: 6px; }
.hb-src.s2 { animation-delay: -1s; } .hb-src.s3 { animation-delay: -2s; } .hb-src.s4 { animation-delay: -3s; }
.hb-src.s5 { animation-delay: -4s; } .hb-src.s6 { animation-delay: -5s; }
@keyframes hb-float { 50% { margin-top: -8px; } }

/* ---------------------------------------------------------------- 8. MCP */
.mc-ask { margin-top: 10px; font: 12.5px/1.6 var(--mono); color: var(--ink); }
.mc-ask .p { color: var(--accent); }
.mc-calls { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 6px; font: 12.5px var(--mono); }
.mc-calls li { display: grid; grid-template-columns: 130px 1fr; gap: 10px; padding: 7px 10px; border-radius: 8px;
  background: rgba(255, 255, 255, 0.03); opacity: 0; transform: translateX(-6px); transition: opacity .35s, transform .35s; }
.mc-calls li.on { opacity: 1; transform: none; }
.mc-calls b { font-weight: 500; color: var(--ink); }
.mc-calls span { color: #3ccf7a; }
.mc-calls span::before { content: "\2713  "; }

/* ---------------------------------------------------------------- 11. changelog */
.v3-log { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line-strong); display: grid; gap: 4px; }
.v3-log li { position: relative; display: grid; grid-template-columns: 70px 1fr; column-gap: 18px; padding: 14px 0 14px 22px; }
.v3-log li::before { content: ""; position: absolute; left: -5px; top: 20px; width: 9px; height: 9px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 4px rgba(196, 220, 124, 0.12); }
.v3-log time { grid-row: span 2; font: 500 12px/1.6 var(--mono); color: var(--ink-dim); }
.v3-log b { font-weight: 500; font-size: 16px; }
.v3-log p { margin: 4px 0 0; grid-column: 2; font-size: 14px; color: var(--ink-mid); }

@media (max-width: 960px) {
  .v3-two, .v3-check { grid-template-columns: 1fr; }
  .v3-scrolly { grid-template-columns: 1fr; }
  .v3-canvas { position: relative; top: 0; height: 440px; order: -1; }
  .v3-steps li { min-height: 0; padding: 18px 0 18px 18px; }
  .v3-trust > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .v3-hub { min-height: 0; padding: 24px 12px 16px; display: block; }
  .hb-src { position: static; transform: none; opacity: 1; animation: none; display: inline-block; margin: 4px; }
  .v3-log li { grid-template-columns: 1fr; }
  .v3-log time { grid-row: auto; }
  .v3-log p { grid-column: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .v3-reveal { opacity: 1; transform: none; transition: none; }
  .v3-scene { transition: none; }
  .v3-card.run .bt-rows span, .v3-card.run .bd-piece.p1, .v3-card.run .bd-gizmo, .hb-src { animation: none; }
  .mc-calls li { opacity: 1; transform: none; }
  .cv-body { stroke-dashoffset: 0; fill: #0086d6; transition: none; }
  .cv-hole, .cv-text, .cv-thin { opacity: 1; transition: none; }
}


/* the stepper's bar runs down the step's left edge; the scene's parts come in
   one after another, so each scene shows the step happening */
.v3-steps li.on { border-color: var(--line-strong); }
@keyframes v3-up { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.v3-scene .sc-chat > *, .v3-scene .sc-share > *, .v3-scene .sc-pay > *, .v3-scene .sc-desk > *,
.v3-scene .sc-card > * { opacity: 0; }
.v3-scene.on .sc-chat > *, .v3-scene.on .sc-share > *, .v3-scene.on .sc-pay > *, .v3-scene.on .sc-desk > *,
.v3-scene.on .sc-card > * { animation: v3-up .45s cubic-bezier(0.23, 1, 0.32, 1) both; }
.v3-scene.on .sc-chat > :nth-child(2) { animation-delay: .5s; }
.v3-scene.on .sc-card > :nth-child(1) { animation-delay: .7s; } .v3-scene.on .sc-card > :nth-child(2) { animation-delay: .75s; }
.v3-scene.on .sc-card > :nth-child(3) { animation-delay: 1s; } .v3-scene.on .sc-card > :nth-child(4) { animation-delay: 1.2s; }
.v3-scene.on .sc-card > :nth-child(5) { animation-delay: 1.4s; } .v3-scene.on .sc-card > :nth-child(6) { animation-delay: 1.6s; }
.v3-scene.on .sc-card > :nth-child(7) { animation-delay: 2.1s; }
.v3-scene.on .sc-share > :nth-child(2) { animation-delay: .7s; } .v3-scene.on .sc-share > :nth-child(3) { animation-delay: 1.4s; }
.v3-scene.on .sc-pay > :nth-child(2) { animation-delay: .2s; } .v3-scene.on .sc-pay > :nth-child(3) { animation-delay: .5s; }
.v3-scene.on .sc-pay > :nth-child(4) { animation-delay: .6s; } .v3-scene.on .sc-pay > :nth-child(5) { animation-delay: 1.4s; }
.v3-scene.on .sc-pay .sc-btn:first-of-type { animation: v3-up .45s both .5s, v3-press .3s ease 1.1s; }
@keyframes v3-press { 50% { transform: scale(0.95); } }
.v3-scene.on .sc-desk > :nth-child(1) { animation-delay: 1s; } .v3-scene.on .sc-desk > :nth-child(2) { animation-delay: .2s; }
.v3-scene.on .sc-desk > :nth-child(3) { animation-delay: .35s; } .v3-scene.on .sc-desk > :nth-child(4) { animation-delay: 1.6s; }
.v3-scene.on .sc-desk-row.new { animation: v3-drop .55s cubic-bezier(0.34, 1.4, 0.64, 1) both 1s; }
@keyframes v3-drop { from { opacity: 0; transform: translateY(-14px) scale(.97); } to { opacity: 1; transform: none; } }
@media (max-width: 960px) {
  .v3-canvas { height: 420px; }
  .v3-steps li p { display: block; }
}
@media (prefers-reduced-motion: reduce) {
  .v3-scene .sc-chat > *, .v3-scene .sc-share > *, .v3-scene .sc-pay > *, .v3-scene .sc-desk > *,
  .v3-scene .sc-card > * { opacity: 1; animation: none !important; }
  .v3-steps li p { display: block; }
}
