/* The crypto-signals page. Loaded after home.css and built only from its
   tokens -- the void canvas, carbon cards on an inset hairline, Inter, and
   one lime action per view -- so the page reads as part of the same site. */

.sg-hero {
  max-width: var(--maxw-wide); margin: 0 auto;
  padding: clamp(72px, 8vw, 128px) clamp(24px, 3.4vw, 48px) clamp(56px, 6vw, 88px);
  text-align: center;
}
.sg-kicker {
  font-size: 13px; font-weight: 510; letter-spacing: -.011em;
  color: var(--fg-3); margin: 0 0 20px;
}
.sg-hero__h { margin: 0 auto; max-width: 16ch; }
.sg-hero__lede {
  font-size: 17px; line-height: 1.6; color: var(--fg-3);
  max-width: 56ch; margin: 24px auto 0; text-wrap: balance;
}
.sg-hero__actions {
  display: flex; align-items: center; justify-content: center;
  gap: 24px; flex-wrap: wrap; margin-top: 36px;
}
.sg-link { font-size: 14px; color: var(--fg-2); }
.sg-link:hover { color: var(--chalk); }

/* The honest summary: how many, over what period. No win-rate headline --
   a percentage without the trades behind it cannot be checked. */
.sg-stats {
  display: inline-flex; flex-wrap: wrap; justify-content: center;
  gap: 8px 28px; margin-top: 44px;
  font-size: 14px; color: var(--fg-3);
}
.sg-stats b { color: var(--fg); font-weight: 510; font-variant-numeric: tabular-nums; }

.sg-sect {
  max-width: var(--maxw-wide); margin: 0 auto;
  padding: clamp(56px, 6vw, 96px) clamp(24px, 3.4vw, 48px);
  border-top: 1px solid var(--line);
}
.sg-head { max-width: 58ch; margin: 0 0 clamp(32px, 3.6vw, 52px); display: grid; gap: 14px; }
.sg-head .lede { margin: 0; }

/* ---- the record ---- */
.sg-record {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.trade {
  display: flex; flex-direction: column;
  background: var(--bg-card); border-radius: var(--radius-cards);
  box-shadow: var(--shadow-subtle); overflow: hidden;
}
.trade__chart {
  margin: 0; aspect-ratio: 4 / 3; overflow: hidden;
  border-bottom: 1px solid var(--line); background: var(--bg-lift);
}
.trade__chart img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.trade__body { padding: 20px; display: grid; gap: 12px; }
.trade__top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.trade__pair { font-family: var(--mono); font-size: 14px; color: var(--fg); }
.trade__res {
  font-size: 24px; font-weight: 510; letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}
.trade__res[data-dir="up"]   { color: var(--gain); }
.trade__res[data-dir="down"] { color: var(--loss); }
.trade__note { margin: 0; font-size: 15px; line-height: 1.5; color: var(--fg-2); }
.trade__levels {
  display: flex; gap: 20px; margin: 0;
  font-size: 13px; color: var(--fg-3);
}
.trade__levels div { display: grid; gap: 2px; }
.trade__levels dt { margin: 0; }
.trade__levels dd { margin: 0; font-family: var(--mono); color: var(--fg-2); }
.trade__meta { margin: 0; font-size: 13px; color: var(--fg-3); }

.sg-empty { color: var(--fg-3); font-size: 15px; }

/* ---- how it works ---- */
.sg-steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px;
}
.sg-step {
  background: var(--bg-card); border-radius: var(--radius-cards);
  box-shadow: var(--shadow-subtle); padding: 28px;
  display: grid; gap: 12px; align-content: start;
}
.sg-step__n { font-family: var(--mono); font-size: 13px; color: var(--fg-3); }
.sg-step__h { margin: 0; font-size: 20px; font-weight: 510; letter-spacing: -.012em; color: var(--fg); }
.sg-step p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--fg-3); }

/* ---- pricing ---- */
.sg-plan {
  max-width: 880px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-cards);
  overflow: hidden;
}
@media (max-width: 720px) { .sg-plan { grid-template-columns: 1fr; } }

/* The money half sits a step lighter than the half that explains it, so the
   eye lands on the price and the button first. */
.sg-plan__offer {
  padding: clamp(28px, 3vw, 40px);
  background: var(--bg-lift);
  display: grid; align-content: start; gap: 14px;
  border-inline-end: 1px solid var(--line);
}
@media (max-width: 720px) {
  .sg-plan__offer { border-inline-end: 0; border-bottom: 1px solid var(--line); }
}

.sg-plan__price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.sg-plan__amt {
  font-size: clamp(34px, 4vw, 48px); font-weight: 510;
  letter-spacing: -.026em; line-height: 1;
  color: var(--fg); font-variant-numeric: tabular-nums;
}
.sg-plan__per { font-size: 15px; color: var(--fg-3); }
.sg-plan__sub { margin: 0; font-size: 15px; line-height: 1.6; color: var(--fg-3); max-width: 34ch; }

