/* PerfectATS 2026 design pass — shared visual system */
:root {
  --pa-ink: #111827;
  --pa-ink-soft: #374151;
  --pa-muted: #5f6b7a;
  --pa-primary: #4f46e5;
  --pa-primary-deep: #3730a3;
  --pa-primary-soft: #eef2ff;
  --pa-blue: #2563eb;
  --pa-success: #15803d;
  --pa-warning: #b45309;
  --pa-danger: #b91c1c;
  --pa-page: #f7f8fc;
  --pa-surface: #ffffff;
  --pa-surface-alt: #f0f3f9;
  --pa-line: #dfe4ec;
  --pa-line-strong: #cbd3df;
  --pa-radius-sm: 8px;
  --pa-radius-md: 12px;
  --pa-radius-lg: 16px;
  --pa-ease: cubic-bezier(.22, 1, .36, 1);
}

/* =========================================================
   Guided resume workspace
   Approved direction: three-zone editor + edit-first mobile.
   ========================================================= */

.page-builder {
  --editor-white: #fff;
  --editor-panel: #f7f7fa;
  --editor-line: #e4e4ea;
  --editor-line-strong: #d2d1da;
  --editor-ink: #17151f;
  --editor-muted: #625f6b;
  --editor-canvas: #20222a;
  --editor-canvas-raised: #292b34;
  --editor-violet: #5b4be7;
  --editor-violet-dark: #4939ce;
  --editor-violet-soft: #eeecff;
  --editor-success: #16815b;
  --editor-warning: #b86800;
  --editor-ease: cubic-bezier(.16, 1, .3, 1);
  background: var(--editor-canvas);
  color: var(--editor-ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-kerning: normal;
}

.page-builder .page-wrap {
  min-height: 100dvh;
}

.page-builder header {
  position: relative;
  z-index: 50;
  height: 64px;
  border-bottom: 1px solid var(--editor-line);
  background: var(--editor-white);
  box-shadow: none;
}

.page-builder .container-full {
  width: 100%;
  max-width: none;
  padding: 0 24px;
}

.page-builder .nav-bar {
  min-height: 64px;
  gap: 24px;
}

.page-builder .nav-left {
  min-width: 0;
  gap: 20px;
}

.page-builder .logo {
  min-width: 196px;
  gap: 10px;
}

.page-builder .logo-mark {
  width: 38px;
  height: 38px;
}

.page-builder .logo-main {
  color: var(--editor-ink);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -.015em;
}

.page-builder .logo-sub {
  color: var(--editor-muted);
  font-size: .6875rem;
}

.page-builder .resume-name-wrap {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding-left: 20px;
  border-left: 1px solid var(--editor-line);
}

.page-builder .resume-name-input {
  width: min(220px, 18vw);
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--editor-ink);
  font-size: .875rem;
  font-weight: 650;
}

.page-builder .resume-name-input:hover {
  border-color: var(--editor-line);
  background: var(--editor-panel);
}

.page-builder .resume-name-input:focus-visible {
  outline: 2px solid var(--editor-violet);
  outline-offset: 2px;
  border-color: transparent;
  background: var(--editor-white);
}

.page-builder .save-status {
  color: var(--editor-success);
  font-size: .75rem;
  font-weight: 700;
  white-space: nowrap;
}

.page-builder .save-status::before {
  content: "✓";
  display: inline-grid;
  width: 18px;
  height: 18px;
  margin-right: 6px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: .625rem;
}

.page-builder .editor-header-progress {
  min-width: 210px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--editor-muted);
  font-size: .75rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.page-builder .editor-progress-track {
  width: 104px;
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: #dedde5;
}

.page-builder .editor-progress-track > span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--editor-violet);
  transition: width 220ms var(--editor-ease);
}

.page-builder .nav-right {
  margin-left: 0;
}

.page-builder .btn-download-main {
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--editor-violet);
  border-radius: 8px;
  background: var(--editor-violet);
  color: #fff;
  box-shadow: none;
  font-size: .8125rem;
  font-weight: 800;
}

.page-builder .btn-download-main:hover {
  border-color: var(--editor-violet-dark);
  background: var(--editor-violet-dark);
  transform: none;
}

.page-builder .btn-download-main:focus-visible,
.page-builder .download-menu button:focus-visible {
  outline: 2px solid var(--editor-violet);
  outline-offset: 2px;
}

.page-builder .download-menu {
  top: calc(100% + 8px);
  right: 0;
  min-width: 220px;
  padding: 6px;
  border: 1px solid var(--editor-line);
  border-radius: 10px;
  background: var(--editor-white);
  box-shadow: 0 6px 8px rgba(23, 21, 31, .14);
}

.page-builder .download-menu button {
  min-height: 48px;
  padding: 8px 10px;
  border-radius: 7px;
}

.page-builder #builder.builder-fullbleed {
  height: calc(100dvh - 64px);
  min-height: 650px;
  padding: 0;
  background: var(--editor-canvas);
}

.page-builder .builder-shell {
  position: relative;
  width: 100%;
  max-width: none;
  height: 100%;
  min-height: 100%;
  display: grid;
  grid-template-columns: 520px minmax(0, 1fr);
  gap: 0;
  background: var(--editor-canvas);
}

.page-builder .builder-panel {
  position: relative;
  min-width: 0;
  height: 100%;
  display: grid !important;
  grid-template-columns: 80px minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  overflow: hidden;
  border: 0;
  border-right: 1px solid var(--editor-line);
  border-radius: 0;
  background: var(--editor-white) !important;
}

.page-builder .side-tabs {
  grid-column: 1;
  grid-row: 1;
  width: auto;
  height: 100%;
  margin: 0;
  padding: 12px 8px;
  border: 0;
  border-right: 1px solid #2d2a38;
  background: var(--editor-ink);
}

.page-builder .side-tabs-inner {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.page-builder .side-tab-btn {
  width: 100%;
  min-height: 68px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 4px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #aaa6b5;
  box-shadow: none;
  font-size: .6875rem;
  font-weight: 700;
}

.page-builder .side-tab-btn .icon {
  width: 22px;
  height: 22px;
}

.page-builder .side-tab-btn .icon svg {
  width: 22px;
  height: 22px;
}

.page-builder .side-tab-btn:hover {
  background: #262330;
  color: #fff;
}

.page-builder .side-tab-btn.is-active {
  background: var(--editor-violet);
  color: #fff;
  box-shadow: none;
}

.page-builder .side-tab-btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.page-builder .side-tab-preview {
  margin-top: 2px;
}

.page-builder .panel-scroll {
  grid-column: 2;
  grid-row: 1;
  width: 100%;
  height: 100%;
  padding: 0 0 88px;
  overflow-x: hidden;
  overflow-y: auto;
  background: var(--editor-white);
  scrollbar-gutter: stable;
}

.page-builder .panel-scroll[data-panel="customize"] {
  padding-bottom: 24px;
}

.page-builder .editor-panel-intro {
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--editor-line);
  background: var(--editor-white);
}

.page-builder .editor-panel-kicker {
  margin: 0 0 6px;
  color: var(--editor-violet);
  font-size: .75rem;
  font-weight: 800;
}

.page-builder .editor-panel-intro h2 {
  margin: 0;
  color: var(--editor-ink);
  font-size: 1.25rem;
  line-height: 1.2;
  letter-spacing: -.02em;
}

.page-builder .editor-panel-intro > p:not(.editor-panel-kicker) {
  max-width: 38ch;
  margin: 6px 0 0;
  color: var(--editor-muted);
  font-size: .8125rem;
  line-height: 1.55;
}

.page-builder .editor-panel-progress {
  margin-top: 14px;
}

.page-builder .editor-panel-progress-copy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  color: var(--editor-muted);
  font-size: .75rem;
}

.page-builder .editor-panel-progress-copy strong {
  color: var(--editor-ink);
  font-variant-numeric: tabular-nums;
}

.page-builder .editor-panel-progress .editor-progress-track {
  width: 100%;
}

.page-builder .editor-section-nav {
  display: grid;
  gap: 2px;
  margin-top: 14px;
}

.page-builder .editor-section-nav button {
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 10px 0 12px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--editor-muted);
  text-align: left;
  font-size: .8125rem;
  font-weight: 650;
}

.page-builder .editor-section-nav button:hover {
  background: var(--editor-panel);
  color: var(--editor-ink);
}

.page-builder .editor-section-nav button.is-active {
  background: var(--editor-violet-soft);
  color: var(--editor-violet-dark);
}

.page-builder .editor-section-nav button:focus-visible {
  outline: 2px solid var(--editor-violet);
  outline-offset: 2px;
}

.page-builder .editor-section-state {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid var(--editor-line-strong);
  border-radius: 50%;
  background: var(--editor-white);
  color: var(--editor-muted);
  font-size: .6875rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.page-builder .editor-section-nav button.is-complete .editor-section-state {
  border-color: var(--editor-success);
  background: var(--editor-success);
  color: #fff;
}

.page-builder .panel-section,
.page-builder .panel-section:first-child {
  margin: 0;
  border: 0;
  border-bottom: 1px solid var(--editor-line);
  border-radius: 0;
  background: var(--editor-white);
  box-shadow: none;
}

.page-builder .panel-section.is-current {
  background: #fcfbff;
}

.page-builder .panel-section-header {
  width: 100%;
  min-height: 60px;
  padding: 0 24px;
  background: transparent;
}

.page-builder .panel-section-title {
  color: var(--editor-ink);
  font-size: .875rem;
  font-weight: 800;
  letter-spacing: 0;
}

.page-builder .panel-section-chevron {
  color: var(--editor-muted);
  font-size: .75rem;
}

.page-builder .panel-section-header:hover {
  background: var(--editor-panel);
}

.page-builder .panel-section-header:focus-visible {
  outline: 2px solid var(--editor-violet);
  outline-offset: -3px;
}

.page-builder .panel-section-body {
  padding: 4px 24px 28px;
}

.page-builder .field-row,
.page-builder .date-row {
  gap: 12px;
}

.page-builder .field-group {
  gap: 8px;
  margin-bottom: 18px;
}

.page-builder .field-label,
.page-builder label {
  color: var(--editor-ink);
  font-size: .75rem;
  font-weight: 750;
}

.page-builder .field-hint,
.page-builder .field-count,
.page-builder .field-meta,
.page-builder .subcard-hint {
  color: var(--editor-muted);
  font-size: .6875rem;
}

.page-builder .field-input,
.page-builder .field-textarea,
.page-builder .field-select,
.page-builder select,
.page-builder input[type="text"],
.page-builder input[type="email"],
.page-builder input[type="date"],
.page-builder input[type="month"],
.page-builder input[type="number"] {
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--editor-line-strong);
  border-radius: 8px;
  background: var(--editor-white);
  color: var(--editor-ink);
  box-shadow: none;
  font-size: .875rem;
  line-height: 1.35;
}

.page-builder .field-textarea,
.page-builder textarea {
  min-height: 92px;
  padding-top: 11px;
  padding-bottom: 11px;
  resize: vertical;
}

.page-builder .field-input:hover,
.page-builder .field-textarea:hover,
.page-builder select:hover,
.page-builder input:hover,
.page-builder textarea:hover {
  border-color: #aaa7b3;
}

.page-builder .field-input:focus,
.page-builder .field-textarea:focus,
.page-builder select:focus,
.page-builder input:focus,
.page-builder textarea:focus {
  outline: none;
  border-color: var(--editor-violet);
  box-shadow: 0 0 0 3px rgba(91, 75, 231, .14);
}

.page-builder .field-warning.is-warning {
  color: var(--editor-warning);
}

.page-builder .editor-guided-footer {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 80px;
  z-index: 12;
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-top: 1px solid var(--editor-line);
  background: rgba(255, 255, 255, .98);
}

.page-builder.editor-mode-customize .editor-guided-footer,
.page-builder .editor-guided-footer[hidden] {
  display: none;
}

.page-builder .editor-secondary-action,
.page-builder .editor-primary-action {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 8px;
  font-size: .75rem;
  font-weight: 800;
}

.page-builder .editor-secondary-action {
  width: 106px;
  border: 1px solid var(--editor-line-strong);
  background: var(--editor-white);
  color: var(--editor-ink);
}

.page-builder .editor-primary-action {
  flex: 1;
  border: 1px solid var(--editor-violet);
  background: var(--editor-violet);
  color: #fff;
}

.page-builder .editor-primary-action:hover {
  border-color: var(--editor-violet-dark);
  background: var(--editor-violet-dark);
}

.page-builder .editor-secondary-action:disabled {
  cursor: not-allowed;
  opacity: .45;
}

.page-builder .editor-secondary-action:focus-visible,
.page-builder .editor-primary-action:focus-visible {
  outline: 2px solid var(--editor-violet);
  outline-offset: 2px;
}

.page-builder .editor-design-intro {
  padding-bottom: 24px;
}

.page-builder .design-command-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
}

.page-builder .design-save-state {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--editor-muted);
  font-size: .6875rem;
  font-weight: 700;
}

.page-builder .design-save-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #16a34a;
  box-shadow: 0 0 0 3px rgba(22, 163, 74, .11);
}

.page-builder .design-save-state.is-saving .design-save-dot {
  background: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, .12);
}

.page-builder .design-reset-button {
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid var(--editor-line-strong);
  border-radius: 8px;
  background: var(--editor-white);
  color: var(--editor-muted-strong);
  font: inherit;
  font-size: .6875rem;
  font-weight: 800;
  cursor: pointer;
}

.page-builder .design-reset-button:hover {
  border-color: var(--editor-violet);
  color: var(--editor-violet-dark);
}

.page-builder .panel-scroll[data-panel="customize"] .panel-section-body {
  padding-bottom: 32px;
}

.page-builder .subcard {
  margin: 0;
  padding: 20px 0;
  border: 0;
  border-bottom: 1px solid var(--editor-line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.page-builder .subcard:last-child {
  border-bottom: 0;
}

.page-builder .subcard-title {
  color: var(--editor-ink);
  font-size: .8125rem;
  font-weight: 800;
}

.page-builder .design-subcard-copy {
  max-width: 290px;
  margin-top: 4px;
  color: var(--editor-muted);
  font-size: .6875rem;
  line-height: 1.45;
}

.page-builder .design-preset-grid {
  display: grid;
  gap: 8px;
}

.page-builder .design-preset-button {
  width: 100%;
  min-height: 58px;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  padding: 9px 11px;
  border: 1px solid var(--editor-line-strong);
  border-radius: 9px;
  background: var(--editor-white);
  color: var(--editor-ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color .16s ease, background-color .16s ease, transform .16s ease;
}

.page-builder .design-preset-button:hover {
  border-color: #a9a1ef;
  transform: translateY(-1px);
}

.page-builder .design-preset-button.is-active {
  border-color: var(--editor-violet);
  background: var(--editor-violet-soft);
}

.page-builder .design-preset-icon {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--editor-panel);
  color: var(--editor-violet-dark);
  font-size: .75rem;
  font-weight: 900;
}

.page-builder .design-preset-button.is-active .design-preset-icon {
  background: var(--editor-violet);
  color: #fff;
}

.page-builder .design-preset-button strong,
.page-builder .design-preset-button small {
  display: block;
}

.page-builder .design-preset-button strong {
  font-size: .75rem;
  line-height: 1.3;
}

.page-builder .design-preset-button small {
  margin-top: 2px;
  color: var(--editor-muted);
  font-size: .625rem;
  line-height: 1.35;
}

.page-builder .design-page-badge {
  flex: 0 0 auto;
  min-width: 30px;
  padding: 4px 7px;
  border-radius: 999px;
  background: #ecfdf5;
  color: #047857;
  font-size: .625rem;
  font-weight: 900;
  text-align: center;
}

.page-builder .design-page-badge.is-multi {
  background: #fff7ed;
  color: #c2410c;
}

.page-builder .design-fit-button {
  width: 100%;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 12px;
  border: 1px solid var(--editor-violet);
  border-radius: 9px;
  background: var(--editor-violet);
  color: #fff;
  font: inherit;
  font-size: .75rem;
  font-weight: 850;
  cursor: pointer;
}

.page-builder .design-fit-button:hover {
  background: var(--editor-violet-dark);
}

.page-builder .design-settings-feedback {
  min-height: 18px;
  padding-top: 8px;
  color: var(--editor-muted-strong);
  font-size: .6875rem;
  font-weight: 700;
}

.page-builder .settings-switch-list {
  border-top: 1px solid var(--editor-line);
}

.page-builder .settings-switch-row {
  position: relative;
  min-height: 58px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 38px;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid var(--editor-line);
  cursor: pointer;
}

.page-builder .settings-switch-list-compact .settings-switch-row {
  min-height: 48px;
}

.page-builder .settings-switch-copy,
.page-builder .settings-switch-copy strong,
.page-builder .settings-switch-copy small,
.page-builder .settings-inline-control strong,
.page-builder .settings-inline-control small {
  display: block;
}

.page-builder .settings-switch-copy strong,
.page-builder .settings-inline-control strong {
  color: var(--editor-ink);
  font-size: .75rem;
  font-weight: 800;
  line-height: 1.35;
}

.page-builder .settings-switch-copy small,
.page-builder .settings-inline-control small {
  margin-top: 3px;
  color: var(--editor-muted);
  font-size: .625rem;
  line-height: 1.4;
}

.page-builder .settings-switch-row input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.page-builder .settings-switch-control {
  position: relative;
  width: 38px;
  height: 22px;
  display: block;
  border-radius: 999px;
  background: #c7cad3;
  transition: background-color .18s ease;
}

.page-builder .settings-switch-control::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(23, 21, 31, .22);
  transition: transform .18s cubic-bezier(.16, 1, .3, 1);
}

.page-builder .settings-switch-row input:checked + .settings-switch-control {
  background: var(--editor-violet);
}

.page-builder .settings-switch-row input:checked + .settings-switch-control::after {
  transform: translateX(16px);
}

.page-builder .settings-switch-row input:focus-visible + .settings-switch-control {
  outline: 2px solid var(--editor-violet);
  outline-offset: 3px;
}

.page-builder .settings-inline-control {
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 14px;
}

.page-builder .settings-inline-control > div:first-child {
  min-width: 0;
}

.page-builder .settings-inline-control .align-chips {
  flex: 0 0 auto;
}

.page-builder .design-reset-button:focus-visible,
.page-builder .design-preset-button:focus-visible,
.page-builder .design-fit-button:focus-visible {
  outline: 2px solid var(--editor-violet);
  outline-offset: 2px;
}

@media (max-width: 520px) {
  .page-builder .design-command-bar {
    align-items: flex-start;
  }

  .page-builder .design-save-state {
    max-width: 170px;
  }

  .page-builder .template-tab {
    padding-inline: 6px;
    font-size: .6875rem;
  }

  .page-builder .settings-inline-control {
    align-items: flex-start;
    flex-direction: column;
    padding-block: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-builder .settings-switch-control,
  .page-builder .settings-switch-control::after {
    transition: none;
  }
}

.page-builder .panel-note {
  border: 0;
  border-radius: 8px;
  background: var(--editor-violet-soft);
  color: #433a86;
}

.page-builder .template-tabs {
  gap: 4px;
  padding: 4px;
  border-radius: 9px;
  background: var(--editor-panel);
}

.page-builder .template-tab {
  min-height: 38px;
  border-radius: 7px;
}

.page-builder .template-tab.is-active {
  background: var(--editor-white);
  color: var(--editor-violet-dark);
  box-shadow: 0 2px 5px rgba(23, 21, 31, .1);
}

.page-builder .template-card,
.page-builder .font-picker-btn,
.page-builder .font-option,
.page-builder .align-chip,
.page-builder .btn-mini {
  border-color: var(--editor-line-strong);
  border-radius: 8px;
  box-shadow: none;
}

.page-builder .template-card.is-active,
.page-builder .font-option.is-active,
.page-builder .align-chip.is-active {
  border-color: var(--editor-violet);
  background: var(--editor-violet-soft);
  box-shadow: 0 0 0 2px rgba(91, 75, 231, .12);
}

.page-builder .builder-preview {
  min-width: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: var(--editor-canvas) !important;
}

.page-builder .preview-header {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 0 !important;
  padding: 0 20px;
  border: 0 !important;
  border-bottom: 1px solid rgba(255, 255, 255, .12) !important;
  border-radius: 0 !important;
  background: var(--editor-canvas-raised);
  color: #fff;
}

.page-builder .preview-header-copy {
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.page-builder .preview-header-title {
  color: #fff;
  font-size: .8125rem;
  font-weight: 800;
}

.page-builder .preview-header-meta {
  color: #aaaeb9;
  font-size: .6875rem;
}

.page-builder .zoom-controls,
.page-builder .preview-zoom,
.page-builder #zoomControls {
  position: static;
  z-index: auto;
  justify-content: flex-end;
  gap: 4px;
  padding: 0;
}

.page-builder .preview-header button[data-zoom],
.page-builder .preview-header #zoomLabel {
  min-width: 36px;
  height: 36px;
  border: 1px solid #464954;
  border-radius: 8px;
  background: #32353f;
  color: #fff;
  box-shadow: none;
  backdrop-filter: none;
}

.page-builder .preview-header #zoomLabel {
  min-width: 64px;
  justify-content: center;
}

