﻿/* Carelo v2 Â· Home (index.html) â€” page-only rules. Prefix hm-.
   Everything else comes from v2/site.css. */

/* ---------------------------------------------------------------
   1b  The product on screen: copy + chapter list left, a large laptop
       right whose five real screens cross-fade (site.js .slides)
   --------------------------------------------------------------- */
.hm-reveal {
  overflow: hidden;
  padding-block: clamp(56px, 6.4vw, 112px);
  background:
    radial-gradient(760px 520px at 70% 40%, rgba(227, 184, 119, .08), transparent 64%),
    radial-gradient(800px 440px at 0% 62%, rgba(47, 107, 255, .07), transparent 64%),
    var(--night);
}
.hm-reveal-in {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  align-items: center;
  column-gap: clamp(24px, 3.4vw, 64px);
}
.hm-reveal-copy > * + * { margin-top: 18px; }
.hm-reveal-copy .eyebrow + h2 { margin-top: 20px; }
.hm-reveal h2 { font-size: clamp(1.85rem, 1.1rem + 1.9vw, 3rem); }

.hm-reel { list-style: none; margin-top: 28px !important; border-top: 1px solid var(--rule); }
.hm-reel li {
  position: relative;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  column-gap: 8px;
  padding: 12px 0 13px;
  border-bottom: 1px solid var(--rule);
  transition: opacity .6s var(--ease);
}
.hm-reel .n { grid-row: span 2; padding-top: 4px; font-size: .64rem; font-weight: 600; letter-spacing: .14em; color: var(--gold); }
.hm-reel b { font-size: .95rem; font-weight: 500; line-height: 1.35; color: var(--fg); }
.hm-reel li > span:last-child { margin-top: 2px; font-size: .8rem; line-height: 1.5; color: var(--fg-3); }
.hm-reel.live li { opacity: .46; }
.hm-reel.live li.on { opacity: 1; }
.hm-reel.live li.on::after {
  content: ""; position: absolute; left: 0; bottom: -1px; height: 1px; width: 100%;
  background: var(--gold);
  transform-origin: 0 50%;
  animation: hm-bar 5.6s linear both;
}
@keyframes hm-bar { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* the stage crops the desk photo around the laptop and melts its edges */
.hm-stage {
  position: relative;
  margin-right: calc(-1 * var(--gut));
}
.hm-stage-clip {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 93%, transparent 100%), linear-gradient(180deg, transparent 0, #000 8%, #000 86%, transparent 100%);
  -webkit-mask-composite: source-in;
          mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 93%, transparent 100%), linear-gradient(180deg, transparent 0, #000 8%, #000 86%, transparent 100%);
          mask-composite: intersect;
}
.hm-laptop {
  width: 140%;
  margin: -15% 0 -13.3% -17%;
}
.hm-laptop .screen img { object-position: top left; }
.hm-chips .glass { position: absolute; z-index: 3; width: clamp(150px, 13vw, 200px); padding: 13px 15px 14px; }
.hm-chips .glass .v { font-size: 1.35rem; }
.hm-chips .glass .v small { font-size: .6em; margin-left: 2px; color: var(--gold); }
.hm-chips .glass p { font-size: .74rem; }
.hm-c1 { left: 0; top: 11%; }
.hm-c2 { right: 1%; top: 22%; }
.hm-c3 { left: 2%; bottom: 14%; }

/* ---------------------------------------------------------------
   2  Proof strip: six numbers, then two marquee lines
   --------------------------------------------------------------- */
@media (min-width: 1080px) {
  .numbers.hm-six { --n: 6; }
  .hm-six .stat { padding-inline: clamp(14px, 1.5vw, 28px); }
  .hm-six .stat b { font-size: clamp(2.5rem, 1.6rem + 2.2vw, 4.2rem); }
}
.hm-marquees { margin-top: clamp(32px, 4vw, 56px); }

/* ---------------------------------------------------------------
   3  Three doors + statement
   --------------------------------------------------------------- */
.hm-doors .pcard p { max-width: 42ch; }
.hm-statement .wrap > p { max-width: 30ch; }

/* ---------------------------------------------------------------
   3b  Personal Plan
   --------------------------------------------------------------- */
.hm-price { font-size: 1.05rem; color: var(--fg-2); }
.hm-price b { font-weight: 500; }

/* ---------------------------------------------------------------
   4  Flagship capabilities
   --------------------------------------------------------------- */
.hm-h {
  font-size: clamp(1.6rem, 1rem + 1.6vw, 2.55rem);
  font-weight: 300;
  line-height: 1.12;
  letter-spacing: -.028em;
  color: var(--fg);
}
.hm-n { margin-right: 12px; color: var(--fg); letter-spacing: .08em; }
.hm-mark { font-style: normal; margin-right: 6px; }
.hm-pf {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  max-width: 54ch;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
  font-size: .92rem;
  line-height: 1.55;
  color: var(--fg);
}
.hm-pf .ic { margin-top: 3px; }
.split-copy .hm-pf { margin-top: 26px; }
.hm-caps .sh.center { margin-bottom: clamp(48px, 6vw, 96px); }
.hm-cap + .hm-live, .hm-live + .hm-cap { margin-top: clamp(80px, 9vw, 150px); }
.hm-desks { margin-top: 22px; font-size: .72rem; letter-spacing: .04em; }
.hm-desks > * + *::before { margin: 0 9px 2px; }

/* 02: header row, two screens side by side, four points */
.hm-live-head { margin-bottom: clamp(28px, 3.4vw, 48px); }
.hm-live-head .intro { font-size: .98rem; }
.hm-live-shots {
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
  gap: var(--gap);
  align-items: stretch;
}
.hm-map { display: flex; flex-direction: column; }
.hm-map .zoom { flex: 1; min-height: 160px; }
.hm-map .crop { position: absolute; inset: 0; aspect-ratio: auto; }
.hm-map .crop picture { display: block; height: 100%; }
.hm-live-foot {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(20px, 4vw, 72px);
  align-items: start;
  margin-top: clamp(28px, 3.4vw, 48px);
}
.hm-live-foot .hm-pf { margin: 0; }
.hm-lt { padding-top: 18px; border-top: 1px solid var(--rule); font-size: .9rem; line-height: 1.6; color: var(--fg-2); }

/* 04: two Carelo AI screens, one overlapping the other */
.hm-duo { position: relative; padding-bottom: 16%; }
.hm-duo-a { width: 80%; margin-left: auto; }
.hm-duo-b { position: absolute !important; left: 0; bottom: 0; width: 76%; z-index: 1; }

/* 05: the printed pages themselves, on paper */
.hm-exports .split-media > .glass { left: auto; right: clamp(-40px, -2vw, -12px); bottom: 2%; }
.hm-papers { position: relative; aspect-ratio: 10 / 7.4; }
.hm-sheet { position: absolute; display: block; cursor: zoom-in; }
.hm-sheet img {
  width: 100%; height: auto;
  border-radius: 6px;
  box-shadow: 0 1px 2px rgba(16, 26, 51, .14), 0 34px 60px -30px rgba(16, 26, 51, .62);
  transition: transform .8s var(--ease);
}
.hm-sheet.a { left: 2%; top: 7%; width: 50%; transform: rotate(-3.5deg); }
.hm-sheet.b { right: 0; top: 0; width: 60%; transform: rotate(2.5deg); }
.hm-sheet:hover img { transform: translateY(-6px); }

.hm-allfeat { margin-top: clamp(56px, 7vw, 110px); }

/* ---------------------------------------------------------------
   5  The apps: two phone frames, offset
   --------------------------------------------------------------- */
.hm-phones {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(16px, 3vw, 44px);
  max-width: 520px;
  margin-inline: auto;
  width: 100%;
}
.hm-ph.b { margin-top: clamp(32px, 5vw, 72px); }
.hm-ph .bezel { display: block; aspect-ratio: 780 / 1688; }
.hm-ph .bezel picture { display: block; height: 100%; }
.hm-stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hm-store {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-height: 54px;
  padding: 7px 16px 7px 7px;
  border: 1px solid var(--rule-2);
  border-radius: var(--r);
  background: rgba(255, 255, 255, .02);
  color: var(--fg);
  text-decoration: none;
  transition: border-color .3s var(--ease), background-color .3s var(--ease);
}
.hm-store:hover { color: var(--fg); border-color: rgba(200, 215, 255, .5); background: rgba(255, 255, 255, .05); }
.hm-store img { width: 38px; height: 38px; border-radius: 9px; }
.hm-store svg { width: 18px; height: 18px; fill: currentColor; stroke: none; flex: none; }
.hm-store span { display: flex; flex-direction: column; line-height: 1.15; }
.hm-store i { font-style: normal; font-size: .64rem; letter-spacing: .06em; color: var(--fg-3); }
.hm-store b { font-size: .98rem; font-weight: 500; }

/* ---------------------------------------------------------------
   6  Everything else: a quiet desk photo behind the grid
   --------------------------------------------------------------- */
.hm-rest { overflow: hidden; }
.hm-rest-bg {
  position: absolute; left: 0; right: 0; top: 0;
  height: min(78%, 720px);
  opacity: .26;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, .5) 45%, transparent 100%);
          mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, .5) 45%, transparent 100%);
}
.hm-rest-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.hm-rest > .wrap { position: relative; }
.hm-rest .feat { background: rgba(7, 14, 32, .62); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }

