/* Use-case topic pages, one per search intent under each use-case page.
   Prefix .uct- throughout. The hero's dot grid is .ucj-hero-dots, from the
   use-case page sheet, which these pages also load. */

.uct {
  --uct-shell: 1160px;
  --uct-glow-ramp: linear-gradient(
    96deg,
    var(--accent) 0%,
    var(--violet) 54%,
    var(--accent) 100%
  );
  background: var(--bg);
  color: var(--fg);
}

.uct-shell {
  max-width: var(--uct-shell, 1160px);
  margin: 0 auto;
  padding: 0 28px;
}

/* ── hero ─────────────────────────────────────────────────────────── */

/* Position and overflow are what the dot layer and the wash resolve
   their inset against. */
.uct-hero {
  position: relative;
  overflow: hidden;
  padding: 60px 0 44px;
  text-align: center;
  background: var(--bg);
}
.uct-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(
      56% 70% at 50% 30%,
      color-mix(in oklab, var(--accent) 10%, transparent),
      transparent 70%
    ),
    radial-gradient(
      40% 50% at 84% 96%,
      color-mix(in oklab, var(--violet) 6%, transparent),
      transparent 72%
    );
  -webkit-mask-image: linear-gradient(to bottom, #000 0 60%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0 60%, transparent 100%);
}
.uct-hero .ucj-hero-dots {
  -webkit-mask-image: linear-gradient(to bottom, #000 0 55%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0 55%, transparent 100%);
}
.uct-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 28px;
}

.uct-crumbs ol {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 4px 0;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
  color: var(--fg-subtle);
}
.uct-crumbs li {
  display: inline-flex;
  align-items: center;
}
.uct-crumbs li + li::before {
  content: "";
  width: 6px;
  height: 6px;
  margin: 0 12px 0 10px;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  transform: rotate(45deg);
  opacity: 0.7;
}
.uct-crumbs a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 13px 4px 4px;
  border: 1px solid color-mix(in oklab, var(--accent) 28%, var(--border));
  border-radius: 999px;
  background: color-mix(in oklab, var(--accent) 7%, var(--bg));
  color: var(--fg);
  font-weight: 500;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.uct-crumbs a:hover {
  border-color: color-mix(in oklab, var(--accent) 55%, var(--border));
  background: color-mix(in oklab, var(--accent) 12%, var(--bg));
  text-decoration: none;
}
.uct-crumb-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: color-mix(in oklab, var(--accent) 18%, transparent);
  color: var(--accent);
}
.uct-crumb-mark svg {
  width: 13px;
  height: 13px;
  stroke-width: 2;
}
.uct-crumbs [aria-current="page"] {
  color: var(--fg-muted);
}

.uct-title {
  margin: 22px 0 0;
  font-size: clamp(38px, 5.6vw, 66px);
  font-weight: 600;
  letter-spacing: -0.032em;
  line-height: 1.04;
  text-wrap: balance;
}
/* The lit phrase, at the parent page's finished frame. A plain inline
   span: background-clip text drops positioned descendants from its mask. */
.uct-glow {
  background-image: var(--uct-glow-ramp);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--accent);
  filter: drop-shadow(0 0 7px color-mix(in srgb, var(--accent) 40%, transparent))
    drop-shadow(0 4px 28px color-mix(in srgb, var(--accent) 28%, transparent));
}
.uct-lede {
  margin: 20px auto 0;
  max-width: 60ch;
  font-size: clamp(16.5px, 1.45vw, 19.5px);
  font-weight: 400;
  line-height: 1.6;
  color: var(--fg-muted);
  text-wrap: balance;
}

.uct-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
}
.uct-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 22px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--bg-subtle);
  color: var(--fg);
  font-size: 15px;
  font-weight: 500;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.uct-btn:hover {
  border-color: var(--fg-subtle);
  text-decoration: none;
}
.uct-btn--go {
  border-color: transparent;
  background: var(--accent-deep);
  color: #fff;
}
.uct-btn--go:hover {
  border-color: transparent;
  background: var(--accent-emph);
}
.uct-btn--vellum {
  border-color: color-mix(in oklab, var(--brand-vellum) 42%, var(--border));
  background: color-mix(in oklab, var(--brand-vellum) 11%, var(--bg-subtle));
  color: var(--brand-vellum);
}
.uct-btn--vellum:hover {
  border-color: var(--brand-vellum);
  background: color-mix(in oklab, var(--brand-vellum) 19%, var(--bg-subtle));
}
.uct-btn-mark {
  display: inline-flex;
  width: 15px;
  height: 15px;
}
.uct-btn-mark svg {
  width: 100%;
  height: 100%;
}
.uct-plan {
  display: inline-block;
  margin: 20px 0 0;
  padding: 5px 12px;
  border: 1px solid var(--border-muted);
  border-radius: 999px;
  background: var(--chip-bg);
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--fg-subtle);
}

