/* ═══════════════════════════════════════════════════════════
   DRISHYA SIDS — Speed Indication Display System
   ─────────────────────────────────────────────────────────
   Rides on the shared brand system (Manrope, #43AF43, pill
   buttons, --content-ease, the reveal + counter scripts) and
   reuses Angad's primitives (.ag-head / .ag-approach / .ag-mission /
   .ag-closing) + the About shells (.ab-do / .ab-card).

   SIDS'S OWN IDENTITY — THE LIVE DISPLAY.
   The product IS a roadside sign that shows a driver their own speed,
   and the whole pitch is psychological: awareness produces voluntary
   compliance. So rather than describe that in a card grid, the page
   RUNS one — the speed climbs, the sign goes red and flashes SLOW
   DOWN, the driver eases off, it turns green and says THANK YOU.
   New components are prefixed `sd-`.
════════════════════════════════════════════════════════════ */

:root {
  --sd-green: #43af43;
  --sd-amber: #f5a524;
  --sd-red: #e5342b;
}

/* ═══════════════════════════════════════════════════════════
   HERO
   Nothing to override any more:

   • Height is handled site-wide in style.css — calc(100vh - 85px), so the
     hero subtracts the navbar it is margined clear of.
   • The earlier banner carried its own feature strip (Real-time Speed
     Detection, Multi Lane Monitoring, …) baked along its bottom edge, which
     needed `object-position: center bottom` to survive the object-fit crop,
     plus extra bottom padding to lift the copy clear of it. THE FINAL BANNER
     HAS NO SUCH STRIP — so both of those are gone, and the crop centres and
     the copy sits exactly like every other hero on the site.

   The one thing that must stay: <picture> is display:inline by default, which
   collapses the height:100% on .slide-img inside it — the banner then measures
   zero and never paints.
════════════════════════════════════════════════════════════ */


.sd-tagline-line {
  display: block;
  margin: 0 0 20px;
  font-size: clamp(12px, 1.3vw, 14px);
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #6bd46b;
  opacity: 0;
}
.slide.is-entering .sd-tagline-line {
  animation: hsContentUp 0.76s var(--content-ease) 0.42s both;
}

/* ═══════════════════════════════════════════════════════════
   INTRO — the system schematic
   sids.png is a line diagram on a light ground, not a photo, so it gets a
   white card rather than floating on the section's green gradient. It is
   640px wide natively and the column is ~540px, so it renders DOWNscaled —
   crisp, never blown up.
════════════════════════════════════════════════════════════ */
.sd-intro-diagram {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  padding: 20px;
  background: #ffffff;
  border: 1px solid rgba(67, 175, 67, 0.16);
  border-radius: 18px;
  box-shadow:
    0 30px 60px -32px rgba(16, 44, 28, 0.3),
    0 2px 6px rgba(16, 44, 28, 0.04);
}
.sd-diagram-cap {
  position: relative;
  z-index: 1;
  margin-top: 16px;
  text-align: center;
  font-size: 13px;
  line-height: 1.6;
  color: #4b5563;
}

/* ═══════════════════════════════════════════════════════════
   ★ SIGNATURE — THE LIVE SIDS DISPLAY
════════════════════════════════════════════════════════════ */
.sd-demo-section {
  position: relative;
  overflow: hidden;
  background: #0a0c0a;
}
.sd-demo-section::before {
  content: "";
  position: absolute;
  inset: -25% -10% auto -10%;
  height: 140%;
  background: radial-gradient(55% 42% at 50% 0%, rgba(67, 175, 67, 0.13) 0%, transparent 62%);
  pointer-events: none;
}
.sd-demo-section > * { position: relative; z-index: 1; }

.sd-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: clamp(42px, 6vh, 62px);
}

/* ── The sign itself ── */
.sd-sign {
  position: relative;
  width: min(420px, 100%);
  padding: 30px 28px 26px;
  text-align: center;
  background: #050705;
  border: 3px solid rgba(255, 255, 255, 0.14);
  border-radius: 22px;
  box-shadow:
    0 40px 90px -34px rgba(0, 0, 0, 0.9),
    inset 0 0 60px rgba(0, 0, 0, 0.8);
  transition: border-color 0.45s ease, box-shadow 0.45s ease;
}
/* LED-matrix texture across the face */
.sd-sign::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 19px;
  background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1.4px);
  background-size: 5px 5px;
  pointer-events: none;
}

.sd-sign-label {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

.sd-readout {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  margin: 6px 0 2px;
}
.sd-digits {
  min-width: 2.4ch;                 /* stops the sign jittering as digits change */
  font-size: clamp(74px, 11vw, 104px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.01em;
  font-variant-numeric: tabular-nums;
  color: var(--sd-green);
  text-shadow: 0 0 26px currentColor;
  transition: color 0.35s ease, text-shadow 0.35s ease;
}
.sd-unit {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.5);
}

/* The message line — the whole point of the product */
.sd-message {
  margin: 12px 0 0;
  min-height: 26px;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sd-green);
  transition: color 0.35s ease;
}

/* ── States ── */
.sd-sign.is-over {
  border-color: rgba(229, 52, 43, 0.75);
  box-shadow:
    0 40px 90px -34px rgba(0, 0, 0, 0.9),
    0 0 70px -14px rgba(229, 52, 43, 0.55),
    inset 0 0 60px rgba(0, 0, 0, 0.8);
}
.sd-sign.is-over .sd-digits { color: var(--sd-red); }
.sd-sign.is-over .sd-message {
  color: var(--sd-red);
  animation: sdBlink 0.7s steps(1, end) infinite;
}
.sd-sign.is-warn .sd-digits { color: var(--sd-amber); }
.sd-sign.is-warn .sd-message { color: var(--sd-amber); }
.sd-sign.is-ok { border-color: rgba(67, 175, 67, 0.6); }

@keyframes sdBlink {
  0%, 60%  { opacity: 1; }
  61%, 100% { opacity: 0.25; }
}
/* Never let a blink be the only way to read the sign. */
@media (prefers-reduced-motion: reduce) {
  .sd-sign.is-over .sd-message { animation: none; }
  .sd-digits, .sd-message, .sd-sign { transition: none; }
}

/* ── The posted limit, under the sign ── */
.sd-limit {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  padding: 11px 20px;
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 100px;
}
.sd-limit b { color: #ffffff; }

/* ── Caption under the demo ── */
.sd-caption {
  max-width: 640px;
  margin: 26px auto 0;
  text-align: center;
  font-size: 14.5px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.55);
}
.sd-caption b { color: #6bd46b; font-weight: 700; }

/* ═══════════════════════════════════════════════════════════
   CONDITIONS — the environment strip
════════════════════════════════════════════════════════════ */
.sd-conditions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: clamp(38px, 5vh, 52px);
}
.sd-condition {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 20px;
  font-size: 14.5px;
  font-weight: 700;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 100px;
  transition: transform 0.4s var(--content-ease), border-color 0.35s ease, background 0.35s ease;
}
.sd-condition:hover {
  transform: translateY(-4px);
  background: rgba(67, 175, 67, 0.12);
  border-color: rgba(67, 175, 67, 0.5);
}
.sd-condition svg { width: 18px; height: 18px; flex: none; color: #6bd46b; }
