/* ==========================================================================
   Poodie: web design, hosting and local SEO for small businesses (Calgary)

   REBRAND 2026-10-26: the pet-flavoured sticker identity (yellow, ink outlines,
   offset shadows, a dog mascot, an illustrated street) is retired. The new
   identity comes from the logo: lowercase "pood" + an open coral "ie" TAB
   sitting on a coral LINE. Everything below is that one idea, applied.

   WHY IT LOOKS LIKE THIS (read before "cleaning it up")
   - The signature device is THE TAB ON A LINE. It appears in exactly these
     places: the logo, the hero browser's selected tab (js/hero.js), the
     section labels (.tabline, which are real links to the page they name, so
     they inform, not decorate), the current nav item, and the footer rule.
     Do not spread it to cards or buttons; it stops meaning anything.
   - Hero = a real browser whose tabs are example businesses. Switching tabs
     builds that site (js/mockup.js). That is the ONE orchestrated moment.
   - Flat and crisp: 1px hairlines, 12-14px radii, no offset shadows. One soft
     shadow, on the hero browser only, to lift it off the page.
   - Type, one job each: --display (Outfit, the logo's face) for h1/h2 and big
     numbers; --text (Figtree) for every piece of UI; --mono (JetBrains Mono)
     bound to .note, .tabline, step numbers and tab labels ONLY: the "code"
     voice. Never set paragraphs in mono.
   - Colour. Measured, do not "brighten it back to brand":
       --accent  #e8562f  logo coral. Shapes, rules, tabs, big type ONLY.
                          3.37:1 on paper, so never small text on light.
                          Navy text ON coral = 4.82:1 (ok); white on it = 3.62 (large only).
       --accent-deep #c4441f  buttons + small tabs with white text (5.01:1).
       --accent-ink  #b23d1b  coral-coloured TEXT on light grounds (5.46:1).
       coral on --ink = 4.82:1, fine for labels in the dark sections.
   - The example sites INSIDE .mock are other businesses' brands: their own
     colours and fonts. Never restyle them with Poodie tokens.
   - Phone first. Base styles are the phone; desktop is the media query.
   - No em dashes or en dashes in visible copy.
   ========================================================================== */

/* Stand-in fonts sized to match Outfit and Figtree (measured from the real font files with
   fontTools, 2026-10-26), so text barely moves when the web fonts arrive (Lighthouse CLS). */
@font-face { font-family: 'Outfit Fallback'; src: local('Arial Bold'), local('Arial-BoldMT'); font-weight: 700 800; size-adjust: 94.4%; ascent-override: 106%; descent-override: 27.6%; line-gap-override: 0%; }
@font-face { font-family: 'Figtree Fallback'; src: local('Arial'), local('ArialMT'); size-adjust: 101%; ascent-override: 94.1%; descent-override: 24.8%; line-gap-override: 0%; }

:root {
  --ink: #17153a;
  --ink-soft: #4a476b;      /* 8.1:1 on --paper */
  --paper: #f7f6fb;
  --paper-2: #efeef6;
  --white: #ffffff;
  --hair: #dedcec;          /* 1px rules and card borders */
  --hair-dark: #34315e;     /* rules inside navy sections */

  --accent: #e8562f;
  --accent-deep: #c4441f;
  --accent-ink: #b23d1b;
  --accent-soft: #fdeae3;

  --ok: #1f8a5b;
  --warn: #b5530f;

  --display: 'Outfit', 'Outfit Fallback', system-ui, sans-serif;
  --text: 'Figtree', 'Figtree Fallback', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;

  --radius: 14px;
  --gutter: 16px;
  --max: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }   /* .btn etc. set display; hidden must still win */
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: clip;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1em; max-width: 62ch; }
button, input, select, textarea { font: inherit; color: inherit; }

h1, h2 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin: 0 0 .4em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.6rem, 8.5vw, 5.2rem); }
h2 { font-size: clamp(2rem, 5.2vw, 3.2rem); }
h3 {
  font-family: var(--text);
  font-weight: 800;
  font-size: 1.25rem;
  line-height: 1.2;
  margin: 0 0 .35em;
}
.lede { font-size: clamp(1.1rem, 2.4vw, 1.28rem); color: var(--ink-soft); max-width: 42ch; }

/* the code-comment aside: one job, short strings only */
.note {
  font-family: var(--mono);
  font-weight: 500;
  font-size: .88rem;
  line-height: 1.3;
  display: inline-block;
  color: var(--accent-ink);
}
.note::before { content: "// "; }
.section--ink .note { color: var(--accent); }

/* the logo's line under a key phrase */
.mark {
  background: linear-gradient(transparent 80%, var(--accent) 80%, var(--accent) 93%, transparent 93%);
  padding: 0 .04em;
}

/* THE TAB ON A LINE: a section label that is a real link to its page */
.tabline {
  display: flex; align-items: flex-end;
  border-bottom: 3px solid var(--accent);
  margin: 0 0 22px;
  text-decoration: none;
  max-width: 760px;
}
.tabline span {
  font-family: var(--mono); font-weight: 700; font-size: .9rem; line-height: 1;
  background: var(--accent-deep); color: var(--white);
  padding: 9px 16px 8px; border-radius: 9px 9px 0 0;
  transition: background-color .15s ease;
}
@media (hover: hover) and (pointer: fine) { .tabline:hover span { background: var(--ink); } }
.section--ink .tabline span { background: var(--accent); color: var(--ink); }

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

.skip {
  position: absolute; left: -999px; top: 8px; z-index: 100;
  background: var(--ink); color: var(--white); padding: .6rem 1rem; border-radius: 10px;
}
.skip:focus { left: 8px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(56px, 7vw, 96px) 0; position: relative; }
.section--tint { background: var(--paper-2); }
.section--ink { background: var(--ink); color: var(--paper); }
.section--ink .lede, .section--ink p { color: #c9c6e6; }   /* 10.5:1 on ink */
.section--sun { background: var(--accent); color: var(--ink); }   /* class name kept; it is the coral band now */
.section--sun p, .section--sun .lede { color: var(--ink); }
.section-head { margin-bottom: clamp(28px, 4vw, 48px); max-width: 760px; }
.section-head .note { margin-bottom: .6rem; }
/* desktop: heading left, intro right, so a section head fills the row instead of a narrow column */
@media (min-width: 900px) {
  .section-head:has(> .lede) { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); column-gap: 56px; align-items: end; max-width: none; }
  .section-head:has(> .lede) > :not(h2, .lede) { grid-column: 1 / -1; }
  .section-head:has(> .lede) > h2 { margin-bottom: 0; }
  .section-head:has(> .lede) > .lede { margin: 0 0 .35em; }
  .section-head:has(> .lede) .tabline { max-width: none; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 52px; padding: .75rem 1.45rem;
  border: 1.5px solid var(--accent-deep); border-radius: 10px;
  background: var(--accent-deep); color: var(--white);
  font-weight: 700; font-size: 1.02rem; text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .15s ease;
}
.btn svg { width: 20px; height: 20px; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.section--ink .btn--ghost { color: var(--paper); border-color: var(--paper); }
.section--sun .btn { background: var(--ink); border-color: var(--ink); color: var(--white); }
.section--sun .btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; transform: none; }
.btn.is-loading { pointer-events: none; opacity: .8; }
.btn.is-loading::after {
  content: ""; width: 16px; height: 16px; border-radius: 50%;
  border: 2.5px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
/* hovers keep a legible pair on every ground (measured): never coral text on light */
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: var(--ink); border-color: var(--ink); color: var(--white); }
  .btn--ghost:hover { background: var(--ink); color: var(--white); }
  .section--ink .btn:hover, .section--ink .btn--ghost:hover { background: var(--paper); border-color: var(--paper); color: var(--ink); }
  .section--sun .btn:hover { background: var(--white); border-color: var(--white); color: var(--ink); }
  .section--sun .btn--ghost:hover { background: var(--ink); color: var(--white); }
}
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.6rem; }

