/* BestArt base-template refresh
   Product-led layout for the Best Insurance family. Keeps the art-specific
   palette and editorial typography while making the quote flow the product. */

:root{
  --best-radius-sm:12px;
  --best-radius-md:18px;
  --best-radius-lg:26px;
  --best-shadow:0 24px 70px rgba(21,18,12,.14);
  --best-border:rgba(26,21,16,.10);
}

/* Shared Best-family identity */
.logo{
  font-family:var(--font-sans);
  font-weight:700;
  letter-spacing:-.035em;
  gap:10px;
}
.logo .name{white-space:nowrap;}
.logo .name .b{
  background:none;
  -webkit-text-fill-color:currentColor;
  color:var(--gold-l);
}
.logo .mark{
  width:30px;
  height:35px;
  color:currentColor;
  overflow:visible;
}
.logo .mark path{fill:currentColor;}
.hero .logo .mark{color:#fff;}
footer .logo .mark{color:var(--ink);}
footer .logo .name .b{color:var(--gold-d);}

/* Product-led hero */
.hero{
  min-height:0;
  padding-bottom:76px;
  background:
    radial-gradient(900px 520px at 8% -10%,rgba(201,168,76,.20),transparent 64%),
    radial-gradient(720px 460px at 95% 0%,rgba(91,143,168,.13),transparent 64%),
    var(--bg);
}
.hero::before{opacity:.44;}
.hero-diamond{opacity:.26;transform:translateX(5%) scale(.92);}
.hero-inner{
  display:grid;
  grid-template-columns:minmax(0,1.08fr) minmax(330px,.72fr);
  column-gap:72px;
  row-gap:0;
  align-items:start;
  padding-top:64px;
}
.hero-inner>.badge,
.hero-inner>h1,
.hero-inner>p.lede,
.hero-inner>.hero-actions{grid-column:1;}
.hero-inner>.badge{justify-self:start;}
.hero h1{
  max-width:11.5ch;
  font-weight:400;
  font-size:clamp(50px,7vw,84px);
  letter-spacing:-.025em;
}
.hero p.lede{max-width:59ch;}
.hero-actions{margin-top:2px;}
.btn-primary,.nav-cta{
  background:var(--gold);
  box-shadow:0 10px 28px rgba(201,168,76,.25);
}
.btn-primary:hover,.nav-cta:hover{
  box-shadow:0 14px 34px rgba(201,168,76,.34);
}

.hero-product-card{
  grid-column:2;
  grid-row:1/5;
  align-self:center;
  position:relative;
  border:1px solid rgba(255,255,255,.16);
  border-radius:var(--best-radius-lg);
  padding:24px;
  color:#fff;
  background:linear-gradient(160deg,rgba(255,255,255,.11),rgba(255,255,255,.045));
  box-shadow:0 34px 90px rgba(0,0,0,.32);
  backdrop-filter:blur(18px);
  -webkit-backdrop-filter:blur(18px);
  overflow:hidden;
}
.hero-product-card::before{
  content:"";
  position:absolute;
  inset:auto -70px -90px auto;
  width:220px;
  height:220px;
  border-radius:50%;
  background:rgba(201,168,76,.12);
  filter:blur(2px);
}
.product-card-kicker{
  position:relative;
  z-index:1;
  font:700 10.5px/1 var(--font-mono);
  letter-spacing:.12em;
  text-transform:uppercase;
  color:var(--gold-l);
  margin-bottom:13px;
}
.hero-product-card h2{
  position:relative;
  z-index:1;
  font:400 30px/1.02 var(--font-serif);
  letter-spacing:-.01em;
  margin-bottom:20px;
}
.product-flow{
  position:relative;
  z-index:1;
  display:grid;
  gap:9px;
}
.product-flow-item{
  display:grid;
  grid-template-columns:34px 1fr;
  gap:12px;
  align-items:center;
  padding:13px;
  border:1px solid rgba(255,255,255,.11);
  border-radius:14px;
  background:rgba(6,7,13,.34);
}
.product-flow-item .pf-num{
  width:34px;
  height:34px;
  border-radius:10px;
  display:grid;
  place-items:center;
  background:rgba(201,168,76,.15);
  color:var(--gold-l);
  font:700 11px/1 var(--font-mono);
}
.product-flow-item b{display:block;font-size:13px;margin-bottom:2px;}
.product-flow-item span:last-child{display:block;font-size:11.5px;line-height:1.4;color:rgba(255,255,255,.58);}
.product-card-foot{
  position:relative;
  z-index:1;
  display:flex;
  align-items:center;
  gap:8px;
  margin-top:16px;
  color:rgba(255,255,255,.58);
  font-size:11.5px;
}
.product-card-foot::before{
  content:"";
  width:7px;
  height:7px;
  border-radius:50%;
  background:var(--gold);
  box-shadow:0 0 14px rgba(201,168,76,.8);
}

.trustbar{
  grid-column:1/-1;
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:0;
  margin-top:56px;
  padding-top:0;
  border:1px solid rgba(255,255,255,.10);
  border-radius:16px;
  background:rgba(255,255,255,.035);
  overflow:hidden;
}
.trust{padding:18px 20px;border-right:1px solid rgba(255,255,255,.09);}
.trust:last-child{border-right:0;}
.trust .n{font-size:25px;}

/* Make the quote flow the primary product section */
#wizard{
  position:relative;
  background:
    radial-gradient(620px 360px at 100% 0%,rgba(201,168,76,.11),transparent 68%),
    linear-gradient(180deg,#f3efe7 0%,var(--paper) 42%,var(--paper) 100%);
  color:var(--ink);
  border-bottom:1px solid var(--line);
  padding-top:88px;
}
#wizard::before{
  content:"";
  position:absolute;
  top:0;
  left:50%;
  width:min(1120px,calc(100% - 52px));
  height:1px;
  transform:translateX(-50%);
  background:linear-gradient(90deg,transparent,rgba(201,168,76,.6),transparent);
}
#wizard .kicker{color:var(--gold-d);}
#wizard h2.big{color:var(--ink);max-width:15ch;}
#wizard .lead{color:var(--muted);max-width:68ch;}

