/* ============================================================
   TOKENS
   ============================================================ */

:root {
  /* Brand — Torch */
  --color-brand-blue:        #005AFF;
  --color-brand-blue-hover:  #0048CC;
  --color-brand-blue-light:  #E6EFFF;
  --color-brand-navy:        #002C4E;
  --color-brand-navy-deep:   #001E37;

  /* Neutrals */
  --color-text-primary:    #232529;
  --color-text-secondary:  #344054;
  --color-text-tertiary:   #475467;
  --color-text-muted:      #64748B;
  --color-text-disabled:   #98A2B3;

  --color-border:          #EAECF0;
  --color-border-light:    #F2F4F7;

  --color-bg-white:        #FFFFFF;
  --color-bg-gray:         #F7F7F7;
  --color-bg-gray-soft:    #F2F4F7;

  /* Fonts */
  --font-display: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-body:    'Instrument Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  /* Type sizes */
  --text-h1:    3.75rem;   /* 60px */
  --text-h2:    3rem;      /* 48px */
  --text-h3:    2.5rem;    /* 40px */
  --text-h4:    1.75rem;   /* 28px */
  --text-h5:    1.25rem;   /* 20px */
  --text-h6:    1rem;      /* 16px */
  --text-lead:  1.25rem;   /* 20px */
  --text-body:  1rem;      /* 16px */
  --text-small: 0.875rem;  /* 14px */
  --text-xs:    0.75rem;   /* 12px */

  /* Weights */
  --weight-regular:  400;
  --weight-medium:   500;
  --weight-semibold: 600;
  --weight-bold:     700;

  /* Line heights */
  --leading-tight:   1.1;
  --leading-snug:    1.2;
  --leading-normal:  1.3;
  --leading-relaxed: 1.4;
  --leading-loose:   1.5;
  --leading-body:    1.6;

  /* Letter spacing — tight on display */
  --tracking-tight: -0.03em;
  --tracking-snug:  -0.018em;
  --tracking-none:  0;

  /* Spacing */
  --space-1:  4px;
  --space-2:  8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-5:  20px;
  --space-6:  24px;
  --space-8:  32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;

  /* Section padding */
  --section-padding-large:       6rem;       /* 96px */
  --section-padding-medium:      4rem;       /* 64px */
  --section-padding-small:       3rem;       /* 48px */
  --section-padding-tiny:        2rem;       /* 32px */
  --section-padding-hero-top:    5rem;       /* 80px */
  --section-padding-hero-bottom: 5rem;       /* 80px */

  /* Horizontal padding — responsive percentage */
  --padding-global: 5%;

  /* Containers */
  --container-large:  80rem;   /* 1280px */
  --container-medium: 72rem;   /* 1152px */
  --container-small:  48rem;   /* 768px */

  /* Radius */
  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   12px;
  --radius-xl:   16px;
  --radius-2xl:  24px;
  --radius-pill: 9999px;

  /* Shadows */
  --shadow-card:  0 3px 9px rgba(0, 0, 0, 0.14), 0 3.45px 3.45px rgba(0, 0, 0, 0.05);
  --shadow-modal: 0 20px 24px -4px rgba(16, 24, 40, 0.08), 0 8px 8px -4px rgba(16, 24, 40, 0.03);
  --shadow-light: 0 0 20px rgba(0, 0, 0, 0.02);

  /* Motion */
  --ease: cubic-bezier(0.2, 0.6, 0.2, 1);
}


/* ============================================================
   RESET & BASE
   ============================================================ */

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: var(--text-body);
  font-weight: var(--weight-regular);
  line-height: var(--leading-body);
  color: var(--color-text-primary);
  background: var(--color-bg-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

a        { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button   { font: inherit; cursor: pointer; background: none; border: none; padding: 0; }
ol, ul   { list-style: none; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: var(--weight-regular);
  color: var(--color-text-primary);
}

h1 { font-size: clamp(32px, 4vw, 3rem); line-height: var(--leading-tight); letter-spacing: var(--tracking-tight); }
h2 { font-size: var(--text-h2); line-height: var(--leading-snug);  letter-spacing: var(--tracking-snug); }
h3 { font-size: var(--text-h3); line-height: var(--leading-snug);  letter-spacing: var(--tracking-snug); }
h4 { font-size: var(--text-h4); line-height: var(--leading-normal); }
h5 { font-size: var(--text-h5); line-height: var(--leading-relaxed); font-weight: var(--weight-medium); }
h6 { font-size: var(--text-h6); line-height: var(--leading-relaxed); font-weight: var(--weight-medium); }

p { line-height: var(--leading-body); }


/* ============================================================
   LAYOUT
   ============================================================ */

.container-large  { max-width: var(--container-large);  margin-inline: auto; }
.container-medium { max-width: var(--container-medium); margin-inline: auto; }
.container-small  { max-width: var(--container-small);  margin-inline: auto; }

.padding-global {
  padding-left:  var(--padding-global);
  padding-right: var(--padding-global);
}

.padding-section-large  { padding-block: var(--section-padding-large); }
.padding-section-medium { padding-block: var(--section-padding-medium); }
.padding-section-small  { padding-block: var(--section-padding-small); }
.padding-section-tiny   { padding-block: var(--section-padding-tiny); }

.padding-section-hero {
  padding-top:    var(--section-padding-hero-top);
  padding-bottom: var(--section-padding-hero-bottom);
}

.max-width-xlarge { max-width: 64rem; }
.max-width-large  { max-width: 48rem; }
.max-width-medium { max-width: 36rem; }
.max-wide         { width: 100%; max-width: 35rem; }

.align-center      { margin-left: auto; margin-right: auto; }
.text-align-center { text-align: center; }
.text-align-left   { text-align: left; }

.background-color-white { background-color: var(--color-bg-white); }
.background-color-gray  { background-color: var(--color-bg-gray); }
.background-color-blue  { background-color: var(--color-brand-blue); }
.background-color-navy  { background-color: var(--color-brand-navy); }

.background-color-blue,
.background-color-navy { color: var(--color-bg-white); }

.background-color-blue h1, .background-color-blue h2, .background-color-blue h3,
.background-color-blue h4, .background-color-blue h5, .background-color-blue h6,
.background-color-navy h1, .background-color-navy h2, .background-color-navy h3,
.background-color-navy h4, .background-color-navy h5, .background-color-navy h6 {
  color: var(--color-bg-white);
}


/* ============================================================
   TYPOGRAPHY UTILITIES
   ============================================================ */

.heading-style-h1 { font-size: var(--text-h1); font-weight: var(--weight-regular); line-height: var(--leading-tight); letter-spacing: var(--tracking-tight); }
.heading-style-h2 { font-size: var(--text-h2); font-weight: var(--weight-regular); line-height: var(--leading-snug);  letter-spacing: var(--tracking-snug);  }
.heading-style-h3 { font-size: var(--text-h3); font-weight: var(--weight-regular); line-height: var(--leading-snug);  letter-spacing: var(--tracking-snug);  }
.heading-style-h4 { font-size: var(--text-h4); font-weight: var(--weight-regular); line-height: var(--leading-normal); }
.heading-style-h5 { font-size: var(--text-h5); font-weight: var(--weight-medium);  line-height: var(--leading-relaxed); }
.heading-style-h6 { font-size: var(--text-h6); font-weight: var(--weight-medium);  line-height: var(--leading-relaxed); }

.large-feature-text {
  font-size: 3rem;
  font-weight: var(--weight-regular);
  line-height: var(--leading-snug);
  letter-spacing: var(--tracking-snug);
  color: var(--color-text-primary);
}

.text-size-large {
  font-size: var(--text-lead);
  line-height: var(--leading-loose);
}

.text-size-medium  { font-size: var(--text-body); line-height: var(--leading-body); }
.text-size-regular { font-size: var(--text-body); line-height: var(--leading-body); }

.text-color-blue   { color: var(--color-brand-blue); }
.color-grey800     { color: #1D2939; }

.eyebrow {
  display: inline-block;
  font-size: var(--text-body);
  font-weight: var(--weight-medium);
  color: var(--color-brand-blue);
  margin-bottom: var(--space-4);
}

.lead {
  font-size: var(--text-lead);
  font-weight: var(--weight-regular);
  line-height: var(--leading-loose);
  color: var(--color-text-secondary);
}

.body {
  font-size: var(--text-body);
  line-height: var(--leading-body);
  color: var(--color-text-secondary);
}

.text-small {
  font-size: var(--text-small);
  line-height: var(--leading-relaxed);
  color: var(--color-text-muted);
}

.color-text-primary   { color: var(--color-text-primary); }
.color-text-secondary { color: var(--color-text-secondary); }
.color-text-muted     { color: var(--color-text-muted); }
.color-text-white     { color: var(--color-bg-white); }


/* ============================================================
   COMPONENTS
   ============================================================ */

/* Button */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--text-body);
  font-weight: var(--weight-medium);
  line-height: 1;
  padding: 14px 24px;
  border-radius: var(--radius-md);
  white-space: nowrap;
  transition: background 0.15s var(--ease), color 0.15s var(--ease);
}

.btn--small    { padding: 10px 18px; font-size: var(--text-small); }

.btn--primary  { background: var(--color-brand-blue); color: var(--color-bg-white); }
.btn--primary:hover { background: var(--color-brand-blue-hover); }

.btn--secondary { background: var(--color-bg-white); color: var(--color-text-primary); }
.btn--secondary:hover { background: var(--color-bg-gray-soft); }

.btn--on-blue { background: var(--color-bg-white); color: var(--color-brand-blue); }

/* Card */

.card {
  background: var(--color-bg-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: var(--space-6);
}

/* Feature grid (3-column bordered cards with image slot) */

.new-home-feature-grid-container {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem;
}

.new-home-feature-grid-content-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-color: var(--color-bg-white);
  border: 1px solid #D0D5DD;
  border-radius: var(--radius-2xl);
  overflow: hidden;
}

.new-home-feature-grid-content {
  padding: 2rem;
}

.new-home-card-heading {
  font-size: 1.375rem;
  font-weight: var(--weight-regular);
  line-height: var(--leading-snug);
  letter-spacing: var(--tracking-snug);
  color: var(--color-text-primary);
  margin-bottom: 6px;
}

.image-wrapper-feature-card-new-home {
  margin-top: auto;
  background-color: var(--color-bg-gray-soft);
  width: 100%;
  aspect-ratio: 4 / 3;
}

.grid_cover {
  width: 100%;
  display: block;
}

/* Step cards (vertically stacked, internal 2-col grid) */

.layout_component-new-home {
  display: flex;
  flex-flow: column;
  gap: 2.625rem;
}

.new-home-content-container {
  display: flex;
  flex-flow: column;
  gap: 2.5rem;
}

.feature-card-new-home {
  display: flex;
  flex-flow: column;
  gap: 2.5rem;
  padding: 1.5rem 2rem;
  background-color: var(--color-bg-white);
  border-radius: var(--radius-md);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.02);
}

