/* ==========================================================================
   Hardstuck product page.
   Wears the app's own theme: the Signal palette, and the "Broadcast" shapes -
   an 11 degree skew on chips and the primary button, hard-edged cards with a
   4px accent rule down the left, and accent-ruled stat dividers.

   Two rules carried over from the app and worth keeping:
     * the accent is #8b9bff, not #5b6ef5. The brand blue is a graphic, and
       fails contrast as text on these surfaces.
     * anything skewed counter-skews its contents, or the text leans.
   ========================================================================== */

:root {
  /* Signal */
  --signal:      #5b6ef5;
  --signal-lift: #8b9bff;
  --signal-deep: #2f3fc4;
  --chalk:       #e8ecf7;
  --steel:       #3d4763;

  /* Broadcast surfaces */
  --ground:  #050810;
  --raised:  #141c31;
  --overlay: #182134;
  --edge:    #273456;
  --edge-lo: #4a567d;

  --page-bg:     var(--ground);
  --page-fg:     var(--chalk);
  --page-mute:   #98a3c0;
  --page-rule:   var(--edge);
  --page-accent: var(--signal-lift);
}

body { background: var(--ground); }

/* The topbar sits on the dark ground rather than the paper. */
.topbar { background: color-mix(in srgb, var(--ground) 86%, transparent); }
.topbar__brand span { color: var(--chalk); }

.btn { border-color: var(--signal-lift); background: var(--signal-lift); color: var(--ground); }
.btn--ghost { background: transparent; color: var(--chalk); border-color: var(--edge-lo); }
.btn--ghost:hover { background: var(--chalk); color: var(--ground); border-color: var(--chalk); }

/* The primary call to action is the one place the skew is allowed to shout. */
.btn--skew { transform: skewX(-11deg); }
.btn--skew > * { display: inline-block; transform: skewX(11deg); }
.btn--skew:hover { transform: skewX(-11deg) translateY(-2px); }

/* ---------------------------------------------------------------- chips -- */
.chip {
  display: inline-block;
  padding: 6px 15px 5px;
  background: var(--signal-lift);
  color: var(--ground);
  font-size: 0.72rem; font-weight: 800;
  letter-spacing: 0.19em; text-transform: uppercase;
  transform: skewX(-11deg);
}
.chip > span { display: inline-block; transform: skewX(11deg); }
.chip--quiet { background: var(--overlay); color: var(--signal-lift); box-shadow: inset 0 0 0 1px var(--edge); }

/* ----------------------------------------------------------------- hero -- */
.phero {
  position: relative;
  padding-block: clamp(52px, 8vw, 104px) clamp(40px, 6vw, 76px);
  overflow: hidden;
  border-bottom: 1px solid var(--edge);
}
.phero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(90% 70% at 15% 0%, rgba(91, 110, 245, 0.22), transparent 60%),
    linear-gradient(180deg, var(--overlay), var(--ground) 72%);
}
.phero > .wrap { position: relative; z-index: 1; }

.phero__grid { display: grid; gap: clamp(28px, 4vw, 56px); align-items: center; }
@media (min-width: 940px) { .phero__grid { grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); } }

.phero__lockup { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.phero__lockup img { width: clamp(48px, 6vw, 66px); height: auto; }
.phero__word {
  font-size: clamp(2rem, 1.1rem + 3.9vw, 3.9rem);
  font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--chalk); line-height: 1;
}
.phero__strap {
  font-size: var(--step-1); font-weight: 750;
  letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--signal-lift);
}
.phero__body { margin-top: 18px; color: var(--page-mute); max-width: 50ch; font-size: 1.05rem; }
.phero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.phero__note { margin-top: 16px; font-size: var(--step--1); color: var(--steel); }

/* Hero statistics, divided by accent rules like the app's hero card. */
.statrow {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  grid-template-rows: auto auto;
  gap: 20px 0;
  margin-top: 30px; padding-top: 22px;
  border-top: 1px solid var(--edge);
}
/* Each cell shares the parent's two rows, so a label that wraps never pushes
   its own value out of line with the others. */
.statrow > div {
  display: grid; grid-row: span 2; grid-template-rows: subgrid;
  padding: 0 22px; border-left: 2px solid var(--signal);
}
@supports not (grid-template-rows: subgrid) {
  .statrow > div { grid-row: auto; grid-template-rows: auto auto; }
}
.statrow > div:first-child { padding-left: 0; border-left: 0; }
@media (max-width: 520px) {
  .statrow > div { padding-left: 16px; border-left: 2px solid var(--signal); }
  .statrow > div:first-child { padding-left: 16px; border-left: 2px solid var(--signal); }
}
.statrow dt {
  font-size: 0.72rem; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--steel); margin-bottom: 4px;
}
.statrow dd { margin: 0; font-size: clamp(1.15rem, 0.9rem + 1vw, 1.6rem); font-weight: 800; color: var(--chalk); }

