/* base.css — the whole visual system, extracted verbatim from the golden
   template (web/static/template.html) and extended only with the site
   chrome the template doesn't cover: header, footer, a page container, and
   just enough for the two legal pages to stay readable. Nothing here
   introduces a color, a font, or a button shape the template didn't
   already define — the nav "Call now" button and the hero's .cta share
   one pill-button language, not two. */

/* ============================================================ tokens */
:root {
  --bg: #fffcf5;        /* gazesite.com --cream */
  --fg: #1a1814;         /* gazesite.com --ink   */
  --muted: #5f584e;
  --accent: #b02020;    /* gazesite.com --red   */
  --accent-fg: #fffcf5;
  --border: #e4dcc8;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ============================================================ reset */
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  padding: 0.5rem 1rem;
  background: var(--accent);
  color: var(--accent-fg);
  z-index: 10;
}
.skip-link:focus { left: 24px; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* ============================================================ layout */
.container { max-width: 56rem; margin-inline: auto; padding-inline: 24px; width: 100%; }

/* ============================================================ header / footer */
.site-header { padding-block: 20px; }
.site-header .container { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.brand { font-weight: 800; font-size: 18px; color: var(--fg); text-decoration: none; }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-left: auto; }
.site-nav a:not(.cta-small) { color: var(--fg); text-decoration: none; }
.site-nav a:not(.cta-small):hover { text-decoration: underline; }

.site-footer { margin-top: auto; padding-block: 32px; border-top: 1px solid var(--border); color: var(--muted); font-size: 14px; }
.site-footer .container { display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--accent); }
.site-footer p { margin: 0 0 8px; }
.site-footer strong { color: var(--fg); }

/* ============================================================ the hero (golden, verbatim) */
main { flex: 1; display: grid; place-items: center; padding: 24px; }
.welcome__inner { max-width: 480px; text-align: center; }
.welcome__mark { width: 56px; height: 56px; margin: 0 auto 22px; display: block; }
h1 { font-size: clamp(28px, 5vw, 42px); line-height: 1.05; letter-spacing: -.02em; margin: 0 0 14px; }
h1 em { font-style: normal; color: var(--accent); }
.welcome__lede { font-size: 16px; color: var(--muted); margin: 0 0 26px; }
.cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--fg);
  color: var(--bg);
  border: 0;
  border-radius: 999px;
  padding: 14px 22px 14px 24px;
  font: inherit;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 16px 36px -20px rgba(0, 0, 0, .5);
  transition: transform .15s ease, box-shadow .15s;
}
.cta:hover { transform: translateY(-2px); box-shadow: 0 20px 40px -18px rgba(0, 0, 0, .55); }
.cta span {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-fg);
  display: grid;
  place-items: center;
  font-size: 13px;
}
/* Two actions, one language: the phone is the other door into the same
   interview, so "Call us" is the same pill outlined rather than a second
   button style. Wraps to two rows on a narrow phone instead of shrinking. */
.welcome__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.cta--secondary { background: transparent; color: var(--fg); box-shadow: inset 0 0 0 2px var(--fg); }
.cta--secondary:hover { box-shadow: inset 0 0 0 2px var(--fg), 0 20px 40px -18px rgba(0, 0, 0, .35); }
.welcome__meta { margin-top: 48px; font-size: 13px; color: var(--muted); }

/* The nav's "Call now" is the same pill language at a size that fits a
   header, not a second button style. */
.cta-small {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--fg);
  color: var(--bg);
  border: 0;
  border-radius: 999px;
  padding: 8px 16px;
  font: inherit;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transition: transform .15s ease;
}
.cta-small:hover { transform: translateY(-1px); text-decoration: none; }

@media (prefers-reduced-motion: reduce) {
  .cta:hover, .cta-small:hover { transform: none; }
}

/* ============================================================ the two modes
   The frontpage offers two products from one screen. Everything here exists
   to make switching between them cost nothing: no element enters or leaves,
   nothing fades, and the only thing that animates is the pill answering the
   click. Four strings change (the verb, the lede, the placeholder, the
   button) and every box on the page keeps its position.

   Both ledes are written to the same two lines at this measure, and the
   lede and the error line have reserved heights, so neither swapping copy
   nor showing an error can shove the page up or down. */
.welcome__form { margin: 0; }
.welcome__lede { min-height: 48px; }
.welcome__alt { margin-top: 10px; font-size: 13px; color: var(--muted); }