.new-home-content-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5.125rem;
}

.new-home-content-wrapper > * { min-width: 0; }

.feature-heading {
  font-size: 2.25rem;
  font-weight: var(--weight-regular);
  line-height: var(--leading-snug);
  letter-spacing: var(--tracking-snug);
  color: var(--color-text-primary);
}

.text-size-small {
  font-size: var(--text-small);
  line-height: var(--leading-relaxed);
}

/* ============================================================
   PILLAR-CARD ILLUSTRATIONS (Introducing Torch — 3 cards)
   ============================================================ */

.pillar-illustration {
  aspect-ratio: 16 / 9;
  background-color: transparent;
  background-image: url('images/gradient.png');
  background-size: cover;
  background-repeat: no-repeat;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 6% 0 0 0;
  overflow: hidden;
  position: relative;
}

/* Each card uses a different slice of the gradient (not overlapping
   the slices used by the step-card illustrations) */
.pillar-illustration-1 { background-position: center 15%; }
.pillar-illustration-2 { background-position: center 50%; }
.pillar-illustration-3 { background-position: center 85%; }

.pillar-icon {
  width: auto;
  height: 90%;
  filter: brightness(0) invert(1);
  -webkit-mask-image: linear-gradient(to bottom, #fff 0%, #fff 25%, transparent 95%);
  mask-image: linear-gradient(to bottom, #fff 0%, #fff 25%, transparent 95%);
  opacity: 0.95;
}


/* ============================================================
   STEP-CARD ILLUSTRATIONS
   ============================================================ */

/* Shared gradient backdrop for all 3 step-card illustration slots.
   Each card uses a different slice of the same gradient image to
   create a visual progression across the three steps. */

.illustration-capture,
.illustration-generate,
.illustration-run {
  background-color: transparent;
  background-image: url('images/gradient.png');
  background-size: cover;
  background-repeat: no-repeat;
  border-radius: var(--radius-lg);
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  cursor: default;
}

.illustration-capture  { background-position: center top; }
.illustration-generate { background-position: center center; }
.illustration-run      { background-position: center bottom; }

/* Capture the app */

.illustration-capture {
  position: relative;
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: 1rem;
  overflow: hidden;
}

.capture-panel {
  width: 100%;
  max-width: 24rem;
  background: var(--color-bg-white);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(10, 26, 46, 0.04);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Header */

.capture-panel-header {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--color-border-light);
  background: #FAFBFC;
}

.capture-app-avatar {
  width: 22px;
  height: 22px;
  border-radius: 5px;
  background: linear-gradient(135deg, #E4E7EC, #CDD3DA);
  flex-shrink: 0;
}

.capture-app-meta {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
  flex: 1;
}

.capture-app-name {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--color-text-primary);
  line-height: 1.2;
}

.capture-app-sub {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.625rem;
  color: var(--color-text-muted);
  letter-spacing: 0;
  line-height: 1.2;
}

.capture-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-brand-blue);
  box-shadow: 0 0 0 2px rgba(0, 90, 255, 0.18);
}

.capture-app-step {
  font-size: 0.625rem;
  font-weight: 500;
  color: var(--color-text-muted);
  background: var(--color-bg-white);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 0.15rem 0.5rem;
  letter-spacing: 0.02em;
}

/* Dropzone (focal — bigger text, centered hint, no chips inside) */

.capture-dropzone {
  margin: 0.875rem;
  flex: 1;
  background: rgba(0, 90, 255, 0.03);
  border: 1.5px dashed rgba(0, 90, 255, 0.4);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  padding: 1rem 1rem;
  min-height: 6rem;
}

.capture-hint-icon-large {
  width: 22px;
  height: 22px;
  color: var(--color-brand-blue);
  margin-bottom: 0.25rem;
}

.capture-hint-primary {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-brand-blue);
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.capture-hint-secondary {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  letter-spacing: -0.005em;
  line-height: 1.3;
}

/* Captured files section */

.capture-captured {
  padding: 0 0.875rem 0.875rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.capture-captured-label {
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  font-weight: 500;
}

.capture-captured-list {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.3rem;
}

/* File chip (neutral list state) */

.capture-file-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--color-bg-white);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 0.275rem 0.65rem 0.275rem 0.275rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--color-text-primary);
  white-space: nowrap;
  letter-spacing: -0.005em;
  box-shadow: 0 1px 2px rgba(10, 26, 46, 0.04);
}

.capture-chip-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 18px;
  border-radius: 4px;
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.4px;
  flex-shrink: 0;
}

.capture-file-chip[data-type="pdf"] .capture-chip-badge { background: #DA3F36; }
.capture-file-chip[data-type="mp4"] .capture-chip-badge { background: #6B4FBB; }
.capture-file-chip[data-type="doc"] .capture-chip-badge { background: #2B579A; }

/* Generate the connector */

.illustration-generate {
  position: relative;
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: 1rem;
  overflow: hidden;
}

.generate-panel {
  width: 100%;
  max-width: 24rem;
  background: var(--color-bg-white);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(10, 26, 46, 0.04);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.generate-panel-header {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--color-border-light);
  background: #FAFBFC;
}

.generate-app-avatar {
  width: 22px;
  height: 22px;
  border-radius: 5px;
  background: linear-gradient(135deg, #E4E7EC, #CDD3DA);
  flex-shrink: 0;
}

.generate-app-meta {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
  flex: 1;
}

.generate-app-name {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--color-text-primary);
  line-height: 1.2;
}

.generate-app-sub {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.625rem;
  color: var(--color-text-muted);
  line-height: 1.2;
}

.generate-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #18A957;
  box-shadow: 0 0 0 2px rgba(24, 169, 87, 0.18);
}

.generate-app-step {
  font-size: 0.625rem;
  font-weight: 500;
  color: var(--color-text-muted);
  background: var(--color-bg-white);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 0.15rem 0.5rem;
  letter-spacing: 0.02em;
}

/* Tested checklist (supporting density) */

.generate-tested {
  padding: 0.625rem 0.875rem 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.generate-tested-label {
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  font-weight: 500;
}

.generate-tested-list {
  display: flex;
  flex-direction: column;
  gap: 0.275rem;
}

.generate-test-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.75rem;
  line-height: 1.3;
  letter-spacing: -0.005em;
}

.generate-test-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  flex-shrink: 0;
}

.generate-test-icon svg {
  width: 12px;
  height: 12px;
}

.generate-test-pass {
  background: rgba(24, 169, 87, 0.12);
  color: #18A957;
}

.generate-test-name {
  font-weight: 500;
  color: var(--color-text-primary);
}

.generate-test-row-loading .generate-test-name {
  color: var(--color-text-muted);
  font-weight: 400;
}

.generate-test-meta {
  color: var(--color-text-muted);
  font-size: 0.6875rem;
  font-weight: 400;
  margin-left: auto;
}

/* Deploy buttons (the focal point) */

.generate-deploy {
  margin-top: auto;
  padding: 0.5rem 0.875rem 0.875rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  border-top: 1px solid var(--color-border-light);
  background: #FAFBFC;
}

.generate-deploy-label {
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  font-weight: 500;
}

.generate-deploy-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.generate-deploy-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--color-bg-white);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 0.45rem 0.625rem 0.45rem 0.5rem;
  box-shadow: 0 2px 4px rgba(10, 26, 46, 0.06);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--color-text-primary);
}

.generate-deploy-logo {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.generate-deploy-name {
  flex: 1;
  letter-spacing: -0.005em;
}

.generate-deploy-arrow {
  width: 14px;
  height: 14px;
  color: var(--color-brand-blue);
  flex-shrink: 0;
}

/* Run and self-heal */

.illustration-run {
  position: relative;
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: 1rem;
  overflow: hidden;
}

.run-panel {
  width: 100%;
  max-width: 24rem;
  background: var(--color-bg-white);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(10, 26, 46, 0.04);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.run-panel-header {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--color-border-light);
  background: #FAFBFC;
}

.run-app-avatar {
  width: 22px;
  height: 22px;
  border-radius: 5px;
  background: linear-gradient(135deg, #E4E7EC, #CDD3DA);
  flex-shrink: 0;
}

.run-app-meta {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
  flex: 1;
}

.run-app-name {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--color-text-primary);
  line-height: 1.2;
}

.run-app-sub {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.625rem;
  color: var(--color-text-muted);
  line-height: 1.2;
}

.run-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #F59E0B;
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.2);
}

