/* Marketing homepage — light glassmorphism redesign.
 *
 * Same visual language as the stocks connect page (static/css/stocks.css):
 * blue/indigo radial gradients on a near-white ground, white shells, frosted
 * glass panels, slate ink. All motion is CSS-only (float, marquee) and turned
 * off under prefers-reduced-motion. No three.js, no scroll choreography.
 */

.home {
  --hm-ink: #0f172a;
  --hm-body: #475569;
  --hm-muted: #64748b;
  --hm-faint: #94a3b8;
  --hm-line: rgba(15, 23, 42, 0.07);
  --hm-accent: #3b82f6;

  margin: 0;
  color: var(--hm-body);
  background:
    radial-gradient(58% 44% at 22% 0%, rgba(199, 222, 253, 0.72), transparent 72%),
    radial-gradient(46% 40% at 84% 6%, rgba(226, 220, 255, 0.6), transparent 72%),
    radial-gradient(70% 45% at 50% 100%, rgba(214, 232, 250, 0.55), transparent 74%),
    linear-gradient(180deg, #f7f9fe 0%, #eef3fb 46%, #f6f8fd 100%);
  overflow-x: clip;
}

/* ── Frosted glass panel ──────────────────────────────────────── */

.home .glass {
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.6);
  -webkit-backdrop-filter: blur(24px) saturate(155%);
  backdrop-filter: blur(24px) saturate(155%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 24px 50px -22px rgba(30, 58, 138, 0.3);
}

@media (prefers-reduced-transparency: reduce) {
  .home .glass {
    background: #ffffff;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

/* ── Layout primitives ────────────────────────────────────────── */

.hm-container {
  width: 100%;
  max-width: 68rem;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2rem);
}

.hm-section {
  padding-block: clamp(3.5rem, 8vw, 6.5rem) 0;
}

.hm-section--last {
  padding-bottom: clamp(3.5rem, 8vw, 6rem);
}

.hm-heading {
  max-width: 40rem;
  margin: 0 auto clamp(2rem, 5vw, 3rem);
  text-align: center;
}

/* ── Type ─────────────────────────────────────────────────────── */

.hm-h2 {
  margin: 1rem 0 0;
  font-size: clamp(1.75rem, 4.5vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.12;
  color: var(--hm-ink);
}

.hm-h3 {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--hm-ink);
}

.hm-kicker {
  margin: 0.75rem auto 0;
  max-width: 32rem;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--hm-muted);
}

.hm-body {
  margin: 0.5rem 0 0;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--hm-muted);
}

.hm-soon {
  margin-left: 0.4rem;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.12);
  font-size: 0.6875rem;
  font-weight: 600;
  color: #2563eb;
  vertical-align: 2px;
}

/* ── Buttons ──────────────────────────────────────────────────── */

.hm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border: 1px solid transparent;
  border-radius: 12px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  transition: background-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.hm-btn-sm { padding: 0.45rem 0.95rem; font-size: 0.8438rem; }
.hm-btn-lg { padding: 0.7rem 1.35rem; font-size: 0.9375rem; }

.hm-btn-primary {
  background: var(--hm-ink);
  color: #ffffff;
  box-shadow: 0 10px 24px -12px rgba(15, 23, 42, 0.5);
}

.hm-btn-primary:hover {
  background: #1e293b;
  transform: translateY(-1px);
}

.hm-btn-ghost {
  border-color: rgba(15, 23, 42, 0.1);
  background: rgba(255, 255, 255, 0.65);
  color: var(--hm-ink);
}

.hm-btn-ghost:hover {
  background: #ffffff;
}

/* ── Nav ──────────────────────────────────────────────────────── */

.hm-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  padding: 0.75rem clamp(1rem, 3vw, 1.5rem);
}

.hm-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 68rem;
  margin-inline: auto;
  padding: 0.5rem 0.75rem 0.5rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
  transition: box-shadow 0.2s ease;
}

.hm-nav.is-scrolled .hm-nav-inner {
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.05),
    0 16px 36px -20px rgba(30, 58, 138, 0.35);
}

.hm-nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--hm-ink);
  text-decoration: none;
}

.hm-nav-links {
  display: none;
  align-items: center;
  gap: 0.25rem;
}

@media (min-width: 1024px) {
  .hm-nav-links { display: flex; }
}

.hm-nav-link {
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--hm-muted);
  text-decoration: none;
}

.hm-nav-link:hover {
  color: var(--hm-ink);
  background: rgba(255, 255, 255, 0.8);
}

.hm-nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.hm-mobile-menu {
  max-width: 68rem;
  margin: 0.5rem auto 0;
  padding: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.85);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  box-shadow: 0 24px 50px -22px rgba(30, 58, 138, 0.3);
}

.hm-mobile-menu .hm-nav-link {
  padding: 0.7rem 0.9rem;
}

/* ── Sticky mobile CTA ────────────────────────────────────────── */

.hm-sticky-cta {
  position: fixed;
  left: 50%;
  bottom: 1rem;
  z-index: 30;
  transform: translateX(-50%);
  padding: 0.7rem 1.6rem;
  border-radius: 999px;
  background: var(--hm-ink);
  color: #ffffff;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 14px 30px -12px rgba(15, 23, 42, 0.55);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.hm-sticky-cta.is-hidden {
  opacity: 0;
  transform: translateX(-50%) translateY(0.5rem);
  pointer-events: none;
}

/* ── Hero ─────────────────────────────────────────────────────── */

.hm-hero {
  padding-top: clamp(1.25rem, 3.5vw, 2.5rem);
}

.hm-hero-copy {
  max-width: 44rem;
  margin-inline: auto;
  text-align: center;
}

.hm-hero-title {
  margin: 1.25rem 0 0;
  font-size: clamp(2.5rem, 7.5vw, 4.25rem);
  font-weight: 650;
  letter-spacing: -0.04em;
  line-height: 1.04;
  color: var(--hm-ink);
}

.hm-hero-sub {
  margin: 1.25rem auto 0;
  max-width: 34rem;
  font-size: clamp(1rem, 2.2vw, 1.125rem);
  line-height: 1.6;
  color: var(--hm-muted);
}

.hm-hero-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

/* ── Logo strip / marquee ─────────────────────────────────────── */

.hm-strip {
  margin-top: clamp(2.5rem, 6vw, 3.5rem);
  text-align: center;
}

.hm-strip-label {
  display: block;
  margin-bottom: 1rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--hm-faint);
}

.hm-marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
}

.hm-marquee--card {
  margin-top: 1.25rem;
}

.hm-marquee-track {
  display: flex;
  gap: 1rem;
  width: max-content;
  animation: hm-marquee 36s linear infinite;
}

.hm-mark {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  flex: none;
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}

.hm-mark img {
  width: 26px;
  height: 26px;
  object-fit: contain;
  border-radius: 6px;
}

@keyframes hm-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ── Sources converge band ────────────────────────────────────── */

/* The hero CTA runs almost straight into the converge panel: a slight gap only,
 * well short of the full section rhythm. */
#sources {
  padding-top: clamp(1.25rem, 3vw, 2rem);
}

.hm-converge {
  position: relative;
  isolation: isolate;
  display: grid;
  gap: 1.5rem;
  padding: clamp(1.25rem, 4vw, 2.25rem);
  border-radius: 24px;
}

/* Soft light pooling behind the hub plus a cool bloom off the top-left, so the
   panel reads lit from one corner and the eye lands where the rails end. */
.hm-converge::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(38% 58% at 82% 50%, rgba(59, 130, 246, 0.16), transparent 70%),
    radial-gradient(44% 52% at 10% 0%, rgba(199, 210, 254, 0.28), transparent 72%),
    radial-gradient(30% 40% at 55% 100%, rgba(191, 219, 254, 0.2), transparent 75%);
  pointer-events: none;
}

/* Fine photographic grain over the glass: breaks the digital flatness without
   reading as a pattern. Sits under the content with the light pooling. */
.hm-converge::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  border-radius: inherit;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.035;
  mix-blend-mode: overlay;
  pointer-events: none;
}

@media (min-width: 1024px) {
  .hm-converge {
    /* Narrow source tiles, flexible middle: the rails claim every spare rem,
       so the "data travelling into the hub" read gets a long runway. */
    grid-template-columns: minmax(0, 21rem) minmax(8rem, 1fr) minmax(0, 19rem);
    align-items: center;
    gap: 0;
  }
}

.hm-src-list {
  display: grid;
  gap: 0.625rem;
}

/* Below the rails breakpoint the sources pair up two per row, which halves the
   height of the band on a phone: Sheets + Excel, Stake + CommSec,
   Binance + CoinSpot, with the "30+ others" tile closing it across both. */
@media (max-width: 1023.98px) {
  .hm-src-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
  }

  .hm-src--others {
    grid-column: 1 / -1;
  }
}

/* Half-width tiles on a narrow phone need a smaller mark and tighter padding,
   otherwise "Google Sheets" wraps onto a second line. */
@media (max-width: 479.98px) {
  .hm-src {
    gap: 0.5rem;
    padding: 0.5rem;
  }

  .hm-src-mark {
    width: 2rem;
    height: 2rem;
    border-radius: 9px;
  }

  .hm-src-mark img {
    width: 19px;
    height: 19px;
  }

  .hm-src-id strong {
    font-size: 0.75rem;
  }

  .hm-src-id span {
    font-size: 0.625rem;
  }
}

