/* ============================================================
   podcastaudit.app — "The Mirror"
   Pamela Krista Design System
   ============================================================ */

/* ---- Brand fonts ----
   Drop the .woff files into /fonts and these light up automatically.
   Until then, the fallback stack (Playfair Display / Inter) renders.  */
@font-face {
  font-family: 'Editors Note';
  src: url('../fonts/editorsnotetext-thin-webfont.woff') format('woff');
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Editors Note';
  src: url('../fonts/editorsnotetext-thinitalic-webfont.woff') format('woff');
  font-weight: 300; font-style: italic; font-display: swap;
}
/* Editor's Note Regular + Italic (400) weren't provided; map to the Thin
   files so weight-400 usages still render in-brand instead of falling back. */
@font-face {
  font-family: 'Editors Note';
  src: url('../fonts/editorsnotetext-thin-webfont.woff') format('woff');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Editors Note';
  src: url('../fonts/editorsnotetext-thinitalic-webfont.woff') format('woff');
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'Made Tommy';
  src: url('../fonts/made_tommy_light-webfont.woff') format('woff');
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Made Tommy';
  src: url('../fonts/made_tommy_regular-webfont.woff') format('woff');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Made Tommy';
  src: url('../fonts/made_tommy_medium-webfont.woff') format('woff');
  font-weight: 500; font-style: normal; font-display: swap;
}

:root {
  --lavender:   #CFB8FC;
  --blush:      #E8D6E8;
  --periwinkle: #D9DEF0;
  --lemon:      #E8EF7F;
  --chalk:      #FBF9F6;  /* lightened warm near-white canvas */
  --chalk-deep: #F0EBE8;  /* deeper brand chalk, kept for cards/accents */
  --onyx:       #212121;

  --gradient-signature: linear-gradient(135deg, var(--lavender) 0%, var(--blush) 45%, var(--lemon) 100%);
  --gradient-cool: linear-gradient(135deg, var(--lavender) 0%, var(--periwinkle) 100%);
  --gradient-soft: linear-gradient(135deg, var(--blush) 0%, var(--lavender) 100%);

  --font-display: 'Editors Note', 'Playfair Display', Georgia, serif;
  --font-body:    'Made Tommy', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --ink-soft: rgba(33, 33, 33, 0.62);
  --ink-faint: rgba(33, 33, 33, 0.40);
  --hairline: rgba(33, 33, 33, 0.12);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --measure: 34rem;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.6;
  color: var(--onyx);
  background: var(--chalk);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* ---------- shell ---------- */
.shell {
  flex: 1;
  display: flex;
  /* center via margin:auto on the child (below) so tall steps stay
     scrollable instead of clipping above the viewport */
  padding: clamp(5rem, 10vh, 7rem) clamp(1.5rem, 5vw, 4rem);
}

.stage {
  width: 100%;
  max-width: var(--measure);
  margin: auto;
  position: relative;
}

/* wider stage for the two-column mirror */
.stage.is-wide { max-width: 60rem; }

/* ---------- masthead / wordmark ---------- */
.masthead {
  position: fixed;
  top: 0; left: 0; right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(1.1rem, 3vw, 1.75rem) clamp(1.5rem, 5vw, 2.75rem);
  z-index: 20;
  pointer-events: none;
}
.wordmark {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.wordmark--right { color: var(--ink-faint); }

/* ---------- progress rail ---------- */
.rail {
  position: fixed;
  left: 50%; bottom: clamp(1.4rem, 4vw, 2.4rem);
  transform: translateX(-50%);
  display: flex;
  gap: 0.55rem;
  z-index: 20;
  transition: opacity 0.6s var(--ease);
}
.rail__dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--hairline);
  transition: all 0.5s var(--ease);
}
.rail__dot.is-active { background: var(--lavender); transform: scale(1.5); }
.rail__dot.is-done { background: rgba(207, 184, 252, 0.55); }
.rail.is-hidden { opacity: 0; pointer-events: none; }

/* ---------- steps / transitions ---------- */
.step { display: none; }
.step.is-active { display: block; animation: rise 0.9s var(--ease) both; }
.step.is-leaving { animation: sink 0.45s var(--ease) both; }

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); filter: blur(6px); }
  to   { opacity: 1; transform: none; filter: none; }
}
@keyframes sink {
  from { opacity: 1; transform: none; }
  to   { opacity: 0; transform: translateY(-14px); }
}