.run-app-step {
  font-size: 0.625rem;
  font-weight: 500;
  color: var(--color-text-muted);
  background: var(--color-bg-white);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 0.15rem 0.5rem;
  letter-spacing: 0.02em;
}

/* Detected section with diff card */

.run-detected {
  padding: 0.625rem 0.875rem 0.625rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.run-detected-label {
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  font-weight: 500;
}

.run-diff {
  background: #F7F8FA;
  border-radius: 6px;
  border: 1px solid var(--color-border-light);
  padding: 0.35rem 0.4rem;
  font-family: 'SF Mono', 'Monaco', 'Menlo', 'Roboto Mono', monospace;
  font-size: 0.6875rem;
  line-height: 1.4;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.run-diff-row {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  border-radius: 3px;
  padding: 0.05rem 0.3rem;
  white-space: nowrap;
}

.run-diff-sign {
  font-weight: 700;
  flex-shrink: 0;
}

.run-diff-remove {
  background: rgba(218, 63, 54, 0.08);
  color: #B23A30;
}

.run-diff-remove .run-diff-line {
  text-decoration: line-through;
  text-decoration-color: rgba(178, 58, 48, 0.5);
}

.run-diff-add {
  background: rgba(24, 169, 87, 0.08);
  color: #167C45;
}

.run-context {
  font-size: 0.6875rem;
  color: var(--color-text-muted);
}

/* Fix section (focal — filled brand-blue button) */

.run-fix {
  margin-top: auto;
  padding: 0.625rem 0.875rem 0.875rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  border-top: 1px solid var(--color-border-light);
  background: #FAFBFC;
}

.run-fix-label {
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  font-weight: 500;
}

.run-fix-description {
  font-size: 0.75rem;
  color: var(--color-text-primary);
  letter-spacing: -0.005em;
  line-height: 1.35;
}

.run-fix-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  background: var(--color-brand-blue);
  color: #fff;
  border-radius: 8px;
  padding: 0.55rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  box-shadow: 0 2px 8px rgba(0, 90, 255, 0.22);
  margin-top: 0.15rem;
}

.run-fix-arrow {
  width: 14px;
  height: 14px;
}

.run-watching {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.625rem;
  color: var(--color-text-muted);
  opacity: 0.85;
  margin-top: 0.1rem;
}

.run-watching-icon {
  width: 11px;
  height: 11px;
  flex-shrink: 0;
}

/* Avatar stack (for "For example" app indicators) */

.card-examples {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.card-examples-label {
  font-size: var(--text-small);
  color: var(--color-text-muted);
}

.avatar-stack {
  display: inline-flex;
  align-items: center;
}

.avatar {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background-color: var(--color-bg-white);
  border: 1px solid #D0D5DD;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.08), 0 1px 3px rgba(16, 24, 40, 0.05);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: var(--weight-semibold);
  color: var(--color-text-secondary);
  cursor: default;
  transition: transform 0.15s var(--ease);
}

.avatar + .avatar {
  margin-left: -12px;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 6px;
  box-sizing: border-box;
  display: block;
}

.avatar:hover {
  transform: translateY(-2px);
  z-index: 2;
}

.avatar::after {
  content: attr(aria-label);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--color-text-primary);
  color: var(--color-bg-white);
  font-size: 12px;
  font-weight: var(--weight-medium);
  line-height: 1;
  padding: 6px 10px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s var(--ease);
  z-index: 3;
}

.avatar:hover::after { opacity: 1; }

/* Testimonials carousel */

.section_testimonials { overflow-x: clip; }

.testimonials_component {
  display: flex;
  flex-flow: column;
  align-items: center;
}

.quote-carousel {
  position: relative;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
}

.quote-track { position: relative; }

.quote-slides {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
}

.quote-slide {
  grid-area: 1 / 1;
  background-color: var(--color-bg-white);
  border: 1px solid #EAECF0;
  border-radius: 1.5rem;
  display: flex;
  flex-flow: row;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.quote-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.quote-image-wrapper {
  flex-shrink: 0;
  width: 200px;
  align-self: stretch;
  background-color: var(--color-bg-gray-soft);
}

.testimonials_author-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.quote-content {
  flex: 1;
  padding: 2rem;
  display: flex;
  flex-flow: column;
  justify-content: space-between;
  gap: 1.25rem;
}

.text-style-testimonial {
  color: var(--color-text-primary);
  font-size: var(--text-body);
  font-weight: var(--weight-regular);
  line-height: var(--leading-body);
}

/* Carousel arrows */

.quote-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-bg-white);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--color-text-secondary);
  z-index: 2;
  padding: 0;
  transition: background 0.15s var(--ease), color 0.15s var(--ease), border-color 0.15s var(--ease);
}

.quote-arrow svg { width: 20px; height: 20px; }

.quote-arrow:hover {
  background: var(--color-brand-blue);
  border-color: var(--color-brand-blue);
  color: var(--color-bg-white);
}

.quote-arrow--prev { left: -64px; }
.quote-arrow--next { right: -64px; }

.testimonial-details {
  display: flex;
  flex-flow: column;
  gap: 2px;
}

.text-style-author-title {
  color: #101828;
  font-size: var(--text-body);
  font-weight: var(--weight-semibold);
  line-height: 1.4;
}

.text-style-author-company {
  color: #475467;
  font-size: var(--text-small);
  font-weight: var(--weight-medium);
  line-height: 1.4;
}

.quote-dots {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 2rem;
}

.quote-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--color-border);
  cursor: pointer;
  border: none;
  padding: 0;
  transition: background-color 0.2s var(--ease);
}

.quote-dot.is-active   { background-color: var(--color-brand-blue); }
.quote-dot:hover:not(.is-active) { background-color: var(--color-text-muted); }


/* CTA panel (bordered "Access Deeper Insights" pattern) */

.section_cta {
  color: var(--color-text-primary);
  position: relative;
}

.is-v2 {
  background-color: var(--color-bg-white);
}

.cta_card-3-content {
  display: flex;
  flex-flow: column;
  gap: 1.5rem;
  border: 1px solid #D0D5DD;
  background-color: #F8F8F8;
  border-radius: 1.25rem;
  padding: 2.5rem;
}

.cta-cards-wrapper {
  display: flex;
  flex-flow: row;
  gap: 2rem;
  padding-top: 2rem;
  padding-bottom: 1rem;
  width: 100%;
}

.cta-card {
  display: flex;
  flex-flow: column;
  gap: 12px;
  flex: 1 1 0;
  min-width: 0;
}

.icon-1x1-small {
  width: 2rem;
  height: 2rem;
}

.icon-placeholder {
  background-color: var(--color-bg-gray-soft);
  border-radius: var(--radius-sm);
}

/* Inline SVG icons — color inherited via currentColor */
.icon-svg {
  display: block;
  color: var(--color-text-primary);
}

/* Text utilities */

.text-weight-medium   { font-weight: var(--weight-medium); }
.text-weight-semibold { font-weight: var(--weight-semibold); }
.text-color-grey-700  { color: var(--color-text-secondary); }
.text-color-grey-800  { color: var(--color-text-primary); }

/* Stats row */

.new-home-feature-stats {
  display: flex;
  flex-flow: row;
  gap: 50px;
}

.stats-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stats-heading {
  font-size: 3rem;
  font-weight: var(--weight-regular);
  line-height: var(--leading-snug);
  letter-spacing: var(--tracking-snug);
  color: var(--color-brand-blue);
}

.stats-details {
  font-size: var(--text-body);
  line-height: var(--leading-body);
  color: #575757;
}

/* Link arrow */

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-body);
  font-weight: var(--weight-medium);
  color: var(--color-brand-blue);
  transition: gap 0.15s var(--ease);
}
.link-arrow:hover { gap: var(--space-3); text-decoration: underline; }


/* ============================================================
   DEMO PAGE (/demo — standalone request form)
   ============================================================ */

.standalone-body {
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: clip;
}

.demo-page {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-12) var(--space-6);
}

.demo-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background-color: var(--color-brand-navy);
}

.demo-bg-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: blur(2px) saturate(0.95);
  transform: scale(1.04); /* hide the blur edge */
}

.demo-bg-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, rgba(0, 30, 55, 0.35) 0%, rgba(0, 30, 55, 0.6) 100%);
}

.demo-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--color-text-muted);
  font-size: var(--text-small);
  font-weight: var(--weight-medium);
  text-decoration: none;
  margin-bottom: var(--space-4);
  margin-left: calc(-1 * var(--space-2));
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  transition: color 0.15s var(--ease), background 0.15s var(--ease);
  align-self: flex-start;
}

.demo-back-link:hover {
  color: var(--color-text-primary);
  background: var(--color-bg-gray-soft);
}

.demo-back-link svg {
  width: 14px;
  height: 14px;
}

.demo-card-wrap {
  width: 100%;
  max-width: 480px;
}

.demo-card {
  background: var(--color-bg-white);
  border-radius: var(--radius-2xl);
  box-shadow:
    0 30px 60px -15px rgba(0, 20, 40, 0.45),
    0 12px 24px -8px rgba(0, 20, 40, 0.25);
  padding: var(--space-10);
  display: flex;
  flex-direction: column;
}

.demo-card-header {
  text-align: center;
  margin-bottom: var(--space-8);
}

