/* Cassette · global stylesheet
 * Brand: analog cassette tape · cream + ink + tape-red
 * Twin Flame Group / RheaForge
 */

:root {
  --cream: #f4ede0;
  --cream-deep: #e8dec8;
  --cream-mid: #ede4d2;
  --paper: #fbf7ec;
  --ink: #1a1a1a;
  --ink-2: #3d3a36;
  --ink-3: #6b6660;
  --ink-mute: #8a847b;
  --tape: #dc2626;
  --tape-deep: #991b1b;
  --brass: #b8860b;
  --brass-dim: #8a6508;
  --shadow: rgba(26,26,26,0.08);
  --shadow-2: rgba(26,26,26,0.16);
  --hairline: rgba(26,26,26,0.12);
  --hairline-soft: rgba(26,26,26,0.06);

  --serif: 'Recoleta', 'DM Serif Display', 'Playfair Display', Georgia, serif;
  --sans: 'IBM Plex Sans', 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --maxw: 1140px;
  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 20px;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
  --space-10: 128px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  background-image:
    radial-gradient(circle at 12% 8%, rgba(184,134,11,0.06) 0, transparent 40%),
    radial-gradient(circle at 88% 92%, rgba(220,38,38,0.04) 0, transparent 45%);
  min-height: 100vh;
}

a { color: var(--ink); text-decoration: none; transition: color .15s; }
a:hover { color: var(--tape-deep); }

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

::selection { background: var(--tape); color: var(--cream); }

/* Focus rings — only when keyboard-navigating */
:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--tape);
  outline-offset: 3px;
  border-radius: 4px;
}
.btn:focus-visible, .tab-btn:focus-visible, .toggle:focus-visible, .copy-btn:focus-visible {
  outline: 2px solid var(--tape);
  outline-offset: 3px;
}

/* ───────── Layout ───────── */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--space-5); }
.section { padding: var(--space-9) 0; }
.section-tight { padding: var(--space-7) 0; }
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--tape-deep);
  margin-bottom: var(--space-4);
  display: inline-block;
}

/* ───────── Type ───────── */
h1, h2, h3, h4 { font-family: var(--serif); color: var(--ink); letter-spacing: -0.02em; line-height: 1.08; font-weight: 600; }
h1 { font-size: clamp(40px, 6vw, 76px); }
h2 { font-size: clamp(32px, 4.4vw, 52px); }
h3 { font-size: clamp(22px, 2.2vw, 28px); letter-spacing: -0.01em; }
h4 { font-size: 18px; letter-spacing: -0.005em; }
.lede { font-size: clamp(18px, 1.6vw, 22px); line-height: 1.55; color: var(--ink-2); max-width: 640px; }
.mono { font-family: var(--mono); font-size: 13px; letter-spacing: 0.03em; }

/* ───────── Nav ───────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(244,237,224,0.85);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--hairline-soft);
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto; padding: var(--space-4) var(--space-5);
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { display: flex; align-items: center; gap: 10px; }
.nav-logo svg { width: 30px; height: 30px; }
.nav-logo .word { font-family: var(--serif); font-size: 22px; font-weight: 600; letter-spacing: -0.01em; }
.nav-links { display: flex; align-items: center; gap: var(--space-6); }
.nav-links a { font-size: 15px; color: var(--ink-2); }
.nav-links a:hover { color: var(--ink); }

/* ───────── Buttons ───────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--sans); font-size: 16px; font-weight: 500;
  padding: 12px 22px; border-radius: 999px; border: none; cursor: pointer;
  transition: transform .12s, background .15s, box-shadow .15s, color .15s;
  text-decoration: none; line-height: 1; white-space: nowrap;
}
.btn-primary { background: var(--tape); color: #fff; box-shadow: 0 1px 2px rgba(153,27,27,0.25), 0 6px 16px rgba(220,38,38,0.18); }
.btn-primary:hover { background: var(--tape-deep); color: #fff; transform: translateY(-1px); box-shadow: 0 2px 6px rgba(153,27,27,0.35), 0 10px 24px rgba(220,38,38,0.22); }
.btn-primary:active { transform: translateY(0); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--hairline); }
.btn-ghost:hover { background: var(--cream-deep); color: var(--ink); }
.btn-ink { background: var(--ink); color: var(--cream); }
.btn-ink:hover { background: #000; color: var(--cream); }
.btn-lg { font-size: 17px; padding: 16px 28px; }
.btn-sm { font-size: 14px; padding: 8px 16px; }
.btn .arrow { transition: transform .15s; }
.btn:hover .arrow { transform: translateX(3px); }

/* ───────── Hero ───────── */
.hero { padding: var(--space-9) 0 var(--space-8); position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: var(--space-8); align-items: center; }
.hero h1 { margin-bottom: var(--space-5); }
.hero h1 .accent { color: var(--tape-deep); font-style: italic; font-weight: 500; }
.hero-sub { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.55; color: var(--ink-2); max-width: 520px; margin-bottom: var(--space-6); }
.hero-cta { display: flex; gap: var(--space-3); flex-wrap: wrap; align-items: center; }
.hero-meta { display: flex; gap: var(--space-5); margin-top: var(--space-6); flex-wrap: wrap; }
.hero-meta-item { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 13px; color: var(--ink-3); }
.hero-meta-item .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--tape); }