.hm-src {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 0.875rem;
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.7);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  backdrop-filter: blur(14px) saturate(150%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 1px 2px rgba(15, 23, 42, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.hm-src:hover {
  transform: translateY(-1px);
  border-color: #ffffff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 10px 24px -14px rgba(30, 58, 138, 0.45);
}

/* A light band sweeps across the tile once on hover, like a hand passing over
   polished glass. It parks off-canvas either side so it never lingers. */
.hm-src::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-130%) skewX(-18deg);
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.75) 50%, transparent 65%);
  pointer-events: none;
}

.hm-src:hover::after {
  transform: translateX(130%);
  transition: transform 0.7s ease;
}

/* The closing tile: overlapped mini marks standing in for the long tail. */
.hm-src-stack {
  display: flex;
  align-items: center;
  height: 2.25rem;
  flex: none;
  padding-left: 0.375rem;
}

.hm-src-chip {
  display: grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  margin-left: -0.375rem;
  border: 1px solid var(--hm-line);
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
  transition: transform 0.25s ease;
}

.hm-src-chip img {
  width: 15px;
  height: 15px;
  object-fit: contain;
  border-radius: 50%;
}

.hm-src-chip--plus {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--hm-muted);
}

/* Fan the marks apart on hover: the row reads as "and many more". */
.hm-src--others:hover .hm-src-chip {
  margin-left: -0.125rem;
}

.hm-src--others .hm-src-id span {
  color: var(--hm-muted);
}

.hm-src-mark {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  flex: none;
  border: 1px solid var(--hm-line);
  border-radius: 11px;
  background: linear-gradient(180deg, #ffffff, #f5f8fe);
  box-shadow:
    inset 0 1px 0 #ffffff,
    0 1px 2px rgba(15, 23, 42, 0.06);
}

.hm-src-mark img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  border-radius: 5px;
}

.hm-src-initial {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--hm-muted);
}

.hm-src-id {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.hm-src-id strong {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--hm-ink);
}

.hm-src-id span {
  font-size: 0.6875rem;
  color: var(--hm-faint);
}

/* Rails: full curves on desktop, a short downward beam on narrow screens. */
.hm-rails {
  position: relative;
  color: var(--hm-accent);
}

.hm-rails-svg {
  display: none;
}

.hm-rails-beam {
  position: relative;
  display: block;
  width: 1px;
  height: 2.25rem;
  margin-inline: auto;
  background: linear-gradient(180deg, transparent, rgba(59, 130, 246, 0.45));
}

/* A tapered comet drifts down the beam into the hub: the mobile stand-in for
   the rail flow that only renders from 1024px up. The trail is a gradient so
   the head reads bright and the tail dissolves, and the eased timing lets it
   glide rather than tick. */
.hm-rails-beam::after {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 2px;
  height: 1.25rem;
  border-radius: 999px;
  transform-origin: 50% 100%;
  background: linear-gradient(180deg, transparent, rgba(59, 130, 246, 0.4) 55%, currentColor);
  filter: drop-shadow(0 0 6px rgba(59, 130, 246, 0.5));
  animation: hm-beam-flow 3.2s cubic-bezier(0.5, 0, 0.35, 1) infinite;
}

/* The hub end blooms as each comet lands, so the beam reads as delivering
   something rather than just looping. */
.hm-rails-beam::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.32), transparent 70%);
  animation: hm-beam-land 3.2s ease-out infinite;
}

/* The slight vertical stretch mid-travel is motion blur: it stretches as it
   picks up speed and settles as it arrives. */
@keyframes hm-beam-flow {
  0% { transform: translate(-50%, -1.25rem) scaleY(0.55); opacity: 0; }
  15% { opacity: 0.9; }
  50% { transform: translate(-50%, 0.6rem) scaleY(1.15); opacity: 1; }
  85% { opacity: 0.85; }
  100% { transform: translate(-50%, 2.25rem) scaleY(0.7); opacity: 0; }
}

@keyframes hm-beam-land {
  0%, 52% { transform: translate(-50%, 50%) scale(0.6); opacity: 0; }
  70% { transform: translate(-50%, 50%) scale(1); opacity: 1; }
  100% { transform: translate(-50%, 50%) scale(1.4); opacity: 0; }
}

@media (min-width: 1024px) {
  /* Stretch to the source column's height so each rail leaves its own tile. */
  .hm-rails {
    align-self: stretch;
    min-height: 16rem;
  }

  .hm-rails-svg {
    display: block;
    width: 100%;
    height: 100%;
  }

  .hm-rails-beam {
    display: none;
  }
}

.hm-rails-base {
  opacity: 0.55;
}

.hm-rails-flow path {
  stroke-dasharray: 3 97;
  filter: drop-shadow(0 0 4px rgba(59, 130, 246, 0.55));
  animation: hm-flow 3.4s linear infinite;
}

.hm-rails-flow path:nth-child(2) { animation-delay: -0.48s; }
.hm-rails-flow path:nth-child(3) { animation-delay: -0.97s; }
.hm-rails-flow path:nth-child(4) { animation-delay: -1.45s; }
.hm-rails-flow path:nth-child(5) { animation-delay: -1.94s; }
.hm-rails-flow path:nth-child(6) { animation-delay: -2.42s; }
.hm-rails-flow path:nth-child(7) { animation-delay: -2.91s; }

@keyframes hm-flow {
  from { stroke-dashoffset: 0; }
  to { stroke-dashoffset: -100; }
}

.hm-hub {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 0.5rem;
  padding: 1.375rem 1.25rem 1.5rem;
  border: 1px solid transparent;
  border-radius: 22px;
  /* Gradient hairline: the card body paints the padding-box, a blue→white→
     indigo sweep paints the border-box behind it. Reads as light catching
     the card edge rather than a drawn outline. */
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.93), rgba(255, 255, 255, 0.86)) padding-box,
    linear-gradient(165deg, rgba(191, 219, 254, 0.95), rgba(255, 255, 255, 0.9) 38%, rgba(199, 210, 254, 0.85) 72%, rgba(147, 197, 253, 0.95)) border-box;
  -webkit-backdrop-filter: blur(20px) saturate(155%);
  backdrop-filter: blur(20px) saturate(155%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 1px 2px rgba(15, 23, 42, 0.05),
    0 26px 54px -26px rgba(30, 58, 138, 0.38);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hm-hub:hover {
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 1px 2px rgba(15, 23, 42, 0.05),
    0 32px 64px -26px rgba(30, 58, 138, 0.45);
}

/* Breathing halo behind the hub, timed to the rail pulses so the card reads
   as receiving each delivery. Behind the card, above the panel ground. */
.hm-hub::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -2.25rem;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(59, 130, 246, 0.16), rgba(129, 140, 248, 0.07) 55%, transparent 75%);
  animation: hm-hub-halo 3.4s ease-in-out infinite;
  pointer-events: none;
}

@keyframes hm-hub-halo {
  0%, 100% { opacity: 0.55; transform: scale(0.96); }
  50% { opacity: 1; transform: scale(1.03); }
}

@media (max-width: 1023.98px) {
  .hm-hub {
    width: 100%;
    max-width: 22rem;
    margin-inline: auto;
  }
}

.hm-hub-mark {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff, #f3f7ff);
  box-shadow:
    0 0 0 6px rgba(59, 130, 246, 0.07),
    0 0 0 13px rgba(59, 130, 246, 0.04),
    0 10px 22px -12px rgba(30, 58, 138, 0.45);
}

.hm-hub-name {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--hm-ink);
}

.hm-hub-rows {
  width: 100%;
  margin: 0.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.375rem;
  list-style: none;
}

.hm-hub-rows li {
  display: flex;
  justify-content: space-between;
  font-size: 0.8125rem;
}

.hm-hub-rows span {
  color: var(--hm-muted);
}

.hm-hub-rows strong {
  font-family: "Geist Mono", ui-monospace, SFMono-Regular, monospace;
  font-size: 0.78rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--hm-ink);
}

.hm-hub-total {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  width: 100%;
  margin-top: 0.5rem;
  padding-top: 0.875rem;
}

/* Hairline that fades out at both ends, instead of a full-width rule. */
.hm-hub-total::before {
  content: "";
  position: absolute;
  top: 0;
  left: 4%;
  right: 4%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(15, 23, 42, 0.14), transparent);
}

.hm-hub-total span {
  font-size: 0.75rem;
  color: var(--hm-faint);
}

.hm-hub-total strong {
  font-size: 1.5625rem;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.025em;
  background: linear-gradient(180deg, #0f172a 30%, #33415c);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--hm-ink);
}

/* Live-tick flash: while a figure is mid-update it turns brokerage blue,
   then eases back to ink. The total's gradient text swaps wholesale since
   background-image can't transition; the colour fade covers the rows. */
.hm-hub-rows strong {
  transition: color 0.35s ease;
}

.hm-hub-rows strong.is-live {
  color: #2563eb;
}

.hm-hub-total strong.is-live {
  background: linear-gradient(180deg, #1d4ed8 30%, #3b82f6);
  -webkit-background-clip: text;
  background-clip: text;
}

.hm-hub-live {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  margin-top: 0.25rem;
  padding: 0.3rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.65);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--hm-muted);
}

.hm-hub-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.16);
  animation: hm-hub-pulse 2.4s ease-in-out infinite;
}

@keyframes hm-hub-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

/* ── Card grids ───────────────────────────────────────────────── */

.hm-grid-3 {
  display: grid;
  gap: 1rem;
}

@media (min-width: 768px) {
  .hm-grid-3 { grid-template-columns: repeat(3, 1fr); }
}

.hm-grid-2 {
  display: grid;
  gap: 1rem;
}

