/* That Sounds Hot — Brand site stylesheet
 * --------------------------------------------------------------------
 * Design system extracted from the AI-Ready Producer infographic series:
 * cream paper background, charcoal text, six-color cheerful accent set,
 * humanist sans-serif typography, soft cards with subtle shadows.
 */

/* ── Design tokens ─────────────────────────────────────────────────── */

:root {
  /* Surfaces & ink */
  --bg:           #FAF6EE;   /* cream paper */
  --surface:     #FFFFFF;    /* card backgrounds */
  --surface-2:  #F1ECE0;     /* secondary surface (subtle warm tint) */
  --ink:         #2A2D34;    /* primary text — never pure black */
  --ink-muted:  #6B7280;     /* secondary text */
  --border:     #E5DFD0;     /* hairlines */

  /* Functional accents — each tool / section owns one */
  --c-blue:    #3FB8E0;      /* Video Slicer */
  --c-orange:  #F5A040;      /* Audio Chopper */
  --c-yellow:  #FCC439;      /* Micro Audio Chopper */
  --c-mint:    #5FBFA0;      /* Chain Maker */
  --c-coral:   #E85F4D;      /* Drum Rack Maker */
  --c-violet:  #7A4FD4;      /* Reference panel + lead magnet */
  --c-pink:    #F0A0C5;      /* hover / soft accents */

  /* Typography */
  --f-display: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --f-body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Geometry */
  --radius-sm:  8px;
  --radius:    14px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(42, 45, 52, 0.04), 0 2px 6px rgba(42, 45, 52, 0.04);
  --shadow:    0 4px 16px rgba(42, 45, 52, 0.06), 0 2px 6px rgba(42, 45, 52, 0.04);
  --shadow-lg: 0 12px 32px rgba(42, 45, 52, 0.08), 0 4px 12px rgba(42, 45, 52, 0.05);

  /* Layout */
  --container:  1100px;
}

/* ── Reset & base ──────────────────────────────────────────────────── */

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--c-violet);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 120ms;
}
a:hover { border-bottom-color: currentColor; }

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

/* ── Typography ────────────────────────────────────────────────────── */

h1, h2, h3, h4 {
  font-family: var(--f-display);
  color: var(--ink);
  margin: 0;
  line-height: 1.15;
  letter-spacing: -0.015em;
}
h1 { font-size: clamp(40px, 6vw, 64px); font-weight: 800; }
h2 { font-size: clamp(28px, 3.5vw, 40px); font-weight: 700; }
h3 { font-size: 20px; font-weight: 700; }
p  { margin: 0 0 16px; }
.eyebrow {
  font-family: var(--f-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin: 0 0 12px;
}
.lede {
  font-size: 18px;
  color: var(--ink-muted);
  max-width: 56ch;
  margin: 0 0 32px;
}

/* ── Layout ────────────────────────────────────────────────────────── */

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
section { padding: 96px 0; }
section:nth-of-type(even) { background: var(--surface-2); }

/* ── Header / wordmark ─────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 246, 238, 0.92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
}
.wordmark {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.04em;
  color: var(--ink);
  text-transform: uppercase;
  border-bottom: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.wordmark:hover { border-bottom: none; }
/* Wordmark subtitle pattern — small descriptor next to the brand name,
 * separated by a vertical hairline. Mirrors the tools site's
 * "THAT SOUNDS HOT · Producer Tools" treatment for visual cohesion. */
.wordmark .subtitle {
  font-family: var(--f-body);
  font-weight: 500;
  font-size: 12.5px;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--ink-muted);
  border-left: 1px solid var(--border);
  padding-left: 10px;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 14px;
  font-weight: 500;
}
.site-nav > a {
  color: var(--ink);
  border-bottom: none;
}
.site-nav > a:hover { color: var(--c-violet); border-bottom: none; }

/* ── Nav dropdown (Books) ──────────────────────────────────────────────
 * Native <details>/<summary> for accessibility + zero-JS open/close.
 * A tiny outside-click handler in app.js closes the menu when the user
 * clicks elsewhere — that's the only ergonomic gap <details> has by
 * default. The CSS below hides the browser's default disclosure marker
 * and adds our own ▾ rotator. */
.nav-dropdown {
  position: relative;
}
.nav-dropdown summary {
  cursor: pointer;
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--ink);
  user-select: none;
}
.nav-dropdown summary::-webkit-details-marker { display: none; }
.nav-dropdown summary::after {
  content: '▾';
  font-size: 10px;
  opacity: 0.6;
  transition: transform 120ms ease, opacity 120ms;
}
.nav-dropdown summary:hover { color: var(--c-violet); }
.nav-dropdown summary:hover::after { opacity: 1; }
.nav-dropdown[open] summary { color: var(--c-violet); }
.nav-dropdown[open] summary::after {
  transform: rotate(180deg);
  opacity: 1;
}
.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 220px;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  z-index: 60;
}
.nav-dropdown-menu li { margin: 0; }
.nav-dropdown-menu a {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 9px 12px;
  border-radius: 8px;
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: background 100ms;
  border-bottom: none;
}
.nav-dropdown-menu a:hover {
  background: var(--bg);
  color: var(--c-violet);
  border-bottom: none;
}
.nav-dropdown-menu .dropdown-meta {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--ink-muted);
  letter-spacing: 0.01em;
}
.nav-dropdown-menu a:hover .dropdown-meta { color: var(--ink-muted); }

