/* ==========================================================================
   sirslopalot — shared stylesheet
   Static site, no build step, no external requests.
   ========================================================================== */

:root {
  color-scheme: dark;

  /* Surfaces */
  --bg: #0a0a0d;
  --bg-soft: #101015;
  --surface: #14141b;
  --surface-hi: #1a1a23;
  --line: #26262f;
  --line-hi: #383845;

  /* Ink */
  --text: #f4f4f6;
  --muted: #a2a2ae;
  --muted-dim: #75757f;

  /* Bolt */
  --bolt: #ffc528;
  --bolt-deep: #ffab00;
  --bolt-wash: rgba(255, 197, 40, 0.1);
  --bolt-line: rgba(255, 197, 40, 0.28);

  /* Type */
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
    "Liberation Mono", monospace;

  /* Metrics */
  --shell: 1120px;
  --radius: 16px;
  --radius-sm: 10px;
  --pad: clamp(1.25rem, 4vw, 2rem);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img,
svg {
  max-width: 100%;
  display: block;
}

a {
  color: var(--bolt);
  text-decoration-color: var(--bolt-line);
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-color: var(--bolt);
}

:focus-visible {
  outline: 2px solid var(--bolt);
  outline-offset: 3px;
  border-radius: 4px;
}

h1,
h2,
h3 {
  line-height: 1.15;
  letter-spacing: -0.022em;
  margin: 0;
  font-weight: 650;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

/* --------------------------------------------------------------------------
   Layout primitives
   -------------------------------------------------------------------------- */

.shell {
  width: min(var(--shell), 100% - 2 * var(--pad));
  margin-inline: auto;
}

.section {
  padding-block: clamp(3.5rem, 9vw, 6.5rem);
  border-top: 1px solid var(--line);
}

.section--plain {
  border-top: 0;
}

.stack {
  display: grid;
  gap: 1rem;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--bolt);
  color: #0a0a0d;
  font-weight: 600;
  border-radius: 0 0 var(--radius-sm) 0;
}

.skip-link:focus {
  left: 0;
}

/* --------------------------------------------------------------------------
   Bolt mark
   -------------------------------------------------------------------------- */

/* Hidden <symbol> sprite. A class rather than an inline style so the site can
   ship a strict Content-Security-Policy with no 'unsafe-inline'. */
.sprite {
  display: none;
}

.bolt {
  width: 1em;
  height: 1em;
  flex: none;
  fill: currentColor;
}

.bolt--mark {
  color: var(--bolt);
  filter: drop-shadow(0 0 22px rgba(255, 171, 0, 0.35));
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.masthead {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.masthead__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 62px;
  flex-wrap: wrap;
  padding-block: 0.5rem;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text);
  font-weight: 640;
  font-size: 1.0625rem;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.wordmark .bolt {
  color: var(--bolt);
  font-size: 1.25em;
}

.wordmark:hover {
  color: var(--bolt);
}

.navlinks {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 1.75rem);
  font-size: 0.9375rem;
}

.navlinks a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  white-space: nowrap;
}

.navlinks a:hover,
.navlinks a[aria-current="page"] {
  color: var(--text);
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  padding-block: clamp(3.5rem, 11vw, 7.5rem) clamp(3rem, 8vw, 5rem);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -40% 0 auto 50%;
  translate: -50% 0;
  width: min(900px, 130vw);
  aspect-ratio: 1;
  background: radial-gradient(
    circle,
    rgba(255, 171, 0, 0.13),
    rgba(255, 171, 0, 0) 62%
  );
  pointer-events: none;
}

.hero__inner {
  position: relative;
  display: grid;
  gap: 1.75rem;
  justify-items: start;
  max-width: 46rem;
}

/* These blocks carry .shell *and* their own narrower max-width, so .shell's
   `margin-inline: auto` centres them in the viewport — leaving the hero and
   the body copy indented relative to every full-width section. Pin the left
   edge to the shell's content edge and let the right margin absorb the slack
   so everything on the page shares one alignment. */
.hero__inner,
.pagehero__inner,
.shell.prose {
  margin-left: max(var(--pad), calc(50% - var(--shell) / 2));
  margin-right: auto;
}