/* Hero visual: animated cassette */
.hero-visual {
  position: relative; aspect-ratio: 1.4 / 1; max-width: 520px; margin-left: auto;
  background: var(--ink); border-radius: var(--radius-lg);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.04) inset,
    0 30px 60px -20px rgba(26,26,26,0.4),
    0 12px 24px -12px rgba(26,26,26,0.3);
  padding: 6%;
  display: flex; flex-direction: column; justify-content: space-between;
}
.hero-visual::before {
  content: ""; position: absolute; inset: 4%;
  border-radius: var(--radius); background: linear-gradient(180deg, #2a2725 0%, #1f1c1a 100%);
  pointer-events: none;
}
.hero-window {
  position: relative; z-index: 1;
  background: var(--cream);
  border-radius: 8px; padding: 18px 22px;
  display: flex; justify-content: space-between; align-items: center;
  box-shadow: inset 0 2px 8px rgba(0,0,0,0.4);
}
.reel { width: 64px; height: 64px; border-radius: 50%; background: radial-gradient(circle at 50% 50%, #1a1a1a 0%, #1a1a1a 36%, #2c2725 36%, #2c2725 100%); position: relative; display: flex; align-items: center; justify-content: center; }
.reel::before, .reel::after {
  content: ""; position: absolute; background: var(--brass);
  border-radius: 50%;
}
.reel::before { width: 14px; height: 14px; }
.reel::after { width: 4px; height: 4px; background: #1a1a1a; }
.reel-spokes {
  position: absolute; inset: 0; border-radius: 50%;
  background:
    conic-gradient(from 0deg, transparent 0 80deg, rgba(184,134,11,0.18) 80deg 90deg, transparent 90deg 170deg, rgba(184,134,11,0.18) 170deg 180deg, transparent 180deg 260deg, rgba(184,134,11,0.18) 260deg 270deg, transparent 270deg 350deg, rgba(184,134,11,0.18) 350deg 360deg);
  animation: reel-spin 3s linear infinite;
}
.reel.right .reel-spokes { animation-duration: 4.5s; }
@keyframes reel-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .reel-spokes, .rec-button.recording .dot, .rec-button-wrap.recording .rec-button-ring,
  .demo-banner .pulse, .rec-button.processing .dot { animation: none !important; }
}
.hero-tape {
  position: relative; z-index: 1; height: 14px; border-radius: 3px;
  background: linear-gradient(180deg, var(--tape) 0%, var(--tape-deep) 100%);
  margin-top: 18px;
  box-shadow: 0 2px 6px rgba(220,38,38,0.35);
}
.hero-label {
  position: relative; z-index: 1; margin-top: 18px;
  background: var(--cream); padding: 14px 18px; border-radius: 6px;
  font-family: var(--mono); font-size: 13px; color: var(--ink-2);
  display: flex; justify-content: space-between; align-items: center;
}
.hero-label .stamp { color: var(--tape-deep); letter-spacing: 0.12em; font-size: 11px; }

/* ───────── Sections ───────── */
.section-head { max-width: 720px; margin-bottom: var(--space-7); }
.section-head h2 { margin-bottom: var(--space-4); }

.problem {
  background: var(--cream-deep);
  border-top: 1px solid var(--hairline-soft);
  border-bottom: 1px solid var(--hairline-soft);
}
.problem-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }
.problem-card {
  background: var(--paper); border-radius: var(--radius); padding: var(--space-6);
  border: 1px solid var(--hairline-soft);
}
.problem-card .num {
  font-family: var(--mono); color: var(--tape-deep); font-size: 12px;
  letter-spacing: 0.18em; margin-bottom: var(--space-3);
}
.problem-card h3 { margin-bottom: var(--space-3); font-size: 22px; }
.problem-card p { color: var(--ink-2); font-size: 16px; line-height: 1.5; }

/* How it works */
.how-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-5);
  position: relative;
}
.how-step { padding: var(--space-5) 0; }
.how-step .step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--ink); color: var(--cream);
  font-family: var(--mono); font-size: 14px; font-weight: 600;
  margin-bottom: var(--space-4);
}
.how-step h3 { font-size: 22px; margin-bottom: var(--space-3); }
.how-step p { color: var(--ink-2); font-size: 15px; line-height: 1.55; }