.demo-card-logo {
  width: auto;
  height: 32px;
  margin: 0 auto var(--space-6);
  display: block;
}

.demo-field-optional {
  color: var(--color-text-muted);
  font-weight: var(--weight-regular);
}

.demo-field-required {
  color: #DA3F36;
  margin-left: 2px;
}

.demo-card-title {
  font-size: 1.75rem;
  line-height: var(--leading-snug);
  letter-spacing: var(--tracking-snug);
  color: var(--color-text-primary);
  margin-bottom: var(--space-3);
}

.demo-card-subtitle {
  color: var(--color-text-secondary);
  font-size: var(--text-body);
  line-height: var(--leading-body);
  text-align: left;
  margin: 0;
}

.demo-intro {
  margin-top: var(--space-5);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
}

.demo-team-stack {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.demo-team-avatar-wrap {
  position: relative;
  display: inline-block;
}

.demo-team-avatar-wrap + .demo-team-avatar-wrap {
  margin-left: -10px;
}

.demo-team-avatar {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--color-bg-gray-soft);
  box-shadow: 0 0 0 2px var(--color-bg-white), 0 2px 4px rgba(16, 24, 40, 0.08);
  padding: 0;
  cursor: pointer;
  transition: transform 0.2s var(--ease), z-index 0s linear 0.2s;
}

.demo-team-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.demo-team-avatar:hover,
.demo-team-avatar:focus-visible,
.demo-team-avatar-wrap.is-open .demo-team-avatar {
  transform: translateY(-3px);
  outline: none;
  transition-delay: 0s;
}
.demo-team-avatar-wrap:hover,
.demo-team-avatar-wrap:focus-within,
.demo-team-avatar-wrap.is-open {
  z-index: 5;
}

.demo-team-popover {
  position: absolute;
  bottom: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: var(--color-text-primary);
  color: var(--color-bg-white);
  border-radius: 8px;
  padding: 8px 10px;
  white-space: nowrap;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: var(--weight-medium);
  line-height: 1.2;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s var(--ease), transform 0.15s var(--ease);
  z-index: 6;
  box-shadow: 0 6px 16px -4px rgba(16, 24, 40, 0.25);
}

.demo-team-popover::before {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--color-text-primary);
}

/* Hover bridge — extends invisible hit area down to the avatar so the cursor
   can cross the gap without the popover hiding. */
.demo-team-popover::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 12px;
}

.demo-team-popover-meta {
  color: rgba(255, 255, 255, 0.85);
}

.demo-team-popover-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #8FB3FF;
  text-decoration: none;
  padding: 4px 8px;
  margin: 0 -2px -2px;
  border-radius: 5px;
  transition: background 0.15s var(--ease), color 0.15s var(--ease);
}
.demo-team-popover-link:hover,
.demo-team-popover-link:focus-visible {
  background: rgba(143, 179, 255, 0.18);
  color: #C4D6FF;
  outline: none;
}
.demo-team-popover-link svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}

/* Show popover when wrap is hovered (with focus-within for keyboard) or click-toggled */
.demo-team-avatar-wrap:hover .demo-team-popover,
.demo-team-avatar-wrap:focus-within .demo-team-popover,
.demo-team-avatar-wrap.is-open .demo-team-popover {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}


.demo-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.demo-form-row--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
}

.demo-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.demo-field-label {
  font-size: var(--text-small);
  font-weight: var(--weight-medium);
  color: var(--color-text-secondary);
}

.demo-field input {
  font: inherit;
  font-size: var(--text-body);
  color: var(--color-text-primary);
  background: var(--color-bg-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  width: 100%;
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}

.demo-field input:hover {
  border-color: #B8BEC8;
}

.demo-field input:focus {
  outline: none;
  border-color: var(--color-brand-blue);
  box-shadow: 0 0 0 3px rgba(0, 90, 255, 0.15);
}

.demo-field.is-invalid input,
.demo-field.is-invalid input:hover {
  border-color: #DA3F36;
}

.demo-field.is-invalid input:focus {
  border-color: #DA3F36;
  box-shadow: 0 0 0 3px rgba(218, 63, 54, 0.18);
}

.demo-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.demo-submit {
  width: 100%;
  margin-top: var(--space-2);
  position: relative;
}

.demo-submit:disabled {
  opacity: 0.7;
  cursor: progress;
}

.demo-submit-spinner {
  display: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  animation: demo-spin 0.7s linear infinite;
}

.demo-card[data-state="loading"] .demo-submit-label { display: none; }
.demo-card[data-state="loading"] .demo-submit-spinner { display: inline-block; }

@keyframes demo-spin {
  to { transform: rotate(360deg); }
}

.demo-form-microcopy {
  font-size: var(--text-small);
  color: var(--color-text-muted);
  text-align: center;
  margin-top: var(--space-2);
}

.demo-form-error {
  display: none;
  font-size: var(--text-small);
  color: #B23A30;
  background: rgba(218, 63, 54, 0.06);
  border: 1px solid rgba(218, 63, 54, 0.2);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  margin-top: var(--space-2);
}

.demo-success {
  text-align: center;
  padding: var(--space-6) 0 var(--space-4);
}

.demo-success-icon {
  width: 56px;
  height: 56px;
  color: var(--color-brand-blue);
  margin: 0 auto var(--space-5);
  display: block;
}

.demo-success-title {
  font-size: 1.5rem;
  line-height: var(--leading-snug);
  color: var(--color-text-primary);
  margin-bottom: var(--space-3);
}

.demo-success-text {
  color: var(--color-text-secondary);
  line-height: var(--leading-body);
}

@media (max-width: 600px) {
  .demo-card { padding: var(--space-6); }
  .demo-card-title { font-size: 1.5rem; }
  .demo-form-row--split { grid-template-columns: 1fr; }
}


/* ============================================================
   LEGAL ARTICLE (Privacy, Terms)
   ============================================================ */

.legal-article {
  color: var(--color-text-secondary);
  font-size: var(--text-body);
  line-height: var(--leading-body);
}

.legal-article h1 {
  font-size: var(--text-h2);
  line-height: var(--leading-snug);
  letter-spacing: var(--tracking-snug);
  color: var(--color-text-primary);
  margin-bottom: var(--space-6);
}

.legal-article h2 {
  font-size: 1.5rem;
  font-weight: var(--weight-semibold);
  line-height: var(--leading-snug);
  color: var(--color-text-primary);
  margin-top: var(--space-12);
  margin-bottom: var(--space-4);
}

.legal-article h3 {
  font-size: 1.125rem;
  font-weight: var(--weight-semibold);
  line-height: var(--leading-relaxed);
  color: var(--color-text-primary);
  margin-top: var(--space-8);
  margin-bottom: var(--space-3);
}

.legal-article p {
  margin-bottom: var(--space-4);
}

.legal-article ol,
.legal-article ul {
  margin-bottom: var(--space-4);
  padding-left: var(--space-6);
  list-style: revert;
}

.legal-article li {
  margin-bottom: var(--space-2);
}

.legal-article a {
  color: var(--color-brand-blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-article a:hover {
  color: var(--color-brand-blue-hover);
}

.legal-article strong {
  color: var(--color-text-primary);
  font-weight: var(--weight-semibold);
}

.legal-article > p:first-of-type {
  font-size: var(--text-small);
  color: var(--color-text-muted);
  margin-bottom: var(--space-8);
}


/* ============================================================
   NAV
   ============================================================ */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--color-bg-white);
  box-shadow: 0 1px 4px rgba(10, 26, 46, 0.04);
}

.nav-inner {
  max-width: var(--container-large);
  margin: 0 auto;
  padding-top: 20px;
  padding-bottom: 20px;
  display: flex;
  align-items: center;
  gap: var(--space-12);
}

.logo { display: inline-flex; align-items: center; }
.logo-img { height: 30px; width: auto; display: block; }
.nav .logo-img { transform: translateY(-2px); }
.logo-img--light { filter: brightness(0) invert(1); }
.logo-img,
.footer-wordmark {
  -webkit-user-drag: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

.nav-links {
  display: flex;
  gap: var(--space-8);
  flex: 1;
  margin-left: var(--space-2);
}

.nav-link {
  font-size: var(--text-body);
  font-weight: var(--weight-medium);
  color: var(--color-text-secondary);
  transition: color 0.15s ease;
}
.nav-link:hover { color: var(--color-text-primary); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  position: relative;
  z-index: 60;
  color: var(--color-text-primary);
}

.nav-toggle-line {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.18s var(--ease);
  transform-origin: center;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: var(--color-bg-white);
  padding: 96px 5% 32px;
  display: none;
  flex-direction: column;
  gap: 4px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 0.2s var(--ease), transform 0.25s var(--ease);
}

.mobile-menu.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.mobile-menu-link {
  font-size: 1.5rem;
  font-weight: var(--weight-medium);
  color: var(--color-text-primary);
  padding: 16px 0;
  border-bottom: 1px solid var(--color-border-light);
}


/* ============================================================
   FOOTER
   ============================================================ */

.footer {
  background: var(--color-brand-navy);
  color: rgba(255, 255, 255, 0.7);
  padding-top: var(--space-20);
}

.footer-inner {
  max-width: var(--container-large);
  margin: 0 auto;
  padding-bottom: var(--space-12);
}

.footer-logo-area {
  width: 90%;
  max-width: 72rem;
  margin: 0 auto;
  aspect-ratio: 4.93 / 1;
  overflow: hidden;
}

.footer-wordmark {
  display: block;
  width: 100%;
  filter: brightness(0) invert(1);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.02) 70%);
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.02) 70%);
}