/* ---------------------------------------------------------------- cards -- */
/* Hard-edged, 4px accent rule on the left, overlay-to-raised sweep. */
.hcard {
  position: relative;
  padding: clamp(22px, 3vw, 32px);
  background: linear-gradient(150deg, var(--overlay), var(--raised) 78%);
  border: 1px solid var(--edge);
  border-left: 4px solid var(--signal);
  border-radius: 3px;
}
.hcard h3 { color: var(--chalk); margin-bottom: 10px; }
.hcard p { color: var(--page-mute); font-size: 0.97rem; }
.hcard__ico {
  display: grid; place-items: center;
  width: 40px; height: 40px; margin-bottom: 16px;
  color: var(--signal-lift);
  background: rgba(91, 110, 245, 0.14);
  border: 1px solid var(--edge);
  border-radius: 2px;
}
.hcard__ico svg { width: 21px; height: 21px; }

.cardgrid { display: grid; gap: clamp(16px, 2.2vw, 24px); }
@media (min-width: 700px) { .cardgrid--2 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .cardgrid--3 { grid-template-columns: repeat(3, 1fr); } }

/* --------------------------------------------------------- feature rows -- */
.feature { display: grid; gap: clamp(28px, 4vw, 60px); align-items: center; }
@media (min-width: 900px) {
  .feature { grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr); }
  .feature--flip > figure { order: -1; }
}
.feature + .feature { margin-top: clamp(52px, 7vw, 92px); }
.feature h3 { font-size: var(--step-2); margin: 14px 0 14px; color: var(--chalk); }
.feature p { color: var(--page-mute); }
.feature ul { margin-top: 18px; display: grid; gap: 10px; }
.feature li {
  position: relative; padding-left: 26px; color: var(--page-mute); font-size: 0.97rem;
}
.feature li::before {
  content: ""; position: absolute; left: 0; top: 0.55em;
  width: 11px; height: 2px; background: var(--signal-lift);
}

.shot { border-color: var(--edge); background: var(--ground); }
.shot:hover { border-color: var(--signal-lift); }
.shot .shot__cap { background: var(--raised); border-top-color: var(--edge); color: var(--page-mute); }

/* ------------------------------------------------------------ band/steps -- */
.band { background: var(--raised); border-block: 1px solid var(--edge); }

.steps { counter-reset: s; display: grid; gap: clamp(20px, 3vw, 30px); }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { position: relative; padding-top: 26px; border-top: 2px solid var(--edge-lo); counter-increment: s; }
.step::before {
  content: "0" counter(s);
  position: absolute; top: -0.15em; left: 0;
  font-family: var(--mono); font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.1em; color: var(--signal-lift);
  background: var(--raised); padding-right: 10px; transform: translateY(-50%);
}
.step h3 { color: var(--chalk); margin-bottom: 8px; }
.step p { color: var(--page-mute); font-size: 0.96rem; }

/* --------------------------------------------------------------- safety -- */
.safety {
  display: grid; gap: clamp(24px, 3vw, 44px); align-items: center;
}
@media (min-width: 860px) { .safety { grid-template-columns: 1fr 1fr; } }
.safety__box {
  padding: clamp(24px, 3vw, 34px);
  background: var(--overlay);
  border: 1px solid var(--edge);
  border-left: 4px solid var(--signal);
  border-radius: 3px;
}
.safety__box h3 { color: var(--chalk); margin-bottom: 12px; }
.safety__box p + p { margin-top: 12px; }
.safety__box p { color: var(--page-mute); font-size: 0.97rem; }

/* ------------------------------------------------------------------ cta -- */
.endcta {
  text-align: center;
  background:
    radial-gradient(70% 120% at 50% 0%, rgba(91, 110, 245, 0.24), transparent 65%),
    var(--ground);
  border-top: 1px solid var(--edge);
}
.endcta h2 { max-width: 18ch; margin-inline: auto; color: var(--chalk); }
.endcta p { max-width: 52ch; margin: 18px auto 0; color: var(--page-mute); }
.endcta .phero__cta { justify-content: center; }

/* footer on dark */
.foot { background: var(--ground); }
.foot a:hover { color: var(--signal-lift); }
