/* scroops.com — site-wide CSS.
   CSS variables are declared in base.html :root so brand colors track config.py. */

.hero {
  background:
    linear-gradient(135deg, rgba(26,21,48,0.78) 0%, rgba(56,47,85,0.62) 55%, rgba(74,50,101,0.62) 100%),
    url('/static/img/hero-bg.jpg') center 30% / cover no-repeat;
  color: #faf6f3;
  padding: 5.5rem 0 5rem;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; right: -120px; bottom: -120px;
  width: 360px; height: 360px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,107,107,0.32), transparent 65%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero h1 { color: #fff; font-size: clamp(2.4rem, 5vw, 3.6rem); line-height: 1.1;
  text-shadow: 0 2px 24px rgba(0,0,0,0.4); }
.hero .lead { color: #f3edf2; font-size: 1.15rem; max-width: 640px;
  text-shadow: 0 2px 16px rgba(0,0,0,0.45); }
.hero .tag { display: inline-block; background: rgba(255,107,107,.22); color: #ffd1d1;
  border: 1px solid rgba(255,107,107,.45); padding: .35rem 1rem; border-radius: 999px;
  font-size: .875rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 1.25rem;
  backdrop-filter: blur(4px); }

/* Hero free-trial widget */
.trial-card {
  background: rgba(255, 255, 255, 0.96);
  border-radius: 18px;
  padding: 1.75rem 1.5rem;
  color: var(--sc-text);
  box-shadow: 0 10px 32px rgba(0,0,0,0.25);
  position: relative;
}
.trial-eyebrow {
  text-transform: uppercase; letter-spacing: .12em; font-size: .875rem;
  color: var(--sc-coral); font-weight: 700; margin-bottom: .5rem;
}
.trial-card .trial-headline {
  color: var(--sc-indigo); font-size: 1.25rem; line-height: 1.25;
  margin: 0 0 .6rem;
}
.trial-sub { color: var(--sc-muted); font-size: .92rem; line-height: 1.45; margin: 0 0 1rem; }
.trial-fineprint { color: var(--sc-muted); font-size: .875rem; margin: .75rem 0 0; text-align: center; }
.trial-start-btn { width: 100%; }
.trial-card .btn-primary-cta { padding: .75rem 1.4rem; font-size: 1rem; }

/* Live state */
.trial-live-head {
  display: flex; align-items: center; gap: .5rem;
  font-size: .875rem; color: var(--sc-muted); margin-bottom: .8rem;
}
.trial-live-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--sc-coral); animation: trial-pulse 1.4s infinite ease-in-out;
}
@keyframes trial-pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50% { opacity: .4; transform: scale(1.4); }
}
.trial-timer { margin-left: auto; font-weight: 700; color: var(--sc-indigo); font-size: .95rem; }
.trial-stranger {
  display: flex; align-items: center; gap: .85rem;
  background: var(--sc-cream); border-radius: 14px; padding: 1rem; margin-bottom: .85rem;
}
.trial-avatar {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--sc-coral); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; flex-shrink: 0;
}
.trial-talking { font-weight: 600; color: var(--sc-indigo); }
.trial-transcript {
  background: var(--sc-cream); border-radius: 12px; padding: .8rem 1rem;
  font-size: .88rem; max-height: 100px; overflow-y: auto; line-height: 1.45;
  margin-bottom: .85rem;
}
.trial-transcript:empty { display: none; }
.trial-line { margin: .2rem 0; }
.trial-line .trial-who { font-weight: 700; color: var(--sc-coral); margin-right: .3rem; }
.trial-line.you .trial-who { color: var(--sc-indigo); }
.trial-end-btn {
  width: 100%; background: transparent; border: 1px solid var(--sc-border);
  color: var(--sc-muted); padding: .55rem; border-radius: 999px;
  font-size: .875rem; cursor: pointer;
}
.trial-end-btn:hover { background: var(--sc-cream); color: var(--sc-indigo); }

/* Grading state */
.trial-spinner {
  width: 44px; height: 44px;
  border: 4px solid var(--sc-border);
  border-top-color: var(--sc-coral);
  border-radius: 50%;
  margin: .5rem auto 1rem;
  animation: trial-spin 1s linear infinite;
}
@keyframes trial-spin { to { transform: rotate(360deg); } }
.trial-state-grading { text-align: center; padding: 1rem 0; }