.footer-main {
  display: flex;
  align-items: center;
  gap: var(--space-10);
  padding-bottom: var(--space-12);
}

.footer-brand-col {
  display: flex;
  flex-direction: column;
  align-self: flex-start;
  margin-right: auto;
  max-width: 28rem;
}

.footer-brand-col .logo { margin-bottom: var(--space-4); }

.footer-tagline {
  font-size: var(--text-small);
  color: rgba(255, 255, 255, 0.6);
}

.footer-copyright {
  font-size: var(--text-small);
  color: rgba(255, 255, 255, 0.4);
  margin-top: var(--space-6);
}

.footer-links-col {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.footer-links-col a {
  font-size: var(--text-small);
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.15s ease;
}

.footer-links-col a:hover { color: var(--color-bg-white); }

.footer-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.footer-social-icon {
  width: 20px;
  height: 20px;
  filter: brightness(0) invert(1);
  opacity: 0.7;
  transition: opacity 0.15s ease;
}

.footer-social:hover .footer-social-icon { opacity: 1; }

.footer-badges-col {
  display: flex;
  align-items: center;
}

.soc2-badge {
  height: 64px;
  width: auto;
  display: block;
}


/* ============================================================
   MARGIN UTILITIES (direction + size)
   ============================================================ */

.margin-xxsmall { margin: 0.5rem;  }
.margin-small   { margin: 1.25rem; }
.margin-medium  { margin: 2.5rem;  }
.margin-large   { margin: 4rem;    }
.margin-huge    { margin: 5rem;    }

/* direction classes zero non-target sides — listed after size so they win in cascade */
.margin-top    { margin-right: 0; margin-bottom: 0; margin-left: 0; }
.margin-bottom { margin-top: 0;   margin-right: 0; margin-left: 0; }
.margin-left   { margin-top: 0;   margin-right: 0; margin-bottom: 0; }
.margin-right  { margin-top: 0;   margin-bottom: 0; margin-left: 0; }


/* ============================================================
   CYCLE WORD (hero typography animation)
   ============================================================ */

.cycle-word {
  display: inline-block;
  color: var(--color-brand-blue);
  transition: opacity 0.28s var(--ease), transform 0.28s var(--ease);
}
.cycle-word.is-leaving  { opacity: 0; transform: translateY(-10px); }
.cycle-word.is-entering { opacity: 0; transform: translateY(10px); transition: none; }


/* ============================================================
   HERO ILLUSTRATION PLACEHOLDER
   ============================================================ */

.hero-split {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 4rem;
  align-items: center;
}

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

.hero-icon-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.hero-icon-cell {
  position: relative;
  aspect-ratio: 1;
  background: var(--color-bg-white);
  border-radius: 1rem;
  box-shadow: 0 2px 8px rgba(10, 26, 46, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem;
  min-width: 0;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hero-icon-cell img {
  max-width: 78%;
  max-height: 78%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.hero-icon-cell::after {
  content: '';
  display: block;
  width: 32%;
  height: 32%;
  border-radius: 50%;
  background: var(--color-bg-gray-soft);
}

.hero-icon-cell:has(img)::after { display: none; }

.hero-icon-cell.is-faded { transform: scale(0.75); }

.hero-h1-line { white-space: nowrap; }

@media (max-width: 1000px) {
  .hero-split { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-icon-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  .hero-h1-line { white-space: normal; }
}


/* ============================================================
   BLOG INDEX
   ============================================================ */

.blog-index-header {
  text-align: left;
  padding-top: var(--section-padding-large);
}

.blog-index-deck {
  margin-top: var(--space-4);
  max-width: 36rem;
}

.blog-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-8);
  padding-bottom: var(--section-padding-large);
}

.blog-card {
  display: flex;
  flex-direction: column;
  background: var(--color-bg-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s var(--ease);
}

.blog-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
  border-color: var(--color-border-light);
}

.blog-card-cover {
  aspect-ratio: 3 / 1;
  background: var(--color-bg-gray-soft);
  overflow: hidden;
}

.blog-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Tinted gradient covers (used when no image is supplied) */
.cover-gradient {
  width: 100%;
  height: 100%;
}
.cover-gradient--blue    { background: linear-gradient(160deg, #C8D6EF 0%, #B7DCEC 100%); }
.cover-gradient--violet  { background: linear-gradient(160deg, #D6CFEC 0%, #BDD0EE 100%); }
.cover-gradient--teal    { background: linear-gradient(160deg, #C4E2D8 0%, #B5DCE8 100%); }
.cover-gradient--navy    { background: linear-gradient(160deg, #B7CDE6 0%, #99B6D9 100%); }

.blog-card-body {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-6);
  flex: 1;
}

.blog-card-title {
  font-size: 1.375rem;
  line-height: var(--leading-snug);
  letter-spacing: var(--tracking-snug);
  color: var(--color-text-primary);
  font-weight: var(--weight-regular);
}

.blog-card-excerpt {
  font-size: var(--text-body);
  color: var(--color-text-tertiary);
  line-height: var(--leading-body);
  flex: 1;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-small);
  color: var(--color-text-muted);
  margin-top: var(--space-2);
}

.blog-card-author-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--color-bg-white);
  border: 1px solid var(--color-border);
}

.blog-card-author-name {
  color: var(--color-text-secondary);
  font-weight: var(--weight-medium);
}

.blog-card-meta-dot {
  color: var(--color-text-disabled);
}

.blog-index-empty {
  color: var(--color-text-muted);
  padding-bottom: var(--section-padding-large);
}

/* Homepage "From the blog" section */
.home-blog-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}

.home-blog-all-link {
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-brand-blue);
  text-decoration: none;
  white-space: nowrap;
}

.home-blog-all-link:hover {
  text-decoration: underline;
}

/* Strip the bottom padding the grid carries from the blog index */
.home-blog-grid {
  padding-bottom: 0;
}


/* ============================================================
   BLOG POST
   ============================================================ */

.post-hero {
  padding-top: var(--section-padding-large);
  padding-bottom: var(--space-8);
}

.post-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-small);
  color: var(--color-text-muted);
  padding: 6px 10px 6px 6px;
  border-radius: var(--radius-pill);
  background: var(--color-bg-gray-soft);
  margin-bottom: var(--space-6);
  transition: background 0.15s ease, color 0.15s ease;
}

.post-back-link:hover {
  background: var(--color-border);
  color: var(--color-text-secondary);
}

.post-back-link svg {
  width: 14px;
  height: 14px;
}

.post-title {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--color-text-primary);
  font-weight: var(--weight-regular);
  margin-bottom: var(--space-4);
}

.post-deck {
  font-size: var(--text-lead);
  line-height: var(--leading-loose);
  color: var(--color-text-tertiary);
  max-width: 38rem;
  margin-bottom: var(--space-6);
}

.post-meta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-small);
  color: var(--color-text-muted);
  flex-wrap: wrap;
}

.post-author {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
}

.post-author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--color-bg-white);
  border: 1px solid var(--color-border);
}

.post-author-text {
  font-size: var(--text-body);
}

.post-author-name {
  color: var(--color-text-secondary);
  font-weight: var(--weight-medium);
}

.post-author-role {
  color: var(--color-text-muted);
}

.post-meta-dot {
  color: var(--color-text-disabled);
}

.post-cover-wrap {
  padding-bottom: var(--space-4);
}

.post-cover {
  width: 100%;
  aspect-ratio: 3 / 1;
  object-fit: cover;
  border-radius: var(--radius-lg);
  background: var(--color-bg-gray-soft);
  overflow: hidden;
}


/* ============================================================
   ABOUT PAGE
   ============================================================ */

/* Hero block — left-aligned intro, then 2-col Vision/Mission + photos */

.about-hero-block {
  padding-top: var(--section-padding-large);
  padding-bottom: var(--section-padding-large);
}

.about-eyebrow {
  display: inline-block;
  font-size: var(--text-small);
  font-weight: var(--weight-medium);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin: 0;
}
.about-eyebrow--center { text-align: center; }

.about-hero-intro {
  margin-bottom: var(--space-16);
}

.about-hero-headline {
  font-size: clamp(32px, 4vw, 3rem);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--color-text-primary);
  font-weight: var(--weight-regular);
  margin-bottom: var(--space-5);
}

.about-hero-lede {
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--color-text-tertiary);
}

/* Vision / Mission text + photo collage on the right */

.about-vm-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--space-16);
  align-items: start;
}

.about-vm-text {
  display: flex;
  flex-direction: column;
  gap: var(--space-12);
  max-width: 32rem;
}

.about-vm-block {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.about-vm-heading {
  font-size: 1.875rem;
  font-weight: var(--weight-regular);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--color-text-primary);
}

.about-vm-body {
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--color-text-tertiary);
}

.about-section-head {
  max-width: 48rem;
  margin: 0 auto var(--space-12);
}
.about-section-head .about-eyebrow { margin-bottom: var(--space-4); }

.about-section-heading {
  font-size: clamp(1.875rem, 3.5vw, 2.5rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--color-text-primary);
  font-weight: var(--weight-regular);
}
.about-section-heading--center { text-align: center; }

.about-section-sub {
  margin-top: var(--space-5);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--color-text-tertiary);
  max-width: 38rem;
}

/* Culture strip — collage with middle photo spanning full height */

.about-culture-strip {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: 1fr 1.08fr 0.96fr;
  gap: var(--space-3);
  aspect-ratio: 21 / 20;
  width: 100%;
}

.about-culture-cell {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  background: var(--color-bg-gray-soft);
}
.about-culture-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  user-select: none;
}

