/* ─────────────────────────────────────────────────────────────────────
   inlay — home (dark)
   Palette, type and spacing lifted from the design file.
   ───────────────────────────────────────────────────────────────────── */

:root {
  /* surfaces */
  --bg:            #141019;
  --surface:       #1A1522;
  --surface-2:     #201B2A;
  --surface-3:     #292234;
  --surface-deep:  #12101A;
  --canvas:        #191423;
  --dock:          #1c1d22;

  /* ink */
  --ink:      #F5F2F8;
  --ink-2:    #CAC3D4;
  --ink-3:    #948DA2;
  --ink-4:    #6A6379;

  /* accents */
  --lilac:        #DDBBF1;
  --lilac-text:   #CBB4DD;
  --lilac-solid:  #D2B9E4;
  --lilac-hover:  #E4D0F0;
  --blue:         #9DB0E4;
  --blue-rgb:     124, 151, 214;
  --green:        #7FC7B2;
  --green-rgb:    98, 179, 157;
  --amber:        #FFB020;
  --amber-text:   #FFD86B;

  /* hairlines built on the lilac tint */
  --line:      rgba(221, 187, 241, 0.08);
  --line-2:    rgba(221, 187, 241, 0.09);
  --line-3:    rgba(221, 187, 241, 0.10);
  --tint:      rgba(221, 187, 241, 0.04);

  --sans: "Instrument Sans", system-ui, -apple-system, sans-serif;
  --serif: Newsreader, Georgia, serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --shadow-panel: 0 30px 80px -42px rgba(0, 0, 0, 0.85);
  --gutter: 32px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

a { color: var(--lilac-text); text-decoration: none; }
a:hover { color: var(--lilac-hover); }

img { max-width: 100%; }

::selection { background: var(--lilac-solid); color: #241C2C; }

:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

@keyframes inlayCaret { 0%, 45% { opacity: 1; } 55%, 100% { opacity: 0; } }
@keyframes inlayPulse { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }

/* ── Reveal on scroll ───────────────────────────────────────────────
   Deliberately small: 10px of travel and a fade, once, on the way in. The
   page is long and mostly text, so anything more turns reading it into
   waiting for it.

   The initial hidden state is applied by JS (`html.js`), never by CSS alone
   — with the stylesheet loaded and the script blocked, every section would
   otherwise be invisible forever. */
.js .reveal {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .55s cubic-bezier(.22, .61, .36, 1),
              transform .55s cubic-bezier(.22, .61, .36, 1);
  /* Set once by JS per sibling, so the stagger stays declarative rather than
     inline-styled and reset on every frame. */
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
.js .reveal.is-in {
  opacity: 1;
  transform: none;
}
/* Once it has arrived: no promoted layer left over on a long page, and the
   stagger delay must not apply to any later transition on the element. */
.js .reveal.is-done {
  will-change: auto;
  transition-delay: 0ms;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  /* Not just "instant" — never hidden in the first place. */
  .js .reveal { opacity: 1 !important; transform: none !important; }
}

/* ── Layout primitives ─────────────────────────────────────────────── */

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
.wrap--wide { max-width: 1320px; }
.wrap--narrow { max-width: 900px; }

.section { padding: 80px 0; }
.section--demo { padding: 16px 0 100px; }
.section--editing { padding: 20px 0 96px; }
.section--cta { padding: 40px 0 110px; }

.measure { max-width: 760px; }

/* ── Shared type ───────────────────────────────────────────────────── */

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.kicker--amber { color: var(--amber-text); }
.kicker--green { color: var(--green); }
.kicker--blue { color: var(--blue); }

.h2 {
  margin: 18px 0 0;
  font-weight: 400;
  font-size: clamp(29px, 3.3vw, 44px);
  line-height: 1.07;
  letter-spacing: -0.025em;
}
.h2--sm { font-size: clamp(28px, 3vw, 40px); line-height: 1.08; }
.h2--center { margin: 0 0 32px; text-align: center; }
.h2--index { margin: 18px 0 40px; }

.lede {
  margin: 18px 0 0;
  font-size: 19px;
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 58ch;
}
.lede--tight { margin: 20px 0 0; font-size: 18px; max-width: 52ch; }
.lede--sm { margin: 20px 0 0; font-size: 17px; max-width: none; }

strong { font-weight: 600; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink-2);
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: rgba(221, 187, 241, 0.05);
}
.eyebrow--plain { padding: 8px 15px; background: none; }
.eyebrow--bright { border-color: rgba(221, 187, 241, 0.20); background: none; }
.eyebrow__mark { color: var(--lilac-text); }

/* ── Buttons ───────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 13px 14px 13px 24px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  transition: transform .2s ease, filter .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-1px); }

.btn--sm { gap: 10px; padding: 9px 10px 9px 18px; font-size: 13.5px; }

.btn--light { background: var(--ink); color: #1A1522; }
.btn--light:hover { color: #1A1522; filter: brightness(1.04); }

.btn--lilac { background: var(--lilac-solid); color: #241C2C; }
.btn--lilac:hover { color: #241C2C; filter: brightness(1.05); }

.btn--ghost { border: 1px solid rgba(221, 187, 241, 0.26); color: var(--ink); }
.btn--ghost:hover { color: var(--ink); background: rgba(221, 187, 241, 0.06); }
.btn--ghost-bright { border-color: rgba(221, 187, 241, 0.30); }

.btn__arrow {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(221, 187, 241, 0.10);
  font-size: 13px;
}
.btn--light .btn__arrow { background: #1A1522; color: var(--ink); }
.btn--sm .btn__arrow { width: 22px; height: 22px; font-size: 11px; }
.btn__arrow--dark { background: rgba(36, 28, 44, 0.16); color: #241C2C; }

/* ── Nav ───────────────────────────────────────────────────────────── */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 60;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background .3s, border-color .3s, backdrop-filter .3s;
}
.nav.is-scrolled {
  background: rgba(20, 16, 25, 0.78);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--line);
}
.nav__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav__logo { display: flex; align-items: center; }
.nav__logo img { height: 44px; width: auto; display: block; }
.nav__links {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 14.5px;
}
.nav__links a { color: var(--ink-2); }
.nav__links a:hover { color: var(--ink); }

