/* Blob Studio site. Figma design system (noslopUI) at marketing scale.
   Tokens: docs/design-system.md. Colour lives only on the blobs. */

:root {
  --ink: #000;
  --ink-hover: #262626;
  --ink-muted: #666;
  --page: #fff;
  --wash: #f5f5f5;
  --wash-strong: #ebebeb;
  --divider: #d6d6d6;
  --canvas: #e5e5e5;
  --blue-deep: #0c74d4;
  --error: #972121;
  --ease: cubic-bezier(0.2, 0, 0, 1);
  --menu: 0 2px 14px rgba(0, 0, 0, 0.15), 0 0 0 0.5px rgba(0, 0, 0, 0.2);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 400 16px/1.45 Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p { margin: 0; }
a { color: inherit; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--divider); transition: text-decoration-color 80ms var(--ease); }
a:hover { text-decoration-color: var(--ink); }
:focus-visible { outline: 2px solid var(--blue-deep); outline-offset: 2px; }
code, .mono { font-family: "Roboto Mono", ui-monospace, Menlo, monospace; }

[class*="grid"] > *, .split > *, .plans > * { min-width: 0; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--ink); color: var(--page); padding: 8px 12px; border-radius: 5px; z-index: 10; }

/* Type */
.display { font-size: clamp(40px, 6vw, 56px); line-height: 1; letter-spacing: -0.022em; font-weight: 400; }
h1 { font-size: clamp(34px, 5vw, 44px); line-height: 1.1; letter-spacing: -0.015em; font-weight: 400; }
h2 { font-size: clamp(26px, 3.4vw, 30px); line-height: 1.2; letter-spacing: -0.022em; font-weight: 400; }
h3 { font-size: 16px; line-height: 1.4; font-weight: 500; }
.lede { font-size: 18px; line-height: 1.45; color: var(--ink-muted); max-width: 34em; }
.muted { color: var(--ink-muted); }
.label { font-size: 11px; line-height: 1.45; font-weight: 500; color: var(--ink-muted); }

/* Nav */
.nav { height: 64px; display: flex; align-items: center; justify-content: space-between; }
.brand { font-size: 16px; font-weight: 500; text-decoration: none; letter-spacing: -0.01em; }
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links a:not(.btn) { font-size: 14px; text-decoration: none; color: var(--ink-muted); }
.nav-links a:not(.btn):hover, .nav-links a[aria-current] { color: var(--ink); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 24px; border-radius: 8px;
  font: 500 15px/1 Inter, system-ui, sans-serif; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: background-color 80ms var(--ease), color 80ms var(--ease);
}
.btn-primary { background: var(--ink); color: var(--page); }
.btn-primary:hover { background: var(--ink-hover); }
.btn-secondary { background: var(--page); color: var(--ink); border-color: var(--ink); }
.btn-secondary:hover { background: #e6e6e6; }
.btn-tinted { background: var(--wash); color: var(--ink); border-color: var(--wash); }
.btn-tinted:hover { background: #ddd; border-color: #ddd; }
.btn-sm { height: 36px; padding: 0 16px; font-size: 14px; }
.btn[disabled] { opacity: 0.4; cursor: default; }

/* Sections */
section { padding: 96px 0; }
.rule { border-top: 1px solid var(--divider); }
.hero { padding: 40px 0 96px; }
.hero-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 64px; align-items: center; }
.hero .display { margin-bottom: 24px; }
.hero .lede { margin-bottom: 40px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.fineprint { margin-top: 16px; font-size: 14px; color: var(--ink-muted); }

/* The canvas: the only place colour lives */
.canvas {
  background: var(--canvas); border-radius: 13px; padding: 40px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: center;
}
.canvas svg { width: 100%; height: auto; display: block; }
.canvas .tall { grid-row: span 2; }
.canvas-wide { grid-column: span 2; }

/* Feature rows */
.split { display: grid; grid-template-columns: 1fr 2fr; gap: 64px; }
.rows > div { display: grid; grid-template-columns: 220px 1fr; gap: 24px; padding: 24px 0; border-top: 1px solid var(--divider); }
.rows > div:last-child { border-bottom: 1px solid var(--divider); }
.rows p { color: var(--ink-muted); max-width: 36em; }

/* Plans */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 40px; }
.plan { background: var(--wash); border-radius: 13px; padding: 40px; display: flex; flex-direction: column; }
.plan.pro { background: var(--page); box-shadow: inset 0 0 0 1px var(--ink); }
.plan .price { font-size: 44px; line-height: 1.1; letter-spacing: -0.015em; margin: 16px 0 4px; }
.plan .price small { font-size: 14px; color: var(--ink-muted); letter-spacing: 0; margin-left: 4px; }
.plan ul { list-style: none; padding: 0; margin: 24px 0 40px; display: grid; gap: 12px; flex: 1; align-content: start; }
.plan li { display: grid; grid-template-columns: 20px 1fr; gap: 8px; font-size: 15px; }
.plan li svg { width: 20px; height: 20px; margin-top: 1px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.badge { display: inline-block; background: var(--wash-strong); border-radius: 2px; padding: 1px 8px; font-size: 11px; font-weight: 500; }
.status { margin-top: 12px; min-height: 20px; font-size: 14px; color: var(--error); }

/* FAQ */
.faq details { border-top: 1px solid var(--divider); }
.faq details:last-child { border-bottom: 1px solid var(--divider); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 0; font-weight: 500; display: flex; justify-content: space-between; gap: 24px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 400; color: var(--ink-muted); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding: 0 0 20px; color: var(--ink-muted); max-width: 42em; }

/* Forms */
.field { display: grid; gap: 4px; margin-bottom: 12px; }
.field input, .field textarea {
  width: 100%; background: var(--wash); border: 1px solid transparent; border-radius: 5px;
  padding: 8px 12px; font: 400 15px/1.4 Inter, system-ui, sans-serif; color: var(--ink);
  transition: border-color 80ms var(--ease);
}
.field input { height: 40px; }
.field textarea { min-height: 112px; resize: vertical; }
.field input:hover, .field textarea:hover { border-color: var(--divider); }
.field input:focus, .field textarea:focus { outline: none; border-color: #0d99ff; }
.form-note { font-size: 14px; min-height: 20px; margin-top: 8px; }
.form-note.err { color: var(--error); }

/* Success */
.keybox { background: var(--wash); border-radius: 13px; padding: 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.keybox code { font-size: 22px; letter-spacing: 0.04em; user-select: all; }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 40px 1fr; padding: 16px 0; border-top: 1px solid var(--divider); }
.steps li::before { content: counter(s); font-family: "Roboto Mono", monospace; font-size: 14px; color: var(--ink-muted); padding-top: 2px; }

/* Prose pages */
.prose { max-width: 40em; }
.prose h2 { margin: 40px 0 12px; font-size: 22px; }
.prose p, .prose li { color: #262626; margin-bottom: 12px; }
.prose ul { padding-left: 20px; }

/* Footer */
.footer { border-top: 1px solid var(--divider); padding: 40px 0 64px; font-size: 14px; color: var(--ink-muted); }
.footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.footer nav { display: flex; gap: 24px; }

@media (max-width: 860px) {
  section { padding: 64px 0; }
  .hero { padding-bottom: 64px; }
  .hero-grid, .split, .plans { grid-template-columns: 1fr; gap: 40px; }
  .rows > div { grid-template-columns: 1fr; gap: 8px; }
  .canvas { padding: 24px; gap: 16px; }
  .plans { gap: 16px; margin-top: 24px; }
  .plan { padding: 24px; }
  .nav-links a:not(.btn):not([data-keep]) { display: none; }
}