/* ---------- type ---------- */
.eyebrow {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.7rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 1.5rem;
}

.display {
  font-family: var(--font-display);
  font-weight: 300;
  line-height: 1.04;
  letter-spacing: -0.005em;
  font-size: clamp(2.6rem, 6.4vw, 4.6rem);
}
.display em {
  font-style: italic;
  color: var(--lavender);
}
.display--sm { font-size: clamp(2rem, 4.6vw, 3.1rem); }

.lede {
  font-size: 1.075rem;
  color: var(--ink-soft);
  max-width: 30rem;
  margin-top: 1.6rem;
  font-weight: 300;
}

.note {
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  color: var(--ink-faint);
  font-weight: 300;
}

/* ---------- inputs ---------- */
.field { margin-top: 2.4rem; position: relative; }
.field__input {
  width: 100%;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.5rem, 3.4vw, 2.1rem);
  color: var(--onyx);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--hairline);
  padding: 0.5rem 0 0.7rem;
  transition: border-color 0.4s var(--ease);
}
.field__input::placeholder { color: var(--ink-faint); font-style: italic; }
.field__input:focus { outline: none; border-bottom-color: var(--lavender); }

/* text-style input for question steps */
.field__input--body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(1.15rem, 2.4vw, 1.4rem);
  letter-spacing: 0.01em;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  line-height: 1.2;
  color: var(--chalk);
  background: var(--onyx);
  border: 1px solid var(--onyx);
  border-radius: 7px;
  padding: 1rem 2.4rem;
  cursor: pointer;
  transition: all 0.4s var(--ease);
  -webkit-appearance: none;
}
.btn:hover { background: var(--lavender); border-color: var(--lavender); color: var(--onyx); }
.btn:disabled { opacity: 0.32; cursor: not-allowed; }
.btn:disabled:hover { background: var(--onyx); border-color: var(--onyx); color: var(--chalk); }

.btn--ghost {
  background: transparent;
  color: var(--onyx);
  border-color: var(--hairline);
}
.btn--ghost:hover { background: transparent; border-color: var(--onyx); color: var(--onyx); }

.btn--lav {
  background: var(--lavender);
  border-color: var(--lavender);
  color: var(--onyx);
}
.btn--lav:hover { background: var(--onyx); border-color: var(--onyx); color: var(--chalk); }

.btn-row {
  margin-top: 2.6rem;
  display: flex;
  align-items: center;
  gap: 1.4rem;
  flex-wrap: wrap;
}

/* subtle text link */
.textlink {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  background: none; border: none; cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: var(--hairline);
  transition: color 0.3s var(--ease);
  padding: 0;
}
.textlink:hover { color: var(--onyx); text-decoration-color: var(--lavender); }

/* ---------- "is this you" confirm card ---------- */
.showcard {
  margin-top: 2.4rem;
  display: flex;
  gap: 1.4rem;
  align-items: center;
  padding: 1.4rem;
  background: rgba(255,255,255,0.4);
  border: 1px solid var(--hairline);
  border-radius: 12px;
}
.showcard__art {
  width: 92px; height: 92px;
  border-radius: 9px;
  flex-shrink: 0;
  background: var(--gradient-cool);
  object-fit: cover;
  box-shadow: 0 8px 24px rgba(33,33,33,0.08);
}
.showcard__meta { min-width: 0; }
.showcard__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.35rem;
  line-height: 1.15;
  margin-bottom: 0.35rem;
}
.showcard__by { font-size: 0.8rem; color: var(--ink-faint); margin-bottom: 0.7rem; }
.showcard__eps { list-style: none; display: flex; flex-direction: column; gap: 0.28rem; }
.showcard__eps li {
  font-size: 0.82rem;
  color: var(--ink-soft);
  font-weight: 300;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.showcard__eps li::before { content: '· '; color: var(--ink-faint); }

/* ---------- question counter ---------- */
.qcount {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 1.4rem;
}
.qcount b { color: var(--lavender); font-weight: 500; }

/* ---------- the read (loading) ---------- */
.read { text-align: center; }
.read__orb {
  width: 132px; height: 132px;
  margin: 0 auto 2.6rem;
  border-radius: 50%;
  background: var(--gradient-signature);
  filter: blur(2px);
  animation: breathe 3.4s var(--ease) infinite;
}
@keyframes breathe {
  0%, 100% { transform: scale(0.92); opacity: 0.72; }
  50%      { transform: scale(1.06); opacity: 1; }
}
.read__lines { height: 1.6rem; position: relative; }
.read__line {
  position: absolute;
  left: 0; right: 0;
  font-size: 1.02rem;
  color: var(--ink-soft);
  font-weight: 300;
  opacity: 0;
  transition: opacity 0.8s var(--ease);
}
.read__line.is-on { opacity: 1; }

/* ---------- email gate ---------- */
.gate { text-align: left; }
.gate__seal {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--lavender);
  margin-bottom: 1.4rem;
}