/* ── Hero ──────────────────────────────────────────────────────────── */

.hero { padding: 120px 0 80px; }
.hero-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero h1 {
  margin-bottom: 24px;
}
.hero h1 .accent { color: var(--c-coral); }
.hero .lede { font-size: 20px; margin-bottom: 36px; }
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* Hero visual: rotating slider of AI-Ready Producer infographics.
   Aspect ratio matches the source PNGs (~16:9 from the original
   exports). Width is generous on desktop, contained on mobile via
   the existing @media (max-width: 760px) rule. */
.hero-art {
  position: relative;
  width: 100%;
  max-width: 540px;
  justify-self: center;
}

/* The slider itself: stack of <img> elements absolutely positioned,
   cross-fading via opacity. The infographic images carry their own
   dark navy background, so we don't need a backdrop here — just a
   rounded clip and a soft shadow consistent with .tool-card. */
.slider {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ink);  /* matches the infographic dark backdrop */
  box-shadow:
    0 12px 32px rgba(42, 45, 52, 0.10),
    0 4px 12px rgba(42, 45, 52, 0.06);
}
.slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 700ms ease-in-out;
  user-select: none;
  pointer-events: none;
}
.slide.active {
  opacity: 1;
}
@media (prefers-reduced-motion: reduce) {
  .slide { transition: none; }
}

/* Dot indicators below the slider. Small, low-key by default; the
   active dot fills with the brand violet to call attention. */
.slider-dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 16px;
}
.slider-dots .dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border-radius: 50%;
  border: none;
  background: var(--border);
  cursor: pointer;
  transition: background 150ms, transform 120ms;
}
.slider-dots .dot:hover {
  background: var(--ink-muted);
  transform: scale(1.15);
}
.slider-dots .dot.active {
  background: var(--c-violet);
}
.slider-dots .dot:focus-visible {
  outline: 2px solid var(--c-violet);
  outline-offset: 2px;
}

/* ── Buttons ───────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.005em;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 100ms ease, box-shadow 120ms, background 120ms, border-color 120ms;
  text-decoration: none;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--c-coral);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: #d8543f; box-shadow: var(--shadow); border-bottom: none; }

.btn-secondary {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}
.btn-secondary:hover { border-color: var(--ink); border-bottom-color: var(--ink); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: transparent;
  padding-left: 4px;
  padding-right: 4px;
}
.btn-ghost:hover { color: var(--c-violet); border-bottom: none; }
.btn .arrow { transition: transform 120ms; }
.btn:hover .arrow { transform: translateX(3px); }

/* ── Tools section ─────────────────────────────────────────────────── */

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin: 40px 0;
}
.tool-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform 120ms, box-shadow 120ms;
  position: relative;
  overflow: hidden;
}
.tool-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.tool-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--card-color, var(--c-violet));
}
.tool-card h3 { margin: 0 0 8px; }
.tool-card p { margin: 0; color: var(--ink-muted); font-size: 14px; line-height: 1.5; }
.tool-card .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--card-color, var(--c-violet));
  color: #fff;
  font-size: 22px;
  margin-bottom: 16px;
}

.tool-video    { --card-color: var(--c-blue); }
.tool-audio    { --card-color: var(--c-orange); }
.tool-micro    { --card-color: var(--c-yellow); }
.tool-chain    { --card-color: var(--c-mint); }
.tool-drumrack { --card-color: var(--c-coral); }
.tool-reference { --card-color: var(--c-violet); }
.tool-soon      { --card-color: var(--c-pink); }

/* Price badge (top-right of card). Default style is hidden — only the
   "Free" and "Soon" cards carry one, so the paid cards stay clean and
   the section header sets the price context for them. */
.tool-card { /* re-declared above; positioning context for .tool-price */ }
.tool-price {
  position: absolute;
  top: 14px;
  right: 14px;
  font-family: var(--f-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  line-height: 1;
}
.tool-price.free {
  background: var(--c-mint);
  color: white;
}
.tool-price.soon {
  background: transparent;
  color: var(--ink-muted);
  border: 1px dashed var(--ink-muted);
}

/* "More to come" is rendered as an <a>; reset link styles so it looks
   like the other cards. Slightly softer presentation than the others
   to communicate "this is a teaser, not a real product yet." */
a.tool-soon {
  text-decoration: none;
  color: inherit;
  border-bottom: none;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  opacity: 0.92;
}
a.tool-soon:hover {
  opacity: 1;
  border-bottom: none;
}

.tools-cta {
  margin-top: 16px;
  text-align: center;
}

/* Small caption underneath the "Launching Soon" CTA explaining why it
   doesn't open the app yet (Producer Tools is in private staging until
   Phase D). Removed when the CTA becomes a real link at launch. */
.tools-cta-note {
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--ink-muted);
}

