/* Promptside — "the prompter's booth": dark stage, warm spotlight, your line
   delivered from the wings. Display: Fraunces (theatrical serif). Body: Public
   Sans. Single accent: prompter-lamp amber. */

:root {
  --stage: #0e0d0b;          /* near-black warm stage */
  --stage-2: #161412;
  --curtain: #1d1a16;
  --paper: #f2ead8;          /* cream prompt-card paper */
  --paper-dim: #b5ac9a;
  --lamp: #f0a832;           /* prompter lamp amber */
  --lamp-soft: rgba(240, 168, 50, 0.14);
  --you: #7fd49a;
  --them: #6fc7d8;
  --line: rgba(242, 234, 216, 0.12);
  --mono: "Spline Sans Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--stage);
  color: var(--paper);
  font-family: "Public Sans", -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* film grain + the spotlight cone */
body::before {
  content: "";
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
  pointer-events: none; z-index: 3;
}
.spotlight {
  position: absolute; inset: 0 0 auto 0; height: 130vh;
  background:
    radial-gradient(ellipse 70% 55% at 50% -8%, rgba(240,168,50,0.16), transparent 62%),
    radial-gradient(ellipse 45% 38% at 50% -5%, rgba(242,234,216,0.10), transparent 60%);
  pointer-events: none;
}

main { position: relative; z-index: 2; }

section, header.hero { max-width: 1060px; margin: 0 auto; padding: 88px 28px; }

h1, h2, h3, .brand {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.015em;
}

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

.kicker {
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--lamp);
  margin-bottom: 18px;
}
.kicker::before { content: "— "; }

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

.hero { padding-top: 64px; padding-bottom: 64px; }

.brand-row { display: flex; align-items: baseline; gap: 10px; margin-bottom: 64px; }
.brand { font-size: 21px; color: var(--paper); }
.brand-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lamp);
  box-shadow: 0 0 14px 3px rgba(240,168,50,0.55); align-self: center; }
.beta-tag {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.14em;
  color: var(--stage); background: var(--lamp);
  padding: 2px 8px; border-radius: 3px; text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(44px, 7vw, 84px);
  line-height: 1.02;
  font-weight: 560;
  max-width: 13ch;
}
.hero h1 em {
  font-style: italic; font-weight: 420;
  color: var(--lamp);
}

.hook {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(20px, 2.6vw, 27px);
  font-style: italic; font-weight: 400;
  color: var(--paper-dim);
  margin: 30px 0 0;
  max-width: 30ch;
  line-height: 1.35;
}
.hook strong { color: var(--paper); font-weight: 560; font-style: normal; }

.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 56px; align-items: start;
}
@media (max-width: 880px) { .hero-grid { grid-template-columns: 1fr; } }

.hero-sub { margin-top: 28px; color: var(--paper-dim); max-width: 52ch; }
.hero-sub strong { color: var(--paper); font-weight: 600; }

