/* ==========================================================
   Section 01 — Hero
   ========================================================== */
.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  /* transparent so the page ribbon shows through the margins */
}
.hero .ribbon { z-index: 0; }
.hero > .container { position: relative; z-index: 1; }

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 192px;   /* 84px fixed nav + 108px breathing room */
}
.hero-copy h1 { max-width: 900px; }
.hero-copy h1 .muted-line { display: block; }

.hero-points {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 30px;
  font-size: 16px;
  color: var(--text-muted);
}
.hero-sub { margin-top: 14px; max-width: 520px; }
.hero-ctas { display: flex; gap: 10px; margin-top: 30px; }
.hero-note {
  display: flex; align-items: center; gap: 14px;
  margin-top: 18px;
  font-size: 13px;
  color: var(--ink-500);
}
.hero-note span { display: inline-flex; align-items: center; gap: 6px; }
.hero-note .i { color: var(--teal-500); }

/* ---------- Product stage ---------- */
.hero-stage {
  position: relative;
  margin-top: 72px;
}
.hero-stage > .mock { transform-origin: top left; width: 1200px; }

/* bottom of the mockup dissolves into the next section, like the reference */
.hero-fade {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 180px;
  background: linear-gradient(180deg, rgba(245,246,249,0) 0%, var(--bg) 92%);
  z-index: 3;
  pointer-events: none;
}

/* Device bezel around the app: a plain light frame, no glass */
.mock { position: relative; }
.mock-frame {
  position: relative;
  padding: 8px;
  border-radius: 22px;
  background: #EDEFF3;
  box-shadow: inset 0 0 0 1px rgba(16,24,48,.06), 0 1px 2px rgba(16,24,48,.05), 0 30px 60px -30px rgba(20,50,140,.28);
}

/* ==========================================================
   App window: the client's side of a portal (designed at 1184px,
   scaled by JS). Same Geist dialect as the tour mockup. Layout drawn
   from real products on Mobbin: Plane's project overview (segmented
   progress + properties panel), Mercury's invoice timeline, and
   Mintlify's dark toast.
   ========================================================== */
.app.hx {
  --g-bg: #FFFFFF; --g-bg2: #FAFAFA; --g-100: #F2F2F2; --g-200: #EBEBEB; --g-300: #E0E0E0;
  --g-500: #8F8F8F; --g-600: #666666; --g-900: #171717;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  height: 720px; overflow: hidden;
  border-radius: 14px;
  background: var(--g-bg);
  box-shadow: 0 0 0 1px rgba(0,0,0,.08);
  font-family: "Geist", var(--font-body); font-size: 13px; color: var(--g-900);
  display: grid; grid-template-rows: 52px 1fr;
}
.hx .i { width: 15px; height: 15px; }
.hx .mono { font-family: var(--mono); font-size: .94em; font-variant-numeric: tabular-nums; letter-spacing: 0; }
.hx .av { box-shadow: none; }