/* Asset preview cards */
.assets-preview { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-5); margin-top: var(--space-6); }
.asset-card {
  background: var(--paper); border-radius: var(--radius); padding: var(--space-6);
  border: 1px solid var(--hairline);
  position: relative;
  transition: transform .15s, box-shadow .15s;
}
.asset-card:hover { transform: translateY(-2px); box-shadow: 0 12px 32px -16px var(--shadow-2); }
.asset-card .asset-label {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--tape-deep); margin-bottom: var(--space-3);
}
.asset-card h4 { font-size: 18px; margin-bottom: var(--space-3); font-family: var(--serif); }
.asset-card .asset-body {
  font-family: var(--sans); font-size: 14.5px; line-height: 1.55; color: var(--ink-2);
  max-height: 200px; overflow: hidden; position: relative;
}
.asset-card .asset-body::after {
  content: ""; position: absolute; bottom: 0; left: 0; right: 0; height: 60px;
  background: linear-gradient(transparent, var(--paper));
  pointer-events: none;
}
.asset-card .copy-btn {
  position: absolute; top: var(--space-5); right: var(--space-5);
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em;
  background: var(--cream-deep); border: 1px solid var(--hairline);
  border-radius: 999px; padding: 6px 12px; cursor: pointer; color: var(--ink-2);
  text-transform: uppercase;
}
.asset-card .copy-btn:hover { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.asset-card .copy-btn.copied { background: var(--tape); color: #fff; border-color: var(--tape); }

/* Pricing */
.pricing {
  background: var(--cream-deep);
  border-top: 1px solid var(--hairline-soft);
  border-bottom: 1px solid var(--hairline-soft);
}
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }
.price-card {
  background: var(--paper); border-radius: var(--radius); padding: var(--space-7);
  border: 1px solid var(--hairline-soft);
  display: flex; flex-direction: column;
  position: relative;
}
.price-card.featured {
  background: var(--ink); color: var(--cream); border-color: var(--ink);
  transform: translateY(-8px);
  box-shadow: 0 30px 60px -30px rgba(26,26,26,0.5);
}
.price-card.featured h3, .price-card.featured .price { color: var(--cream); }
.price-card.featured .price-features li { color: rgba(244,237,224,0.85); }
.price-card.featured .price-features li::before { color: var(--tape); }
.price-card .badge {
  position: absolute; top: -12px; right: 24px;
  background: var(--tape); color: #fff; padding: 4px 12px; border-radius: 999px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
}
.price-card h3 { font-size: 22px; margin-bottom: var(--space-2); font-family: var(--serif); }
.price-card .price-tag { font-family: var(--mono); font-size: 13px; color: var(--ink-3); margin-bottom: var(--space-4); }
.price-card.featured .price-tag { color: rgba(244,237,224,0.65); }
.price-card .price { font-family: var(--serif); font-size: 56px; font-weight: 600; line-height: 1; margin-bottom: var(--space-2); letter-spacing: -0.03em; }
.price-card .price-suffix { font-family: var(--sans); font-size: 16px; color: var(--ink-3); font-weight: 400; }
.price-card.featured .price-suffix { color: rgba(244,237,224,0.65); }
.price-card .price-blurb { font-size: 14.5px; color: var(--ink-2); margin-bottom: var(--space-5); min-height: 44px; }
.price-card.featured .price-blurb { color: rgba(244,237,224,0.78); }
.price-features { list-style: none; padding: 0; margin: 0 0 var(--space-6); flex: 1; }
.price-features li {
  font-size: 15px; color: var(--ink-2); padding: 8px 0 8px 28px; position: relative; line-height: 1.45;
}
.price-features li::before {
  content: "+"; position: absolute; left: 4px; top: 8px;
  font-family: var(--mono); color: var(--tape-deep); font-weight: 600;
}

/* FAQ */
.faq { max-width: 760px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--hairline);
  padding: var(--space-5) 0;
}
.faq-item summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center;
  font-family: var(--serif); font-size: 21px; color: var(--ink); font-weight: 500;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; font-family: var(--mono); font-size: 22px; color: var(--ink-3); transition: transform .2s;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item p { margin-top: var(--space-4); color: var(--ink-2); font-size: 16px; line-height: 1.6; }