.sg-plan__cta { justify-self: start; margin-top: 6px; }
/* The line under the button answers the question the button raises: what
   happens the moment I click it. */
.sg-plan__next { margin: 0; font-size: 13.5px; line-height: 1.55; color: var(--fg-dim); max-width: 36ch; }

.sg-plan__what { padding: clamp(28px, 3vw, 40px); display: grid; align-content: start; gap: 16px; }
.sg-plan__head {
  margin: 0; font-family: var(--mono); font-size: 12px;
  letter-spacing: .08em; text-transform: uppercase; color: var(--fg-3);
}
.sg-plan__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 13px; }
.sg-plan__list li {
  display: grid; grid-template-columns: 16px 1fr; gap: 11px; align-items: start;
  font-size: 15px; line-height: 1.55; color: var(--fg-2);
}
.sg-plan__tick { width: 15px; height: 15px; margin-top: .22em; color: var(--gain); flex: none; }

/* The one line on this card a stranger can check for themselves. */
.sg-plan__proof {
  display: grid; grid-template-columns: 16px 1fr; gap: 11px; align-items: start;
  margin: 4px 0 0; padding-top: 16px; border-top: 1px solid var(--line);
  font-size: 14px; line-height: 1.55; color: var(--fg-3);
}
.sg-plan__proof b { color: var(--fg-2); font-weight: 510; }

.sg-plan__fine {
  max-width: 880px; margin: 18px 0 0;
  font-size: 13px; line-height: 1.6; color: var(--fg-dim);
}

/* ---- faq ---- */
.sg-faq { max-width: 760px; display: grid; }
.sg-faq details { border-bottom: 1px solid var(--line); }
.sg-faq details:first-child { border-top: 1px solid var(--line); }
.sg-faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 20px 0; font-size: 17px; font-weight: 510; letter-spacing: -.011em; color: var(--fg);
}
.sg-faq summary::-webkit-details-marker { display: none; }
.sg-faq summary::after {
  content: "+"; font-weight: 400; font-size: 22px; line-height: 1; color: var(--fg-3);
  transition: transform .2s var(--ease);
}
.sg-faq details[open] summary::after { transform: rotate(45deg); }
.sg-faq__a { margin: 0; padding: 0 0 22px; font-size: 15px; line-height: 1.65; color: var(--fg-3); max-width: 64ch; }

@media (max-width: 960px) {
  .sg-record, .sg-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .sg-record, .sg-steps { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .sg-faq summary::after { transition: none; }
}

/* ---- cards link to their own page ----
   The pair is the link; its ::after stretches over the whole card, so the
   entire card is clickable without wrapping block content in an anchor. */
.trade { position: relative; transition: box-shadow .25s var(--ease), transform .25s var(--ease); }
.trade__pair { text-decoration: none; }
.trade__pair::after { content: ""; position: absolute; inset: 0; }
.trade:hover { transform: translateY(-2px); box-shadow: rgb(56, 59, 63) 0 0 0 1px inset, var(--shadow-sm); }
.trade__pair:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ================================================================
   ONE SIGNAL -- /crypto-signals/<slug>
   ================================================================ */
.sd {
  max-width: var(--maxw-wide); margin: 0 auto;
  padding: clamp(40px, 5vw, 72px) clamp(24px, 3.4vw, 48px) clamp(56px, 6vw, 96px);
}
.sd-crumbs {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  font-size: 13px; color: var(--fg-3); margin-bottom: clamp(28px, 3vw, 44px);
}
.sd-crumbs a { color: var(--fg-3); }
.sd-crumbs a:hover { color: var(--fg); }
.sd-crumbs [aria-current] { color: var(--fg-2); }

.sd-head { display: grid; gap: 10px; margin-bottom: clamp(28px, 3vw, 44px); }
.sd-head .sg-kicker { margin: 0; }
.sd-h { margin: 0; }
.sd-result {
  margin: 4px 0 0; font-size: clamp(32px, 3.6vw, 48px); font-weight: 510;
  letter-spacing: -.022em; line-height: 1; font-variant-numeric: tabular-nums;
}
.sd-result[data-dir="up"], .sd-levels [data-dir="up"], .sd-list__res[data-dir="up"] { color: var(--gain); }
.sd-result[data-dir="down"], .sd-levels [data-dir="down"], .sd-list__res[data-dir="down"] { color: var(--loss); }
.sd-dates { margin: 0; font-size: 14px; color: var(--fg-3); }

.sd-grid {
  display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: clamp(20px, 2.4vw, 32px); align-items: start;
}
.sd-chart {
  margin: 0; background: var(--bg-card); border-radius: var(--radius-cards);
  box-shadow: var(--shadow-subtle); overflow: hidden;
}
.sd-chart img { display: block; width: 100%; height: auto; }

.sd-panel {
  background: var(--bg-card); border-radius: var(--radius-cards);
  box-shadow: var(--shadow-subtle); padding: clamp(22px, 2.4vw, 32px);
  display: grid; gap: 24px; align-content: start;
}
.sd-levels { margin: 0; display: grid; gap: 0; }
.sd-levels div {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: 12px 0; border-bottom: 1px solid var(--line);
}
.sd-levels div:first-child { padding-top: 0; }
.sd-levels dt { font-size: 14px; color: var(--fg-3); }
.sd-levels dd { margin: 0; font-family: var(--mono); font-size: 15px; color: var(--fg); font-variant-numeric: tabular-nums; }
.sd-sub { margin: 0 0 10px; font-size: 20px; font-weight: 510; letter-spacing: -.012em; color: var(--fg); }
.sd-setup p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--fg-2); }
.sd-panel .btn { justify-self: start; }
.sd-risk { margin: 0; font-size: 13px; line-height: 1.5; color: var(--fg-3); }

