/* VibeAway waitlist styles. Dark neon, moving gradients, sticker highlights. Motion is switched off for prefers-reduced-motion. */
:root {
  --ink: #07070d;
  --ink-2: #11111c;
  --line: #26263d;
  --text: #f6f5ff;
  --mut: #a19fc0;
  --violet: #8b5cf6;
  --pink: #ff4d8d;
  --cyan: #3de6ff;
  --lime: #c6ff3d;
  --grad: linear-gradient(100deg, #8b5cf6, #ff4d8d, #ffb86b, #3de6ff, #8b5cf6);
  --sans: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --mx: 70vw; --my: 20vh;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; color-scheme: dark; }
body { margin: 0; background: var(--ink); color: var(--text); font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.grad { background: var(--grad); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; }
.flow { animation: flow 8s linear infinite; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 6px; }

.aura { position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(520px 520px at var(--mx) var(--my), rgba(139,92,246,.22), transparent 70%),
    radial-gradient(700px 420px at 10% -5%, rgba(139,92,246,.32), transparent 70%),
    radial-gradient(520px 380px at 95% 5%, rgba(255,77,141,.2), transparent 70%),
    radial-gradient(700px 500px at 50% 115%, rgba(61,230,255,.08), transparent 70%); }
#fx { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }

.nav { display: flex; justify-content: space-between; align-items: center; max-width: 1160px; margin: 0 auto; padding: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { transition: transform .4s cubic-bezier(.3,1.6,.5,1); }
.brand:hover .brand-mark { transform: rotate(-12deg) scale(1.15); }
.brand-word { font-weight: 700; font-size: 22px; letter-spacing: -.02em; }
.brand-word.small { font-size: 18px; }
.nav-cta { font: 500 14px var(--mono); text-decoration: none; padding: 9px 14px; border: 1px solid var(--line); border-radius: 999px; background: rgba(7,7,13,.6); backdrop-filter: blur(8px); transition: border-color .2s, transform .2s; }
.nav-cta:hover { border-color: var(--lime); transform: rotate(-2deg) scale(1.05); }

main { max-width: 1160px; margin: 0 auto; padding: 0 20px; }

.hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; min-height: calc(100vh - 90px); padding: 24px 0 64px; }
.eyebrow { font: 500 12px var(--mono); color: var(--mut); text-transform: uppercase; letter-spacing: .08em; margin: 0 0 18px; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--lime); margin-right: 6px; box-shadow: 0 0 10px var(--lime); animation: pulse 1.6s infinite; }
h1 { font-size: clamp(44px, 7.4vw, 84px); line-height: 1.02; letter-spacing: -.035em; margin: 0 0 20px; font-weight: 700; }
.lede { font-size: clamp(17px, 2vw, 21px); color: #d3d1ee; max-width: 560px; margin: 0 0 28px; }

.join { max-width: 560px; }
.roles { display: flex; gap: 8px; border: 0; padding: 0; margin: 0 0 12px; }
.roles label { cursor: pointer; }
.roles input { position: absolute; opacity: 0; }
.roles span { display: inline-block; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); font: 500 14px var(--mono); color: var(--mut); background: rgba(7,7,13,.6); transition: all .25s cubic-bezier(.3,1.6,.5,1); }
.roles label:hover span { transform: translateY(-2px); }
.roles input:checked + span { color: var(--ink); background: var(--lime); border-color: var(--lime); transform: rotate(-2deg) scale(1.05); }
.roles input:focus-visible + span { outline: 2px solid var(--lime); outline-offset: 3px; }
.row { display: flex; gap: 8px; margin-bottom: 8px; }
input[type=email], input[type=url], input[type=text] { flex: 1; min-width: 0; padding: 15px 16px; font: 400 16px var(--sans); color: var(--text); background: var(--ink-2); border: 1px solid var(--line); border-radius: 12px; transition: border-color .2s, box-shadow .2s; }
input::placeholder { color: #6c6a8a; }
input:focus { outline: none; border-color: var(--lime); box-shadow: 0 0 0 4px rgba(198,255,61,.16); }
button, .btn { font: 700 16px var(--sans); color: #fff; border: 0; padding: 15px 22px; border-radius: 12px; background: var(--grad); background-size: 300% 100%; animation: flow 6s linear infinite; cursor: pointer; text-decoration: none; display: inline-block; white-space: nowrap; transition: transform .2s cubic-bezier(.3,1.6,.5,1); }
button:hover, .btn:hover { transform: translateY(-2px) scale(1.04) rotate(-1deg); }
button:active, .btn:active { transform: scale(.96); }
button[disabled] { opacity: .65; cursor: wait; }
.hp { position: absolute; left: -9999px; }
.meter { margin: 6px 0 0; font: 500 12px var(--mono); color: var(--mut); }
.meter b { color: var(--lime); letter-spacing: 2px; font-weight: 500; }
.fine { font-size: 13px; color: var(--mut); margin: 8px 0 0; }
.status { min-height: 1.4em; margin: 6px 0 0; font: 500 14px var(--mono); color: var(--pink); }
.shake { animation: shake .45s; }
.app-row[hidden] { display: none; }

.done { max-width: 560px; border: 1px solid var(--lime); background: rgba(17,17,28,.85); border-radius: 20px; padding: 26px; box-shadow: 0 0 60px rgba(198,255,61,.12); animation: pop .6s cubic-bezier(.3,1.6,.5,1); }
.done[hidden] { display: none; }
.done-emoji { font-size: 44px; margin: 0; line-height: 1; animation: bounce 1.2s infinite; }
.done h2 { margin: 8px 0; font-size: 30px; letter-spacing: -.02em; line-height: 1.15; }
.done p { color: #d3d1ee; }
.share { display: flex; gap: 8px; margin: 14px 0 12px; }
.share input { font-family: var(--mono); font-size: 14px; }
.x-share { font: 500 14px var(--mono); color: var(--lime); }

/* Phone that builds apps in a loop */
.stage-wrap { display: flex; flex-direction: column; align-items: center; }
.phone { width: 300px; height: 560px; border-radius: 42px; padding: 10px; background: linear-gradient(160deg, #2a2a44, #12121f); border: 1px solid #3a3a5c; box-shadow: 0 0 0 1px #000, 0 30px 90px rgba(139,92,246,.35), 0 0 120px rgba(255,77,141,.15); position: relative; animation: float 6s ease-in-out infinite; transition: transform .1s; }
.notch { position: absolute; top: 18px; left: 50%; width: 90px; height: 22px; margin-left: -45px; background: #000; border-radius: 999px; z-index: 3; }
.screen { height: 100%; border-radius: 34px; background: var(--ink); overflow: hidden; position: relative; display: flex; flex-direction: column; padding: 52px 14px 16px; }
.chat { min-height: 96px; display: flex; flex-direction: column; gap: 8px; font: 400 13px/1.4 var(--mono); }
.bubble { align-self: flex-end; max-width: 88%; background: var(--lime); color: var(--ink); padding: 8px 12px; border-radius: 16px 16px 4px 16px; font-weight: 500; }
.bubble.bot { align-self: flex-start; background: var(--ink-2); color: var(--text); border: 1px solid var(--line); border-radius: 16px 16px 16px 4px; }
.dots span { display: inline-block; width: 6px; height: 6px; margin-right: 3px; border-radius: 50%; background: var(--cyan); animation: dots 1s infinite; }
.dots span:nth-child(2) { animation-delay: .15s; }
.dots span:nth-child(3) { animation-delay: .3s; }
.appview { flex: 1; margin-top: 12px; display: flex; align-items: center; justify-content: center; }
.app { width: 100%; text-align: center; padding: 22px 16px; border-radius: 24px; background: linear-gradient(160deg, var(--c1), var(--c2)); color: #fff; animation: pop .55s cubic-bezier(.3,1.6,.5,1); }
.app.out { animation: out .35s forwards; }
.app .big { font-size: 56px; line-height: 1; display: block; margin-bottom: 6px; }
.app h4 { margin: 0 0 4px; font-size: 22px; letter-spacing: -.02em; }
.app p { margin: 0 0 16px; font-size: 13px; opacity: .9; }
.app button { background: #fff; color: #111; animation: none; width: 100%; padding: 12px; font-size: 15px; border-radius: 14px; }
.app .reply { min-height: 3.2em; margin: 14px 0 0; font: 700 15px/1.3 var(--mono); }
.phone-cap { margin: 18px 0 0; font: 500 13px var(--mono); color: var(--lime); }

.ticker { border-block: 1px solid var(--line); padding: 20px 0 16px; margin: 0 -20px; overflow: hidden; text-align: center; }
.ticker > p { margin: 0 0 12px; font: 500 12px var(--mono); text-transform: uppercase; letter-spacing: .12em; color: var(--mut); }
.track { display: flex; gap: 14px; width: max-content; animation: scroll 50s linear infinite; }
.track span { font: 500 15px var(--mono); padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--ink-2); white-space: nowrap; }
.ticker:hover .track { animation-play-state: paused; }
.tools { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 4px 24px; justify-content: center; color: #bdbbd9; font-weight: 500; }

.section { padding: 96px 0 0; }
.section h2, .final h2 { font-size: clamp(30px, 5vw, 50px); letter-spacing: -.03em; line-height: 1.1; margin: 0 0 14px; }
.hl { background: var(--lime); color: var(--ink); padding: 0 .18em; border-radius: 6px; display: inline-block; transform: rotate(-1.5deg); }
.sub { color: #d3d1ee; max-width: 640px; font-size: 19px; margin: 0 0 34px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.card, .panel { background: var(--ink-2); border: 1px solid var(--line); border-radius: 20px; padding: 24px; transition: border-color .25s, box-shadow .25s, transform .15s; transform-style: preserve-3d; }
.card:hover, .panel:hover { border-color: var(--violet); box-shadow: 0 20px 60px rgba(139,92,246,.2); }
.card h3, .panel h3 { margin: 12px 0 8px; font-size: 22px; letter-spacing: -.02em; line-height: 1.2; }
.card p { margin: 0; color: #bdbbd9; }
.tag { font: 500 12px var(--mono); color: var(--lime); border: 1px solid rgba(198,255,61,.4); padding: 4px 10px; border-radius: 999px; }
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.panel .eyebrow { margin: 0; color: var(--cyan); }
.panel ul { padding-left: 20px; color: #d3d1ee; margin: 14px 0 22px; }
.panel li { margin-bottom: 6px; }
.btn-ghost { display: inline-block; font: 500 14px var(--mono); text-decoration: none; padding: 11px 16px; border: 1px solid var(--line); border-radius: 999px; transition: all .25s cubic-bezier(.3,1.6,.5,1); }
.btn-ghost:hover { border-color: var(--lime); color: var(--lime); transform: translateY(-2px) rotate(-1.5deg); }

.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 500; font-size: 19px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::after { content: "+"; font: 500 22px var(--mono); color: var(--lime); transition: transform .3s; }
.faq details[open] summary::after { transform: rotate(135deg); }
.faq summary::-webkit-details-marker { display: none; }
.faq p { margin: 10px 0 0; color: #bdbbd9; max-width: 640px; }

.final { text-align: center; padding: 120px 0 130px; }
.foot { max-width: 1160px; margin: 0 auto; padding: 28px 20px 40px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; align-items: center; color: var(--mut); font-size: 14px; }

.js .reveal { opacity: 0; transform: translateY(32px); transition: opacity .8s, transform .8s cubic-bezier(.2,.8,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }

@keyframes flow { to { background-position: 300% 0; } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes pulse { 50% { opacity: .35; } }
@keyframes float { 50% { transform: translateY(-14px) rotate(.6deg); } }
@keyframes pop { from { opacity: 0; transform: scale(.6) translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes out { to { opacity: 0; transform: scale(.85) translateY(-20px); } }
@keyframes dots { 50% { transform: translateY(-5px); opacity: .5; } }
@keyframes shake { 20%,60% { transform: translateX(-6px); } 40%,80% { transform: translateX(6px); } }
@keyframes bounce { 50% { transform: translateY(-8px) rotate(8deg); } }
@keyframes scroll { to { transform: translateX(-50%); } }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: 0; padding-top: 8px; }
  .phone { width: 270px; height: 520px; }
}
@media (max-width: 560px) {
  .row { flex-direction: column; }
  .row button, .share button, #resend { width: 100%; }
  .share { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .track { flex-wrap: wrap; width: auto; justify-content: center; }
  .track span:nth-child(n+9) { display: none; }
}

/* Support popup */
.help-fab { position: fixed; right: 18px; bottom: 18px; z-index: 20; display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 16px; border-radius: 999px; background: var(--ink-2); border: 1px solid var(--line); color: var(--text); font: 500 13px var(--mono); animation: none; box-shadow: 0 10px 40px rgba(0,0,0,.5); }
.help-fab:hover { border-color: var(--lime); }
.help-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--grad); background-size: 300% 100%; animation: flow 6s linear infinite; font-size: 16px; }
.help { position: fixed; right: 18px; bottom: 82px; z-index: 21; width: min(340px, calc(100vw - 36px)); background: var(--ink-2); border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 20px 70px rgba(0,0,0,.6), 0 0 60px rgba(139,92,246,.2); animation: pop .35s cubic-bezier(.3,1.6,.5,1); transform-origin: bottom right; }
.help[hidden] { display: none; }
.help-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 16px 8px 20px; }
.help-head h2 { margin: 0; font-size: 20px; letter-spacing: -.02em; }
.help-x { background: none; animation: none; padding: 4px 10px; font-size: 24px; color: var(--mut); border-radius: 8px; }
.help-body { padding: 4px 16px 18px; }
.help-menu { display: grid; gap: 8px; }
.help-menu[hidden], .help-pane[hidden] { display: none; }
.help-menu button { text-align: left; background: var(--ink); color: var(--text); border: 1px solid var(--line); animation: none; font: 500 15px var(--sans); padding: 13px 14px; white-space: normal; }
.help-menu button:hover { border-color: var(--lime); }
.help-pane p { margin: 6px 0 10px; color: #d3d1ee; font-size: 15px; }
.help-pane .help-big { font-size: 19px; font-weight: 700; color: var(--text); }
.help-form { display: grid; gap: 8px; }
.help-form input { width: 100%; }
.help-form button { animation: none; background: var(--pink); }
.help-msg { min-height: 1.3em; color: var(--pink) !important; font: 500 13px var(--mono); }
.help-back { background: none; animation: none; color: var(--mut); font: 500 13px var(--mono); padding: 6px 0; }
.help-back:hover { color: var(--lime); transform: none; }
@media (max-width: 560px) { .help-quote { display: none; } .help-fab { padding: 6px; } }

/* Multi-step deletion */
.help-step { margin: 0 0 4px !important; font: 500 12px var(--mono) !important; color: var(--cyan) !important; text-transform: uppercase; letter-spacing: .1em; }
.help-pane > button { display: block; width: 100%; margin: 8px 0 0; animation: none; }
.help-keep { background: var(--ink) !important; border: 1px solid var(--line) !important; color: var(--text) !important; }
.help-danger { background: transparent !important; border: 1px solid var(--pink) !important; color: var(--pink) !important; }
.help-pane > button.help-back { width: auto; }
.hold { position: relative; overflow: hidden; background: var(--ink) !important; border: 1px solid var(--pink) !important; color: #fff; padding: 16px !important; user-select: none; touch-action: none; }
.hold { isolation: isolate; }
.hold-fill { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--pink); z-index: -1; }


/* Animated header logo: prompt caret flips to a V, then the name types out. Driven by vibes.js. */
.js .brand-mark { visibility: hidden; }
.js .brand-mark.ready { visibility: visible; }
#wordmark { position: relative; display: inline-block; }
#wordmark .ghost { visibility: hidden; }
#wordmark .live { position: absolute; left: 0; top: 0; white-space: nowrap; }
.tcaret { display: inline-block; width: 3px; height: .95em; margin-left: 2px; background: var(--lime); vertical-align: -.1em; border-radius: 1px; animation: blink 1s steps(1) infinite; opacity: 0; }
.tcaret.on { opacity: 1; }
.js #wordmark .live { visibility: hidden; }
.js #wordmark.ready .live { visibility: visible; }

/* Private admin page */
.admin main { max-width: 1160px; }
.adm-tag { font: 500 12px var(--mono); color: var(--lime); border: 1px solid rgba(198,255,61,.4); padding: 2px 8px; border-radius: 999px; margin-left: 8px; vertical-align: middle; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin: 20px 0; }
.tile { background: var(--ink-2); border: 1px solid var(--line); border-radius: 16px; padding: 16px; }
.tile b { display: block; font-size: 28px; letter-spacing: -.02em; overflow-wrap: anywhere; }
.tile span { font: 500 12px var(--mono); color: var(--mut); }
.adm-bar { display: flex; gap: 8px; margin-bottom: 8px; }
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; margin-bottom: 60px; }
#tbl { border-collapse: collapse; width: 100%; font-size: 14px; }
#tbl th, #tbl td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
#tbl th { font: 500 12px var(--mono); color: var(--mut); text-transform: uppercase; letter-spacing: .06em; }
#tbl td a { color: var(--lime); }

/* The hidden attribute must always win over component display rules. */
[hidden] { display: none !important; }

/* Founding switch (site/config.js): hide open-only copy when closed, and closed-only copy while open. */
.f-closed [data-f="open"], html:not(.f-closed) [data-f="closed"] { display: none !important; }

/* Short glow when a "Join the waitlist" link points at the form */
.glow { animation: formglow 1.1s ease-out; border-radius: 18px; }
@keyframes formglow { 0% { box-shadow: 0 0 0 0 rgba(198,255,61,.7); } 100% { box-shadow: 0 0 0 26px rgba(198,255,61,0); } }
