/* ============================================================
   Wingz editor — animated product demo for the landing hero.
   Two-column layout mirroring the real editor: a narrow full-height
   chat column + a large preview. Mounted into the Framer "Dashboard"
   container after hydration; the original mockup is hidden.
   ============================================================ */
.wz-host { position: relative !important; }
/* Hide the original Framer mockup IMMEDIATELY (in <head>, at first paint) so
   there is no flash of the old dashboard, and remove it from layout so the
   container can adopt a shorter 16:9 ratio. */
#navbar-trigger > :not(#wingz-demo),
[data-framer-name="Dashboard"] > :not(#wingz-demo),
.wz-host > :not(#wingz-demo) { display: none !important; }
#navbar-trigger, [data-framer-name="Dashboard"] {
  position: relative; height: auto !important; aspect-ratio: 16 / 9;
}

#wingz-demo {
  --accent: #F96029;
  --accent-weak: rgba(249, 96, 41, 0.10);
  --accent-line: rgba(249, 96, 41, 0.42);
  --fg: #1A1C21;
  --bg: #ffffff;
  --surface: #F7F7F8;
  --surface2: #F1F2F4;
  --border: #E6E7EA;
  --border2: #D8DADF;
  --shadow-card: 0 1px 2px rgba(16,24,40,.05);
  --shadow-hover: 0 1px 3px rgba(16,24,40,.06), 0 10px 30px -8px rgba(16,24,40,.14);
  --font: "Inter Display", "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --serif: "Instrument Serif", "Times New Roman", Georgia, serif;

  position: absolute; inset: 0;
  font-family: var(--font); color: var(--fg);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  container-type: inline-size;
  animation: wz-fadein .5s ease both;
}
#wingz-demo *, #wingz-demo *::before, #wingz-demo *::after { box-sizing: border-box; }

.wz-card {
  position: absolute; inset: 0; display: flex;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 16px; box-shadow: var(--shadow-hover); overflow: hidden;
}