/* ── Hero ──────────────────────────────────────────────────────────── */

.hero {
  position: relative;
  padding: 150px 0;
  text-align: center;
  overflow: hidden;
}
.hero__ring {
  position: absolute;
  top: -30vw;
  left: 50%;
  transform: translateX(-50%);
  width: 96vw;
  height: 96vw;
  border-radius: 50%;
  pointer-events: none;
  border: 7vw solid transparent;
  border-left-color: rgba(221, 187, 241, 0.28);
  border-top-color: rgba(124, 151, 214, 0.20);
  border-bottom-color: rgba(98, 179, 157, 0.22);
  border-right-color: rgba(221, 187, 241, 0.05);
  background:
    radial-gradient(40% 40% at 12% 42%, rgba(221, 187, 241, 0.15), transparent 70%),
    radial-gradient(34% 34% at 24% 78%, rgba(124, 151, 214, 0.16), transparent 70%);
  filter: blur(48px);
}
.hero__fade {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 220px;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, var(--bg) 88%);
}
.hero__dots {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(221, 187, 241, 0.08) 1px, transparent 1.4px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(120% 78% at 50% 6%, #000 24%, transparent 72%);
  mask-image: radial-gradient(120% 78% at 50% 6%, #000 24%, transparent 72%);
}
.hero__inner {
  position: relative;
  z-index: 1;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.hero__title {
  margin: 24px auto 0;
  font-weight: 400;
  font-size: clamp(42px, 6vw, 84px);
  line-height: 1.03;
  letter-spacing: -0.03em;
  text-wrap: balance;
  max-width: 8.3em;
  width: fit-content;
  padding: 0 2px;
  outline: 1.5px dashed var(--blue);
  outline-offset: 4px;
  border-radius: 5px;
}
.hero__title em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--lilac);
}
.caret {
  display: inline-block;
  width: 3px;
  height: 0.82em;
  margin-left: 0.08em;
  vertical-align: -0.04em;
  background: var(--blue);
  animation: inlayCaret 1.05s step-end infinite;
}
.hero__sub {
  margin: 26px auto 0;
  max-width: 62ch;
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.6;
  color: var(--ink-2);
  text-wrap: pretty;
}
.hero__actions {
  margin-top: 36px;
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero__note {
  margin: 22px auto 0;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-4);
}

/* ── Panels ────────────────────────────────────────────────────────── */

.panel {
  border-radius: 28px;
  border: 1px solid var(--line-2);
  padding: clamp(20px, 3vw, 40px);
  background: linear-gradient(180deg, var(--surface-3), var(--surface));
  box-shadow: var(--shadow-panel);
}
.panel--glow {
  background:
    radial-gradient(120% 90% at 50% -10%, rgba(221, 187, 241, 0.09), transparent 60%),
    linear-gradient(180deg, var(--surface-3), var(--surface));
}
.panel--split {
  padding: clamp(32px, 4.4vw, 60px);
  background:
    radial-gradient(120% 110% at 0% 0%, rgba(221, 187, 241, 0.10), transparent 46%),
    linear-gradient(180deg, var(--surface-3), var(--surface));
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
  gap: 56px;
  align-items: center;
}
.panel--dev {
  padding: clamp(32px, 4.4vw, 56px);
  background: linear-gradient(180deg, #1C1725, #171320);
}

/* ── Demo ──────────────────────────────────────────────────────────── */

.demo__head { text-align: center; max-width: 720px; margin: 6px auto 30px; }
.demo__head h2 {
  margin: 18px 0 14px;
  font-weight: 400;
  font-size: clamp(28px, 3.2vw, 42px);
  line-height: 1.08;
  letter-spacing: -0.025em;
}
.demo__head p { margin: 0; color: var(--ink-2); font-size: 17px; line-height: 1.6; }

.browser {
  border-radius: 18px;
  border: 1px solid var(--line-2);
  overflow: hidden;
  background: var(--surface);
}
.browser__bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}
.dots { display: flex; gap: 6px; }
.dots span { width: 10px; height: 10px; border-radius: 50%; background: #3A3346; display: block; }
.browser__url {
  flex: 1;
  min-width: 0;
  text-align: center;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-4);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* The demo document. Tall enough that the editor's own tool windows and its
   responsive-preview frame — which sizes itself against the viewport it's in —
   have somewhere to go. */
.browser__frame {
  display: block;
  width: 100%;
  height: clamp(560px, 78vh, 820px);
  border: 0;
  background: #191423;
  color-scheme: dark;
}

/* ── Demo: inert on phones, full screen on demand ────────────────────
   The frame is a scrolling document with an editor in it that treats drags
   as its own, so on a phone a thumb landing anywhere on it takes the page
   scroll with it and the visitor is stuck. Below 720px the frame stops
   taking pointer events entirely and the shield sits over it, so the page
   scrolls past; opening it full screen is the way in, and the only place
   the demo is actually usable on a phone.

   Desktop is untouched — there is room for the demo there and a mouse can
   leave it. */

.browser__stage { position: relative; }

/* Off until they are wanted: the shield below 720px, Close only once open. */
.browser__shield,
.browser__close { display: none; }

@media (max-width: 720px) {
  .browser__frame { height: 420px; pointer-events: none; }

  .browser__shield {
    display: flex;
    position: absolute;
    inset: 0;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding: 0 20px 22px;
    text-align: center;
    /* Clear at the top so the demo is still visibly a real site, weighted at
       the bottom so the label has something to sit on. */
    background: linear-gradient(180deg, rgba(20, 16, 25, 0) 30%, rgba(20, 16, 25, 0.88) 100%);
  }
  .browser__shield-cta {
    display: inline-flex;
    align-items: center;
    padding: 12px 22px;
    border-radius: 999px;
    background: var(--ink);
    color: #1A1522;
    font-size: 14.5px;
    font-weight: 600;
  }
  .browser__shield-note {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-3);
  }
}

/* Fixed, not the Fullscreen API: iOS Safari grants that to video and almost
   nothing else, so the API would fail on the one platform this exists for. */
.browser.is-fullscreen {
  position: fixed;
  inset: 0;
  z-index: 200;
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  border: 0;
  border-radius: 0;
}
.browser.is-fullscreen .browser__bar {
  padding-top: calc(10px + env(safe-area-inset-top));
}
.browser.is-fullscreen .browser__stage { flex: 1; min-height: 0; }
.browser.is-fullscreen .browser__frame { height: 100%; pointer-events: auto; }
.browser.is-fullscreen .browser__shield { display: none; }

.browser.is-fullscreen .browser__close {
  display: inline-flex;
  align-items: center;
  /* inline-flex makes the label and the ✕ two flex items, so any whitespace
     between them in the markup collapses away — the gap has to be declared. */
  gap: 7px;
  flex: none;
  padding: 7px 14px;
  border: 1px solid var(--line-3);
  border-radius: 999px;
  background: rgba(221, 187, 241, 0.07);
  color: var(--ink);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
}
.browser.is-fullscreen .browser__close:hover {
  background: rgba(221, 187, 241, 0.14);
}

.demo__hint {
  margin: 16px auto 0;
  text-align: center;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-4);
}