.hero .bolt--hero {
  font-size: clamp(3.25rem, 9vw, 4.75rem);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0.75rem;
  border: 1px solid var(--bolt-line);
  background: var(--bolt-wash);
  border-radius: 999px;
  color: var(--bolt);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.hero h1 {
  font-size: clamp(2.4rem, 7vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.035em;
}

.hero h1 em {
  font-style: normal;
  color: var(--bolt);
}

.lede {
  font-size: clamp(1.0625rem, 2.4vw, 1.25rem);
  color: var(--muted);
  max-width: 40rem;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease,
    color 0.15s ease, translate 0.15s ease;
}

.btn--primary {
  background: var(--bolt);
  color: #0a0a0d;
}

.btn--primary:hover {
  background: #ffd455;
  translate: 0 -1px;
}

.btn--ghost {
  border-color: var(--line-hi);
  color: var(--text);
  background: transparent;
}

.btn--ghost:hover {
  border-color: var(--bolt);
  color: var(--bolt);
  translate: 0 -1px;
}

/* Placeholder for a Play Store button until a listing exists. Swap the
   element for a real <a class="btn btn--primary"> when the app ships. */
.btn--pending {
  border-color: var(--line);
  background: var(--surface);
  color: var(--muted-dim);
  cursor: default;
}

.btn--pending:hover {
  translate: none;
}

/* --------------------------------------------------------------------------
   Trust strip
   -------------------------------------------------------------------------- */

.trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  padding: 0;
  margin: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.9375rem;
}

.trust li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.trust .bolt {
  color: var(--bolt);
  font-size: 0.9em;
}

/* --------------------------------------------------------------------------
   Section headings
   -------------------------------------------------------------------------- */

.section__head {
  display: grid;
  gap: 0.75rem;
  max-width: 42rem;
  margin-bottom: clamp(2rem, 5vw, 3rem);
}

.section__head h2 {
  font-size: clamp(1.75rem, 4.5vw, 2.5rem);
}

.kicker {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--bolt);
  font-size: 0.8125rem;
  font-weight: 650;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.kicker .bolt {
  font-size: 1.1em;
}

/* --------------------------------------------------------------------------
   App cards
   -------------------------------------------------------------------------- */

/* Both grids hold exactly four items, so an explicit 2-up beats auto-fit —
   auto-fit lands on three columns at desktop widths and strands the fourth
   card on a row of its own. */
.grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 46rem) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  padding: clamp(1.25rem, 3vw, 1.75rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.18s ease, background-color 0.18s ease,
    translate 0.18s ease;
}

.card:hover,
.card:focus-within {
  border-color: var(--line-hi);
  background: var(--surface-hi);
  translate: 0 -2px;
}

.card__icon {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 12px;
  background: var(--bolt-wash);
  border: 1px solid var(--bolt-line);
  color: var(--bolt);
  font-size: 1.375rem;
}

.card h3 {
  font-size: 1.25rem;
}

.card h3 a {
  color: inherit;
  text-decoration: none;
}

/* Make the whole card clickable without nesting interactive elements. */
.card h3 a::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.card:hover h3 a {
  color: var(--bolt);
}

.card p {
  color: var(--muted);
  font-size: 0.9375rem;
}

.card__foot {
  margin-top: auto;
  padding-top: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: var(--muted-dim);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.chip {
  padding: 0.2rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--muted);
  font-size: 0.78125rem;
  font-weight: 500;
  white-space: nowrap;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--bolt-line);
  background: var(--bolt-wash);
  color: var(--bolt);
  font-size: 0.78125rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.status::before {
  content: "";
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: currentColor;
}

.arrow {
  color: var(--muted-dim);
  transition: color 0.18s ease, translate 0.18s ease;
}

.card:hover .arrow {
  color: var(--bolt);
  translate: 3px 0;
}

/* --------------------------------------------------------------------------
   Principles
   -------------------------------------------------------------------------- */

.principle {
  display: grid;
  gap: 0.6rem;
  padding: clamp(1.25rem, 3vw, 1.6rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface), var(--bg-soft));
}

.principle h3 {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 1.0625rem;
}

.principle h3 .bolt {
  color: var(--bolt);
  font-size: 1.1em;
}

.principle p {
  color: var(--muted);
  font-size: 0.9375rem;
}

/* --------------------------------------------------------------------------
   Prose (app detail + policy pages)
   -------------------------------------------------------------------------- */

.prose {
  max-width: 44rem;
}

.prose h2 {
  font-size: clamp(1.375rem, 3.5vw, 1.75rem);
  margin-top: 2.75rem;
}

.prose h3 {
  font-size: 1.125rem;
  margin-top: 2rem;
}

.prose h2 + p,
.prose h3 + p {
  margin-top: 0.75rem;
}

.prose p,
.prose ul,
.prose ol {
  margin-top: 1rem;
  color: var(--muted);
}

.prose li + li {
  margin-top: 0.5rem;
}

.prose strong {
  color: var(--text);
  font-weight: 620;
}

.prose code {
  font-family: var(--mono);
  font-size: 0.875em;
  padding: 0.1rem 0.35rem;
  border-radius: 5px;
  background: var(--surface-hi);
  border: 1px solid var(--line);
  overflow-wrap: anywhere;
}

/* Feature list with bolt bullets */
.featurelist {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0;
  display: grid;
  gap: 0.875rem;
}

