/* Landing: the prompt box is the hero's only control; the build next to it is a real one,
   turning slowly under a lantern glow, and you can take its floors off to look inside.
   Everything below stays quiet so the builds carry the page. */

.hero { position: relative; isolation: isolate; padding: clamp(36px, 7vw, 88px) 0 clamp(28px, 5vw, 56px); overflow: hidden; }
.hero::before { content: ""; position: absolute; right: -10%; top: 6%; width: 70%; height: 90%; pointer-events: none; z-index: -1;
  background: radial-gradient(ellipse 50% 46% at 50% 62%, rgba(243, 178, 60, .12), transparent 70%), radial-gradient(ellipse 60% 50% at 50% 40%, rgba(143, 208, 188, .06), transparent 70%); }
.hero-grid { display: grid; gap: clamp(24px, 4vw, 56px); grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); align-items: center; }
.hero-copy { display: grid; gap: 18px; align-content: center; }
.hero h1 { font-size: clamp(2.6rem, 6.2vw, 4.6rem); margin: 0; line-height: 1; }
.hero .lede { margin: 0; font-size: 1.12rem; max-width: 44ch; }
.hero-prompt { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 14px 12px 12px 16px; display: grid; gap: 10px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .35); transition: border-color .15s, box-shadow .15s; }
.hero-prompt:focus-within { border-color: color-mix(in srgb, var(--accent) 65%, var(--line)); box-shadow: 0 18px 50px rgba(0, 0, 0, .35), 0 0 0 4px color-mix(in srgb, var(--accent) 12%, transparent); }
.hero-prompt textarea { border: 0; background: transparent; padding: 2px 0; min-height: 76px; resize: none; font: 400 1.08rem/1.5 var(--font); color: var(--ink); outline: none; }
.hero-prompt-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.hero-prompt-row .btn { margin-left: auto; min-height: 42px; padding: 9px 20px; border: 0; border-radius: 12px; }
.hero-note { font-size: .88rem; color: var(--good); }
.ideas { display: flex; flex-wrap: wrap; gap: 8px; }
.idea { font: 400 .88rem var(--font); color: var(--ink-2); background: transparent; border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; cursor: pointer; }
.idea:hover { color: var(--ink); border-color: var(--edge); background: var(--panel); }

.hero-build { margin: 0; position: relative; display: grid; gap: 12px; }
.hero-stage { position: relative; background: radial-gradient(ellipse 36% 22% at 50% 63%, rgba(70, 115, 60, .30), rgba(50, 85, 42, .10) 70%, transparent 100%); }
.hero-stage.has-3d { background: none; }   /* the real build is on screen (see js/pages/index.js) */
.hero-stage::before { content: ""; position: absolute; left: 12%; right: 12%; bottom: 10%; height: 34%; pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(243, 178, 60, .18), transparent 70%); filter: blur(14px); }
.hero-build canvas { position: relative; width: 100%; aspect-ratio: 5 / 4; max-width: 100%; display: block; cursor: grab; }
.hero-build canvas:active { cursor: grabbing; }
.peel { position: absolute; left: 50%; bottom: 2%; transform: translateX(-50%); display: flex; align-items: center; gap: 12px; padding: 8px 16px; border-radius: 999px;
  background: color-mix(in srgb, var(--bg) 78%, transparent); border: 1px solid var(--line); backdrop-filter: blur(8px); font-size: .88rem; white-space: nowrap; }
.peel input { width: clamp(110px, 16vw, 180px); margin: 0; }
.hero-build figcaption { color: var(--ink-2); font-size: .88rem; text-align: center; }
.hero-build figcaption strong { color: var(--ink); font-weight: 500; }

