/* ==========================================================================
   SoloLedge — marketing site stylesheet
   Sections: 1 Tokens  2 Reset/base  3 Layout  4 Components  5 Sections
             6 Utilities  7 Responsive  8 Motion
   Design system is reusable across future JSinnovation products — only the
   product name/screenshots change.
   ========================================================================== */

/* 1. TOKENS ---------------------------------------------------------------- */
:root {
  --bg:            #020202;
  --bg-primary:    #080808;
  --surface:       #101010;
  --surface-2:     #151515;
  --text:          #FFFFFF;
  --text-soft:     #F5F5F5;
  --text-2:        #A3A3A3;
  --text-muted:    #737373;
  --border:        #252525;
  --border-soft:   #1c1c1c;
  --accent:        #F17121;
  --accent-hover:  #FF8A3D;
  --accent-ink:    #1a0d03;

  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Space Grotesk", var(--font-body);

  --container: 1120px;
  --radius: 12px;
  --radius-lg: 18px;

  --space-section: clamp(4rem, 9vw, 7.5rem);
  --shadow-card: 0 1px 0 rgba(255,255,255,.02) inset, 0 20px 40px -24px rgba(0,0,0,.8);
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* 2. RESET / BASE ------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* `clip` contains stray horizontal overflow without turning <body> into a
     scroll container (which `overflow-x: hidden` would, breaking window scroll
     position and `position: sticky`). */
  overflow-x: clip;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text-soft);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, picture, svg, video { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--text);
  line-height: 1.15;
  margin: 0 0 .5em;
  font-weight: 600;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.15rem, 5.5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.35rem); }
p { margin: 0 0 1rem; }
ul, ol { margin: 0 0 1rem; padding-left: 1.15rem; }
strong { color: var(--text); font-weight: 600; }
:focus-visible { outline: 2px solid var(--accent-hover); outline-offset: 3px; border-radius: 4px; }

/* 3. LAYOUT ---------------------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 1.25rem; }
.section { padding-block: var(--space-section); border-top: 1px solid var(--border-soft); scroll-margin-top: 84px; }
:target { scroll-margin-top: 84px; }
.section--flush { border-top: 0; }
.section__head { max-width: 640px; margin-bottom: 3rem; }
.section__eyebrow {
  font-family: var(--font-display);
  font-size: .8rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .14em;
  color: var(--accent);
  margin-bottom: .9rem;
}
.section__lead { color: var(--text-2); font-size: 1.075rem; }
.grid { display: grid; gap: 1.25rem; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--accent); color: var(--accent-ink);
  padding: .6rem 1rem; border-radius: 0 0 8px 0; font-weight: 600;
}
.skip-link:focus { left: 0; }
.visually-hidden, .visyally-hidden {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* 4. COMPONENTS ---------------------------------------------------------------- */

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-soft);
}
.site-header[data-scrolled] { border-bottom-color: var(--border); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; min-height: 66px; }
.brand { display: flex; align-items: center; gap: .6rem; color: var(--text); }
.brand__logo { width: 128px; height: auto; }
@media (max-width: 400px) { .brand__logo { width: 108px; } .brand__product { font-size: .9rem; padding-left: .5rem; } }
.brand__product {
  font-family: var(--font-display); font-weight: 600; font-size: 1.02rem;
  padding-left: .65rem; border-left: 1px solid var(--border);
  color: var(--text-2);
}
.site-nav { display: flex; align-items: center; }
.site-menu { list-style: none; display: flex; align-items: center; gap: 1.6rem; margin: 0; padding: 0; }
.site-menu a:not(.btn) { color: var(--text-2); font-size: .94rem; font-weight: 500; }
.site-menu a:not(.btn):hover { color: var(--text); }
.nav-toggle { display: none; }

/* Buttons */
.btn {
  --btn-bg: var(--surface-2);
  --btn-fg: var(--text);
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font-display); font-weight: 600; font-size: .98rem;
  padding: .85rem 1.5rem; border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--btn-bg); color: var(--btn-fg);
  cursor: pointer; transition: transform .15s var(--ease), background .15s var(--ease), border-color .15s var(--ease);
  text-align: center;
}
.btn:hover { transform: translateY(-1px); color: var(--btn-fg); }
.btn:active { transform: translateY(0); }
.btn--primary {
  --btn-bg: var(--accent); --btn-fg: var(--accent-ink);
  border-color: transparent;
  box-shadow: 0 10px 24px -14px color-mix(in srgb, var(--accent) 55%, transparent);
}
.btn--primary:hover { --btn-bg: var(--accent-hover); }
.btn--ghost { --btn-bg: transparent; border-color: var(--border); }
.btn--ghost:hover { border-color: var(--text-muted); background: var(--surface); }
.btn--sm { padding: .55rem 1rem; font-size: .9rem; }
.btn--lg { padding: 1rem 1.9rem; font-size: 1.05rem; }
.btn--block { display: flex; width: 100%; }

