/* ============================================================
   TASTEFUL NOISE — store stylesheet
   Dark, premium developer-brand aesthetic. One theme site-wide;
   product accent colors appear only as small typographic labels.
   ============================================================ */

:root {
  --bg:        #0B0D10;
  --bg-soft:   #0E1116;
  --card:      #12151B;
  --card-2:    #161A21;
  --line:      rgba(255, 255, 255, 0.08);
  --line-2:    rgba(255, 255, 255, 0.14);
  --text:      #E9EDF2;
  --muted:     #98A2AE;
  --faint:     #667180;
  --accent:    #3FD9EA;
  --accent-dk: #07222A;

  /* product accents — used for kind labels + focus details only */
  --tomato:  #FF6B57;
  --butter:  #F0A93B;
  --jam:     #E06C9F;
  --honey:   #DE9F3F;
  --pickle:  #7CB65A;
  --cake:    #E88BB4;

  --radius: 16px;
  --radius-sm: 12px;
  --shadow: 0 20px 40px -24px rgba(0, 0, 0, 0.7);
  --ease: cubic-bezier(0.22, 0.68, 0.3, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --font: "Inter", -apple-system, "Helvetica Neue", Arial, sans-serif;
  --display: "Space Grotesk", "Inter", -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

::selection { background: rgba(63, 217, 234, 0.25); }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ---------- nav ---------- */

.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 13, 16, 0.82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex; align-items: center; gap: 28px;
  padding: 16px 24px; max-width: 1120px; margin: 0 auto;
}
.nav-logo {
  display: flex; align-items: center; gap: 11px;
  text-decoration: none; font-weight: 600; font-size: 16px;
  font-family: var(--display);
  letter-spacing: 0.14em; white-space: nowrap; color: var(--text);
}
.nav-logo img { border-radius: 8px; }
.nav-links {
  display: flex; gap: 26px; margin-left: auto;
  align-items: center;
}
.nav-links a {
  text-decoration: none; font-weight: 500; font-size: 14px;
  color: var(--muted);
  transition: color 0.15s ease;
}
.nav-links a:hover { color: var(--text); }
.nav-cta {
  background: var(--text); color: var(--bg) !important;
  padding: 8px 16px; border-radius: 9px; font-weight: 600 !important;
  transition: background 0.18s var(--ease);
}
.nav-cta:hover { background: var(--accent); color: var(--accent-dk) !important; }

@media (max-width: 720px) {
  .nav-links a:not(.nav-cta) { display: none; }
}
.nav-cta { white-space: nowrap; }
@media (max-width: 480px) {
  .nav-inner { gap: 12px; padding: 12px 16px; }
  .nav-logo { font-size: 14px; gap: 8px; }
  .nav-logo img { width: 28px; height: 28px; }
  .nav .nav-cta { padding: 7px 13px; font-size: 13px; }
}

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--font);
  font-weight: 600; font-size: 15px;
  letter-spacing: 0.01em;
  padding: 13px 26px;
  border-radius: 10px;
  border: 1px solid var(--line-2);
  text-decoration: none;
  cursor: pointer;
  background: transparent; color: var(--text);
  transition: transform 0.18s var(--ease), border-color 0.18s var(--ease),
              background 0.18s var(--ease), box-shadow 0.18s var(--ease);
  will-change: transform;
}
.btn:hover { transform: translateY(-1px); border-color: rgba(255, 255, 255, 0.3); background: rgba(255, 255, 255, 0.04); }
.btn:active { transform: none; transition-duration: 0.06s; }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.btn-primary, .btn-cyan {
  background: var(--accent); color: var(--accent-dk); border-color: var(--accent);
  box-shadow: 0 0 28px rgba(63, 217, 234, 0.22);
}
.btn-primary:hover, .btn-cyan:hover {
  background: #5AE1F0; border-color: #5AE1F0; color: var(--accent-dk);
  box-shadow: 0 0 40px rgba(63, 217, 234, 0.4);
}
.btn-ink { background: var(--text); color: var(--bg); border-color: var(--text); }
.btn-ink:hover { background: #fff; border-color: #fff; }
.btn-free { background: var(--accent); color: var(--accent-dk); border-color: var(--accent); }

.btn[disabled], .btn.is-soon {
  background: rgba(255, 255, 255, 0.04); color: var(--faint);
  border-color: var(--line); box-shadow: none; cursor: default; transform: none;
}
.btn[disabled]:hover, .btn.is-soon:hover {
  transform: none; box-shadow: none;
  background: rgba(255, 255, 255, 0.04); border-color: var(--line);
}

/* ---------- hero ---------- */

.hero { padding: 110px 0 88px; text-align: center; position: relative; }
.hero::before {
  content: "";
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(760px 420px at 50% -80px, rgba(63, 217, 234, 0.08), transparent 70%);
}
.hero .wrap { position: relative; }
.hero .mark { width: 76px; height: 76px; margin: 0 auto 30px; border-radius: 18px; display: block; }
.hero .mark .bar {
  transform-box: fill-box; transform-origin: center;
  animation: meter-pulse 2.4s ease-in-out infinite;
}
.hero .mark .b1 { animation-delay: 0s; }
.hero .mark .b2 { animation-delay: 0.3s; }
.hero .mark .b3 { animation-delay: 0.6s; }
.hero .mark .b4 { animation-delay: 0.15s; }
@keyframes meter-pulse {
  0%, 100% { transform: scaleY(1); }
  50%      { transform: scaleY(0.68); }
}
@media (prefers-reduced-motion: reduce) {
  .hero .mark .bar { animation: none; }
}
.hero h1 {
  font-family: var(--display);
  font-size: clamp(40px, 6.5vw, 72px);
  font-weight: 700; line-height: 1.04; letter-spacing: -0.02em;
}
.hero h1 .flavor {
  color: var(--accent);
  background: linear-gradient(90deg, #3FD9EA, #E88BB4, #F0A93B, #7CB65A, #3FD9EA);
  background-size: 320% 100%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: flavor-shift 9s linear infinite;
}
@keyframes flavor-shift { to { background-position: 320% 0; } }
@media (prefers-reduced-motion: reduce) {
  .hero h1 .flavor { animation: none; }
}
.hero p.lede {
  max-width: 620px; margin: 24px auto 0;
  font-size: 18px; line-height: 1.6; color: var(--muted); font-weight: 400;
}
.hero-ctas { margin-top: 38px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-badges {
  margin-top: 44px; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap;
  font-size: 11.5px; font-weight: 600; letter-spacing: 0.1em; color: var(--muted);
}
.hero-badges span {
  border: 1px solid var(--line); border-radius: 8px; padding: 6px 13px;
  background: rgba(255, 255, 255, 0.02);
}

/* ---------- section scaffolding ---------- */

.section { padding: 96px 0; }
.section-head { text-align: center; margin-bottom: 60px; }
.kicker {
  display: inline-block; font-size: 12px; font-weight: 600;
  letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 14px;
}
.section-head h2 {
  font-family: var(--display);
  font-size: clamp(28px, 4.5vw, 42px); font-weight: 700;
  line-height: 1.1; letter-spacing: -0.015em;
}
.section-head p { max-width: 580px; margin: 16px auto 0; color: var(--muted); }
.section-head a { color: var(--text); }

/* ---------- scroll reveal ---------- */

/* ---------- interactive ingredient garnish layer (driven by garnish.js) ---------- */

.garnish-layer {
  position: fixed; inset: 0; z-index: -1;
  overflow: hidden; pointer-events: none;
  contain: strict;
}
.garnish-layer .gitem {
  position: absolute; top: 0; left: 0;
  will-change: transform;
  user-select: none;
}
.garnish-layer .gitem svg { display: block; overflow: visible; }

[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
  transition-delay: var(--reveal-delay, 0s);
}
[data-reveal].is-revealed { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ---------- product grid ---------- */

.grid {
  display: grid; gap: 24px;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform 0.35s var(--ease-bounce), border-color 0.25s var(--ease),
              box-shadow 0.25s var(--ease), opacity 0.65s var(--ease);
  text-decoration: none;
  will-change: transform;
}
.card:hover {
  transform: translateY(-6px) scale(1.012);
  border-color: var(--line-2);
  border-color: color-mix(in srgb, var(--accent-label, var(--accent)) 45%, transparent);
  box-shadow: var(--shadow),
              0 14px 44px -16px color-mix(in srgb, var(--accent-label, var(--accent)) 35%, transparent);
}
.card:hover .card-title h3 { color: var(--accent-label, var(--text)); }
.card-shot { border-bottom: 1px solid var(--line); aspect-ratio: 1440 / 928; background: var(--bg-soft); overflow: hidden; }
.card-shot img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.card:hover .card-shot img { transform: scale(1.035) rotate(-0.4deg); }
.card:hover .card-go { color: var(--accent-label, var(--accent)); }
.card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-title { display: flex; align-items: baseline; gap: 10px; }
.card-title h3 {
  font-family: var(--display);
  font-size: 19px; font-weight: 700; letter-spacing: 0.04em; color: var(--text);
  transition: color 0.2s var(--ease);
}
.card-kind {
  font-size: 11px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent-label, var(--muted));
}
.card p { color: var(--muted); font-size: 14.5px; flex: 1; }
.card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; }
.price { font-size: 19px; font-weight: 700; color: var(--text); }
.price small { font-size: 13px; color: var(--faint); font-weight: 500; }
.price .free { color: var(--accent); }
.card-go {
  font-weight: 600; font-size: 13.5px; color: var(--muted);
  transition: color 0.2s var(--ease);
}

/* ---------- bundle band ---------- */

.bundle {
  background: linear-gradient(140deg, var(--card-2) 0%, var(--card) 60%);
  color: var(--text);
  border-radius: 20px; border: 1px solid var(--line-2);
  box-shadow: var(--shadow);
  padding: 48px 50px;
  display: flex; align-items: center; gap: 40px; flex-wrap: wrap;
  position: relative; overflow: hidden;
}
.bundle::before {
  content: "";
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(480px 260px at 12% 0%, rgba(63, 217, 234, 0.07), transparent 70%);
}
.bundle > * { position: relative; }
.bundle h2 {
  font-family: var(--display);
  font-size: clamp(24px, 4vw, 34px); font-weight: 700; line-height: 1.1;
  letter-spacing: 0.02em;
}
.bundle .bundle-kicker {
  font-size: 12px; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 10px;
}
.bundle p { color: var(--muted); max-width: 480px; margin-top: 12px; }
.bundle p a { color: var(--text); font-weight: 600; }
.bundle .price-block { margin-left: auto; text-align: right; }
.bundle .was { text-decoration: line-through; color: var(--faint); font-weight: 500; font-size: 16px; }
.bundle .now { font-size: 42px; font-weight: 700; line-height: 1.1; font-family: var(--display); }
.bundle .price-block .btn { margin-top: 16px; }
@media (max-width: 800px) {
  .bundle { padding: 34px 28px; }
  .bundle .price-block { margin-left: 0; text-align: left; }
}

/* ---------- speaker swap feature section ---------- */

.night {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--text);
  position: relative;
}
.night::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(720px 420px at 28% 50%, rgba(63, 217, 234, 0.07), transparent 70%);
  pointer-events: none;
}
.night .wrap { position: relative; }
.night .kicker { color: var(--accent); }
.night-grid {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 52px; align-items: center;
}
@media (max-width: 900px) { .night-grid { grid-template-columns: 1fr; } }
.night-shot {
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid rgba(63, 217, 234, 0.3);
  box-shadow: 0 0 60px rgba(63, 217, 234, 0.12);
}
.night h2 {
  font-family: var(--display);
  font-size: clamp(28px, 4.5vw, 40px); font-weight: 700; line-height: 1.1;
  letter-spacing: 0.02em;
}
.night .tag {
  color: var(--accent); letter-spacing: 0.24em; font-size: 12px;
  font-weight: 600; text-transform: uppercase;
}
.night p.body { color: var(--muted); margin-top: 14px; }
.night ul.feat { list-style: none; margin: 24px 0 30px; display: grid; gap: 10px; }
.night ul.feat li { padding-left: 24px; position: relative; color: #C4CDD6; font-size: 14.5px; }
.night ul.feat li::before { content: ""; position: absolute; left: 0; top: 9px; width: 8px; height: 8px; border-radius: 3px; background: var(--accent); opacity: 0.85; }
.night .price { color: #fff; font-size: 28px; margin-right: 18px; }
.night .buy-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.night .trial-note { color: var(--faint); font-size: 13px; margin-top: 12px; }

/* ---------- email list ---------- */

.signup {
  background: var(--bg);
}
.signup-card {
  max-width: 680px; margin: 0 auto; text-align: center;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 20px; padding: 52px 40px;
}
.signup h2 {
  font-family: var(--display);
  font-size: clamp(24px, 4vw, 32px); font-weight: 700; letter-spacing: -0.01em;
}
.signup p { color: var(--muted); margin-top: 12px; }
.signup form { margin-top: 28px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.signup input[type="email"] {
  font-family: var(--font); font-size: 15px; font-weight: 500;
  padding: 13px 18px; border-radius: 10px;
  border: 1px solid var(--line-2); background: var(--bg); color: var(--text);
  min-width: 290px;
}
.signup input[type="email"]::placeholder { color: var(--faint); }
.signup input[type="email"]:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; }
.signup .form-msg { margin-top: 14px; font-weight: 500; font-size: 14px; min-height: 24px; }
.signup .form-msg.ok { color: var(--accent); }
.signup .form-msg.err { color: var(--tomato); }
@media (max-width: 520px) { .signup-card { padding: 40px 22px; } }

/* ---------- FAQ ---------- */

.faq { max-width: 760px; margin: 0 auto; display: grid; gap: 12px; }
.faq details {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 18px 22px;
  transition: border-color 0.25s var(--ease), opacity 0.65s var(--ease), transform 0.65s var(--ease);
}
.faq details:hover { border-color: var(--line-2); }
.faq details[open] { border-color: var(--line-2); }
.faq summary { font-weight: 600; font-size: 16px; cursor: pointer; color: var(--text); }
.faq summary::marker { color: var(--accent); }
.faq details p { color: var(--muted); margin-top: 10px; font-size: 14.5px; }
.faq details p a { color: var(--text); }

/* ---------- footer ---------- */

.footer { border-top: 1px solid var(--line); padding: 44px 0 52px; background: var(--bg); }
.footer-inner { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer .nav-logo { font-size: 14px; }
.footer .fine {
  margin-left: auto; color: var(--faint); font-size: 12.5px;
  max-width: 540px; text-align: right; line-height: 1.7;
}
.footer .fine a { color: var(--muted); }
@media (max-width: 700px) { .footer .fine { margin-left: 0; text-align: left; } }

/* ============================================================
   Product detail pages
   ============================================================ */

.pd-hero, .pd { padding: 64px 0 40px; }
.crumbs { font-size: 13.5px; font-weight: 500; color: var(--faint); margin-bottom: 30px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--text); }

.pd-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: start; }
@media (max-width: 900px) { .pd-grid { grid-template-columns: 1fr; } }

.pd-shot {
  border: 1px solid var(--line-2); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); background: var(--bg-soft);
}
.pd-info .card-kind { font-size: 12px; }
.pd-info h1 {
  font-family: var(--display);
  font-size: clamp(32px, 5vw, 48px); font-weight: 700; line-height: 1.05;
  letter-spacing: 0.01em; margin-top: 8px;
}
.pd-info .tagline { font-size: 18px; font-weight: 600; color: var(--accent-label, var(--accent)); margin-top: 8px; }
.pd-info .desc { color: var(--muted); margin-top: 16px; }
.pd-info .desc strong { color: var(--text); }
.pd-buy { margin-top: 28px; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.pd-buy .price { font-size: 30px; }
.pd-note { margin-top: 14px; font-size: 13.5px; color: var(--faint); }
.pd-note a, .pd-note strong { color: var(--muted); }
.pd-note strong a { color: var(--text); }

.pd-features { margin-top: 34px; }
.pd-features h2 {
  font-size: 12px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--faint); margin-bottom: 16px;
}
.pd-features ul { list-style: none; display: grid; gap: 10px; }
.pd-features li { padding-left: 24px; position: relative; color: #C4CDD6; font-size: 14.5px; }
.pd-features li::before {
  content: ""; position: absolute; left: 0; top: 9px;
  width: 8px; height: 8px; border-radius: 3px;
  background: var(--accent-label, var(--accent)); opacity: 0.9;
}
.pd-features li strong, .pd-features li code { color: var(--text); }
.pd-features li a { color: var(--text); }

.spec-box {
  margin-top: 34px; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 20px 24px;
}
.spec-box h3 {
  font-size: 11px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--faint); margin-bottom: 10px;
}
.spec-box ul { list-style: none; display: grid; gap: 6px; font-size: 14px; color: var(--muted); }

