/* Hometown Site Care: the business's own website. Same colours, font and radius as the Client Portal app,
   so a client who goes from this site to their portal stays in one look. Not a demo site: the red and white
   demo kit (Demos/kit/kit.css) is for the sites built for clients. */
@import url("https://fonts.googleapis.com/css2?family=Archivo:wdth,wght@62..125,100..900&display=swap");

:root {
  --brand: #256ABF; --ink: #1F2326; --paper: #FFFFFF; --surface: #F5F5F4; --line: #DEDEDC; --muted: #55595C;
  --blue: #2A78D6; --orange: #EB6834; --violet: #6250D6; --green: #008300; --yellow: #EDA100;
  --amber-bg: #FFF4D6; --amber-ink: #6B4A00;
  --font: "Archivo", "Segoe UI", system-ui, -apple-system, sans-serif;
  --s1: .25rem; --s2: .5rem; --s3: .75rem; --s4: 1rem; --s5: 1.5rem; --s6: 2rem; --s7: 3rem; --s8: 4.5rem;
  --radius: 6px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.55 var(--font); }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); font-weight: 800; font-stretch: 112%; letter-spacing: -.02em; line-height: 1.05; text-wrap: balance; }
h2 { font-size: clamp(1.625rem, 3vw, 2.25rem); font-weight: 800; font-stretch: 110%; letter-spacing: -.012em; line-height: 1.15; text-wrap: balance; }
h3 { font-size: 1.125rem; font-weight: 700; line-height: 1.3; }
a { color: var(--brand); text-underline-offset: .18em; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.wrap { max-width: 72rem; margin-inline: auto; padding-inline: clamp(1rem, 4vw, 2rem); }
.lead { font-size: 1.1875rem; color: var(--muted); max-width: 34rem; }
.icon { flex: none; width: 1.5rem; height: 1.5rem; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

/* Draft markers. They come off when the owner confirms each item and the site is published. */
.draft { margin: 0; padding: var(--s2) var(--s4); background: var(--amber-bg); color: var(--amber-ink); font-size: .9375rem; font-weight: 600; text-align: center; }
.tbc { display: inline-block; padding: .1em .5em; border-radius: var(--radius); background: var(--amber-bg); color: var(--amber-ink); font-size: .8125rem; font-weight: 700; white-space: nowrap; vertical-align: middle; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 3rem; padding: var(--s2) var(--s5);
  border: 2px solid var(--brand); border-radius: var(--radius); background: var(--brand); color: var(--paper);
  font: 700 1.0625rem/1.2 var(--font); text-decoration: none; }
.btn:hover { background: var(--ink); border-color: var(--ink); }
.btn--line { background: transparent; color: var(--brand); }
.btn--line:hover { background: var(--brand); border-color: var(--brand); color: var(--paper); }

.top { border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s5); min-height: 4.25rem; padding-block: var(--s2); }
.brand { display: inline-flex; align-items: center; gap: var(--s3); margin-right: auto; color: var(--ink); font-size: 1.1875rem; font-weight: 800; font-stretch: 110%; text-decoration: none; }
.mark { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: var(--radius); background: var(--brand); color: var(--paper); }
.top nav { display: flex; flex-wrap: wrap; gap: var(--s1) var(--s5); }
.top nav a { display: inline-flex; align-items: center; min-height: 2.75rem; color: var(--ink); font-weight: 600; text-decoration: none; }
.top nav a:hover { color: var(--brand); text-decoration: underline; }

.hero { background: var(--surface); border-bottom: 1px solid var(--line); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center; gap: var(--s7); padding-block: var(--s8); }
.hero-text { display: grid; gap: var(--s5); justify-items: start; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3) var(--s4); }
.fine { color: var(--muted); font-size: .9375rem; }

/* The picture in the hero: drawn in CSS, with no real business in it. */
.scene { position: relative; display: grid; justify-items: center; padding-block: var(--s5); }
.scene-art { display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 15rem); align-items: center; justify-content: center; gap: var(--s4); width: 100%; }
.scene-side { display: grid; gap: var(--s4); }
.phone { width: 100%; padding: var(--s3); border: 2px solid var(--ink); border-radius: 1.75rem; background: var(--paper); }
.screen { display: grid; gap: var(--s3); padding: var(--s4) var(--s3); border-radius: 1.1rem; background: var(--surface); }
.screen-name { font-weight: 800; font-stretch: 110%; }
.screen-stars { display: flex; gap: 2px; color: var(--yellow); }
.screen-stars .icon { width: 1rem; height: 1rem; fill: currentColor; stroke: none; }
.bar { height: .6rem; border-radius: var(--radius); background: var(--line); }
.bar--short { width: 60%; }
.screen-btn { display: grid; place-items: center; min-height: 2.25rem; border-radius: var(--radius); background: var(--brand); color: var(--paper); font-size: .875rem; font-weight: 700; }
.screen-btn--line { border: 2px solid var(--brand); background: var(--paper); color: var(--brand); }
.float { display: grid; gap: var(--s2); padding: var(--s3) var(--s4); border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); font-size: .875rem; line-height: 1.4; }
.float strong { display: flex; align-items: center; gap: var(--s2); }
.float .icon { width: 1.125rem; height: 1.125rem; }
.float--text { border-left: 4px solid var(--green); }
.float--text .icon { color: var(--green); }
.float--request { border-left: 4px solid var(--violet); }
.float--request .icon { color: var(--violet); }
.pills { display: flex; gap: var(--s2); }
.pill { padding: .15em .7em; border: 1px solid var(--line); border-radius: var(--radius); font-weight: 700; }
.pill--yes { border-color: var(--brand); background: var(--brand); color: var(--paper); }
.caption { margin-top: var(--s4); color: var(--muted); font-size: .875rem; text-align: center; }