/* Result state */
.trial-state-result { text-align: center; }
.trial-score {
  font-family: var(--font-display); font-size: 4rem; line-height: 1;
  color: var(--sc-coral); font-weight: 500; margin: .5rem 0 .5rem;
}
.trial-score-denom { font-size: 1.6rem; color: var(--sc-muted); margin-left: .15rem; }
.trial-result-summary {
  color: var(--sc-text); font-size: 1rem; line-height: 1.45;
  margin: 0 0 1.1rem; font-style: italic;
}
.trial-cta { width: 100%; }

.trial-state-error { text-align: center; padding: .5rem 0; }
.trial-retry { margin-top: .5rem; }

.btn-primary-cta {
  background: var(--sc-coral);
  border: 1px solid var(--sc-coral);
  color: #fff;
  font-weight: 700;
  padding: .85rem 1.8rem;
  border-radius: 999px;
  box-shadow: 0 4px 16px rgba(255,107,107,0.4);
  display: inline-block;
  text-decoration: none;
  transition: all .15s ease;
}
.btn-primary-cta:hover { background: var(--sc-coral-deep); color: #fff; transform: translateY(-1px); }

.btn-ghost {
  background: transparent;
  border: 1px solid #faf6f3;
  color: #faf6f3;
  font-weight: 600;
  padding: .8rem 1.5rem;
  border-radius: 999px;
  text-decoration: none;
  display: inline-block;
  transition: all .15s ease;
}
.btn-ghost:hover { background: #faf6f3; color: var(--sc-deep); }

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--sc-indigo);
  color: var(--sc-indigo);
  font-weight: 600;
  padding: .7rem 1.4rem;
  border-radius: 999px;
  text-decoration: none;
  display: inline-block;
  transition: all .15s ease;
}
.btn-outline:hover { background: var(--sc-indigo); color: #fff; }

.section { padding: 4rem 0; }
.section-tight { padding: 2.5rem 0; }
.section-alt { background: var(--sc-paper); }

.resource-hero {
  padding: 4.5rem 0 4rem;
}
.resource-hero .lead {
  max-width: 720px;
}

.step-card {
  background: var(--sc-paper);
  border: 1px solid var(--sc-border);
  border-radius: 18px;
  padding: 1.75rem;
  height: 100%;
}
.step-card.mb-4 { height: auto; }
.step-card .step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--sc-coral); color: #fff; font-weight: 700;
  margin-bottom: .8rem;
}

.resource-page-section {
  background: #fff;
}
.resource-bullet-grid {
  align-items: stretch;
}
.resource-bullet-card {
  align-items: center;
  display: flex;
  gap: .9rem;
  min-height: 88px;
  padding: 1.1rem 1.25rem;
}
.resource-bullet-card .step-num {
  flex: 0 0 34px;
  height: 34px;
  margin: 0;
  width: 34px;
}
.resource-bullet-card h3 {
  color: var(--sc-indigo);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.25;
  margin: 0;
}
.resource-content-card {
  border-radius: 14px;
  padding: 1.65rem 1.75rem;
}
.resource-content-card h2 {
  font-size: clamp(1.45rem, 2.2vw, 2rem);
  line-height: 1.15;
  margin-bottom: .75rem;
}
.resource-content-card p {
  color: var(--sc-text);
  font-size: 1.02rem;
  line-height: 1.7;
}
.resource-cta-section {
  background: linear-gradient(180deg, #fff 0%, var(--sc-cream) 100%);
  border-top: 1px solid var(--sc-border);
}

.location-tile {
  position: relative; border-radius: 18px; overflow: hidden;
  aspect-ratio: 4 / 3; background: var(--sc-deep);
  cursor: pointer; transition: transform .2s ease;
}
.location-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.location-tile:hover { transform: translateY(-3px); }
.location-tile .location-label {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 1rem; color: #fff;
  background: linear-gradient(to top, rgba(26,21,48,.92), transparent);
}
.location-tile .location-label .name { font-weight: 700; font-size: 1.1rem; }
.location-tile .location-label .sub { opacity: .85; font-size: .875rem; }
.location-tile.selected { outline: 3px solid var(--sc-coral); outline-offset: 2px; }
.location-tile .tier-badge {
  position: absolute; top: 10px; right: 10px;
  background: rgba(255,107,107,.95); color: #fff;
  font-size: .875rem; font-weight: 700; padding: .25rem .55rem;
  border-radius: 999px; text-transform: uppercase; letter-spacing: .05em;
}

.pricing-card {
  background: var(--sc-paper);
  border: 1px solid var(--sc-border);
  border-radius: 18px;
  padding: 2rem 1.5rem;
  height: 100%;
  display: flex; flex-direction: column;
}
.pricing-card.popular {
  border: 2px solid var(--sc-coral);
  box-shadow: 0 6px 28px rgba(255,107,107,0.18);
  position: relative;
}
.pricing-card.popular::before {
  content: "Most popular";
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--sc-coral); color: #fff;
  padding: .25rem .85rem; border-radius: 999px;
  font-size: .875rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
}
.pricing-card .price-num { font-family: var(--font-display); font-size: 2.6rem; line-height: 1; }
.pricing-card .price-period { color: var(--sc-muted); font-size: .9rem; }

