/* Guide pages (uk/, canada/, virtual-staging-disclosure/): the home page's Minimal Lines look — white, black,
   grey hairlines, Inter with JetBrains Mono labels — in one cached file instead of inline, because every guide
   shares it. The before/after slider and FAQ markup are the home page's, driven by the same slider.js. */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
:root {
  --bg:#ffffff; --ink:#000000; --grey:#c2c2c2; --soft:#f5f5f5; --sub:#6f6f6f;
  --sans:'Inter',system-ui,-apple-system,'Segoe UI',sans-serif; --mono:'JetBrains Mono',ui-monospace,monospace;
  --ease:cubic-bezier(.16,1,.3,1); --pad:clamp(1rem,3vw,2.5rem); --text:44rem;
}
html { scroll-padding-top:4.5rem; }
@media (prefers-reduced-motion: no-preference){ html { scroll-behavior:smooth; } }
body { font-family:var(--sans); background:var(--bg); color:var(--ink); line-height:1.6; font-size:.98rem; overflow-x:hidden; -webkit-font-smoothing:antialiased; }
img,svg { display:block; max-width:100%; height:auto; }
a { color:inherit; text-underline-offset:3px; }
::selection { background:var(--ink); color:var(--bg); }
.mono { font-family:var(--mono); font-size:.7rem; letter-spacing:.02em; color:var(--sub); }
.fine { font-family:var(--mono); font-size:.68rem; color:var(--sub); line-height:1.6; }
.fine a { color:var(--ink); }
.gl { background:var(--grey); height:1px; width:100%; }

/* link underline, as on the home page */
.lu { position:relative; text-decoration:none; font-weight:500; }
.lu::after { content:''; position:absolute; bottom:-2px; left:0; width:100%; height:1px; background:currentColor; transform:scaleX(0); transform-origin:left; transition:transform .4s cubic-bezier(.65,0,.35,1); }
.lu:hover::after { transform:scaleX(1); }

