/* FORKSCAPE — content-page components (features / science / pricing).
   Builds strictly on the design tokens in style.css. */

body.page {
  padding-top: 76px;
  overflow-x: hidden;
  background:
    radial-gradient(ellipse 90% 40% at 50% -5%, rgba(45,212,191,0.09), transparent 70%),
    var(--bg);
}

/* solid variant of the shared nav for scrolling content pages */
.nav--solid {
  position: fixed;
  background: rgba(5, 7, 13, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(120, 140, 180, 0.12);
}
.nav__links a.is-active { color: var(--ink); }

.section { max-width: 1120px; margin: 0 auto; padding: 64px 24px; }
.section--tight { padding-top: 32px; }

.eyebrow {
  color: var(--teal); letter-spacing: 0.32em; font-size: 12px;
  text-transform: uppercase; margin-bottom: 16px;
}
.page-title {
  font-size: clamp(34px, 5.6vw, 62px); font-weight: 800; line-height: 1.08;
  max-width: 820px;
  background: linear-gradient(120deg, #fff 25%, var(--teal) 65%, var(--blue) 95%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.page-lede { margin-top: 18px; color: var(--dim); font-size: clamp(15px, 2vw, 18px); line-height: 1.65; max-width: 640px; }

.section-title { font-size: clamp(24px, 3.4vw, 36px); font-weight: 800; margin-bottom: 12px; }
.section-sub { color: var(--dim); line-height: 1.65; max-width: 660px; }

/* ------------------------------------------------------------ buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px; border-radius: 999px; text-decoration: none;
  font-weight: 800; font-size: 15px; font-family: var(--font);
  background: linear-gradient(120deg, var(--teal), var(--blue));
  color: #041016; border: 0; cursor: pointer;
  box-shadow: 0 0 34px -10px var(--teal);
  transition: transform 0.22s;
}
.btn:hover { transform: translateY(-2px) scale(1.02); }
.btn--ghost {
  background: rgba(120, 140, 180, 0.14); color: var(--ink);
  box-shadow: none; border: 1px solid rgba(120, 140, 180, 0.3);
}

/* --------------------------------------------------- canvas placeholder -- */
.canvas-frame {
  position: relative; height: 520px; margin-top: 40px;
  border-radius: 18px; overflow: hidden;
  border: 1px solid rgba(96, 165, 250, 0.22);
  box-shadow: 0 0 70px -24px var(--blue), 0 24px 50px rgba(0, 0, 0, 0.5);
}
.canvas-frame .fc-toolbar { top: 16px; }

/* ------------------------------------------------------------ the meter -- */
.meter-panel {
  display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 36px;
}
.meter-card {
  background: rgba(10, 14, 24, 0.92);
  border: 1px solid color-mix(in srgb, var(--c, var(--teal)) 40%, transparent);
  border-radius: 16px; padding: 26px;
  box-shadow: 0 0 40px -18px var(--c, var(--teal));
}
.meter-card strong {
  display: block; font-size: clamp(38px, 5vw, 58px); font-weight: 800;
  color: var(--c, var(--teal));
  text-shadow: 0 0 34px color-mix(in srgb, var(--c, var(--teal)) 50%, transparent);
}
.meter-card span { color: var(--dim); font-size: 14px; line-height: 1.6; display: block; margin-top: 8px; }
.meter-bars { margin-top: 18px; display: grid; gap: 10px; }
.meter-bar { display: grid; grid-template-columns: 96px 1fr 52px; gap: 10px; align-items: center; font-size: 12px; color: var(--dim); }
.meter-bar i {
  height: 8px; border-radius: 4px; display: block;
  background: linear-gradient(90deg, var(--c, var(--teal)), transparent 140%);
  width: var(--w, 50%);
  box-shadow: 0 0 12px -2px var(--c, var(--teal));
}
.honest-note {
  margin-top: 22px; padding: 16px 20px; border-radius: 12px;
  border: 1px solid rgba(251, 191, 36, 0.3);
  background: rgba(251, 191, 36, 0.06);
  color: var(--dim); font-size: 14px; line-height: 1.65;
}
.honest-note b { color: var(--amber); }

/* --------------------------------------------------------- feature grid -- */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; margin-top: 36px; }
.feature-card {
  background: rgba(10, 14, 24, 0.92);
  border: 1px solid rgba(120, 140, 180, 0.16);
  border-top: 2px solid var(--c, var(--teal));
  border-radius: 14px; padding: 24px;
  transition: transform 0.25s, box-shadow 0.25s;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 44px -16px var(--c, var(--teal));
}
.feature-card h3 { font-size: 17px; margin-bottom: 10px; display: flex; align-items: center; gap: 9px; }
.feature-card h3::before {
  content: ''; width: 9px; height: 9px; border-radius: 50%; flex: none;
  background: var(--c, var(--teal)); box-shadow: 0 0 10px var(--c, var(--teal));
}
.feature-card p { color: var(--dim); font-size: 14px; line-height: 1.65; }

/* ------------------------------------------------------------ CTA strip -- */
.cta-strip {
  margin-top: 20px; text-align: center;
  border-radius: 20px; padding: 54px 28px;
  background:
    radial-gradient(ellipse at 50% 120%, rgba(45, 212, 191, 0.14), transparent 65%),
    rgba(10, 14, 24, 0.9);
  border: 1px solid rgba(45, 212, 191, 0.25);
}
.cta-strip h2 { font-size: clamp(24px, 3.6vw, 38px); font-weight: 800; margin-bottom: 24px; }
.cta-strip .row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.cta-strip .after { margin-top: 18px; font-size: 14px; }
.cta-strip .after a { color: var(--teal); text-decoration: none; }
.cta-strip .after a:hover { text-decoration: underline; }

/* ------------------------------------------------------- science cards --- */
.cite-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 40px; }
.cite-card {
  display: block; text-decoration: none; color: var(--ink);
  background: rgba(10, 14, 24, 0.92);
  border: 1px solid color-mix(in srgb, var(--c) 45%, transparent);
  border-radius: 18px; padding: 34px 30px;
  box-shadow: 0 0 54px -22px var(--c);
  transition: transform 0.25s, box-shadow 0.25s;
}
.cite-card:hover { transform: translateY(-5px); box-shadow: 0 0 70px -18px var(--c); }
.cite-card .tag {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; padding: 5px 12px; border-radius: 999px;
  background: color-mix(in srgb, var(--c) 22%, transparent); color: var(--c);
}
.cite-card strong {
  display: block; font-size: clamp(56px, 8vw, 92px); font-weight: 800; line-height: 1;
  margin: 18px 0 10px; color: var(--c);
  text-shadow: 0 0 44px color-mix(in srgb, var(--c) 55%, transparent);
}
.cite-card h3 { font-size: 18px; margin-bottom: 8px; }
.cite-card p { color: var(--dim); font-size: 14px; line-height: 1.6; }
.cite-card .src { display: block; margin-top: 14px; font-size: 12px; color: var(--dim); }
.cite-card .src b { color: var(--c); }

.paper-card {
  display: block; text-decoration: none; color: var(--ink);
  background: rgba(10, 14, 24, 0.92);
  border: 1px solid rgba(120, 140, 180, 0.16);
  border-left: 2px solid var(--c, var(--teal));
  border-radius: 14px; padding: 22px;
  transition: transform 0.25s, box-shadow 0.25s;
}
.paper-card:hover { transform: translateY(-4px); box-shadow: 0 0 40px -16px var(--c, var(--teal)); }
.paper-card h3 { font-size: 15px; margin-bottom: 8px; }
.paper-card h3 em { font-style: normal; color: var(--c, var(--teal)); }
.paper-card p { color: var(--dim); font-size: 13px; line-height: 1.6; }
.paper-card .link { display: block; margin-top: 12px; font-size: 12px; color: var(--c, var(--teal)); }

/* ------------------------------------------------------------- pricing --- */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 22px; margin-top: 40px; align-items: stretch; }
.plan {
  position: relative; display: flex; flex-direction: column;
  background: rgba(10, 14, 24, 0.92);
  border: 1px solid rgba(120, 140, 180, 0.18);
  border-radius: 18px; padding: 30px 26px;
}
.plan--pro {
  border: 1.5px solid var(--teal);
  box-shadow: 0 0 60px -18px var(--teal);
}
.plan__badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(120deg, var(--teal), var(--blue));
  color: #041016; font-size: 11px; font-weight: 800; letter-spacing: 0.1em;
  text-transform: uppercase; padding: 6px 16px; border-radius: 999px;
}
.plan h3 { font-size: 14px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--dim); }
.plan .price { font-size: 42px; font-weight: 800; margin: 12px 0 4px; }
.plan .price small { font-size: 14px; color: var(--dim); font-weight: 600; }
.plan .blurb { color: var(--dim); font-size: 14px; line-height: 1.6; margin-bottom: 18px; }
.plan ul { list-style: none; display: grid; gap: 10px; margin-bottom: 26px; }
.plan li { font-size: 14px; color: var(--ink); display: flex; gap: 10px; }
.plan li::before { content: '✓'; color: var(--green); font-weight: 800; }
.plan .btn { margin-top: auto; justify-content: center; }