/* Cards */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
  box-shadow: var(--shadow-card);
}
.card__icon {
  width: 40px; height: 40px; border-radius: 10px;
  display: grid; place-items: center; margin-bottom: 1rem;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--accent);
}
.card h3 { margin-bottom: .35rem; }
.card p { color: var(--text-2); margin: 0; font-size: .96rem; }

/* Badge */
.badge {
  display: inline-flex; align-items: center; gap: .45rem;
  font-family: var(--font-display); font-size: .8rem; font-weight: 600;
  letter-spacing: .02em;
  padding: .35rem .7rem; border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-2);
}
.badge--accent { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 35%, var(--border)); }
.badge__dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* Screenshot frame */
.frame {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface-2);
  padding: .5rem;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.frame img { border-radius: 10px; width: 100%; }
.frame--bare { padding: 0; }
.frame--phone {
  max-width: 300px; margin-inline: auto;
  border-radius: 26px; padding: .55rem;
}
.frame--phone .frame__view {
  aspect-ratio: 9 / 17; overflow: hidden; border-radius: 20px; background: var(--surface-2);
}
.frame--phone img { border-radius: 0; object-fit: cover; object-position: top; width: 100%; height: 100%; }
figure { margin: 0; }
figcaption { color: var(--text-muted); font-size: .85rem; margin-top: .7rem; text-align: center; }

/* Checklist */
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: .85rem; }
.checklist li { position: relative; padding-left: 1.9rem; color: var(--text-soft); }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .15rem;
  width: 1.25rem; height: 1.25rem; border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
}
.checklist li::after {
  content: ""; position: absolute; left: .42rem; top: .42rem;
  width: .4rem; height: .2rem; border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent); transform: rotate(-45deg);
}
.checklist--muted li::before { background: var(--surface-2); border-color: var(--border); }
.checklist--muted li::after { border-color: var(--text-2); }

/* Steps */
.steps { counter-reset: step; display: grid; gap: 1.1rem; }
.step { display: flex; gap: 1rem; align-items: flex-start; }
.step__num {
  flex: none; counter-increment: step;
  width: 2.1rem; height: 2.1rem; border-radius: 10px;
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700;
  background: var(--surface-2); border: 1px solid var(--border); color: var(--accent);
}
.step__num::before { content: counter(step); }
.step h3 { margin-bottom: .2rem; font-size: 1.05rem; }
.step p { margin: 0; color: var(--text-2); font-size: .95rem; }

/* FAQ */
.faq { display: grid; gap: .75rem; max-width: 820px; }
.faq__item { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.faq__q {
  width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  color: var(--text); font-family: var(--font-display); font-weight: 600; font-size: 1.02rem;
  padding: 1.1rem 1.25rem; display: flex; justify-content: space-between; gap: 1rem; align-items: center;
}
.faq__q:hover { color: var(--accent); }
.faq__icon { flex: none; width: 1.1rem; height: 1.1rem; position: relative; }
.faq__icon::before, .faq__icon::after {
  content: ""; position: absolute; inset: 0; margin: auto; background: currentColor;
}
.faq__icon::before { width: 100%; height: 2px; }
.faq__icon::after { width: 2px; height: 100%; transition: transform .2s var(--ease); }
.faq__q[aria-expanded="true"] .faq__icon::after { transform: scaleY(0); }
.faq__a { padding: 0 1.25rem; max-height: 0; overflow: hidden; transition: max-height .28s var(--ease); }
.faq__a > div { padding-bottom: 1.15rem; color: var(--text-2); }
.faq__item[data-open] .faq__a { max-height: 460px; }

/* Trust strip */
.trust { display: flex; flex-wrap: wrap; gap: 1rem 2.5rem; align-items: center; justify-content: center; }
.trust__item { display: flex; align-items: center; gap: .6rem; color: var(--text-2); font-size: .92rem; }
.trust__item svg { color: var(--accent); flex: none; }

/* Pricing */
.pricing { display: grid; gap: 1.5rem; max-width: 520px; }
.price-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 2rem; }
.price-card__row { display: flex; align-items: baseline; gap: .75rem; flex-wrap: wrap; }
.price-card__now { font-family: var(--font-display); font-size: 3rem; font-weight: 700; color: var(--text); letter-spacing: -0.02em; }
.price-card__was { color: var(--text-muted); text-decoration: line-through; font-size: 1.25rem; }
.price-card__note { color: var(--text-2); font-size: .95rem; }
.price-card hr { border: 0; border-top: 1px solid var(--border); margin: 1.5rem 0; }

/* Sticky CTA bar — all viewports, slides in after the hero */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
  padding: .7rem 1rem calc(.7rem + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  transform: translateY(110%);
  transition: transform .3s var(--ease);
}
.sticky-cta.is-shown { transform: translateY(0); }
.sticky-cta__inner {
  max-width: var(--container); margin-inline: auto;
  display: flex; align-items: center; gap: 1rem;
}
.sticky-cta__text { display: none; color: var(--text-2); font-size: .9rem; }
.sticky-cta__text strong { color: var(--text); }
.sticky-cta .btn { white-space: nowrap; }
@media (min-width: 640px) {
  .sticky-cta__inner { justify-content: space-between; }
  .sticky-cta__text { display: block; }
  .sticky-cta .btn--block { width: auto; display: inline-flex; }
}
@media (prefers-reduced-motion: reduce) {
  .sticky-cta { transition: none; }
}

