/* ============================================================
   tradez.au — shared layout & component CSS
   Palette tokens are loaded separately per variant.
   See: a-gumleaf/palette.css, b-harbour/palette.css, c-hivis/palette.css
   ============================================================ */

*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{
  font-family:'Inter',system-ui,-apple-system,'Segoe UI',sans-serif;
  background:var(--bg);color:var(--ink);
  line-height:1.55;-webkit-font-smoothing:antialiased;
  font-size:15px;
}
a{color:inherit;text-decoration:none}
img,svg{display:block;max-width:100%}
button{font:inherit;cursor:pointer;border:0;background:transparent}
input,select{font:inherit}

/* ============ Top bar ============ */
.topbar{
  position:sticky;top:0;z-index:100;
  background:var(--bg);
  border-bottom:1px solid var(--line);
  backdrop-filter:saturate(1.4) blur(10px);
}
.topbar-inner{
  max-width:1280px;margin:0 auto;
  padding:10px 20px;
  display:flex;align-items:center;gap:14px;
}
.brand{
  display:flex;align-items:center;gap:8px;
  font-weight:800;font-size:19px;letter-spacing:-0.02em;
  color:var(--ink);flex-shrink:0;
}
.brand .gold{
  background:linear-gradient(180deg,var(--gold-glow),var(--gold-deep));
  -webkit-background-clip:text;background-clip:text;color:transparent;
  font-weight:900;
}
.brand-tag{
  font-size:11px;color:var(--muted);font-weight:500;
  letter-spacing:.04em;margin-left:2px;
  display:none;
}
@media(min-width:760px){.brand-tag{display:inline}}

/* Search box (with dropdown) */
.searchbox{
  flex:1;max-width:560px;position:relative;
}
.searchbox input{
  width:100%;padding:10px 14px 10px 38px;
  background:var(--surface);border:1px solid var(--line);
  border-radius:8px;color:var(--ink);font-size:14px;
  transition:border-color .15s, box-shadow .15s;
}
.searchbox input::placeholder{color:var(--muted)}
.searchbox input:focus{
  outline:0;border-color:var(--accent);
  box-shadow:0 0 0 3px var(--accent-soft);
}
.searchbox::before{
  content:"";position:absolute;top:50%;left:13px;transform:translateY(-50%);
  width:14px;height:14px;
  background:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><circle cx='11' cy='11' r='8'/><path d='m21 21-4.3-4.3'/></svg>") center/contain no-repeat;
  pointer-events:none;
}
.search-results{
  position:absolute;top:calc(100% + 6px);left:0;right:0;
  background:var(--surface);border:1px solid var(--line);
  border-radius:10px;
  box-shadow:0 18px 40px -12px var(--shadow);
  max-height:420px;overflow-y:auto;
  display:none;
  z-index:200;
}
.search-results.open{display:block}
.search-results .group{
  padding:6px 0;
  border-bottom:1px solid var(--line);
}
.search-results .group:last-child{border-bottom:0}
.search-results .group-label{
  padding:6px 14px;font-size:11px;
  text-transform:uppercase;letter-spacing:.08em;
  color:var(--muted);font-weight:600;
}
.search-results .item{
  display:flex;justify-content:space-between;gap:10px;
  padding:8px 14px;font-size:14px;color:var(--ink);
  cursor:pointer;align-items:center;
}
.search-results .item:hover,
.search-results .item.active{
  background:var(--surface-2);
}
.search-results .item .meta{
  font-size:12px;color:var(--muted);
}

.location-pill{
  display:inline-flex;align-items:center;gap:6px;
  padding:8px 12px;border-radius:8px;
  background:var(--surface);border:1px solid var(--line);
  font-size:13px;color:var(--ink);font-weight:500;
  cursor:pointer;flex-shrink:0;
}
.location-pill:hover{border-color:var(--accent)}
.location-pill .dot{
  width:7px;height:7px;border-radius:50%;
  background:var(--ok);box-shadow:0 0 0 3px var(--ok-soft);
}
.location-pill.unknown .dot{background:var(--muted);box-shadow:none}
.location-pill svg{width:12px;height:12px;opacity:.5}
@media(max-width:680px){.location-pill .lbl{display:none}}

.nav-links{
  display:none;gap:18px;font-size:14px;font-weight:500;color:var(--ink-2);
}
.nav-links a:hover{color:var(--accent)}
@media(min-width:1000px){.nav-links{display:flex}}

