/* Landing page only (index.html). Shared tokens, fonts, store buttons and footer come from site.css.
   Animations use transform and opacity only, and every one stops under prefers-reduced-motion. */

.home {
  --grape: #b98cff;
  --deep: #0e0619;
  --glass: rgba(51, 32, 79, 0.55);
  --edge: rgba(201, 184, 232, 0.16);
  background: var(--deep);
  overflow-x: hidden;
}

/* ───────── background ───────── */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; background: radial-gradient(120% 80% at 50% -10%, #2b1650 0%, #170b2b 45%, var(--deep) 100%); }
.orb { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.55; will-change: transform; }
.orb-a { width: 46vw; height: 46vw; left: -10vw; top: -8vw; background: #ff6b4a; opacity: 0.22; animation: drift-a 22s ease-in-out infinite alternate; }
.orb-b { width: 40vw; height: 40vw; right: -12vw; top: 10vh; background: #7b3cff; opacity: 0.35; animation: drift-b 26s ease-in-out infinite alternate; }
.orb-c { width: 34vw; height: 34vw; left: 30vw; top: 60vh; background: #2ee6c8; opacity: 0.12; animation: drift-c 30s ease-in-out infinite alternate; }
@keyframes drift-a { to { transform: translate(12vw, 10vh) scale(1.15); } }
@keyframes drift-b { to { transform: translate(-10vw, 16vh) scale(0.9); } }
@keyframes drift-c { to { transform: translate(-14vw, -12vh) scale(1.2); } }
.grid-floor {
  position: absolute; left: -50%; right: -50%; bottom: -10vh; height: 70vh;
  background-image:
    linear-gradient(rgba(185, 140, 255, 0.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(185, 140, 255, 0.22) 1px, transparent 1px);
  background-size: 64px 64px;
  transform: perspective(500px) rotateX(62deg);
  transform-origin: 50% 100%;
  mask-image: linear-gradient(to top, rgba(0,0,0,0.9), transparent 75%);
  -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,0.9), transparent 75%);
  animation: floor 6s linear infinite;
}
@keyframes floor { to { background-position: 0 64px, 0 0; } }
.grain { position: absolute; inset: 0; opacity: 0.07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }

/* ───────── top bar ───────── */
.bar { position: sticky; top: 0; z-index: 20; padding: 12px 0; backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); background: rgba(14, 6, 25, 0.55); border-bottom: 1px solid var(--edge); }
.bar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: 1160px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--cream); }
.brand-mark { position: relative; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; font-family: var(--display); font-weight: 900; font-size: 1.3rem; color: var(--deep); background: linear-gradient(140deg, #fff1c9, #ffb020 55%, #e8890c); box-shadow: 0 0 22px rgba(255, 176, 32, 0.45); }
.brand-mark i { position: absolute; right: 5px; bottom: 6px; width: 9px; height: 3px; border-radius: 2px; background: var(--coral); }
.brand-word { font-family: var(--display); font-weight: 900; letter-spacing: 0.14em; font-size: 1rem; }
.bar-nav { display: flex; align-items: center; gap: 4px; }
.bar-nav a { color: var(--lilac); text-decoration: none; font-weight: 600; font-size: 0.92rem; padding: 8px 12px; border-radius: 999px; transition: color .2s, background .2s; }
.bar-nav a:hover { color: var(--cream); background: rgba(255, 255, 255, 0.06); }
.bar-nav .bar-cta { color: var(--deep); background: var(--coral); box-shadow: 0 0 18px rgba(255, 107, 74, 0.5); }
.bar-nav .bar-cta:hover { color: var(--deep); background: #ff8466; }
@media (max-width: 560px) { .bar-nav a:not(.bar-cta) { display: none; } }

/* ───────── hero ───────── */
.home .wrap { max-width: 1160px; }
.hero2 { padding: 48px 0 40px; }
.hero2-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 48px; align-items: center; }
@media (max-width: 900px) { .hero2-grid { grid-template-columns: 1fr; gap: 36px; } .hero2 { padding-top: 28px; } }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; font-size: 0.74rem; font-weight: 600; letter-spacing: 0.16em; color: var(--amber); background: rgba(255, 176, 32, 0.08); border: 1px solid rgba(255, 176, 32, 0.28); margin-bottom: 18px; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 10px var(--mint); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.35; transform: scale(0.7); } }
.title { font-size: clamp(2.7rem, 7.2vw, 5.4rem); line-height: 0.95; margin: 0 0 20px; letter-spacing: -0.01em; }
.title .line { display: block; }
.shine { background: linear-gradient(100deg, #ff6b4a 0%, #ffb020 30%, #fff1c9 45%, #ffb020 60%, #ff6b4a 100%); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shine 5s linear infinite; }
@keyframes shine { to { background-position: -220% 0; } }
.lede2 { color: var(--lilac); font-size: 1.1rem; max-width: 33rem; margin: 0 0 26px; }
.lede2 strong { color: var(--cream); }
.stats { display: grid; grid-template-columns: repeat(4, auto); gap: 10px 26px; margin: 28px 0 0; justify-content: start; }
.stats div { border-left: 2px solid rgba(46, 230, 200, 0.5); padding-left: 12px; }
.stats dt { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: none; color: var(--lilac); }
.stats dd { margin: 2px 0 0; font-family: var(--display); font-weight: 900; font-size: 1.35rem; color: var(--cream); }
@media (max-width: 480px) { .stats { grid-template-columns: repeat(2, auto); } }

/* store buttons get a glow on this page */
.home .store { box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.06); }
.home .store.is-soon { background: var(--glass); border: 1px dashed rgba(201, 184, 232, 0.35); backdrop-filter: blur(8px); }

/* ───────── the phone demo ───────── */
.phone-wrap { position: relative; margin: 0; justify-self: center; width: min(340px, 86vw); }
.phone { position: relative; z-index: 1; aspect-ratio: 9 / 16.6; border-radius: 44px; padding: 12px; background: linear-gradient(160deg, #3a2463, #120822 60%); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 40px 80px rgba(0, 0, 0, 0.55), inset 0 0 0 2px rgba(185, 140, 255, 0.18); animation: float 7s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-10px) rotate(-1deg); } }
.phone-notch { position: absolute; top: 20px; left: 50%; width: 92px; height: 24px; margin-left: -46px; border-radius: 14px; background: #07030d; z-index: 3; }
.phone-glow { position: absolute; inset: 12% -8% -4%; z-index: 0; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 107, 74, 0.45), rgba(123, 60, 255, 0.25) 55%, transparent); filter: blur(30px); animation: glow 7s ease-in-out infinite; }
@keyframes glow { 50% { opacity: 0.6; transform: scale(0.94); } }
.screen { position: relative; height: 100%; border-radius: 33px; overflow: hidden; padding: 48px 16px 18px; background: radial-gradient(120% 70% at 50% 0%, #2e1a52, #1e1033 60%); display: flex; flex-direction: column; gap: 12px; }
.phases { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; justify-content: center; }
.phases li { font-size: 0.62rem; font-weight: 600; letter-spacing: 0.12em; padding: 4px 9px; border-radius: 999px; color: rgba(201, 184, 232, 0.6); border: 1px solid rgba(201, 184, 232, 0.15); transition: all .35s; }
.phone[data-phase="write"] [data-p="write"], .phone[data-phase="vote"] [data-p="vote"], .phone[data-phase="reveal"] [data-p="reveal"], .phone[data-phase="score"] [data-p="score"] { color: var(--deep); background: var(--mint); border-color: var(--mint); box-shadow: 0 0 14px rgba(46, 230, 200, 0.6); }
.timer { height: 5px; border-radius: 3px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.timer i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--mint), var(--amber)); transform-origin: 0 50%; transform: scaleX(1); }
.phone.run-timer .timer i { animation: timer var(--t, 3.2s) linear forwards; }
@keyframes timer { to { transform: scaleX(0); } }
.qcard { background: var(--cream); color: var(--ink); border-radius: 18px; padding: 14px 14px 16px; box-shadow: 0 8px 0 rgba(0, 0, 0, 0.25); transform: rotate(-1deg); }
.qlabel { display: block; font-size: 0.6rem; font-weight: 600; letter-spacing: 0.14em; color: #6b5a86; margin-bottom: 6px; }
.qlabel b { color: var(--coral); }
.qtext { margin: 0; font-family: var(--display); font-weight: 700; font-size: 1.02rem; line-height: 1.3; min-height: 2.6em; }
.qblank { display: inline-block; width: 54px; height: 3px; border-radius: 2px; background: var(--coral); vertical-align: middle; }
.qcard.swap { animation: card-in .5s cubic-bezier(.2, .8, .2, 1); }
@keyframes card-in { from { opacity: 0; transform: translateY(14px) rotate(2deg) scale(0.96); } }

.stage { display: none; }
.phone[data-phase="write"] .stage-write { display: flex; }
.phone[data-phase="vote"] .stage-vote, .phone[data-phase="reveal"] .stage-vote { display: grid; }
.phone[data-phase="score"] .stage-score { display: grid; }
.stage-write { flex-direction: column; gap: 10px; }
.input { display: flex; align-items: center; min-height: 46px; padding: 0 14px; border-radius: 14px; background: var(--cream); color: var(--ink); font-family: var(--display); font-weight: 900; letter-spacing: 0.04em; border: 2px solid var(--amber); box-shadow: 0 0 0 4px rgba(255, 176, 32, 0.18); }
.caret { width: 2px; height: 22px; margin-left: 2px; background: var(--coral); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.fake-btn { all: unset; text-align: center; padding: 12px; border-radius: 14px; font-family: var(--display); font-weight: 900; letter-spacing: 0.08em; color: var(--deep); background: var(--coral); box-shadow: 0 5px 0 #b8432a; }
.phone.sent .fake-btn { animation: press .35s ease; }
@keyframes press { 40% { transform: translateY(4px); box-shadow: 0 1px 0 #b8432a; } }
.host { display: flex; gap: 8px; align-items: flex-start; margin-top: auto; }
.host-say { animation: card-in .4s ease; }
.host-av { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; font-family: var(--display); font-weight: 900; color: var(--deep); background: var(--amber); }
.host-say { background: var(--cream); color: var(--ink); font-size: 0.8rem; font-weight: 600; padding: 8px 11px; border-radius: 4px 14px 14px 14px; }

.answers { list-style: none; margin: 0; padding: 0; gap: 9px; }
.answers li { position: relative; display: flex; align-items: center; justify-content: space-between; min-height: 44px; padding: 0 12px; border-radius: 13px; background: rgba(69, 48, 106, 0.85); font-family: var(--display); font-weight: 700; font-size: 0.88rem; letter-spacing: 0.04em; border: 2px solid transparent; animation: row-in .45s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i, 0) * 90ms); transition: background .3s, border-color .3s, transform .3s; }
@keyframes row-in { from { opacity: 0; transform: translateX(18px); } }
.answers li .who { font-family: var(--body); font-size: 0.66rem; font-weight: 600; color: var(--lilac); opacity: 0; transition: opacity .3s; }
.answers li.picked { border-color: var(--amber); }
.phone[data-phase="reveal"] .answers li .who { opacity: 1; }
.answers li.is-truth.shown { background: linear-gradient(100deg, #ffb020, #ffd27a); color: var(--deep); box-shadow: 0 0 26px rgba(255, 176, 32, 0.55); }
.answers li.is-truth.shown .who { color: var(--deep); }
.answers li.is-lie.shown { opacity: 0.75; }
.answers .stamp2 { position: absolute; left: 46%; top: -10px; padding: 1px 8px; border: 3px solid currentColor; border-radius: 7px; font-family: var(--display); font-weight: 900; font-size: 0.72rem; letter-spacing: 0.08em; background: #1e1033; transform: rotate(9deg) scale(0); opacity: 0; }
.answers li.shown .stamp2 { animation: slam .32s cubic-bezier(.3, 1.6, .5, 1) forwards; }
@keyframes slam { 0% { transform: rotate(9deg) scale(2.2); opacity: 0; } 100% { transform: rotate(9deg) scale(1); opacity: 1; } }
.answers .is-lie .stamp2 { color: var(--coral); }
.answers .is-truth .stamp2 { color: var(--deep); background: #ffe2a4; }
.answers .fooled { position: absolute; left: 12px; top: -10px; font-family: var(--display); font-weight: 900; font-size: 0.7rem; color: var(--deep); background: var(--mint); padding: 1px 7px; border-radius: 999px; opacity: 0; transform: translateY(6px); }
.answers li.shown .fooled { animation: pop-up .4s .15s ease forwards; }
@keyframes pop-up { to { opacity: 1; transform: translateY(0); } }

.board { list-style: none; margin: 0; padding: 0; gap: 8px; }
.board li { display: grid; grid-template-columns: 26px 1fr auto; align-items: center; gap: 8px; min-height: 42px; padding: 0 12px; border-radius: 13px; background: rgba(69, 48, 106, 0.85); font-weight: 600; font-size: 0.86rem; transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.board li b { font-family: var(--display); font-weight: 900; color: var(--amber); }
.board li .pts { font-family: var(--display); font-weight: 900; }
.board li .gain { font-size: 0.68rem; color: var(--mint); margin-left: 6px; }
.board li.lead { background: linear-gradient(100deg, rgba(255, 176, 32, 0.28), rgba(69, 48, 106, 0.85)); box-shadow: inset 0 0 0 1px rgba(255, 176, 32, 0.5); }

/* ───────── sections ───────── */
.sec { padding: 64px 0; }
.sec-tight { padding-bottom: 32px; }
.sec-head { margin-bottom: 28px; max-width: 40rem; }
.kicker { display: inline-block; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.2em; color: var(--mint); margin-bottom: 10px; }
.sec-head h2 { font-size: clamp(1.9rem, 4.4vw, 3rem); margin: 0; }
.sec-sub { color: var(--lilac); margin: 10px 0 0; }

.steps2 { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; counter-reset: s; }
@media (max-width: 820px) { .steps2 { grid-template-columns: 1fr; } }
.step2 { position: relative; padding: 22px 22px 22px; border-radius: 22px; background: var(--glass); border: 1px solid var(--edge); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); overflow: hidden; transition: transform .3s, border-color .3s; }
.step2::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: linear-gradient(140deg, rgba(46, 230, 200, 0.7), transparent 40%, transparent 60%, rgba(255, 107, 74, 0.7)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .3s; }
.step2:hover { transform: translateY(-4px); }
.step2:hover::before { opacity: 1; }
.step2-ico svg { width: 44px; height: 44px; fill: none; stroke: var(--mint); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 8px rgba(46, 230, 200, 0.5)); }
.step2:nth-child(2) .step2-ico svg { stroke: var(--coral); filter: drop-shadow(0 0 8px rgba(255, 107, 74, 0.5)); }
.step2:nth-child(3) .step2-ico svg { stroke: var(--amber); filter: drop-shadow(0 0 8px rgba(255, 176, 32, 0.5)); }
.step2-no { position: absolute; right: 16px; top: 4px; font-family: var(--display); font-weight: 900; font-size: 4.4rem; line-height: 1; color: rgba(255, 255, 255, 0.05); }
.step2 h3 { margin: 12px 0 6px; font-size: 1.25rem; }
.step2 p { margin: 0; color: var(--lilac); font-size: 0.96rem; }

/* marquee */
.marquee { display: flex; overflow: hidden; gap: 14px; padding: 18px 0 8px; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.track { flex: none; display: flex; gap: 14px; align-items: center; list-style: none; margin: 0; padding: 0; animation: marquee 38s linear infinite; }
.marquee:hover .track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(calc(-100% - 14px)); } }
.mcard { flex: none; width: 250px; display: grid; gap: 8px; padding: 14px; border-radius: 18px; background: var(--glass); border: 1px solid var(--edge); }
.mq { font-family: var(--display); font-weight: 700; font-size: 0.95rem; line-height: 1.3; color: var(--cream); }
.mrow { display: flex; justify-content: space-between; align-items: center; padding: 8px 10px; border-radius: 10px; font-family: var(--display); font-weight: 700; font-size: 0.82rem; letter-spacing: 0.04em; background: rgba(69, 48, 106, 0.9); }
.mrow em { font-style: normal; font-weight: 900; font-size: 0.66rem; padding: 1px 6px; border: 2px solid currentColor; border-radius: 6px; transform: rotate(6deg); }
.mrow.lie em { color: var(--coral); }
.mrow.truth { background: var(--amber); color: var(--deep); }
.mcard.final { background: linear-gradient(140deg, rgba(255, 107, 74, 0.35), rgba(123, 60, 255, 0.3)); }
.mcard.final .mrow { background: transparent; padding: 0; font-family: var(--body); font-weight: 600; color: var(--lilac); }
.mbubble { flex: none; padding: 14px 18px; border-radius: 6px 20px 20px 20px; background: var(--cream); color: var(--ink); font-family: var(--display); font-weight: 900; font-size: 1.05rem; transform: rotate(-2deg); }
.mstamp { flex: none; padding: 6px 16px; border: 4px solid var(--coral); border-radius: 12px; color: var(--coral); font-family: var(--display); font-weight: 900; font-size: 1.6rem; letter-spacing: 0.06em; transform: rotate(-8deg); text-shadow: 0 0 18px rgba(255, 107, 74, 0.6); }
.mstamp.alt { border-color: var(--amber); color: var(--amber); text-shadow: 0 0 18px rgba(255, 176, 32, 0.6); transform: rotate(6deg); }

/* bento */
.bento { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.tile { display: flex; gap: 16px; align-items: flex-start; padding: 22px; border-radius: 22px; background: var(--glass); border: 1px solid var(--edge); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.t-wide { grid-column: span 2; }
@media (max-width: 820px) { .bento { grid-template-columns: 1fr; } .t-wide { grid-column: auto; } }
.tile-big { flex: none; display: grid; place-items: center; min-width: 64px; height: 64px; padding: 0 10px; border-radius: 18px; font-family: var(--display); font-weight: 900; font-size: 2rem; color: var(--deep); background: var(--coral); box-shadow: 0 0 26px rgba(255, 107, 74, 0.45); }
.tile-big.mint { background: var(--mint); box-shadow: 0 0 26px rgba(46, 230, 200, 0.4); }
.tile-big.amber { background: var(--amber); box-shadow: 0 0 26px rgba(255, 176, 32, 0.4); }
.tile-big.grape { background: var(--grape); box-shadow: 0 0 26px rgba(185, 140, 255, 0.4); }
.tile h3 { margin: 2px 0 6px; font-size: 1.15rem; }
.tile p { margin: 0; color: var(--lilac); font-size: 0.95rem; }

/* call to action with a rotating light border */
@property --spin { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
.cta2 { position: relative; text-align: center; padding: 48px 24px; border-radius: 28px; background: rgba(30, 16, 51, 0.85); isolation: isolate; }
.cta2::before { content: ""; position: absolute; inset: -2px; z-index: -1; border-radius: 30px; background: conic-gradient(from var(--spin), #ff6b4a, #ffb020, #2ee6c8, #7b3cff, #ff6b4a); animation: spin 6s linear infinite; }
.cta2::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 28px; background: radial-gradient(120% 120% at 50% 0%, #2e1a52, #160a28 70%); }
@keyframes spin { to { --spin: 360deg; } }
.cta2 h2 { font-size: clamp(1.8rem, 4.6vw, 3rem); margin: 0 0 12px; }
.cta2 p { color: var(--lilac); margin: 0 0 24px; }
.cta2 .stores { justify-content: center; }
.cta2 .fineprint { margin-top: 16px; }

.foot2 { border-top: 1px solid var(--edge); background: rgba(14, 6, 25, 0.6); }

/* scroll reveal (home.js adds .in) */
.reveal, .reveal-up { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.2, .8, .2, 1), transform .7s cubic-bezier(.2, .8, .2, 1); }
.reveal.in, .reveal-up.in { opacity: 1; transform: none; }
.d1 { transition-delay: .08s; } .d2 { transition-delay: .16s; } .d3 { transition-delay: .24s; } .d4 { transition-delay: .32s; } .d5 { transition-delay: .4s; }

@media (prefers-reduced-motion: reduce) {
  .orb, .grid-floor, .live-dot, .shine, .phone, .phone-glow, .caret, .track, .cta2::before { animation: none !important; }
  .reveal, .reveal-up { opacity: 1; transform: none; transition: none; }
  .answers li, .qcard.swap, .answers li.shown .stamp2, .answers li.shown .fooled { animation: none !important; opacity: 1; transform: none; }
  .answers li.shown .stamp2 { transform: rotate(9deg); }
  .marquee { overflow-x: auto; }
}
