/* BlipScope marketing — shared rules for the secondary pages (/vs/*, /tools/*).
   Copied verbatim from index.html's inline sheet so the pages match; if you
   change a token there, change it here. index.html keeps its own copy on
   purpose: it is the LCP page and one file is one request. */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --ground:   #0B0C07;
  --surface:  #12150B;
  --surface2: #181C0F;
  --line:     #262C17;
  --line-hot: #3A4420;
  --ink:      #F2F5E8;
  --ink-dim:  #A6AE90;
  --ink-faint:#6E7659;

  --lime:      #ADF011;
  --lime-deep: #92CE06;
  --lime-soft: rgba(173, 240, 17, .12);
  --btn-ink:   #0B0C07;

  --display: "Sora", "Trebuchet MS", system-ui, sans-serif;
  --body: "Inter", -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --radius: 14px;
}

html { scroll-behavior: smooth; }
body {
  background: var(--ground);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}
::selection { background: var(--lime); color: var(--btn-ink); }

h1, h2, h3 { font-family: var(--display); line-height: 1.12; letter-spacing: -0.015em; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.shell { max-width: 1120px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

/* ---------- scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s cubic-bezier(.22,.8,.3,1); }
.reveal.in { opacity: 1; transform: none; }
.stagger > * { opacity: 0; transform: translateY(28px); transition: opacity .6s ease, transform .6s cubic-bezier(.22,.8,.3,1); }
.stagger.in > * { opacity: 1; transform: none; }
.stagger.in > *:nth-child(1) { transition-delay: .05s; }
.stagger.in > *:nth-child(2) { transition-delay: .17s; }
.stagger.in > *:nth-child(3) { transition-delay: .29s; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font: 600 .95rem/1 var(--body);
  padding: .85rem 1.5rem; border-radius: 999px;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease, box-shadow .3s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--lime-deep); color: var(--btn-ink); box-shadow: 0 0 24px rgba(173,240,17,.25); }
.btn-primary:hover { background: var(--lime); box-shadow: 0 0 44px rgba(173,240,17,.45); }
.btn-ghost { border-color: var(--line-hot); color: var(--ink); }
.btn-ghost:hover { border-color: var(--lime-deep); color: var(--lime); }
.btn-big { font-size: 1.05rem; padding: 1.05rem 2rem; }

/* ---------- nav ---------- */
.masthead {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11,12,7,.82); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.masthead .shell { display: flex; align-items: center; gap: 2rem; height: 68px; }
.wordmark { display: flex; align-items: center; gap: .6rem; font: 700 1.15rem var(--display); }
.wordmark svg { display: block; }
.masthead nav { display: flex; gap: 1.5rem; margin-left: auto; }
.masthead nav a { font: 500 .9rem var(--body); color: var(--ink-dim); transition: color .15s; }
.masthead nav a:hover { color: var(--ink); }
.masthead .cta { display: flex; gap: .75rem; align-items: center; }
.masthead .cta .btn { padding: .6rem 1.15rem; font-size: .875rem; }
.band { padding: clamp(4rem, 9vh, 6.5rem) 0; }
.band-alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.k {
  display: block; font: 600 .78rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase;
  color: var(--lime); margin-bottom: 1rem;
}
.band h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); font-weight: 700; max-width: 24ch; }
.band .lede { max-width: 58ch; color: var(--ink-dim); margin-top: 1rem; font-size: 1.05rem; }
.center { text-align: center; }
.center h2, .center .lede { margin-left: auto; margin-right: auto; }

.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 3rem; text-align: left; }
@media (max-width: 860px) { .grid3 { grid-template-columns: 1fr; } }
.card {
  background: var(--surface2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.75rem; transition: transform .25s ease, border-color .25s ease, box-shadow .3s ease;
}
.band-alt .card { background: var(--ground); }
.card:hover { transform: translateY(-4px); border-color: var(--line-hot); box-shadow: 0 18px 40px -22px rgba(0,0,0,.8); }
.card h3 { font-size: 1.15rem; margin-bottom: .6rem; }
.card p { font-size: .92rem; color: var(--ink-dim); }
.card p strong { color: var(--ink); }
.card .glyph {
  width: 42px; height: 42px; border-radius: 10px; margin-bottom: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  background: var(--lime-soft); border: 1px solid rgba(173,240,17,.25);
  font: 600 1rem var(--mono); color: var(--lime);
}
.card.pic { padding: 0; overflow: hidden; }
.card.pic .pad { padding: 1.5rem 1.75rem 1.75rem; }
.faq { max-width: 760px; margin: 3rem auto 0; text-align: left; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center;
  font: 600 1rem var(--body); padding: 1.25rem 0; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 1.4rem var(--mono); color: var(--lime); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .a { padding: 0 0 1.25rem; color: var(--ink-dim); font-size: .95rem; max-width: 60ch; }
footer { border-top: 1px solid var(--line); padding: 3rem 0 3.5rem; }
footer .shell { display: flex; flex-direction: column; gap: 1.6rem; }
footer .top { display: flex; align-items: center; gap: 2rem; flex-wrap: wrap; }
footer .top nav { display: flex; gap: 1.4rem; margin-left: auto; }
footer a { color: var(--ink-dim); font-size: .85rem; }
footer a:hover { color: var(--ink); }
footer .legal { font-size: .78rem; color: var(--ink-faint); max-width: 82ch; line-height: 1.7; }
@media (max-width: 860px) { .masthead nav { display: none; } }
/* 375px: the wordmark, both header buttons and the gutters summed to ~394px,
   so "Start free" was clipped by the body's overflow-x:hidden. Tighter gap and
   button padding, and the ghost button keeps its place — hiding "Log in" on a
   phone is where returning users get lost. */
@media (max-width: 480px) {
  .masthead .shell { gap: .75rem; }
  .masthead .cta { gap: .5rem; }
  .masthead .cta .btn { padding: .55rem .8rem; font-size: .82rem; }
}
