/* glossi.app — Afterglow: dark, lime, violet. Unbounded + Plus Jakarta Sans. */
:root {
  --bg: #0a0a0b;
  --surface: #161618;
  --raised: #1e1e22;
  --line: #2e2e33;
  --text: #f2f2f5;
  --muted: #a8a8b2;
  --dim: #8a8a94;
  --faint: #5a5a64;
  --lime: #d4ff3a;
  --violet: #7b5cff;
  --ink: #0a0a0b;
  --gold-bg: #1b1d12;
  --display: 'Unbounded', system-ui, sans-serif;
  --body: 'Plus Jakarta Sans', system-ui, sans-serif;
  --wrap: 1280px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  color-scheme: dark;
}
* { box-sizing: border-box }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.55 var(--body);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100% }
a { color: inherit }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 6px }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px }
@media (min-width: 720px) { .wrap { padding: 0 40px } }
.skip { position: absolute; left: -999px; top: 8px; background: var(--lime); color: var(--ink); padding: 8px 14px; border-radius: 999px; font-weight: 700; z-index: 20 }
.skip:focus { left: 16px }

/* type */
.eyebrow { font: 700 13px/1 var(--body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--lime); margin: 0 0 18px }
h1, h2, h3 { font-family: var(--display); font-weight: 800; letter-spacing: -0.01em; margin: 0 }
h1 { font-size: clamp(38px, 6.4vw, 74px); line-height: 1.08 }
h2 { font-size: clamp(30px, 4.2vw, 52px); line-height: 1.12 }
h3 { font-size: clamp(19px, 2vw, 24px); line-height: 1.25 }
.lead { color: var(--muted); font-size: clamp(16px, 1.6vw, 21px); max-width: 560px; margin: 22px 0 0 }
.center { text-align: center }
.center .lead { margin-left: auto; margin-right: auto }
.small { font-size: 14px; color: var(--dim) }

/* nav */
.nav { position: sticky; top: 0; z-index: 10; border-bottom: 1px solid transparent; transition: background 0.25s, border-color 0.25s, backdrop-filter 0.25s }
.nav.on { background: rgba(10, 10, 11, 0.6); backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3); border-color: var(--line) }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px }
.wordmark { font: 800 28px/1 var(--display); text-decoration: none; position: relative; letter-spacing: -0.01em }
.wordmark .i { position: relative }
.wordmark svg { position: absolute; width: 0.42em; height: 0.42em; left: 50%; top: -0.2em; transform: translateX(-50%); fill: var(--lime); filter: drop-shadow(0 0 6px rgba(212, 255, 58, 0.55)) }
.nav ul { display: none; list-style: none; margin: 0; padding: 0; gap: 34px }
.nav ul a { text-decoration: none; color: var(--muted); font-weight: 600; font-size: 15px }
.nav ul a:hover { color: var(--text) }
@media (min-width: 900px) { .nav ul { display: flex } }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 22px; border-radius: 999px; background: var(--lime); color: var(--ink); font: 700 15px/1 var(--body); text-decoration: none; box-shadow: 0 0 28px rgba(212, 255, 58, 0.28); transition: transform 0.2s var(--ease), box-shadow 0.2s }
.btn:hover { box-shadow: 0 0 40px rgba(212, 255, 58, 0.45) }
.btn:active { transform: scale(0.97) }