/* ── the live example ─────────────────────────────────────────────── */

.uct-example {
  position: relative;
  padding: 10px 0 84px;
}
.uct-example::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 70%;
  pointer-events: none;
  background: radial-gradient(
    60% 70% at 50% 40%,
    color-mix(in oklab, var(--accent) 8%, transparent),
    transparent 72%
  );
}
.uct-example .uct-shell {
  position: relative;
}

/* The canvas height is capped by the viewport on wide screens and follows
   the width on narrow ones, so the drawing is never fitted into a band of
   empty canvas. The still and the live viewer share the one height. */
.uct-frame {
  --uct-canvas: clamp(340px, 62svh, 660px);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--diagram-canvas-bg, var(--bg-subtle));
  box-shadow:
    0 1px 0 rgb(27 31 36 / 0.02),
    0 34px 70px -28px rgb(16 22 40 / 0.28),
    0 10px 24px -14px rgb(16 22 40 / 0.16);
}
html.theme-dark .uct-frame,
html:not(.theme-light) .uct-frame {
  box-shadow:
    0 34px 80px -30px rgb(0 0 0 / 0.6),
    0 10px 26px -16px rgb(0 0 0 / 0.5);
}
html:not([data-diagram-fullscreen="true"]) .uct-frame [style*="height"] {
  height: var(--uct-canvas) !important;
  min-height: var(--uct-canvas) !important;
}
.uct-live-mount {
  min-height: var(--uct-canvas);
}
.uct-still {
  display: block;
}
.uct-still img {
  display: block;
  width: 100%;
  height: var(--uct-canvas);
  object-fit: contain;
}

.uct-cue {
  display: flex;
  justify-content: center;
  margin: 14px 0 0;
  font-size: 12.5px;
  color: var(--fg-subtle);
}
.uct-cue-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: 100%;
  padding: 6px 14px 6px 11px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-subtle);
}
.uct-cue-dot {
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--success);
  box-shadow: 0 0 8px color-mix(in srgb, var(--success) 80%, transparent);
}
.uct-cue-lede {
  flex: none;
}
.uct-cue-em {
  font-weight: 500;
  color: var(--fg);
}
.uct-open {
  margin: 10px 0 0;
  text-align: center;
  font-size: 14px;
}
.uct-open a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-weight: 500;
}
.uct-open svg {
  width: 12px;
  height: 12px;
  transition: transform 0.15s ease;
}
.uct-open a:hover svg {
  transform: translateX(2px);
}

.uct-highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin: 56px 0 0;
  padding: 0;
  list-style: none;
}
.uct-highlights li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 14px;
  row-gap: 4px;
  align-items: start;
  align-content: start;
}
.uct-highlights .uct-tile {
  grid-row: span 2;
}
.uct-highlight-t {
  margin: 2px 0 0;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.005em;
}
.uct-highlights p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--fg-muted);
}

/* A glyph on a tinted square. --uct-tint is the accent unless a product
   card sets its own. */
.uct-tile {
  --uct-tint: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 38px;
  height: 38px;
  border: 1px solid color-mix(in oklab, var(--uct-tint) 26%, var(--border-muted));
  border-radius: 10px;
  background: color-mix(in oklab, var(--uct-tint) 11%, var(--bg-subtle));
  color: var(--uct-tint);
}
.uct-tile svg {
  width: 19px;
  height: 19px;
  stroke-width: 1.8;
}
.uct-tile--lg {
  width: 48px;
  height: 48px;
  border-radius: 12px;
}
.uct-tile--lg svg {
  width: 23px;
  height: 23px;
}

/* ── bands ────────────────────────────────────────────────────────── */

.uct-band {
  padding: 88px 0;
  border-top: 1px solid var(--border-muted);
}
.uct-basics,
.uct-steps,
.uct-related {
  background: var(--bg-subtle);
}
.uct-kicker {
  margin: 0 0 14px;
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.uct-band h2 {
  margin: 0;
  max-width: 24ch;
  font-size: clamp(26px, 3.3vw, 38px);
  font-weight: 600;
  letter-spacing: -0.022em;
  line-height: 1.14;
  text-wrap: balance;
}
.uct-sub {
  margin: 14px 0 0;
  max-width: 60ch;
  font-size: 16px;
  line-height: 1.65;
  color: var(--fg-muted);
}

/* basics */
.uct-basics-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 56px;
  align-items: start;
}
.uct-prose {
  margin: 18px 0 0;
  max-width: 64ch;
  font-size: 16px;
  line-height: 1.75;
  color: var(--fg-muted);
}
.uct-prose:first-of-type {
  margin-top: 22px;
}
.uct-checklist {
  padding: 26px 26px 22px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg);
}
.uct-checklist h3 {
  margin: 0 0 14px;
  font-size: 15.5px;
  font-weight: 600;
}
.uct-checklist ul {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.uct-checklist li {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  padding: 9px 0;
  border-top: 1px solid var(--border-muted);
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--fg);
}
.uct-checklist li:first-child {
  border-top: 0;
}
.uct-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  border-radius: 999px;
  background: color-mix(in oklab, var(--success) 16%, transparent);
  color: var(--success);
}
.uct-check svg {
  width: 12px;
  height: 12px;
  stroke-width: 3;
}

