/* ═══════════════════════════════════════════════
   felt.place — shared stylesheet
   Dark Companion / Warm Cream adaptive design
   ═══════════════════════════════════════════════ */

/* ── Reset ───────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── Tokens ──────────────────────────────────── */
:root {
  /* Dark Companion palette (primary) */
  --bg:           #2A2520;
  --bg-alt:       #322D28;
  --bg-card:      #3A342E;
  --text:         #E8DFD4;
  --text-secondary: #A89888;
  --accent:       #C87C5A;
  --accent-light: #D4906C;
  --accent-glow:  rgba(200, 124, 90, 0.15);

  /* Warm Cream (for contrast sections) */
  --cream:        #FFF8F0;
  --cream-alt:    #F5EDE3;
  --cream-text:   #3D2E1F;
  --cream-secondary: #5C4433;

  /* Typography */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body:    'Source Serif 4', Georgia, serif;
  --font-mono:    'SF Mono', 'Fira Code', 'Cascadia Code', monospace;

  /* Spacing */
  --section-pad:  100px;
  --content-max:  680px;
  --wide-max:     960px;
}

/* ── Base ────────────────────────────────────── */
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  font-size: 17px;
  line-height: 1.7;
}

a { color: var(--accent-light); text-decoration: none; }
a:hover { text-decoration: underline; }

strong { color: var(--text); font-weight: 600; }

img { max-width: 100%; height: auto; }

/* ── Grain Texture Overlay ───────────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.025'/%3E%3C/svg%3E");
  background-size: 256px;
}

/* ── Typography ──────────────────────────────── */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

h1 { font-size: clamp(42px, 6vw, 58px); }
h2 { font-size: clamp(26px, 3.5vw, 34px); }
h3 { font-size: clamp(20px, 2.5vw, 24px); }

/* ── Layout ──────────────────────────────────── */
.section {
  padding: var(--section-pad) 24px;
}

.narrow {
  max-width: var(--content-max);
  margin: 0 auto;
}

.wide {
  max-width: var(--wide-max);
  margin: 0 auto;
}

.center { text-align: center; }

/* ── Section Variants ────────────────────────── */
.section--dark {
  background: var(--bg);
}

.section--alt {
  background: var(--bg-alt);
}

.section--cream {
  background: var(--cream);
  color: var(--cream-text);
}

.section--cream .text-secondary {
  color: var(--cream-secondary);
}

.section--cream strong {
  color: var(--cream-text);
}

.section--cream a {
  color: var(--accent);
}

/* ── Divider ─────────────────────────────────── */
.divider {
  height: 1px;
  max-width: 120px;
  margin: 0 auto;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(168, 152, 136, 0.15),
    transparent
  );
}

/* ── Kicker ──────────────────────────────────── */
.kicker {
  font-family: var(--font-body);
  font-size: 13px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

/* ── Text Utilities ──────────────────────────── */
.text-secondary { color: var(--text-secondary); }
.text-accent { color: var(--accent-light); }
.mb-xs { margin-bottom: 8px; }
.mb-sm { margin-bottom: 16px; }
.mb-md { margin-bottom: 24px; }
.mb-lg { margin-bottom: 40px; }
.mb-xl { margin-bottom: 60px; }

/* ── Hero ────────────────────────────────────── */
.hero {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 24px 80px;
}

.hero h1 {
  font-size: clamp(52px, 8vw, 72px);
  font-weight: 300;
  margin-bottom: 16px;
}

.hero .subtitle {
  font-size: clamp(19px, 2.5vw, 22px);
  color: var(--text-secondary);
  max-width: 480px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

/* ── Email Form ──────────────────────────────── */
.email-form {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.email-form input[type="email"] {
  padding: 14px 20px;
  border-radius: 8px;
  border: 1px solid rgba(168, 152, 136, 0.25);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  width: 260px;
  outline: none;
  transition: border-color 0.2s;
}

.email-form input[type="email"]:focus {
  border-color: var(--accent);
}

.email-form input[type="email"]::placeholder {
  color: var(--text-secondary);
  opacity: 0.5;
}

.btn {
  display: inline-block;
  padding: 14px 28px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}

.btn:hover {
  background: var(--accent-light);
  text-decoration: none;
  transform: translateY(-1px);
}

.btn--outline {
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent-light);
}

.btn--outline:hover {
  background: var(--accent-glow);
}

/* ── App Mockup Card ─────────────────────────── */
.mockup-card {
  background: var(--bg-alt);
  border-radius: 14px;
  padding: 24px;
  width: 300px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
  font-family: var(--font-body);
  margin: 0 auto;
  text-align: left;
  position: relative;
  display: flex;
  flex-direction: column;
}

.mockup-card::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 20%;
  right: 20%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-glow), transparent);
}