/* Founder note */
.founder {
  background: var(--ink); color: var(--cream); border-radius: var(--radius-lg);
  padding: var(--space-8); position: relative; overflow: hidden;
}
.founder::before {
  content: '"'; position: absolute; top: -40px; left: -10px;
  font-family: var(--serif); font-size: 280px; color: rgba(244,237,224,0.06); line-height: 1;
}
.founder-inner { position: relative; z-index: 1; max-width: 700px; }
.founder p { font-family: var(--serif); font-size: clamp(20px, 2.2vw, 28px); line-height: 1.4; color: var(--cream); margin-bottom: var(--space-5); font-weight: 400; }
.founder .sig { font-family: var(--mono); font-size: 13px; color: rgba(244,237,224,0.65); letter-spacing: 0.1em; }

/* Footer */
.footer {
  border-top: 1px solid var(--hairline);
  padding: var(--space-7) 0 var(--space-6);
  margin-top: var(--space-8);
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--space-6);
  margin-bottom: var(--space-7);
}
.footer-col h5 { font-family: var(--mono); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); margin-bottom: var(--space-4); font-weight: 500; }
.footer-col a { display: block; font-size: 15px; color: var(--ink-2); margin-bottom: var(--space-2); }
.footer-col a:hover { color: var(--ink); }
.footer-brand .word { font-family: var(--serif); font-size: 28px; margin-bottom: var(--space-2); display: block; }
.footer-brand p { font-size: 14px; color: var(--ink-3); max-width: 320px; line-height: 1.55; }
.footer-meta {
  border-top: 1px solid var(--hairline-soft);
  padding-top: var(--space-4);
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--mono); font-size: 12px; color: var(--ink-3); letter-spacing: 0.06em;
}

/* ───────── Recorder page ───────── */
.recorder-shell {
  min-height: 100vh; padding-bottom: 80px;
  background: var(--cream);
  display: flex; flex-direction: column;
}
.rec-nav {
  padding: var(--space-4) var(--space-5);
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--hairline-soft);
  background: var(--cream);
  position: sticky; top: 0; z-index: 30;
}
.rec-nav .nav-logo { display: flex; align-items: center; gap: 8px; }
.rec-nav .nav-logo svg { width: 28px; height: 28px; }
.rec-nav .nav-logo .word { font-family: var(--serif); font-size: 20px; font-weight: 600; }
.rec-status-pill {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 999px; background: var(--cream-deep); color: var(--ink-2);
}
.rec-status-pill.recording { background: var(--tape); color: #fff; }
.rec-status-pill.processing { background: var(--brass); color: #fff; }

.rec-main {
  flex: 1; max-width: 720px; width: 100%; margin: 0 auto; padding: var(--space-7) var(--space-5);
}
.rec-stage {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: var(--space-7) 0;
}
.rec-stage h2 { font-size: clamp(28px, 4vw, 40px); margin-bottom: var(--space-3); }
.rec-stage p { color: var(--ink-2); margin-bottom: var(--space-7); max-width: 480px; }

.rec-button-wrap {
  position: relative;
  width: 200px; height: 200px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: var(--space-6);
}
.rec-button {
  width: 160px; height: 160px; border-radius: 50%;
  background: var(--tape); color: #fff;
  border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase;
  box-shadow: 0 1px 2px rgba(153,27,27,0.4), 0 14px 32px rgba(220,38,38,0.32), inset 0 -4px 0 rgba(0,0,0,0.18);
  transition: transform .12s, background .15s, box-shadow .15s;
  position: relative; z-index: 2;
  -webkit-tap-highlight-color: transparent;
}
.rec-button:hover { background: var(--tape-deep); }
.rec-button:active { transform: scale(0.97); }
.rec-button .dot {
  width: 18px; height: 18px; border-radius: 50%; background: #fff;
  margin-bottom: 8px;
}
.rec-button.recording { background: var(--ink); }
.rec-button.recording .dot { border-radius: 4px; background: var(--tape); animation: pulse-rec 1.2s ease-in-out infinite; }
@keyframes pulse-rec { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.15); opacity: 0.7; } }
.rec-button.processing { background: var(--brass); cursor: wait; }
.rec-button.processing .dot { background: #fff; animation: spin 1s linear infinite; border-radius: 50%; border: 2px solid transparent; border-top-color: var(--ink); width: 22px; height: 22px; background: transparent; }
@keyframes spin { to { transform: rotate(360deg); } }

.rec-button-ring {
  position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, transparent 56%, rgba(220,38,38,0.18) 56%, transparent 70%);
  pointer-events: none; opacity: 0;
  transition: opacity .25s;
}
.rec-button-wrap.recording .rec-button-ring {
  opacity: 1;
  animation: ring-pulse 1.8s ease-out infinite;
}
@keyframes ring-pulse {
  0% { transform: scale(0.95); opacity: 0.65; }
  100% { transform: scale(1.18); opacity: 0; }
}

