/* Utterdeck — warm, hand-made, stage-metaphor landing */

:root {
  /* clay palette (option 3) */
  --cream: #fef3e8;
  --cream-2: #f7e6d2;
  --cream-3: #efd9be;
  --ink: #1e2a4a;
  --ink-soft: #2d3657;
  --ink-mute: #5a6278;
  --clay: #e85d3c;
  --clay-deep: #c94a2d;
  --forest: #2d5f4e;
  --forest-deep: #1f4638;
  --yolk: #f4c430;
  --rose: #e8a87c;
  --paper-line: rgba(30, 42, 74, 0.12);
  --paper-line-strong: rgba(30, 42, 74, 0.22);

  /* style-tint placeholder colors */
  --sunny-bg: #ffe066;
  --sunny-ink: #1a1a1a;
  --sunny-red: #e63946;
  --sunny-blue: #5ba3d0;

  --soft-bg: #f4e4d4;
  --soft-peach: #e8b4a0;
  --soft-sage: #a8c5a0;
  --soft-dust: #c9b8d4;

  --bold-bg: #f5f1e8;
  --bold-ink: #0a0a0a;
  --bold-red: #d62828;
  --bold-blue: #1e4d8c;
  --bold-yellow: #fcbf49;

  --fs-display: 'Instrument Serif', 'Times New Roman', serif;
  --fs-ui: 'Space Grotesk', -apple-system, system-ui, sans-serif;
  --fs-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', monospace;

  --page-bg: var(--cream);
  --page-fg: var(--ink);
}

[data-theme="dark"] {
  --cream: #151219;
  --cream-2: #1d1922;
  --cream-3: #272230;
  --ink: #f5ead8;
  --ink-soft: #e5d8c2;
  --ink-mute: #9a9082;
  --paper-line: rgba(245, 234, 216, 0.14);
  --paper-line-strong: rgba(245, 234, 216, 0.28);
  --page-bg: var(--cream);
  --page-fg: var(--ink);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--page-bg);
  color: var(--page-fg);
  font-family: var(--fs-ui);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.5s ease, color 0.5s ease;
}

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

h1, h2, h3, h4 { font-family: var(--fs-display); font-weight: 400; letter-spacing: -0.01em; margin: 0; }
p { margin: 0; }

.mono { font-family: var(--fs-mono); font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; }

/* ------- page shell ------- */
.page {
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px 48px 80px;
  position: relative;
}

/* subtle paper grain */
.page::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    radial-gradient(rgba(30, 42, 74, 0.04) 1px, transparent 1px);
  background-size: 3px 3px;
  mix-blend-mode: multiply;
}
[data-theme="dark"] .page::before {
  background-image: radial-gradient(rgba(245, 234, 216, 0.04) 1px, transparent 1px);
  mix-blend-mode: screen;
}

/* ------- nav ------- */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0 0;
  position: relative;
  z-index: 2;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--fs-display);
  font-size: 26px;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: inherit;
}
.brand-mark {
  width: 34px; height: 34px;
  background: var(--clay);
  border-radius: 10px;
  display: grid; place-items: center;
  color: var(--cream);
  font-family: var(--fs-display);
  font-size: 22px;
  transform: rotate(-4deg);
  box-shadow: 2px 2px 0 var(--ink);
}
.nav-links {
  display: flex;
  gap: 28px;
  font-size: 14px;
  color: var(--ink-soft);
}
.nav-links a { color: inherit; text-decoration: none; }
.nav-links a:hover { color: var(--clay); }
.nav-cta {
  display: flex; gap: 10px; align-items: center;
}

/* ------- buttons ------- */
.btn {
  font-family: var(--fs-ui);
  font-weight: 500;
  border: none;
  cursor: pointer;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 14px;
  letter-spacing: 0.01em;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  padding: 8px 16px;
}
.btn-ghost:hover { color: var(--clay); }
.btn-primary {
  background: var(--clay);
  color: var(--cream);
  box-shadow: 3px 3px 0 var(--ink);
}
.btn-primary:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }
.btn-primary:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.btn-lg { padding: 16px 28px; font-size: 16px; }
.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--ink);
  padding: 11px 22px;
}
.btn-outline:hover { background: var(--ink); color: var(--cream); }

/* ------- hero ------- */
.hero {
  position: relative;
  z-index: 1;
  padding: 40px 0 16px;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
}
.hero-left h1 {
  font-size: clamp(46px, 6vw, 84px);
  line-height: 0.96;
  letter-spacing: -0.025em;
}
.hero-left h1 .em {
  font-style: italic;
  color: var(--clay);
}
.hero-left h1 .und {
  position: relative;
  white-space: nowrap;
}
.hero-left h1 .und::after {
  content: "";
  position: absolute;
  left: -2px; right: -2px;
  bottom: 4px;
  height: 8px;
  background: var(--yolk);
  z-index: -1;
  transform: skew(-6deg) rotate(-0.8deg);
  opacity: 0.75;
}
.hero-sub {
  margin-top: 26px;
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 44ch;
  line-height: 1.55;
}
.hero-ctas {
  margin-top: 32px;
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}
.hero-ctas .tiny-note {
  font-size: 12px;
  color: var(--ink-mute);
}

