/* Habytet homepage: base, the product banners, "Built around how you work", the demo band
   spacing and the colophon. The hero, buttons and device frames come from /home/pos.css;
   the form from /forms/demo-form.css. Motion only applies under html.js-motion (home.js). */

:root{
  --paper:#FBFAFD;--ink:#14173A;--ink-2:#4B4E6B;--ink-3:#8A8CA3;--cobalt:#5B5BD6;--rule:#E6E3EF;--tint:#F1F0F6;
  --hm-gap:12px;
  --hm-r:28px;
  --hm-ease:cubic-bezier(.22,1,.36,1);
}
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{
  margin:0;background:#fff;color:var(--ink);overflow-x:clip;
  font-family:"Geist",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;font-size:1.0625rem;line-height:1.55;
  -webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;
}
img{max-width:100%;display:block}
a{color:inherit}
:focus-visible{outline:2px solid var(--cobalt);outline-offset:3px;border-radius:4px}
.skip{position:absolute;left:16px;top:-4rem;background:var(--ink);color:#fff;padding:.6rem 1rem;z-index:1100;text-decoration:none;border-radius:8px}
.skip:focus{top:calc(env(safe-area-inset-top,0px) + .75rem)}
.hm-sr{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}

/* the two links under every product: a pill and a text link */
.hm-links{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:.5rem 1.5rem}
.ph-hero__cta.hm-links{gap:.5rem 1.5rem}

/* ═══ THE PRODUCTS: a lead banner, then two across ═══ */
.hm-grid{
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--hm-gap);
  padding:var(--hm-gap);background:#fff;
}
.hm-tile{
  --tile-bg:#F5F5F7;--tile-ink:var(--ink);--tile-ink-2:var(--ink-2);
  position:relative;isolation:isolate;overflow:hidden;border-radius:var(--hm-r);
  display:flex;flex-direction:column;height:clamp(600px,50vw,800px);
  background:var(--tile-bg);color:var(--tile-ink);
}
.hm-tile__copy{position:relative;z-index:3;text-align:center;padding:clamp(44px,4.6vw,64px) 24px 0}
.hm-tile__title{font-size:clamp(2.5rem,4.1vw,3.75rem);text-wrap:balance;color:var(--tile-ink)}
.hm-tile__lockup{height:clamp(19px,1.75vw,26px);width:auto;max-width:100%;margin:clamp(12px,1.1vw,16px) auto 0}
.hm-tile__sub{margin:clamp(12px,1.1vw,16px) auto 0;max-width:24em;font-size:clamp(1.0625rem,1.3vw,1.25rem);line-height:1.45;color:var(--tile-ink-2);text-wrap:balance}
.hm-tile .hm-links{margin-top:clamp(18px,1.8vw,26px)}
.hm-tile__media{position:relative;z-index:2;flex:1 1 auto;min-height:0;margin-top:clamp(28px,3vw,44px)}
.hm-dev{position:absolute}

/* photo tiles: the scene fills the tile; a soft wash behind the words only */
.hm-tile__photo{position:absolute;inset:0;z-index:0;overflow:hidden}
.hm-tile__photo img{width:100%;height:100%;object-fit:cover}
.hm-tile__photo::after{content:"";position:absolute;inset:0}

