/* Agency preview template 2.1 — shared stylesheet.
   Mobile-first. Per-brief knobs arrive as body classes (layout-*, density-*)
   and as --accent* custom properties injected by fill.py. */

:root {
  --accent: #0f766e;
  --accent-dark: #0b5c55;
  --accent-hover: #0b5c55;
  --accent-soft: #e7f3f1;
  --accent-ink: #ffffff;
  --accent-text: #0b5c55;

  --ink: #101828;
  --ink-2: #344054;
  --muted: #667085;
  --line: #e4e7ec;
  --line-strong: #cfd4dc;
  --bg: #ffffff;
  --surface: #f3f5f8;
  --card: #ffffff;
  --banner: #1a2744;
  --contact-bg: #0b1220;
  --star: #f59e0b;

  --radius: 14px;
  --radius-sm: 8px;
  --wrap: 1040px;
  --sp: 1;
  --header-h: 60px;
  --banner-h: 42px;
  /* Sticky banner + header + breathing room so #hash landings show the H2 */
  --scroll-pad: calc(var(--banner-h) + var(--header-h) + 16px);

  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial,
    "Noto Sans", "Liberation Sans", sans-serif;
  --font-display: ui-serif, Georgia, "Times New Roman", Times, serif;

  --elev: 0 1px 2px rgba(16, 24, 40, 0.05), 0 8px 24px rgba(16, 24, 40, 0.06);
  --elev-sm: 0 1px 2px rgba(16, 24, 40, 0.04), 0 4px 12px rgba(16, 24, 40, 0.05);
}

.density-compact { --sp: 0.72; }

/* ---------- base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: var(--scroll-pad);
}
/* No global smooth scroll — mobile refresh + scroll restoration glitches. */

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

a { color: var(--accent-text); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; overflow-wrap: anywhere; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.wrap {
  width: min(var(--wrap), calc(100% - 2.25rem));
  margin-inline: auto;
}

/* ---------- proposal banner ---------- */

.proposal-banner {
  background: var(--banner);
  color: #c7d0dc;
  text-align: center;
  padding: 0.5rem 1rem;
  font-size: 0.86rem;
  line-height: 1.4;
  border-bottom: 1px solid rgba(247, 137, 11, 0.22);
}
.proposal-banner strong { color: inherit; font-weight: 500; }
.banner-for { display: none; }
@media (min-width: 560px) {
  .banner-for { display: inline; }
}

/* ---------- header: brand | (nav) | call — always one row ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  /* Mode C Heatwave flyer skin — navy sticky header */
  background: rgba(11, 18, 32, 0.96);
  backdrop-filter: saturate(1.3) blur(8px);
  -webkit-backdrop-filter: saturate(1.3) blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.site-header .brand-name,
.site-header .brand-sub { color: #fff; }
.site-header .brand-sub { opacity: 0.75; }
.site-header .site-nav a { color: rgba(255, 255, 255, 0.82); }
.site-header .site-nav a:hover { color: #fff; }
.site-header .btn-call {
  background: #F7890B;
  border-color: #F7890B;
  color: #fff !important;
}
.site-header .btn-call:hover {
  background: #D97309;
  border-color: #D97309;
}
.site-header .bar {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.75rem;
  min-height: var(--header-h);
  padding: 0.45rem 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex: 1 1 auto;
  min-width: 0;
  color: var(--ink);
  text-decoration: none !important;
  line-height: 1.2;
}
.brand-mark {
  flex: 0 0 auto;
  display: block;
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 9px;
  overflow: hidden;
  background: transparent;
}
.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
}
.brand-text {
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.brand-name {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  font-weight: 750;
  font-size: 1rem;
  letter-spacing: -0.01em;
}
.brand-sub {
  display: none;
  margin-top: 0.1rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--muted);
}
.site-nav {
  display: none;
}
@media (min-width: 640px) {
  .brand-name { -webkit-line-clamp: 1; font-size: 1.05rem; }
  .brand-sub { display: block; }
}
@media (min-width: 900px) {
  .site-header .bar { gap: 1.5rem; }
  .site-nav {
    display: flex;
    flex: 0 4 auto;
    min-width: 0;
    margin-left: auto;
    gap: 1.15rem;
    white-space: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 0.25rem 0;
  }
  .site-nav::-webkit-scrollbar { display: none; }
  .site-nav a {
    color: var(--ink-2);
    font-weight: 600;
    font-size: 0.93rem;
    padding: 0.3rem 0;
  }
  .site-nav a:hover { color: var(--ink); text-decoration: none; }
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0 1.1rem;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font: inherit;
  font-weight: 650;
  font-size: 0.95rem;
  line-height: 1.2;
  white-space: nowrap;
  flex-shrink: 0;
  text-decoration: none !important;
  cursor: pointer;
  transition: background-color 120ms ease, border-color 120ms ease;
}
.btn svg { width: 1.05em; height: 1.05em; flex: none; }
.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink) !important;
}
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn-secondary {
  background: #fff;
  border-color: var(--line-strong);
  color: var(--ink) !important;
}
.btn-secondary:hover { border-color: var(--ink-2); }
.btn-whatsapp {
  background: #25D366;
  border-color: #25D366;
  color: #fff !important;
}
.btn-whatsapp:hover {
  background: #1ebe57;
  border-color: #1ebe57;
}
.btn-whatsapp svg { color: #fff; }
.trust-rating-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
  color: inherit;
  text-decoration: none;
}
.trust-rating-link:hover .trust-rating-cta { text-decoration: underline; }
.trust-rating-cta {
  font-size: 0.8rem;
  font-weight: 650;
  color: var(--accent);
  white-space: nowrap;
}
.layout-bold .trust-rating-cta { color: #fcd34d; }

.btn-lg { min-height: 52px; padding: 0 1.4rem; font-size: 1.05rem; }
.btn-block { width: 100%; }

.site-header .btn-call { flex: 0 0 auto; }
.btn-call .label-mid,
.btn-call .label-long,
.btn-mail .label-mid,
.btn-mail .label-long { display: none; }
@media (min-width: 640px) {
  .btn-call .label-mid,
  .btn-mail .label-mid { display: inline; }
  .btn-call .label-short,
  .btn-mail .label-short { display: none; }
}
@media (min-width: 1200px) {
  .btn-call .label-long,
  .btn-mail .label-long { display: inline; }
  .btn-call .label-mid,
  .btn-mail .label-mid { display: none; }
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
@media (max-width: 479px) {
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
}

/* ---------- hero ---------- */

.hero {
  padding: calc(2.5rem * var(--sp)) 0 calc(2.5rem * var(--sp));
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.75rem;
  align-items: start;
}
.eyebrow {
  margin-bottom: 0.6rem;
  color: var(--accent-text);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.hero h1 {
  margin-bottom: 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.95rem, 1.2rem + 3.2vw, 3.15rem);
  line-height: 1.08;
  letter-spacing: -0.022em;
  font-weight: 700;
}
.lead {
  margin-bottom: 1.4rem;
  max-width: 38rem;
  font-size: clamp(1.05rem, 1rem + 0.35vw, 1.22rem);
  line-height: 1.5;
  color: var(--ink-2);
}
.trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin-top: 1.25rem;
  font-size: 0.9rem;
  color: var(--ink-2);
}
.trust li { display: inline-flex; align-items: center; gap: 0.4rem; min-height: 28px; }
.trust strong { color: var(--ink); }
.stars { color: var(--star); letter-spacing: 0.04em; font-size: 0.95rem; }

.star-gold,
.note .star-gold,
.chips .star-gold {
  color: var(--star, #f59e0b) !important;
}

.trust-badge {
  padding: 0.15rem 0.6rem;
  border-radius: 6px;
  background: var(--accent-soft);
  color: var(--accent-text);
  font-weight: 600;
}
.trust-badge .tick { font-weight: 800; }

/* Visual panel: on mobile sits BELOW copy so CTAs stay above the fold */
.hero-visual {
  display: grid;
  gap: 0.85rem;
  order: 2;
}
.hero-copy { order: 1; }

.hero-photo {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 16px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--elev);
  aspect-ratio: 4 / 3;
  cursor: zoom-in;
  color: inherit;
  font: inherit;
  text-align: left;
}
.hero-photo:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  display: block;
}

.hero-panel {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  aspect-ratio: 4 / 3;
  background:
    radial-gradient(120% 80% at 100% 0%, color-mix(in srgb, var(--accent-ink) 18%, transparent), transparent 55%),
    linear-gradient(145deg, var(--accent) 0%, var(--accent-hover) 100%);
  color: var(--accent-ink);
  box-shadow: var(--elev);
  display: grid;
  place-items: center;
  min-height: 200px;
}
.hero-panel-geo {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      -28deg,
      transparent 0 14px,
      color-mix(in srgb, var(--accent-ink) 8%, transparent) 14px 15px
    ),
    radial-gradient(circle at 18% 78%, color-mix(in srgb, var(--accent-ink) 14%, transparent) 0 28%, transparent 29%);
  pointer-events: none;
}
.hero-panel-inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.55rem;
  place-items: center;
  text-align: center;
  padding: 1.5rem;
}
.hero-panel-mono {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 12vw, 4.6rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  width: 5.2rem;
  height: 5.2rem;
  display: grid;
  place-items: center;
  border-radius: 1.15rem;
  background: color-mix(in srgb, var(--accent-ink) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent-ink) 28%, transparent);
}
.hero-panel-cat {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.9;
}

.hero-card {
  display: grid;
  gap: 0.9rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.15rem 1.25rem;
  box-shadow: var(--elev-sm);
}
.hero-card-title {
  font-weight: 700;
  font-size: 1.05rem;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.72fr);
    gap: 2.25rem;
    align-items: center;
  }
  .hero-copy { order: 0; }
  .hero-visual { order: 0; max-width: 22rem; justify-self: end; width: 100%; }
  .hero-photo,
  .hero-panel { aspect-ratio: 3 / 4; min-height: 0; max-height: 26rem; }
}

/* bold layout: accent hero band */
.layout-bold .hero {
  background: var(--accent);
  color: #fff;
  padding-block: 0.25rem calc(2.25rem * var(--sp));
}
.layout-bold .hero .eyebrow { color: rgba(255, 255, 255, 0.82); }
.layout-bold .hero .lead { color: rgba(255, 255, 255, 0.9); }
.layout-bold .hero .btn-primary {
  background: #F7890B;
  border-color: #F7890B;
  color: #fff !important;
}
.layout-bold .hero .btn-primary:hover { background: #D97309; border-color: #D97309; }
.layout-bold .hero .btn-secondary {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.65);
  color: #fff !important;
}
.layout-bold .hero .btn-secondary:hover { border-color: #fff; background: rgba(255, 255, 255, 0.1); }
.layout-bold .trust { color: rgba(255, 255, 255, 0.92); }
.layout-bold .trust strong { color: #fff; }
.layout-bold .trust-badge { background: rgba(255, 255, 255, 0.16); color: #fff; }
.layout-bold .stars { color: #fcd34d; }
.layout-bold .hero-panel {
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(255, 255, 255, 0.18), transparent 55%),
    linear-gradient(145deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.05));
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
}
.layout-bold .hero-panel-mono {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
}
.layout-bold .hero-card {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff;
  backdrop-filter: blur(6px);
}
.layout-bold .hero-card .facts .k { color: rgba(255, 255, 255, 0.7); }
.layout-bold .hero-card a { color: #fff; }

/* ---------- sections + hash-nav landing ---------- */

.block {
  padding: calc(2.6rem * var(--sp)) 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: var(--scroll-pad);
}
.layout-bold .hero + .block { border-top: none; }
.block-tint {
  background: var(--surface);
  border-top-color: transparent;
}
.block-tint + .block:not(.block-tint):not(.block-contact) {
  border-top-color: transparent;
}

/* Soft :target pulse so nav jumps are obvious (CSS-only, ~2s) */
@keyframes target-flash {
  0% { box-shadow: inset 0 0 0 3px color-mix(in srgb, var(--accent) 55%, transparent); }
  70% { box-shadow: inset 0 0 0 3px color-mix(in srgb, var(--accent) 35%, transparent); }
  100% { box-shadow: inset 0 0 0 0 transparent; }
}
.block:target {
  animation: target-flash 2s ease-out;
}
@media (prefers-reduced-motion: reduce) {
  .block:target {
    animation: none;
    box-shadow: inset 0 0 0 3px color-mix(in srgb, var(--accent) 40%, transparent);
  }
}

.block-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.25rem 1rem;
  margin-bottom: calc(1.15rem * var(--sp));
}
.block h2 {
  font-size: 1.45rem;
  line-height: 1.2;
  letter-spacing: -0.015em;
  font-weight: 750;
}
.note { color: var(--muted); font-size: 0.92rem; }
.sub {
  margin: 1.4rem 0 0.55rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

/* services */
.services {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
}
.services li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.85rem;
  align-items: start;
  padding: 1.05rem 1.15rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--elev-sm);
}
.svc-icon {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent-text);
  flex: none;
}
.svc-icon svg { width: 1.25rem; height: 1.25rem; }
.svc-body { min-width: 0; }
.services strong {
  display: block;
  font-size: 1.02rem;
  line-height: 1.3;
  margin-bottom: 0.25rem;
}
.services li.no-blurb strong { margin-bottom: 0; }
.services .svc-body > span { color: var(--ink-2); font-size: 0.93rem; }
.density-compact .services li { padding: 0.8rem 0.95rem; }

