@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600;700;800&family=Space+Grotesk:wght@500;600;700&display=swap");
@import url("https://api.fontshare.com/v2/css?f[]=satoshi@400,500,700,900&display=swap");

:root {
  --pl-font-display: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --pl-font-body: "Satoshi", "IBM Plex Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --pl-font-ui: "IBM Plex Sans", "Satoshi", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --pl-ink: #111820;
  --pl-charcoal: #0e141a;
  --pl-charcoal-2: #151d24;
  --pl-text: #1f2937;
  --pl-muted: #647184;
  --pl-soft: #f6f8fb;
  --pl-panel: #ffffff;
  --pl-line: #dbe3ec;
  --pl-mint: #e9fbf8;
  --pl-teal: #13a6a6;
  --pl-teal-dark: #087c75;
  --pl-blue: #1f63e9;
  --pl-blue-dark: #174fc4;
  --pl-shadow: 0 18px 50px rgba(16, 24, 32, .08);
  --pl-shadow-soft: 0 8px 24px rgba(16, 24, 32, .05);
}

@media (max-width: 760px) {
  .editor-layout {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 14px 16px 118px !important;
    margin: 0 !important;
    overflow-x: hidden !important;
  }
  .editor-layout > .panel,
  .editor-layout > article,
  .editor-layout > aside,
  .editor-main,
  .editor-side {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    position: static !important;
  }
  .editor-main {
    order: 1;
  }
  .editor-side {
    order: 2;
  }
  .editor-block,
  .quill-editor,
  .ql-container,
  .ql-editor,
  .step-editor-row {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }
  .quill-editor .ql-editor,
  .ql-editor {
    min-height: 220px;
    overflow-wrap: break-word;
  }
}
body {
  color: var(--pl-text);
  background: var(--pl-soft);
  font-family: var(--pl-font-body);
  font-feature-settings: "ss01" 1, "cv01" 1;
}

h1,
h2,
.price,
.hero-copy h1,
.section-head h2,
.page-head h1,
.app-page-head h1 {
  font-family: var(--pl-font-display);
  letter-spacing: -.035em;
}

h3,
button,
input,
select,
textarea,
.btn,
.badge,
.eyebrow,
.site-header,
.site-footer,
.app-sidebar,
.app-topbar,
.mobile-tabbar,
.panel-head,
.settings-row,
.doc-row,
.run-row,
.row,
.locker-row,
.repository-row {
  font-family: var(--pl-font-ui);
}

input,
select,
textarea,
button {
  font-size: 15px;
}

.app-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: 100vh;
  background:
    radial-gradient(circle at 92% 2%, rgba(19, 166, 166, .10), transparent 26%),
    var(--pl-soft);
}

.app-sidebar {
  background: linear-gradient(180deg, #0d1319 0%, #111920 100%);
  color: #d7e1e8;
  padding: 24px 20px;
  border-right: 1px solid rgba(255,255,255,.08);
}

.app-brand {
  height: 42px;
  gap: 12px;
  font-size: 17px;
  letter-spacing: -.01em;
}

.app-brand .brand-mark { width: 34px; height: 34px; border-radius: 10px; }

.app-nav-groups {
  display: grid;
  gap: 24px;
  margin-top: 34px;
}

.app-nav-groups div { display: grid; gap: 4px; }
.app-nav-groups span {
  padding: 0 12px 7px;
  color: #88a3ad;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.app-nav-groups a {
  min-height: 40px;
  display: flex;
  align-items: center;
  padding: 10px 12px;
  border-radius: 9px;
  color: #c9d5dd;
  font-size: 14px;
  font-weight: 760;
}

.app-nav-groups a:hover {
  background: rgba(255,255,255,.08);
  color: #fff;
}

.app-main { min-width: 0; padding-bottom: 48px; }

.app-topbar {
  height: 76px;
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 28px;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(219, 227, 236, .92);
}

.app-search {
  flex: 1;
  max-width: 760px;
  position: relative;
}

.app-search span {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #7a8796;
  font-size: 22px;
}

.app-search input,
.stacked-form input,
.stacked-form textarea,
.stacked-form select,
.filter-grid input,
.filter-grid select,
.filter-grid textarea,
.document-create-form input,
.document-create-form select,
.document-create-form textarea,
.inline-form input,
.inline-form select,
.proof-form input,
.proof-form select,
.editor-main input,
.editor-main textarea,
.editor-main select,
.editor-side input,
.editor-side textarea,
.editor-side select,
.schedule-form input,
.schedule-form select {
  width: 100%;
  min-height: 42px;
  margin: 0;
  border: 1px solid var(--pl-line);
  border-radius: 10px;
  background: #fff;
  color: var(--pl-ink);
  padding: 10px 12px;
  box-shadow: inset 0 1px 0 rgba(16,24,32,.02);
}

.app-search input {
  height: 46px;
  padding-left: 44px;
  font-size: 15px;
}

.topbar-create { min-height: 42px; white-space: nowrap; }
.topbar-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--pl-line);
  border-radius: 10px;
  background: #fff;
  color: var(--pl-muted);
  font-weight: 900;
}

.workspace-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: var(--pl-text);
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 5px 7px 5px 5px;
}

.workspace-chip:hover { border-color: var(--pl-line); background: #fff; }
.workspace-chip span:last-child { display: grid; line-height: 1.15; min-width: 0; }
.workspace-chip strong { font-size: 13px; white-space: nowrap; }
.workspace-chip small { color: var(--pl-muted); font-size: 12px; max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.avatar {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(145deg, var(--pl-teal), #4ec9d5);
  color: #fff;
  font-weight: 900;
}
.avatar-large { width: 62px; height: 62px; border-radius: 16px; font-size: 22px; }
.avatar-image {
  display: block;
  object-fit: cover;
}

.mobile-more-nav { display: none !important; }

.page-head,
.app-page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 34px 34px 12px;
}

.page-head h1,
.app-page-head h1 {
  margin: 0 0 8px;
  font-size: clamp(30px, 3vw, 42px);
  line-height: 1.04;
  letter-spacing: -.025em;
}

.page-head p,
.app-page-head p { max-width: 720px; color: var(--pl-muted); font-size: 16px; }
.eyebrow { color: var(--pl-teal-dark); letter-spacing: .12em; }

.panel,
.ops-panel,
.feature-grid article,
.feature-grid a,
.kb-grid a {
  background: var(--pl-panel);
  border: 1px solid var(--pl-line);
  border-radius: 14px;
  box-shadow: var(--pl-shadow-soft);
}

.panel { padding: 22px; margin: 18px 34px; }
.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}
.panel h2,
.panel-head h2 {
  margin: 0;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: -.015em;
}
.panel-head span {
  color: var(--pl-teal-dark);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
}
.panel p { color: var(--pl-muted); }

.split,
.ops-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
  gap: 18px;
  padding: 18px 34px;
}

.split.single-column {
  grid-template-columns: 1fr;
  width: min(1180px, calc(100% - 76px));
  margin: 0 auto;
  padding-left: 0;
  padding-right: 0;
}

.split .panel,
.ops-grid .panel,
.editor-layout .panel,
.profile-grid .panel { margin: 0; }

.panel-actions {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  min-width: 0;
}

.panel-actions .btn {
  min-height: 42px;
  white-space: nowrap;
}

.compact-action {
  min-width: 84px;
  white-space: nowrap;
}

.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0;
  border-top: 1px solid #edf1f5;
}
.settings-row:first-of-type { border-top: 0; }
.settings-row strong { color: var(--pl-ink); }
.settings-row p { margin: 3px 0 0; font-size: 14px; }
.settings-row small { color: var(--pl-muted); font-weight: 800; white-space: nowrap; }
.settings-row .badge { flex: 0 0 auto; }

.manage-row {
  align-items: stretch;
  border: 1px solid #e8eef6;
  border-radius: 12px;
  padding: 14px;
  margin: 10px 0;
  background: linear-gradient(180deg, #fff, #fbfdff);
}

.manage-row > .badge {
  display: inline-flex;
  width: auto;
  min-height: 36px;
  align-self: flex-start;
  align-items: center;
}

.artifact-card {
  border: 1px solid #e8eef6;
  border-radius: 12px;
  padding: 14px 16px;
  margin: 10px 0;
  background: linear-gradient(180deg, #fff, #fbfdff);
}

.artifact-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
}

.artifact-summary strong {
  display: block;
  color: var(--pl-ink);
}

.artifact-summary p {
  margin: 3px 0;
  color: var(--pl-muted);
  font-size: 14px;
}

.artifact-summary small {
  color: var(--pl-muted);
  font-weight: 800;
}

.muted-row {
  opacity: .68;
  background: #f6f8fb;
}

.artifact-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px 12px;
  align-items: end;
  flex: 1;
}

.artifact-form label {
  display: grid;
  gap: 6px;
  color: #465468;
  font-size: 13px;
  font-weight: 850;
}

.artifact-form p,
.artifact-form strong {
  align-self: center;
}

.artifact-form input,
.artifact-form select,
.artifact-form textarea {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--pl-line);
  border-radius: 10px;
  padding: 9px 11px;
  background: #fff;
}

.artifact-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.artifact-edit {
  position: relative;
}

.artifact-edit summary {
  list-style: none;
  cursor: pointer;
}

.artifact-edit summary::-webkit-details-marker {
  display: none;
}

.artifact-edit[open] {
  width: min(560px, 100%);
}

.artifact-card:has(.artifact-edit[open]) .artifact-actions > form,
.artifact-card:has(.artifact-edit[open]) .artifact-actions > .badge {
  display: none;
}

.artifact-edit[open] .edit-drawer {
  position: static;
  width: 100%;
  margin-top: 10px;
  box-shadow: 0 12px 36px rgba(16, 24, 32, .10);
}

.edit-drawer {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 20;
  width: min(520px, calc(100vw - 96px));
  padding: 14px;
  border: 1px solid #d9e3ef;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 22px 54px rgba(16, 24, 32, .16);
}