.mockup-card .prompt-text {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 18px;
  flex: 1;
}

.mockup-card .prompt-text .soft {
  opacity: 0.65;
}

.mockup-card .buttons {
  display: flex;
  gap: 8px;
}

.mockup-card .btn-felt {
  background: var(--accent);
  color: #fff;
  padding: 7px 18px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
}

.mockup-card .btn-skip {
  background: rgba(168, 152, 136, 0.1);
  color: var(--text-secondary);
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 13px;
}

/* ── Feature Grid ────────────────────────────── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 48px;
}

.feature-card {
  padding: 28px;
  background: rgba(255, 255, 255, 0.025);
  border-radius: 12px;
  border: 1px solid rgba(168, 152, 136, 0.06);
  transition: border-color 0.2s;
}

.feature-card:hover {
  border-color: rgba(168, 152, 136, 0.12);
}

.feature-card .icon {
  font-size: 28px;
  margin-bottom: 14px;
  color: var(--accent);
}

.feature-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
  font-weight: 500;
}

.feature-card p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ── Audience Cards ──────────────────────────── */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.audience-card {
  padding: 32px;
  border-radius: 12px;
  border: 1px solid rgba(168, 152, 136, 0.1);
  background: rgba(255, 255, 255, 0.02);
}

.audience-card h3 {
  font-size: 19px;
  margin-bottom: 10px;
  font-weight: 500;
}

.audience-card p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ── Pricing Box ─────────────────────────────── */
.pricing-box {
  max-width: 440px;
  margin: 40px auto 0;
  padding: 36px;
  border-radius: 14px;
  border: 1px solid rgba(200, 124, 90, 0.2);
  background: rgba(200, 124, 90, 0.04);
  text-align: center;
}

.pricing-box .price {
  font-family: var(--font-display);
  font-size: 42px;
  color: var(--text);
  font-weight: 400;
  margin-bottom: 4px;
}

.pricing-box .price-detail {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.pricing-box .feature-list {
  list-style: none;
  text-align: left;
  margin-bottom: 24px;
}

.pricing-box .feature-list li {
  font-size: 15px;
  color: var(--text-secondary);
  padding: 6px 0;
  padding-left: 24px;
  position: relative;
}

.pricing-box .feature-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 600;
}

.pricing-note {
  margin-top: 24px;
  padding: 20px 24px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(168, 152, 136, 0.08);
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.pricing-note strong {
  color: var(--text);
}

/* ── Blockquote / Pull Quote ─────────────────── */
.pull-quote {
  border-left: 2px solid var(--accent);
  padding-left: 24px;
  margin: 32px 0;
  font-style: italic;
  color: var(--text-secondary);
  font-size: 17px;
  line-height: 1.7;
}

/* ── Nav ─────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(42, 37, 32, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(168, 152, 136, 0.06);
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--text);
  font-weight: 400;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.nav-links a {
  font-size: 14px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.15s;
}

.nav-links a:hover { color: var(--text); }

/* ── Footer ──────────────────────────────────── */
.footer {
  padding: 48px 24px;
  text-align: center;
  border-top: 1px solid rgba(168, 152, 136, 0.08);
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--text);
  opacity: 0.6;
  margin-bottom: 8px;
}

.footer-links {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 13px;
  color: var(--text-secondary);
  opacity: 0.6;
  transition: opacity 0.15s;
}

.footer-links a:hover { opacity: 1; }

.footer-sub {
  font-size: 12px;
  color: var(--text-secondary);
  opacity: 0.35;
}

/* ── Animations ──────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-in {
  opacity: 0;
  animation: fadeUp 0.7s ease-out forwards;
}

.fade-in.d1 { animation-delay: 0.1s; }
.fade-in.d2 { animation-delay: 0.2s; }
.fade-in.d3 { animation-delay: 0.3s; }
.fade-in.d4 { animation-delay: 0.4s; }
.fade-in.d5 { animation-delay: 0.5s; }

/* ── Subpage Styles ──────────────────────────── */
.page-header {
  padding: 120px 24px 60px;
  text-align: center;
}

