html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
  color: #172622;
  background: #fbfaf6;
}

.footer { font-size: .82rem; }

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

:root {
  --ink: #172622;
  --muted: #5f6d68;
  --cream: #fbfaf6;
  --paper: #ffffff;
  --brand: #ff5f3d;
  --brand-dark: #d94427;
  --green: #0c594a;
  --green-deep: #083f35;
  --line: #dfe5df;
}

.navbar {
  margin-bottom: 0 !important;
  padding: .85rem 0;
}

.brand-lockup {
  display: inline-flex;
  align-items: baseline;
  font-size: 1.22rem;
  font-weight: 850;
  line-height: 1;
  letter-spacing: -.045em;
}

.brand-lockup .brand-you { color: #172622; }
.brand-lockup .brand-need { color: #d94427; }
.brand-lockup .brand-this { color: #0c7662; }
.brand-lockup .brand-website { color: #315c3a; }

.eyebrow {
  color: var(--brand-dark);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.btn-brand {
  color: #fff;
  background: var(--brand);
  border: 1px solid var(--brand);
  border-radius: .55rem;
  font-weight: 750;
  padding: .8rem 1.25rem;
  box-shadow: 0 9px 22px rgba(217, 68, 39, .18);
}

.btn-brand:hover, .btn-brand:focus {
  color: #fff;
  background: var(--brand-dark);
  border-color: var(--brand-dark);
}

.btn-outline-brand {
  color: var(--green);
  background: #fff;
  border: 1px solid #aac0b9;
  font-weight: 700;
}

.hero-section {
  overflow: hidden;
  padding: clamp(4rem, 9vw, 7.5rem) 0;
  background:
    radial-gradient(circle at 92% 18%, rgba(255, 196, 117, .28), transparent 28rem),
    linear-gradient(135deg, #fbfaf6 0%, #f2f5ec 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  gap: clamp(2.5rem, 7vw, 7rem);
  align-items: center;
}

.hero-copy h1 {
  max-width: 760px;
  margin: 1rem 0 1.35rem;
  font-size: clamp(3.1rem, 6vw, 5.8rem);
  font-weight: 850;
  letter-spacing: -.065em;
  line-height: .96;
}

.hero-copy h1 span { color: var(--green); }

.hero-lead {
  max-width: 650px;
  color: var(--muted);
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-top: 2rem;
}

.hero-actions span, .trial-note { color: var(--muted); }
.trial-note { margin-top: 1rem; font-size: .92rem; }

.site-mockup {
  width: min(100%, 390px);
  justify-self: center;
  transform: rotate(1deg);
  border: 8px solid #172622;
  border-radius: 1.2rem;
  background: #fff;
  box-shadow: 0 35px 80px rgba(8, 63, 53, .19);
}

.mockup-bar {
  display: flex;
  gap: .35rem;
  align-items: center;
  padding: .7rem .8rem;
  background: #172622;
}

.mockup-bar > span { width: .55rem; height: .55rem; border-radius: 50%; background: #ff8e78; }
.mockup-bar > span:nth-child(2) { background: #ffd270; }
.mockup-bar > span:nth-child(3) { background: #71c7a0; }
.mockup-bar div { flex: 1; margin-left: .5rem; padding: .3rem; border-radius: .3rem; color: #aeb9b5; background: #2d3b37; font-size: .62rem; text-align: center; }
.mockup-site { min-height: 500px; background: #fff; }
.mockup-nav { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 1.25rem; color: #102f3a; }
.mockup-nav strong { font-size: .92rem; }
.mockup-nav span { color: #075b72; font-size: .62rem; font-weight: 750; white-space: nowrap; }
.mockup-content { padding: 2.2rem 1.5rem 1.5rem; background: #075b72; color: #fff; }
.mockup-content h2 { margin: 0 0 .8rem; font-size: 1.75rem; font-weight: 800; letter-spacing: -.04em; line-height: 1.08; }
.mockup-content p { margin: 0; color: #d5edf1; font-size: .78rem; line-height: 1.55; }
.mockup-button { display: inline-block; margin: 1rem 0 1.3rem; padding: .6rem .9rem; border-radius: .35rem; color: #102f3a; background: #78d6df; font-size: .72rem; font-weight: 800; }
.mockup-image { position: relative; width: 82%; height: 145px; margin: 0 auto; overflow: hidden; border: 1px solid rgba(255,255,255,.15); border-radius: .8rem; background: rgba(255,255,255,.1); }
.mockup-image img { width: 100%; height: 100%; object-fit: cover; opacity: .48; filter: saturate(.25) contrast(.72); }
.mockup-image::after { position: absolute; inset: 0; content: ""; background: #075b72; opacity: .24; mix-blend-mode: color; }
.mockup-about { padding: 1.5rem; color: #102f3a; background: #fff; }
.mockup-about h3 { margin: 0 0 .5rem; font-size: 1.2rem; font-weight: 800; letter-spacing: -.03em; }
.mockup-about p { margin: 0; color: #5e6d68; font-size: .72rem; line-height: 1.55; }

.how-section { padding: 6rem 0; background: #fff; }
.section-heading { max-width: 780px; margin-bottom: 3rem; }
.section-heading h2 { margin-top: 0; font-size: clamp(2.2rem, 4vw, 3.8rem); font-weight: 800; letter-spacing: -.05em; line-height: 1.08; }
.step-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.step-grid article { padding: 2rem; border: 1px solid var(--line); border-radius: 1rem; background: var(--cream); }
.step-grid h3 { margin: 0 0 .7rem; font-size: 1.3rem; font-weight: 800; }
.step-grid p { margin: 0; color: var(--muted); line-height: 1.7; }
.center-cta { margin-top: 3.5rem; text-align: center; }
.center-cta p { margin-top: .8rem; color: var(--muted); font-size: .88rem; }

.setup-section { min-height: calc(100vh - 130px); padding: 4rem 1.5rem 6rem; background: linear-gradient(135deg, #eef3e9, #fbfaf6 55%); }
.setup-shell { display: grid; grid-template-columns: .82fr 1.18fr; gap: clamp(2rem, 7vw, 7rem); align-items: start; max-width: 1120px; margin: 0 auto; }
.back-link { display: inline-block; margin-bottom: 3.5rem; color: var(--green); font-weight: 700; text-decoration: none; }
.setup-intro { position: sticky; top: 2rem; padding-top: 1rem; }
.setup-intro h1 { margin: 1rem 0; font-size: clamp(2.6rem, 5vw, 4.5rem); font-weight: 850; letter-spacing: -.06em; line-height: 1; }
.setup-intro > p { color: var(--muted); font-size: 1.15rem; line-height: 1.65; }
.setup-reassurance { display: flex; flex-direction: column; margin-top: 2.5rem; padding: 1.2rem; border-left: 4px solid var(--green); background: rgba(255,255,255,.62); }
.setup-reassurance span { margin-top: .25rem; color: var(--muted); font-size: .9rem; }
.setup-card { padding: clamp(1.5rem, 4vw, 3rem); border: 1px solid #e1e5dd; border-radius: 1.2rem; background: #fff; box-shadow: 0 25px 60px rgba(23, 38, 34, .09); }
.form-row-brand { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group-brand { margin-bottom: 1.3rem; }
.form-group-brand label { display: block; margin-bottom: .48rem; color: var(--ink); font-weight: 750; }
.form-group-brand input, .form-group-brand textarea, .form-group-brand select { width: 100%; min-height: 48px; padding: .85rem 1rem; border: 1px solid #cbd5d0; border-radius: .55rem; background: #fdfdfb; color: var(--ink); font-size: 1rem; }
.form-group-brand input:focus, .form-group-brand textarea:focus, .form-group-brand select:focus { outline: 0; border-color: var(--green); box-shadow: 0 0 0 3px rgba(12, 89, 74, .12); }
.form-group-brand span { display: block; margin-top: .3rem; color: #b42318; font-size: .82rem; }
.form-footnote { margin: .8rem 0 0; color: var(--muted); font-size: .82rem; text-align: center; }

.preview-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 3vw; border-bottom: 1px solid #dce3df; background: #fff; }
.preview-toolbar > div:first-child { display: flex; gap: .8rem; align-items: center; }
.preview-status { padding: .35rem .6rem; border-radius: 99px; color: var(--green); background: #e5f2ed; font-size: .73rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.preview-actions { display: flex; gap: .7rem; }
.preview-note { padding: .65rem 3vw; color: #5c675f; background: #fff7dc; font-size: .86rem; text-align: center; }
.preview-note span { margin-right: .5rem; color: #8e5f00; font-weight: 800; }
.preview-canvas { padding: clamp(1rem, 3vw, 2.5rem); background: #e8ece9; }
.preview-canvas .business-site { max-width: 1180px; margin: 0 auto; overflow: hidden; border-radius: .7rem; box-shadow: 0 20px 50px rgba(0,0,0,.12); }

.business-page { background: linear-gradient(180deg, #eef5f6 0, #f3f7f8 360px); font-family: Arial, Helvetica, sans-serif; }
.business-page main { padding-bottom: 0 !important; }
.business-page > .footer { background: #f3f7f8; }
.business-site {
  --site-primary: #0b3157;
  --site-deep: #082743;
  --site-accent: #00a86b;
  --site-accent-dark: #08744f;
  --site-soft: #e8f7f1;
  --site-muted: #dce9ee;
  width: min(1180px, calc(100% - 2rem));
  margin: 2rem auto;
  overflow: hidden;
  border: 1px solid #dce4e8;
  border-radius: 1.35rem;
  color: #182b3a;
  background: #fff;
  box-shadow: 0 24px 65px rgba(11, 49, 87, .13);
}
.business-site.website-type-plumber,
.business-site.website-type-electrician,
.business-site.website-type-gardener,
.business-site.website-type-charity-shop { --site-primary: #0b3157; --site-deep: #082743; --site-accent: #00a86b; --site-soft: #e8f7f1; --site-muted: #dce9ee; }
.business-site-shell { width: min(1120px, calc(100% - 3rem)); margin: 0 auto; }
.business-site-nav { padding: 1.3rem 0; border-bottom: 1px solid #e2e9ec; background: #fff; }
.business-site-nav .business-site-shell { display: flex; justify-content: space-between; align-items: center; }
.business-site-nav strong { color: var(--site-deep); font-size: clamp(1.35rem, 2vw, 1.65rem); font-weight: 700; letter-spacing: -.02em; line-height: 1.15; }
.business-site-nav a { color: var(--site-deep); font-weight: 700; text-decoration: none; }
.business-site-nav a:hover { color: var(--site-accent-dark); text-decoration: underline; }
.business-site-hero { position: relative; overflow: hidden; padding: clamp(3.5rem, 8vw, 6rem) 0; color: #fff; background: linear-gradient(135deg, var(--site-deep), var(--site-primary)); }
.business-site-hero::after { position: absolute; right: -7rem; bottom: -10rem; width: 28rem; height: 28rem; border: 4rem solid rgba(0,168,107,.15); border-radius: 50%; content: ""; }
.business-hero-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(260px, .8fr); align-items: center; gap: clamp(2rem, 6vw, 6rem); }
.business-hero-copy { position: relative; z-index: 1; }
.business-site-hero h1 { max-width: 680px; margin: 0 0 1.2rem; font-size: clamp(2.15rem, 4vw, 3.55rem); font-weight: 700; letter-spacing: -.04em; line-height: 1.05; }
.business-site-hero p { max-width: 680px; color: var(--site-muted); font-size: 1.08rem; line-height: 1.58; }
.business-hero-art { width: 100%; max-width: 390px; min-height: clamp(230px, 29vw, 360px); position: relative; z-index: 1; justify-self: end; overflow: hidden; border: 1px solid rgba(255,255,255,.24); border-radius: 1rem; background: rgba(255,255,255,.08); box-shadow: 0 20px 50px rgba(0,0,0,.2); }
.business-hero-art img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; opacity: .48; filter: saturate(.28) contrast(.78); }
.business-hero-art::after { position: absolute; inset: 0; content: ""; background: var(--site-primary); opacity: .22; mix-blend-mode: color; pointer-events: none; }
.business-hero-art span { position: absolute; border-radius: 50%; background: var(--site-accent); opacity: .8; }
.business-hero-art span:nth-child(1) { width: 52%; aspect-ratio: 1; top: 10%; right: 8%; }
.business-hero-art span:nth-child(2) { width: 35%; aspect-ratio: 1; bottom: 8%; left: 10%; opacity: .42; }
.business-hero-art span:nth-child(3) { width: 16%; aspect-ratio: 1; top: 18%; left: 14%; background: #fff; opacity: .28; }
.business-site-button { display: inline-block; margin-top: 1rem; padding: .9rem 1.2rem; border: 2px solid var(--site-accent); border-radius: .6rem; color: #fff; background: var(--site-accent-dark); font-weight: 700; text-decoration: none; }
.business-site-button:hover { color: #fff; background: #065f41; border-color: #065f41; }
.business-site-button-secondary { color: #fff; background: transparent; border-color: rgba(255,255,255,.55); }
.business-contact-actions { display: flex; flex-wrap: wrap; gap: .7rem; }
.business-site-details { padding: clamp(3rem, 7vw, 5.5rem) 0; background: #f3f7f8; }
.business-detail-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(2rem, 8vw, 8rem); }
.business-detail-grid-single { grid-template-columns: minmax(0, 760px); }
.business-detail-grid > div, .business-detail-grid aside { padding: clamp(1.5rem, 4vw, 2.25rem); border: 1px solid #dce4e8; border-radius: .9rem; background: #fff; }
.business-detail-grid h2 { margin: 0 0 1rem; font-size: clamp(1.75rem, 3vw, 2.45rem); font-weight: 700; letter-spacing: -.035em; }
.business-detail-grid p { margin-bottom: 0; color: #617181; font-size: 1.05rem; line-height: 1.7; white-space: pre-line; }
.business-detail-grid aside { border-left: 5px solid var(--site-accent); background: var(--site-soft); }
.business-detail-grid aside > span { color: var(--site-accent-dark); font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; }
.business-site-footer { padding: 2rem 0; color: #fff; background: var(--site-deep); }
.business-site-footer .business-site-shell { display: flex; justify-content: space-between; align-items: center; }
.business-site-footer div div { display: flex; flex-direction: column; }
.business-site-footer span { color: #c3d1d7; font-size: .82rem; }
.business-site-footer a { color: #fff; font-size: 1rem; font-weight: 700; text-decoration: none; }
.business-footer-contacts { display: flex; align-items: flex-end; flex-direction: column; gap: .35rem; }
.public-site-credit { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem; font-size: .82rem; }
.login-page main, .registration-page main { padding-top: clamp(3.5rem, 8vw, 7rem); }
.registration-heading { margin-bottom: 2rem; }
.registration-heading h1 { margin: .8rem 0 .6rem; }
.admin-heading { display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin: 2.5rem 0 2rem; }
.admin-heading h1 { margin: .7rem 0 .35rem; }
.admin-table-wrap { overflow: hidden; border: 1px solid #dee2e6; border-radius: .7rem; background: #fff; }
.admin-table-wrap th { color: #52605b; background: #f7f8f7; font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; }
.admin-details { padding: 1.5rem; border: 1px solid #dee2e6; border-radius: .7rem; background: #fff; }
.admin-details dt, .admin-details dd { padding-top: .55rem; padding-bottom: .55rem; border-bottom: 1px solid #eef0ef; }

@media (max-width: 900px) {
  .hero-grid, .setup-shell { grid-template-columns: 1fr; }
  .hero-copy { text-align: center; }
  .hero-copy .hero-lead { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .site-mockup { max-width: 650px; margin: 1rem auto 0; transform: none; }
  .setup-intro { position: static; }
  .back-link { margin-bottom: 2rem; }
  .business-hero-grid { grid-template-columns: 1fr; }
  .business-hero-art { width: min(82%, 410px); min-height: min(48vw, 340px); justify-self: center; }
}

@media (max-width: 700px) {
  .hero-section { padding-top: 3.2rem; }
  .hero-copy h1 { font-size: 3.35rem; }
  .hero-actions { flex-direction: column; }
  .site-mockup { width: min(84%, 340px); }
  .mockup-site { min-height: 500px; }
  .step-grid, .form-row-brand, .business-detail-grid { grid-template-columns: 1fr; }
  .preview-toolbar { align-items: flex-start; }
  .preview-toolbar > div:first-child { align-items: flex-start; flex-direction: column; }
  .preview-actions { flex-direction: column; }
  .business-site-nav .business-site-shell, .business-site-footer .business-site-shell { align-items: flex-start; flex-direction: column; gap: .75rem; }
  .business-site { width: calc(100% - 1rem); margin: .5rem auto; border-radius: 1rem; }
  .business-footer-contacts { align-items: flex-start; }
  .business-site-shell { width: min(100% - 2rem, 1120px); }
  .business-site-hero { padding: 2.8rem 0 1.5rem; }
  .business-site-hero h1 { font-size: clamp(1.8rem, 7.5vw, 2.35rem); }
  .business-site-hero p { font-size: 1rem; line-height: 1.55; }
  .business-contact-actions { display: grid; grid-template-columns: 1fr; }
  .business-site-button { width: 100%; min-height: 48px; text-align: center; }
  .business-hero-art { width: 82%; min-height: min(48vw, 280px); margin: 1rem auto 1.5rem; border-radius: 1rem; }
  .business-detail-grid > div, .business-detail-grid aside { padding: 1.4rem; }
}