/* Callout / disclaimer */
.callout {
  border: 1px solid var(--border); border-left: 3px solid var(--accent);
  background: var(--surface); border-radius: var(--radius);
  padding: 1.1rem 1.25rem; color: var(--text-2); font-size: .95rem;
}

/* Prose (legal pages) */
.prose { max-width: 760px; }
.prose h2 { margin-top: 2.5rem; }
.prose h3 { margin-top: 1.75rem; }
.prose ul { color: var(--text-2); }
.prose .placeholder {
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  border-bottom: 1px dashed var(--accent);
  color: var(--text); padding: 0 .25rem; border-radius: 3px;
}

/* 5. SECTIONS ---------------------------------------------------------------- */
.hero { padding-block: clamp(3rem, 7vw, 6rem) var(--space-section); }
.hero__grid { display: grid; gap: 3rem; align-items: center; }
.hero h1 { margin-bottom: 1rem; }
.hero__sub { font-size: 1.15rem; color: var(--text-2); max-width: 34ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 1.8rem; }
.hero__meta { margin-top: 1.4rem; color: var(--text-muted); font-size: .88rem; }
.hero__figure { position: relative; }

.split { display: grid; gap: 2.5rem; align-items: center; }
.feature-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.screens-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.audience-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.cta-final { text-align: center; }
.cta-final .container { max-width: 720px; }
.cta-final .hero__actions { justify-content: center; }

/* 6. UTILITIES ---------------------------------------------------------------- */
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.stack > * + * { margin-top: 1rem; }

/* 7. RESPONSIVE ---------------------------------------------------------------- */
@media (min-width: 768px) {
  .hero__grid { grid-template-columns: 1.05fr 1fr; }
  .split { grid-template-columns: 1fr 1fr; }
  .split--reverse .split__media { order: -1; }
}
@media (max-width: 860px) {
  .nav-toggle {
    display: inline-grid; place-items: center;
    width: 42px; height: 42px; background: var(--surface); border: 1px solid var(--border);
    border-radius: 10px; cursor: pointer; color: var(--text);
  }
  .nav-toggle__bar, .nav-toggle__bar::before, .nav-toggle__bar::after {
    content: ""; display: block; width: 18px; height: 2px; background: currentColor; position: relative;
    transition: transform .2s var(--ease), opacity .2s var(--ease);
  }
  .nav-toggle__bar::before { position: absolute; top: -6px; }
  .nav-toggle__bar::after  { position: absolute; top: 6px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bar { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bar::before { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bar::after  { transform: translateY(-6px) rotate(-45deg); }

  .site-menu {
    position: fixed; inset: 66px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg-primary); border-bottom: 1px solid var(--border);
    padding: .5rem 1.25rem 1.25rem;
    transform: translateY(-120%); transition: transform .25s var(--ease);
    max-height: calc(100dvh - 66px); overflow-y: auto;
  }
  .site-menu[data-open] { transform: translateY(0); }
  .site-menu li { padding: .25rem 0; border-bottom: 1px solid var(--border-soft); }
  .site-menu li:last-child { border-bottom: 0; }
  .site-menu a:not(.btn) { display: block; padding: .8rem 0; font-size: 1rem; }
  .site-menu__cta { padding-top: 1rem; }
  .site-menu__cta .btn { width: 100%; }
}
body.has-sticky-cta { padding-bottom: 80px; }
@media (max-width: 640px) {
  .site-footer__inner { grid-template-columns: 1fr 1fr; }
}
.site-footer__inner { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 2rem; padding-block: 3.5rem 2.5rem; }
.site-footer { border-top: 1px solid var(--border); background: var(--bg-primary); }
.site-footer__brand img { width: 108px; }
.site-footer__tagline { color: var(--text-muted); font-size: .9rem; margin-top: .6rem; }
.site-footer__col h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: var(--text-muted); }
.site-footer__col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.site-footer__col a { color: var(--text-2); font-size: .92rem; }
.site-footer__col a:hover { color: var(--text); }
.site-footer__legal { border-top: 1px solid var(--border-soft); padding-block: 1.5rem 2.5rem; color: var(--text-muted); font-size: .82rem; }
.site-footer__legal p { margin: .25rem 0; }
.site-footer__disclaimer { max-width: 70ch; }

@media (max-width: 520px) {
  .site-footer__inner { grid-template-columns: 1fr; gap: 1.75rem; }
}

/* 8. MOTION ---------------------------------------------------------------- */
/* Progressive enhancement: only hide-before-reveal when JS is active. */
.js [data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1; transform: none; }
}