.btn{
  display:inline-flex;align-items:center;gap:6px;
  padding:9px 16px;border-radius:8px;
  font-weight:600;font-size:13px;
  transition:all .15s ease;flex-shrink:0;
}
.btn-primary{background:var(--accent);color:var(--accent-ink);font-weight:700}
.btn-primary:hover{background:var(--accent-hover);transform:translateY(-1px)}
.btn-ghost{background:transparent;color:var(--ink);border:1px solid var(--line)}
.btn-ghost:hover{border-color:var(--accent);color:var(--accent)}

/* ============ Hero ============ */
.hero{
  padding:52px 20px 48px;
  position:relative;overflow:hidden;
  background:var(--hero-bg);
}
.hero-inner{max-width:1280px;margin:0 auto;position:relative}
.hero-eyebrow{
  display:inline-flex;align-items:center;gap:8px;
  font-size:12px;letter-spacing:.1em;text-transform:uppercase;
  color:var(--accent);font-weight:700;
  padding:5px 11px;border-radius:999px;
  background:var(--accent-soft);
  margin-bottom:14px;
}
.hero-eyebrow .dot{
  width:6px;height:6px;border-radius:50%;background:var(--accent);
  animation:pulseDot 2s infinite;
}
@keyframes pulseDot{0%,100%{box-shadow:0 0 0 0 var(--accent-soft)}50%{box-shadow:0 0 0 6px transparent}}

.hero h1{
  font-family:'Fraunces',Georgia,serif;font-weight:900;
  font-size:clamp(32px,4.5vw,56px);line-height:1.05;letter-spacing:-0.02em;
  margin-bottom:14px;max-width:18ch;color:var(--ink);
}
.hero h1 .gold{
  background:linear-gradient(180deg,var(--gold-glow),var(--gold-deep));
  -webkit-background-clip:text;background-clip:text;color:transparent;
}
.hero p.lede{
  font-size:20px;color:var(--muted);max-width:48ch;margin-bottom:24px;
  font-weight:500;
}
.hero-ctas{display:flex;gap:10px;flex-wrap:wrap}

/* ============ Filter bar (above directory) ============ */
.filter-bar{
  background:var(--surface-2);
  border-bottom:1px solid var(--line);
  border-top:1px solid var(--line);
  padding:10px 20px;
}
.filter-bar-inner{
  max-width:1280px;margin:0 auto;
  display:flex;align-items:center;gap:8px;flex-wrap:wrap;
}
.filter-select{
  padding:8px 10px;border-radius:7px;
  background:var(--bg);border:1px solid var(--line);
  color:var(--ink);font-size:13px;font-weight:500;cursor:pointer;
}
.filter-select:focus{outline:0;border-color:var(--accent)}

/* AI-assisted search box in the filter bar — sits to the right of Clear,
   rounded pill style, sized to content (not a wide flexible slot). */
.ai-search-wrap{
  position:relative;display:flex;align-items:center;
  margin-left:auto;            /* push to the right of the dropdowns/Clear */
  flex:0 1 320px;min-width:200px;
}
.ai-search-wrap .ai-search-icon{
  position:absolute;left:13px;color:var(--gold-deep);pointer-events:none;z-index:1;
}
#ai-filter-input{
  width:100%;padding:9px 14px 9px 36px;border-radius:999px;   /* fully rounded pill */
  background:var(--bg);border:1px solid var(--line);
  color:var(--ink);font-size:13px;font-weight:500;outline:none;
}
#ai-filter-input:focus{border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-soft)}
#ai-filter-input::placeholder{color:var(--muted)}
.ai-filter-btn{
  position:absolute;right:4px;top:50%;transform:translateY(-50%);
  padding:6px 14px;border-radius:999px;border:0;cursor:pointer;
  background:var(--accent);color:var(--accent-ink);font-size:12px;font-weight:700;
  white-space:nowrap;
}
.ai-filter-btn:hover{background:var(--accent-hover)}
@media(max-width:640px){
  .ai-search-wrap{flex:1 1 100%;min-width:0;margin-left:0;order:99}
}
.filter-clear-btn{
  padding:8px 14px;border-radius:7px;font-size:13px;font-weight:600;
  background:transparent;border:1px solid var(--line);color:var(--muted);cursor:pointer;
}
.filter-clear-btn:hover{border-color:var(--accent);color:var(--accent)}
.dir-count{
  font-size:12px;color:var(--muted);
  font-family:'JetBrains Mono',ui-monospace,monospace;
}