/* ── Feature cards ─────────────────────────────────────────────────── */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 20px;
  margin-top: 48px;
}
.card {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 11px;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
}
.card--lilac { background: radial-gradient(130% 100% at 0% 0%, rgba(221, 187, 241, 0.06), transparent 46%), linear-gradient(180deg, var(--surface-2), var(--surface)); }
.card--blue  { background: radial-gradient(130% 100% at 0% 0%, rgba(var(--blue-rgb), 0.07), transparent 46%), linear-gradient(180deg, var(--surface-2), var(--surface)); }
.card--green { background: radial-gradient(130% 100% at 0% 0%, rgba(var(--green-rgb), 0.07), transparent 46%), linear-gradient(180deg, var(--surface-2), var(--surface)); }

.card h3 { margin: 0; font-size: 21px; font-weight: 500; letter-spacing: -0.015em; }
.card p { margin: 0; color: var(--ink-3); font-size: 15px; line-height: 1.55; }

.card__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-2);
  margin-bottom: 6px;
}
.card__icon--lilac { background: rgba(221, 187, 241, 0.07); color: var(--lilac-text); }
.card__icon--blue  { background: rgba(var(--blue-rgb), 0.10); color: var(--blue); }
.card__icon--green { background: rgba(var(--green-rgb), 0.10); color: var(--green); }
.card__icon--amber { background: rgba(255, 176, 32, 0.10); color: var(--amber-text); }