.featurelist li {
  display: grid;
  grid-template-columns: 1.5rem 1fr;
  gap: 0.25rem 0.75rem;
  color: var(--muted);
}

.featurelist .bolt {
  color: var(--bolt);
  font-size: 1.05rem;
  margin-top: 0.35rem;
}

.featurelist b {
  display: block;
  color: var(--text);
  font-weight: 620;
}

/* Callout */
.note {
  display: grid;
  gap: 0.5rem;
  margin-top: 1.75rem;
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--line);
  border-left: 3px solid var(--bolt);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--muted);
  font-size: 0.9375rem;
}

.note strong {
  color: var(--text);
}

/* Spec table */
.spec {
  width: 100%;
  margin-top: 1.5rem;
  border-collapse: collapse;
  font-size: 0.9375rem;
  text-align: left;
}

.spec th,
.spec td {
  padding: 0.7rem 0.5rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.spec th {
  width: 12rem;
  color: var(--text);
  font-weight: 600;
}

.spec td {
  color: var(--muted);
}

.tablewrap {
  overflow-x: auto;
}

/* On phones a 12rem label column leaves too little room for the value, so
   stack label over value instead of squeezing two columns. */
@media (max-width: 34rem) {
  .spec th,
  .spec td {
    display: block;
    width: auto;
  }

  .spec th {
    border-bottom: 0;
    padding-bottom: 0.1rem;
  }

  .spec td {
    padding-top: 0.1rem;
  }
}

/* --------------------------------------------------------------------------
   App detail hero
   -------------------------------------------------------------------------- */

.pagehero {
  position: relative;
  padding-block: clamp(2.5rem, 7vw, 4rem) clamp(2rem, 5vw, 3rem);
  overflow: hidden;
}

.pagehero::before {
  content: "";
  position: absolute;
  inset: -60% 40% auto -10%;
  width: min(700px, 110vw);
  aspect-ratio: 1;
  background: radial-gradient(
    circle,
    rgba(255, 171, 0, 0.11),
    rgba(255, 171, 0, 0) 62%
  );
  pointer-events: none;
}

.pagehero__inner {
  position: relative;
  display: grid;
  gap: 1.25rem;
  justify-items: start;
  max-width: 44rem;
}

.pagehero h1 {
  font-size: clamp(2rem, 6vw, 3.15rem);
  font-weight: 700;
  letter-spacing: -0.032em;
}

.backlink {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--muted);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
}

.backlink:hover {
  color: var(--bolt);
}

.appmark {
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 15px;
  background: var(--bolt-wash);
  border: 1px solid var(--bolt-line);
  color: var(--bolt);
  font-size: 1.75rem;
}

.dates {
  color: var(--muted-dim);
  font-size: 0.9375rem;
}

/* --------------------------------------------------------------------------
   Contact / CTA band
   -------------------------------------------------------------------------- */

.band {
  display: grid;
  gap: 1.25rem;
  justify-items: start;
  padding: clamp(1.75rem, 5vw, 3rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: radial-gradient(
      120% 140% at 0% 0%,
      rgba(255, 171, 0, 0.09),
      transparent 58%
    ),
    var(--surface);
}

.band h2 {
  font-size: clamp(1.5rem, 4vw, 2.15rem);
}

.band p {
  color: var(--muted);
  max-width: 38rem;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.footer {
  border-top: 1px solid var(--line);
  padding-block: 2.75rem 3.25rem;
  color: var(--muted-dim);
  font-size: 0.9375rem;
}

.footer__grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
  margin-bottom: 2.25rem;
}

.footer h2 {
  font-size: 0.78125rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.85rem;
  font-weight: 650;
}

.footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.55rem;
}

.footer a {
  color: var(--muted);
  text-decoration: none;
}

.footer a:hover {
  color: var(--bolt);
}

.footer__bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
}

.footer__brand .bolt {
  color: var(--bolt);
  font-size: 1.1em;
}

/* --------------------------------------------------------------------------
   404
   -------------------------------------------------------------------------- */

.notfound {
  display: grid;
  place-items: center;
  gap: 1.5rem;
  justify-items: center;
  text-align: center;
  min-height: 62vh;
  padding-block: 4rem;
}

.notfound .bolt {
  font-size: 4rem;
}

.notfound h1 {
  font-size: clamp(2rem, 6vw, 3rem);
}

/* --------------------------------------------------------------------------
   Motion
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* --------------------------------------------------------------------------
   Print
   -------------------------------------------------------------------------- */

@media print {
  .masthead,
  .footer,
  .actions,
  .skip-link {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }

  .prose p,
  .prose ul,
  .prose li,
  .dates {
    color: #222;
  }

  a {
    color: #000;
  }
}
