:root {
  --bg: #f5f7f6;
  --panel: #ffffff;
  --ink: #17201d;
  --muted: #64706c;
  --line: #dfe7e3;
  --primary: #0f766e;
  --accent: #f59e0b;
  --danger: #b42318;
  --shadow: 0 16px 38px rgba(21, 31, 28, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

.shell {
  min-height: 100vh;
}

.topbar {
  align-items: center;
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 20px;
  justify-content: space-between;
  padding: 14px clamp(18px, 4vw, 52px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand {
  align-items: center;
  display: flex;
  gap: 10px;
  font-weight: 800;
}

.brand-mark {
  align-items: center;
  background: var(--primary);
  border-radius: 8px;
  color: white;
  display: inline-flex;
  height: 34px;
  justify-content: center;
  width: 38px;
}

.nav {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.nav a,
.button,
button {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-weight: 700;
  gap: 8px;
  justify-content: center;
  min-height: 40px;
  padding: 9px 14px;
  text-decoration: none;
}

.button.primary,
button.primary {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

.button.ghost {
  background: transparent;
}

.hero {
  display: grid;
  gap: 36px;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.98fr);
  padding: clamp(34px, 7vw, 76px) clamp(18px, 4vw, 52px) 32px;
}

.hero-copy {
  align-self: center;
}

.eyebrow {
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0;
  margin: 0 0 14px;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  letter-spacing: 0;
  line-height: 1.08;
  margin: 0;
}

h1 {
  font-size: clamp(2.45rem, 6vw, 5.5rem);
  max-width: 820px;
}

h2 {
  font-size: clamp(1.65rem, 3vw, 2.5rem);
}

h3 {
  font-size: 1.12rem;
}

.lede {
  color: var(--muted);
  font-size: 1.12rem;
  margin: 22px 0 26px;
  max-width: 680px;
}

.hero-art {
  border-radius: 8px;
  min-height: 420px;
  overflow: hidden;
  position: relative;
}

.hero-art img {
  height: 100%;
  object-fit: cover;
  position: absolute;
  width: 100%;
}

.hero-art::after {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(15, 118, 110, 0.34));
  content: "";
  inset: 0;
  position: absolute;
}

.quick-create {
  align-items: end;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(220px, 1fr) auto;
  max-width: 620px;
}

label {
  color: var(--muted);
  display: grid;
  font-size: 0.88rem;
  font-weight: 700;
  gap: 6px;
}

input,
select,
textarea {
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font: inherit;
  min-height: 44px;
  padding: 10px 12px;
  width: 100%;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

.band {
  padding: 32px clamp(18px, 4vw, 52px);
}

.grid {
  display: grid;
  gap: 18px;
}

.grid.cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid.cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 18px;
}

.card.tight {
  box-shadow: none;
}

.pill {
  background: #ecfdf5;
  border: 1px solid #b7ead4;
  border-radius: 999px;
  color: #066349;
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 4px 9px;
}

.pill.locked {
  background: #fff7ed;
  border-color: #fed7aa;
  color: #9a3412;
}

.muted {
  color: var(--muted);
}

.notice {
  border-left: 4px solid var(--primary);
  background: #ecfdf5;
  border-radius: 8px;
  padding: 14px 16px;
}

.notice.error {
  background: #fff1f0;
  border-left-color: var(--danger);
}

.wizard {
  margin: 0 auto;
  max-width: 1040px;
}

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

.full {
  grid-column: 1 / -1;
}

.template-option {
  align-items: start;
  display: grid;
  gap: 10px;
}

.template-option input {
  height: 18px;
  min-height: 18px;
  width: 18px;
}

.preview-page {
  background: white;
}

.site-hero {
  align-items: end;
  background-position: center;
  background-size: cover;
  color: white;
  display: grid;
  min-height: 58vh;
  padding: clamp(26px, 6vw, 70px);
  position: relative;
}

.site-hero::before {
  background: linear-gradient(90deg, rgba(11, 20, 18, 0.84), rgba(11, 20, 18, 0.18));
  content: "";
  inset: 0;
  position: absolute;
}

.site-hero > div {
  max-width: 760px;
  position: relative;
}

.site-hero h1 {
  font-size: clamp(2.2rem, 5.8vw, 5rem);
}

.site-section {
  padding: clamp(30px, 5vw, 58px) clamp(18px, 4vw, 52px);
}

.service-list {
  display: grid;
  gap: 10px;
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
}

.service-list li {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
}

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

.gallery img {
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  object-fit: cover;
  width: 100%;
}

.ad-slot {
  background: repeating-linear-gradient(45deg, #f8fafc, #f8fafc 10px, #eef2f7 10px, #eef2f7 20px);
  border: 1px dashed #94a3b8;
  border-radius: 8px;
  color: #475569;
  font-size: 0.85rem;
  font-weight: 800;
  margin-top: 26px;
  padding: 16px;
  text-align: center;
}

.footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  padding: 22px clamp(18px, 4vw, 52px);
}

@media (max-width: 860px) {
  .hero,
  .grid.cols-2,
  .grid.cols-3,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .hero-art {
    min-height: 300px;
  }

  .quick-create {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

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

  .gallery {
    grid-template-columns: 1fr;
  }
}