.card__tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.card__tag--lilac { color: var(--lilac-text); }
.card__tag--blue { color: var(--blue); }
.card__tag--green { color: var(--green); }

/* ── Draft rows ────────────────────────────────────────────────────── */

.rows { display: flex; flex-direction: column; gap: 12px; }
.row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px 20px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--tint);
}
.row__dot {
  flex: none;
  margin-top: 6px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 4px rgba(255, 176, 32, 0.14);
}
.row__icon { flex: none; margin-top: 4px; }
.row__icon--green { color: var(--green); }
.row__icon--blue { color: var(--blue); }
.row__icon--amber { color: var(--amber-text); }
.row__title { font-size: 16px; font-weight: 500; }
.row__text { font-size: 14px; color: var(--ink-3); margin-top: 3px; }

/* ── CMS ───────────────────────────────────────────────────────────── */

.cms__intro {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
  gap: 64px;
  align-items: start;
}
.cms__intro .lede { margin: 0; max-width: 56ch; }

.chips { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 26px; }
.chip {
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid var(--line-3);
  background: var(--tint);
  font-family: var(--mono);
  font-size: 11.5px;
  white-space: nowrap;
  color: var(--ink-2);
}

.cms__grid {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: 20px;
}

.collection {
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
}
.collection__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}
.collection__name { font-size: 15px; font-weight: 500; }
.collection__sort { font-family: var(--mono); font-size: 11px; color: var(--ink-4); }
.collection__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 20px;
  border-bottom: 1px solid rgba(221, 187, 241, 0.06);
  font-size: 15px;
  color: var(--ink-2);
}
.collection__row:last-child { border-bottom: 0; }

.badge {
  flex: none;
  padding: 4px 10px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 10.5px;
  white-space: nowrap;
}
.badge--live      { background: rgba(var(--green-rgb), 0.14); color: var(--green); }
.badge--edited    { background: rgba(255, 176, 32, 0.14); color: var(--amber-text); }
.badge--draft     { background: rgba(var(--blue-rgb), 0.16); color: var(--blue); }
.badge--scheduled { background: rgba(221, 187, 241, 0.07); color: var(--lilac-text); }

.note-card {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 26px;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.note-card h3 { margin: 0; font-size: 20px; font-weight: 500; letter-spacing: -0.015em; }
.note-card p { margin: 0; color: var(--ink-3); font-size: 15px; line-height: 1.55; }

/* ── Team ──────────────────────────────────────────────────────────── */

.mini-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(215px, 100%), 1fr));
  gap: 18px;
  margin-top: 44px;
}
.mini-card {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
}
.mini-card__icon { margin-bottom: 14px; }
.mini-card__icon--lilac { color: var(--lilac-text); }
.mini-card__icon--blue { color: var(--blue); }
.mini-card__icon--green { color: var(--green); }
.mini-card h3 { margin: 0 0 8px; font-size: 18px; font-weight: 500; }
.mini-card p { margin: 0; color: var(--ink-3); font-size: 14.5px; line-height: 1.55; }

/* ── Safety duo ────────────────────────────────────────────────────── */