/* =================== Chat column (left) =================== */
.wz-chat { width: 300px; flex: 0 0 300px; display: flex; flex-direction: column; background: #fff; border-right: 1px solid var(--border); min-height: 0; }
.wz-chat-head { display: flex; align-items: center; gap: 9px; height: 53px; flex: 0 0 53px; padding: 0 12px; border-bottom: 1px solid var(--border); }
.wz-logo { display: inline-flex; align-items: center; flex: 0 0 auto; }
.wz-logo svg { display: block; height: 13px; width: auto; color: var(--fg); }
.wz-ch-meta { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; line-height: 1.1; }
.wz-ch-title { font-size: 12.5px; font-weight: 600; letter-spacing: -.01em; }
.wz-ch-status { font-size: 10.5px; color: rgba(26,28,33,.45); display: inline-flex; align-items: center; gap: 5px; }
.wz-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); display: inline-block; }
.wz-dot.pulse { animation: wz-pulse 1.1s ease-in-out infinite; }
.wz-newsite { display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 8px; border: 1px solid var(--border); border-radius: 8px; background: #fff; font-size: 11px; font-weight: 500; color: rgba(26,28,33,.7); box-shadow: var(--shadow-card); white-space: nowrap; }
.wz-newsite svg { width: 12px; height: 12px; }

.wz-recent { display: flex; align-items: center; gap: 6px; padding: 9px 12px; border-bottom: 1px solid var(--border); overflow: hidden; }
.wz-recent-l { font-size: 10px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: rgba(26,28,33,.38); flex: 0 0 auto; }
.wz-rchip { font-size: 11px; padding: 4px 9px; border-radius: 8px; border: 1px solid var(--border); color: rgba(26,28,33,.6); white-space: nowrap; flex: 0 0 auto; }
.wz-rchip.active { background: var(--fg); color: #fff; border-color: var(--fg); }

.wz-msgs { flex: 1; min-height: 0; overflow: hidden; padding: 14px; display: flex; flex-direction: column; gap: 14px; }
.wz-msg-user { display: flex; justify-content: flex-end; }
.wz-msg-user > div { max-width: 230px; background: var(--surface2); color: rgba(26,28,33,.88); border-radius: 14px 14px 5px 14px; padding: 7px 12px; font-size: 12px; line-height: 1.42; }
.wz-msg-ai { font-size: 12px; line-height: 1.6; color: rgba(26,28,33,.78); max-width: 250px; }
.wz-activity { display: flex; flex-direction: column; gap: 6px; }
.wz-act-row { display: flex; align-items: center; gap: 7px; font-size: 11.5px; line-height: 1.3; color: rgba(26,28,33,.6); }
.wz-act-row .wz-ico { width: 13px; height: 13px; flex: 0 0 13px; color: rgba(26,28,33,.32); }
.wz-act-row.is-live .wz-ico { color: var(--accent); animation: wz-spin .9s linear infinite; }
.wz-chip { display: inline-flex; align-items: center; max-width: 130px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; border: 1px solid var(--border); background: var(--surface); color: rgba(26,28,33,.65); border-radius: 6px; padding: 1px 6px; font-size: 10px; font-weight: 500; margin-left: 3px; }
.wz-enter { animation: wz-enter .32s cubic-bezier(.2,.7,.3,1) both; }

.wz-suggest { padding: 10px 14px 0; }
.wz-suggest-l { display: inline-flex; align-items: center; gap: 5px; font-size: 10px; font-weight: 500; color: rgba(26,28,33,.4); margin-bottom: 7px; }
.wz-suggest-l svg { width: 11px; height: 11px; }
.wz-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.wz-sug { border: 1px solid var(--border); background: #fff; color: rgba(26,28,33,.6); border-radius: 8px; padding: 4px 9px; font-size: 11px; font-weight: 500; }

.wz-input-wrap { padding: 10px 14px 14px; }
.wz-input { border: 1px solid var(--border); border-radius: 14px; background: #fff; box-shadow: var(--shadow-card); overflow: hidden; }
.wz-input.focus { border-color: var(--border2); box-shadow: 0 0 0 3px rgba(249,96,41,.08); }
.wz-ta { min-height: 48px; padding: 10px 12px 4px; font-size: 12.5px; line-height: 1.45; color: var(--fg); white-space: pre-wrap; word-break: break-word; }
.wz-ta .ph { color: rgba(26,28,33,.35); }
.wz-caret { display: inline-block; width: 1.5px; height: 14px; background: var(--accent); vertical-align: -2px; margin-left: 1px; animation: wz-blink 1s step-end infinite; }
.wz-input-row { display: flex; align-items: center; justify-content: space-between; padding: 2px 8px 8px; }
.wz-attach { width: 26px; height: 26px; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 8px; background: #fff; color: rgba(26,28,33,.55); }
.wz-attach svg { width: 13px; height: 13px; }
.wz-send { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--fg); color: #fff; border: 0; transition: background .2s, transform .12s; }
.wz-send svg { width: 14px; height: 14px; }
.wz-send.go { background: var(--accent); }

/* =================== Main column (right) =================== */
.wz-main { flex: 1; min-width: 0; display: flex; flex-direction: column; min-height: 0; }
.wz-top { display: flex; align-items: center; justify-content: space-between; gap: 14px; height: 53px; flex: 0 0 53px; padding: 0 14px; background: #fff; border-bottom: 1px solid var(--border); }
.wz-top-l { display: flex; align-items: center; gap: 9px; min-width: 0; }
.wz-top-l .wz-mark svg { height: 13px; width: auto; display: block; color: var(--fg); }
.wz-top-div { width: 1px; height: 18px; background: var(--border); }
.wz-top-meta { display: flex; flex-direction: column; gap: 1px; line-height: 1.1; min-width: 0; }
.wz-top-name { font-size: 12.5px; font-weight: 600; letter-spacing: -.01em; }
.wz-top-sub { font-size: 10.5px; color: rgba(26,28,33,.45); }
.wz-seg { display: inline-flex; align-items: center; gap: 2px; background: var(--surface2); padding: 3px; border-radius: 9px; }
.wz-seg button { font: inherit; font-size: 12px; font-weight: 500; color: rgba(26,28,33,.55); border: 0; background: transparent; padding: 5px 13px; border-radius: 6px; }
.wz-seg button.is-active { background: #fff; color: var(--fg); box-shadow: var(--shadow-card); }
.wz-top-r { display: flex; align-items: center; gap: 7px; }
.wz-credits { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 500; color: var(--fg); border: 1px solid var(--border); background: var(--surface); padding: 5px 9px; border-radius: 8px; }
.wz-credits .wz-coin { width: 12px; height: 12px; color: var(--accent); }
.wz-btn { font: inherit; font-size: 11.5px; font-weight: 500; border: 1px solid var(--border); background: #fff; color: rgba(26,28,33,.8); padding: 5px 10px; border-radius: 8px; display: inline-flex; align-items: center; gap: 5px; }
.wz-btn.wz-primary { background: var(--fg); color: #fff; border-color: var(--fg); }
.wz-btn svg { width: 12px; height: 12px; }
.wz-iconbtn { width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 8px; background: #fff; color: rgba(26,28,33,.55); }
.wz-iconbtn svg { width: 14px; height: 14px; }

.wz-ptool { display: flex; align-items: center; gap: 10px; height: 42px; flex: 0 0 42px; padding: 0 12px; background: #fff; border-bottom: 1px solid var(--border); }
.wz-ptool-icons { display: inline-flex; align-items: center; gap: 4px; color: rgba(26,28,33,.4); }
.wz-ptool-icons svg { width: 15px; height: 15px; }
.wz-soon { font-size: 10px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: rgba(26,28,33,.4); background: var(--surface2); border-radius: 6px; padding: 2px 7px; }
.wz-url { display: flex; align-items: center; gap: 6px; height: 28px; min-width: 0; flex: 1 1 auto; max-width: 420px; margin: 0 auto; border: 1px solid var(--border); background: var(--surface); border-radius: 8px; padding: 0 8px; }
.wz-url .wz-refresh { display: grid; place-items: center; color: rgba(26,28,33,.45); }
.wz-url svg { width: 12px; height: 12px; }
.wz-url .wz-urltext { font-family: var(--mono); font-size: 11px; color: rgba(26,28,33,.55); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wz-ptool-r { display: inline-flex; align-items: center; gap: 7px; }
.wz-select { display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 9px; border: 1px solid var(--border); border-radius: 8px; background: #fff; color: rgba(26,28,33,.55); font-size: 11px; font-weight: 500; transition: background .18s, color .18s, border-color .18s; }
.wz-select svg { width: 13px; height: 13px; }
.wz-select.is-active { background: var(--accent); border-color: var(--accent); color: #fff; }
.wz-vp { display: inline-flex; align-items: center; gap: 2px; border: 1px solid var(--border); border-radius: 8px; padding: 3px; background: #fff; }
.wz-vp button { width: 24px; height: 22px; display: grid; place-items: center; border: 0; background: transparent; color: rgba(26,28,33,.45); border-radius: 5px; }
.wz-vp button.is-active { background: var(--surface2); color: var(--fg); }
.wz-vp svg { width: 13px; height: 13px; }

.wz-canvas { flex: 1; min-height: 0; padding: 12px; display: flex; background: var(--surface); }
.wz-frame { flex: 1; min-width: 0; border: 1px solid var(--border2); border-radius: 10px; overflow: hidden; background: #0e0f12; box-shadow: var(--shadow-card); position: relative; }

/* =================== mini website inside the preview =================== */
.wz-scroll { position: absolute; inset: 0; transition: transform .9s cubic-bezier(.4,.05,.2,1); will-change: transform; }

.wz-site { position: relative; height: 100%; display: flex; flex-direction: column; color: #fff; overflow: hidden; }
.wz-site-fallback { position: absolute; inset: 0; background: radial-gradient(120% 90% at 80% -10%, #3a4a63 0%, rgba(58,74,99,0) 55%), linear-gradient(180deg, #1b2433 0%, #0d1118 100%); }
.wz-site-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.wz-site-tint { position: absolute; inset: 0; opacity: 0; transition: opacity .9s ease; background: radial-gradient(120% 95% at 78% -8%, rgba(249,96,41,.58) 0%, rgba(249,96,41,0) 52%), linear-gradient(180deg, rgba(70,24,8,.26) 0%, rgba(20,8,4,.5) 100%); }
.wz-site-scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,10,14,.22) 0%, rgba(8,10,14,.58) 100%); }
.wz-site-inner { position: relative; flex: 1; display: flex; flex-direction: column; padding: 18px 34px 34px; }
.wz-snav { display: flex; align-items: center; justify-content: space-between; }
.wz-snav-l { font-family: var(--serif); font-size: 19px; letter-spacing: .2px; }
.wz-snav-mid { display: flex; align-items: center; }
.wz-snav-links { display: flex; align-items: center; gap: 20px; font-size: 12px; color: rgba(255,255,255,.74); }
.wz-snav-r { display: flex; align-items: center; gap: 16px; }
.wz-snav-login { font-size: 12px; color: rgba(255,255,255,.74); }
.wz-snav-cta { font-size: 12px; padding: 7px 14px; border-radius: 999px; background: #fff; color: #14161b; font-weight: 500; }
.wz-shero { margin-top: auto; max-width: 560px; }
.wz-spill { display: inline-flex; align-items: center; gap: 8px; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.82); border: 1px solid rgba(255,255,255,.26); border-radius: 999px; padding: 5px 12px; margin-bottom: 16px; }
.wz-spill b { color: var(--accent); font-weight: 600; letter-spacing: .03em; text-transform: none; }
.wz-shead { font-family: var(--serif); font-weight: 400; font-size: 40px; line-height: 1.04; letter-spacing: -.005em; }
.wz-shead .swap { transition: opacity .55s ease; display: block; }
.wz-shead.bolden { font-weight: 600; letter-spacing: -.015em; }
.wz-ssub { margin-top: 14px; font-size: 13.5px; line-height: 1.5; color: rgba(255,255,255,.72); max-width: 400px; }
.wz-scta { margin-top: 22px; display: inline-flex; align-items: center; gap: 8px; background: #fff; color: #14161b; font-size: 12.5px; font-weight: 500; padding: 10px 17px; border-radius: 999px; }

/* marquee between sections */
.wz-marquee { background: #0b0c0f; border-top: 1px solid rgba(255,255,255,.07); border-bottom: 1px solid rgba(255,255,255,.07); overflow: hidden; padding: 15px 0; }
.wz-marquee-track { display: flex; gap: 46px; width: max-content; animation: wz-marq 22s linear infinite; padding-left: 46px; }
.wz-marquee-track span { font-family: var(--serif); font-size: 21px; color: rgba(255,255,255,.32); white-space: nowrap; }

/* shared eyebrow (small accent square + uppercase label) */
.wz-eyebrow { display: inline-flex; align-items: center; gap: 9px; font-size: 10.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: rgba(26,28,33,.5); }
.wz-eyebrow::before { content: ""; width: 7px; height: 7px; background: var(--accent); display: inline-block; flex: 0 0 7px; }

/* "Why" section — cream, headline + subtext + dark button, then the stats row */
.wz-why { max-height: 0; opacity: 0; overflow: hidden; background: #F4F3EE; color: var(--fg); transition: max-height .7s ease, opacity .5s ease; }
.wz-why.added { max-height: 620px; opacity: 1; }
.wz-why-in { padding: 36px 40px 40px; }
.wz-why .wz-eyebrow { margin-bottom: 18px; }
.wz-why-head { font-family: var(--serif); font-weight: 400; font-size: 38px; line-height: 1.05; letter-spacing: -.01em; max-width: 560px; }
.wz-why-sub { margin-top: 14px; font-size: 14px; line-height: 1.5; color: rgba(26,28,33,.6); max-width: 430px; }
.wz-why-btn { margin-top: 22px; display: inline-flex; background: var(--fg); color: #fff; font-size: 12.5px; font-weight: 500; padding: 10px 18px; border-radius: 999px; }
.wz-stats-grid { margin-top: 36px; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid rgba(26,28,33,.16); }
.wz-stat { padding: 26px 28px 4px; border-right: 1px solid rgba(26,28,33,.10); }
.wz-stat:first-child { padding-left: 0; }
.wz-stat:last-child { border-right: 0; }
.wz-stat-num { font-family: var(--serif); font-size: 54px; line-height: 1; letter-spacing: -.01em; }
.wz-stat-label { font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: rgba(26,28,33,.5); margin-top: 16px; }

/* "How we work" section — dark, centered intro + numbered steps + image */
.wz-process { max-height: 0; opacity: 0; overflow: hidden; background: #0a0b0e; color: #fff; transition: max-height .7s ease, opacity .5s ease; }
.wz-process.added { max-height: 760px; opacity: 1; }
.wz-process-in { padding: 42px 40px 46px; }
.wz-proc-top { text-align: center; max-width: 520px; margin: 0 auto 38px; }
.wz-proc-top .wz-eyebrow { color: rgba(255,255,255,.55); margin-bottom: 16px; }
.wz-proc-top .wz-eyebrow::before { background: var(--accent); }
.wz-proc-head { font-family: var(--serif); font-weight: 400; font-size: 38px; line-height: 1.06; letter-spacing: -.01em; }
.wz-proc-sub { margin-top: 14px; font-size: 14px; line-height: 1.5; color: rgba(255,255,255,.6); }
.wz-proc-btn { margin-top: 22px; display: inline-flex; background: #fff; color: #14161b; font-size: 12.5px; font-weight: 500; padding: 10px 18px; border-radius: 999px; }
.wz-proc-grid { display: grid; grid-template-columns: 0.92fr 1.08fr; gap: 40px; align-items: stretch; }
.wz-step { display: grid; grid-template-columns: 30px 1fr; gap: 8px; padding: 18px 0; border-top: 1px solid rgba(255,255,255,.13); }
.wz-step:first-child { border-top: 0; padding-top: 2px; }
.wz-step-n { font-size: 11px; color: rgba(255,255,255,.4); padding-top: 5px; }
.wz-step-t { font-family: var(--serif); font-size: 21px; line-height: 1.1; }
.wz-step-d { font-size: 12.5px; line-height: 1.5; color: rgba(255,255,255,.55); margin-top: 5px; }
.wz-proc-img { border-radius: 12px; min-height: 250px; position: relative; overflow: hidden;
  background-image: url("/pexels-tima-miroshnichenko-7203902.jpg");
  background-size: cover; background-position: center; }
.wz-proc-img::after { content: ""; position: absolute; inset: 0; border-radius: 12px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }

/* generating shimmer */
.wz-frame::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; background: linear-gradient(100deg, transparent 20%, rgba(249,96,41,.10) 50%, transparent 80%); background-size: 220% 100%; transition: opacity .3s; }
.wz-frame.busy::after { opacity: 1; animation: wz-shimmer 1.3s linear infinite; }

/* selection outline */
.wz-selbox { position: absolute; border: 1.5px solid var(--accent); border-radius: 6px; opacity: 0; transition: opacity .2s; pointer-events: none; box-shadow: 0 0 0 3px rgba(249,96,41,.16); }
.wz-selbox::before { content: "Heading"; position: absolute; top: -19px; left: -1.5px; background: var(--accent); color: #fff; font-size: 10px; font-weight: 600; line-height: 1; padding: 3px 6px; border-radius: 5px 5px 5px 0; }
.wz-selbox.show { opacity: 1; }

/* fake cursor */
.wz-cursor { position: absolute; top: 0; left: 0; width: 21px; height: 21px; z-index: 40; pointer-events: none; transform: translate(40px,40px); transition: transform .62s cubic-bezier(.4,.1,.2,1); opacity: 0; filter: drop-shadow(0 2px 4px rgba(0,0,0,.3)); }
.wz-cursor.show { opacity: 1; }

@keyframes wz-spin { to { transform: rotate(360deg); } }
@keyframes wz-blink { 50% { opacity: 0; } }
@keyframes wz-pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes wz-enter { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes wz-shimmer { from { background-position: 120% 0; } to { background-position: -120% 0; } }
@keyframes wz-fadein { from { opacity: 0; } to { opacity: 1; } }
@keyframes wz-marq { from { transform: translateX(0); } to { transform: translateX(-50%); } }

@container (max-width: 1000px) {
  .wz-chat { width: 264px; flex-basis: 264px; }
  .wz-shead { font-size: 34px; }
}

/* ---- phone: uniform scale -------------------------------------------------
   On narrow hosts (phones) the JS adds .wz-scaled: the editor is laid out at a
   fixed desktop reference width and the WHOLE node is scaled down as one piece,
   so the hero dashboard looks identical to desktop just smaller — instead of the
   columns and type each resizing on their own and looking mismatched. The class
   is only ever added below ~700px host width, so tablet + desktop keep the
   existing fluid layout untouched. The pointer/selection math in wingz-demo.js
   divides by this scale, so the animated cursor still lands correctly. -------- */
#wingz-demo.wz-scaled {
  inset: auto; top: 0; left: 0;
  width: var(--wz-ref-w, 940px);
  height: var(--wz-ref-h, 528.75px);
  transform: scale(var(--wz-s, 1));
  transform-origin: top left;
}