.pd-warn {
  margin-top: 24px; border: 1px dashed rgba(63, 217, 234, 0.35); border-radius: var(--radius-sm);
  padding: 14px 18px; font-size: 13.5px; color: var(--muted);
}
.pd-warn strong { color: var(--text); }

.cross { padding: 60px 0 90px; }
.cross h2 {
  text-align: center; font-family: var(--display);
  font-size: 22px; font-weight: 700; margin-bottom: 30px; letter-spacing: 0.01em;
}
.cross .mini-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.mini {
  text-decoration: none; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 18px 14px; text-align: center;
  transition: transform 0.22s var(--ease), border-color 0.22s var(--ease), opacity 0.65s var(--ease);
}
.mini:hover { transform: translateY(-3px); border-color: var(--line-2); }
.mini .name { font-family: var(--display); font-weight: 700; font-size: 13.5px; letter-spacing: 0.06em; color: var(--text); }
.mini .p { font-weight: 600; font-size: 12.5px; color: var(--faint); margin-top: 4px; }

/* legacy hooks kept so older pages don't break */
.dusk { display: none; }
body.night-page { background: var(--bg); color: var(--text); }
body.night-page .pd-shot { border-color: rgba(63, 217, 234, 0.3); box-shadow: 0 0 60px rgba(63, 217, 234, 0.12); }
body.night-page .pd-info .tagline { color: var(--accent); }
code {
  font-family: "SF Mono", ui-monospace, Menlo, monospace; font-size: 0.9em;
  background: rgba(255, 255, 255, 0.06); border-radius: 5px; padding: 1px 6px;
}