@media (min-width: 900px) {
  .hm-grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.hm-card {
  padding: 1.5rem;
}

.hm-card-icon {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 1rem;
  border-radius: 12px;
  background: rgba(59, 130, 246, 0.12);
  color: #2563eb;
}

/* ── Why: jewel-box treatment ─────────────────────────────────── */
/* The three "spreadsheet retirement" cards get the hub card's finish:
   gradient hairline instead of a flat border, a corner bloom, an icon set
   like a mark, and gradient ink on the headline. Scoped to #why so the
   plainer glass elsewhere keeps its weight. */

#why .hm-h2 {
  background: linear-gradient(180deg, #0f172a 30%, #33415c);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

#why .hm-grid-3 {
  gap: 1.25rem;
}

#why .hm-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 2rem 1.75rem 2.25rem;
  border: 1px solid transparent;
  border-radius: 22px;
  /* Card body paints the padding-box; a blue→white→indigo sweep paints the
     border-box behind it, so the edge reads as caught light. */
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.66)) padding-box,
    linear-gradient(165deg, rgba(191, 219, 254, 0.95), rgba(255, 255, 255, 0.9) 40%, rgba(199, 210, 254, 0.8) 72%, rgba(147, 197, 253, 0.95)) border-box;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 30px 60px -30px rgba(30, 58, 138, 0.35);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

/* Soft light pooling off the icon's corner, behind the glass body. */
#why .hm-card::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    radial-gradient(55% 45% at 12% 0%, rgba(191, 219, 254, 0.55), transparent 70%),
    radial-gradient(40% 35% at 100% 100%, rgba(199, 210, 254, 0.3), transparent 75%);
  pointer-events: none;
}

#why .hm-card:hover {
  transform: translateY(-4px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 40px 80px -32px rgba(30, 58, 138, 0.45);
}

#why .hm-card-icon {
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff, #eef4ff);
  color: #2563eb;
  box-shadow:
    0 0 0 5px rgba(59, 130, 246, 0.06),
    0 0 0 11px rgba(59, 130, 246, 0.03),
    0 10px 20px -12px rgba(30, 58, 138, 0.4);
}

#why .hm-card .hm-h3 {
  font-size: 1.1875rem;
  letter-spacing: -0.02em;
}

#why .hm-card .hm-body {
  margin-top: 0.625rem;
  line-height: 1.65;
}

/* ── Feature cards ────────────────────────────────────────────── */

.hm-feature {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 1.5rem;
  overflow: hidden;
}

.hm-feature-shot {
  margin-top: auto;
  overflow: hidden;
  border: 1px solid var(--hm-line);
  border-radius: 14px;
  box-shadow: 0 14px 30px -18px rgba(30, 58, 138, 0.3);
}

.hm-feature-shot img {
  display: block;
  width: 100%;
  height: auto;
}

/* The list grows to fill the card instead of the card stretching to the row's
   tallest sibling. `.hm-grid-2` used `align-items: start` for the same reason:
   stretching left a void between the copy and the list on the text-only card.
   Remove `flex: 1` here and that void comes back. */
.hm-feature-list {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hm-feature-list li {
  display: flex;
  align-items: center;
  flex: 1;
  gap: 0.6rem;
  padding: 0.65rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--hm-ink);
}

.hm-feature-list li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--hm-accent);
}

/* ── Product tour ─────────────────────────────────────────────── */

.hm-tour-stage {
  position: relative;
  overflow: hidden;
  padding: 0.75rem;
}

.hm-tour-video {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
  border: 1px solid var(--hm-line);
  cursor: pointer;
  transition: opacity 0.35s ease;
}

.hm-tour.is-switching .hm-tour-video {
  opacity: 0;
}

.hm-tour-toggle {
  position: absolute;
  right: 1.5rem;
  bottom: 1.75rem;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 24px -12px rgba(15, 23, 42, 0.4);
  color: var(--hm-ink);
  cursor: pointer;
}

.hm-tour-icon-pause { display: none; }
.hm-tour.is-playing .hm-tour-icon-pause { display: block; }
.hm-tour.is-playing .hm-tour-icon-play { display: none; }

.hm-tour-progress {
  position: absolute;
  left: 0.75rem;
  right: 0.75rem;
  bottom: 0.75rem;
  height: 3px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.08);
}

.hm-tour-progress span {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: 999px;
  background: var(--hm-accent);
}

.hm-tour-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.hm-tour-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  font-size: 0.8438rem;
  font-weight: 500;
  color: var(--hm-muted);
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.hm-tour-tab:hover {
  background: #ffffff;
  color: var(--hm-ink);
}

.hm-tour-tab.is-active {
  border-color: transparent;
  background: var(--hm-ink);
  color: #ffffff;
}

.hm-tour-tab-num {
  display: grid;
  place-items: center;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.07);
  font-size: 0.6875rem;
  font-weight: 600;
}

.hm-tour-tab.is-active .hm-tour-tab-num {
  background: rgba(255, 255, 255, 0.18);
}

/* ── Final CTA ────────────────────────────────────────────────── */

/* The panel is the page's last beat, so it leans harder on the glass language:
 * a slow aurora wash behind the frost, a brighter rim, and a top sheen hairline.
 * Blobs live on ::before under `isolation: isolate` so they stay inside the
 * rounded shell without a second wrapper element. */
.home .hm-cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(2.75rem, 7vw, 4.5rem) clamp(1.5rem, 5vw, 3rem);
  border-radius: 28px;
  border-color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.52);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 40px 80px -30px rgba(30, 58, 138, 0.42);
  text-align: center;
}

.hm-cta::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -35%;
  background:
    radial-gradient(38% 46% at 18% 26%, rgba(59, 130, 246, 0.32), transparent 70%),
    radial-gradient(34% 44% at 82% 20%, rgba(139, 92, 246, 0.26), transparent 72%),
    radial-gradient(40% 52% at 52% 104%, rgba(56, 189, 248, 0.24), transparent 70%);
  animation: hm-cta-drift 22s ease-in-out infinite alternate;
}

/* Sheen: a single bright hairline along the top edge, faded at both ends. */
.hm-cta::after {
  content: "";
  position: absolute;
  top: 0;
  inset-inline: 14%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.95), transparent);
}

.hm-cta .hm-h2 {
  margin-top: 1.1rem;
}

.hm-cta .hm-kicker {
  max-width: 30rem;
}

.hm-cta .hm-hero-cta {
  margin-top: 1.75rem;
}

@keyframes hm-cta-drift {
  from { transform: translate3d(-3%, -2%, 0) scale(1); }
  to   { transform: translate3d(3%, 2%, 0) scale(1.08); }
}

@media (prefers-reduced-motion: reduce) {
  .hm-cta::before { animation: none; }
}

@media (prefers-reduced-transparency: reduce) {
  .home .hm-cta { background: #ffffff; }
  .home .hm-cta::before { display: none; }
}

/* ── Import: spreadsheet to dashboard ─────────────────────────── */
/* Display-only Add with AI demo. The drop zone, scan overlay and sheet
   chrome are a marketing-page port of static/css/add_property.css so the
   motion matches the real wizard. Scene classes (.is-dragging, .is-scanning,
   .is-ready) are flipped by initImportDemo() in static/js/home.js. */

.hm-import {
  --hm-import-ease: cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
  max-width: 44rem;
  margin: 0 auto;
  padding-top: 2.35rem;
}

#import .hm-heading {
  margin-bottom: 0.35rem;
}

.hm-import::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 10%;
  right: 10%;
  top: 12%;
  height: 14rem;
  border-radius: 999px;
  background: radial-gradient(50% 60% at 50% 50%, rgba(99, 102, 241, 0.2), transparent 72%);
  filter: blur(32px);
  pointer-events: none;
}

.hm-import-shell {
  position: relative;
  padding: 0.4rem;
  pointer-events: none;
}

.hm-import-window {
  overflow: hidden;
  border-radius: 16px;
  background: #ffffff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 1px 2px rgba(15, 23, 42, 0.04);
}

.hm-import-bar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1.05rem 1.15rem 0.9rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.hm-import-bar-title {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--hm-ink);
}

.hm-import-ai-label {
  background-image: linear-gradient(90deg, #4285F4 0%, #9B72CB 50%, #D96570 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.hm-import.is-ready .hm-import-ai-label {
  background-image: none;
  -webkit-background-clip: unset;
  background-clip: unset;
  color: var(--hm-ink);
  letter-spacing: -0.01em;
}

.hm-import-bar-kicker {
  margin: 0.2rem 0 0;
  max-width: 22rem;
  font-size: 0.75rem;
  line-height: 1.45;
  color: var(--hm-muted);
}

.hm-import-bar-close {
  display: grid;
  place-items: center;
  flex: none;
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 0.4rem;
  color: var(--hm-faint);
}

.hm-import-stage {
  position: relative;
  min-height: 30.25rem;
  padding: 1rem 1.05rem 1.15rem;
}

/* ── Drop zone (mirrors properties/add.html) ── */

.hm-import-drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 28rem;
  padding: 1.75rem 1.25rem;
  border: 2px dashed rgba(15, 23, 42, 0.12);
  border-radius: 0.75rem;
  text-align: center;
  background: transparent;
  transition:
    border-color 0.45s var(--hm-import-ease),
    background-color 0.45s var(--hm-import-ease),
    opacity 0.55s var(--hm-import-ease),
    transform 0.7s var(--hm-import-ease);
}

.hm-import.is-dragging .hm-import-drop,
.hm-import.is-hot .hm-import-drop {
  border-color: var(--hm-ink);
  background: rgba(15, 23, 42, 0.03);
}

.hm-import.is-hot .hm-import-drop-lead {
  color: var(--hm-ink);
}

.hm-import.is-scanning .hm-import-drop,
.hm-import.is-ready .hm-import-drop {
  opacity: 0;
  transform: scale(0.98);
}

