/* RentGuard Canada R17 premium responsive presentation layer.
   This file intentionally loads after legacy styles.css and is the single
   source of truth for the public web presentation. Business logic is unchanged. */
:root{
  --rg-navy:#0e2a55;
  --rg-navy-2:#173b6d;
  --rg-blue:#0b6ef3;
  --rg-blue-2:#0758d1;
  --rg-red:#e12636;
  --rg-text:#172843;
  --rg-muted:#60718a;
  --rg-bg:#f6f9fd;
  --rg-surface:#ffffff;
  --rg-soft:#f1f7ff;
  --rg-line:#dbe6f3;
  --rg-line-strong:#c6d7eb;
  --rg-success:#0d8c64;
  --rg-warning:#a85b00;
  --rg-radius:22px;
  --rg-shadow:0 16px 44px rgba(18,54,98,.08);
  --rg-shadow-lg:0 28px 74px rgba(18,54,98,.12);
}

html{
  width:100%;
  min-width:0;
  max-width:100%;
  overflow-x:clip;
  background:var(--rg-bg);
  scroll-padding-top:88px;
  -webkit-text-size-adjust:100%;
}
body{
  width:100%;
  min-width:0;
  max-width:none;
  min-height:100svh;
  min-height:100dvh;
  overflow-x:clip;
  margin:0;
  background:
    radial-gradient(circle at 92% 4%,rgba(11,110,243,.075),transparent 25rem),
    linear-gradient(180deg,#fbfdff 0,#f5f8fc 46%,#f8faff 100%);
  color:var(--rg-text);
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  line-height:1.55;
}
body::before{display:none!important}
img{max-width:100%;height:auto}
button,input,select,textarea{font-family:inherit}
input,select,textarea{font-size:16px!important}
button,a,summary,.primary,.secondary,.ghost,.nav-link,.nav-menu-toggle,.persona-card,.toolkit-feature-button{min-height:48px}
:focus-visible{outline:3px solid rgba(11,110,243,.26);outline-offset:2px}

/* Header and navigation */
.site-header{
  position:relative;
  width:100%;
  min-height:0!important;
  padding:0 0 48px!important;
  overflow:visible!important;
  color:var(--rg-text)!important;
  background:
    radial-gradient(circle at 76% 28%,rgba(11,110,243,.095),transparent 22rem),
    linear-gradient(180deg,#ffffff 0%,#f8fbff 76%,#eef6ff 100%)!important;
  border-bottom:1px solid #e0ebf7;
  border-radius:0!important;
}
.site-header::before,
.site-header::after{
  content:"";
  position:absolute;
  pointer-events:none;
  z-index:0;
}
.site-header::before{
  inset:auto 0 0 0;
  height:170px;
  background:linear-gradient(180deg,rgba(238,246,255,0),rgba(229,241,255,.76));
}
.site-header::after{
  width:360px!important;
  height:360px!important;
  right:-110px!important;
  top:70px!important;
  border-radius:50%;
  background:radial-gradient(circle,rgba(74,154,255,.12),rgba(74,154,255,0) 68%)!important;
}
.nav{
  position:sticky!important;
  top:0;
  z-index:1002;
  width:100%;
  max-width:none!important;
  margin:0!important;
  padding:calc(10px + env(safe-area-inset-top)) max(20px,calc((100vw - 1200px)/2)) 10px!important;
  display:flex;
  align-items:center!important;
  justify-content:space-between;
  gap:18px;
  background:rgba(255,255,255,.92)!important;
  -webkit-backdrop-filter:saturate(180%) blur(18px);
  backdrop-filter:saturate(180%) blur(18px);
  border-bottom:1px solid rgba(210,225,243,.84)!important;
  box-shadow:0 5px 24px rgba(20,55,98,.035);
}
.brand{
  min-width:0;
  display:flex;
  align-items:center;
  gap:10px;
  color:var(--rg-navy)!important;
  text-decoration:none;
  font-size:19px!important;
  font-weight:850;
  line-height:1.05;
  letter-spacing:-.025em;
  white-space:nowrap;
}
.logo-image{
  flex:0 0 auto;
  width:44px!important;
  height:44px!important;
  max-width:44px!important;
  max-height:44px!important;
  object-fit:cover!important;
  border-radius:12px!important;
  box-shadow:0 8px 20px rgba(23,69,126,.11)!important;
}
.nav-actions{display:flex;align-items:center;justify-content:flex-end;gap:4px;flex-wrap:nowrap}
.nav-link,.nav-actions .ghost{
  min-height:48px;
  padding:10px 12px!important;
  border-radius:12px!important;
  color:#38506f!important;
  background:transparent!important;
  border:1px solid transparent!important;
  text-decoration:none;
  font-size:13px!important;
  font-weight:760;
  opacity:1!important;
  white-space:nowrap;
}
.nav-link:hover,.nav-link:focus-visible,.nav-actions .ghost:hover,.nav-actions .ghost:focus-visible{
  color:var(--rg-blue)!important;
  background:#eff6ff!important;
  border-color:#d8e8fb!important;
}
.nav-menu-toggle{display:none;width:48px;height:48px;border:1px solid #d5e2f2!important;border-radius:13px;background:#f7faff!important;padding:12px;cursor:pointer}
.nav-menu-toggle span{display:block;width:100%;height:2px;margin:4px 0;border-radius:999px;background:var(--rg-navy)!important}

/* Hero */
.hero{
  position:relative;
  z-index:2;
  width:min(1200px,calc(100% - 40px));
  max-width:1200px!important;
  margin:0 auto!important;
  padding:70px 0 26px!important;
  display:grid!important;
  grid-template-columns:minmax(0,1.35fr) minmax(320px,.65fr)!important;
  align-items:center!important;
  gap:64px!important;
}
.hero-copy-column{max-width:720px!important;min-width:0}
.hero-kicker{
  display:inline-flex;
  align-items:center;
  gap:9px;
  width:max-content;
  max-width:100%;
  min-height:36px;
  margin:0 0 16px;
  padding:7px 12px;
  border:1px solid #d7e7fb;
  border-radius:999px;
  background:rgba(255,255,255,.9);
  color:#46617e;
  box-shadow:0 8px 22px rgba(23,69,126,.04);
  font-size:12px;
  font-weight:820;
}
.hero-kicker-dot{width:8px;height:8px;border-radius:50%;background:var(--rg-red);box-shadow:0 0 0 4px rgba(225,38,54,.09)}
.hero .eyebrow{color:var(--rg-blue)!important;margin-bottom:9px;font-size:11px!important;letter-spacing:.15em}
.hero h1{
  max-width:720px;
  margin:0 0 18px;
  color:var(--rg-navy)!important;
  font-size:clamp(44px,4.8vw,66px)!important;
  line-height:1.02!important;
  letter-spacing:-.052em!important;
  text-wrap:balance;
}
.hero-copy{
  max-width:660px!important;
  margin:0;
  color:#526783!important;
  font-size:17px!important;
  line-height:1.68!important;
}
.hero-actions{display:flex;align-items:center;gap:10px;margin-top:28px!important}
.hero-actions .primary,.hero-actions .secondary{
  min-height:52px;
  padding:13px 20px!important;
  border-radius:13px!important;
  width:auto!important;
}
.hero-actions .primary{background:linear-gradient(135deg,var(--rg-blue),#1780ff)!important;color:#fff;box-shadow:0 12px 28px rgba(11,110,243,.20)!important}
.hero-actions .secondary{background:#fff!important;color:var(--rg-navy)!important;border:1px solid #cfdeef!important;box-shadow:0 8px 22px rgba(23,69,126,.045)!important}
.hero-province-chips{display:flex!important;flex-wrap:wrap;gap:8px!important;margin-top:22px!important}
.hero-province-chips a{
  min-height:44px;
  display:inline-flex!important;
  align-items:center;
  gap:7px!important;
  padding:7px 11px!important;
  border:1px solid #dae7f6!important;
  border-radius:13px!important;
  background:rgba(255,255,255,.93)!important;
  color:#4b617c!important;
  text-decoration:none;
  box-shadow:0 5px 17px rgba(23,69,126,.035)!important;
}
.hero-province-chips strong{color:var(--rg-navy)!important;font-size:12px!important}.hero-province-chips span{color:#74859a!important;font-size:10px!important;font-weight:750!important}
.hero-card{
  min-width:0;
  display:grid!important;
  gap:10px!important;
  padding:18px!important;
  border:1px solid #dce8f5!important;
  border-radius:24px!important;
  background:rgba(255,255,255,.96)!important;
  color:var(--rg-text)!important;
  box-shadow:var(--rg-shadow-lg)!important;
  -webkit-backdrop-filter:blur(14px);
  backdrop-filter:blur(14px);
}
.hero-card-heading{display:flex;align-items:center;gap:11px;padding:0 1px 5px}.hero-card-heading .hero-card-icon{width:36px;height:36px;display:grid;place-items:center;border-radius:11px;background:#e8f7f1;color:var(--rg-success);font-weight:900}.hero-card-heading strong{display:block;color:var(--rg-navy);font-size:14px}.hero-card-heading small{display:block;color:var(--rg-muted);font-size:11px;line-height:1.35}
.metric{padding:13px 14px!important;border:1px solid #e2eaf4!important;border-radius:15px!important;background:#fff!important;color:var(--rg-text)!important;box-shadow:none!important}.metric span{font-size:28px!important;line-height:1.05;color:var(--rg-navy)!important;letter-spacing:-.03em}.metric small{display:block;margin-top:3px;color:#6b7d94!important;font-size:11px!important;font-weight:720!important}

/* Body sections */
main{position:relative;z-index:3;width:100%;padding-bottom:env(safe-area-inset-bottom)}
.trust-strip{
  width:min(1120px,calc(100% - 40px));
  max-width:1120px!important;
  margin:-18px auto 30px!important;
  padding:13px 16px!important;
  display:flex!important;
  flex-wrap:wrap;
  justify-content:center!important;
  align-items:center;
  gap:6px 14px!important;
  border:1px solid var(--rg-line)!important;
  border-radius:18px!important;
  background:rgba(255,255,255,.97)!important;
  color:#49607d!important;
  box-shadow:var(--rg-shadow)!important;
}
.trust-strip span{font-size:12px!important;padding:4px 9px 4px 23px!important}
.panel{
  width:min(1180px,calc(100% - 40px));
  max-width:1180px!important;
  margin:0 auto 24px!important;
  padding:32px!important;
  border:1px solid var(--rg-line)!important;
  border-radius:24px!important;
  background:rgba(255,255,255,.98)!important;
  color:var(--rg-text)!important;
  box-shadow:0 10px 34px rgba(18,54,98,.052)!important;
}
.panel:focus-within{border-color:#b7d0ee!important;box-shadow:0 14px 40px rgba(18,54,98,.075)!important}
.section-head{max-width:760px!important;margin-bottom:22px!important}.section-head p,.small-note,small{color:var(--rg-muted)!important}
h2,h3{color:var(--rg-navy)!important}h2{font-size:clamp(28px,3.2vw,40px)!important;line-height:1.08!important}h3{font-weight:820!important}
.card,.mini-card,.price-card,.link-card,.toolkit-feature-group,.toolkit-feature-panel,.toolkit-dashboard-result{
  border-color:var(--rg-line)!important;
  background:#fff!important;
  box-shadow:0 5px 20px rgba(18,54,98,.035)!important;
}
.persona-dashboard{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:12px!important}.persona-card{min-height:104px!important;padding:16px!important;border-radius:17px!important}.persona-card span{font-size:18px!important;font-weight:820!important}.persona-card.active{border:1.5px solid #8bb9f2!important;background:#f2f7ff!important;box-shadow:0 8px 24px rgba(11,110,243,.07)!important}
.toolkit-core-selector{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:10px!important}.toolkit-core-selector .secondary{min-height:72px!important;border-radius:16px!important;background:#fff!important}.toolkit-core-selector .secondary.active{border-color:#90baf0!important;background:#f3f8ff!important}
.calculator-panel{grid-template-columns:minmax(0,1fr) 360px!important;gap:22px!important;background:linear-gradient(180deg,#fbfdff,#f6faff)!important}.calc-grid{gap:14px!important}.card{border-radius:18px!important;padding:18px!important}.role-card,.province-card{border-radius:17px!important}.segmented{border-radius:12px!important;background:#edf3fb!important;border:1px solid #dce6f2!important}.segmented span{min-height:48px!important;display:grid!important;place-items:center!important;border-radius:10px!important;font-weight:780!important}.segmented input:checked+span{background:var(--rg-blue)!important;color:#fff!important;box-shadow:0 7px 18px rgba(11,110,243,.16)!important}
input,select,textarea{min-height:50px!important;border:1px solid #cbd9e9!important;border-radius:12px!important;background:#fff!important;color:var(--rg-text)!important;padding:12px 13px!important;font-size:16px!important}textarea{min-height:98px!important}input:focus,select:focus,textarea:focus{outline:none!important;border-color:var(--rg-blue)!important;box-shadow:0 0 0 4px rgba(11,110,243,.11)!important}
.primary{background:linear-gradient(135deg,var(--rg-blue),#1780ff)!important;color:#fff!important;border-radius:12px!important;box-shadow:0 7px 18px rgba(11,110,243,.15)!important}.secondary{background:#fff!important;color:var(--rg-navy)!important;border:1px solid #cad9e9!important;border-radius:12px!important}.ghost{border-radius:12px!important}.result{position:static!important;max-height:none!important;overflow:visible!important;border:1px solid #cddded!important;border-radius:20px!important;box-shadow:var(--rg-shadow)!important}.result .score{font-size:42px!important;color:var(--rg-navy)!important;font-weight:850!important}.action-dock{border-radius:18px!important}.pricing-grid{gap:14px!important}.price-card{border-radius:20px!important}.price-card.featured{outline:0!important;border:1.5px solid #8dbaf1!important;background:linear-gradient(180deg,#fff,#f5f9ff)!important}.price{font-size:38px!important;font-weight:850!important}.footer{padding:36px 20px calc(58px + env(safe-area-inset-bottom))!important;color:#718098!important}

/* Mobile/tablet */
.mobile-nav-backdrop{position:fixed;inset:0;z-index:999;background:rgba(10,31,61,.30);-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px)}
.mobile-nav-backdrop[hidden]{display:none!important}
body.r16-nav-open{overflow:hidden!important;touch-action:none}

@media(max-width:1000px){
  .nav{padding-left:20px!important;padding-right:20px!important}
  .hero{width:min(900px,calc(100% - 32px));grid-template-columns:1fr!important;gap:24px!important;padding-top:48px!important}
  .hero-copy-column{max-width:760px!important}.hero h1{max-width:760px!important}.hero-card{max-width:760px!important;grid-template-columns:repeat(2,minmax(0,1fr))!important}.hero-card-heading{grid-column:1/-1}.toolkit-core-selector{grid-template-columns:repeat(3,minmax(0,1fr))!important}.calculator-panel{grid-template-columns:1fr!important}
}

@media(max-width:760px){
  html{scroll-padding-top:calc(72px + env(safe-area-inset-top))}
  body{min-height:100svh;min-height:100dvh;padding-bottom:env(safe-area-inset-bottom)}
  .site-header{padding-bottom:26px!important}
  .nav{min-height:66px;padding:calc(8px + env(safe-area-inset-top)) 14px 8px!important;gap:10px}
  .brand{font-size:17px!important;white-space:normal}.logo-image{width:40px!important;height:40px!important;max-width:40px!important;max-height:40px!important}
  .nav-menu-toggle{display:grid!important;place-content:center;flex:0 0 48px}
  .nav-actions{display:none!important;position:fixed!important;left:12px!important;right:12px!important;top:calc(68px + env(safe-area-inset-top))!important;z-index:1001!important;max-height:calc(100dvh - 88px - env(safe-area-inset-top))!important;overflow:auto!important;padding:9px!important;border:1px solid #d9e5f2!important;border-radius:18px!important;background:#fff!important;box-shadow:0 24px 68px rgba(13,39,75,.22)!important;-webkit-overflow-scrolling:touch}
  .nav-actions.open{display:grid!important;gap:3px!important}.nav-actions .nav-link,.nav-actions .ghost{display:flex!important;width:100%!important;min-height:50px!important;justify-content:flex-start!important;padding:12px 13px!important;color:var(--rg-navy)!important;background:transparent!important;border-radius:11px!important}.nav-actions .nav-link:hover,.nav-actions .nav-link:focus-visible,.nav-actions .ghost:hover,.nav-actions .ghost:focus-visible{background:#eef6ff!important;color:var(--rg-blue)!important}
  .hero{width:100%!important;margin:0!important;padding:34px 16px 0!important;gap:20px!important}.hero-kicker{font-size:11px!important;margin-bottom:12px}.hero .eyebrow{font-size:10px!important}.hero h1{font-size:clamp(34px,9.7vw,46px)!important;line-height:1.045!important;letter-spacing:-.045em!important}.hero-copy{font-size:16px!important;line-height:1.62!important}.hero-actions{display:grid!important;grid-template-columns:1fr!important;margin-top:22px!important}.hero-actions .primary,.hero-actions .secondary{width:100%!important;min-height:52px!important}.hero-province-chips{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:7px!important}.hero-province-chips a{min-height:50px!important;display:grid!important;place-items:center!important;gap:1px!important;padding:7px 4px!important;text-align:center}.hero-province-chips strong{font-size:11px!important}.hero-province-chips span{font-size:9px!important}
  .hero-card{grid-template-columns:1fr 1fr!important;padding:14px!important;border-radius:19px!important}.hero-card-heading{grid-column:1/-1}.metric{padding:12px!important}.metric span{font-size:24px!important}.metric small{font-size:10px!important}
  .trust-strip{width:calc(100% - 24px)!important;margin:14px 12px 22px!important;justify-content:flex-start!important;border-radius:16px!important}.trust-strip span{width:auto!important}
  .panel{width:calc(100% - 20px)!important;margin:0 10px 18px!important;padding:22px 17px!important;border-radius:20px!important}.persona-dashboard{grid-template-columns:1fr!important}.persona-card{min-height:88px!important}.toolkit-core-selector{grid-template-columns:1fr 1fr!important}.calculator-assurance{grid-template-columns:1fr!important}.role-card{flex-direction:column!important;align-items:stretch!important}.segmented{width:100%!important}.segmented label{flex:1!important}.segmented span{padding:9px 7px!important}.calc-grid,.advanced-grid,.pricing-grid,.toolkit-columns,.plan-grid,.toolkit-feature-nav,.toolkit-form-grid{grid-template-columns:1fr!important}.span-2,.toolkit-form-grid .wide{grid-column:auto!important}.calculator-panel{background:#f8fbff!important}.primary,.secondary,.ghost{min-height:48px!important}.toast{left:12px!important;right:12px!important;bottom:calc(12px + env(safe-area-inset-bottom))!important;max-width:none!important}.footer{padding-left:18px!important;padding-right:18px!important}
}

@media(max-width:390px){
  .hero-province-chips{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .hero-card{grid-template-columns:1fr!important}.hero-card-heading{grid-column:auto}.toolkit-core-selector{grid-template-columns:1fr!important}
}

@supports not (height:100dvh){body{min-height:100svh}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}
/* R17 hamburger geometry: explicit widths prevent empty-looking buttons in WebKit/grid sizing. */
.nav-menu-toggle span{width:22px!important;height:2px!important;margin:0!important;flex:0 0 2px;background:var(--rg-navy)!important}
@media(max-width:760px){.nav-menu-toggle{display:flex!important;flex-direction:column;justify-content:center;align-items:center;gap:4px!important}}
