/* Home hero and example quote panel only. Shared pieces (glass, header, cards, FAQ, stats, closing block) live in site.css / components.css. */
/* hero */
.ui-hero-home { position: relative; grid-template-columns: minmax(0, 1fr); padding-block: 56px 96px; }
.ui-hero-home .ui-hero-main { min-width: 0; }
@media (min-width: 1024px) { .ui-hero-home.ui-hero-split { grid-template-columns: minmax(0, 1fr) 420px; gap: 64px; padding-block: 48px 112px; } }
/* a soft field so the glass panel has something to refract */
.ui-hero-home::before { content: ""; position: absolute; inset: 0 -100vw; z-index: -1; pointer-events: none; background: radial-gradient(60% 18% at 70% 82%, rgba(27, 27, 27, .13), transparent 70%), radial-gradient(50% 14% at 20% 96%, rgba(27, 27, 27, .07), transparent 70%); }
@media (min-width: 1000px) { .ui-hero-home::before { background: radial-gradient(34% 46% at 82% 40%, rgba(27, 27, 27, .16), transparent 70%), radial-gradient(40% 50% at 92% 88%, rgba(27, 27, 27, .08), transparent 70%); } }
.ui-hero-home .ui-pills { margin: 0; }
.ui-hero-home h1 { max-width: 12ch; margin: 22px 0 0; font-size: clamp(2.6rem, 1.45rem + 4.2vw, 5.2rem); line-height: .98; letter-spacing: -.045em; text-wrap: balance; }
.ui-hero-home .ui-lead { max-width: 36ch; margin-top: 22px; }
.ui-hero-home .ui-hero-main > .ui-actions { gap: 14px 22px; margin-top: 32px; }
.ui-hero-home .ui-actions .button { min-height: 54px; padding-inline: 26px; font-size: 17px; }
.ui-hero-home .ui-actions .ui-link { font-size: 16px; font-weight: 600; }

