/* ==========================================================================
   SprintText — marketing site
   Tokens, layout primitives, components. One stylesheet, no build step.
   ========================================================================== */

/* --- Tokens --------------------------------------------------------------- */

:root {
  color-scheme: light dark;

  /* Brand */
  --brand: #5257f5;
  --brand-2: #7a4fec;
  --brand-ink: #3b40cc; /* meets contrast on light surfaces */
  --brand-soft: rgba(82, 87, 245, 0.09);
  --brand-line: rgba(82, 87, 245, 0.24);

  /* Neutrals — light */
  --bg: #ffffff;
  --bg-alt: #f7f7fa;
  --bg-sunk: #f1f1f5;
  --surface: #ffffff;
  --ink: #0c0c14;
  --ink-2: #3a3a48;
  --ink-3: #62626f;
  --line: rgba(12, 12, 20, 0.11);
  --line-soft: rgba(12, 12, 20, 0.06);
  --shadow-sm: 0 1px 2px rgba(12, 12, 20, 0.06), 0 1px 1px rgba(12, 12, 20, 0.04);
  --shadow-md: 0 4px 16px rgba(12, 12, 20, 0.07), 0 1px 3px rgba(12, 12, 20, 0.05);
  --shadow-lg: 0 24px 60px rgba(12, 12, 20, 0.13), 0 4px 12px rgba(12, 12, 20, 0.06);

  /* Type */
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  --t-xs: 0.75rem;
  --t-sm: 0.8438rem;
  --t-base: 0.9375rem;
  --t-md: 1.0625rem;
  --t-lg: 1.1875rem;
  --t-xl: 1.375rem;
  --t-2xl: clamp(1.4rem, 1.1rem + 1.1vw, 1.75rem);
  --t-3xl: clamp(1.75rem, 1.3rem + 1.9vw, 2.375rem);
  --t-4xl: clamp(2.125rem, 1.5rem + 2.7vw, 3.125rem);
  --t-5xl: clamp(2.5rem, 1.6rem + 3.9vw, 4rem);

  /* Space — 4px base */
  --s1: 0.25rem;
  --s2: 0.5rem;
  --s3: 0.75rem;
  --s4: 1rem;
  --s5: 1.5rem;
  --s6: 2rem;
  --s7: 2.75rem;
  --s8: 3.5rem;
  --s9: 4.5rem;
  --s10: 6rem;
  --s11: 8rem;

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;
  --radius-xl: 26px;

  --wrap: 1120px;
  --wrap-narrow: 760px;

  --section-y: clamp(3.25rem, 2rem + 5vw, 6.5rem);
}

@media (prefers-color-scheme: dark) {
  :root {
    --brand-ink: #a3a6ff;
    --brand-soft: rgba(122, 127, 255, 0.13);
    --brand-line: rgba(130, 135, 255, 0.3);

    --bg: #0a0a0f;
    --bg-alt: #101017;
    --bg-sunk: #15151e;
    --surface: #14141c;
    --ink: #f5f5f8;
    --ink-2: #c3c3d0;
    --ink-3: #92929f;
    --line: rgba(255, 255, 255, 0.13);
    --line-soft: rgba(255, 255, 255, 0.07);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 4px 18px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 28px 70px rgba(0, 0, 0, 0.6);
  }
}

/* --- Reset ---------------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--t-md);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
picture,
svg,
video {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  line-height: 1.12;
  letter-spacing: -0.021em;
  font-weight: 640;
  text-wrap: balance;
}

h1 {
  font-size: var(--t-5xl);
  letter-spacing: -0.033em;
  font-weight: 700;
}
h2 {
  font-size: var(--t-3xl);
  letter-spacing: -0.026em;
}
h3 {
  font-size: var(--t-lg);
  letter-spacing: -0.014em;
}

p {
  margin: 0;
  text-wrap: pretty;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

a {
  color: var(--brand-ink);
  text-decoration-color: color-mix(in srgb, currentColor 35%, transparent);
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-color: currentColor;
}

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

code,
kbd {
  font-family: var(--font-mono);
  font-size: 0.88em;
}

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: var(--s7) 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: var(--s4);
  top: -100px;
  z-index: 100;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: var(--s2) var(--s4);
  font-size: var(--t-sm);
  font-weight: 600;
  text-decoration: none;
}
.skip:focus {
  top: var(--s4);
}

/* --- Layout --------------------------------------------------------------- */

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(1.125rem, 4vw, 2.5rem);
}