/* ---------- the mirror (reveal) ---------- */
.mirror__head { text-align: center; margin-bottom: 3.2rem; }
.mirror__cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  overflow: hidden;
}
.mcol { background: var(--chalk); padding: clamp(1.6rem, 3vw, 2.4rem); }
.mcol--says { background: rgba(217, 222, 240, 0.28); }
.mcol--shows { background: rgba(207, 184, 252, 0.14); }
.mcol__label {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.68rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 1.1rem;
}
.mcol__body {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.2rem, 2.3vw, 1.5rem);
  line-height: 1.32;
}

.gapline {
  text-align: center;
  margin-top: 3rem;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.5rem, 3.4vw, 2.3rem);
  line-height: 1.3;
  max-width: 44rem;
  margin-left: auto; margin-right: auto;
}
.gapline em { font-style: italic; color: var(--lavender); }

/* ---------- the leak ---------- */
.leak {
  margin-top: 3.2rem;
  padding: clamp(2rem, 4vw, 3rem);
  border-radius: 16px;
  background: var(--onyx);
  color: var(--chalk);
  text-align: center;
}
.leak__eyebrow {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.68rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(240,235,232,0.5);
  margin-bottom: 1.4rem;
}
.leak__name {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.06;
}
.leak__name em { font-style: italic; color: var(--lemon); }
.leak__body {
  margin: 1.6rem auto 0;
  max-width: 34rem;
  font-size: 1.02rem;
  font-weight: 300;
  color: rgba(240,235,232,0.82);
}
.leak__first {
  margin-top: 2.2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(240,235,232,0.14);
}
.leak__first-label {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.66rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--lavender);
  margin-bottom: 0.9rem;
}
.leak__first-text {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.3rem, 2.6vw, 1.7rem);
  line-height: 1.28;
  max-width: 32rem;
  margin: 0 auto;
}

/* ---------- next step (CTA) ---------- */
.next { text-align: center; }
.next__gradient {
  border-radius: 18px;
  background: var(--gradient-signature);
  padding: clamp(2.4rem, 5vw, 3.6rem) clamp(1.6rem, 4vw, 3rem);
  margin-top: 1rem;
}
.next__kicker {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(33,33,33,0.55);
  margin-bottom: 1.3rem;
}
.next__title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2rem, 4.6vw, 3.2rem);
  line-height: 1.08;
  color: var(--onyx);
}
.next__title em { font-style: italic; }
.next__sub {
  margin: 1.4rem auto 2.2rem;
  max-width: 30rem;
  color: rgba(33,33,33,0.72);
  font-weight: 400;
  font-size: 1.02rem;
}
.next__price {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.btn--onyx-solid {
  background: var(--onyx); border-color: var(--onyx); color: var(--chalk);
  font-size: 0.8rem; letter-spacing: 0.12em; padding: 1.15rem 2.6rem;
  max-width: 100%;
}
.btn--onyx-solid:hover { background: var(--chalk); color: var(--onyx); border-color: var(--chalk); }

.next__secondary {
  margin-top: 2.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
}
.next__secondary-label { font-size: 0.8rem; color: var(--ink-faint); }

/* ---------- misc ---------- */
.spacer-sm { height: 0.6rem; }
.center { text-align: center; }
.hidden { display: none !important; }
.inline-err {
  color: #8a6d3b;
  font-size: 0.82rem;
  margin-top: 0.9rem;
  min-height: 1rem;
  font-weight: 300;
}

/* ---------- responsive ---------- */
@media (max-width: 640px) {
  .mirror__cols { grid-template-columns: 1fr; }
  .showcard { flex-direction: column; text-align: center; }
  .showcard__eps li { white-space: normal; }
  .btn-row { gap: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  .step.is-active, .step.is-leaving { animation: none; }
  .read__orb { animation: none; }
}