.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.cta {
  display: inline-block;
  font-weight: 700; font-size: 16px;
  background: var(--lamp); color: #181308;
  padding: 15px 28px; border-radius: 8px;
  box-shadow: 0 0 0 1px rgba(240,168,50,0.4), 0 8px 32px rgba(240,168,50,0.22);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.cta:hover { text-decoration: none; transform: translateY(-2px);
  box-shadow: 0 0 0 1px rgba(240,168,50,0.6), 0 14px 44px rgba(240,168,50,0.3); }
.cta.ghost {
  background: transparent; color: var(--paper);
  box-shadow: inset 0 0 0 1px var(--line);
}
.cta.ghost:hover { box-shadow: inset 0 0 0 1px rgba(242,234,216,0.35); }

.fineprint {
  margin-top: 22px;
  font-family: var(--mono); font-size: 11.5px;
  color: var(--paper-dim); letter-spacing: 0.02em;
  line-height: 2;
}
.fineprint .sep { color: var(--lamp); margin: 0 6px; }

/* the overlay mock — the app, playing itself */
.overlay-mock {
  background: rgba(22, 20, 17, 0.92);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.55), 0 0 0 1px rgba(0,0,0,0.4);
  backdrop-filter: blur(8px);
  font-size: 12.5px;
  transform: rotate(0.6deg);
  animation: float-in 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) 0.25s both;
}
@keyframes float-in {
  from { opacity: 0; transform: translateY(26px) rotate(1.6deg); }
  to   { opacity: 1; transform: translateY(0) rotate(0.6deg); }
}
.mock-titlebar { display: flex; align-items: center; gap: 7px; margin-bottom: 12px; }
.mock-titlebar .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--you); }
.mock-titlebar b { font-size: 12px; letter-spacing: 0.02em; }
.mock-titlebar .live {
  margin-left: auto; font-family: var(--mono); font-size: 9px;
  color: var(--lamp); letter-spacing: 0.18em;
  animation: blink-soft 2.4s ease-in-out infinite;
}
@keyframes blink-soft { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }

.mock-panel {
  border: 1px solid var(--line); border-radius: 9px;
  padding: 10px 12px; margin-top: 9px;
  background: rgba(14, 13, 11, 0.6);
}
.mock-panel .label {
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.18em;
  margin-bottom: 6px;
}
.mock-panel.summary .label { color: var(--them); }
.mock-panel.highlight .label { color: var(--lamp); }
.mock-panel.advice .label { color: var(--you); }
.mock-panel p { font-size: 12.5px; line-height: 1.5; color: var(--paper-dim); }
.mock-panel p strong { color: var(--paper); }

.typing {
  display: inline-block; white-space: nowrap; overflow: hidden;
  vertical-align: bottom; max-width: 100%;
  border-right: 2px solid var(--lamp);
  animation: typing 3.2s steps(42) 1.4s both, caret 0.8s step-end infinite;
}
@keyframes typing { from { width: 0; } to { width: 100%; } }
@keyframes caret { 0%,100% { border-color: var(--lamp); } 50% { border-color: transparent; } }

/* ---------------- sections ---------------- */

.rule { max-width: 1060px; margin: 0 auto; padding: 0 28px; }
.rule hr { border: 0; border-top: 1px solid var(--line); }

h2 {
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.12; font-weight: 560;
  max-width: 24ch;
  margin-bottom: 28px;
}
h2 em { font-style: italic; color: var(--lamp); font-weight: 420; }

.prose { color: var(--paper-dim); max-width: 62ch; }
.prose p + p { margin-top: 1.1em; }
.prose strong { color: var(--paper); font-weight: 600; }
.prose em { color: var(--paper); }

/* problem vignettes */
.vignettes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: 14px;
  overflow: hidden; margin-top: 44px; }
@media (max-width: 880px) { .vignettes { grid-template-columns: 1fr; } }
.vignette { background: var(--stage-2); padding: 30px 26px; }
.vignette .q {
  font-family: "Fraunces", Georgia, serif; font-style: italic;
  font-size: 19px; color: var(--paper); margin-bottom: 12px; line-height: 1.35;
}
.vignette p { font-size: 14.5px; color: var(--paper-dim); line-height: 1.6; }
.problem-coda { margin-top: 36px; }

/* mechanism steps */
.steps { counter-reset: step; margin-top: 14px; }
.step {
  display: grid; grid-template-columns: 72px 1fr; gap: 26px;
  padding: 34px 0; border-top: 1px solid var(--line);
}
.step:first-child { border-top: 0; }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-family: "Fraunces", Georgia, serif; font-style: italic;
  font-size: 40px; color: var(--lamp); line-height: 1;
}
.step h3 { font-size: 22px; margin-bottom: 10px; }
.step p { color: var(--paper-dim); max-width: 58ch; }
.step p + p { margin-top: 0.9em; }
.step strong { color: var(--paper); }
.step code {
  font-family: var(--mono); font-size: 0.85em;
  background: var(--curtain); border: 1px solid var(--line);
  padding: 1px 6px; border-radius: 4px; color: var(--lamp);
}
@media (max-width: 640px) { .step { grid-template-columns: 1fr; gap: 8px; } }

