:root {
  --blue: #0077b6;
  --blue-dark: #005f92;
  --blue-soft: #e8f4fc;
  --yellow: #ffc107;
  --yellow-soft: #fff7db;
  --ink: #1a2b3c;
  --ink-muted: #5c6b7a;
  --surface: #ffffff;
  --surface-alt: #f6f9fc;
  --line: rgba(0, 119, 182, 0.14);
  --radius: 14px;
  --shadow: 0 8px 30px rgba(0, 55, 90, 0.08);
  --shadow-hover: 0 16px 40px rgba(0, 119, 182, 0.15);
}

body.home-modern .website-builder-tool {
  max-width: min(72rem, calc(100% - 40px));
}

body.home-modern .website-builder-tool h1 {
  max-width: 48rem;
}

body.home-modern .website-builder-tool .lead {
  max-width: 52rem;
}

.hero {
  margin-bottom: 28px;
}

.hero-content,
.section,
.builder-form,
.generated-card,
.empty-state {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hero-content {
  padding: 26px;
  background: linear-gradient(180deg, var(--surface) 0%, var(--blue-soft) 100%);
}

.section,
.builder-form,
.generated-card,
.empty-state {
  padding: 22px;
}

.hero-actions,
.download-actions,
.revision-examples {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  padding: 10px 18px;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
}

.button:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.button-primary {
  background: var(--blue);
  color: #fff;
}

.button-primary:hover {
  background: var(--blue-dark);
  color: #fff;
}

.button-secondary {
  background: linear-gradient(135deg, var(--yellow) 0%, #ffd54f 100%);
  color: #1a1a1a;
}

.card-label,
.eyebrow {
  display: inline-flex;
  width: fit-content;
  margin: 0 0 12px;
  border-radius: 999px;
  padding: 7px 11px;
  background: var(--blue-soft);
  color: var(--blue-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.check-list {
  display: grid;
  gap: 10px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 26px;
  color: var(--ink-muted);
}

.check-list li::before {
  position: absolute;
  top: 0.12rem;
  left: 0;
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--ink);
  content: "✓";
  font-size: 0.75rem;
  font-weight: 900;
}

.section {
  margin: 22px 0;
}

.section-heading {
  max-width: 44rem;
  margin-bottom: 18px;
}

.section-heading.compact {
  margin-bottom: 8px;
}

.workflow-grid,
.preview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.step-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.step-card span {
  display: grid;
  width: 36px;
  height: 36px;
  margin-bottom: 14px;
  place-items: center;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--ink);
  font-weight: 900;
}

.builder-layout {
  margin: 22px 0;
}

.builder-form {
  display: grid;
  gap: 18px;
}

.builder-form label,
.revision-card label {
  display: grid;
  gap: 7px;
  color: var(--blue-dark);
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 12px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
}

input,
select {
  min-height: 46px;
}

textarea {
  min-height: 110px;
  padding-top: 12px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(0, 119, 182, 0.16);
  border-color: var(--blue);
}

.helper-link {
  margin: -12px 0 0;
  color: var(--ink-muted);
  font-size: 0.92rem;
}

.helper-link a {
  font-weight: 800;
}

.colour-fields {
  display: grid;
  gap: 10px;
}

.colour-field {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  background: var(--surface-alt);
}

.colour-input-row {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.colour-input-row input[type="color"] {
  width: 70px;
  min-height: 46px;
  padding: 5px;
}

.logo-preview {
  display: grid;
  min-height: 96px;
  place-items: center;
  border: 1px dashed rgba(0, 119, 182, 0.32);
  border-radius: var(--radius);
  background: var(--surface-alt);
  color: var(--ink-muted);
  font-weight: 700;
}

.logo-preview img {
  max-width: 180px;
  max-height: 76px;
}

.image-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  min-height: 96px;
  border: 1px dashed rgba(0, 119, 182, 0.32);
  border-radius: var(--radius);
  padding: 12px;
  background: var(--surface-alt);
  color: var(--ink-muted);
  font-weight: 700;
}

.image-preview-grid figure {
  margin: 0;
}

.image-preview-grid img {
  width: 100%;
  height: 90px;
  border-radius: 10px;
  object-fit: cover;
}

.image-preview-grid figcaption {
  margin-top: 5px;
  color: var(--ink-muted);
  font-size: 0.75rem;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.filter-row,
.meta,
.colour-swatches,
.preview-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-row {
  margin: 18px 0;
}

.filter-row span,
.meta span,
.colour-swatches span {
  border-radius: 999px;
  padding: 8px 11px;
  background: var(--blue-soft);
  color: var(--blue-dark);
  font-size: 0.82rem;
  font-weight: 800;
}

.colour-swatches {
  margin: 16px 0;
}

.colour-swatches span {
  min-width: 92px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  color: var(--ink);
  text-align: center;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45);
}

.preview-section {
  padding-bottom: 34px;
}

.empty-state {
  grid-column: 1 / -1;
  display: grid;
  min-height: 180px;
  place-items: center;
  text-align: center;
}

.generated-card.featured {
  grid-column: span 2;
  background: linear-gradient(180deg, var(--surface) 0%, var(--yellow-soft) 100%);
}

.generated-card ul {
  display: grid;
  gap: 8px;
  margin: 14px 0 0;
  padding-left: 18px;
}

.image-card img {
  display: block;
  width: 100%;
  height: 170px;
  margin: 12px 0;
  border-radius: var(--radius);
  object-fit: cover;
}

.file-list {
  font-family: Consolas, "Courier New", monospace;
}

.site-preview-card,
.revision-card,
.handoff-card {
  grid-column: 1 / -1;
}

.site-preview-card {
  padding: 0;
  overflow: hidden;
}

.site-preview-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 22px 12px;
}

.site-preview-header p:last-child {
  max-width: 340px;
  color: var(--ink-muted);
}

.preview-tabs {
  padding: 0 22px 18px;
}

.preview-tab {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 11px;
  background: var(--surface);
  color: var(--blue-dark);
  cursor: pointer;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 800;
}

.preview-tab.active,
.preview-tab:hover {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
}

.site-preview-frame {
  display: block;
  width: 100%;
  height: 720px;
  border: 0;
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.revision-card {
  display: grid;
  gap: 16px;
}

.revision-examples {
  margin-top: 0;
}

.revision-status {
  margin: 0;
  color: var(--ink-muted);
}

.footer {
  max-width: min(72rem, calc(100% - 40px));
  margin: 0 auto;
  padding: 8px 0 48px;
  color: var(--ink-muted);
  text-align: center;
}

@media (max-width: 900px) {
  .hero,
  .builder-layout,
  .workflow-grid,
  .preview-grid {
    grid-template-columns: 1fr;
  }

  .generated-card.featured {
    grid-column: auto;
  }

  .site-preview-header {
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  body.home-modern .website-builder-tool {
    max-width: calc(100% - 28px);
  }

  .hero-content,
  .section,
  .builder-form,
  .generated-card {
    padding: 18px;
  }

  .image-preview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