.section {
  padding-block: var(--section-y);
}

.section-tight {
  padding-block: clamp(2.25rem, 1.5rem + 3vw, 4rem);
}

.section-alt {
  background: var(--bg-alt);
}

.section-rule {
  border-top: 1px solid var(--line-soft);
}

.head {
  max-width: 44rem;
}

.head-center {
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  font-size: var(--t-sm);
  font-weight: 640;
  letter-spacing: 0.055em;
  text-transform: uppercase;
  color: var(--brand-ink);
  margin-bottom: var(--s3);
}

.lead {
  margin-top: var(--s4);
  font-size: var(--t-lg);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 40rem;
}

.head-center .lead {
  margin-inline: auto;
}

.muted {
  color: var(--ink-3);
}

.small {
  font-size: var(--t-sm);
}

/* --- Buttons -------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s2);
  padding: 0.72rem 1.3rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: var(--t-base);
  font-weight: 600;
  letter-spacing: -0.005em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.14s ease, background-color 0.14s ease, border-color 0.14s ease;
}

.btn-sm {
  padding: 0.48rem 0.95rem;
  font-size: var(--t-sm);
}

.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  background: #464bea;
  transform: translateY(-1px);
}

.btn-ghost {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover {
  border-color: var(--ink-3);
}

.btn-quiet {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-quiet:hover {
  background: var(--bg-alt);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s3);
  margin-top: var(--s6);
}

/* --- Header --------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.6) blur(14px);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid var(--line-soft);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: var(--s5);
  min-height: 60px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 680;
  letter-spacing: -0.024em;
  font-size: 1.0625rem;
  flex: none;
}

.brand .mark {
  flex: none;
}

.brand-word-accent {
  color: var(--brand-ink);
}

.nav-desktop {
  margin-inline-start: auto;
}

.nav-desktop ul {
  display: flex;
  gap: var(--s5);
  list-style: none;
}

.nav-desktop a {
  color: var(--ink-2);
  text-decoration: none;
  font-size: var(--t-base);
  font-weight: 520;
  padding-block: 0.4rem;
  display: inline-block;
}

.nav-desktop a:hover {
  color: var(--ink);
}

.nav-desktop a[aria-current="page"] {
  color: var(--ink);
  font-weight: 620;
  box-shadow: inset 0 -2px 0 var(--brand);
}

.nav-cta {
  flex: none;
}

.nav-mobile {
  margin-inline-start: auto;
  position: relative;
}

.nav-mobile summary {
  list-style: none;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  cursor: pointer;
}
.nav-mobile summary::-webkit-details-marker {
  display: none;
}

.burger,
.burger::before,
.burger::after {
  display: block;
  width: 17px;
  height: 1.75px;
  background: var(--ink);
  border-radius: 2px;
  content: "";
}
.burger {
  position: relative;
}
.burger::before {
  position: absolute;
  top: -5.5px;
}
.burger::after {
  position: absolute;
  top: 5.5px;
}

.nav-mobile[open] summary {
  background: var(--bg-alt);
}

.nav-mobile-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  min-width: min(15rem, 78vw);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: var(--s2);
}

.nav-mobile-panel ul {
  list-style: none;
}

.nav-mobile-panel a {
  display: block;
  padding: 0.6rem 0.75rem;
  border-radius: var(--radius-sm);
  color: var(--ink);
  text-decoration: none;
  font-weight: 540;
}

.nav-mobile-panel a:hover {
  background: var(--bg-alt);
}

.nav-mobile-panel a[aria-current="page"] {
  color: var(--brand-ink);
}

.nav-mobile-cta {
  margin-top: var(--s1);
  background: var(--brand);
  color: #fff !important;
  text-align: center;
  font-weight: 620 !important;
}

@media (max-width: 900px) {
  .nav-desktop,
  .nav-cta {
    display: none;
  }
}

@media (min-width: 901px) {
  .nav-mobile {
    display: none;
  }
}

/* --- Hero ----------------------------------------------------------------- */

