/* ==========================================================================
   CRISIS LINE — marketing home.

   The page is built to look like the title screen and then like the call:
   a lit skyline, then a real transcript with the two meters that decide it.
   No script anywhere, so every moving part is CSS.
   ========================================================================== */

/* Hero ------------------------------------------------------------------ */
.hero {
  position: relative;
  overflow: hidden;
  /* Matches the top of the SVG sky, so the artwork can be anchored to the
     bottom on narrow screens without a seam appearing above it. */
  background: linear-gradient(to bottom, #04070D 0%, #060A12 100%);
  isolation: isolate;
}

.hero__art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
}
.hero__art svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Rain, drawn as a moving gradient rather than 200 SVG lines. Masked out
   before it reaches the wordmark so the type stays clean. */
.hero__rain {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.55;
  background-image: repeating-linear-gradient(
    102deg,
    rgba(179, 205, 255, 0.13) 0px, rgba(179, 205, 255, 0.13) 1px,
    transparent 1px, transparent 11px
  );
  background-size: 120px 240px;
  animation: rain 0.85s linear infinite;
  mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0.35) 55%, transparent 82%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0.35) 55%, transparent 82%);
}

@keyframes rain {
  to { background-position: -50px 240px; }
}

/* Two washes: one to sink the buildings, one warm cone on the wordmark. */
.hero__veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(58% 45% at 50% 62%, rgba(255, 233, 188, 0.11), transparent 70%),
    linear-gradient(to bottom, rgba(7, 9, 15, 0.15) 0%, rgba(7, 9, 15, 0.55) 58%, #07090F 96%);
}

.hero__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  min-height: min(84vh, 720px);
  padding-top: 5rem;
  padding-bottom: 4rem;
  text-align: center;
}

.hero h1 {
  margin: 0.9rem 0 0;
  font-size: clamp(3rem, 12vw, 6rem);
  font-weight: 900;
  line-height: 0.96;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  text-indent: 0.12em;      /* balances the trailing letter-space */
  text-shadow: 0 0 30px rgba(79, 163, 255, 0.5);
  animation: flicker 9s steps(1, end) infinite;
}

/* The neon stutter from the title screen, on a long fuse. */
@keyframes flicker {
  0%, 71%, 100% { opacity: 1; }
  72% { opacity: 0.4; }
  73% { opacity: 1; }
  74% { opacity: 0.7; }
  75% { opacity: 1; }
}

.hero__rule {
  width: 180px;
  height: 2px;
  margin: 1.15rem 0 0.75rem;
  background: var(--accent);
  opacity: 0.7;
}

.hero__tag {
  margin: 0 0 2.25rem;
  color: var(--accent);
  font-size: 1.05rem;
  font-style: italic;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.85rem;
}

.hero__note {
  margin: 1.6rem 0 0;
  color: var(--dim);
  font: 11px/1.7 var(--mono);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* Section furniture ----------------------------------------------------- */
.section { padding: 4.5rem 0; }

.section__head { max-width: 44rem; margin: 0 0 2.5rem; }
.section__head h2 {
  margin: 0.85rem 0 0;
  font-size: clamp(1.6rem, 4vw, 2.15rem);
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -0.02em;
}
.section__head p {
  margin: 1rem 0 0;
  color: var(--dim);
  font-size: 1.06rem;
}

/* Pitch: cover art beside the premise. ---------------------------------- */
.pitch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.pitch__body h2 {
  margin: 0.85rem 0 1.35rem;
  font-size: clamp(1.6rem, 4vw, 2.15rem);
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -0.02em;
}

.pitch__body p { margin: 0 0 1.1rem; font-size: 1.06rem; }
.pitch__body p:last-child { margin-bottom: 0; }
.pitch__body strong { color: #FFFFFF; font-weight: 600; }

.plate {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  overflow: hidden;
}
.plate img { width: 100%; }
.plate figcaption {
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--line);
  color: var(--dim);
  font: 10px/1.6 var(--mono);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* The call: a transcript panel that behaves like the app UI. ------------ */
.call {
  max-width: 40rem;
  margin: 0 auto;
  overflow: hidden;
}

.call__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid var(--line);
  background: var(--panel-2);
}
.call__case { color: var(--text); font: 11px/1.4 var(--mono); letter-spacing: 0.2em; }
.call__live {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--tension);
  font: 10px/1.4 var(--mono);
  letter-spacing: 0.2em;
}
.call__live .dot { background: var(--tension); }

.meters {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem 1.25rem;
  padding: 1rem 1.1rem;
  border-bottom: 1px solid var(--line);
}
.meter__label {
  display: flex;
  justify-content: space-between;
  font: 10px/1.6 var(--mono);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dim);
}
.meter__track {
  height: 6px;
  margin-top: 0.35rem;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
}
.meter__fill { height: 100%; border-radius: 3px; }
.meter__fill--trust { background: var(--trust); box-shadow: 0 0 12px rgba(63, 207, 142, 0.5); }
.meter__fill--tension { background: var(--tension); box-shadow: 0 0 12px rgba(255, 92, 92, 0.45); }
.w58 { width: 58%; }
.w41 { width: 41%; }

.thread { padding: 1.2rem 1.1rem 1.4rem; }

.msg {
  max-width: 82%;
  margin: 0 0 0.7rem;
  padding: 0.75rem 0.95rem;
  border-radius: 14px;
  font-size: 0.97rem;
  line-height: 1.55;
}
.msg--them {
  background: #1B2130;
  border: 1px solid var(--line);
  border-bottom-left-radius: 4px;
}
.msg--you {
  margin-left: auto;
  background: #1D3A5F;
  border: 1px solid #2A5183;
  border-bottom-right-radius: 4px;
}