/* app store */
.store { display: inline-flex; align-items: center; gap: 12px; height: 60px; padding: 0 22px 0 16px; border-radius: 14px; background: #000; border: 1.2px solid var(--faint); text-decoration: none; color: var(--text) }
.store svg { width: 28px; height: 28px; fill: var(--text) }
.store small { display: block; font: 600 11px/1.1 var(--body) }
.store b { display: block; font: 700 20px/1.1 var(--body) }
.store[aria-disabled='true'] { cursor: default }

/* glow blobs */
.glow { position: absolute; border-radius: 50%; filter: blur(110px); pointer-events: none; z-index: -1 }

/* hero */
.hero { position: relative; padding: 56px 0 40px; isolation: isolate }
.hero .split { display: grid; gap: 40px; align-items: center }
@media (min-width: 960px) { .hero .split { grid-template-columns: 1.05fr 1fr; padding-top: 40px } }
.hero h1 .w { display: inline-block }
.hero .store { margin-top: 34px }
.hero .small { margin-top: 14px }
.stage { position: relative; height: 560px; max-width: 520px; width: 100%; margin: 0 auto }
@media (max-width: 600px) { .stage { height: 440px } }
.phone { position: absolute; left: 50%; top: 0; width: 270px; aspect-ratio: 1 / 2.165; transform: translateX(-50%); border-radius: 46px; background: #000; border: 1.5px solid var(--line); padding: 9px; box-shadow: 0 40px 80px -30px #000 }
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 38px }
.phone::after { content: ''; position: absolute; left: 50%; top: 18px; width: 76px; height: 22px; border-radius: 12px; background: #000; transform: translateX(-50%) }
@media (max-width: 600px) { .phone { width: 200px; border-radius: 34px; padding: 7px } .phone img { border-radius: 28px } .phone::after { top: 13px; width: 56px; height: 16px } }
.stage .phone { z-index: 1 }
.stage .card { position: absolute; width: 41%; aspect-ratio: 11 / 15; border-radius: 22px; overflow: hidden; box-shadow: 0 30px 60px -20px #000; top: 34%; --r: -9deg; transform: rotate(var(--r)) }
.stage .card img { width: 100%; height: 100%; object-fit: cover }
.stage .card.l { left: 0 }
.stage .card.r { right: 0; top: 28%; --r: 9deg }
.spark { position: absolute; width: 26px; height: 26px; fill: var(--lime) }

/* facts */
.facts { list-style: none; margin: 40px auto 0; padding: 18px 26px; display: grid; gap: 14px; border: 1px solid var(--line); background: var(--surface); border-radius: 28px }
.facts li { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: 17px }
.facts svg { width: 22px; height: 22px; fill: var(--lime); flex: none }
@media (min-width: 820px) { .facts { grid-template-columns: repeat(3, 1fr); border-radius: 999px; padding: 26px 40px } .facts li { justify-content: center } }

/* sections */
section { padding: 110px 0 0 }
@media (max-width: 720px) { section { padding-top: 84px } }
.grid3 { display: grid; gap: 18px; margin-top: 52px; grid-template-columns: repeat(2, minmax(0, 1fr)) }
@media (min-width: 900px) { .grid3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px } }

/* compare card */
.cmp { position: relative; border-radius: 26px; overflow: hidden; aspect-ratio: 40 / 41; background: var(--surface); cursor: ew-resize; touch-action: pan-y; user-select: none; -webkit-user-select: none; --p: 55% }
.cmp img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30% }
.cmp .after { clip-path: inset(0 calc(100% - var(--p)) 0 0) }
.cmp .bar { position: absolute; top: 0; bottom: 0; left: var(--p); width: 2px; margin-left: -1px; background: var(--lime); box-shadow: 0 0 12px rgba(212, 255, 58, 0.7) }
.cmp .bar::after { content: ''; position: absolute; top: 50%; left: 50%; width: 26px; height: 26px; border-radius: 50%; background: var(--lime); transform: translate(-50%, -50%); box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5) }
.cmp .tag { position: absolute; top: 14px; padding: 6px 10px; border-radius: 999px; background: rgba(0, 0, 0, 0.55); font: 700 10.5px/1 var(--body); letter-spacing: 0.08em }
.cmp .tag.a { left: 14px }
.cmp .tag.b { right: 14px }
.cmp .name { position: absolute; left: 0; right: 0; bottom: 0; padding: 60px 20px 18px; background: linear-gradient(180deg, transparent, rgba(10, 10, 11, 0.85)); font: 700 20px/1.1 var(--body) }
.cmp input { position: absolute; width: 1px; height: 1px; opacity: 0; margin: 0; pointer-events: none }
.cmp:focus-within { outline: 2px solid var(--lime); outline-offset: 3px }
@media (max-width: 600px) { .cmp { border-radius: 18px; aspect-ratio: 175 / 236 } .cmp .name { font-size: 15px; padding: 40px 12px 12px } .cmp .tag { display: none } .cmp .bar::after { width: 18px; height: 18px } }
.cmp.wide { aspect-ratio: 62 / 38 }
.cmp.tall { aspect-ratio: 60 / 56 }
@media (max-width: 600px) { .cmp.wide, .cmp.tall { aspect-ratio: 358 / 240 } }