.roi-callout {
  margin-top: 44px; padding: 28px 30px; border-radius: 16px;
  border: 1px solid rgba(74, 222, 128, 0.3);
  background: rgba(74, 222, 128, 0.06);
  font-size: 15px; line-height: 1.7; color: var(--ink); max-width: 820px;
}
.roi-callout b { color: var(--green); }

.faq { margin-top: 36px; display: grid; gap: 12px; max-width: 820px; }
.faq details {
  background: rgba(10, 14, 24, 0.92);
  border: 1px solid rgba(120, 140, 180, 0.16);
  border-radius: 12px; padding: 18px 22px;
}
.faq summary { cursor: pointer; font-weight: 700; font-size: 15px; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq summary::after { content: '+'; color: var(--teal); font-size: 20px; font-weight: 800; }
.faq details[open] summary::after { content: '–'; }
.faq details p { margin-top: 12px; color: var(--dim); font-size: 14px; line-height: 1.65; }

/* -------------------------------------------------------------- footer --- */
.footer {
  margin-top: 80px;
  border-top: 1px solid rgba(120, 140, 180, 0.12);
  background: rgba(5, 7, 13, 0.85);
}
.footer__inner {
  max-width: 1120px; margin: 0 auto; padding: 54px 24px 34px;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 30px;
}
.footer__brand p { margin-top: 14px; color: var(--dim); font-size: 13px; line-height: 1.65; max-width: 300px; }
.footer__col h4 { font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--dim); margin-bottom: 14px; }
.footer__col a { display: block; color: var(--ink); opacity: 0.8; text-decoration: none; font-size: 14px; margin-bottom: 10px; }
.footer__col a:hover { opacity: 1; color: var(--teal); }
.footer__legal {
  border-top: 1px solid rgba(120, 140, 180, 0.1);
  padding: 18px 24px 26px; text-align: center;
  color: var(--dim); font-size: 12px; line-height: 1.6;
}