/* ---------- the house card ---------- */
.panel {
  background: var(--white);
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  padding: clamp(20px, 3vw, 32px);
}

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--hair);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 70px; gap: 16px; }
.logo { display: inline-flex; align-items: center; text-decoration: none; }
.logo img { display: block; height: 40px; width: auto; }
.site-footer .logo img { height: 44px; }
.nav { display: none; }
.nav a {
  text-decoration: none; font-weight: 700; padding: .5rem .85rem; border-radius: 8px;
}
.nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--accent); border-radius: 0; }
@media (hover: hover) and (pointer: fine) { .nav a:not(.btn):hover { background: var(--paper-2); } }
.nav .btn { min-height: 44px; padding: .5rem 1.1rem; margin-left: 8px; }
.nav a.btn[aria-current="page"] { box-shadow: none; border-radius: 10px; }

.menu-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 10px; background: var(--white);
  border: 1px solid var(--hair); cursor: pointer;
}
.menu-btn svg { width: 24px; height: 24px; }
.menu-btn .i-close { display: none; }
.menu-open .menu-btn .i-open { display: none; }
.menu-open .menu-btn .i-close { display: block; }

.mobile-nav {
  display: none;
  border-top: 1px solid var(--hair);
  padding: 12px var(--gutter) 20px;
  background: var(--paper);
}
.menu-open .mobile-nav { display: grid; gap: 4px; }
.mobile-nav a { text-decoration: none; font-weight: 700; font-size: 1.2rem; padding: .75rem .3rem; border-bottom: 1px solid var(--hair); }
.mobile-nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--accent); padding-left: .8rem; }
.mobile-nav .btn { margin-top: 12px; border-bottom: 1.5px solid var(--accent-deep); }