.hero {
  padding-block: clamp(2.5rem, 1.5rem + 5vw, 5.5rem) clamp(2.5rem, 1.5rem + 4vw, 4.5rem);
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background: var(--line-soft);
}

.hero-grid {
  display: grid;
  gap: clamp(2.25rem, 4vw, 4rem);
  align-items: center;
  grid-template-columns: 1fr;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.85fr);
  }
}

.hero-copy {
  min-width: 0;
}

.hero h1 {
  max-width: 13ch;
}

.hero-lead {
  margin-top: var(--s5);
  font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.3125rem);
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 34rem;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0.8rem 0.3rem 0.45rem;
  border-radius: 999px;
  background: var(--brand-soft);
  border: 1px solid var(--brand-line);
  color: var(--brand-ink);
  font-size: var(--t-sm);
  font-weight: 600;
  margin-bottom: var(--s5);
  text-decoration: none;
}

.hero-pill .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand);
}

.hero-points {
  list-style: none;
  margin-top: var(--s6);
  display: grid;
  gap: var(--s3);
  max-width: 34rem;
}

.hero-points li {
  display: grid;
  grid-template-columns: 1.25rem 1fr;
  gap: var(--s3);
  align-items: start;
  font-size: var(--t-base);
  color: var(--ink-2);
}

.hero-points li::before {
  content: "";
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.14rem;
  border-radius: 50%;
  border: 1px solid var(--brand-line);
  background-color: var(--brand-soft);
  background-image: radial-gradient(circle closest-side, var(--brand) 96%, transparent 100%);
  background-size: 0.5rem 0.5rem;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-media {
  display: flex;
  justify-content: center;
  min-width: 0;
}

/* --- Screenshots ---------------------------------------------------------- */

.shot {
  margin: 0;
  width: 100%;
  max-width: var(--shot-w, 300px);
}

.shot-device {
  border-radius: 30px;
  padding: 7px;
  background: linear-gradient(170deg, #2c2c34, #17171d);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.shot-device picture,
.shot-device img {
  border-radius: 24px;
  overflow: hidden;
  width: 100%;
}

.shot figcaption {
  margin-top: var(--s4);
  font-size: var(--t-sm);
  color: var(--ink-3);
  line-height: 1.5;
}

.shot-row {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1.25rem, 3vw, 2.5rem);
  justify-content: center;
  margin-top: var(--s7);
}

.shot-row .shot {
  flex: 1 1 220px;
  max-width: var(--shot-w, 260px);
}

/* --- Cards ---------------------------------------------------------------- */

.cards {
  list-style: none;
  display: grid;
  gap: var(--s4);
  margin-top: var(--s7);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
}

.cards.cols-2 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
}

.cards.cols-4 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13.5rem), 1fr));
}

.card {
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--s5);
  display: flex;
  flex-direction: column;
  gap: var(--s2);
  box-shadow: var(--shadow-sm);
}

.card-icon {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 10px;
  background: var(--brand-soft);
  color: var(--brand-ink);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: var(--s2);
  font-family: var(--font-mono);
}

.card h3 {
  font-size: var(--t-md);
}

.card p {
  color: var(--ink-2);
  font-size: var(--t-base);
  line-height: 1.58;
}

.card-link {
  margin-top: auto;
  padding-top: var(--s3);
  font-size: var(--t-sm);
  font-weight: 600;
  text-decoration: none;
}
.card-link:hover {
  text-decoration: underline;
}

/* --- Split rows ----------------------------------------------------------- */

.split {
  display: grid;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
  grid-template-columns: 1fr;
}

@media (min-width: 860px) {
  .split {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .split-reverse > *:first-child {
    order: 2;
  }
}

.split > * {
  min-width: 0;
}

.split-media {
  display: flex;
  justify-content: center;
}

.split + .split {
  margin-top: var(--s9);
}

/* --- Lists ---------------------------------------------------------------- */

.ticks {
  list-style: none;
  display: grid;
  gap: var(--s3);
  margin-top: var(--s5);
}

.ticks li {
  position: relative;
  padding-inline-start: 1.7rem;
  color: var(--ink-2);
  font-size: var(--t-base);
  line-height: 1.55;
}

.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 0.6rem;
  height: 0.32rem;
  border-left: 2px solid var(--brand);
  border-bottom: 2px solid var(--brand);
  transform: rotate(-45deg);
}