.drawer-actions {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: minmax(160px, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.entity-dialog {
  width: min(560px, calc(100vw - 32px));
  max-height: min(760px, calc(100vh - 32px));
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 16px;
  background: #fff;
  color: var(--pl-ink);
  box-shadow: 0 30px 90px rgba(16,24,32,.24);
  overflow: hidden;
}

body:has(.entity-dialog[open]) {
  overflow: hidden;
}

.entity-dialog::backdrop {
  background: rgba(12, 18, 26, .44);
  backdrop-filter: blur(3px);
}

.dialog-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 22px 24px 18px;
  border-bottom: 1px solid #edf1f5;
}

.dialog-head h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.1;
  letter-spacing: -.015em;
}

.dialog-body {
  padding: 22px 24px 24px;
}

.entity-dialog .icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 12px;
}

.btn:disabled,
button:disabled {
  cursor: not-allowed;
  opacity: .52;
  box-shadow: none;
}

.btn-danger {
  border-color: #fecaca;
  background: #fff5f5;
  color: #b42318;
}

.btn-danger:hover {
  border-color: #fca5a5;
  background: #fee2e2;
}

.compact-check-grid {
  grid-template-columns: repeat(auto-fit, minmax(130px, max-content));
  align-items: center;
}

.schedule-manage-row {
  display: block;
  align-items: stretch;
}

.schedule-manage-row .artifact-form {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 12px;
}

.schedule-manage-row > .badge {
  display: inline-flex;
  width: auto;
  min-height: 36px;
  align-items: center;
  vertical-align: middle;
}

.schedule-manage-row > form:not(.artifact-form) {
  display: inline-flex;
  margin-left: 8px;
  vertical-align: middle;
}

.schedule-manage-row > form:not(.artifact-form) .btn {
  min-height: 40px;
}

.stacked-form { display: grid; gap: 14px; }
.stacked-form label,
.filter-grid label,
.schedule-form label,
.editor-main label,
.editor-side label {
  display: grid;
  gap: 7px;
  color: #465468;
  font-size: 13px;
  font-weight: 850;
}

.check-grid {
  display: grid;
  gap: 9px;
  margin: 2px 0 4px;
}

.check-grid > span {
  color: #465468;
  font-size: 13px;
  font-weight: 850;
}

.check-grid label {
  display: inline-flex;
  width: fit-content;
  min-height: 34px;
  align-items: center;
  gap: 9px;
  margin: 0;
  padding: 7px 12px;
  border: 1px solid var(--pl-line);
  border-radius: 10px;
  background: #fff;
  color: var(--pl-text);
  font-size: 13px;
  font-weight: 750;
}

.check-grid input[type="checkbox"] {
  width: 16px;
  height: 16px;
  min-height: 0;
  margin: 0;
  padding: 0;
  accent-color: var(--pl-blue);
  box-shadow: none;
}

.filter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
  align-items: end;
}

.filter-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
}

.filter-actions .btn,
.document-create-form .btn,
.schedule-form .btn,
.proof-form .btn,
.approval-actions .btn,
.inline-form .btn {
  min-height: 42px;
  white-space: nowrap;
}

.schedule-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: end;
}