/* about */
.about-text {
  max-width: 66ch;
  font-size: 1.02rem;
  color: var(--ink-2);
}
.about-text + .chips { margin-top: 1.1rem; }
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.chips li {
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  color: var(--accent-text);
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.35;
}
.chips-plain li {
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--ink-2);
  font-weight: 500;
}

/* reviews — proper quote cards */
.quotes {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr));
}
.quote {
  margin: 0;
  padding: 1.2rem 1.25rem 1.15rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--elev-sm);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.quote .stars {
  display: block;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  line-height: 1;
}
.quote blockquote { margin: 0; }
.quote blockquote p {
  font-size: 1rem;
  line-height: 1.5;
  color: var(--ink);
  font-family: var(--font-display);
}
.quote figcaption {
  margin-top: auto;
  padding-top: 0.35rem;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--muted);
}

/* hours */
.hours {
  max-width: 34rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--elev-sm);
  background: var(--card);
}
.hours li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}
.hours li:last-child { border-bottom: none; }
.hours .d { font-weight: 600; color: var(--ink-2); }
.hours .t { text-align: right; }
.hours .closed { color: var(--muted); }

/* photos */
.gallery {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}
.gallery figure {
  margin: 0;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--elev-sm);
}
.gallery .gallery-open {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  color: inherit;
  font: inherit;
  text-align: left;
}
.gallery .gallery-open:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; pointer-events: none; }
.gallery figcaption { padding: 0.5rem 0.75rem; font-size: 0.82rem; color: var(--muted); }

