/* Homepage only (views/home.php, wrapper .hm): the centred hero with three real pages in phones, the bento, and the closing call.
   Everything else on the page (header, made for, gallery, pricing, static sites, questions, footer) is styled in front.css.
   Colours come from the front.css tokens, so light and dark both work. Motion lives in home.js; the hover rules here need no script. */
.hm{--hm-bg:var(--surface);--hm-hot:#C73A06;display:flow-root;background:linear-gradient(var(--hm-bg) 0 0) top/100% 96px no-repeat var(--canvas)}
:root[data-theme=dark] .hm{--hm-bg:var(--canvas);--hm-hot:var(--hot)}
.hm .fr-top{box-shadow:0 0 0 1px var(--line)}
.hm-bar{position:fixed;z-index:30;inset:0 0 auto;height:3px;background:var(--hot);transform:scaleX(0);transform-origin:0 50%}

/* hero */
.hm-top{position:relative;background:var(--hm-bg);overflow:hidden}
.hm-aura{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
.hm-hero{position:relative;max-width:880px;margin:0 auto;padding:72px 16px 56px;display:flex;flex-direction:column;align-items:center;gap:24px;text-align:center}
.hm .hm-hero h1{font-size:clamp(44px,7vw,92px);font-weight:600;line-height:1;letter-spacing:-.04em}
.hm-wo{display:inline-block;overflow:hidden;vertical-align:top;padding-bottom:.08em}
.hm-wi{display:inline-block}
.hm-hero .fr-lede{max-width:520px}
.hm-hero > div{width:100%;max-width:500px}
.hm-hero .fr-claim{margin:0 auto;box-shadow:0 0 0 1px var(--line),0 12px 32px rgba(11,11,12,.06);text-align:left;transition:box-shadow .3s}

/* three real pages, each a 390px-wide frame scaled into its phone */
.hm-phones{position:relative;max-width:1200px;margin:0 auto;padding:8px 16px 96px;display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:center;gap:32px;perspective:1200px}
.hm-pi{position:relative;display:block;width:250px;height:460px;border-radius:36px;overflow:hidden;background:#111;box-shadow:0 0 0 1px var(--line)}
.hm-pi iframe{position:absolute;left:0;top:0;width:390px;height:718px;border:0;transform:scale(.6411);transform-origin:0 0;pointer-events:none;background:#fff}
.hm-ph.big .hm-pi{width:290px;height:540px;border-radius:42px;box-shadow:0 0 0 1px var(--line),0 32px 64px rgba(11,11,12,.22)}
.hm-ph.big .hm-pi iframe{height:727px;transform:scale(.7436)}

/* bento */
.hm-bento{display:flex;flex-wrap:wrap;gap:20px}
.hm-card{position:relative;overflow:hidden;flex:1 1 340px;min-width:0;box-sizing:border-box;padding:32px;border-radius:28px;background:var(--surface);display:flex;flex-direction:column;justify-content:space-between;gap:24px}
.hm-card.wide{flex:2 1 520px}
.hm-card.hot{background:#FF4F12;color:#0B0B0C}
.hm-card::before{content:"";position:absolute;inset:0;background:radial-gradient(280px circle at var(--mx,50%) var(--my,50%),rgba(255,79,18,.12),transparent 70%);opacity:0;transition:opacity .3s;pointer-events:none}
.hm-card > *{position:relative}
.hm .hm-card h3{margin-bottom:6px;font-size:24px;font-weight:600;line-height:1.15;letter-spacing:-.02em}
.hm-card p{color:var(--ink-2)}
.hm-card.hot p{color:#0B0B0C}
.fr-rv .hm [data-rv]{transition-delay:calc(var(--i,0) * 80ms)}
/* the drawn interfaces keep light colours in both schemes: they show a real screen */
.hm-ui{border-radius:18px;background:#F2F4F8;padding:18px;display:flex;flex-direction:column;gap:8px;font-size:13px;color:#0B0B0C}
.hm-card.hot .hm-ui{background:#FFFFFF}
.hm-ui small{font-size:13px;color:#5D6470}
.hm-row{flex-direction:row;flex-wrap:wrap;align-items:center}
.hm-ui .hm-row{display:flex;gap:6px}
.hm-pair{display:flex;flex-wrap:wrap;gap:14px}
.hm-pair .hm-ui{flex:1 1 200px}
.hm-chip{padding:8px 14px;border-radius:999px;background:#FFFFFF;border:1px solid #E3E7EE;font-size:13px;font-weight:500}
.hm-chip.sq{border-radius:12px}
.hm-send{padding:10px 14px;border-radius:999px;background:#0B0B0C;color:#FFFFFF;font-weight:500;text-align:center}
.hm-amt{font:600 34px var(--disp);letter-spacing:-.03em;font-variant-numeric:tabular-nums}
.hm-bars i{display:block;height:10px;border-radius:5px;background:#0B0B0C;transform-origin:0 50%}
.hm-bars i:nth-of-type(2){background:#FF4F12}
.hm-bars i:nth-of-type(3){background:#B8BEC9}
.hm-qr{width:56px;height:56px;flex:none;margin-right:8px;fill:#0B0B0C}
.hm-dest{display:flex;flex-direction:column}
.hm-dest s{color:#5D6470}

/* closing call: the block fills with ink from the bottom as it scrolls in, and the text flips colour where the fill passes */
.hm-end{position:relative;isolation:isolate;margin-bottom:96px;background:var(--canvas);overflow:hidden}
.hm-wipe{position:absolute;inset:0;z-index:0;background:var(--ink)}
.hm-end-in{position:relative;z-index:1;max-width:880px;margin:0 auto;padding:120px 16px;display:flex;flex-direction:column;align-items:center;gap:28px;text-align:center;color:#FFFFFF;mix-blend-mode:difference}
.hm .hm-end h2{font-size:clamp(36px,5.6vw,72px);font-weight:600;letter-spacing:-.04em}
.hm-go{min-height:56px;padding:0 32px;display:inline-flex;align-items:center;border-radius:999px;background:#FFFFFF;color:#0B0B0C;font-size:17px;font-weight:500;transition:transform .25s cubic-bezier(.2,.8,.2,1)}
.fr .hm-go:hover{color:#0B0B0C}

@media (hover:hover){
  .hm-hero .fr-claim:hover{box-shadow:0 0 0 1px var(--ink),0 16px 40px rgba(11,11,12,.12)}
  .hm-card{transition:transform .4s cubic-bezier(.2,.8,.2,1),box-shadow .4s}
  .hm-card:hover{transform:translateY(-4px);box-shadow:0 24px 48px rgba(11,11,12,.10)}
  .hm-card:not(.hot):hover::before{opacity:1}
  .hm-go:hover{transform:translateY(-2px)}
}
@media (max-width:760px){
  .hm-hero{padding:40px 16px 40px}
  .hm-phones{padding-bottom:64px}
  .hm-ph:not(.big):not(:only-child){display:none}   /* one phone is enough on a small screen */
  .hm-card{padding:24px}
  .hm-end{margin-bottom:64px}
  .hm-end-in{padding:88px 16px}
}
@media (prefers-reduced-motion:reduce){.hm-card,.hm-go{transition:none}}