.ticks strong {
  color: var(--ink);
  font-weight: 620;
}

.steps {
  list-style: none;
  counter-reset: step;
  display: grid;
  gap: var(--s5);
  margin-top: var(--s7);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
}

.steps li {
  counter-increment: step;
  min-width: 0;
  padding-top: var(--s5);
  border-top: 2px solid var(--brand-line);
  position: relative;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  top: calc(-0.85rem - 1px);
  left: 0;
  width: 1.7rem;
  height: 1.7rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: var(--t-xs);
  font-weight: 700;
}

.steps h3 {
  font-size: var(--t-md);
  margin-bottom: var(--s2);
}

.steps p {
  color: var(--ink-2);
  font-size: var(--t-base);
}

/* --- Notes / callouts ----------------------------------------------------- */

.note {
  margin-top: var(--s6);
  padding: var(--s5);
  border-radius: var(--radius-lg);
  background: var(--bg-alt);
  border: 1px solid var(--line);
  font-size: var(--t-base);
  color: var(--ink-2);
  line-height: 1.6;
}

.note p + p {
  margin-top: var(--s3);
}

.note-title {
  font-weight: 660;
  color: var(--ink);
  font-size: var(--t-base);
}

.note-brand {
  background: var(--brand-soft);
  border-color: var(--brand-line);
}

.note ul {
  margin-top: var(--s3);
  padding-inline-start: 1.15rem;
  display: grid;
  gap: var(--s2);
}

/* --- Status panel --------------------------------------------------------- */

.status-panel {
  display: grid;
  gap: var(--s4);
  margin-top: var(--s7);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
}

.status-col {
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--s5);
}

.status-col h3 {
  display: flex;
  align-items: center;
  gap: var(--s2);
  font-size: var(--t-base);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-3);
  font-weight: 660;
}

.status-col ul {
  margin-top: var(--s4);
  padding-inline-start: 0;
  list-style: none;
  display: grid;
  gap: var(--s3);
}

.status-col li {
  font-size: var(--t-base);
  color: var(--ink-2);
  line-height: 1.55;
  padding-inline-start: var(--s4);
  border-inline-start: 2px solid var(--line);
}

.status-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  flex: none;
}

.status-live {
  background: #1f9d55;
  box-shadow: 0 0 0 3px rgba(31, 157, 85, 0.18);
}

.status-soon {
  background: var(--brand-2);
  box-shadow: 0 0 0 3px rgba(122, 79, 236, 0.18);
}

/* --- Demo ----------------------------------------------------------------- */

.demo {
  margin-top: var(--s7);
  display: grid;
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: center;
  grid-template-columns: 1fr;
}

@media (min-width: 780px) {
  .demo {
    grid-template-columns: minmax(0, 330px) minmax(0, 1fr);
  }
}

.demo-screen {
  min-width: 0;
  width: 100%;
  max-width: 330px;
  margin-inline: auto;
  background: #08080b;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius-xl);
  padding: 14px 12px 12px;
  box-shadow: var(--shadow-lg);
  color: #f4f4f7;
}

.demo-field {
  background: #17171c;
  border-radius: 14px;
  padding: 10px;
  min-height: 122px;
}

.demo-field-tabs {
  display: flex;
  gap: 2px;
  background: #26262e;
  border-radius: 999px;
  padding: 2px;
  font-size: 0.6875rem;
  font-weight: 600;
  color: #a0a0ad;
}

.demo-field-tabs span {
  flex: 1;
  text-align: center;
  padding: 4px 0;
  border-radius: 999px;
}

.demo-field-tabs .on {
  background: #4a4a55;
  color: #fff;
}

.demo-text {
  margin-top: 10px;
  font-size: 0.8125rem;
  line-height: 1.45;
  min-height: 3.6em;
  word-break: break-word;
}

.demo-caret {
  display: inline-block;
  width: 2px;
  height: 1em;
  vertical-align: -0.15em;
  background: var(--brand);
  margin-inline-start: 1px;
  animation: blink 1.05s steps(2, start) infinite;
}

@keyframes blink {
  to {
    visibility: hidden;
  }
}