/* ---------------------------------------------------------------
   NEW  Paperwork written inside Carelo
   --------------------------------------------------------------- */
.hm-docs { position: relative; padding-bottom: 18%; }
.hm-docs-photo { width: 84%; aspect-ratio: 4 / 3; }
.hm-docs-shot { position: absolute !important; right: 0; bottom: 0; width: 54%; }

/* ---------------------------------------------------------------
   NEW  Trust in one line
   --------------------------------------------------------------- */
.hm-trust { border-top: 1px solid var(--line); }
.hm-trust-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: clamp(20px, 3vw, 48px);
  row-gap: 14px;
  margin-bottom: clamp(24px, 3vw, 40px);
}
.hm-trust-head .eyebrow { flex-basis: 100%; }
.hm-trust-line { flex: 1 1 520px; font-size: clamp(1.45rem, 1rem + 1.3vw, 2.25rem); line-height: 1.15; }
.stat b.hm-word { font-size: clamp(2rem, 1.3rem + 1.8vw, 3.2rem); letter-spacing: -.035em; }
@media (min-width: 761px) {
  .numbers.hm-four { --n: 4; }
  .hm-four .stat { border-top: 0 !important; }
  .hm-four .stat + .stat { border-left: 1px solid var(--rule) !important; }
}

/* ---------------------------------------------------------------
   6a  Learn and compare: three hairline link lists
   --------------------------------------------------------------- */