/* ============ Section heading ============ */
.section-bar{
  background:var(--bg);
  border-bottom:1px solid var(--line);
  padding:10px 20px;
}
.section-bar-inner{
  max-width:1280px;margin:0 auto;
  display:flex;align-items:center;gap:12px;
}
.section-bar h2{
  font-family:'Fraunces',Georgia,serif;font-size:18px;font-weight:800;
  letter-spacing:-0.01em;color:var(--muted);
}

/* ============ Industry rows ============ */
.industries{
  max-width:1280px;margin:0 auto;padding:8px 20px 60px;
}
.industry{
  border:1px solid var(--line);
  border-radius:14px;margin-bottom:10px;
  background:var(--surface);
  transition:border-color .2s, box-shadow .2s, transform .18s;
  overflow:hidden;
  /* GPU layer prevents gradient flicker on iOS */
  transform:translateZ(0);
}
.industry:hover{
  border-color:var(--accent-soft-2);
  box-shadow:0 6px 20px -10px var(--shadow);
}
.industry.open{
  border-color:var(--accent);
  box-shadow:0 14px 36px -16px var(--shadow);
}

/* ── Row head: plain (emoji icon, no photo) ── */
.industry-head{
  display:flex;align-items:center;gap:12px;
  padding:10px 14px;cursor:pointer;
  user-select:none;min-height:68px;
  position:relative;
}

/* ── Row head: photo banner ── */
.industry-head.has-photo{
  padding:0;
  min-height:96px;
  background-image:var(--ind-img);
  background-size:cover;
  /* Keep the interesting part — people's faces/hands — in the left-center */
  background-position:20% center;
}
/* Left-side darkening overlay so text is always legible */
.industry-head.has-photo::before{
  content:"";
  position:absolute;inset:0;
  border-radius:14px 14px 0 0;  /* match parent card */
  background:linear-gradient(
    100deg,
    rgba(0,0,0,.68) 0%,
    rgba(0,0,0,.50) 38%,
    rgba(0,0,0,.22) 65%,
    transparent 100%
  );
  pointer-events:none;
}
/* Mobile: extend the dark area wider since the screen is narrow */
@media(max-width:560px){
  .industry-head.has-photo{
    min-height:80px;
    background-position:30% center;
  }
  .industry-head.has-photo::before{
    background:linear-gradient(
      100deg,
      rgba(0,0,0,.72) 0%,
      rgba(0,0,0,.60) 55%,
      rgba(0,0,0,.30) 80%,
      transparent 100%
    );
  }
}
/* All children inside a photo row need z-index above the overlay */
.industry-head.has-photo > *{position:relative;z-index:1}

