.home-core-features{
 padding-block:var(--hags-wide-space);
 background:var(--hags-paper);
 color:var(--hags-indigo);
}
.home-core-rail{width:var(--hags-wide-rail);margin-inline:auto}
.home-core-heading{margin-bottom:clamp(22px,3.3vw,46px)}
.home-core-heading p,.home-core-heading h2{margin-block:0}
.home-feature-grid{
 --feature-rule:#4d385b53;
 display:grid;grid-template-columns:repeat(3,minmax(0,1fr));
 border-block:1px solid var(--feature-rule);
}
.home-feature{min-width:0;margin:0;padding:clamp(19px,2.4vw,33px) clamp(15px,2.5vw,36px)}
.home-feature:first-child{padding-inline-start:0}
.home-feature:last-child{padding-inline-end:0}
.home-feature + .home-feature{border-inline-start:1px solid var(--feature-rule)}
.home-feature-mark{display:grid;place-items:center;width:45px;height:45px;background:var(--hags-indigo-soft)}
.home-feature:nth-child(2) .home-feature-mark{background:var(--hags-gold-soft)}
.home-feature:nth-child(3) .home-feature-mark{background:#f3ded1}
.home-feature h3{margin:16px 0 9px}
.home-feature p{margin:0;max-width:41ch;font-size:clamp(14px,1.05vw,16px);line-height:1.58}
html body main > [data-home-flow-rail]{
 padding-block:var(--hags-wide-space);
 padding-inline:max(var(--hags-wide-edge),calc((100% - 1550px)/2)) !important;
 max-inline-size:none;
}
html body main > [data-home-flow-rail] > :is(.how-title,[data-editorial-photo-panel],.setup-proof,.marketing-intro,.touchy-case-panel,.marketing-grid){
 max-inline-size:none;
}
html body main > :is(#how,#from-notes)[data-home-flow-rail] > .how-title{
 width:100%;margin-inline:0;
}
html body main > :is(#how,#from-notes)[data-home-flow-rail] > .how-title [data-hags-type=lead]{
 margin:var(--home-title-lead-gap) 0 0;padding:0;max-width:62ch;
}
html body main > #how[data-home-flow-rail] > [data-editorial-photo-panel]{width:100%}
#guide-preview .shift-jobs-heading h2 span{display:inline}
#guide-preview .shift-jobs-heading{max-width:100%}
#guide-preview .shift-jobs-heading [data-hags-type=lead]{max-width:68ch}
@media(max-width:700px){
 .home-feature-grid{grid-template-columns:minmax(0,1fr)}
 .home-feature,.home-feature:first-child,.home-feature:last-child{padding:19px 0}
 .home-feature+.home-feature{border-inline-start:0;border-block-start:1px solid var(--feature-rule)}
}
#guide-preview .shift-jobs-heading{position:relative}
#guide-preview .training-anchor{position:absolute;top:0;left:0;width:1px;height:1px;padding:0;scroll-margin-top:5.5rem}
html body main > #how[data-home-flow-rail] > [data-editorial-photo-panel]{
 max-width:none!important;max-inline-size:none!important;
}

/* Homepage heading-to-lead rhythm is separate from body / component gaps. */
main{--home-title-lead-gap:clamp(8px,1.05vw,15px);}
html body main :is([data-hags-type="display"],[data-hags-type="section"])+[data-hags-type="lead"]{
 margin-block-start:var(--home-title-lead-gap);
}
html body main .phone-first-section .phone-first-copy .product-copy{
 margin-block-start:var(--home-title-lead-gap);
}

/* Adjacent light sections share a shorter seam rather than two full section pads. */
main{--home-shared-seam-half:clamp(39px,4vw,52px);}
html body main > :is(#from-notes.ku-section:has(+ #how), #how:has(+ #guide-preview), #toolkit:has(+ .home-faq)){
 padding-block-end:var(--home-shared-seam-half);
}
html body main > :is(#from-notes + #how, #how + #guide-preview.shift-jobs, #toolkit + .home-faq){
 padding-block-start:var(--home-shared-seam-half);
}

/* Give the FAQ bottom rule room before the founder photo without two full section pads. */
html body main > .home-faq:has(+ .home-founder-overlay){padding-block-end:clamp(13px,1.4vw,22px);}
html body main > .home-faq + .home-founder-overlay{padding-block-start:clamp(25px,2.9vw,44px);}

/* On the full page, the connected signup shares the editorial rail. */
html body main > .home-founder-overlay + .home-signup{border-block-start:0;}
html body main > .home-founder-overlay + .home-signup .signup-rail{width:var(--hags-wide-rail);}
html body main > .home-founder-overlay + .home-signup .signup-form-area{max-inline-size:none;}

/* Phone pages share a paper canvas at section seams. At fractional preview
   scale this prevents indigo from bleeding through touching paper sections.
   Component borders inside the rail still belong to their own layouts. */
@media(max-width:760px){
 html body > main#main{background-color:var(--hags-paper)}
 html body > main#main > section,
 html body > footer.site-footer{border-block-width:0}
 /* The photo meets indigo directly: cover the subpixel transition in indigo. */
 html body > main#main > .opening-cafe + .phone-first-section{box-shadow:0 -2px 0 var(--hags-indigo)}
}

/* Full mobile homepage: each editorial section contributes half of the
   approved 48px content-to-content seam. Widths and internal spacing stay
   with the components. The hero photo and sticker meet without a gutter. */
@media(max-width:760px){
 html body > main#main{--home-mobile-seam-half:var(--ed-space-3,24px)}
 html body > main#main > section:not(.opening-cafe,.phone-first-section){
  padding-block:var(--home-mobile-seam-half)!important;
 }
 html body > main#main > #top.phone-first-section .hero-rail{
  padding-block-end:var(--home-mobile-seam-half);
 }
}