.about-culture-cell--a { grid-column: 1;          grid-row: 1; }
.about-culture-cell--b { grid-column: 1;          grid-row: 2 / span 2; }
.about-culture-cell--c { grid-column: 2;          grid-row: 1 / span 2; }
.about-culture-cell--d { grid-column: 3;          grid-row: 1 / span 2; }
.about-culture-cell--e { grid-column: 2 / span 2; grid-row: 3; }

/* Founders — text on the left, two cards on the right */

.about-founders-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--space-16);
  align-items: start;
}

.about-founders-text {
  max-width: 32rem;
}

.about-founders-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-6);
}

.about-founder {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  color: inherit;
  text-decoration: none;
  padding: var(--space-2);
  margin: calc(-1 * var(--space-2));
  border-radius: var(--radius-lg);
  transition: background 0.15s var(--ease);
}
.about-founder:hover { background: rgba(0, 0, 0, 0.025); }

.about-founder-photo {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--color-bg-gray-soft);
  margin-bottom: var(--space-4);
}
.about-founder-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about-founder-name {
  font-size: 1.25rem;
  font-weight: var(--weight-medium);
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--color-text-primary);
}

.about-founder-title {
  font-size: var(--text-small);
  line-height: 1.3;
  color: var(--color-text-tertiary);
  margin-top: 2px;
}

.about-founder-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: var(--space-3);
  padding: 5px 11px 5px 9px;
  border-radius: var(--radius-pill);
  background: var(--color-brand-blue-light);
  color: var(--color-brand-blue);
  font-size: var(--text-small);
  font-weight: var(--weight-medium);
  opacity: 0;
  transform: translateY(4px);
  pointer-events: none;
  transition: opacity 0.18s var(--ease), transform 0.18s var(--ease);
}
.about-founder-link svg { width: 14px; height: 14px; }
.about-founder:hover .about-founder-link,
.about-founder:focus-visible .about-founder-link {
  opacity: 1;
  transform: translateY(0);
}

/* Open-role cards (reuse .cta-card from homepage) */

.about-role-card {
  color: inherit;
  text-decoration: none;
  padding: var(--space-5);
  margin: calc(-1 * var(--space-5));
  border-radius: var(--radius-lg);
  transition: background 0.15s var(--ease);
  position: relative;
}
.about-role-card:hover { background: rgba(0, 0, 0, 0.025); }

.about-role-apply {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: var(--space-2);
  font-size: var(--text-small);
  font-weight: var(--weight-medium);
  color: var(--color-brand-blue);
  white-space: nowrap;
}
.about-role-card:hover .about-role-apply { gap: 10px; }

/* Final CTA */

.about-final-cta {
  padding-block: var(--section-padding-large);
  text-align: center;
}

.about-final-cta-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  max-width: 36rem;
  margin: 0 auto;
}

.about-final-cta-heading {
  font-size: clamp(2rem, 4.5vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--color-text-primary);
  font-weight: var(--weight-regular);
}

.about-final-cta-sub {
  font-size: var(--text-lead);
  color: var(--color-text-tertiary);
  margin-bottom: var(--space-3);
}


/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1000px) {
  :root {
    --text-h1: 2.75rem;
    --text-h2: 2.25rem;
    --text-h3: 2rem;
  }
  .nav-links        { display: none; }
  .nav-link--login  { display: none; }
  .nav-inner        { gap: var(--space-4); justify-content: space-between; }
  .nav-toggle       { display: inline-flex; }
  .mobile-menu      { display: flex; }
  .new-home-feature-grid-container { grid-template-columns: 1fr; gap: 1.5rem; }
  .new-home-content-wrapper { grid-template-columns: 1fr; gap: 2rem; }
  .feature-heading { font-size: 1.75rem; }
  .new-home-feature-stats { flex-flow: column; gap: 2rem; }
  .stats-heading { font-size: 2.375rem; }
  .cta-cards-wrapper { flex-flow: column; gap: 1.5rem; }
  .cta_card-3-content { padding: 1.5rem; }
  .quote-slide { flex-flow: column; }
  .quote-image-wrapper {
    width: auto;
    height: auto;
    aspect-ratio: 240 / 315;
    max-width: 240px;
    margin: 1.5rem auto 0;
    align-self: center;
    border-radius: 12px;
    overflow: hidden;
  }
  .quote-content { padding: 1.5rem; }
  .quote-arrow { top: 180px; }
  .quote-arrow--prev { left: 8px; }
  .quote-arrow--next { right: 8px; }
  .large-feature-text { font-size: 2rem; line-height: var(--leading-snug); }
  .feature-card-new-home { padding: 1.25rem 1.5rem; gap: 1.75rem; }
  .illustration-capture,
  .illustration-generate,
  .illustration-run { aspect-ratio: auto; }
  .blog-card-grid       { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-6); }
  .about-founders-row   { grid-template-columns: 1fr; gap: var(--space-10); }
  .about-founders-text  { max-width: none; }
  .about-vm-row         { grid-template-columns: 1fr; gap: var(--space-12); }
  .about-vm-text        { max-width: none; gap: var(--space-8); }
  .about-hero-intro     { margin-bottom: var(--space-12); }
}

@media (max-width: 600px) {
  :root {
    --text-h2: 1.875rem;
    --text-h3: 1.5rem;
    --section-padding-large:  3.5rem;
    --section-padding-medium: 2.5rem;
    --section-padding-small:  2rem;
    --section-padding-tiny:   1.5rem;
    --section-padding-hero-top:    4.5rem;
    --section-padding-hero-bottom: 3rem;
  }
  .footer         { padding-top: var(--space-12); }
  .footer-inner   { padding-bottom: var(--space-8); }
  .footer-main        { flex-direction: column; gap: var(--space-8); align-items: flex-start; }
  .footer-brand-col   { margin-right: 0; }
  .footer-links-col   { gap: var(--space-6); }
  .nav-inner      { padding-top: 14px; padding-bottom: 14px; }
  .logo-img       { height: 26px; }
  .btn            { padding: 12px 20px; }
  .btn--small     { padding: 9px 16px; }
  .large-feature-text { font-size: 1.5rem; line-height: var(--leading-normal); }
  .feature-heading    { font-size: 1.375rem; }
  .stats-heading      { font-size: 2rem; }
  .new-home-feature-stats { gap: 1.5rem; }
  .new-home-feature-grid-content { padding: 1.25rem; }
  .feature-card-new-home { padding: 1.25rem; gap: 1.5rem; }
  .cta_card-3-content { padding: 1.25rem; gap: 1.25rem; }
  .hero-icon-grid     { gap: 0.5rem; }
  .quote-image-wrapper { max-width: 200px; }
  .quote-content      { padding: 1.25rem; gap: 1rem; }
  .text-style-testimonial { font-size: 0.9375rem; line-height: 1.55; }
  .quote-arrow        { width: 36px; height: 36px; top: 150px; }
  .quote-arrow svg    { width: 16px; height: 16px; }
  .blog-card-grid     { grid-template-columns: 1fr; gap: var(--space-5); }
  .blog-card-body     { padding: var(--space-5); }
  .post-title         { font-size: 2rem; }
  .post-deck          { font-size: var(--text-body); }
  .about-hero            { padding-top: var(--section-padding-medium); }
  .about-culture-strip   { max-width: 360px; margin: 0 auto; gap: var(--space-2); }
  .about-vm-heading      { font-size: 1.5rem; }
  .about-hero-headline   { font-size: 2rem; }
  .about-hero-lede       { font-size: 1.0625rem; }
  .about-founders-grid   { gap: var(--space-4); }
  .about-founder-link    { opacity: 1; transform: none; pointer-events: auto; }
}


/* ============================================================
   HOMEPAGE — link on "Generate the connector" heading
   ============================================================ */

.feature-heading-link {
  color: inherit;
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size 0.25s var(--ease), color 0.15s var(--ease);
}
.feature-heading-link:hover {
  color: var(--color-brand-blue);
  background-size: 100% 1px;
}


/* ============================================================
   SDK PAGE
   ============================================================ */

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

.studio-hero { padding-bottom: var(--section-padding-medium); }
.studio-ecosystem { padding-block: var(--section-padding-medium); }

.studio-hero-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 4rem;
  align-items: start;
}

.studio-hero-text { min-width: 0; }

.studio-eyebrow {
  display: inline-block;
  font-size: var(--text-body);
  font-weight: var(--weight-medium);
  color: var(--color-brand-blue);
  margin-bottom: var(--space-5);
}

.studio-hero-headline {
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--color-text-primary);
  font-weight: var(--weight-regular);
  margin-bottom: var(--space-5);
}

.studio-hero-lede {
  color: var(--color-text-secondary);
  margin-bottom: var(--space-8);
  max-width: 36rem;
}

/* Form card ------------------------------------------------ */

.studio-form-card {
  background: var(--color-bg-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 10px 30px -12px rgba(16, 24, 40, 0.08);
  max-width: 32rem;
}

.studio-form-header { margin-bottom: var(--space-6); }

.studio-form-heading {
  font-size: 1.375rem;
  font-weight: var(--weight-medium);
  line-height: 1.2;
  color: var(--color-text-primary);
  margin-bottom: var(--space-2);
}

.studio-form-sub {
  color: var(--color-text-tertiary);
  font-size: var(--text-small);
  line-height: 1.55;
}

.studio-form-sub-row {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}
.studio-form-sub-row .studio-form-sub {
  flex: 1;
  min-width: 0;
}
.studio-form-sub-row .demo-team-stack {
  flex-shrink: 0;
}

@media (max-width: 480px) {
  .studio-form-sub-row { flex-direction: column; align-items: flex-start; }
}

.studio-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.studio-form-row--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
}