.duo {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: 20px;
}
.big-card {
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 36px;
  background: var(--surface-2);
}
.big-card--green { background: radial-gradient(120% 100% at 0% 0%, rgba(var(--green-rgb), 0.10), transparent 42%), var(--surface-2); }
.big-card--blue  { background: radial-gradient(120% 100% at 0% 0%, rgba(var(--blue-rgb), 0.10), transparent 42%), var(--surface-2); }
.big-card--amber { background: radial-gradient(120% 100% at 0% 0%, rgba(255, 176, 32, 0.09), transparent 42%), var(--surface-2); }
.big-card .card__icon { margin-bottom: 16px; }
.big-card h3 { margin: 0 0 12px; font-size: 24px; font-weight: 500; letter-spacing: -0.015em; }
.big-card p { margin: 0; color: var(--ink-3); font-size: 15.5px; line-height: 1.6; }
/* A second paragraph in a big card. Only the size steps down: --ink-4 is this
   site's fine-print color and lands near 3:1 on this background, under the 4.5:1
   AA floor, which is not a trade to make on a paragraph someone has to read.
   Two classes so it outranks `.big-card p` without reaching for !important. */
.big-card .big-card__more { margin-top: 14px; font-size: 14.5px; }

/* ── Built on ──────────────────────────────────────────────────────
   Three stacked bands — what ships, what a site declares, what a site
   writes — then the Open Pattern case study as proof of the third. */

.h2 em { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--lilac); }

.layers {
  margin-top: 44px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.layer {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px 24px;
  border-left-width: 3px;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
}
.layer--lilac { border-left-color: var(--lilac-solid); }
.layer--blue  { border-left-color: var(--blue); margin-left: clamp(0px, 3vw, 36px); }
.layer--green { border-left-color: var(--green); margin-left: clamp(0px, 6vw, 72px); }
.layer__head { display: flex; flex-direction: column; gap: 3px; }
.layer__name { font-size: 18px; font-weight: 500; }
.layer__who {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.layer--lilac .layer__who { color: var(--lilac-text); }
.layer--blue .layer__who  { color: var(--blue); }
.layer--green .layer__who { color: var(--green); }
.layer__items { display: flex; flex-wrap: wrap; gap: 8px; }
.layer__items span {
  font-size: 13.5px;
  color: var(--ink-2);
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: var(--tint);
}

.panel--case {
  margin-top: 28px;
  padding: clamp(28px, 4vw, 52px);
  background:
    radial-gradient(110% 90% at 100% 0%, rgba(var(--blue-rgb), 0.10), transparent 52%),
    linear-gradient(180deg, var(--surface-3), var(--surface));
}
.case__head {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
  gap: clamp(20px, 4vw, 56px);
  align-items: end;
}
.case__logo { display: block; width: clamp(150px, 16vw, 200px); height: auto; margin-bottom: 26px; }
.case__title {
  margin: 12px 0 0;
  font-weight: 400;
  font-size: clamp(26px, 2.6vw, 34px);
  line-height: 1.1;
  letter-spacing: -0.025em;
}
.case__lede { margin: 0; color: var(--ink-2); font-size: 16px; line-height: 1.6; }

.case__grid {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(270px, 100%), 1fr));
  gap: 14px;
}
.case-tool {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px 22px;
  background: rgba(18, 16, 26, 0.45);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.case-tool h4 { margin: 0; font-size: 16.5px; font-weight: 500; }
.case-tool p { margin: 0; color: var(--ink-3); font-size: 14.5px; line-height: 1.55; flex: 1; }
.case-tool__uses {
  margin-top: 4px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--blue);
}

.case__stats {
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: 20px;
}
.stat { display: flex; align-items: baseline; gap: 14px; }
.stat__num {
  font-family: var(--serif);
  font-size: 44px;
  font-weight: 300;
  line-height: 1;
  color: var(--lilac);
}
.stat__label { font-size: 14.5px; color: var(--ink-3); line-height: 1.45; }

/* ── Developers ────────────────────────────────────────────────────── */

.dev__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr));
  gap: 52px;
  align-items: start;
}
.checklist {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.checklist li { display: flex; gap: 12px; font-size: 15px; color: var(--ink-2); }
.check { flex: none; color: var(--green); margin-top: 3px; }

.code-stack { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.code {
  border: 1px solid var(--line-3);
  border-radius: 18px;
  overflow: hidden;
  background: var(--surface-deep);
}
.code__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}
.code__file { font-family: var(--mono); font-size: 11px; color: var(--ink-4); }
.code__badge {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--green);
}
.code__body {
  margin: 0;
  padding: 22px;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--ink-2);
  overflow-x: auto;
}
.code__body code { font: inherit; }
.t-key { color: var(--lilac-text); }
.t-str { color: var(--green); }
.t-lit { color: var(--blue); }
.t-com { color: var(--ink-4); }