/* Text colours inside photo rows */
.industry-head.has-photo .industry-text{padding:0 0 0 18px}
.industry-head.has-photo .industry-text h3{color:#fff;text-shadow:0 1px 3px rgba(0,0,0,.4)}
.industry-head.has-photo .industry-text p{color:rgba(255,255,255,.80);text-shadow:0 1px 2px rgba(0,0,0,.4)}
/* Pill + toggle over photo */
.industry-head.has-photo .industry-count{
  color:#fff;
  background:rgba(255,255,255,.14);
  border:1px solid rgba(255,255,255,.22);
}
.industry-head.has-photo .industry-toggle{
  color:rgba(255,255,255,.75);
  margin-right:14px;
}
.industry.open .industry-head.has-photo .industry-toggle{
  color:#fff;
}

/* Emoji icon (no photo) */
.industry-icon{
  width:48px;height:48px;border-radius:10px;
  background:var(--surface-2);border:1px solid var(--line);
  display:grid;place-items:center;font-size:22px;
  flex-shrink:0;
}

.industry-text{flex:1;min-width:0}
.industry-text h3{
  font-size:16px;font-weight:700;color:var(--ink);
  letter-spacing:-0.01em;line-height:1.25;
  margin-bottom:2px;
}
.industry-text p{
  font-size:13px;color:var(--muted);
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
  max-width:40ch;
}
.industry-count{
  font-family:'JetBrains Mono',ui-monospace,monospace;
  font-size:12px;color:var(--accent);font-weight:600;
  flex-shrink:0;
  background:var(--accent-soft);
  padding:5px 9px;border-radius:6px;
  white-space:nowrap;
}
.industry-toggle{
  width:30px;height:30px;display:grid;place-items:center;
  color:var(--muted);font-size:13px;flex-shrink:0;
  transition:transform .22s ease;
}
.industry.open .industry-toggle{transform:rotate(180deg);color:var(--accent)}

.industry-body{
  display:none;
  border-top:1px solid var(--line);
  background:var(--bg);
}
.industry.open .industry-body{display:block}

/* ── Sub-trade rows (nested inside industry body) ── */
.sub-industry{
  border-bottom:1px solid var(--line);
}
.sub-industry:last-child{border-bottom:0}
.sub-head{
  display:flex;align-items:center;gap:10px;
  padding:10px 18px 10px 24px;
  cursor:pointer;user-select:none;
  background:var(--bg);
  transition:background .12s;
}
.sub-head:hover{background:var(--surface-2)}
.sub-industry.open .sub-head{background:var(--surface-2)}
.sub-name{
  font-size:14px;font-weight:600;color:var(--ink);flex:1;
}
.sub-count{
  font-family:'JetBrains Mono',ui-monospace,monospace;
  font-size:12px;color:var(--accent);
  background:var(--accent-soft);
  padding:3px 8px;border-radius:5px;font-weight:600;
}
.sub-toggle{
  width:22px;height:22px;display:grid;place-items:center;
  font-size:11px;color:var(--muted);
  transition:transform .18s;
}
.sub-industry.open .sub-toggle{transform:rotate(180deg);color:var(--accent)}

.sub-body{
  background:var(--surface-2);
  border-top:1px solid var(--line);
}

.sub-controls{
  display:flex;flex-wrap:wrap;gap:8px;align-items:center;
  padding:10px 16px;border-bottom:1px solid var(--line);
  background:var(--surface);
}
.sub-controls .control{
  display:flex;align-items:center;gap:5px;
  padding:5px 9px;border-radius:6px;
  background:var(--bg);border:1px solid var(--line);
  font-size:13px;
}
.sub-controls .control select{
  background:transparent;border:0;color:var(--ink);font-weight:500;
  padding-right:12px;cursor:pointer;
}
.sub-controls .control select:focus{outline:0}
.sub-controls .control label{color:var(--muted);font-size:11px;font-weight:600;text-transform:uppercase;letter-spacing:.05em}
.sub-controls .clear{
  margin-left:auto;font-size:12px;color:var(--muted);
  text-decoration:underline;cursor:pointer;background:transparent;border:0;
}
.sub-controls .clear:hover{color:var(--accent)}

/* ── Two-column business table layout ── */
.biz-two-col{
  display:grid;
  grid-template-columns:1fr;        /* mobile: single column */
  gap:0;
}
@media(min-width:960px){
  .biz-two-col{
    grid-template-columns:minmax(0,1fr) minmax(0,1fr);  /* two equal cols that CAN shrink */
    gap:0;
  }
  .right-table{border-left:1px solid var(--line)}
  /* Each table must be allowed to shrink inside its grid cell, otherwise the
     min-widths below add up wider than the half-cell and the last data column
     (Website) overflows / gets clipped — the "second column cut in half" bug.
     We do NOT use table-layout:fixed here — it starves the flexible name
     column and makes Business/Suburb overlap. Auto layout + an ellipsised web
     column keeps everything aligned. */
  .biz-two-col .biz-table{min-width:0}
}

/* ── "cut in half" fix: whenever the two-column layout is active (≥960px),
   hide the Website column. The pair of tables needs ~1730px of container width
   for both Website columns to fit, but .industries caps the page at
   max-width:1280px (measured: .biz-two-col is 1238px even at a 1920px
   viewport), so col-web can NEVER genuinely fit side-by-side — at 1280–1600px
   viewports it was clipped at the container edge. The under-name .mob-web link
   is shown instead, and the business name itself is clickable, so no listing
   loses its site link. Single-column mode (641–959px) keeps col-web: one full-
   width table ellipsises the URL instead of clipping. ── */
@media(min-width:960px){
  .col-web,
  .biz-table th.col-web,
  .biz-table td.col-web{display:none}
  /* Bring back the under-name link so no listing loses its site link here */
  .biz-two-col .mob-web{display:block;margin-top:2px}
}

/* ============ Business table ============ */
.biz-table{
  width:100%;border-collapse:collapse;
  font-size:13px;
}
.biz-table thead tr{
  background:var(--surface-2);
  border-bottom:2px solid var(--line);
}
.biz-table th{
  padding:9px 10px;text-align:left;
  font-size:11px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;
  color:var(--muted);white-space:nowrap;
}
.biz-table th:first-child{padding-left:14px}
.biz-table th:last-child{padding-right:14px}

/* Column widths */
.col-num    {width:36px;text-align:right;padding-right:10px!important;color:var(--muted);font-size:11px;font-family:'JetBrains Mono',monospace}
.col-name   {min-width:150px}
.col-sub    {width:120px;color:var(--muted)}
.col-rating {width:90px;white-space:nowrap}
.col-phone  {width:130px}
.col-web    {width:150px;max-width:180px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.col-qr     {width:50px;text-align:center;padding-right:14px!important}

/* Zebra rows — spec L126: alternate row background so rows are distinguishable.
   Contrast: --ink (#1F2A1F) on --surface (#FFFFFF) = 16.2:1; on --surface-2
   (#F2EEDD) = 14.8:1. Both pass WCAG AAA. */
.biz-row{border-bottom:1px solid var(--line);transition:background .1s}
.biz-row:hover{background:var(--accent-soft)!important}
.biz-row.even{background:var(--surface-2)}

/* Cell content */
.biz-row td{padding:9px 10px;vertical-align:middle}
.biz-row td:first-child{padding-left:14px}
.biz-row td:last-child{padding-right:16px}

.biz-name{font-weight:600;color:var(--ink)}
.dist{font-size:11px;color:var(--muted);font-family:'JetBrains Mono',monospace}
.tz-badge{
  display:inline-block;font-size:9px;font-weight:800;
  padding:1px 5px;border-radius:3px;
  background:var(--accent);color:var(--accent-ink);
  text-transform:uppercase;letter-spacing:.04em;margin-left:5px;vertical-align:middle;
}

.rating-link{
  display:inline-flex;align-items:center;gap:3px;
  font-family:'JetBrains Mono',monospace;font-size:12px;font-weight:700;
  color:var(--ink);text-decoration:none;
}
.rating-link:hover{color:var(--accent)}
.rating-link .star{color:var(--gold)}
.rating-link .reviews{color:var(--muted);font-weight:400;font-size:11px}
.rating-link.no-rating{color:var(--muted);font-weight:400}

/* Phone — plain text link (tel:). Reads as a phone number, taps to call.
   Spec L122-123: phone as plain readable text, not an icon button. */
.phone-txt{
  font-size:13.5px;color:var(--ink);font-weight:500;
  font-family:'JetBrains Mono',monospace;letter-spacing:.01em;
  text-decoration:none;
}
a.phone-txt:hover{color:var(--accent);text-decoration:underline}
.web-link{
  font-size:12px;color:var(--accent);text-decoration:none;
  display:inline-block;max-width:100%;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;vertical-align:bottom;
}
.web-link:hover{text-decoration:underline}
.tz-link{color:var(--gold-deep)}
.none{color:var(--muted);font-size:12px}

/* Business name — clickable link to their website */
.biz-name-link{
  color:var(--ink);text-decoration:none;font-weight:600;
}
.biz-name-link:hover{color:var(--accent);text-decoration:underline}
.biz-name-link.tz-link{color:var(--gold-deep)}
.biz-name-link.tz-link:hover{color:var(--accent)}

/* (copy-num button removed — spec L122: no icon buttons. Row numbers are
   now plain text in col-num.) */

/* QR button — the ONLY button per row (spec L124). Text label "QR" so the
   icon-averse audience (older owners) can read it. */
.qr-btn{
  display:inline-flex;align-items:center;justify-content:center;
  min-width:34px;height:28px;padding:0 8px;
  border:1px solid var(--line);border-radius:7px;
  color:var(--muted);background:transparent;cursor:pointer;
  font-size:11px;font-weight:700;letter-spacing:.04em;
  transition:all .12s;
}
.qr-btn:hover{border-color:var(--accent);color:var(--accent);background:var(--accent-soft)}
/* On mobile: make QR button bigger, easier to tap */
@media(max-width:640px){
  .qr-btn{min-width:44px;height:36px;font-size:12px;padding:0 10px}
}

/* ── Mobile table: strip to essential columns only ── */
@media(max-width:640px){
  /* Hide suburb + website columns on narrow screens (website shows under
     the name as .mob-web instead). QR column STAYS — it's the one button. */
  .hidden-mobile{display:none}
  .col-sub,   .biz-table th.col-sub,   .biz-table td.col-sub   {display:none}
  .col-web,   .biz-table th.col-web,   .biz-table td.col-web   {display:none}

  /* Number col: shrink and don't clip */
  .col-num{width:28px;padding-right:6px!important;font-size:10px}

  /* Name col: allow wrapping, no overflow clip */
  .col-name{min-width:0;word-break:break-word}
  .biz-name{font-size:13px}

  /* Rating: shrink review count on mobile */
  .rating-link .reviews{display:none}

  /* Phone: monospace numbers scale fine, just shrink a touch */
  .col-phone{width:auto}
  .phone-txt{font-size:12px}

  /* QR button stays — it's small and useful */
  .col-qr{width:38px;padding-right:10px!important}

  /* Table font baseline */
  .biz-table{font-size:12px}

  /* Two-col: force single column always on mobile */
  .biz-two-col{grid-template-columns:1fr!important}
  /* Right table is empty on mobile (all rows go into left table), hide its border */
  .right-table{border-left:0!important;border-top:0!important}
}

/* ── Mobile web link (shown under business name on narrow screens) ── */
.mob-web{
  display:none; /* hidden on desktop — col-web handles it there */
  font-size:11px;
  margin-top:2px;
  line-height:1.3;
  word-break:break-all;
  text-decoration:none;
}
.mob-web.tz-link{color:var(--gold-deep);font-weight:600}
.mob-web.mob-demo{color:var(--muted);font-style:italic}
@media(max-width:640px){
  .mob-web{display:block} /* show the inline web line on mobile */
}

.row-empty{
  padding:24px 16px;text-align:center;color:var(--muted);font-size:14px;
}
.row-more{
  display:block;width:100%;text-align:center;
  padding:12px;font-size:13px;font-weight:600;
  color:var(--accent);background:var(--surface-2);
  border-top:1px solid var(--line);cursor:pointer;
}
.row-more:hover{background:var(--accent-soft)}

/* ============ QR modal — scan-optimised ============ */
#qr-modal{
  display:none;position:fixed;inset:0;z-index:500;
  background:rgba(0,0,0,.72);backdrop-filter:blur(6px);
  -webkit-backdrop-filter:blur(6px);
  align-items:center;justify-content:center;
  padding:16px;
}
#qr-modal.open{display:flex}
.qr-modal-inner{
  background:var(--bg);border-radius:20px;
  padding:20px 20px 24px;
  width:100%;max-width:340px;
  box-shadow:0 40px 100px -24px rgba(0,0,0,.6);
  text-align:center;
  animation:qrPop .18s cubic-bezier(.34,1.56,.64,1);
}
@keyframes qrPop{from{transform:scale(.88);opacity:0}to{transform:scale(1);opacity:1}}

.qr-modal-head{
  display:flex;justify-content:space-between;align-items:flex-start;
  margin-bottom:14px;gap:8px;
}
.qr-modal-head strong{
  font-size:15px;font-weight:700;color:var(--ink);
  text-align:left;flex:1;line-height:1.3;
}
#qr-modal-close{
  width:30px;height:30px;display:grid;place-items:center;flex-shrink:0;
  border:1px solid var(--line);border-radius:7px;
  color:var(--muted);background:transparent;cursor:pointer;font-size:15px;
  transition:all .12s;
}
#qr-modal-close:hover{border-color:var(--ink);color:var(--ink)}

