/* Website in a Week (Nov 27 2026, Billy: make the page "more creative, intuitive"): the week on one line
   (scripts/build-service-pages.js week) and the 3 pages drawn with the demo's sample business (sitepages).
   Loaded only by pages with those sections. Colours are the site's tokens, so dark mode follows. */

/* ── The week ── */
.wk-sec { padding: clamp(50px, 7vw, 100px) 0; }
.wk-line { --wk-gap: 20px; position: relative; list-style: none; margin: clamp(28px, 4vw, 44px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0 var(--wk-gap); }
/* The track from the first dot to the last, and its fill, which draws across as the section comes in. */
.wk-line::before, .wk-line::after { content: ""; position: absolute; top: 36px; left: 8px; right: calc((100% - 4 * var(--wk-gap)) / 5 - 8px); height: 3px; border-radius: 2px; background: var(--border, #e5e7eb); }
.wk-line::after { background: linear-gradient(90deg, var(--brand, #7851a9), #16a34a); }
html.hx-motion .wk-line::after { transform: scaleX(0); transform-origin: left center; transition: transform 1.6s var(--hx-ease, ease) .2s; }
html.hx-motion .wk-line.rv-in::after { transform: none; }
.wk-i { position: relative; display: flex; flex-direction: column; min-width: 0; }
.wk-d { height: 22px; font-size: .85rem; font-weight: 600; color: var(--brand, #7851a9); white-space: nowrap; }
.wk-dot { position: relative; z-index: 1; width: 17px; height: 17px; margin: 6px 0 14px; border-radius: 50%; background: var(--surface, #fff); box-shadow: inset 0 0 0 3px var(--brand, #7851a9); }
.wk-i.is-live .wk-dot { background: #16a34a; box-shadow: 0 0 0 5px color-mix(in srgb, #16a34a 22%, transparent); }
.wk-i.is-live .wk-d { color: #15803d; }
.wk-t { font-size: 1.12rem; font-weight: 600; letter-spacing: -.02em; line-height: 1.3; color: var(--text, #1a1a1a); }
.wk-s { margin-top: 6px; font-size: .95rem; line-height: 1.55; color: var(--muted, #6b7280); }
.wk-note { margin: 28px 0 0; font-size: .95rem; color: var(--muted, #6b7280); }
@media (max-width: 760px) {
  .wk-line { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .wk-line::before, .wk-line::after { top: 10px; bottom: 34px; left: 7px; right: auto; width: 3px; height: auto; }
  .wk-line::after { background: linear-gradient(180deg, var(--brand, #7851a9), #16a34a); }
  html.hx-motion .wk-line::after { transform: scaleY(0); transform-origin: center top; }
  .wk-i { padding: 0 0 26px 36px; }
  .wk-i:last-child { padding-bottom: 0; }
  .wk-dot { position: absolute; left: 0; top: 2px; margin: 0; }
  .wk-d { height: auto; margin-bottom: 2px; }
}
@media (prefers-color-scheme: dark) { .wk-i.is-live .wk-d { color: #4ade80; } }

/* ── The 3 pages, drawn ── */
.sp-sec { padding: clamp(50px, 7vw, 100px) 0; background: var(--off-white, #f7f6f1); }
.sp-pages { list-style: none; margin: clamp(26px, 3.5vw, 40px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 28px); }
.sp-page { min-width: 0; }
.sp-win { border: 1px solid var(--border, #e5e7eb); border-radius: 16px; background: var(--surface, #fff); overflow: hidden; box-shadow: 0 28px 56px -38px rgba(40, 20, 80, .4); }
.sp-bar { display: flex; align-items: center; gap: 5px; padding: 9px 12px; border-bottom: 1px solid var(--border, #e5e7eb); background: var(--surface-2, #f3f1f8); }
.sp-bar i { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--border, #e5e7eb); }
.sp-bar span { flex: 1; min-width: 0; margin-left: 8px; padding: 3px 10px; border-radius: 999px; background: var(--surface, #fff); font-size: .7rem; color: var(--muted, #6b7280); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp-body { display: flex; flex-direction: column; gap: 10px; height: 300px; padding: 12px 14px 14px; overflow: hidden; font-size: 10.5px; line-height: 1.35; color: var(--text, #1a1a1a); }
.sp-nav { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sp-nav b { font-size: 11px; white-space: nowrap; }
.sp-nav span { display: flex; gap: 8px; color: var(--muted, #6b7280); }
.sp-nav em { font-style: normal; }
.sp-nav em.on { color: #2f7d4f; font-weight: 600; }
.sp-hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 10px; align-items: center; }
.sp-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; }
.sp-h1 { font-size: 14px; line-height: 1.15; letter-spacing: -.02em; }
.sp-p { color: var(--muted, #6b7280); }
.sp-btn { display: inline-block; padding: 5px 11px; border-radius: 999px; background: #2f7d4f; color: #fff; font-size: 10px; font-weight: 600; white-space: nowrap; }
.sp-img { height: 80px; border-radius: 10px; background: repeating-linear-gradient(100deg, #5aa86f 0 11px, #4d9662 11px 22px); }
.sp-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.sp-tiles span { padding: 9px 4px; border-radius: 8px; background: var(--surface-2, #f3f1f8); text-align: center; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp-rev { color: var(--muted, #6b7280); }
.sp-stars { color: #f59e0b; letter-spacing: 1px; }
.sp-towns { display: flex; flex-wrap: wrap; gap: 5px; }
.sp-towns span { padding: 3px 9px; border: 1px solid var(--border, #e5e7eb); border-radius: 999px; color: var(--muted, #6b7280); }
.sp-h2 { font-size: 14px; letter-spacing: -.02em; }
.sp-list { display: flex; flex-direction: column; gap: 9px; }
.sp-svc { display: flex; align-items: center; gap: 9px; }
.sp-svc-img { flex: none; width: 40px; height: 32px; border-radius: 7px; background: linear-gradient(135deg, #5aa86f, #2f7d4f); opacity: .85; }
.sp-svc-t { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; }
.sp-svc-t i { display: block; height: 4px; border-radius: 2px; background: var(--border, #e5e7eb); }
.sp-svc-t i.s { width: 60%; }
.sp-btn-c { align-self: flex-start; margin-top: auto; }
.sp-call { font-size: 13px; font-weight: 700; color: #2f7d4f; }
.sp-form { display: flex; flex-direction: column; gap: 6px; }
.sp-form span { padding: 6px 8px; border: 1px solid var(--border, #e5e7eb); border-radius: 7px; color: var(--muted, #6b7280); }
.sp-form span.tall { height: 34px; }
.sp-form .sp-btn { align-self: flex-start; padding: 5px 16px; border: 0; color: #fff; }
.sp-meta { display: flex; flex-direction: column; gap: 3px; margin-top: auto; color: var(--muted, #6b7280); }
.sp-meta b { margin-right: 4px; color: var(--text, #1a1a1a); }
.sp-t { margin: 18px 0 4px; font-size: 1.2rem; font-weight: 600; letter-spacing: -.02em; color: var(--text, #1a1a1a); }
.sp-d { margin: 0; font-size: .95rem; line-height: 1.55; color: var(--muted, #6b7280); }
@media (prefers-color-scheme: dark) { .sp-nav em.on, .sp-call { color: #4ade80; } }
/* On a phone the three pages sit in a row you swipe, each nearly the width of the screen. */
@media (max-width: 860px) {
  .sp-pages { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(260px, 84%); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; scrollbar-width: none; }
  .sp-pages::-webkit-scrollbar { display: none; }
  .sp-page { scroll-snap-align: start; }
}

/* ── The chat hero (Nov 27 2026, Billy: "very simple kind of like a website like Muse where one just starts with the
   chat bar in the center"): the headline, a line, the field, three questions, one line of facts. ── */
.hx-chat-hero { position: relative; overflow: hidden; display: flex; align-items: center; min-height: min(80vh, 760px); padding: clamp(56px, 8vw, 112px) 0 clamp(48px, 7vw, 92px); text-align: center; }
.hx-chat-hero .hx-wrap { position: relative; z-index: 1; width: 100%; }
.hx-chat-glow { position: absolute; left: 50%; top: 60%; width: min(960px, 130vw); height: 560px; transform: translate(-50%, -50%); background: radial-gradient(closest-side, color-mix(in srgb, var(--brand, #7851a9) 15%, transparent), transparent 75%); pointer-events: none; }
.hx-chat-hero .hx-title { margin-left: auto; margin-right: auto; }
.hx-chat-hero .hx-lead { max-width: 38ch; margin: 18px auto 0; }
.hx-chat { max-width: 660px; margin: clamp(28px, 4vw, 42px) auto 0; }
.hx-chat-form { display: flex; align-items: center; gap: 10px; padding: 9px 9px 9px 11px; border: 1px solid var(--border, #e5e7eb); border-radius: 999px; background: var(--surface, #fff); box-shadow: 0 26px 60px -32px rgba(40, 20, 80, .5), 0 0 0 6px color-mix(in srgb, var(--brand, #7851a9) 7%, transparent); transition: border-color .2s, box-shadow .2s; }
.hx-chat-form:focus-within { border-color: var(--brand, #7851a9); box-shadow: 0 26px 60px -32px rgba(40, 20, 80, .55), 0 0 0 6px color-mix(in srgb, var(--brand, #7851a9) 16%, transparent); }
.hx-chat-face { flex: none; width: 40px; height: 40px; border-radius: 50%; }
.hx-chat-form input { flex: 1; min-width: 0; padding: 8px 2px; border: 0; outline: 0; background: transparent; font: 400 1.1rem/1.4 var(--font, 'Poppins', sans-serif); color: var(--text, #1a1a1a); }
.hx-chat-form input::placeholder { color: var(--muted, #6b7280); opacity: 1; }
.hx-chat-go { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border: 0; border-radius: 50%; background: var(--brand-fill, #7851a9); color: #fff; cursor: pointer; transition: transform .2s, opacity .2s; }
.hx-chat-go:hover { transform: translateY(-1px); }
.hx-chat-go:focus-visible, .hx-chat-chips button:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand, #7851a9) 55%, transparent); outline-offset: 2px; }
.hx-chat-form.is-wait .hx-chat-go { opacity: .55; }
.hx-chat-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 16px; }
.hx-chat-chips button { padding: 8px 14px; border: 1px solid var(--border, #e5e7eb); border-radius: 999px; background: var(--surface, #fff); color: var(--text, #1a1a1a); font: 500 .9rem/1.2 var(--font, 'Poppins', sans-serif); cursor: pointer; transition: border-color .2s, transform .2s; }
.hx-chat-chips button:hover { border-color: var(--brand, #7851a9); transform: translateY(-1px); }
.hx-chat-note { max-width: 56ch; margin: 24px auto 0; font-size: .93rem; line-height: 1.55; color: var(--muted, #6b7280); }
.hx-chat-note a { font-weight: 600; color: var(--brand, #7851a9); white-space: nowrap; }
@media (max-width: 600px) {
  .hx-chat-hero { min-height: 0; padding: 44px 0 40px; }
  .hx-chat-form { gap: 8px; padding: 7px 7px 7px 9px; }
  .hx-chat-face { display: none; }   /* the field needs the room for its words */
  .hx-chat-form { padding-left: 18px; }
  .hx-chat-form input { font-size: 1rem; }
  .hx-chat-go { width: 42px; height: 42px; }
}