/* features */
.uct-feature-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
}
.uct-feature-list li {
  --uct-brand: var(--accent);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  padding: 24px 24px 22px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg-subtle);
  transition: border-color 0.18s ease;
}
.uct-feature-list li:hover {
  border-color: color-mix(in oklab, var(--uct-brand) 45%, var(--border));
}
.uct-feature-list li[data-product="blueprints"] { --uct-brand: var(--brand-blueprints); }
.uct-feature-list li[data-product="vellum"]     { --uct-brand: var(--brand-vellum); }
.uct-feature-list li[data-product="stratum"]    { --uct-brand: var(--brand-stratum); }
.uct-feature-list li[data-product="continuum"]  { --uct-brand: var(--brand-continuum); }
.uct-feature-list li[data-product="folium"]     { --uct-brand: var(--brand-folium); }
.uct-feature-list li[data-product="podium"]     { --uct-brand: var(--brand-podium); }
.uct-feature-list li[data-product="atrium"]     { --uct-brand: var(--brand-atrium); }
.uct-feature-list li[data-product="ai"]         { --uct-brand: var(--brand-ai); }
.uct-feature-list .uct-tile {
  --uct-tint: var(--uct-brand);
}
.uct-feature-list h3 {
  margin: 16px 0 8px;
  font-size: 16.5px;
  font-weight: 600;
  letter-spacing: -0.005em;
}
.uct-feature-list p {
  margin: 0 0 18px;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--fg-muted);
}
.uct-feature-list p:last-child {
  margin-bottom: 0;
}
.uct-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: auto;
  padding: 4px 11px 4px 6px;
  border: 1px solid color-mix(in oklab, var(--uct-brand) 34%, var(--border-muted));
  border-radius: 999px;
  background: color-mix(in oklab, var(--uct-brand) 9%, transparent);
  color: var(--uct-brand);
  font-size: 12.5px;
  font-weight: 600;
}
.uct-chip:hover {
  border-color: var(--uct-brand);
  text-decoration: none;
}
.uct-chip-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
}
.uct-chip-mark svg {
  width: 13px;
  height: 13px;
}
.uct-chip-mark svg.g-wide {
  width: 16px;
  height: 16px;
}

/* steps */
.uct-step-list {
  display: grid;
  grid-template-columns: repeat(var(--uct-steps, 5), minmax(0, 1fr));
  gap: 0;
  margin: 44px 0 0;
  padding: 0;
  list-style: none;
}
.uct-step-list li {
  position: relative;
  padding: 0 22px 0 0;
}
.uct-step-list li::before {
  content: "";
  position: absolute;
  top: 17px;
  left: 44px;
  right: 10px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(
    90deg,
    color-mix(in oklab, var(--accent) 50%, var(--border)),
    var(--border-muted)
  );
}
.uct-step-list li:last-child::before {
  display: none;
}
.uct-step-n {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid color-mix(in oklab, var(--accent) 45%, var(--border));
  border-radius: 999px;
  background: color-mix(in oklab, var(--accent) 14%, var(--bg));
  color: var(--accent);
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 600;
}
.uct-step-list h3 {
  margin: 18px 0 8px;
  font-size: 16px;
  font-weight: 600;
}
.uct-step-list p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--fg-muted);
}

.uct-template {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 52px 0 0;
  padding: 22px 24px;
  border: 1px solid color-mix(in oklab, var(--accent) 30%, var(--border));
  border-radius: 14px;
  background:
    linear-gradient(
      100deg,
      color-mix(in oklab, var(--accent) 9%, transparent),
      transparent 60%
    ),
    var(--bg);
}
.uct-template-copy {
  flex: 1;
  min-width: 0;
}
.uct-template-k {
  margin: 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.uct-template h3 {
  margin: 4px 0 4px;
  font-size: 16.5px;
  font-weight: 600;
}
.uct-template p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--fg-muted);
}
.uct-template .uct-btn {
  flex: none;
}