/* QR canvas — large enough to scan comfortably from arm's length */
#qr-modal-canvas{
  display:block;margin:0 auto 10px;
  border-radius:12px;
  border:1px solid var(--line);
  image-rendering:pixelated;
  /* Size handled by JS: 260px on desktop, 240px on narrow mobile */
}
.qr-modal-url{
  font-family:'JetBrains Mono',monospace;font-size:12px;font-weight:600;
  color:var(--accent);margin-bottom:4px;word-break:break-all;
  text-decoration:none;display:block;
}
.qr-modal-url:hover{text-decoration:underline}
.qr-modal-hint{
  font-size:12px;color:var(--muted);margin-bottom:14px;
}

/* Action row */
.qr-actions{
  display:grid;grid-template-columns:1fr 1fr;gap:8px;
}
.qr-actions.has-share{grid-template-columns:1fr 1fr 1fr}
/* When print button is present (always, in current build), use wider grid */
.qr-actions.has-print{grid-template-columns:1fr 1fr 1fr}
.qr-actions.has-share.has-print{grid-template-columns:1fr 1fr 1fr 1fr}
.dl-btn,.share-btn,.copy-btn,.print-btn{
  display:inline-flex;align-items:center;justify-content:center;gap:5px;
  padding:10px 10px;border-radius:8px;font-size:13px;font-weight:600;
  border:1px solid var(--line);color:var(--ink);
  background:var(--bg);text-decoration:none;
  cursor:pointer;transition:all .14s;
}
.dl-btn:hover,.share-btn:hover,.copy-btn:hover,.print-btn:hover{
  border-color:var(--accent);color:var(--accent);background:var(--accent-soft);
}
.copy-btn.copied{border-color:var(--ok);color:var(--ok);background:var(--ok-soft)}
/* Share button: primary accent on mobile where it's most useful */
.share-btn{
  background:var(--accent);color:var(--accent-ink);border-color:var(--accent);
}
.share-btn:hover{background:var(--accent-hover);border-color:var(--accent-hover);color:var(--accent-ink)}