@media (max-width: 900px) {
  .cite-hero, .meter-panel { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .canvas-frame { height: 440px; }
}
@media (max-width: 560px) {
  .footer__inner { grid-template-columns: 1fr; }
}

/* ------------------------------------------------ per-platform downloads --- */
/* One button per OS; the visitor's own platform is promoted to the filled
   style and moved first by download.html's script. Sizes and direct asset
   links are filled from the GitHub API at load. */
.dl-row { margin-bottom: 4px; }
.dl-btn .dl-size {
  font-style: normal; font-weight: 600; font-size: 13px; opacity: 0.72;
}
.dl-alt {
  margin-top: 16px; font-size: 13.5px; color: var(--dim);
}
.dl-alt a {
  color: var(--dim); text-decoration: none;
  border-bottom: 1px solid rgba(139, 150, 173, 0.35);
}
.dl-alt a:hover { color: var(--ink); border-bottom-color: var(--ink); }
.dl-alt .sep { opacity: 0.4; margin: 0 7px; }
.dl-ver { color: var(--teal); font-weight: 700; }
.dl-ico { width: 17px; height: 17px; flex: none; }

/* A release is created by whichever OS runner finishes first, so for a while
   `latest` can be real but missing a platform. Those buttons read "building…"
   and recede — still clickable through to the releases list, but visibly not
   the thing to click. Amber, not red: nothing is broken, it just isn't here
   yet. */
.dl-btn.dl-pending {
  opacity: 0.62;
  border-color: rgba(251, 191, 36, 0.4);
}
.dl-btn.dl-pending:hover { opacity: 0.85; }
.dl-btn.dl-pending .dl-size { color: var(--amber); opacity: 0.9; }
/* Same story for the MSI/DEB/RPM text links. */
.dl-alt a.dl-pending {
  color: var(--amber);
  opacity: 0.75;
  border-bottom-style: dashed;
  border-bottom-color: rgba(251, 191, 36, 0.45);
}
.dl-pending-note {
  margin: 14px auto 0;
  max-width: 54ch;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--amber);
}
.dl-pending-note a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(251, 191, 36, 0.45);
}
.dl-pending-note a:hover { border-bottom-color: var(--amber); }