.rec-timer {
  font-family: var(--mono); font-size: 28px; color: var(--ink); margin-bottom: var(--space-3);
  letter-spacing: 0.06em; min-height: 36px;
}
.rec-tip { font-family: var(--mono); font-size: 12px; color: var(--ink-3); letter-spacing: 0.1em; text-transform: uppercase; }

.waveform {
  display: flex; align-items: center; justify-content: center; gap: 3px;
  height: 60px; margin: var(--space-5) 0; opacity: 0.4; transition: opacity .2s;
}
.waveform.active { opacity: 1; }
.wave-bar {
  width: 4px; min-height: 6px; max-height: 60px;
  background: var(--tape); border-radius: 4px;
  transition: height .08s ease-out;
}

.rec-transcript {
  margin-top: var(--space-6);
  background: var(--paper); border: 1px solid var(--hairline);
  border-radius: var(--radius); padding: var(--space-5);
  max-width: 640px; width: 100%;
  font-family: var(--sans); font-size: 16px; line-height: 1.6; color: var(--ink-2);
  text-align: left;
  min-height: 60px;
}
.rec-transcript.empty { color: var(--ink-mute); font-style: italic; }
.rec-transcript .interim { color: var(--ink-mute); }

.rec-controls { display: flex; gap: var(--space-3); flex-wrap: wrap; justify-content: center; margin-top: var(--space-5); }

/* Asset results */
.results-stage { padding: var(--space-5) 0 var(--space-7); }
.results-stage h2 { font-size: clamp(28px, 4vw, 40px); margin-bottom: var(--space-2); text-align: center; }
.results-stage .results-sub { color: var(--ink-2); text-align: center; margin-bottom: var(--space-7); }

.results-tabs {
  display: flex; gap: 4px; padding: 4px;
  background: var(--cream-deep); border-radius: 999px;
  width: fit-content; margin: 0 auto var(--space-6);
  flex-wrap: wrap;
}
.tab-btn {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 10px 16px; border: none; background: transparent; cursor: pointer;
  border-radius: 999px; color: var(--ink-2); transition: all .15s;
}
.tab-btn:hover { color: var(--ink); }
.tab-btn.active { background: var(--ink); color: var(--cream); }

.asset-panel { display: none; max-width: 720px; margin: 0 auto; }
.asset-panel.active { display: block; animation: fade-in .3s ease-out; }
@keyframes fade-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

.asset-output {
  background: var(--paper); border-radius: var(--radius); border: 1px solid var(--hairline);
  padding: var(--space-7);
}
.asset-output .asset-toolbar {
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: var(--space-4); border-bottom: 1px solid var(--hairline-soft);
  margin-bottom: var(--space-5);
}
.asset-output .asset-toolbar h3 { font-size: 18px; font-family: var(--serif); }
.asset-output .asset-toolbar .actions { display: flex; gap: var(--space-2); }

.tweet-thread { display: flex; flex-direction: column; gap: var(--space-4); }
.tweet {
  padding: var(--space-4) var(--space-5);
  background: var(--cream);
  border: 1px solid var(--hairline-soft);
  border-radius: var(--radius);
  font-size: 16px; line-height: 1.5; color: var(--ink); position: relative;
}
.tweet .tweet-num {
  font-family: var(--mono); font-size: 11px; color: var(--ink-3);
  position: absolute; top: -8px; left: 14px;
  background: var(--paper); padding: 2px 8px; border-radius: 4px;
  letter-spacing: 0.1em;
}
.tweet .char-count {
  font-family: var(--mono); font-size: 11px; color: var(--ink-3);
  position: absolute; bottom: 6px; right: 12px;
}

.long-form {
  font-size: 16px; line-height: 1.7; color: var(--ink); white-space: pre-wrap;
  font-family: var(--sans);
}
.long-form h1, .long-form h2, .long-form h3 { font-family: var(--serif); margin: 1.4em 0 0.6em; }
.long-form h2 { font-size: 24px; }
.long-form h3 { font-size: 19px; }
.long-form p { margin: 0 0 1em; }
.long-form strong { color: var(--ink); font-weight: 600; }
.long-form em { font-style: italic; }
.long-form ul, .long-form ol { margin: 0 0 1em 1.4em; }
.long-form li { margin-bottom: 0.4em; }
.long-form code { background: var(--cream-deep); padding: 1px 6px; border-radius: 4px; font-family: var(--mono); font-size: 14px; }