.demo-bar {
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
}

.demo-chip {
  font-size: 0.875rem;
  font-weight: 640;
  color: #8b8fff;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.demo-chip.on {
  opacity: 1;
}

.demo-keys {
  display: grid;
  gap: 6px;
}

.dk-row {
  display: flex;
  gap: 4px;
  justify-content: center;
}

.dk-row-2 {
  padding-inline: 5%;
}

.dk {
  flex: 1;
  min-width: 0;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 5px;
  background: #4a4a52;
  color: #fff;
  font-size: 0.8125rem;
  text-transform: uppercase;
  transition: background-color 0.09s ease, transform 0.09s ease;
}

.dk-wide,
.dk-alt {
  flex: 1.45;
  background: #34343c;
  font-size: 0.625rem;
  text-transform: none;
}

.dk-space {
  flex: 5;
  background: #4a4a52;
  font-size: 0.6875rem;
  text-transform: none;
  color: #d6d6de;
}

.dk.hit {
  background: var(--brand);
  transform: translateY(1px);
}

.demo-side {
  min-width: 0;
}

.demo-label {
  font-size: var(--t-xs);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 640;
  color: var(--ink-3);
}

.demo-caption {
  margin-top: var(--s3);
  font-size: var(--t-lg);
  line-height: 1.45;
  color: var(--ink);
  min-height: 3.6em;
  letter-spacing: -0.012em;
}

.demo-side .btn {
  margin-top: var(--s4);
}

@media (prefers-reduced-motion: reduce) {
  .demo-caret {
    animation: none;
  }
}

/* --- Diagrams (explicitly illustrations, never screenshots) --------------- */

.diagram {
  margin: var(--s7) 0 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg-alt);
  padding: clamp(1.25rem, 3vw, 2.25rem);
}

.diagram figcaption {
  margin-top: var(--s5);
  font-size: var(--t-sm);
  color: var(--ink-3);
  border-top: 1px solid var(--line);
  padding-top: var(--s4);
}

.diagram-flow {
  display: grid;
  gap: var(--s4);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
  align-items: stretch;
}

.diagram-node {
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--s4);
}

.diagram-node h4 {
  margin: 0 0 var(--s2);
  font-size: var(--t-sm);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--brand-ink);
  font-weight: 660;
}

.diagram-node p {
  font-size: var(--t-sm);
  color: var(--ink-2);
  line-height: 1.5;
}

.diagram-node ul {
  list-style: none;
  display: grid;
  gap: var(--s2);
  font-size: var(--t-sm);
  color: var(--ink-2);
}

.diagram-node li::before {
  content: "\2022";
  color: var(--brand);
  margin-inline-end: 0.45rem;
}

.diagram-node-key {
  border-color: var(--brand-line);
  background: var(--brand-soft);
}

/* Mac window illustration — deliberately schematic, not photographic. */
.mac-illo {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  max-width: 30rem;
}

.mac-illo-bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 0.8rem;
  background: var(--bg-sunk);
  border-bottom: 1px solid var(--line);
  font-size: var(--t-xs);
  color: var(--ink-3);
}

.mac-illo-bar i {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--line);
  display: block;
}

.mac-illo-body {
  padding: var(--s4);
  display: grid;
  gap: var(--s3);
}

.mac-illo-input {
  border: 1px dashed var(--brand-line);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.75rem;
  font-family: var(--font-mono);
  font-size: var(--t-sm);
  color: var(--ink-2);
  background: var(--brand-soft);
}

.mac-illo-row {
  display: flex;
  justify-content: space-between;
  gap: var(--s3);
  font-size: var(--t-sm);
  color: var(--ink-2);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  background: var(--bg-alt);
}

.mac-illo-row span:last-child {
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: var(--t-xs);
}

/* --- Trigger sample table ------------------------------------------------- */

.table-scroll {
  overflow-x: auto;
  margin-top: var(--s6);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--t-base);
  min-width: 32rem;
}

caption {
  text-align: left;
  padding: var(--s4) var(--s5) 0;
  color: var(--ink-3);
  font-size: var(--t-sm);
}

th,
td {
  text-align: left;
  padding: 0.7rem var(--s5);
  border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
}