.dev__install {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.dev__snippet { font-family: var(--mono); font-size: 12.5px; color: var(--lilac-text); }
.dev__note { font-size: 14.5px; color: var(--ink-3); }

/* ── Done for you ──────────────────────────────────────────────────── */

.section--service { padding-top: 76px; }

.service__grid {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(330px, 100%), 1fr));
  gap: 20px;
}
.service-card {
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
}
.service-card--lilac { background: radial-gradient(120% 100% at 0% 0%, rgba(221, 187, 241, 0.09), transparent 44%), linear-gradient(180deg, var(--surface-2), var(--surface)); }
.service-card--green { background: radial-gradient(120% 100% at 0% 0%, rgba(var(--green-rgb), 0.10), transparent 44%), linear-gradient(180deg, var(--surface-2), var(--surface)); }
.service-card--blue  { background: radial-gradient(120% 100% at 0% 0%, rgba(var(--blue-rgb), 0.10), transparent 44%), linear-gradient(180deg, var(--surface-2), var(--surface)); }
.service-card h3 { margin: 0; font-size: 23px; font-weight: 500; letter-spacing: -0.018em; }
.service-card p { margin: 0; color: var(--ink-3); font-size: 15.5px; line-height: 1.6; }
.service-card .card__icon { margin-bottom: 4px; }

.checklist--sm {
  margin-top: 8px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  gap: 12px;
}
.checklist--sm li { font-size: 14.5px; }

/* The strip under the cards: how it goes, and the way in. */
.service__how {
  margin-top: 20px;
  border: 1px solid var(--line-2);
  border-radius: 24px;
  padding: clamp(28px, 3.4vw, 44px);
  background:
    radial-gradient(110% 120% at 100% 0%, rgba(221, 187, 241, 0.07), transparent 52%),
    linear-gradient(180deg, var(--surface-3), var(--surface));
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: clamp(32px, 4vw, 56px);
  align-items: center;
}

.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 20px; }
.steps li { display: flex; gap: 15px; }
.step__num {
  flex: none;
  width: 27px;
  height: 27px;
  margin-top: 1px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-3);
  background: rgba(221, 187, 241, 0.06);
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--lilac-text);
}
.step__title { font-size: 16.5px; font-weight: 500; }
.step__text { margin: 4px 0 0; font-size: 14.5px; color: var(--ink-3); line-height: 1.55; }

.service__ask h3 {
  margin: 0;
  font-weight: 400;
  font-size: clamp(26px, 2.6vw, 34px);
  line-height: 1.1;
  letter-spacing: -0.025em;
}
.service__ask > p {
  margin: 16px 0 0;
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.6;
  max-width: 42ch;
}
.service__ask .btn { margin-top: 26px; }
.service__fine { margin: 16px 0 0; font-size: 13.5px; color: var(--ink-4); }

/* ── Index columns ─────────────────────────────────────────────────── */

.index-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(215px, 100%), 1fr));
  gap: 32px;
}
.index-col__head {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-2);
}
.index-col__head--lilac { color: var(--lilac-text); }
.index-col__head--blue { color: var(--blue); }
.index-col__head--green { color: var(--green); }
.index-col__head--amber { color: var(--amber-text); }
.index-col__list {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-top: 14px;
  font-size: 14.5px;
  color: var(--ink-3);
}

/* ── FAQ ───────────────────────────────────────────────────────────── */

.faq { display: flex; flex-direction: column; gap: 12px; }
.faq__item {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  overflow: hidden;
}
.faq__head {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 20px 24px;
  cursor: pointer;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-family: inherit;
  text-align: left;
}
.faq__head > span:first-child { flex: 1; font-size: 17px; font-weight: 500; }
.faq__chev {
  flex: none;
  font-size: 18px;
  color: var(--ink-3);
  transition: transform .3s;
}
.faq__head[aria-expanded="true"] .faq__chev { transform: rotate(45deg); }
.faq__body {
  padding: 0 24px 22px;
  color: var(--ink-2);
  font-size: 15.5px;
  line-height: 1.65;
}

/* ── CTA ───────────────────────────────────────────────────────────── */

