/* Confete builder brand: home (index.html) + studio. Off-white, deep ink, a violet->pink signature gradient, confetti accents (lime, yellow, cyan). */
:root {
  --ink: #16111F; --ink2: #514A5E; --ink3: #8A8396; --bg: #FBF9FF; --card: #FFFFFF; --line: #ECE6F5; --soft: #F4EFFC;
  --violet: #6C2BFF; --pink: #FF4FA3; --lime: #C6FF3D; --grad: linear-gradient(135deg, #6C2BFF 0%, #B23CFF 48%, #FF4FA3 100%);
  --fd: "Bricolage Grotesque", "Inter Tight", system-ui, sans-serif; --fb: "Inter Tight", system-ui, -apple-system, sans-serif;
  --r: 22px; --shadow: 0 1px 2px rgba(22, 17, 31, .05), 0 8px 30px rgba(22, 17, 31, .06);
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font: 400 16px/1.5 var(--fb); -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
button { font: inherit; color: inherit; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 800 22px/1 var(--fd); letter-spacing: -.03em; }
.logo i { width: 32px; height: 32px; border-radius: 10px; background: url(/favicon.svg) center/cover; display: block; box-shadow: 0 6px 16px rgba(108, 43, 255, .3); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px; border-radius: 99px; border: 0; cursor: pointer; text-decoration: none;
  font: 650 16px/1 var(--fb); transition: transform .15s, box-shadow .2s, background .2s, opacity .2s; white-space: nowrap; }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .45; cursor: default; }