/* proof */
.proof-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 40px; }
@media (max-width: 880px) { .proof-cards { grid-template-columns: 1fr; } }
.proof-card {
  border: 1px solid var(--line); border-radius: 14px;
  padding: 28px 26px; background: var(--stage-2);
}
.proof-card h3 { font-size: 20px; margin-bottom: 10px; }
.proof-card p { font-size: 15px; color: var(--paper-dim); }
.proof-card strong { color: var(--paper); }

/* objections — native accordions */
.objections { margin-top: 36px; border-top: 1px solid var(--line); }
.objections details { border-bottom: 1px solid var(--line); }
.objections summary {
  cursor: pointer; list-style: none;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(18px, 2.4vw, 23px); font-weight: 500;
  padding: 26px 44px 26px 4px;
  position: relative;
  transition: color 0.15s ease;
}
.objections summary::-webkit-details-marker { display: none; }
.objections summary::after {
  content: "+"; position: absolute; right: 8px; top: 50%;
  transform: translateY(-50%);
  font-family: var(--mono); font-size: 22px; color: var(--lamp);
  transition: transform 0.2s ease;
}
.objections details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.objections summary:hover { color: var(--lamp); }
.objections .answer { padding: 0 4px 30px; color: var(--paper-dim); max-width: 64ch; }
.objections .answer p + p { margin-top: 0.9em; }
.objections .answer strong { color: var(--paper); }

/* pricing */
.price-headline {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(24px, 3.4vw, 34px); font-weight: 500;
  max-width: 26ch; line-height: 1.25;
}
.price-headline .free { color: var(--lamp); font-style: italic; }
.price-table { width: 100%; border-collapse: collapse; margin: 40px 0 28px; font-size: 15px; }
.price-table th, .price-table td {
  text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.price-table th {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--paper-dim); font-weight: 500;
}
.price-table td:first-child { color: var(--paper-dim); width: 26%; }
.price-table td:nth-child(2) { color: var(--paper); }
.price-table td:nth-child(3) { color: var(--paper-dim); }
.price-table strong { color: var(--lamp); font-weight: 700; }

/* use cases */
.scenes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 40px; }
@media (max-width: 880px) { .scenes { grid-template-columns: 1fr; } }
.scene {
  border: 1px solid var(--line); border-radius: 14px; padding: 28px 24px;
  background: linear-gradient(180deg, var(--stage-2), var(--stage));
}
.scene .tag {
  font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--lamp); display: block; margin-bottom: 12px;
}
.scene h3 { font-size: 20px; margin-bottom: 10px; }
.scene p { font-size: 14.5px; color: var(--paper-dim); }

/* final cta */
.finale { text-align: center; padding-top: 110px; padding-bottom: 110px; position: relative; }
.finale::before {
  content: "";
  position: absolute; inset: auto 0 0 0; height: 100%;
  background: radial-gradient(ellipse 55% 65% at 50% 110%, rgba(240,168,50,0.13), transparent 65%);
  pointer-events: none;
}
.finale h2 { margin: 0 auto 18px; max-width: 16ch; }
.finale .prose { margin: 0 auto; }
.finale .cta-row { justify-content: center; }
.finale .fineprint { text-align: center; }

footer {
  border-top: 1px solid var(--line);
  padding: 30px 28px 40px; text-align: center;
  font-size: 13px; color: var(--paper-dim);
}

/* scroll reveal */
.reveal { opacity: 0; transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1); }
.reveal.shown { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .typing { animation: none; border-right: 0; width: auto; }
  .overlay-mock { animation: none; }
}