/* ============ Pricing strip / footer / CTA ============ */
.cta-strip{
  margin:48px 20px 0;max-width:1240px;
  margin-left:auto;margin-right:auto;
  background:var(--cta-bg);color:var(--cta-ink);
  border-radius:16px;
  padding:36px 28px;
  display:grid;grid-template-columns:1.4fr 1fr;gap:32px;align-items:center;
  position:relative;overflow:hidden;
  border:1px solid var(--cta-border);
}
.cta-strip::before{
  content:"";position:absolute;inset:0;
  background:radial-gradient(500px 250px at 100% 0%,var(--cta-glow),transparent 60%);
  pointer-events:none;
}
.cta-strip h2{
  font-family:'Fraunces',Georgia,serif;font-size:30px;font-weight:800;
  letter-spacing:-0.02em;margin-bottom:12px;line-height:1.1;
}
.cta-strip h2 em{color:var(--gold-glow);font-style:italic}
.cta-strip p{color:var(--cta-ink-muted);margin-bottom:18px;font-size:15px;max-width:50ch}
.cta-strip ul{list-style:none;display:grid;gap:6px}
.cta-strip ul li{font-size:13.5px;color:var(--cta-ink-muted);padding-left:16px;position:relative}
.cta-strip ul li::before{content:"→";position:absolute;left:0;color:var(--gold)}
.cta-card{
  background:var(--bg);color:var(--ink);
  border-radius:12px;padding:24px;
  border:2px solid var(--gold);
}
.cta-card .pill{
  display:inline-block;font-size:10px;font-weight:800;
  text-transform:uppercase;letter-spacing:.08em;
  background:var(--gold);color:#1a1410;
  padding:3px 8px;border-radius:4px;margin-bottom:10px;
}
.cta-card .price{
  font-family:'Fraunces',Georgia,serif;font-size:48px;
  font-weight:900;line-height:1;letter-spacing:-0.03em;
}
.cta-card .price small{font-size:15px;font-weight:500;color:var(--muted)}
.cta-card .renew{font-size:13px;color:var(--muted);margin-top:6px;margin-bottom:14px}
.cta-card .renew b{color:var(--ink);font-weight:700}
.cta-card .btn{width:100%;justify-content:center;padding:11px;font-size:14px}
@media(max-width:780px){.cta-strip{grid-template-columns:1fr;padding:28px 22px}}