/* ── Books section ─────────────────────────────────────────────────── */

.books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin: 40px 0;
}
.book-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 28px 24px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.book-number {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 14px;
  color: var(--c-violet);
  letter-spacing: 0.06em;
}
.book-card h3 { margin: 0; }
.book-card .desc {
  color: var(--ink-muted);
  font-size: 14px;
  flex: 1;
}
.book-card .badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.badge {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--ink);
}
.badge.free  { background: var(--c-mint); color: #fff; }
.badge.amazon{ background: var(--c-orange); color: #fff; }
.badge.pdf   { background: var(--c-violet); color: #fff; }

.book-card .links { display: flex; gap: 10px; flex-wrap: wrap; }
.book-card .links a {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  border-bottom: 1px solid var(--border);
}
.book-card .links a:hover { color: var(--c-violet); border-bottom-color: var(--c-violet); }

.books-cta {
  text-align: center;
  margin-top: 24px;
}

/* ── Email capture ─────────────────────────────────────────────────── */

/* Two-up grid for the AI-Ready Producer and Second Brain newsletter
   cards. Collapses to a single column on narrow viewports (see media
   query at the bottom of this file). 1080px container with a 24px gap
   gives each card ~528px breathing room, which keeps the email + button
   row from getting cramped. */
.subscribe-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 1080px;
  margin: 40px auto 0;
  align-items: stretch;
}

.subscribe-card {
  /* Width now driven by the grid track; max-width left in for the
     single-card fallback so legacy markup still renders cleanly. */
  max-width: 640px;
  margin: 0 auto;
  width: 100%;
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 40px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  text-align: center;
  position: relative;
  overflow: hidden;
  /* Stretch to fill the grid row so both cards have the same height
     even when their tagline copy differs in length. */
  display: flex;
  flex-direction: column;
}

/* Eyebrow label above each card's H3 — "For producers" / "For knowledge
   workers." Same vibe as the section-level .eyebrow but smaller and
   tied to the card's own color stripe. */
.subscribe-eyebrow {
  font-family: var(--f-display);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-muted);
  margin: 0 0 6px;
}

.subscribe-tagline {
  color: var(--ink-muted);
  margin: 8px 0 0;
  font-size: 15px;
  line-height: 1.55;
}
.subscribe-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 6px;
  background: linear-gradient(90deg,
    var(--c-blue) 0%, var(--c-mint) 25%, var(--c-yellow) 50%,
    var(--c-orange) 75%, var(--c-coral) 100%);
}
.subscribe-form {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  max-width: 460px;
  margin-left: auto;
  margin-right: auto;
}
.subscribe-form input[type="email"] {
  flex: 1;
  padding: 14px 18px;
  font: inherit;
  font-size: 15px;
  border: 2px solid var(--border);
  border-radius: 999px;
  background: var(--bg);
  color: var(--ink);
  transition: border-color 120ms;
}
.subscribe-form input[type="email"]:focus {
  outline: none;
  border-color: var(--c-violet);
}
.subscribe-form button {
  padding: 14px 26px;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 15px;
  background: var(--c-violet);
  color: #fff;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: background 120ms, transform 100ms;
}
.subscribe-form button:hover { background: #6740c0; transform: translateY(-1px); }
.subscribe-form button:disabled { opacity: 0.6; cursor: wait; transform: none; }

.subscribe-meta {
  font-size: 13px;
  color: var(--ink-muted);
  margin-top: 16px;
}
.subscribe-status {
  margin-top: 18px;
  font-size: 14px;
  font-weight: 600;
  min-height: 20px;
}
.subscribe-status.success { color: var(--c-mint); }
.subscribe-status.error   { color: var(--c-coral); }

/* ── Footer ────────────────────────────────────────────────────────── */

.site-footer {
  padding: 48px 0 64px;
  border-top: 1px solid var(--border);
  font-size: 14px;
  color: var(--ink-muted);
}
.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}
.footer-nav a {
  color: var(--ink-muted);
  border-bottom: none;
}
.footer-nav a:hover { color: var(--c-violet); }

/* ── Section header ────────────────────────────────────────────────── */

.section-head {
  text-align: center;
  margin-bottom: 16px;
}
.section-head .eyebrow { margin-bottom: 14px; }
.section-head h2 { margin-bottom: 14px; }
.section-head p {
  color: var(--ink-muted);
  font-size: 17px;
  max-width: 56ch;
  margin: 0 auto;
}

/* ── Responsive ────────────────────────────────────────────────────── */

@media (max-width: 760px) {
  section { padding: 64px 0; }
  .hero { padding: 64px 0 32px; }
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .hero-art { max-width: 480px; }
  .site-nav { gap: 18px; font-size: 13px; }
  /* Two-up newsletter grid collapses to a single stacked column on
     phones so each card has full width to breathe. */
  .subscribe-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .subscribe-card { padding: 28px 20px; }
  .subscribe-form {
    flex-direction: column;
    gap: 10px;
  }
  .subscribe-form button { width: 100%; }
}
