:root {
  --editor-bg: var(--nv-page-bg, #e2e7d5);
  --panel-bg: var(--nv-card-bg, #fffaf0);
  --panel-border: var(--nv-border, #ccd3bd);
  --ink: var(--green-950, #263629);
  --muted: var(--nv-muted, #64715a);
  --accent: var(--nv-primary, #53755b);
  --accent-soft: var(--nv-primary-soft, #e7ead7);
  --editor-warm-surface: var(--nv-warm-surface, #efe4d2);
  --editor-sidebar-surface: var(--nv-sidebar-bg, #cbd5bd);
  --editor-font: var(--nv-font, "Aptos", "Segoe UI", system-ui, sans-serif);
  --canvas-shadow: 0 20px 48px rgba(38, 54, 41, 0.13);
}

body.page-builder-mode .site-shell {
  display: block;
  min-height: 100vh;
}

body.public-builder-mode #publicSiteCanvas {
  min-height: 100vh;
}

body.page-builder-mode .site-shell > .topbar {
  display: none;
}

body.public-builder-mode .site-shell > .topbar {
  display: none;
}

body.page-builder-mode .app-shell {
  min-height: 100vh;
  width: 100%;
}

.back-admin {
  align-items: center;
  background: #53755b;
  border: 1px solid #435f4a;
  border-radius: 10px;
  box-shadow: 0 5px 12px rgba(38, 54, 41, .18);
  color: #fff;
  display: inline-flex;
  font-size: 13px;
  font-weight: 900;
  gap: 10px;
  min-height: 42px;
  min-width: 146px;
  padding: 10px 15px;
  text-decoration: none;
  transition: background .15s ease, border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.back-admin:hover,
.back-admin:focus-visible {
  background: #435f4a;
  border-color: #354e3b;
  box-shadow: 0 8px 18px rgba(38, 54, 41, .22);
  color: #fff;
  transform: translateX(-2px);
}

.back-admin i {
  font-size: 18px;
}

.save-status {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.save-status.text-warning { color: #946200 !important; }
.save-status.text-danger { color: #b42318 !important; max-width: 190px; overflow: hidden; text-overflow: ellipsis; }

/* PDF-inspired editor chrome: dense, calm and high-contrast. */
body.page-builder-mode {
  --editor-bg: #f4faf6;
  --panel-bg: #ffffff;
  --panel-border: #d9e5df;
  --ink: #21343a;
  --muted: #65767b;
  --accent: #08724f;
  --accent-soft: #edf9f1;
  --editor-warm-surface: #f8fbf9;
  --editor-sidebar-surface: #edf9f1;
  --canvas-shadow: 0 20px 48px rgba(9, 66, 49, .13);
}

body.page-builder-mode .editor-sidebar {
  color: #21343a;
}

body.page-builder-mode .brand-lockup { border-bottom-color: #d9e5df; }
body.page-builder-mode .brand-lockup strong { color: #0d3340; }
body.page-builder-mode .brand-lockup small { color: #65767b; }
body.page-builder-mode .brand-mark { background: #08724f; border: 1px solid rgba(255,255,255,.15); }
body.page-builder-mode .sidebar-section { border-bottom-color: #d9e5df; }
body.page-builder-mode .section-title { color: #65767b; }
body.page-builder-mode .page-item,
body.page-builder-mode .palette-item,
body.page-builder-mode .template-item { background: #f8fbf9; border-color: #d9e5df; color: #21343a; }
body.page-builder-mode .page-item:hover,
body.page-builder-mode .palette-item:hover,
body.page-builder-mode .template-item:hover { border-color: #08724f; box-shadow: 0 8px 20px rgba(9,66,49,.08); }
body.page-builder-mode .page-item.active,
body.page-builder-mode .template-item.active { background: #edf9f1; border-color: #b8deca; color: #075d41; }
body.page-builder-mode .template-item small { color: #65767b; }
body.page-builder-mode .inspector-panel { background: #f8fbf9; }
body.page-builder-mode .topbar { background: #fff; border-color: #d9e5df; box-shadow: 0 5px 18px rgba(9,66,49,.06); }
body.page-builder-mode .back-admin { background: #0d3340; border-color: #0d3340; }
body.page-builder-mode .back-admin:hover,
body.page-builder-mode .back-admin:focus-visible { background: #08724f; border-color: #08724f; }
body.page-builder-mode .mode-switch { background: #edf9f1; border-color: #b8deca; }
body.page-builder-mode .mode-btn { color: #075d41; }
body.page-builder-mode .mode-btn.active,
body.page-builder-mode .topbar-actions .mode-btn.active { background: #08724f; color: #fff; }
body.page-builder-mode .browser-bar { background: #f4faf6; border-bottom-color: #d9e5df; }
body.page-builder-mode .address { border-color: #d9e5df; color: #65767b; }

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--editor-bg);
  color: var(--ink);
  font-family: var(--editor-font);
}

.app-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr) 320px;
  min-height: 100vh;
}

.editor-sidebar,
.inspector-panel {
  background: var(--panel-bg);
  border-color: var(--panel-border);
  min-height: 100vh;
  overflow-y: auto;
  padding: 18px;
}

.editor-sidebar {
  background: var(--editor-sidebar-surface);
  border-right: 1px solid var(--panel-border);
}

.inspector-panel {
  background: var(--editor-warm-surface);
  border-left: 1px solid var(--panel-border);
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--panel-border);
}

.brand-lockup small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #53755b;
  color: #fff;
}

.sidebar-section {
  padding: 18px 0;
  border-bottom: 1px solid var(--panel-border);
}

.section-title {
  color: #47634d;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.page-list,
.template-list {
  display: grid;
  gap: 8px;
}

.page-item,
.palette-item,
.template-item {
  align-items: center;
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  color: var(--ink);
  display: flex;
  gap: 10px;
  min-height: 42px;
  padding: 9px 10px;
  text-align: left;
  transition: 0.16s ease;
  width: 100%;
}

.page-item:hover,
.palette-item:hover,
.template-item:hover {
  border-color: #8fa184;
  box-shadow: 0 8px 20px rgba(38, 54, 41, 0.1);
}

.page-item.active,
.template-item.active {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: #263629;
}

.template-item {
  min-height: 56px;
}

.template-item span:last-child {
  display: grid;
  gap: 2px;
}

.template-item small {
  color: var(--muted);
  font-size: 11px;
}

.template-swatch {
  border: 1px solid #d8e0e8;
  border-radius: 8px;
  display: block;
  flex: 0 0 auto;
  height: 34px;
  width: 42px;
}

.template-swatch.template-studio {
  background: linear-gradient(135deg, #ffffff 0 48%, #dbeafe 48% 70%, #bbf7d0 70%);
}

.template-swatch.template-bold {
  background: linear-gradient(135deg, #111827 0 55%, #facc15 55% 74%, #ef4444 74%);
}

.template-swatch.template-editorial {
  background: linear-gradient(135deg, #fbf7ef 0 55%, #1f2937 55% 70%, #b45309 70%);
}

.template-swatch.template-neon {
  background: linear-gradient(135deg, #0f1020 0 50%, #22d3ee 50% 68%, #f472b6 68%);
}

.template-swatch.template-earth {
  background: linear-gradient(135deg, #eef2e6 0 50%, #53755b 50% 72%, #d08c60 72%);
}

.template-swatch.template-assessment {
  background: linear-gradient(135deg, #0d3340 0 55%, #08724f 55% 78%, #d8b15b 78%);
}

.block-palette {
  display: grid;
  gap: 8px;
}

.editor-main {
  min-width: 0;
  padding: 22px;
}

.topbar {
  align-items: center;
  background: var(--editor-warm-surface);
  border: 1px solid var(--panel-border);
  border-radius: 10px;
  box-shadow: 0 5px 18px rgba(31, 42, 55, .06);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin: 0 auto 18px;
  max-width: 1180px;
  padding: 10px 12px;
}

.topbar h1 {
  font-size: 22px;
  line-height: 1.2;
  margin: 2px 0 0;
}

.eyebrow {
  color: var(--muted);
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
  flex: 0 1 auto;
  max-width: 100%;
}

.viewport-switch {
  display: inline-flex;
  gap: 4px;
}

.topbar-actions > .btn,
.viewport-switch .btn {
  min-height: 38px;
}

.editor-save-button {
  min-width: 92px;
  white-space: nowrap;
}

.topbar-actions .active {
  background: var(--accent);
  color: #fff;
}

body.page-builder-mode .btn-primary,
body.page-builder-mode .btn-success,
body.page-builder-mode .editor-save-button {
  --bs-btn-bg: #53755b;
  --bs-btn-border-color: #53755b;
  --bs-btn-hover-bg: #435f4a;
  --bs-btn-hover-border-color: #435f4a;
  --bs-btn-active-bg: #354e3b;
  --bs-btn-active-border-color: #354e3b;
  background-color: #53755b;
  border-color: #53755b;
  color: #fff;
}

body.page-builder-mode .btn-outline-primary {
  --bs-btn-color: #435f4a;
  --bs-btn-border-color: #8fa184;
  --bs-btn-hover-bg: #53755b;
  --bs-btn-hover-border-color: #53755b;
  --bs-btn-active-bg: #53755b;
  --bs-btn-active-border-color: #53755b;
}

body.page-builder-mode .btn-dark {
  --bs-btn-bg: #64715a;
  --bs-btn-border-color: #64715a;
  --bs-btn-hover-bg: #4d5946;
  --bs-btn-hover-border-color: #4d5946;
}

body.page-builder-mode .viewport-switch .btn-light {
  --bs-btn-bg: #fffaf0;
  --bs-btn-border-color: #ccd3bd;
  --bs-btn-color: #435846;
  --bs-btn-hover-bg: #e7ead7;
  --bs-btn-hover-border-color: #aebba0;
}

.mode-switch {
  background: #d6dfc8;
  border: 1px solid #c1ccb5;
  border-radius: 8px;
  display: inline-flex;
  gap: 2px;
  padding: 3px;
}

.mode-btn {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 6px;
  color: #52614e;
  display: inline-flex;
  font-size: 13px;
  font-weight: 700;
  gap: 6px;
  min-height: 32px;
  padding: 0 10px;
}

.mode-btn.active {
  background: #fffaf0;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.12);
  color: #263629;
}

.topbar-actions .mode-btn.active {
  background: #fffaf0;
  color: #263629;
}

.app-shell.preview-mode {
  grid-template-columns: minmax(0, 1fr);
}

.app-shell.preview-mode .editor-sidebar,
.app-shell.preview-mode .inspector-panel {
  display: none;
}

.app-shell.preview-mode .editor-main {
  padding: 22px clamp(16px, 4vw, 40px);
}

.app-shell.preview-mode .topbar {
  max-width: 1320px;
}

.app-shell.preview-mode .canvas-frame:not(.mobile) {
  max-width: 1320px;
}

.canvas-frame {
  background: #fff;
  border-radius: 8px;
  box-shadow: var(--canvas-shadow);
  margin: 0 auto;
  max-width: 1180px;
  min-height: calc(100vh - 114px);
  overflow: hidden;
  transition: max-width 0.2s ease;
}

.canvas-frame.mobile {
  max-width: 430px;
}

.browser-bar {
  align-items: center;
  background: #f8fafc;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  gap: 7px;
  height: 42px;
  padding: 0 14px;
}

.browser-bar span {
  background: #cbd5e1;
  border-radius: 50%;
  display: block;
  height: 10px;
  width: 10px;
}

.browser-bar span:first-child {
  background: #fb7185;
}

.browser-bar span:nth-child(2) {
  background: #fbbf24;
}

.browser-bar span:nth-child(3) {
  background: #34d399;
}

.address {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  color: #64748b;
  flex: 1;
  font-size: 12px;
  margin-left: 8px;
  padding: 5px 10px;
}

.site-canvas {
  container-type: inline-size;
  min-height: 720px;
  overflow-wrap: anywhere;
}

.site-navbar {
  align-items: center;
  border-bottom: 1px solid #e8edf2;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 18px;
  padding: 18px clamp(20px, 5vw, 56px);
  position: relative;
}

.site-brand-row {
  align-items: center;
  display: flex;
  gap: 14px;
  justify-content: space-between;
  min-width: 180px;
}

.site-logo {
  font-weight: 800;
}

.site-menu-toggle {
  align-items: center;
  background: #fff;
  border: 1px solid #d9e2ec;
  border-radius: 8px;
  display: none;
  flex-direction: column;
  gap: 4px;
  height: 38px;
  justify-content: center;
  padding: 0;
  width: 42px;
}

.site-menu-toggle span {
  background: currentColor;
  border-radius: 999px;
  display: block;
  height: 2px;
  width: 18px;
}

.site-nav {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}

.site-nav-link,
.site-nav button {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 8px;
  color: #64748b;
  display: inline-flex;
  font-size: 14px;
  gap: 6px;
  padding: 8px 10px;
  text-decoration: none;
}

.site-nav-link:hover {
  background: #f8fafc;
  color: #111827;
}

.site-nav-link.active,
.site-nav button.active {
  background: #f1f5f9;
  color: #111827;
}

.site-nav-auth {
  align-items: center;
  background: var(--site-accent, #08724f);
  border: 1px solid var(--site-accent, #08724f);
  border-radius: 8px;
  color: #fff !important;
  display: inline-flex;
  font-size: 14px;
  font-weight: 800;
  padding: 8px 14px;
  text-decoration: none;
}

.site-nav-auth:hover {
  filter: brightness(.92);
  color: #fff !important;
}

.site-nav-dropdown {
  padding-bottom: 10px;
  position: relative;
}

.site-nav-dropdown::after {
  content: '';
  display: block;
  height: 12px;
  left: 0;
  position: absolute;
  right: 0;
  top: 100%;
}

.site-dropdown-menu {
  background: #fff;
  border: 1px solid #dfe7ef;
  border-radius: 8px;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.14);
  display: none;
  min-width: 190px;
  padding: 8px;
  position: absolute;
  right: 0;
  top: calc(100% - 2px);
  z-index: 30;
}

.site-nav-dropdown:hover .site-dropdown-menu,
.site-nav-dropdown:focus-within .site-dropdown-menu,
.site-nav-dropdown.dropdown-open .site-dropdown-menu {
  display: grid;
  gap: 3px;
}

.site-dropdown-menu a {
  border-radius: 7px;
  color: #526173;
  display: block;
  font-size: 14px;
  padding: 9px 10px;
  text-decoration: none;
}

.site-dropdown-menu a:hover {
  background: #f1f5f9;
  color: #111827;
}

.editable-block {
  border: 2px solid transparent;
  position: relative;
  scroll-margin-top: 92px;
}

.editable-block:hover {
  border-color: rgba(37, 99, 235, 0.3);
}

.editable-block.selected {
  border-color: var(--accent);
}

.block-toolbar {
  background: #111827;
  border-radius: 8px;
  color: #fff;
  display: none;
  gap: 4px;
  left: 12px;
  padding: 4px;
  position: absolute;
  top: 12px;
  z-index: 10;
}

.editable-block.selected > .block-toolbar {
  display: flex;
}

.site-canvas.is-preview .editable-block,
.site-canvas.is-preview .editable-block:hover,
.site-canvas.is-preview .editable-block.selected {
  border-color: transparent;
}

.site-canvas.is-preview .block-toolbar {
  display: none;
}

.site-canvas.is-preview [contenteditable="false"] {
  cursor: default;
}

.block-toolbar button {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 6px;
  color: #fff;
  display: inline-flex;
  height: 30px;
  justify-content: center;
  width: 30px;
}

.block-toolbar button:hover {
  background: rgba(255, 255, 255, 0.15);
}

[contenteditable="true"] {
  border-radius: 6px;
  outline: 0;
}

[contenteditable="true"]:focus {
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.16);
}

.hero-section {
  background: linear-gradient(135deg, #f7fbff 0%, #ffffff 48%, #edf7f1 100%);
  padding: clamp(52px, 8vw, 96px) clamp(22px, 7vw, 76px);
}

.hero-inner {
  align-items: center;
  display: grid;
  gap: 36px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
}

.hero-kicker {
  color: #2563eb;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.hero-title {
  font-size: clamp(38px, 5vw, 64px);
  font-weight: 800;
  line-height: 1.02;
  margin-bottom: 18px;
}

.hero-copy {
  color: #526173;
  font-size: 18px;
  line-height: 1.7;
  max-width: 680px;
}

.hero-media,
.split-media,
.gallery-tile {
  background-position: center;
  background-size: cover;
}

.hero-media {
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  box-shadow: 0 20px 50px rgba(39, 54, 71, 0.2);
  min-height: clamp(220px, 34cqw, 360px);
}

.section-pad {
  padding: clamp(42px, 6vw, 78px) clamp(22px, 7vw, 76px);
}

.section-heading {
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 800;
  margin-bottom: 14px;
}

.section-copy {
  color: #627084;
  line-height: 1.7;
  margin-bottom: 28px;
  max-width: 760px;
}

.card-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
}

.feature-card {
  background: #fff;
  border: 1px solid #e5ebf0;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  padding: 24px;
  transition: 0.18s ease;
}

.feature-card:hover {
  box-shadow: 0 16px 38px rgba(31, 42, 55, 0.1);
  transform: translateY(-2px);
}

.feature-icon {
  align-items: center;
  background: #ecfdf5;
  border-radius: 8px;
  color: #047857;
  display: inline-flex;
  font-size: 22px;
  height: 44px;
  justify-content: center;
  margin-bottom: 16px;
  width: 44px;
}

.card-link {
  align-items: center;
  color: #2563eb;
  display: inline-flex;
  font-size: 14px;
  font-weight: 700;
  gap: 6px;
  margin-top: 18px;
  text-decoration: none;
}

.card-link:hover {
  color: #1742af;
}

.split-section {
  align-items: center;
  display: grid;
  gap: 36px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}

.split-media {
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  min-height: clamp(210px, 32cqw, 340px);
}

.gallery-strip {
  display: grid;
  gap: 14px;
  grid-auto-columns: minmax(min(82%, 260px), 1fr);
  grid-auto-flow: column;
  overflow-x: auto;
  padding: 2px 0 12px;
  scroll-snap-type: x mandatory;
  scrollbar-color: #94a3b8 transparent;
}

.gallery-tile {
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  min-width: 0;
  scroll-snap-align: start;
}

.gallery-tile:first-child {
  aspect-ratio: 4 / 3;
  grid-column: auto;
  grid-row: auto;
}

.video-section {
  background: #f8fafc;
}

.video-frame {
  aspect-ratio: 16 / 9;
  background: #111827;
  border-radius: 8px;
  overflow: hidden;
  width: 100%;
}

.video-frame iframe {
  border: 0;
  height: 100%;
  width: 100%;
}

.logo-grid,
.testimonial-grid,
.pricing-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
}

.logo-card {
  align-items: center;
  background: #fff;
  border: 1px solid #e5ebf0;
  border-radius: 8px;
  color: #111827;
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: center;
  min-height: 128px;
  padding: 20px;
  text-align: center;
  text-decoration: none;
  transition: 0.18s ease;
}

.logo-card:hover {
  border-color: #9db7ff;
  box-shadow: 0 14px 34px rgba(31, 42, 55, 0.09);
}

.logo-card img {
  max-height: 52px;
  max-width: min(100%, 180px);
  object-fit: contain;
}

.logo-card span {
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
}

.testimonials-section {
  background: #f8fafc;
}

.testimonial-card,
.pricing-card {
  background: #fff;
  border: 1px solid #e5ebf0;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 24px;
}

.testimonial-card > i {
  color: #2563eb;
  font-size: 30px;
  margin-bottom: 12px;
}

.testimonial-card p {
  color: #334155;
  line-height: 1.7;
}

.testimonial-card strong,
.testimonial-card span {
  display: block;
}

.testimonial-card span {
  color: #64748b;
  font-size: 14px;
}

.pricing-card {
  gap: 14px;
}

.pricing-card h3 {
  font-size: 20px;
  font-weight: 800;
  margin: 0;
}

.pricing-card .price {
  font-size: 34px;
  font-weight: 900;
  line-height: 1.1;
}

.pricing-card p {
  color: #64748b;
  line-height: 1.65;
  margin: 0;
}

.cta-band {
  align-items: center;
  background: #111827;
  color: #fff;
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  justify-content: space-between;
  padding: clamp(36px, 6vw, 64px) clamp(22px, 7vw, 76px);
}

.cta-band p {
  color: #cbd5e1;
  margin: 0;
}

.cta-band > div {
  flex: 1 1 300px;
  min-width: 0;
}

.cta-band .btn {
  flex: 0 0 auto;
}

@container (max-width: 720px) {
  .site-navbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .site-brand-row {
    width: 100%;
  }

  .site-menu-toggle {
    display: inline-flex;
  }

  .site-nav {
    align-items: stretch;
    display: none;
    flex-direction: column;
    width: 100%;
  }

  .site-navbar.menu-open .site-nav {
    display: flex;
  }

  .site-nav-link,
  .site-nav button,
  .site-nav-auth {
    justify-content: space-between;
    width: 100%;
  }

  .site-nav-dropdown {
    padding-bottom: 0;
    width: 100%;
  }

  .site-nav-dropdown::after {
    display: none;
  }

  .site-dropdown-menu {
    background: rgba(255, 255, 255, 0.58);
    border: 0;
    box-shadow: none;
    display: grid;
    gap: 2px;
    min-width: 0;
    padding: 2px 0 2px 14px;
    position: static;
  }

  .site-dropdown-menu a {
    padding: 8px 10px;
  }

  .hero-section,
  .section-pad {
    padding: 36px 20px;
  }

  .hero-inner,
  .split-section,
  .card-grid,
  .logo-grid,
  .testimonial-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .hero-title {
    font-size: 34px;
  }

  .hero-copy {
    font-size: 16px;
  }

  .gallery-strip {
    grid-auto-columns: minmax(78%, 1fr);
  }

  .cta-band {
    align-items: flex-start;
    flex-direction: column;
    padding: 34px 20px;
  }

  .cta-band .btn,
  .hero-section .btn,
  .split-section .btn {
    width: 100%;
  }
}

@container (max-width: 460px) {
  .site-navbar {
    padding: 16px;
  }

  .hero-section,
  .section-pad {
    padding: 30px 16px;
  }

  .hero-title {
    font-size: 30px;
  }

  .section-heading,
  .cta-band .h1 {
    font-size: 26px;
  }

  .feature-card {
    padding: 18px;
  }

  .testimonial-card,
  .pricing-card {
    padding: 18px;
  }

  .hero-media,
  .split-media {
    min-height: 200px;
  }
}

.empty-state {
  align-items: center;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  color: #64748b;
  display: flex;
  flex-direction: column;
  gap: 8px;
  justify-content: center;
  min-height: 190px;
  padding: 24px;
  text-align: center;
}

.empty-state i {
  font-size: 30px;
}

.inspector-content {
  display: grid;
  gap: 14px;
}

.inspector-card {
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  padding: 14px;
}

.json-output {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  min-height: 440px;
}

@media (max-width: 1180px) {
  .app-shell {
    grid-template-columns: 260px minmax(0, 1fr);
  }

  .inspector-panel {
    border-left: 0;
    border-top: 1px solid var(--panel-border);
    grid-column: 1 / -1;
    min-height: auto;
  }
}

@media (max-width: 860px) {
  .back-admin {
    justify-content: center;
    width: 100%;
  }

  .app-shell {
    display: block;
  }

  .editor-sidebar,
  .inspector-panel {
    min-height: auto;
  }

  .editor-main {
    padding: 14px;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .topbar-actions {
    justify-content: flex-start;
    width: 100%;
  }

  .hero-inner,
  .split-section,
  .card-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .cta-band,
  .site-navbar {
    align-items: flex-start;
    flex-direction: column;
  }
}
