:root {
  --canvas: #fbfaf9;
  --canvas-deep: #f4f1ea;
  --ink: #171717;
  --body: #4d4d4d;
  --hairline: #e6e1d8;

  --band: #0b0714;
  --on-band: #ffffff;
  --on-band-body: #c9c3d6;

  --accent: #7c28c9;
  --accent-hot: #ff2d78;
  --marker: #ffd84d;
  --marker-soft: #ffefc2;
  --ok: #2fbf71;
  --on-accent: #ffffff;

  --font-display: "Bricolage Grotesque", system-ui, sans-serif;
  --font-sans: system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, monospace;

  --edge: var(--ink);
  --offset-sm: 3px 3px 0 var(--edge);
  --offset-md: 5px 5px 0 var(--edge);
  --border-strong: 2px solid var(--edge);
  --radius-md: 10px;
  --radius-pill: 100px;
  --measure: 44rem;
}

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/fonts/bricolage-grotesque-latin.woff2") format("woff2");
  font-weight: 700 800;
  font-style: normal;
  font-display: swap;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
}

body {
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
}

img,
svg {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--accent);
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.site-header {
  position: sticky;
  top: 0.75rem;
  z-index: 20;
  width: min(720px, calc(100% - 2rem));
  margin-inline: auto;
  border-radius: 999px;
  border: 1px solid rgba(230, 225, 216, 0.9);
  background: rgba(251, 250, 247, 0.78);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: 0 10px 30px rgba(23, 23, 23, 0.08);
}

.site-header-inner {
  padding: 0.4rem 0.4rem 0.4rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.wordmark-mark {
  flex: none;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.header-nav .btn-primary {
  font-size: 0.875rem;
  padding: 0.55rem 1.1rem;
}

/* :not(.btn-primary) keeps this off the CTA, whose white-on-violet is the only
   pairing here that clears the contrast floor. */
.header-nav a:not(.btn-primary) {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}

.header-nav a:hover {
  color: var(--accent);
}

.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 700;
  text-decoration: none;
  padding: 0.65rem 1.4rem;
  border: var(--border-strong);
  border-radius: var(--radius-pill);
  box-shadow: var(--offset-sm);
  transition: translate 120ms ease, box-shadow 120ms ease;
}

.btn-primary:hover {
  translate: -2px -2px;
  box-shadow: var(--offset-md);
}

.page-wrap {
  max-width: var(--measure);
  margin-inline: auto;
  padding: 2.5rem 1.5rem 4rem;
}

.crumbs {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--body);
  margin-bottom: 0.9rem;
}

.crumbs a {
  color: var(--accent);
  text-decoration: none;
}

.crumbs a:hover {
  text-decoration: underline;
}

h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 5.2vw, 3rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
  text-wrap: balance;
  margin-bottom: 1rem;
}

.lede {
  font-size: 1.15rem;
  color: var(--body);
  padding-bottom: 1.5rem;
  border-bottom: 2px solid var(--hairline);
  margin-bottom: 2rem;
}

.lede strong {
  color: var(--ink);
}

article h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.45rem, 3.4vw, 1.95rem);
  line-height: 1.14;
  letter-spacing: -0.02em;
  margin: 2.75rem 0 1rem;
  text-wrap: balance;
}

article h3 {
  font-weight: 700;
  font-size: 1.15rem;
  margin: 2rem 0 0.5rem;
}

article p {
  color: var(--body);
  margin-bottom: 1.1rem;
}

article ul,
article ol {
  color: var(--body);
  margin: 0 0 1.1rem;
  padding-left: 1.4rem;
}

article li {
  margin-bottom: 0.45rem;
}

article strong {
  color: var(--ink);
}

.marker {
  background: linear-gradient(transparent 55%, var(--marker) 55%);
}

figure {
  margin: 2rem 0;
}

figure > svg {
  display: block;
  width: 100%;
  border: var(--border-strong);
  border-radius: var(--radius-md);
  box-shadow: var(--offset-md);
  background: #fff;
}

figcaption {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--body);
  margin-top: 0.75rem;
}

.callout {
  border: var(--border-strong);
  border-radius: var(--radius-md);
  box-shadow: var(--offset-sm);
  background: var(--marker-soft);
  padding: 1.1rem 1.25rem;
  margin: 1.75rem 0;
}

.callout p {
  margin: 0;
  color: var(--ink);
}