.with-footer-toggle {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  margin-top: var(--space-6); padding: var(--space-4);
  background: var(--cream-deep); border-radius: var(--radius);
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3);
}
.toggle {
  position: relative; width: 36px; height: 20px;
  background: var(--ink-3); border-radius: 999px; cursor: pointer; transition: background .2s;
}
.toggle.on { background: var(--tape); }
.toggle::after {
  content: ""; position: absolute; top: 2px; left: 2px;
  width: 16px; height: 16px; border-radius: 50%; background: #fff;
  transition: transform .2s;
}
.toggle.on::after { transform: translateX(16px); }

/* History */
.history-strip {
  margin-top: var(--space-7); padding-top: var(--space-5);
  border-top: 1px solid var(--hairline-soft);
}
.history-strip h3 { font-size: 16px; font-family: var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); font-weight: 500; margin-bottom: var(--space-4); }
.history-list { display: flex; flex-direction: column; gap: var(--space-2); }
.history-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: var(--space-3) var(--space-4); background: var(--paper);
  border: 1px solid var(--hairline-soft); border-radius: var(--radius-sm);
  cursor: pointer; transition: background .15s;
  font-size: 14px;
}
.history-item:hover { background: var(--cream-deep); }
.history-item .meta { font-family: var(--mono); font-size: 12px; color: var(--ink-3); }

/* Demo banner */
.demo-banner {
  background: var(--ink); color: var(--cream); padding: 10px 20px;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
  text-align: center;
}
.demo-banner .pulse {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: var(--tape); margin-right: 8px; vertical-align: middle;
  animation: pulse-rec 1.4s ease-in-out infinite;
}
.demo-banner a { color: var(--tape); margin-left: 12px; text-decoration: underline; text-underline-offset: 3px; }

/* Toast */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--ink); color: var(--cream); padding: 12px 20px; border-radius: 999px;
  font-family: var(--mono); font-size: 13px; letter-spacing: 0.04em;
  opacity: 0; pointer-events: none; transition: all .2s;
  z-index: 100; box-shadow: 0 12px 30px -10px rgba(0,0,0,0.4);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Errors */
.error-card {
  background: rgba(220,38,38,0.05); border: 1px solid rgba(220,38,38,0.18);
  border-radius: var(--radius); padding: var(--space-4) var(--space-5);
  color: var(--tape-deep); font-size: 14.5px; margin: var(--space-4) 0;
}

/* Demo page specifics */
.demo-meta {
  display: flex; gap: var(--space-5); margin-bottom: var(--space-5); flex-wrap: wrap;
  font-family: var(--mono); font-size: 12px; color: var(--ink-3); letter-spacing: 0.06em;
}
.demo-meta span { display: flex; align-items: center; gap: 6px; }
.demo-meta strong { color: var(--ink); font-weight: 500; }

.transcript-card {
  background: var(--paper); border: 1px solid var(--hairline);
  border-radius: var(--radius); padding: var(--space-6);
  margin-bottom: var(--space-6);
}
.transcript-card h3 { font-size: 18px; margin-bottom: var(--space-3); font-family: var(--serif); display: flex; align-items: center; gap: 10px; }
.transcript-card h3 .play-pill {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em;
  background: var(--cream-deep); padding: 4px 10px; border-radius: 999px; color: var(--ink-2); text-transform: uppercase;
}
.transcript-card .body { font-size: 16px; line-height: 1.7; color: var(--ink-2); }

/* ───────── Faux-platform demo styling
 * Each generated asset is rendered to look like the platform it'll live on,
 * so visitors viscerally see "this is shippable as-is."
 */

