/* qiz marketing site */
:root {
  --brand: #5b3df5;
  --brand-ink: #ffffff;
  --brand-soft: #efeaff;
  --accent: #ffb547;
  --accent-ink: #2a1a00;
  --ink: #15131f;
  --ink-2: #4b4860;
  --muted: #6b6880;
  --paper: #ffffff;
  --paper-2: #f7f5ff;
  --line: #e6e2f3;
  --ok: #12a05c;
  --radius: 16px;
  --shadow: 0 1px 2px rgb(21 19 31 / .06), 0 12px 32px rgb(21 19 31 / .08);
  --font: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  /* word cloud palette (same names the app uses) */
  --c0: #5b3df5; --c1: #db2777; --c2: #0f8a5f; --c3: #c2410c; --c4: #7c3aed; --c5: #0e7490; --c6: #b91c1c; --c7: #4d7c0f;
}
@media (prefers-color-scheme: dark) {
  :root {
    --brand: #8f7bff; --brand-ink: #0f0d18; --brand-soft: #241d4a; --accent: #ffc56b;
    --ink: #f3f1fb; --ink-2: #c9c5dc; --muted: #a29eb8; --paper: #110f1a; --paper-2: #18152a; --line: #2c2843;
    --ok: #4ade80; --shadow: none;
    --c0: #a5a0ff; --c1: #f472b6; --c2: #34d399; --c3: #fb923c; --c4: #c4a5ff; --c5: #22d3ee; --c6: #fca5a5; --c7: #a3e635;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.55 var(--font); -webkit-font-smoothing: antialiased; }
#app { display: none; }
a { color: var(--brand); text-underline-offset: 3px; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -.02em; margin: 0 0 .6rem; }
h1 { font-size: clamp(2.3rem, 5.4vw, 4.2rem); font-weight: 850; letter-spacing: -.035em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 750; }
p { margin: 0 0 1rem; }
img, svg { max-width: 100%; }
.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 16px; }
.wrap.narrow, .narrow { max-width: 860px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--brand); color: var(--brand-ink); padding: .5rem 1rem; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; font: inherit; font-weight: 700; font-size: .98rem; line-height: 1; padding: .8rem 1.2rem; border-radius: 12px; border: 2px solid transparent; cursor: pointer; text-decoration: none; transition: transform .12s, background .2s, box-shadow .2s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: var(--brand-ink); box-shadow: 0 6px 18px color-mix(in srgb, var(--brand) 35%, transparent); }
.btn-primary:hover { background: color-mix(in srgb, var(--brand) 88%, #000); }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { background: color-mix(in srgb, var(--accent) 88%, #000); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-lg { padding: 1rem 1.5rem; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* header */
.site-header { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--paper) 86%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; gap: 1.2rem; height: 64px; }
.brand-link { display: inline-flex; align-items: center; gap: .45rem; text-decoration: none; color: var(--ink); }
.logo-mark { width: 30px; height: 30px; flex: none; }
.wordmark { font-weight: 900; font-size: 1.45rem; letter-spacing: -.04em; }
.nav nav { margin-left: .5rem; }
.nav ul { display: flex; gap: 1.1rem; list-style: none; margin: 0; padding: 0; }
.nav nav a { color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: .95rem; }
.nav nav a:hover { color: var(--brand); }
.nav-join { margin-left: auto; display: flex; gap: .35rem; }
.nav-join input { width: 8.5rem; }
.nav-join .btn { padding: .55rem .8rem; }
.nav-cta { padding: .65rem 1rem; }
input { font: inherit; color: var(--ink); background: var(--paper); border: 2px solid var(--line); border-radius: 10px; padding: .55rem .75rem; }
input:focus { outline: none; border-color: var(--brand); }

/* hero */
.hero { padding: clamp(2.5rem, 6vw, 5rem) 0 3rem; background:
  radial-gradient(60rem 30rem at 85% -10%, color-mix(in srgb, var(--brand) 16%, transparent), transparent 70%),
  radial-gradient(40rem 24rem at -10% 110%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 70%); }
.hero-grid { display: grid; grid-template-columns: 1.02fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero-grid > *, .two-col > * { min-width: 0; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 800; color: var(--brand); margin-bottom: .7rem; }
.hl { background: linear-gradient(transparent 62%, color-mix(in srgb, var(--accent) 70%, transparent) 62%); padding: 0 .1em; }
.lede { font-size: clamp(1.08rem, 1.6vw, 1.28rem); color: var(--ink-2); max-width: 36rem; }
.page-hero .lede { margin-left: auto; margin-right: auto; }
.hero-actions { display: flex; gap: .7rem; flex-wrap: wrap; margin: 1.6rem 0 .6rem; }
.hero-note { font-size: .9rem; }
.join-card { margin-top: 1.8rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; max-width: 26rem; box-shadow: var(--shadow); }
.join-card label { font-weight: 750; display: block; margin-bottom: .45rem; }
.join-row { display: flex; gap: .5rem; }
.join-row input { flex: 1; min-width: 0; font-size: 1.2rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 800; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.join-error { color: #c62828; font-size: .9rem; margin: .4rem 0 0; min-height: 1.2em; }

/* hero demo: projected screen + phone */
.hero-demo { position: relative; padding-bottom: 2.5rem; }
.screen { background: #0e0c17; color: #f5f4fb; border-radius: 18px; padding: 1rem 1.2rem 1.1rem; box-shadow: 0 30px 60px rgb(21 19 31 / .28); aspect-ratio: 16 / 10.5; display: flex; flex-direction: column;
  --c0: #a5a0ff; --c1: #f472b6; --c2: #34d399; --c3: #fb923c; --c4: #c4a5ff; --c5: #22d3ee; --c6: #fca5a5; --c7: #a3e635; }
.screen-bar { display: flex; justify-content: space-between; font-size: .85rem; color: #a7a3bd; }
.screen-bar b { color: #c4b8ff; letter-spacing: .04em; }
.live { display: inline-flex; align-items: center; gap: .35rem; color: #8ef0b8; font-weight: 700; }
.live i { width: .5rem; height: .5rem; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 0 #34d39988; animation: pulse 1.8s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px #34d39900; } 100% { box-shadow: 0 0 0 0 #34d39900; } }
.screen-q { font-weight: 800; font-size: clamp(1rem, 1.8vw, 1.35rem); margin: .5rem 0 .2rem; letter-spacing: -.01em; }
.demo-cloud { flex: 1; position: relative; min-height: 0; }
.screen-foot { margin: 0; font-size: .8rem; color: #a7a3bd; text-align: right; font-variant-numeric: tabular-nums; }
.phone { position: absolute; left: -1.8rem; bottom: 0; width: 34%; min-width: 150px; max-width: 190px; background: var(--paper); border: 7px solid #1d1a29; border-radius: 26px; padding: 1.5rem .8rem .9rem; box-shadow: 0 20px 40px rgb(21 19 31 / .3); }
.phone-notch { position: absolute; top: 6px; left: 50%; transform: translateX(-50%); width: 40%; height: 9px; border-radius: 6px; background: #1d1a29; }
.phone-q { font-weight: 800; font-size: .78rem; line-height: 1.25; margin-bottom: .5rem; color: var(--ink); }
.phone-input { border: 2px solid var(--brand); border-radius: 8px; padding: .35rem .45rem; font-size: .8rem; min-height: 1.9rem; color: var(--ink); }
.phone-input::after { content: ""; display: inline-block; width: 1px; height: .95em; background: var(--ink); margin-left: 1px; vertical-align: -2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.phone-btn { margin-top: .45rem; background: var(--brand); color: var(--brand-ink); border-radius: 8px; text-align: center; font-weight: 800; font-size: .8rem; padding: .4rem; }
/* word cloud (same mechanics as the app) */
.wc { position: relative; overflow: hidden; contain: strict; }
.wc-word { position: absolute; left: 0; top: 0; font: 800 100px/1.05 var(--font); white-space: pre; transform-origin: 50% 50%; transition: transform .7s cubic-bezier(.2, .8, .2, 1), opacity .5s ease; will-change: transform; letter-spacing: -.01em; }
.wc-word.c0 { color: var(--c0); } .wc-word.c1 { color: var(--c1); } .wc-word.c2 { color: var(--c2); } .wc-word.c3 { color: var(--c3); }
.wc-word.c4 { color: var(--c4); } .wc-word.c5 { color: var(--c5); } .wc-word.c6 { color: var(--c6); } .wc-word.c7 { color: var(--c7); }
@media (prefers-reduced-motion: reduce) { .wc-word { transition: opacity .2s; } .live i, .phone-input::after { animation: none; } }

.logos-strip { border-block: 1px solid var(--line); background: var(--paper-2); }
.logos-strip p { margin: 0; padding: 1rem 0; text-align: center; color: var(--muted); font-size: .95rem; }
.logos-strip b { color: var(--ink-2); font-weight: 700; }

/* sections */
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section.tight { padding-top: 1rem; }
.section.alt { background: var(--paper-2); }
.section-title { text-align: center; margin-bottom: 1rem; }
.section-sub { text-align: center; color: var(--ink-2); max-width: 44rem; margin: 0 auto 2rem; font-size: 1.08rem; }
.page-hero { padding: clamp(2.5rem, 6vw, 4.5rem) 0 2rem; background: radial-gradient(50rem 22rem at 50% -20%, color-mix(in srgb, var(--brand) 14%, transparent), transparent 70%); }
.page-hero h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); }

.steps { list-style: none; padding: 0; margin: 2.2rem 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.steps li { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.step-n { display: inline-grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--brand-soft); color: var(--brand); font-weight: 900; margin-bottom: .8rem; }
.steps p { color: var(--ink-2); margin: 0; }

.types { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; margin-top: 2.2rem; }
.type-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem; box-shadow: var(--shadow); }
.type-card p { color: var(--ink-2); margin: 0; }
.type-visual { height: 150px; border-radius: 12px; background: #0e0c17; margin-bottom: 1.1rem; display: flex; padding: 1rem; color: #f5f4fb;
  --c0: #a5a0ff; --c1: #f472b6; --c2: #34d399; --c3: #fb923c; --c4: #c4a5ff; --c5: #22d3ee; }
.tv-cloud { flex-wrap: wrap; align-content: center; justify-content: center; gap: .1rem .6rem; font-weight: 850; }
.tv-cloud .c1 { color: var(--c0); } .tv-cloud .c2 { color: var(--c1); } .tv-cloud .c3 { color: var(--c2); } .tv-cloud .c4 { color: var(--c3); } .tv-cloud .c5 { color: var(--c5); }
.tv-bars { flex-direction: column; justify-content: center; gap: .6rem; }
.tv-bars div { display: grid; gap: .25rem; font-size: .8rem; font-weight: 700; }
.tv-bars i { display: block; height: .7rem; background: #a5a0ff; border-radius: 0 4px 4px 0; }
.tv-bars div:nth-child(2) i { background: #34d399; }
.tv-scale { align-items: flex-end; gap: 1rem; }
.tv-scale b { font-size: 2.8rem; line-height: 1; }
.mini-cols { flex: 1; height: 100%; display: flex; align-items: flex-end; gap: 6px; }
.mini-cols i { flex: 1; background: #a5a0ff; border-radius: 4px 4px 0 0; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem 2rem; margin-top: 2.2rem; }
.features h3 { display: flex; gap: .5rem; align-items: center; }
.features h3::before { content: ""; width: .65rem; height: .65rem; border-radius: 3px; background: var(--accent); flex: none; }
.features p { color: var(--ink-2); margin: 0; }

/* pricing */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; align-items: start; margin-top: 1rem; }
.plan { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: 20px; padding: 1.6rem; box-shadow: var(--shadow); }
.plan.featured { border: 2px solid var(--brand); transform: translateY(-6px); }
.ribbon { position: absolute; top: -.8rem; left: 1.4rem; background: var(--brand); color: var(--brand-ink); font-size: .75rem; font-weight: 800; padding: .25rem .6rem; border-radius: 999px; letter-spacing: .04em; }
.price { margin: .2rem 0 .6rem; display: flex; align-items: baseline; gap: .4rem; flex-wrap: wrap; }
.price b { font-size: 2.6rem; font-weight: 900; letter-spacing: -.03em; }
.price span { color: var(--muted); font-size: .9rem; }
.plan .btn { margin: .4rem 0 1.1rem; }
.ticks, .dots { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.ticks li { padding-left: 1.6rem; position: relative; }
.ticks li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 900; }
.dots li { padding-left: 1.3rem; position: relative; }
.dots li::before { content: ""; position: absolute; left: .2rem; top: .62em; width: .45rem; height: .45rem; border-radius: 50%; background: var(--muted); }
.beta-note { text-align: center; margin: 2rem auto .5rem; max-width: 46rem; background: var(--brand-soft); border-radius: 12px; padding: .8rem 1rem; }

/* tables */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); margin: 1.4rem 0 .8rem; }
table { border-collapse: collapse; width: 100%; font-size: .95rem; }
th, td { text-align: left; padding: .8rem .9rem; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); background: var(--paper-2); white-space: nowrap; }
tbody tr:last-child > * { border-bottom: 0; }
tbody th { font-weight: 700; }
.compare tr.us { background: color-mix(in srgb, var(--brand) 7%, var(--paper)); }
.compare tr.us th { display: flex; align-items: center; gap: .4rem; }
.compare tr.us .logo-mark { width: 22px; height: 22px; }
.compare td a { white-space: nowrap; font-weight: 600; }
.us-col { background: color-mix(in srgb, var(--brand) 7%, var(--paper)); font-weight: 600; }
.features-table th, .features-table td { text-align: center; white-space: nowrap; }
.features-table tbody th { text-align: left; white-space: normal; min-width: 12rem; }
.yes { color: var(--ok); font-weight: 900; font-size: 1.1rem; }
.no { color: var(--muted); }
.part { font-size: .82rem; color: var(--ink-2); background: var(--paper-2); border-radius: 6px; padding: .1rem .4rem; white-space: nowrap; }
.plan-table td { text-align: center; }
.plan-table thead th:not(:first-child) { text-align: center; }

/* vs pages */
.crumbs { padding-top: 1rem; font-size: .88rem; color: var(--muted); }
.crumbs a { color: var(--muted); }
.verdict { background: var(--paper); border: 2px solid var(--brand); border-radius: 20px; padding: 1.5rem 1.6rem; box-shadow: var(--shadow); }
.verdict ul { margin: 0; padding-left: 1.2rem; display: grid; gap: .55rem; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: start; }
.price-col { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem; }
.price-col.us { border: 2px solid var(--brand); }
.price-col h3 { display: flex; align-items: center; gap: .5rem; }
.price-col h3 .logo-mark { width: 24px; height: 24px; }
table.mini th { width: 34%; }
.vs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; margin-top: 1.6rem; }
.vs-card { display: grid; gap: .35rem; padding: 1.1rem 1.2rem; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); background: var(--paper); transition: border-color .2s, transform .2s; }
.vs-card:hover { border-color: var(--brand); transform: translateY(-2px); }
.vs-card .go { color: var(--brand); font-weight: 700; font-size: .9rem; }

/* faq */
.faq { display: grid; gap: .7rem; margin-top: 1.6rem; }
.faq details { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: .9rem 1.1rem; }
.faq summary { cursor: pointer; font-weight: 750; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 900; color: var(--brand); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: .7rem 0 0; color: var(--ink-2); }

/* cta + footer */
.cta-band { background: var(--brand); color: #fff; text-align: center; padding: clamp(3rem, 6vw, 4.5rem) 0; }
.cta-band h2 { color: #fff; }
.cta-band p { opacity: .88; margin-bottom: 1.6rem; }
@media (prefers-color-scheme: dark) { .cta-band { background: #2a1f73; } }
.site-footer { border-top: 1px solid var(--line); padding: 3rem 0 1rem; font-size: .93rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
.footer-grid h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .4rem; }
.footer-grid a { color: var(--ink-2); text-decoration: none; }
.footer-grid a:hover { color: var(--brand); }
.fineprint { margin-top: 2rem; font-size: .8rem; }

/* responsive */
@media (max-width: 1020px) {
  .nav nav { display: none; }
}
@media (max-width: 880px) {
  .hero-grid, .two-col { grid-template-columns: 1fr; }
  .hero-demo { margin-left: 1.5rem; }
  .steps, .types, .features, .plans { grid-template-columns: 1fr; }
  .plan.featured { transform: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .nav-join { display: none; }
  .nav-cta { margin-left: auto; }
  .hero-actions .btn { width: 100%; white-space: normal; }
  .hero-demo { margin-left: .9rem; }
  .phone { left: -1rem; width: 40%; }
  .footer-grid { grid-template-columns: 1fr; }
}