.page-builder .preview-header button[data-zoom]:hover {
  background: #3c3f49;
}

body.page-builder #previewBody {
  flex: 1;
  min-height: 0;
  margin: 0 !important;
  padding: 32px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: var(--editor-canvas) !important;
  background-image: none !important;
  transition: box-shadow 180ms var(--editor-ease);
}

body.page-builder #previewBody.is-preview-highlighted {
  box-shadow: inset 0 0 0 2px var(--editor-violet);
}

.page-builder .preview-inner {
  background: transparent !important;
}

.page-builder #previewPages .page-card {
  gap: 10px;
}

.page-builder .page-topline {
  color: #d5d7de;
}

.page-builder .page-pill {
  min-height: 26px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px;
  background: #2b2e37;
  color: #e6e7eb;
  box-shadow: none;
  font-size: .6875rem;
  font-weight: 700;
}

.page-builder .preview-frame-wrap,
.page-builder #previewFrameWrap {
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 3px;
  box-shadow: 0 6px 8px rgba(0, 0, 0, .28);
}

.page-builder .editor-mobile-nav {
  display: none;
}

@media (max-width: 1180px) and (min-width: 901px) {
  .page-builder .builder-shell {
    grid-template-columns: 488px minmax(0, 1fr);
  }

  .page-builder .builder-panel {
    grid-template-columns: 76px minmax(0, 1fr);
  }

  .page-builder .editor-guided-footer {
    left: 76px;
  }

  .page-builder .side-tabs {
    padding-right: 6px;
    padding-left: 6px;
  }

  .page-builder .editor-header-progress {
    display: none;
  }
}

@media (max-width: 1100px) {
  .page-builder {
    min-height: 100dvh;
  }

  .page-builder header {
    height: 64px;
  }

  .page-builder .container-full {
    padding: 0 14px;
  }

  .page-builder .logo {
    min-width: auto;
  }

  .page-builder .logo-sub,
  .page-builder .editor-header-progress,
  .page-builder .save-status {
    display: none;
  }

  .page-builder .resume-name-wrap {
    margin-left: 4px;
    padding-left: 12px;
  }

  .page-builder .resume-name-input {
    width: min(34vw, 180px);
  }

  .page-builder #builder.builder-fullbleed {
    height: calc(100dvh - 64px);
    min-height: 560px;
    padding: 0;
    background: var(--editor-white);
  }

  .page-builder .builder-shell {
    height: 100%;
    min-height: 0;
    display: block;
    padding: 0 0 64px;
    background: var(--editor-white);
  }

  .page-builder .builder-panel {
    width: 100%;
    height: 100%;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr);
    border: 0;
  }

  .page-builder .side-tabs {
    display: none;
  }

  .page-builder .panel-scroll {
    grid-column: 1;
    grid-row: 1;
    height: 100%;
    padding-bottom: 88px;
    scrollbar-gutter: auto;
  }

  .page-builder .editor-panel-intro {
    padding: 22px 20px 18px;
  }

  .page-builder .editor-section-nav {
    display: none;
  }

  .page-builder .panel-section-header {
    padding-right: 20px;
    padding-left: 20px;
  }

  .page-builder .panel-section-body {
    padding-right: 20px;
    padding-left: 20px;
  }

  .page-builder .editor-guided-footer {
    right: 0;
    bottom: 0;
    left: 0;
  }

  .page-builder .builder-preview {
    width: 100%;
    height: 100%;
    display: none;
    border-radius: 0;
  }

  .page-builder.is-mobile-preview .builder-panel,
  body.page-builder.is-mobile-preview .builder-panel {
    display: none !important;
  }

  .page-builder.is-mobile-preview .builder-preview,
  body.page-builder.is-mobile-preview .builder-preview {
    display: flex !important;
  }

  .page-builder .editor-mobile-nav {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 30;
    height: 64px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 4px max(8px, env(safe-area-inset-right)) max(4px, env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left));
    border-top: 1px solid var(--editor-line);
    background: rgba(255, 255, 255, .98);
  }

  .page-builder .editor-mobile-nav button {
    min-width: 0;
    min-height: 54px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--editor-muted);
    font-size: .6875rem;
    font-weight: 700;
  }

  .page-builder .editor-mobile-nav button > span:first-child {
    width: 20px;
    height: 20px;
  }

  .page-builder .editor-mobile-nav svg {
    width: 20px;
    height: 20px;
  }

  .page-builder .editor-mobile-nav button.is-active {
    background: var(--editor-violet-soft);
    color: var(--editor-violet-dark);
  }

  .page-builder .editor-mobile-nav button:focus-visible {
    outline: 2px solid var(--editor-violet);
    outline-offset: -2px;
  }

  .page-builder .preview-header {
    min-height: 54px;
    padding: 0 14px;
  }

  .page-builder .preview-header-meta {
    display: none;
  }

  body.page-builder #previewBody {
    padding: 20px 14px 32px !important;
  }
}

/* Repeatable education, project, skill, language, and certification entries. */
body.page-builder .repeatable-group-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 3px 0 11px;
  padding-bottom: 9px;
  border-bottom: 1px solid #e7e7ed;
}

body.page-builder .repeatable-group-heading:not(:first-child) {
  margin-top: 24px;
}

body.page-builder .repeatable-group-heading strong {
  color: var(--editor-ink);
  font-size: .82rem;
}

body.page-builder .repeatable-group-heading span {
  max-width: 38ch;
  color: var(--editor-muted);
  font-size: .66rem;
  line-height: 1.4;
  text-align: right;
}

body.page-builder .repeatable-line-list {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

body.page-builder .repeatable-line-item {
  min-width: 0;
  min-height: 48px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 6px 7px 6px 10px;
  border: 1px solid #dedfe6;
  border-radius: 9px;
  background: #fafafd;
}

body.page-builder .repeatable-line-order {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--editor-violet-soft);
  color: var(--editor-violet-dark);
  font-size: .68rem;
  font-weight: 850;
}

body.page-builder .repeatable-line-input {
  min-width: 0;
  min-height: 34px !important;
  padding: 6px 8px !important;
  border-color: transparent !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.page-builder .repeatable-line-input:hover,
body.page-builder .repeatable-line-input:focus {
  border-color: #d4d1e6 !important;
  background: #fff !important;
}

body.page-builder .repeatable-line-remove {
  min-height: 32px;
  padding: 0 8px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #8d3c49;
  font-size: .66rem;
  font-weight: 750;
}

body.page-builder .repeatable-line-remove:hover {
  background: #fff0f2;
  color: #9f2437;
}

body.page-builder .repeatable-line-remove:focus-visible {
  outline: 2px solid var(--editor-violet);
  outline-offset: 1px;
}

body.page-builder .compact-add-entry {
  min-height: 40px;
  margin-top: 9px;
}

@media (max-width: 520px) {
  body.page-builder .repeatable-group-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }

  body.page-builder .repeatable-group-heading span {
    max-width: 42ch;
    text-align: left;
  }

  body.page-builder .repeatable-line-item {
    grid-template-columns: 26px minmax(0, 1fr) auto;
    gap: 6px;
    padding-left: 7px;
  }

  body.page-builder .repeatable-line-remove {
    padding-inline: 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.page-builder .repeatable-line-remove,
  body.page-builder .repeatable-line-input {
    transition-duration: .01ms !important;
  }
}

/* =========================================================
   Resume section manager
   ========================================================= */

body.page-builder .editor-section-nav.is-single-section::before {
  display: none;
}

body.page-builder .editor-section-manager {
  margin: 16px 24px 0;
  overflow: hidden;
  border: 1px solid #dcdde5;
  border-radius: 12px;
  background: #fff;
}

body.page-builder .section-manager-toggle {
  width: 100%;
  min-height: 54px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 12px;
  border: 0;
  border-radius: 0;
  background: #fff;
  color: var(--editor-ink);
  text-align: left;
  transition: background-color 160ms var(--editor-ease);
}

body.page-builder .section-manager-toggle:hover {
  background: #f8f8fb;
}

body.page-builder .section-manager-toggle:focus-visible,
body.page-builder .section-manager-action:focus-visible {
  outline: 2px solid var(--editor-violet);
  outline-offset: -2px;
}

body.page-builder .section-manager-toggle-icon {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--editor-violet-soft);
  color: var(--editor-violet-dark);
}

body.page-builder .section-manager-toggle-icon svg,
body.page-builder .section-manager-chevron {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

body.page-builder .section-manager-toggle-copy {
  min-width: 0;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 2px;
}

body.page-builder .section-manager-toggle-copy strong {
  font-size: .8rem;
  line-height: 1.25;
}

body.page-builder .section-manager-toggle-copy small {
  color: var(--editor-muted);
  font-size: .68rem;
  line-height: 1.3;
}

body.page-builder .section-manager-chevron {
  flex: 0 0 auto;
  color: #777480;
  transition: transform 180ms var(--editor-ease);
}

body.page-builder .section-manager-toggle.is-open .section-manager-chevron {
  transform: rotate(180deg);
}

body.page-builder .section-manager-panel {
  border-top: 1px solid var(--editor-line);
}

body.page-builder .section-manager-panel[hidden] {
  display: none !important;
}

body.page-builder .section-manager-heading {
  padding: 15px 16px 12px;
}

body.page-builder .section-manager-heading strong {
  display: block;
  color: var(--editor-ink);
  font-size: .82rem;
}

body.page-builder .section-manager-heading p {
  max-width: 54ch;
  margin: 4px 0 0;
  color: var(--editor-muted);
  font-size: .7rem;
  line-height: 1.45;
}

body.page-builder .section-manager-list {
  border-top: 1px solid #ececf1;
}

body.page-builder .section-manager-row {
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 14px 10px 16px;
  border-bottom: 1px solid #ececf1;
  transition: background-color 160ms var(--editor-ease);
}

body.page-builder .section-manager-row > span:first-child {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

body.page-builder .section-manager-row strong {
  color: var(--editor-ink);
  font-size: .76rem;
  line-height: 1.35;
}

body.page-builder .section-manager-row small {
  color: var(--editor-muted);
  font-size: .65rem;
  line-height: 1.35;
}

body.page-builder .section-manager-row.is-removed {
  background: #f8f8fa;
}

body.page-builder .section-manager-row.is-removed strong,
body.page-builder .section-manager-row.is-removed small {
  color: #777480;
}

body.page-builder .section-manager-required {
  flex: 0 0 auto;
  padding: 5px 8px;
  border-radius: 999px;
  background: #eff7f3;
  color: #136c4d;
  font-size: .62rem;
  font-weight: 800;
}

body.page-builder .section-manager-action {
  min-width: 78px;
  min-height: 34px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 10px;
  border: 1px solid #d8d9e0;
  border-radius: 8px;
  background: #fff;
  color: #5e5b68;
  font-size: .68rem;
  font-weight: 800;
  transition: background-color 160ms var(--editor-ease), border-color 160ms var(--editor-ease), color 160ms var(--editor-ease), transform 160ms var(--editor-ease);
}

body.page-builder .section-manager-action:hover {
  border-color: #c9c5e5;
  background: #f5f3ff;
  color: var(--editor-violet-dark);
}

body.page-builder .section-manager-action:active {
  transform: scale(.97);
}

body.page-builder .section-manager-row.is-removed .section-manager-action {
  border-color: var(--editor-violet);
  background: var(--editor-violet);
  color: #fff;
}

body.page-builder .section-manager-row.is-removed .section-manager-action:hover {
  border-color: var(--editor-violet-dark);
  background: var(--editor-violet-dark);
}

body.page-builder .section-manager-action-icon {
  width: 14px;
  text-align: center;
  font-size: .9rem;
  line-height: 1;
}

body.page-builder .section-manager-feedback {
  min-height: 17px;
  margin: 0;
  padding: 8px 16px 10px;
  color: #4f4c58;
  font-size: .66rem;
  line-height: 1.35;
}

body.page-builder .editor-section-manager + .panel-section,
body.page-builder .panel-scroll[data-panel="edit"] .panel-section {
  margin-top: 16px;
}

@media (max-width: 1100px) {
  body.page-builder .editor-section-manager {
    margin: 14px 16px 0;
  }

  body.page-builder .section-manager-heading {
    padding-inline: 14px;
  }

  body.page-builder .section-manager-row {
    padding-inline: 14px 12px;
  }
}

@media (max-width: 420px) {
  body.page-builder .section-manager-row {
    gap: 10px;
  }

  body.page-builder .section-manager-row small {
    max-width: 24ch;
  }

  body.page-builder .section-manager-action {
    min-width: 70px;
    padding-inline: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.page-builder .section-manager-toggle,
  body.page-builder .section-manager-chevron,
  body.page-builder .section-manager-row,
  body.page-builder .section-manager-action {
    transition-duration: .01ms !important;
  }
}

@media (max-width: 560px) {
  .page-builder .logo-main {
    display: none;
  }

  .page-builder .logo-mark {
    width: 36px;
    height: 36px;
  }

  .page-builder .resume-name-wrap {
    border-left: 0;
    padding-left: 0;
  }

  .page-builder .resume-name-input {
    width: min(42vw, 156px);
    padding-right: 8px;
    padding-left: 8px;
  }

  .page-builder .btn-download-main {
    min-width: 88px;
    padding: 0 12px;
  }

  .page-builder .field-row,
  .page-builder .date-row {
    grid-template-columns: 1fr;
  }

  .page-builder .editor-panel-intro {
    padding-right: 16px;
    padding-left: 16px;
  }

  .page-builder .panel-section-header,
  .page-builder .panel-section-body {
    padding-right: 16px;
    padding-left: 16px;
  }

  .page-builder .editor-guided-footer {
    padding-right: 12px;
    padding-left: 12px;
  }

  .page-builder .editor-secondary-action {
    width: 48px;
    padding: 0;
  }

  .page-builder .editor-secondary-action span:not([aria-hidden="true"]) {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }
}

@media (pointer: coarse) {
  .page-builder .side-tab-btn,
  .page-builder .editor-section-nav button,
  .page-builder .panel-section-header,
  .page-builder .template-tab,
  .page-builder .editor-mobile-nav button {
    min-height: 44px;
  }
}

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

/* Builder workflow hardening: document scrolling and progressive entry editing. */
body.page-builder {
  overflow-y: auto !important;
}

body.page-builder .page-wrap,
body.page-builder main {
  overflow: visible;
}

body.page-builder header {
  position: relative;
  top: auto;
}

body.page-builder #why {
  scroll-margin-top: 24px;
}

body.page-builder .builder-more-link {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-left: auto;
  margin-right: 14px;
  padding: 0 10px;
  border-radius: 8px;
  color: #d8dae1;
  font-size: .7rem;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 150ms var(--editor-ease), color 150ms var(--editor-ease), transform 150ms var(--editor-ease);
}

body.page-builder .builder-more-link svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

body.page-builder .builder-more-link:hover {
  background: #3a3c46;
  color: #fff;
  transform: translateY(-1px);
}

body.page-builder .builder-more-link:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

body.page-builder .resume-entry-card {
  margin: 0 0 12px;
  padding: 0;
  overflow: hidden;
  border: 1px solid #dedfe6;
  border-radius: 11px;
  background: #fff;
}

body.page-builder .resume-entry-toolbar {
  min-height: 58px;
  display: flex;
  align-items: stretch;
  background: #fafafd;
}

body.page-builder .resume-entry-toggle {
  min-width: 0;
  flex: 1;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 10px;
  padding: 9px 10px 9px 12px;
  border: 0;
  background: transparent;
  color: var(--editor-ink);
  text-align: left;
}

body.page-builder .resume-entry-toggle:hover {
  background: #f3f2fb;
}

body.page-builder .resume-entry-toggle:focus-visible,
body.page-builder .resume-entry-remove:focus-visible,
body.page-builder .editor-add-entry:focus-visible,
body.page-builder .optional-panel-toggle:focus-visible {
  outline: 2px solid var(--editor-violet);
  outline-offset: -2px;
}

body.page-builder .resume-entry-order {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--editor-violet-soft);
  color: var(--editor-violet-dark);
  font-size: .72rem;
  font-weight: 850;
  font-variant-numeric: tabular-nums;
}

body.page-builder .resume-entry-summary {
  min-width: 0;
  display: grid;
  gap: 2px;
}

body.page-builder .resume-entry-summary strong,
body.page-builder .resume-entry-summary small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.page-builder .resume-entry-summary strong {
  font-size: .78rem;
  font-weight: 800;
}

body.page-builder .resume-entry-summary small {
  color: var(--editor-muted);
  font-size: .68rem;
}

body.page-builder .resume-entry-toggle svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  color: #777480;
  transition: transform 180ms var(--editor-ease);
}

body.page-builder .resume-entry-card.is-entry-collapsed .resume-entry-toggle svg {
  transform: rotate(-90deg);
}

body.page-builder .resume-entry-remove {
  align-self: center;
  min-height: 34px;
  margin-right: 10px;
  padding: 0 9px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #8d3c49;
  font-size: .68rem;
  font-weight: 750;
}

body.page-builder .resume-entry-remove:hover {
  background: #fff0f2;
  color: #9f2437;
}

body.page-builder .resume-entry-content {
  padding: 18px 16px 4px;
  border-top: 1px solid #e6e6ec;
}

body.page-builder .resume-entry-card.is-entry-collapsed .resume-entry-content {
  display: none;
}

body.page-builder .resume-entry-content > .field-label-row:first-child {
  display: none;
}

body.page-builder .current-role-toggle {
  width: fit-content;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: -3px 0 14px;
  color: var(--editor-muted);
  font-size: .72rem;
  font-weight: 650;
}

body.page-builder .current-role-toggle input {
  width: 16px;
  height: 16px;
  accent-color: var(--editor-violet);
}

body.page-builder .editor-add-entry {
  width: 100%;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 2px 0 12px;
  border: 1px dashed #aaa6c6;
  border-radius: 9px;
  background: #faf9ff;
  color: var(--editor-violet-dark);
  font-size: .74rem;
  font-weight: 800;
  transition: border-color 150ms var(--editor-ease), background-color 150ms var(--editor-ease), transform 150ms var(--editor-ease);
}

body.page-builder .editor-add-entry > span:first-child {
  font-size: 1.05rem;
  line-height: 1;
}

body.page-builder .editor-add-entry:not(:disabled):hover {
  border-color: var(--editor-violet);
  background: var(--editor-violet-soft);
  transform: translateY(-1px);
}

body.page-builder .editor-add-entry:disabled {
  cursor: default;
  border-style: solid;
  border-color: #e0e1e7;
  background: #f5f5f7;
  color: #85828d;
}

body.page-builder .optional-panel-toggle {
  width: 100%;
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  padding: 10px 12px;
  border: 1px solid #dedfe6;
  border-radius: 10px;
  background: #fafafd;
  color: var(--editor-ink);
  text-align: left;
}

body.page-builder .optional-panel-toggle:hover {
  border-color: #bbb8cf;
  background: #f7f6fd;
}

body.page-builder .optional-panel-toggle > span:first-child {
  min-width: 0;
  display: grid;
  gap: 2px;
}

body.page-builder .optional-panel-toggle strong {
  font-size: .78rem;
}

body.page-builder .optional-panel-toggle small {
  color: var(--editor-muted);
  font-size: .68rem;
}

body.page-builder .optional-panel-state {
  flex: 0 0 auto;
  color: var(--editor-violet-dark);
  font-size: .7rem;
  font-weight: 800;
}

body.page-builder .optional-skill-ratings {
  margin-bottom: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--editor-line);
}

body.page-builder .optional-skill-ratings[hidden] {
  display: none !important;
}

body.page-builder .skill-rating-row {
  grid-template-columns: minmax(130px, 1fr) minmax(190px, 1fr);
  gap: 10px;
  margin-bottom: 9px;
}

body.page-builder .skill-rating-controls {
  grid-template-columns: minmax(100px, 1fr) 64px;
  gap: 8px;
}

body.page-builder .skill-rating-controls input[type="number"] {
  min-width: 64px;
  padding-inline: 8px;
}

@media (max-width: 1100px) {
  body.page-builder .builder-more-link {
    display: none;
  }
}

@media (max-width: 560px) {
  body.page-builder .resume-entry-toggle {
    grid-template-columns: 28px minmax(0, 1fr) 18px;
    gap: 8px;
  }

  body.page-builder .resume-entry-remove {
    margin-right: 6px;
    padding-inline: 7px;
  }

  body.page-builder .skill-rating-row {
    grid-template-columns: 1fr;
  }
}

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