.sd-pager {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
  margin-top: clamp(32px, 3.6vw, 52px);
}
.sd-pager__a {
  display: grid; gap: 6px; padding: 18px 20px;
  background: var(--bg-card); border-radius: var(--radius-cards); box-shadow: var(--shadow-subtle);
  transition: box-shadow .25s var(--ease);
}
.sd-pager__a:hover { box-shadow: rgb(56, 59, 63) 0 0 0 1px inset; }
.sd-pager__a span { font-size: 13px; color: var(--fg-3); }
.sd-pager__a b { font-family: var(--mono); font-weight: 400; font-size: 15px; color: var(--fg); }
.sd-pager__a--next { text-align: end; }

.sd-more { margin-top: clamp(48px, 5vw, 80px); padding-top: clamp(32px, 3.6vw, 52px); border-top: 1px solid var(--line); }
.sd-list { list-style: none; margin: 0 0 24px; padding: 0; display: grid; }
.sd-list a {
  display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 24px; align-items: baseline;
  padding: 14px 0; border-bottom: 1px solid var(--line);
}
.sd-list a:hover .sd-list__pair { color: var(--fg); }
.sd-list__pair { font-family: var(--mono); font-size: 15px; color: var(--fg-2); }
.sd-list__res { font-size: 15px; font-weight: 510; font-variant-numeric: tabular-nums; }
.sd-list__date { font-size: 13px; color: var(--fg-3); min-width: 9ch; text-align: end; }

@media (max-width: 900px) {
  .sd-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .sd-pager { grid-template-columns: 1fr; }
  .sd-pager__a--next { text-align: start; }
}
@media (prefers-reduced-motion: reduce) {
  .trade, .sd-pager__a { transition: none; }
  .trade:hover { transform: none; }
}

/* These pages carry one more header button than the homepage does -- log in
   AND join -- which is 6px too wide at 390px. On a phone the join button is
   the one that matters; the log-in link lives in the footer and in the app
   itself. */
@media (max-width: 460px) {
  .head__cta .btn--ghost { display: none; }
  .head__cta { gap: 10px; }
}


/* ---- checkout panel ---- */
.popup {
  position: fixed; inset: 0; z-index: 1000;
  display: grid; place-items: center;
  padding: clamp(16px, 4vw, 40px);
  background: rgba(8, 9, 10, .82);
  backdrop-filter: blur(3px);
}
.popup[hidden] { display: none; }
.popup__panel {
  position: relative;
  width: 100%; max-width: 560px;
  background: var(--bg-card);
  border: 1px solid var(--line-lift);
  border-radius: var(--radius-cards);
  box-shadow: var(--shadow-xl);
  padding: 44px 10px 10px;
}
.popup__close {
  position: absolute; top: 8px; inset-inline-end: 10px;
  width: 32px; height: 32px; padding: 0;
  display: grid; place-items: center;
  background: none; border: 0; cursor: pointer;
  font-size: 26px; line-height: 1; color: var(--fg-3);
  border-radius: var(--radius-buttons);
  transition: color .15s ease, background-color .15s ease;
}
.popup__close:hover { color: var(--chalk); background: rgba(255,255,255,.06); }
/* Gumroad's form draws itself on white, so the frame keeps its own ground
   rather than pretending to be part of the page around it. */
.popup__frame {
  display: block; width: 100%; height: min(72vh, 620px);
  border: 0; border-radius: var(--radius-buttons); background: #fff;
}
@media (max-width: 600px) {
  .popup__panel { padding: 40px 6px 6px; }
  .popup__frame { height: 76vh; }
}