.hm-import-drop-icon {
  margin-bottom: 0.35rem;
  color: var(--hm-faint);
}

.hm-import-drop-lead {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--hm-ink);
}

.hm-import-drop-hint {
  margin: 0;
  font-size: 0.6875rem;
  color: var(--hm-muted);
}

.hm-import-drop-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.55rem;
  padding: 0.4rem 0.85rem;
  border-radius: 0.5rem;
  background: var(--hm-ink);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 500;
}

/* ── Floating spreadsheet ── */

.hm-import-file {
  position: absolute;
  z-index: 4;
  top: 0.15rem;
  left: 1.15rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: max-content;
  max-width: calc(100% - 2rem);
  padding: 0.55rem 0.75rem 0.55rem 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.05),
    0 18px 40px -22px rgba(16, 124, 65, 0.45),
    0 22px 48px -24px rgba(15, 23, 42, 0.35);
  transform: rotate(-7deg);
  opacity: 1;
  pointer-events: none;
  will-change: transform, opacity;
  transition:
    transform 1.15s var(--hm-import-ease),
    opacity 0.4s var(--hm-import-ease),
    box-shadow 0.4s var(--hm-import-ease);
}

.hm-import-file.is-held {
  box-shadow:
    0 2px 4px rgba(15, 23, 42, 0.06),
    0 28px 50px -18px rgba(16, 124, 65, 0.4),
    0 30px 60px -20px rgba(15, 23, 42, 0.4);
}

.hm-import-file.is-gone,
.hm-import.is-scanning .hm-import-file,
.hm-import.is-ready .hm-import-file {
  opacity: 0;
  pointer-events: none;
}

.hm-import-file-mark {
  display: grid;
  place-items: center;
  flex: none;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 0.65rem;
  background: linear-gradient(180deg, #e8f6ee, #d8efe3);
}

.hm-import-file-copy {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.hm-import-file-copy strong {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--hm-ink);
}

.hm-import-file-copy span {
  font-size: 0.6875rem;
  color: var(--hm-muted);
}

/* ── Cursor ── */

.hm-import-cursor {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 5;
  color: var(--hm-ink);
  filter: drop-shadow(0 2px 4px rgba(15, 23, 42, 0.28));
  opacity: 0;
  pointer-events: none;
  transition: transform 0.7s var(--hm-import-ease), opacity 0.3s var(--hm-import-ease);
}

.hm-import-cursor.is-visible { opacity: 1; }

.hm-import-cursor.is-clicking::after {
  content: "";
  position: absolute;
  left: 1px;
  top: 1px;
  width: 22px;
  height: 22px;
  margin: -11px 0 0 -11px;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.28);
  animation: hm-import-click 0.45s var(--hm-import-ease) forwards;
}

@keyframes hm-import-click {
  from { transform: scale(0.2); opacity: 0.9; }
  to { transform: scale(1.6); opacity: 0; }
}

/* ── Scan overlay (port of add_property.css) ── */

@property --hm-import-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

@keyframes hm-import-border-spin {
  to { --hm-import-angle: 360deg; }
}

@keyframes hm-import-glow-pulse {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 0.85; }
}

@keyframes hm-import-scan-sweep {
  0% { transform: translate3d(-30%, 0, 0); opacity: 0; }
  12% { opacity: 1; }
  88% { opacity: 1; }
  100% { transform: translate3d(130%, 0, 0); opacity: 0; }
}

@keyframes hm-import-frame-pulse {
  0%, 100% { opacity: 0.35; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.01); }
}

@keyframes hm-import-dot-pulse {
  0%, 100% { transform: scale(1); opacity: 0.55; }
  50% { transform: scale(1.35); opacity: 1; }
}

@keyframes hm-import-shimmer {
  0% { background-position: 200% center; }
  100% { background-position: -200% center; }
}

.hm-import-scan {
  position: absolute;
  inset: 1rem 1.05rem 1.15rem;
  z-index: 1;
  opacity: 0;
  transform: scale(1.015);
  pointer-events: none;
  transition:
    opacity 0.7s var(--hm-import-ease),
    transform 0.85s var(--hm-import-ease);
}

.hm-import.is-scanning .hm-import-scan {
  opacity: 1;
  transform: scale(1);
}

.hm-import.is-ready .hm-import-scan {
  opacity: 0;
  transform: scale(0.985);
}

.hm-import-working {
  height: 100%;
  padding: 3px;
  border-radius: 12px;
  background: conic-gradient(
    from var(--hm-import-angle),
    #7eb0f7 0%,
    #c4a8e4 32%,
    #e8a0a6 58%,
    #f6d27a 78%,
    #7eb0f7 100%
  );
  animation: hm-import-border-spin 1.8s linear infinite;
  box-shadow:
    0 0 0 1px rgba(155, 114, 203, 0.14),
    0 0 14px rgba(66, 133, 244, 0.16),
    0 8px 24px -12px rgba(66, 133, 244, 0.22);
}

.hm-import-scan-inner {
  position: relative;
  overflow: hidden;
  height: 100%;
  border-radius: 10px;
  background: #ffffff;
}

.hm-import-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  border-radius: inherit;
  pointer-events: none;
}

.hm-import-overlay__glow {
  position: absolute;
  inset: -8%;
  background: conic-gradient(
    from var(--hm-import-angle),
    rgba(66, 133, 244, 0.16) 0%,
    rgba(155, 114, 203, 0.14) 30%,
    rgba(217, 101, 112, 0.12) 55%,
    rgba(244, 180, 0, 0.1) 75%,
    rgba(66, 133, 244, 0.16) 100%
  );
  filter: blur(28px);
  mix-blend-mode: multiply;
  opacity: 0.55;
  animation: hm-import-border-spin 1.8s linear infinite, hm-import-glow-pulse 2.6s ease-in-out infinite;
}

.hm-import-overlay__veil {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 50% 45%, transparent 45%, rgba(148, 163, 184, 0.06) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.2) 0%, transparent 30%, transparent 70%, rgba(255, 255, 255, 0.16) 100%);
}

.hm-import-overlay__scan {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 28%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(66, 133, 244, 0.06) 30%,
    rgba(255, 255, 255, 0.55) 48%,
    rgba(155, 114, 203, 0.12) 55%,
    rgba(217, 101, 112, 0.06) 70%,
    transparent 100%
  );
  box-shadow: 0 0 28px 6px rgba(155, 114, 203, 0.08);
  animation: hm-import-scan-sweep 2.1s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  will-change: transform;
}

.hm-import-overlay__frame {
  position: absolute;
  inset: 10px;
  border-radius: 8px;
  animation: hm-import-frame-pulse 2.4s ease-in-out infinite;
}

.hm-import-overlay__frame::before,
.hm-import-overlay__frame::after {
  content: "";
  position: absolute;
  width: 28px;
  height: 28px;
  border-style: solid;
  border-color: rgba(66, 133, 244, 0.7);
  filter: drop-shadow(0 0 6px rgba(66, 133, 244, 0.35));
}

.hm-import-overlay__frame::before {
  top: 0;
  left: 0;
  border-width: 3px 0 0 3px;
  border-radius: 4px 0 0 0;
}

.hm-import-overlay__frame::after {
  top: 0;
  right: 0;
  border-width: 3px 3px 0 0;
  border-radius: 0 4px 0 0;
}

.hm-import-overlay__corners {
  position: absolute;
  inset: 10px;
  pointer-events: none;
}

.hm-import-overlay__corners span {
  position: absolute;
  width: 28px;
  height: 28px;
  border-style: solid;
  border-color: rgba(217, 101, 112, 0.65);
  filter: drop-shadow(0 0 6px rgba(217, 101, 112, 0.28));
}

.hm-import-overlay__corners span:nth-child(1) {
  bottom: 0;
  left: 0;
  border-width: 0 0 3px 3px;
  border-radius: 0 0 0 4px;
}

.hm-import-overlay__corners span:nth-child(2) {
  right: 0;
  bottom: 0;
  border-width: 0 3px 3px 0;
  border-radius: 0 0 4px 0;
}

.hm-import-status {
  position: absolute;
  z-index: 2;
  top: 0.65rem;
  left: 0.65rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  max-width: min(100% - 5rem, 16rem);
  padding: 0.2rem 0.45rem;
  border-radius: 0.4rem;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #475569;
}

.hm-import-status-dot {
  flex: none;
  color: #9B72CB;
  animation: hm-import-dot-pulse 1.2s ease-in-out infinite;
}

.hm-import-status-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  background-image: linear-gradient(
    90deg,
    #5b9af5 0%,
    #b08fd8 28%,
    #e08b93 42%,
    #94a3b8 50%,
    #e08b93 58%,
    #b08fd8 72%,
    #5b9af5 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: hm-import-shimmer 2.4s linear infinite;
}

.hm-import-sheet-index {
  position: absolute;
  z-index: 2;
  top: 0.65rem;
  right: 0.65rem;
  padding: 0.2rem 0.45rem;
  border-radius: 0.4rem;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
  font-size: 0.625rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: #475569;
}

.hm-import-sheet {
  position: relative;
  z-index: 0;
  min-height: 12.25rem;
  padding: 2.15rem 0.75rem 0.75rem;
  background:
    linear-gradient(180deg, #f8fafc 0%, #ffffff 40%),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 23px,
      rgba(148, 163, 184, 0.12) 23px,
      rgba(148, 163, 184, 0.12) 24px
    );
}