/* contact — dark band; generous padding so #contact jump shows H2 + card */
.block-contact {
  background: var(--contact-bg);
  color: #e8eef5;
  border-top: none;
  padding: calc(3.25rem * var(--sp)) 0 calc(3.5rem * var(--sp));
  min-height: min(70vh, 520px);
  display: flex;
  align-items: center;
}
.block-contact .wrap { width: min(var(--wrap), calc(100% - 2.25rem)); }
.block-contact:target {
  animation: target-flash-dark 2s ease-out;
}
@keyframes target-flash-dark {
  0% { box-shadow: inset 0 0 0 3px color-mix(in srgb, var(--accent) 70%, white); }
  70% { box-shadow: inset 0 0 0 3px color-mix(in srgb, var(--accent) 40%, white); }
  100% { box-shadow: inset 0 0 0 0 transparent; }
}
.contact-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
  padding: clamp(1.35rem, 3.5vw, 2rem);
  background: color-mix(in srgb, #fff 6%, transparent);
  border: 1px solid color-mix(in srgb, #fff 14%, transparent);
  border-radius: 18px;
  width: 100%;
}
.contact-copy h2 {
  margin-bottom: 0.35rem;
  font-size: clamp(1.6rem, 1.3rem + 1vw, 2rem);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
}
.contact-copy .note {
  margin-bottom: 1.1rem;
  color: #a8b3c4;
  font-size: 1rem;
}
.contact-actions {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.contact-actions .btn { width: 100%; }
.block-contact .btn-secondary {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff !important;
}
.block-contact .btn-secondary:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08);
}
.block-contact .facts .k { color: #94a3b8; }
.block-contact .facts .v,
.block-contact .facts a { color: #e8eef5; }
.block-contact a:hover { color: #fff; }
@media (min-width: 720px) {
  .contact-card {
    grid-template-columns: minmax(0, 1.5fr) minmax(230px, 300px);
    align-items: start;
  }
}

.facts { display: grid; gap: 0.45rem; }
.facts li {
  display: grid;
  grid-template-columns: 5.25rem minmax(0, 1fr);
  gap: 0.5rem;
  font-size: 0.95rem;
  line-height: 1.45;
}
.facts .k { color: var(--muted); }
.facts .v { overflow-wrap: anywhere; }

/* ---------- footer ---------- */

.site-footer {
  padding: calc(1.5rem * var(--sp)) 0 calc(2.5rem * var(--sp));
  background: #070b14;
  color: #8b97a8;
  font-size: 0.88rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.site-footer p { margin: 0 0 0.3rem; }
.site-footer strong { color: #c7d0dc; }
.site-footer a { color: #c7d0dc; }
.site-footer a[href^="tel:"] { white-space: nowrap; }
.fine { font-size: 0.82rem; }

/* ---------- print ---------- */
@media print {
  .site-header { position: static; }
  .btn { border: 1px solid #000; }
  .block-contact { background: #fff; color: #000; min-height: 0; }
}


/* --- lightbox / photo carousel (local site.js) --- */
html.lb-open, body.lb-open {
  overflow: hidden;
  touch-action: none;
}
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  grid-template-rows: auto 1fr;
  background: rgba(6, 10, 16, 0.92);
  color: #f4f7fb;
  -webkit-tap-highlight-color: transparent;
  touch-action: none;
}
.lightbox[hidden] { display: none !important; }
.lb-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.lb-chrome {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: max(0.65rem, env(safe-area-inset-top)) 1rem 0.5rem;
  pointer-events: none;
}
.lb-chrome > * { pointer-events: auto; }
.lb-counter {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.82);
  font-variant-numeric: tabular-nums;
}
.lb-close {
  appearance: none;
  border: 0;
  background: rgba(255,255,255,0.1);
  color: #fff;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  font-size: 1.55rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  margin-left: auto;
}
.lb-close:hover { background: rgba(255,255,255,0.18); }
.lb-close:focus-visible,
.lb-nav:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}
.lb-stage {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  min-height: 0;
  padding: 0.5rem 3.25rem 1.5rem;
  transition: transform 0.12s ease, opacity 0.12s ease;
}
.lb-img {
  max-width: min(100%, 1100px);
  max-height: min(82vh, 900px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 18px 50px rgba(0,0,0,0.45);
  user-select: none;
  -webkit-user-drag: none;
}
.lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  appearance: none;
  border: 0;
  background: rgba(255,255,255,0.1);
  color: #fff;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  font-size: 1.25rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  z-index: 2;
}
.lb-nav:hover { background: rgba(255,255,255,0.2); }
.lb-prev { left: 0.5rem; }
.lb-next { right: 0.5rem; }
@media (max-width: 640px) {
  .lb-stage { padding: 0.25rem 0.75rem 1.25rem; }
  .lb-nav {
    width: 2.35rem;
    height: 2.35rem;
    font-size: 1.05rem;
    background: rgba(255,255,255,0.14);
  }
  .lb-prev { left: 0.25rem; }
  .lb-next { right: 0.25rem; }
  .lb-img { max-height: 78vh; border-radius: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  .lb-stage { transition: none; }
}

/* ---------- Mode C: HeatWave GBP flyer skin (final) ---------- */
.site-header {
  background: #0B1220 !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}
.site-header .brand,
.site-header .brand-name { color: #fff !important; }
.site-header .brand-sub,
.site-header .brand span { color: rgba(255, 255, 255, 0.65) !important; }
.site-header .site-nav a { color: rgba(255, 255, 255, 0.78) !important; }
.site-header .site-nav a:hover { color: #fff !important; text-decoration: none; }
.site-header .btn-call,
.site-header .btn.btn-primary.btn-call {
  background: #F7890B !important;
  border: 1px solid #F7890B !important;
  border-radius: 10px !important;
  color: #fff !important;
}
.site-header .btn-call:hover {
  background: #D97309 !important;
  border-color: #D97309 !important;
}
.layout-bold .hero {
  background: #0B1220 !important;
  color: #fff;
}
.layout-bold .hero .lead,
.layout-bold .hero .eyebrow { color: rgba(255, 255, 255, 0.85); }
.layout-bold .hero h1 { color: #fff; }
.block-contact { background: #0B1220 !important; }


/* Mode C: flame + compact brand so nav/CTA keep room */
.site-header .bar {
  gap: 1rem !important;
  align-items: center;
}
.site-header .brand {
  flex: 0 1 auto;
  min-width: 0;
  max-width: min(18rem, 42vw);
  gap: 0.65rem;
  align-items: center;
}
.site-header .brand-mark {
  flex: 0 0 auto;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0;
  overflow: visible;
  background: transparent;
  box-shadow: none;
}
.site-header .brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}
.site-header .brand-text {
  min-width: 0;
}
.site-header .brand-name {
  font-size: 1.05rem !important;
  line-height: 1.15 !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  -webkit-line-clamp: unset !important;
  display: block !important;
}
.site-header .brand-sub {
  display: block !important;
  font-size: 0.72rem !important;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0.7;
}
.site-header .site-nav {
  flex: 0 0 auto;
  margin-left: auto;
  justify-content: flex-end;
  gap: 1.15rem;
  min-width: 0;
}
.site-header .btn-call {
  flex: 0 0 auto;
  margin-left: 0.75rem;
}
.site-header .brand {
  max-width: none;
}
/* Mode C nav: no glass pill */

.site-header .site-nav {
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
}


/* Mode C: flyer wordmark — exact brand, no freelanced flame+text */
.site-header .brand.brand-wordmark {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  max-width: min(22rem, 52vw);
  gap: 0;
  min-width: 0;
}
.site-header .brand-wordmark-img {
  display: block;
  height: 3.1rem;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: left center;
}
@media (max-width: 639px) {
  .site-header .brand-wordmark-img { height: 2.4rem; }
}


/* Mode C: flyer hero copy + exposed rating + emergency */
.layout-bold .hero .accent-word { color: #F7890B; }
.layout-bold .hero-rating {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.35rem;
  margin: 1.1rem 0 0.85rem;
  max-width: 100%;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: 0;
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none !important;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
}
.layout-bold .hero-rating > span {
  display: inline-flex;
  align-items: center;
  line-height: 1;
}
.layout-bold .hero-rating .stars {
  color: #fbbf24;
  letter-spacing: 0.02em;
  font-size: 0.78rem;
  flex: 0 0 auto;
}
.layout-bold .hero-rating-score { font-size: 0.95rem; flex: 0 0 auto; }
.layout-bold .hero-rating-meta { opacity: 0.85; flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.layout-bold .hero-rating-cta {
  color: #F7890B;
  font-weight: 500;
  margin-left: 0.15rem;
  padding-left: 0;
  border-left: 0;
  flex: 0 0 auto;
}
.layout-bold .hero-rating:hover .hero-rating-cta { text-decoration: underline; }
@media (max-width: 719px) {
  .layout-bold .hero-rating {
    width: auto;
    align-self: flex-start;
    padding: 0;
    font-size: 0.82rem;
    gap: 0.28rem;
    margin: 0 0 1.1rem;
  }
  .layout-bold .hero-rating .stars { font-size: 0.7rem; }
  .layout-bold .hero-rating-score { font-size: 0.88rem; }
  .layout-bold .hero-rating-cta { padding-left: 0.35rem; }
}
.layout-bold .hero h1 { font-size: clamp(1.75rem, 3.2vw, 2.55rem); line-height: 1.15; max-width: 22ch; }
.layout-bold .hero-props {
  list-style: none;
  margin: 1.1rem 0 0.85rem;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}
@media (min-width: 720px) {
  .layout-bold .hero-props { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem; }
}
.layout-bold .hero-props li {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.75rem 0.8rem;
  border-radius: 12px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
}
.layout-bold .hero-props .hp-icon {
  width: 1.6rem; height: 1.6rem;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px;
  background: rgba(247,137,11,0.2);
  color: #F7890B;
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 0.15rem;
}
.layout-bold .hero-props strong {
  color: #fff;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.layout-bold .hero-props li > span:last-child {
  color: rgba(255,255,255,0.78);
  font-size: 0.88rem;
  line-height: 1.35;
}
.layout-bold .hero-emergency-chip {
  display: block;
  width: fit-content;
  margin: 0.65rem 0 0.85rem;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.4;
}
.layout-bold .hero-copy .lead {
  margin-bottom: 0;
}
.layout-bold .hero-copy .hero-actions {
  margin-top: 0;
}

.chips .chip-hot {
  background: rgba(247, 137, 11, 0.18) !important;
  border-color: rgba(247, 137, 11, 0.4) !important;
  color: inherit;
  font-weight: 650;
}

/* Why HeatWave — compact value props under Services (relocated from hero) */
.why-row {
  list-style: none;
  margin: 0 0 1.35rem;
  padding: 0;
  display: grid;
  gap: 0.65rem;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .why-row { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem; }
}
.why-row li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.7rem;
  align-items: start;
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--elev-sm);
}
.why-icon {
  display: grid;
  place-items: center;
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-text);
  flex: none;
}
.why-icon svg { width: 0.95rem; height: 0.95rem; display: block; }
.why-body { min-width: 0; }
.why-body strong {
  display: block;
  font-size: 0.9rem;
  line-height: 1.25;
  margin-bottom: 0.15rem;
}
.why-body span {
  display: block;
  color: var(--ink-2);
  font-size: 0.86rem;
  line-height: 1.35;
}
.block-head + .why-row { margin-top: 0.15rem; }



/* Mode C: hero CTAs first on mobile; matching orange SVG icons */
.layout-bold .hero-props .hp-icon {
  color: #F7890B;
}
.layout-bold .hero-props .hp-svg {
  width: 1rem;
  height: 1rem;
  display: block;
}
.layout-bold .hero-copy {
  display: flex;
  flex-direction: column;
  gap: 0;
}
/* Slim Mode C stack: rating → h1 → lead → emergency → CTAs (no eyebrow/props) */
.layout-bold .hero-copy h1 { order: 1; }
.layout-bold .hero-copy .lead { order: 2; margin: 0 0 0.15rem; }
.layout-bold .hero-copy .hero-rating { order: 3; margin: 1.15rem 0 0.85rem; }
.layout-bold .hero-copy .hero-emergency-chip { order: 4; }
.layout-bold .hero-copy .hero-actions { order: 5; }

@media (max-width: 719px) {
  /* Header: brand left, Call pinned right */
  .site-header .bar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    justify-content: space-between;
  }
  .site-header .brand.brand-wordmark,
  .site-header .brand {
    flex: 1 1 auto;
    min-width: 0;
    max-width: calc(100% - 5.5rem);
  }
  .site-header .site-nav { display: none !important; }
  .site-header .btn-call {
    flex: 0 0 auto;
    margin-left: auto !important;
    margin-right: 0;
  }

  .layout-bold .hero {
    padding-block: 1rem 1.75rem;
  }
  .layout-bold .hero-copy {
    gap: 0; /* use per-item margins */
  }
.layout-bold .hero-copy .hero-rating {
    margin: 1.35rem 0 1rem;
  }
  .layout-bold .hero-copy h1 {
    order: 2;
    margin: 0 0 0.95rem;
    max-width: none;
    font-size: clamp(1.55rem, 7vw, 1.95rem);
    line-height: 1.2;
  }
  .layout-bold .hero-copy .lead {
    order: 3;
    margin: 0;
    line-height: 1.5;
  }
  .layout-bold .hero-copy .hero-emergency-chip {
    order: 4;
    margin: 1rem 0;
    font-size: 0.76rem;
  }
  .layout-bold .hero-copy .hero-actions {
    order: 5;
    margin: 0;
    gap: 0.75rem;
  }
  .layout-bold .hero-actions .btn {
    width: 100%;
    justify-content: center;
    min-height: 3.1rem;
    font-size: 1.02rem;
  }
  .layout-bold .hero-actions .btn-lg {
    min-height: 3.35rem;
    font-weight: 700;
  }
  .layout-bold .hero-grid {
    gap: 1.5rem;
  }
  .layout-bold .hero-visual {
    margin-top: 0.5rem;
  }
}

/* Header Call always end-aligned */
.site-header .bar { justify-content: flex-start; }
.site-header .btn-call { margin-left: auto !important; flex: 0 0 auto; }

/* Mode C: fuller photos grid */
.gallery {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}
@media (min-width: 720px) {
  .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
}
.gallery figure { margin: 0; }
.gallery img {
  width: 100%;
  height: 12rem;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}
@media (min-width: 720px) {
  .gallery img { height: 14rem; }
}

/* Gallery crop: per-image object-position via inline style */
.gallery img {
  object-fit: cover;
  object-position: center center; /* default; overridden inline when needed */
}

@media (max-width: 719px) {
  /* Hero photo: don’t crush the subject on narrow screens */
  .layout-bold .hero-photo {
    aspect-ratio: 5 / 4;
    max-height: 16rem;
  }
  .layout-bold .hero-photo img {
    object-fit: cover;
    object-position: center 28%;
  }
}

/* Preview buy-from-preview pricing (agency checkout) */
.block-pricing {
  background: #f6f8fb;
  color: var(--ink, #0b1220);
  padding: 3rem 0 3.25rem;
}
.block-pricing .block-head { margin-bottom: 1.5rem; }
.block-pricing .block-head .note { max-width: 36rem; }
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 720px) {
  .pricing-grid { grid-template-columns: 1fr 1fr; gap: 1.25rem; }
}
.price-card {
  position: relative;
  background: #fff;
  border: 1px solid #d8e0ea;
  border-radius: 16px;
  padding: 1.35rem 1.35rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.price-card-highlight {
  border-color: var(--accent, #0d9488);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent, #0d9488) 35%, transparent),
    0 8px 24px rgba(15, 23, 42, 0.08);
}
.price-badge {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  background: var(--accent, #0d9488);
  color: var(--accent-ink, #fff);
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
}
.price-name {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
}
.price-amount {
  margin: 0;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.price-amount .price-per,
.price-amount .price-then {
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink-2, #334155);
}
.price-sub {
  margin: 0;
  color: #64748b;
  font-size: 0.92rem;
}
.price-bullets {
  margin: 0.35rem 0 0.5rem;
  padding: 0 0 0 1.1rem;
  color: #334155;
  flex: 1 1 auto;
}
.price-bullets li { margin: 0.25rem 0; }
.price-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.35rem;
}
.price-actions .btn {
  width: 100%;
  justify-content: center;
}
.price-actions .btn[disabled] {
  opacity: 0.65;
  cursor: wait;
}
.pricing-status {
  margin: 1rem 0 0;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #9a3412;
  font-size: 0.95rem;
}
.pricing-status.is-ok {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #065f46;
}

/* Keep pricing readable above dark contact band */
.block-pricing + .block-contact { margin-top: 0; }

/* —— Agency checkout chrome (NOT client theme) —— */
.proposal-banner-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.2rem 0.5rem;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1rem;
  width: 100%;
  text-align: center;
}
.proposal-banner-text {
  margin: 0;
  flex: 0 1 auto;
  font-size: inherit;
  font-weight: 500;
  line-height: 1.35;
  color: #c7d0dc;
}
.proposal-banner-text,
.proposal-banner-text * {
  font-family: inherit;
  font-size: inherit;
  font-weight: 500;
  line-height: inherit;
}
.agency-topbar-sep { color: #64748b; font-weight: 500; }
.agency-ttl,
.agency-ttl-sub,
.agency-topbar-label { color: #c7d0dc; white-space: nowrap; }
.agency-buy-link {
  appearance: none;
  border: 0;
  margin: 0;
  padding: 0;
  font: inherit;
  font-weight: 500;
  font-size: inherit;
  line-height: inherit;
  cursor: pointer;
  background: transparent;
  color: #F7890B;
  text-decoration: none;
  box-shadow: none;
  vertical-align: baseline;
}
.agency-buy-link:hover,
.agency-buy-link:focus-visible { text-decoration: underline; }
.agency-buy-link:active { color: #D97309; }

.agency-changes-link {
  appearance: none;
  border: 0;
  margin: 0;
  padding: 0;
  font: inherit;
  font-weight: 500;
  font-size: inherit;
  line-height: inherit;
  cursor: pointer;
  background: transparent;
  color: #94a3b8;
  text-decoration: none;
  box-shadow: none;
  vertical-align: baseline;
}
.agency-changes-link:hover,
.agency-changes-link:focus-visible {
  color: #cbd5e1;
  text-decoration: underline;
}
.agency-changes-link:active { color: #e2e8f0; }

.agency-checkout {
  border: 0;
  padding: 0;
  max-width: min(42rem, calc(100vw - 1.25rem));
  width: 100%;
  max-height: calc(100vh - 1.5rem);
  border-radius: 20px;
  background: transparent;
  color: #0B1220;
  overflow: visible;
}
.agency-checkout:not([open]) { display: none; }
.agency-checkout[open] {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  margin: auto;
}
.agency-checkout::backdrop {
  background: rgba(11, 18, 32, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.28s ease;
}
.agency-checkout[open]::backdrop { opacity: 1; }

.agency-checkout-sheet {
  position: relative;
  background: #fff;
  border-radius: 20px;
  padding: 1.15rem 1.2rem 1.25rem;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.38);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  width: 100%;
  max-height: calc(100vh - 1.5rem);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  transform: translateY(18px) scale(0.96);
  opacity: 0;
  transition:
    transform 0.42s cubic-bezier(0.22, 1.4, 0.36, 1),
    opacity 0.28s ease;
}
.agency-checkout[open] .agency-checkout-sheet,
.agency-checkout.is-open .agency-checkout-sheet {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.agency-checkout-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  appearance: none;
  border: 0;
  background: #f1f5f9;
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 999px;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  color: #0B1220;
  margin: 0;
  transition: background 0.15s ease, transform 0.15s ease;
}
.agency-checkout-close:hover { background: #e2e8f0; }
.agency-checkout-close:active { transform: scale(0.92); }

.agency-checkout h2 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.25rem, 4vw, 1.5rem);
  color: #0B1220;
  letter-spacing: -0.02em;
  padding-right: 3.5rem;
}
.agency-checkout-lead {
  margin: 0 0 1rem;
  color: #475569;
  font-size: 0.95rem;
  line-height: 1.45;
}

.agency-step { display: none; }
.agency-step.is-active {
  display: block;
  animation: agency-step-in 0.38s cubic-bezier(0.22, 1.2, 0.36, 1) both;
}
.agency-step.is-leaving {
  display: block;
  animation: agency-step-out 0.22s ease both;
  pointer-events: none;
}
@keyframes agency-step-in {
  from { opacity: 0; transform: translateX(18px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes agency-step-out {
  from { opacity: 1; transform: translateX(0); }
  to { opacity: 0; transform: translateX(-14px); }
}
.agency-step-pay.is-active.from-back { animation-name: agency-step-in-back; }
@keyframes agency-step-in-back {
  from { opacity: 0; transform: translateX(-18px); }
  to { opacity: 1; transform: translateX(0); }
}

.agency-back {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0.15rem 3.5rem 0.25rem 0;
  margin: 0 0 0.35rem;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 650;
  color: #475569;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}
.agency-back:hover { color: #0B1220; }

.agency-checkout-grid {
  display: grid;
  gap: 0.75rem;
}
@media (min-width: 560px) {
  .agency-checkout-grid { grid-template-columns: 1fr 1fr; gap: 0.85rem; }
}
.agency-plan {
  position: relative;
  appearance: none;
  border: 2px solid #e2e8f0;
  border-radius: 16px;
  padding: 1rem 1rem 1.05rem;
  background: #f8fafc;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
  width: 100%;
  transition:
    transform 0.22s cubic-bezier(0.22, 1.3, 0.36, 1),
    box-shadow 0.22s ease,
    border-color 0.18s ease,
    background 0.18s ease;
  -webkit-tap-highlight-color: transparent;
}
.agency-plan:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(11, 18, 32, 0.1);
  border-color: #cbd5e1;
}
.agency-plan:active { transform: translateY(0) scale(0.985); }
.agency-plan-hot {
  border-color: #F7890B;
  background: #fff7ed;
}
.agency-plan.is-selected {
  border-color: #0B1220;
  background: #fff;
  box-shadow: 0 0 0 1px #0B1220, 0 14px 32px rgba(11, 18, 32, 0.12);
}
.agency-plan-hot.is-selected {
  border-color: #F7890B;
  box-shadow: 0 0 0 1px #F7890B, 0 14px 32px rgba(247, 137, 11, 0.22);
  background: #fffaf3;
}
.agency-plan-check {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 999px;
  border: 2px solid #cbd5e1;
  background: #fff;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.2s cubic-bezier(0.22, 1.5, 0.36, 1);
}
.agency-plan-check::after {
  content: "";
  position: absolute;
  inset: 0;
  background: no-repeat center / 0.7rem
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 6.2L4.8 8.5 9.5 3.5'/%3E%3C/svg%3E");
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 0.15s ease, transform 0.2s cubic-bezier(0.22, 1.5, 0.36, 1);
}
.agency-plan.is-selected .agency-plan-check {
  background: #0B1220;
  border-color: #0B1220;
  transform: scale(1.05);
}
.agency-plan-hot.is-selected .agency-plan-check {
  background: #F7890B;
  border-color: #F7890B;
}
.agency-plan.is-selected .agency-plan-check::after {
  opacity: 1;
  transform: scale(1);
}
.agency-plan-badge {
  display: inline-block;
  margin: 0 0 0.4rem;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  background: #F7890B;
  color: #0B1220;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.agency-plan h3 {
  margin: 0 0 0.45rem;
  font-size: 1.08rem;
  color: #0B1220;
  padding-right: 1.6rem;
}
.agency-plan-price {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.05rem;
  color: #0B1220;
}
.agency-plan-amount {
  font-size: clamp(1.85rem, 5vw, 2.15rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
}
.agency-plan-unit {
  font-size: 0.9rem;
  font-weight: 500;
  color: #64748b;
  line-height: 1.25;
}
.agency-plan-then {
  margin: 0.35rem 0 0;
  font-size: 0.98rem;
  font-weight: 650;
  color: #0B1220;
}
.agency-plan-sub {
  margin: 0.3rem 0 0.65rem;
  font-size: 0.84rem;
  color: #64748b;
}
.agency-plan-body {
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.agency-plan-chip {
  display: inline-flex;
  align-self: flex-start;
  margin: 0;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  background: #eef2ff;
  color: #334155;
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.01em;
  line-height: 1.3;
  border: 1px solid rgba(99, 102, 241, 0.12);
}
.agency-plan-chip-hot {
  background: #fff7ed;
  color: #9a3412;
  border-color: rgba(247, 137, 11, 0.28);
}
.agency-plan-features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  color: #334155;
  font-size: 0.86rem;
  line-height: 1.4;
}
.agency-plan-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
}
.agency-plan-tick {
  flex: 0 0 auto;
  width: 1.05rem;
  height: 1.05rem;
  margin-top: 0.08rem;
  border-radius: 999px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  box-shadow: inset 0 0 0 1px rgba(16, 185, 129, 0.06);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%23059669' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 6.2L4.8 8.5 9.5 3.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 0.65rem;
}
.agency-plan-hot .agency-plan-tick {
  background-color: #fff7ed;
  border-color: rgba(247, 137, 11, 0.35);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%23C66A08' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 6.2L4.8 8.5 9.5 3.5'/%3E%3C/svg%3E");
}
.agency-plan.is-selected .agency-plan-tick {
  background-color: #ecfdf5;
  border-color: #6ee7b7;
}
.agency-plan-hot.is-selected .agency-plan-tick {
  background-color: #fff7ed;
  border-color: rgba(247, 137, 11, 0.45);
}
.agency-plan ul {
  margin: 0;
  padding-left: 1.1rem;
  color: #334155;
  font-size: 0.86rem;
  line-height: 1.45;
}
.agency-plan ul li + li { margin-top: 0.2rem; }

.agency-pay-summary {
  margin: 0 0 1rem;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}
.agency-pay-summary-label {
  margin: 0 0 0.2rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
}
.agency-pay-summary-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 750;
  color: #0B1220;
}
.agency-pay-summary-price {
  margin: 0.25rem 0 0;
  font-size: 0.95rem;
  color: #334155;
  line-height: 1.4;
}

.agency-fields {
  display: grid;
  gap: 0.75rem;
}
.agency-field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.agency-field label {
  font-size: 0.85rem;
  font-weight: 650;
  color: #334155;
}
.agency-field em {
  font-style: normal;
  font-weight: 500;
  color: #94a3b8;
}
.agency-req {
  font-size: 0.72rem;
  font-weight: 600;
  color: #94a3b8;
  margin-left: 0.25rem;
  text-transform: lowercase;
}
.agency-field input {
  appearance: none;
  width: 100%;
  box-sizing: border-box;
  padding: 0.7rem 0.85rem;
  border-radius: 12px;
  border: 1.5px solid #cbd5e1;
  font: inherit;
  font-size: 1rem;
  font-weight: 500;
  color: #0B1220;
  background: #fff;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.agency-field input:hover { border-color: #94a3b8; }
.agency-field input:focus {
  outline: none;
  border-color: #F7890B;
  box-shadow: 0 0 0 3px rgba(247, 137, 11, 0.25);
}

.agency-input-wrap {
  position: relative;
  width: 100%;
}
.agency-input-wrap input {
  padding-right: 2.75rem;
}
.agency-field-clear {
  position: absolute;
  top: 50%;
  right: 0.5rem;
  display: grid;
  place-items: center;
  width: 1.8rem;
  height: 1.8rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #64748b;
  font: inherit;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
}
.agency-field-clear[hidden] { display: none !important; }
.agency-field-clear:hover,
.agency-field-clear:focus-visible {
  background: #f1f5f9;
  color: #0B1220;
}
.agency-field-clear:focus-visible {
  outline: 2px solid #F7890B;
  outline-offset: 1px;
}

/* Quiet attribution when fields are prefilled from data-suggest-* / brief. */
.agency-suggest-note {
  margin: -0.45rem 0 0.85rem;
  color: #64748b;
  font-size: 0.8rem;
  line-height: 1.35;
  font-weight: 500;
}
.agency-suggest-note[hidden] { display: none !important; }

  to { opacity: 1; transform: translateY(0) scale(1); }
}

.agency-field.is-invalid input,
.agency-field input.is-invalid {
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
}
.agency-field.is-valid input {
  border-color: #16a34a;
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.12);
}
.agency-field-hint {
  margin: 0;
  font-size: 0.78rem;
  color: #94a3b8;
  line-height: 1.35;
}
.agency-field-msg {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 600;
  color: #b91c1c;
  line-height: 1.35;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateY(-4px);
  transition: max-height 0.22s ease, opacity 0.2s ease, transform 0.2s ease, margin 0.2s ease;
}
.agency-field-msg.is-visible {
  max-height: 3rem;
  opacity: 1;
  transform: translateY(0);
  margin-top: 0.1rem;
}

/* Optional business details */
.agency-biz {
  margin-top: 1rem;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  background: #fafbfc;
  overflow: hidden;
}
.agency-biz-toggle {
  appearance: none;
  width: 100%;
  border: 0;
  background: transparent;
  padding: 0.9rem 1rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  text-align: left;
  font: inherit;
  cursor: pointer;
  color: #0B1220;
  transition: background 0.15s ease;
}
.agency-biz-toggle:hover { background: #f1f5f9; }
.agency-biz-toggle-icon {
  flex: 0 0 auto;
  width: 1.35rem;
  height: 1.35rem;
  margin-top: 0.1rem;
  border-radius: 6px;
  border: 1.5px solid #cbd5e1;
  background: #fff;
  position: relative;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.2s ease;
}
.agency-biz-toggle-icon::before,
.agency-biz-toggle-icon::after {
  content: "";
  position: absolute;
  background: #64748b;
  transition: transform 0.22s cubic-bezier(0.22, 1.3, 0.36, 1), opacity 0.15s ease;
}
.agency-biz-toggle-icon::before {
  width: 0.55rem;
  height: 1.5px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}
.agency-biz-toggle-icon::after {
  width: 1.5px;
  height: 0.55rem;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}
.agency-biz.is-open .agency-biz-toggle-icon {
  background: #F7890B;
  border-color: #F7890B;
}
.agency-biz.is-open .agency-biz-toggle-icon::before,
.agency-biz.is-open .agency-biz-toggle-icon::after {
  background: #0B1220;
}
.agency-biz.is-open .agency-biz-toggle-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
  opacity: 0;
}
.agency-biz-toggle-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.agency-biz-toggle-text strong {
  font-size: 0.95rem;
  font-weight: 750;
}
.agency-biz-toggle-hint {
  font-size: 0.82rem;
  color: #64748b;
  font-weight: 500;
}
.agency-biz-panel {
  padding: 0 1rem 1rem;
  border-top: 1px solid transparent;
}
.agency-biz.is-open .agency-biz-panel {
  border-top-color: #e2e8f0;
  animation: agency-biz-in 0.28s cubic-bezier(0.22, 1.2, 0.36, 1) both;
}
@keyframes agency-biz-in {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}
.agency-biz-note {
  margin: 0.75rem 0 0.85rem;
  font-size: 0.84rem;
  color: #64748b;
  line-height: 1.4;
}

.agency-checkout-actions {
  margin-top: 1.1rem;
  position: sticky;
  bottom: 0;
  padding-top: 0.4rem;
  background: linear-gradient(180deg, rgba(255,255,255,0) 0%, #fff 28%);
}
.agency-btn {
  display: block;
  width: 100%;
  appearance: none;
  border-radius: 12px;
  padding: 0.85rem 1rem;
  font: inherit;
  font-weight: 750;
  font-size: 1rem;
  cursor: pointer;
  text-align: center;
  transition: transform 0.15s ease, filter 0.15s ease, background 0.15s ease, opacity 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}
.agency-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}
.agency-btn-primary {
  border: 0;
  background: #F7890B;
  color: #0B1220;
  box-shadow: 0 3px 0 #C66A08;
}
.agency-btn-primary:hover:not(:disabled) { filter: brightness(1.05); }
.agency-btn-primary:active:not(:disabled) {
  transform: translateY(2px);
  box-shadow: 0 1px 0 #C66A08;
}
.agency-btn-primary.is-busy {
  opacity: 0.75;
  pointer-events: none;
}

.agency-checkout-status {
  margin: 0.85rem 0 0;
  font-size: 0.9rem;
  color: #0B1220;
  line-height: 1.4;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.25s ease, opacity 0.2s ease, margin 0.2s ease;
}
.agency-checkout-status.is-visible {
  max-height: 5rem;
  opacity: 1;
}
.agency-checkout-status.is-ok { color: #15803d; }
.agency-checkout-status.is-err { color: #b91c1c; }
.agency-checkout-foot {
  margin: 1rem 0 0;
  padding-top: 0.85rem;
  border-top: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  text-align: center;
}
.agency-contact-open {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0.15rem 0.35rem;
  margin: 0;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 650;
  color: #C66A08;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
  -webkit-tap-highlight-color: transparent;
}
.agency-contact-open:hover { color: #9a4e06; }
.agency-contact-open:focus-visible {
  outline: 2px solid #F7890B;
  outline-offset: 3px;
  border-radius: 4px;
}
.agency-checkout-foot-trust {
  margin: 0;
  font-size: 0.78rem;
  color: #94a3b8;
  line-height: 1.4;
  user-select: text;
}
.agency-checkout-foot-trust a {
  color: #64748b;
  font-weight: 550;
  text-decoration: underline;
  text-underline-offset: 0.14em;
}
.agency-checkout-foot-trust a:hover { color: #C66A08; }
.agency-copy-email {
  appearance: none;
  border: 0;
  background: transparent;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin: 0 0 0 0.12rem;
  padding: 0.15rem 0.2rem;
  color: #64748b;
  cursor: pointer;
  vertical-align: middle;
  -webkit-tap-highlight-color: transparent;
}
.agency-copy-email svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.35;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.agency-copy-email:hover { color: #C66A08; }
.agency-copy-email:focus-visible {
  outline: 2px solid #F7890B;
  outline-offset: 2px;
  border-radius: 4px;
}
.agency-copy-email.is-copied { color: #15803d; }
.agency-copy-email-feedback {
  font-size: 0.72rem;
  font-weight: 650;
  line-height: 1;
}
.agency-checkout-foot > .agency-contact-open { color: #C66A08; font-weight: 650; }

.agency-contact-form { margin-top: 0.25rem; }
.agency-contact-fields { margin-bottom: 1.25rem; }
.agency-contact-form textarea {
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 0.7rem 0.85rem;
  border: 1.5px solid #cbd5e1;
  border-radius: 12px;
  font: inherit;
  font-size: 0.95rem;
  line-height: 1.45;
  color: #0B1220;
  background: #fff;
  resize: vertical;
  min-height: 6.5rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.agency-contact-form textarea:focus {
  outline: none;
  border-color: #F7890B;
  box-shadow: 0 0 0 3px rgba(247, 137, 11, 0.18);
}
.agency-field[data-field="contact-message"].is-invalid textarea {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12);
}
.agency-contact-form > [data-agency-contact-submit] { margin-top: 0.35rem; width: 100%; }
.agency-contact-status {
  margin: 0 0 0.75rem;
  padding: 0.65rem 0.8rem;
  border-radius: 10px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
  font-size: 0.88rem;
  line-height: 1.4;
}
.agency-contact-status.is-err {
  background: #fff7ed;
  border-color: #fed7aa;
  color: #9a3412;
}

@media (prefers-reduced-motion: reduce) {
  .agency-checkout::backdrop,
  .agency-checkout-sheet,
  .agency-plan,
  .agency-buy-link,
  .agency-changes-link,
  .agency-btn,
  .agency-checkout-close,
  .agency-plan-check,
  .agency-plan-check::after,
  .agency-field input,
  .agency-field-msg,
  .agency-checkout-status,
  .agency-biz-toggle-icon,
  .agency-biz-toggle-icon::before,
  .agency-biz-toggle-icon::after {
    transition: none !important;
  }
  .agency-step.is-active,
  .agency-step.is-leaving,
  .agency-step-pay.is-active.from-back,
  .agency-biz.is-open .agency-biz-panel {
    animation: none !important;
  }
  .agency-checkout-sheet {
    transform: none;
    opacity: 1;
  }
  .agency-plan:hover { transform: none; }
}

/* —— Success / cancel return UI —— */
.agency-btn-ghost {
  display: block;
  width: 100%;
  margin-top: 0.55rem;
  appearance: none;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  padding: 0.75rem 1rem;
  font: inherit;
  font-weight: 650;
  font-size: 0.95rem;
  text-align: center;
  text-decoration: none;
  color: #0B1220;
  background: #fff;
  cursor: pointer;
  box-sizing: border-box;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.agency-btn-ghost:hover { background: #f8fafc; border-color: #94a3b8; }
.agency-step-result .agency-checkout-actions {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.agency-result {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0.35rem 0.25rem 0.15rem;
}
.agency-result-celebrate {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  text-align: center;
}
.agency-result.is-domain-flow .agency-result-celebrate {
  display: none;
}
.agency-result-icon {
  width: 3.5rem;
  height: 3.5rem;
  margin: 0.15rem auto 0.85rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  line-height: 0;
  background: #ecfdf5;
  color: #15803d;
  box-shadow: inset 0 0 0 1px rgba(21, 128, 61, 0.18);
  flex-shrink: 0;
}
.agency-result.is-success .agency-result-icon {
  animation: agency-pop 0.55s cubic-bezier(0.22, 1.4, 0.36, 1) both;
  box-shadow:
    inset 0 0 0 1px rgba(21, 128, 61, 0.22),
    0 0 0 8px rgba(34, 197, 94, 0.12);
}
.agency-result.is-cancel .agency-result-icon {
  background: #fff7ed;
  color: #c2410c;
  box-shadow: inset 0 0 0 1px rgba(194, 65, 12, 0.16);
  animation: none;
}
.agency-result-icon::before { content: none; }
.agency-result-mark {
  display: block;
  width: 1.55rem;
  height: 1.55rem;
  flex-shrink: 0;
}
.agency-result-mark-cancel { display: none; }
.agency-result.is-cancel .agency-result-mark-check { display: none; }
.agency-result.is-cancel .agency-result-mark-cancel { display: block; }
.agency-result h2 {
  margin: 0 0 0.45rem;
  padding-right: 0; /* don’t offset for Close X — icon + title stay centered */
  text-align: center;
  width: 100%;
}
.agency-result.is-success h2 {
  color: #14532d;
}
.agency-result-celebrate > .agency-checkout-lead,
.agency-result-celebrate > [data-agency-result-lead] {
  text-align: center;
  width: 100%;
  padding-right: 0;
}
.agency-result-body {
  text-align: left;
  margin: 1rem 0 0.35rem;
  width: 100%;
  align-self: stretch;
}
.agency-domain-fork-label {
  margin: 0 0 0.65rem;
  font-weight: 700;
  font-size: 0.95rem;
  color: #0B1220;
  text-align: center;
}
.agency-domain-choices {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
}
@media (min-width: 480px) {
  .agency-domain-choices {
    grid-template-columns: 1fr 1fr;
  }
}
.agency-domain-choice {
  appearance: none;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  padding: 0.95rem 0.9rem;
  background: #f8fafc;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: #0B1220;
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    transform 0.18s ease,
    box-shadow 0.18s ease;
  box-shadow: 0 1px 0 rgba(11, 18, 32, 0.04);
}
.agency-domain-choice:hover {
  border-color: #F7890B;
  background: #fff;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(11, 18, 32, 0.08);
}
.agency-domain-choice:active { transform: translateY(1px) scale(0.99); }
.agency-domain-choice.is-active {
  border-color: #F7890B;
  background: #fff7ed;
  box-shadow: 0 0 0 3px rgba(247, 137, 11, 0.18);
}
.agency-domain-choice-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 0.35rem;
  border-radius: 999px;
  background: #fff7ed;
  color: #C66A08;
  box-shadow: inset 0 0 0 1px rgba(198, 106, 8, 0.18);
  line-height: 0;
  transition: background 0.18s ease, box-shadow 0.18s ease, color 0.18s ease;
}
.agency-domain-choice-icon svg {
  width: 1.5rem;
  height: 1.5rem;
  display: block;
}
.agency-domain-choice:hover .agency-domain-choice-icon,
.agency-domain-choice.is-active .agency-domain-choice-icon {
  background: #ffedd5;
  color: #C66A08;
  box-shadow: inset 0 0 0 1px rgba(247, 137, 11, 0.35);
}
.agency-domain-choice strong {
  font-size: 0.95rem;
  font-weight: 750;
  line-height: 1.25;
}
.agency-domain-choice-hint {
  font-size: 0.8rem;
  line-height: 1.35;
  color: #475569;
  font-weight: 500;
}
.agency-domain-panel {
  margin-top: 0.35rem;
  padding: 0.15rem 0 0.25rem;
  animation: agency-slide-in 0.28s ease both;
}
.agency-domain-panel[hidden] { display: none !important; }
.agency-domain-explain,
.agency-domain-after {
  margin: 0.35rem 0 0.85rem;
  font-size: 0.9rem;
  line-height: 1.45;
  color: #334155;
}
.agency-domain-after {
  margin-top: 1rem;
  font-weight: 650;
  color: #0B1220;
}
.agency-domain-panel .agency-btn-primary {
  margin-top: 0.35rem;
}
.agency-buy-domain-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  width: fit-content;
  margin: 0.65rem auto 0.25rem;
  color: #334155;
  font-size: 1.06rem;
  font-weight: 750;
  line-height: 1.35;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}
.agency-buy-domain-link:hover,
.agency-buy-domain-link:focus-visible {
  color: #0B1220;
}
.agency-buy-domain-link span {
  font-size: 0.9em;
  text-decoration: none;
}
.agency-domain-steps {
  margin-top: 0.9rem;
  padding: 1.05rem 1rem 1.1rem;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  box-shadow: none;
  animation: agency-slide-in 0.32s ease both;
}
.agency-domain-steps[hidden] { display: none !important; }
.agency-domain-steps-title {
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
  margin: 0 0 1rem;
  font-size: 1rem;
  font-weight: 750;
  color: #0B1220;
  line-height: 1.35;
}
.agency-domain-steps-kicker {
  display: block;
  color: #64748b;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}
.agency-domain-steps-title strong {
  font-weight: 800;
}
.agency-domain-steps-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.agency-domain-step {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  opacity: 0;
  transform: translateY(8px);
}
.agency-domain-steps.is-visible .agency-domain-step {
  animation: agency-slide-in 0.35s ease both;
  animation-delay: calc(var(--step-i, 0) * 0.09s);
}
.agency-domain-step-num {
  flex: 0 0 auto;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 999px;
  background: #fff7ed;
  color: #c2410c;
  border: 1px solid rgba(247, 137, 11, 0.35);
  font-size: 0.8rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.1rem;
}
.agency-domain-step strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 750;
  color: #0B1220;
  line-height: 1.3;
  margin-bottom: 0.15rem;
}
.agency-domain-step span,
.agency-domain-step > div > span {
  display: block;
  font-size: 0.82rem;
  line-height: 1.4;
  color: #475569;
}
.agency-domain-step code {
  font-size: 0.8rem;
  background: #f1f5f9;
  padding: 0.1rem 0.35rem;
  border-radius: 6px;
}
.agency-domain-copy-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.55rem;
  padding: 0.55rem;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #e2e8f0;
}
.agency-domain-cname {
  flex: 1 1 12rem;
  min-width: 0;
  font-size: 0.78rem !important;
  word-break: break-all;
  padding: 0.35rem 0.5rem !important;
  background: #f1f5f9 !important;
  color: #0B1220 !important;
  border-radius: 7px !important;
  max-width: 100%;
}
.agency-domain-copy {
  flex: 0 0 auto;
  width: auto;
  margin: 0;
  padding: 0.35rem 0.7rem !important;
  font-size: 0.8rem !important;
  min-height: 0 !important;
  border: 1px solid #cbd5e1 !important;
  background: #fff !important;
}
.agency-domain-copy:hover { background: #f8fafc !important; }
.agency-domain-email-note {
  margin: 0.95rem 0 0;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #78350f;
  font-size: 0.8rem;
  line-height: 1.4;
  font-weight: 550;
}
.agency-domain-help {
  margin: 0.65rem 0 0;
  font-size: 0.8rem;
  line-height: 1.4;
  color: #64748b;
}
.agency-domain-help a {
  color: #0B1220;
  font-weight: 650;
}
.agency-result-reassure {
  margin: 1.1rem 0 0;
  padding: 0.75rem 0.85rem;
  border-radius: 12px;
  background: #f1f5f9;
  color: #334155;
  font-size: 0.82rem;
  line-height: 1.45;
  text-align: center;
}
.agency-result.is-success .agency-result-body {
  animation: agency-slide-in 0.4s ease 0.12s both;
}

@keyframes agency-pop {
  0% { transform: scale(0.5); opacity: 0; }
  60% { transform: scale(1.12); opacity: 1; }
  100% { transform: scale(1); }
}
@keyframes agency-slide-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.agency-toast {
  position: fixed;
  z-index: 10050;
  left: 50%;
  bottom: 1.25rem;
  transform: translateX(-50%) translateY(120%);
  max-width: min(22rem, calc(100vw - 1.5rem));
  padding: 0.85rem 1.1rem;
  border-radius: 14px;
  background: #0B1220;
  color: #f8fafc;
  font: 650 0.9rem/1.4 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  box-shadow: 0 16px 40px rgba(0,0,0,0.35);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.22, 1.2, 0.36, 1), opacity 0.28s ease;
  pointer-events: none;
}
.agency-toast.is-visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}
@media (prefers-reduced-motion: reduce) {
  .agency-toast { transition: none; }
  .agency-result.is-success .agency-result-icon,
  .agency-domain-panel,
  .agency-domain-steps,
  .agency-domain-steps.is-visible .agency-domain-step,
  .agency-result.is-success .agency-result-body {
    animation: none;
  }
  .agency-domain-steps.is-visible .agency-domain-step {
    opacity: 1;
    transform: none;
  }
  .agency-domain-choice:hover { transform: none; }
}


/* Quiet custom-feature quote path — secondary to the standard plans. */
.agency-custom-quote-prompt {
  margin: 0.85rem 0 0;
  color: #64748b;
  font-size: 0.84rem;
  line-height: 1.4;
  text-align: center;
}
.agency-custom-quote-link {
  appearance: none;
  border: 0;
  padding: 0;
  background: transparent;
  color: #C66A08;
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}
.agency-custom-quote-link:hover,
.agency-custom-quote-link:focus-visible { color: #0B1220; }
.agency-quote-form { margin-top: 0.25rem; }
.agency-quote-contact-fields { margin-bottom: 1.75rem; }
.agency-quote-form > [data-agency-quote-submit] { margin-top: 0.5rem; }
.agency-quote-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1rem;
  padding: 0;
  border: 0;
}
.agency-quote-options legend {
  width: 100%;
  margin: 0 0 0.45rem;
  color: #334155;
  font-size: 0.85rem;
  font-weight: 700;
}
.agency-quote-option {
  position: relative;
  cursor: pointer;
}
.agency-quote-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.agency-quote-option span {
  display: block;
  padding: 0.45rem 0.7rem;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  background: #fff;
  color: #334155;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.25;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.agency-quote-option:hover span { border-color: #94a3b8; }
.agency-quote-option input:checked + span {
  border-color: #F7890B;
  background: #fff7ed;
  color: #7c2d12;
}
.agency-quote-option input:focus-visible + span {
  outline: 2px solid #F7890B;
  outline-offset: 2px;
}
.agency-quote-other-field { margin-bottom: 0.75rem; }
.agency-quote-other-field textarea {
  width: 100%;
  box-sizing: border-box;
  min-height: 5rem;
  padding: 0.7rem 0.85rem;
  border: 1.5px solid #cbd5e1;
  border-radius: 12px;
  resize: vertical;
  font: inherit;
  font-size: 1rem;
  color: #0B1220;
}
.agency-quote-other-field textarea:focus {
  outline: none;
  border-color: #F7890B;
  box-shadow: 0 0 0 3px rgba(247, 137, 11, 0.25);
}
.agency-quote-status {
  margin: 0.8rem 0 0;
  padding: 0.7rem 0.8rem;
  border-radius: 10px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
  font-size: 0.88rem;
  line-height: 1.4;
}
.agency-quote-status.is-err {
  background: #fff7ed;
  border-color: #fed7aa;
  color: #9a3412;
}

/* —— Mobile: full-page checkout (not floating card) —— */
@media (max-width: 640px) {
  html.agency-checkout-noscroll,
  html.agency-checkout-noscroll body {
    overflow: hidden !important;
    overscroll-behavior: none;
  }

  .agency-checkout,
  .agency-checkout[open] {
    position: fixed !important;
    inset: 0 !important;
    display: flex;
    align-items: stretch;
    justify-content: stretch;
    width: 100% !important;
    width: 100vw !important;
    max-width: none !important;
    max-width: 100vw !important;
    height: 100% !important;
    height: 100svh !important;
    height: 100dvh !important;
    max-height: none !important;
    max-height: 100svh !important;
    max-height: 100dvh !important;
    margin: 0 !important;
    border-radius: 0 !important;
    background: #fff !important;
    box-sizing: border-box;
  }
  .agency-checkout:not([open]) { display: none; }
  .agency-checkout::backdrop {
    background: #fff;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .agency-checkout-sheet {
    border-radius: 0 !important;
    box-shadow: none !important;
    width: 100% !important;
    max-width: none !important;
    height: 100% !important;
    max-height: none !important;
    min-height: 100% !important;
    min-height: 100svh !important;
    min-height: 100dvh !important;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding-top: max(1.1rem, env(safe-area-inset-top, 0px));
    padding-right: max(1.1rem, env(safe-area-inset-right, 0px));
    padding-bottom: max(1.15rem, env(safe-area-inset-bottom, 0px));
    padding-left: max(1.1rem, env(safe-area-inset-left, 0px));
    transform: translateY(16px);
    /* no scale — looks wrong full-bleed */
  }
  .agency-checkout[open] .agency-checkout-sheet,
  .agency-checkout.is-open .agency-checkout-sheet {
    transform: translateY(0) scale(1);
  }

  .agency-checkout-close {
    top: max(0.75rem, env(safe-area-inset-top, 0px));
    right: max(0.75rem, env(safe-area-inset-right, 0px));
  }

  .agency-checkout-actions {
    position: sticky;
    bottom: 0;
    z-index: 1;
    margin-top: 1rem;
    padding-top: 0.65rem;
    padding-bottom: max(0.35rem, env(safe-area-inset-bottom, 0px));
    background: linear-gradient(180deg, rgba(255,255,255,0) 0%, #fff 22%);
  }

  .agency-checkout-foot {
    padding-bottom: 0.25rem;
  }
}

@media (max-width: 640px) and (prefers-reduced-motion: reduce) {
  .agency-checkout-sheet {
    transform: none;
  }
}

.agency-domain-copy-icon { flex: 0 0 auto; margin-left: 0.15rem; }

/* === agency-checkout-snippet-sync === */
/* —— Agency checkout chrome (NOT client theme) —— */
/* Slightly taller preview topbar; Get this site reads stronger than mute links */
:root {
  --banner-h: 42px;
}
.proposal-banner {
  padding: 0.5rem 1rem;
  font-size: 0.86rem;
  line-height: 1.4;
}
.proposal-banner-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.25rem 0.55rem;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1rem;
  width: 100%;
  text-align: center;
}
.proposal-banner-text {
  margin: 0;
  flex: 0 1 auto;
  font-size: inherit;
  font-weight: 500;
  line-height: 1.4;
  color: #c7d0dc;
}
.proposal-banner-text,
.proposal-banner-text * {
  font-family: inherit;
  font-size: inherit;
  font-weight: 500;
  line-height: inherit;
}
.agency-topbar-sep { color: #64748b; font-weight: 500; }
.agency-ttl,
.agency-ttl-sub,
.agency-topbar-label { color: #c7d0dc; white-space: nowrap; }
.proposal-banner-text .agency-buy-link,
.agency-buy-link {
  appearance: none;
  border: 0;
  margin: 0;
  padding: 0.05em 0;
  font: inherit;
  font-weight: 700;
  font-size: 1.08em;
  line-height: inherit;
  letter-spacing: 0.01em;
  cursor: pointer;
  background: transparent;
  color: #FF9F1A;
  text-decoration: none;
  box-shadow: none;
  vertical-align: baseline;
  display: inline-block;
  transform-origin: 50% 60%;
  animation: agency-buy-wobble 4s ease-in-out infinite;
}
.agency-buy-link:hover,
.agency-buy-link:focus-visible { text-decoration: underline; color: #FFB84D; }
.agency-buy-link:active { color: #F7890B; }

@keyframes agency-buy-wobble {
  0%, 86%, 100% { transform: rotate(0deg); }
  88% { transform: rotate(-7deg); }
  90% { transform: rotate(7deg); }
  92% { transform: rotate(-5deg); }
  94% { transform: rotate(4deg); }
  96% { transform: rotate(-2deg); }
  98% { transform: rotate(1deg); }
}

.proposal-banner-text .agency-changes-link,
.agency-changes-link {
  appearance: none;
  border: 0;
  margin: 0;
  padding: 0;
  font: inherit;
  font-weight: 500;
  font-size: 0.96em;
  line-height: inherit;
  cursor: pointer;
  background: transparent;
  color: #94a3b8;
  text-decoration: none;
  box-shadow: none;
  vertical-align: baseline;
}
.agency-changes-link:hover,
.agency-changes-link:focus-visible {
  color: #cbd5e1;
  text-decoration: underline;
}
.agency-changes-link:active { color: #e2e8f0; }

.agency-checkout {
  border: 0;
  padding: 0;
  max-width: min(42rem, calc(100vw - 1.25rem));
  width: 100%;
  max-height: calc(100vh - 1.5rem);
  border-radius: 20px;
  background: transparent;
  color: #0B1220;
  overflow: visible;
}
.agency-checkout:not([open]) { display: none; }
.agency-checkout[open] {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  margin: auto;
}
.agency-checkout::backdrop {
  background: rgba(11, 18, 32, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.28s ease;
}
.agency-checkout[open]::backdrop { opacity: 1; }

.agency-checkout-sheet {
  position: relative;
  background: #fff;
  border-radius: 20px;
  padding: 1.15rem 1.2rem 1.25rem;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.38);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  width: 100%;
  max-height: calc(100vh - 1.5rem);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  transform: translateY(18px) scale(0.96);
  opacity: 0;
  transition:
    transform 0.42s cubic-bezier(0.22, 1.4, 0.36, 1),
    opacity 0.28s ease;
}
.agency-checkout[open] .agency-checkout-sheet,
.agency-checkout.is-open .agency-checkout-sheet {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.agency-checkout-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  appearance: none;
  border: 0;
  background: #f1f5f9;
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 999px;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  color: #0B1220;
  margin: 0;
  transition: background 0.15s ease, transform 0.15s ease;
}
.agency-checkout-close:hover { background: #e2e8f0; }
.agency-checkout-close:active { transform: scale(0.92); }

.agency-checkout h2 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.25rem, 4vw, 1.5rem);
  color: #0B1220;
  letter-spacing: -0.02em;
  padding-right: 3.5rem;
}
.agency-checkout-lead {
  margin: 0 0 1rem;
  color: #475569;
  font-size: 0.95rem;
  line-height: 1.45;
}

.agency-step { display: none; }
.agency-step.is-active {
  display: block;
  animation: agency-step-in 0.38s cubic-bezier(0.22, 1.2, 0.36, 1) both;
}
.agency-step.is-leaving {
  display: block;
  animation: agency-step-out 0.22s ease both;
  pointer-events: none;
}
@keyframes agency-step-in {
  from { opacity: 0; transform: translateX(18px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes agency-step-out {
  from { opacity: 1; transform: translateX(0); }
  to { opacity: 0; transform: translateX(-14px); }
}
.agency-step-pay.is-active.from-back { animation-name: agency-step-in-back; }
@keyframes agency-step-in-back {
  from { opacity: 0; transform: translateX(-18px); }
  to { opacity: 1; transform: translateX(0); }
}

.agency-back {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0.15rem 3.5rem 0.25rem 0;
  margin: 0 0 0.35rem;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 650;
  color: #475569;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}
.agency-back:hover { color: #0B1220; }

.agency-checkout-grid {
  display: grid;
  gap: 0.75rem;
}
@media (min-width: 560px) {
  .agency-checkout-grid { grid-template-columns: 1fr 1fr; gap: 0.85rem; }
}
.agency-plan {
  position: relative;
  appearance: none;
  border: 2px solid #e2e8f0;
  border-radius: 16px;
  padding: 1rem 1rem 1.05rem;
  background: #f8fafc;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
  width: 100%;
  transition:
    transform 0.22s cubic-bezier(0.22, 1.3, 0.36, 1),
    box-shadow 0.22s ease,
    border-color 0.18s ease,
    background 0.18s ease;
  -webkit-tap-highlight-color: transparent;
}
.agency-plan:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(11, 18, 32, 0.1);
  border-color: #cbd5e1;
}
.agency-plan:active { transform: translateY(0) scale(0.985); }
.agency-plan-hot {
  border-color: #F7890B;
  background: #fff7ed;
}
.agency-plan.is-selected {
  border-color: #0B1220;
  background: #fff;
  box-shadow: 0 0 0 1px #0B1220, 0 14px 32px rgba(11, 18, 32, 0.12);
}
.agency-plan-hot.is-selected {
  border-color: #F7890B;
  box-shadow: 0 0 0 1px #F7890B, 0 14px 32px rgba(247, 137, 11, 0.22);
  background: #fffaf3;
}
.agency-plan-check {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 999px;
  border: 2px solid #cbd5e1;
  background: #fff;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.2s cubic-bezier(0.22, 1.5, 0.36, 1);
}
.agency-plan-check::after {
  content: "";
  position: absolute;
  inset: 0;
  background: no-repeat center / 0.7rem
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 6.2L4.8 8.5 9.5 3.5'/%3E%3C/svg%3E");
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 0.15s ease, transform 0.2s cubic-bezier(0.22, 1.5, 0.36, 1);
}
.agency-plan.is-selected .agency-plan-check {
  background: #0B1220;
  border-color: #0B1220;
  transform: scale(1.05);
}
.agency-plan-hot.is-selected .agency-plan-check {
  background: #F7890B;
  border-color: #F7890B;
}
.agency-plan.is-selected .agency-plan-check::after {
  opacity: 1;
  transform: scale(1);
}
.agency-plan-badge-row {
  display: flex;
  align-items: center;
  min-height: 1.5rem;
  margin: 0 0 0.4rem;
}
.agency-plan-badge {
  display: inline-block;
  margin: 0;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  background: #F7890B;
  color: #0B1220;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.1;
}
.agency-plan h3 {
  margin: 0 0 0.35rem;
  font-size: 1.08rem;
  font-weight: 700;
  color: #0B1220;
  padding-right: 1.6rem;
  line-height: 1.25;
  min-height: 1.35rem;
}
.agency-plan-price {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 0.1rem;
  color: #0B1220;
  /* Fixed block so £9 / £90 sit on one shared baseline across cards */
  min-height: 3.55rem;
}
.agency-plan-amount {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  height: 2rem;
  font-variant-numeric: tabular-nums;
}
.agency-plan-unit {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: #64748b;
  line-height: 1.2;
  height: 1.1rem;
}
.agency-plan-then {
  margin: 0.35rem 0 0;
  font-size: 0.98rem;
  font-weight: 650;
  color: #0B1220;
}
.agency-plan-sub {
  margin: 0.3rem 0 0.65rem;
  font-size: 0.84rem;
  color: #64748b;
}
.agency-plan-body {
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.agency-plan-chip {
  display: inline-flex;
  align-self: flex-start;
  margin: 0;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  background: #eef2ff;
  color: #334155;
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.01em;
  line-height: 1.3;
  border: 1px solid rgba(99, 102, 241, 0.12);
}
.agency-plan-chip-hot {
  background: #fff7ed;
  color: #9a3412;
  border-color: rgba(247, 137, 11, 0.28);
}

.agency-plan-note {
  margin: 0 0 0.65rem;
  padding: 0;
  border: 0;
  background: none;
  color: #64748b;
  font-size: 0.82rem;
  font-weight: 550;
  line-height: 1.35;
}
.agency-plan-note-hot {
  color: #c2410c;
  font-weight: 650;
}
.agency-plan-features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  color: #334155;
  font-size: 0.86rem;
  line-height: 1.4;
}
.agency-plan-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
}
.agency-plan-tick {
  flex: 0 0 auto;
  width: 1.05rem;
  height: 1.05rem;
  margin-top: 0.08rem;
  border-radius: 999px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  box-shadow: inset 0 0 0 1px rgba(16, 185, 129, 0.06);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%23059669' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 6.2L4.8 8.5 9.5 3.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 0.65rem;
}
.agency-plan-hot .agency-plan-tick {
  background-color: #fff7ed;
  border-color: rgba(247, 137, 11, 0.35);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%23C66A08' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 6.2L4.8 8.5 9.5 3.5'/%3E%3C/svg%3E");
}
.agency-plan.is-selected .agency-plan-tick {
  background-color: #ecfdf5;
  border-color: #6ee7b7;
}
.agency-plan-hot.is-selected .agency-plan-tick {
  background-color: #fff7ed;
  border-color: rgba(247, 137, 11, 0.45);
}
.agency-plan ul {
  margin: 0;
  padding-left: 1.1rem;
  color: #334155;
  font-size: 0.86rem;
  line-height: 1.45;
}
.agency-plan ul li + li { margin-top: 0.2rem; }

.agency-pay-summary {
  margin: 0 0 1rem;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}
.agency-pay-summary-label {
  margin: 0 0 0.2rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
}
.agency-pay-summary-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 750;
  color: #0B1220;
}
.agency-pay-summary-price {
  margin: 0.25rem 0 0;
  font-size: 0.95rem;
  color: #334155;
  line-height: 1.4;
}

.agency-fields {
  display: grid;
  gap: 0.75rem;
}
.agency-field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.agency-field label {
  font-size: 0.85rem;
  font-weight: 650;
  color: #334155;
}
.agency-field em {
  font-style: normal;
  font-weight: 500;
  color: #94a3b8;
}
.agency-req {
  font-size: 0.72rem;
  font-weight: 600;
  color: #94a3b8;
  margin-left: 0.25rem;
  text-transform: lowercase;
}
.agency-field input {
  appearance: none;
  width: 100%;
  box-sizing: border-box;
  padding: 0.7rem 0.85rem;
  border-radius: 12px;
  border: 1.5px solid #cbd5e1;
  font: inherit;
  font-size: 1rem;
  font-weight: 500;
  color: #0B1220;
  background: #fff;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.agency-field input:hover { border-color: #94a3b8; }
.agency-field input:focus {
  outline: none;
  border-color: #F7890B;
  box-shadow: 0 0 0 3px rgba(247, 137, 11, 0.25);
}

.agency-input-wrap {
  position: relative;
  width: 100%;
}
.agency-input-wrap input {
  padding-right: 2.75rem;
}
.agency-field-clear {
  position: absolute;
  top: 50%;
  right: 0.5rem;
  display: grid;
  place-items: center;
  width: 1.8rem;
  height: 1.8rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #64748b;
  font: inherit;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
}
.agency-field-clear[hidden] { display: none !important; }
.agency-field-clear:hover,
.agency-field-clear:focus-visible {
  background: #f1f5f9;
  color: #0B1220;
}
.agency-field-clear:focus-visible {
  outline: 2px solid #F7890B;
  outline-offset: 1px;
}

/* Quiet attribution when fields are prefilled from data-suggest-* / brief. */
.agency-suggest-note {
  margin: -0.45rem 0 0.85rem;
  color: #64748b;
  font-size: 0.8rem;
  line-height: 1.35;
  font-weight: 500;
}
.agency-suggest-note[hidden] { display: none !important; }

  to { opacity: 1; transform: translateY(0) scale(1); }
}

.agency-field.is-invalid input,
.agency-field input.is-invalid {
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
}
.agency-field.is-valid input {
  border-color: #16a34a;
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.12);
}
.agency-field-hint {
  margin: 0;
  font-size: 0.78rem;
  color: #94a3b8;
  line-height: 1.35;
}
.agency-field-msg {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 600;
  color: #b91c1c;
  line-height: 1.35;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateY(-4px);
  transition: max-height 0.22s ease, opacity 0.2s ease, transform 0.2s ease, margin 0.2s ease;
}
.agency-field-msg.is-visible {
  max-height: 3rem;
  opacity: 1;
  transform: translateY(0);
  margin-top: 0.1rem;
}

/* Optional business details */
.agency-biz {
  margin-top: 1rem;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  background: #fafbfc;
  overflow: hidden;
}
.agency-biz-toggle {
  appearance: none;
  width: 100%;
  border: 0;
  background: transparent;
  padding: 0.9rem 1rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  text-align: left;
  font: inherit;
  cursor: pointer;
  color: #0B1220;
  transition: background 0.15s ease;
}
.agency-biz-toggle:hover { background: #f1f5f9; }
.agency-biz-toggle-icon {
  flex: 0 0 auto;
  width: 1.35rem;
  height: 1.35rem;
  margin-top: 0.1rem;
  border-radius: 6px;
  border: 1.5px solid #cbd5e1;
  background: #fff;
  position: relative;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.2s ease;
}
.agency-biz-toggle-icon::before,
.agency-biz-toggle-icon::after {
  content: "";
  position: absolute;
  background: #64748b;
  transition: transform 0.22s cubic-bezier(0.22, 1.3, 0.36, 1), opacity 0.15s ease;
}
.agency-biz-toggle-icon::before {
  width: 0.55rem;
  height: 1.5px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}
.agency-biz-toggle-icon::after {
  width: 1.5px;
  height: 0.55rem;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}
.agency-biz.is-open .agency-biz-toggle-icon {
  background: #F7890B;
  border-color: #F7890B;
}
.agency-biz.is-open .agency-biz-toggle-icon::before,
.agency-biz.is-open .agency-biz-toggle-icon::after {
  background: #0B1220;
}
.agency-biz.is-open .agency-biz-toggle-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
  opacity: 0;
}
.agency-biz-toggle-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.agency-biz-toggle-text strong {
  font-size: 0.95rem;
  font-weight: 750;
}
.agency-biz-toggle-hint {
  font-size: 0.82rem;
  color: #64748b;
  font-weight: 500;
}
.agency-biz-panel {
  padding: 0 1rem 1rem;
  border-top: 1px solid transparent;
}
.agency-biz.is-open .agency-biz-panel {
  border-top-color: #e2e8f0;
  animation: agency-biz-in 0.28s cubic-bezier(0.22, 1.2, 0.36, 1) both;
}
@keyframes agency-biz-in {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}
.agency-biz-note {
  margin: 0.75rem 0 0.85rem;
  font-size: 0.84rem;
  color: #64748b;
  line-height: 1.4;
}

.agency-checkout-actions {
  margin-top: 1.1rem;
  position: sticky;
  bottom: 0;
  padding-top: 0.4rem;
  background: linear-gradient(180deg, rgba(255,255,255,0) 0%, #fff 28%);
}
.agency-btn {
  display: block;
  width: 100%;
  appearance: none;
  border-radius: 12px;
  padding: 0.85rem 1rem;
  font: inherit;
  font-weight: 750;
  font-size: 1rem;
  cursor: pointer;
  text-align: center;
  transition: transform 0.15s ease, filter 0.15s ease, background 0.15s ease, opacity 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}
.agency-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}
.agency-btn-primary {
  border: 0;
  background: #F7890B;
  color: #0B1220;
  box-shadow: 0 3px 0 #C66A08;
}
.agency-btn-primary:hover:not(:disabled) { filter: brightness(1.05); }
.agency-btn-primary:active:not(:disabled) {
  transform: translateY(2px);
  box-shadow: 0 1px 0 #C66A08;
}
.agency-btn-primary.is-busy {
  opacity: 0.75;
  pointer-events: none;
}

.agency-checkout-status {
  margin: 0.85rem 0 0;
  font-size: 0.9rem;
  color: #0B1220;
  line-height: 1.4;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.25s ease, opacity 0.2s ease, margin 0.2s ease;
}
.agency-checkout-status.is-visible {
  max-height: 5rem;
  opacity: 1;
}
.agency-checkout-status.is-ok { color: #15803d; }
.agency-checkout-status.is-err { color: #b91c1c; }
.agency-checkout-foot {
  margin: 1rem 0 0;
  padding-top: 0.85rem;
  border-top: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  text-align: center;
}
.agency-contact-open {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0.15rem 0.35rem;
  margin: 0;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 650;
  color: #C66A08;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
  -webkit-tap-highlight-color: transparent;
}
.agency-contact-open:hover { color: #9a4e06; }
.agency-contact-open:focus-visible {
  outline: 2px solid #F7890B;
  outline-offset: 3px;
  border-radius: 4px;
}
.agency-checkout-foot-trust {
  margin: 0;
  font-size: 0.78rem;
  color: #94a3b8;
  line-height: 1.4;
  user-select: text;
}
.agency-checkout-foot-trust a {
  color: #64748b;
  font-weight: 550;
  text-decoration: underline;
  text-underline-offset: 0.14em;
}
.agency-checkout-foot-trust a:hover { color: #C66A08; }
.agency-copy-email {
  appearance: none;
  border: 0;
  background: transparent;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin: 0 0 0 0.12rem;
  padding: 0.15rem 0.2rem;
  color: #64748b;
  cursor: pointer;
  vertical-align: middle;
  -webkit-tap-highlight-color: transparent;
}
.agency-copy-email svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.35;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.agency-copy-email:hover { color: #C66A08; }
.agency-copy-email:focus-visible {
  outline: 2px solid #F7890B;
  outline-offset: 2px;
  border-radius: 4px;
}
.agency-copy-email.is-copied { color: #15803d; }
.agency-copy-email-feedback {
  font-size: 0.72rem;
  font-weight: 650;
  line-height: 1;
}
.agency-checkout-foot > .agency-contact-open { color: #C66A08; font-weight: 650; }

.agency-contact-form { margin-top: 0.25rem; }
.agency-contact-fields { margin-bottom: 1.25rem; }
.agency-contact-form textarea {
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 0.7rem 0.85rem;
  border: 1.5px solid #cbd5e1;
  border-radius: 12px;
  font: inherit;
  font-size: 0.95rem;
  line-height: 1.45;
  color: #0B1220;
  background: #fff;
  resize: vertical;
  min-height: 6.5rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.agency-contact-form textarea:focus {
  outline: none;
  border-color: #F7890B;
  box-shadow: 0 0 0 3px rgba(247, 137, 11, 0.18);
}
.agency-field[data-field="contact-message"].is-invalid textarea {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12);
}
.agency-contact-form > [data-agency-contact-submit] { margin-top: 0.35rem; width: 100%; }
.agency-contact-status {
  margin: 0 0 0.75rem;
  padding: 0.65rem 0.8rem;
  border-radius: 10px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
  font-size: 0.88rem;
  line-height: 1.4;
}
.agency-contact-status.is-err {
  background: #fff7ed;
  border-color: #fed7aa;
  color: #9a3412;
}

@media (prefers-reduced-motion: reduce) {
  .agency-buy-link { animation: none !important; }

  .agency-checkout::backdrop,
  .agency-checkout-sheet,
  .agency-plan,
  .agency-buy-link,
  .agency-changes-link,
  .agency-btn,
  .agency-checkout-close,
  .agency-plan-check,
  .agency-plan-check::after,
  .agency-field input,
  .agency-field-msg,
  .agency-checkout-status,
  .agency-biz-toggle-icon,
  .agency-biz-toggle-icon::before,
  .agency-biz-toggle-icon::after {
    transition: none !important;
  }
  .agency-step.is-active,
  .agency-step.is-leaving,
  .agency-step-pay.is-active.from-back,
  .agency-biz.is-open .agency-biz-panel {
    animation: none !important;
  }
  .agency-checkout-sheet {
    transform: none;
    opacity: 1;
  }
  .agency-plan:hover { transform: none; }
}

/* —— Success / cancel return UI —— */
.agency-btn-ghost {
  display: block;
  width: 100%;
  margin-top: 0.55rem;
  appearance: none;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  padding: 0.75rem 1rem;
  font: inherit;
  font-weight: 650;
  font-size: 0.95rem;
  text-align: center;
  text-decoration: none;
  color: #0B1220;
  background: #fff;
  cursor: pointer;
  box-sizing: border-box;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.agency-btn-ghost:hover { background: #f8fafc; border-color: #94a3b8; }
.agency-step-result .agency-checkout-actions {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.agency-result {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0.35rem 0.25rem 0.15rem;
}
.agency-result-celebrate {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  text-align: center;
}
.agency-result.is-domain-flow .agency-result-celebrate {
  display: none;
}
.agency-result-icon {
  width: 3.5rem;
  height: 3.5rem;
  margin: 0.15rem auto 0.85rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  line-height: 0;
  background: #ecfdf5;
  color: #15803d;
  box-shadow: inset 0 0 0 1px rgba(21, 128, 61, 0.18);
  flex-shrink: 0;
}
.agency-result.is-success .agency-result-icon {
  animation: agency-pop 0.55s cubic-bezier(0.22, 1.4, 0.36, 1) both;
  box-shadow:
    inset 0 0 0 1px rgba(21, 128, 61, 0.22),
    0 0 0 8px rgba(34, 197, 94, 0.12);
}
.agency-result.is-cancel .agency-result-icon {
  background: #fff7ed;
  color: #c2410c;
  box-shadow: inset 0 0 0 1px rgba(194, 65, 12, 0.16);
  animation: none;
}
.agency-result-icon::before { content: none; }
.agency-result-mark {
  display: block;
  width: 1.55rem;
  height: 1.55rem;
  flex-shrink: 0;
}
.agency-result-mark-cancel { display: none; }
.agency-result.is-cancel .agency-result-mark-check { display: none; }
.agency-result.is-cancel .agency-result-mark-cancel { display: block; }
.agency-result h2 {
  margin: 0 0 0.45rem;
  padding-right: 0; /* don’t offset for Close X — icon + title stay centered */
  text-align: center;
  width: 100%;
}
.agency-result.is-success h2 {
  color: #14532d;
}
.agency-result-celebrate > .agency-checkout-lead,
.agency-result-celebrate > [data-agency-result-lead] {
  text-align: center;
  width: 100%;
  padding-right: 0;
}
.agency-result-body {
  text-align: left;
  margin: 1rem 0 0.35rem;
  width: 100%;
  align-self: stretch;
}
.agency-domain-fork-label {
  margin: 0 0 0.65rem;
  font-weight: 700;
  font-size: 0.95rem;
  color: #0B1220;
  text-align: center;
}
.agency-domain-choices {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
}
@media (min-width: 480px) {
  .agency-domain-choices {
    grid-template-columns: 1fr 1fr;
  }
}
.agency-domain-choice {
  appearance: none;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  padding: 0.95rem 0.9rem;
  background: #f8fafc;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: #0B1220;
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    transform 0.18s ease,
    box-shadow 0.18s ease;
  box-shadow: 0 1px 0 rgba(11, 18, 32, 0.04);
}
.agency-domain-choice:hover {
  border-color: #F7890B;
  background: #fff;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(11, 18, 32, 0.08);
}
.agency-domain-choice:active { transform: translateY(1px) scale(0.99); }
.agency-domain-choice.is-active {
  border-color: #F7890B;
  background: #fff7ed;
  box-shadow: 0 0 0 3px rgba(247, 137, 11, 0.18);
}
.agency-domain-choice-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 0.35rem;
  border-radius: 999px;
  background: #fff7ed;
  color: #C66A08;
  box-shadow: inset 0 0 0 1px rgba(198, 106, 8, 0.18);
  line-height: 0;
  transition: background 0.18s ease, box-shadow 0.18s ease, color 0.18s ease;
}
.agency-domain-choice-icon svg {
  width: 1.5rem;
  height: 1.5rem;
  display: block;
}
.agency-domain-choice:hover .agency-domain-choice-icon,
.agency-domain-choice.is-active .agency-domain-choice-icon {
  background: #ffedd5;
  color: #C66A08;
  box-shadow: inset 0 0 0 1px rgba(247, 137, 11, 0.35);
}
.agency-domain-choice strong {
  font-size: 0.95rem;
  font-weight: 750;
  line-height: 1.25;
}
.agency-domain-choice-hint {
  font-size: 0.8rem;
  line-height: 1.35;
  color: #475569;
  font-weight: 500;
}
.agency-domain-panel {
  margin-top: 0.35rem;
  padding: 0.15rem 0 0.25rem;
  animation: agency-slide-in 0.28s ease both;
}
.agency-domain-panel[hidden] { display: none !important; }
.agency-domain-explain,
.agency-domain-after {
  margin: 0.35rem 0 0.85rem;
  font-size: 0.9rem;
  line-height: 1.45;
  color: #334155;
}
.agency-domain-after {
  margin-top: 1rem;
  font-weight: 650;
  color: #0B1220;
}
.agency-domain-panel .agency-btn-primary {
  margin-top: 0.35rem;
}
.agency-buy-domain-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  width: fit-content;
  margin: 0.65rem auto 0.25rem;
  color: #334155;
  font-size: 1.06rem;
  font-weight: 750;
  line-height: 1.35;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}
.agency-buy-domain-link:hover,
.agency-buy-domain-link:focus-visible {
  color: #0B1220;
}
.agency-buy-domain-link span {
  font-size: 0.9em;
  text-decoration: none;
}
.agency-domain-steps {
  margin-top: 0.9rem;
  padding: 1.05rem 1rem 1.1rem;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  box-shadow: none;
  animation: agency-slide-in 0.32s ease both;
}
.agency-domain-steps[hidden] { display: none !important; }
.agency-domain-steps-title {
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
  margin: 0 0 1rem;
  font-size: 1rem;
  font-weight: 750;
  color: #0B1220;
  line-height: 1.35;
}
.agency-domain-steps-kicker {
  display: block;
  color: #64748b;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}
.agency-domain-steps-title strong {
  font-weight: 800;
}
.agency-domain-steps-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.agency-domain-step {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  opacity: 0;
  transform: translateY(8px);
}
.agency-domain-steps.is-visible .agency-domain-step {
  animation: agency-slide-in 0.35s ease both;
  animation-delay: calc(var(--step-i, 0) * 0.09s);
}
.agency-domain-step-num {
  flex: 0 0 auto;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 999px;
  background: #fff7ed;
  color: #c2410c;
  border: 1px solid rgba(247, 137, 11, 0.35);
  font-size: 0.8rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.1rem;
}
.agency-domain-step strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 750;
  color: #0B1220;
  line-height: 1.3;
  margin-bottom: 0.15rem;
}
.agency-domain-step span,
.agency-domain-step > div > span {
  display: block;
  font-size: 0.82rem;
  line-height: 1.4;
  color: #475569;
}
.agency-domain-step code {
  font-size: 0.8rem;
  background: #f1f5f9;
  padding: 0.1rem 0.35rem;
  border-radius: 6px;
}
.agency-domain-copy-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.55rem;
  padding: 0.55rem;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #e2e8f0;
}
.agency-domain-cname {
  flex: 1 1 12rem;
  min-width: 0;
  font-size: 0.78rem !important;
  word-break: break-all;
  padding: 0.35rem 0.5rem !important;
  background: #f1f5f9 !important;
  color: #0B1220 !important;
  border-radius: 7px !important;
  max-width: 100%;
}
.agency-domain-copy-icon {
  flex: 0 0 auto;
  margin-left: 0.15rem;
}
.agency-domain-copy-icon .agency-copy-email-feedback {
  /* same as email: absolute / sr feedback via shared rules */
}
.agency-domain-copy-DEPRECATED {
  flex: 0 0 auto;
  width: auto;
  margin: 0;
  padding: 0.35rem 0.7rem !important;
  font-size: 0.8rem !important;
  min-height: 0 !important;
  border: 1px solid #cbd5e1 !important;
  background: #fff !important;
}
.agency-domain-copy:hover { background: #f8fafc !important; }
.agency-domain-email-note {
  margin: 0.95rem 0 0;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #78350f;
  font-size: 0.8rem;
  line-height: 1.4;
  font-weight: 550;
}
.agency-domain-help {
  margin: 0.65rem 0 0;
  font-size: 0.8rem;
  line-height: 1.4;
  color: #64748b;
}
.agency-domain-help a {
  color: #0B1220;
  font-weight: 650;
}
.agency-result-reassure {
  margin: 1.1rem 0 0;
  padding: 0.75rem 0.85rem;
  border-radius: 12px;
  background: #f1f5f9;
  color: #334155;
  font-size: 0.82rem;
  line-height: 1.45;
  text-align: center;
}
.agency-result.is-success .agency-result-body {
  animation: agency-slide-in 0.4s ease 0.12s both;
}

@keyframes agency-pop {
  0% { transform: scale(0.5); opacity: 0; }
  60% { transform: scale(1.12); opacity: 1; }
  100% { transform: scale(1); }
}
@keyframes agency-slide-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.agency-toast {
  position: fixed;
  z-index: 10050;
  left: 50%;
  bottom: 1.25rem;
  transform: translateX(-50%) translateY(120%);
  max-width: min(22rem, calc(100vw - 1.5rem));
  padding: 0.85rem 1.1rem;
  border-radius: 14px;
  background: #0B1220;
  color: #f8fafc;
  font: 650 0.9rem/1.4 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  box-shadow: 0 16px 40px rgba(0,0,0,0.35);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.22, 1.2, 0.36, 1), opacity 0.28s ease;
  pointer-events: none;
}
.agency-toast.is-visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}
@media (prefers-reduced-motion: reduce) {
  .agency-toast { transition: none; }
  .agency-result.is-success .agency-result-icon,
  .agency-domain-panel,
  .agency-domain-steps,
  .agency-domain-steps.is-visible .agency-domain-step,
  .agency-result.is-success .agency-result-body {
    animation: none;
  }
  .agency-domain-steps.is-visible .agency-domain-step {
    opacity: 1;
    transform: none;
  }
  .agency-domain-choice:hover { transform: none; }
}


/* Quiet custom-feature quote path — secondary to the standard plans. */
.agency-custom-quote-prompt {
  margin: 0.85rem 0 0;
  color: #64748b;
  font-size: 0.84rem;
  line-height: 1.4;
  text-align: center;
}
.agency-custom-quote-link {
  appearance: none;
  border: 0;
  padding: 0;
  background: transparent;
  color: #C66A08;
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}
.agency-custom-quote-link:hover,
.agency-custom-quote-link:focus-visible { color: #0B1220; }
.agency-quote-form { margin-top: 0.25rem; }
.agency-quote-contact-fields { margin-bottom: 1.75rem; }
.agency-quote-form > [data-agency-quote-submit] { margin-top: 0.5rem; }
.agency-quote-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1rem;
  padding: 0;
  border: 0;
}
.agency-quote-options legend {
  width: 100%;
  margin: 0 0 0.45rem;
  color: #334155;
  font-size: 0.85rem;
  font-weight: 700;
}
.agency-quote-option {
  position: relative;
  cursor: pointer;
}
.agency-quote-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.agency-quote-option span {
  display: block;
  padding: 0.45rem 0.7rem;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  background: #fff;
  color: #334155;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.25;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.agency-quote-option:hover span { border-color: #94a3b8; }
.agency-quote-option input:checked + span {
  border-color: #F7890B;
  background: #fff7ed;
  color: #7c2d12;
}
.agency-quote-option input:focus-visible + span {
  outline: 2px solid #F7890B;
  outline-offset: 2px;
}
.agency-quote-other-field { margin-bottom: 0.75rem; }
.agency-quote-other-field textarea {
  width: 100%;
  box-sizing: border-box;
  min-height: 5rem;
  padding: 0.7rem 0.85rem;
  border: 1.5px solid #cbd5e1;
  border-radius: 12px;
  resize: vertical;
  font: inherit;
  font-size: 1rem;
  color: #0B1220;
}
.agency-quote-other-field textarea:focus {
  outline: none;
  border-color: #F7890B;
  box-shadow: 0 0 0 3px rgba(247, 137, 11, 0.25);
}
.agency-quote-status {
  margin: 0.8rem 0 0;
  padding: 0.7rem 0.8rem;
  border-radius: 10px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
  font-size: 0.88rem;
  line-height: 1.4;
}
.agency-quote-status.is-err {
  background: #fff7ed;
  border-color: #fed7aa;
  color: #9a3412;
}

/* —— Mobile: full-page checkout (not floating card) —— */
@media (max-width: 640px) {
  html.agency-checkout-noscroll,
  html.agency-checkout-noscroll body {
    overflow: hidden !important;
    overscroll-behavior: none;
  }

  .agency-checkout,
  .agency-checkout[open] {
    position: fixed !important;
    inset: 0 !important;
    display: flex;
    align-items: stretch;
    justify-content: stretch;
    width: 100% !important;
    width: 100vw !important;
    max-width: none !important;
    max-width: 100vw !important;
    height: 100% !important;
    height: 100svh !important;
    height: 100dvh !important;
    max-height: none !important;
    max-height: 100svh !important;
    max-height: 100dvh !important;
    margin: 0 !important;
    border-radius: 0 !important;
    background: #fff !important;
    box-sizing: border-box;
  }
  .agency-checkout:not([open]) { display: none; }
  .agency-checkout::backdrop {
    background: #fff;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .agency-checkout-sheet {
    border-radius: 0 !important;
    box-shadow: none !important;
    width: 100% !important;
    max-width: none !important;
    height: 100% !important;
    max-height: none !important;
    min-height: 100% !important;
    min-height: 100svh !important;
    min-height: 100dvh !important;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding-top: max(1.1rem, env(safe-area-inset-top, 0px));
    padding-right: max(1.1rem, env(safe-area-inset-right, 0px));
    padding-bottom: max(1.15rem, env(safe-area-inset-bottom, 0px));
    padding-left: max(1.1rem, env(safe-area-inset-left, 0px));
    transform: translateY(16px);
    /* no scale — looks wrong full-bleed */
  }
  .agency-checkout[open] .agency-checkout-sheet,
  .agency-checkout.is-open .agency-checkout-sheet {
    transform: translateY(0) scale(1);
  }

  .agency-checkout-close {
    top: max(0.75rem, env(safe-area-inset-top, 0px));
    right: max(0.75rem, env(safe-area-inset-right, 0px));
  }

  .agency-checkout-actions {
    position: sticky;
    bottom: 0;
    z-index: 1;
    margin-top: 1rem;
    padding-top: 0.65rem;
    padding-bottom: max(0.35rem, env(safe-area-inset-bottom, 0px));
    background: linear-gradient(180deg, rgba(255,255,255,0) 0%, #fff 22%);
  }

  .agency-checkout-foot {
    padding-bottom: 0.25rem;
  }
}

@media (max-width: 640px) and (prefers-reduced-motion: reduce) {
  .agency-checkout-sheet {
    transform: none;
  }
}

/* Domain subflow: private-link reassure duplicates the preview topbar — hide it */
.agency-result.is-domain-flow .agency-result-reassure {
  display: none !important;
}
/* Domain CNAME copy: icon only (no "Copied" text label under/beside) */
.agency-domain-copy-icon .agency-copy-email-feedback {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.agency-domain-copy-icon {
  position: relative;
}