/* steps */
.steps { display: grid; gap: 56px; margin-top: 56px; counter-reset: s }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 40px } }
.step { text-align: center }
.step .phone { position: relative; left: auto; transform: none; margin: 0 auto; width: 240px }
.step .num { display: grid; place-items: center; width: 44px; height: 44px; margin: 34px auto 18px; border-radius: 50%; background: var(--lime); color: var(--ink); font: 800 18px/1 var(--display) }
.step p { color: var(--muted); margin: 10px auto 0; max-width: 320px }

/* promise */
.promise { display: grid; gap: 48px; align-items: center; position: relative; isolation: isolate }
@media (min-width: 960px) { .promise { grid-template-columns: 1fr 1fr; gap: 80px } }
.checks { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 16px }
.checks li { display: flex; gap: 14px; align-items: center; font-weight: 600; font-size: 17px }
.checks li::before { content: ''; flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--lime) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%230a0a0b' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 15px no-repeat }

/* tools */
.tools { display: grid; gap: 40px; margin-top: 52px }
@media (min-width: 900px) { .tools { grid-template-columns: 1fr 1fr } }
.tools h3 { margin-top: 22px }
.tools p { color: var(--muted); margin: 8px 0 0 }

/* pricing */
.plans { display: grid; gap: 18px; margin: 52px auto 0; max-width: 760px }
@media (min-width: 720px) { .plans { grid-template-columns: 1fr 1fr; gap: 40px } .plans .gold { order: 2 } }
.plan { border: 1px solid var(--line); background: var(--surface); border-radius: 26px; padding: 30px 28px; text-align: left }
.plan.gold { background: var(--gold-bg); border: 2px solid var(--lime) }
.plan .pill { display: inline-block; padding: 7px 11px; border-radius: 999px; background: var(--lime); color: var(--ink); font: 800 10.5px/1 var(--body); letter-spacing: 0.08em; margin-bottom: 18px }
.plan .tier { font: 700 22px/1 var(--body) }
.plan .price { margin-top: 20px; font: 800 48px/1 var(--display) }
.plan .price span { font: 400 16px/1 var(--body); color: var(--muted); margin-left: 6px }
.plan .edits { margin-top: 14px; font-weight: 600; color: var(--muted) }
.plan.gold .edits { color: var(--lime) }
.plan .all { margin-top: 4px; font-size: 14px; color: var(--muted) }

/* faq */
.faq { display: grid; gap: 30px }
@media (min-width: 960px) { .faq { grid-template-columns: 400px 1fr; gap: 80px } }
.faq dl { margin: 0 }
.faq dt { font: 700 20px/1.3 var(--body); padding-top: 34px; border-top: 1px solid var(--line) }
.faq dd { margin: 10px 0 34px; color: var(--muted); font-size: 16px }

/* cta + footer */
.cta { position: relative; isolation: isolate; padding: 140px 0 120px; text-align: center }
.cta .store { margin-top: 34px }
footer { border-top: 1px solid var(--line); padding: 50px 0 60px }
footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px }
footer .wordmark { font-size: 24px }
footer nav { display: flex; flex-wrap: wrap; gap: 28px }
footer nav a { text-decoration: none; color: var(--muted); font-weight: 600; font-size: 14px }
footer nav a:hover { color: var(--text) }
footer .small { color: var(--faint); font-size: 13px; width: 100% }