/* quote panel */
.home-qp { --demo-t: 12.5s; position: relative; z-index: 2; overflow: hidden; padding: 20px; background: var(--ui-glass-strong); }
.home-qp-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid rgba(27, 27, 27, .1); }
.home-qp-head h2 { margin: 0; font-size: 17px; font-weight: 650; letter-spacing: -.01em; }
.home-example { padding: 3px 10px; border-radius: 999px; background: rgba(27, 27, 27, .06); color: var(--ui-ink-2); font-size: 12.5px; font-weight: 600; }
.home-model { display: grid; grid-template-columns: 56px 1fr auto; gap: 4px 14px; align-items: center; margin-top: 16px; padding: 12px; border-radius: 14px; background: rgba(255, 255, 255, .62); box-shadow: inset 0 0 0 1px rgba(27, 27, 27, .06); }
.home-model img { grid-row: span 2; width: 56px; height: 56px; border-radius: 10px; object-fit: cover; object-position: 50% 55%; background: #f2f1ee; }
.home-model-name { min-width: 0; overflow: hidden; font-size: 15px; font-weight: 650; letter-spacing: -.01em; text-overflow: ellipsis; white-space: nowrap; }
.home-model-spec { grid-column: 2; color: var(--muted); font-size: 13px; line-height: 1.35; }
.home-model-price { grid-row: 1 / 3; grid-column: 3; font-size: 16px; font-weight: 650; text-align: right; white-space: nowrap; }
.home-model-price small { display: block; color: var(--muted); font-size: 12.5px; font-weight: 400; }
.home-model-meta { display: flex; flex-wrap: wrap; gap: 6px; grid-column: 1 / -1; margin-top: 8px; }
.home-swatch { width: 12px; height: 12px; border-radius: 50%; background: #202020; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); }
.home-add { display: flex; align-items: center; gap: 10px; margin: 8px 0 0; padding: 12px; border-radius: 14px; background: rgba(27, 27, 27, .035); color: var(--ui-ink-2); font-size: 14px; font-weight: 500; }
.home-add-plus { position: relative; flex: none; width: 24px; height: 24px; border-radius: 7px; background: var(--paper); box-shadow: inset 0 0 0 1px rgba(27, 27, 27, .16); }
.home-add-plus::before, .home-add-plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 1.6px; background: var(--ink); transform: translate(-50%, -50%); }
.home-add-plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.home-add small { margin-left: auto; color: var(--muted); font-size: 12.5px; }
.home-lines { margin: 16px 0 0; padding: 0; list-style: none; color: var(--ui-ink-2); font-size: 14px; }
.home-lines li, .home-qnote { display: flex; justify-content: space-between; gap: 12px; }
.home-lines li { padding: 7px 0; }
.home-lines li span:last-child, .home-qnote span:last-child { white-space: nowrap; }
.home-qnote { margin: 2px 0 4px; color: var(--muted); font-size: 13px; }
.home-total { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: 6px; padding-top: 14px; border-top: 1px solid rgba(27, 27, 27, .16); }
.home-total span { font-weight: 650; }
.home-total strong { font-size: clamp(1.9rem, 1.6rem + 1vw, 2.4rem); font-weight: 700; letter-spacing: -.035em; }
.home-vat { margin: 0; color: var(--muted); font-size: 13px; text-align: right; }
.home-qp-titles { display: grid; min-width: 0; }
.home-qp-titles > * { grid-area: 1 / 1; }
.home-demo-title { font-size: 17px; font-weight: 650; letter-spacing: -.01em; }

/* hero order demo: scenes stacked in one grid cell, the example quote (the tallest) sets the height; everything runs on one --demo-t clock.
   Reduced motion (the base) shows the example scene only; the animated parts are decorative (aria-hidden in the markup). */
.home-demo { position: relative; display: grid; margin-top: 16px; }
.home-demo > * { grid-area: 1 / 1; min-width: 0; }
.home-demo > :not(.home-demo-quote), .home-demo-btn, .home-demo-title { display: none; }
.home-demo-scene { display: flex; flex-direction: column; }
.home-demo-btn { align-items: center; justify-content: center; min-height: 48px; margin-top: auto; border-radius: 999px; background: var(--ink); color: var(--paper); font-size: 16px; font-weight: 600; }
.home-demo-quote .home-demo-btn { margin-top: 16px; }
/* Same look as the quote page drop zone: grey tile, ink pill; "over" only darkens the tile (no outline). */
.home-dz { position: relative; display: grid; flex: 1; place-items: center; min-height: 200px; padding: 20px; border-radius: var(--ui-r-tile); background: var(--ui-grey); text-align: center; }
.home-dz::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: rgba(27, 27, 27, .05); }
.home-dz-pill { position: relative; z-index: 1; display: grid; grid-template-columns: auto auto; align-items: center; gap: 8px; min-height: 48px; padding: 0 1.5rem; border-radius: 999px; background: var(--ink); color: var(--paper); font-size: 15px; font-weight: 600; }
.home-dz-icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.home-dz-a, .home-dz-b { grid-area: 1 / 2; }
.home-demo .home-model { margin-top: 0; }
.home-demo-row { grid-template-columns: 56px 1fr; }
.home-demo-row img { grid-row: span 3; }
.home-demo-row > :not(img) { grid-column: 2; }
.home-demo-bar { height: 4px; border-radius: 4px; background: rgba(27, 27, 27, .1); overflow: hidden; }
.home-demo-bar::after { content: ""; display: block; height: 100%; background: var(--ink); transform-origin: 0 50%; }
.home-demo-h { font-size: 17px; font-weight: 650; letter-spacing: -.01em; }
.home-demo-contact { gap: 14px; }
.home-demo-field { display: grid; gap: 6px; }
.home-demo-field small { color: var(--muted); font-size: 13px; }
.home-demo-input { display: flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 12px; background: rgba(255, 255, 255, .62); box-shadow: inset 0 0 0 1px rgba(27, 27, 27, .1); font-size: 15px; }
.home-demo-input span { display: inline-block; white-space: nowrap; }
.home-demo-done { align-items: center; justify-content: center; gap: 6px; text-align: center; }
.home-demo-done b { font-size: 20px; font-weight: 650; letter-spacing: -.015em; }
.home-demo-done small { color: var(--muted); font-size: 13.5px; }
.home-demo-check { width: 56px; height: 56px; margin-bottom: 8px; fill: none; stroke: var(--ink); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.home-demo-check * { stroke-dasharray: 1; }
.home-demo-chip, .home-demo-cursor { pointer-events: none; }
.home-demo-chip { display: grid; place-items: center; }
.home-demo-chip span { display: flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 12px; background: var(--paper); box-shadow: 0 6px 18px rgba(27, 27, 27, .16), inset 0 0 0 1px rgba(27, 27, 27, .08); font-size: 14px; font-weight: 600; }
.home-demo-chip img { border-radius: 7px; object-fit: cover; object-position: 50% 55%; }
.home-demo-cursor { transform-origin: 0 0; }
.home-demo-cursor path { fill: var(--ink); stroke: #fff; stroke-width: 1.2; stroke-linejoin: round; }

@media (prefers-reduced-motion: no-preference) {
  .home-demo > :not(.home-demo-quote) { display: flex; }
  .home-demo > .home-demo-chip { display: grid; }
  .home-demo-btn { display: flex; }
  .home-demo-title { display: block; }
  .home-demo > *, .home-demo-title, .home-qp-titles h2, .home-dz-a, .home-dz-b, .home-dz::after, .home-demo-bar::after,
  .home-demo-btn, .home-type-email, .home-type-name, .home-demo-check *, .home-demo-done b, .home-demo-done small {
    animation-duration: var(--demo-t);
    animation-iteration-count: infinite;
    animation-timing-function: var(--ui-ease);
    animation-fill-mode: both;
  }
  .home-qp:hover *, .home-qp:hover *::after { animation-play-state: paused; }
  .home-demo-title { animation-name: demo-title; }
  .home-qp-titles h2 { animation-name: demo-h2; }
  .home-demo-drop { animation-name: demo-drop; }
  .home-demo-calc { animation-name: demo-calc; }
  .home-demo-quote { animation-name: demo-quote; }
  .home-demo-contact { animation-name: demo-contact; }
  .home-demo-done { animation-name: demo-done; }
  .home-demo-chip { animation-name: demo-chip; }
  .home-demo-cursor { animation-name: demo-cursor; }
  .home-dz::after { animation-name: demo-zone; }
  .home-dz-a { animation-name: demo-zone-off; }
  .home-dz-b { animation-name: demo-zone; }
  .home-demo-bar::after { animation-name: demo-bar; animation-timing-function: linear; }
  .home-demo-next { animation-name: demo-press-next; }
  .home-demo-create { animation-name: demo-press-create; }
  .home-type-email { animation-name: demo-type-email; }
  .home-type-name { animation-name: demo-type-name; }
  .home-demo-check circle { animation-name: demo-ring; }
  .home-demo-check path { animation-name: demo-tick; }
  .home-demo-done b, .home-demo-done small { animation-name: demo-text; }
}
@keyframes demo-title { 0%, 36% { opacity: 1; } 37.5%, 55% { opacity: 0; } 56.5%, 100% { opacity: 1; } }
@keyframes demo-h2 { 0%, 36% { opacity: 0; } 37.5%, 55% { opacity: 1; } 56.5%, 100% { opacity: 0; } }
@keyframes demo-drop { 0%, 23.5% { opacity: 1; } 25%, 97% { opacity: 0; } 99.5%, 100% { opacity: 1; } }
@keyframes demo-calc { 0%, 23.5% { opacity: 0; transform: translateY(8px); } 25.5%, 36% { opacity: 1; transform: none; } 37.5%, 100% { opacity: 0; transform: none; } }
@keyframes demo-quote { 0%, 36% { opacity: 0; transform: translateY(8px); } 38%, 54.5% { opacity: 1; transform: none; } 56.5%, 100% { opacity: 0; transform: none; } }
@keyframes demo-contact { 0%, 56% { opacity: 0; transform: translateY(8px); } 58%, 78.5% { opacity: 1; transform: none; } 80%, 100% { opacity: 0; transform: none; } }
@keyframes demo-done { 0%, 79.5% { opacity: 0; } 82%, 96.5% { opacity: 1; } 99.5%, 100% { opacity: 0; } }
@keyframes demo-zone { 0%, 16% { opacity: 0; } 18%, 100% { opacity: 1; } }
@keyframes demo-zone-off { 0%, 16% { opacity: 1; } 18%, 100% { opacity: 0; } }
@keyframes demo-bar { 0%, 25% { transform: scaleX(0); } 35%, 100% { transform: scaleX(1); } }
@keyframes demo-chip {
  0%, 11.5% { opacity: 0; transform: translate(60%, -60%); }
  12.5% { opacity: 1; }
  20%, 23.5% { opacity: 1; transform: translate(0, -18%) scale(1); }
  25%, 100% { opacity: 0; transform: translate(0, -15%) scale(.9); }
}
@keyframes demo-cursor {
  0%, 11.5% { opacity: 0; transform: translate(115%, -5%) scale(1); }
  12.5% { opacity: 1; }
  20% { opacity: 1; transform: translate(55%, 37%) scale(1); }
  23.5% { opacity: 1; transform: translate(55%, 37%) scale(.88); }
  24.5% { opacity: 1; transform: translate(55%, 37%) scale(1); }
  27%, 37.5% { opacity: 0; transform: translate(85%, 62%) scale(1); }
  40% { opacity: 1; transform: translate(85%, 62%) scale(1); }
  45.5% { opacity: 1; transform: translate(68%, 94%) scale(1); }
  46.5% { opacity: 1; transform: translate(68%, 94%) scale(.88); }
  47.5% { opacity: 1; transform: translate(68%, 94%) scale(1); }
  50%, 69% { opacity: 0; transform: translate(82%, 55%) scale(1); }
  70.5% { opacity: 1; transform: translate(82%, 55%) scale(1); }
  75% { opacity: 1; transform: translate(55%, 94%) scale(1); }
  76% { opacity: 1; transform: translate(55%, 94%) scale(.88); }
  77% { opacity: 1; transform: translate(55%, 94%) scale(1); }
  79%, 100% { opacity: 0; transform: translate(58%, 96%) scale(1); }
}
@keyframes demo-press-next { 0%, 45.5%, 47.5%, 100% { transform: none; } 46.5% { transform: scale(.96); } }
@keyframes demo-press-create { 0%, 75%, 77%, 100% { transform: none; } 76% { transform: scale(.96); } }
@keyframes demo-type-email { 0%, 58.5% { clip-path: inset(0 100% 0 0); animation-timing-function: steps(16, end); } 67%, 100% { clip-path: inset(0); } }
@keyframes demo-type-name { 0%, 67.5% { clip-path: inset(0 100% 0 0); animation-timing-function: steps(5, end); } 71.5%, 100% { clip-path: inset(0); } }
@keyframes demo-ring { 0%, 81% { stroke-dashoffset: 1; } 86.5%, 100% { stroke-dashoffset: 0; } }
@keyframes demo-tick { 0%, 86% { stroke-dashoffset: 1; } 90%, 100% { stroke-dashoffset: 0; } }
@keyframes demo-text { 0%, 88% { opacity: 0; } 91%, 100% { opacity: 1; } }

@media (prefers-reduced-transparency: reduce) { .home-qp { background: var(--paper); } }