.hm-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); align-items: start; }
.hm-links > div {
  padding: clamp(20px, 2vw, 30px);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  background: var(--surface);
}
.hm-links h3 { margin-bottom: 10px; font-size: .68rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); }
.hm-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 9px 0;
  border-top: 1px solid var(--rule);
  font-size: .9rem;
  line-height: 1.45;
  color: var(--fg-2);
  text-decoration: none;
  transition: color .3s var(--ease);
}
.hm-links h3 + a { border-top: 0; }
.hm-links a::after {
  content: ""; flex: none; width: 12px; height: 12px;
  background: var(--accent); opacity: .55;
  -webkit-mask: var(--m2) center / contain no-repeat;
          mask: var(--m2) center / contain no-repeat;
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.hm-links a:hover { color: var(--fg); }
.hm-links a:hover::after { opacity: 1; transform: translateX(3px); }

/* ---------------------------------------------------------------
   Laptop 13â€“14" (short): every section a composed screen
   --------------------------------------------------------------- */
@media (min-width: 1080px) and (max-height: 820px) {
  .hm-reveal { padding-block: 48px 56px; }
  .hm-reel li { padding: 9px 0 10px; }
  .hm-reel li > span:last-child { font-size: .76rem; }
  .hm-doors .pcard { aspect-ratio: 4 / 4.6; }
  .hm-caps .sh.center { margin-bottom: 56px; }
}

/* ---------------------------------------------------------------
   Large screens: keep the laptop and its type in proportion
   --------------------------------------------------------------- */
@media (min-width: 1600px) {
  .hm-reveal-in { grid-template-columns: minmax(0, 4.4fr) minmax(0, 7.6fr); }
  .hm-stage { margin-right: calc(-1 * min(180px, (100vw - 1360px) / 2)); }
}

/* ---------------------------------------------------------------
   Tablet
   --------------------------------------------------------------- */
@media (max-width: 1079px) {
  .hm-reveal-in { grid-template-columns: minmax(0, 1fr); row-gap: 32px; }
  .hm-stage { margin-inline: calc(-1 * var(--gut)); }
  .hm-reel { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 20px; }
  .hm-live-foot { grid-template-columns: minmax(0, 1fr); }
  .hm-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hm-links > div:nth-child(2) { grid-row: span 2; }
}

/* ---------------------------------------------------------------
   Phone (<= 760): its own layout
   --------------------------------------------------------------- */
@media (max-width: 760px) {
  /* reveal: heading, then the laptop full width, the three numbers, the five captions */
  .hm-reveal { padding-block: 52px 48px; }
  .hm-reveal-in { display: flex; flex-direction: column; row-gap: 0; }
  .hm-reveal-copy { display: contents; }
  .hm-reveal-copy > .eyebrow { order: 1; align-self: flex-start; }
  .hm-reveal-copy > h2 { order: 2; margin-top: 16px; }
  .hm-reveal-copy > .intro { order: 3; margin-top: 12px; }
  .hm-stage { order: 4; margin-top: 18px; }
  .hm-reel { order: 5; display: block; margin-top: 8px !important; }
  .hm-laptop { width: 176%; margin: -20% 0 -17.3% -38%; }
  .hm-stage-clip { -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 7%, #000 88%, transparent 100%); mask-image: linear-gradient(180deg, transparent 0, #000 7%, #000 88%, transparent 100%); }
  .hm-chips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding-inline: var(--gut); margin-top: 6px; }
  .hm-chips .glass { position: static; width: auto; padding: 11px 11px 12px; }
  .hm-chips .glass .k { font-size: .56rem; letter-spacing: .12em; }
  .hm-chips .glass .v { font-size: 1.1rem; margin-top: 6px; }
  .hm-chips .glass p { font-size: .68rem; }
  .hm-reel li { padding: 10px 0 11px; }
  .hm-reel b { font-size: .9rem; }

  .hm-h { font-size: clamp(1.5rem, 6.6vw, 1.9rem); }
  .hm-pf { font-size: .86rem; }
  .hm-desks { font-size: .68rem; }

  /* 02: the two screens become a swipe row */
  .hm-live-shots {
    display: flex;
    gap: 12px;
    margin-inline: calc(-1 * var(--gut));
    padding-inline: var(--gut);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gut);
    scrollbar-width: none;
  }
  .hm-live-shots::-webkit-scrollbar { display: none; }
  .hm-live-shots > .frame { flex: 0 0 86%; scroll-snap-align: start; }
  .hm-live-shots > .hm-map { flex-basis: 64%; }

  .hm-duo { padding-bottom: 20%; }
  .hm-duo-a { width: 84%; }
  .hm-duo-b { width: 86%; }
  .hm-exports .split-media > .glass { right: auto; }
  .hm-papers { aspect-ratio: 10 / 8; }

  .hm-phones { max-width: none; gap: 14px; }
  .hm-ph.b { margin-top: 36px; }
  .hm-stores { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .hm-store { padding: 6px 10px 6px 6px; gap: 8px; min-height: 50px; }
  .hm-store img { width: 32px; height: 32px; }
  .hm-store svg { width: 15px; height: 15px; }
  .hm-store b { font-size: .86rem; }
  .hm-store i { font-size: .58rem; }

  .hm-rest-bg { height: 420px; }
  .hm-docs { padding-bottom: 22%; }
  .hm-docs-photo { width: 88%; }
  .hm-docs-shot { width: 62%; }

  .hm-trust-line { flex-basis: 100%; }
  .stat b.hm-word { font-size: 1.9rem; }

  /* link lists: two columns, the long guide list spans both with its links in two columns */
  .hm-links { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .hm-links > div { padding: 15px 14px; }
  .hm-links > div:nth-child(2) { grid-row: auto; grid-column: 1 / -1; order: 3; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 14px; }
  .hm-links > div:nth-child(2) h3 { grid-column: 1 / -1; }
  .hm-links > div:nth-child(2) a:nth-of-type(2) { border-top: 0; }
  .hm-links a { font-size: .8rem; padding: 8px 0; gap: 8px; }
  .hm-links a::after { width: 10px; height: 10px; }
}
