/* LowCommission.ca - Sell / Buy / 1% unified look (v3.17.0, 2026-11-14)
   Designed by ChatGPT (chat "Unify Real Estate CSS", docs/chatgpt-unify-sell-buy-fee-2026-11-14.txt).
   Loaded ONLY on /sell/, the Buy page and /1-percent-listing-fee-gta/ (inc/design.php) - main.sp exists on every inner page.
   LC edits: site colours kept (ChatGPT made buttons/labels/accents green), heading colour not forced (dark bands stay white),
   hero H1 uses the smaller 1%-page size, Buy keeps UPPERCASE headings (Amir's Buy brief). */
/* =========================================================
   LOWCOMMISSION.CA — ARCTIC EDITORIAL UNIFIED DESIGN SYSTEM
   Applies to SELL, BUY and 1% FEE pages only.
   Prefix: u-
   ========================================================= */

main.sp {
  --u-ink: #183B4E;
  --u-dark: #10293A;
  --u-ice: #9CC7DA;
  --u-tint: #EAF2F5;
  --u-bg: #F7FAFB;
  --u-green: #1F7A6A;
  --u-muted: #5E7A88;
  --u-line: #D9E6EC;

  --u-heading: "Manrope", sans-serif;
  --u-body: "DM Sans", sans-serif;

  --u-h1: clamp(30px, 2.4vw + 14px, 48px); /* LC: the smaller size the client chose for the 1% page */
  --u-h2: clamp(27px, 2.1vw + 12px, 40px);

  font-family: var(--u-body);
  color: var(--u-ink);
  background-color: var(--u-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Typography */

main.sp h1,
main.sp h2,
main.sp h3,
main.sp h4,
main.sp .sp-hero h1,
main.sp .sp-bh-hero h1,
main.sp .fx-section h2 {
  font-family: var(--u-heading);
  font-weight: 800;
  letter-spacing: -0.045em;
  text-transform: none;
}

main.sp p,
main.sp li,
main.sp a,
main.sp button,
main.sp input,
main.sp textarea {
  font-family: var(--u-body);
}

/* Hero H1 — shared sentence case */

main.sp .sp-hero h1#sp-h1,
main.sp .sp-bh-hero h1#sp-h1,
main.sp h1#sp-h1 {
  font-size: var(--u-h1);
  line-height: 1.07;
  font-weight: 800;
  letter-spacing: -0.055em;
  text-transform: none;
  color: var(--u-ink);
  max-width: 850px;
  text-wrap: balance;
}

main.sp h1#sp-h1 span,
main.sp .sp-bh-hero h1 .sp-bh-line,
main.sp .sp-hero h1 span {
  text-transform: none;
}

/* Section headings */

main.sp .sp-sec h2,
main.sp .fx-section h2,
main.sp h2 {
  font-size: var(--u-h2);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.045em;
  text-transform: none;
  text-wrap: balance;
}

main.sp h2 span {
  position: relative;
  display: inline;
  text-transform: none;
  isolation: isolate;
  background-image: linear-gradient(
    transparent 65%,
    rgba(156, 199, 218, 0.42) 65%,
    rgba(156, 199, 218, 0.42) 91%,
    transparent 91%
  );
  background-repeat: no-repeat;
  background-size: 0% 100%;
  background-position: left bottom;
  transition: background-size 1s cubic-bezier(.2,.75,.25,1);
}

main.sp h2 span.is-on {
  background-size: 100% 100%;
}

/* Eyebrow labels */

main.sp .sp-eyebrow,
main.sp .sp-num,
main.sp .fx-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--u-body);
  font-size: 11px;
  line-height: 1.3;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--sp-red, var(--u-ink));
}

main.sp .sp-num,
main.sp .fx-eyebrow {
  padding: 7px 11px;
  border: 1px solid var(--u-line);
  border-radius: 4px;
  background: var(--u-tint);
}

/* Hero atmosphere */

main.sp .sp-hero,
main.sp .sp-bh-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

main.sp .sp-hero::before,
main.sp .sp-bh-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 420px;
  height: 420px;
  top: -180px;
  right: -110px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(
    circle,
    rgba(156,199,218,.22) 0%,
    rgba(156,199,218,.08) 42%,
    transparent 72%
  );
  animation: u-hero-drift 14s ease-in-out infinite alternate;
}