/* Faux-X (Twitter) tweet card — used on demo only */
.faux-x .tweet {
  background: #fff;
  border: 1px solid #cfd9de;
  border-radius: 16px;
  padding: 16px 18px 14px;
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
  position: relative;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.faux-x .tweet .tweet-num { display: none; }
.faux-x .tweet .char-count { display: none; }
.faux-x .tweet .x-avatar {
  grid-row: 1 / span 2;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--ink); color: var(--cream);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 22px; font-weight: 600;
}
.faux-x .tweet .x-head {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px;
  font-family: var(--sans); font-size: 14.5px; line-height: 1.3;
  color: #0f1419;
}
.faux-x .tweet .x-head .x-name { font-weight: 700; }
.faux-x .tweet .x-head .x-handle { color: #536471; font-weight: 400; }
.faux-x .tweet .x-head .x-dot { color: #536471; }
.faux-x .tweet .x-head .x-time { color: #536471; }
.faux-x .tweet .x-body {
  margin-top: 4px;
  font-family: var(--sans); font-size: 15.5px; line-height: 1.45;
  color: #0f1419;
  white-space: pre-wrap;
}
.faux-x .tweet .x-meta {
  margin-top: 12px;
  display: flex; gap: 18px;
  font-family: var(--mono); font-size: 11px; color: #536471;
  letter-spacing: 0.04em;
}
.faux-x .tweet .x-meta .x-step { color: var(--tape-deep); }

/* Faux-LinkedIn card */
.faux-li {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 0;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.04), 0 2px 4px rgba(0,0,0,0.04);
}
.faux-li-head {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px 6px;
}
.faux-li-avatar {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--ink); color: var(--cream);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 22px; font-weight: 600;
  flex-shrink: 0;
}
.faux-li-meta { display: flex; flex-direction: column; line-height: 1.25; }
.faux-li-name { font-family: var(--sans); font-size: 15px; font-weight: 600; color: rgba(0,0,0,0.9); }
.faux-li-title { font-family: var(--sans); font-size: 12.5px; color: rgba(0,0,0,0.6); }
.faux-li-time { font-family: var(--sans); font-size: 12px; color: rgba(0,0,0,0.6); margin-top: 2px; display: flex; align-items: center; gap: 4px; }
.faux-li-time::after { content: "·"; }
.faux-li-time .globe { display: inline-block; width: 12px; height: 12px; background: #666; border-radius: 50%; mask: radial-gradient(circle, transparent 30%, #000 30%); }
.faux-li-body {
  padding: 10px 16px 16px;
  font-family: var(--sans); font-size: 14.5px; line-height: 1.55;
  color: rgba(0,0,0,0.9);
  white-space: pre-wrap;
}
.faux-li-actions {
  border-top: 1px solid #e0e0e0;
  padding: 8px 16px;
  display: flex; gap: 16px;
  font-family: var(--sans); font-size: 13px; color: rgba(0,0,0,0.6); font-weight: 600;
}

/* Faux-blog (Substack/Medium) */
.faux-blog {
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 48px 56px;
  font-family: 'Charter', 'Iowan Old Style', 'Apple Garamond', Georgia, serif;
  color: #242424;
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.7;
}
.faux-blog h1 {
  font-family: 'Charter', 'Iowan Old Style', Georgia, serif;
  font-size: 36px; font-weight: 700; line-height: 1.2; letter-spacing: -0.02em;
  color: #242424; margin: 0 0 16px;
}
.faux-blog .blog-byline {
  display: flex; align-items: center; gap: 10px; margin: 0 0 28px;
  padding-bottom: 18px; border-bottom: 1px solid #eee;
}
.faux-blog .blog-byline .b-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--ink); color: var(--cream);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 16px; font-weight: 600;
}
.faux-blog .blog-byline .b-name { font-family: var(--sans); font-size: 14px; font-weight: 600; color: #242424; }
.faux-blog .blog-byline .b-meta { font-family: var(--sans); font-size: 13px; color: #6b6b6b; }
.faux-blog h2 {
  font-family: 'Charter', Georgia, serif; font-size: 26px; font-weight: 700;
  letter-spacing: -0.01em; margin: 36px 0 12px; color: #242424;
}
.faux-blog h3 {
  font-family: 'Charter', Georgia, serif; font-size: 21px; font-weight: 700;
  margin: 28px 0 10px; color: #242424;
}
.faux-blog p { font-size: 18px; line-height: 1.7; margin: 0 0 18px; color: #242424; }
.faux-blog strong { font-weight: 700; }
.faux-blog em { font-style: italic; }
.faux-blog ul, .faux-blog ol { margin: 0 0 18px 24px; }
.faux-blog li { margin-bottom: 6px; font-size: 18px; line-height: 1.7; }
.faux-blog code {
  background: #f4f4f4; padding: 1px 6px; border-radius: 4px;
  font-family: var(--mono); font-size: 16px; color: #242424;
}

/* Faux-newsletter (email client style) */
.faux-newsletter {
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  max-width: 600px;
  margin: 0 auto;
  overflow: hidden;
  box-shadow: 0 6px 24px -8px rgba(26,26,26,0.08);
}
.faux-newsletter .nl-head {
  background: var(--cream-deep);
  padding: 20px 24px 18px;
  border-bottom: 1px solid var(--hairline);
}
.faux-newsletter .nl-from {
  font-family: var(--sans); font-size: 13px; color: var(--ink-3);
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 6px;
}
.faux-newsletter .nl-from .nl-avatar {
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--ink); color: var(--cream);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 12px; font-weight: 600;
}
.faux-newsletter .nl-subject {
  font-family: var(--serif); font-size: 22px; font-weight: 600;
  color: var(--ink); letter-spacing: -0.01em; line-height: 1.25;
}
.faux-newsletter .nl-body {
  padding: 28px 28px 32px;
  font-family: 'Charter', Georgia, serif; font-size: 17px; line-height: 1.65;
  color: var(--ink);
  white-space: pre-wrap;
}
.faux-newsletter .nl-body p { margin: 0 0 14px; }
.faux-newsletter .nl-body strong {
  display: inline-block; font-family: var(--serif); font-size: 18px;
  font-weight: 600; color: var(--ink); margin-bottom: 4px;
}
.faux-newsletter .nl-foot {
  border-top: 1px solid var(--hairline);
  padding: 14px 24px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em;
  color: var(--ink-3);
}

/* Demo: sample-audio play row */
.sample-audio-row {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  margin-top: var(--space-4);
}
.play-sample-btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--ink); color: var(--cream);
  border: none; cursor: pointer; border-radius: 999px;
  padding: 10px 18px 10px 14px;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  transition: background .15s, transform .12s;
  -webkit-tap-highlight-color: transparent;
}
.play-sample-btn:hover { background: #000; transform: translateY(-1px); }
.play-sample-btn .play-icon {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--tape); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px;
}
.play-sample-btn .play-icon::before {
  content: ""; width: 0; height: 0;
  border-left: 8px solid #fff;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  margin-left: 2px;
}
.play-sample-btn.playing .play-icon::before {
  content: ""; width: 8px; height: 10px; border: none;
  border-left: 3px solid #fff; border-right: 3px solid #fff;
  margin: 0;
}
.sample-audio-meta {
  font-family: var(--mono); font-size: 11px; color: var(--ink-3);
  letter-spacing: 0.06em;
}