/* language chips */
.lang-row {
  margin-top: 40px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.lang-row .mono { color: var(--ink-mute); }
.lang-chip {
  font-family: var(--fs-mono);
  font-size: 11px;
  padding: 4px 10px;
  border: 1px dashed var(--paper-line-strong);
  border-radius: 999px;
  color: var(--ink-soft);
}

/* ------- stage (the monitor) ------- */
.stage {
  position: relative;
  z-index: 10;
  aspect-ratio: 4 / 3.2;
  width: 100%;
}

/* silhouette at mic, bottom */
.speaker {
  position: absolute;
  left: 50%;
  bottom: -20px;
  transform: translateX(-50%);
  width: 180px;
  height: auto;
  z-index: 3;
  pointer-events: none;
}

/* the "monitor" is a tilted cream frame with heavy ink border */
.monitor {
  position: absolute;
  inset: 0 0 70px 0;
  background: var(--ink);
  border-radius: 14px;
  padding: 14px;
  box-shadow:
    8px 8px 0 var(--forest),
    14px 14px 0 var(--paper-line-strong);
  transform: rotate(-1.2deg);
}
.monitor-inner {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 6px;
  overflow: hidden;
  background: var(--cream-2);
}
.monitor-stand {
  position: absolute;
  left: 50%; bottom: 24px;
  transform: translateX(-50%);
  width: 22%;
  height: 36px;
  background: var(--ink);
  border-radius: 0 0 12px 12px;
  z-index: 2;
}
.monitor-base {
  position: absolute;
  left: 50%; bottom: 12px;
  transform: translateX(-50%);
  width: 36%;
  height: 10px;
  background: var(--ink);
  border-radius: 4px;
  z-index: 2;
}

/* live dot on the monitor */
.live-chip {
  position: absolute;
  top: 20px; left: 24px;
  z-index: 4;
  font-family: var(--fs-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--cream);
  background: rgba(10, 10, 15, 0.55);
  padding: 6px 10px 6px 22px;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}
.live-chip::before {
  content: "";
  position: absolute;
  left: 9px; top: 50%;
  transform: translateY(-50%);
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #ff4a4a;
  box-shadow: 0 0 0 0 rgba(255, 74, 74, 0.55);
  animation: pulse 1.8s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 74, 74, 0.55); }
  100% { box-shadow: 0 0 0 10px rgba(255, 74, 74, 0); }
}
[data-motion="off"] .live-chip::before { animation: none; }

/* the slide — real image swapped with style */
.slide {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  transition: opacity 0.7s ease;
  overflow: hidden;
}
.slide.enter { animation: bleed-in 0.9s ease-out both; }
.slide-img { width: 100%; height: 100%; }
.slide-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
[data-motion="off"] .slide.enter { animation: none; }

@keyframes bleed-in {
  0% { clip-path: inset(0 100% 0 0); filter: blur(2px); }
  60% { clip-path: inset(0 0 0 0); filter: blur(0.5px); }
  100% { clip-path: inset(0 0 0 0); filter: blur(0); }
}