.skip { position:absolute; left:var(--pad); top:-4rem; z-index:100; padding:.6rem 1rem; background:var(--ink); color:#fff; font-size:.82rem; text-decoration:none; }
.skip:focus { top:1rem; }

/* header */
.hd { position:fixed; inset:0 0 auto; z-index:60; background:rgba(255,255,255,.9); backdrop-filter:blur(10px); }
.hd-in { display:flex; align-items:center; justify-content:space-between; gap:1rem; padding:1rem var(--pad); }
.hd::after { content:''; position:absolute; left:var(--pad); right:var(--pad); bottom:0; height:1px; background:var(--grey); }
.brand { font-weight:700; font-size:1.05rem; letter-spacing:-.02em; text-decoration:none; }
.hd-nav { display:flex; gap:1.6rem; }
.hd-nav a { font-size:.82rem; font-weight:500; text-decoration:none; color:var(--sub); transition:color .25s; }
.hd-nav a:hover, .hd-nav a[aria-current] { color:var(--ink); }
@media (max-width:940px){ .hd-nav { display:none; } }

.btn { display:inline-flex; align-items:center; gap:.5rem; padding:.7rem 1.4rem; background:var(--ink); color:#fff; font-size:.82rem; font-weight:500; text-decoration:none; border:1px solid var(--ink); cursor:pointer; transition:background .3s, color .3s; }
.btn:hover { background:transparent; color:var(--ink); }
.btn.ghost { background:transparent; color:var(--ink); border-color:var(--grey); }
.btn.ghost:hover { border-color:var(--ink); }

/* page top */
main { padding-top:4.6rem; }
.top { padding:2.4rem var(--pad) 0; }
.crumbs { display:flex; flex-wrap:wrap; gap:.4rem; list-style:none; margin-bottom:2rem; }
.crumbs li { font-family:var(--mono); font-size:.68rem; color:var(--sub); }
.crumbs li + li::before { content:'/'; margin-right:.4rem; color:var(--grey); }
.crumbs a { text-decoration:none; color:var(--sub); }
.crumbs a:hover { color:var(--ink); }
.h1 { font-size:clamp(2.2rem,5vw,4.2rem); font-weight:700; letter-spacing:-.04em; line-height:1.02; max-width:58rem; }
.top .lead { margin-top:1.4rem; max-width:40rem; font-size:1.08rem; color:var(--sub); }
.top-cta { display:flex; flex-wrap:wrap; gap:1rem 1.4rem; align-items:center; margin-top:2rem; padding-bottom:2.2rem; }
.updated { padding:1rem 0 0; }

/* before/after slider (slider.js) — the box keeps the photos' 1400:930 ratio so the "Example" label stays */
.ba { --pos:50%; position:relative; width:100%; aspect-ratio:1400/930; overflow:hidden; touch-action:pan-y; cursor:ew-resize; user-select:none; -webkit-user-select:none; background:var(--soft); }
.ba img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; -webkit-user-drag:none; }
.ba .ba-before { clip-path:inset(0 calc(100% - var(--pos)) 0 0); }
.ba-handle { position:absolute; top:0; bottom:0; left:var(--pos); width:1px; margin-left:-.5px; background:var(--ink); cursor:ew-resize; }
.ba-handle span { position:absolute; top:50%; left:50%; transform:translate(-50%,-50%); width:40px; height:40px; border-radius:50%; background:var(--bg); border:1px solid var(--ink); display:flex; }
.ba-handle span::before { content:'◂ ▸'; color:var(--ink); font-size:.72rem; margin:auto; letter-spacing:.06em; }
.ba-handle:focus { outline:none; }
.ba-handle:focus-visible span { outline:2px solid var(--ink); outline-offset:3px; }
.ba-tag { position:absolute; bottom:12px; font-family:var(--mono); font-size:.62rem; letter-spacing:.04em; padding:.3rem .6rem; background:var(--bg); color:var(--ink); border:1px solid var(--grey); pointer-events:none; }
.ba-tag-b { left:12px; }
.ba-tag-a { right:12px; background:var(--ink); color:#fff; border-color:var(--ink); }
.pair { padding:0 var(--pad); }
.pair .ba, .pair figcaption { max-width:64rem; }
.pair figcaption { padding:.9rem 0 0; }
.pairs { display:grid; grid-template-columns:1fr; gap:2rem 2.8rem; }
@media (min-width:800px){ .pairs { grid-template-columns:1fr 1fr; } }

/* sections */
.sec { padding:0 var(--pad); }
.sec-inner { padding:3.6rem 0 4.2rem; }
.sec-label { display:flex; justify-content:space-between; align-items:baseline; gap:1rem; margin-bottom:2rem; }
.h2 { font-size:clamp(1.8rem,3.4vw,2.8rem); font-weight:700; letter-spacing:-.035em; line-height:1.08; max-width:48rem; }
.prose { max-width:var(--text); }
.prose > * + * { margin-top:1rem; }
.prose h3 { font-size:1.2rem; font-weight:600; letter-spacing:-.01em; margin-top:2rem; }
.prose p, .prose li { color:#2b2b2b; }
.prose ul, .prose ol { padding-left:1.2rem; }
.prose li + li { margin-top:.45rem; }
.prose b, .prose strong { font-weight:600; color:var(--ink); }
.prose blockquote { border-left:2px solid var(--ink); padding:.2rem 0 .2rem 1.1rem; color:var(--ink); }
.prose .src { font-family:var(--mono); font-size:.7rem; color:var(--sub); }
.prose .src a { color:var(--ink); }
.h2 + .prose { margin-top:1.6rem; }

/* three cells with hairlines between them, as the home page's objections and comparison rows */
.cells { display:grid; grid-template-columns:1fr; margin-top:2.4rem; }
@media (min-width:900px){ .cells { grid-template-columns:repeat(3,1fr); } }
.cells > div { padding:1.5rem 0; position:relative; }
@media (min-width:900px){ .cells > div { padding:0 2.2rem; } .cells > div:first-child { padding-left:0; } .cells > div:last-child { padding-right:0; } .cells > div + div { border-left:1px solid var(--grey); } }
@media (max-width:899px){ .cells > div + div { border-top:1px solid var(--grey); } }
.cells .mono { display:block; margin-bottom:.7rem; }
.cells b { display:block; font-size:1.15rem; font-weight:600; letter-spacing:-.01em; margin-bottom:.45rem; }
.cells p { color:var(--sub); font-size:.92rem; line-height:1.65; }

/* tables: a comparison or a summary by market */
.tbl-wrap { overflow-x:auto; margin-top:2rem; -webkit-overflow-scrolling:touch; }
.tbl { width:100%; min-width:40rem; border-collapse:collapse; font-size:.92rem; }
.tbl th, .tbl td { text-align:left; vertical-align:top; padding:1rem 1.2rem 1rem 0; border-top:1px solid var(--grey); }
.tbl thead th { font-family:var(--mono); font-size:.68rem; font-weight:400; color:var(--sub); letter-spacing:.02em; border-top:none; padding-top:0; }
.tbl tbody th { font-weight:600; width:24%; }
.tbl td { color:#2b2b2b; }
.tbl tr.us th, .tbl tr.us td { color:var(--ink); background:var(--soft); }
.tbl tr.us th { padding-left:.8rem; }
.tbl .amt { font-weight:700; letter-spacing:-.02em; white-space:nowrap; }

/* prices (market.js swaps [data-price] and [data-mtext]) */
.prices { display:grid; grid-template-columns:1fr; margin-top:2rem; }
@media (min-width:800px){ .prices { grid-template-columns:repeat(4,1fr); } }
.prices > div { padding:1.4rem 0; border-top:1px solid var(--grey); }
@media (min-width:800px){ .prices > div { padding:1.2rem 1.6rem 1.2rem 0; } }
.prices .amt { display:block; font-size:clamp(1.9rem,3vw,2.6rem); font-weight:700; letter-spacing:-.04em; line-height:1.1; }
.prices .mono { display:block; margin-top:.4rem; }
.note { margin-top:1.4rem; font-weight:500; }
.note span { color:var(--sub); font-weight:400; }

/* FAQ, same markup as the home page (slider.js opens and closes it) */
.faq-q { width:100%; display:flex; justify-content:space-between; align-items:center; gap:2rem; text-align:left; padding:1.4rem 0; background:none; border:none; cursor:pointer; font-family:var(--sans); font-size:1.02rem; font-weight:600; color:var(--ink); letter-spacing:-.01em; transition:padding-left .35s var(--ease); }
.faq-q:hover { padding-left:.6rem; }
.faq-q::after { content:'→'; font-weight:400; color:var(--sub); transition:transform .4s var(--ease); flex-shrink:0; }
.faq-item.open .faq-q::after { transform:rotate(90deg); }
.faq-a { overflow:hidden; transition:max-height .5s var(--ease); }
.js .faq-a { max-height:0; }
.faq-a p { padding:0 0 1.6rem; max-width:var(--text); color:var(--sub); line-height:1.7; }
.faq-a a { color:var(--ink); }

/* next steps: links to the other guides */
.next { display:grid; grid-template-columns:1fr; margin-top:2rem; }
@media (min-width:800px){ .next { grid-template-columns:repeat(3,1fr); column-gap:2.4rem; } }
.next a { display:block; padding:1.2rem 0; border-top:1px solid var(--grey); text-decoration:none; }
.next a b { display:block; font-weight:600; margin-bottom:.3rem; }
.next a span { color:var(--sub); font-size:.9rem; }
.next a:hover b { text-decoration:underline; }

/* final call */
.fin { padding:4.5rem 0 5rem; }
.fin h2 { font-size:clamp(2.2rem,5vw,4.2rem); font-weight:700; letter-spacing:-.045em; line-height:1.02; max-width:52rem; }
.fin-cta { margin-top:2.2rem; display:flex; flex-wrap:wrap; gap:1.2rem; align-items:center; }

/* footer */
.ft { padding:2rem var(--pad) 2.4rem; position:relative; }
.ft::before { content:''; position:absolute; top:0; left:var(--pad); right:var(--pad); height:1px; background:var(--grey); }
.ft-in { display:flex; flex-wrap:wrap; gap:1.2rem 2rem; justify-content:space-between; align-items:flex-start; }
.ft nav { display:flex; flex-wrap:wrap; gap:.7rem 1.5rem; }
.ft a { font-size:.8rem; color:var(--sub); text-decoration:none; }
.ft a:hover, .ft a[aria-current] { color:var(--ink); }

@media (max-width:700px){
  .hd-in { padding:.85rem 1rem; }
  .hd .btn { padding:.6rem .9rem; font-size:.78rem; }
  .top { padding-top:1.6rem; }
}
@media (prefers-reduced-motion: reduce){
  *, *::before, *::after { animation-duration:.01ms !important; transition-duration:.01ms !important; }
}