.msg__who {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--dim);
  font: 10px/1.4 var(--mono);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.msg--you .msg__who { color: #8FB8E8; }

.thought {
  max-width: 82%;
  margin: -0.1rem 0 1.1rem;
  padding: 0.6rem 0.9rem;
  border-left: 2px solid var(--gold);
  background: rgba(232, 180, 90, 0.06);
  border-radius: 0 8px 8px 0;
  color: #D9C79C;
  font-size: 0.9rem;
  font-style: italic;
}
.thought b {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--gold);
  font: 10px/1.4 var(--mono);
  font-style: normal;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.call__foot {
  padding: 0.9rem 1.1rem;
  border-top: 1px solid var(--line);
  background: var(--panel-2);
  color: var(--dim);
  font: 10px/1.6 var(--mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* Beats: how a call is actually won. ------------------------------------ */
.beats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1rem;
}

.beat {
  padding: 1.5rem 1.35rem;
  border-top: 2px solid var(--beat, var(--accent));
}
.beat h3 {
  margin: 0.8rem 0 0.55rem;
  font-size: 1.1rem;
  font-weight: 700;
}
.beat p { margin: 0; color: var(--dim); font-size: 0.97rem; }
.beat .kicker { color: var(--beat, var(--accent)); }

.beat--lever { --beat: var(--trust); }
.beat--allergy { --beat: var(--tension); }
.beat--clock { --beat: var(--gold); }
.beat--crisis { --beat: #C77DFF; }

/* Case board ------------------------------------------------------------ */
.act { margin: 0 0 2.5rem; }
.act:last-child { margin-bottom: 0; }
.act__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 1rem;
  padding-bottom: 0.7rem;
  margin-bottom: 1.1rem;
  border-bottom: 1px solid var(--line);
}
.act__name { color: var(--text); font: 12px/1.5 var(--mono); letter-spacing: 0.24em; text-transform: uppercase; }
.act__tag { color: var(--dim); font-size: 0.93rem; font-style: italic; }

.cases {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
  gap: 0.7rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.case {
  padding: 0.95rem 1.05rem 1rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 3px solid var(--case, var(--accent));
  border-radius: 0 10px 10px 0;
}
.case__no { color: var(--case, var(--accent)); font: 10px/1.5 var(--mono); letter-spacing: 0.2em; }
.case__title { margin: 0.3rem 0 0.25rem; font-size: 1.02rem; font-weight: 700; }
.case__where { margin: 0; color: var(--dim); font-size: 0.87rem; }

.case--sealed { border-left-style: dashed; }
.case--sealed .case__title { color: var(--dim); }

/* One class per case, because the CSP rules out style attributes. */
.c01 { --case: #3FCF8E; }
.c02 { --case: #E8B45A; }
.c03 { --case: #58C6D8; }
.c04 { --case: #D08B3C; }
.c05 { --case: #C77DFF; }
.c06 { --case: #FF6EC7; }
.c07 { --case: #FF8A5C; }
.c08 { --case: #E5C05A; }
.c09 { --case: #5FA8FF; }
.c10 { --case: #B08CFF; }
.c11 { --case: #FF5C7A; }
.c12 { --case: #4FE3C1; }
.c13 { --case: #6FB1FF; }
.c14 { --case: #FFB35C; }
.c15 { --case: #F5D98B; }

/* Facts strip ----------------------------------------------------------- */
.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1px;
  margin: 0;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.fact { padding: 1.35rem 1.25rem; background: var(--panel); }
.fact dt {
  margin-bottom: 0.4rem;
  color: var(--dim);
  font: 10px/1.5 var(--mono);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.fact dd { margin: 0; font-size: 1.02rem; font-weight: 600; }

/* Closing band ---------------------------------------------------------- */
.band {
  padding: 3.5rem 0;
  border-top: 1px solid var(--line);
  background:
    radial-gradient(80% 120% at 50% 0%, rgba(79, 163, 255, 0.09), transparent 65%),
    var(--bg);
}

.band__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.warning { padding: 1.15rem 1.35rem; }
.warning .kicker { color: var(--gold); }
.warning p { margin: 0.75rem 0 0; color: var(--dim); font-size: 0.97rem; }

@media (max-width: 52rem) {
  .pitch { grid-template-columns: 1fr; gap: 2rem; }
  .band__grid { grid-template-columns: 1fr; }
  .meters { grid-template-columns: 1fr; }
  .hero__inner { min-height: min(78vh, 640px); }
  .section { padding: 3.25rem 0; }
}

/* On a phone the scene is far wider than the box. Rather than magnifying a
   third of one building, sit the skyline on the bottom of the hero and let
   the sky above it come from the .hero gradient. */
@media (max-width: 40rem) {
  .hero__art { top: auto; bottom: 0; height: min(52%, 300px); }
  .hero__veil {
    background:
      radial-gradient(70% 32% at 50% 66%, rgba(255, 233, 188, 0.12), transparent 70%),
      linear-gradient(to bottom, rgba(7, 9, 15, 0) 0%, rgba(7, 9, 15, 0.45) 62%, #07090F 97%);
  }
  .hero .kicker { font-size: 10px; letter-spacing: 0.18em; }
  .hero__cta { flex-direction: column; align-items: stretch; }
  .hero__cta .btn { justify-content: center; }
}
