/* Habineo Premium UI v0.81.3 — Home page refinement (screens 1–5) built on RC66.
   Goal: keep the strong RC66 base, improve perceived value, clarity and conversion. */

/* Screen 1 — hero copy stronger and CTA more readable. */
.hb67-home-hero__inner>p{
  max-width:980px!important;
}
.hb67-home-hero__actions .hb67-button{
  font-size:28px!important;
  line-height:1.1!important;
  min-height:78px!important;
  padding:0 34px!important;
}
.hb67-home-hero__actions .hb67-button span{
  font-size:24px!important;
  line-height:1!important;
}

/* Screen 2 — value first: four equal answers, centered and highly scannable. */
.hb813-home-value{
  padding:78px 0 72px!important;
  background:linear-gradient(180deg,#fff 0%,#fbfcff 100%)!important;
}
.hb813-home-value__heading,
.hb813-home-flow .hb67-section-heading{
  max-width:880px;
  margin:0 auto 32px!important;
  text-align:center;
}
.hb813-home-value__heading>span:before{
  display:none!important;
  content:none!important;
}
.hb813-home-value__heading>span{
  padding-left:0!important;
  background-image:none!important;
}
.hb813-home-flow .hb67-section-heading>span{
  position:relative;
  display:inline-flex!important;
  align-items:center;
  gap:10px;
}
.hb813-home-flow .hb67-section-heading>span:before{
  content:"";
  display:inline-block!important;
  width:12px;
  height:12px;
  border-radius:999px;
  background:#15a783;
  box-shadow:0 0 0 8px rgba(21,167,131,.12);
  flex:0 0 auto;
}
.hb813-home-value__heading h2,
.hb813-home-flow .hb67-section-heading h2{
  max-width:780px;
  margin-left:auto!important;
  margin-right:auto!important;
  font-size:clamp(34px,3.45vw,48px)!important;
  line-height:1.05!important;
  letter-spacing:-.038em!important;
  text-wrap:balance;
  color:#5b4ee6!important;
}
.hb813-home-value__heading p,
.hb813-home-flow .hb67-section-heading p{
  max-width:760px;
  margin:12px auto 0!important;
  font-size:17px!important;
  line-height:1.48!important;
  color:#60708f!important;
}
.hb813-value-map{display:grid;gap:20px;}
.hb813-value-map__grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:16px;
}
.hb813-value-point{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  min-width:0;
  min-height:196px;
  padding:32px 40px;
  border:1px solid #dce3f1;
  border-radius:24px;
  background:#fff;
  box-shadow:0 18px 36px rgba(31,42,75,.05);
  text-align:center;
  transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease;
}
.hb813-value-point:hover{
  transform:translateY(-2px);
  border-color:#cbd4eb;
  box-shadow:0 20px 36px rgba(31,42,75,.07);
}
.hb813-value-point__icon{
  display:grid;
  place-items:center;
  width:70px;
  height:70px;
  margin:0 0 20px;
  border-radius:22px;
  background:radial-gradient(circle at 30% 25%,#ffffff 0%,#f0efff 40%,#e3ebff 100%);
  color:#5b4ee6;
  box-shadow:0 16px 30px rgba(93,80,231,.14), inset 0 1px 0 rgba(255,255,255,.9);
}
.hb813-value-point__icon svg{
  width:30px;
  height:30px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.8;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.hb813-value-point strong{
  display:block;
  margin:0 0 7px;
  color:#1f2b59;
  font-size:23px;
  line-height:1.18;
  letter-spacing:-.025em;
  text-wrap:balance;
}
.hb813-value-point p{
  max-width:390px;
  margin:0 auto!important;
  color:#667492!important;
  font-size:16px!important;
  line-height:1.52!important;
  text-wrap:balance;
}
.hb813-value-outcome{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(390px,.9fr);
  gap:24px;
  align-items:center;
  padding:26px 30px;
  border-radius:24px;
  background:linear-gradient(135deg,#232a4b 0%,#303b66 100%);
  color:#fff;
  box-shadow:0 22px 46px rgba(29,36,64,.12);
}
.hb813-value-outcome__copy>span{
  display:block;
  margin-bottom:6px;
  color:#6ce1bf;
  font-size:11px;
  font-weight:900;
  letter-spacing:.13em;
}
.hb813-value-outcome__copy strong{
  display:block;
  max-width:560px;
  font-size:28px;
  line-height:1.16;
  letter-spacing:-.025em;
  text-wrap:balance;
}
.hb813-value-outcome__copy p{display:block!important;margin:10px 0 0!important;max-width:560px;color:rgba(241,243,255,.82)!important;font-size:15px!important;line-height:1.5!important;}
.hb813-value-outcome__facts{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:9px;
}
.hb813-value-outcome__facts span{
  display:flex;
  align-items:center;
  min-height:50px;
  padding:12px 14px;
  border:1px solid rgba(255,255,255,.11);
  border-radius:14px;
  background:rgba(255,255,255,.075);
  color:#f1f3ff;
  font-size:14.5px;
  font-weight:750;
}
.hb813-value-outcome__facts span:before{
  content:'✓';
  display:grid;
  place-items:center;
  width:20px;
  height:20px;
  margin-right:9px;
  border-radius:999px;
  background:#1ac59c;
  color:#fff;
  font-size:11px;
  font-weight:900;
  flex:0 0 auto;
}

/* Screen 3 — modern four-node engine diagram, no tiny arrows and no privileged last step. */
.hb813-home-flow{
  padding-top:76px!important;
  padding-bottom:82px!important;
}
.hb813-decision-pipeline{
  position:relative;
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:20px;
  align-items:stretch;
  padding-top:14px;
}
.hb813-decision-pipeline:before{
  content:'';
  position:absolute;
  left:10%;
  right:10%;
  top:58px;
  height:3px;
  border-radius:999px;
  background:linear-gradient(90deg,rgba(25,167,133,.16),rgba(98,89,236,.34),rgba(25,167,133,.16));
  z-index:0;
}
.hb813-pipeline-step{
  position:relative;
  z-index:1;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:flex-start;
  min-width:0;
  min-height:222px;
  padding:30px 28px 28px;
  border:1px solid #dce3f1;
  border-radius:24px;
  background:rgba(255,255,255,.98);
  box-shadow:0 18px 36px rgba(31,42,75,.05);
  text-align:center;
}
.hb813-pipeline-step:not(:last-child):after{
  content:"➜";
  position:absolute;
  top:38px;
  right:-31px;
  width:52px;
  height:52px;
  display:grid;
  place-items:center;
  border-radius:999px;
  border:1px solid #cfd8ef;
  background:linear-gradient(135deg,#ffffff 0%,#eef2ff 100%);
  color:#5b4ee6;
  font-size:24px;
  font-weight:800;
  line-height:1;
  box-shadow:0 16px 28px rgba(31,42,75,.10), inset 0 1px 0 rgba(255,255,255,.92);
  z-index:4;
}
.hb813-pipeline-step:last-child:after{display:none!important;content:none!important;}
.hb813-pipeline-step__visual{
  display:grid;
  place-items:center;
  width:78px;
  height:78px;
  margin:0 auto 20px;
  border:8px solid #f6f7fc;
  border-radius:24px;
  background:radial-gradient(circle at 30% 25%,#ffffff 0%,#f0efff 40%,#e3ebff 100%);
  color:#5b4ee6;
  box-shadow:0 16px 30px rgba(93,80,231,.12), inset 0 1px 0 rgba(255,255,255,.9);
}
.hb813-pipeline-step__visual svg{
  width:32px;
  height:32px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.8;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.hb813-pipeline-step strong{
  display:block;
  margin:0 0 10px;
  color:#1f2b59;
  font-size:22px;
  line-height:1.18;
  letter-spacing:-.025em;
  text-wrap:balance;
}
.hb813-pipeline-step>p{
  min-height:0;
  max-width:250px;
  margin:0 auto!important;
  color:#667492!important;
  font-size:15.5px!important;
  line-height:1.55!important;
  text-wrap:balance;
}
.hb813-pipeline-step__head,
.hb813-pipeline-tags,
.hb813-pipeline-result{display:none!important;}
.hb813-pipeline-note{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:16px;
  margin-top:22px;
  padding:0;
  border:0;
  background:transparent;
}
.hb813-pipeline-note>div{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:12px;
  min-height:68px;
  padding:18px 22px;
  border:1px solid #dde4f1;
  border-radius:18px;
  background:linear-gradient(180deg,#fbfcff 0%,#f7f9ff 100%);
  text-align:center;
}
.hb813-pipeline-note b{
  color:#1f2b59;
  font-size:14.5px;
  line-height:1.2;
}
.hb813-pipeline-note span{
  color:#60708f;
  font-size:14px;
  line-height:1.35;
}

@media(max-width:1180px){
  .hb813-decision-pipeline{grid-template-columns:repeat(2,minmax(0,1fr));}
  .hb813-decision-pipeline:before{display:none;}
  .hb813-pipeline-step:after{display:none!important;}
}
@media(max-width:900px){
  .hb813-home-value{padding:64px 0 60px!important;}
  .hb813-home-flow{padding-top:64px!important;padding-bottom:64px!important;}
  .hb813-home-value__heading,.hb813-home-flow .hb67-section-heading{margin-bottom:26px!important;}
  .hb813-home-value__heading h2,.hb813-home-flow .hb67-section-heading h2{font-size:clamp(32px,8vw,42px)!important;}
  .hb813-home-value__heading p,.hb813-home-flow .hb67-section-heading p{font-size:16px!important;}
  .hb813-value-map__grid{grid-template-columns:1fr;gap:13px;}
  .hb813-value-point{min-height:0;padding:26px 22px;}
  .hb813-value-outcome{grid-template-columns:1fr;gap:18px;padding:24px 22px;text-align:center;}
  .hb813-value-outcome__copy strong{max-width:none;font-size:23px;}
  .hb813-decision-pipeline{grid-template-columns:1fr;gap:13px;padding-top:0;}
  .hb813-pipeline-step{min-height:0;padding:24px 20px;}
  .hb813-pipeline-note{grid-template-columns:1fr;}
}
@media(max-width:560px){
  .hb813-home-value__heading h2,.hb813-home-flow .hb67-section-heading h2{font-size:clamp(30px,9.5vw,38px)!important;}
  .hb813-value-point{padding:22px 18px;border-radius:20px;}
  .hb813-value-point__icon{width:58px;height:58px;border-radius:18px;margin-bottom:14px;}
  .hb813-value-point strong{font-size:20px;}
  .hb813-value-point p{font-size:15px!important;}
  .hb813-value-outcome{padding:22px 18px;border-radius:22px;}
  .hb813-value-outcome__facts{grid-template-columns:1fr;}
  .hb813-pipeline-step{border-radius:20px;}
  .hb813-pipeline-step__visual{width:70px;height:70px;margin-bottom:16px;}
  .hb813-pipeline-step strong{font-size:20px;}
  .hb813-pipeline-step>p{font-size:14px!important;}
  .hb813-pipeline-note>div{flex-direction:column;gap:4px;padding:13px 14px;}
}

/* Screen 4 — copy stays short and warmer. */
.hb67-home-offers__intro>p{
  max-width:610px!important;
}
.hb67-home-offers__continuation strong{
  font-size:18px!important;
}
.hb67-home-offers__continuation p{
  font-size:16px!important;
  line-height:1.62!important;
}

/* Screen 5 — keep design, tighten copy readability. */
.hb67-trust-heading p{
  max-width:880px!important;
}
.hb-home__trust-grid--premium article p{
  text-wrap:pretty;
}

@media(max-width:1180px){
  .hb813-home-value__layout{grid-template-columns:1fr;}
  .hb813-home-value__result{order:2;}
  .hb813-home-value__grid{grid-template-columns:repeat(3,minmax(0,1fr));}
  .hb813-flow-scheme{grid-template-columns:repeat(2,minmax(0,1fr));}
  .hb813-flow-scheme article:not(:last-child):after{display:none;}
}
@media(max-width:860px){
  .hb67-home-hero__actions .hb67-button{font-size:24px!important;min-height:72px!important}
  .hb67-home-hero__actions .hb67-button span{font-size:20px!important}
  .hb813-home-value{padding:72px 0 64px!important}
  .hb813-home-value__heading{margin-bottom:30px!important}
  .hb813-home-value__heading h2,.hb813-home-flow .hb67-section-heading h2{font-size:clamp(34px,9vw,48px)!important}
  .hb813-home-value__heading p,.hb813-home-flow .hb67-section-heading p{font-size:16.5px!important}
  .hb813-home-value__grid{grid-template-columns:1fr;gap:18px}
  .hb813-value-card{min-height:0;padding:28px 22px 24px;border-radius:24px}
  .hb813-value-card>span,.hb813-flow-scheme article>span{width:56px;height:56px;font-size:16px;border-radius:16px}
  .hb813-value-card strong,.hb813-flow-scheme article strong{font-size:24px}
  .hb813-value-card p{font-size:16px!important}
  .hb813-home-value__result{padding:28px 22px 24px;border-radius:24px}
  .hb813-home-value__result strong{font-size:28px}
  .hb813-home-value__result li{font-size:15px}
  .hb813-home-value__result p{font-size:15px!important}
  .hb813-home-flow .hb67-section-heading{margin-bottom:30px!important}
  .hb813-flow-scheme{grid-template-columns:1fr;gap:18px}
  .hb813-flow-scheme article{min-height:0;padding:28px 22px 24px;border-radius:24px}
}
@media(max-width:520px){
  .hb67-home-hero__actions .hb67-button{font-size:22px!important;min-height:68px!important;padding:0 24px!important}
  .hb67-home-hero__actions .hb67-button span{font-size:18px!important}
  .hb813-home-value__eyebrow{padding:9px 12px;font-size:10.5px}
}


/* Habineo Core 0.81.16 — final heading scale/color consistency on Home.
   Screens 2, 3 and trust section share the same secondary-heading language. */
.hb813-home-value .hb813-home-value__heading h2,
.hb813-home-flow .hb67-section-heading h2,
.hb67-home-security-restored .hb67-trust-heading h2{
  font-size:clamp(38px,4vw,52px)!important;
  line-height:1.12!important;
  letter-spacing:-.035em!important;
  color:#4440a5!important;
}
@media(max-width:900px){
  .hb813-home-value .hb813-home-value__heading h2,
  .hb813-home-flow .hb67-section-heading h2,
  .hb67-home-security-restored .hb67-trust-heading h2{
    font-size:clamp(34px,7vw,42px)!important;
  }
}
@media(max-width:560px){
  .hb813-home-value .hb813-home-value__heading h2,
  .hb813-home-flow .hb67-section-heading h2,
  .hb67-home-security-restored .hb67-trust-heading h2{
    font-size:clamp(31px,9vw,38px)!important;
  }
}