/* top bar: breadcrumb (agency / client / project), search, you */
.hx-top { display: flex; align-items: center; gap: 16px; padding: 0 16px; border-bottom: 1px solid var(--g-200); }
.hx-crumbs { display: flex; align-items: center; gap: 8px; color: var(--g-600); white-space: nowrap; }
.hx-crumbs > .lg { width: 22px; height: 22px; border-radius: 6px; }
.hx-crumbs b { color: var(--g-900); font-weight: 500; }
.hx-crumbs .sl { color: var(--g-300); width: 16px; height: 16px; }
.hx-cl { display: inline-flex; align-items: center; gap: 7px; color: var(--g-900); }
.hx-cl .lg { width: 18px; height: 18px; border-radius: 50%; }
.hx-find { margin-left: auto; display: flex; align-items: center; gap: 8px; width: 300px; height: 32px; padding: 0 6px 0 10px; border-radius: 7px; box-shadow: 0 0 0 1px var(--g-200); color: var(--g-500); }
.hx-me { display: flex; align-items: center; gap: 12px; }
.hx-bell { position: relative; width: 32px; height: 32px; border-radius: 7px; display: grid; place-items: center; color: var(--g-600); box-shadow: 0 0 0 1px var(--g-200); }
.hx-bell i { position: absolute; top: 7px; right: 8px; width: 6px; height: 6px; border-radius: 50%; background: #E5484D; box-shadow: 0 0 0 2px #fff; }
.hx-me .av { --s: 30px; }

.hx-body { display: grid; grid-template-columns: 212px 1fr; min-height: 0; }

/* sidebar */
.hx-side { display: flex; flex-direction: column; gap: 2px; padding: 12px 10px; border-right: 1px solid var(--g-200); background: var(--g-bg2); }
.hx-nav { display: grid; gap: 1px; }
.hx-nav span { display: flex; align-items: center; gap: 9px; height: 32px; padding: 0 8px; border-radius: 6px; color: var(--g-600); }
.hx-nav .i { color: var(--g-500); }
.hx-nav .on { background: var(--g-100); color: var(--g-900); font-weight: 500; } .hx-nav .on .i { color: var(--g-900); }
.hx-nav em { margin-left: auto; font-style: normal; font-family: var(--mono); font-size: 11px; color: var(--g-600); }
.hx-nav em.hot { min-width: 18px; padding: 0 5px; border-radius: 99px; background: #0070F3; color: #fff; text-align: center; }
.hx-nav em.warm { min-width: 18px; padding: 0 5px; border-radius: 99px; background: #FFF4D6; color: #A35200; text-align: center; }
.hx-lab { margin: 14px 8px 4px; font-size: 11.5px; color: var(--g-500); }
.hx-team { margin-top: auto; padding-top: 10px; border-top: 1px solid var(--g-200); display: grid; gap: 2px; }
.hx-team .hx-lab { margin-top: 2px; }
.hx-tm { display: flex; align-items: center; gap: 9px; padding: 5px 8px; }
.hx-tm .av { --s: 26px; }
.hx-tm b { display: block; font-weight: 500; font-size: 12.5px; } .hx-tm small { display: block; font-size: 11.5px; color: var(--g-500); }
.hx-priv { display: flex; align-items: center; gap: 6px; margin: 8px 8px 0; font-size: 11.5px; color: var(--g-500); }

/* main */
.hx-main { padding: 22px 26px; display: grid; gap: 14px; align-content: start; overflow: hidden; }
.hx-head { display: flex; align-items: flex-end; justify-content: space-between; }
.hx-h { margin: 0; font-family: "Geist", var(--font-display); font-size: 24px; font-weight: 600; letter-spacing: -0.035em; }
.hx-head p { margin: 3px 0 0; color: var(--g-600); }
.hx-acts { display: flex; gap: 8px; }
.hx .gbtn.sm { height: 28px; padding: 0 10px; font-size: 12px; }
.hx .gbtn.wide { width: 100%; justify-content: center; margin-top: auto; }

.hx-card { border-radius: 10px; box-shadow: 0 0 0 1px var(--g-200), 0 1px 2px rgba(0,0,0,.04); padding: 14px 16px; display: flex; flex-direction: column; }
.hx-ch { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.hx-ch > b { font-weight: 500; }
.hx-lnk { display: inline-flex; align-items: center; gap: 3px; color: var(--g-600); font-size: 12px; }

.hx-r1 { display: grid; grid-template-columns: 1fr 296px; gap: 14px; }
.hx-big { font-size: 20px; font-weight: 500; color: var(--g-900); letter-spacing: -0.03em; }
.hx-big small { font-size: 12px; color: var(--g-500); letter-spacing: 0; margin-left: 2px; }
/* Plane-style segmented bar: one track, four states, hairline gaps */
.hx-bar { display: flex; gap: 3px; height: 8px; }
.hx-bar i { border-radius: 3px; }
.s-done { background: #2EA44F; } .s-rev { background: #F5A623; } .s-prog { background: #0070F3; } .s-todo { background: var(--g-200); }
.hx-leg { display: flex; gap: 18px; margin: 10px 0 12px; color: var(--g-600); font-size: 12px; }
.hx-leg span { display: inline-flex; align-items: center; gap: 6px; }
.hx-leg i { width: 8px; height: 8px; border-radius: 2px; }
.hx-leg b { color: var(--g-900); font-weight: 500; } .hx-leg small { color: var(--g-500); }
.hx-mss { border-top: 1px solid var(--g-200); }
.hx-ms { display: grid; grid-template-columns: 22px 1fr auto 64px; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--g-100); }
.hx-ms:last-child { border-bottom: 0; }
.hx-ms b { font-weight: 500; } .hx-ms > .mono { text-align: right; color: var(--g-600); }
.hx-ms-st { font-size: 12px; color: var(--g-500); }
.hx-dot { width: 16px; height: 16px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--g-300); display: grid; place-items: center; }
.hx-dot .gi { width: 10px; height: 10px; stroke-width: 2.2; }
.m-done .hx-dot { background: #2EA44F; box-shadow: none; color: #fff; }
.m-done b { color: var(--g-600); }
.m-rev .hx-dot { box-shadow: inset 0 0 0 1.5px #F5A623; background: radial-gradient(circle, #F5A623 0 3.5px, transparent 4px); }
.m-rev .hx-ms-st { color: #A35200; font-weight: 500; }

.hx-props { border-radius: 10px; box-shadow: 0 0 0 1px var(--g-200), 0 1px 2px rgba(0,0,0,.04); padding: 6px 16px; }
.hx-props > div { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 38px; border-bottom: 1px solid var(--g-100); }
.hx-props > div:last-child { border-bottom: 0; }
.hx-props > div > span:first-child { color: var(--g-500); font-size: 12.5px; }
.hx-pv { display: inline-flex; align-items: center; gap: 7px; }
.hx-pv .av { --s: 20px; } .hx-pv small { color: var(--g-500); font-size: 11.5px; }
.hx-pv .ftic { width: 14px; height: 18px; }

.hx-r2 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }
.hx-ap { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--g-100); }
.hx-ap:first-of-type { border-top: 0; padding-top: 0; }
.hx-ap .ftic { width: 22px; height: 28px; }
.hx-ap > span:nth-child(2) { flex: 1; min-width: 0; }
.hx-ap b { display: block; font-weight: 500; } .hx-ap small { display: block; font-size: 11.5px; color: var(--g-500); }
.hx-note { margin: 6px 0 0; font-size: 12px; color: var(--g-600); }
/* Mercury-style amount: dollars large, cents small */
.hx-amt { font-size: 28px !important; font-weight: 500; letter-spacing: -0.04em !important; margin: -2px 0 10px; }
.hx-amt small { font-size: 15px; color: var(--g-500); letter-spacing: 0; }
.hx-tl { list-style: none; margin: 0 0 12px; padding: 0; display: grid; }
.hx-tl li { position: relative; display: flex; justify-content: space-between; padding: 0 0 9px 18px; font-size: 12px; color: var(--g-600); }
.hx-tl li::before { content: ""; position: absolute; left: 3px; top: 5px; width: 7px; height: 7px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--g-300); background: #fff; }
.hx-tl li.ok::before { background: var(--g-900); box-shadow: none; }
.hx-tl li::after { content: ""; position: absolute; left: 6px; top: 13px; bottom: -1px; width: 1px; background: var(--g-200); }
.hx-tl li:last-child::after { display: none; }
.hx-tl b { font-weight: 400; color: var(--g-900); }
.hx-act { display: flex; gap: 9px; padding: 7px 0; }
.hx-act .av { --s: 22px; flex: none; }
.hx-act p { margin: 0; flex: 1; font-size: 12.5px; color: var(--g-600); line-height: 1.4; }
.hx-act b { color: var(--g-900); font-weight: 500; } .hx-act u { text-decoration: none; color: var(--g-900); }
.hx-act small { float: right; color: var(--g-500); }

/* one notification, Mintlify-style dark toast, sitting just off the window */
.hx-toast {
  position: absolute; z-index: 4; right: -34px; top: 462px;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 10px;
  background: #171717; color: #EDEDED; font-family: "Geist", var(--font-body); font-size: 13px;
  box-shadow: 0 1px 0 rgba(255,255,255,.08) inset, 0 12px 28px -8px rgba(0,0,0,.35);
}
.hx-toast > .gi { width: 18px; height: 18px; padding: 3px; border-radius: 50%; background: #2EA44F; color: #fff; stroke-width: 2.4; }
.hx-toast b { display: block; font-weight: 500; } .hx-toast small { display: block; font-size: 12px; color: #A1A1A1; }
.hx-tv { margin-left: 10px; padding-left: 12px; border-left: 1px solid rgba(255,255,255,.14); color: #fff; font-weight: 500; }

/* ---------- Responsive ---------- */
@media (max-width: 767px) {
  .hero-copy { padding-top: 132px; }
  .hero-points { margin-top: 22px; gap: 6px; font-size: 14px; }
  .hero-points .chip { height: 28px; font-size: 13px; }
  .lead { font-size: 15px; }
  .hero-ctas { margin-top: 24px; }
  .hero-copy h1 { font-size: 36px; text-wrap: balance; }
  .hero-note { flex-wrap: wrap; justify-content: center; gap: 6px 14px; font-size: 12px; }
  .hx-toast { display: none; }
  .hero-stage { margin-top: 44px; margin-right: calc(var(--gutter) * -1); overflow: hidden; border-radius: 16px 0 0 16px; }
  .hero-stage > .mock { transform-origin: top left; }
  .hero-fade { height: 120px; }
}