thead th {
  font-size: var(--t-xs);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-3);
  font-weight: 660;
}

tbody tr:last-child td {
  border-bottom: 0;
}

td code {
  color: var(--brand-ink);
  font-weight: 620;
}

/* --- Pricing -------------------------------------------------------------- */

.plans {
  list-style: none;
  display: grid;
  gap: var(--s4);
  margin-top: var(--s7);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  align-items: stretch;
}

@media (min-width: 1000px) {
  .plans {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.plan {
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--s5);
  box-shadow: var(--shadow-sm);
}

.plan-featured {
  border-color: var(--brand);
  box-shadow: var(--shadow-md), 0 0 0 1px var(--brand);
}

.plan-badge {
  align-self: flex-start;
  font-size: var(--t-xs);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--brand-ink);
  background: var(--brand-soft);
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
  margin-bottom: var(--s3);
}

.plan h3 {
  font-size: var(--t-md);
}

.plan-price {
  margin-top: var(--s3);
  font-size: var(--t-3xl);
  font-weight: 680;
  letter-spacing: -0.03em;
  line-height: 1;
}

.plan-price small {
  font-size: var(--t-base);
  font-weight: 500;
  color: var(--ink-3);
  letter-spacing: 0;
}

.plan-alt {
  margin-top: var(--s2);
  font-size: var(--t-sm);
  color: var(--ink-3);
}

.plan ul {
  list-style: none;
  margin-top: var(--s5);
  display: grid;
  gap: var(--s2);
  font-size: var(--t-base);
  color: var(--ink-2);
}

.plan ul li {
  padding-inline-start: 1.4rem;
  position: relative;
  line-height: 1.5;
}

.plan ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 0.55rem;
  height: 0.3rem;
  border-left: 2px solid var(--brand);
  border-bottom: 2px solid var(--brand);
  transform: rotate(-45deg);
}

.plan-foot {
  margin-top: auto;
  padding-top: var(--s5);
  font-size: var(--t-sm);
  color: var(--ink-3);
}

/* --- FAQ ------------------------------------------------------------------ */

.faq {
  margin-top: var(--s7);
  border-top: 1px solid var(--line);
  max-width: var(--wrap-narrow);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
  padding: var(--s5) 0;
  font-weight: 620;
  font-size: var(--t-md);
  letter-spacing: -0.012em;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-chev {
  flex: none;
  width: 0.6rem;
  height: 0.6rem;
  border-right: 2px solid var(--ink-3);
  border-bottom: 2px solid var(--ink-3);
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.16s ease;
}

.faq-item[open] .faq-chev {
  transform: rotate(-135deg) translateY(-2px);
}

.faq-answer {
  padding-bottom: var(--s5);
  color: var(--ink-2);
  font-size: var(--t-base);
  line-height: 1.62;
  max-width: 46rem;
}

.faq-answer p + p {
  margin-top: var(--s3);
}

/* --- Prose (legal + help) ------------------------------------------------- */

.prose {
  max-width: var(--wrap-narrow);
  font-size: var(--t-md);
  line-height: 1.68;
  color: var(--ink-2);
}

.prose h2 {
  font-size: var(--t-xl);
  margin-top: var(--s8);
  margin-bottom: var(--s3);
  color: var(--ink);
  scroll-margin-top: 5rem;
}

.prose h3 {
  font-size: var(--t-md);
  margin-top: var(--s6);
  margin-bottom: var(--s2);
  color: var(--ink);
}

.prose p + p,
.prose ul + p,
.prose p + ul {
  margin-top: var(--s4);
}

.prose ul,
.prose ol {
  padding-inline-start: 1.25rem;
  display: grid;
  gap: var(--s2);
}

.prose li::marker {
  color: var(--ink-3);
}

.prose strong {
  color: var(--ink);
  font-weight: 620;
}

.toc {
  margin-top: var(--s6);
  padding: var(--s5);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg-alt);
}

.toc h2 {
  margin: 0 0 var(--s3);
  font-size: var(--t-sm);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-3);
}

.toc ol {
  padding-inline-start: 1.1rem;
  display: grid;
  gap: var(--s2);
  font-size: var(--t-base);
}

/* --- Cross links ---------------------------------------------------------- */