.hm-import-sheet-tab {
  display: inline-flex;
  max-width: 60%;
  margin-bottom: 0.5rem;
  padding: 0.2rem 0.65rem;
  border: 1px solid #d0e2ff;
  border-bottom: none;
  border-radius: 4px 4px 0 0;
  background: #e8f0fe;
  color: #1f2937;
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hm-import-sheet-grid {
  overflow: hidden;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.hm-import-sheet-grid table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.hm-import-sheet-grid td {
  height: 22px;
  padding: 0 6px;
  border-right: 1px solid #eef2f7;
  border-bottom: 1px solid #eef2f7;
  color: #334155;
  font-size: 10px;
  line-height: 22px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
  transition: background-color 0.45s var(--hm-import-ease);
}

.hm-import-sheet-grid tr:last-child td { border-bottom: none; }
.hm-import-sheet-grid td:last-child { border-right: none; }

.hm-import-sheet-grid td.hm-import-th {
  background: #f8fafc;
  color: #64748b;
  font-weight: 600;
}

.hm-import-sheet-grid tr.is-lit td {
  background: rgba(66, 133, 244, 0.1);
}

/* ── Dashboard reveal ── */

.hm-import-dash {
  position: absolute;
  inset: 1rem 1.05rem 1.15rem;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 0.05rem 0;
  opacity: 0;
  transform: translateY(14px) scale(0.985);
  pointer-events: none;
  transition:
    opacity 0.8s var(--hm-import-ease),
    transform 0.95s var(--hm-import-ease);
}

.hm-import.is-ready .hm-import-dash {
  opacity: 1;
  transform: none;
}

.hm-import-dash-head {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0 0.15rem;
}

.hm-import-avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 999px;
  background: linear-gradient(165deg, #7dd3fc 0%, #3b82f6 52%, #2563eb 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    0 0 0 1px rgba(37, 99, 235, 0.18);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.hm-import-hello {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--hm-ink);
}

.hm-import-today {
  margin: 0.08rem 0 0;
  font-size: 0.6875rem;
  color: var(--hm-muted);
}

.hm-import-live {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: auto;
  padding: 0.22rem 0.55rem;
  border: 1px solid rgba(16, 185, 129, 0.18);
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.08);
  color: #047857;
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.5s var(--hm-import-ease) 0.7s, transform 0.5s var(--hm-import-ease) 0.7s;
}

.hm-import.is-ready .hm-import-live {
  opacity: 1;
  transform: none;
}

.hm-import-live-dot {
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 999px;
  background: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.16);
  animation: hm-import-dot-pulse 1.6s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}

.hm-import-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  flex: none;
  gap: 0.55rem;
  padding: 0.9rem 1rem 0;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 16px;
  background: transparent;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 1px 2px rgba(15, 23, 42, 0.03),
    0 14px 28px -20px rgba(15, 23, 42, 0.18);
}

.hm-import-hero::before {
  content: "";
  position: absolute;
  inset: -40%;
  z-index: 0;
  background:
    radial-gradient(48% 58% at 6% 0%, rgba(59, 130, 246, 0.22), transparent 72%),
    radial-gradient(52% 62% at 98% 100%, rgba(16, 185, 129, 0.16), transparent 74%);
  pointer-events: none;
}

.hm-import-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(156deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.94) 52%);
}

.hm-import-hero-top,
.hm-import-chart {
  position: relative;
  z-index: 2;
}

.hm-import-hero-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.hm-import-eyebrow {
  margin: 0;
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--hm-faint);
}

.hm-import-hero-value {
  margin: 0.2rem 0 0;
  font-size: 1.85rem;
  font-weight: 600;
  letter-spacing: -0.045em;
  font-variant-numeric: tabular-nums;
  color: var(--hm-ink);
  line-height: 1.05;
}

.hm-import-hero-delta {
  display: inline-flex;
  align-items: baseline;
  gap: 0.28rem;
  margin: 0.45rem 0 0;
  padding: 0.18rem 0.5rem;
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.1);
  font-size: 0.6875rem;
  font-weight: 600;
  color: #047857;
}

.hm-import-hero-delta span {
  font-weight: 500;
  color: #047857;
}

.hm-import-hero-delta-note {
  color: var(--hm-muted) !important;
}

.hm-import-hero-meta {
  display: flex;
  align-items: flex-start;
  gap: 0;
  padding-top: 0.15rem;
}

.hm-import-hero-stat {
  min-width: 4.6rem;
  padding-left: 0.85rem;
  text-align: right;
}

.hm-import-hero-stat + .hm-import-hero-stat {
  margin-left: 0.85rem;
  border-left: 1px solid rgba(15, 23, 42, 0.08);
}

.hm-import-hero-stat-val {
  margin: 0.28rem 0 0;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--hm-ink);
}

.hm-import-hero-stat-val.is-up { color: #047857; }

.hm-import-chart {
  flex: none;
  aspect-ratio: 4 / 1;
  height: auto;
  margin: 0.1rem 0 0;
  overflow: visible;
}

.hm-import-spark {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.hm-import-spark-fill {
  opacity: 0;
  transition: opacity 0.8s var(--hm-import-ease) 0.35s;
}

.hm-import.is-ready .hm-import-spark-fill { opacity: 1; }

.hm-import-spark-line {
  fill: none;
  stroke: #2563eb;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  transition: stroke-dashoffset 1.15s var(--hm-import-ease) 0.2s;
}

.hm-import.is-ready .hm-import-spark-line {
  stroke-dashoffset: 0;
}

.hm-import-spark-now {
  fill: #ffffff;
  stroke: #2563eb;
  stroke-width: 1.8;
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  transform: scale(0.4);
  transition:
    opacity 0.4s var(--hm-import-ease) 1.15s,
    transform 0.45s var(--hm-import-ease) 1.15s;
}

.hm-import.is-ready .hm-import-spark-now {
  opacity: 1;
  transform: scale(1);
}

.hm-import-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.4rem;
}

.hm-import-kpi {
  padding: 0.55rem 0.6rem 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.96));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 1px 2px rgba(15, 23, 42, 0.03);
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 0.55s var(--hm-import-ease),
    transform 0.65s var(--hm-import-ease);
}

.hm-import-kpi.is-shown {
  opacity: 1;
  transform: none;
}

.hm-import-kpi span {
  display: block;
  font-size: 0.5625rem;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--hm-faint);
}

.hm-import-kpi strong {
  display: block;
  margin-top: 0.22rem;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  color: var(--hm-ink);
}

.hm-import-kpi strong.is-up { color: #047857; }

.hm-import-kpi em {
  display: block;
  margin-top: 0.12rem;
  font-size: 0.5625rem;
  font-style: normal;
  color: var(--hm-muted);
}

.hm-import-holdings {
  min-height: 0;
  padding: 0.15rem 0.15rem 0;
}

.hm-import-holdings-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0.05rem 0.35rem;
}

.hm-import-holdings-title {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--hm-ink);
}

.hm-import-holdings-head span {
  font-size: 0.625rem;
  font-weight: 600;
  color: var(--hm-muted);
}

.hm-import-props {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0.1rem 0.35rem;
  list-style: none;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.96));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.hm-import-props li {
  display: grid;
  grid-template-columns: minmax(6.5rem, 1.15fr) minmax(3.5rem, 1fr) auto;
  align-items: center;
  gap: 0.7rem;
  padding: 0.48rem 0.2rem;
  border-top: 1px solid rgba(15, 23, 42, 0.05);
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 0.5s var(--hm-import-ease),
    transform 0.6s var(--hm-import-ease);
}

.hm-import-props li:first-child { border-top: 0; }

.hm-import-props li.is-shown {
  opacity: 1;
  transform: none;
}

.hm-import-prop-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.hm-import-prop-copy strong {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--hm-ink);
}

.hm-import-prop-copy span {
  font-size: 0.625rem;
  color: var(--hm-muted);
}

.hm-import-prop-bar {
  display: block;
  height: 0.28rem;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
}

.hm-import-prop-bar-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #60a5fa, #2563eb);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.9s var(--hm-import-ease);
}

.hm-import-props li.is-shown .hm-import-prop-bar-fill {
  transform: scaleX(1);
}

.hm-import-prop-val {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--hm-ink);
}