/* dark tiles: white words, white lockup */
.hm-tile--dark{--tile-ink:#fff;--tile-ink-2:rgba(255,255,255,.78)}
.hm-tile--dark .hm-tile__lockup{filter:brightness(0) invert(1)}

/* ── Construction: the lead. Words on the left, the site on the right, one field ── */
.hm-lead{
  grid-column:1/-1;--tile-bg:#A29A8F;--tile-ink:#14173A;--tile-ink-2:#2D2B33;
  height:clamp(640px,52vw,860px);flex-direction:row;align-items:center;
}
.hm-lead .hm-tile__copy{width:46%;padding:0 0 0 clamp(40px,7vw,128px);text-align:left}
.hm-lead .hm-tile__title{font-size:clamp(3rem,5.6vw,5.5rem)}
.hm-lead .hm-tile__lockup{height:clamp(22px,2vw,32px);margin-left:0}
.hm-lead .hm-tile__sub{margin-left:0;max-width:21em}
.hm-lead .hm-links{justify-content:flex-start}
.hm-lead .ph-link{color:var(--ink)}
.hm-lead__photo{position:absolute;z-index:0;top:0;right:0;bottom:0;width:62%}
.hm-lead__photo img{width:100%;height:100%;object-fit:cover;object-position:50% 58%;
  -webkit-mask-image:linear-gradient(to right,transparent,#000 26%);mask-image:linear-gradient(to right,transparent,#000 26%)}

/* ── Field Sales: the street at dawn, the phone in front ── */
.hm-fs{--tile-bg:#1d1f2b}
.hm-fs .hm-tile__photo img{object-position:50% 70%}
.hm-fs .hm-tile__photo::after{background:linear-gradient(180deg,rgba(14,16,30,.82) 0%,rgba(14,16,30,.6) 36%,rgba(14,16,30,.12) 72%,rgba(14,16,30,.25) 100%)}

/* phones stand up from the bottom edge */
.hm-dev--phone{width:clamp(200px,40%,290px);left:50%;top:0;transform:translateX(-50%)}

/* ── ERP: the management view on the tablet and the phone ── */
.hm-erp{--tile-bg:#EDEFF3}
.hm-erp .hm-dev--tablet{width:76%;left:7%;top:0}
.hm-erp .hm-dev--phone{width:22%;left:auto;right:7%;top:16%;transform:none;z-index:2}

/* ── Banquet: the month, large ── */
.hm-banquet{--tile-bg:#F6EEE4}
.hm-banquet .hm-dev--tablet{width:84%;left:8%;top:0}

/* ── Queue: the screen at the door, and a guest's phone ── */
.hm-queue{--tile-bg:#000}
.hm-queue .hm-dev--tablet{width:72%;left:20%;top:0}
.hm-queue .hm-dev--phone{width:22%;left:6%;top:22%;transform:none;z-index:2}
.hm-queue .ph-tablet__body,.hm-queue .ph-phone__body{box-shadow:0 0 0 .22cqw #8d9097,0 0 0 .42cqw #3a3c42,0 4cqw 8cqw -3cqw rgba(0,0,0,.9)}

/* ── Fitness and Studio: the studio in daylight, the member app in front ── */
.hm-fitness{--tile-bg:#EEECE8}
.hm-fitness .hm-tile__photo img{object-position:50% 80%}
.hm-fitness .hm-tile__photo::after{background:linear-gradient(180deg,rgba(247,246,243,.97) 0%,rgba(247,246,243,.93) 38%,rgba(247,246,243,.35) 62%,rgba(247,246,243,0) 80%)}

/* ── Inventory: the stock list, off the edge ── */
.hm-inventory{--tile-bg:#E3F0E8}
.hm-inventory .hm-dev--tablet{width:94%;left:17%;top:0}

/* ═══ BUILT AROUND HOW YOU WORK ═══ */
.hm-about{background:#fff;padding:clamp(96px,12vw,176px) 16px clamp(72px,9vw,128px)}
.hm-about__inner{max-width:1068px;margin:0 auto;text-align:center}
.hm-about__title{font-size:clamp(2.75rem,6vw,5rem);text-wrap:balance}
.hm-about__lead{max-width:30em;margin:clamp(16px,1.6vw,24px) auto 0;font-size:clamp(1.1875rem,1.8vw,1.5rem);line-height:1.45;color:var(--ink-2);text-wrap:balance}
.hm-about__points{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(28px,4vw,56px);margin-top:clamp(56px,7vw,96px);text-align:left}
.hm-about__point{padding-top:20px;border-top:1px solid #E3E3E8}
.hm-about__point h3{margin:0;font:600 clamp(1.125rem,1.5vw,1.3125rem)/1.3 "Geist",system-ui,sans-serif;letter-spacing:-.012em;color:#1d1d1f}
.hm-about__point p{margin:.5rem 0 0;font-size:clamp(1rem,1.2vw,1.0625rem);line-height:1.55;color:var(--ink-2)}

/* ═══ DEMO BAND and COLOPHON ═══ */
.hm-demo{background:#F5F5F7}
.hm-demo .pp-band__title{font-family:-apple-system,BlinkMacSystemFont,"SF Pro Display","Inter","Helvetica Neue",Arial,sans-serif;letter-spacing:-.045em;color:#1d1d1f}
.hm-foot{background:#F5F5F7;padding:0 clamp(16px,4vw,48px) calc(env(safe-area-inset-bottom,0px) + 40px)}
.colophon{max-width:1068px;margin:0 auto;padding-top:1.25rem;border-top:1px solid #DCDCE2;display:flex;flex-wrap:wrap;justify-content:space-between;gap:1rem;font-size:.9375rem;color:var(--ink-2)}
.colophon p{margin:0}
.colophon__mark{font-family:"Bricolage Grotesque","Helvetica Neue",Arial,sans-serif;font-weight:600;letter-spacing:-.02em;color:var(--ink);font-size:1.1rem}
.colophon__mark .ta{font-family:"Noto Sans Tamil","Tamil Sangam MN","Latha",serif;font-weight:500;letter-spacing:0;font-size:.9rem;color:var(--cobalt);margin-right:.5rem}
.colophon__links{display:flex;flex-wrap:wrap;gap:1.25rem}
.colophon__links a{text-decoration:none}
.colophon__links a:hover{color:var(--ink)}

/* ═══ PHONES ═══ */
@media (max-width:760px){
  :root{--hm-gap:10px;--hm-r:24px}
  .hm-grid{grid-template-columns:minmax(0,1fr)}
  .hm-tile{height:auto;min-height:0}
  .hm-tile__copy{padding:44px 20px 0}
  .hm-tile__title{font-size:clamp(2.5rem,11vw,3rem)}
  .hm-tile__lockup{height:20px}
  .hm-tile__media{flex:none;margin-top:32px;height:var(--m-h,300px)}

  .hm-lead{flex-direction:column;align-items:stretch;height:auto}
  .hm-lead .hm-tile__copy{width:auto;padding:44px 20px 0;text-align:center}
  .hm-lead .hm-tile__title{font-size:clamp(2.75rem,12vw,3.25rem)}
  .hm-lead .hm-tile__lockup{height:21px;margin-left:auto}
  .hm-lead .hm-tile__sub{margin-left:auto}
  .hm-lead .hm-links{justify-content:center}
  .hm-lead__photo{position:relative;order:2;width:100%;aspect-ratio:4/4.6;margin-top:8px}
  .hm-lead__photo img{object-position:50% 64%;
    -webkit-mask-image:linear-gradient(to bottom,transparent,#000 22%);mask-image:linear-gradient(to bottom,transparent,#000 22%)}

  .hm-fs,.hm-fitness{--m-h:390px}
  .hm-dev--phone{width:58%}
  .hm-erp{--m-h:290px}
  .hm-erp .hm-dev--tablet{width:84%;left:4%}
  .hm-erp .hm-dev--phone{width:28%;right:4%;top:20%}
  .hm-banquet{--m-h:250px}
  .hm-banquet .hm-dev--tablet{width:90%;left:5%}
  .hm-queue{--m-h:280px}
  .hm-queue .hm-dev--tablet{width:84%;left:24%}
  .hm-queue .hm-dev--phone{width:25%;left:4%;top:22%}
  .hm-inventory{--m-h:250px}
  .hm-inventory .hm-dev--tablet{width:100%;left:12%}

  .hm-about{padding:88px 20px 72px}
  .hm-about__points{grid-template-columns:minmax(0,1fr);gap:28px;margin-top:48px}
}

/* ═══ MOTION: each banner settles once as it comes in ═══ */
.js-motion [data-hm-tile]:not(.is-in) [data-hm-copy]{opacity:0;translate:0 18px}
.js-motion [data-hm-tile]:not(.is-in) [data-hm-media]{opacity:0;translate:0 56px}
.js-motion [data-hm-tile]:not(.is-in) [data-hm-photo]{scale:1.07}
.js-motion [data-hm-tile].is-in [data-hm-copy]{transition:opacity .9s ease,translate 1s var(--hm-ease)}
.js-motion [data-hm-tile].is-in [data-hm-media]{transition:opacity .9s ease .12s,translate 1.3s var(--hm-ease) .12s}
.js-motion [data-hm-tile].is-in [data-hm-photo]{transition:scale 1.8s var(--hm-ease)}
@media (prefers-reduced-motion:reduce){
  [data-hm-tile] *{transition:none!important;opacity:1!important;translate:none!important;scale:none!important}
}