.product-rail{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:10px;
  margin-top:30px;
}
.product-rail-item{
  display:grid;
  grid-template-columns:36px 1fr;
  gap:12px;
  align-items:start;
  padding:16px;
  border:1px solid var(--line);
  border-radius:15px;
  background:rgba(255,255,255,.72);
  box-shadow:0 10px 30px rgba(26,21,16,.04);
}
.product-rail-item .pr-num{
  width:36px;
  height:36px;
  display:grid;
  place-items:center;
  border-radius:11px;
  color:var(--gold-d);
  background:rgba(201,168,76,.12);
  font:700 11px/1 var(--font-mono);
}
.product-rail-item b{display:block;font-size:13.5px;margin:1px 0 3px;}
.product-rail-item span:last-child{display:block;color:var(--muted);font-size:12px;line-height:1.45;}

.wiz-shell{margin-top:22px;gap:20px;}
.stepper li{color:rgba(26,21,16,.46);}
.stepper li .bar{background:rgba(26,21,16,.10);}
.stepper li .num{background:rgba(26,21,16,.09);color:rgba(26,21,16,.56);}
.stepper li.active{color:var(--ink);}
.stepper li.done{color:rgba(26,21,16,.72);}
.wiz-card{
  border:1px solid rgba(26,21,16,.08);
  box-shadow:var(--best-shadow);
}
.next-panel{
  background:linear-gradient(165deg,#171621,#0b0c16);
  border-color:rgba(255,255,255,.10);
  box-shadow:0 24px 60px rgba(21,18,12,.13);
}
.resume-banner.show{color:var(--ink)!important;background:rgba(255,255,255,.8)!important;border-color:rgba(201,168,76,.45)!important;}

/* Supporting content follows the product instead of delaying it */
.markets{border-top:0;}
.markets+.covers-section,
#wizard+section{scroll-margin-top:20px;}

@media(max-width:980px){
  .hero-inner{grid-template-columns:1fr;row-gap:34px;padding-top:48px;}
  .hero-inner>.badge,.hero-inner>h1,.hero-inner>p.lede,.hero-inner>.hero-actions{grid-column:1;}
  .hero-product-card{grid-column:1;grid-row:auto;max-width:680px;}
  .trustbar{margin-top:10px;}
}

@media(max-width:760px){
  .hero{padding-bottom:54px;}
  .hero-inner{padding-top:36px;}
  .hero h1{font-size:clamp(44px,13vw,64px);max-width:12ch;}
  .hero-product-card{padding:19px;border-radius:20px;}
  .trustbar{grid-template-columns:1fr 1fr;}
  .trust:nth-child(2){border-right:0;}
  .trust:nth-child(-n+2){border-bottom:1px solid rgba(255,255,255,.09);}
  .product-rail{grid-template-columns:1fr;}
  #wizard{padding-top:68px;}
}

@media(max-width:480px){
  .hero-product-card h2{font-size:26px;}
  .product-flow-item{grid-template-columns:30px 1fr;padding:11px;}
  .product-flow-item .pf-num{width:30px;height:30px;}
  .trust{padding:14px;}
  .trust .n{font-size:22px;}
  .trust .l{font-size:11.5px;}
  .logo .mark{width:25px;height:29px;}
}