/* Mobile sticky-bottom CTA (marketing pages only) */
.sticky-cta {
  display: none;
  position: fixed; left: 12px; right: 12px;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 12px);
  z-index: 60;
  background: var(--tape);
  color: #fff;
  border-radius: 999px;
  padding: 14px 22px;
  font-family: var(--sans); font-size: 16px; font-weight: 500;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 8px 24px -6px rgba(220,38,38,0.5), 0 2px 4px rgba(0,0,0,0.1);
  transition: transform .15s, background .15s;
}
.sticky-cta:hover { background: var(--tape-deep); color: #fff; transform: translateY(-1px); }
.sticky-cta .arrow { transition: transform .15s; }
.sticky-cta:hover .arrow { transform: translateX(3px); }
@media (max-width: 720px) {
  .sticky-cta { display: flex; align-items: center; justify-content: center; gap: 8px; }
  body.has-sticky-cta { padding-bottom: 80px; }
}

/* PWA install hint */
.install-hint {
  margin-top: var(--space-6); padding: var(--space-4) var(--space-5);
  background: var(--cream-deep); border: 1px dashed var(--hairline);
  border-radius: var(--radius); font-size: 14px; color: var(--ink-2); text-align: center;
}
.install-hint strong { color: var(--ink); }

/* Responsive */
@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 420px; margin: 0 auto; aspect-ratio: 1.4 / 1; }
  .problem-grid { grid-template-columns: 1fr; }
  .how-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; }
  .price-card.featured { transform: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .assets-preview { grid-template-columns: 1fr; }
}
@media (max-width: 540px) {
  .section { padding: var(--space-7) 0; }
  .how-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: var(--space-5); }
  .footer-meta { flex-direction: column; gap: var(--space-3); align-items: flex-start; }
  body { font-size: 16px; }
  .hero { padding: var(--space-7) 0; }
  .rec-button-wrap { width: 180px; height: 180px; }
  .rec-button { width: 144px; height: 144px; }
  .demo-meta { gap: var(--space-3); font-size: 11px; }
  .results-tabs { width: 100%; justify-content: center; }
  .tab-btn { padding: 8px 12px; font-size: 11px; }
  .faux-blog { padding: 28px 22px; }
  .faux-blog h1 { font-size: 28px; }
  .faux-blog h2 { font-size: 22px; }
  .faux-blog p, .faux-blog li { font-size: 17px; }
  .faux-newsletter .nl-body { padding: 22px 20px 26px; font-size: 16px; }
  .faux-x .tweet { padding: 14px 14px 12px; }
}
