/* Quivr launch landing — / */
:root {
  --bg: #070d1f;
  --panel: #0d1733;
  --line: rgba(255, 255, 255, 0.08);
  --text: #f2f5fb;
  --muted: #8e9ab5;
  --accent: #ff7a3d;
  --blue: #3b74ff;
  --display: Anton, Impact, "Arial Narrow", sans-serif;
  --body: Archivo, system-ui, -apple-system, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 32px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  height: 76px; padding: 0 max(32px, calc((100vw - 1200px) / 2 + 32px));
  background: rgba(7, 13, 31, 0.72);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-size: 22px; letter-spacing: 0.04em; }
.brand img { height: 26px; width: auto; }
.nav-links {
  display: flex; align-items: center; gap: 4px; padding: 5px;
  border-radius: 999px; background: rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 0 0 1px var(--line); font-size: 14px;
}
.nav-links a { padding: 8px 14px; border-radius: 999px; color: var(--muted); transition: color .15s; }
.nav-links a:hover { color: var(--text); }
.nav-links .nav-cta { background: #fff; color: #0b1220; font-weight: 600; }
.nav-links .nav-cta:hover { color: #0b1220; }

/* ---------- App Store badge ---------- */
.store {
  display: inline-flex; align-items: center; gap: 10px;
  height: 54px; padding: 0 22px 0 18px; border-radius: 14px;
  background: #fff; color: #000; line-height: 1;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
  transition: transform .15s ease;
}
.store:hover { transform: translateY(-1px); }
.store svg { width: 24px; height: 24px; }
.store span { display: flex; flex-direction: column; gap: 3px; text-align: left; }
.store small { font-size: 10px; letter-spacing: 0.02em; opacity: .8; }
.store b { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }

/* ---------- Hero ---------- */
.eyebrow { margin: 0 0 14px; font: 600 11px/1 var(--mono); letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); }
.hero {
  display: grid; grid-template-columns: 1fr 1.05fr; gap: 48px; align-items: center;
  min-height: calc(100svh - 76px); padding: 48px 0 64px;
}
.hero-copy { max-width: 520px; }
.hero h1 {
  font-size: clamp(36px, 4.6vw, 56px); line-height: 1.05; letter-spacing: -0.035em;
  font-weight: 600; margin: 0 0 28px;
}
.hero .store { margin-top: 28px; }
.feature-list { display: flex; flex-direction: column; }
h2 { font-size: clamp(32px, 4vw, 52px); line-height: 1.05; letter-spacing: -0.035em; font-weight: 600; margin: 0 0 40px; }

/* Freestanding board stage (no phone chrome, no blue panel) */
.stage {
  --coral: #ee4418;
  --ocean: #5b9fe3;
  --foam: #e3eefb;
  --card: #14224a;
  --navy: #0a1f57;
  --glide: cubic-bezier(.65, 0, .25, 1);
  position: relative; width: 100%; max-width: 520px; height: 620px; margin-left: auto;
}
.scene {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; gap: 14px; justify-content: center;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .28s, visibility .28s;
}
.scene.is-on { opacity: 1; visibility: visible; }

.d-card {
  display: grid; grid-template-columns: 1fr 120px; gap: 18px; align-items: stretch;
  padding: 22px; border-radius: 22px; background: var(--card); color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06);
}
.d-info small { display: block; font: 700 10px/1 var(--body); letter-spacing: .14em; color: rgba(255,255,255,.5); }
.d-info > b { display: block; font: 400 34px/1 var(--display); letter-spacing: .01em; margin: 8px 0 8px; }
.d-rating { margin: 0 0 14px; font-size: 13px; font-weight: 600; }
.d-rating em { font-style: normal; font-weight: 500; color: rgba(255,255,255,.55); }
.stars { color: var(--coral); letter-spacing: -1px; }
.d-well { position: relative; border-radius: 16px; background: radial-gradient(70% 60% at 50% 45%, rgba(91,159,227,.22), rgba(255,255,255,.03)); }
.d-well .slot { position: absolute; inset: 14px 10px; }
.d-reviews { display: flex; flex-direction: column; gap: 8px; }
.d-reviews blockquote { margin: 0; padding: 12px 14px; border-radius: 14px; background: rgba(255,255,255,.06); color: #fff; }
.d-reviews header { display: flex; justify-content: space-between; align-items: center; font-size: 12px; margin-bottom: 4px; }
.d-reviews .stars { font-size: 10px; }
.d-reviews p { margin: 0; font-size: 13px; line-height: 1.4; color: rgba(255,255,255,.8); }

.c-boards { display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 10px; color: #fff; text-align: center; }
.c-side .slot { display: block; height: 280px; margin-bottom: 12px; }
.c-side small { display: flex; align-items: center; justify-content: center; gap: 6px; font: 700 10px/1 var(--body); letter-spacing: .1em; color: rgba(255,255,255,.5); }
.c-side b { display: block; font-size: 15px; margin-top: 6px; }
.dot { width: 7px; height: 7px; border-radius: 50%; }
.dot.a { background: var(--ocean); }
.dot.b { background: var(--coral); }
.vs { align-self: center; font: 800 14px/1 var(--body); color: var(--coral); }

.charts { display: flex; flex-direction: column; gap: 10px; }
.chart span { display: block; font: 700 10px/1 var(--body); letter-spacing: .1em; color: rgba(255,255,255,.5); margin-bottom: 3px; }
.chart svg { display: block; width: 100%; height: 36px; overflow: visible; color: rgba(255,255,255,.7); }
.chart .axis { display: flex; justify-content: space-between; font-size: 10px; color: rgba(255,255,255,.4); }
.charts.mini { gap: 10px; }
.charts.mini .chart svg { height: 28px; }
.c-charts { margin-top: 8px; gap: 14px; }
.c-charts .chart svg { height: 48px; }
.sw { transform-box: fill-box; transform-origin: 50% 100%; }

.q-grid { display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 148px; gap: 12px; }
.foam-tile {
  position: relative; display: flex; gap: 8px; min-height: 0;
  padding: 14px; border-radius: 16px; background: var(--foam);
}
.foam-tile div { flex: 1; min-width: 0; }
.foam-tile small { display: block; font: 700 9px/1.2 var(--body); letter-spacing: .1em; color: #7786ad; }
.foam-tile b { display: block; font: 400 18px/1.05 var(--display); letter-spacing: .01em; color: var(--navy); margin: 5px 0 4px; }
.foam-tile em { display: block; font: 500 11px/1 var(--body); color: #5d6d93; font-style: normal; }
.foam-tile .stars { display: block; font-size: 11px; margin-top: 6px; }
.foam-tile .slot, .foam-tile img { flex: none; width: 42px; height: 120px; align-self: center; object-fit: contain; }

.insight {
  padding: 14px 16px 16px; border-radius: 18px; color: #fff;
  background: linear-gradient(160deg, rgba(238,68,24,.2), rgba(20,34,74,.95) 55%);
  box-shadow: inset 0 0 0 1px rgba(238,68,24,.45);
}
.insight-tag { margin: 0 0 8px; font: 600 10px/1 var(--mono); letter-spacing: .14em; color: var(--coral); }
.insight > b { display: block; font-size: 18px; letter-spacing: -.01em; }
.insight > p:not(.insight-tag) { margin: 4px 0 12px; font-size: 13px; line-height: 1.4; color: rgba(255,255,255,.72); }
.recs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.rec { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 12px; background: rgba(255,255,255,.08); }
.rec img { width: 18px; height: 56px; object-fit: contain; }
.rec small { display: block; font: 700 8px/1 var(--body); letter-spacing: .1em; color: rgba(255,255,255,.5); }
.rec b { display: block; font: 400 15px/1.1 var(--display); letter-spacing: .02em; margin-top: 3px; }
.rec em { display: block; font-style: normal; font-size: 10px; color: rgba(255,255,255,.55); }

.rides { position: absolute; inset: 0; z-index: 3; pointer-events: none; overflow: visible; }
.ride {
  position: absolute; left: 0; top: 0; width: 0; height: 0;
  transition: left .95s var(--glide), top .95s var(--glide), width .95s var(--glide), height .95s var(--glide);
}
.ride.no-anim { transition: none; }
.ride img {
  width: 100%; height: 100%; object-fit: contain; max-width: none;
  filter: drop-shadow(0 16px 28px rgba(0,0,0,.5));
  transition: transform .5s cubic-bezier(.34,1.56,.64,1), opacity .3s;
}
.ride.is-hidden img { transform: scale(.4); opacity: 0; }
.ride.pop img { animation: pop .7s cubic-bezier(.34,1.56,.64,1) both; }

.scene.is-on .d-card, .scene.is-on .c-boards small, .scene.is-on .c-boards b { animation: rise .5s .1s both; }
.scene.is-on .d-info .chart:nth-child(1) .sw-a { animation: swell .7s .35s both; }
.scene.is-on .d-info .chart:nth-child(2) .sw-a { animation: swell .7s .45s both; }
.scene.is-on .d-info .chart:nth-child(3) .sw-a { animation: swell .7s .55s both; }
.scene.is-on .d-reviews blockquote:nth-child(1) { animation: rise .5s .75s both; }
.scene.is-on .d-reviews blockquote:nth-child(2) { animation: rise .5s .95s both; }
.scene.is-on .c-charts .sw-b { animation: swell .8s .7s both; }
.scene.is-on .c-charts .chart:nth-child(2) .sw-b { animation-delay: .8s; }
.scene.is-on .c-charts .chart:nth-child(3) .sw-b { animation-delay: .9s; }
.scene.is-on .foam-tile { animation: rise .45s both; }
.scene.is-on .foam-tile:nth-child(2) { animation-delay: .05s; }
.scene.is-on .foam-tile.pop { animation-delay: .5s; }
.scene.is-on .foam-tile.pop:nth-child(4) { animation-delay: .62s; }
.scene.is-on .foam-tile.pop img { animation: pop .6s .7s cubic-bezier(.34,1.56,.64,1) both; }
.scene.is-on .foam-tile.pop:nth-child(4) img { animation-delay: .82s; }
.scene.is-on .insight { animation: rise .55s 1.1s both; }
.scene.is-on .rec { animation: pop .5s 1.45s cubic-bezier(.34,1.56,.64,1) both; }
.scene.is-on .rec + .rec { animation-delay: 1.58s; }

@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: scale(.35); } 60% { opacity: 1; } to { opacity: 1; transform: none; } }
@keyframes swell { from { transform: scaleY(0); } to { transform: none; } }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); border-block: 1px solid var(--line); }
.stats div { padding: 34px 12px; text-align: center; }
.stats div + div { border-left: 1px solid var(--line); }
.stats b { display: block; font-family: var(--display); font-weight: 400; font-size: 40px; letter-spacing: 0.01em; }
.stats span { font-size: 13px; color: var(--muted); }
.ic { fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.item {
  position: relative; display: grid; grid-template-columns: 52px 1fr; gap: 18px; align-items: center; text-align: left;
  padding: 20px 0; border: 0; border-top: 1px solid var(--line); background: none;
  cursor: pointer; opacity: .5; transition: opacity .2s;
}
.item:hover, .item.is-on { opacity: 1; }
.item-icon {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px;
  background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px var(--line); color: var(--text);
  transition: background .25s, color .25s, box-shadow .25s, transform .25s cubic-bezier(.34,1.56,.64,1);
}
.item-icon .ic { width: 28px; height: 28px; overflow: visible; }
.item-icon .ic * { transform-box: fill-box; transform-origin: 50% 100%; }
.item:hover .item-icon { transform: translateY(-2px) rotate(-6deg); }
.item.is-on .item-icon { background: #ee4418; color: #fff; box-shadow: 0 10px 28px -8px rgba(238,68,24,.75); }
.item.is-on .lens { animation: scan 1.1s ease-in-out; transform-origin: center; }
.item:hover .lens { animation: scan 1.1s ease-in-out infinite; }
.item.is-on .ic-venn .l { animation: venn-l .9s cubic-bezier(.34,1.56,.64,1); transform-origin: center; }
.item.is-on .ic-venn .r { animation: venn-r .9s cubic-bezier(.34,1.56,.64,1); transform-origin: center; }
.item:hover .ic-venn .l { animation: venn-l .9s cubic-bezier(.34,1.56,.64,1) infinite alternate; transform-origin: center; }
.item:hover .ic-venn .r { animation: venn-r .9s cubic-bezier(.34,1.56,.64,1) infinite alternate; transform-origin: center; }
.item.is-on .ic-quiver .l { animation: fan-l .9s cubic-bezier(.34,1.56,.64,1); }
.item.is-on .ic-quiver .r { animation: fan-r .9s cubic-bezier(.34,1.56,.64,1); }
.item.is-on .ic-quiver .m { animation: fan-m .9s cubic-bezier(.34,1.56,.64,1); }
.item:hover .ic-quiver .l { animation: fan-l .9s cubic-bezier(.34,1.56,.64,1) infinite alternate; }
.item:hover .ic-quiver .r { animation: fan-r .9s cubic-bezier(.34,1.56,.64,1) infinite alternate; }
.item b { display: block; font-size: 23px; letter-spacing: -0.015em; margin-bottom: 5px; }
.item em { display: block; font-style: normal; color: var(--muted); font-size: 15px; line-height: 1.5; }
.item-progress { position: absolute; left: 0; top: -1px; height: 1px; width: 0; background: var(--accent); }
.item.is-on.is-timing .item-progress { animation: progress var(--dwell, 6s) linear forwards; }

@keyframes progress { to { width: 100%; } }
@keyframes scan { 0%, 100% { transform: none; } 30% { transform: translate(-2px, -1px) rotate(-8deg); } 65% { transform: translate(2px, 1px) rotate(6deg); } }
@keyframes venn-l { from { transform: translateX(-4px); } to { transform: none; } }
@keyframes venn-r { from { transform: translateX(4px); } to { transform: none; } }
@keyframes fan-l { 0% { transform: none; } 50% { transform: rotate(-14deg); } 100% { transform: none; } }
@keyframes fan-r { 0% { transform: none; } 50% { transform: rotate(14deg); } 100% { transform: none; } }
@keyframes fan-m { 0% { transform: none; } 50% { transform: translateY(-2px); } 100% { transform: none; } }

/* ---------- Reviews ---------- */
.reviews { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin: 0 0 140px; }
.review { margin: 0; background: var(--panel); border-radius: 24px; padding: 36px; box-shadow: inset 0 0 0 1px var(--line); }
.review p { font-size: 20px; line-height: 1.45; letter-spacing: -0.01em; margin: 0 0 22px; }
.review footer { font-size: 13px; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: 1fr 1.6fr; gap: 64px; padding: 96px 0; border-top: 1px solid var(--line); }
.faq h2 { margin: 0; }
.faq details { border-bottom: 1px solid var(--line); padding: 20px 0; }
.faq summary {
  list-style: none; cursor: pointer; font-size: 18px; font-weight: 500;
  display: flex; justify-content: space-between; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); font-weight: 400; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); line-height: 1.6; margin: 12px 0 0; max-width: 60ch; }
