/* ============================================================
   Speakeasy — editorial noir
   Warm charcoal, brass, cream. Art-deco geometry, dim-bar mood.
   ============================================================ */

:root {
  --ink: #16110c;          /* near-black, warm */
  --ink-2: #1f1810;        /* raised panel */
  --ink-3: #2a2117;        /* hairline / border */
  --cream: #f3e9d8;        /* primary text */
  --cream-dim: #b6a489;    /* secondary text */
  --brass: #d8a14a;        /* primary accent */
  --brass-deep: #b67e2e;
  --brass-soft: #e9c486;
  --ember: #c9602f;        /* warm secondary accent */

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Newsreader', Georgia, serif;
  --font-mono: 'Spline Sans Mono', ui-monospace, monospace;

  --maxw: 1120px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background:
    radial-gradient(120% 80% at 50% -10%, #241a10 0%, var(--ink) 55%) fixed,
    var(--ink);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Film-grain overlay for atmosphere */
.grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

a { color: inherit; text-decoration: none; }
kbd {
  font-family: var(--font-mono);
  font-size: 0.82em;
  background: var(--ink-2);
  border: 1px solid var(--ink-3);
  border-bottom-width: 2px;
  border-radius: 6px;
  padding: 0.12em 0.5em;
  color: var(--brass-soft);
  white-space: nowrap;
}

/* ----------------------------- Buttons ----------------------------- */
.btn {
  --pad-y: 0.72rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: var(--pad-y) 1.35rem;
  border-radius: 2px;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
    background 0.25s var(--ease), color 0.25s var(--ease);
  cursor: pointer;
}
.btn--lg { --pad-y: 0.95rem; font-size: 0.88rem; padding-left: 1.8rem; padding-right: 1.8rem; }
.btn--gold {
  background: linear-gradient(180deg, var(--brass-soft), var(--brass));
  color: #2a1c08;
  box-shadow: 0 0 0 1px var(--brass-deep), 0 12px 30px -12px rgba(216, 161, 74, 0.6);
}
.btn--gold:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px var(--brass-soft), 0 18px 40px -14px rgba(216, 161, 74, 0.75); }
.btn--ghost {
  border-color: var(--ink-3);
  color: var(--cream);
  background: rgba(243, 233, 216, 0.02);
}
.btn--ghost:hover { border-color: var(--brass); color: var(--brass-soft); transform: translateY(-2px); }

/* ------------------------------- Nav ------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 2rem;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 1.1rem 1.6rem;
  background: linear-gradient(180deg, rgba(22, 17, 12, 0.92), rgba(22, 17, 12, 0.4));
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--ink-3);
}
.wordmark {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.3rem;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}
.wordmark__glyph { color: var(--brass); font-size: 0.9em; }
.nav__links {
  display: flex;
  gap: 1.6rem;
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.nav__links a { color: var(--cream-dim); transition: color 0.2s; }
.nav__links a:hover { color: var(--brass-soft); }
.nav__gh { color: var(--cream) !important; }
.nav__cta { padding: 0.5rem 1.1rem; }

@media (max-width: 760px) {
  .nav__links { display: none; }
  .nav { gap: 1rem; }
  .nav__cta { margin-left: auto; }
}

/* ------------------------------ Hero ------------------------------- */
.hero {
  position: relative;
  z-index: 2;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(3.5rem, 9vw, 7rem) 1.6rem clamp(2rem, 5vw, 4rem);
  text-align: center;
}
.hero__eyebrow {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 1.6rem;
  animation: rise 0.8s var(--ease) both;
}
.hero__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.8rem, 9vw, 6.2rem);
  line-height: 0.98;
  letter-spacing: -0.02em;
  margin-bottom: 1.6rem;
  animation: rise 0.8s var(--ease) 0.08s both;
}
.hero__title-accent {
  font-style: italic;
  font-weight: 500;
  color: var(--brass);
}
.hero__lede {
  max-width: 36rem;
  margin: 0 auto 2.4rem;
  font-size: clamp(1.05rem, 2.4vw, 1.3rem);
  color: var(--cream-dim);
  line-height: 1.66;
  animation: rise 0.8s var(--ease) 0.16s both;
}
.hero__cta {
  display: flex;
  gap: 0.9rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: rise 0.8s var(--ease) 0.24s both;
}
.hero__fineprint {
  margin-top: 1.1rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  color: var(--cream-dim);
  opacity: 0.7;
  animation: rise 0.8s var(--ease) 0.32s both;
}

