/* InsightsKit waitlist page. Colours, spacing, radii and type come from
   graphite/tokens.css and graphite/components.css; this file holds the page
   layout and the few things that are the page's own.

   The only hue is the InsightKit orange, for the wordmark and "KIT" in the
   banner — the same values as the sign-in page
   (internal/dash/templates/signin.html). Green is the live dot. */

:root, [data-theme="light"] {
  --logo-accent: #c2610c;
  --art-fg: #232323; --art-g1: #b4b4b4; --art-g2: #707070; --art-accent: #c2610c;
}
[data-theme="dark"] {
  --logo-accent: #f0a04b;
  --art-fg: #efefef; --art-g1: #5a5a5a; --art-g2: #9d9d9d; --art-accent: #f0a04b;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { font-size: 16px; line-height: 24px; font-weight: 500; }
h1, h2, h3, p { margin: 0; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -48px; z-index: 20; padding: 10px 16px; border-radius: var(--radius-full);
  background: var(--primary); color: var(--primary-foreground); font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; outline: 2px solid transparent; box-shadow: var(--focus-ring); }

.wordmark { font-size: 18px; line-height: 24px; font-weight: 700; letter-spacing: -.54px; color: var(--foreground); text-decoration: none; }
.wordmark span { color: var(--logo-accent); }
.wordmark.small { font-size: 15px; }

/* ---- nav: Graphite's three floating pills ---------------------------------- */
.topnav { position: sticky; top: 0; z-index: 10; display: flex; justify-content: center; padding: 14px 16px; pointer-events: none; }
.topnav .gr-nav { pointer-events: auto; }
.topnav .wordmark { padding: 9px 18px; border-radius: var(--radius-full); background: var(--surface); font-size: 15px; line-height: 22px; }
.topnav .wordmark:focus-visible, .gr-nav-link:focus-visible, .gr-nav-cta:focus-visible { outline: 2px solid transparent; box-shadow: var(--focus-ring); }
.gr-nav-cta { background: var(--primary); color: var(--primary-foreground); }
@media (max-width: 720px) { .gr-nav-links { display: none; } }

/* ---- hero: the sign-in card ------------------------------------------------ */
.herowrap { padding: 4px 18px 18px; }
.herocard {
  max-width: 1280px; margin: 0 auto;
  height: min(760px, calc(100vh - 96px)); min-height: 620px;
  display: grid; grid-template-columns: minmax(380px, 5fr) 7fr;
  border-radius: var(--radius-panel); overflow: hidden; background: var(--surface); padding: 10px;
}
.side { display: flex; flex-direction: column; padding: 30px 46px; }
.side .sidebody { flex: 1; display: flex; flex-direction: column; justify-content: center; max-width: 420px; width: 100%; margin: 0 auto; }
.side .gr-status { align-self: flex-start; background: var(--background); margin-bottom: 22px; }
.side h1 { font-size: 44px; line-height: 1.07; font-weight: 700; letter-spacing: -1.32px; color: var(--foreground-strong); margin-bottom: 14px; }
.lede { color: var(--muted-foreground); font-size: 15px; line-height: 23px; margin-bottom: 28px; }

.joinbox:focus { outline: none; }
.field { position: relative; margin-bottom: 12px; }
.field > svg { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; color: var(--muted-foreground); pointer-events: none; }
/* The field is the page grey inside the card: one fill step, no border. */
.field input {
  width: 100%; height: 52px; padding: 0 16px 0 42px; border: 0; border-radius: 16px;
  background: var(--background); color: var(--foreground); font: inherit; font-size: 15px;
}
.field input::placeholder { color: var(--muted-foreground); }
.field input:focus-visible { outline: 2px solid transparent; box-shadow: var(--focus-ring); }
.field input[aria-invalid="true"] { box-shadow: 0 0 0 2px var(--destructive); }
.joinform .gr-btn-block { height: 52px; font-size: 15px; }
.joinform .gr-btn[aria-busy="true"] { opacity: .7; cursor: progress; transform: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.formmsg { margin-top: 12px; font-size: 14px; line-height: 20px; color: var(--destructive); }
.formmsg.is-info { color: var(--muted-foreground); padding: 10px 14px; border-radius: 14px; background: var(--background); }
.note { margin-top: 14px; font-size: 13px; line-height: 20px; color: var(--muted-foreground); }
.note a { color: var(--foreground); text-decoration: underline; text-decoration-color: var(--ring); text-underline-offset: 2px; }
.note a:hover { text-decoration-color: currentColor; }

.joined { padding: 22px; border-radius: var(--radius-card); background: var(--background); }
.joined-title { font-size: 22px; line-height: 28px; font-weight: 700; letter-spacing: -.6px; color: var(--foreground-strong); display: flex; align-items: center; gap: 10px; }
.joined-title::before { content: ""; width: 8px; height: 8px; border-radius: var(--radius-full); background: var(--success); flex: none; }
.joined-text { margin-top: 6px; font-size: 14px; line-height: 22px; color: var(--muted-foreground); }
.followup { margin-top: 18px; }
.followup fieldset { border: 0; padding: 0; margin: 0; }
.followup legend { padding: 0; margin-bottom: 10px; font-size: 13px; line-height: 20px; color: var(--muted-foreground); }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choices label { position: relative; }
.choices input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choices span { display: inline-block; padding: 8px 15px; border-radius: var(--radius-full); background: var(--surface);
  font-size: 13px; line-height: 20px; font-weight: 600; color: var(--foreground);
  transition: background-color .3s cubic-bezier(.76,0,.24,1), color .3s cubic-bezier(.76,0,.24,1); }
.choices input:checked + span { background: var(--primary); color: var(--primary-foreground); }
.choices input:focus-visible + span { box-shadow: var(--focus-ring); }
.followup-done { margin-top: 12px; font-size: 13px; color: var(--muted-foreground); }

/* The picture: text drawn by art.js, sized to fit this panel. */
.art {
  background: var(--background); border-radius: 28px; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.art pre {
  margin: 0; color: var(--art-fg); user-select: none; font-size: 11px; line-height: 1.15;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.art #banner { margin-bottom: 9.2em; }   /* eight empty lines above the computer */
.art .g1 { color: var(--art-g1); }       /* banner shading, top to bottom: faint → strong */
.art .g2 { color: var(--art-g2); }
.art .kit { color: var(--art-accent); }
.art .kit.g1 { opacity: .45; }
.art .kit.g2 { opacity: .75; }

@media (max-width: 900px) {
  .herowrap { padding: 4px 12px 12px; }
  .herocard { grid-template-columns: 1fr; height: auto; min-height: 0; border-radius: 28px; }
  .side { padding: 30px 12px 26px; }
  .side h1 { font-size: 34px; letter-spacing: -1px; }
  /* Unlike the sign-in page, the picture stays on a phone: it is the title. */
  .art { height: 300px; border-radius: 22px; }
}

/* ---- sections -------------------------------------------------------------- */
.band { max-width: 1076px; margin: 0 auto; padding: var(--space-80) 18px; }
.panel { margin: 0 18px; }
.panel > * { max-width: 1040px; margin-left: auto; margin-right: auto; }
.gr-sechead-title { color: var(--foreground-strong); }
.gr-sechead-sub { max-width: 420px; }
@media (max-width: 720px) {
  .band { padding: 56px 16px; }
  .panel { margin: 0 8px; }
  .gr-panel { padding: 56px 16px; border-radius: 28px; }
  .gr-sechead-title { font-size: 30px; line-height: 36px; letter-spacing: -.9px; }
}

.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 40px; }
.grid4 .gr-card { padding: 24px; gap: 10px; }
.num { font-size: 13px; font-weight: 700; color: var(--muted-foreground); font-variant-numeric: tabular-nums; margin-bottom: 18px; }
@media (max-width: 960px) { .grid4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid4 { grid-template-columns: 1fr; } }

.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 40px; }
.feature { display: flex; flex-direction: column; gap: 10px; padding: 26px; border-radius: var(--radius-feature); background: var(--background); }
.facts { list-style: none; margin: auto 0 0; padding: 14px 0 0; display: flex; flex-direction: column; gap: 6px; }
.facts li { font-size: 13px; line-height: 20px; color: var(--foreground); display: flex; gap: 8px; }
.facts li::before { content: "→"; color: var(--muted-foreground); }
@media (max-width: 860px) { .grid3 { grid-template-columns: 1fr; } }

/* How it works: steps next to the real code. */
.how { display: grid; grid-template-columns: 1fr 1.1fr; gap: 12px; margin-top: 40px; align-items: stretch; }
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; counter-reset: step; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 36px 1fr; column-gap: 12px; padding: 18px 20px;
  border-radius: var(--radius-card); background: var(--surface); }
.steps li::before { content: counter(step); grid-row: span 2; width: 32px; height: 32px; border-radius: var(--radius-full);
  display: grid; place-items: center; background: var(--background); font-size: 13px; font-weight: 700; }
.steps b { font-size: 16px; line-height: 22px; color: var(--foreground); }
.steps span { font-size: 14px; line-height: 22px; color: var(--muted-foreground); }
/* The code block stays dark in both themes, like an editor. Its colours are
   Graphite's dark set. */
.code { margin: 0; padding: 18px 22px 22px; border-radius: var(--radius-card); background: #232323; color: #efefef; overflow-x: auto; }
[data-theme="dark"] .code { background: #1b1b1b; }   /* one step darker than the dark page */
.code figcaption { font-size: 12px; font-weight: 600; color: #9d9d9d; margin-bottom: 12px; }
.code pre { margin: 0; font: 13.5px/1.65 ui-monospace, SFMono-Regular, Menlo, monospace; }
.code .k { color: #efefef; font-weight: 700; }
.code .t { color: #f0a04b; }
.code .s { color: #b4b4b4; }
.code .c { color: #8a8a8a; }
@media (max-width: 860px) { .how { grid-template-columns: 1fr; } }

/* Pricing, on a dark panel. In the dark theme the page is already #232323, so
   the panel steps one fill darker to stay a separate block. */
[data-theme="dark"] .gr-panel-dark[data-theme="dark"] { background: #1b1b1b; }
.gr-price { vertical-align: 4px; }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 40px; }
.cmp { display: flex; flex-direction: column; gap: 6px; padding: 22px 24px; border-radius: var(--radius-card); background: var(--surface-muted); }
.cmp.is-us { background: var(--surface); }
.cmp-label { font-size: 13px; line-height: 18px; color: var(--muted-foreground); }
.cmp-value { font-size: 18px; line-height: 25px; font-weight: 700; letter-spacing: -.4px; color: var(--foreground); }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 12px; }
.plan { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 26px; border-radius: var(--radius-feature); background: var(--surface); }
.plan .gr-tag { position: absolute; top: 24px; right: 24px; background: var(--primary); color: var(--primary-foreground); }
.plan .price { font-size: 40px; line-height: 44px; font-weight: 700; letter-spacing: -1.2px; color: var(--foreground); margin-top: 6px; }
.plan .price small { font-size: 15px; font-weight: 500; letter-spacing: 0; color: var(--muted-foreground); }
.plan .for { font-size: 14px; line-height: 22px; color: var(--muted-foreground); min-height: 44px; }
.plan ul { list-style: none; margin: 10px 0 0; padding: 16px 0 0; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 8px; }
.plan li { font-size: 14px; line-height: 21px; color: var(--foreground); display: flex; gap: 8px; }
.plan li::before { content: "→"; color: var(--muted-foreground); }
.fine { margin-top: 20px; text-align: center; font-size: 13px; line-height: 20px; color: var(--muted-foreground); }
@media (max-width: 860px) { .compare, .plans { grid-template-columns: 1fr; } .plan .for { min-height: 0; } }

/* FAQ: Graphite FaqItem on <details>. */
.faqs { max-width: 560px; margin: 40px auto 0; display: flex; flex-direction: column; gap: var(--space-8); }
.gr-faq { padding: var(--space-18) 22px; }
.gr-faq-q { list-style: none; }
.gr-faq-q::-webkit-details-marker { display: none; }
.gr-faq-q:focus-visible { box-shadow: var(--focus-ring); }
.gr-faq[open] .gr-chevron { transform: rotate(180deg); }
.gr-faq-a { max-width: 480px; }

.final { margin-bottom: 18px; }
.final-cta { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.final .gr-btn-secondary { background: var(--background); }

.foot { max-width: 1076px; margin: 0 auto; padding: 28px 18px 40px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px;
  font-size: 13px; line-height: 20px; color: var(--muted-foreground); }
.themebtn { margin-left: auto; padding: 6px 14px; border: 0; border-radius: var(--radius-full); background: var(--surface);
  color: var(--foreground); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.themebtn:focus-visible { outline: 2px solid transparent; box-shadow: var(--focus-ring); }