/* Radios, not tabs. The selected pill is raised cream rather than ink:
   ink belongs to the one primary action below, and two filled ink pills on
   one screen would be two primary actions, which is none. */
.switch {
  position: relative;
  display: grid;
  width: max-content;
  margin: 0 auto 26px;
  padding: 4px;
  border-radius: 999px;
  background: #f6f1e4;
  box-shadow: inset 0 0 0 1px var(--border);
}
.switch-row { grid-area: 1 / 1; display: grid; grid-template-columns: 1fr 1fr; }
/* Out of flow, so the radios don't create grid tracks of their own. */
.switch-radio { position: absolute; opacity: 0; pointer-events: none; }
.switch-label {
  padding: 9px 20px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  color: var(--muted);
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
}
/* The active label is a clipped duplicate layer, not a colour transition on
   the labels themselves. Interpolating two text colours against a sliding
   pill never syncs — one always arrives before the other. Clip and pill
   share one curve and one duration, so the text recolours at exactly the
   moment the pill reaches it. */
.switch-row-active {
  pointer-events: none;
  clip-path: inset(0 50% 0 0);
  transition: clip-path 200ms cubic-bezier(0.77, 0, 0.175, 1);
}
.switch-row-active .switch-label { color: var(--fg); }
.switch[data-mode="make"] .switch-row-active { clip-path: inset(0 0 0 50%); }
.switch-thumb {
  position: absolute;
  top: 4px; bottom: 4px; left: 4px;
  width: calc(50% - 4px);
  border-radius: 999px;
  background: var(--bg);
  box-shadow: 0 1px 2px rgba(26, 24, 20, .10), 0 4px 10px -4px rgba(26, 24, 20, .18);
  transition: transform 200ms cubic-bezier(0.77, 0, 0.175, 1);
}
/* 100% of the thumb's own width is exactly half the track, so the pill
   lands on the second label whatever the labels say. */
.switch[data-mode="make"] .switch-thumb { transform: translateX(100%); }
/* Focus lands on the visually hidden radio, so the ring goes on its label. */
.switch-radio:focus-visible + .switch-label {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* One box for both jobs: a URL in test mode, a description of the business
   in make mode. Built from the pill language rather than as a new
   component — the same 999px, the same 2px inset rule as .cta--secondary,
   the submit pill sitting inside it. No new colour.

   The https:// is hidden rather than removed in make mode, so the box
   cannot reflow around it. */
.field {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 480px;
  margin: 0 auto;
  padding: 5px 5px 5px 22px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 2px var(--fg);
  text-align: left;
  transition: box-shadow 180ms ease;
}
.field.is-focused { box-shadow: inset 0 0 0 2px var(--fg), 0 0 0 4px rgba(176, 32, 32, .16); }
.field .scheme { color: var(--muted); font-size: 15px; font-weight: 600; user-select: none; }
.field[data-mode="make"] .scheme { visibility: hidden; width: 0; margin-right: -8px; }
.field input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  color: var(--fg);
  padding: 12px 0;
}
.field input::placeholder { color: #a79e8d; font-weight: 400; }
.field .cta { box-shadow: none; }
.field .cta:hover { transform: none; box-shadow: 0 10px 24px -14px rgba(0, 0, 0, .5); }

/* Reserved height: showing an error must not shove the page down. */
.err {
  min-height: 20px;
  margin: 10px 0 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
}

@media (max-width: 560px) {
  /* Full width, so the two halves stay equal and the pill still lands on
     the second label. */
  .switch { width: 100%; }
  .switch-label { padding: 9px 6px; font-size: 14px; }
  .field { flex-wrap: wrap; padding: 8px; }
  .field .scheme { display: none; }
  .field input { width: 100%; padding: 12px 14px; }
  .field .cta { width: 100%; justify-content: center; }
  .welcome__lede { min-height: 0; }
}

/* ============================================================ legal pages */
/* /privacy and /terms are the only other real pages on this site — one
   column of running text, capped for readability. */
.prose { max-width: 60ch; }
.prose h1 { font-size: 28px; }
.prose h2 { font-size: 20px; margin-top: 2rem; }
.prose p, .prose ul, .prose ol { margin: 0 0 1rem; line-height: 1.6; }
.prose a { text-decoration: underline; }
.meta { color: var(--muted); font-size: 14px; margin-top: -0.5rem; margin-bottom: 1.5rem; }

.post-list { list-style: none; padding: 0; }
.post-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--border);
  padding: 12px 0;
}
.post-list small { color: var(--muted); white-space: nowrap; }