.studio-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.studio-field-label {
  font-size: var(--text-small);
  font-weight: var(--weight-medium);
  color: var(--color-text-secondary);
}

.studio-field-required {
  color: #DA3F36;
  margin-left: 2px;
}

.studio-field input,
.studio-field select {
  font: inherit;
  font-size: var(--text-body);
  color: var(--color-text-primary);
  background: var(--color-bg-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  width: 100%;
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}

.studio-field input:hover,
.studio-field select:hover { border-color: #B8BEC8; }
.studio-field input:focus,
.studio-field select:focus {
  outline: none;
  border-color: var(--color-brand-blue);
  box-shadow: 0 0 0 3px rgba(0, 90, 255, 0.15);
}
.studio-field.is-invalid input { border-color: #DA3F36; }
.studio-field.is-invalid input:focus {
  border-color: #DA3F36;
  box-shadow: 0 0 0 3px rgba(218, 63, 54, 0.18);
}

.studio-select-wrap {
  position: relative;
  display: block;
}
.studio-select-wrap select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 32px;
  cursor: pointer;
}
.studio-select-caret {
  position: absolute;
  right: 12px;
  top: 50%;
  width: 12px;
  height: 12px;
  transform: translateY(-50%);
  color: var(--color-text-muted);
  pointer-events: none;
}

.studio-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  opacity: 0;
  pointer-events: none;
}

.studio-submit {
  width: 100%;
  margin-top: var(--space-2);
  position: relative;
}
.studio-submit:disabled { opacity: 0.7; cursor: progress; }

.studio-submit-spinner {
  display: none;
  width: 16px; height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  animation: demo-spin 0.7s linear infinite;
}
.studio-form-card[data-state="loading"] .studio-submit-label   { display: none; }
.studio-form-card[data-state="loading"] .studio-submit-spinner { display: inline-block; }

.studio-form-error {
  display: none;
  font-size: var(--text-small);
  color: #B23A30;
  background: rgba(218, 63, 54, 0.06);
  border: 1px solid rgba(218, 63, 54, 0.2);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  margin-top: var(--space-2);
}

.studio-success {
  text-align: center;
  padding: var(--space-4) 0;
}
.studio-success-icon {
  width: 48px; height: 48px;
  color: var(--color-brand-blue);
  margin: 0 auto var(--space-4);
}
.studio-success-title {
  font-size: 1.25rem;
  font-weight: var(--weight-medium);
  color: var(--color-text-primary);
  margin-bottom: var(--space-2);
}
.studio-success-text {
  color: var(--color-text-secondary);
  font-size: var(--text-small);
  line-height: 1.55;
}

/* Hero illustration / runtime stage ------------------------ */

.studio-hero-stage {
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  min-width: 0;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  cursor: default;
}

.studio-code-window {
  background: #0F1A2A;
  color: #E6EDF3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.06),
    0 18px 40px -16px rgba(0, 20, 40, 0.3);
}
.studio-code-window-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: #0A1320;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.studio-code-window-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #2A3445;
}
.studio-code-window-dot:nth-child(1) { background: #FF5F56; opacity: 0.85; }
.studio-code-window-dot:nth-child(2) { background: #FFBD2E; opacity: 0.85; }
.studio-code-window-dot:nth-child(3) { background: #27C93F; opacity: 0.85; }
.studio-code-window-name {
  margin-left: 8px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  color: #8B98AA;
}
.studio-code {
  margin: 0;
  padding: 18px 20px 20px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  line-height: 1.6;
  white-space: pre;
  overflow-x: auto;
}
.studio-c-comment { color: #6B7E94; font-style: italic; }
.studio-c-keyword { color: #FF7B72; }
.studio-c-type    { color: #79C0FF; }
.studio-c-fn      { color: #D2A8FF; }

/* Runtime stage */

.studio-runtime {
  background: var(--color-bg-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 18px 40px -20px rgba(16, 24, 40, 0.12);
  overflow: hidden;
}

.studio-runtime-tabs {
  display: flex;
  gap: 4px;
  padding: 10px 12px;
  background: var(--color-bg-gray-soft);
  border-bottom: 1px solid var(--color-border);
}

.studio-runtime-tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: var(--weight-medium);
  color: var(--color-text-secondary);
  background: transparent;
  transition: background 0.18s var(--ease), color 0.18s var(--ease),
              transform 0.18s var(--ease), box-shadow 0.18s var(--ease);
  cursor: pointer;
}
.studio-runtime-tab:hover {
  color: var(--color-text-primary);
  background: rgba(0, 90, 255, 0.07);
  transform: translateY(-1px);
}
.studio-runtime-tab.is-active {
  background: var(--color-bg-white);
  color: var(--color-text-primary);
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.08), 0 0 0 1px rgba(0, 90, 255, 0.18);
  transform: none;
}
.studio-runtime-tab-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--color-brand-blue);
  transition: background 0.15s var(--ease), transform 0.15s var(--ease);
  position: relative;
}
.studio-runtime-tab.is-active .studio-runtime-tab-dot {
  background: var(--color-brand-blue);
  box-shadow: 0 0 0 3px rgba(0, 90, 255, 0.18);
}

/* Inactive tab dot pulses to invite clicks */
.studio-runtime-tab:not(.is-active) .studio-runtime-tab-dot {
  animation: studio-tab-pulse 1.8s ease-in-out infinite;
}
.studio-runtime-tab:not(.is-active):nth-of-type(2) .studio-runtime-tab-dot { animation-delay: 0.3s; }
.studio-runtime-tab:not(.is-active):nth-of-type(3) .studio-runtime-tab-dot { animation-delay: 0.6s; }

@keyframes studio-tab-pulse {
  0%, 100% { box-shadow: 0 0 0 0   rgba(0, 90, 255, 0.45); opacity: 0.85; }
  50%      { box-shadow: 0 0 0 5px rgba(0, 90, 255, 0);    opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .studio-runtime-tab-dot { animation: none !important; }
}

.studio-runtime-stage {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--color-bg-gray);
  overflow: hidden;
}

.studio-runtime-panel {
  position: absolute;
  inset: 0;
  padding: 20px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
  pointer-events: none;
  display: flex;
  flex-direction: column;
}
.studio-runtime-panel.is-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* --- Browser panel --- */

.studio-panel-browser { background: var(--color-bg-gray); }

.studio-browser-chrome {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: var(--color-bg-white);
  border: 1px solid var(--color-border);
  border-radius: 10px 10px 0 0;
  border-bottom: none;
  font-size: 12px;
  color: var(--color-text-muted);
}
.studio-browser-back { color: var(--color-text-disabled); }
.studio-browser-url {
  flex: 1;
  background: var(--color-bg-gray-soft);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  color: var(--color-text-tertiary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.studio-browser-body {
  flex: 1;
  background: var(--color-bg-white);
  border: 1px solid var(--color-border);
  border-radius: 0 0 10px 10px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  overflow: hidden;
}

.studio-browser-title {
  font-size: 14px;
  font-weight: var(--weight-medium);
  color: var(--color-text-primary);
}

.studio-browser-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.studio-browser-field-label {
  font-size: 10px;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.studio-browser-field-input {
  display: flex;
  align-items: center;
  gap: 2px;
  background: var(--color-bg-gray-soft);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 7px 10px;
  font-size: 12px;
  color: var(--color-text-primary);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  min-height: 28px;
}

.studio-browser-save {
  align-self: flex-start;
  background: var(--color-brand-blue);
  color: #fff;
  font-size: 12px;
  font-weight: var(--weight-medium);
  padding: 7px 14px;
  border-radius: 6px;
  cursor: default;
}

.studio-browser-toast {
  position: absolute;
  right: 16px;
  bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #0F1A2A;
  color: #fff;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: var(--weight-medium);
  opacity: 0;
  transform: translateY(8px);
  box-shadow: 0 8px 20px -8px rgba(0, 0, 0, 0.4);
}
.studio-browser-toast svg {
  width: 14px; height: 14px;
  color: #5BD37A;
}

/* Typed-text reveal — uses ch units and steps() */
.studio-typed {
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  vertical-align: bottom;
  max-width: 100%;
  width: 0ch;
}

/* Browser animation timeline (5s loop, plays only when active) */
.studio-panel-browser.is-active .studio-browser-field:nth-of-type(1) .studio-typed {
  animation: studio-type 1.1s steps(10, end) 0.2s forwards;
}
.studio-panel-browser.is-active .studio-browser-field:nth-of-type(2) .studio-typed {
  animation: studio-type 1.4s steps(19, end) 1.4s forwards;
}
.studio-panel-browser.is-active .studio-browser-field:nth-of-type(3) .studio-typed {
  animation: studio-type 0.7s steps(7, end) 3s forwards;
}
.studio-panel-browser.is-active .studio-browser-save {
  animation: studio-press 0.4s var(--ease) 3.9s forwards;
}
.studio-panel-browser.is-active .studio-browser-toast {
  animation: studio-toast-in 0.35s var(--ease) 4.2s forwards;
}

@keyframes studio-type {
  from { width: 0ch; }
  to   { width: calc(var(--ch, 10) * 1ch); }
}
@keyframes studio-press {
  0%   { transform: translateY(0); background: var(--color-brand-blue); }
  40%  { transform: translateY(1px); background: var(--color-brand-blue-hover); }
  100% { transform: translateY(0); background: var(--color-brand-blue); }
}
@keyframes studio-toast-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.studio-caret {
  display: inline-block;
  width: 1px;
  height: 13px;
  background: var(--color-text-primary);
  animation: studio-blink 1s steps(2) infinite;
  margin-left: 1px;
}
.studio-caret--green { background: #B3FFB3; height: 12px; }

@keyframes studio-blink {
  50% { opacity: 0; }
}

/* --- Terminal panel --- */

.studio-panel-terminal { background: #0A1220; }

.studio-terminal-chrome {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  background: #050B16;
  border: 1px solid #0E1A2E;
  border-radius: 10px 10px 0 0;
  border-bottom: none;
}
.studio-terminal-host {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  color: #4F6B8A;
}
.studio-terminal-body {
  flex: 1;
  background: #050B16;
  border: 1px solid #0E1A2E;
  border-radius: 0 0 10px 10px;
  padding: 14px 16px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  line-height: 1.55;
  color: #B3FFB3;
  overflow: hidden;
}
.studio-terminal-line {
  white-space: pre-wrap;
  word-break: break-word;
}
.studio-terminal-prompt {
  color: #5BD37A;
  margin-right: 6px;
}
.studio-terminal-cmd { display: flex; align-items: flex-start; flex-wrap: wrap; }
.studio-terminal-cmd .studio-typed { color: #B3FFB3; }

.studio-terminal-response { opacity: 0; }

.studio-panel-terminal.is-active .studio-terminal-cmd .studio-typed {
  animation: studio-type 3s steps(70, end) 0.4s forwards;
}
.studio-panel-terminal.is-active .studio-terminal-response:nth-of-type(3) {
  animation: studio-fadein 0.3s ease 3.7s forwards;
}
.studio-panel-terminal.is-active .studio-terminal-response:nth-of-type(4) {
  animation: studio-fadein 0.3s ease 4s forwards;
}

@keyframes studio-fadein {
  to { opacity: 1; }
}

/* --- Rich client panel --- */

.studio-panel-rich { background: #ECEEF1; }

.studio-rich-chrome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
  background: linear-gradient(to bottom, #E1E4E9, #C8CDD4);
  border: 1px solid #A6ADB7;
  border-bottom: none;
  border-radius: 6px 6px 0 0;
  font-size: 11px;
  color: var(--color-text-primary);
}
.studio-rich-title { font-weight: var(--weight-medium); }
.studio-rich-buttons { display: inline-flex; gap: 4px; color: var(--color-text-secondary); }
.studio-rich-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px; height: 16px;
  background: #DCE0E5;
  border: 1px solid #A6ADB7;
  font-size: 10px;
  line-height: 1;
}
.studio-rich-btn--close { background: #E3A0A0; }

.studio-rich-menu {
  position: relative;
  display: flex;
  gap: 14px;
  padding: 4px 10px;
  background: #F4F5F8;
  border: 1px solid #A6ADB7;
  border-top: none;
  font-size: 11px;
  color: var(--color-text-primary);
}
.studio-rich-menu-item { padding: 2px 4px; }
.studio-rich-menu-item.is-open {
  background: #2D5BA8;
  color: #fff;
}
.studio-rich-dropdown {
  position: absolute;
  top: 100%;
  left: 6px;
  background: #F4F5F8;
  border: 1px solid #6E7A8B;
  box-shadow: 1px 1px 0 rgba(0, 0, 0, 0.08), 3px 3px 8px rgba(0, 0, 0, 0.1);
  padding: 2px 0;
  z-index: 2;
  min-width: 140px;
  opacity: 0;
}
.studio-rich-dropdown-item {
  padding: 4px 14px;
  font-size: 11px;
  color: var(--color-text-primary);
}
.studio-rich-dropdown-item.is-hover {
  background: #2D5BA8;
  color: #fff;
}

.studio-rich-dialog {
  margin-top: 12px;
  background: #F4F5F8;
  border: 1px solid #6E7A8B;
  border-radius: 4px;
  padding: 12px;
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  gap: 8px;
  opacity: 0;
  transform: translateY(4px);
}
.studio-rich-dialog-title {
  font-size: 11px;
  font-weight: var(--weight-medium);
  color: var(--color-text-primary);
  padding-bottom: 6px;
  border-bottom: 1px solid #D0D5DD;
}
.studio-rich-dialog-row {
  display: grid;
  grid-template-columns: 70px 1fr;
  align-items: center;
  gap: 8px;
  font-size: 11px;
}
.studio-rich-dialog-label { color: var(--color-text-tertiary); }
.studio-rich-dialog-input {
  background: #fff;
  border: 1px inset #B0B7C2;
  padding: 3px 6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  color: var(--color-text-primary);
  min-height: 18px;
}
.studio-rich-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  margin-top: 4px;
}
.studio-rich-dialog-btn {
  background: linear-gradient(to bottom, #F8F9FB, #DCE0E5);
  border: 1px solid #A6ADB7;
  border-radius: 3px;
  padding: 3px 12px;
  font-size: 11px;
  color: var(--color-text-primary);
  cursor: default;
}
.studio-rich-dialog-btn--ok { font-weight: var(--weight-medium); }

.studio-rich-statusbar {
  margin-top: 6px;
  padding: 4px 8px;
  background: #E8F0DC;
  border: 1px inset #B0B7C2;
  font-size: 10px;
  color: #2E5118;
  opacity: 0;
}

.studio-panel-rich.is-active .studio-rich-dropdown {
  animation: studio-fadein 0.25s ease 0.5s forwards;
}
.studio-panel-rich.is-active .studio-rich-dialog {
  animation: studio-dialog-in 0.35s var(--ease) 1.4s forwards;
}
.studio-panel-rich.is-active .studio-rich-dialog-row:nth-of-type(2) .studio-typed {
  animation: studio-type 0.7s steps(6, end) 1.9s forwards;
}
.studio-panel-rich.is-active .studio-rich-dialog-row:nth-of-type(3) .studio-typed {
  animation: studio-type 1s steps(10, end) 2.7s forwards;
}
.studio-panel-rich.is-active .studio-rich-dialog-btn--ok {
  animation: studio-press 0.4s var(--ease) 3.9s forwards;
}
.studio-panel-rich.is-active .studio-rich-statusbar {
  animation: studio-fadein 0.3s ease 4.2s forwards;
}

@keyframes studio-dialog-in {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Section head (shared) ------------------------------------ */

.studio-section-head { max-width: 48rem; margin-bottom: var(--space-12); }
.studio-section-head--compact { margin-bottom: var(--space-8); }
.studio-section-lede {
  color: var(--color-text-secondary);
  margin-top: var(--space-4);
  max-width: 36rem;
}

/* Ecosystem section ---------------------------------------- */

.studio-logo-wall {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.studio-logo-wall-cell {
  position: relative;
  background: var(--color-bg-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 18px;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), transform 0.2s var(--ease);
  color: inherit;
  text-decoration: none;
}
.studio-logo-wall-cell img {
  max-width: 80%;
  max-height: 60%;
  object-fit: contain;
}
.studio-logo-wall-cell--md img {
  max-width: 88%;
  max-height: 70%;
}
.studio-logo-wall-cell--lg img {
  max-width: 95%;
  max-height: 80%;
}

/* Saviynt cell — link with marketplace badge ribbon */
.studio-logo-wall-cell--featured {
  border-color: rgba(0, 90, 255, 0.35);
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 10px 24px -16px rgba(0, 90, 255, 0.25);
  padding-bottom: 28px;
  cursor: pointer;
  overflow: hidden;
}
.studio-logo-wall-cell--featured:hover {
  transform: translateY(-1px);
  border-color: var(--color-brand-blue);
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 14px 28px -14px rgba(0, 90, 255, 0.3);
}

.studio-logo-wall-badge {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 5px 8px;
  background: linear-gradient(to right, rgba(0, 90, 255, 0.06), rgba(0, 90, 255, 0.10));
  border-top: 1px solid rgba(0, 90, 255, 0.18);
  font-size: 11px;
  font-weight: var(--weight-medium);
  color: var(--color-brand-blue);
  letter-spacing: -0.005em;
  white-space: nowrap;
}
.studio-logo-wall-badge svg {
  width: 11px;
  height: 11px;
  color: var(--color-brand-blue);
  flex-shrink: 0;
}
.studio-logo-wall-badge-arrow {
  margin-left: 1px;
  opacity: 0.7;
  transition: transform 0.15s var(--ease), opacity 0.15s var(--ease);
}
.studio-logo-wall-cell--featured:hover .studio-logo-wall-badge-arrow {
  opacity: 1;
  transform: translate(1px, -1px);
}

/* Reduced motion ------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .studio-typed { width: auto !important; animation: none !important; }
  .studio-caret { display: none; }
  .studio-runtime-panel { transition: none; }
  .studio-runtime-panel,
  .studio-runtime-panel.is-active { opacity: 1; transform: none; }
  .studio-browser-toast { opacity: 1; transform: none; animation: none !important; }
  .studio-terminal-response { opacity: 1; animation: none !important; }
  .studio-rich-dropdown,
  .studio-rich-dialog,
  .studio-rich-statusbar { opacity: 1; transform: none; animation: none !important; }
}

/* Responsive ----------------------------------------------- */

@media (max-width: 1100px) {
  .studio-hero-split { grid-template-columns: 1fr; gap: 3rem; }
  .studio-hero-stage { position: static; }
  .studio-logo-wall { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  .studio-form-card { padding: var(--space-6); }
  .studio-form-row--split { grid-template-columns: 1fr; }
  .studio-logo-wall { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .studio-code { font-size: 12px; padding: 14px 16px; }
}