section { scroll-margin-top: var(--s5); }
.block { padding-block: var(--s8); }
.block--tint { background: var(--surface); border-block: 1px solid var(--line); }
.block-head { display: grid; gap: var(--s3); margin-bottom: var(--s6); max-width: 40rem; }

.items { display: grid; gap: var(--s4); grid-template-columns: repeat(2, minmax(0, 1fr)); } /* ten items: two even columns, never an odd one left over */
@media (max-width: 48rem) { .items { grid-template-columns: minmax(0, 1fr); } .scene-art { grid-template-columns: minmax(0, 17rem); } }
.item { display: grid; grid-template-columns: auto 1fr; align-items: start; gap: var(--s1) var(--s4); padding: var(--s5); border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.item p { grid-column: 2; color: var(--muted); font-size: 1rem; }
.tile { grid-row: span 2; display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: var(--radius);
  background: color-mix(in srgb, var(--c) 14%, var(--paper)); color: var(--c); }
.c-blue { --c: var(--blue); } .c-orange { --c: var(--orange); } .c-violet { --c: var(--violet); } .c-green { --c: var(--green); } .c-yellow { --c: #A66F00; }

.steps { display: grid; gap: var(--s5); grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); counter-reset: step; }
.steps li { display: grid; gap: var(--s2); align-content: start; counter-increment: step; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 50%; background: var(--ink); color: var(--paper); font-weight: 800; }
.steps p { color: var(--muted); }

.two { display: grid; gap: var(--s7); grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
.ticks { display: grid; gap: var(--s3); }
.ticks li { display: grid; grid-template-columns: auto 1fr; gap: var(--s3); align-items: start; }
.ticks .icon { margin-top: .15rem; color: var(--green); }
.ticks--no .icon { color: var(--muted); }

.price { display: grid; gap: var(--s4); justify-items: start; padding: var(--s6); border: 2px solid var(--ink); border-radius: var(--radius); background: var(--paper); }
.price-big { font-size: clamp(3rem, 7vw, 4.25rem); font-weight: 800; font-stretch: 112%; letter-spacing: -.02em; line-height: 1; }
.price-big small { font-size: 1.125rem; font-weight: 600; letter-spacing: 0; color: var(--muted); }

.start { background: var(--ink); color: var(--paper); }
.start .wrap { display: grid; gap: var(--s4); justify-items: start; padding-block: var(--s8); }
.start p { color: var(--line); max-width: 36rem; }
.start a:not(.btn) { color: var(--paper); }
.start :focus-visible { outline-color: var(--paper); }

.foot { border-top: 1px solid var(--line); color: var(--muted); font-size: .9375rem; }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s2) var(--s5); padding-block: var(--s5); }

@media (max-width: 56rem) {
  .hero .wrap, .two { grid-template-columns: minmax(0, 1fr); }
  .hero .wrap, .block, .start .wrap { padding-block: var(--s7); }
  .top nav { display: none; } /* four in-page links; on a phone the page is short enough to scroll */
}

.stack { display: grid; gap: var(--s4); }

/* The "Get started" form: a white card on the dark band. It posts to the portal app. */
.start-text { display: grid; gap: var(--s4); align-content: start; }
.form { justify-self: stretch; display: grid; gap: var(--s4); width: 100%; padding: var(--s5); border-radius: var(--radius); background: var(--paper); color: var(--ink); }
.form label { display: grid; gap: var(--s1); font-size: .9375rem; font-weight: 600; }
.form input, .form textarea { width: 100%; min-height: 3rem; padding: var(--s2) var(--s3); border: 1px solid var(--muted); border-radius: var(--radius); background: var(--paper); color: var(--ink); font: 400 1rem/1.4 var(--font); }
.form textarea { min-height: 5.5rem; }
.form .check { display: flex; align-items: flex-start; gap: var(--s2); font-weight: 400; }
.form .check input { flex: none; width: 1.25rem; height: 1.25rem; min-height: 0; margin-top: .2rem; }
.form-pair { display: grid; gap: var(--s4); grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); }
.start .form p { color: var(--muted); max-width: none; }
.start .form :focus-visible { outline-color: var(--ink); }
.hide { position: absolute; left: -9999px; }
.form .tbc { white-space: normal; }
.form select { width: 100%; min-height: 3rem; padding: var(--s2) var(--s3); border: 1px solid var(--muted); border-radius: var(--radius); background: var(--paper); color: var(--ink); font: 400 1rem/1.4 var(--font); }