.section-head { display: grid; gap: 6px; margin-bottom: 26px; }
.section-head h2 { margin: 0; }
.section-sub { margin: 0; max-width: 60ch; }
.gallery { display: grid; gap: 16px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.build-card { margin: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; display: grid; transition: border-color .2s; }
.build-card:hover { border-color: var(--edge); }
.build-card canvas { width: 100%; aspect-ratio: 1 / 1; display: block; cursor: grab;
  background: radial-gradient(ellipse 70% 55% at 50% 66%, rgba(243, 178, 60, .09), transparent 70%), radial-gradient(ellipse 80% 70% at 50% 55%, #20303a, var(--panel) 78%); }
.build-card canvas:active { cursor: grabbing; }
.build-card figcaption { padding: 12px 14px 14px; display: grid; gap: 2px; border-top: 1px solid var(--line); }
.build-card figcaption strong { font-weight: 600; }
.build-card figcaption span { color: var(--ink-2); font-size: .86rem; }

/* hero: dots to turn through a few builds */
.hero-dots { display: flex; justify-content: center; gap: 4px; min-height: 28px; }   /* its row is reserved before the builds are known */
.hero-dot { width: 28px; height: 28px; padding: 0; border: 0; background: transparent; cursor: pointer; border-radius: 50%; display: grid; place-items: center; }
.hero-dot::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--edge); transition: background .15s, transform .15s; }
.hero-dot:hover::before { background: var(--ink-2); }
.hero-dot[aria-pressed="true"]::before { background: var(--accent); transform: scale(1.25); }
.hero-build figcaption a { color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }

/* "Made with Plotwright": a live build next to the request it came from */
.made-grid { display: grid; gap: 18px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.made-card { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); transition: border-color .2s; }
.made-card:hover { border-color: var(--edge); }
.made-stage { position: relative; min-height: 290px; overflow: hidden; border-right: 1px solid var(--line);
  background: radial-gradient(ellipse 70% 55% at 50% 66%, rgba(243, 178, 60, .10), transparent 70%), radial-gradient(ellipse 80% 70% at 50% 55%, #20303a, var(--panel) 78%); }
.made-stage canvas, .made-poster { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.made-stage canvas { cursor: grab; }
.made-stage canvas:active { cursor: grabbing; }
.made-poster { object-fit: cover; pointer-events: none; }   /* first in the stage: the live canvas fades in over it */
.made-poster[hidden], .made-note[hidden] { display: none; }
.made-note { position: absolute; inset: auto 12px 12px; margin: 0; font-size: .84rem; color: var(--ink-2); text-align: center; }
.made-style { position: absolute; left: 10px; top: 10px; display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; color: var(--ink);
  padding: 3px 9px 3px 7px; border-radius: 999px; background: color-mix(in srgb, var(--bg) 72%, transparent); border: 1px solid var(--line); backdrop-filter: blur(6px); pointer-events: none; }
.made-body { padding: 16px 16px 16px; display: grid; gap: 10px; align-content: start; min-width: 0; }
.made-body h3 { margin: 0; font-size: 1.12rem; }
.made-meta { margin: -6px 0 0; color: var(--ink-2); font-size: .86rem; }
.made-chat { display: grid; gap: 8px; margin-top: 2px; }
.bubble { max-width: 100%; font-size: .9rem; line-height: 1.5; padding: 9px 13px; overflow-wrap: anywhere; }
.bubble-you { background: var(--azalea-soft); color: var(--ink); border-radius: 16px 16px 4px 16px; justify-self: end; }
.bubble-text { display: -webkit-box; -webkit-line-clamp: 7; line-clamp: 7; -webkit-box-orient: vertical; overflow: hidden; }
.made-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.made-actions .btn { flex: 1 1 auto; justify-content: center; text-align: center; }
.gallery-caption { margin: 16px 0 0; }
/* placeholders with the size of what loads next (the gallery, the prices) */
.made-card.is-skeleton .made-body { align-content: start; gap: 12px; }
.made-card.is-skeleton .sk-title { height: 1.3rem; width: 55%; }
.made-card.is-skeleton .sk-bubble { height: 5.2rem; }
.price-table .sk-line { margin: .2em 0; }
.sw { --w: #c9c3b4; --r: #6d7a71; --a: var(--accent); position: relative; display: inline-block; width: 14px; height: 14px; flex: none; }
.sw::before { content: ""; position: absolute; inset: 0 0 50% 0; background: var(--r); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.sw::after { content: ""; position: absolute; inset: 50% 13% 0 13%; border-radius: 0 0 2px 2px; background: linear-gradient(90deg, var(--w) 0 62%, var(--a) 62% 100%); }

.how { list-style: none; padding: 0; margin: 0; display: grid; gap: 28px; grid-template-columns: repeat(3, minmax(0, 1fr)); counter-reset: how; }
.how li { counter-increment: how; display: grid; gap: 6px; align-content: start; padding-top: 16px; border-top: 1px solid var(--line); }
.how li::before { content: counter(how); font: 600 1.9rem/1 var(--font); color: var(--accent); font-variant-numeric: tabular-nums; }
.how h3 { margin: 0; }
.how p { margin: 0; color: var(--ink-2); }
.works-with { margin: 30px 0 0; color: var(--ink-2); }
.works-with strong { color: var(--ink); font-weight: 500; }

.pack-grid { display: grid; gap: 14px; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 22px; }
.pack-card { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 18px; display: grid; gap: 4px; align-content: start; position: relative; }
.pack-card h3 { margin: 0 0 8px; font-size: 1rem; color: var(--ink-2); font-weight: 500; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.pack-card h3 .badge { position: static; }
.pack-card.is-best { border-color: color-mix(in srgb, var(--accent) 70%, var(--line)); background: linear-gradient(180deg, var(--accent-soft), var(--panel) 70%); }
.pack-price { font: 600 2.1rem/1 var(--font); letter-spacing: -.01em; color: var(--ink); font-variant-numeric: tabular-nums; }
.pack-credits { font-weight: 600; font-size: 1.05rem; margin-top: 6px; }
.pack-credits span { font-weight: 400; color: var(--ink-2); }
.pack-reach { font-size: .9rem; color: var(--ink); margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.pack-rate { font-size: .82rem; color: var(--ink-2); }
.price-table { margin-bottom: 10px; }
.price-table th .badge { margin-left: 8px; white-space: nowrap; }
/* a narrow first column puts the pill on its own line under the name instead of squeezing it into a round blob */
@media (max-width: 520px) { .price-table th .badge { display: flex; width: max-content; margin: 6px 0 0; } }
.faq { max-width: 780px; }

.cta-band { margin-top: 24px; background:
  radial-gradient(ellipse 50% 120% at 50% 100%, rgba(243, 178, 60, .12), transparent 70%), var(--panel); }
.cta-inner { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; justify-content: center; }
.cta-inner h2 { margin: 0; font: 700 clamp(1.6rem, 4vw, 2.3rem)/1.1 var(--font-pixel); }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-build canvas { aspect-ratio: 16 / 11; }
  .gallery, .pack-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .made-grid { grid-template-columns: minmax(0, 1fr); }
  .how { grid-template-columns: minmax(0, 1fr); gap: 20px; }
}
@media (max-width: 520px) {
  .hero h1 { font-size: clamp(2.3rem, 11vw, 3rem); }
  .gallery { grid-template-columns: minmax(0, 1fr); }
  .made-card { grid-template-columns: minmax(0, 1fr); }
  .made-stage { min-height: 0; aspect-ratio: 4 / 3; border-right: 0; border-bottom: 1px solid var(--line); }
  .made-actions .btn { flex: 1 1 100%; }
  .pack-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-build canvas { aspect-ratio: 1 / 1; }
}
/* in-page jumps (#gallery, #pricing) stop below the sticky header, not under it */
main > .section[id] { scroll-margin-top: 72px; }
/* fingers: the dots' tap area is 44px (the dot drawn inside stays small) */
@media (max-width: 760px) { .hero-dots { min-height: 44px; gap: 0; } .hero-dot { width: 44px; height: 44px; } }