@media (max-width: 639px) {
  .hm-import-file {
    top: 0.35rem;
    left: 0.5rem;
    transform: rotate(-4deg) scale(0.92);
    transform-origin: left top;
  }

  .hm-import-cursor { display: none; }

  .hm-import-stage { min-height: 33.5rem; }

  .hm-import-drop { min-height: 31rem; }

  .hm-import-dash { gap: 0.5rem; }

  .hm-import-hero {
    padding: 0.75rem 0.8rem 0;
  }

  .hm-import-hero-top {
    flex-direction: column;
    gap: 0.7rem;
  }

  .hm-import-hero-meta { justify-content: flex-start; }

  .hm-import-hero-stat { text-align: left; padding-left: 0; }

  .hm-import-hero-stat + .hm-import-hero-stat {
    padding-left: 0.85rem;
  }

  .hm-import-chart { aspect-ratio: 4 / 1; }

  .hm-import-hero-value { font-size: 1.55rem; }

  .hm-import-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .hm-import-props li {
    grid-template-columns: 1fr auto;
    gap: 0.45rem;
  }

  .hm-import-prop-bar { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .hm-import-file,
  .hm-import-cursor,
  .hm-import-drop,
  .hm-import-scan,
  .hm-import-dash,
  .hm-import-kpi,
  .hm-import-props li,
  .hm-import-live,
  .hm-import-spark-line,
  .hm-import-spark-fill,
  .hm-import-spark-now,
  .hm-import-prop-bar-fill {
    transition: none;
  }

  .hm-import-working,
  .hm-import-overlay__glow,
  .hm-import-overlay__scan,
  .hm-import-overlay__frame,
  .hm-import-status-text,
  .hm-import-status-dot,
  .hm-import-live-dot {
    animation: none;
  }

  .hm-import-file,
  .hm-import-scan { opacity: 0; }

  .hm-import-drop { opacity: 0; }

  .hm-import-dash,
  .hm-import-kpi,
  .hm-import-props li,
  .hm-import-live {
    opacity: 1;
    transform: none;
  }

  .hm-import-spark-line { stroke-dashoffset: 0; }
  .hm-import-spark-fill { opacity: 1; }
  .hm-import-spark-now {
    opacity: 1;
    transform: scale(1);
  }
  .hm-import-props li .hm-import-prop-bar-fill { transform: scaleX(1); }

  .hm-import-working {
    background: linear-gradient(135deg, #7eb0f7 0%, #c4a8e4 45%, #e8a0a6 100%);
  }
}

/* ── Forecast: projected portfolio value ──────────────────────── */
/* The dashboard's "Portfolio value & equity" chart dropped into the marketing
   page. Everything from .chart-container down is copied verbatim from
   static/css/properties.css (.chart-container, .event-rail, .event-chip,
   .sale-card, .chart-event-legend__*) so the two charts render identically;
   properties.css is not loaded here, so the duplicated selectors never clash.
   Keep them in sync when the dashboard chart changes. Deliberate landing-only
   deviations: a narrower, shorter chart shell, a fast fade on the event card,
   a quicker chip transition, and pointer interaction limited to hovering a chip
   (which pauses the auto-cycle in home.js and pins that event's card). */

/* Wider than .hm-container but capped, so the chart reads as the centrepiece
   without spanning an ultrawide monitor. */
.hm-forecast-bleed {
  width: 100%;
  max-width: 1080px;
  margin-inline: auto;
  padding-inline: clamp(0.75rem, 2vw, 2rem);
}

.hm-forecast {
  position: relative;
  padding: clamp(1rem, 2.5vw, 1.75rem);
}

/* ── Chart canvas + event rail (mirrors static/css/properties.css) ── */

.chart-container {
  position: relative;
  height: 260px;
  width: 100%;
  overflow: hidden;
}

.chart-container > canvas {
  max-width: 100%;
  max-height: 100%;
}

.event-rail {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

.event-chip {
  position: absolute;
  transform: translateX(-50%);
  /* The rail is pointer-transparent, the chips are not: hovering one pauses the
     auto-cycle and pins its card (see initForecast in home.js). */
  pointer-events: auto;
  cursor: pointer;
  width: 26px;
  height: 26px;
  border: 1.5px solid rgba(255, 255, 255, 0.92);
  border-radius: 9999px;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  /* Quick but eased-out, so the lift lands rather than snapping. */
  will-change: transform;
  transition: transform 130ms cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 130ms cubic-bezier(0.22, 1, 0.36, 1),
              filter 130ms cubic-bezier(0.22, 1, 0.36, 1);
}

.event-chip svg {
  width: 12px;
  height: 12px;
}

.event-chip--buy { background: #16a34a; }
.event-chip--refi { background: #2563eb; }
.event-chip--sell { background: #ef4444; }
.event-chip--movein { background: #d97706; }
.event-chip--rentout { background: #0d9488; }

/* translateX(-50%) is the chip's own centring, so every transform must keep it.
   .is-active is the only lift state here, and the auto-cycle is the only thing
   that can set it. */
.event-chip.is-active {
  transform: translateX(-50%) scale(1.14);
  filter: brightness(1.06);
  box-shadow:
    0 6px 14px -6px rgba(15, 23, 42, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

/* ── Event card — a child of .hm-forecast, positioned via JS in panel-local
      coordinates so it scrolls with the section ── */

.sale-card {
  position: absolute;
  z-index: 60;
  display: none;
  min-width: 248px;
  max-width: 320px;
  max-height: min(70vh, 520px);
  overflow-y: auto;
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid rgba(229, 231, 235, 0.9);
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.7) inset,
    0 16px 40px -18px rgba(15, 23, 42, 0.28);
  font-family: Geist, system-ui, sans-serif;
  pointer-events: none;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  /* Snappier than a normal panel: the card has to keep up with the auto-cycle. */
  opacity: 0;
  transform: translateY(3px);
  transition: opacity 90ms ease-out, transform 90ms ease-out;
}

.sale-card.is-in {
  opacity: 1;
  transform: none;
}

.sale-card-kicker {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #a3a3a3;
  margin-bottom: 4px;
}

.sale-card-title {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #171717;
  margin-bottom: 10px;
}

.sale-card-row {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  font-size: 13px;
  padding: 3px 0;
  color: #0f172a;
}

.sale-card-row > span:first-child {
  color: #64748b;
}

.sale-card-row > span:last-child {
  font-variant-numeric: tabular-nums;
  font-weight: 500;
}

.sale-card-row.neg > span:last-child {
  color: #ef4444;
}

.sale-card-row.pos > span:last-child {
  color: #10b981;
}

.sale-card-row.net {
  margin-top: 6px;
  padding-top: 8px;
  border-top: 1px solid #e5e7eb;
  font-weight: 600;
}

.sale-card-row.net > span {
  color: #0f172a;
}

.sale-card-row.net > span:last-child {
  color: #10b981;
  font-weight: 700;
}

/* ── Event legend (footer row under the chart) ── */

.chart-event-legend__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 14px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.chart-event-legend__item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: Geist, system-ui, sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: #737373;
}

.chart-event-legend__dot {
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  flex: 0 0 auto;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55);
}

.chart-event-legend__dot--buy { background: #16a34a; }
.chart-event-legend__dot--refi { background: #2563eb; }
.chart-event-legend__dot--sale { background: #ef4444; }
.chart-event-legend__dot--movein { background: #d97706; }
.chart-event-legend__dot--rentout { background: #0d9488; }

@media (min-width: 640px) {
  .chart-container {
    height: min(46vh, 380px);
  }
}

@media (max-width: 639px) {
  .sale-card {
    min-width: 200px;
    padding: 10px 12px;
  }

  .sale-card-row { font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .event-chip,
  .sale-card {
    transition: none;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .sale-card {
    background: #ffffff;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

/* ── Footer ───────────────────────────────────────────────────── */

.hm-footer {
  margin-top: clamp(3.5rem, 8vw, 6rem);
  padding-block: 3.5rem 2rem;
  border-top: 1px solid var(--hm-line);
  background: rgba(255, 255, 255, 0.45);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.hm-footer a {
  font-size: 0.875rem;
  color: var(--hm-muted);
  text-decoration: none;
}

.hm-footer a:hover {
  color: var(--hm-ink);
}

.hm-foot-head {
  margin-bottom: 0.75rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--hm-faint);
}

.hm-foot-legal {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--hm-line);
  font-size: 0.8125rem;
  color: var(--hm-faint);
}

@media (min-width: 640px) {
  .hm-foot-legal { flex-direction: row; }
}

/* ── Scroll reveal ─────────────────────────────────────────────── */
/* .hm-reveal is added by initReveal() in static/js/home.js, so content is
   only ever hidden when JS is running; the observer flips on .is-in. The
   per-sibling stagger arrives as --hm-reveal-delay set inline by the JS. */

.hm-reveal {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 0.65s ease var(--hm-reveal-delay, 0s),
    transform 0.85s cubic-bezier(0.16, 1, 0.3, 1) var(--hm-reveal-delay, 0s);
}

.hm-reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .hm-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ── Reduced motion: everything static ────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  .hm-marquee-track,
  .hm-rails-flow path,
  .hm-hub-live-dot,
  .hm-hub::before {
    animation: none;
  }

  /* No sheen sweep or card lift either. */
  .hm-src::after {
    display: none;
  }

  .hm-hub {
    transition: none;
  }

  .hm-hub:hover {
    transform: none;
  }

  /* Hidden rather than paused: a stalled comet would sit as a bright dab at
     the top of the beam, and the landing bloom would stay lit. */
  .hm-rails-beam::before,
  .hm-rails-beam::after {
    display: none;
  }

  .hm-btn,
  .hm-tour-video,
  .hm-sticky-cta,
  .hm-src,
  .hm-src-chip,
  #why .hm-card {
    transition: none;
  }

  #why .hm-card:hover {
    transform: none;
  }
}

@media (prefers-reduced-transparency: reduce) {
  #why .hm-card {
    background: #ffffff;
    border-color: var(--hm-line);
  }

  #why .hm-card::before {
    display: none;
  }
}


/* ── AI Strategist demo ────────────────────────────────────────
   Two pieces: the ask pill (types a question, then fires) and the answer
   card that lifts in under it. Everything is display only, driven by
   initAskDemo() in static/js/home.js. */

.hm-ai {
  position: relative;
  max-width: 46rem;
  margin: 0 auto;
}

/* Ambient glow behind the pill, so the section has a light source. */
.hm-ai::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 12%;
  right: 12%;
  top: -2.5rem;
  height: 12rem;
  border-radius: 999px;
  background: radial-gradient(50% 60% at 50% 50%, rgba(99, 102, 241, 0.22), transparent 72%);
  filter: blur(28px);
  pointer-events: none;
}

/* ── Ask pill ── */

.hm-ai-pill {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.9rem 0.9rem 0.9rem 1.15rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.88)) padding-box,
    linear-gradient(120deg, rgba(147, 197, 253, 0.95), rgba(255, 255, 255, 0.9) 45%, rgba(165, 180, 252, 0.95)) border-box;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 1px 2px rgba(15, 23, 42, 0.05),
    0 24px 50px -26px rgba(30, 58, 138, 0.5);
}

.hm-ai-spark {
  display: inline-flex;
  flex: none;
  color: var(--hm-accent);
}

.hm-ai-text {
  flex: 1;
  min-width: 0;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--hm-ink);
  text-align: left;
}

.hm-ai-text.is-empty::after {
  content: "Ask about equity, cashflow or your next purchase\2026";
  color: var(--hm-faint);
}

.hm-ai-caret {
  display: inline-block;
  width: 1.5px;
  height: 1.05em;
  margin-left: 1px;
  background: var(--hm-accent);
  vertical-align: text-bottom;
  animation: hm-ai-blink 1.05s steps(1) infinite;
}

.hm-ai-text.is-empty .hm-ai-caret {
  /* Caret sits before the placeholder, the way an empty input reads. */
  margin-right: 1px;
}

.hm-ai-send {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 999px;
  background: linear-gradient(160deg, #3b82f6, #4f46e5);
  color: #ffffff;
  box-shadow: 0 6px 16px -6px rgba(37, 99, 235, 0.9);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
}

.hm-ai-send.is-firing {
  transform: scale(0.86);
  box-shadow: 0 0 0 8px rgba(59, 130, 246, 0.14);
}

@keyframes hm-ai-blink {
  0%, 50% { opacity: 1; }
  50.01%, 100% { opacity: 0; }
}

/* ── Answer card ── */

.hm-ai-answer {
  margin-top: 1rem;
  padding: clamp(1.25rem, 3vw, 1.75rem);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: blur(24px) saturate(155%);
  backdrop-filter: blur(24px) saturate(155%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 34px 70px -34px rgba(30, 58, 138, 0.45);
  opacity: 0;
  transform: translateY(14px) scale(0.985);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.hm-ai-answer.is-shown {
  opacity: 1;
  transform: none;
}

/* Question chip: the sent message, kept on screen after the pill clears. */

.hm-ai-ask {
  max-width: 32rem;
  margin: 0.85rem 0 0 auto;
  padding: 0.6rem 0.95rem;
  border-radius: 16px 16px 4px 16px;
  background: linear-gradient(160deg, #3b82f6, #4f46e5);
  color: #ffffff;
  font-size: 0.9375rem;
  line-height: 1.5;
  box-shadow: 0 12px 26px -16px rgba(37, 99, 235, 0.9);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.hm-ai-ask.is-shown {
  opacity: 1;
  transform: none;
}

/* Working line: shown while the plan is being assembled, then removed. */

.hm-ai-working {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
  font-size: 0.8125rem;
  color: var(--hm-muted);
  transition: opacity 0.3s ease;
}

.hm-ai-working.is-hidden {
  display: none;
}

.hm-ai-working-dots {
  display: inline-flex;
  gap: 3px;
}

.hm-ai-working-dots span {
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: var(--hm-accent);
  animation: hm-ai-bounce 1.2s ease-in-out infinite;
}

.hm-ai-working-dots span:nth-child(2) { animation-delay: 0.15s; }
.hm-ai-working-dots span:nth-child(3) { animation-delay: 0.3s; }

@keyframes hm-ai-bounce {
  0%, 100% { transform: translateY(0); opacity: 0.45; }
  50% { transform: translateY(-3px); opacity: 1; }
}

/* Action cards: each one lands pending, then the demo cursor confirms it. */

.hm-ai-acts {
  display: grid;
  gap: 0.55rem;
  margin: 1.1rem 0 0;
  padding: 0;
  list-style: none;
}

.hm-ai-act {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0.75rem 0.7rem 0.85rem;
  border: 1px solid var(--hm-line);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 0.4s ease,
    transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.4s ease,
    background 0.4s ease;
}

/* Not mounted yet: out of flow entirely, so the card grows as the plan is
   built instead of holding a blank reservation for it. */
.hm-ai-act:not(.is-mounted),
.hm-ai-answer [data-demo-part]:not(.is-mounted) {
  display: none;
}

.hm-ai-act.is-shown {
  opacity: 1;
  transform: none;
}

.hm-ai-act.is-applied {
  border-color: rgba(22, 163, 74, 0.28);
  background: linear-gradient(180deg, rgba(240, 253, 244, 0.9), #ffffff);
}

.hm-ai-act-tag {
  flex: none;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.12);
  font-size: 0.6875rem;
  font-weight: 600;
  color: #2563eb;
}

.hm-ai-act.is-applied .hm-ai-act-tag {
  background: rgba(22, 163, 74, 0.12);
  color: #15803d;
}

.hm-ai-act-copy {
  flex: 1;
  min-width: 0;
}

.hm-ai-act-copy strong {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--hm-ink);
}

.hm-ai-act-copy span {
  display: block;
  margin-top: 0.1rem;
  font-size: 0.75rem;
  line-height: 1.4;
  color: var(--hm-muted);
}

.hm-ai-act-side {
  position: relative;
  flex: none;
  display: grid;
}

/* Both states share one grid cell so the card never resizes on confirm. */
.hm-ai-act-btn,
.hm-ai-act-done {
  grid-area: 1 / 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  padding: 0.4rem 0.8rem;
  border-radius: 9px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
  transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
}

.hm-ai-act-btn {
  background: var(--hm-ink);
  color: #ffffff;
}

.hm-ai-act-btn.is-pressing {
  transform: scale(0.92);
  box-shadow: 0 0 0 6px rgba(59, 130, 246, 0.16);
}

.hm-ai-act-done {
  background: rgba(22, 163, 74, 0.1);
  color: #15803d;
  opacity: 0;
  transform: scale(0.9);
}

.hm-ai-act.is-applied .hm-ai-act-btn {
  opacity: 0;
  transform: scale(0.9);
}

.hm-ai-act.is-applied .hm-ai-act-done {
  opacity: 1;
  transform: none;
}

/* Demo cursor: moves to each Confirm chip and clicks it. */

.hm-ai-cursor {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  color: var(--hm-ink);
  filter: drop-shadow(0 2px 4px rgba(15, 23, 42, 0.28));
  opacity: 0;
  pointer-events: none;
  transition: transform 0.55s cubic-bezier(0.33, 1, 0.68, 1), opacity 0.3s ease;
}

.hm-ai-cursor.is-visible { opacity: 1; }

.hm-ai-cursor.is-clicking::after {
  content: "";
  position: absolute;
  left: 1px;
  top: 1px;
  width: 22px;
  height: 22px;
  margin: -11px 0 0 -11px;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.28);
  animation: hm-ai-click 0.45s ease-out forwards;
}

@keyframes hm-ai-click {
  from { transform: scale(0.2); opacity: 0.9; }
  to { transform: scale(1.6); opacity: 0; }
}

/* Answer body: revealed a beat at a time by the script. */

.hm-ai-answer [data-demo-part] {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.45s ease, transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.hm-ai-answer [data-demo-part].is-shown {
  opacity: 1;
  transform: none;
}

.hm-ai-lead {
  margin: 1.1rem 0 0;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--hm-ink);
}

.hm-ai-metrics {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.1rem;
}

@media (min-width: 640px) {
  .hm-ai-metrics { grid-template-columns: repeat(3, 1fr); }
}

.hm-ai-metric {
  padding: 0.9rem 1rem;
  border: 1px solid var(--hm-line);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.hm-ai-metric-label {
  display: block;
  font-family: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--hm-faint);
}

.hm-ai-metric-value {
  display: block;
  margin-top: 0.35rem;
  font-size: 1.5rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  color: var(--hm-ink);
  font-variant-numeric: tabular-nums;
}

.hm-ai-metric-note {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.75rem;
  color: var(--hm-muted);
}

.hm-ai-plan {
  display: grid;
  gap: 0.5rem;
  margin: 1.1rem 0 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 640px) {
  .hm-ai-plan { grid-template-columns: repeat(2, 1fr); }
}

.hm-ai-plan-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--hm-line);
  border-radius: 12px;
  background: rgba(248, 250, 255, 0.9);
  font-size: 0.8125rem;
  line-height: 1.4;
  color: var(--hm-body);
}

.hm-ai-plan-tag {
  flex: none;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.12);
  font-size: 0.6875rem;
  font-weight: 600;
  color: #2563eb;
}

.hm-ai-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 1.1rem;
  padding-top: 0.9rem;
  border-top: 1px dashed var(--hm-line);
}

.hm-ai-ready {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--hm-ink);
}

.hm-ai-ready-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #16a34a;
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.14);
}

.hm-ai-note {
  font-size: 0.75rem;
  color: var(--hm-faint);
}

@media (prefers-reduced-motion: reduce) {
  .hm-ai-caret,
  .hm-ai-working-dots span { animation: none; }

  .hm-ai-answer,
  .hm-ai-answer [data-demo-part],
  .hm-ai-ask,
  .hm-ai-act,
  .hm-ai-act-btn,
  .hm-ai-act-done,
  .hm-ai-cursor,
  .hm-ai-send { transition: none; }

  .hm-ai-cursor { display: none; }
}

@media (prefers-reduced-transparency: reduce) {
  .hm-ai-answer {
    background: #ffffff;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

/* ── Share: phone to advisers handoff ─────────────────────────── */
/* Stage is phone + adviser chips. The PDF card starts hidden over the phone's
   export button; home.js measures the gap to the target chip at runtime and
   writes it into --hm-fly-x / --hm-fly-y, so nothing here hard-codes a path. */

.hm-handoff {
  display: grid;
  justify-items: center;
  gap: 2.25rem;
  max-width: 48rem;
  margin: 0 auto;
}

@media (min-width: 900px) {
  .hm-handoff {
    grid-template-columns: auto minmax(0, 20rem);
    align-items: center;
    justify-content: center;
    gap: 4.5rem;
  }
}

/* ── Phone ── */

/* iPhone 15/16 frame at full 393x852 logical resolution, scaled down with a
   transform. The .hm-phone-frame wrapper reserves the scaled layout space
   (transforms don't), and the PDF card is positioned on the wrapper, OUTSIDE
   the transform: home.js measures its flight vector in screen pixels, and a
   translate inside scale() would only travel scale-fraction of the distance. */
.hm-phone-frame {
  --hm-ph-scale: 0.68;
  --hm-ph-screen-w: 393px;
  --hm-ph-screen-h: 852px;
  --hm-ph-radius: 54px;
  --hm-ph-bezel: 12px;
  --hm-ph-outer-w: calc(var(--hm-ph-screen-w) + var(--hm-ph-bezel) * 2);
  --hm-ph-outer-h: calc(var(--hm-ph-screen-h) + var(--hm-ph-bezel) * 2);
  position: relative;
  width: calc(var(--hm-ph-outer-w) * var(--hm-ph-scale));
  height: calc(var(--hm-ph-outer-h) * var(--hm-ph-scale));
}

@media (max-width: 480px) {
  .hm-phone-frame { --hm-ph-scale: 0.58; }
}

.hm-phone {
  position: relative;
  width: var(--hm-ph-outer-w);
  height: var(--hm-ph-outer-h);
  padding: var(--hm-ph-bezel);
  box-sizing: border-box;
  border-radius: calc(var(--hm-ph-radius) + var(--hm-ph-bezel));
  transform: scale(var(--hm-ph-scale));
  transform-origin: top left;
  background: linear-gradient(145deg, #62676e 0%, #2f3338 22%, #23262a 50%, #3d4147 78%, #6b7076 100%);
  box-shadow:
    0 0 0 1.5px #14161a inset,
    0 2px 3px rgba(255, 255, 255, 0.28) inset,
    0 30px 60px -20px rgba(20, 24, 32, 0.55),
    0 8px 20px -8px rgba(20, 24, 32, 0.35);
}

/* Volume up (left edge) and side button (right edge). */
.hm-phone::before,
.hm-phone::after {
  content: "";
  position: absolute;
  width: 3px;
  background: linear-gradient(90deg, #24272b, #6d7278);
  border-radius: 2px;
}

.hm-phone::before { left: -2.5px; top: 176px; height: 64px; }
.hm-phone::after { right: -2.5px; top: 208px; height: 100px; }

/* The screen clips content to the rounded corners; isolation stops Safari
   leaking content past them. Scroll lives on an inner element so clipping
   and scrolling don't fight. */
.hm-phone-screen {
  position: relative;
  width: var(--hm-ph-screen-w);
  height: var(--hm-ph-screen-h);
  border-radius: var(--hm-ph-radius);
  overflow: hidden;
  isolation: isolate;
  background: #ffffff;
}

.hm-phone-scroll {
  width: 100%;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.hm-phone-scroll::-webkit-scrollbar { display: none; }

/* ── iOS chrome: status bar, Dynamic Island, home indicator ── */

.hm-phone-status {
  position: absolute;
  z-index: 2;
  pointer-events: none;
  top: 0;
  left: 0;
  right: 0;
  height: 59px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 32px 0;
  color: var(--hm-ink);
}

.hm-phone-time {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  font-variant-numeric: tabular-nums;
}

.hm-phone-island {
  position: absolute;
  z-index: 3;
  pointer-events: none;
  top: 11px;
  left: 50%;
  transform: translateX(-50%);
  width: 124px;
  height: 36px;
  border-radius: 20px;
  background: #08090b;
  box-shadow: inset 0 0 2px rgba(255, 255, 255, 0.12);
}

.hm-phone-status-icons {
  display: flex;
  align-items: center;
  gap: 6px;
}

.hm-phone-home {
  position: absolute;
  z-index: 3;
  pointer-events: none;
  bottom: 9px;
  left: 50%;
  transform: translateX(-50%);
  width: 140px;
  height: 5px;
  border-radius: 3px;
  background: rgba(15, 23, 42, 0.85);
}

/* ── Screen content ── */

.hm-phone-app {
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-sizing: border-box;
  min-height: 100%;
  padding: 78px 24px 46px;
  background: linear-gradient(180deg, #ffffff, #f7fbff);
}

.hm-phone-label {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--hm-muted);
}

.hm-phone-value {
  margin: -10px 0 0;
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--hm-ink);
}

.hm-phone-bars {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 130px;
}

.hm-phone-bars span {
  flex: 1;
  border-radius: 4px 4px 2px 2px;
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.8), rgba(59, 130, 246, 0.3));
}

.hm-phone-bars span:nth-child(1) { height: 40%; }
.hm-phone-bars span:nth-child(2) { height: 55%; }
.hm-phone-bars span:nth-child(3) { height: 47%; }
.hm-phone-bars span:nth-child(4) { height: 68%; }
.hm-phone-bars span:nth-child(5) { height: 61%; }
.hm-phone-bars span:nth-child(6) { height: 84%; }

.hm-phone-bars span:nth-child(7) {
  height: 100%;
  background: linear-gradient(180deg, #3b82f6, rgba(59, 130, 246, 0.55));
}

.hm-phone-rows {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 18px 0 0;
  border-top: 1px solid var(--hm-line);
  list-style: none;
}

.hm-phone-rows li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 15px;
}

.hm-phone-rows li span:first-child { color: var(--hm-muted); }
.hm-phone-rows li span:last-child { font-weight: 600; color: var(--hm-ink); }

.hm-phone-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: auto;
  padding: 15px 16px;
  border-radius: 14px;
  background: linear-gradient(180deg, #3b82f6, #2563eb);
  box-shadow: 0 12px 22px -12px rgba(37, 99, 235, 0.85);
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease;
}

/* Ring pulse rides the button itself, so the tap is always centred on it. */
.hm-phone-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px solid rgba(37, 99, 235, 0.5);
  border-radius: 14px;
  opacity: 0;
}

.hm-phone-btn.is-pressed {
  transform: scale(0.955);
  box-shadow: 0 4px 10px -8px rgba(37, 99, 235, 0.9);
}

.hm-phone-btn.is-pressed::after {
  animation: hm-tap-ring 0.6s ease-out;
}

@keyframes hm-tap-ring {
  from { opacity: 0.85; transform: scale(1); }
  to { opacity: 0; transform: scale(1.22); }
}

/* ── The document in flight ── */

/* Anchored to .hm-phone-frame (unscaled), popping out just above the export
   button. Kept outside the phone's scale() transform on purpose: see the
   .hm-phone-frame comment. */
.hm-pdf {
  position: absolute;
  left: 50%;
  bottom: calc(120px * var(--hm-ph-scale, 0.68));
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 22px 40px -18px rgba(30, 58, 138, 0.55);
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
  color: var(--hm-ink);
  opacity: 0;
  transform: translate(-50%, 10px) scale(0.8);
  transition: opacity 0.3s ease, transform 0.36s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.hm-pdf svg { color: var(--hm-accent); }

.hm-pdf.is-out {
  opacity: 1;
  transform: translate(-50%, -6px) scale(1);
}

.hm-pdf.is-flying {
  opacity: 1;
  transform:
    translate(calc(-50% + var(--hm-fly-x, 0px)), calc(var(--hm-fly-y, 0px) - 6px))
    scale(0.6) rotate(-3deg);
  transition: transform 0.78s cubic-bezier(0.5, 0.02, 0.25, 1), opacity 0.22s ease;
}

/* Dissolves into the avatar as it arrives. The return to the phone happens at
   opacity 0, so it is never seen. */
.hm-pdf.is-landed { opacity: 0; }

/* ── Advisers ── */

.hm-handoff-people {
  display: grid;
  gap: 0.6rem;
  width: 100%;
  max-width: 20rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hm-person {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 0.85rem;
  border-radius: 14px;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
}

.hm-person-avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 10px;
  background: rgba(59, 130, 246, 0.12);
  color: #2563eb;
}

.hm-person-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--hm-ink);
}

.hm-person-tick {
  display: grid;
  place-items: center;
  flex: none;
  width: 1.35rem;
  height: 1.35rem;
  margin-left: auto;
  border-radius: 999px;
  background: #22c55e;
  color: #ffffff;
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 0.2s ease, transform 0.3s cubic-bezier(0.2, 0.9, 0.3, 1.5);
}

.hm-person.is-received {
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 20px 36px -24px rgba(30, 58, 138, 0.55);
}

.hm-person.is-received .hm-person-tick {
  opacity: 1;
  transform: scale(1);
}

@media (prefers-reduced-motion: reduce) {
  .hm-phone-btn,
  .hm-pdf,
  .hm-person,
  .hm-person-tick {
    transition: none;
  }

  .hm-phone-btn.is-pressed::after { animation: none; }
}

/* ── FAQ: native <details> accordion ───────────────────────────── */

.hm-faq {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 44rem;
  margin: 0 auto;
}

.hm-faq-item {
  padding: 1.1rem 1.35rem;
}

.hm-faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
  list-style: none;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--hm-ink);
}

.hm-faq-q::-webkit-details-marker {
  display: none;
}

.hm-faq-q::after {
  content: "+";
  flex: none;
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1;
  color: var(--hm-faint);
}

.hm-faq-item[open] .hm-faq-q::after {
  content: "\2013";
}

.hm-faq-a {
  margin: 0.75rem 0 0;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--hm-muted);
}


/* ── Converge caption: sits under the rails, spans the whole card ─ */

.hm-converge-note {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--hm-muted);
  text-align: center;
}

@media (min-width: 1024px) {
  .hm-converge-note {
    grid-column: 1 / -1;
    margin-top: 1.5rem;
  }
}
