/* ============================================================
   GRAPE — Hero: "All home systems. One platform." (refined)
   Phone hub + 4 glass cards + connector mesh + outer orbit,
   branded grape-cluster particles, over the dim room. Compact.
   ============================================================ */
#filmCue.mhero { justify-content: center; padding: 0; }
#filmCue::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(118% 78% at 50% 44%, rgba(10,7,9,0.44), rgba(8,5,7,0.7) 100%); }
.hero2 {
  position: relative; z-index: 1; width: 100%; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  gap: 1px; padding: calc(max(46px, env(safe-area-inset-top) + 10px) + 76px) 15px calc(12px + env(safe-area-inset-bottom));
  pointer-events: auto; text-align: center;
}
.hero2__top { flex: 0 0 auto; max-width: 32ch; }
.hero2__eyebrow {
  display: inline-block; font-family: var(--font-grotesk,'Archivo',sans-serif);
  font-size: 9px; letter-spacing: 0.32em; text-transform: uppercase; color: rgba(255,255,255,0.85);
  padding: 4px 15px; border: 1px solid rgba(255,255,255,0.3); border-radius: 999px;
  background: rgba(17,16,16,0.42); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.hero2__title {
  font-family: var(--font-grotesk,'Archivo',sans-serif); font-weight: 700;
  font-size: clamp(1.5rem, 6.7vw, 2.6rem); line-height: 0.98; letter-spacing: -0.02em;
  white-space: nowrap;
  color: #fff; text-shadow: 0 3px 30px rgba(0,0,0,0.75); margin: 7px 0 0;
}
.hero2__sub {
  font-family: var(--font-grotesk,'Archivo',sans-serif); font-weight: 300;
  font-size: 0.78rem; line-height: 1.38; color: rgba(255,255,255,0.84);
  margin: 5px auto 0; max-width: 33ch; text-shadow: 0 2px 12px rgba(0,0,0,0.7);
}

/* ---- diagram: centred ecosystem, ~half the viewport ---- */
.hero2__diagram { position: relative; width: 100%; max-width: 392px; aspect-ratio: 1.18 / 1; height: 50svh; max-height: 50svh; flex: 0 0 auto; align-self: center; margin: 0 auto; }
.hero2__links { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; overflow: visible; }
.hl-ring { display: none; }
.hl-inner { display: none; }
.hl-orbit { fill: none; stroke: #ffffff; stroke-width: 1; opacity: 0.34; stroke-dasharray: 4 5; }
.hl-spoke { fill: none; stroke: #ffffff; stroke-width: 1; opacity: 0.3; stroke-linecap: round; }
.hl-dot { fill: #ffffff; opacity: 0.7; }
/* branded grape-cluster particles — realistic deep-purple, glossy, subtle */
.hgrape { opacity: 0; transform: scale(1.5); transform-box: fill-box; transform-origin: center; }
.hgrape .halo { fill: #ffffff; opacity: 0.22; }
.hgrape .g { fill: url(#grapeGrad); }
.hgrape .sheen { fill: #ffffff; opacity: 0.4; }
.hgrape .hi { fill: rgba(255,252,255,0.95); }
.hgrape .nub { fill: #3a3637; opacity: 0.9; }

/* glass cards */
.hcard {
  position: absolute; z-index: 2; width: clamp(94px, 28vw, 112px); min-height: 86px;
  padding: 9px 11px 10px; border-radius: 15px;
  background: linear-gradient(157deg, rgba(48,46,47,0.4), rgba(19,18,18,0.34));
  -webkit-backdrop-filter: blur(14px) saturate(1.12); backdrop-filter: blur(14px) saturate(1.12);
  border: 1px solid rgba(255,255,255,0.22);
  box-shadow: 0 14px 34px -17px rgba(0,0,0,0.78), inset 0 1px 0 rgba(255,240,214,0.14);
  text-align: left;
}
.hcard__ico {
  width: 32px; height: 32px; aspect-ratio: 1 / 1; flex: 0 0 auto; box-sizing: border-box; border-radius: 50%; display: grid; place-items: center;
  color: #ffffff; margin-bottom: 7px;
  border: 1px solid rgba(255,255,255,0.3); background: transparent;
}
.hcard__ico svg { width: 17px; height: 17px; fill: none; stroke: url(#heroGradWarm); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.hcard__t { font-family: var(--font-grotesk,'Archivo',sans-serif); font-weight: 500; font-size: 0.88rem; color: #fff; letter-spacing: -0.005em; }
.hcard__d { font-family: var(--font-grotesk,'Archivo',sans-serif); font-weight: 300; font-size: 0.63rem; line-height: 1.3; color: rgba(255,255,255,0.66); margin-top: 2px; }
.hcard--comfort { top: 0; left: 0; }
.hcard--energy { top: 0; right: 0; }
.hcard--security { bottom: 0; left: 0; }
.hcard--automation { bottom: 0; right: 0; }

/* ---- Final pillar treatment: gradient title + gradient border on all four ---- */
.hcard {
  border: 0;
  background: linear-gradient(157deg, rgba(48,46,47,0.5), rgba(19,18,18,0.5));
}
.hcard .hcard__t {
  background: none;
  -webkit-background-clip: border-box; background-clip: border-box; color: #fff;
}

/* central phone hub */
.hphone {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%) scale(0.9); transform-origin: center center; z-index: 3;
  width: clamp(136px, 36vw, 158px); aspect-ratio: 1 / 2; border-radius: 26px; padding: 5px;
  background: linear-gradient(#282526, #1513140a);
  border: 1px solid rgba(255,255,255,0.3);
  box-shadow: 0 22px 54px -18px rgba(0,0,0,0.88), 0 0 40px -12px rgba(255,255,255,0.28);
}
.hphone__scr {
  position: relative; width: 100%; height: 100%; border-radius: 20px; overflow: hidden;
  background: linear-gradient(180deg, #1B1919, #100F0F);
  padding: 5px 7px; color: #fff; display: flex; flex-direction: column; justify-content: space-between; gap: 1px;
}
.hpd__status { display: flex; align-items: center; justify-content: space-between; font-family: var(--font-sans,sans-serif); font-size: 0.4rem; color: rgba(255,255,255,0.5); }
.hpd__live { color: rgba(255,255,255,0.75); }
.hpd__head { display: flex; align-items: baseline; justify-content: space-between; }
.hpd__brand { font-family: var(--font-serif,serif); font-size: 0.66rem; color: #fff; }
.hpd__ov { font-family: var(--font-sans,sans-serif); font-size: 0.44rem; color: rgba(255,255,255,0.55); }
.hpd__climate { display: flex; align-items: center; gap: 6px; padding: 3px 0 1px; }
.hpd__sun { width: 16px; height: 16px; color: #ffffff; flex: 0 0 auto; }
.hpd__deg { font-family: var(--font-sans,sans-serif); font-weight: 300; font-size: 1.35rem; line-height: 1; color: #fff; }
.hpd__cmeta { display: flex; flex-direction: column; text-align: left; line-height: 1.15; }
.hpd__cmeta b { font-family: var(--font-sans,sans-serif); font-weight: 500; font-size: 0.42rem; color: #fff; }
.hpd__cmeta span { font-family: var(--font-sans,sans-serif); font-size: 0.36rem; color: rgba(255,255,255,0.55); }
.hpd__cmf { font-family: var(--font-sans,sans-serif); font-size: 0.4rem; line-height: 1.25; color: rgba(255,255,255,0.55); text-align: left; }
.hpd__micro { display: flex; align-items: center; justify-content: space-between; font-family: var(--font-sans,sans-serif); font-size: 0.36rem; color: rgba(255,255,255,0.5); padding: 1px 1px 0; }
.hpd__micro b { font-weight: 500; color: rgba(255,255,255,0.85); font-style: normal; }
.hpd__chips { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.chip { display: flex; align-items: center; gap: 4px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.08); border-radius: 7px; padding: 4px 5px; }
.chip svg { width: 9px; height: 9px; flex: 0 0 auto; color: #ffffff; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.chip b { font-family: var(--font-sans,sans-serif); font-weight: 500; font-size: 0.4rem; color: #fff; line-height: 1; }
.chip i { font-style: normal; font-family: var(--font-sans,sans-serif); font-size: 0.36rem; color: rgba(255,255,255,0.85); line-height: 1; margin-left: auto; }
.hpd__energy { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08); border-radius: 7px; padding: 4px 6px; }
.hpd__energy .row { display: flex; align-items: center; gap: 5px; }
.hpd__energy .row span { font-family: var(--font-sans,sans-serif); font-size: 0.38rem; color: rgba(255,255,255,0.5); }
.hpd__energy .row b { font-family: var(--font-sans,sans-serif); font-weight: 500; font-size: 0.46rem; color: #ffffff; }
.hpd__energy .row em { font-style: normal; font-family: var(--font-sans,sans-serif); font-size: 0.36rem; color: rgba(255,255,255,0.7); margin-left: auto; }
.hpd__spark { width: 100%; height: 12px; margin-top: 2px; display: block; }
.hpd__spark path { fill: none; stroke: rgba(255,255,255,0.8); stroke-width: 1.3; }
.hpd__sum { display: flex; align-items: center; justify-content: space-between; background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.16); border-radius: 7px; padding: 4px 7px; }
.hpd__sum span { font-family: var(--font-sans,sans-serif); font-size: 0.38rem; color: rgba(255,255,255,0.6); }
.hpd__sum b { font-family: var(--font-sans,sans-serif); font-weight: 500; font-size: 0.4rem; color: #ffffff; }
.hpd__nav { display: flex; align-items: center; justify-content: space-around; margin-top: auto; padding-top: 3px; border-top: 1px solid rgba(255,255,255,0.08); }
.hpd__nav svg { width: 11px; height: 11px; color: rgba(255,255,255,0.55); fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.hpd__nav svg.on { color: #ffffff; }

/* ---- rebuilt Grape-app dashboard ---- */
.hphone__scr { gap: 1px; padding: 5px 7px; }
.hpd2__tile { padding: 2px 6px; }
.hpd2__dev { padding: 2px 6px; }
.hpd2__dev b { line-height: 1.0; font-size: 0.36rem; white-space: nowrap; }
.hpd2__dev i { display: none; }
.hpd2__climate { padding: 2px 7px; }
.hpd2__energy { padding: 2px 7px; }
.hpd2__sum, .hpd2__devs { gap: 3px; }
.hpd2__top { display: flex; align-items: center; justify-content: space-between; }
.hpd2__home { display: flex; align-items: center; gap: 4px; }
.hpd2__home svg { width: 11px; height: 11px; color: #ffffff; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.hpd2__home b { font-family: var(--font-sans,sans-serif); font-weight: 500; font-size: 0.5rem; color: #fff; }
.hpd2__plus { display: inline-flex; align-items: center; gap: 2px; font-family: var(--font-sans,sans-serif); font-weight: 500; font-size: 0.42rem; color: #ffffff; background: transparent; border: 0; border-radius: 999px; padding: 3px 4px; cursor: pointer; }
.hpd2__plus svg { width: 8px; height: 8px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.hpd2__sum { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; }
.hpd2__tile { display: flex; align-items: center; gap: 5px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.08); border-radius: 9px; padding: 6px 7px; }
.hpd2__tile svg { width: 13px; height: 13px; flex: 0 0 auto; color: #ffffff; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.hpd2__tile b { display: block; font-family: var(--font-sans,sans-serif); font-weight: 500; font-size: 0.4rem; color: #fff; line-height: 1.05; white-space: nowrap; }
.hpd2__tile span { font-family: var(--font-sans,sans-serif); font-size: 0.36rem; color: rgba(255,255,255,0.58); line-height: 1.1; white-space: nowrap; }
.hpd2__tile > div { min-width: 0; overflow: hidden; }
.hpd2__devs { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; }
.hpd2__dev { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08); border-radius: 9px; padding: 6px 7px; }
.hpd2__dev.on { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.3); }
.hpd2__devtop { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1px; }
.hpd2__devtop svg { width: 14px; height: 14px; box-sizing: border-box; padding: 2.5px; border-radius: 50%; background: rgba(255,255,255,0.09); color: rgba(255,255,255,0.75); fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.hpd2__dev.on .hpd2__devtop svg { color: #ffffff; background: linear-gradient(100deg, #ED173D 0%, #F49173 50%, #F1B528 100%); }
.hpd2__sw { width: 16px; height: 9px; border-radius: 999px; background: rgba(255,255,255,0.18); position: relative; flex: 0 0 auto; }
.hpd2__sw::after { content: ""; position: absolute; top: 1px; left: 1px; width: 7px; height: 7px; border-radius: 50%; background: #fff; transition: left .2s; }
.hpd2__dev.on .hpd2__sw { background: linear-gradient(100deg, #ED173D 0%, #F49173 50%, #F1B528 100%); }
.hpd2__dev.on .hpd2__sw::after { left: 8px; }
.hpd2__dev b { font-family: var(--font-sans,sans-serif); font-weight: 500; font-size: 0.42rem; color: #fff; line-height: 1.1; }
.hpd2__dev i { font-style: normal; font-family: var(--font-sans,sans-serif); font-size: 0.36rem; color: rgba(255,255,255,0.5); }
.hpd2__dev.on i { color: rgba(255,255,255,0.85); }
.hpd2__climate { display: flex; align-items: center; gap: 7px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08); border-radius: 9px; padding: 6px 8px; }
.hpd2__climate svg { width: 16px; height: 16px; flex: 0 0 auto; color: #ffffff; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.hpd2__cl b { display: block; font-family: var(--font-sans,sans-serif); font-weight: 500; font-size: 0.46rem; color: #fff; }
.hpd2__cl span { font-family: var(--font-sans,sans-serif); font-size: 0.38rem; color: rgba(255,255,255,0.55); }
.hpd2__energy { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08); border-radius: 9px; padding: 6px 8px; }
.hpd2__erow { display: flex; align-items: center; justify-content: space-between; }
.hpd2__erow span { font-family: var(--font-sans,sans-serif); font-size: 0.38rem; color: rgba(255,255,255,0.55); }
.hpd2__erow b { font-family: var(--font-sans,sans-serif); font-weight: 700; font-size: 0.5rem; color: #ffffff; }
.hpd2__bars { display: flex; align-items: flex-end; gap: 3px; height: 7px; margin-top: 2px; }
.hpd2__bars i { flex: 1; border-radius: 2px 2px 0 0; background: linear-gradient(180deg, #F1B528 0%, #F49173 55%, #ED173D 100%); }
.hpd2__nav { display: flex; align-items: center; justify-content: space-around; margin-top: auto; padding-top: 4px; border-top: 1px solid rgba(255,255,255,0.08); }
.hpd2__nav span { display: flex; flex-direction: column; align-items: center; gap: 1px; font-family: var(--font-sans,sans-serif); font-size: 0.3rem; color: rgba(255,255,255,0.45); }
.hpd2__nav svg { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.hpd2__nav .on { color: #ffffff; }
.hpd2__nav .on::after { content: ""; width: 6px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, #ED173D, #F1B528); }

/* ---- lock phone to a realistic 1:2 frame; screen fits inside it ---- */
/* Screen is taken out of flow so its content can never stretch the phone
   taller than width x 2 — the dashboard compresses to fit instead. */
.hphone__scr {
  position: absolute; inset: 5px; width: auto; height: auto;
  padding: 6px 8px; gap: 5px; justify-content: space-between; overflow: hidden;
}
/* ONE grid: every block spans the same content width at natural height;
   leftover screen height becomes equal gaps (space-between + uniform gap) */
.hphone__scr > * { flex: 0 0 auto; width: 100%; box-sizing: border-box; margin: 0; }
/* paired rows: equal columns (allowed to shrink), gutter identical to the vertical gap */
.hpd2__sum, .hpd2__devs { grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 5px; }
/* one box height + one internal padding across tile-type boxes;
   boxes clip their contents so no chip/label ink can spill past an edge */
.hpd2__tile, .hpd2__dev { height: 48px; min-height: 0; box-sizing: border-box; padding: 5px 8px; overflow: hidden; }
.hpd2__dev { display: flex; flex-direction: column; justify-content: center; gap: 2px; }
/* full labels — never truncate; wrap to a second line in the roomier tiles */
.hpd2__dev b { white-space: normal; overflow: visible; text-overflow: clip; font-size: 0.4rem; line-height: 1.12; letter-spacing: 0; text-align: left; }
.hpd2__devtop { align-self: stretch; margin-bottom: 1px; }
.hpd2__climate, .hpd2__energy { padding: 4px 8px; }
.hpd2__nav { margin-top: 0; padding-top: 2px; }
.hpd2__bars { height: 6px; }
.hpd2__spark { height: 9px; }

/* CTA */
.hero2__cta {
  flex: 0 0 auto; margin-top: 6px; display: inline-flex; align-items: center; gap: 13px;
  font-family: var(--font-sans,sans-serif); font-weight: 500; font-size: 0.9rem; color: #fff;
  text-decoration: none; padding: 13px 15px 13px 26px; border-radius: 999px;
  border: 1px solid transparent;
  background: var(--grad-warm);
  box-shadow: 0 16px 38px -16px rgba(0,0,0,0.72);
  transition: transform 0.2s, box-shadow 0.3s;
}
.hero2__cta:active { transform: scale(0.98); }
.hero2__cta-arrow { width: 29px; height: 29px; flex: 0 0 auto; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(255,255,255,0.7); color: #ffffff; }
.hero2__cta-arrow svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Scroll cue (replaces CTA) — reuses the hairline+chevron cue styling */
.hero2__cue {
  flex: 0 0 auto; margin-top: 6px; width: 100%;
  background: none; border: 0; cursor: pointer; padding: 6px 0;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: rgba(255,255,255,0.9); -webkit-tap-highlight-color: transparent;
}
.hero2__cue:hover .mhero__label, .hero2__cue:active .mhero__label { color: #fff; letter-spacing: 0.34em; }
.hero2__cue:hover .mhero__chev, .hero2__cue:active .mhero__chev { color: #fff; }

@media (prefers-reduced-motion: reduce){ .hgrape { display: none; } }
@media (max-height: 760px){
  .hero2__title { font-size: clamp(1.35rem, 6.1vw, 2.2rem); }
  .hero2__sub { font-size: 0.75rem; }
  .hcard__d { font-size: 0.58rem; }
}


/* ---- gradient pill edge-glitch containment: clip sheen + gradient to the rounded shape ---- */
.msol__btn, .hero2__cta, .cj__cta, .mc__submit, .scard__badge, .mbar-cta,
.hpd2__dev.on .hpd2__sw, .hpd2__dev.on .hpd2__devtop svg {
  overflow: hidden;
  isolation: isolate;
}

/* ---- perfect-circle lock: round icons/buttons stay square (gradient fills stay round) ---- */
.acc__caret, .hcard__ico, .scard__arrow, .hero2__cta-arrow, .cj__icon, .hpd2__devtop svg {
  aspect-ratio: 1 / 1; flex: 0 0 auto; box-sizing: border-box;
}