main.sp.sp-auto.fx .sp-hero::before {
  /* Preserve the existing fee-page atmosphere */
  animation-duration: 17s;
}

@keyframes u-hero-drift {
  from {
    transform: translate3d(0,0,0) scale(1);
  }
  to {
    transform: translate3d(-30px,25px,0) scale(1.12);
  }
}

/* Section divider system */

main.sp .sp-sec,
main.sp .fx-section {
  position: relative;
}

main.sp .sp-sec::before,
main.sp .fx-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--u-line) 12%,
    var(--u-ice) 50%,
    var(--u-line) 88%,
    transparent 100%
  );
  pointer-events: none;
}

/* Buttons */

main.sp .sp-ctas a.sp-btn,
main.sp a.sp-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 9px;
  min-height: 48px;
  padding: 13px 23px;
  border-radius: 5px;
  font-family: var(--u-body);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -.01em;
  line-height: 1.2;
  text-decoration: none;
  text-transform: none;
  transition:
    background-color .25s ease,
    color .25s ease,
    border-color .25s ease,
    transform .25s ease,
    box-shadow .25s ease;
}

main.sp .sp-ctas a.sp-btn-red,
main.sp a.sp-btn-red {
  color: var(--sp-on, #fff);
  background: var(--sp-fill, var(--u-ink));
  border: 1px solid var(--sp-fill, var(--u-ink));
  box-shadow: 0 5px 15px rgba(24,59,78,.16);
}

main.sp .sp-ctas a.sp-btn-red:hover,
main.sp a.sp-btn-red:hover {
  background: var(--u-dark);
  border-color: var(--u-dark);
  transform: translateY(-2px);
  box-shadow: 0 9px 22px rgba(16,41,58,.15);
}

main.sp .sp-ctas a.sp-btn-line,
main.sp a.sp-btn-line {
  color: var(--u-ink);
  background: transparent;
  border: 1px solid var(--u-line);
}

main.sp .sp-ctas a.sp-btn-line:hover,
main.sp a.sp-btn-line:hover {
  color: var(--u-green);
  border-color: var(--u-ice);
  background: var(--u-tint);
  transform: translateY(-2px);
}

/* Rights / feature chips */

main.sp .sp-rights li {
  font-family: var(--u-body);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--u-ink);
  background: var(--u-tint);
  border: 1px solid var(--u-line);
  border-radius: 4px;
  padding: 8px 12px;
}

/* Unified cards */

main.sp .sp-card,
main.sp .sp-why-card,
main.sp .fx-service {
  border-color: var(--u-line);
  border-radius: 7px;
  transition:
    border-color .25s ease,
    box-shadow .25s ease,
    transform .25s ease;
}

main.sp .sp-card:hover,
main.sp .sp-why-card:hover,
main.sp .fx-service:hover {
  border-color: var(--u-ice);
  box-shadow: 0 12px 30px rgba(24,59,78,.07);
  transform: translateY(-3px);
}

/* Focus accessibility */

main.sp a:focus-visible,
main.sp button:focus-visible {
  outline: 3px solid var(--u-ice);
  outline-offset: 4px;
}

/* Mobile adjustments */

@media (max-width: 600px) {
  main.sp {
    --u-h1: clamp(28px, 7.5vw, 34px);
    --u-h2: clamp(26px, 6vw, 32px);
  }

  main.sp .sp-ctas a.sp-btn,
  main.sp a.sp-btn {
    min-height: 46px;
    padding: 12px 17px;
  }

  main.sp .sp-hero::before,
  main.sp .sp-bh-hero::before {
    width: 280px;
    height: 280px;
    top: -130px;
    right: -130px;
  }
}

/* Reduced motion */

@media (prefers-reduced-motion: reduce) {
  main.sp *,
  main.sp *::before,
  main.sp *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

  main.sp h2 span {
    background-size: 100% 100%;
  }
}