.crosslinks {
  margin-top: var(--s9);
  border-top: 1px solid var(--line);
  padding-top: var(--s6);
}

.crosslinks h2 {
  font-size: var(--t-sm);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-3);
}

.crosslinks ul {
  list-style: none;
  margin-top: var(--s4);
  display: grid;
  gap: var(--s3);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
}

.crosslinks a {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
  padding: var(--s4);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  background: var(--surface);
}

.crosslinks a:hover {
  border-color: var(--brand);
}

.crosslink-title {
  font-weight: 620;
  color: var(--ink);
}

.crosslink-body {
  font-size: var(--t-sm);
  color: var(--ink-3);
  line-height: 1.5;
}

/* --- CTA band ------------------------------------------------------------- */

.cta-band {
  background: var(--bg-alt);
  border-top: 1px solid var(--line-soft);
}

.cta-inner {
  display: grid;
  gap: var(--s5);
  align-items: center;
}

@media (min-width: 820px) {
  .cta-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: var(--s7);
  }
}

.cta-inner h2 {
  font-size: var(--t-2xl);
}

.cta-inner p {
  margin-top: var(--s3);
  color: var(--ink-2);
  max-width: 40rem;
}

/* --- Footer --------------------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding-block: var(--s8) var(--s6);
  background: var(--bg);
}

.footer-grid {
  display: grid;
  gap: var(--s6);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr));
}

.footer-brand {
  min-width: 0;
  max-width: 22rem;
}

@media (min-width: 700px) {
  .footer-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .footer-brand {
    grid-column: span 4;
    max-width: 26rem;
  }
}

@media (min-width: 1000px) {
  .footer-grid {
    grid-template-columns: minmax(0, 1.7fr) repeat(4, minmax(0, 1fr));
  }
  .footer-brand {
    grid-column: auto;
  }
}

.footer-tagline {
  margin-top: var(--s4);
  font-weight: 600;
  color: var(--ink);
}

.footer-note {
  margin-top: var(--s2);
  font-size: var(--t-sm);
  color: var(--ink-3);
  line-height: 1.55;
}

.footer-col h2 {
  font-size: var(--t-xs);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--ink-3);
  font-weight: 660;
}

.footer-col ul {
  list-style: none;
  margin-top: var(--s4);
  display: grid;
  gap: var(--s3);
}

.footer-col a {
  color: var(--ink-2);
  text-decoration: none;
  font-size: var(--t-base);
}

.footer-col a:hover {
  color: var(--ink);
  text-decoration: underline;
}

.footer-base {
  margin-top: var(--s8);
  padding-top: var(--s5);
  border-top: 1px solid var(--line-soft);
  display: flex;
  flex-wrap: wrap;
  gap: var(--s3) var(--s6);
  justify-content: space-between;
  font-size: var(--t-sm);
  color: var(--ink-3);
}

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

/* --- Misc ----------------------------------------------------------------- */

.trigger {
  font-family: var(--font-mono);
  font-weight: 640;
  color: var(--brand-ink);
  background: var(--brand-soft);
  border-radius: 5px;
  padding: 0.08em 0.35em;
}

.kbd {
  font-family: var(--font);
  font-size: 0.82em;
  font-weight: 600;
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 5px;
  padding: 0.1em 0.4em;
  background: var(--bg-alt);
  color: var(--ink-2);
  white-space: nowrap;
}

.stack-lg > * + * {
  margin-top: var(--s6);
}

.center {
  text-align: center;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* Utilities replacing one-off inline style attributes.
   A strict Content-Security-Policy blocks inline style attributes outright,
   and unlike scripts they cannot be allowed by hash — only by 'unsafe-inline',
   which would weaken the policy for every page. These few classes cost less. */
.mt-0 { margin-top: 0; }
.mt-4 { margin-top: var(--s4); }
.mt-5 { margin-top: var(--s5); }
.mt-8 { margin-top: var(--s8); }
.align-start { align-items: start; }
.t-3xl { font-size: var(--t-3xl); }

/* Generated at build time from the widths shot() was called with. */
.shot-w-240{--shot-w:240px}
.shot-w-250{--shot-w:250px}
.shot-w-280{--shot-w:280px}
.shot-w-290{--shot-w:290px}
.shot-w-320{--shot-w:320px}