body.page-home,
body.page-builder,
body.page-ats,
body.page-support {
  background: var(--pa-page);
  color: var(--pa-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.page-home *,
body.page-builder *,
body.page-ats *,
body.page-support * {
  scrollbar-color: #b9c2d0 transparent;
}

body.page-home h1,
body.page-home h2,
body.page-home h3,
body.page-builder h1,
body.page-builder h2,
body.page-builder h3,
body.page-ats h1,
body.page-ats h2,
body.page-ats h3,
body.page-support h1,
body.page-support h2,
body.page-support h3 {
  color: var(--pa-ink);
  text-wrap: balance;
}

body.page-home p,
body.page-ats p,
body.page-support p {
  text-wrap: pretty;
}

body.page-home :focus-visible,
body.page-builder :focus-visible,
body.page-ats :focus-visible,
body.page-support :focus-visible {
  outline: 3px solid rgba(79, 70, 229, .28);
  outline-offset: 3px;
}

/* Shared marketing navigation */
.page-home header,
.page-ats header,
.page-support header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--pa-line);
  box-shadow: none;
  backdrop-filter: blur(12px);
}

.page-home .container,
.page-ats .container,
.page-support .container {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.page-home .nav-bar,
.page-ats .nav-bar,
.page-support .nav-bar {
  min-height: 72px;
}

.page-home .logo,
.page-ats .logo,
.page-support .logo {
  gap: 11px;
}

.page-home .logo-mark,
.page-ats .logo-mark,
.page-support .logo-mark {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 3px 7px rgba(17, 24, 39, .12);
}

.page-home .logo-text-main,
.page-home .logo-main,
.page-ats .logo-main,
.page-support .logo-text-main,
.page-support .logo-main {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -.02em;
}

.page-home .logo-text-sub,
.page-home .logo-sub,
.page-ats .logo-sub,
.page-support .logo-text-sub,
.page-support .logo-sub {
  color: var(--pa-muted);
  font-size: 10px;
  font-weight: 600;
}

.page-home .nav-desktop,
.page-ats .nav-desktop,
.page-support .nav-links,
.page-support .nav-desktop {
  gap: 20px;
  color: var(--pa-ink-soft);
  font-size: 13px;
  font-weight: 600;
}

.page-home .nav-links a,
.page-ats .nav-links a,
.page-support .nav-links a {
  padding: 10px 0;
}

.page-home .nav-links a::after,
.page-ats .nav-links a::after,
.page-support .nav-links a::after {
  display: none;
}

.page-home .nav-links a:hover,
.page-ats .nav-links a:hover,
.page-support .nav-links a:hover {
  color: var(--pa-primary);
}

.page-home .nav-divider,
.page-ats .nav-divider,
.page-support .nav-divider {
  background: var(--pa-line);
}

.page-home .btn-primary,
.page-ats .btn-primary,
.page-support .btn-primary,
.page-home .btn-ghost,
.page-ats .btn-ghost,
.page-support .btn-ghost,
.page-ats .btn-soft {
  min-height: 44px;
  padding: 0 18px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 750;
  transition: transform 180ms var(--pa-ease), background-color 180ms var(--pa-ease), border-color 180ms var(--pa-ease), color 180ms var(--pa-ease);
}

.page-home .btn-primary,
.page-ats .btn-primary,
.page-support .btn-primary {
  border: 1px solid var(--pa-primary);
  background: var(--pa-primary);
  color: #fff;
  box-shadow: none;
}

.page-home .btn-primary:hover,
.page-ats .btn-primary:hover,
.page-support .btn-primary:hover {
  background: var(--pa-primary-deep);
  border-color: var(--pa-primary-deep);
  transform: translateY(-1px);
}

.page-home .btn-ghost,
.page-ats .btn-ghost,
.page-support .btn-ghost,
.page-ats .btn-soft {
  border: 1px solid var(--pa-line-strong);
  background: #fff;
  color: var(--pa-ink);
  box-shadow: none;
}

.page-home .btn-ghost:hover,
.page-ats .btn-ghost:hover,
.page-support .btn-ghost:hover,
.page-ats .btn-soft:hover {
  border-color: var(--pa-primary);
  color: var(--pa-primary-deep);
  transform: translateY(-1px);
}

/* Homepage */
.page-home main {
  overflow: hidden;
}

.page-home .section-pad {
  padding: 88px 0;
}

.page-home #home.section-pad {
  padding-top: 32px;
  padding-bottom: 0;
}

.page-home .hero {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(470px, 1.08fr);
  gap: 48px;
  align-items: center;
  padding: 56px;
  border-radius: var(--pa-radius-lg);
  background: #edf2ff;
}

.page-home .hero-copy {
  padding: 0;
}

.page-home .hero-pills {
  margin-bottom: 22px;
  gap: 8px;
}

.page-home .hero-pill,
.page-home .hero-note {
  min-height: 30px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  background: #fff;
  color: var(--pa-primary-deep);
}

.page-home .hero-pill:nth-child(2) {
  display: none;
}

.page-home .hero-note {
  background: transparent;
  color: var(--pa-ink-soft);
}

.page-home .hero-title {
  max-width: 12ch;
  margin: 0;
  font-size: clamp(2.9rem, 4.8vw, 4.7rem);
  line-height: .99;
  letter-spacing: -.04em;
  font-weight: 800;
}

.page-home .hero-title .grad {
  color: var(--pa-primary);
  background: none;
  -webkit-text-fill-color: currentColor;
}

.page-home .hero-subtitle {
  max-width: 57ch;
  margin-top: 24px;
  color: var(--pa-ink-soft);
  font-size: 17px;
  line-height: 1.72;
}

.page-home .hero-actions {
  margin-top: 28px;
  gap: 10px;
}

.page-home .hero-actions .btn-primary,
.page-home .hero-actions .btn-ghost {
  min-height: 50px;
  padding-inline: 22px;
}

.page-home .hero-meta {
  margin-top: 22px;
  gap: 12px 16px;
  color: var(--pa-muted);
  font-size: 12px;
  line-height: 1.4;
}

.page-home .hero-meta .meta-chip,
.page-home .hero-meta .meta-dot {
  display: none;
}

.page-home .meta-check {
  white-space: nowrap;
}

.page-home .hero-card {
  padding: 14px;
  border: 0;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 6px 8px rgba(35, 43, 74, .12);
  transform: rotate(.35deg);
}

.page-home .hero-card::before {
  display: none;
}

.page-home .hero-card-top {
  padding: 3px 4px 13px;
}

.page-home .hero-card-title {
  color: var(--pa-ink);
  font-size: 13px;
  font-weight: 800;
}

.page-home .hero-card-badge {
  border: 0;
  background: var(--pa-primary-soft);
  color: var(--pa-primary-deep);
}

.page-home .builder-mock {
  min-height: 400px;
  grid-template-columns: 132px minmax(0, 1fr);
  border: 1px solid var(--pa-line);
  border-radius: 10px;
  background: #eef1f6;
  overflow: hidden;
}

.page-home .mock-sidebar {
  padding: 10px;
  background: #fff;
  border-right: 1px solid var(--pa-line);
}

.page-home .mock-tabs {
  background: var(--pa-surface-alt);
  border: 0;
}

.page-home .mock-tab.active {
  background: #fff;
  color: var(--pa-primary-deep);
}

.page-home .mock-block {
  border: 0;
  border-top: 1px solid var(--pa-line);
  border-radius: 0;
  padding: 12px 2px;
  background: transparent;
}

.page-home .mock-preview {
  padding: 20px;
}

.page-home .resume-sheet {
  border: 0;
  border-radius: 2px;
  box-shadow: 0 4px 8px rgba(17, 24, 39, .12);
}

.page-home .sheet-name,
.page-home .sheet-kicker {
  color: var(--pa-ink);
}

.page-home .sheet-kicker {
  border-color: var(--pa-primary);
}

.page-home .sheet-bar {
  background: #dfe5ed;
}

.page-home .export-strip {
  padding: 12px 2px 2px;
  gap: 6px;
}

.page-home .export-chip {
  border: 0;
  background: var(--pa-surface-alt);
  color: var(--pa-ink-soft);
}

.page-home .trust-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-top: 24px;
  padding: 26px 30px;
  border-radius: var(--pa-radius-md);
  background: #121a38;
}

.page-home .trust-card {
  min-height: auto;
  padding: 2px 24px;
  border: 0;
  border-right: 1px solid rgba(255, 255, 255, .15);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.page-home .trust-card:last-child {
  border-right: 0;
}

.page-home .trust-title {
  margin-bottom: 5px;
  color: #fff;
  font-size: 14px;
}

.page-home .trust-text {
  color: #cbd4ee;
  font-size: 12px;
  line-height: 1.55;
}

.page-home .section-header {
  max-width: 780px;
  margin-bottom: 36px;
}

.page-home .section-kicker {
  display: block;
  width: fit-content;
  margin-bottom: 12px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--pa-primary);
  font-size: 14px;
  font-weight: 750;
  letter-spacing: 0;
  text-transform: none;
}

.page-home .section-title {
  max-width: 18ch;
  font-size: clamp(2.1rem, 3.6vw, 3.6rem);
  line-height: 1.06;
  letter-spacing: -.035em;
}

.page-home .section-desc,
.page-home .section-header > p {
  max-width: 66ch;
  margin-top: 16px;
  color: var(--pa-muted);
  font-size: 16px;
  line-height: 1.75;
}

.page-home .tool-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
}

.page-home .tool-card {
  grid-column: span 6;
  padding: 30px;
  border: 1px solid var(--pa-line);
  border-radius: var(--pa-radius-md);
  background: #fff;
  box-shadow: none;
}

.page-home .tool-card:first-child {
  grid-row: span 2;
  background: #151d3b;
  border-color: #151d3b;
}

.page-home .tool-card:nth-child(3) {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: start;
  column-gap: 18px;
}

.page-home .tool-card:first-child h3,
.page-home .tool-card:first-child p,
.page-home .tool-card:first-child .tool-points span {
  color: #fff;
}

.page-home .tool-card:first-child p,
.page-home .tool-card:first-child .tool-points span {
  color: #ccd4ee;
}

.page-home .tool-card:hover {
  transform: translateY(-2px);
  border-color: #aeb8c8;
  box-shadow: none;
}

.page-home .tool-card:first-child:hover {
  border-color: #151d3b;
}

.page-home .tool-icon {
  width: auto;
  height: auto;
  margin-bottom: 24px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--pa-primary);
  font-size: 13px;
  font-weight: 800;
}

.page-home .tool-card:first-child .tool-icon {
  color: #aeb7ff;
}

.page-home .tool-title {
  font-size: 25px;
  letter-spacing: -.02em;
}

.page-home .tool-text,
.page-home .tool-points span {
  color: var(--pa-muted);
}

.page-home .tool-points span::before {
  background: var(--pa-primary);
}

.page-home .feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 56px;
}