.btn.pri { background: var(--ink); color: #fff; box-shadow: 0 8px 22px rgba(22, 17, 31, .22); }
.btn.grad { background: var(--grad); color: #fff; box-shadow: 0 10px 26px rgba(178, 60, 255, .35); }
.btn.ghost { background: var(--soft); color: var(--ink); }
.btn.line { background: transparent; border: 1.5px solid var(--line); color: var(--ink); }
.btn.sm { min-height: 38px; padding: 0 14px; font-size: 14.5px; }
.btn.lg { min-height: 58px; padding: 0 28px; font-size: 18px; }
.chip { display: inline-flex; align-items: center; gap: 7px; min-height: 38px; padding: 0 14px; border-radius: 99px; border: 1.5px solid var(--line); background: var(--card); cursor: pointer;
  font: 550 14.5px/1 var(--fb); color: var(--ink); transition: border-color .15s, background .15s, transform .15s; white-space: nowrap; }
.chip:active { transform: scale(.96); }
.chip.on { border-color: var(--ink); background: var(--ink); color: #fff; }
.chip:hover { border-color: #d6cbe8; }
.muted { color: var(--ink2); }
.hide { display: none !important; }
.spin { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid currentColor; border-top-color: transparent; animation: spin .8s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 100; transform: translate(-50%, 16px); opacity: 0; pointer-events: none; padding: 12px 18px; border-radius: 99px; background: var(--ink); color: #fff; font: 600 15px/1.2 var(--fb); transition: .3s cubic-bezier(.22, 1, .36, 1); box-shadow: 0 12px 30px rgba(0, 0, 0, .2); max-width: calc(100vw - 32px); }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ---------------- home: the prompt + a live demo phone, three steps, nothing else ---------------- */
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.nav .r { display: flex; gap: 8px; align-items: center; }
.home-hero { display: grid; grid-template-columns: 1fr; gap: 40px; padding: 26px 0 44px; align-items: center; }
@media (min-width: 980px) { .home-hero { grid-template-columns: 1.08fr .92fr; gap: 64px; padding: 48px 0 64px; } }
.home-hero > *, .ask .row > *, .vibes { min-width: 0; }
html, body { overflow-x: clip; }
.hero-copy { position: relative; }
h1.big { font: 800 clamp(42px, 7.8vw, 76px)/.98 var(--fd); letter-spacing: -.045em; margin: 0 0 16px; text-wrap: balance; }
h1.big em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .04em; }
.lede { font: 500 clamp(18px, 2.3vw, 21px)/1.4 var(--fb); color: var(--ink2); margin: 0 0 26px; text-wrap: pretty; }
/* a few pieces of confetti above the headline: static, they pop in once */
.confetti { position: absolute; left: 0; right: 0; top: -24px; height: 20px; pointer-events: none; }
.confetti i { position: absolute; top: 4px; width: 15px; height: 7px; border-radius: 4px; animation: cf-in .7s cubic-bezier(.34, 1.56, .64, 1) both; }
.confetti i:nth-child(1) { left: 54%; background: var(--lime); transform: rotate(-22deg); animation-delay: .1s; }
.confetti i:nth-child(2) { left: 64%; top: -6px; width: 9px; height: 9px; border-radius: 50%; background: #FFD23F; animation-delay: .18s; }
.confetti i:nth-child(3) { left: 73%; top: 8px; background: #7CF5FF; transform: rotate(28deg); animation-delay: .26s; }
.confetti i:nth-child(4) { left: 82%; top: -4px; width: 8px; height: 8px; border-radius: 50%; background: var(--pink); animation-delay: .34s; }
.confetti i:nth-child(5) { left: 90%; top: 6px; background: var(--violet); transform: rotate(-35deg); animation-delay: .42s; }
.confetti i:nth-child(6) { left: 97%; top: -8px; width: 7px; height: 7px; border-radius: 50%; background: #FF8A00; animation-delay: .5s; }
@keyframes cf-in { from { opacity: 0; transform: translateY(16px) scale(.3); } }
@media (prefers-reduced-motion: reduce) { .confetti i { animation: none; } }
.ask { background: var(--card); border-radius: 28px; padding: 16px; box-shadow: 0 2px 0 rgba(22, 17, 31, .03), 0 20px 60px rgba(108, 43, 255, .12); border: 1.5px solid var(--line); position: relative; }
.ask:focus-within { border-color: #cdbbff; box-shadow: 0 0 0 5px rgba(108, 43, 255, .1), 0 20px 60px rgba(108, 43, 255, .14); }
.ask textarea { width: 100%; min-height: 110px; border: 0; outline: none; resize: none; font: 500 19px/1.45 var(--fb); color: var(--ink); background: transparent; padding: 6px 6px 4px; }
.ask textarea::placeholder { color: #a59db3; }
.ask .row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding-top: 10px; border-top: 1.5px dashed var(--line); }
.vibes { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 2px; margin: 0 -2px; flex: 1 1 260px; }
.vibes::-webkit-scrollbar { display: none; }
.vibes .chip { min-height: 34px; padding: 0 12px; font-size: 13.5px; }
.ask .go { flex: 0 0 auto; }
@media (max-width: 560px) { .ask .go { width: 100%; } }
.examples { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.examples .chip { min-height: 36px; font-size: 14px; color: var(--ink2); }
.err { color: #c21d4b; font-weight: 600; font-size: 15px; margin-top: 10px; }

.phone { position: relative; width: min(100%, 360px); aspect-ratio: 390 / 800; margin: 0 auto; border-radius: 50px; padding: 11px; background: #0d0a14; box-shadow: 0 40px 80px rgba(40, 14, 90, .3), inset 0 0 0 2px #2a2433; }
.phone iframe { width: 100%; height: 100%; border: 0; border-radius: 40px; background: #fff; display: block; }
.phone::before { content: ""; position: absolute; top: 20px; left: 50%; transform: translateX(-50%); width: 92px; height: 26px; border-radius: 99px; background: #0d0a14; z-index: 2; }
.demo { display: flex; flex-direction: column; align-items: center; gap: 16px; overflow: clip; overflow-clip-margin: 40px; padding: 10px 0; }
.demo .tabs { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.glow { position: absolute; inset: -60px; z-index: -1; background: radial-gradient(closest-side, rgba(178, 60, 255, .22), transparent 70%); filter: blur(10px); }

/* how it works, in three words */
.how { list-style: none; margin: 0; padding: 30px 0 10px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; border-top: 1.5px solid var(--line); }
.how li { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; font: 700 15px/1.2 var(--fb); }
.how .e { width: 54px; height: 54px; display: grid; place-items: center; font-size: 27px; border-radius: 18px; background: var(--card); border: 1.5px solid var(--line); box-shadow: var(--shadow); }
@media (min-width: 820px) { .how { grid-template-columns: repeat(3, auto); justify-content: center; gap: 64px; padding-top: 36px; } .how li { flex-direction: row; gap: 14px; font-size: 18px; } }

.sec { padding: 24px 0 48px; }
.sec h2 { font: 800 clamp(28px, 4vw, 40px)/1.05 var(--fd); letter-spacing: -.035em; margin: 0 0 4px; text-wrap: balance; }
.mine { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; margin-top: 18px; }
.mine a { display: block; text-decoration: none; border-radius: var(--r); overflow: hidden; border: 1.5px solid var(--line); background: var(--card); transition: transform .2s, box-shadow .2s; }
.mine a:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.mine .sw { height: 96px; display: grid; place-items: center; font-size: 44px; }
.mine .meta { padding: 14px 16px; }
.mine .meta b { display: block; font: 700 16px/1.3 var(--fb); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mine .meta span { font-size: 13.5px; color: var(--ink3); }
footer.foot { padding: 26px 0 40px; color: var(--ink3); font-size: 13px; margin-top: 30px; }
footer.foot .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }

/* generating overlay */
.gen { position: fixed; inset: 0; z-index: 50; display: none; overflow-y: auto; color: var(--gink, #fff); background: var(--gbg, linear-gradient(160deg, #1b0b3a, #4a1580)); transition: background 1.2s, color .8s; }
.gen.on { display: block; }
.gen .in { max-width: 520px; margin: 0 auto; padding: calc(env(safe-area-inset-top) + 48px) 22px 60px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.gen .orb { width: 150px; height: 150px; border-radius: 50%; display: grid; place-items: center; position: relative; margin-bottom: 26px; }
.gen .orb::before { content: ""; position: absolute; inset: -18px; border-radius: 50%; background: conic-gradient(from 0deg, var(--ga, #C6FF3D), var(--gb, #FF4FA3), var(--ga, #C6FF3D)); animation: spin 3s linear infinite; opacity: .9; -webkit-mask: radial-gradient(closest-side, transparent 80%, #000 82%); mask: radial-gradient(closest-side, transparent 80%, #000 82%); }
.gen .orb .face { width: 150px; height: 150px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .12); }
.gen h2 { font: 800 34px/1.05 var(--fd); letter-spacing: -.03em; margin: 0 0 8px; }
.gen .ft { font: 600 17px/1.35 var(--fb); opacity: .85; min-height: 1.4em; margin-bottom: 26px; }
.gen ul.ck { list-style: none; margin: 0 0 24px; padding: 0; width: 100%; display: flex; flex-direction: column; gap: 10px; text-align: left; }
.gen ul.ck li { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 18px; background: rgba(255, 255, 255, .1); font: 600 16px/1.3 var(--fb); opacity: .45; transition: opacity .4s, background .4s; }
.gen[data-mode="light"] ul.ck li { background: rgba(0, 0, 0, .06); }
.gen ul.ck li.go, .gen ul.ck li.ok { opacity: 1; }
.gen ul.ck li .d { width: 24px; height: 24px; border-radius: 50%; border: 2.5px solid currentColor; opacity: .5; flex: 0 0 auto; display: grid; place-items: center; }
.gen ul.ck li.go .d { border-top-color: transparent; animation: spin .8s linear infinite; opacity: 1; }
.gen ul.ck li.ok .d { background: currentColor; opacity: 1; border-color: transparent; }
.gen ul.ck li.ok .d::after { content: "✓"; color: var(--gbgc, #2a0f55); font: 800 14px/1 var(--fb); }
.gen ul.ck li small { margin-left: auto; font-weight: 600; opacity: .75; font-size: 13.5px; }
.gen .sw { display: flex; gap: 8px; justify-content: center; margin: -4px 0 22px; min-height: 30px; }
.gen .sw i { width: 30px; height: 30px; border-radius: 50%; box-shadow: 0 0 0 2.5px rgba(255, 255, 255, .5); animation: pop .5s cubic-bezier(.34, 1.56, .64, 1) both; }
@keyframes pop { from { transform: scale(0); } to { transform: none; } }
.gen .qs { width: 100%; display: flex; flex-direction: column; gap: 8px; text-align: left; }
.gen .qs div { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 16px; background: rgba(255, 255, 255, .92); color: #16111F; font: 600 15.5px/1.3 var(--fb); animation: qin .55s cubic-bezier(.34, 1.56, .64, 1) both; box-shadow: 0 6px 20px rgba(0, 0, 0, .12); }
.gen .qs div .e { font-size: 22px; width: 28px; text-align: center; }
.gen .qs div .ty { margin-left: auto; font-size: 12px; font-weight: 700; color: #8A8396; text-transform: uppercase; letter-spacing: .05em; white-space: nowrap; }
@keyframes qin { from { opacity: 0; transform: translateY(18px) scale(.96); } to { opacity: 1; transform: none; } }
.gen .fail { margin-top: 18px; display: flex; flex-direction: column; gap: 12px; align-items: center; }
