/* horizonshoptracker.com: realistic devices and the home hero. Same build as spindlesoftware.com and
   spindleloans.com (see ~/.claude/web-craft.md), with an Android phone instead of an iPhone.
   Every size inside a phone is in em: 1em = 1/30 of the phone's width (--dw). */
:root { --ease-out: cubic-bezier(.16, 1, .3, 1);
  --shadow-lg: 0 40px 80px -24px rgba(0, 64, 47, .32), 0 16px 32px -16px rgba(0, 0, 0, .22); }

/* ---------- Phone (Android) ---------- */
.device { --dw: 260px; position: relative; width: var(--dw); font-size: calc(var(--dw) / 30); flex: none; }
.d-frame { position: relative; border-radius: 4.2em; padding: .3em;
  background: linear-gradient(140deg, #3b4048 0%, #1e2227 18%, #4a5059 34%, #15181c 52%, #3d434b 70%, #1b1e22 86%, #474d55 100%);
  box-shadow: 0 0 0 .06em rgba(0, 0, 0, .6), inset 0 0 0 .06em rgba(255, 255, 255, .25), inset 0 0 .3em rgba(0, 0, 0, .5), var(--shadow-lg); }
.d-bezel { border-radius: 3.95em; padding: .7em; background: #030405; box-shadow: inset 0 0 0 .1em #16191d; }
.d-screen { position: relative; border-radius: 3.3em; overflow: hidden; background: #fff; aspect-ratio: 390 / 844; isolation: isolate; }
.d-status { position: absolute; inset: 0 0 auto; height: 3.6em; display: flex; align-items: center; justify-content: space-between;
  padding: .2em 2.2em 0 2.3em; font-weight: 600; color: #111; background: #fff; z-index: 3; }
.d-time { font-size: 1.2em; font-variant-numeric: tabular-nums; }
.d-icons { display: flex; gap: .45em; align-items: center; }
.d-icons svg { height: .95em; width: auto; fill: currentColor; }
.d-cam { position: absolute; top: 1.15em; left: 50%; width: 1.35em; height: 1.35em; margin-left: -.675em; border-radius: 50%; z-index: 5;
  background: radial-gradient(circle at 38% 36%, #3a4a78 0 10%, #0e1424 32%, #000 70%); box-shadow: 0 0 0 .12em #000; }
.d-view { position: absolute; inset: 3.6em 0 0; background: #fff; }
.d-view img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: top;
  transition: opacity .6s var(--ease-out), transform .8s var(--ease-out); }
.d-view img:not(.on) { opacity: 0; transform: translateX(6%); }
.d-gesture { position: absolute; left: 50%; bottom: .55em; width: 7.5em; height: .32em; margin-left: -3.75em; border-radius: 1em; background: rgba(0, 0, 0, .55); z-index: 4; }
.d-btn { position: absolute; right: -.26em; width: .3em; border-radius: 0 .2em .2em 0; background: linear-gradient(90deg, #2a2e34, #6b717a 55%, #2a2e34); }
.d-vol { top: 20%; height: 8.4em; } .d-power { top: 37%; height: 4.4em; }
.d-glare { position: absolute; inset: .3em; border-radius: 3.95em; pointer-events: none; z-index: 6;
  background: linear-gradient(118deg, transparent 12%, rgba(255, 255, 255, .13) 30%, transparent 46%); }

/* ---------- Laptop ---------- */
.laptop { --lw: 760px; width: min(var(--lw), 100%); font-size: calc(var(--lw) / 90); }
.lt-lid { position: relative; margin: 0 6%; padding: 1.3em 1.3em 1.6em; border-radius: 1.6em 1.6em .5em .5em; background: #0a0b0d;
  box-shadow: 0 0 0 .14em #2b2f36, inset 0 0 0 .1em #000, 0 0 0 .3em #9aa0a8; }
.lt-lid::before { content: ''; position: absolute; top: .45em; left: 50%; width: .5em; height: .5em; margin-left: -.25em; border-radius: 50%; background: #1d2433; }
.lt-screen { position: relative; aspect-ratio: 1366 / 900; overflow: hidden; border-radius: .3em; background: #fff; }
.lt-screen img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: top left;
  transition: opacity .6s var(--ease-out); }
.lt-screen img:not(.on) { opacity: 0; }
.lt-base { position: relative; height: 1.6em; border-radius: 0 0 2.4em 2.4em / 0 0 1.6em 1.6em;
  background: linear-gradient(180deg, #e7eaee 0%, #c3c8cf 45%, #9aa0a8 100%); box-shadow: 0 1.6em 3em -1.4em rgba(0, 64, 47, .4), inset 0 .1em 0 #fff; }
.lt-base::before { content: ''; position: absolute; top: 0; left: 50%; width: 14%; height: .55em; margin-left: -7%; border-radius: 0 0 .8em .8em;
  background: linear-gradient(180deg, #a9afb7, #cfd3d9); }

/* ---------- Home hero: white page, green shapes, the computer and the phone together ---------- */
.hz-hero { position: relative; overflow: clip; background: #fff; }
.hz-hero::before, .hz-hero::after { content: ''; position: absolute; border-radius: 50%; pointer-events: none; }
.hz-hero::before { width: 720px; height: 720px; right: -260px; top: -300px; border: 110px solid rgba(18, 163, 127, .09); }
.hz-hero::after { width: 320px; height: 320px; left: -140px; bottom: -180px; background: rgba(245, 183, 49, .12); }
.hz-hero .inner { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 32px; align-items: center; }
.hz-stage { position: relative; height: 540px; }
.hz-stage .laptop { --lw: 640px; position: absolute; right: 0; top: 30px; }
.hz-stage .device { --dw: 196px; position: absolute; left: 0; bottom: 0; }
.hz-note { position: absolute; z-index: 7; right: 6%; bottom: 46px; display: flex; gap: 10px; align-items: center; padding: 10px 14px; border-radius: 14px;
  background: #fff; box-shadow: 0 10px 30px -10px rgba(0, 64, 47, .35), 0 0 0 1px rgba(0, 0, 0, .05); font-size: 14px; color: #1f2937; max-width: 270px; }
.hz-note i { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #eaf7f2; color: #00654e; font-style: normal; }
.hz-facts { display: flex; flex-wrap: wrap; gap: 8px 22px; color: #4b5563; font-size: 15px; }
.hz-facts span { display: inline-flex; gap: 8px; align-items: center; }
.hz-facts span::before { content: ''; width: 14px; height: 3px; border-radius: 3px; background: #12a37f; }

/* Screens section: one device per screen, with its caption. */
.hz-shots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; align-items: end; }
.hz-shots figure { margin: 0; display: grid; gap: 18px; justify-items: center; }
.hz-shots .laptop { --lw: 100%; font-size: calc(min(380px, (100vw - 120px) / 3) / 90); }
.hz-shots .device { --dw: 190px; }
.hz-shots figcaption { text-align: left; width: 100%; }

@media (max-width: 1023px) {
  .hz-hero .inner { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .hz-stage { height: 380px; }
  .hz-stage .laptop { --lw: min(480px, 100vw - 40px); font-size: calc(min(480px, 100vw - 40px) / 90); right: 0; top: 10px; }
  .hz-stage .device { --dw: 128px; left: 0; bottom: 0; }
  .hz-note { display: none; }
  .hz-shots { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .hz-shots .laptop { font-size: calc((100vw - 40px) / 90); }
}
@media (max-width: 480px) {
  .hz-stage { height: 300px; }
  .hz-stage .device { --dw: 108px; }
}

/* ---------- Motion: extra, the page is complete without it ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .hz-stage .laptop, .js .hz-stage .device, .js .hz-note { opacity: 0; animation: hz-arrive 1s var(--ease-out) forwards; }
  .js .hz-stage .laptop { animation-delay: .1s; } .js .hz-stage .device { animation-delay: .28s; } .js .hz-note { animation-delay: .7s; }
  @keyframes hz-arrive { from { opacity: 0; translate: 0 40px; } to { opacity: 1; translate: 0 0; } }
}
@media (prefers-reduced-motion: reduce) {
  .d-view img, .lt-screen img { transition: none; }
}

/* How it works: the numbered markers on the screenshots are 28px to stay out of the picture's way;
   the area that takes the tap is 44px, as on every other control. */
button.-translate-x-1\/2.-translate-y-1\/2::after { content: ''; position: absolute; inset: -8px; }