/* The listening pill — the actual product UI as a hero artifact */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  margin-top: clamp(2.8rem, 7vw, 4.5rem);
  padding: 0.7rem 1.4rem;
  background: linear-gradient(180deg, var(--ink-2), #140f0a);
  border: 1px solid var(--ink-3);
  border-radius: 999px;
  box-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(243, 233, 216, 0.05);
  animation: rise 0.9s var(--ease) 0.45s both, float 6s ease-in-out 1.3s infinite;
}
.pill__dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--ember);
  box-shadow: 0 0 12px 2px rgba(201, 96, 47, 0.8);
  animation: pulse 1.8s ease-in-out infinite;
}
.pill__wave { display: inline-flex; align-items: center; gap: 3px; height: 26px; }
.pill__wave i {
  width: 3px;
  border-radius: 2px;
  background: linear-gradient(var(--brass-soft), var(--brass-deep));
  animation: bars 1.1s ease-in-out infinite;
}
.pill__wave i:nth-child(odd) { animation-duration: 0.9s; }
.pill__wave i:nth-child(1) { animation-delay: -0.9s; }
.pill__wave i:nth-child(2) { animation-delay: -0.2s; }
.pill__wave i:nth-child(3) { animation-delay: -0.6s; }
.pill__wave i:nth-child(4) { animation-delay: -0.1s; }
.pill__wave i:nth-child(5) { animation-delay: -0.7s; }
.pill__wave i:nth-child(6) { animation-delay: -0.35s; }
.pill__wave i:nth-child(7) { animation-delay: -0.55s; }
.pill__wave i:nth-child(8) { animation-delay: -0.15s; }
.pill__wave i:nth-child(9) { animation-delay: -0.8s; }
.pill__wave i:nth-child(10) { animation-delay: -0.45s; }
.pill__wave i:nth-child(11) { animation-delay: -0.25s; }
.pill__wave i:nth-child(12) { animation-delay: -0.65s; }
.pill__label {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  color: var(--cream-dim);
}

/* ----------------------------- Ticker ------------------------------ */
.ticker {
  position: relative;
  z-index: 2;
  overflow: hidden;
  border-top: 1px solid var(--ink-3);
  border-bottom: 1px solid var(--ink-3);
  padding: 1.1rem 0;
  margin-top: clamp(2.5rem, 6vw, 4rem);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.ticker__track {
  display: inline-flex;
  align-items: center;
  gap: 1.6rem;
  white-space: nowrap;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--cream-dim);
  animation: marquee 28s linear infinite;
}
.ticker__dot { color: var(--brass); font-style: normal; font-size: 0.7em; }

/* --------------------------- Section base -------------------------- */
section { position: relative; z-index: 2; }
.section-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.8rem, 5vw, 3rem);
  letter-spacing: -0.01em;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(3.5rem, 9vw, 6rem) 1.6rem clamp(1.5rem, 4vw, 3rem);
  display: flex;
  align-items: baseline;
  gap: 1rem;
}
.section-title span {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--brass);
  letter-spacing: 0.1em;
}

/* ------------------------------ How -------------------------------- */
.steps {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1.6rem 3rem;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.step {
  border-top: 2px solid var(--ink-3);
  padding-top: 1.4rem;
  transition: border-color 0.4s var(--ease);
}
.step:hover { border-color: var(--brass); }
.step__num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.6rem;
  color: var(--brass);
}
.step h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.4rem;
  margin: 0.5rem 0 0.6rem;
}
.step p { color: var(--cream-dim); font-size: 1rem; }
@media (max-width: 860px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* ---------------------------- Features ----------------------------- */
.feature-grid {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1.6rem 2rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}
.feature {
  background: linear-gradient(180deg, var(--ink-2), rgba(20, 15, 10, 0.6));
  border: 1px solid var(--ink-3);
  border-radius: 4px;
  padding: 1.8rem;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}
.feature:hover { transform: translateY(-4px); border-color: var(--brass-deep); }
.feature--wide { grid-column: span 2; }
.feature h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.35rem;
  margin-bottom: 0.6rem;
  color: var(--brass-soft);
}
.feature p { color: var(--cream-dim); }
.feature em { color: var(--cream); font-style: italic; }
@media (max-width: 860px) {
  .feature-grid { grid-template-columns: 1fr; }
  .feature--wide { grid-column: span 1; }
}

/* ---------------------------- Editions ----------------------------- */
.edition-grid {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1.6rem 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
}
.edition {
  border: 1px solid var(--ink-3);
  border-radius: 6px;
  padding: 2.2rem;
  background: linear-gradient(180deg, var(--ink-2), rgba(20, 15, 10, 0.5));
  display: flex;
  flex-direction: column;
}
.edition--feature {
  border-color: var(--brass-deep);
  box-shadow: 0 30px 70px -40px rgba(216, 161, 74, 0.5);
  background:
    radial-gradient(120% 60% at 50% 0%, rgba(216, 161, 74, 0.08), transparent 60%),
    linear-gradient(180deg, var(--ink-2), rgba(20, 15, 10, 0.5));
}
.edition__tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cream-dim);
}
.edition__tag--gold { color: var(--brass); }
.edition__name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 2rem;
  margin: 0.4rem 0 0.9rem;
}
.edition__desc { color: var(--cream-dim); margin-bottom: 1.3rem; }
.edition__list { list-style: none; margin-bottom: 1.8rem; display: grid; gap: 0.6rem; }
.edition__list li {
  position: relative;
  padding-left: 1.4rem;
  color: var(--cream);
  font-size: 1rem;
}
.edition__list li::before {
  content: "◊";
  position: absolute;
  left: 0;
  color: var(--brass);
  font-size: 0.8em;
  top: 0.15em;
}
.edition__cta { margin-top: auto; align-self: flex-start; }
@media (max-width: 760px) { .edition-grid { grid-template-columns: 1fr; } }