/* faq */
.uct-faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.6fr);
  gap: 56px;
  align-items: start;
}
.uct-faq-grid > :first-child {
  position: sticky;
  top: calc(var(--marketing-nav-h, 56px) + 28px);
}
.uct-faq-list {
  border-top: 1px solid var(--border-muted);
}
.uct-faq details {
  border-bottom: 1px solid var(--border-muted);
}
.uct-faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 19px 2px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.45;
  color: var(--fg);
  cursor: pointer;
  list-style: none;
}
.uct-faq summary::-webkit-details-marker {
  display: none;
}
.uct-faq summary:hover {
  color: var(--accent);
}
.uct-faq summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}
.uct-faq-chev {
  flex: none;
  width: 18px;
  height: 18px;
  color: var(--fg-subtle);
  transition: transform 0.2s ease;
}
.uct-faq details[open] .uct-faq-chev {
  transform: rotate(180deg);
}
.uct-faq details p {
  margin: 0;
  padding: 0 44px 22px 2px;
  font-size: 15px;
  line-height: 1.72;
  color: var(--fg-muted);
}

/* related */
.uct-related-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
}
.uct-related-list a {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  height: 100%;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg);
  color: inherit;
  transition: border-color 0.18s ease, transform 0.18s ease;
}
.uct-related-list a:hover {
  border-color: color-mix(in oklab, var(--accent) 55%, var(--border));
  text-decoration: none;
  transform: translateY(-2px);
}
.uct-related-head a {
  border-color: color-mix(in oklab, var(--accent) 38%, var(--border));
  background:
    linear-gradient(
      150deg,
      color-mix(in oklab, var(--accent) 10%, transparent),
      transparent 70%
    ),
    var(--bg);
}
.uct-related-list .uct-tile {
  width: 34px;
  height: 34px;
  border-radius: 9px;
}
.uct-related-list .uct-tile svg {
  width: 17px;
  height: 17px;
}
.uct-related-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.uct-related-t {
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.35;
}
.uct-related-d {
  font-size: 13px;
  line-height: 1.5;
  color: var(--fg-muted);
}
.uct-also {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-top: 26px;
}
.uct-also-t {
  margin: 0;
  font-size: 13px;
  color: var(--fg-subtle);
}
.uct-also ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.uct-also a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg);
  color: var(--fg);
  font-size: 13px;
  font-weight: 500;
}
.uct-also a:hover {
  border-color: color-mix(in oklab, var(--accent) 55%, var(--border));
  text-decoration: none;
}
.uct-also svg {
  width: 14px;
  height: 14px;
  color: var(--accent);
}

/* the topic grid on a use-case page, after its walkthrough */
.uct-topics {
  padding: 88px 0 96px;
  border-top: 1px solid var(--border-muted);
  background: var(--bg-subtle);
  color: var(--fg);
}
.uct-topics h2 {
  margin: 0;
  max-width: 26ch;
  font-size: clamp(26px, 3.3vw, 38px);
  font-weight: 600;
  letter-spacing: -0.022em;
  line-height: 1.14;
  text-wrap: balance;
}

/* closing call to action */
.uct-end {
  padding: 100px 0 108px;
  border-top: 1px solid var(--border-muted);
  text-align: center;
  background: radial-gradient(
    760px 300px at 50% 120%,
    color-mix(in oklab, var(--accent) 14%, transparent),
    transparent 70%
  );
}
.uct-end h2 {
  margin: 0 auto;
  max-width: 30ch;
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.18;
  text-wrap: balance;
}

/* ── narrow viewports ─────────────────────────────────────────────── */

@media (max-width: 1080px) {
  .uct-frame {
    --uct-canvas: clamp(240px, 56vw, 480px);
    border-radius: 13px;
  }
  .uct-feature-list,
  .uct-related-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .uct-step-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 34px;
  }
  .uct-step-list li::before {
    display: none;
  }
  .uct-basics-grid,
  .uct-faq-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }
  .uct-faq-grid > :first-child {
    position: static;
  }
}

@media (max-width: 760px) {
  .uct-shell,
  .uct-hero-inner {
    padding: 0 18px;
  }
  .uct-hero {
    padding: 40px 0 34px;
  }
  .uct-title {
    font-size: clamp(34px, 10vw, 44px);
  }
  .uct-cta {
    flex-direction: column;
    align-items: stretch;
  }
  .uct-cta .uct-btn {
    justify-content: center;
  }
  .uct-example {
    padding-bottom: 56px;
  }
  .uct-highlights {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    margin-top: 40px;
  }
  .uct-band,
  .uct-topics {
    padding: 60px 0;
  }
  .uct-feature-list,
  .uct-related-list,
  .uct-step-list {
    grid-template-columns: minmax(0, 1fr);
  }
  .uct-template {
    flex-direction: column;
    align-items: flex-start;
  }
  .uct-faq details p {
    padding-right: 6px;
  }
  .uct-end {
    padding: 72px 0 80px;
  }
}
