/* Shared look for the contractor screens (index.html, start.html). Built from design/DESIGN-SYSTEM.md and the
   pen.dev frames (design/pen/photo-app.pen, the source of truth). Load after /brand/sloans-vars.css + identity.css. */
  /* Built from design/DESIGN-SYSTEM.md + the pen.dev screens (design/pen/photo-app.pen).
     Sloan's look (paper, stamps, mascot, yellow) everywhere; the contractor's logo + colour in the top bar and buttons. */
  [x-cloak] { display: none !important; }
  body { --sl-primary-text: var(--sl-primary); } /* the main color as text or outline on white; darkened per business if it's too light */
  body { -webkit-tap-highlight-color: transparent; font-size: var(--sl-text-body); line-height: var(--sl-leading-body); }
  .shell { min-height: 100dvh; display: flex; flex-direction: column; }
  .bar-in { max-width: 480px; margin: 0 auto; }
  .main { width: 100%; max-width: 480px; margin: 0 auto; flex: 1; display: flex; flex-direction: column; }
  .task { flex: 1; display: flex; flex-direction: column; min-width: 0; }
  .desk-photo { display: none; }
  /* ---- desktop (pen.dev "D" frames, 1280): full-width bar, photo left, task right, buttons under the answers ---- */
  @media (min-width: 900px) {
    .bar-in { max-width: 1280px; padding: 0 80px; }
    .sl-topbar.pad { padding-left: 0; padding-right: 0; }
    .main { max-width: 1280px; padding: 44px 80px 72px; }
    .main.has-photo { display: grid; grid-template-columns: 520px 1fr; column-gap: 64px; align-items: start; }
    .desk-photo { display: block; position: sticky; top: 24px; }
    .main .pad { padding-left: 0; padding-right: 0; }
    .main section .pt-7, .main section .pt-6, .main section .pt-8 { padding-top: 0; }
    .main .h-display { font-size: 52px; }
    .main .h-title { font-size: 34px; }
    .main .stickybar { position: static; background: transparent; padding: 20px 0 0; display: flex; justify-content: flex-end; }
    .main .stickybar::before { display: none; }
    .main .stickybar .btn-main { width: 280px; }
    .main .plan-col .stickybar { justify-content: stretch; margin-left: 0; margin-right: 0; } .main .plan-col .stickybar .btn-main { width: 100%; }
    .split2 { display: grid; grid-template-columns: 1fr 520px; column-gap: 80px; grid-auto-flow: row dense; align-content: start; }
    .split2 > * { grid-column: 1; }
    .split2 > .side { grid-column: 2; grid-row: 1 / span 8; }
    .split2.flip { grid-template-columns: 520px 1fr; column-gap: 64px; }
    .split2.flip > * { grid-column: 2; }
    .split2.flip > .side { grid-column: 1; }
    .fit-btn { width: auto !important; min-width: 300px; justify-self: start; }
  }
  .pad { padding-left: var(--sl-pad-screen); padding-right: var(--sl-pad-screen); }
  .h-display { font-size: var(--sl-text-display); line-height: var(--sl-leading-display); color: var(--sl-primary-text); }
  .h-title { font-size: var(--sl-text-title); line-height: var(--sl-leading-title); color: var(--sl-primary-text); }
  .muted { color: var(--sl-muted); }
  .small { font-size: var(--sl-text-small); line-height: var(--sl-leading-small); }

  /* icons: the hand-drawn SVGs as masks, so they take the text colour */
  .ic { display: inline-block; flex: none; width: var(--sl-icon-size); height: var(--sl-icon-size); background: currentColor;
        -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; }

  /* top bar */
  .topbar { min-height: 64px; display: flex; align-items: center; gap: 12px; z-index: var(--sl-z-bar); position: sticky; top: 0; }
  .topbar .back { width: 48px; height: 48px; margin-left: -12px; display: inline-flex; align-items: center; justify-content: center; color: var(--sl-primary-ink); }
  .topbar .t { font-family: var(--sl-font-heading); font-weight: 800; font-size: 19px; color: var(--sl-primary-ink); }
  .logo { width: 44px; height: 44px; border-radius: 10px; overflow: hidden; flex: none; display: flex; align-items: center; justify-content: center; }
  .logo img { width: 100%; height: 100%; object-fit: contain; }
  .segs { display: flex; gap: 4px; padding-bottom: 12px; }
  .segs i { flex: 1; height: 5px; border-radius: 3px; background: rgba(255,255,255,.22); }
  .segs i.on { background: var(--sl-accent); }

  /* buttons */
  .btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: var(--sl-tap);
         padding: 0 24px; border-radius: var(--sl-radius-control); border: var(--sl-border) solid transparent;
         font-size: var(--sl-text-button); font-weight: 600; transition: background var(--sl-dur-fast) var(--sl-ease); }
  .btn:active { transform: translateY(1px); }
  .btn-main { background: var(--sl-primary); color: var(--sl-primary-ink); }
  .btn-main:hover { background: var(--sl-primary-hover); }
  .btn-main[disabled] { background: var(--sl-surface-sunken); color: var(--sl-muted); transform: none; }
  .btn-secondary { background: var(--sl-surface-card); color: var(--sl-primary-text); border-color: var(--sl-primary-text); }
  .btn-delete { background: #fff; border: var(--sl-border) solid var(--sl-no); color: var(--sl-no); }
  .stickybar { position: sticky; bottom: 0; z-index: var(--sl-z-sticky); margin-top: auto;
               padding: 14px var(--sl-pad-screen) max(14px, env(safe-area-inset-bottom)); }
  .stickybar .btn-main { min-height: var(--sl-tap-primary); font-size: calc(var(--sl-text-button) + 1px); }

  /* tap answers */
  .opt { display: flex; width: 100%; align-items: center; gap: 16px; min-height: var(--sl-tap); padding: 12px 18px; text-align: left;
         border-radius: var(--sl-radius-control); border: var(--sl-border) solid var(--sl-line-strong); background: var(--sl-surface-card);
         font-weight: 600; color: var(--sl-ink); }
  .opt .mark { flex: none; width: 28px; height: 28px; border: var(--sl-border) solid var(--sl-line-strong); background: #fff; border-radius: 50%;
               display: inline-flex; align-items: center; justify-content: center; color: transparent; }
  .opt .mark.sq { border-radius: 6px; }
  .opt.on { background: var(--sl-primary); border-color: var(--sl-primary-text); color: var(--sl-primary-ink); }
  .opt.on .mark { background: var(--sl-accent); border-color: var(--sl-accent); color: var(--sl-accent-ink); }
  .opt-open { border-radius: var(--sl-radius-control); border: var(--sl-border) solid var(--sl-primary-text); background: #fff; padding: 12px; }
  .opt-open .opt { border: 0; padding: 0 6px; min-height: 44px; background: transparent; color: var(--sl-ink); }
  .opt-open .opt .mark { background: var(--sl-accent); border-color: var(--sl-accent); color: var(--sl-accent-ink); }
  textarea.field { width: 100%; min-height: 96px; border: var(--sl-border) solid var(--sl-line-strong); border-radius: var(--sl-radius-control);
                   padding: 12px 14px; font-size: var(--sl-text-body); background: #fff; color: var(--sl-ink); }
  textarea.field:focus { outline: none; border-color: var(--sl-primary-text); box-shadow: 0 0 0 3px var(--sl-accent); }

  /* voice button: navy square with yellow mic */
  .voice { display: flex; width: 100%; align-items: center; gap: 14px; min-height: var(--sl-tap); padding: 6px 18px 6px 6px;
           border-radius: var(--sl-radius-control); border: var(--sl-border) solid var(--sl-line-strong); background: #fff; font-weight: 600; text-align: left; }
  .voice .mic { width: 44px; height: 44px; border-radius: 9px; background: var(--sl-primary); color: var(--sl-accent); display: inline-flex; align-items: center; justify-content: center; flex: none; }
  .voice.rec { border-color: var(--sl-no); }
  .voice.rec .mic { background: var(--sl-no); color: #fff; }

  /* ✔ / ✖ rows */
  .check { display: flex; align-items: center; gap: var(--sl-tap-gap); padding: 12px 0; border-bottom: 1px solid var(--sl-line); }
  .check .label { flex: 1; }
  .check .no-ans .label, .check.no .label { color: var(--sl-muted); }
  .yn { width: var(--sl-tap); height: var(--sl-tap); border-radius: var(--sl-radius-control); border: var(--sl-border) solid var(--sl-line-strong);
        background: #fff; color: var(--sl-ink); display: inline-flex; align-items: center; justify-content: center; flex: none; }
  .check.yes .yn.y { background: var(--sl-yes); border-color: var(--sl-yes); color: #fff; }
  .check.no .yn.n { background: var(--sl-no); border-color: var(--sl-no); color: #fff; }

  /* photo tiles */
  .tile { position: relative; aspect-ratio: 4 / 3; }
  .tile img { height: 100%; }
  .pickbtn { display: flex; align-items: center; justify-content: center; gap: 8px; height: 52px; border: var(--sl-border) solid var(--sl-line-strong); border-radius: var(--sl-radius-control); background: #fff; font-weight: 700; font-size: 16px; cursor: pointer; }
  .tile .mv { position: absolute; left: 6px; bottom: 6px; padding: 6px 10px; border-radius: 999px; background: rgba(255,255,255,.94); color: var(--sl-ink); font-size: 13px; font-weight: 700; box-shadow: var(--sl-shadow-card); }
  .tile .rm { position: absolute; top: -4px; right: -4px; width: 48px; height: 48px; display: flex; align-items: flex-start; justify-content: flex-end; }
  .tile .rm > span { width: 32px; height: 32px; border-radius: 50%; background: var(--sl-primary); color: #fff; display: inline-flex; align-items: center; justify-content: center; border: 2px solid #fff; }
  /* big jobs: videos on the photo screen, and the "sorted into areas" screen (lib/bigjob.js) */
  .vid-blank { height: 100%; display: flex; align-items: center; justify-content: center; background: var(--sl-surface-sunken); color: var(--sl-muted); font-weight: 600; border-radius: inherit; }
  .tile .vid-tag { position: absolute; left: 6px; bottom: 6px; padding: 4px 10px; border-radius: 999px; background: rgba(0,0,0,.72); color: #fff; font-size: 13px; font-weight: 700; }
  .ready-card { overflow: hidden; border: 2px solid var(--sl-primary-text); }
  .ready-ph { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
  @media (min-width: 900px) { .ready-card { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); align-items: center; } .ready-ph { height: 220px; aspect-ratio: auto; } }
  .leave-input { display: block; width: 100%; min-height: 48px; padding: 0 14px; border: var(--sl-border) solid var(--sl-line-strong); border-radius: var(--sl-radius-control); background: #fff; font-size: 16px; color: var(--sl-ink); }
  .areas-grid { display: grid; gap: 16px; }
  @media (min-width: 900px) { .areas-grid { grid-template-columns: 1fr 1fr; } }
  .area-name { flex: 1; min-width: 0; font-weight: 700; font-size: 19px; color: var(--sl-ink); background: transparent; border: 0; border-bottom: 2px dashed var(--sl-line-strong); padding: 4px 0; outline: none; }
  .area-name:focus { border-bottom-color: var(--sl-primary-text); }
  .area-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .area-ph { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; border: 3px solid transparent; padding: 0; background: var(--sl-surface-sunken); }
  .area-ph img { width: 100%; height: 100%; object-fit: cover; }
  .area-ph.on { border-color: var(--sl-primary-text); }
  .area-role { position: absolute; left: 4px; bottom: 4px; padding: 2px 8px; border-radius: 999px; background: rgba(255,255,255,.94); color: var(--sl-ink); font-size: 12px; font-weight: 700; }
  .area-target { outline: 3px dashed var(--sl-primary-text); outline-offset: 2px; cursor: pointer; }
  .add { text-align: center; aspect-ratio: 4 / 3; border-radius: var(--sl-radius-control); border: var(--sl-border) solid var(--sl-line-strong); background: var(--sl-surface-sunken);
         display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-weight: 600; color: var(--sl-ink); cursor: pointer; }

  /* waiting steps */
  .step { display: flex; align-items: center; gap: 12px; padding: 6px 0; }
  .step .dot { width: 26px; height: 26px; border-radius: 50%; flex: none; display: inline-flex; align-items: center; justify-content: center; }
  .step.done .dot { background: var(--sl-yes); color: #fff; }
  .step.now .dot { border: 3px solid var(--sl-line); border-top-color: var(--sl-primary-text); animation: spin 1s linear infinite; }
  .step.next .dot { border: var(--sl-border) solid var(--sl-line-strong); }
  .step.now { font-weight: 700; }
  .step.next { color: var(--sl-muted); }
  @keyframes spin { to { rotate: 360deg; } }
  @media (prefers-reduced-motion: reduce) { .step.now .dot { animation: none; } }
  .bubble { background: #fff; border: 1px solid var(--sl-line); border-radius: 14px; padding: 12px 14px; box-shadow: var(--sl-shadow-card); }

  .quote { border-left: 6px solid var(--sl-primary-text); padding: 4px 0 4px 14px; font-weight: 600; font-size: var(--sl-text-lead); line-height: var(--sl-leading-lead); }
  .card { background: #fff; border: 1px solid var(--sl-line); border-radius: var(--sl-radius-card); box-shadow: var(--sl-shadow-card); }
  .post h1 { font-family: var(--sl-font-heading); font-weight: 800; font-size: 24px; line-height: 1.2; color: var(--sl-primary-text); margin: 0 0 12px; }
  .post h2 { font-family: var(--sl-font-heading); font-weight: 800; font-size: 20px; line-height: 1.25; margin: 20px 0 6px; color: var(--sl-primary-text); }
  .post p { margin: 8px 0; }
  .post a { color: var(--sl-primary-text); text-decoration: underline; }
  .post img { border-radius: 4px; margin: 12px 0; border: 6px solid #fff; box-shadow: var(--sl-frame-shadow); }
  .price-box:focus-within { border-color: var(--sl-primary-text) !important; box-shadow: 0 0 0 3px var(--sl-accent); }
  .price-box input:focus-visible { box-shadow: none; }
  .toast { position: fixed; left: 16px; right: 16px; bottom: 100px; max-width: 448px; margin: 0 auto; background: var(--sl-no); color: #fff;
           border-radius: 12px; padding: 14px 16px; font-weight: 600; z-index: var(--sl-z-toast); }

  .sent-note { background: var(--sl-yes-soft); color: var(--sl-ink); border-radius: var(--sl-radius-control); padding: 10px 14px; font-weight: 600; }
  /* Home dashboard (pen H1; SEOgets-style, design/GAMIFY.md chart rules) */
  .seg { display: inline-flex; background: var(--sl-surface-sunken); border-radius: 999px; padding: 3px; }
  .seg button { padding: 6px 14px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--sl-muted); }
  .seg button.on { background: #fff; color: var(--sl-ink); font-weight: 700; box-shadow: var(--sl-shadow-card); }
  .dash-2, .dash-3 { display: grid; gap: 16px; }
  .dash-2 > *, .dash-3 > *, .kpis > * { min-width: 0; }
  .kpis { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 8px; }
  @media (max-width: 899px) { .clamp2-phone.clamp2-phone { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; } } /* long guide titles in Pages bringing you work */
  button { text-wrap: balance; } /* no lonely word on button or tile text */
  p, li, .small, .muted { text-wrap: pretty; } /* fewer lonely last words; browsers without it ignore it */
  .kpi-l { font-size: 13px; line-height: 1.3; min-height: 2.6em; } /* two lines on phone, so the numbers under it line up */
  .chart { position: relative; height: 200px; margin-left: 28px; cursor: crosshair; }
  .chart .plot { width: 100%; height: 100%; display: block; overflow: visible; }
  .chart .grid { stroke: var(--sl-line); stroke-width: 1; vector-effect: non-scaling-stroke; }
  .chart .area { fill: #1B2B4B; fill-opacity: 0.08; }
  .chart .line { fill: none; stroke: #1B2B4B; stroke-width: 2; }
  /* three lines at once (Home chart default): different color AND line style, so they read apart without color too */
  .chart .line.s-visits { stroke: #1B2B4B; stroke-width: 2.5; }
  .chart .line.s-seen { stroke: #8A94A6; stroke-width: 2; stroke-dasharray: 6 4; }
  .chart .line.s-calls { stroke: #D9480F; stroke-width: 2.5; stroke-dasharray: 1.5 4; stroke-linecap: round; }
  .ckey { display: flex; flex-wrap: wrap; gap: 6px 16px; }
  .ckey > span { display: inline-flex; align-items: center; gap: 6px; }
  .ckey i, .kline { display: inline-block; width: 22px; height: 0; border-top: 2.5px solid #1B2B4B; }
  .ckey i.s-seen, .kline.s-seen { border-top: 2px dashed #8A94A6; }
  .ckey i.s-calls, .kline.s-calls { border-top: 3px dotted #D9480F; }
  .chart .cross { stroke: #1B2B4B; stroke-opacity: 0.35; stroke-width: 1; }
  .chart .ylab { position: absolute; left: -28px; transform: translateY(-50%); font-size: 12px; color: var(--sl-muted); width: 22px; text-align: right; }
  .chart .cdot { position: absolute; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: #1B2B4B; pointer-events: none; }
  .chart .cdot.post, .pdot { background: var(--sl-accent); box-shadow: 0 0 0 2px #1B2B4B; }
  .pdot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; }
  .chart .tip { position: absolute; top: -8px; transform: translate(-50%, -100%); background: #1B2B4B; color: #fff; padding: 8px 12px; border-radius: 8px; font-size: 14px; white-space: nowrap; pointer-events: none; z-index: 2; }
  .trow { display: grid; grid-template-columns: 1fr 52px 70px; gap: 8px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--sl-line); }
  .trow > :nth-child(2), .trow > :nth-child(3) { text-align: right; }
  .trow.two { grid-template-columns: 1fr 52px; }
  .trow.head { font-size: 13px; font-weight: 700; color: var(--sl-muted); padding: 4px 0 6px; }
  .kpi-n { font-family: var(--sl-font-heading); font-weight: 800; font-size: 24px; line-height: 1.1; }
  .xlabs { position: relative; height: 18px; margin-top: 8px; }
  .xlabs span { position: absolute; top: 0; white-space: nowrap; }
  /* site step (pen 10c / 27) */
  .site-opts { display: grid; gap: 12px; }
  .site-opt { display: flex; gap: 14px; align-items: center; padding: 10px; cursor: pointer; }
  .site-opt.on { background: #1B2B4B; color: #fff; border-color: #1B2B4B; }
  .site-opt .thumb { flex: none; width: 96px; height: 150px; overflow: hidden; border-radius: 8px; position: relative; background: var(--sl-surface-sunken); }
  .site-opt .thumb iframe { position: absolute; top: 0; left: 0; width: 390px; height: 610px; border: 0; transform: scale(.246); transform-origin: 0 0; pointer-events: none; }
  .site-opt { min-width: 0; }
  .mocks { display: flex; gap: 24px; align-items: flex-start; }
  .browser-mock { flex: 1; min-width: 0; height: 560px; border: 1px solid var(--sl-line-strong); border-radius: 10px; overflow: hidden; background: #fff; display: flex; flex-direction: column; }
  .browser-mock .bar { height: 30px; background: var(--sl-surface-sunken); display: flex; gap: 6px; align-items: center; padding: 0 12px; }
  .browser-mock .bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--sl-line-strong); }
  .browser-mock iframe { flex: 1; width: 100%; border: 0; }
  .site-opt .thumb { border-radius: 8px; }
  .phone-mock { width: min(100%, 360px); height: 640px; border: 10px solid #1B1B1B; border-radius: 36px; overflow: hidden; background: #fff; }
  .phone-mock iframe { width: 100%; height: 100%; border: 0; }
  @media (min-width: 900px) {
    .site-opts { grid-template-columns: 1fr 1fr; }
    .site-opts .site-opt { flex-direction: column; align-items: stretch; }
    .site-opt .thumb { width: 100%; height: 260px; }
    .site-opt .thumb iframe { width: 1280px; height: 860px; transform: scale(.33); }
    .phone-mock { flex: none; width: 300px; height: 560px; }
  }
  .recap-cover { background: #1B2B4B url(/brand/assets/textures/navy_paper_tile_512.jpg); border-radius: var(--sl-radius-card); padding: 28px 20px; }
  .recap-cover span { display: inline-block; background: var(--sl-accent); color: var(--sl-primary, #1C1917); font-family: var(--sl-font-heading); font-weight: 800; font-size: 28px; padding: 4px 14px; }
  .recap-cover .props { display: flex; align-items: flex-end; gap: 14px; margin-top: 18px; }
  .recap-cover .props img { height: 72px; width: auto; filter: drop-shadow(0 4px 6px rgba(0,0,0,.35)); }
  .recap-cover .props img:nth-child(3) { height: 44px; }
  .since-n { font-family: var(--sl-font-heading); font-weight: 800; font-size: 24px; line-height: 1.2; }
  .mbars { display: flex; align-items: flex-end; gap: 12px; height: 160px; }
  .mbar { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; height: 100%; }
  .mbar i { display: block; width: 100%; border-radius: 6px 6px 0 0; }
  .tbar { display: block; height: 5px; border-radius: 3px; background: #1B2B4B; opacity: 0.55; margin-top: 6px; max-width: 100%; }
  @media (min-width: 900px) {
    .dash-2 { grid-template-columns: 1fr 1fr; align-items: start; }
    .dash-3 { grid-template-columns: repeat(3, 1fr); align-items: start; }
    .kpi-n { font-size: 36px; }
    .kpis { gap: 12px; }
    .kpi-l { font-size: 14px; min-height: 0; }
    .since-n { font-size: 28px; }
  }
  .punch { flex: 1; height: 48px; border-radius: var(--sl-radius-control); background: var(--sl-surface-sunken); display: flex; align-items: center; justify-content: center; overflow: hidden; }
  .punch .sl-stamp { font-size: 11px; letter-spacing: 0.02em; padding: 2px 5px; outline-offset: 1px; }
  .slot { flex: 1; max-width: 88px; aspect-ratio: 1; border-radius: var(--sl-radius-card); background: var(--sl-surface-sunken); display: flex; align-items: center; justify-content: center; color: var(--sl-muted); }
  .slot .ic { width: 30px; height: 30px; opacity: .45; }
  .slot.on { background: var(--sl-accent); color: var(--sl-accent-ink); } .slot.on .ic { opacity: 1; }
  .wdot { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--sl-line-strong); background: #fff; }
  .wdot.hit { background: var(--sl-yes); border-color: var(--sl-yes); } .wdot.now { background: var(--sl-accent); border-color: var(--sl-accent); }
  .race-row { display: flex; gap: 14px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--sl-line); }
  .race-row:last-child { border-bottom: 0; }
  .race-row .rk { font-family: var(--sl-font-heading); font-weight: 800; font-size: 22px; width: 24px; flex: none; color: var(--sl-primary-text); }
  .race-row .nm { font-weight: 600; font-size: 15px; }
  .race-row .bar { display: block; height: 6px; border-radius: 3px; background: var(--sl-surface-sunken); margin-top: 6px; } .race-row .bar i { display: block; height: 100%; border-radius: 3px; background: var(--sl-muted); }
  .race-row.me { background: var(--sl-accent); } .race-row.me .nm { font-weight: 800; } .race-row.me .bar i { background: var(--sl-primary); }
  .tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--sl-z-bar); display: flex; height: calc(72px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
            background: #fff; border-top: 1px solid var(--sl-line); }
  .tabbar .tab { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: 13px; font-weight: 500; color: var(--sl-muted); border-top: 3px solid transparent; }
  .tabbar .tab .ic { width: 26px; height: 26px; }
  .tabbar .tab.on { color: var(--sl-primary-text); border-top-color: var(--sl-primary-text); font-weight: 700; }
  body:has(.tabbar:not([style*="display: none"])) .shell { padding-bottom: calc(80px + env(safe-area-inset-bottom)); }
  .desk-tabs { display: flex; gap: 28px; }
  .desk-tabs button { color: var(--sl-primary-ink); opacity: .75; font-size: 17px; font-weight: 500; padding: 6px 0; border-bottom: 3px solid transparent; }
  .desk-tabs button.on { opacity: 1; font-weight: 700; border-bottom-color: var(--sl-accent); }
  .photo-use .pu-photo { margin-bottom: 20px; } .photo-use .pu-photo img { width: 100%; height: 170px; object-fit: cover; display: block; }
  .photo-use.is-desk { flex-direction: row; gap: 48px; align-items: flex-start; max-width: 1100px; }
  .photo-use.is-desk .pu-photo { width: 520px; flex: none; } .photo-use.is-desk .pu-photo img { height: auto; max-height: 560px; }
  .photo-use.is-desk .pu-side { flex: 1; min-width: 0; max-width: 480px; }
  .field-in { width: 100%; min-height: var(--sl-tap); border: var(--sl-border) solid var(--sl-line-strong); border-radius: var(--sl-radius-control);
              background: #fff; padding: 0 16px; font-size: var(--sl-text-body); color: var(--sl-ink); }
  .field-in:focus { outline: none; border-color: var(--sl-primary-text); box-shadow: 0 0 0 3px var(--sl-accent); }
  .lbl2 { display: block; font-weight: 600; margin: 0 0 6px; }

/* your site is live (pen 29): full screen, over the bars */
.site-win { position:fixed; inset:0; z-index:60; background:#0D1D3D var(--sl-paper-navy); color:#fff; overflow:auto; }
.site-win-in { min-height:100%; max-width:430px; margin:0 auto; padding:56px 20px 32px; display:flex; flex-direction:column; }
.site-win .art { position:relative; height:300px; }
.site-win .laptop { position:absolute; left:10px; top:21px; width:177px; transform:rotate(3deg); }
.site-win .crew { position:absolute; left:186px; top:10px; width:144px; height:274px; object-fit:contain; transform:rotate(-3deg); }
.site-win .tag { position:absolute; left:-1px; top:192px; width:246px; height:113px; background:#F8F5ED var(--sl-paper-cream, none); transform:rotate(-4deg); box-shadow:0 6px 16px rgba(0,0,0,.3); }
.site-win .stamp { position:absolute; left:11px; top:211px; width:225px; transform:rotate(-4deg); }
.site-win h1 { color:#fff; text-align:center; margin-top:16px; }
.site-win .lead { text-align:center; margin-top:16px; line-height:1.5; }
.site-win .lead a { color:#fff; font-weight:700; text-decoration:underline; }
.site-win .btn { margin-top:auto; background:#FFC700; color:#1B1F1D; }
.site-win .btn .ic { background-color:#1B1F1D; }

/* Your plan: card, what you got, buttons. Phone: stacked in that order. Desktop: what you got on the right */
.plan-grid { display:grid; grid-template-columns:minmax(0,1fr); }
.plan-wins { margin-bottom:24px; min-width:0; }
.plan-head, .plan-acts { min-width:0; }
@media (min-width: 900px) {
  .plan-grid { grid-template-columns:minmax(0,1fr) minmax(0,1fr); column-gap:48px; grid-template-rows:auto 1fr; }
  .plan-wins { grid-column:2; grid-row:1 / span 2; }
}

/* Home v4 (pen H4, design/GAMIFY.md): month banner in the business's colors, then pairs of equal cards on desktop */
.month-banner { --mb: var(--sl-primary); --mb-ink: #fff; background: var(--mb) url(/brand/assets/textures/navy_paper_tile_512.jpg); color: var(--mb-ink);
  border-radius: var(--sl-radius-card); padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.month-banner.branded { background: var(--mb) url(/brand/assets/textures/cream_paper_tile_512.jpg); background-blend-mode: multiply; }
.mb-strip { display: inline-block; background: var(--mb-acc); color: var(--mb-acc-ink); font-family: var(--sl-font-heading); font-weight: 800; font-size: 26px; line-height: 1.2;
  padding: 6px 22px; margin-bottom: 12px; rotate: -1.5deg; -webkit-mask: url(/brand/assets/strips/strip_yellow_blank-2x.png) center / 100% 100% no-repeat; mask: url(/brand/assets/strips/strip_yellow_blank-2x.png) center / 100% 100% no-repeat; }
.mb-title { font-family: var(--sl-font-heading); font-weight: 800; font-size: 28px; line-height: 1.15; color: inherit; }
.mb-sub { color: inherit; }
.mb-right { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-width: 0; }
.mb-props { display: flex; align-items: center; gap: 12px; flex: none; }
.mb-props img { height: 50px; width: auto; }
.mb-props img.mb-stars { height: 24px; }
.home { display: flex; flex-direction: column; gap: 16px; }
.home > *, .home-row > *, .home-col > * { min-width: 0; }
.card-prop { height: 48px; width: auto; flex: none; }
.win-cells { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 12px 0; }
.from-google, .top-search, .maps-card, .rev-card { display: flex; flex-direction: column; }
.ccell { display: flex; flex-direction: column; justify-content: flex-start; text-align: left; padding: 0 12px 12px 0; border-bottom: 3px solid transparent; }
.ccell.on { border-bottom-color: var(--sl-accent); }
.ccell[disabled] { cursor: default; }
@media (max-width: 899px) {
  .home-row, .home-col { display: contents; }
  .o1 { order: 1; } .o2 { order: 2; } .o3 { order: 3; } .o4 { order: 4; } .o5 { order: 5; } .o6 { order: 6; }
  .o7 { order: 7; } .o8 { order: 8; } .o9 { order: 9; } .o10 { order: 10; } .o11 { order: 11; } .o12 { order: 12; }
}
@media (min-width: 900px) {
  .month-banner { padding: 24px 32px; flex-direction: row; align-items: stretch; justify-content: space-between; gap: 24px; }
  .mb-strip { font-size: 30px; }
  .mb-title { font-size: 38px; }
  .mb-right { flex-direction: column; align-items: flex-end; justify-content: space-between; flex: none; }
  .mb-props { gap: 22px; }
  .mb-props img { height: 74px; }
  .mb-props img.mb-stars { height: 34px; }
  .home { gap: 20px; }
  .home .card { padding: 24px; }
  .home-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
  .home-row.solo > * { grid-column: 1 / -1; }
  .home-col { display: flex; flex-direction: column; gap: 20px; }
  .home-col > .card { flex: 1; }
  .do-card { position: relative; display: flex; flex-direction: column; padding: 23px; } /* thicker border, so its button stays level with Reviews */
  .do-body { display: flex; flex-direction: column; flex: 1; padding-right: 140px; }
  .do-btn { margin-top: auto; }
  .do-crew { position: absolute; right: 22px; bottom: 16px; height: 150px; width: auto; object-fit: contain; }
  .rev-card { gap: 16px; }
  .fill-card, .maps-card { display: flex; flex-direction: column; }
  .fill-list { flex: 1; display: flex; flex-direction: column; }
  .fill-list > * { flex: 1; align-items: center; }
  .chart-cells { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); } /* calls, visits, seen (+ reached) */
  .win-cells { margin: auto 0; padding: 16px 0; }
}
.rev-t { font-size: 17px; }
.rev-good { font-family: var(--sl-font-heading); font-weight: 800; font-size: 24px; line-height: 1.2; color: var(--sl-ink); }
.rev-stars { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.rev-star { width: 32px; height: 32px; overflow: visible; }
.rev-star path { fill: var(--sl-surface-sunken); stroke: var(--sl-line-strong); stroke-width: 1.5; stroke-linejoin: round; }
.rev-star.on { filter: drop-shadow(0 1px 2px rgba(0,0,0,.25)); }
.rev-star.on path { fill: var(--star); stroke: #fff; stroke-width: 2; }
@media (min-width: 900px) {
  .rev-good { font-size: 26px; }
  .rev-stars { margin-top: 0; }
  .rev-star { width: 44px; height: 44px; }
  .race-cell { flex: 1; display: flex; align-items: center; }
  .race-cell > * { width: 100%; }
}

/* sign-up: pick your colors (pen 13c) */
.swatches { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.swatch { position: relative; height: 96px; border-radius: 12px; overflow: hidden; border: 1px solid var(--sl-line-strong); }
.swatch i { position: absolute; left: 0; right: 0; bottom: 0; height: 26px; }
.swatch.on { outline: 3px solid var(--sl-ink); outline-offset: -1px; }
.swatch .badge { position: absolute; left: 8px; top: 8px; width: 30px; height: 30px; border-radius: 50%; background: #fff; color: var(--sl-ink); display: flex; align-items: center; justify-content: center; }

/* sign-up: trade grid, loading bars, small motion (all in the brand's colors) */
.trade-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.trade { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 104px; padding: 12px 6px; text-align: center; font-weight: 600; font-size: 15px; line-height: 1.2;
  background: var(--sl-surface-card); color: var(--sl-ink); border: var(--sl-border) solid var(--sl-line-strong); border-radius: var(--sl-radius-control); }
.trade .ic { width: 36px; height: 36px; color: var(--sl-primary-text); }
.trade.on { background: var(--sl-primary); border-color: var(--sl-primary-text); color: var(--sl-primary-ink); }
.trade.on .ic { color: var(--sl-accent); animation: sl-pop var(--sl-pop) both; }
.loader { position: fixed; inset: 0; z-index: 70; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px; background: var(--sl-surface-page) var(--sl-paper-page); }
.loader > * { max-width: 420px; }
.loader .loadbar { width: min(420px, 100%); }
.loadbar { height: 12px; border-radius: 999px; background: var(--sl-surface-sunken); overflow: hidden; }
.loadbar i { display: block; height: 100%; border-radius: 999px; background: var(--sl-accent); box-shadow: inset 0 0 0 2px var(--sl-primary-text); transition: width .25s linear; }
.loadbar.run i { width: 40%; animation: load-run 1.3s ease-in-out infinite; }
.loadbar.fill-35 i { animation: load-fill 35s cubic-bezier(.2,.7,.3,1) forwards; }
.loadbar.fill-60 i { animation: load-fill 60s cubic-bezier(.2,.7,.3,1) forwards; }
@keyframes load-run { from { transform: translateX(-110%); } to { transform: translateX(260%); } }
@keyframes load-fill { from { width: 2%; } to { width: 94%; } }
@keyframes step-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
main > section, main > template + section, .wrap section { animation: step-in .24s ease both; }
.opt.on .mark { animation: sl-pop var(--sl-pop) both; }
.iq-track i { transition: width .35s ease; }
@media (prefers-reduced-motion: reduce) { main > section, .wrap section, .opt.on .mark, .trade.on .ic { animation: none; } .loadbar.run i { animation: none; width: 100%; opacity: .5; } .loadbar.fill-35 i, .loadbar.fill-60 i { animation: none; width: 60%; } }
.kpi-d { font-size: 13px; font-weight: 600; line-height: 1.3; color: var(--sl-muted); white-space: pre-line; }
.err { color: var(--sl-no); font-weight: 600; }

/* the follow-up question on Home (pen H5): one column on a phone; two equal columns on desktop, voice + Send on the last row */
.fu-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sl-tap-gap); }
.fu-grid .fu-text { order: 2; }
.fu-grid .voice { order: 1; }
.fu-grid .fu-send { order: 3; margin-top: 8px; }
@media (min-width: 900px) {
  .fu-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-flow: row dense; }
  .fu-grid .fu-text, .fu-grid .voice, .fu-grid .fu-send { order: 0; }
  .fu-grid .fu-text, .fu-grid .fu-full { grid-column: 1 / -1; }
  .fu-grid .fu-full { order: -1; }
  .fu-grid .fu-send { grid-column: 2; margin-top: 0; }
}
.take-closed { display: flex; flex-direction: column; gap: 20px; } /* phone: 8px more above Start (pen H9 cxg90) */
.take-answer, .take-send { width: 100%; }
.take-card { margin-top: 24px; max-width: 560px; }
@media (min-width: 900px) {
  .take-closed { flex-direction: row; align-items: center; justify-content: space-between; gap: 24px; }
  .take-answer { width: 140px; flex: none; }
  .take-send { width: 220px; }
}
.rev-stars.sm { margin: 0; gap: 4px; } .rev-stars.sm .rev-star { width: 22px; height: 22px; }
/* Review card links: on phone they sit centred under the full-width button (pen H7) */
@media (max-width: 899px) { .rev-links { width: 100%; justify-content: center; } }
/* Top search keeps its own height now that the "From the SEO work" card above it is gone (2026-11-14) */
.home-col > .top-search { flex: none; }
/* ===== Home H8: one "From Google" card; desktop two columns (design chat, 2026-11-14) ===== */
.g-grid { display: flex; flex-direction: column; gap: 16px; }
.g-side { display: flex; flex-direction: column; gap: 16px; }
.g-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.g-rows { display: flex; flex-direction: column; }
.g-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; text-align: left; padding: 12px 12px 12px 14px; border-left: 4px solid transparent; border-radius: 0 6px 6px 0; }
.g-row + .g-row { border-top: 1px solid var(--sl-line); }
.g-row.on { border-left-color: var(--sl-accent); background: var(--sl-surface-sunken); }
.g-row[disabled] { cursor: default; }
.g-row .kpi-n { font-size: 26px; line-height: 1.1; }
@media (min-width: 900px) {
  .g-grid { display: grid; grid-template-columns: minmax(0, 740fr) minmax(0, 360fr); gap: 20px; align-items: start; }
  .g-grid.solo { grid-template-columns: minmax(0, 1fr); }
  .g-side { gap: 20px; }
  .g-card .chart-cells { grid-auto-flow: column; }
}
.clamp2.clamp2 { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; } /* page names in Pages bringing you work, both widths (H8) */
/* "Done for you" (pen H9, 2026-11-14): update line on the Pages card + "What we changed on your site" card */
.upd-line { display: flex; align-items: flex-start; gap: 6px; margin-top: 6px; font-size: 13px; line-height: 1.35; color: var(--sl-muted); }
.upd-line .ic { margin-top: 2px; }
.upd-rows { display: flex; flex-direction: column; }
.upd-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--sl-line); color: inherit; text-decoration: none; }
.upd-row:last-child { border-bottom: 0; }
.upd-row.nolink { cursor: default; }
@media (min-width: 900px) {
  .upd-card.desk .upd-rows { flex-direction: row; gap: 24px; }
  .upd-card.desk .upd-row { flex: 1 1 0; align-items: flex-start; border-bottom: 0; border-top: 1px solid var(--sl-line); padding: 14px 0 4px; }
  .upd-card.desk .upd-row:last-child { border-bottom: 0; }
}
/* Month banner F (pen tua36 / Cq1Md) */
.mb-calls { font-size: 16px; font-weight: 600; line-height: 1.35; margin-top: 10px; text-wrap: pretty; color: inherit; }
.mb-small { font-size: 13px; opacity: .65; margin-top: 6px; color: inherit; }
.mb-link { display: block; margin-top: 10px; font-weight: 700; font-size: 15px; color: var(--mb-acc, var(--sl-accent)); text-align: left; }
.mb-nl { display: block; } /* phone: new-client banner's second sentence on its own line (design check) */
@media (min-width: 900px) { .mb-nl { display: inline; } }
  .tip .kline.s-visits { border-top-color: #fff; }