.faq details a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }

.waitlist-form { display: flex; gap: 8px; margin-top: 16px; max-width: 420px; }
.waitlist-form input {
  flex: 1; min-width: 0; height: 44px; padding: 0 14px; border-radius: 10px;
  border: 1px solid var(--line); background: rgba(255, 255, 255, .04); color: var(--text); font: inherit;
}
.waitlist-form button {
  height: 44px; padding: 0 16px; border: 0; border-radius: 10px;
  background: #fff; color: #0b1220; font-weight: 600; cursor: pointer;
}
.waitlist-form button:disabled { opacity: .6; cursor: default; }
.waitlist-status:empty { display: none; }

/* ---------- Final + footer ---------- */
.final { text-align: center; padding: 120px 0; border-top: 1px solid var(--line); }
.final h2 {
  font-family: var(--display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(48px, 6vw, 88px); letter-spacing: 0.005em; margin: 0 0 30px;
}
.about { max-width: 760px; margin: 0 auto; padding: 0 0 48px; text-align: center; font-size: 13px; line-height: 1.6; color: rgba(142, 154, 181, .7); }
.footer {
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  padding: 28px 0 40px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted);
}
.footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
.footer a:hover { color: var(--text); }

/* ---------- Small screens ---------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 36px; min-height: 0; padding: 36px 0 56px; }
  .hero-copy { max-width: none; }
  .stage { margin: 0 auto; height: 560px; max-width: 460px; }
  .c-side .slot { height: 230px; }
  .faq { grid-template-columns: 1fr; gap: 24px; padding: 72px 0; }
  .reviews { grid-template-columns: 1fr; margin-bottom: 96px; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 20px; }
  .nav { padding: 0 20px; height: 64px; }
  .nav-links a:not(.nav-cta) { display: none; }
  .hero { padding: 28px 0 48px; }
  .hero h1 { font-size: 32px; }
  .stage { height: 520px; }
  .d-card { grid-template-columns: 1fr 90px; padding: 16px; }
  .d-info > b { font-size: 26px; }
  .c-side .slot { height: 200px; }
  .q-grid { grid-auto-rows: 120px; }
  .foam-tile .slot, .foam-tile img { width: 34px; height: 96px; }
  .stats div { padding: 24px 6px; }
  .stats b { font-size: 28px; }
  .stats span { font-size: 11px; }
  .review { padding: 26px; }
  .review p { font-size: 17px; }
  .final { padding: 88px 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .scene, .item, .store, .ride, .ride img { transition: none; }
  .stage *, .item * { animation: none !important; }
}