/* ------- style toggle ------- */
.style-toggle {
  position: absolute;
  left: 0; right: 0;
  bottom: -66px;
  display: flex;
  justify-content: center;
  gap: 10px;
  z-index: 5;
}
.style-btn {
  font-family: var(--fs-ui);
  font-size: 13px;
  font-weight: 500;
  background: var(--cream-2);
  color: var(--ink);
  border: 1.5px solid var(--ink);
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.15s ease, background 0.15s ease;
}
.style-btn:hover { transform: translateY(-2px); }
.style-btn[aria-pressed="true"] {
  background: var(--ink);
  color: var(--cream);
}
.style-btn .swatch {
  width: 14px; height: 14px;
  border-radius: 50%;
  border: 1.5px solid var(--ink);
}
.style-btn[aria-pressed="true"] .swatch { border-color: var(--cream); }
.sw-sunny { background: #ffdb3a; }
.sw-soft { background: linear-gradient(135deg, #e8b4a0, #c9b8d4); }
.sw-bold { background: #d62828; }

/* ------- section ------- */
section {
  position: relative;
  z-index: 1;
  padding: 120px 0 40px;
}
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 36px;
}
.section-title {
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1;
  letter-spacing: -0.02em;
  max-width: 22ch;
}
.section-title .em { font-style: italic; color: var(--clay); }
.section-kicker {
  color: var(--ink-mute);
}

/* ------- three-style band ------- */
.styles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.style-card {
  border: 1.5px solid var(--ink);
  border-radius: 14px;
  padding: 20px;
  background: var(--cream-2);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.style-card:hover {
  transform: translateY(-4px) rotate(-0.3deg);
  box-shadow: 6px 6px 0 var(--ink);
}
.style-card .thumb {
  aspect-ratio: 4/3;
  border: 1.5px solid var(--ink);
  border-radius: 10px;
  overflow: hidden;
}
.style-card .thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.style-card .vibe {
  font-family: var(--fs-display);
  font-size: 28px;
  line-height: 1;
}
.style-card .vibe .em { font-style: italic; color: var(--clay); }
.style-card .desc {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.5;
}
.style-card .best-for {
  font-size: 12px;
  color: var(--ink-mute);
  border-top: 1px dashed var(--paper-line-strong);
  padding-top: 12px;
}
.style-card .best-for strong {
  color: var(--ink);
  font-weight: 500;
  font-family: var(--fs-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 4px;
}

/* ------- how it works ------- */
.how {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1.5px solid var(--ink);
  border-bottom: 1.5px solid var(--ink);
}
.how-beat {
  padding: 40px 28px;
  border-right: 1.5px solid var(--ink);
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 260px;
}
.how-beat:last-child { border-right: none; }
.how-beat .num {
  font-family: var(--fs-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--ink-mute);
}
.how-beat .what {
  font-family: var(--fs-display);
  font-size: 42px;
  line-height: 0.95;
  letter-spacing: -0.02em;
}
.how-beat .what .em { font-style: italic; color: var(--clay); }
.how-beat .detail {
  font-size: 14px;
  color: var(--ink-soft);
  margin-top: auto;
}
.how-beat svg { align-self: flex-start; }

/* ------- personas ------- */
.personas {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.persona {
  background: var(--cream-2);
  border: 1.5px solid var(--ink);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.persona:hover {
  transform: rotate(-0.6deg);
  box-shadow: 4px 4px 0 var(--ink);
}
.persona .role {
  font-family: var(--fs-display);
  font-size: 26px;
  line-height: 1;
}
.persona .label {
  font-family: var(--fs-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  color: var(--clay);
  text-transform: uppercase;
}
.persona .pitch {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.5;
}
.persona .thumb {
  aspect-ratio: 4/3;
  border-radius: 8px;
  overflow: hidden;
  border: 1.5px solid var(--ink);
  position: relative;
}
.persona .thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

/* ------- pricing ------- */
.pricing {
  border: 1.5px solid var(--ink);
  border-radius: 18px;
  padding: 48px;
  background: var(--ink);
  color: var(--cream);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.pricing .big {
  font-family: var(--fs-display);
  font-size: clamp(36px, 4vw, 56px);
  line-height: 1;
  letter-spacing: -0.02em;
}
.pricing .big .em { font-style: italic; color: var(--yolk); }
.pricing .sub {
  margin-top: 20px;
  color: rgba(245, 234, 216, 0.7);
  max-width: 42ch;
}
.pricing-ctas {
  margin-top: 28px;
  display: flex;
  gap: 12px;
  align-items: center;
}
.btn-yolk {
  background: var(--yolk);
  color: var(--ink);
  box-shadow: 3px 3px 0 var(--cream);
}
.btn-yolk:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--cream); }

.pricing-right {
  position: relative;
  aspect-ratio: 1.2;
  border-radius: 12px;
  overflow: hidden;
  border: 1.5px solid var(--cream);
  background: var(--cream-2);
}
.pricing-right img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

/* ------- footer trust ------- */
.trust {
  padding: 60px 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  border-top: 1px dashed var(--paper-line-strong);
  margin-top: 80px;
  font-size: 13px;
  color: var(--ink-mute);
}
.trust .logos {
  display: flex;
  gap: 24px;
  align-items: center;
  font-family: var(--fs-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.trust .logos .pill {
  padding: 6px 12px;
  border: 1px solid var(--paper-line-strong);
  border-radius: 999px;
}

/* ------- responsive ------- */
@media (max-width: 960px) {
  .page { padding: 16px 20px 60px; }
  .hero { grid-template-columns: 1fr; gap: 40px; }
  .styles-grid, .personas, .how { grid-template-columns: 1fr; }
  .how-beat { border-right: none; border-bottom: 1.5px solid var(--ink); }
  .how-beat:last-child { border-bottom: none; }
  .pricing { grid-template-columns: 1fr; padding: 28px; }
  .nav-links { display: none; }
}