/* ============ Footer ============ */
footer.site-foot{
  margin-top:60px;padding:40px 20px 24px;
  background:var(--foot-bg);color:var(--foot-ink);
  border-top:1px solid var(--line);
}
.foot-inner{max-width:1280px;margin:0 auto;display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:32px}
@media(max-width:780px){.foot-inner{grid-template-columns:1fr 1fr}}
.foot-inner h4{font-size:12px;letter-spacing:.08em;text-transform:uppercase;color:var(--gold);margin-bottom:10px;font-weight:700}
.foot-inner ul{list-style:none}
.foot-inner ul li{padding:3px 0;font-size:13px;color:var(--foot-ink-muted)}
.foot-inner a:hover{color:var(--gold-glow)}
.foot-brand p{color:var(--foot-ink-muted);font-size:13px;margin-top:10px;max-width:38ch;line-height:1.5}
/* Ensure brand wordmark is always visible on dark footer */
.foot-brand .brand{color:var(--foot-ink)!important}
.foot-brand .brand .gold{
  background:linear-gradient(180deg,var(--gold-glow),var(--gold));
  -webkit-background-clip:text;background-clip:text;color:transparent!important;
}
.foot-bottom{
  max-width:1280px;margin:24px auto 0;padding-top:18px;
  border-top:1px solid var(--foot-border);
  display:flex;justify-content:space-between;flex-wrap:wrap;gap:12px;
  font-size:12px;color:var(--foot-ink-muted);
}
.foot-bottom .au-mark{display:inline-flex;align-items:center;gap:6px;font-weight:600}
.foot-bottom .au-mark::before{
  content:"";width:18px;height:12px;border-radius:2px;
  background:linear-gradient(180deg,var(--accent) 0%,var(--accent) 50%,var(--ink) 50%,var(--ink) 100%);
  display:inline-block;
  flex-shrink:0;opacity:.85;
}