.dependency-blocker {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 18px;
  border: 1px solid rgba(37, 99, 235, .16);
  border-radius: 14px;
  background: linear-gradient(135deg, #f8fbff, #effdfa);
}

.dependency-blocker strong {
  color: var(--pl-ink);
  font-size: 17px;
}

.dependency-blocker p {
  max-width: 720px;
  margin: 5px 0 0;
}

.schedule-form input[type="number"] {
  max-width: 140px;
}

.document-create-form {
  display: grid;
  grid-template-columns: minmax(260px, 1.4fr) minmax(170px, .7fr) minmax(260px, 1.1fr) auto;
  gap: 14px;
  align-items: end;
}

.proof-form {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(180px, .7fr) auto;
  gap: 12px;
  align-items: center;
}

.create-panel .btn {
  justify-self: start;
}

.approval-actions {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto;
  gap: 10px;
  align-items: center;
}

.inline-form {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 10px;
  align-items: center;
  margin-top: 16px;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.metadata-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.choice-field {
  display: grid;
  gap: 8px;
  color: #465468;
  font-size: 13px;
  font-weight: 850;
}

.choice-field .check-grid {
  min-height: 52px;
  padding: 8px;
  align-content: start;
}

.advanced-editor-details,
.advanced-step-details,
.danger-zone {
  border: 1px solid #e6edf5;
  border-radius: 12px;
  background: #fbfdff;
}

.advanced-editor-details,
.danger-zone {
  padding: 12px 14px;
}

.advanced-step-details {
  padding: 10px 12px;
}

.advanced-editor-details summary,
.advanced-step-details summary {
  cursor: pointer;
  color: #35445a;
  font-weight: 850;
}

.advanced-editor-details label,
.advanced-step-details label {
  margin-top: 12px;
}

.danger-zone {
  display: grid;
  gap: 10px;
  margin: 14px 0 20px;
}

.kb-danger-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.check-line {
  display: inline-flex !important;
  width: auto;
  min-height: 0;
  align-items: center;
  gap: 10px;
  color: #465468;
  font-size: 14px;
  font-weight: 850;
}

.check-line input[type="checkbox"] {
  width: 18px !important;
  height: 18px !important;
  min-height: 0 !important;
  flex: 0 0 auto;
  margin: 0;
  padding: 0;
  border-radius: 5px;
}

.avatar-upload {
  display: grid;
  grid-template-columns: minmax(120px, .3fr) minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.avatar-upload > span {
  display: grid;
  gap: 6px;
}

.avatar-upload input[type="file"] {
  width: 100%;
  min-height: 42px;
  border: 1px dashed var(--pl-line);
  border-radius: 10px;
  padding: 9px 11px;
  background: #fbfdff;
}

.avatar-upload small {
  color: var(--pl-muted);
  font-weight: 700;
}

.kb-grid article {
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 170px;
  padding: 18px;
  border: 1px solid #e3ebf4;
  border-radius: 12px;
  background: #fff;
}

.kb-grid article > a {
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.kb-grid article form {
  margin: 0;
}

.kb-grid article .btn {
  min-height: 36px;
  padding: 8px 12px;
}

.kb-danger-actions form {
  flex: 1 1 140px;
}

.kb-danger-actions .btn {
  width: 100%;
}

.token-once {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px 12px;
  align-items: center;
  margin: 10px 0 14px;
  padding: 14px;
  border: 1px solid rgba(19,166,166,.24);
  border-radius: 14px;
  background: #effdfa;
}

.token-once p {
  margin: 3px 0 0;
  color: var(--pl-muted);
  font-size: 14px;
}

.token-once code {
  grid-column: 1 / -1;
  display: block;
  overflow-x: auto;
  padding: 10px 12px;
  border: 1px solid #c8ebe7;
  border-radius: 10px;
  background: #fff;
  white-space: nowrap;
}

.editor-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 18px;
  padding: 18px 34px 46px;
  align-items: start;
}

.editor-main,
.editor-side { display: grid; gap: 16px; }
.editor-side { position: sticky; top: 96px; max-height: calc(100vh - 116px); overflow: auto; }

.editor-block {
  margin: 0;
  border: 1px solid var(--pl-line);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

.quill-toolbar.ql-toolbar {
  border: 0;
  border-bottom: 1px solid var(--pl-line);
  background: #f8fafc;
  padding: 8px;
}

.quill-toolbar .ql-formats { margin-right: 10px; }
.quill-toolbar button,
.quill-toolbar .ql-picker {
  border-radius: 7px;
}
#insert-table {
  width: auto;
  min-width: 52px;
  padding: 0 9px;
  color: #334155;
  font-weight: 850;
}

.quill-editor.ql-container {
  border: 0;
  min-height: 290px;
  font-size: 16px;
}
.quill-editor .ql-editor {
  min-height: 290px;
  color: var(--pl-text);
  line-height: 1.65;
  padding: 22px;
}
.quill-editor .ql-editor h2 { font-size: 24px; line-height: 1.22; }
.quill-editor .ql-editor h3 { font-size: 19px; line-height: 1.3; }
.quill-editor table,
.process-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 14px 0;
}
.quill-editor th,
.quill-editor td,
.process-body th,
.process-body td {
  border: 1px solid var(--pl-line);
  padding: 9px 10px;
  text-align: left;
}

.step-editor-list { display: grid; gap: 12px; }
.step-editor-row {
  display: grid;
  gap: 10px;
  border: 1px solid var(--pl-line);
  border-radius: 12px;
  background: #fbfdff;
  padding: 14px;
}
.step-row-head strong { font-size: 15px; }
.icon-btn {
  width: 32px;
  height: 32px;
  border: 1px solid var(--pl-line);
  border-radius: 8px;
  background: #fff;
  color: var(--pl-muted);
}

.btn { border-radius: 9px; font-weight: 850; }
.btn-primary {
  background: var(--pl-blue);
  border-color: var(--pl-blue);
  color: #fff;
  box-shadow: 0 10px 24px rgba(31, 99, 233, .20);
}
.btn-primary:hover { background: var(--pl-blue-dark); }
.btn-secondary { border-color: var(--pl-line); background: #fff; color: #334155; }

.profile-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, .8fr);
  gap: 18px;
  padding: 18px 34px;
}
.profile-hero {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid #edf1f5;
}
.profile-hero h2 { margin-bottom: 2px; }
.profile-hero p { margin: 0; }

.twofa { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 24px; align-items: center; }
.twofa img {
  width: 210px;
  height: 210px;
  border: 1px solid var(--pl-line);
  border-radius: 14px;
  padding: 12px;
  background: #fff;
}

.setup-guide {
  margin: 22px 34px 4px;
  border: 1px solid #bdece8;
  border-radius: 14px;
  background: linear-gradient(135deg, #effdfa 0%, #f8fbff 100%);
  padding: 18px 20px;
}

.locker-summary { margin: 18px 34px; }
.locker-grid { padding: 18px 34px 46px; }
.mobile-tabbar { display: none; }

.hero-simple {
  background:
    linear-gradient(180deg, rgba(16,20,24,.96) 0%, rgba(17,24,32,.98) 100%),
    radial-gradient(circle at 72% 8%, rgba(19,166,166,.18), transparent 30%);
  color: #fff;
  grid-template-columns: minmax(0, .82fr) minmax(520px, 1.18fr);
  min-height: auto;
  align-items: center;
  padding-top: 88px;
  padding-bottom: 82px;
}

.hero-simple h1 {
  max-width: 760px;
  font-size: clamp(54px, 6vw, 82px);
  line-height: .96;
}

.hero-simple .lead {
  color: #cdd8e1;
  font-family: var(--pl-font-body);
  font-size: 20px;
}

.hero-simple .hero-proof {
  color: #b9c8d3;
}

.hero-screenshot-frame {
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 32px 92px rgba(0,0,0,.42);
}

.hero-simple .hero-visual {
  max-width: 960px;
  justify-self: end;
}

.simple-steps h3,
.feature-band-grid h3,
.screenshot-section h2,
.pricing-callout h2 {
  font-family: var(--pl-font-display);
}

/* Marketing use-case polish */
.site-header nav { position: relative; }
.site-header nav a {
  cursor: pointer;
  border-radius: 10px;
  transition: color .16s ease, background .16s ease, box-shadow .16s ease, transform .16s ease;
}
.site-header nav > a:not(.btn),
.nav-dropdown > a {
  padding: 8px 10px;
  margin: -8px -10px;
}
.site-header nav > a:not(.btn):hover,
.site-header nav > a:not(.btn):focus-visible,
.nav-dropdown:hover > a,
.nav-dropdown > a:focus-visible {
  color: var(--pl-ink);
  background: #eef6ff;
  box-shadow: inset 0 0 0 1px rgba(31,99,233,.10);
  outline: 0;
}
.site-header nav .btn:hover {
  transform: translateY(-1px);
}
.nav-dropdown { position: relative; }
.nav-dropdown > a { display: inline-flex; align-items: center; gap: 5px; }
.nav-dropdown:after {
  content: "";
  position: absolute;
  top: 100%;
  left: -18px;
  right: -18px;
  height: 18px;
}
.nav-dropdown-panel {
  z-index: 70;
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  width: 290px;
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 12px;
  background: #111820;
  box-shadow: 0 22px 60px rgba(0,0,0,.24);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: .16s ease;
}
.nav-dropdown:hover .nav-dropdown-panel,
.nav-dropdown:focus-within .nav-dropdown-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown-panel a {
  display: grid;
  gap: 2px;
  border-radius: 8px;
  padding: 10px;
  color: #d7e1e8 !important;
}
.nav-dropdown-panel a:hover { background: rgba(255,255,255,.08); color: #fff !important; }
.nav-dropdown-panel span { color: #87e8de; font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
.nav-dropdown-panel strong { font-size: 14px; }

.proof-flow .section-head {
  max-width: 1040px;
}

.niche-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.niche-detail-grid article {
  position: relative;
  overflow: hidden;
  min-height: 270px;
  border: 1px solid rgba(211, 222, 233, .92);
  border-radius: 18px;
  background:
    radial-gradient(circle at 90% 0%, rgba(31,99,233,.09), transparent 34%),
    linear-gradient(180deg, #fff 0%, #f9fcff 100%);
  box-shadow: 0 18px 46px rgba(18,31,44,.07);
  padding: 28px;
}

.niche-detail-grid article:before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--pl-teal), var(--pl-blue));
}

.niche-detail-grid article > span {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 28px;
  border-radius: 14px;
  background: #e0f8f5;
  color: var(--pl-teal-dark);
  font-family: var(--pl-font-ui);
  font-size: 13px;
  font-weight: 900;
  box-shadow: inset 0 0 0 1px rgba(19,166,166,.12);
}

.niche-detail-grid h3,
.workflow-board h3,
.proof-outcomes h3 {
  font-family: var(--pl-font-display);
}

.niche-detail-grid h3 {
  margin-bottom: 14px;
  font-size: 24px;
  line-height: 1.12;
}

.niche-detail-grid ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.niche-detail-grid li {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 10px;
  color: #405064;
  line-height: 1.38;
}

.niche-detail-grid li:before {
  content: "";
  width: 20px;
  height: 20px;
  margin-top: 1px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 50% 50%, var(--pl-teal) 0 33%, transparent 35%),
    #dff8f5;
  box-shadow: inset 0 0 0 1px rgba(19,166,166,.12);
}

.niche-comparison {
  background:
    linear-gradient(180deg, #f7fafc 0%, #ffffff 100%);
  border-top: 1px solid rgba(216,224,234,.62);
  border-bottom: 1px solid rgba(216,224,234,.62);
}

.niche-comparison .section-head {
  max-width: 920px;
}

.niche-comparison .section-head p:not(.eyebrow) {
  color: #526173;
  font-size: 18px;
}

.comparison-table {
  overflow: hidden;
  border: 1px solid rgba(202, 215, 228, .95);
  border-radius: 22px;
  background:
    linear-gradient(90deg, transparent 0%, transparent 49.5%, rgba(19,166,166,.05) 49.5%, rgba(19,166,166,.05) 74.5%, transparent 74.5%),
    #fff;
  box-shadow: 0 28px 80px rgba(18,31,44,.10);
}

.comparison-table-row {
  display: grid;
  grid-template-columns: .86fr 1.12fr 1.18fr 1fr;
  border-top: 1px solid rgba(211,222,233,.88);
}

.comparison-table-row:first-child {
  border-top: 0;
}

.comparison-table-row > * {
  min-width: 0;
  padding: 20px 22px;
  border-left: 1px solid rgba(211,222,233,.72);
  color: #46566a;
  line-height: 1.36;
}

.comparison-table-row > *:first-child {
  border-left: 0;
}

.comparison-table-head {
  background:
    radial-gradient(circle at 86% 0%, rgba(19,166,166,.16), transparent 28%),
    linear-gradient(135deg, #101820 0%, #17232d 100%);
}

.comparison-table-head span {
  color: #dce8ef;
  font-family: var(--pl-font-ui);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.comparison-table-row strong {
  color: var(--pl-ink);
  font-family: var(--pl-font-display);
  font-size: 18px;
  line-height: 1.18;
}

.comparison-table-row .pl-cell {
  position: relative;
  color: #173b3d;
  background: rgba(224,248,245,.66);
  font-weight: 760;
}

.comparison-table-row .pl-cell:before {
  content: "";
  display: inline-block;
  width: 9px;
  height: 9px;
  margin: 0 9px 1px 0;
  border-radius: 999px;
  background: var(--pl-teal);
  box-shadow: 0 0 0 5px rgba(19,166,166,.12);
}

.niche-loop {
  display: grid;
  grid-template-columns: minmax(0, .78fr) minmax(520px, 1.22fr);
  gap: 48px;
  align-items: center;
  background: #fff;
}

.loop-copy {
  max-width: 610px;
}

.loop-copy h2 {
  font-family: var(--pl-font-display);
  font-size: clamp(38px, 4.5vw, 58px);
}

.loop-copy p:not(.eyebrow) {
  color: #526173;
  font-size: 18px;
}

.workflow-board {
  position: relative;
  display: grid;
  gap: 14px;
}

.workflow-board:before {
  content: "";
  position: absolute;
  top: 33px;
  bottom: 33px;
  left: 21px;
  width: 2px;
  background: linear-gradient(180deg, var(--pl-teal), rgba(31,99,233,.70));
}

.workflow-board article {
  position: relative;
  display: grid;
  grid-template-columns: 44px minmax(190px, .82fr) minmax(280px, 1fr);
  gap: 20px;
  align-items: stretch;
  padding: 18px;
  border: 1px solid rgba(211,222,233,.94);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(249,252,255,.96));
  box-shadow: 0 16px 42px rgba(18,31,44,.06);
}

.workflow-board article:nth-child(even) {
  background:
    linear-gradient(180deg, #ffffff, #f7fbff);
}

.step-number {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: #e0f8f5;
  color: var(--pl-teal-dark);
  font-family: var(--pl-font-ui);
  font-weight: 900;
  box-shadow: inset 0 0 0 1px rgba(19,166,166,.16), 0 0 0 8px #fff;
}

.workflow-board h3 {
  margin: 2px 0 7px;
  color: var(--pl-ink);
  font-family: var(--pl-font-display);
  font-size: 24px;
  line-height: 1.08;
}

.workflow-board p {
  margin: 0;
  color: #526173;
}

.workflow-board dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.workflow-board dl div {
  border: 1px solid rgba(211,222,233,.88);
  border-radius: 14px;
  background: #fff;
  padding: 14px;
}

.workflow-board dt {
  margin-bottom: 5px;
  color: var(--pl-teal-dark);
  font-family: var(--pl-font-ui);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.workflow-board dd {
  margin: 0;
  color: var(--pl-ink);
  font-weight: 760;
  line-height: 1.28;
}

.niche-proof-band {
  background:
    radial-gradient(circle at 82% 18%, rgba(19,166,166,.15), transparent 30%),
    linear-gradient(180deg, #f7fafc 0%, #edf4f7 100%);
}

.proof-showcase {
  display: grid;
  grid-template-columns: minmax(320px, .9fr) minmax(0, 1.1fr);
  gap: 22px;
  align-items: stretch;
}

.proof-record {
  position: relative;
  overflow: hidden;
  min-height: 430px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 24px;
  background:
    radial-gradient(circle at 84% 12%, rgba(19,166,166,.34), transparent 30%),
    linear-gradient(145deg, #101820 0%, #17232d 100%);
  color: #fff;
  padding: 34px;
  box-shadow: 0 30px 86px rgba(16,24,32,.20);
}

.proof-record:after {
  content: "";
  position: absolute;
  right: 28px;
  bottom: 26px;
  width: 160px;
  height: 160px;
  border: 1px solid rgba(135,232,222,.26);
  border-radius: 34px;
  transform: rotate(8deg);
}

.proof-record h2 {
  max-width: 520px;
  color: #fff;
  font-family: var(--pl-font-display);
  font-size: clamp(38px, 4.8vw, 62px);
}

.proof-ledger {
  position: absolute;
  right: 34px;
  bottom: 34px;
  left: 34px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.proof-ledger span {
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px;
  background: rgba(255,255,255,.07);
  color: #dce8ef;
  padding: 14px;
  font-family: var(--pl-font-ui);
  font-size: 13px;
  font-weight: 850;
}

.proof-outcomes {
  display: grid;
  align-content: center;
  gap: 14px;
  border: 1px solid rgba(211,222,233,.94);
  border-radius: 24px;
  background: rgba(255,255,255,.86);
  box-shadow: 0 18px 46px rgba(18,31,44,.07);
  padding: 28px;
}

.proof-outcomes > .eyebrow {
  margin-bottom: 4px;
}

.proof-outcomes article {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  border-top: 1px solid rgba(211,222,233,.86);
  padding-top: 18px;
}

.proof-outcomes article:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.proof-outcomes article > span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: #e0f8f5;
  color: var(--pl-teal-dark);
  font-family: var(--pl-font-ui);
  font-size: 12px;
  font-weight: 900;
}

.proof-outcomes h3 {
  margin-bottom: 7px;
  color: var(--pl-ink);
  font-family: var(--pl-font-display);
  font-size: 24px;
  line-height: 1.12;
}

.proof-outcomes p {
  margin: 0;
  color: #526173;
}

.simple-steps {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding-top: 0;
  padding-bottom: 78px;
  background:
    linear-gradient(180deg, #dce6f0 0, #f7fafc 100%);
  border: 0;
}

.simple-steps article {
  position: relative;
  overflow: hidden;
  min-height: 236px;
  padding: 32px;
  border: 1px solid rgba(207, 218, 230, .92);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(250,253,255,.94));
  box-shadow: 0 18px 46px rgba(18, 31, 44, .08);
}

.simple-steps article:before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--pl-teal), var(--pl-blue));
}

.simple-steps span {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 28px;
  border-radius: 14px;
  background: #e0f8f5;
  color: var(--pl-teal-dark);
  font-family: var(--pl-font-ui);
  font-size: 14px;
  font-weight: 900;
  box-shadow: inset 0 0 0 1px rgba(19, 166, 166, .13);
}

.simple-steps h3 {
  margin-bottom: 12px;
  color: var(--pl-ink);
  font-size: 23px;
  line-height: 1.14;
}

.simple-steps p {
  max-width: 34ch;
  margin: 0;
  color: #526173;
  font-size: 16px;
}

.feature-band-grid {
  gap: 18px;
  margin-top: 30px;
}

.feature-band-grid article {
  position: relative;
  overflow: hidden;
  display: grid;
  align-content: start;
  gap: 14px;
  min-height: 310px;
  padding: 26px;
  border: 1px solid rgba(211, 222, 233, .92);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 16px 42px rgba(16, 24, 32, .06);
}

.feature-band-grid article:after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 112px;
  height: 112px;
  border-bottom-left-radius: 112px;
  background: linear-gradient(135deg, rgba(31, 99, 233, .10), rgba(19, 166, 166, .14));
}

.feature-band-grid span {
  width: fit-content;
  border: 1px solid #c8ebe7;
  border-radius: 999px;
  background: #effdfa;
  color: var(--pl-teal-dark);
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.feature-band-grid h3 {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: 25px;
  line-height: 1.12;
}

.feature-band-grid ul {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 11px;
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
}

.feature-band-grid li {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 10px;
  color: #405064;
  font-size: 15px;
  line-height: 1.35;
}

.feature-band-grid li:before {
  content: "";
  width: 20px;
  height: 20px;
  margin-top: 1px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 50% 50%, var(--pl-teal) 0 33%, transparent 35%),
    #dff8f5;
  box-shadow: inset 0 0 0 1px rgba(19,166,166,.12);
}

.pricing-callout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(310px, 390px);
  gap: 34px;
  align-items: center;
  background:
    radial-gradient(circle at 82% 18%, rgba(19,166,166,.24), transparent 28%),
    linear-gradient(135deg, #101820 0%, #17232d 100%);
  color: #fff;
  border-top: 0;
}

.pricing-callout h2 {
  max-width: 780px;
  color: #fff;
  font-size: clamp(42px, 5vw, 70px);
}

.pricing-callout p {
  max-width: 760px;
  color: #cdd8e1;
}

.pricing-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.pricing-points span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 999px;
  background: rgba(255,255,255,.07);
  color: #e8f0f5;
  padding: 9px 12px;
  font-family: var(--pl-font-ui);
  font-size: 13px;
  font-weight: 850;
}

.pricing-points span:before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--pl-teal);
}