/* ----------------------------- Pricing ----------------------------- */
.pricing__intro {
  max-width: 40rem;
  margin: -1rem auto 0;
  padding: 0 1.6rem;
  text-align: center;
  color: var(--cream-dim);
}
.price-grid {
  max-width: var(--maxw);
  margin: 2.5rem auto 0;
  padding: 0 1.6rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.price {
  position: relative;
  border: 1px solid var(--ink-3);
  border-radius: 6px;
  padding: 1.8rem 1.5rem;
  background: linear-gradient(180deg, var(--ink-2), rgba(20, 15, 10, 0.5));
  display: flex;
  flex-direction: column;
}
.price--featured {
  border-color: var(--brass);
  transform: translateY(-8px);
  box-shadow: 0 30px 70px -40px rgba(216, 161, 74, 0.6);
}
.price__ribbon {
  position: absolute;
  top: -0.7rem;
  left: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: linear-gradient(180deg, var(--brass-soft), var(--brass));
  color: #2a1c08;
  padding: 0.25rem 0.7rem;
  border-radius: 2px;
}
.price__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  margin-bottom: 0.4rem;
}
.price__amount {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 2.6rem;
  line-height: 1;
  margin-bottom: 0.3rem;
}
.price__amount span {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--cream-dim);
  letter-spacing: 0;
}
.price__note { font-size: 0.9rem; color: var(--cream-dim); margin-bottom: 1.1rem; min-height: 2.4em; }
.price__list { list-style: none; display: grid; gap: 0.5rem; margin-bottom: 1.6rem; font-size: 0.95rem; }
.price__list li { position: relative; padding-left: 1.2rem; }
.price__list li::before { content: "·"; position: absolute; left: 0.35rem; color: var(--brass); }
.price__cta { margin-top: auto; justify-content: center; }
.pricing__foot {
  max-width: var(--maxw);
  margin: 1.6rem auto 0;
  padding: 0 1.6rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--cream-dim);
  opacity: 0.75;
}
@media (max-width: 980px) { .price-grid { grid-template-columns: repeat(2, 1fr); } .price--featured { transform: none; } }
@media (max-width: 520px) { .price-grid { grid-template-columns: 1fr; } }

/* ---------------------------- Download ----------------------------- */
.download {
  max-width: var(--maxw);
  margin: clamp(4rem, 10vw, 7rem) auto;
  padding: 0 1.6rem;
}
.download__inner {
  text-align: center;
  padding: clamp(3rem, 8vw, 5.5rem) 2rem;
  border: 1px solid var(--brass-deep);
  border-radius: 10px;
  background:
    radial-gradient(100% 120% at 50% 0%, rgba(216, 161, 74, 0.12), transparent 55%),
    linear-gradient(180deg, var(--ink-2), #120d08);
  box-shadow: 0 40px 100px -50px rgba(216, 161, 74, 0.5);
}
.download__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-style: italic;
  font-size: clamp(2.6rem, 8vw, 5rem);
  color: var(--brass);
  margin-bottom: 0.8rem;
}
.download__lede { max-width: 32rem; margin: 0 auto 2rem; color: var(--cream-dim); font-size: 1.15rem; }
.download__cta { display: flex; gap: 0.9rem; justify-content: center; flex-wrap: wrap; }
.download__fine {
  margin-top: 1.4rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--cream-dim);
  opacity: 0.7;
}

/* ----------------------------- Footer ------------------------------ */
.footer {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 2.5rem 1.6rem 3.5rem;
  border-top: 1px solid var(--ink-3);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.2rem;
}
.footer__brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.footer__tag {
  font-family: var(--font-body);
  font-style: italic;
  font-weight: 400;
  font-size: 0.95rem;
  color: var(--cream-dim);
  margin-left: 0.4rem;
}
.footer__links {
  display: flex;
  gap: 1.4rem;
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.footer__links a { color: var(--cream-dim); transition: color 0.2s; }
.footer__links a:hover { color: var(--brass-soft); }
.footer__copy {
  width: 100%;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--cream-dim);
  opacity: 0.55;
}

/* ---------------------------- Keyframes ---------------------------- */
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.45; transform: scale(0.82); } }
@keyframes bars { 0%, 100% { height: 7px; } 50% { height: 24px; } }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; }
  html { scroll-behavior: auto; }
}
