/* glealabs.com home (direction B, product showcase): a device-led hero whose phones rise and fan out with scroll, then a bento of products and capabilities. */
.hero { position: relative; overflow: hidden; padding: 48px 0 0; }
.hero-in { display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero-text { display: flex; flex-direction: column; align-items: center; }
.devices .phone.side .slot-s { display: none; }
.devices .phone.side.l .slot { padding-right: 56px; }
.devices .phone.side.r .slot { padding-left: 56px; }
.hero .display { margin-top: 20px; max-width: 18ch; }
.hero .lede { margin-top: 16px; max-width: 36ch; }
.hero-cta { margin-top: 32px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
[data-hero-in] { animation: rise var(--spring-dur) var(--spring) both; }
.hero .lede[data-hero-in] { animation-delay: 120ms; }
.hero-cta[data-hero-in] { animation-delay: 180ms; }
.devices { position: relative; margin-top: 48px; display: flex; justify-content: center; align-items: flex-start; width: 100%; animation: rise 800ms var(--spring) both; animation-delay: 200ms; }
.devices .phone.center { --w: min(230px, 62vw); z-index: 2; }
.devices .phone.side { --w: 190px; display: none; margin-top: 48px; }
.devices .phone.side.l { margin-right: -40px; }
.devices .phone.side.r { margin-left: -40px; }
.devices .phone .slot-s { max-width: 16ch; }
@media (min-width: 720px) { .devices .phone.side { display: block; } .devices .phone.center { --w: 250px; } }
@media (min-width: 960px) { .hero { padding-top: 64px; } }
@media (min-width: 960px) and (min-height: 700px) and (prefers-reduced-motion: no-preference) {
  .js .hero-pin { height: 175vh; }
  .js .hero-pin > .hero { position: sticky; top: var(--head); height: calc(100vh - var(--head)); padding-top: 64px; }
}

.sec { padding: 48px 0; }
@media (min-width: 960px) { .sec { padding: 64px 0; } }
.products .h2 { margin-top: 12px; max-width: 22ch; }

.bento { margin-top: 32px; display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
.b-card { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 20px; border-radius: var(--r-card); background: var(--surface); box-shadow: inset 0 0 0 1px var(--hair); overflow: hidden; transition: transform 280ms var(--spring); }
.b-card[data-card]:hover { box-shadow: inset 0 0 0 1px var(--hair-2); }
.b-card[data-card]:active { transform: scale(0.985); }
.b-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding-right: 44px; }
.b-card h3 { margin-top: 8px; font-size: 24px; line-height: 1.15; font-weight: 600; letter-spacing: -0.02em; }
.b-open { all: unset; cursor: pointer; }
.b-open::after { content: ""; position: absolute; inset: 0; z-index: 2; border-radius: var(--r-card); }
.b-open:focus-visible::after { outline: 2px solid var(--ink); outline-offset: -2px; }
.b-line { font-size: 17px; color: var(--ink); }
.b-desc { font-size: 15px; color: var(--ink-2); max-width: 44ch; }
.b-plus { position: absolute; right: 16px; top: 16px; width: 32px; height: 32px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--hair); display: flex; align-items: center; justify-content: center; transition: transform 280ms var(--spring); }
.b-card:hover .b-plus { transform: rotate(90deg); }
.b-plus svg { width: 16px; height: 16px; }
.b-phone { margin: 16px -20px -20px; display: flex; justify-content: center; height: 260px; overflow: hidden; }
.b-phone .phone { --w: 200px; }
.b-vis { margin-top: auto; padding-top: 16px; }
.b-vis .bars { display: flex; align-items: flex-end; gap: 8px; height: 72px; }
.b-vis .bars i { flex: 1; max-width: 28px; height: calc(var(--h) * 64px + 6px); border-radius: 4px 4px 0 0; background: var(--accent); transform-origin: 50% 100%; }
.b-vis.feed { display: grid; gap: 8px; }
.b-vis.feed span { display: block; height: 36px; border-radius: var(--r-ctl); background: var(--canvas); box-shadow: inset 0 0 0 1px var(--hair); position: relative; }
.b-vis.feed span::before { content: ""; position: absolute; left: 12px; top: 14px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.b-vis.feed span::after { content: ""; position: absolute; left: 28px; right: 40%; top: 15px; height: 6px; border-radius: 999px; background: var(--surface-2); }
.cap-card .ticks { margin-top: 12px; border-top: 1px solid var(--hair); }
.cap-card .ticks li { padding: 8px 0; border-bottom: 1px solid var(--hair); font-size: 15px; }
.how-inline { display: grid; gap: 12px; margin-top: 8px; }
.how-inline li { font-size: 15px; color: var(--ink-2); }
.how-inline b { color: var(--ink); font-weight: 600; }
@media (min-width: 720px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .b-card.big { grid-row: span 2; }
  .b-card.wide { grid-column: span 2; }
  .how-card { grid-column: span 2; }
  .how-inline { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 24px; }
}
@media (min-width: 960px) {
  .bento { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .b-card { padding: 24px; }
  .b-card.big { grid-row: span 2; }
  .b-card.wide { grid-column: span 2; }
  .b-phone { margin: 24px -24px -24px; height: 320px; }
  .b-phone .phone { --w: 230px; }
  .how-card { grid-column: span 3; }
}

.band { background: var(--ink); color: var(--canvas); }
.band .eyebrow { color: var(--ink-3); }
.band .big-mail { color: var(--canvas); }
.band .btn-primary { background: var(--canvas); color: var(--ink); }
.band .btn-primary:hover { background: #fff; color: #111; }
.band .btn-ghost { background: transparent; color: var(--canvas); border-color: rgba(255, 255, 255, 0.28); }
.band .btn-ghost:hover { border-color: rgba(255, 255, 255, 0.6); }
.band .inline-err { color: #FF8A80; }
.contact .big-mail { display: inline-block; margin-top: 24px; font-size: 32px; line-height: 1.15; font-weight: 600; letter-spacing: -0.02em; text-decoration-color: currentColor; text-decoration-thickness: 1px; word-break: break-word; }
@media (min-width: 960px) { .contact .big-mail { font-size: 44px; } }
.contact .actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
.contact .h2 { margin-top: 12px; }
@media (prefers-color-scheme: dark) { .band .btn-primary { background: #111; color: #F2F1EE; } .band .btn-ghost { color: #111; border-color: rgba(0, 0, 0, 0.3); } .band .inline-err { color: #C8372D; } }

/* app screens: an intentional launch-screen stand-in until the redesigned
   builds' screenshots arrive (swap each data-slot="…-screens" div) */
.slot.splash { background: var(--surface); gap: 4px; }
.slot.splash::after { display: none; }
.slot.splash img, .slot.splash .app-ic { width: 64px; height: 64px; border-radius: 15px; margin-bottom: 8px; }
.slot.splash .slot-t { font-size: 17px; }
.slot.splash .slot-s { font-size: 13px; max-width: 18ch; }
.slot-n { position: absolute; left: 0; right: 0; bottom: calc(var(--w, 240px) * 0.1); font-size: 12px; color: var(--ink-2); }
.devices .phone.side .slot-n { display: none; }

/* Labs Cares: one quiet band before contact */
.cares { padding-top: 0; }
.cares-in { display: grid; gap: 16px 24px; align-items: center; padding: 24px; border-radius: var(--r-card); background: var(--surface); box-shadow: inset 0 0 0 1px var(--hair); }
.cares-mk { position: relative; width: 40px; height: 40px; border-radius: 10px; background: var(--ink); }
.cares-mk::after { content: ""; position: absolute; left: 12px; top: 12px; width: 16px; height: 16px; border-radius: 3px; background: var(--accent); }
.cares-h { margin-top: 8px; font-size: 24px; line-height: 1.15; font-weight: 600; letter-spacing: -0.02em; }
.cares-in .body-l { margin-top: 8px; max-width: 54ch; }
.cares-in .btn { justify-self: start; }
@media (min-width: 860px) { .cares-in { grid-template-columns: auto 1fr auto; padding: 32px; } }

/* ---------------- colour (owner, 2026-09-25: "add some design life colour")
   Glea Labs amber is the brand colour (hero highlight, primary CTA, warm
   band). Each product carries its own accent as a tinted surface:
   LabsIQ's brand blue #1F6FD6, Labs Alerts coral.
   Text on colour keeps AA: accent text uses the darker "ink" of each hue. */
:root {
  --brand: #E8862E; --brand-hover: #DB7A22; --brand-ink: #9A4E0E; --brand-tint: #FCF0E6;
  --pc: #66CFEA; --pc-ink: #0A6580; --pc-tint: #EDF9FC; --pc-chip: rgba(102, 207, 234, 0.26); --pc-line: rgba(102, 207, 234, 0.5);
  --iq: #1F6FD6; --iq-ink: #185BB3; --iq-tint: #EDF3FC; --iq-chip: rgba(31, 111, 214, 0.12); --iq-line: rgba(31, 111, 214, 0.28);
  --al: #EF6A4C; --al-ink: #A8412A; --al-tint: #FEF1EE; --al-chip: rgba(239, 106, 76, 0.14); --al-line: rgba(239, 106, 76, 0.34);
}
@media (prefers-color-scheme: dark) {
  :root {
    --brand-ink: #F09A4E; --brand-tint: #2A2118;
    --pc-ink: #7DD7EE; --pc-tint: #182A2F; --pc-chip: rgba(102, 207, 234, 0.18); --pc-line: rgba(102, 207, 234, 0.34);
    --iq-ink: #8CB6F4; --iq-tint: #16202E; --iq-chip: rgba(31, 111, 214, 0.26); --iq-line: rgba(79, 145, 230, 0.4);
    --al-ink: #F59A83; --al-tint: #2C1C18; --al-chip: rgba(239, 106, 76, 0.2); --al-line: rgba(239, 106, 76, 0.38);
  }
}
[data-tone="pc"] { --t: var(--pc); --t-ink: var(--pc-ink); --t-tint: var(--pc-tint); --t-chip: var(--pc-chip); --t-line: var(--pc-line); --t-on: #111111; }
[data-tone="iq"] { --t: var(--iq); --t-ink: var(--iq-ink); --t-tint: var(--iq-tint); --t-chip: var(--iq-chip); --t-line: var(--iq-line); --t-on: #FFFFFF; }
[data-tone="al"] { --t: var(--al); --t-ink: var(--al-ink); --t-tint: var(--al-tint); --t-chip: var(--al-chip); --t-line: var(--al-line); --t-on: #111111; }
.d-pc { background: var(--pc) !important; }
.d-iq { background: var(--iq) !important; }
.d-al { background: var(--al) !important; }

/* brand amber: primary CTA and the hero highlight */
.btn-brand { background: var(--brand); color: #111111; }
.btn-brand:hover { background: var(--brand-hover); color: #111111; }
.hero h1 .mark { position: relative; isolation: isolate; }
.hero h1 .mark::after { content: ""; position: absolute; left: -0.04em; right: -0.04em; bottom: 0.08em; height: 0.3em; border-radius: 4px; background: var(--brand); z-index: -1; transform-origin: 0 50%; animation: mark-in 800ms var(--spring) 700ms both; }
@keyframes mark-in { from { transform: scaleX(0); } to { transform: none; } }
@media (prefers-color-scheme: dark) { .hero h1 .mark::after { height: 0.1em; bottom: -0.02em; } }

/* colour-coded product dots: hero pill, nav, menu, footer */
.pdots { display: inline-flex; gap: 3px; align-items: center; }
.pill.trio { gap: 10px; }
.pill .pdots i { width: 8px; height: 8px; }
.nav .pdots { margin-left: 4px; vertical-align: 1px; }
.nav .pdots i, .menu-links .pdots i { display: block; width: 6px; height: 6px; border-radius: 50%; }
.menu-links .pdots { margin-left: 12px; gap: 5px; }
.menu-links .pdots i { width: 9px; height: 9px; }
.fdot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 8px; }

/* the one hero colour moment: a soft multi-accent mesh behind the devices (CSS only; static under reduced motion) */
.devices .phone { z-index: 1; }
.devices .phone.center { z-index: 2; }
.devices::before { content: ""; position: absolute; left: 50%; top: -34%; width: min(1240px, 200vw); height: 140%; margin-left: calc(min(1240px, 200vw) / -2); pointer-events: none; z-index: 0;
  background:
    radial-gradient(22% 30% at 50% 22%, rgba(102, 207, 234, 0.55), rgba(102, 207, 234, 0) 72%),
    radial-gradient(24% 34% at 27% 46%, rgba(31, 111, 214, 0.28), rgba(31, 111, 214, 0) 72%),
    radial-gradient(24% 34% at 73% 46%, rgba(239, 106, 76, 0.28), rgba(239, 106, 76, 0) 72%),
    radial-gradient(30% 26% at 40% 66%, rgba(232, 134, 46, 0.24), rgba(232, 134, 46, 0) 72%),
    radial-gradient(26% 24% at 62% 70%, rgba(102, 207, 234, 0.26), rgba(102, 207, 234, 0) 72%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 58%, transparent 88%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 58%, transparent 88%);
  animation: mesh-drift 22s ease-in-out infinite alternate; }
@keyframes mesh-drift { from { transform: translate3d(-2%, 0, 0) scale(1); } to { transform: translate3d(2%, -3%, 0) scale(1.06); } }

/* product cards: tinted surfaces, accent chips and visuals */
.b-card[data-tone] { background: var(--t-tint); box-shadow: inset 0 0 0 1px var(--t-line); }
.b-card[data-tone]:hover { box-shadow: inset 0 0 0 1px var(--t); }
.b-card[data-tone] .b-top .eyebrow { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; background: var(--t-chip); color: var(--t-ink); font-weight: 600; letter-spacing: 0.06em; }
.b-card[data-tone] .b-plus { background: var(--surface); box-shadow: inset 0 0 0 1px var(--t-line); color: var(--t-ink); }
.b-card[data-tone] .pill { background: var(--surface); }
.b-card[data-tone="iq"] .b-vis .bars i { background: var(--iq); }
.b-card[data-tone="al"] .b-vis.feed span { background: var(--surface); box-shadow: inset 0 0 0 1px var(--t-line); }
.b-card[data-tone="al"] .b-vis.feed span::before { background: var(--al); }
.b-card[data-tone="al"] .b-vis.feed span::after { background: var(--al-chip); }
.cap-card .eyebrow { color: var(--brand-ink); }

/* app launch screens take their product's tint */
.slot.splash[data-slot="pc-screens"] { background: var(--pc-tint); }
.slot.splash[data-slot="iq-screens"] { background: var(--iq-tint); }
.slot.splash[data-slot="al-screens"] { background: var(--al-tint); }

/* dialog wears the tone of the card it came from */
.dlg[data-tone] .dlg-plate { background: var(--t-tint); box-shadow: inset 0 0 0 1px var(--t-line), var(--lift); }
.dlg[data-tone] .eyebrow { color: var(--t-ink); }
.dlg[data-tone] .btn-primary { background: var(--t); color: var(--t-on); }
.dlg[data-tone] .btn-primary:hover { filter: brightness(0.95); }
.dlg[data-tone] .dlg-body dl { border-top: 1px solid var(--t-line); padding-top: 16px; }

/* warm band: Labs Cares sits on the brand tint, full width */
.cares { padding: 48px 0; background: var(--brand-tint); border-top: 1px solid var(--hair); }
@media (min-width: 960px) { .cares { padding: 64px 0; } }
.cares-in { padding: 0; background: none; box-shadow: none; border-radius: 0; }
@media (min-width: 860px) { .cares-in { padding: 0; } }
.cares .eyebrow { color: var(--brand-ink); }
.band .big-mail { text-decoration-color: var(--brand); text-decoration-thickness: 2px; }
.hero-text { position: relative; z-index: 3; }