/* ---------- LC integration ---------- */
main.sp .sp-bh-hero .sp-bh-heading{font-size:var(--u-h1)!important;letter-spacing:-0.045em}
main.sp .sp-dark h2,main.sp .sp-final h2,main.sp .fx-calc-section h2,main.sp .fx-final h2{color:#fff}
main.sp .sp-dark .sp-num,main.sp .sp-final .sp-num,main.sp .fx-calc-section .fx-eyebrow,main.sp .fx-final .fx-eyebrow{background:rgba(156,199,218,.12);border-color:rgba(156,199,218,.3);color:var(--sp-hl-dark,#9CC7DA)}
main.sp .fx-eyebrow::before,main.sp .sp-num::before{display:none}
main.sp.fx h2 span{background-image:linear-gradient(transparent 65%,rgba(156,199,218,.42) 65%,rgba(156,199,218,.42) 91%,transparent 91%);transition:background-size 1s cubic-bezier(.2,.75,.25,1)}
main.sp.fx .sp-fxp-head h2 span{background-size:0% 100%}
main.sp.fx .sp-fxp-head h2 span.is-on,html:not(.sp-fxp-js) main.sp.fx h2 span{background-size:100% 100%}
main.sp.fx .sp-hero #sp-h1{font-size:var(--u-h1)!important}
/* Buy hero block (sp-bh.css) forces Inter Tight: use the shared fonts */
main.sp .sp-bh-hero .sp-bh-heading,main.sp .sp-bh-hero .sp-bh-heading *{font-family:var(--u-heading)!important}
main.sp .sp-bh-hero .sp-bh-kicker,main.sp .sp-bh-hero .sp-bh-tag,main.sp .sp-bh-hero .sp-bh-trust,main.sp .sp-bh-hero p{font-family:var(--u-body)!important}
main.sp .sp-bv-visual .sp-bv-h2,main.sp .sp-bv-visual .sp-bv-price,main.sp .sp-bv-visual strong{font-family:var(--u-heading)!important}
main.sp .sp-bv-visual,main.sp .sp-bv-visual span{font-family:var(--u-body)}

/* v3.21.0: client asked for one look everywhere - Buy headings back to sentence case (overrides the earlier Amir Buy-brief caps) */
main.sp.sp-buy h1,main.sp.sp-buy h2,main.sp.sp-buy h3,main.sp.sp-buy #sp-h1,main.sp.sp-buy #sp-h1 *,main.sp.sp-buy .sp-bh-heading,main.sp.sp-buy .sp-bh-line{text-transform:none!important}

/* v3.21.1: older sell.css rules forced Inter with !important on some inner pages - shared pair wins everywhere */
body.lc-red main.sp .sec h2,body.lc-red main.sp .sec h3,body.lc-red main.sp .prose h2,body.lc-red main.sp .prose h3,body.lc-red main.sp .page-hero h1,main.sp .sec-head h2{font-family:var(--u-heading)!important}
body.lc-red main.sp .eyebrow,body.lc-red main.sp .btn,body.lc-red main.sp .lede,body.lc-red main.sp .sec p,body.lc-red main.sp .prose,body.lc-red main.sp .prose p,body.lc-red main.sp .prose li,main.sp .faq summary,main.sp .faq .ans,main.sp .form input,main.sp .form select,main.sp .form textarea,main.sp .form label{font-family:var(--u-body)!important}

/* v3.21.2 catch-all: small components (numbers, tags, bold text, buttons) inherit the shared pair instead of older Inter rules */
main.sp :is(b,strong,span,small,em,i,time,label,button,div,dd,dt,li,td,th,a,figcaption,summary){font-family:inherit!important}
main.sp :is(h1,h2,h3,h4) :is(b,strong,span,small,em,a){font-family:inherit!important}
main.sp :is(.sp-mini-n,.fx-step-dot,.fx-number,.sp-rep-n,.fx-art-price,.fx-savings-panel strong,.sp-calc-savings,.lp2-body h3){font-family:var(--u-heading)!important}
/* v3.21.3: fx.css sets Inter on every element of the 1% page - make the whole tree inherit DM Sans from main */
main.sp{font-family:var(--u-body)!important}
main.sp :is(section,article,header,footer,nav,aside,form,fieldset,ul,ol,table,thead,tbody,tr,p,blockquote,figure){font-family:inherit!important}
main.sp :is(h1,h2,h3,h4){font-family:var(--u-heading)!important}
main.sp.fx .sp-hero #sp-h1 > span:not(.fxh-mask),main.sp.fx .sp-hero #sp-h1 > span:not(.fxh-mask) *{font-family:var(--u-body)!important}