.page-header h1 {
  font-size: clamp(32px, 5vw, 44px);
}

.prose {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 24px;
}

.prose h2 {
  margin-top: 48px;
  margin-bottom: 16px;
}

.prose h3 {
  margin-top: 32px;
  margin-bottom: 12px;
}

.prose p {
  margin-bottom: 16px;
  color: var(--text-secondary);
}

.prose ul, .prose ol {
  margin-bottom: 16px;
  padding-left: 24px;
  color: var(--text-secondary);
}

.prose li {
  margin-bottom: 8px;
  line-height: 1.65;
}

.prose code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--text);
}

.prose .callout {
  padding: 24px;
  border-radius: 10px;
  background: rgba(200, 124, 90, 0.06);
  border: 1px solid rgba(200, 124, 90, 0.15);
  margin: 24px 0;
}

.prose .callout p:last-child {
  margin-bottom: 0;
}

.prose .crisis-box {
  padding: 24px;
  border-radius: 10px;
  background: rgba(200, 124, 90, 0.08);
  border: 1px solid rgba(200, 124, 90, 0.25);
  margin: 24px 0;
}

.prose .crisis-box h3 {
  margin-top: 0;
  color: var(--accent-light);
}

/* ── Menu Bar Mockup ──────────────────────────── */
.menubar-mockup {
  max-width: 560px;
  margin: 0 auto;
  background: rgba(0, 0, 0, 0.45);
  border-radius: 8px;
  padding: 6px 16px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, sans-serif;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.menubar-mockup .mb-left {
  margin-right: auto;
  font-weight: 600;
  font-size: 14px;
}

.menubar-mockup .mb-icon {
  opacity: 0.75;
  font-size: 15px;
}

.menubar-mockup .mb-felt {
  position: relative;
  display: flex;
  align-items: center;
  gap: 2px;
}

.menubar-mockup .mb-felt .felt-dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  animation: gentlePulse 3s ease-in-out infinite;
}

.menubar-mockup .mb-time {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

@keyframes gentlePulse {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.15); }
}

.menubar-label {
  text-align: center;
  font-size: 13px;
  color: var(--text-secondary);
  opacity: 0.5;
  margin-top: 16px;
  font-style: italic;
}

/* ── Prompt Showcase ─────────────────────────── */
.prompt-showcase {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 48px;
}

.prompt-showcase .mockup-card {
  flex-shrink: 0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.prompt-showcase .mockup-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

/* Card variant with pill state */
.mockup-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-alt);
  border-radius: 18px;
  padding: 8px 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  margin: 0 auto;
}

.mockup-pill .pill-dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
}

.mockup-pill .pill-text {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--text-secondary);
}

/* ── Mockup Scene (card with context) ────────── */
.mockup-scene {
  position: relative;
  max-width: 400px;
  margin: 0 auto;
}

.mockup-scene .scene-label {
  font-size: 13px;
  color: var(--text-secondary);
  opacity: 0.5;
  text-align: center;
  margin-top: 12px;
  font-style: italic;
}

/* ── Lifecycle Demo ──────────────────────────── */
.lifecycle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  margin-top: 40px;
}

.lifecycle-step {
  text-align: center;
  max-width: 220px;
}

.lifecycle-step .step-label {
  font-size: 12px;
  color: var(--text-secondary);
  opacity: 0.5;
  margin-top: 10px;
}

.lifecycle-arrow {
  font-size: 20px;
  color: var(--text-secondary);
  opacity: 0.3;
}

@media (max-width: 768px) {
  .lifecycle-arrow { display: none; }
  .lifecycle { gap: 24px; }
}

/* ── Responsive ──────────────────────────────── */
@media (max-width: 768px) {
  :root {
    --section-pad: 64px;
  }

  .hero {
    min-height: 70vh;
    padding: 100px 20px 60px;
  }

  .email-form {
    flex-direction: column;
    align-items: center;
  }

  .email-form input[type="email"] {
    width: 100%;
    max-width: 300px;
  }

  .nav-links { display: none; }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .audience-grid {
    grid-template-columns: 1fr;
  }
}