.cta {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(221, 187, 241, 0.11);
  text-align: center;
  padding: clamp(48px, 7vw, 92px) var(--gutter);
  background:
    radial-gradient(110% 130% at 50% 120%, rgba(221, 187, 241, 0.30), transparent 58%),
    radial-gradient(120% 90% at 50% -20%, rgba(124, 151, 214, 0.24), transparent 55%),
    linear-gradient(180deg, var(--surface-3), #191424);
  box-shadow: 0 30px 80px -42px rgba(0, 0, 0, 0.9);
}
.cta__fade {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 220px;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, var(--bg) 88%);
}
.cta__dots {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(221, 187, 241, 0.07) 1px, transparent 1.4px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(120% 80% at 50% 100%, #000 22%, transparent 70%);
  mask-image: radial-gradient(120% 80% at 50% 100%, #000 22%, transparent 70%);
}
.cta__inner { position: relative; }
.cta__title {
  margin: 24px auto 0;
  max-width: 18ch;
  font-weight: 400;
  font-size: clamp(34px, 4.6vw, 58px);
  line-height: 1.04;
  letter-spacing: -0.03em;
}
.cta__title em { font-family: var(--serif); font-style: italic; color: var(--lilac-text); }
.cta__sub { margin: 22px auto 0; max-width: 48ch; color: var(--ink-2); font-size: 18px; }
.cta__actions {
  margin-top: 34px;
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Footer ────────────────────────────────────────────────────────── */

.footer { border-top: 1px solid var(--line); padding: 56px 0 40px; }
.footer__top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer__brand { max-width: 300px; }
.footer__brand img { height: 88px; width: auto; display: block; }
.footer__brand p { margin: 18px 0 0; font-size: 14px; color: var(--ink-4); line-height: 1.6; }
.footer__cols { display: flex; gap: 64px; flex-wrap: wrap; }
.footer__col { display: flex; flex-direction: column; gap: 8px; }
.footer__col a { font-size: 15px; color: var(--ink-2); }
.footer__col a:hover { color: var(--ink); }
.footer__head {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-4);
  margin-bottom: 8px;
}
.footer__bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--ink-4);
}

/* ── Modal ─────────────────────────────────────────────────────────── */

.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow-y: auto;
  padding: 24px;
  background: rgba(20, 16, 25, 0.62);
  backdrop-filter: blur(16px) saturate(120%);
  -webkit-backdrop-filter: blur(16px) saturate(120%);
}
.modal[hidden] { display: none; }

.modal__card {
  width: 100%;
  max-width: 520px;
  margin: auto;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  border-radius: 24px;
  border: 1px solid rgba(221, 187, 241, 0.16);
  background: linear-gradient(180deg, var(--surface-3), var(--surface));
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.8);
  padding: 32px;
}
.modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.modal__kicker {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.modal__head h3 {
  margin: 12px 0 0;
  font-weight: 400;
  font-size: 26px;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.modal__close {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid var(--line-3);
  background: transparent;
  color: var(--ink-3);
  font-size: 16px;
  cursor: pointer;
  font-family: inherit;
}
.modal__close:hover { color: var(--ink); background: rgba(221, 187, 241, 0.06); }

.modal__form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 24px;
}
.field-pair {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr));
  gap: 14px;
}

/* Which of the three paths the inquiry is. Native radios, kept visible and
   tinted — the highlighted row is a bonus on top of them, never the only
   thing telling you what's selected. */
.segmented { margin: 0; padding: 0; border: 0; display: flex; flex-direction: column; gap: 8px; }
.segmented legend { padding: 0; margin-bottom: 3px; }
.seg {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 13px 15px;
  border-radius: 14px;
  border: 1px solid var(--line-3);
  background: rgba(221, 187, 241, 0.04);
  cursor: pointer;
  transition: border-color .2s, background .2s;
}
.seg:hover { background: rgba(221, 187, 241, 0.07); }
.seg input {
  flex: none;
  margin: 3px 0 0;
  width: 15px;
  height: 15px;
  accent-color: var(--lilac-solid);
  cursor: pointer;
}
.seg__body { display: flex; flex-direction: column; gap: 3px; }
.seg__title { font-size: 15px; font-weight: 500; color: var(--ink); }
.seg__text { font-size: 13px; color: var(--ink-3); line-height: 1.45; }
.seg:has(input:checked) {
  border-color: rgba(221, 187, 241, 0.34);
  background: rgba(221, 187, 241, 0.09);
}
.seg:has(input:focus-visible) { outline: 2px solid var(--blue); outline-offset: 2px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field__label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.field__req { color: var(--lilac-text); }
.field__opt { color: var(--ink-4); }

.field input,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line-3);
  background: rgba(221, 187, 241, 0.05);
  color: var(--ink);
  font-family: inherit;
  font-size: 15px;
  outline: none;
  transition: border-color .2s, background .2s;
}
.field textarea { resize: vertical; line-height: 1.5; }
.field input::placeholder,
.field textarea::placeholder { color: var(--ink-4); }
.field input:focus,
.field textarea:focus { border-color: rgba(221, 187, 241, 0.34); background: rgba(221, 187, 241, 0.08); }
.field.has-error input,
.field.has-error textarea { border-color: rgba(255, 176, 160, 0.55); }