.spec-table {
  overflow-x: auto;
  margin: 2rem 0;
  border: var(--border-strong);
  border-radius: var(--radius-md);
  box-shadow: var(--offset-md);
  background: #fff;
}

.spec-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  min-width: 540px;
}

.spec-table th {
  font-family: var(--font-display);
  font-weight: 700;
  text-align: left;
  background: var(--canvas-deep);
  border-bottom: var(--border-strong);
  padding: 0.75rem 1rem;
}

.spec-table td {
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--hairline);
  color: var(--body);
  vertical-align: top;
}

.spec-table tr:last-child td {
  border-bottom: none;
}

.spec-table td:first-child {
  color: var(--ink);
  font-weight: 600;
}

.yes {
  color: var(--ok);
  font-weight: 700;
}

.no {
  color: var(--accent-hot);
  font-weight: 700;
}

.plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.plan {
  border: var(--border-strong);
  border-radius: var(--radius-md);
  box-shadow: var(--offset-md);
  background: #fff;
  padding: 1.5rem;
}

.plan-featured {
  background: var(--marker-soft);
}

.plan h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin: 0 0 0.25rem;
}

.plan-price {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.2rem;
  line-height: 1.1;
  color: var(--ink);
  margin: 0.5rem 0 0.15rem;
}

.plan-price span {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--body);
}

.plan-annual {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--body);
  margin: 0 0 1rem;
}

.plan ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--body);
  font-size: 0.95rem;
}

.plan li {
  margin-bottom: 0.35rem;
}

.faq h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
  margin: 2rem 0 0.5rem;
}

.link-list {
  border: var(--border-strong);
  border-radius: var(--radius-md);
  box-shadow: var(--offset-sm);
  background: #fff;
  padding: 1.25rem 1.25rem 1.25rem 2.4rem;
  margin: 1.75rem 0;
}

.link-list li {
  margin-bottom: 0.5rem;
}

.link-list li:last-child {
  margin-bottom: 0;
}

.cta-band {
  border: var(--border-strong);
  border-radius: var(--radius-md);
  box-shadow: var(--offset-md);
  background: var(--band);
  color: var(--on-band);
  padding: 2rem 1.75rem;
  margin: 3rem 0 1rem;
  text-align: center;
}

.cta-band h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.4rem, 3.4vw, 1.9rem);
  line-height: 1.14;
  color: var(--on-band);
  margin: 0 0 0.5rem;
}

.cta-band p {
  color: var(--on-band-body);
  margin-bottom: 1.25rem;
}

/* The accent violet is a link colour for light backgrounds. On the dark band it
   drops to 2.85:1, so links there take the band's own foreground. */
.cta-band p a:not(.btn-primary) {
  color: var(--on-band);
  text-decoration: underline;
}

.site-footer {
  border-top: var(--border-strong);
  background: var(--canvas-deep);
  padding: 1.5rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--body);
}

.site-footer a {
  color: var(--ink);
}

.fig text {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
}

.fig .lbl {
  font-size: 13px;
  font-weight: 700;
}

.fig .sm {
  font-size: 11px;
  fill: #4d4d4d;
}

@media (max-width: 640px) {
  .header-nav {
    gap: 0.9rem;
  }

  .btn-primary {
    padding: 0.55rem 1.1rem;
    font-size: 0.9rem;
  }
}

/* Two word labels break across lines in the bar long before it runs out of
   width, and a wrapped link pushes into the wordmark. */
.header-nav a:not(.btn-primary) {
  white-space: nowrap;
}

@media (max-width: 480px) {
  .site-header-inner { padding-inline: 0.75rem 0.5rem; gap: 0.5rem; }
  .header-nav { gap: 0.4rem; }
  .header-nav a:not(.btn-primary) { font-size: 0.85rem; }
  .header-nav .btn-primary { padding: 0.5rem 0.6rem; font-size: 0.85rem; white-space: nowrap; }
  .wordmark { font-size: 1.05rem; }
  /* Five items do not fit a phone bar at full length. The CTA drops one word
     rather than the bar dropping a link or gaining a scrollbar. */
  .cta-trim { display: none; }
}

/* Narrower than this the bar cannot hold five items without shrinking the type
   past reading size, so the blog link steps out. It is in every footer. */
@media (max-width: 374px) {
  .header-nav a[href="/blog/"] { display: none; }
  .header-nav .btn-primary { padding-inline: 0.45rem; }
}