/* legal + support */
.legal { padding: 70px 0 110px }
.legal .wrap { display: grid; gap: 40px }
@media (min-width: 960px) { .legal .wrap { grid-template-columns: 300px minmax(0, 760px); gap: 80px } }
.legal h1 { font-size: clamp(34px, 5vw, 60px) }
.legal .updated { color: var(--dim); margin-top: 14px; font-size: 15px }
.toc { align-self: start; position: sticky; top: 100px; border: 1px solid var(--line); background: var(--surface); border-radius: 20px; padding: 22px 24px; display: none }
@media (min-width: 960px) { .toc { display: block } }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px }
.toc a { text-decoration: none; color: var(--muted); font-weight: 600; font-size: 14.5px }
.toc a.on, .toc a:hover { color: var(--lime) }
.prose h2 { font-size: 24px; margin: 44px 0 12px; scroll-margin-top: 100px }
.prose p, .prose li { color: #c9c9d1; font-size: 17px; line-height: 1.65 }
.prose ul { padding-left: 20px }
.prose a { color: var(--lime) }
.cards { display: grid; gap: 18px; margin-top: 50px }
@media (min-width: 900px) { .cards { grid-template-columns: repeat(3, 1fr); gap: 30px } }
.scard { text-align: left; border: 1px solid var(--line); background: var(--surface); border-radius: 26px; padding: 28px; text-decoration: none; display: block }
.scard .ic { width: 48px; height: 48px; border-radius: 50%; background: #1f2410; display: grid; place-items: center; margin-bottom: 26px }
.scard .ic svg { width: 24px; height: 24px; fill: none; stroke: var(--lime); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round }
.scard small { color: var(--muted); font-weight: 600; font-size: 15px }
.scard b { display: block; font: 800 22px/1.2 var(--display); margin: 6px 0 10px }
.scard p { margin: 0; color: var(--muted); font-size: 14.5px }

/* motion (all of it opts out under reduced motion, below) */
.js .rv { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease-out, transform 0.6s var(--ease) }
.js .rv.in { opacity: 1; transform: none }
.js .rv.d1 { transition-delay: 0.08s } .js .rv.d2 { transition-delay: 0.16s } .js .rv.d3 { transition-delay: 0.24s }
.js .hero h1 .w { opacity: 0; transform: translateY(16px); animation: rise 0.7s var(--ease) forwards; animation-delay: calc(var(--i) * 80ms + 100ms) }
.js .hero .fade { opacity: 0; animation: fade 0.8s ease-out 0.75s forwards }
@keyframes rise { to { opacity: 1; transform: none } }
@keyframes fade { to { opacity: 1 } }
.stage .phone { animation: bob 5s ease-in-out infinite }
.stage .card.l { animation: bobc 6s ease-in-out infinite }
.stage .card.r { animation: bobc 6s ease-in-out -3s infinite }
@keyframes bob { 50% { transform: translateX(-50%) translateY(-8px) } }
@keyframes bobc { 50% { transform: rotate(var(--r)) translateY(-7px) } }
.js .checks li { opacity: 0; transform: translateX(-8px); transition: opacity 0.45s ease-out, transform 0.45s var(--ease); transition-delay: calc(var(--i) * 250ms) }
.js .checks.in li { opacity: 1; transform: none }
.plan.gold.in { animation: glow 2.2s ease-in-out 0.3s 1 }
@keyframes glow { 40% { box-shadow: 0 0 44px rgba(212, 255, 58, 0.38) } }
.cmp.sweep .after, .cmp.sweep .bar { transition: clip-path 1.6s var(--ease), left 1.6s var(--ease) }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto }
  *, *::before, *::after { animation: none !important; transition: none !important }
  .js .rv, .js .hero h1 .w, .js .hero .fade, .js .checks li { opacity: 1; transform: none }
}