.page-home .feature-card {
  padding: 24px 0 26px;
  border: 0;
  border-top: 1px solid var(--pa-line-strong);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.page-home .feature-card h3 {
  margin-bottom: 8px;
  font-size: 18px;
}

.page-home .feature-card p {
  max-width: 54ch;
  color: var(--pa-muted);
  font-size: 14px;
  line-height: 1.7;
}

.page-home .steps-grid {
  gap: 48px;
}

.page-home .steps-list {
  gap: 0;
}

.page-home .step-card {
  padding: 24px 0;
  border: 0;
  border-bottom: 1px solid var(--pa-line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.page-home .step-num {
  width: 34px;
  height: 34px;
  border: 1px solid var(--pa-primary);
  background: transparent;
  color: var(--pa-primary);
  box-shadow: none;
}

.page-home .step-tag,
.page-home .format-chip {
  border: 0;
  background: var(--pa-primary-soft);
  color: var(--pa-primary-deep);
}

.page-home .how-side,
.page-home .format-band {
  border: 0;
  border-radius: var(--pa-radius-md);
  background: var(--pa-surface-alt);
  box-shadow: none;
}

.page-home .how-side {
  position: sticky;
  top: 96px;
  padding: 30px;
}

.page-home .mini-row {
  border-color: #d6dce6;
}

.page-home .format-band {
  padding: 40px;
}

.page-home .faq-wrap {
  border-top: 1px solid var(--pa-line-strong);
}

.page-home .faq-item {
  border: 0;
  border-bottom: 1px solid var(--pa-line-strong);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.page-home .faq-item summary {
  padding: 22px 0;
}

.page-home .faq-a {
  max-width: 72ch;
  padding: 0 0 22px;
  color: var(--pa-muted);
}

.page-home .cta-band {
  padding: 48px;
  border: 0;
  border-radius: var(--pa-radius-lg);
  background: #121a38;
  box-shadow: none;
}

.page-home .cta-band h3,
.page-home .cta-band p {
  color: #fff;
}

.page-home .cta-band p {
  color: #cbd4ee;
}

.page-home footer,
.page-ats .footer,
.page-support footer {
  border-top: 1px solid var(--pa-line);
  background: #fff;
}

/* Resume builder workspace */
.page-builder {
  --primary: var(--pa-primary);
  --primary-dark: var(--pa-primary-deep);
  --text: var(--pa-ink);
  --muted: var(--pa-muted);
  --border: var(--pa-line);
  --surface: #fff;
  background: #e9edf4;
}

.page-builder header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--pa-line);
  background: rgba(255, 255, 255, .97);
  box-shadow: none;
  backdrop-filter: blur(12px);
}

.page-builder .container-full {
  padding-inline: 20px;
}

.page-builder .nav-bar {
  min-height: 64px;
}

.page-builder .logo-mark {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  box-shadow: 0 3px 7px rgba(17, 24, 39, .12);
}

.page-builder .resume-name-wrap {
  margin-left: 8px;
  padding-left: 18px;
  border-left: 1px solid var(--pa-line);
}

.page-builder .resume-name-input {
  border: 0;
  background: transparent;
  font-weight: 700;
}

.page-builder .save-status {
  color: var(--pa-success);
  font-weight: 700;
}

.page-builder .btn-download-main {
  min-height: 42px;
  padding: 0 17px;
  border: 1px solid var(--pa-primary);
  border-radius: 9px;
  background: var(--pa-primary);
  box-shadow: none;
}

.page-builder .download-menu {
  top: calc(100% + 8px);
  min-width: 210px;
  padding: 7px;
  border: 1px solid var(--pa-line);
  border-radius: 10px;
  box-shadow: 0 6px 8px rgba(17, 24, 39, .12);
}

.page-builder .download-menu button {
  border-radius: 7px;
}

.page-builder #builder.builder-fullbleed {
  padding: 14px;
  background: #e9edf4;
}

.page-builder .builder-shell {
  max-width: 1640px;
  min-height: calc(100vh - 92px);
  margin: 0 auto;
  grid-template-columns: minmax(360px, 410px) minmax(0, 1fr);
  gap: 12px;
  background: transparent;
}

.page-builder .builder-panel,
.page-builder .builder-preview {
  border: 0;
  border-radius: var(--pa-radius-md);
  overflow: hidden;
  box-shadow: none;
}

.page-builder .builder-panel {
  background: #fff;
}

.page-builder .builder-preview {
  background: #dfe4ec;
}

.page-builder .side-tabs {
  margin: 0;
  padding: 14px 14px 0;
  border-bottom: 1px solid var(--pa-line);
}

.page-builder .side-tabs-inner {
  width: 100%;
  padding: 3px;
  border: 0;
  border-radius: 9px;
  background: var(--pa-surface-alt);
}

.page-builder .side-tab-btn {
  min-height: 38px;
  border-radius: 7px;
  color: var(--pa-muted);
  font-weight: 750;
}

.page-builder .side-tab-btn.is-active {
  background: #fff;
  color: var(--pa-ink);
  box-shadow: 0 2px 5px rgba(17, 24, 39, .1);
}

.page-builder .panel-scroll {
  padding: 14px;
}

.page-builder .panel-section {
  margin-bottom: 10px;
  border: 1px solid var(--pa-line);
  border-radius: 10px;
  background: #fff;
  box-shadow: none;
}

.page-builder .panel-section-header {
  min-height: 48px;
  padding: 0 14px;
}

.page-builder .panel-section-title {
  font-size: 13px;
  font-weight: 800;
}

.page-builder .panel-section-body {
  padding: 4px 14px 16px;
}

.page-builder .field-label,
.page-builder label {
  color: var(--pa-ink-soft);
  font-weight: 700;
}

.page-builder .field-input,
.page-builder .field-textarea,
.page-builder select,
.page-builder input[type="text"],
.page-builder input[type="email"],
.page-builder input[type="date"] {
  border: 1px solid var(--pa-line-strong);
  border-radius: 8px;
  background: #fff;
  color: var(--pa-ink);
  box-shadow: none;
}

.page-builder .field-input:focus,
.page-builder .field-textarea:focus,
.page-builder select:focus,
.page-builder input:focus {
  border-color: var(--pa-primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, .13);
}

.page-builder .panel-note {
  border: 0;
  border-radius: 8px;
  background: var(--pa-primary-soft);
  color: var(--pa-primary-deep);
}

.page-builder .preview-header {
  min-height: 56px;
  padding: 0 16px;
  border-bottom: 1px solid #cbd3df;
  background: #f7f8fb;
}

.page-builder .preview-body {
  background: #dfe4ec;
}

.page-builder .page-card {
  border-radius: 4px;
  box-shadow: 0 6px 8px rgba(17, 24, 39, .15);
}

.page-builder .template-card,
.page-builder .font-option,
.page-builder .subcard,
.page-builder .color-chip {
  border-radius: 9px;
}

.page-builder .template-card.is-active {
  border-color: var(--pa-primary);
  box-shadow: 0 0 0 2px rgba(79, 70, 229, .12);
}

.page-builder .info-section,
.page-builder .faq-section,
.page-builder .cta-section {
  max-width: 1080px;
}

.page-builder main > .container {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
  padding: 72px 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.page-builder .info-section {
  margin: 0;
  padding: 30px;
  border: 1px solid var(--pa-line);
  border-radius: var(--pa-radius-lg);
  background: #fff;
  box-shadow: none;
}

.page-builder .info-section:last-child {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 36px;
}

.page-builder .info-section:last-child h2 {
  grid-column: 1 / -1;
}

.page-builder .info-section h2 {
  margin: 0 0 14px;
  font-size: clamp(1.45rem, 2.5vw, 2rem);
  line-height: 1.15;
  letter-spacing: -.025em;
}

.page-builder .info-section h3 {
  margin: 18px 0 5px;
  font-size: 1rem;
  line-height: 1.3;
}

.page-builder .info-section p {
  margin: 0 0 12px;
  color: var(--pa-muted);
  line-height: 1.7;
}

/* ATS checker */
.page-ats {
  --primary: var(--pa-primary);
  --primary-dark: var(--pa-primary-deep);
  --text: var(--pa-ink);
  --muted: var(--pa-muted);
  --border: var(--pa-line);
  --surface: #fff;
  background: var(--pa-page);
}

.page-ats .hero {
  grid-template-columns: minmax(0, 1.2fr) minmax(310px, .8fr);
  gap: 16px;
  padding: 34px 0 54px;
}

.page-ats .hero-main,
.page-ats .hero-side {
  border: 0;
  border-radius: var(--pa-radius-lg);
  box-shadow: none;
}

.page-ats .hero-main {
  padding: 44px;
  background: #151d3b;
}

.page-ats .hero-main h1,
.page-ats .hero-main p {
  color: #fff;
}

.page-ats .hero-main p {
  max-width: 62ch;
  color: #cbd4ee;
}

.page-ats .hero-main .grad {
  color: #aeb7ff;
  background: none;
  -webkit-text-fill-color: currentColor;
}

.page-ats .hero-kicker,
.page-ats .section-kicker {
  color: #aeb7ff;
  background: transparent;
  border: 0;
  letter-spacing: 0;
  text-transform: none;
}

.page-ats .hero-meta .meta-chip {
  border: 1px solid rgba(255,255,255,.18);
  background: transparent;
  color: #fff;
}

.page-ats .hero-side {
  padding: 30px;
  border: 1px solid var(--pa-line);
  background: #fff;
}

.page-ats .checker-grid {
  grid-template-columns: minmax(330px, 390px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.page-ats .card,
.page-ats .tool-card,
.page-ats .panel,
.page-ats .section-panel {
  border: 1px solid var(--pa-line);
  border-radius: var(--pa-radius-md);
  background: #fff;
  box-shadow: none;
}

.page-ats .tool-card {
  position: sticky;
  top: 88px;
  padding: 20px;
}

.page-ats input[type="text"],
.page-ats textarea {
  border: 1px solid var(--pa-line-strong);
  border-radius: 8px;
  background: #fff;
}

.page-ats input[type="text"]:focus,
.page-ats textarea:focus {
  border-color: var(--pa-primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, .13);
}

.page-ats .upload-box,
.page-ats .helper,
.page-ats .empty,
.page-ats .summary-banner,
.page-ats .insight-notes,
.page-ats .mini-card,
.page-ats .section-item,
.page-ats .suggestion {
  border-radius: 9px;
  box-shadow: none;
}

.page-ats .upload-box {
  border: 1px dashed #aeb8c8;
  background: #f8f9fc;
}

.page-ats .status-chip,
.page-ats .chip,
.page-ats .fit-chip,
.page-ats .priority,
.page-ats .section-badge {
  box-shadow: none;
}

.page-ats .ring::before {
  border-color: var(--pa-line);
}

/* About, contact, privacy, terms */
.page-support {
  --primary: var(--pa-primary);
  --accent: var(--pa-blue);
  --text: var(--pa-ink);
  --muted: var(--pa-muted);
  --border: var(--pa-line);
}

.page-support main {
  min-height: calc(100vh - 220px);
}

.page-support .hero {
  gap: 16px;
  padding: 48px 0 24px;
}

.page-support .hero-copy,
.page-support .hero-card,
.page-support .hero-side {
  padding: 38px;
  border: 0;
  border-radius: var(--pa-radius-lg);
  box-shadow: none;
}

.page-support .hero-copy {
  background: #151d3b;
}

.page-support .hero-copy h1,
.page-support .hero-copy p,
.page-support .hero-copy .eyebrow {
  color: #fff;
}

.page-support .hero-copy p {
  color: #cbd4ee;
}

.page-support .hero-copy .grad {
  color: #aeb7ff;
  background: none;
  -webkit-text-fill-color: currentColor;
}

.page-support .hero-card,
.page-support .hero-side {
  border: 1px solid var(--pa-line);
  background: #fff;
}

.page-support .content-card,
.page-support .card,
.page-support .contact-form,
.page-support .contact-card,
.page-support .policy-card,
.page-support .terms-card {
  border: 1px solid var(--pa-line);
  border-radius: var(--pa-radius-md);
  background: #fff;
  box-shadow: none;
}

.page-support .input,
.page-support .textarea,
.page-support input,
.page-support textarea {
  border: 1px solid var(--pa-line-strong);
  border-radius: 8px;
}

.page-support .input:focus,
.page-support .textarea:focus,
.page-support input:focus,
.page-support textarea:focus {
  border-color: var(--pa-primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, .13);
}

/* Responsive */
@media (max-width: 1100px) {
  .page-home .hero {
    grid-template-columns: 1fr;
  }

  .page-home .hero-copy {
    max-width: 760px;
  }

  .page-home .hero-card {
    transform: none;
  }

  .page-builder .builder-shell {
    grid-template-columns: minmax(330px, 380px) minmax(0, 1fr);
  }
}

@media (max-width: 900px) {
  .page-home .section-pad {
    padding: 68px 0;
  }

  .page-home .hero {
    padding: 40px;
  }

  .page-home .trust-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-home .trust-card:nth-child(2) {
    border-right: 0;
  }

  .page-home .trust-card:nth-child(-n+2) {
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255,255,255,.15);
  }

  .page-home .tool-card {
    grid-column: 1 / -1;
  }

  .page-home .tool-card:nth-child(3) {
    display: block;
  }

  .page-ats .hero,
  .page-ats .checker-grid {
    grid-template-columns: 1fr;
  }

  .page-ats .tool-card {
    position: static;
  }

  .page-builder #builder.builder-fullbleed {
    padding: 10px;
  }

  .page-builder .builder-shell {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .page-builder .builder-panel {
    order: -1;
  }

  .page-builder .builder-preview {
    order: 0;
  }

  .page-builder main > .container,
  .page-builder .info-section:last-child {
    grid-template-columns: 1fr;
  }

  .page-builder .info-section:last-child h2 {
    grid-column: auto;
  }
}

@media (max-width: 640px) {
  .page-home .container,
  .page-ats .container,
  .page-support .container {
    width: min(100% - 28px, 1180px);
  }

  .page-home .nav-bar,
  .page-ats .nav-bar,
  .page-support .nav-bar {
    min-height: 64px;
  }

  .page-home #home.section-pad {
    padding-top: 14px;
  }

  .page-home .hero {
    gap: 34px;
    padding: 28px 20px 22px;
    border-radius: 12px;
  }

  .page-home .hero-title {
    max-width: none;
    font-size: clamp(2.55rem, 13vw, 3.5rem);
    line-height: 1;
  }

  .page-home .hero-subtitle {
    font-size: 15px;
  }

  .page-home .hero-actions {
    display: grid;
  }

  .page-home .hero-actions .btn-primary,
  .page-home .hero-actions .btn-ghost {
    width: 100%;
  }

  .page-home .hero-meta {
    display: grid;
  }

  .page-home .builder-mock {
    min-height: 330px;
    grid-template-columns: 1fr;
  }

  .page-home .mock-sidebar {
    display: none;
  }

  .page-home .mock-preview {
    padding: 12px;
  }

  .page-home .trust-strip {
    grid-template-columns: 1fr;
    padding: 22px;
  }

  .page-home .trust-card,
  .page-home .trust-card:nth-child(2) {
    padding: 15px 0;
    margin: 0;
    border-right: 0;
    border-bottom: 1px solid rgba(255,255,255,.15);
  }

  .page-home .trust-card:last-child {
    border-bottom: 0;
  }

  .page-home .section-pad {
    padding: 56px 0;
  }

  .page-home .section-title {
    font-size: 2.2rem;
  }

  .page-home .tool-card,
  .page-home .format-band,
  .page-home .cta-band {
    padding: 24px;
  }

  .page-home .feature-grid {
    grid-template-columns: 1fr;
  }

  .page-home .how-side {
    position: static;
  }

  .page-ats .hero {
    padding: 20px 0 38px;
  }

  .page-ats .hero-main,
  .page-ats .hero-side {
    padding: 24px;
    border-radius: 12px;
  }

  .page-ats .split-panels,
  .page-ats .results-top {
    grid-template-columns: 1fr;
  }

  .page-builder .container-full {
    padding-inline: 12px;
  }

  .page-builder .resume-name-wrap {
    display: none;
  }

  .page-builder .builder-panel,
  .page-builder .builder-preview {
    border-radius: 10px;
  }

  .page-builder main > .container {
    width: min(100% - 28px, 1120px);
    padding: 48px 0;
  }

  .page-builder .info-section {
    padding: 23px;
  }

  .page-support .hero-copy,
  .page-support .hero-card,
  .page-support .hero-side {
    padding: 26px;
    border-radius: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home *,
  .page-builder *,
  .page-ats *,
  .page-support * {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* Premium product direction ------------------------------------------------ */
:root {
  --pa-premium: #5b44f0;
  --pa-premium-deep: #3f2bc5;
  --pa-premium-ink: #17132f;
  --pa-lilac: #f1efff;
}

.page-home {
  background: #fff;
}

.page-home main {
  padding-top: 16px !important;
  padding-bottom: 0 !important;
}

.page-home .container {
  width: min(1280px, calc(100% - 48px));
}

.page-home header {
  background: rgba(255, 255, 255, .98);
}

.page-home .nav-bar {
  min-height: 76px;
}

.page-home #home.section-pad {
  padding-top: 22px;
}

.page-home .hero {
  min-height: 650px;
  grid-template-columns: minmax(0, .82fr) minmax(560px, 1.18fr);
  gap: 48px !important;
  padding: 66px 64px;
  overflow: hidden;
  background: var(--pa-premium);
  color: #fff;
}

.page-home .hero-title {
  max-width: 11.5ch;
  color: #fff;
  font-size: clamp(3.35rem, 4.7vw, 4.45rem);
  line-height: .98;
  letter-spacing: -.038em;
}

.page-home .hero-subtitle {
  max-width: 48ch;
  margin-top: 26px;
  color: #e9e6ff;
  font-size: 17px;
  line-height: 1.65;
}

.page-home .hero-pills {
  margin-bottom: 28px;
}

.page-home .hero-pill {
  color: var(--pa-premium-deep);
  background: #fff;
}

.page-home .hero-note {
  color: #f2f0ff;
}

.page-home .hero-actions .btn-primary {
  border-color: #fff;
  background: #fff;
  color: var(--pa-premium-deep);
}

.page-home .hero-actions .btn-primary:hover {
  border-color: #fff;
  background: #f4f2ff;
  color: var(--pa-premium-deep);
}

.page-home .hero-actions .btn-ghost {
  border-color: rgba(255, 255, 255, .48);
  background: transparent;
  color: #fff;
}

.page-home .hero-actions .btn-ghost:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, .1);
  color: #fff;
}

.page-home .hero-meta {
  color: #f1efff;
  gap: 0;
}

.page-home .meta-check {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 12px;
  border-right: 1px solid rgba(255, 255, 255, .28);
}

.page-home .meta-check:first-child { padding-left: 0; }
.page-home .meta-check:last-child { border-right: 0; }
.page-home .hero-card { display: none; }

.premium-editor-demo {
  overflow: hidden;
  border-radius: 14px;
  background: #fff;
  color: var(--pa-ink);
  box-shadow: 0 8px 8px rgba(25, 16, 91, .24);
  transform: perspective(1200px) rotateY(-2deg) rotateX(.5deg);
  transform-origin: center right;
}

.demo-topbar {
  min-height: 48px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 14px;
  border-bottom: 1px solid #e6e5ec;
  background: #fff;
  font-size: 11px;
}

.demo-window-dots { display: flex; gap: 5px; }
.demo-window-dots i { width: 7px; height: 7px; border-radius: 50%; background: #d5d3dc; }
.demo-window-dots i:first-child { background: #ff8a7a; }
.demo-window-dots i:nth-child(2) { background: #ffc35b; }
.demo-window-dots i:last-child { background: #64c98d; }
.demo-document-name { font-weight: 750; color: #363143; }
.demo-export { justify-self: end; padding: 7px 12px; border-radius: 7px; background: var(--pa-premium); color: #fff; font-weight: 750; }

.demo-workspace {
  min-height: 455px;
  display: grid;
  grid-template-columns: 164px minmax(0, 1fr);
}

.demo-controls {
  padding: 14px 12px;
  border-right: 1px solid #e5e3ec;
  background: #fbfaff;
}

.demo-control-tabs {
  display: flex;
  gap: 4px;
  padding: 3px;
  border-radius: 7px;
  background: #edebf4;
  font-size: 9px;
  font-weight: 750;
}

.demo-control-tabs span { flex: 1; padding: 6px; border-radius: 5px; text-align: center; color: #777181; }
.demo-control-tabs .is-active { background: #fff; color: var(--pa-premium-deep); }
.demo-control-section { display: grid; gap: 7px; padding: 15px 2px; border-bottom: 1px solid #e7e5ed; }
.demo-control-section strong { font-size: 9px; color: #403b4d; }
.demo-field { height: 23px; border: 1px solid #dedbe7; border-radius: 5px; background: #fff; }
.demo-field.short { width: 72%; }
.demo-field.medium { width: 86%; }
.demo-add { color: var(--pa-premium); font-size: 8px; font-weight: 750; }
.demo-control-section.compact { border-bottom: 0; }
.demo-skill-row { display: flex; gap: 5px; }
.demo-skill-row i { width: 35px; height: 16px; border-radius: 999px; background: #e8e4ff; }

.demo-canvas {
  position: relative;
  display: grid;
  place-items: center;
  padding: 28px 28px 22px;
  overflow: hidden;
  background: #ecebf1;
}

.demo-resume-paper {
  width: min(300px, 92%);
  aspect-ratio: 1 / 1.414;
  padding: 28px 25px;
  background: #fff;
  box-shadow: 0 7px 8px rgba(31, 27, 49, .16);
}

.demo-resume-head { display: flex; align-items: center; gap: 12px; padding-bottom: 12px; border-bottom: 2px solid var(--pa-premium); }
.demo-avatar { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: var(--pa-premium); color: #fff; font-size: 11px; font-weight: 800; }
.demo-resume-head strong, .demo-resume-head span { display: block; }
.demo-resume-head strong { font-size: 16px; color: #211b35; }
.demo-resume-head span { margin-top: 2px; color: var(--pa-premium); font-size: 8px; font-weight: 750; }
.demo-contact-line { padding: 8px 0 3px; color: #777181; font-size: 5.5px; }
.demo-resume-section { display: grid; gap: 5px; padding-top: 15px; }
.demo-resume-section b { color: var(--pa-premium-deep); font-size: 7px; text-transform: uppercase; letter-spacing: .1em; }
.demo-resume-section em { color: #292435; font-size: 7px; font-style: normal; font-weight: 750; }
.demo-resume-section small { color: #777181; font-size: 5.5px; line-height: 1.5; }
.demo-resume-section > span { height: 4px; border-radius: 2px; background: #e6e4ea; }
.demo-resume-section > span.short { width: 64%; }
.demo-resume-section > span.medium { width: 82%; }
.demo-resume-section.split { grid-template-columns: 1fr 1fr; gap: 18px; }
.demo-resume-section.split div { display: grid; gap: 5px; }
.demo-style-popover { position: absolute; top: 24px; right: 15px; z-index: 2; display: flex; align-items: center; gap: 5px; padding: 7px 9px; border-radius: 8px; background: #fff; box-shadow: 0 5px 8px rgba(31, 27, 49, .14); color: #5c5668; font-size: 7px; font-weight: 750; }
.demo-style-popover .swatch { width: 10px; height: 10px; border-radius: 50%; }
.demo-style-popover .purple { background: var(--pa-premium); }
.demo-style-popover .navy { background: #14213d; }
.demo-style-popover .coral { background: #ef7b68; }
.demo-page-count { position: absolute; bottom: 10px; color: #777181; font-size: 7px; font-weight: 750; }

.page-home .trust-strip {
  margin-top: 0;
  padding: 28px 34px;
  border: 1px solid #e8e5f1;
  border-top: 0;
  border-radius: 0 0 14px 14px;
  background: #fff;
}
.page-home .trust-card { border-right-color: #e5e2ec; }
.page-home .trust-title { color: var(--pa-premium-ink); }
.page-home .trust-text { color: #676172; }

.template-showcase {
  display: grid;
  grid-template-columns: minmax(300px, .72fr) minmax(0, 1.28fr);
  gap: 64px;
  align-items: center;
  margin-top: 96px;
  padding: 64px;
  border-radius: 16px;
  background: var(--pa-lilac);
}
.template-showcase-copy { max-width: 440px; }
.template-showcase-copy .template-label { margin: 0 0 18px; color: var(--pa-premium-deep); font-size: 14px; font-weight: 800; }
.template-showcase-copy h2 { margin: 0; color: var(--pa-premium-ink); font-size: clamp(2.4rem, 3.3vw, 3.35rem); line-height: 1.02; letter-spacing: -.037em; }
.template-showcase-copy > p:not(.template-label) { margin: 22px 0 0; color: #5f586b; font-size: 16px; line-height: 1.7; }
.template-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 28px; color: var(--pa-premium-deep); font-size: 15px; font-weight: 800; }
.template-link:hover { gap: 12px; }

.template-gallery { display: grid; grid-template-columns: minmax(0, 1.13fr) minmax(220px, .87fr); gap: 14px; align-items: stretch; }
.template-gallery-side { display: grid; gap: 14px; }
.template-frame { min-width: 0; overflow: hidden; border-radius: 12px; background: #fff; box-shadow: 0 7px 8px rgba(48, 37, 107, .14); }
.template-frame footer { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 13px 15px; background: #fff; }
.template-frame footer strong { color: #241f35; font-size: 12px; }
.template-frame footer span { color: #7b7487; font-size: 9px; }
.template-paper { min-height: 100%; background: #fff; color: #292435; }
.template-paper-violet { min-height: 440px; padding: 34px; }
.template-paper-violet header { display: flex; align-items: center; gap: 13px; padding-bottom: 15px; border-bottom: 3px solid var(--pa-premium); }
.template-avatar { width: 43px; height: 43px; display: grid; place-items: center; border-radius: 50%; background: var(--pa-premium); color: #fff; font-size: 12px; font-weight: 800; }
.template-paper-violet header strong, .template-paper-violet header small { display: block; }
.template-paper-violet header strong { font-size: 19px; }
.template-paper-violet header small { margin-top: 2px; color: var(--pa-premium); font-size: 9px; font-weight: 750; }
.template-contact { color: #777181; font-size: 7px; }
.template-paper-violet .template-section { display: grid; gap: 6px; padding-top: 22px; }
.template-paper b { color: var(--pa-premium-deep); font-size: 8px; letter-spacing: .08em; text-transform: uppercase; }
.template-paper-violet .template-section > strong { font-size: 9px; }
.template-paper small { color: #726c7d; font-size: 7px; line-height: 1.6; }
.template-paper i { display: block; height: 4px; border-radius: 2px; background: #e3e0e8; }
.template-paper i.w70 { width: 70%; }
.template-paper i.w80 { width: 80%; }
.template-two-col { grid-template-columns: 1fr 1fr; gap: 22px !important; }
.template-two-col div { display: grid; gap: 6px; }

.template-frame-compact { display: grid; grid-template-rows: 1fr auto; }
.template-paper-navy { min-height: 210px; display: grid; grid-template-columns: .42fr .58fr; }
.template-paper-navy aside { display: grid; align-content: start; gap: 7px; padding: 24px 16px; background: #17223d; color: #fff; }
.template-paper-navy aside strong { font-size: 11px; line-height: 1.05; }
.template-paper-navy aside small { margin-bottom: 9px; color: #bec7db; font-size: 6px; }
.template-paper-navy aside b { margin-top: 5px; color: #fff; font-size: 6px; }
.template-paper-navy aside i { background: rgba(255,255,255,.25); }
.template-paper-navy .template-main { display: grid; align-content: start; gap: 6px; padding: 24px 16px; }
.template-paper-navy .template-main b { color: #17223d; font-size: 6px; }
.template-paper-navy .template-main strong { font-size: 7px; }
.template-paper-navy .template-main small { font-size: 6px; }
.template-paper-editorial { min-height: 210px; display: grid; grid-template-columns: .42fr .58fr; background: #f5ddd8; }
.template-paper-editorial header { padding: 24px 15px; background: #c66559; color: #fff; }
.template-paper-editorial header strong, .template-paper-editorial header small { display: block; }
.template-paper-editorial header strong { font-family: Georgia, serif; font-size: 12px; line-height: 1.05; }
.template-paper-editorial header small { margin-top: 10px; font-size: 6px; }
.template-paper-editorial > div { display: grid; align-content: start; gap: 6px; padding: 24px 16px; }
.template-paper-editorial b { color: #8f3c34; font-size: 6px; }
.template-paper-editorial strong { font-family: Georgia, serif; font-size: 7px; }
.template-paper-editorial small { font-size: 6px; }
.template-paper-editorial i { background: rgba(96, 55, 51, .18); }

.page-home #tools { padding-top: 120px; }
.page-home #tools .section-header { max-width: 920px; }
.page-home #tools .section-title { max-width: 16ch; font-size: clamp(2.8rem, 4.4vw, 4.5rem); }
.page-home .tool-card { padding: 38px; border-radius: 14px; }
.page-home .tool-card:first-child { background: var(--pa-premium-ink); border-color: var(--pa-premium-ink); }
.page-home .tool-card:nth-child(2) { background: #f7f5ff; border-color: #e4dfff; }
.page-home .tool-card:nth-child(3) { background: #eef7f6; border-color: #dcecea; }

.page-home #features {
  margin-block: 36px;
  padding: 72px 64px;
  border-radius: 16px;
  background: #17132f;
}
.page-home #features .section-title,
.page-home #features .feature-card h3 { color: #fff; }
.page-home #features .section-desc,
.page-home #features .feature-card p { color: #cfc9e2; }
.page-home #features .section-kicker { color: #a99dff; }
.page-home #features .feature-card { border-top-color: rgba(255,255,255,.18); }

/* Premium editor workspace */
.page-builder {
  background: #20232b;
}
.page-builder main { padding-top: 0 !important; padding-bottom: 0 !important; }
.page-builder header { border-bottom-color: #dedde4; }
.page-builder #builder.builder-fullbleed { height: calc(100vh - 64px); min-height: 700px; padding: 0; background: #20232b; }
.page-builder .builder-shell { max-width: none; min-height: 100%; height: 100%; grid-template-columns: minmax(430px, 470px) minmax(0, 1fr); gap: 0; }
.page-builder .builder-panel,
.page-builder .builder-preview { padding: 0 !important; border-radius: 0; }
.page-builder .builder-panel { border-right: 1px solid #dad9e0; background: #fff !important; }
.page-builder .builder-preview { background: #20232b !important; }
.page-builder .side-tabs { padding: 18px 18px 14px; background: #fff; }
.page-builder .side-tabs-inner { padding: 4px; border-radius: 10px; background: #f0eff5; }
.page-builder .side-tab-btn { min-height: 42px; }
.page-builder .side-tab-btn.is-active { color: var(--pa-premium-deep); box-shadow: 0 3px 6px rgba(36, 28, 82, .11); }
.page-builder .side-tab-btn .icon svg { width: 15px; height: 15px; display: block; }
.page-builder .panel-scroll { padding: 0 18px 24px; }
.page-builder .panel-section { margin: 0; border: 0; border-bottom: 1px solid #e5e3e9; border-radius: 0; }
.page-builder .panel-section:first-child { margin: 8px 0 12px; border: 1px solid #ddd8ff; border-radius: 12px; background: #faf9ff; }
.page-builder .panel-section-header { min-height: 56px; padding-inline: 14px; }
.page-builder .panel-section-title { color: #373044; font-size: 13px; letter-spacing: .02em; }
.page-builder .field-input,
.page-builder .field-textarea,
.page-builder select,
.page-builder input[type="text"],
.page-builder input[type="email"],
.page-builder input[type="date"] { min-height: 40px; border-color: #d7d3df; background: #fff; }
.page-builder .preview-header { min-height: 64px; margin: 0 !important; border: 0 !important; border-bottom: 1px solid #353a45 !important; border-radius: 0 !important; background: #2a2e38; color: #fff; }
.page-builder .preview-header button,
.page-builder .preview-header .zoom-value { color: #fff; }
.page-builder .preview-header .zoom-label { color: #242733; }
.page-builder .preview-header button { border-color: #454a56; background: #353a45; }
.page-builder .preview-body { margin: 0 !important; padding: 28px !important; border: 0 !important; border-radius: 0 !important; background: #20232b !important; background-image: none !important; }
.page-builder .preview-inner { background: transparent !important; }
.page-builder .page-card { box-shadow: 0 8px 8px rgba(0,0,0,.28); }
.page-builder main > .container { background: #f6f6f8; }

@media (max-width: 1100px) {
  .page-home .hero { grid-template-columns: 1fr; }
  .page-home .hero-copy { max-width: 680px; }
  .premium-editor-demo { max-width: 760px; transform: none; }
  .template-showcase { grid-template-columns: 1fr; }
  .template-showcase-copy { max-width: 680px; }
  .page-builder .builder-shell { grid-template-columns: minmax(390px, 430px) minmax(0, 1fr); }
}

@media (max-width: 900px) {
  .page-home .container { width: min(100% - 32px, 1280px); }
  .page-home .hero { min-height: auto; padding: 48px 38px; }
  .template-showcase { margin-top: 72px; padding: 48px 38px; gap: 42px; }
  .page-home #features { padding: 56px 38px; }
  .page-builder #builder.builder-fullbleed { height: auto; min-height: 0; padding: 10px; background: #eef0f4; }
  .page-builder .builder-shell { height: auto; grid-template-columns: 1fr; gap: 12px; }
  .page-builder .builder-panel,
  .page-builder .builder-preview { border-radius: 12px; }
  .page-builder .builder-panel { order: -1; border-right: 0; }
  .page-builder .builder-preview { order: 0; }
}

@media (max-width: 640px) {
  .page-home .container { width: min(100% - 20px, 1280px); }
  .page-home #home.section-pad { padding-top: 10px; }
  .page-home .hero { gap: 38px; padding: 38px 24px 26px; border-radius: 12px; }
  .page-home .hero-title { max-width: 11ch; font-size: 3.15rem; }
  .page-home .hero-note { display: none; }
  .page-home .hero-meta { display: flex; flex-wrap: wrap; row-gap: 6px; }
  .page-home .meta-check { padding: 0 8px; }
  .page-home .meta-check:nth-child(2) { border-right: 0; }
  .premium-editor-demo { border-radius: 10px; }
  .demo-topbar { grid-template-columns: 1fr auto; }
  .demo-window-dots { display: none; }
  .demo-document-name { font-size: 9px; }
  .demo-workspace { min-height: 360px; grid-template-columns: 80px minmax(0, 1fr); }
  .demo-controls { padding: 9px 7px; }
  .demo-control-tabs { font-size: 6px; }
  .demo-control-tabs span { padding: 5px 2px; }
  .demo-control-section { gap: 5px; padding-block: 10px; }
  .demo-control-section strong { font-size: 6px; }
  .demo-field { height: 15px; }
  .demo-skill-row i { width: 18px; height: 10px; }
  .demo-canvas { padding: 20px 12px 16px; }
  .demo-resume-paper { width: min(205px, 92%); padding: 18px 15px; }
  .demo-style-popover { display: none; }
  .demo-resume-section { padding-top: 9px; gap: 3px; }
  .demo-resume-head { gap: 8px; padding-bottom: 7px; }
  .demo-avatar { width: 27px; height: 27px; font-size: 8px; }
  .demo-resume-head strong { font-size: 10px; }
  .demo-contact-line { padding-top: 5px; font-size: 4px; }
  .page-home .trust-strip { grid-template-columns: 1fr 1fr; padding: 18px; }
  .page-home .trust-card,
  .page-home .trust-card:nth-child(2) { padding: 12px; border-right: 1px solid #e5e2ec; border-bottom: 1px solid #e5e2ec; }
  .page-home .trust-card:nth-child(2n) { border-right: 0; }
  .page-home .trust-card:nth-last-child(-n+2) { border-bottom: 0; }
  .template-showcase { margin-top: 54px; padding: 34px 20px; border-radius: 12px; }
  .template-showcase-copy h2 { font-size: 2.55rem; }
  .template-gallery { grid-template-columns: 1fr; }
  .template-gallery-side { grid-template-columns: 1fr 1fr; }
  .template-paper-violet { min-height: 400px; }
  .template-paper-navy,
  .template-paper-editorial { min-height: 180px; }
  .page-home #tools { padding-top: 78px; }
  .page-home #tools .section-title { font-size: 2.65rem; }
  .page-home #features { padding: 42px 22px; border-radius: 12px; }
}

/* Layout rhythm and motion refinement ------------------------------------- */
:root {
  --pa-space-1: 4px;
  --pa-space-2: 8px;
  --pa-space-3: 12px;
  --pa-space-4: 16px;
  --pa-space-5: 24px;
  --pa-space-6: 32px;
  --pa-space-7: 48px;
  --pa-space-8: 64px;
  --pa-space-9: 96px;
  --pa-space-10: 128px;
  --pa-ease-out: cubic-bezier(.16, 1, .3, 1);
}

.page-home main > .container {
  width: 100%;
  max-width: none;
  padding-inline: 0 !important;
}

.page-home #home {
  width: 100%;
  margin: 0;
  padding: 0 0 var(--pa-space-6) !important;
}

.page-home .hero {
  width: 100%;
  min-height: 720px;
  padding-top: var(--pa-space-9);
  padding-bottom: var(--pa-space-9);
  padding-left: max(var(--pa-space-7), calc((100vw - 1280px) / 2 + var(--pa-space-7)));
  padding-right: max(var(--pa-space-7), calc((100vw - 1280px) / 2 + var(--pa-space-7)));
  border-radius: 0;
}

.page-home .hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.page-home .hero-actions,
.page-home .hero-meta {
  width: 100%;
}

.page-home .premium-editor-demo {
  --demo-rotate-x: 0deg;
  --demo-rotate-y: -1deg;
  transform: perspective(1200px) rotateX(var(--demo-rotate-x)) rotateY(var(--demo-rotate-y));
  transition: transform 260ms var(--pa-ease-out), box-shadow 260ms var(--pa-ease-out);
}

.page-home .premium-editor-demo:hover {
  box-shadow: 0 8px 8px rgba(25, 16, 91, .3);
}

.page-home .trust-strip {
  width: min(1280px, calc(100% - var(--pa-space-7)));
  margin-inline: auto;
}

.page-home .template-showcase,
.page-home #features {
  width: min(1280px, calc(100% - var(--pa-space-7)));
  margin-inline: auto;
}

.page-home #tools,
.page-home #how,
.page-home #faqs,
.page-home main > .container > section.section-pad:not(#home):not(#tools):not(#features):not(#how):not(#faqs):not(.template-showcase) {
  width: min(1180px, calc(100% - var(--pa-space-7)));
  margin-inline: auto;
}

.page-home .template-showcase {
  margin-top: var(--pa-space-10);
  padding: var(--pa-space-8);
}

.page-home #tools {
  padding-top: var(--pa-space-10);
  padding-bottom: var(--pa-space-9);
}

.page-home #features {
  margin-top: var(--pa-space-6);
  margin-bottom: var(--pa-space-6);
  padding: var(--pa-space-9) var(--pa-space-8);
}

.page-home #how,
.page-home #faqs {
  padding-top: var(--pa-space-10);
  padding-bottom: var(--pa-space-10);
}

.page-home .section-header {
  margin-bottom: var(--pa-space-7);
}

.page-home .tool-grid {
  gap: var(--pa-space-5);
}

.page-home .tool-card {
  display: flex !important;
  flex-direction: column;
  padding: var(--pa-space-7);
}

.page-home .tool-card:first-child {
  grid-row: auto;
}

.page-home .tool-card:nth-child(3) {
  grid-column: 1 / -1;
  grid-template-columns: none;
}

.page-home #tools .section-title {
  max-width: 18ch;
  font-size: clamp(2.7rem, 3.7vw, 3.75rem);
}

.page-home .tool-icon {
  display: none;
}

.page-home .tool-visual {
  margin: var(--pa-space-5) 0;
}

.page-home .tool-builder-visual {
  min-height: 220px;
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  overflow: hidden;
  border-radius: 10px;
  background: #ebe9f2;
}

.page-home .tool-builder-controls {
  display: grid;
  align-content: start;
  gap: var(--pa-space-3);
  padding: var(--pa-space-4);
  border-right: 1px solid rgba(255,255,255,.16);
  background: #25203a;
}

.page-home .tool-builder-controls span {
  padding: 7px;
  border-radius: 6px;
  color: #bdb6d2;
  font-size: 8px;
  text-align: center;
}

.page-home .tool-builder-controls span.active {
  background: #fff;
  color: var(--pa-premium-deep);
  font-weight: 800;
}

.page-home .tool-builder-controls i,
.page-home .tool-builder-paper i {
  display: block;
  height: 5px;
  border-radius: 3px;
  background: rgba(255,255,255,.18);
}

.page-home .tool-builder-controls i.short { width: 66%; }

.page-home .tool-builder-paper {
  width: 154px;
  min-height: 200px;
  align-self: end;
  justify-self: center;
  display: grid;
  align-content: start;
  gap: 7px;
  padding: 22px 18px;
  background: #fff;
  box-shadow: 0 6px 8px rgba(19, 15, 40, .18);
}

.page-home .tool-builder-paper strong,
.page-home .tool-builder-paper small,
.page-home .tool-builder-paper b {
  display: block;
}

.page-home .tool-builder-paper strong { color: #211b35; font-size: 10px; }
.page-home .tool-builder-paper small { color: var(--pa-premium); font-size: 5px; }
.page-home .tool-builder-paper b { margin-top: 6px; color: var(--pa-premium-deep); font-size: 5px; letter-spacing: .08em; }
.page-home .tool-builder-paper i { height: 4px; background: #dedbe4; }
.page-home .tool-builder-paper i.short { width: 68%; }

.page-home .tool-score-visual {
  min-height: 160px;
  display: flex;
  align-items: center;
  gap: var(--pa-space-6);
  padding: var(--pa-space-5);
  border-radius: 10px;
  background: #fff;
}

.page-home .tool-score-ring {
  width: 108px;
  height: 108px;
  flex: 0 0 auto;
  display: grid;
  place-content: center;
  border: 10px solid #ded8ff;
  border-top-color: var(--pa-premium);
  border-right-color: var(--pa-premium);
  border-radius: 50%;
  text-align: center;
  transform: rotate(8deg);
}

.page-home .tool-score-ring strong,
.page-home .tool-score-ring small { transform: rotate(-8deg); }
.page-home .tool-score-ring strong { color: var(--pa-premium-ink); font-size: 25px; line-height: 1; }
.page-home .tool-score-ring small { margin-top: 5px; color: #6d6678; font-size: 7px; }

.page-home .tool-score-bars {
  flex: 1;
  display: grid;
  gap: 10px;
}

.page-home .tool-score-bars > span {
  height: 7px;
  overflow: hidden;
  border-radius: 5px;
  background: #ebe8f3;
}

.page-home .tool-score-bars > span i {
  display: block;
  width: var(--fill);
  height: 100%;
  border-radius: inherit;
  background: var(--pa-premium);
}

.page-home .tool-score-bars small { color: #777080; font-size: 8px; }

.page-home .tool-export-visual {
  display: flex;
  flex-wrap: wrap;
  gap: var(--pa-space-3);
}

.page-home .tool-export-visual span {
  min-width: 150px;
  display: flex;
  align-items: center;
  gap: var(--pa-space-3);
  padding: var(--pa-space-4);
  border-radius: 9px;
  background: #fff;
  color: #44505b;
  font-size: 12px;
}

.page-home .tool-export-visual b {
  min-width: 38px;
  color: #176b61;
  font-size: 11px;
}

.page-home .tool-card .btn-primary,
.page-home .tool-card .btn-ghost {
  align-self: flex-start;
  margin-top: auto;
}

.page-home .feature-grid {
  column-gap: var(--pa-space-8);
}

.page-home .steps-grid {
  gap: var(--pa-space-8);
}

.page-home .cta-band {
  padding: var(--pa-space-8);
}

.page-home header {
  transition: box-shadow 220ms var(--pa-ease-out), background-color 220ms var(--pa-ease-out);
}

.page-home header.is-scrolled {
  box-shadow: 0 4px 8px rgba(23, 19, 47, .09);
}

.page-home .nav-links a {
  position: relative;
}

.page-home .nav-links a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 3px;
  left: 0;
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--pa-premium);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 220ms var(--pa-ease-out);
}

.page-home .nav-links a:hover::after,
.page-home .nav-links a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.page-home .btn-primary,
.page-home .btn-ghost,
.page-home .template-link,
.page-builder button,
.page-builder .side-tab-btn {
  transition-duration: 220ms;
  transition-timing-function: var(--pa-ease-out);
}

.page-home .btn-primary:active,
.page-home .btn-ghost:active,
.page-builder button:active {
  transform: scale(.98);
}

.page-home .template-link span {
  transition: transform 220ms var(--pa-ease-out);
}

.page-home .template-link:hover span {
  transform: translateX(4px);
}

.page-home .template-frame {
  transition: transform 260ms var(--pa-ease-out), box-shadow 260ms var(--pa-ease-out);
}

.page-home .template-frame:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 8px rgba(48, 37, 107, .2);
}

.page-home .template-paper {
  transition: transform 320ms var(--pa-ease-out);
  transform-origin: center top;
}

.page-home .template-frame:hover .template-paper {
  transform: scale(1.012);
}

.page-home .tool-card,
.page-home .feature-card,
.page-home .step-card {
  transition: transform 240ms var(--pa-ease-out), border-color 240ms var(--pa-ease-out), background-color 240ms var(--pa-ease-out);
}

.page-home .tool-card:hover {
  transform: translateY(-6px);
}

.page-home .step-card:hover .step-num {
  transform: scale(1.08);
  background: var(--pa-premium);
  color: #fff;
}

.page-home .step-num {
  transition: transform 220ms var(--pa-ease-out), background-color 220ms var(--pa-ease-out), color 220ms var(--pa-ease-out);
}

.page-home .faq-plus {
  transition: transform 240ms var(--pa-ease-out), color 240ms var(--pa-ease-out);
}

.page-home .faq-item[open] .faq-plus {
  color: var(--pa-premium);
  transform: rotate(45deg);
}

.page-builder .container-full {
  padding-inline: var(--pa-space-5);
}

.page-builder .builder-shell {
  grid-template-columns: minmax(452px, 488px) minmax(0, 1fr);
}

.page-builder .side-tabs {
  padding: var(--pa-space-5) var(--pa-space-5) var(--pa-space-4);
}

.page-builder .panel-scroll {
  padding: 0 var(--pa-space-5) var(--pa-space-5);
}

.page-builder .panel-section-header {
  padding-inline: var(--pa-space-4);
}

.page-builder .panel-section-body {
  padding: var(--pa-space-1) var(--pa-space-4) var(--pa-space-5);
}

.page-builder .field-row {
  gap: var(--pa-space-3);
}

.page-builder .field-group {
  gap: var(--pa-space-2);
}

.page-builder .preview-header {
  padding-inline: var(--pa-space-5);
}

.page-builder .preview-body {
  padding: var(--pa-space-7) !important;
}

.page-builder .side-tab-btn .icon,
.page-builder .panel-section-chevron,
.page-builder .download-chevron {
  transition: transform 220ms var(--pa-ease-out);
}

.page-builder .panel-section-header:hover .panel-section-chevron {
  color: var(--pa-premium);
}

.page-builder .field-input,
.page-builder .field-textarea,
.page-builder select,
.page-builder input,
.page-builder textarea {
  transition: border-color 180ms var(--pa-ease-out), box-shadow 180ms var(--pa-ease-out), background-color 180ms var(--pa-ease-out);
}

@keyframes pa-hero-copy-in {
  from { opacity: .25; transform: translateY(24px); filter: blur(4px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

@keyframes pa-editor-in {
  from { opacity: .35; transform: perspective(1200px) translateY(30px) scale(.965) rotateY(-4deg); filter: blur(3px); }
  to { opacity: 1; transform: perspective(1200px) translateY(0) scale(1) rotateY(var(--demo-rotate-y)); filter: blur(0); }
}

@keyframes pa-paper-float {
  from { transform: translateY(2px); }
  to { transform: translateY(-6px); }
}

@keyframes pa-popover-in {
  from { opacity: .2; transform: translateY(8px) scale(.94); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.page-home .hero-copy > * {
  animation: pa-hero-copy-in 680ms var(--pa-ease-out) both;
}

.page-home .hero-copy > :nth-child(2) { animation-delay: 70ms; }
.page-home .hero-copy > :nth-child(3) { animation-delay: 125ms; }
.page-home .hero-copy > :nth-child(4) { animation-delay: 180ms; }
.page-home .hero-copy > :nth-child(5) { animation-delay: 220ms; }

.page-home .premium-editor-demo {
  animation: pa-editor-in 780ms var(--pa-ease-out) 120ms both;
}

.page-home .demo-resume-paper {
  animation: pa-paper-float 4.8s ease-in-out 1s infinite alternate;
}

.page-home .demo-style-popover {
  animation: pa-popover-in 480ms var(--pa-ease-out) 760ms both;
}

@media (max-width: 900px) {
  .page-home .hero {
    min-height: auto;
    padding: var(--pa-space-8) var(--pa-space-6);
  }

  .page-home .trust-strip,
  .page-home .template-showcase,
  .page-home #features,
  .page-home #tools,
  .page-home #how,
  .page-home #faqs,
  .page-home main > .container > section.section-pad:not(#home):not(#tools):not(#features):not(#how):not(#faqs):not(.template-showcase) {
    width: min(100% - var(--pa-space-6), 1280px);
  }

  .page-home .template-showcase,
  .page-home #features {
    padding: var(--pa-space-7) var(--pa-space-6);
  }

  .page-builder .builder-shell {
    grid-template-columns: 1fr;
  }

  .page-builder .preview-body {
    padding: var(--pa-space-5) !important;
  }
}

@media (max-width: 640px) {
  .page-home .hero {
    padding: var(--pa-space-7) var(--pa-space-5) var(--pa-space-6);
  }

  .page-home .trust-strip,
  .page-home .template-showcase,
  .page-home #features,
  .page-home #tools,
  .page-home #how,
  .page-home #faqs,
  .page-home main > .container > section.section-pad:not(#home):not(#tools):not(#features):not(#how):not(#faqs):not(.template-showcase) {
    width: min(100% - var(--pa-space-5), 1280px);
  }

  .page-home .template-showcase {
    margin-top: var(--pa-space-8);
    padding: var(--pa-space-7) var(--pa-space-5);
  }

  .page-home #tools,
  .page-home #how,
  .page-home #faqs {
    padding-top: var(--pa-space-9);
    padding-bottom: var(--pa-space-9);
  }

  .page-home #features {
    padding: var(--pa-space-7) var(--pa-space-5);
  }

  .page-home .cta-band {
    padding: var(--pa-space-7) var(--pa-space-5);
  }

  .page-builder .container-full,
  .page-builder .side-tabs,
  .page-builder .panel-scroll {
    padding-inline: var(--pa-space-4);
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .hero-copy > *,
  .page-home .premium-editor-demo,
  .page-home .demo-resume-paper,
  .page-home .demo-style-popover {
    animation: none !important;
  }
}

/* =========================================================
   Final spacing system
   This is the single cascade owner for page and card rhythm.
   ========================================================= */

.page-home {
  --home-section-y: clamp(48px, 3vw, 56px);
  --home-section-head-gap: clamp(24px, 2vw, 32px);
  --home-card-pad: clamp(28px, 2.4vw, 36px);
  --home-grid-gap: clamp(20px, 2.4vw, 32px);
}

.page-home .section-pad {
  padding-top: var(--home-section-y);
  padding-bottom: var(--home-section-y);
}

.page-home #home.section-pad {
  padding-top: 0;
  padding-bottom: var(--pa-space-6);
}

.page-home .section-header {
  margin-bottom: var(--home-section-head-gap);
}

.page-home .section-title {
  margin-bottom: var(--pa-space-4);
}

.page-home .section-desc {
  max-width: 720px;
  line-height: 1.75;
}

.page-home .trust-strip {
  gap: var(--pa-space-4);
  margin-top: var(--pa-space-5);
  padding: var(--pa-space-6) var(--pa-space-7);
}

.page-home .trust-card {
  min-height: 88px;
  padding: var(--pa-space-4);
}

.page-home .template-showcase {
  margin-top: var(--pa-space-6);
  padding: clamp(40px, 3vw, 48px);
}

.page-home #tools,
.page-home #how,
.page-home #faqs,
.page-home main > .container > section.section-pad:not(#home):not(#tools):not(#features):not(#how):not(#faqs):not(.template-showcase) {
  padding-top: var(--home-section-y);
  padding-bottom: var(--home-section-y);
}

.page-home #tools {
  padding-top: var(--pa-space-8);
  padding-bottom: var(--pa-space-7);
}

.page-home main > .container > section.section-pad:not(#home):not(#tools):not(#features):not(#how):not(#faqs):not(.template-showcase) {
  padding-top: var(--pa-space-7);
  padding-bottom: var(--pa-space-7);
}

.page-home .tool-grid {
  gap: var(--home-grid-gap);
}

.page-home .tool-card {
  gap: var(--pa-space-4);
  padding: var(--home-card-pad);
}

.page-home .tool-visual {
  margin-top: var(--pa-space-4);
  margin-bottom: var(--pa-space-5);
}

.page-home #features {
  margin-top: var(--pa-space-5);
  margin-bottom: var(--pa-space-5);
  padding: var(--pa-space-8) clamp(40px, 4.5vw, 64px);
}

.page-home #features .section-header {
  margin-bottom: var(--home-section-head-gap);
}

.page-home .feature-grid {
  gap: 0 clamp(40px, 4vw, 64px);
}

.page-home .feature-card {
  gap: var(--pa-space-2);
  padding: var(--pa-space-5) 0 var(--pa-space-6);
}

.page-home .steps-grid {
  gap: clamp(40px, 5vw, 72px);
}

.page-home .steps-list {
  gap: 0;
}

.page-home .step-card {
  gap: var(--pa-space-3);
  padding: var(--pa-space-5) 0;
}

.page-home .how-side {
  padding: clamp(28px, 3vw, 40px);
}

.page-home .format-band {
  gap: var(--pa-space-6);
  padding: var(--pa-space-7);
}

.page-home .faq-wrap {
  gap: 0;
}

.page-home .cta-band {
  gap: var(--pa-space-6);
  padding: var(--pa-space-7);
}

.page-home .footer-inner {
  gap: var(--pa-space-5);
  padding-top: var(--pa-space-5);
  padding-bottom: var(--pa-space-5);
}

.page-builder .side-tabs {
  padding: var(--pa-space-5) var(--pa-space-5) var(--pa-space-4);
}

.page-builder .panel-scroll {
  padding: var(--pa-space-3) var(--pa-space-5) var(--pa-space-6);
}

.page-builder .panel-section {
  margin-top: 0;
  margin-bottom: var(--pa-space-4);
}

.page-builder .panel-section-header {
  padding-right: var(--pa-space-4);
  padding-left: var(--pa-space-4);
}

.page-builder .panel-section-body {
  padding: var(--pa-space-2) var(--pa-space-4) var(--pa-space-5);
}

.page-builder .preview-header {
  padding-right: var(--pa-space-5);
  padding-left: var(--pa-space-5);
}

body.page-builder #previewBody {
  padding: var(--pa-space-7) !important;
}

@media (max-width: 900px) {
  .page-home {
    --home-section-y: var(--pa-space-8);
    --home-section-head-gap: var(--pa-space-6);
  }

  .page-home .trust-strip,
  .page-home .template-showcase,
  .page-home #features,
  .page-home #tools,
  .page-home #how,
  .page-home #faqs,
  .page-home main > .container > section.section-pad:not(#home):not(#tools):not(#features):not(#how):not(#faqs):not(.template-showcase) {
    width: calc(100% - var(--pa-space-6));
  }

  .page-home .template-showcase {
    padding: var(--pa-space-6);
  }

  .page-home #features {
    padding: var(--pa-space-7) var(--pa-space-6);
  }

  body.page-builder #previewBody {
    padding: var(--pa-space-5) !important;
  }
}

@media (max-width: 640px) {
  .page-home {
    --home-section-y: var(--pa-space-7);
    --home-section-head-gap: var(--pa-space-5);
    --home-card-pad: var(--pa-space-5);
    --home-grid-gap: var(--pa-space-4);
  }

  .page-home .trust-strip,
  .page-home .template-showcase,
  .page-home #features,
  .page-home #tools,
  .page-home #how,
  .page-home #faqs,
  .page-home main > .container > section.section-pad:not(#home):not(#tools):not(#features):not(#how):not(#faqs):not(.template-showcase) {
    width: calc(100% - var(--pa-space-5));
  }

  .page-home .trust-strip {
    padding: var(--pa-space-5);
  }

  .page-home .template-showcase {
    margin-top: var(--pa-space-7);
    padding: var(--pa-space-6) var(--pa-space-5);
  }

  .page-home #tools {
    padding-top: var(--pa-space-7);
    padding-bottom: var(--pa-space-6);
  }

  .page-home #features {
    margin-top: var(--pa-space-4);
    margin-bottom: var(--pa-space-4);
    padding: var(--pa-space-7) var(--pa-space-5);
  }

  .page-home .feature-grid {
    gap: 0;
  }

  .page-home .format-band,
  .page-home .cta-band {
    gap: var(--pa-space-5);
    padding: var(--pa-space-6) var(--pa-space-5);
  }

  .page-builder .side-tabs,
  .page-builder .panel-scroll {
    padding-right: var(--pa-space-4);
    padding-left: var(--pa-space-4);
  }

  body.page-builder #previewBody {
    padding: var(--pa-space-4) !important;
  }
}

/* Final cascade ownership for the guided editor shell. */
body.page-builder header {
  height: 64px;
  border-bottom: 1px solid var(--editor-line);
  background: var(--editor-white);
  box-shadow: none;
}

body.page-builder .container-full {
  width: 100%;
  max-width: none;
  padding: 0 24px;
}

body.page-builder #builder.builder-fullbleed {
  height: calc(100dvh - 64px);
  min-height: 650px;
  padding: 0;
  background: var(--editor-canvas);
}

body.page-builder .builder-shell {
  width: 100%;
  max-width: none;
  height: 100%;
  min-height: 100%;
  display: grid;
  grid-template-columns: 520px minmax(0, 1fr);
  gap: 0;
  background: var(--editor-canvas);
}

body.page-builder .builder-panel {
  height: 100%;
  display: grid !important;
  grid-template-columns: 80px minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  overflow: hidden;
  border: 0;
  border-right: 1px solid var(--editor-line);
  border-radius: 0;
  background: var(--editor-white) !important;
}

body.page-builder .side-tabs {
  grid-column: 1;
  grid-row: 1;
  width: auto;
  height: 100%;
  margin: 0;
  padding: 12px 8px;
  border: 0;
  border-right: 1px solid #2d2a38;
  background: var(--editor-ink);
}

body.page-builder .side-tabs-inner {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

body.page-builder .side-tab-btn {
  width: 100%;
  min-height: 68px;
  flex-direction: column;
  gap: 7px;
  padding: 8px 4px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #aaa6b5;
  box-shadow: none;
  font-size: .6875rem;
}

body.page-builder .side-tab-btn:hover {
  background: #262330;
  color: #fff;
}

body.page-builder .side-tab-btn.is-active {
  background: var(--editor-violet);
  color: #fff;
  box-shadow: none;
}

body.page-builder .panel-scroll {
  grid-column: 2;
  grid-row: 1;
  width: 100%;
  height: 100%;
  padding: 0 0 88px;
  background: var(--editor-white);
  scrollbar-gutter: stable;
}

body.page-builder .panel-scroll[data-panel="customize"] {
  padding: 0 0 24px;
}

body.page-builder .panel-section,
body.page-builder .panel-section:first-child {
  margin: 0;
  border: 0;
  border-bottom: 1px solid var(--editor-line);
  border-radius: 0;
  background: var(--editor-white);
  box-shadow: none;
}

body.page-builder .panel-section.is-current {
  background: #fcfbff;
}

body.page-builder .panel-section-header {
  min-height: 60px;
  padding: 0 24px;
}

body.page-builder .panel-section-body {
  padding: 4px 24px 28px;
}

body.page-builder .field-input,
body.page-builder .field-textarea,
body.page-builder .field-select,
body.page-builder select,
body.page-builder input[type="text"],
body.page-builder input[type="email"],
body.page-builder input[type="date"],
body.page-builder input[type="month"],
body.page-builder input[type="number"] {
  min-height: 44px;
  border: 1px solid var(--editor-line-strong);
  border-radius: 8px;
  background: var(--editor-white);
  color: var(--editor-ink);
  box-shadow: none;
}

body.page-builder .field-input:focus,
body.page-builder .field-textarea:focus,
body.page-builder select:focus,
body.page-builder input:focus,
body.page-builder textarea:focus {
  outline: none;
  border-color: var(--editor-violet);
  box-shadow: 0 0 0 3px rgba(91, 75, 231, .14);
}

body.page-builder .builder-preview {
  height: 100%;
  display: flex;
  border: 0;
  border-radius: 0;
  background: var(--editor-canvas) !important;
}

body.page-builder .preview-header {
  min-height: 58px;
  margin: 0 !important;
  padding: 0 20px;
  border: 0 !important;
  border-bottom: 1px solid rgba(255, 255, 255, .12) !important;
  border-radius: 0 !important;
  background: var(--editor-canvas-raised);
}

body.page-builder .preview-header button[data-zoom],
body.page-builder .preview-header #zoomLabel {
  height: 36px;
  border: 1px solid #464954;
  border-radius: 8px;
  background: #32353f;
  color: #fff;
  box-shadow: none;
}

body.page-builder #previewBody {
  padding: 32px !important;
  background: var(--editor-canvas) !important;
  background-image: none !important;
}

@media (max-width: 1180px) and (min-width: 901px) {
  body.page-builder .builder-shell {
    grid-template-columns: 488px minmax(0, 1fr);
  }

  body.page-builder .builder-panel {
    grid-template-columns: 76px minmax(0, 1fr);
  }

  body.page-builder .editor-guided-footer {
    left: 76px;
  }
}

@media (max-width: 1100px) {
  body.page-builder .container-full {
    padding: 0 14px;
  }

  body.page-builder #builder.builder-fullbleed {
    height: calc(100dvh - 64px);
    min-height: 560px;
    padding: 0;
    background: var(--editor-white);
  }

  body.page-builder .builder-shell {
    height: 100%;
    min-height: 0;
    display: block;
    padding: 0 0 64px;
    background: var(--editor-white);
  }

  body.page-builder .builder-panel {
    width: 100%;
    height: 100%;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr);
    border: 0;
    border-radius: 0;
  }

  body.page-builder .side-tabs {
    display: none;
  }

  body.page-builder .panel-scroll {
    grid-column: 1;
    grid-row: 1;
    height: 100%;
    padding: 0 0 88px;
    scrollbar-gutter: auto;
  }

  body.page-builder .builder-preview {
    width: 100%;
    height: 100%;
    display: none;
    border-radius: 0;
  }

  body.page-builder.is-mobile-preview .builder-panel {
    display: none !important;
  }

  body.page-builder.is-mobile-preview .builder-preview {
    display: flex !important;
  }

  body.page-builder #previewBody {
    padding: 20px 14px 32px !important;
  }
}

@media (max-width: 560px) {
  body.page-builder .field-row,
  body.page-builder .date-row {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   Material resume studio — focused workflow and natural scroll
   ========================================================= */

body.page-builder {
  --editor-panel: #f3f4f8;
  --editor-line: #e2e3e9;
  --editor-line-strong: #c9cbd4;
  --editor-ink: #181621;
  --editor-muted: #5f5d69;
  --editor-canvas: #202129;
  --editor-canvas-raised: #292b34;
  --editor-violet: #5d4bea;
  --editor-violet-dark: #4937d2;
  --editor-violet-soft: #eeecff;
}

body.page-builder header {
  height: 68px;
  border-bottom-color: #dedfe5;
  box-shadow: 0 2px 6px rgba(20, 18, 29, .08);
}

body.page-builder .nav-bar {
  min-height: 68px;
}

body.page-builder #builder.builder-fullbleed {
  height: calc(100dvh - 68px);
  min-height: 640px;
}

body.page-builder .builder-shell {
  grid-template-columns: clamp(560px, 32vw, 620px) minmax(0, 1fr);
}

body.page-builder .builder-panel {
  grid-template-columns: 88px minmax(0, 1fr);
  border-right-color: #d9dae0;
  background: var(--editor-panel) !important;
}

body.page-builder .side-tabs {
  padding: 14px 9px;
  border-right-color: #2f2b3a;
  background: #17141f;
}

body.page-builder .side-tabs-inner {
  gap: 8px;
}

body.page-builder .side-tab-btn {
  min-height: 72px;
  gap: 8px;
  border-radius: 12px;
  color: #b9b5c4;
  font-size: .7rem;
  transition: background-color 160ms var(--editor-ease), color 160ms var(--editor-ease), transform 160ms var(--editor-ease), box-shadow 160ms var(--editor-ease);
}

body.page-builder .side-tab-btn .icon,
body.page-builder .side-tab-btn .icon svg {
  width: 23px;
  height: 23px;
}

body.page-builder .side-tab-btn svg,
body.page-builder .editor-mobile-nav svg,
body.page-builder .export-icon {
  display: block;
  fill: currentColor;
}

body.page-builder .side-tab-btn:hover {
  background: #292432;
  transform: translateY(-1px);
}

body.page-builder .side-tab-btn:active {
  transform: translateY(0) scale(.97);
}

body.page-builder .side-tab-btn.is-active {
  background: var(--editor-violet);
  box-shadow: 0 3px 8px rgba(66, 49, 204, .34);
}

body.page-builder .btn-download-main {
  gap: 9px;
  min-height: 44px;
  padding-inline: 16px;
  transition: background-color 150ms var(--editor-ease), border-color 150ms var(--editor-ease), transform 150ms var(--editor-ease);
}

body.page-builder .btn-download-main:hover {
  transform: translateY(-1px);
}

body.page-builder .btn-download-main:active {
  transform: scale(.98);
}

body.page-builder .export-icon {
  width: 18px;
  height: 18px;
}

body.page-builder .panel-scroll {
  overscroll-behavior-y: auto !important;
  scrollbar-gutter: stable;
  scroll-padding-top: 250px;
  scroll-padding-bottom: 104px;
  background: var(--editor-panel);
}

body.page-builder .panel-scroll[data-panel="edit"] {
  padding: 0 0 96px;
}

body.page-builder .editor-panel-intro {
  position: sticky;
  top: 0;
  z-index: 10;
  padding: 22px 24px 18px;
  border-bottom: 1px solid var(--editor-line);
  background: #fff;
  box-shadow: 0 2px 6px rgba(24, 22, 33, .06);
}

body.page-builder .editor-command-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

body.page-builder .editor-command-copy {
  min-width: 0;
}

body.page-builder .editor-panel-kicker {
  margin-bottom: 5px;
  color: var(--editor-violet-dark);
  font-size: .75rem;
  font-weight: 800;
}

body.page-builder .editor-panel-intro h2 {
  font-size: 1.35rem;
  letter-spacing: -.025em;
  text-wrap: balance;
}

body.page-builder .editor-command-copy > p:last-child {
  max-width: 42ch;
  margin: 6px 0 0;
  color: var(--editor-muted);
  font-size: .8rem;
  line-height: 1.5;
  text-wrap: pretty;
}

body.page-builder .editor-step-count {
  flex: 0 0 auto;
  min-width: 48px;
  min-height: 28px;
  display: inline-grid;
  place-items: center;
  padding: 0 9px;
  border-radius: 999px;
  background: var(--editor-violet-soft);
  color: var(--editor-violet-dark);
  font-size: .72rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

body.page-builder .editor-panel-progress {
  margin-top: 16px;
}

body.page-builder .editor-panel-progress-copy {
  margin-bottom: 7px;
}

body.page-builder .editor-panel-progress .editor-progress-track {
  height: 5px;
  background: #e5e5eb;
}

body.page-builder .content-fit-assistant {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 12px;
  padding: 12px 13px;
  border: 1px solid #cfe1ff;
  border-radius: 14px;
  background: linear-gradient(135deg, #f7faff, #f4f0ff);
  color: #1e2f4e;
}

body.page-builder .content-fit-copy {
  display: grid;
  min-width: 0;
  gap: 2px;
}

body.page-builder .content-fit-copy strong {
  font-size: 11px;
  line-height: 1.25;
}

body.page-builder .content-fit-copy span {
  color: #62708a;
  font-size: 9px;
  line-height: 1.4;
}

body.page-builder .content-fit-badge {
  flex: 0 0 auto;
  padding: 5px 8px;
  border-radius: 999px;
  background: #e3ebff;
  color: #254fbd;
  font-size: 9px;
  font-weight: 800;
  white-space: nowrap;
}

body.page-builder .content-fit-assistant.is-smart-fit {
  border-color: #d8d0ff;
  background: linear-gradient(135deg, #faf8ff, #f0edff);
}

body.page-builder .content-fit-assistant.is-multi {
  border-color: #c8ded7;
  background: #f3faf7;
}

body.page-builder .content-fit-assistant.is-multi .content-fit-badge {
  background: #dcefe8;
  color: #176149;
}

body.page-builder .editor-section-nav {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  margin-top: 15px;
}

body.page-builder .editor-section-nav::before {
  content: "";
  position: absolute;
  top: 14px;
  right: 11%;
  left: 11%;
  height: 1px;
  background: #d9dae2;
}

body.page-builder .editor-section-nav button {
  position: relative;
  z-index: 1;
  min-width: 0;
  min-height: 54px;
  flex-direction: column;
  justify-content: flex-start;
  gap: 6px;
  padding: 0 3px;
  border-radius: 8px;
  color: #777480;
  text-align: center;
  font-size: .68rem;
  font-weight: 700;
}

body.page-builder .editor-section-nav button:hover {
  background: transparent;
  color: var(--editor-ink);
}

body.page-builder .editor-section-nav button.is-active {
  background: transparent;
  color: var(--editor-violet-dark);
}

body.page-builder .editor-section-state {
  width: 29px;
  height: 29px;
  border: 1px solid #cfd0d8;
  background: #fff;
  color: #6a6873;
  box-shadow: 0 1px 3px rgba(24, 22, 33, .08);
  transition: background-color 180ms var(--editor-ease), border-color 180ms var(--editor-ease), color 180ms var(--editor-ease), transform 180ms var(--editor-ease);
}

body.page-builder .editor-section-nav button.is-active .editor-section-state {
  border-color: var(--editor-violet);
  background: var(--editor-violet);
  color: #fff;
  transform: scale(1.08);
}

body.page-builder .editor-section-nav button.is-complete:not(.is-active) .editor-section-state {
  border-color: var(--editor-success);
  background: var(--editor-success);
  color: #fff;
}

body.page-builder .editor-section-label {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.page-builder .panel-scroll[data-panel="edit"] .panel-section,
body.page-builder .panel-scroll[data-panel="edit"] .panel-section:first-child {
  margin: 22px 24px 30px;
  overflow: hidden;
  border: 0;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(24, 22, 33, .12);
}

body.page-builder .panel-scroll[data-panel="edit"] .panel-section[hidden] {
  display: none !important;
}

body.page-builder .panel-scroll[data-panel="edit"] .panel-section-header {
  display: none;
}

body.page-builder .panel-scroll[data-panel="edit"] .panel-section-body {
  display: block !important;
  padding: 24px 24px 28px;
}

body.page-builder .field-group {
  margin-bottom: 17px;
}

body.page-builder .field-input,
body.page-builder .field-textarea,
body.page-builder .field-select,
body.page-builder select,
body.page-builder input[type="text"],
body.page-builder input[type="email"],
body.page-builder input[type="date"],
body.page-builder input[type="month"],
body.page-builder input[type="number"] {
  min-height: 46px;
  border-color: #cfd0d8;
  border-radius: 9px;
  transition: border-color 150ms var(--editor-ease), box-shadow 150ms var(--editor-ease), background-color 150ms var(--editor-ease);
}

body.page-builder .field-input:hover,
body.page-builder .field-textarea:hover,
body.page-builder select:hover,
body.page-builder input:hover,
body.page-builder textarea:hover {
  border-color: #9d9aa8;
  background: #fdfdff;
}

body.page-builder .editor-guided-footer {
  left: 88px;
  min-height: 76px;
  padding: 14px 20px;
  background: #fff;
  box-shadow: 0 -2px 8px rgba(24, 22, 33, .08);
}

body.page-builder .editor-secondary-action,
body.page-builder .editor-primary-action {
  min-height: 46px;
  border-radius: 9px;
  transition: background-color 150ms var(--editor-ease), border-color 150ms var(--editor-ease), transform 150ms var(--editor-ease);
}

body.page-builder .editor-secondary-action:not(:disabled):hover,
body.page-builder .editor-primary-action:hover {
  transform: translateY(-1px);
}

body.page-builder .editor-secondary-action:not(:disabled):active,
body.page-builder .editor-primary-action:active {
  transform: scale(.985);
}

body.page-builder .panel-scroll[data-panel="customize"] {
  background: #fff;
}

body.page-builder .panel-scroll[data-panel="customize"] .editor-panel-intro {
  position: static;
  box-shadow: none;
}

body.page-builder .builder-preview {
  position: relative;
  background: var(--editor-canvas) !important;
}

body.page-builder .preview-header {
  min-height: 60px;
  padding: 0 22px;
  background: var(--editor-canvas-raised);
}

body.page-builder .preview-header-copy {
  gap: 10px;
}

body.page-builder .preview-header-title {
  font-size: .82rem;
  font-weight: 800;
}

body.page-builder .preview-header-meta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #c8cad2;
  font-size: .7rem;
}

body.page-builder .preview-header-meta::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #48c78e;
  box-shadow: 0 0 0 3px rgba(72, 199, 142, .14);
}

body.page-builder .zoom-controls {
  gap: 0;
  padding: 3px;
  border-radius: 10px;
  background: #343640;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .24);
}

body.page-builder .preview-header button[data-zoom],
body.page-builder .preview-header #zoomLabel {
  height: 34px;
  border: 0;
  border-radius: 7px;
  background: transparent;
}

body.page-builder .preview-header button[data-zoom]:hover {
  background: #464954;
}

body.page-builder .preview-header button[data-zoom]:active {
  transform: scale(.94);
}

body.page-builder #previewBody {
  overscroll-behavior-y: auto !important;
  padding: 28px !important;
  background: #202129 !important;
}

body.page-builder .preview-frame-wrap,
body.page-builder #previewFrameWrap {
  border: 0;
  border-radius: 4px;
  box-shadow: 0 6px 8px rgba(0, 0, 0, .34);
  transition: transform 220ms var(--editor-ease), box-shadow 220ms var(--editor-ease);
}

body.page-builder .preview-frame-wrap:hover,
body.page-builder #previewFrameWrap:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 8px rgba(0, 0, 0, .38);
}

@media (max-width: 1280px) and (min-width: 901px) {
  body.page-builder .builder-shell {
    grid-template-columns: 540px minmax(0, 1fr);
  }

  body.page-builder .builder-panel {
    grid-template-columns: 80px minmax(0, 1fr);
  }

  body.page-builder .editor-guided-footer {
    left: 80px;
  }
}

@media (max-width: 1100px) {
  body.page-builder header {
    height: 62px;
  }

  body.page-builder .nav-bar {
    min-height: 62px;
  }

  body.page-builder #builder.builder-fullbleed {
    height: calc(100dvh - 62px);
    min-height: 540px;
  }

  body.page-builder .builder-panel {
    grid-template-columns: minmax(0, 1fr);
  }

  body.page-builder .panel-scroll {
    grid-column: 1;
  }

  body.page-builder .panel-scroll[data-panel="edit"] {
    padding-bottom: 88px;
  }

  body.page-builder .panel-scroll {
    scroll-padding-top: 220px;
    scroll-padding-bottom: 96px;
  }

  body.page-builder .editor-panel-intro {
    padding: 18px 18px 15px;
  }

  body.page-builder .editor-panel-intro h2 {
    font-size: 1.22rem;
  }

  body.page-builder .editor-section-nav {
    display: grid;
    margin-top: 13px;
  }

  body.page-builder .editor-section-nav button {
    min-height: 48px;
  }

  body.page-builder .editor-section-label {
    font-size: .64rem;
  }

  body.page-builder .panel-scroll[data-panel="edit"] .panel-section,
  body.page-builder .panel-scroll[data-panel="edit"] .panel-section:first-child {
    margin: 16px 16px 24px;
    border-radius: 12px;
  }

  body.page-builder .panel-scroll[data-panel="edit"] .panel-section-body {
    padding: 21px 18px 24px;
  }

  body.page-builder .editor-guided-footer {
    left: 0;
    min-height: 72px;
    padding: 11px 14px;
  }

  body.page-builder .editor-mobile-nav svg {
    fill: currentColor;
  }

  body.page-builder .editor-mobile-nav button {
    transition: color 150ms var(--editor-ease), background-color 150ms var(--editor-ease), transform 150ms var(--editor-ease);
  }

  body.page-builder .editor-mobile-nav button:active {
    transform: scale(.96);
  }

  body.page-builder #previewBody {
    padding: 18px 12px 28px !important;
  }
}

@media (max-width: 430px) {
  body.page-builder .preview-header-title {
    white-space: nowrap;
  }

  body.page-builder .preview-header-meta {
    display: none;
  }

  body.page-builder .editor-command-copy > p:last-child {
    max-width: 32ch;
    font-size: .76rem;
  }

  body.page-builder .editor-step-count {
    min-width: 44px;
    padding-inline: 7px;
  }

  body.page-builder .editor-section-nav::before {
    right: 10%;
    left: 10%;
  }

  body.page-builder .editor-section-state {
    width: 27px;
    height: 27px;
  }

  body.page-builder .editor-primary-action {
    font-size: .7rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.page-builder .side-tab-btn,
  body.page-builder .btn-download-main,
  body.page-builder .editor-section-state,
  body.page-builder .editor-secondary-action,
  body.page-builder .editor-primary-action,
  body.page-builder .preview-frame-wrap,
  body.page-builder #previewFrameWrap,
  body.page-builder .editor-mobile-nav button {
    transition-duration: .01ms !important;
  }
}

/* =========================================================
   Unified light resume studio
   ========================================================= */

body.page-builder {
  --editor-panel: #f5f6f9;
  --editor-line: #e1e2e8;
  --editor-line-strong: #cfd1d9;
  --editor-ink: #1b1923;
  --editor-muted: #625f6b;
  --editor-canvas: #eceef3;
  --editor-canvas-raised: #fff;
  background: var(--editor-canvas);
}

body.page-builder #builder.builder-fullbleed,
body.page-builder .builder-shell {
  background: var(--editor-canvas);
}

body.page-builder .builder-panel {
  border-right-color: #d8dae2;
  background: var(--editor-panel) !important;
}

body.page-builder .side-tabs {
  border-right: 1px solid #dedfe6;
  background: #fbfbfd;
}

body.page-builder .side-tab-btn {
  border: 1px solid transparent;
  color: #666370;
}

body.page-builder .side-tab-btn:hover {
  border-color: #e0deeb;
  background: #f1f0f7;
  color: #393641;
}

body.page-builder .side-tab-btn.is-active {
  border-color: #d8d2ff;
  background: var(--editor-violet-soft);
  color: var(--editor-violet-dark);
  box-shadow: 0 2px 6px rgba(73, 55, 210, .12);
}

body.page-builder .side-tab-btn:focus-visible {
  outline: 2px solid var(--editor-violet);
  outline-offset: 2px;
}

body.page-builder .builder-preview {
  border-left: 1px solid #d8dae2;
  background: var(--editor-canvas) !important;
}

body.page-builder .preview-header {
  border-bottom: 1px solid #dfe1e7 !important;
  background: var(--editor-canvas-raised);
  color: var(--editor-ink);
  box-shadow: 0 1px 3px rgba(35, 32, 48, .04);
}

body.page-builder .preview-header-title {
  color: var(--editor-ink);
}

body.page-builder .preview-header-meta {
  color: #6d6a76;
}

body.page-builder .builder-more-link {
  color: #5e5b68;
}

body.page-builder .builder-more-link:hover {
  background: var(--editor-violet-soft);
  color: var(--editor-violet-dark);
}

body.page-builder .builder-more-link:focus-visible {
  outline-color: var(--editor-violet);
}

body.page-builder .zoom-controls {
  border: 1px solid #dedfe6;
  background: #f2f3f6;
  box-shadow: none;
}

body.page-builder .preview-header button[data-zoom],
body.page-builder .preview-header #zoomLabel {
  border: 0;
  background: transparent;
  color: #292731;
}

body.page-builder .preview-header button[data-zoom]:hover {
  background: #e4e5eb;
}

body.page-builder #previewBody,
body.page-builder .preview-body {
  background: var(--editor-canvas) !important;
  background-image: none !important;
}

body.page-builder .page-topline {
  color: #666370;
}

body.page-builder .page-pill {
  border-color: #d6d8e0;
  background: #fff;
  color: #4e4b57;
  box-shadow: 0 1px 3px rgba(35, 32, 48, .06);
}

body.page-builder .preview-frame-wrap,
body.page-builder #previewFrameWrap {
  border: 1px solid rgba(45, 42, 60, .12);
  box-shadow: 0 8px 20px rgba(35, 32, 48, .14);
}

body.page-builder .preview-frame-wrap:hover,
body.page-builder #previewFrameWrap:hover {
  box-shadow: 0 12px 26px rgba(35, 32, 48, .17);
}

@media (max-width: 1100px) {
  body.page-builder #builder.builder-fullbleed,
  body.page-builder .builder-shell,
  body.page-builder .builder-preview {
    background: var(--editor-canvas) !important;
  }

  body.page-builder .builder-panel {
    background: var(--editor-panel) !important;
  }

  body.page-builder .editor-mobile-nav {
    border-top: 1px solid #dedfe6;
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 -3px 10px rgba(35, 32, 48, .07);
  }
}

/* Desktop preview focus is intentionally last so it wins over the editor's
   legacy layout layers and turns the Preview rail action into a real mode. */
@media (min-width: 1101px) {
  body.page-builder.is-desktop-preview .builder-shell {
    grid-template-columns: 80px minmax(0, 1fr);
  }

  body.page-builder.is-desktop-preview .builder-panel {
    grid-template-columns: 80px 0;
  }

  body.page-builder.is-desktop-preview .builder-panel > .panel-scroll,
  body.page-builder.is-desktop-preview .editor-guided-footer {
    display: none !important;
  }

  body.page-builder.is-desktop-preview .builder-preview {
    border-left: 0;
  }
}

/* Focused template catalog + progressive help -------------------------- */
.page-builder .template-library-panel {
  padding-top: 6px;
}

.page-builder .template-library {
  container-type: inline-size;
}

.page-builder .template-library > .subcard-head {
  align-items: center;
  margin-bottom: 12px;
}

.page-builder .template-library .subcard-title {
  font-size: 14px;
  letter-spacing: 0;
  text-transform: none;
}

.page-builder .template-catalog-toolbar {
  grid-template-columns: minmax(0, 1fr) 132px;
  margin: 0 0 8px;
}

.page-builder .template-catalog-meta {
  min-height: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
  color: #5f6472;
  font-size: 11px;
  font-weight: 650;
}

.page-builder .template-catalog-progress {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  color: #69677a;
  font-size: 10px;
  font-weight: 650;
  white-space: nowrap;
}

.page-builder .template-catalog-progress::before {
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #7c6df2;
  box-shadow: 0 0 0 3px rgba(124, 109, 242, .12);
  content: "";
}

.page-builder .template-catalog-progress.is-ready::before {
  background: #1b956f;
  box-shadow: 0 0 0 3px rgba(27, 149, 111, .12);
}

.page-builder .template-catalog-progress-track {
  width: 54px;
  height: 4px;
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 999px;
  background: #e8e7ee;
}

.page-builder .template-catalog-progress-track > span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: #6555e8;
  transition: width 180ms ease;
}

.page-builder .template-catalog-progress.is-ready .template-catalog-progress-track > span {
  background: #1b956f;
}

.page-builder .template-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  content-visibility: auto;
  contain: layout paint style;
}

.page-builder .template-card {
  position: relative;
  min-width: 0;
  padding: 6px 6px 9px;
  overflow: hidden;
  border: 1px solid #dedfe7;
  border-radius: 12px;
  background: #fff;
  box-shadow: none;
  content-visibility: auto;
  contain: layout paint style;
  contain-intrinsic-size: 190px 300px;
  transition: border-color 180ms cubic-bezier(.16, 1, .3, 1),
              background-color 180ms cubic-bezier(.16, 1, .3, 1),
              transform 180ms cubic-bezier(.16, 1, .3, 1);
}

.page-builder .template-card:hover {
  border-color: #aaa5d9;
  background: #faf9ff;
  transform: translateY(-1px);
}

.page-builder .template-card:focus-visible {
  outline: 3px solid rgba(79, 70, 229, .2);
  outline-offset: 2px;
}

.page-builder .template-card.is-active {
  border-color: #5548db;
  background: #f7f6ff;
  box-shadow: 0 0 0 2px rgba(85, 72, 219, .12);
  transform: none;
}

.page-builder .template-card.is-loading::after {
  content: "Applying";
  position: absolute;
  inset: 8px 8px auto auto;
  padding: 4px 7px;
  border-radius: 999px;
  background: #272044;
  color: #fff;
  font-size: 9px;
  font-weight: 750;
}

.page-builder .template-card.is-loading::before {
  position: absolute;
  z-index: 5;
  inset: auto auto 0 0;
  width: var(--template-apply-progress, 8%);
  height: 3px;
  border-radius: 0 999px 999px 0;
  background: #5f50e4;
  content: "";
  transition: width 180ms cubic-bezier(.16, 1, .3, 1);
}

.page-builder .template-thumb {
  position: relative;
  aspect-ratio: 210 / 297;
  border: 0;
  border-radius: 8px;
  background: #ececf1;
}

.page-builder .template-thumb::before {
  position: absolute;
  inset: 0;
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(100deg, #ececf1 20%, #f7f7fa 42%, #ececf1 64%);
  background-size: 220% 100%;
  animation: template-skeleton 1.5s ease-in-out infinite;
}

.page-builder .template-thumb.is-loaded::before,
.page-builder .template-thumb.is-error::before {
  display: none;
}

.page-builder .template-thumb img {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: #fff;
  object-fit: contain;
  object-position: top center;
  opacity: 0;
  transition: opacity 160ms ease;
}

.page-builder .template-thumb.is-loaded img {
  opacity: 1;
}

.page-builder .template-thumb-fallback {
  position: absolute;
  z-index: 1;
  inset: 0;
  display: none;
  place-items: center;
  padding: 16px;
  color: #787586;
  font-size: 10px;
  font-weight: 650;
  text-align: center;
}

.page-builder .template-thumb.is-error .template-thumb-fallback {
  display: grid;
}

.page-builder .template-name {
  width: 100%;
  margin-top: 8px;
  overflow: hidden;
  color: #23202b;
  font-size: 11px;
  font-weight: 750;
  line-height: 1.3;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.page-builder .template-tagline {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.page-builder .template-grid-skeleton {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.page-builder .template-grid-skeleton span {
  display: block;
  aspect-ratio: 210 / 325;
  border-radius: 12px;
  background: linear-gradient(100deg, #ececf1 20%, #f7f7fa 42%, #ececf1 64%);
  background-size: 220% 100%;
  animation: template-skeleton 1.5s ease-in-out infinite;
}

@keyframes template-skeleton {
  to { background-position: -220% 0; }
}

.page-builder .ui-info-trigger {
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  width: 19px;
  height: 19px;
  margin-left: 6px;
  padding: 0;
  border: 1px solid #b9b8c4;
  border-radius: 50%;
  background: #fff;
  color: #5c5967;
  font: 700 11px/1 system-ui, sans-serif;
  cursor: help;
  vertical-align: middle;
  transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease;
}

.page-builder .ui-info-trigger:hover,
.page-builder .ui-info-trigger:focus-visible,
.page-builder .ui-info-trigger[aria-expanded="true"] {
  border-color: #5548db;
  background: #f1efff;
  color: #493bd0;
}

.page-builder .ui-info-trigger:focus-visible {
  outline: 3px solid rgba(85, 72, 219, .18);
  outline-offset: 2px;
}

.ui-info-tooltip {
  position: fixed;
  z-index: 70;
  width: max-content;
  max-width: min(280px, calc(100vw - 24px));
  padding: 9px 11px;
  border-radius: 9px;
  background: #25212f;
  color: #fff;
  box-shadow: 0 6px 8px rgba(23, 19, 33, .2);
  font: 500 12px/1.45 system-ui, sans-serif;
  text-wrap: pretty;
  pointer-events: none;
}

.ui-info-tooltip[hidden] {
  display: none;
}

.page-builder [data-info-converted="1"] {
  display: none !important;
}

.page-builder .subcard-head > .ui-info-trigger,
.page-builder .editor-command-copy > .ui-info-trigger,
.page-builder .editor-design-intro > .ui-info-trigger {
  align-self: center;
}

.page-builder .settings-switch-copy {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}

.page-builder .field-label-row {
  align-items: center;
}

.page-builder .builder-preview.is-template-loading .preview-inner {
  opacity: .72;
  transition: opacity 160ms ease;
}

.page-builder .template-apply-progress {
  flex: 0 0 auto;
  margin: 0 2px 7px;
  padding: 8px 10px;
  border: 1px solid #dad7f5;
  border-radius: 10px;
  background: #f8f7ff;
  color: #393450;
  box-shadow: 0 5px 14px rgba(38, 31, 83, .06);
}

.page-builder .template-apply-progress[hidden] {
  display: none;
}

.page-builder .template-apply-progress-copy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
  font-size: 10px;
  font-weight: 680;
}

.page-builder .template-apply-progress-copy strong {
  color: #5144d3;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}

.page-builder .template-apply-progress-track {
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: #e3e0f7;
}

.page-builder .template-apply-progress-track > span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #5a4ce0, #7c6df2);
  transition: width 180ms cubic-bezier(.16, 1, .3, 1);
}

.page-builder .template-apply-progress.is-ready {
  border-color: #cce9de;
  background: #f3fbf7;
}

.page-builder .template-apply-progress.is-ready .template-apply-progress-copy strong {
  color: #177c5e;
}

.page-builder .template-apply-progress.is-ready .template-apply-progress-track > span {
  background: #1b956f;
}

/* Compact template-aware design workspace */
body.page-builder .panel-scroll[data-panel="customize"] .design-toolbar {
  position: sticky;
  top: 0;
  z-index: 12;
  min-height: 64px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px 14px;
  padding: 10px 18px;
  box-shadow: 0 1px 0 var(--editor-line);
}

.page-builder .design-toolbar-heading {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 5px;
}

.page-builder .design-toolbar-heading .editor-panel-kicker {
  display: none;
}

body.page-builder .design-toolbar-heading h2 {
  overflow: hidden;
  font-size: .95rem;
  line-height: 1.2;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.page-builder .design-toolbar-heading > .ui-info-trigger {
  flex: 0 0 auto;
  margin-left: 2px;
}

.page-builder .design-toolbar .design-command-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  margin: 0;
}

.page-builder .design-toolbar .design-save-state {
  font-size: .625rem;
  line-height: 1.25;
  white-space: nowrap;
}

.page-builder .design-toolbar .design-reset-button {
  min-height: 30px;
  padding-inline: 9px;
}

.page-builder .design-panel-section {
  border-bottom: 0;
}

body.page-builder .panel-scroll[data-panel="customize"] .design-panel-section > .panel-section-body {
  padding: 0 18px 24px;
}

.page-builder .design-preset-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.page-builder .design-preset-button {
  min-height: 68px;
  grid-template-columns: 1fr;
  justify-items: center;
  gap: 5px;
  padding: 8px 5px 7px;
  text-align: center;
}

.page-builder .design-preset-icon {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  font-size: .6875rem;
}

.page-builder .design-preset-button strong {
  font-size: .6875rem;
}

.page-builder .design-preset-button small {
  margin-top: 1px;
  font-size: .5625rem;
}

.page-builder [data-template-color-chip]:first-child {
  box-shadow: inset 0 0 0 2px #fff, 0 0 0 1px var(--editor-line-strong);
}

.page-builder .template-color-editor {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 7px;
}

.page-builder .template-color-token {
  min-width: 0;
  min-height: 48px;
  display: flex;
  align-items: stretch;
  overflow: hidden;
  border: 1px solid var(--editor-line-strong);
  border-radius: 9px;
  background: var(--editor-white);
  transition: border-color 160ms ease, background-color 160ms ease;
}

.page-builder .template-color-token:hover {
  border-color: #a9a1ef;
  background: #fcfbff;
}

.page-builder .template-color-token:focus-within {
  border-color: var(--editor-violet);
  outline: 2px solid rgba(85, 72, 219, .15);
  outline-offset: 1px;
}

.page-builder .template-color-picker {
  position: relative;
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 8px;
  cursor: pointer;
}

.page-builder .template-color-picker input[type="color"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  opacity: 0;
  cursor: pointer;
}

.page-builder .template-color-swatch {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  border: 2px solid #fff;
  border-radius: 8px;
  box-shadow: 0 0 0 1px var(--editor-line-strong);
}

.page-builder .template-color-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.page-builder .template-color-copy strong {
  overflow: hidden;
  color: var(--editor-ink);
  font-size: .6875rem;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.page-builder .template-color-copy small {
  color: var(--editor-muted);
  font-size: .5625rem;
  font-weight: 750;
  letter-spacing: .035em;
  line-height: 1.2;
}

.page-builder .template-color-reset {
  width: 30px;
  flex: 0 0 30px;
  border: 0;
  border-left: 1px solid var(--editor-line);
  background: transparent;
  color: var(--editor-muted);
  font: 800 .8125rem/1 system-ui, sans-serif;
  cursor: pointer;
}

.page-builder .template-color-reset:hover {
  background: var(--editor-violet-soft);
  color: var(--editor-violet-dark);
}

.page-builder .template-color-reset:focus-visible {
  outline: 2px solid var(--editor-violet);
  outline-offset: -3px;
}

.page-builder .template-color-loading {
  grid-column: 1 / -1;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--editor-muted);
  font-size: .6875rem;
  font-weight: 700;
}

.page-builder .template-color-loading-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--editor-violet);
  animation: template-color-pulse 1.2s ease-in-out infinite;
}

@keyframes template-color-pulse {
  0%, 100% { opacity: .4; transform: scale(.8); }
  50% { opacity: 1; transform: scale(1); }
}

@container (max-width: 350px) {
  .page-builder .template-catalog-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .page-builder .template-catalog-progress {
    width: 100%;
    justify-content: flex-start;
  }

  .page-builder .template-catalog-progress-track {
    flex: 1 1 auto;
  }

  body.page-builder .panel-scroll[data-panel="customize"] .design-toolbar {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .page-builder .design-toolbar .design-command-bar {
    justify-content: space-between;
  }

  .page-builder .design-preset-button small {
    display: none;
  }

  .page-builder .design-preset-button {
    min-height: 58px;
  }
}

@container (max-width: 330px) {
  .page-builder .template-grid,
  .page-builder .template-grid-skeleton {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
}

/* Unified Edit workspace ------------------------------------------------ */
.page-builder .edit-design-panel {
  padding-top: 10px;
}

.page-builder .edit-control-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.page-builder .edit-control-card {
  min-width: 0;
  margin: 0;
  padding: 11px;
  border: 1px solid var(--editor-line-strong);
  border-radius: 10px;
  background: var(--editor-white);
}

.page-builder .edit-font-card,
.page-builder .edit-section-title-card {
  grid-column: 1 / -1;
}

.page-builder .edit-control-card .subcard-head,
.page-builder .edit-color-card .subcard-head,
.page-builder .edit-photo-footer-card .subcard-head {
  min-height: 20px;
  align-items: center;
  margin-bottom: 7px;
}

.page-builder .edit-control-card .subcard-title,
.page-builder .edit-color-card .subcard-title,
.page-builder .edit-photo-footer-card .subcard-title {
  font-size: .75rem;
}

.page-builder .edit-control-card .slider-row {
  margin-top: 3px;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px;
}

.page-builder .edit-control-card .slider-value {
  min-width: 42px;
  padding-inline: 6px;
  font-size: .625rem;
}

.page-builder .edit-section-title-card .chip-toggle {
  min-height: 38px;
  box-shadow: none;
}

.page-builder .edit-color-card,
.page-builder .edit-photo-footer-card {
  margin-top: 10px;
  padding-block: 13px;
}

.page-builder .edit-color-card .template-color-editor {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.page-builder .edit-color-card .template-color-editor.is-collapsed .template-color-token:nth-child(n + 7) {
  display: none;
}

.page-builder .edit-color-card .template-color-token {
  min-height: 42px;
}

.page-builder .edit-color-card .template-color-picker {
  gap: 7px;
  padding: 6px 7px;
}

.page-builder .edit-color-card .template-color-swatch {
  width: 26px;
  height: 26px;
  border-radius: 7px;
}

.page-builder .edit-color-card .template-color-reset {
  width: 28px;
  flex-basis: 28px;
}

.page-builder .edit-color-more {
  min-height: 34px;
  display: block;
  margin: 8px auto 0;
  padding: 5px 10px;
  border: 0;
  border-radius: 7px;
  background: var(--editor-violet-soft);
  color: var(--editor-violet-dark);
  font: inherit;
  font-size: .625rem;
  font-weight: 800;
  cursor: pointer;
}

.page-builder .edit-color-more[hidden] {
  display: none;
}

.page-builder .edit-color-more:hover {
  background: #e6e2ff;
}

.page-builder .edit-color-more:focus-visible {
  outline: 2px solid var(--editor-violet);
  outline-offset: 2px;
}

.page-builder .edit-photo-toggle-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.page-builder .edit-photo-toggle-grid .toggle-row {
  min-width: 0;
  margin: 0;
}

.page-builder .edit-photo-toggle-grid .chip-toggle {
  width: 100%;
  min-height: 38px;
  justify-content: center;
  padding: 7px 8px;
  border-radius: 8px;
  box-shadow: none;
  white-space: nowrap;
}

.page-builder .edit-photo-field {
  margin: 9px 0 0;
}

.page-builder .edit-photo-field input[type="file"] {
  min-height: 36px;
  padding: 6px 7px;
  font-size: .625rem;
}

.page-builder .edit-photo-footer-card .photo-mini {
  gap: 8px;
  margin-top: 7px;
}

.page-builder .edit-photo-footer-card .photo-actions {
  flex-direction: row;
  gap: 6px;
}

.page-builder .edit-photo-footer-card .btn-mini {
  min-height: 34px;
  padding: 6px 8px;
  font-size: .625rem;
}

.page-builder .edit-photo-footer-card .panel-note {
  margin-top: 7px;
  padding: 7px 8px;
  font-size: .625rem;
  line-height: 1.35;
}

@media (max-width: 520px) {
  .page-builder .edit-design-panel {
    padding-top: 8px;
  }

  .page-builder .edit-control-grid {
    gap: 7px;
  }

  .page-builder .edit-control-card {
    padding: 9px;
  }

  .page-builder .edit-color-card,
  .page-builder .edit-photo-footer-card {
    margin-top: 8px;
    padding-block: 10px;
  }

  .page-builder .edit-color-card .template-color-copy small {
    display: none;
  }

  .page-builder .edit-color-card .template-color-editor {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-builder .template-grid,
  .page-builder .template-grid-skeleton {
    gap: 8px;
  }

  .page-builder .template-card {
    padding: 5px 5px 7px;
    border-radius: 10px;
    contain-intrinsic-size: 140px 220px;
  }

  .page-builder .template-name {
    margin-top: 6px;
    font-size: .625rem;
  }
}

@media (max-width: 360px) {
  .page-builder .template-catalog-toolbar {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .page-builder .edit-color-card .template-color-copy small {
    display: none;
  }

  .page-builder .edit-color-card .template-color-picker {
    gap: 5px;
    padding-inline: 5px;
  }

  .page-builder .edit-color-card .template-color-swatch {
    width: 22px;
    height: 22px;
  }

  .page-builder .edit-color-card .template-color-copy strong {
    font-size: .625rem;
  }

  .page-builder .edit-color-card .template-color-reset {
    width: 25px;
    flex-basis: 25px;
  }
}

@media (pointer: coarse) {
  .page-builder .edit-color-more,
  .page-builder .edit-photo-toggle-grid .chip-toggle,
  .page-builder .edit-photo-field input[type="file"],
  .page-builder .edit-photo-footer-card .btn-mini,
  .page-builder .edit-color-card .template-color-token {
    min-height: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-builder .template-card,
  .page-builder .ui-info-trigger,
  .page-builder .builder-preview.is-template-loading .preview-inner,
  .page-builder .template-catalog-progress-track > span,
  .page-builder .template-apply-progress-track > span,
  .page-builder .template-card.is-loading::before {
    transition: none;
  }

  .page-builder .template-thumb::before,
  .page-builder .template-grid-skeleton span,
  .page-builder .template-color-loading-dot {
    animation: none;
  }
}
/* Editorial guidance below the builder. A single padded surface creates a clear
   transition from the dense editor into slower, readable supporting content. */
.builder-seo-content{
  --builder-seo-pad:clamp(40px,5vw,64px);
  display:block!important;
  width:min(1240px,calc(100% - 64px))!important;
  max-width:1240px!important;
  margin:clamp(48px,6vw,80px) auto!important;
  padding:0!important;
  overflow:hidden;
  border-radius:var(--pa-radius-lg,16px);
  background:#fff;
  box-shadow:0 4px 8px rgba(16,24,40,.08);
  color:#344054;
  isolation:isolate;
}

.builder-seo-content>section{
  padding:var(--builder-seo-pad);
}

.builder-seo-content>section+section{
  border-top:1px solid var(--pa-line,#dfe4ec);
}

/* The global builder header is sticky and fixed-height. Content headers must
   explicitly return to normal document flow. */
body.page-builder .builder-seo-content header{
  position:static!important;
  inset:auto!important;
  z-index:auto!important;
  width:auto!important;
  height:auto!important;
  min-height:0!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  background:transparent!important;
  box-shadow:none!important;
  backdrop-filter:none!important;
}

.builder-seo-content h2{
  max-width:19ch;
  margin:0;
  color:#101828;
  font-size:clamp(1.9rem,2.7vw,2.4rem);
  line-height:1.14;
  letter-spacing:-.03em;
  text-wrap:balance;
}

.builder-seo-content p{
  max-width:68ch;
  margin:0;
  color:#475467;
  font-size:1rem;
  line-height:1.75;
  text-wrap:pretty;
}

.builder-seo-label{
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin-bottom:16px;
  color:#4338ca;
  font-size:.8rem;
  font-weight:800;
}

.builder-seo-label::before{
  content:"";
  width:8px;
  height:8px;
  flex:0 0 8px;
  border-radius:50%;
  background:#4f46e5;
}

.builder-seo-intro{
  display:grid;
  grid-template-columns:minmax(0,.82fr) minmax(0,1.18fr);
  gap:clamp(40px,6vw,80px);
  align-items:start;
}

.builder-seo-copy{
  display:grid;
  gap:16px;
}

.builder-seo-process{
  background:#f7f8fc;
}

.builder-seo-process>header{
  display:grid!important;
  grid-template-columns:minmax(0,1.15fr) minmax(280px,.85fr);
  gap:clamp(32px,5vw,64px)!important;
  align-items:end!important;
  margin-bottom:32px!important;
}

.builder-seo-process>header p{
  max-width:46ch;
}

.builder-seo-process ol{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:16px;
  margin:0;
  padding:0;
  background:transparent;
  list-style:none;
  counter-reset:builder-step;
}

.builder-seo-process li{
  display:grid;
  grid-template-columns:36px minmax(0,1fr);
  gap:6px 16px;
  min-width:0;
  padding:24px;
  border:1px solid var(--pa-line,#dfe4ec);
  border-radius:var(--pa-radius-md,12px);
  background:#fff;
  counter-increment:builder-step;
}

.builder-seo-process li::before{
  content:counter(builder-step);
  grid-row:1/span 2;
  display:grid;
  width:32px;
  height:32px;
  place-items:center;
  border-radius:50%;
  background:#eef2ff;
  color:#4338ca;
  font-size:.8rem;
  font-weight:850;
}

.builder-seo-process strong{
  color:#101828;
  font-size:1rem;
  line-height:1.45;
}

.builder-seo-process span{
  color:#475467;
  line-height:1.65;
  text-wrap:pretty;
}

.builder-seo-resources{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(300px,.8fr);
  gap:clamp(40px,6vw,72px);
  align-items:start;
}

.builder-seo-resources h2{
  margin-bottom:16px;
}

.builder-seo-resources nav{
  display:grid;
  align-content:start;
  overflow:hidden;
  border:1px solid var(--pa-line,#dfe4ec);
  border-radius:var(--pa-radius-md,12px);
  background:#fff;
}

.builder-seo-resources nav a{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  min-height:52px;
  padding:13px 18px;
  color:#3730a3;
  font-weight:750;
  line-height:1.4;
  text-decoration:none;
  transition:background-color 180ms var(--pa-ease-out,cubic-bezier(.2,.8,.2,1)),color 180ms var(--pa-ease-out,cubic-bezier(.2,.8,.2,1));
}

.builder-seo-resources nav a+a{
  border-top:1px solid var(--pa-line,#dfe4ec);
}

.builder-seo-resources nav a::after{
  content:"→";
  flex:0 0 auto;
  color:#667085;
  font-weight:600;
}

.builder-seo-resources nav a:hover{
  background:#f5f7ff;
  color:#312e81;
}

.builder-seo-resources nav a:focus-visible{
  position:relative;
  z-index:1;
  outline:3px solid rgba(79,70,229,.28);
  outline-offset:-3px;
}

@media(max-width:900px){
  .builder-seo-content{
    --builder-seo-pad:36px;
    width:min(100% - 32px,760px)!important;
    margin:40px auto!important;
  }

  .builder-seo-intro,
  .builder-seo-resources,
  .builder-seo-process>header{
    grid-template-columns:1fr;
    gap:24px!important;
  }

  .builder-seo-content h2{
    max-width:22ch;
    font-size:2rem;
  }

  .builder-seo-process ol{
    grid-template-columns:1fr;
  }
}

@media(max-width:520px){
  .builder-seo-content{
    --builder-seo-pad:24px;
    width:calc(100% - 24px)!important;
    margin:28px auto!important;
    border-radius:14px;
  }

  .builder-seo-content h2{
    font-size:1.7rem;
    line-height:1.18;
    letter-spacing:-.025em;
  }

  .builder-seo-content p,
  .builder-seo-process span{
    font-size:.95rem;
  }

  .builder-seo-process li{
    grid-template-columns:32px minmax(0,1fr);
    gap:5px 12px;
    padding:20px;
  }

  .builder-seo-process li::before{
    width:30px;
    height:30px;
  }
}

/* Homepage guide index uses editorial rows instead of another identical card grid. */
.home-guide-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1px;overflow:hidden;border-radius:14px;background:#dfe4ec}
.home-guide-list a{display:grid;grid-template-columns:minmax(120px,.35fr) minmax(0,1fr);gap:5px 18px;padding:20px 22px;background:#fff;color:#101828;text-decoration:none}
.home-guide-list a:hover{background:#f5f7ff}
.home-guide-list span{grid-row:1/span 2;color:#4f46e5;font-size:.75rem;font-weight:800}
.home-guide-list strong{font-size:.96rem;line-height:1.35}
.home-guide-list small{color:#667085;font-size:.78rem}
@media(max-width:760px){.home-guide-list{grid-template-columns:1fr}.home-guide-list a{grid-template-columns:1fr}.home-guide-list span{grid-row:auto}}

/* Shared FAQ system: editorial index on the left, compact disclosure rows on the right. */
.pa-faq-layout{
  display:grid;
  grid-template-columns:minmax(240px,.72fr) minmax(0,1.28fr);
  gap:clamp(32px,5vw,72px);
  align-items:start;
}

.pa-faq-intro{
  position:sticky;
  top:96px;
  align-self:start;
}

.pa-faq-intro .section-title,
.pa-faq-intro h2{
  max-width:15ch;
  margin:0;
  color:#101828;
  font-size:clamp(1.9rem,3.2vw,2.8rem);
  line-height:1.08;
  letter-spacing:-.035em;
  text-wrap:balance;
}

.pa-faq-intro .section-desc,
.pa-faq-intro>p{
  max-width:38ch;
  margin:16px 0 0;
  color:#475467;
  line-height:1.7;
  text-wrap:pretty;
}

.pa-faq-contact{
  display:inline-flex;
  align-items:center;
  gap:8px;
  min-height:44px;
  margin-top:18px;
  color:#3730a3;
  font-size:.9rem;
  font-weight:800;
  text-decoration:none;
}

.pa-faq-contact span{
  transition:transform 180ms var(--pa-ease-out, cubic-bezier(.2,.8,.2,1));
}

.pa-faq-contact:hover span{
  transform:translateX(3px);
}

.pa-faq-contact:focus-visible,
.pa-faq-list summary:focus-visible{
  outline:3px solid rgba(79,70,229,.28);
  outline-offset:4px;
  border-radius:6px;
}

.pa-faq-list{
  display:block!important;
  min-width:0;
  border-top:1px solid #cfd5df;
  counter-reset:none;
}

.page-home .pa-faq-list{
  gap:0;
}

.pa-faq-list details,
.page-home .pa-faq-list .faq-item{
  margin:0;
  padding:0;
  border:0;
  border-bottom:1px solid #dfe4ec;
  border-radius:0;
  background:transparent;
  box-shadow:none;
  overflow:visible;
}

.pa-faq-list summary,
.page-home .pa-faq-list .faq-item summary{
  position:relative;
  display:block;
  min-height:66px;
  padding:21px 54px 21px 0;
  color:#101828;
  font-size:1rem;
  font-weight:800;
  line-height:1.45;
  list-style:none;
  cursor:pointer;
  transition:color 180ms var(--pa-ease-out, cubic-bezier(.2,.8,.2,1)), padding-left 180ms var(--pa-ease-out, cubic-bezier(.2,.8,.2,1));
}

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

.pa-faq-list summary::after,
.page-home .pa-faq-list .faq-plus{
  content:"+";
  position:absolute;
  top:16px;
  right:0;
  display:grid;
  width:34px;
  height:34px;
  place-items:center;
  border:1px solid #cfd5df;
  border-radius:50%;
  background:#fff;
  color:#475467;
  font-size:1.15rem;
  font-weight:500;
  line-height:1;
  transition:transform 200ms var(--pa-ease-out, cubic-bezier(.2,.8,.2,1)), background-color 200ms var(--pa-ease-out, cubic-bezier(.2,.8,.2,1)), border-color 200ms var(--pa-ease-out, cubic-bezier(.2,.8,.2,1)), color 200ms var(--pa-ease-out, cubic-bezier(.2,.8,.2,1));
}

.page-home .pa-faq-list summary::after{
  content:none;
}

.page-home .pa-faq-list .faq-plus{
  flex:0 0 34px;
}

.pa-faq-list details[open] summary,
.pa-faq-list summary:hover{
  color:#3730a3;
}

.pa-faq-list details[open] summary::after,
.page-home .pa-faq-list details[open] .faq-plus{
  transform:rotate(45deg);
  border-color:#c7d2fe;
  background:#eef2ff;
  color:#3730a3;
}

.pa-faq-list details>p,
.page-home .pa-faq-list .faq-a{
  max-width:68ch;
  margin:0;
  padding:0 54px 22px 0;
  color:#475467;
  font-size:.94rem;
  line-height:1.75;
  text-wrap:pretty;
}

.page-home #faqs{
  scroll-margin-top:90px;
}

.page-home #faqs .section-kicker{
  margin-bottom:12px;
}

.builder-seo-faq.pa-faq-layout{
  gap:clamp(40px,6vw,72px);
  padding:var(--builder-seo-pad);
  background:#fbfcff;
}

.builder-seo-faq.pa-faq-layout>.pa-faq-intro{
  display:block;
  position:static;
  margin:0;
}

.builder-seo-faq.pa-faq-layout>.pa-faq-intro h2{
  max-width:18ch;
  font-size:clamp(1.9rem,2.7vw,2.4rem);
  line-height:1.14;
  letter-spacing:-.03em;
}

.builder-seo-faq.pa-faq-layout>.pa-faq-intro>p{
  max-width:38ch;
}

.builder-seo-faq.pa-faq-layout>.pa-faq-list{
  display:block!important;
}

@media(max-width:900px){
  .pa-faq-layout{
    grid-template-columns:1fr;
    gap:24px;
  }

  .pa-faq-intro{
    position:static;
  }

  .pa-faq-intro .section-title,
  .pa-faq-intro h2{
    max-width:20ch;
    font-size:1.85rem;
  }

  .pa-faq-contact{
    margin-top:10px;
  }

  .builder-seo-faq.pa-faq-layout>.pa-faq-intro h2{
    max-width:22ch;
    font-size:2rem;
  }
}

@media(max-width:480px){
  .pa-faq-layout{
    gap:18px;
  }

  .pa-faq-list summary,
  .page-home .pa-faq-list .faq-item summary{
    min-height:60px;
    padding:18px 46px 18px 0;
    font-size:.94rem;
  }

  .pa-faq-list summary::after,
  .page-home .pa-faq-list .faq-plus{
    top:14px;
    width:32px;
    height:32px;
  }

  .pa-faq-list details>p,
  .page-home .pa-faq-list .faq-a{
    padding:0 40px 18px 0;
    font-size:.9rem;
  }

  .builder-seo-faq.pa-faq-layout>.pa-faq-intro h2{
    font-size:1.7rem;
  }
}

@media(prefers-reduced-motion:reduce){
  .pa-faq-contact span,
  .pa-faq-list summary,
  .pa-faq-list summary::after,
  .page-home .pa-faq-list .faq-plus{
    transition:none;
  }
}