.pricing-card-mini {
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 20px;
  background: rgba(255,255,255,.97);
  color: var(--pl-ink);
  padding: 26px;
  box-shadow: 0 28px 76px rgba(0,0,0,.26);
}

.pricing-card-mini > span {
  color: var(--pl-teal-dark);
  font-family: var(--pl-font-ui);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.pricing-card-mini strong {
  display: block;
  margin-top: 12px;
  color: var(--pl-ink);
  font-family: var(--pl-font-display);
  font-size: 60px;
  line-height: .94;
  letter-spacing: -.05em;
}

.pricing-card-mini small {
  color: #64748b;
  font-family: var(--pl-font-ui);
  font-size: 17px;
  letter-spacing: 0;
}

.pricing-card-mini p {
  margin: 16px 0 22px;
  color: #526173;
}

.pricing-card-mini .btn {
  width: 100%;
}

.use-cases-hero {
  background:
    linear-gradient(90deg, rgba(255,255,255,.96), rgba(255,255,255,.78)),
    radial-gradient(circle at 82% 8%, rgba(19, 166, 166, .18), transparent 30%),
    var(--pl-soft);
  color: var(--pl-ink);
  padding-top: 70px;
  padding-bottom: 54px;
}
.use-cases-hero h1 {
  max-width: 860px;
  font-size: clamp(42px, 5.4vw, 68px);
}
.use-cases-hero .lead { color: var(--pl-muted); max-width: 700px; }
.use-case-story {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(420px, 1.08fr);
  gap: 48px;
  align-items: center;
  background: #fff;
}
.use-case-story.alt { background: #f7fafc; grid-template-columns: minmax(420px, 1.08fr) minmax(0, .92fr); }
.use-case-story.alt .use-case-copy { order: 2; }
.use-case-copy h2 { font-size: clamp(30px, 3.3vw, 46px); max-width: 660px; }
.use-case-copy p { color: #475569; font-size: 17px; max-width: 650px; }
.seo-list {
  display: grid;
  gap: 9px;
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
}
.seo-list li { display: flex; gap: 9px; color: #334155; font-weight: 680; }
.seo-list li:before {
  content: "";
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--pl-teal);
  box-shadow: inset 0 0 0 5px #dff8f5;
}
.use-case-media {
  position: relative;
  border: 1px solid var(--pl-line);
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--pl-shadow);
  min-height: 360px;
}
.use-case-media img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: contain;
}
.keyword-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 24px;
}
.keyword-strip span {
  border: 1px solid #c8ebe7;
  border-radius: 999px;
  background: #effdfa;
  color: var(--pl-teal-dark);
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 850;
}

