/*
 * home-glow.css: soft brand-gradient skin for home.html, loaded after the
 * other landing styles.
 *
 * One light, many placements: every section uses the same two brand washes
 * (EasyCompare green and brand blue) at the same strength, sized in pixels so
 * tall sections don't dilute them. What changes per section is where the light
 * sits. Inside sections, each flagship feature gets a small halo behind its
 * visual that alternates side and hue, so the glow carries all the way down.
 */
:root {
  --glow-base: #f5f7fb;
  --glow-mint: rgba(206, 239, 226, 0.7);
  --glow-blue: rgba(218, 228, 255, 0.7);
  --glow-mint-soft: rgba(196, 236, 220, 0.62);
  --glow-blue-soft: rgba(208, 221, 255, 0.66);
  --glow-shadow: 0 18px 50px rgba(14, 23, 38, 0.11), 0 2px 8px rgba(14, 23, 38, 0.06);
}

/* Hero: green wash from the top left, blue from the top right. */
body {
  background:
    radial-gradient(70% 1000px at 14% 0, #daf3ea 0%, rgba(218, 243, 234, 0) 62%),
    radial-gradient(60% 900px at 88% 80px, #e2eaff 0%, rgba(226, 234, 255, 0) 62%),
    var(--glow-base);
  background-repeat: no-repeat;
}

.hm-nav { background: rgba(245, 247, 251, 0.72); }
.hm-subnav { background: rgba(245, 247, 251, 0.9); }
.hm-view-bar { background: transparent; }

/* Hero: one headline, three rows. */
.hm-hero-row { display: block; }

.hm-hero { background: none; }

/* Section light. Each wash is centred one radius below the section's top
   edge, so it starts at zero there and no seam shows between sections. */
.hm-cat,
.hm-book,
.hm-siblings {
  --g1: var(--glow-mint);
  --g2: var(--glow-blue);
  --g1-x: 12%;
  --g2-x: 88%;
  --g2-y: 520px;
  overflow-x: clip;
  background:
    radial-gradient(min(820px, 95vw) 340px at var(--g1-x) 340px, var(--g1), rgba(255, 255, 255, 0) 100%),
    radial-gradient(min(760px, 90vw) 420px at var(--g2-x) var(--g2-y), var(--g2), rgba(255, 255, 255, 0) 100%),
    transparent;
  background-repeat: no-repeat;
  border-top: 1px solid rgba(14, 23, 38, 0.06);
}

#visual   { --g1-x: 10%; --g2-x: 90%; --g2-y: 560px; }
#table    { --g1: var(--glow-blue); --g2: var(--glow-mint); --g1-x: 86%; --g2-x: 14%; --g2-y: 600px; }
#book     { --g1-x: 50%; --g2-x: 92%; --g2-y: 420px; }
#workflow { --g1-x: 88%; --g2: var(--glow-blue); --g2-x: 10%; --g2-y: 640px; }
#realtime { --g1: var(--glow-blue); --g2: var(--glow-mint); --g1-x: 18%; --g2-x: 80%; --g2-y: 520px; }
#siblings { --g1: var(--glow-blue); --g1-x: 50%; --g2: var(--glow-mint); --g2-x: 8%; --g2-y: 460px; }
#pricing  { --g1-x: 30%; --g2-x: 72%; --g2-y: 360px; }

.hm-cat .hm-cat-band {
  background: transparent;
  border-block: 0;
}

/* Feature halos: a soft pool of light behind each flagship visual,
   alternating side and hue down the page. */
.hm-feats:not(.hm-feats--bento) > .hm-feat .hm-feat-media {
  position: relative;
  isolation: isolate;
}
.hm-feats:not(.hm-feats--bento) > .hm-feat .hm-feat-media::before {
  content: "";
  position: absolute;
  inset: -70px -12%;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(50% 50% at 22% 45%, var(--glow-mint-soft), rgba(255, 255, 255, 0) 100%);
}
.hm-feats:not(.hm-feats--bento) > .hm-feat:nth-child(even) .hm-feat-media::before {
  background: radial-gradient(50% 50% at 78% 55%, var(--glow-blue-soft), rgba(255, 255, 255, 0) 100%);
}

/* Secondary feature grids get one broad wash behind the whole grid. */
.hm-feats--bento {
  position: relative;
  isolation: isolate;
}
.hm-feats--bento::before {
  content: "";
  position: absolute;
  inset: -60px -8%;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(45% 45% at 25% 35%, var(--glow-blue-soft), rgba(255, 255, 255, 0) 100%),
    radial-gradient(45% 45% at 75% 70%, var(--glow-mint-soft), rgba(255, 255, 255, 0) 100%);
}

/* Supporting feature cards: the visual bleeds edge to edge across the top of
   the card, with the number, title and caption underneath. Each card is a
   subgrid of three rows, so both cards in a row share the visual's height and
   their titles line up. Outline mode lays these cards out as rows, so it
   keeps its own styles. */
html:not(.hm-outline) .hm-feats--bento > .hm-feat {
  display: grid;
  grid-row: span 3;
  grid-template-rows: subgrid;
  row-gap: 0;
  container-type: inline-size;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(14, 23, 38, 0.07);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 12px 36px rgba(14, 23, 38, 0.07), 0 1px 3px rgba(14, 23, 38, 0.04);
}
html:not(.hm-outline) .hm-feats--bento > .hm-feat > * { grid-column: 1; }
html:not(.hm-outline) .hm-feats--bento > .hm-feat .hm-feat-media {
  grid-row: 1;
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
  border-bottom: 1px solid rgba(14, 23, 38, 0.06);
  background:
    radial-gradient(80% 90% at 0% 0%, rgba(206, 239, 226, 0.5), rgba(206, 239, 226, 0) 70%),
    radial-gradient(70% 90% at 100% 100%, rgba(218, 228, 255, 0.5), rgba(218, 228, 255, 0) 70%),
    #f7f9fc;
}
html:not(.hm-outline) .hm-feats--bento > .hm-feat:nth-child(even) .hm-feat-media {
  background:
    radial-gradient(80% 90% at 100% 0%, rgba(218, 228, 255, 0.5), rgba(218, 228, 255, 0) 70%),
    radial-gradient(70% 90% at 0% 100%, rgba(206, 239, 226, 0.45), rgba(206, 239, 226, 0) 70%),
    #f7f9fc;
}
html:not(.hm-outline) .hm-feats--bento > .hm-feat .hm-feat-head { grid-row: 2; }
html:not(.hm-outline) .hm-feats--bento > .hm-feat .hm-feat-caption { grid-row: 3; }
html:not(.hm-outline) .hm-feats--bento > .hm-feat .hm-feat-frame {
  width: 100%;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
/* Full card width; anything taller than about 2:3 of the card's width is
   cropped from the bottom so the top of the screenshot stays in view. */
html:not(.hm-outline) .hm-feats--bento > .hm-feat .hm-feat-frame img,
html:not(.hm-outline) .hm-feats--bento > .hm-feat .hm-feat-frame video,
html:not(.hm-outline) .hm-feats--bento > .hm-feat .hm-feat-frame svg {
  display: block;
  width: 100%;
  height: auto;
  max-height: 68cqw;
  object-fit: cover;
  object-position: top center;
}
html:not(.hm-outline) .hm-feats--bento > .hm-feat .hm-feat-head {
  padding: clamp(22px, 2.4vw, 30px) clamp(22px, 2.4vw, 30px) 0;
}
html:not(.hm-outline) .hm-feats--bento > .hm-feat .hm-feat-caption {
  padding: 0 clamp(22px, 2.4vw, 30px) clamp(24px, 2.6vw, 32px);
}

/* Cards and frames: rounder, with a soft shadow. */
.hm-feat-frame {
  border-radius: 20px;
  border-color: rgba(14, 23, 38, 0.08);
  box-shadow: var(--glow-shadow);
}

.hm-footer { background: rgba(14, 23, 38, 0.035); }