.form-error { margin: 2px 0 0; font-size: 13.5px; color: #FFB0A0; }
.form-error a { color: inherit; }

/* Honeypot. Taken out of the layout rather than `display: none`, which some
   bots know to skip. It is aria-hidden and tabindex="-1" in the markup, so
   nobody using the page can reach it either way. */
.field-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.modal__submit {
  margin-top: 6px;
  width: 100%;
  padding: 14px;
  border: 0;
  border-radius: 999px;
  background: var(--lilac-solid);
  color: #241C2C;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: filter .2s;
}
.modal__submit:hover { filter: brightness(1.05); }
.modal__fineprint { margin: 2px 0 0; text-align: center; font-size: 13px; color: var(--ink-4); }

.modal__sent {
  margin-top: 26px;
  padding: 22px;
  border-radius: 16px;
  border: 1px solid var(--line-3);
  background: rgba(221, 187, 241, 0.05);
}
.modal__sent-icon { color: var(--green); margin-bottom: 10px; }
.modal__sent-title { font-size: 17px; color: var(--ink); }
.modal__sent p { margin: 8px 0 0; font-size: 14.5px; color: var(--ink-3); line-height: 1.55; }

/* ── Responsive ────────────────────────────────────────────────────── */

/* Six links, a wordmark and a button share the bar; it gets tight before it
   gets hidden. */
@media (max-width: 1120px) {
  .nav__links { gap: 20px; font-size: 14px; }
}

@media (max-width: 900px) {
  .nav__links { display: none; }
}

@media (max-width: 720px) {
  :root { --gutter: 20px; }
  .hero { padding: 118px 0 100px; }
  .section { padding: 60px 0; }
  .section--demo { padding: 8px 0 72px; }
  .section--editing { padding: 12px 0 72px; }
  .panel--split { gap: 32px; }
  .dev__grid { gap: 36px; }
  .cms__intro { gap: 32px; }
  .layer { grid-template-columns: 1fr; gap: 12px; padding: 18px 20px; }
  .layer--blue, .layer--green { margin-left: 0; }
  .footer__cols { gap: 36px; }
  /* .browser__frame height lives with the shield rules above — below 720px the
     frame is a preview to be opened, not something to be read in place. */
  .modal { padding: 12px; }
  .modal__card { padding: 24px; max-height: calc(100vh - 24px); }
}

@media (max-width: 560px) {
  /* the nav CTA and the wordmark have to share a very narrow bar */
  .btn__rest { display: none; }
  .nav__logo img { height: 40px; }
  .nav__inner { gap: 12px; }
  .footer__brand img { height: 64px; }
}

/* ── What it is (home) ─────────────────────────────────────────────────
   The one-paragraph definition of the product, written so it can be lifted
   whole by a search engine or an AI answer. Mirrors .answer in page.css. */
.section--what { padding-top: 40px; }
.what__answer {
  margin: 28px 0 0;
  padding: 26px 30px;
  border: 1px solid rgba(221, 187, 241, 0.18);
  border-left: 3px solid var(--lilac);
  border-radius: 18px;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
}
.what__answer p { margin: 0; font-size: 19px; line-height: 1.6; color: var(--ink); }
.what__answer p + p { margin-top: 14px; }
.what__answer a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--lilac); text-underline-offset: 3px; }
.what__links { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 22px; }
.what__links a {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink-2); text-decoration: none;
}
.what__links a:hover { color: var(--ink); }
.what__links .btn__arrow { font-size: 12px; }
.faq__more { margin: 26px 0 0; text-align: center; font-size: 15px; color: var(--ink-3); }
.faq__more a { color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; }
.faq__more a:hover { color: var(--ink); }
@media (max-width: 720px) {
  .what__answer { padding: 20px 22px; }
  .what__answer p { font-size: 17px; }
}