@media (min-width: 900px) {
  .nav { display: flex; align-items: center; gap: 4px; }
  .menu-btn, .mobile-nav, .menu-open .mobile-nav { display: none; }
}

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: #c9c6e6; padding: 56px 0 32px; border-top: 4px solid var(--accent); }
.footer-grid { display: grid; gap: 32px; }
.footer-grid h3 { color: var(--paper); font-family: var(--mono); font-weight: 700; font-size: .85rem; margin-bottom: .7rem; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.footer-grid a { text-decoration: none; }
.footer-grid a:hover { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.footer-base { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--hair-dark); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: .92rem; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }

/* ---------- icons ---------- */
.ico { width: 24px; height: 24px; flex: none; }
[data-icon] { display: inline-flex; }

/* ==========================================================================
   HOME: hero = a browser whose tabs are example businesses (js/hero.js)
   ========================================================================== */
/* the hero is the one navy band at the top: the browser glows on it */
.hero { padding: clamp(40px, 6vw, 76px) 0 clamp(44px, 6vw, 72px); position: relative; overflow-x: clip; background: var(--ink); color: var(--paper); }
.hero h1 { color: var(--white); }
.hero .lede { color: #c9c6e6; }
.hero .note { color: var(--accent); }
.hero .btn--ghost { color: var(--paper); border-color: var(--paper); }
.hero .mock-caption b { color: var(--white); }
.hero .mock-caption span { color: #c9c6e6; }
@media (hover: hover) and (pointer: fine) {
  .hero .btn:hover, .hero .btn--ghost:hover { background: var(--paper); border-color: var(--paper); color: var(--ink); }
}
.hero-facts { list-style: none; margin: 30px 0 0; padding: 22px 0 0; border-top: 1px solid var(--hair-dark); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; max-width: 520px; }
.hero-facts li { font-family: var(--mono); font-size: .78rem; line-height: 1.35; color: #c9c6e6; }
.hero-facts b { display: block; font-family: var(--display); font-weight: 700; font-size: clamp(1.5rem, 4vw, 2rem); letter-spacing: -0.03em; color: var(--white); margin-bottom: 4px; }

/* who we build for: a slow strip on the coral line */
.ticker { background: var(--accent); color: var(--ink); overflow: hidden; border-bottom: 1px solid var(--accent-deep); }
.ticker-track { display: flex; width: max-content; animation: ticker 48s linear infinite; }
.ticker-set { display: flex; flex: none; }
.ticker-set span { font-family: var(--mono); font-weight: 700; font-size: .95rem; padding: 15px 0; white-space: nowrap; }
.ticker-set span::after { content: "/"; margin: 0 26px; opacity: .55; }
@keyframes ticker { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .ticker { overflow-x: auto; }
  .ticker-track { animation: none; }
  .ticker-set[aria-hidden] { display: none; }
}
.hero-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 34px; align-items: center; }
@media (min-width: 980px) { .hero-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); gap: 56px; } }
.hero-browser { min-width: 0; }
.hero-browser .note { margin-bottom: 12px; }

.browser {
  background: var(--white);
  border: 1.5px solid #34315e;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .65), 0 0 0 6px rgba(255, 255, 255, .04);
}
.htabs {
  display: flex; gap: 4px; align-items: flex-end;
  padding: 10px 10px 0;
  background: var(--paper-2);
  border-bottom: 3px solid var(--accent);
  overflow-x: auto; scrollbar-width: none;
  scroll-snap-type: x proximity;
}
.htabs::-webkit-scrollbar { display: none; }
.htab {
  flex: none; display: inline-flex; align-items: center; gap: 8px;
  min-height: 40px; padding: 8px 14px;
  border: 0; border-radius: 9px 9px 0 0; background: transparent;
  font-size: .9rem; font-weight: 700; color: var(--ink-soft); white-space: nowrap; cursor: pointer;
  scroll-snap-align: center;
  transition: background-color .15s ease, color .15s ease;
}
.htab i { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.htab[aria-selected="true"] { background: var(--accent-deep); color: var(--white); }
.htab[aria-selected="true"] i { box-shadow: 0 0 0 2px var(--white); }
@media (hover: hover) and (pointer: fine) { .htab:not([aria-selected="true"]):hover { background: var(--white); color: var(--ink); } }
.htab:focus-visible { outline-offset: -3px; }
/* the mock sits inside our browser frame, so it drops its own frame */
.browser .mock { border: 0; border-radius: 0; box-shadow: none; }

/* ==========================================================================
   Browser mockup (js/mockup.js)
   ========================================================================== */
.mock {
  --c: #1d4ed8; --c2: #fff; --cf: var(--display);
  background: var(--white);
  border: 1px solid var(--hair);
  border-radius: 14px;
  overflow: hidden;
  font-size: 14px;
  line-height: 1.35;
  position: relative;
  color: #1c1b22;
  container: mock / inline-size;
}
.mock-bar { display: flex; align-items: center; gap: 6px; padding: 8px 12px; border-bottom: 1px solid #e3e2ec; background: #f6f5fa; }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: #d3d1df; }
.mock-url { flex: 1; margin-left: 8px; background: var(--white); border: 1px solid #e3e2ec; border-radius: 8px; padding: 2px 12px; font-family: var(--mono); font-size: 11.5px; font-weight: 500; color: #4a476b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; gap: 6px; }
.mock-url svg { width: 12px; height: 12px; }
.mock-stage {
  position: absolute; right: 10px; top: 46px; z-index: 3;
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 10.5px; font-weight: 700; background: var(--ink); color: var(--white);
  border-radius: 6px; padding: 3px 8px;
}
.mock-stage::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #8c89b3; }
.mock[data-stage="live"] .mock-stage::before { background: #3ad08f; }
.mock-body { position: relative; }

/* the example site itself: somebody else's brand */
.mock-nav { display: flex; align-items: center; gap: 14px; padding: 10px 14px; padding-right: 92px; }
.mock-logo { font-family: var(--cf); font-weight: 800; font-size: 15px; white-space: nowrap; letter-spacing: -0.01em; }
.mock-links { display: flex; gap: 14px; font-size: 12px; color: #55536a; margin-left: auto; }
.mock-navcta { display: none; }
.mock-hero { position: relative; aspect-ratio: 16 / 7.4; min-height: 190px; overflow: hidden; background: #2a2833; }
.mock-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mock-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(12, 11, 20, .78) 0%, rgba(12, 11, 20, .55) 45%, rgba(12, 11, 20, 0) 80%); }
.mock-copy { position: relative; z-index: 1; padding: 18px 18px 16px; max-width: 64%; color: #fff; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; height: 100%; }
.mock-h { font-family: var(--cf); font-weight: 800; font-size: clamp(18px, 2.3vw, 26px); line-height: 1.05; margin: 0 0 6px; letter-spacing: -0.015em; max-width: 16ch; }
.mock-sub { font-size: 12px; margin: 0 0 12px; max-width: 30ch; color: #ecebf3; }
.mock-cta { display: inline-block; font-size: 12px; font-weight: 800; background: var(--c); color: var(--c2); padding: 7px 14px; border-radius: 8px; }
.mock-stars { display: inline-flex; align-items: center; gap: 4px; margin-top: 10px; font-size: 11px; font-weight: 600; color: #fff; }
.mock-stars svg { width: 12px; height: 12px; fill: #fbbf24; stroke: #fbbf24; }
.mock-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 12px; background: #f7f7fa; }
.mock-tile { border-radius: 8px; padding: 9px 10px; background: var(--white); border-top: 3px solid var(--c); box-shadow: 0 1px 2px rgba(20, 20, 40, .08); min-width: 0; }
.mock-tile b { display: block; font-size: 11.5px; line-height: 1.2; }
.mock-tile span { display: block; font-size: 11px; color: #5d5b70; }
.mock-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 14px 11px; font-size: 11.5px; font-weight: 700; background: #f7f7fa; border-top: 1px solid #e7e6ef; }
.mock-foot span { display: inline-flex; align-items: center; gap: 5px; }
.mock-foot svg { width: 13px; height: 13px; }

/* build animation: sketch (wireframe) -> design (greyscale) -> live */
.mock-body > *, .mock-photo, .mock-copy > * { transition: background-color .5s ease, color .5s ease, opacity .45s ease, filter .6s ease; }
.mock[data-stage="sketch"] .mock-photo { opacity: 0; }
.mock[data-stage="sketch"] .mock-hero { background: repeating-linear-gradient(45deg, #f1f0fa 0 6px, #e4e2f3 6px 12px); }
.mock[data-stage="sketch"] .mock-hero::after { opacity: 0; }
.mock[data-stage="sketch"] .mock-h,
.mock[data-stage="sketch"] .mock-sub,
.mock[data-stage="sketch"] .mock-tile b,
.mock[data-stage="sketch"] .mock-tile span,
.mock[data-stage="sketch"] .mock-logo,
.mock[data-stage="sketch"] .mock-links span,
.mock[data-stage="sketch"] .mock-stars,
.mock[data-stage="sketch"] .mock-foot span { color: transparent; background: #dddbee; border-radius: 4px; }
.mock[data-stage="sketch"] .mock-cta,
.mock[data-stage="sketch"] .mock-navcta { background: #cfcde4; color: transparent; }
.mock[data-stage="sketch"] .mock-tile { border-top-color: #dddbee; }
.mock[data-stage="sketch"] .mock-body svg { opacity: 0; }
.mock[data-stage="design"] .mock-photo { filter: grayscale(1) contrast(.9); }
.mock[data-stage="design"] .mock-cta,
.mock[data-stage="design"] .mock-navcta { background: #8b89a0; color: #fff; }
.mock[data-stage="design"] .mock-tile { border-top-color: #b9b7c9; }
.mock[data-stage="design"] .mock-sub,
.mock[data-stage="design"] .mock-tile span { opacity: .35; }
@media (prefers-reduced-motion: reduce) { .mock-body > *, .mock *, .mock-photo { transition: none !important; } }

.mock-caption { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; max-width: none; }
.mock-caption b { font-family: var(--display); font-weight: 700; font-size: 1.2rem; letter-spacing: -0.01em; }
.mock-caption span { color: var(--ink-soft); font-size: .98rem; }

/* phone view */
.mock--phone { max-width: 300px; margin: 0 auto; border-radius: 28px; border: 1.5px solid var(--ink); }
.mock--phone .mock-links { display: none; }
.mock--phone .mock-nav { padding-right: 14px; padding-top: 34px; }
.mock--phone .mock-hero { aspect-ratio: 4 / 5; }
.mock--phone .mock-hero::after { background: linear-gradient(0deg, rgba(12, 11, 20, .85) 0%, rgba(12, 11, 20, .5) 50%, rgba(12, 11, 20, .05) 85%); }
.mock--phone .mock-copy { max-width: none; justify-content: flex-end; }
.mock--phone .mock-h { font-size: 24px; }
.mock--phone .mock-tiles { grid-template-columns: 1fr; }

/* narrow cards (hero on a phone, 3-up gallery) */
@container mock (max-width: 380px) {
  .mock-copy { max-width: 82%; }
  .mock-links { display: none; }
}

/* ==========================================================================
   Home: services
   ========================================================================== */
.stations { display: grid; gap: 28px; }
.station { display: grid; gap: 14px; align-content: start; }
.station .art { aspect-ratio: 4 / 3; border: 1px solid var(--hair); border-radius: var(--radius); background: var(--white); overflow: hidden; }
.station .art:not(.vis) svg { width: 100%; height: 100%; }
.station p { color: var(--ink-soft); margin: 0; }
.station .tag { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-weight: 700; font-size: .8rem; color: var(--accent-ink); margin-bottom: 6px; }
.station .tag::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--accent); }
@media (min-width: 700px) { .stations { grid-template-columns: 1fr 1fr; gap: 40px 28px; } }
@media (min-width: 1100px) { .stations { grid-template-columns: repeat(4, 1fr); } }

/* ---------- before / after ---------- */
.ba { position: relative; border: 1.5px solid var(--ink); border-radius: 16px; overflow: hidden; background: var(--white); aspect-ratio: 4 / 5; user-select: none; touch-action: pan-y; }
@media (min-width: 700px) { .ba { aspect-ratio: 16 / 9; } }
.ba-side { position: absolute; inset: 0; }
.ba-after { clip-path: inset(0 calc(100% - var(--pos, 50%)) 0 0); }
.ba-handle { position: absolute; top: 0; bottom: 0; left: var(--pos, 50%); width: 0; z-index: 4; }
.ba-handle::before { content: ""; position: absolute; top: 0; bottom: 0; left: -2px; width: 4px; background: var(--accent); }
.ba-knob { position: absolute; top: 50%; left: 0; transform: translate(-50%, -50%); width: 54px; height: 54px; border-radius: 12px; background: var(--accent-deep); color: var(--white); display: grid; place-items: center; cursor: ew-resize; box-shadow: 0 6px 18px rgba(23, 21, 58, .3); }
.ba-knob svg { width: 26px; height: 26px; }
.ba-range { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: ew-resize; z-index: 5; margin: 0; }
.ba-label { position: absolute; top: 14px; z-index: 3; font-family: var(--mono); font-weight: 700; font-size: .8rem; background: var(--white); color: var(--ink); border-radius: 6px; padding: 3px 10px; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); }
.ba-before .ba-label { right: 14px; }
.ba-after .ba-label { left: 14px; background: var(--ink); color: var(--white); }
.ba-range:focus-visible ~ .ba-handle .ba-knob { outline: 3px solid var(--ink); outline-offset: 4px; }

/* the "before" site: deliberately dated */
.old-site { position: absolute; inset: 0; background: #e8e8e8 repeating-linear-gradient(0deg, transparent 0 22px, #dcdcdc 22px 23px); font-family: 'Times New Roman', Times, serif; color: #222; padding: 18px; overflow: hidden; }
.old-site .o-banner { background: #3355aa; color: #ffff66; font-family: 'Comic Sans MS', 'Comic Sans', cursive; font-size: clamp(18px, 3.4vw, 34px); text-align: center; padding: 10px; border: 4px ridge #99aadd; margin-bottom: 10px; }
.old-site .o-marq { background: #ffff99; color: #c00; font-size: 13px; padding: 3px 8px; white-space: nowrap; overflow: hidden; margin-bottom: 10px; border: 1px solid #c90; }
.old-site .o-cols { display: grid; grid-template-columns: 30% 1fr; gap: 10px; }
.old-site .o-side { background: #c9d3f0; padding: 8px; font-size: 12px; line-height: 1.7; color: #0000cc; text-decoration: underline; }
.old-site .o-main { font-size: 12px; line-height: 1.3; }
.old-site .o-main p { margin: 0 0 6px; max-width: none; }
.old-site .o-under { margin-top: 10px; display: inline-block; background: repeating-linear-gradient(45deg, #ffcc00 0 10px, #222 10px 20px); color: #fff; font-weight: 700; padding: 6px 10px; font-size: 12px; text-shadow: 1px 1px 0 #000; }
.old-site .o-count { margin-top: 10px; font-family: 'Courier New', monospace; background: #000; color: #0f0; display: inline-block; padding: 2px 6px; font-size: 12px; }

/* the "after" site (Northside Plumbing, the example's own blue) */
.new-site { position: absolute; inset: 0; background: var(--white); display: grid; grid-template-rows: auto 1fr auto; font-family: var(--text); }
.new-site .n-nav { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px 14px 92px; font-weight: 800; }
.new-site .n-nav .n-logo { font-family: 'Arial Black', var(--display); font-size: clamp(15px, 2vw, 20px); }
.new-site .n-nav .n-book { background: #1d4ed8; color: #fff; padding: 6px 14px; border-radius: 8px; font-size: 13px; }
.new-site .n-hero { margin: 0; background: #2a2833; display: grid; align-content: end; padding: clamp(18px, 3vw, 36px); position: relative; overflow: hidden; color: #fff; }
.new-site .n-hero > * { position: relative; z-index: 1; }
.new-site .n-hero .n-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; z-index: 0; }
.new-site .n-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(12, 11, 20, .85) 0%, rgba(12, 11, 20, .45) 50%, rgba(12, 11, 20, 0) 80%); }
.new-site .n-title { font-family: 'Arial Black', var(--display); font-size: clamp(24px, 4.2vw, 48px); line-height: 1; margin: 0 0 10px; max-width: 13ch; letter-spacing: -0.02em; }
.new-site .n-hero p { font-size: clamp(13px, 1.5vw, 16px); margin: 0 0 14px; max-width: 30ch; color: #ecebf3; }
.new-site .n-hero .n-cta { justify-self: start; background: #1d4ed8; color: #fff; border-radius: 8px; padding: 8px 16px; font-weight: 800; font-size: 14px; }
.new-site .n-stars { display: inline-flex; align-items: center; gap: 5px; margin-top: 10px; font-size: 12px; font-weight: 600; }
.new-site .n-stars svg { width: 13px; height: 13px; fill: #fbbf24; stroke: #fbbf24; }
.new-site .n-row { display: flex; gap: 8px; padding: 12px 14px 16px; flex-wrap: wrap; }
.new-site .n-row > span { border: 1px solid #d9d8e4; border-radius: 999px; padding: 3px 10px; font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; gap: 5px; }
.new-site .n-row svg { width: 13px; height: 13px; }

/* ---------- process: numbered like lines of code ---------- */
.road { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; position: relative; counter-reset: step; }
.road li { position: relative; display: grid; grid-template-columns: 52px 1fr; gap: 16px; padding-bottom: 30px; align-content: start; }
.road li::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  width: 48px; height: 48px; border-radius: 10px; display: grid; place-items: center;
  background: var(--white); border: 1px solid var(--hair); color: var(--accent-ink);
  font-family: var(--mono); font-weight: 700; font-size: 1rem; position: relative; z-index: 1;
}
.road li:first-child::before { background: var(--accent-deep); border-color: var(--accent-deep); color: var(--white); }
.road li::after { content: ""; position: absolute; left: 23px; top: 48px; bottom: 0; border-left: 2px solid var(--hair); }
.road li:last-child::after { display: none; }
.road h3 { margin-top: 10px; }
.road p { color: var(--ink-soft); margin: 0; }
.road .when { font-family: var(--mono); font-weight: 500; font-size: .82rem; color: var(--accent-ink); }
@media (min-width: 980px) {
  .road { grid-template-columns: repeat(5, 1fr); gap: 20px; }
  .road li { grid-template-columns: 1fr; padding-bottom: 0; }
  .road li::after { left: 48px; right: -20px; top: 23px; bottom: auto; border-left: 0; border-top: 2px solid var(--hair); }
}

/* ---------- promises (navy section) ---------- */
.promises { display: grid; gap: 14px; }
.promise { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start; padding: 20px 0; border-top: 1px solid var(--hair-dark); }
.promise .ico-badge { width: 46px; height: 46px; border-radius: 10px; background: var(--accent); color: var(--ink); display: grid; place-items: center; }
.promise h3 { color: var(--paper); margin-bottom: 4px; }
.promise p { margin: 0; }
@media (min-width: 800px) { .promises { grid-template-columns: 1fr 1fr; column-gap: 48px; } }

/* ---------- coral band teasers ---------- */
.teaser { display: grid; gap: 24px; align-items: center; }
.teaser .tabline { border-bottom-color: var(--ink); }
.teaser .tabline span { background: var(--ink); color: var(--white); }
.big-num { font-family: var(--display); font-weight: 800; font-size: clamp(4rem, 15vw, 9rem); line-height: .9; letter-spacing: -0.05em; }
.big-num small { font-size: clamp(.95rem, 1.5vw, 1.15rem); letter-spacing: 0; display: block; margin-top: .45em; font-family: var(--mono); font-weight: 700; color: var(--ink); }
@media (min-width: 900px) { .teaser { grid-template-columns: auto 1fr; gap: 64px; } }

/* ---------- CTA band ---------- */
.cta-band { display: grid; gap: 20px; align-items: center; }
.cta-band h2 { max-width: 16ch; }
@media (min-width: 900px) { .cta-band { grid-template-columns: 1.4fr 1fr; } }
.cta-art { max-width: 380px; justify-self: center; width: 100%; }

/* ==========================================================================
   Inner pages
   ========================================================================== */
/* inner pages open on the same navy band as the home hero, closed by the logo's coral line */
.page-hero { padding: clamp(40px, 6vw, 72px) 0 clamp(36px, 5vw, 60px); background: var(--ink); color: var(--paper); border-bottom: 4px solid var(--accent); position: relative; overflow-x: clip; }
.page-hero h1 { color: var(--white); }
.page-hero .lede, .page-hero .fine { color: #c9c6e6; }
.page-hero .btn--ghost { color: var(--paper); border-color: var(--paper); }
.page-hero .chip { background: transparent; border-color: var(--hair-dark); color: var(--paper); }
@media (hover: hover) and (pointer: fine) {
  .page-hero .btn:hover, .page-hero .btn--ghost:hover { background: var(--paper); border-color: var(--paper); color: var(--ink); }
  .page-hero .chip:hover { border-color: var(--paper); }
}
.page-hero-grid { display: grid; gap: 24px; align-items: center; }
.page-hero .hero-art { max-width: 420px; width: 100%; justify-self: center; }
.page-hero .hero-art svg { border-radius: 24px; }   /* square-backed drawings (build, host) read as a card on navy, not a box */
@media (min-width: 900px) { .page-hero-grid { grid-template-columns: 1.3fr 1fr; } }

/* services detail rows */
.svc { display: grid; gap: 24px; align-items: center; padding: clamp(36px, 5vw, 60px) 0; border-bottom: 1px solid var(--hair); }
.svc:last-child { border-bottom: 0; }
.svc .art { border: 1px solid var(--hair); border-radius: 16px; background: var(--white); aspect-ratio: 5 / 4; overflow: hidden; }
.svc .art:not(.vis) svg { width: 100%; height: 100%; }
.svc ul { padding: 0; margin: 14px 0 0; list-style: none; display: grid; gap: 8px; }
.svc li { display: grid; grid-template-columns: 26px 1fr; gap: 8px; align-items: start; }
.svc li svg { width: 22px; height: 22px; margin-top: 2px; color: var(--accent-ink); }
.svc .vis li svg { width: .95em; height: .95em; margin: 0; }
@media (min-width: 900px) {
  .svc { grid-template-columns: 1fr 1fr; gap: 64px; }
  .svc:nth-child(even) .art { order: 2; }
}

/* check-up quiz */
.checkup { display: grid; gap: 24px; }
@media (min-width: 900px) { .checkup { grid-template-columns: 1.3fr 1fr; align-items: start; } }
.checks { display: grid; gap: 10px; }
.check { display: grid; grid-template-columns: 30px 1fr; gap: 12px; align-items: start; padding: 14px 16px; background: var(--white); border: 1px solid var(--hair); border-radius: 12px; cursor: pointer; transition: border-color .15s ease, background-color .15s ease; }
.check input { position: absolute; opacity: 0; pointer-events: none; }
.check .box { width: 26px; height: 26px; border-radius: 7px; border: 1.5px solid var(--ink); display: grid; place-items: center; background: var(--white); color: var(--white); }
.check .box svg { width: 17px; height: 17px; opacity: 0; transition: opacity .15s ease; }
.check input:checked ~ .box { background: var(--accent-deep); border-color: var(--accent-deep); }
.check input:checked ~ .box svg { opacity: 1; }
.check:has(input:checked) { border-color: var(--accent); }
.check input:focus-visible ~ .box { outline: 3px solid var(--accent-deep); outline-offset: 3px; }
.check b { display: block; }
.check span.why { display: block; font-size: .94rem; color: var(--ink-soft); }
@media (hover: hover) and (pointer: fine) { .check:hover { border-color: var(--ink); } }

.meter-card { position: sticky; top: 92px; }
.gauge { width: 100%; max-width: 280px; margin: 0 auto; }
.gauge .needle { transition: transform .6s cubic-bezier(.3,1.4,.5,1); transform-origin: 140px 140px; }
@media (prefers-reduced-motion: reduce) { .gauge .needle { transition: none; } }
.gauge-score { text-align: center; font-family: var(--display); font-weight: 800; font-size: 3rem; line-height: 1; margin-top: -8px; }
.gauge-verdict { text-align: center; font-weight: 800; margin: 6px 0 14px; }
.tips { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: .96rem; }
.tips li { display: grid; grid-template-columns: 22px 1fr; gap: 8px; }
.tips li svg { width: 20px; height: 20px; margin-top: 2px; }

/* FAQ */
.faq { display: grid; gap: 10px; max-width: 860px; }
.faq details { background: var(--white); border: 1px solid var(--hair); border-radius: 12px; }
.faq details[open] { border-color: var(--ink); }
.faq summary { cursor: pointer; padding: 16px 56px 16px 18px; font-weight: 800; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border-radius: 7px; display: grid; place-items: center; font-family: var(--mono); font-size: 1.1rem; line-height: 1; background: var(--paper-2); color: var(--ink); }
.faq details[open] summary::after { content: "\2212"; background: var(--accent-deep); color: var(--white); }
.faq details > div { padding: 0 18px 18px; color: var(--ink-soft); }
.faq details > div p:last-child { margin-bottom: 0; }

/* real client work: screenshots in a browser frame */
.real-grid { display: grid; gap: 32px; }
@media (min-width: 760px) { .real-grid { grid-template-columns: 1fr 1fr; gap: 44px 32px; } }
@media (min-width: 1100px) {
  .real-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 22px; }
  .real-meta b { font-size: 1.15rem; }
  .real-meta p { font-size: .95rem; }
}
.real-card { display: grid; gap: 14px; align-content: start; }
.shot { border: 1px solid var(--hair); border-radius: 14px; overflow: hidden; background: var(--white); }
.shot .mock-bar { padding: 7px 10px; }
.shot img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.real-card a.shot { display: block; text-decoration: none; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
@media (hover: hover) and (pointer: fine) { .real-card a.shot:hover { transform: translateY(-3px); border-color: var(--ink); box-shadow: 0 18px 34px -22px rgba(23, 21, 58, .5); } }
.real-meta b { font-family: var(--display); font-weight: 700; font-size: 1.35rem; display: block; line-height: 1.15; letter-spacing: -0.01em; }
.real-meta .where { font-family: var(--mono); font-weight: 500; color: var(--ink-soft); font-size: .8rem; display: block; margin: 4px 0 8px; }
.real-meta p { margin: 0 0 8px; color: var(--ink-soft); }
.real-meta .visit { font-weight: 800; text-decoration-thickness: 2px; text-decoration-color: var(--accent); text-underline-offset: 5px; }
.real-meta .soon { font-family: var(--mono); font-weight: 700; font-size: .78rem; border-radius: 6px; padding: 3px 9px; background: var(--ink); color: var(--white); }

/* work gallery */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.chip { min-height: 44px; padding: .4rem 1rem; border-radius: 9px; border: 1px solid var(--hair); background: var(--white); font-weight: 700; cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
@media (hover: hover) and (pointer: fine) { .chip:not([aria-pressed="true"]):hover { border-color: var(--ink); } }
.gallery { display: grid; gap: 28px; }
@media (min-width: 700px) { .gallery { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
.work-card { position: relative; display: grid; gap: 14px; }
.work-card[hidden] { display: none; }
.work-card .mock { transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.work-card button.open { all: unset; position: absolute; inset: 0; cursor: pointer; border-radius: 16px; }
.work-card button.open:focus-visible { outline: 3px solid var(--accent-deep); outline-offset: 6px; }
@media (hover: hover) and (pointer: fine) { .work-card:hover .mock { transform: translateY(-3px); border-color: var(--ink); box-shadow: 0 18px 34px -22px rgba(23, 21, 58, .5); } }
.work-meta b { font-family: var(--display); font-weight: 700; font-size: 1.2rem; display: block; }
.work-meta span { color: var(--ink-soft); font-size: .95rem; }

dialog.viewer { width: min(1000px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); border: 1.5px solid var(--ink); border-radius: 18px; padding: 0; background: var(--paper); color: var(--ink); box-shadow: 0 30px 80px rgba(23, 21, 58, .4); }
dialog.viewer::backdrop { background: rgba(23, 21, 58, .55); }
.viewer-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-bottom: 3px solid var(--accent); background: var(--white); position: sticky; top: 0; z-index: 2; }
.viewer-top b { font-family: var(--display); font-weight: 700; font-size: 1.2rem; }
.seg { display: inline-flex; border: 1px solid var(--hair); border-radius: 10px; overflow: hidden; }
.seg button { border: 0; background: var(--white); padding: .4rem .9rem; font-weight: 700; cursor: pointer; min-height: 40px; }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--white); }
.icon-btn { width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--hair); background: var(--white); display: grid; place-items: center; cursor: pointer; }
.icon-btn svg { width: 22px; height: 22px; }
.viewer-body { padding: clamp(16px, 4vw, 36px); overflow: auto; }
.viewer-body p { color: var(--ink-soft); }
.viewer-grid { display: grid; gap: 24px; }
@media (min-width: 860px) { .viewer-grid { grid-template-columns: 1.5fr 1fr; align-items: start; } }

/* pricing */
.tiers { display: grid; gap: 24px; }
@media (min-width: 960px) { .tiers { grid-template-columns: repeat(3, 1fr); align-items: start; } .tier--pick { transform: translateY(-14px); } }
.tier { display: grid; gap: 10px; position: relative; }
.tier--pick { border: 1.5px solid var(--ink); box-shadow: inset 0 4px 0 var(--accent); }
.tier .flag { position: absolute; top: -14px; right: 18px; background: var(--accent-deep); color: var(--white); font-family: var(--mono); font-weight: 700; font-size: .78rem; padding: 5px 11px; border-radius: 7px; }
.tier .price { font-family: var(--display); font-weight: 800; font-size: 3rem; line-height: 1; letter-spacing: -0.04em; }
.tier .price small { font-family: var(--text); font-size: 1rem; font-weight: 700; color: var(--ink-soft); letter-spacing: 0; }
.tier ul { list-style: none; padding: 0; margin: 6px 0 10px; display: grid; gap: 7px; }
.tier li { display: grid; grid-template-columns: 22px 1fr; gap: 8px; font-size: .98rem; }
.tier li svg { width: 20px; height: 20px; margin-top: 3px; color: var(--accent-ink); }
.tier .btn { width: 100%; }

.plans { display: grid; gap: 0; border: 1px solid var(--hair); border-radius: 16px; overflow: hidden; background: var(--white); }
.plan { padding: 22px; border-bottom: 1px solid var(--hair); display: grid; gap: 6px; }
.plan:last-child { border-bottom: 0; }
.plan .price { font-family: var(--display); font-weight: 800; font-size: 2.2rem; line-height: 1; letter-spacing: -0.03em; }
.plan .price small { font-family: var(--text); font-size: .95rem; color: var(--ink-soft); font-weight: 700; letter-spacing: 0; }
.plan p { margin: 0; color: var(--ink-soft); }
@media (min-width: 900px) { .plans { grid-template-columns: repeat(3, 1fr); } .plan { border-bottom: 0; border-right: 1px solid var(--hair); } .plan:last-child { border-right: 0; } }

.estimator { display: grid; gap: 24px; }
@media (min-width: 960px) { .estimator { grid-template-columns: 1.4fr 1fr; align-items: start; } }
.est-group { margin-bottom: 26px; }
.est-group > h3 { margin-bottom: 10px; }
.range-row { display: flex; align-items: center; gap: 14px; }
.range-row output { font-family: var(--mono); font-weight: 700; font-size: 1.4rem; min-width: 3ch; text-align: right; }
input[type="range"].slider { flex: 1; -webkit-appearance: none; appearance: none; height: 8px; border-radius: 999px; background: linear-gradient(to right, var(--accent) 0 var(--fill, 30%), var(--hair) var(--fill, 30%)); border: 0; }
input[type="range"].slider::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; border-radius: 8px; background: var(--white); border: 2px solid var(--ink); cursor: grab; }
input[type="range"].slider::-moz-range-thumb { width: 22px; height: 22px; border-radius: 8px; background: var(--white); border: 2px solid var(--ink); cursor: grab; }
.opt-grid { display: grid; gap: 10px; }
@media (min-width: 620px) { .opt-grid { grid-template-columns: 1fr 1fr; } }
.opt { position: relative; display: grid; grid-template-columns: 28px 1fr auto; gap: 10px; align-items: center; padding: 12px 14px; border: 1px solid var(--hair); border-radius: 12px; background: var(--white); cursor: pointer; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt .box { width: 24px; height: 24px; border-radius: 7px; border: 1.5px solid var(--ink); display: grid; place-items: center; color: var(--white); }
.opt input[type="radio"] ~ .box { border-radius: 50%; }
.opt .box svg { width: 15px; height: 15px; opacity: 0; }
.opt input:checked ~ .box { background: var(--accent-deep); border-color: var(--accent-deep); }
.opt input:checked ~ .box svg { opacity: 1; }
.opt input:focus-visible ~ .box { outline: 3px solid var(--accent-deep); outline-offset: 3px; }
.opt:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.opt small { color: var(--ink-soft); font-weight: 700; white-space: nowrap; }
.receipt { position: sticky; top: 92px; font-variant-numeric: tabular-nums; }
.receipt h3 { font-family: var(--display); font-weight: 700; font-size: 1.5rem; }
.receipt-lines { list-style: none; margin: 0 0 14px; padding: 0; border-top: 3px solid var(--accent); }
.receipt-lines li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--hair); font-size: .97rem; }
.receipt-total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 6px 0; }
.receipt-total b { font-family: var(--display); font-weight: 800; font-size: 2rem; letter-spacing: -0.03em; }
.receipt-total.monthly b { font-size: 1.5rem; }
.receipt small { color: var(--ink-soft); display: block; margin: 8px 0 14px; }

/* two ways to pay (pricing #ways) + the builder's pay switch */
.ways { display: grid; gap: 20px; }
@media (min-width: 820px) { .ways { grid-template-columns: 1fr 1fr; } }
.way { display: grid; gap: 8px; align-content: start; padding: 26px; border: 1.5px solid var(--ink); border-radius: 16px; background: var(--white); color: var(--ink); text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
a.way:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(23, 21, 58, .12); }
.way h3 { font-family: var(--display); font-weight: 800; font-size: 1.7rem; margin: 0; }
.way p { margin: 0; color: var(--ink-soft); }
.way .way-price { color: var(--ink); font-size: 1.05rem; }
.way .way-price b { font-family: var(--display); font-weight: 800; font-size: 1.5rem; letter-spacing: -0.02em; }
.way-tag { font-family: var(--mono); font-weight: 700; font-size: .8rem; color: var(--accent-ink); }
.way-go { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; margin-top: 6px; }
.way-go svg { width: 18px; height: 18px; transition: transform .2s ease; }
.way:hover .way-go svg { transform: translateX(4px); }
.way--allin { background: var(--accent-soft); box-shadow: inset 0 4px 0 var(--accent); }
a.way--allin:hover { box-shadow: inset 0 4px 0 var(--accent), 0 14px 30px rgba(23, 21, 58, .12); }
@media (prefers-reduced-motion: reduce) { .way, .way-go svg { transition: none; } .way:hover { transform: none; } }
.handover { margin-top: 44px; }
.handover > h3 { font-family: var(--display); font-weight: 800; font-size: 1.6rem; margin: 0 0 6px; }
.handover > p { color: var(--ink-soft); margin: 0 0 18px; max-width: 70ch; }
.way-list { list-style: none; padding: 0; margin: 4px 0 0; display: grid; gap: 7px; }
.way-list li { display: grid; grid-template-columns: 22px 1fr; gap: 8px; color: var(--ink); }
.way-list li svg { width: 20px; height: 20px; margin-top: 3px; color: var(--accent-ink); }
.allin-fine { margin-top: 22px; max-width: 70ch; }

fieldset.est-mode { border: 0; padding: 0; min-width: 0; }
.est-mode legend { padding: 0; margin-bottom: 10px; font-family: var(--display); font-weight: 700; font-size: 1.25rem; }
.mode-grid { display: grid; gap: 10px; }
@media (min-width: 620px) { .mode-grid { grid-template-columns: 1fr 1fr; } }
.mode { position: relative; display: block; cursor: pointer; }
.mode input { position: absolute; opacity: 0; pointer-events: none; }
.mode > span { display: grid; gap: 2px; padding: 14px 16px; border: 1.5px solid var(--hair); border-radius: 12px; background: var(--white); min-height: 64px; }
.mode b { font-size: 1.05rem; }
.mode small { color: var(--ink-soft); font-weight: 700; }
.mode input:checked + span { border-color: var(--ink); background: var(--accent-soft); box-shadow: inset 0 4px 0 var(--accent); }
.mode input:focus-visible + span { outline: 3px solid var(--accent-deep); outline-offset: 3px; }
#est-form .only-allin { display: none; }
#est-form.is-allin .only-allin { display: block; }
#est-form.is-allin .only-upfront { display: none; }
.opt:has(input:disabled) { opacity: .55; cursor: not-allowed; }
.receipt .compare { margin: 12px 0 0; padding: 12px 14px; border-radius: 12px; background: var(--accent-soft); font-size: .95rem; color: var(--ink); }
.receipt .compare:empty { display: none; }

/* contact steps */
.stepper { display: grid; gap: 24px; }
@media (min-width: 960px) { .stepper { grid-template-columns: 1.4fr 1fr; align-items: start; } }
.progress { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 22px; }
.progress span { height: 6px; border-radius: 999px; background: var(--hair); transition: background-color .25s ease; }
.progress span.done { background: var(--accent); }
.step[hidden] { display: none; }
.step legend { font-family: var(--display); font-weight: 700; font-size: clamp(1.6rem, 4vw, 2.2rem); line-height: 1.1; letter-spacing: -0.02em; margin-bottom: 16px; padding: 0; }
.step fieldset { border: 0; padding: 0; margin: 0; }
.pick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (min-width: 620px) { .pick-grid { grid-template-columns: repeat(3, 1fr); } }
.pick { position: relative; display: grid; justify-items: center; gap: 6px; text-align: center; padding: 14px 8px; border: 1px solid var(--hair); border-radius: 14px; background: var(--white); cursor: pointer; font-weight: 700; font-size: .96rem; transition: border-color .15s ease, background-color .15s ease; }
.pick input { position: absolute; opacity: 0; pointer-events: none; }
.pick svg { width: 46px; height: 46px; }
.pick:has(input:checked) { border: 1.5px solid var(--accent); background: var(--accent-soft); }
.pick:has(input:focus-visible) { outline: 3px solid var(--accent-deep); outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) { .pick:hover { border-color: var(--ink); } }
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label { font-weight: 800; }
.field input, .field textarea, .field select { width: 100%; min-height: 50px; padding: .7rem .9rem; border: 1.5px solid #c9c6e0; border-radius: 10px; background: var(--white); font-size: 1rem; }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 3px solid var(--accent); outline-offset: 0; border-color: var(--ink); }
.field .err { color: #b3261e; font-weight: 700; font-size: .92rem; display: none; }
.field.invalid input, .field.invalid textarea { border-color: #b3261e; }
.field.invalid .err { display: block; }
.step-nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.done-card { text-align: center; display: grid; justify-items: center; gap: 8px; }
.done-card svg.big { width: 160px; height: 160px; }
.side-card h2, .side-card h3 { font-family: var(--display); font-weight: 700; font-size: 1.4rem; letter-spacing: -0.01em; margin: 0 0 .5em; }
.side-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.side-card li { display: grid; grid-template-columns: 26px 1fr; gap: 10px; }
.side-card li svg { width: 22px; height: 22px; margin-top: 2px; color: var(--accent-ink); }
.summary { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 6px; }
.summary li { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--hair); padding: 6px 0; }
.summary li span { color: var(--ink-soft); }

/* visually hidden */
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* one entrance moment only: the hero copy. Nothing else fades in. */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * { animation: rise .7s cubic-bezier(.2,.8,.2,1) both; }
  .hero-copy > *:nth-child(2) { animation-delay: .08s; }
  .hero-copy > *:nth-child(3) { animation-delay: .16s; }
  @keyframes rise { from { opacity: 0; transform: translateY(16px); } }
}

/* ==========================================================================
   Home: who builds it
   ========================================================================== */
.maker { display: grid; gap: 28px; align-items: center; }
.maker-photo { width: 140px; aspect-ratio: 1; border-radius: 16px; background: var(--ink); overflow: hidden; display: grid; place-items: center; position: relative; border-bottom: 6px solid var(--accent); }
.maker-photo img { width: 100%; height: 100%; object-fit: cover; }
.maker-mono { font-family: var(--display); font-weight: 800; font-size: 3.4rem; letter-spacing: -0.05em; color: var(--white); }
.maker-copy h2 { max-width: 16ch; }
.maker-facts { list-style: none; padding: 0; margin: 4px 0 24px; display: grid; gap: 10px; }
.maker-facts li { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; }
.maker-facts svg { width: 22px; height: 22px; flex: none; margin-top: 2px; color: var(--accent-ink); }
@media (min-width: 820px) {
  .maker { grid-template-columns: 240px 1fr; gap: 56px; }
  .maker-photo { width: 100%; aspect-ratio: 1; }
  .maker-mono { font-size: 5rem; }
}

/* ---------- city pages (web-design-calgary / -edmonton, built by _build/build-city-pages.py) ----------
   The signature is a drawn Google map result for a local search, with the client's
   shop in the top spot: it shows what local SEO is FOR. */
.city-split { display: grid; gap: 32px; align-items: start; }
@media (min-width: 900px) { .city-split { grid-template-columns: 1.1fr 1fr; gap: 56px; } }
.city-split p { max-width: 62ch; }
.city-areas-h { font-size: 1rem; margin: 24px 0 10px; }
.city-areas { list-style: none; padding: 0; margin-bottom: 14px; }
.city-areas .chip { cursor: default; display: inline-flex; align-items: center; font-size: .92rem; min-height: 36px; }
.city-aside { display: flex; gap: 10px; color: var(--ink-soft); font-size: .95rem; }
.city-aside .ico { width: 20px; height: 20px; margin-top: 2px; }

.serp { margin: 0; padding: 0; overflow: hidden; }
.serp-q { display: flex; align-items: center; gap: 10px; margin: 16px; padding: 10px 16px; border: 1px solid var(--hair); border-radius: 999px; font-weight: 700; background: var(--white); box-shadow: 0 2px 6px rgba(23, 21, 58, .08); }
.serp-q .ico { width: 20px; height: 20px; }
.serp-map { position: relative; height: 120px; border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair);
  background: linear-gradient(90deg, transparent 47%, #fff 47% 53%, transparent 53%), linear-gradient(0deg, transparent 44%, #fff 44% 52%, transparent 52%), var(--paper-2); }
.serp-map i { position: absolute; width: 18px; height: 18px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: #8c89b3; border: 2px solid var(--white); }
.serp-map i:nth-child(1) { left: 30%; top: 30%; background: var(--accent); width: 24px; height: 24px; }
.serp-map i:nth-child(2) { left: 62%; top: 52%; }
.serp-map i:nth-child(3) { left: 78%; top: 22%; }
.serp-list { list-style: none; margin: 0; padding: 0; }
.serp-item { display: grid; grid-template-columns: 24px 1fr auto; gap: 10px; align-items: start; padding: 12px 16px; border-bottom: 1px solid var(--paper-2); }
.serp-item b { display: block; }
.serp-item div > span { display: block; font-size: .88rem; color: var(--ink-soft); }
.serp-item .serp-pin .ico { width: 20px; height: 20px; }
.serp-stars { display: inline-flex !important; align-items: center; gap: 4px; }
.serp-stars .ico { width: 14px; height: 14px; }
.serp-item--you { background: var(--accent-soft); box-shadow: inset 4px 0 0 var(--accent); }
.serp-flag { font-family: var(--mono); font-weight: 700; font-size: .78rem; color: var(--accent-ink); white-space: nowrap; }
.serp figcaption { padding: 12px 16px; font-size: .85rem; color: var(--ink-soft); }

.city-meet { display: grid; gap: 20px; max-width: 860px; }
.city-meet > .ico-badge { width: 56px; height: 56px; border-radius: 12px; background: var(--accent-deep); color: var(--white); display: grid; place-items: center; }
@media (min-width: 720px) { .city-meet { grid-template-columns: 56px 1fr; gap: 28px; } }

.city-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
@media (min-width: 760px) { .city-checks { grid-template-columns: 1fr 1fr; gap: 14px 32px; } }
.city-checks li { display: grid; grid-template-columns: 24px 1fr; gap: 10px; font-weight: 600; }
.city-checks li svg { color: var(--accent-ink); }

/* home: "Where we work" */
.cities { display: grid; gap: 20px; }
@media (min-width: 760px) { .cities { grid-template-columns: 1fr 1fr; } }
.city-card { display: grid; gap: 8px; text-decoration: none; color: inherit; transition: border-color .2s ease, transform .2s ease; }
.city-card h3 { font-family: var(--display); font-weight: 700; font-size: 1.7rem; letter-spacing: -0.02em; margin: 0; }
.city-card p { margin: 0; color: var(--ink-soft); }
.city-card .go { font-weight: 800; text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 4px; margin-top: 6px; }
.city-card:hover, .city-card:focus-visible { border-color: var(--ink); transform: translateY(-3px); }
@media (prefers-reduced-motion: reduce) { .city-card:hover, .city-card:focus-visible { transform: none; } }

/* ---------- free draft site form (draft.html, js/draft.js) ---------- */
.draft-block { border: 0; padding: 0 0 22px; margin: 0 0 22px; border-bottom: 1px solid var(--hair); }
.draft-block:last-of-type { border-bottom: 0; }
.draft-block legend { font-family: var(--display); font-weight: 700; font-size: clamp(1.4rem, 3.5vw, 1.9rem); line-height: 1.1; letter-spacing: -0.02em; margin-bottom: 10px; padding: 0; }
.draft-hint { color: var(--ink-soft); margin: 0 0 16px; max-width: 60ch; }
.draft-link label { display: flex; align-items: center; gap: 8px; }
.draft-link label .ico { width: 20px; height: 20px; }
.draft-note { font-size: .9rem; color: var(--ink-soft); }
.draft-err { color: #b3261e; font-weight: 700; margin: 4px 0 0; }
.draft-block .checks { margin-top: 8px; }
.draft-steps { margin: 0; padding: 0; list-style: none; counter-reset: d; display: grid; gap: 14px; }
.draft-steps li { counter-increment: d; display: grid; grid-template-columns: 34px 1fr; gap: 2px 12px; }
.draft-steps li::before { content: counter(d, decimal-leading-zero); grid-row: span 2; width: 34px; height: 34px; border-radius: 8px; background: var(--accent-deep); color: var(--white); display: grid; place-items: center; font-family: var(--mono); font-weight: 700; font-size: .85rem; }
.draft-steps span { color: var(--ink-soft); font-size: .95rem; }

/* ==========================================================================
   Product visuals (js/visuals.js): real-looking UI in place of the old drawings.
   Sized in em so one component works in a hero, a services row and a small card.
   ========================================================================== */
.vis { font-size: 14px; color: var(--ink); line-height: 1.4; }
.vis .mock { box-shadow: 0 22px 44px -26px rgba(12, 11, 30, .55); }
.vis .mock-stage { display: none; }
.vis .mock--phone { max-width: none; border-radius: 22px; }
.vis .mock--phone .mock-bar,
.vis .mock--phone .mock-tiles,
.vis .mock--phone .mock-foot,
.vis .mock--phone .mock-stars,
.vis .mock--phone .mock-sub { display: none; }
.vis .mock--phone .mock-nav { padding: 18px 12px 8px; }
.vis .mock--phone .mock-logo { font-size: 12px; }
.vis .mock--phone .mock-h { font-size: 16px; }
.vis .mock--phone .mock-copy { padding: 12px; }

.page-hero .hero-art.vis { max-width: 560px; }
.svc .art.vis, .station .art.vis { aspect-ratio: auto; border: 0; background: transparent; overflow: visible; border-radius: 0; }
.svc .art.vis { font-size: 15px; }
.station .art.vis { font-size: 12px; height: 260px; display: flex; align-items: center; }
.station .vmap { height: 4.2em; }
.station .vsearch { margin: .8em; }
.station .art.vis > * { width: 100%; }

/* laptop + phone */
.vis-pair { position: relative; padding: 0 17% 14% 0; }
.vis-phone { position: absolute; right: 0; bottom: 0; width: 34%; }

/* cards */
.vcard { background: var(--white); border: 1px solid var(--hair); border-radius: 14px; padding: 1.1em 1.2em; box-shadow: 0 22px 44px -28px rgba(12, 11, 30, .5); }
.vcard--flush { padding: 0; overflow: hidden; }
.vcard-head { display: flex; align-items: center; gap: .55em; font-weight: 800; margin-bottom: .9em; min-width: 0; }
.vcard-head b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vcard-head svg { width: 1.15em; height: 1.15em; color: var(--accent-ink); flex: none; }
.pill { margin-left: auto; flex: none; font-family: var(--mono); font-weight: 700; font-size: .72em; background: var(--paper-2); color: var(--ink); border-radius: 6px; padding: .2em .55em; }
.pill.ok { background: #e1f4ea; color: #1b7a50; }
.live-dot { width: .6em; height: .6em; border-radius: 50%; background: #2fa57f; box-shadow: 0 0 0 .3em rgba(47, 165, 127, .18); flex: none; }
.uptime { display: grid; grid-template-columns: repeat(30, minmax(0, 1fr)); gap: 3px; height: 2.2em; margin-bottom: .9em; }
.uptime i { background: #2fa57f; border-radius: 2px; }
.uptime i.warn { background: #f0a33a; }
.vstats { list-style: none; margin: 0; padding: 0; }
.vstats li { display: flex; justify-content: space-between; gap: 1em; padding: .55em 0; border-top: 1px solid var(--hair); }
.vstats span { color: var(--ink-soft); }
.vstats b { font-weight: 700; text-align: right; }

.vsearch { display: flex; align-items: center; gap: .5em; margin: 1em; padding: .55em 1em; border: 1px solid var(--hair); border-radius: 999px; font-weight: 700; box-shadow: 0 2px 6px rgba(23, 21, 58, .08); }
.vsearch svg { width: 1.1em; height: 1.1em; }
.vmap { position: relative; height: 6.5em; border-top: 1px solid var(--hair); background: linear-gradient(90deg, transparent 47%, #fff 47% 53%, transparent 53%), linear-gradient(0deg, transparent 44%, #fff 44% 52%, transparent 52%), var(--paper-2); }
.vmap i { position: absolute; width: 1.1em; height: 1.1em; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: #8c89b3; border: 2px solid #fff; }
.vmap i.you { left: 28%; top: 26%; width: 1.5em; height: 1.5em; background: var(--accent); }
.vmap i:nth-child(2) { left: 63%; top: 52%; }
.vmap i:nth-child(3) { left: 80%; top: 20%; }
.vresults { list-style: none; margin: 0; padding: 0; }
.vresults li { position: relative; padding: .7em 1em; border-top: 1px solid var(--hair); display: grid; gap: .1em; }
.vresults li span { display: inline-flex; align-items: center; gap: .3em; font-size: .85em; color: var(--ink-soft); }
.vresults li span svg { width: .95em; height: .95em; fill: #fbbf24; stroke: #fbbf24; }
.vresults li.you { background: var(--accent-soft); box-shadow: inset 3px 0 0 var(--accent); }
.vresults em { position: absolute; right: 1em; top: .8em; font-style: normal; font-family: var(--mono); font-weight: 700; font-size: .72em; color: var(--accent-ink); }

.bubble { max-width: 86%; padding: .7em .9em; border-radius: 14px 14px 14px 4px; margin-bottom: .6em; background: var(--paper-2); }
.bubble small { display: block; font-family: var(--mono); font-size: .7em; color: var(--ink-soft); margin-top: .35em; }
.bubble.us small { color: var(--white); }   /* 5.0:1 on --accent-deep; a faded tint failed (3.46) */
.bubble.us { margin-left: auto; background: var(--accent-deep); color: var(--white); border-radius: 14px 14px 4px 14px; }
.vchange { display: flex; align-items: center; gap: .4em; font-family: var(--mono); font-weight: 700; font-size: .75em; color: #1b7a50; }
.vchange svg { width: 1.1em; height: 1.1em; }

.vtotal { display: flex; justify-content: space-between; align-items: baseline; padding: .6em 0 0; border-top: 3px solid var(--accent); margin-top: .2em; }
.vtotal b { font-family: var(--display); font-weight: 800; font-size: 2em; letter-spacing: -0.03em; }
.vtotal.small { border-top: 0; padding-top: 0; }
.vtotal.small b { font-size: 1.3em; }
.vfine { margin: .6em 0 0; font-size: .75em; color: var(--ink-soft); }

/* code editor */
.vcode { background: #100e2b; border-radius: 14px; overflow: hidden; color: #e9e7f7; font-family: var(--mono); font-size: .82em; box-shadow: 0 22px 44px -24px rgba(0, 0, 0, .6); border: 1px solid #2b2856; }
.vcode-tabs { display: flex; background: #0b0a20; }
.vcode-tabs span { padding: .6em 1em; color: #8c89b3; }
.vcode-tabs span.on { background: #100e2b; color: var(--white); box-shadow: inset 0 2px 0 var(--accent); }
.vcode ol { list-style: none; margin: 0; padding: .8em 0 1em; }
.vcode li { display: flex; line-height: 1.75; }
.vcode .ln { flex: none; width: 2.6em; text-align: right; padding-right: 1em; color: #5d5a8a; }
.vcode code { font: inherit; white-space: pre; overflow: hidden; text-overflow: clip; }
.vcode i { font-style: normal; }
.vcode .c-p { color: #8c89b3; }
.vcode .c-t { color: #ff8c69; }
.vcode .c-a { color: #c9c6e6; }
.vcode .c-s { color: #7fd6ae; }
.vis-build { position: relative; padding-bottom: 26%; }
.vis-build-site { width: 86%; }
.vis-build .vcode { position: absolute; right: 0; bottom: 0; width: 72%; }

/* draft: a public profile turning into a site */
.vis-draft { display: grid; grid-template-columns: minmax(0, 1.15fr) auto minmax(0, .85fr); align-items: center; gap: .8em; }
.vsocial { padding: .9em; }
.vsocial-head { display: flex; align-items: center; gap: .6em; }
.vsocial-head .av { width: 2.6em; height: 2.6em; border-radius: 50%; background: var(--accent-deep); color: var(--white); display: grid; place-items: center; font-weight: 800; flex: none; }
.vsocial-head b { display: block; }
.vsocial-head span { font-size: .75em; color: var(--ink-soft); }
.vsocial-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3px; margin-top: .8em; border-radius: 8px; overflow: hidden; }
.vsocial-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.vis-arrow { color: var(--accent); }
.vis-arrow svg { width: 1.8em; height: 1.8em; }
/* the services rows style their own lists; keep those rules off the visuals' lists */
.svc .vis ul, .svc .vis ol { margin: 0; display: block; }
.svc .vis li { grid-template-columns: none; gap: .1em; }
.svc .vis .vcode ol { padding: .8em 0 1em; }

/* reserve the space the JS-drawn visuals will take, so nothing below jumps while they load (Lighthouse CLS) */
#hero-mock { min-height: 370px; }
@media (min-width: 980px) { #hero-mock { min-height: 450px; } }
.hero-art[data-show^="pair"] { min-height: clamp(330px, 60vw, 440px); }
.hero-art[data-show="estimate"] { min-height: 250px; }
.hero-art[data-show="reply"] { min-height: 270px; }
.hero-art[data-show="draft"] { min-height: 260px; }
.svc .art[data-show] { min-height: 240px; }
/* top-anchored, not centred: when the web font swaps in, the headline changes height, and a
   centred visual moved with it (Lighthouse CLS 0.2 to 0.3 on Services and Work) */
@media (min-width: 900px) { .page-hero .hero-art { align-self: start; margin-top: 12px; } }
