/* ============================================================
   STREAK APPS SECTION (streak.css)
   ------------------------------------------------------------
   Showcases Streak Apps, the software venture built by
   Puente Scientific. Loaded per page via `extra_css` on
   index.html and about.html. Self-contained: every rule is
   scoped under .streak / .streak-* so nothing else changes.

   The panel is intentionally a dark, warm "night" surface in
   BOTH themes: it borrows Streak's own palette (streak-apps.com)
   so the venture reads as its own brand inside the lab site.

   Copy rules (from the Streak owner, Oct 2026): slogan, what
   Streak is at a glance, sharing is optional, and only three
   apps with one line each. No roadmap, dates, pricing or
   invented numbers on this page.

   Rollback: remove the section in index.html / about.html,
   this file, and its `extra_css` entries.
   ============================================================ */

.streak,
.streak-about {
  --st-ground: #0b1019;
  --st-surface: #121a28;
  --st-raised: #1b2433;
  --st-ink: #f5f7fb;
  --st-muted: #b3bccd;
  --st-hairline: #2a3445;
  --st-glow: #ff610d;
  --st-ember: #ffe3a8;
  --st-flame: linear-gradient(105deg, #ffb47b, #ff712d 60%, #ff8d55);
}

.streak {
  padding: var(--section-padding, 5rem) 0;
  background: var(--bg-secondary, #f8fafc);
}

.streak-panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
  padding: clamp(1.75rem, 5vw, 3.5rem);
  border-radius: 24px;
  background: var(--st-ground);
  color: var(--st-ink);
  border: 1px solid var(--st-hairline);
  box-shadow: 0 2px 4px rgb(0 0 0 / 0.08), 0 24px 60px rgb(11 16 25 / 0.28);
}

/* Warm ember glow rising from the lower left, the Streak signature */
.streak-panel::before {
  content: "";
  position: absolute;
  inset: auto auto -40% -15%;
  width: 70%;
  aspect-ratio: 1;
  z-index: -1;
  background: radial-gradient(closest-side, rgb(255 97 13 / 0.32), rgb(255 97 13 / 0) 70%);
  pointer-events: none;
}

.streak-eyebrow {
  margin: 0 0 1rem;
  font-family: var(--font-primary, 'Inter', sans-serif);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--st-muted);
}

.streak-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.streak-mark {
  width: 56px;
  height: 56px;
  flex: none;
  border-radius: 16px;
  background: var(--st-raised);
  box-shadow: 0 0 0 1px var(--st-hairline), 0 8px 24px rgb(255 97 13 / 0.25);
}

.streak .streak-title {
  margin: 0;
  font-family: var(--font-heading, 'Space Grotesk', sans-serif);
  font-size: clamp(2rem, 1.4rem + 2.4vw, 2.9rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--st-ink) !important;
}

.streak-slogan {
  margin: 1.1rem 0 0.9rem;
  font-family: var(--font-heading, 'Space Grotesk', sans-serif);
  font-size: clamp(1.35rem, 1.1rem + 1vw, 1.75rem);
  font-weight: 600;
  line-height: 1.2;
  background: var(--st-flame);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.streak-lede {
  margin: 0 0 1.75rem;
  max-width: 46ch;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--st-muted);
}

.streak .streak-cta {
  background: var(--st-flame);
  color: #1a0c04;
  border: 0;
  font-weight: 600;
  box-shadow: 0 6px 20px rgb(255 97 13 / 0.3);
}
.streak .streak-cta:hover,
.streak .streak-cta:focus-visible {
  color: #1a0c04;
  filter: brightness(1.06);
  transform: translateY(-1px);
}
.streak .streak-cta:focus-visible {
  outline: 2px solid var(--st-ember);
  outline-offset: 3px;
}

/* App lineup */
.streak-apps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.streak-app {
  margin: 0;
  padding: 1.15rem 1.25rem;
  border-radius: 18px;
  background: var(--st-surface);
  border: 1px solid var(--st-hairline);
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.streak-app:hover {
  border-color: rgb(255 97 13 / 0.45);
  transform: translateY(-2px);
}

.streak .streak-app-name {
  margin: 0.55rem 0 0.25rem;
  font-family: var(--font-heading, 'Space Grotesk', sans-serif);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--st-ink) !important;
}

.streak-app p {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--st-muted);
}

.streak-status {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--st-muted);
  background: var(--st-raised);
  border: 1px solid var(--st-hairline);
}
.streak-status--beta {
  color: #ffd2b0;
  background: rgb(255 97 13 / 0.14);
  border-color: rgb(255 97 13 / 0.4);
}

/* About page: compact version of the panel */
.streak-about {
  padding: var(--section-padding, 5rem) 0;
}
.streak-about .streak-panel {
  grid-template-columns: 1fr;
  max-width: 820px;
  margin: 0 auto;
  text-align: left;
}

@media (max-width: 900px) {
  .streak-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .streak-panel {
    border-radius: 20px;
  }
  .streak .streak-cta {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .streak-app,
  .streak .streak-cta {
    transition: none;
  }
  .streak-app:hover,
  .streak .streak-cta:hover {
    transform: none;
  }
}