/* Tagline + variant pickers */
.variant-bar{
  position:fixed;bottom:14px;right:14px;z-index:200;
  background:var(--ink);color:var(--bg);
  padding:8px;border-radius:10px;
  display:flex;gap:6px;align-items:center;
  font-size:12px;font-weight:600;
  box-shadow:0 12px 30px -8px var(--shadow);
}
.variant-bar .lbl{padding:0 6px;color:rgba(255,255,255,.7)}
.variant-bar a{
  padding:5px 10px;border-radius:6px;
  background:rgba(255,255,255,.1);color:#fff;
  text-decoration:none;
}
.variant-bar a.active{background:var(--gold);color:var(--ink)}
.variant-bar a:hover{background:rgba(255,255,255,.2)}
@media(max-width:560px){.variant-bar{bottom:8px;right:8px;font-size:11px;max-width:calc(100vw - 16px);flex-wrap:wrap;justify-content:flex-end}}

/* ── Phone topbar: stop horizontal overflow ──
   At 375px the brand + search + pill + WhatsApp button overflowed the
   viewport (~393px scrollWidth), pushing the whole page sideways. Shrink
   gaps, let the search box actually flex down, and collapse the WhatsApp
   button to icon-only. */
@media(max-width:560px){
  .topbar-inner{gap:8px;padding:10px 12px}
  .searchbox{min-width:0}
  .topbar .btn-primary{font-size:0;gap:0;padding:10px;border-radius:10px;flex-shrink:0}
  .topbar .btn-primary svg{width:16px;height:16px}
}

/* small visual bits */
.skel{background:linear-gradient(90deg,var(--surface) 0%,var(--surface-2) 50%,var(--surface) 100%);background-size:200% 100%;animation:skel 1.4s linear infinite}
@keyframes skel{0%{background-position:200% 0}100%{background-position:-200% 0}}

/* ============ Print: QR modal only (spec L103: print-friendly) ============ */
/* When printing with the QR modal open, show ONLY the QR + business name —
   hide everything else on the page. The result is a clean printout suitable
   for a business card, ute signwriting reference, or shop counter display. */
@media print {
  /* Hide the entire page body content */
  body > *:not(#qr-modal) { display: none !important; }
  /* Show the QR modal (if open) as static content, not an overlay */
  #qr-modal {
    display: flex !important;
    position: static !important;
    background: #fff !important;
    padding: 0 !important;
    backdrop-filter: none !important;
  }
  #qr-modal:not(.open) { display: none !important; }
  .qr-modal-inner {
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    max-width: 400px !important;
    margin: 0 auto !important;
  }
  /* Enlarge QR for print clarity */
  #qr-canvas-wrap canvas {
    width: 300px !important;
    height: 300px !important;
    border: 2px solid #1F2A1F !important;
  }
  .qr-modal-head strong {
    font-size: 20px !important;
    margin-bottom: 12px !important;
  }
  .qr-modal-url { font-size: 13px !important; }
  .qr-modal-hint { font-size: 13px !important; color: #333 !important; }
  /* Hide action buttons in print — you don't click printouts */
  .qr-actions { display: none !important; }
  #qr-modal-close { display: none !important; }
}