.billing-toggle {
  display: inline-flex; background: var(--sc-paper);
  border: 1px solid var(--sc-border); border-radius: 999px;
  padding: 4px;
  max-width: 100%;
}
.billing-toggle button {
  background: transparent; border: 0; padding: .55rem 1.1rem;
  font-weight: 600; color: var(--sc-muted); border-radius: 999px;
  cursor: pointer; font-size: .9rem; min-height: 44px;
}
.billing-toggle button.active { background: var(--sc-indigo); color: #fff; }

.feature-list { list-style: none; padding-left: 0; margin: 1rem 0; }
.feature-list li { padding: .35rem 0 .35rem 1.7rem; position: relative; }
.feature-list li::before {
  content: "✓"; position: absolute; left: 0; color: var(--sc-coral); font-weight: 700;
}
.limit-list { list-style: none; padding-left: 0; margin: 0.5rem 0 0; color: var(--sc-muted); font-size: .88rem; }
.limit-list li { padding: .2rem 0 .2rem 1.7rem; position: relative; }
.limit-list li::before {
  content: "—"; position: absolute; left: 0;
}

.resource-faq-card h2 {
  margin-bottom: 1.25rem;
}
.resource-faq-list {
  display: grid;
  gap: 1.2rem;
}
.resource-faq-item {
  border-top: 1px solid var(--sc-border);
  padding-top: 1.2rem;
}
.resource-faq-item:first-child {
  border-top: 0;
  padding-top: 0;
}
.resource-faq-item h3 {
  font-size: 1.15rem;
  margin-bottom: .4rem;
}
.resource-faq-item p {
  margin: 0;
  color: var(--sc-muted);
  line-height: 1.65;
}

@media (max-width: 767px) {
  .resource-hero {
    padding: 3.75rem 0 3.25rem;
  }
  .resource-hero h1 {
    font-size: clamp(2.15rem, 10vw, 2.85rem);
  }
  .resource-hero .lead {
    font-size: 1.04rem;
    line-height: 1.55;
  }
  .resource-bullet-grid {
    margin-bottom: 2.25rem !important;
  }
  .resource-bullet-card {
    min-height: 68px;
    padding: .9rem 1rem;
  }
  .resource-content-card {
    padding: 1.35rem 1.3rem;
  }
  .resource-content-card h2 {
    font-size: 1.45rem;
  }
  .resource-content-card p {
    font-size: 1rem;
  }
  .resource-faq-item h3 {
    font-size: 1.08rem;
  }
  .resource-cta-section h2 {
    font-size: 1.65rem;
  }
}

/* Dashboard & product UI */
.scoreboard {
  background: linear-gradient(135deg, var(--sc-deep), #382f55);
  color: #fff; border-radius: 18px; padding: 2rem; text-align: center;
}
.scoreboard .big-score {
  font-family: var(--font-display); font-size: 4.5rem; line-height: 1;
  color: var(--sc-coral);
}
.scoreboard .score-label { letter-spacing: .15em; font-size: .875rem; text-transform: uppercase; opacity: .8; }

.axis-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: 1rem;
  padding: .85rem 0; border-bottom: 1px solid var(--sc-border);
}
.axis-row:last-child { border-bottom: 0; }
.axis-row .axis-name { flex: 0 0 220px; max-width: 100%; font-weight: 600; color: var(--sc-indigo); }
.axis-row .axis-bar { flex: 1 1 120px; min-width: 0; height: 8px; background: var(--sc-border); border-radius: 4px; overflow: hidden; }
.axis-row .axis-bar > div { height: 100%; background: var(--sc-coral); border-radius: 4px; }
.axis-row .axis-score { flex: 0 0 60px; text-align: right; font-weight: 700; }
.axis-row .axis-quote {
  flex: 0 0 100%;
  padding: .25rem 0 0 232px;
  font-size: .9rem;
  color: var(--sc-muted);
  font-style: italic;
  word-wrap: break-word;
  overflow-wrap: anywhere;
  min-width: 0;
}

@media (max-width: 768px) {
  .axis-row { gap: .6rem; }
  .axis-row .axis-name { flex: 1 1 100%; font-size: .95rem; }
  .axis-row .axis-bar { flex: 1 1 auto; }
  .axis-row .axis-score { flex: 0 0 auto; }
  .axis-row .axis-quote { padding-left: 0; }
}

/* Recording stage */
.stage {
  position: fixed; inset: 0; z-index: 50;
  background: var(--sc-deep);
  display: flex; flex-direction: column;
}
.stage .stage-bg {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  filter: brightness(0.55);
}
.stage .stage-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(26,21,48,0.35), rgba(26,21,48,0.78));
}
.stage .stage-inner {
  position: relative; z-index: 2; color: #fff;
  display: flex; flex-direction: column; flex: 1;
  padding: 1.5rem; gap: 1rem;
}
.stage .stage-head {
  display: flex; justify-content: space-between; align-items: center;
  font-weight: 600;
}
.stage .stage-head .pill {
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.28);
  padding: .4rem 1rem; border-radius: 999px; font-size: .9rem;
}
.stage .stage-head .live-dot {
  display: inline-block; width: 10px; height: 10px; border-radius: 50%;
  background: var(--sc-coral); margin-right: .5rem;
  animation: pulse 1.5s infinite ease-in-out;
}
@keyframes pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50% { opacity: .4; transform: scale(1.3); }
}
.stage .stage-body {
  flex: 1; display: flex; flex-direction: column; gap: 1rem; align-items: center; justify-content: center;
}
.stage .talking-indicator {
  font-family: var(--font-display); font-size: clamp(2rem, 6vw, 4rem); text-align: center;
  text-shadow: 0 4px 20px rgba(0,0,0,0.5);
}
.stage .transcript-pane {
  background: rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.15);
  border-radius: 14px; padding: 1rem; max-height: 28vh; overflow-y: auto;
  font-size: .95rem; backdrop-filter: blur(6px);
}
.stage .transcript-line { margin: .3rem 0; }
.stage .transcript-line .who { font-weight: 700; margin-right: .4rem; color: var(--sc-coral); }
.stage .transcript-line.guest .who { color: #b3d6ff; }
.stage .stage-controls {
  display: flex; gap: 1rem; justify-content: center; padding-top: .5rem;
}
.stage .stage-controls .btn { min-width: 140px; }
.btn-end-call {
  background: var(--sc-coral); color: #fff; font-weight: 700;
  padding: .85rem 1.8rem; border-radius: 999px; border: 0;
  box-shadow: 0 4px 16px rgba(255,107,107,.45); cursor: pointer;
}
.btn-end-call:hover { background: var(--sc-coral-deep); }
.btn-end-call:disabled { opacity: .6; cursor: not-allowed; }

/* Grading overlay over the recording stage */
.grading-overlay {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(26, 21, 48, 0.92);
  backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  padding: 1.5rem;
}
.grading-overlay[hidden] { display: none; }
.grading-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 18px;
  padding: 2.5rem 2rem;
  text-align: center;
  color: #fff;
  max-width: 480px;
  width: 100%;
}
.grading-card h3 { color: #fff; margin: 1rem 0 .5rem; font-size: 1.5rem; }
.grading-card p { color: #c9c2dc; margin: 0; font-size: 1rem; line-height: 1.55; }
.grading-spinner {
  width: 56px; height: 56px;
  border: 4px solid rgba(255,255,255,0.18);
  border-top-color: var(--sc-coral);
  border-radius: 50%;
  margin: 0 auto;
  animation: grading-spin 1s linear infinite;
}
@keyframes grading-spin { to { transform: rotate(360deg); } }

/* Setup form */
.setup-step { background: var(--sc-paper); border: 1px solid var(--sc-border); border-radius: 18px; padding: 1.75rem; margin-bottom: 1rem; }
.setup-step h3 { margin-top: 0; font-size: 1.25rem; }
.scenario-tile { background: var(--sc-cream); border: 2px solid var(--sc-border); border-radius: 14px;
  padding: 1rem; text-align: center; cursor: pointer; }
.scenario-tile.selected { border-color: var(--sc-coral); background: #fff5f5; }
.scenario-tile .scenario-icon { font-size: 2rem; color: var(--sc-indigo); }
.scenario-tile.selected .scenario-icon { color: var(--sc-coral); }

/* Homepage scenarios-by-category section */
.scenario-summary {
  display: flex; flex-direction: column;
  background: var(--sc-paper);
  border: 1px solid var(--sc-border);
  border-radius: 16px;
  padding: 1.5rem 1.25rem;
  height: 100%;
}
.scenario-summary h3 {
  font-size: 1.05rem;
  color: var(--sc-indigo);
  margin: 0 0 1rem;
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: -0.005em;
}
.scenario-summary-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .85rem; }
.scenario-summary-list li {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: start;
  gap: .65rem;
  font-size: .92rem;
  color: var(--sc-text);
}
.scenario-summary-icon {
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(255,107,107,0.12); color: var(--sc-coral);
  display: flex; align-items: center; justify-content: center;
  font-size: .875rem; margin-top: 1px;
}
.scenario-summary-label { font-weight: 600; color: var(--sc-indigo); line-height: 1.2; }
.scenario-summary-blurb { color: var(--sc-muted); font-size: .875rem; line-height: 1.35; margin-top: .1rem; }
.scenario-summary-locked {
  align-self: flex-start;
  font-size: .875rem; color: var(--sc-coral); font-weight: 700;
  text-transform: uppercase; letter-spacing: .04em;
  background: rgba(255,107,107,0.12);
  padding: .15rem .5rem; border-radius: 999px;
  white-space: nowrap;
  margin-top: 3px;
}
.scenario-tile {
  position: relative;
  height: 100%;
  min-height: 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 1rem .75rem;
  text-align: center;
  border-radius: 14px;
}
.scenario-tile .scenario-label { font-weight: 600; color: var(--sc-indigo); margin-top: .35rem; }
.scenario-tile.selected .scenario-label { color: var(--sc-coral); }
.scenario-blurb {
  font-size: .875rem;
  color: var(--sc-muted);
  margin-top: .35rem;
  line-height: 1.3;
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}
.scenario-tile.locked { opacity: .55; cursor: not-allowed; }
.scenario-tile.locked:hover { border-color: var(--sc-border); }
.scenario-lock {
  position: absolute; top: 6px; right: 8px;
  background: var(--sc-deep); color: var(--sc-coral);
  font-size: .875rem; font-weight: 700;
  padding: .15rem .5rem; border-radius: 999px;
  text-transform: uppercase; letter-spacing: .04em;
}
.scenario-row { align-items: stretch; }

/* Voice picker */
.voice-filters { display: flex; gap: .5rem; flex-wrap: wrap; }
.voice-filter {
  background: var(--sc-cream); border: 1px solid var(--sc-border);
  padding: .35rem .9rem; border-radius: 999px; font-size: .875rem;
  font-weight: 600; color: var(--sc-muted); cursor: pointer;
}
.voice-filter.active { background: var(--sc-indigo); color: #fff; border-color: var(--sc-indigo); }
.voice-filter i { margin-right: .25rem; }

.voice-tile {
  display: block;
  background: var(--sc-cream);
  border: 2px solid var(--sc-border);
  border-radius: 14px;
  padding: .9rem 1rem;
  cursor: pointer;
  transition: all .15s ease;
  height: 100%;
}
.voice-tile:hover { border-color: var(--sc-coral); }
.voice-tile.selected { border-color: var(--sc-coral); background: #fff5f5; }
.voice-tile-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: .35rem;
}
.voice-gender { color: var(--sc-muted); font-size: 1.05rem; }
.voice-tile.selected .voice-gender { color: var(--sc-coral); }
.voice-play {
  background: var(--sc-indigo); color: #fff;
  border: 0; width: 32px; height: 32px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 1rem;
  transition: background .15s ease;
}
.voice-play:hover { background: var(--sc-coral); }
.voice-tile.selected .voice-play { background: var(--sc-coral); }
.voice-label { font-weight: 700; color: var(--sc-indigo); font-size: 1rem; }
.voice-blurb { color: var(--sc-muted); font-size: .875rem; }