@media (max-width: 1120px) {
  .app-shell { grid-template-columns: 1fr; }
  .app-sidebar {
    position: static;
    height: auto;
    padding: 18px;
  }
  .app-nav-groups {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 18px;
  }
  .editor-layout,
  .profile-grid,
  .split,
  .ops-grid,
  .niche-loop,
  .use-case-story,
  .use-case-story.alt {
    grid-template-columns: 1fr;
  }
  .niche-detail-grid,
  .proof-showcase {
    grid-template-columns: 1fr;
  }
  .comparison-table-row {
    grid-template-columns: .8fr 1fr 1fr 1fr;
  }
  .comparison-table-row > * {
    padding: 18px;
  }
  .workflow-board article {
    grid-template-columns: 44px minmax(0, 1fr);
  }
  .workflow-board dl {
    grid-column: 2;
  }
  .editor-side { position: static; max-height: none; }
  .metadata-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .use-case-story.alt .use-case-copy { order: 0; }
  .filter-grid,
  .schedule-form,
  .document-create-form,
  .approval-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .api-doc-panel,
  .developer-hero,
  .developer-intro {
    grid-template-columns: 1fr;
  }
  .api-doc-actions {
    justify-items: stretch;
  }
  .api-doc-actions .api-list {
    justify-content: flex-start;
  }
  .filter-actions,
  .schedule-form .btn,
  .document-create-form .btn {
    grid-column: 1 / -1;
  }
  .filter-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 1280px) {
  .editor-layout {
    grid-template-columns: 1fr;
  }
  .editor-side {
    position: static;
    max-height: none;
  }
  .metadata-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .twofa {
    grid-template-columns: 1fr;
  }
  .twofa img {
    width: 190px;
    height: 190px;
  }
  .filter-grid,
  .schedule-form {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .schedule-form .btn {
    grid-column: auto;
  }
}

@media (max-width: 1120px) {
  .filter-grid,
  .schedule-form,
  .document-create-form,
  .approval-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .filter-actions,
  .schedule-form .btn,
  .document-create-form .btn {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  body,
  .marketing-main {
    overflow-x: hidden;
  }

  .app-shell { display: block; }
  .app-sidebar { display: none; }
  .app-main { padding-bottom: 104px; }
  .app-topbar {
    height: auto;
    min-height: 148px;
    align-items: stretch;
    flex-wrap: wrap;
    padding: 16px;
    gap: 10px;
  }
  .app-search { flex: 1 1 100%; max-width: none; order: 2; }
  .topbar-create { flex: 1; order: 3; }
  .topbar-icon { order: 3; }
  .workspace-chip { order: 1; flex: 1 1 auto; padding-left: 0; }
  .workspace-chip small { display: none; }
  .mobile-tabbar {
    position: static;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    height: 62px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    background: rgba(255,255,255,.96);
    backdrop-filter: blur(14px);
    border-top: 1px solid var(--pl-line);
  }
  .mobile-tabbar a {
    display: grid;
    place-items: center;
    min-width: 0;
    color: #475569;
    font-size: 12px;
    font-weight: 850;
  }
  .page-head,
  .app-page-head,
  .split,
  .ops-grid,
  .editor-layout,
  .profile-grid,
  .stat-grid,
  .feature-grid,
  .kb-grid {
    padding-left: 16px;
    padding-right: 16px;
  }
  .page-head,
  .app-page-head {
    display: grid;
    padding-top: 26px;
  }
  .panel,
  .ops-panel,
  .setup-guide,
  .locker-summary {
    margin-left: 16px;
    margin-right: 16px;
  }
  .field-grid,
  .metadata-grid,
  .twofa,
  .filter-grid,
  .schedule-form,
  .document-create-form,
  .proof-form,
  .approval-actions,
  .inline-form {
    grid-template-columns: 1fr;
  }
  .filter-actions,
  .schedule-form .btn,
  .document-create-form .btn {
    grid-column: auto;
  }
  .filter-actions,
  .filter-actions .btn,
  .create-panel .btn,
  .schedule-form .btn,
  .document-create-form .btn,
  .proof-form .btn,
  .approval-actions .btn,
  .inline-form .btn {
    width: 100%;
  }
  .schedule-form input[type="number"] {
    max-width: none;
  }
  .panel-head {
    display: grid;
    gap: 6px;
  }
  .split.single-column {
    width: auto;
    margin-left: 16px;
    margin-right: 16px;
  }
  .panel-actions {
    justify-content: flex-start;
    margin-left: 0;
  }
  .artifact-summary,
  .dependency-blocker,
  .api-doc-panel {
    grid-template-columns: 1fr;
  }
  .artifact-actions {
    justify-content: flex-start;
  }
  .edit-drawer {
    position: static;
    width: 100%;
    margin-top: 10px;
  }
  .developer-hero,
  .developer-intro,
  .developer-redoc {
    width: calc(100% - 32px);
  }
  .reports-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .reports-stat-grid article {
    min-height: 0;
    padding: 14px;
  }
  .reports-stat-grid strong {
    font-size: 30px;
  }
  .twofa img { width: 180px; height: 180px; }
  .settings-row { display: grid; gap: 6px; }
  .settings-row .badge {
    width: fit-content;
    justify-self: start;
  }
  .editor-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    padding: 14px 16px 112px;
    overflow: visible;
  }
  .editor-layout .panel,
  .editor-main,
  .editor-side {
    width: 100%;
    min-width: 0;
    margin: 0;
  }
  .step-editor-row {
    width: 100%;
    min-width: 0;
  }
  .step-editor-row input,
  .step-editor-row textarea,
  .step-editor-row select {
    min-width: 0;
  }
  .editor-actions {
    padding-bottom: 76px;
  }
  .mobile-tabbar {
    height: calc(62px + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom);
    position: static;
  }
  .site-header {
    position: sticky;
    display: grid;
    align-items: start;
    grid-template-columns: 1fr;
    padding: 16px;
  }
  .site-header .brand {
    width: 100%;
  }
  .site-header nav {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }
  .site-header nav a:not(.btn) { font-size: 13px; }
  .site-header .btn {
    grid-column: 1 / -1;
    width: 100%;
    min-height: 42px;
    padding: 10px 12px;
  }
  .hero,
  .hero-simple,
  .use-cases-hero,
  .hero-niche.hero.compact {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-left: 16px;
    padding-right: 16px;
  }
  .section.narrow {
    width: 100%;
    max-width: 100%;
  }
  .section.narrow h1 {
    width: min(100%, 340px);
    max-width: 340px;
    font-size: clamp(36px, 10vw, 42px);
    line-height: 1.03;
    overflow-wrap: break-word;
  }
  .section.narrow .lead {
    width: min(100%, 340px);
    max-width: 340px;
    font-size: 17px;
  }
  .hero-copy {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
  .use-cases-hero {
    display: block;
  }
  .use-cases-hero h1 {
    max-width: 340px;
    font-size: clamp(34px, 9.6vw, 38px);
    line-height: 1.02;
    overflow-wrap: break-word;
  }
  .use-cases-hero .lead {
    max-width: 340px;
    font-size: 17px;
  }
  .hero-simple {
    min-height: auto;
    padding-top: 54px;
    padding-bottom: 42px;
  }
  .hero-simple h1 {
    max-width: 340px;
    font-size: clamp(40px, 11.4vw, 46px);
    overflow-wrap: break-word;
  }
  .hero-simple .lead {
    max-width: 340px;
    font-size: 17px;
    line-height: 1.4;
  }
  .hero-simple .hero-visual,
  .hero-visual {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    justify-self: stretch;
  }
  .hero-screenshot-frame {
    border-radius: 12px;
  }
  .hero-actions,
  .cta-row {
    width: 100%;
    align-items: stretch;
  }
  .hero-actions .btn,
  .cta-row .btn {
    width: 100%;
  }
  .hero-proof {
    display: grid;
    grid-template-columns: 1fr;
    align-items: flex-start;
    gap: 8px;
  }
  .hero-proof span {
    width: 100%;
  }
  .nav-dropdown-panel { display: none; }
  .use-case-story,
  .use-case-story.alt {
    gap: 26px;
    padding-left: 16px;
    padding-right: 16px;
  }
  .use-case-copy h2 {
    max-width: 340px;
    font-size: clamp(28px, 8vw, 32px);
    line-height: 1.08;
  }
  .use-case-copy p,
  .use-case-copy ul {
    max-width: 340px;
  }
  .use-case-media,
  .use-case-media img {
    min-height: 260px;
  }
  .simple-steps {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 0 16px 46px;
  }
  .simple-steps article {
    min-height: auto;
    padding: 26px;
  }
  .simple-steps span {
    margin-bottom: 18px;
  }
  .feature-band-grid {
    grid-template-columns: 1fr;
  }
  .feature-band-grid article {
    min-height: auto;
  }
  .niche-detail-grid,
  .proof-showcase {
    grid-template-columns: 1fr;
  }
  .niche-detail-grid article {
    min-height: auto;
    padding: 24px;
  }
  .niche-detail-grid article > span {
    margin-bottom: 20px;
  }
  .comparison-table {
    border-radius: 18px;
    background: #fff;
  }
  .comparison-table-head {
    display: none;
  }
  .comparison-table-row {
    display: grid;
    grid-template-columns: 1fr;
    border-top: 1px solid rgba(211,222,233,.88);
    padding: 18px;
  }
  .comparison-table-row > * {
    border-left: 0;
    padding: 0;
  }
  .comparison-table-row > * + * {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(211,222,233,.72);
  }
  .comparison-table-row > *:before {
    content: attr(data-label);
    display: block;
    margin-bottom: 7px;
    color: var(--pl-teal-dark);
    font-family: var(--pl-font-ui);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
  }
  .comparison-table-row strong {
    font-size: 22px;
  }
  .niche-loop {
    grid-template-columns: 1fr;
    gap: 26px;
  }
  .workflow-board:before {
    left: 19px;
  }
  .workflow-board article {
    grid-template-columns: 40px minmax(0, 1fr);
    padding: 24px;
  }
  .step-number {
    width: 40px;
    height: 40px;
  }
  .workflow-board dl {
    grid-column: 1 / -1;
    grid-template-columns: 1fr;
  }
  .proof-record {
    min-height: 500px;
    padding: 28px;
  }
  .proof-ledger {
    right: 28px;
    bottom: 28px;
    left: 28px;
    grid-template-columns: 1fr;
  }
  .proof-outcomes {
    padding: 22px;
  }
  .proof-outcomes article {
    grid-template-columns: 1fr;
  }
  .pricing-callout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .pricing-callout h2 {
    font-size: clamp(36px, 10vw, 42px);
  }
  .pricing-card-mini {
    padding: 22px;
  }
  .pricing-card-mini strong {
    font-size: 52px;
  }
}

/* Last-mile cascade: this block intentionally sits at EOF. */
.site-header {
  height: 78px;
  padding-inline: clamp(20px, 5vw, 84px);
  background: rgba(255,255,255,.90);
  box-shadow: 0 1px 0 rgba(216,224,234,.72), 0 18px 60px rgba(16,24,32,.04);
}
.site-header .brand strong,
.app-brand strong { font-family: var(--pl-font-display); letter-spacing: -.02em; }
.site-header nav { gap: 16px; }
.site-header nav > a:not(.btn),
.nav-dropdown > a { min-height: 40px; display: inline-flex; align-items: center; }
[data-reveal] { opacity: 1; transform: none; }
[data-image-motion] { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s ease; }
[data-reveal].is-visible,
[data-image-motion].is-visible { opacity: 1; transform: translateY(0); }
.hero-taste {
  position: relative;
  isolation: isolate;
  grid-template-columns: minmax(0,.98fr) minmax(560px,1.02fr);
  gap: clamp(36px,5vw,78px);
  min-height: calc(100vh - 78px);
  padding: clamp(70px,8vw,118px) clamp(20px,5vw,84px) clamp(82px,8vw,118px);
  background:
    linear-gradient(90deg, rgba(255,255,255,.94), rgba(255,255,255,.68) 50%, rgba(255,255,255,.18)),
    radial-gradient(circle at 18% 10%, rgba(19,166,166,.12), transparent 28%),
    radial-gradient(circle at 86% 20%, rgba(31,99,233,.10), transparent 30%),
    #f7fafc;
  color: var(--pl-ink);
}
.hero-taste:before {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 38%;
  z-index: -1;
  background: linear-gradient(180deg, transparent, rgba(238,242,246,.82)), linear-gradient(90deg, rgba(19,166,166,.08), rgba(31,99,233,.08));
}
.hero-taste h1 { max-width: 1120px; color: var(--pl-ink); font-size: clamp(58px,7.4vw,108px); line-height: .91; letter-spacing: -.05em; }
.hero-taste .lead { max-width: 720px; color: #48586b; font-size: clamp(19px,2vw,24px); line-height: 1.42; }
.hero-taste .btn-large { min-height: 54px; padding-inline: 22px; }
.hero-note { margin: 18px 0 0; color: #5b6a7e; font-family: var(--pl-font-ui); font-size: 14px; font-weight: 800; }
.hero-taste .hero-visual { position: relative; justify-self: stretch; }
.hero-screenshot-large { margin: 0; border: 1px solid rgba(16,24,32,.10); border-radius: 22px; background: #fff; box-shadow: 0 34px 100px rgba(16,24,32,.20); transform: rotate(-1.4deg); }
.hero-screenshot-large img { width: 100%; aspect-ratio: 16/10; object-fit: cover; object-position: top left; }
.hero-mini-proof {
  position: absolute;
  right: clamp(14px,3vw,34px);
  bottom: clamp(-38px,-3vw,-24px);
  width: min(310px,58%);
  display: grid;
  gap: 10px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 18px;
  background: radial-gradient(circle at 90% 0%, rgba(19,166,166,.34), transparent 38%), linear-gradient(145deg, #101820, #17232d);
  color: #eaf2f6;
  padding: 18px;
  box-shadow: 0 24px 70px rgba(16,24,32,.28);
}
.hero-mini-proof strong { font-family: var(--pl-font-display); font-size: 20px; }
.hero-mini-proof span { display: grid; grid-template-columns: 18px minmax(0,1fr); gap: 9px; color: #cbd8df; font-family: var(--pl-font-ui); font-size: 13px; font-weight: 780; }
.hero-mini-proof span:before { content: ""; width: 18px; height: 18px; border-radius: 999px; background: radial-gradient(circle at center, #fff 0 23%, transparent 25%), var(--pl-teal); }
.taste-steps { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 0; padding: 0 clamp(20px,5vw,84px); background: linear-gradient(180deg, #eef4f8, #fff); border: 0; }
.taste-steps article { min-height: 260px; border: 1px solid rgba(216,224,234,.86); border-left: 0; border-radius: 0; background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(248,251,253,.96)); box-shadow: none; padding: 42px 36px; }
.taste-steps article:first-child { border-left: 1px solid rgba(216,224,234,.86); border-top-left-radius: 20px; border-bottom-left-radius: 20px; }
.taste-steps article:last-child { border-top-right-radius: 20px; border-bottom-right-radius: 20px; }
.taste-steps article:before { display: none; }
.taste-steps span { width: 46px; height: 46px; margin-bottom: 34px; border-radius: 15px; background: #ddf7f3; }
.taste-steps h3 { max-width: 12ch; font-size: clamp(26px,2.2vw,34px); }
.editorial-section { padding-top: clamp(110px,10vw,150px); }
.feature-proof-section { background: linear-gradient(180deg, #f7fafc, #eef5f6); }
.feature-proof-section .section-head { max-width: 920px; }
.feature-proof-section .section-head h2 { max-width: 820px; }
.feature-band-grid { grid-template-columns: repeat(6,minmax(0,1fr)); grid-auto-flow: dense; }
.feature-band-grid article { min-height: 330px; grid-column: span 2; border-radius: 22px; padding: 30px; }
.feature-band-grid article:first-child,
.feature-band-grid article:nth-child(2) { grid-column: span 3; min-height: 380px; }
.feature-band-grid article:nth-child(2) { background: radial-gradient(circle at 88% 12%, rgba(19,166,166,.12), transparent 34%), #fff; }
.feature-band-grid article:nth-child(3) { grid-column: span 6; min-height: 250px; }
.feature-band-grid h3 { font-size: clamp(28px,2.8vw,42px); }
.feature-band-grid article:nth-child(3) ul { grid-template-columns: repeat(3,minmax(0,1fr)); }
.screenshot-section { gap: clamp(42px,6vw,84px); }
.screenshot-section h2,
.pricing-callout h2 { letter-spacing: -.045em; }
.screenshot-frame,
.marketing-image-card { border-radius: 22px; box-shadow: 0 28px 86px rgba(16,24,32,.13); }
.pricing-callout { margin: 0 clamp(20px,5vw,84px) clamp(56px,6vw,90px); border-radius: 26px; }
.app-shell { grid-template-columns: 276px minmax(0,1fr); background: radial-gradient(circle at 88% 0%, rgba(19,166,166,.11), transparent 26%), #f5f8fb; }
.app-sidebar { position: sticky; top: 0; height: 100vh; padding: 26px 18px; background: radial-gradient(circle at 82% 4%, rgba(19,166,166,.16), transparent 28%), linear-gradient(180deg, #0d1319 0%, #101820 100%); }
.app-nav-groups a { min-height: 40px; border: 1px solid transparent; transition: background .16s ease, border-color .16s ease, color .16s ease, transform .16s ease; }
.app-nav-groups a:hover,
.app-nav-groups a[aria-current="page"] { border-color: rgba(255,255,255,.08); background: rgba(255,255,255,.08); transform: translateX(2px); }
.app-topbar { height: 82px; padding-inline: 30px; background: rgba(255,255,255,.88); box-shadow: 0 10px 36px rgba(16,24,32,.04); }
.app-search input { max-width: 820px; border-radius: 14px; background: #f8fbfd; transition: background .16s ease, border-color .16s ease, box-shadow .16s ease; }
.app-search input:focus { background: #fff; border-color: rgba(31,99,233,.44); box-shadow: 0 0 0 4px rgba(31,99,233,.10); outline: 0; }
.topbar-create,
.topbar-icon,
.workspace-chip { border-radius: 14px; }
.page-head,
.app-page-head { padding: 42px 38px 14px; }
.page-head h1,
.app-page-head h1 { font-size: clamp(36px,4vw,56px); }
.locker-summary { margin: 20px 38px; border-radius: 18px; }
.locker-summary article { padding: 22px 24px; }
.locker-summary strong { font-family: var(--pl-font-display); font-size: 36px; }
.locker-grid { grid-template-columns: 250px minmax(0,1fr); gap: 20px; padding: 20px 38px 56px; }
.panel,
.locker-summary,
.setup-guide { box-shadow: 0 18px 54px rgba(16,24,32,.06); }
.panel { border-radius: 18px; }
.locker-categories { padding: 16px; }
.category-row { min-height: 42px; border: 1px solid transparent; }
.category-row:hover,
.category-row.active { border-color: rgba(19,166,166,.18); background: #eaf9f7; color: var(--pl-teal-dark); }
.locker-table-panel { overflow: hidden; }
.locker-table { overflow: visible; }
.locker-row { min-width: 0; grid-template-columns: minmax(220px,1.8fr) minmax(120px,.9fr) minmax(110px,.8fr) minmax(86px,.5fr); }
.locker-row:not(.locker-row-head) { min-height: 58px; border-radius: 12px; transition: background .16s ease, transform .16s ease, box-shadow .16s ease; }
.locker-row:not(.locker-row-head):hover,
.locker-row.selected { background: #effdfa; box-shadow: inset 0 0 0 1px rgba(19,166,166,.12); transform: translateY(-1px); }
.locker-empty {
  display: grid;
  gap: 8px;
  padding: 20px 4px 4px;
}
.locker-empty strong {
  color: var(--pl-ink);
  font-size: 16px;
}
.locker-empty p {
  margin: 0;
  color: var(--pl-muted);
}
.locker-empty .btn {
  justify-self: start;
  margin-top: 4px;
}
.locker-detail { grid-column: 1 / -1; border-color: rgba(19,166,166,.24); }
.detail-actions { grid-template-columns: 1fr; }
.setup-guide { margin-inline: 38px; border-radius: 18px; background: radial-gradient(circle at 92% 10%, rgba(19,166,166,.14), transparent 28%), linear-gradient(135deg, #effdfa 0%, #f8fbff 100%); }
.editor-layout { grid-template-columns: minmax(0,1fr) minmax(360px,430px); gap: 22px; padding-inline: 38px; }
.editor-main .field-grid,
.field-grid.metadata-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
.editor-block,
.step-editor-row { border-radius: 14px; }
.quill-editor .ql-editor { min-height: 350px; }
.step-editor-row { padding: 16px; background: linear-gradient(180deg, #fff, #fbfdff); }
.schedule-form,
.document-create-form,
.proof-form,
.approval-actions { align-items: end; }
.schedule-form > *,
.document-create-form > *,
.proof-form > * { min-width: 0; }
.api-doc-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
}
.api-doc-panel h2 {
  margin-top: 0;
}
.api-doc-panel p {
  max-width: 720px;
  margin-bottom: 0;
}
.api-doc-actions {
  display: grid;
  gap: 14px;
  justify-items: end;
}
.api-doc-actions .api-list {
  justify-content: flex-end;
}
.api-doc-actions .api-list code {
  width: fit-content;
}
.reports-stat-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
.reports-stat-grid article {
  min-height: 126px;
}
.developer-page {
  min-height: 100vh;
  background: radial-gradient(circle at 82% 0%, rgba(19,166,166,.12), transparent 30%), #f5f8fb;
  color: var(--pl-ink);
}
.developer-hero,
.developer-intro,
.developer-redoc {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}
.developer-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: end;
  padding: 64px 0 26px;
}
.developer-hero h1 {
  margin: 8px 0;
  font-family: var(--pl-font-display);
  font-size: clamp(42px, 5vw, 68px);
  line-height: .95;
  letter-spacing: -.02em;
}
.developer-hero p {
  max-width: 720px;
  margin: 0;
  color: var(--pl-muted);
  font-size: 18px;
}
.developer-actions,
.developer-intro {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.developer-intro {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 24px;
}
.developer-intro article {
  border: 1px solid var(--pl-line);
  border-radius: 16px;
  background: #fff;
  padding: 18px;
  box-shadow: 0 16px 48px rgba(16,24,32,.05);
}
.developer-intro strong {
  color: var(--pl-ink);
}
.developer-intro p {
  color: var(--pl-muted);
}
.developer-intro code,
.api-doc-panel code {
  border-radius: 8px;
  background: #eff6ff;
  color: #1d4ed8;
  padding: 5px 7px;
}
.developer-redoc {
  margin-bottom: 56px;
  padding: 0;
  overflow: hidden;
}
.developer-redoc #redoc-container {
  min-height: 720px;
}
.docs-loading {
  margin: 0;
  padding: 28px;
  color: var(--pl-muted);
}
@media (max-width: 1180px) {
  .hero-taste { grid-template-columns: 1fr; min-height: auto; }
  .hero-taste h1 { max-width: 980px; font-size: clamp(52px,9vw,90px); }
  .hero-taste .hero-visual { max-width: 920px; }
  .feature-band-grid,
  .feature-band-grid article,
  .feature-band-grid article:first-child,
  .feature-band-grid article:nth-child(2),
  .feature-band-grid article:nth-child(3) { grid-column: auto; }
  .feature-band-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .feature-band-grid article:nth-child(3) ul { grid-template-columns: 1fr; }
  .locker-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .manage-row,
  .schedule-manage-row {
    display: grid;
    gap: 10px;
  }
  .artifact-form,
  .schedule-manage-row .artifact-form {
    grid-template-columns: 1fr;
  }
  .manage-row form:not(.artifact-form),
  .schedule-manage-row form:not(.artifact-form) {
    width: 100%;
  }
  .manage-row .btn,
  .schedule-manage-row .btn {
    width: 100%;
  }
  .artifact-summary {
    grid-template-columns: 1fr;
  }
  .artifact-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
  .artifact-actions .btn,
  .artifact-actions form {
    width: 100%;
  }
  .edit-drawer {
    position: static;
    width: 100%;
    margin-top: 8px;
    box-shadow: none;
  }
  .drawer-actions {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 760px) {
  .site-header { height: auto; min-height: 72px; }
  .hero-taste { padding: 48px 16px 64px; }
  .hero-taste h1 { font-size: clamp(43px,13vw,58px); line-height: .95; }
  .hero-taste .lead { font-size: 18px; }
  .hero-taste .hero-actions .btn { width: 100%; }
  .hero-mini-proof { position: relative; right: auto; bottom: auto; width: 100%; margin-top: 14px; }
  .hero-screenshot-large { transform: none; border-radius: 16px; }
  .taste-steps { grid-template-columns: 1fr; padding: 0 16px; }
  .taste-steps article,
  .taste-steps article:first-child,
  .taste-steps article:last-child { border: 1px solid rgba(216,224,234,.86); border-radius: 16px; margin-top: 12px; }
  .feature-band-grid { grid-template-columns: 1fr; }
  .feature-band-grid article { min-height: auto !important; }
  .pricing-callout { margin-inline: 16px; }
  .app-shell { grid-template-columns: 1fr; }
  .app-sidebar { display: none; }
  .app-topbar { position: sticky; height: auto; flex-wrap: wrap; padding: 12px 16px; }
  .app-search { flex-basis: 100%; max-width: none; order: 2; }
  .workspace-chip small { display: none; }
  .page-head,
  .app-page-head { padding: 28px 16px 8px; }
  .locker-summary { margin: 14px 16px; }
  .locker-grid,
  .editor-layout { padding-inline: 16px; }
  .setup-guide { margin-inline: 16px; }
  .editor-main .field-grid,
  .field-grid.metadata-grid { grid-template-columns: 1fr; }
}

/* Marketing subpage system */
.marketing-subpage {
  overflow-x: hidden;
  background:
    radial-gradient(circle at 86% 8%, rgba(19,166,166,.10), transparent 30%),
    linear-gradient(180deg, #f7fafc 0%, #ffffff 48%, #f5f8fb 100%);
}
.subpage-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 34px;
  padding: clamp(70px, 8vw, 118px) clamp(20px, 5vw, 84px) clamp(58px, 6vw, 92px);
}
.subpage-hero-copy {
  min-width: 0;
  max-width: 1180px;
}
.subpage-hero h1 {
  width: 100%;
  max-width: 1180px;
  color: var(--pl-ink);
  font-family: var(--pl-font-display);
  font-size: clamp(52px, 6.2vw, 92px);
  line-height: .94;
  letter-spacing: -.052em;
  text-wrap: balance;
}
.subpage-hero .lead {
  max-width: 780px;
  color: #4f6073;
  font-size: clamp(19px, 2vw, 24px);
  line-height: 1.44;
}
.pricing-hero {
  grid-template-columns: minmax(0, 1fr) minmax(300px, 390px);
  align-items: end;
}
.pricing-hero-card {
  border: 1px solid rgba(19,166,166,.22);
  border-radius: 24px;
  background:
    radial-gradient(circle at 88% 12%, rgba(19,166,166,.18), transparent 36%),
    rgba(255,255,255,.88);
  box-shadow: 0 28px 86px rgba(16,24,32,.10);
  padding: 30px;
}
.pricing-hero-card span {
  color: var(--pl-teal-dark);
  font-family: var(--pl-font-ui);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.pricing-hero-card strong {
  display: block;
  margin: 12px 0;
  font-family: var(--pl-font-display);
  font-size: 62px;
  line-height: .9;
  letter-spacing: -.05em;
}
.pricing-mini-plans {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}
.pricing-mini-plans div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 14px;
  align-items: baseline;
  border: 1px solid rgba(216,224,234,.92);
  border-radius: 16px;
  background: rgba(255,255,255,.72);
  padding: 14px;
}
.pricing-mini-plans b {
  font-family: var(--pl-font-display);
  font-size: 21px;
  letter-spacing: -.025em;
}
.pricing-mini-plans em {
  color: var(--pl-ink);
  font-style: normal;
  font-weight: 900;
}
.pricing-mini-plans small {
  grid-column: 1 / -1;
  color: #637185;
  font-size: 13px;
  font-weight: 720;
}
.pricing-bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-flow: dense;
  gap: 20px;
  padding-top: 0;
}
.premium-price-card {
  grid-column: span 6;
  display: grid;
  align-content: start;
  gap: 22px;
  min-height: 640px;
  border: 1px solid rgba(216,224,234,.92);
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 24px 80px rgba(16,24,32,.08);
  padding: clamp(28px, 4vw, 46px);
}
.premium-price-card.featured {
  grid-column: span 7;
  border-color: rgba(19,166,166,.45);
  background:
    radial-gradient(circle at 86% 0%, rgba(19,166,166,.16), transparent 34%),
    #fff;
}
.premium-price-card:not(.featured) {
  grid-column: span 5;
}
.price-card-head {
  min-height: 126px;
}
.premium-price-card h2,
.pricing-proof-tile h2,
.pricing-compare h2 {
  font-family: var(--pl-font-display);
  letter-spacing: -.04em;
}
.premium-price-card h2 {
  font-size: clamp(42px, 4.5vw, 66px);
}
.premium-price-card .price {
  font-family: var(--pl-font-display);
  font-size: clamp(62px, 6vw, 88px);
  line-height: .88;
  letter-spacing: -.055em;
}
.price-note {
  min-height: 54px;
  color: #4f6073;
  font-weight: 760;
}
.premium-price-card ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.premium-price-card li,
.pricing-proof-grid span {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 10px;
}
.premium-price-card li:before,
.pricing-proof-grid span:before {
  content: "";
  width: 18px;
  height: 18px;
  margin-top: 2px;
  border-radius: 999px;
  background: radial-gradient(circle at center, var(--pl-teal) 0 34%, transparent 36%), #ddf7f3;
}
.premium-price-card .btn {
  align-self: end;
  width: fit-content;
  margin-top: auto;
}
.pricing-proof-tile {
  grid-column: span 4;
  min-height: 320px;
  border-radius: 26px;
  border: 1px solid rgba(216,224,234,.92);
  background: rgba(255,255,255,.86);
  box-shadow: 0 24px 70px rgba(16,24,32,.07);
  padding: 30px;
}
.pricing-proof-tile:first-of-type {
  grid-column: span 5;
}
.pricing-proof-tile.dark {
  grid-column: span 7;
  display: grid;
  align-content: center;
  color: #fff;
  background:
    radial-gradient(circle at 86% 10%, rgba(19,166,166,.30), transparent 36%),
    linear-gradient(145deg, #101820, #17232d);
}
.pricing-proof-tile.dark p {
  max-width: 640px;
  color: #cfdae2;
}
.pricing-proof-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 18px;
}
.pricing-compare {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(480px, 1.2fr);
  gap: 48px;
  align-items: start;
  padding-top: clamp(96px, 10vw, 150px);
}
.pricing-compare h2 {
  font-size: clamp(42px, 5vw, 74px);
}
.price-compare-table {
  overflow: hidden;
  border: 1px solid rgba(216,224,234,.92);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 26px 80px rgba(16,24,32,.08);
}
.price-compare-table div {
  display: grid;
  grid-template-columns: minmax(160px, .45fr) minmax(0, 1fr);
  gap: 22px;
  padding: 24px;
  border-top: 1px solid rgba(216,224,234,.82);
}
.price-compare-table div:first-child {
  border-top: 0;
  background: #effdfa;
}
.price-compare-table strong {
  font-family: var(--pl-font-display);
  font-size: 22px;
  letter-spacing: -.02em;
}
.use-case-hero-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  overflow: hidden;
  scrollbar-width: none;
  border: 1px solid rgba(216,224,234,.92);
  border-radius: 22px;
  background: rgba(255,255,255,.82);
  box-shadow: 0 22px 68px rgba(16,24,32,.07);
}
.use-case-hero-strip::-webkit-scrollbar {
  display: none;
}
.use-cases-page .subpage-hero {
  padding-bottom: clamp(44px, 5vw, 72px);
}
.use-cases-page .subpage-hero h1 {
  max-width: 1020px;
  font-size: clamp(52px, 6vw, 88px);
}
.use-cases-page .subpage-hero .lead {
  max-width: 900px;
}
.use-case-hero-strip a {
  min-height: 86px;
  display: grid;
  place-items: center;
  padding: 18px;
  border-left: 1px solid rgba(216,224,234,.82);
  color: #344458;
  font-family: var(--pl-font-ui);
  font-weight: 900;
  text-align: center;
}
.use-case-hero-strip > span {
  display: none;
}
.use-case-hero-strip a:first-child {
  border-left: 0;
}
.use-case-hero-strip a:hover {
  background: #effdfa;
  color: var(--pl-teal-dark);
}
.use-case-bento {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  grid-auto-flow: dense;
  gap: 20px;
  padding-top: 0;
}
.use-case-card {
  grid-column: span 5;
  min-height: 520px;
  overflow: hidden;
  border: 1px solid rgba(216,224,234,.92);
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 24px 78px rgba(16,24,32,.08);
}
.use-case-card.featured {
  grid-column: span 10;
}
.use-case-card-link {
  min-height: inherit;
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  color: inherit;
}
.use-case-card:not(.featured) .use-case-card-link {
  grid-template-columns: 1fr;
}
.use-case-card figure {
  overflow: hidden;
  margin: 0;
  background: #0f171d;
}
.use-case-card img {
  width: 100%;
  height: 100%;
  min-height: 300px;
  object-fit: cover;
  transition: transform .7s ease, filter .7s ease;
}
.use-case-card:hover img {
  transform: scale(1.045);
  filter: contrast(1.05) saturate(.96);
}
.use-case-card div {
  display: grid;
  align-content: center;
  gap: 16px;
  padding: clamp(28px, 4vw, 48px);
}
.use-case-card span {
  width: fit-content;
  color: var(--pl-teal-dark);
  font-family: var(--pl-font-ui);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.use-case-card h2 {
  max-width: 760px;
  font-family: var(--pl-font-display);
  font-size: clamp(32px, 4vw, 58px);
  line-height: .98;
  letter-spacing: -.045em;
}
.use-case-card p {
  max-width: 620px;
  color: #4f6073;
  font-size: 18px;
}
.use-case-card ul {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.use-case-card li {
  color: #344458;
  font-weight: 780;
}
.use-case-card-cta {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  border-radius: 12px;
  background: #101820;
  color: #fff;
  padding: 10px 14px;
  font-family: var(--pl-font-ui);
  font-size: 15px;
  font-weight: 900;
}
.use-case-card:hover .use-case-card-cta {
  background: var(--pl-blue);
}
.use-case-operating-model {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(520px, 1.18fr);
  gap: 54px;
  align-items: center;
  background: #fff;
}
.use-case-operating-model h2 {
  font-family: var(--pl-font-display);
  font-size: clamp(44px, 5vw, 76px);
  line-height: .95;
  letter-spacing: -.05em;
}
.use-case-operating-model ol {
  counter-reset: loop;
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid rgba(216,224,234,.92);
  border-radius: 24px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 26px 80px rgba(16,24,32,.08);
}
.use-case-operating-model li {
  counter-increment: loop;
  display: grid;
  grid-template-columns: 76px minmax(150px,.36fr) minmax(0,1fr);
  gap: 18px;
  padding: 24px;
  border-top: 1px solid rgba(216,224,234,.82);
}
.use-case-operating-model li:first-child {
  border-top: 0;
}
.use-case-operating-model li:before {
  content: counter(loop);
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 15px;
  background: #ddf7f3;
  color: var(--pl-teal-dark);
  font-family: var(--pl-font-ui);
  font-weight: 900;
}
.use-case-operating-model strong {
  font-family: var(--pl-font-display);
  font-size: 28px;
  letter-spacing: -.03em;
}
.use-case-operating-model span {
  color: #4f6073;
}
.niche-hero {
  grid-template-columns: minmax(0, .95fr) minmax(430px, .72fr);
  align-items: end;
}
.niche-hero-media {
  position: relative;
}
.niche-hero-media figure {
  overflow: hidden;
  margin: 0;
  border: 1px solid rgba(216,224,234,.92);
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 32px 92px rgba(16,24,32,.14);
}
.niche-hero-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: 78% center;
}
.niche-hero-media aside {
  position: absolute;
  right: 18px;
  bottom: 18px;
  display: grid;
  gap: 9px;
  min-width: 220px;
  max-width: min(280px, 72%);
  border-radius: 18px;
  background: rgba(16,24,32,.88);
  backdrop-filter: blur(16px);
  color: #dce8ef;
  padding: 16px;
  box-shadow: 0 24px 70px rgba(16,24,32,.24);
}
.niche-hero-media strong {
  color: #fff;
  font-family: var(--pl-font-display);
  font-size: 22px;
}
.niche-hero-media span {
  color: #c9d6de;
  font-family: var(--pl-font-ui);
  font-size: 13px;
  font-weight: 820;
}
.niche-overview {
  background: #fff;
}
.niche-overview .section-head {
  max-width: 980px;
}
.niche-overview .section-head h2,
.niche-comparison .section-head h2,
.niche-loop h2,
.proof-record h2 {
  font-family: var(--pl-font-display);
  letter-spacing: -.05em;
}
.niche-overview .section-head h2,
.niche-comparison .section-head h2 {
  font-size: clamp(42px, 5.4vw, 78px);
}
.niche-signal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.niche-signal-grid article {
  min-height: 300px;
  border: 1px solid rgba(216,224,234,.92);
  border-radius: 24px;
  background:
    radial-gradient(circle at 90% 10%, rgba(19,166,166,.10), transparent 32%),
    #fff;
  box-shadow: 0 22px 70px rgba(16,24,32,.06);
  padding: 28px;
}
.niche-signal-grid h3 {
  font-family: var(--pl-font-display);
  font-size: 30px;
  letter-spacing: -.035em;
}
.niche-signal-grid ul {
  display: grid;
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}
.niche-signal-grid li {
  color: #405064;
  line-height: 1.4;
}
.comparison-table {
  border-radius: 26px;
}
.niche-loop {
  padding-top: clamp(110px, 10vw, 150px);
  padding-bottom: clamp(110px, 10vw, 150px);
}
.workflow-board article {
  transition: transform .22s ease, box-shadow .22s ease;
}
.workflow-board article:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 70px rgba(16,24,32,.10);
}
.niche-proof-band {
  padding-top: clamp(110px, 10vw, 150px);
  padding-bottom: clamp(110px, 10vw, 150px);
}
.proof-record {
  border-radius: 28px;
}
.proof-outcomes {
  border-radius: 28px;
}
@media (max-width: 1180px) {
  .pricing-hero,
  .pricing-compare,
  .use-case-operating-model,
  .niche-hero {
    grid-template-columns: 1fr;
  }
  .pricing-bento,
  .use-case-bento {
    grid-template-columns: 1fr;
  }
  .premium-price-card,
  .premium-price-card.featured,
  .premium-price-card:not(.featured),
  .pricing-proof-tile,
  .pricing-proof-tile:first-of-type,
  .pricing-proof-tile.dark,
  .use-case-card,
  .use-case-card.featured {
    grid-column: auto;
  }
  .use-case-card-link,
  .use-case-card.featured .use-case-card-link {
    grid-template-columns: 1fr;
  }
  .niche-signal-grid {
    grid-template-columns: 1fr;
  }
  .use-case-hero-strip {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    padding-bottom: 4px;
  }
  .use-case-hero-strip a {
    min-width: 150px;
    min-height: 46px;
    border: 1px solid rgba(216,224,234,.92);
    border-radius: 999px;
    background: rgba(255,255,255,.88);
    padding: 10px 14px;
    white-space: nowrap;
  }
}
@media (max-width: 760px) {
  .subpage-hero {
    max-width: 100%;
    overflow: hidden;
    padding: 48px 16px 46px;
  }
  .subpage-hero h1 {
    max-width: calc(100vw - 32px);
    font-size: clamp(36px, 10vw, 42px);
    line-height: 1;
    letter-spacing: -.04em;
    text-wrap: pretty;
  }
  .subpage-hero .lead {
    max-width: calc(100vw - 32px);
    font-size: 17px;
    line-height: 1.48;
  }
  .use-cases-page .subpage-hero h1 {
    max-width: calc(100vw - 32px);
    font-size: clamp(36px, 10vw, 42px);
  }
  .use-cases-page .subpage-hero .lead {
    max-width: calc(100vw - 32px);
  }
  .pricing-bento,
  .use-case-bento,
  .pricing-compare,
  .use-case-operating-model,
  .niche-overview,
  .niche-loop,
  .niche-proof-band {
    padding-left: 16px;
    padding-right: 16px;
  }
  .premium-price-card,
  .pricing-proof-tile,
  .use-case-card div,
  .niche-signal-grid article {
    padding: 24px;
  }
  .premium-price-card {
    min-height: auto;
  }
  .use-case-hero-strip {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    padding-bottom: 4px;
  }
  .use-case-hero-strip a {
    min-width: 150px;
    min-height: 46px;
    border: 1px solid rgba(216,224,234,.92);
    border-radius: 999px;
    background: rgba(255,255,255,.88);
    padding: 10px 14px;
    white-space: nowrap;
  }
  .pricing-proof-grid {
    grid-template-columns: 1fr;
  }
  .price-compare-table div,
  .use-case-operating-model li {
    grid-template-columns: 1fr;
  }
  .niche-hero-media aside {
    position: relative;
    left: auto;
    bottom: auto;
    margin-top: 14px;
  }
}

@media (max-width: 760px) {
  .api-doc-panel,
  .developer-hero,
  .developer-intro {
    grid-template-columns: 1fr;
  }
  .api-doc-actions {
    justify-items: stretch;
  }
  .api-doc-actions .api-list {
    justify-content: flex-start;
  }
  .developer-actions {
    align-items: stretch;
  }
  .developer-actions .btn,
  .api-doc-actions .btn {
    width: 100%;
  }
  .reports-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .reports-stat-grid article {
    min-height: 0;
    padding: 14px;
  }
  .reports-stat-grid strong {
    font-size: 30px;
  }
  .developer-redoc {
    width: 100%;
    border-left: 0;
    border-right: 0;
    border-radius: 0;
  }
  .developer-redoc #redoc-container,
  .developer-redoc .redoc-wrap,
  .developer-redoc .redoc-wrap > div {
    max-width: 100vw;
    min-width: 0;
    overflow-x: hidden;
  }
  .developer-redoc .redoc-json,
  .developer-redoc .redoc-json code,
  .developer-redoc .redoc-json ul,
  .developer-redoc .redoc-json li,
  .developer-redoc .redoc-json div,
  .developer-redoc .redoc-json span {
    max-width: 100%;
    min-width: 0;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
  }
  .developer-redoc [class*="sc-"] {
    max-width: 100%;
    min-width: 0;
  }
}
