/*
 * The site's one stylesheet: the "light bento" design (Option B).
 * Loaded on every public page by includes/header.php. Plain CSS, no framework.
 * New components are prefixed hm-. Near the end, a compatibility block styles the
 * older class names the docs templates and blog/doc content still use
 * (.card, .btn, .blog-content, .docs-*, .pd-*), and the old colour variables
 * that Panely's docs read.
 *
 * Layout: each section is a full-width colour band (.hm-band) with its content
 * held to 1400px by .hm-wrap. Animations only apply under html.hm-motion, which
 * a script in <head> sets when JS, IntersectionObserver and motion are allowed.
 */

/* ── Fonts (self-hosted, latin subset, variable weight) ───────────────────── */
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/assets/fonts/bricolage-grotesque-latin-wght.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter Tight";
  src: url("/assets/fonts/inter-tight-latin-wght.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ── Tokens ───────────────────────────────────────────────────────────────── */
:root {
  --hm-bg: #EBECF0;
  --hm-white: #FFFFFF;
  --hm-ink: #0E0F13;
  --hm-orange: #FD6B2C;
  --hm-lavender: #D9D3FF;
  --hm-lavender-tint: #EFECFF;
  --hm-mint: #D5EFE1;
  --hm-mint-tint: #EDFAF3;
  --hm-navy: #13213C;
  --hm-sky: #CEE2EB;
  --hm-sky-tint: #EAF4F8;
  --hm-teal: #1F796D;

  --hm-muted: #4A4D57;      /* body copy on light tiles */
  --hm-muted-2: #5E616B;    /* small meta text on light tiles */
  --hm-chip: #ECEDF1;
  --hm-tile-on-white: #F2F3F6;
  --hm-line: rgba(14, 15, 19, .12);
  --hm-focus: #4C3DF0;

  --hm-radius: 24px;
  --hm-gap: 12px;
  --hm-max: 1400px;
  --hm-gutter: 24px;
  --hm-band-space: 64px;
  --hm-nav-h: 76px;
  --hm-ease: cubic-bezier(.2, .7, .2, 1);

  --hm-font-display: "Bricolage Grotesque", "Inter Tight", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --hm-font-body: "Inter Tight", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
@media (min-width: 768px) { :root { --hm-band-space: 96px; } }
@media (min-width: 1200px) { :root { --hm-band-space: 116px; } }
@media (max-width: 380px) { :root { --hm-gutter: 18px; } }

/* ── Base ─────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--hm-nav-h) + 12px); }
body.hm {
  margin: 0;
  background: var(--hm-bg);
  color: var(--hm-ink);
  font-family: var(--hm-font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
/* Resets use :where() so they carry no extra weight and any single class below wins. */
:where(.hm) :where(h1, h2, h3, h4, h5, h6, p, ul, ol, dl, dd, figure, blockquote) { margin: 0; }
:where(.hm) :where(ul) { padding: 0; list-style: none; }
:where(.hm) :where(h1, h2, h3, h4, h5, h6) { font-family: var(--hm-font-display); font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
:where(.hm) :where(button, input, select, textarea) { font: inherit; color: inherit; }
:where(.hm) :where(img) { max-width: 100%; display: block; }
:where(.hm) :where(a) { color: inherit; text-decoration: none; }
.hm a:focus-visible, .hm button:focus-visible { outline: 3px solid var(--hm-focus); outline-offset: 3px; border-radius: 8px; }
.hm a.hm-tile:focus-visible { border-radius: var(--hm-radius); }
.hm-band--dark a:focus-visible { outline-color: #A99CFF; }

.hm-visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.hm-skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--hm-ink); color: #fff; padding: 10px 16px; border-radius: 999px; font-weight: 600;
}
.hm-skip:focus { top: 12px; }

.hm-wrap {
  width: 100%;
  max-width: calc(var(--hm-max) + var(--hm-gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--hm-gutter);
}

/* ── Bands: each section is its own full-width block ─────────────────────── */
.hm-band { padding: var(--hm-band-space) 0; }
.hm-band--grey  { background: var(--hm-bg); }
.hm-band--white { background: var(--hm-white); }
.hm-band--dark  { background: var(--hm-ink); color: #fff; }
.hm-band--hero  { padding: 8px 0 var(--hm-band-space); }

/* Tiles that sit on a white band get a soft grey so they still read as tiles */
.hm-band--white .hm-tile--white { background: var(--hm-tile-on-white); }

/* ── Section header: label, H2, note, divider ─────────────────────────────── */
.hm-section-head {
  padding: 0 4px 28px; margin-bottom: 40px;
  border-bottom: 1px solid var(--hm-line);
}
.hm-band--dark .hm-section-head { border-bottom-color: rgba(255, 255, 255, .14); }
.hm-eyebrow {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--hm-muted-2);
  margin-bottom: 18px;
}
.hm-eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--hm-orange); margin-right: 6px; }
.hm-eyebrow-num { color: var(--hm-ink); }
.hm-band--dark .hm-eyebrow { color: rgba(255, 255, 255, .62); }
.hm-band--dark .hm-eyebrow-num { color: #fff; }
.hm-section-head-row { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 16px 48px; }
.hm-section-aside { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; max-width: 360px; }
.hm-section-note { font-size: 15px; line-height: 1.55; color: var(--hm-muted); }
.hm-band--dark .hm-section-note { color: rgba(255, 255, 255, .72); }

/* ── Tiles ────────────────────────────────────────────────────────────────── */
.hm-tile { border-radius: var(--hm-radius); padding: 28px; position: relative; }
.hm-tile--white    { background: var(--hm-white); }
.hm-tile--black    { background: var(--hm-ink); color: #fff; }
.hm-tile--orange   { background: var(--hm-orange); color: var(--hm-ink); }
.hm-tile--lavender { background: var(--hm-lavender); }
.hm-tile--mint     { background: var(--hm-mint); }
.hm-tile--navy     { background: var(--hm-navy); color: #fff; }
.hm-tile--sky      { background: var(--hm-sky); }
.hm-tile--teal     { background: var(--hm-teal); color: #fff; }

.hm-lift { transition: transform .35s var(--hm-ease), box-shadow .35s var(--hm-ease); }
.hm-lift:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -22px rgba(14, 15, 19, .35); }
.hm-band--dark .hm-lift:hover { box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .7); }

/* ── Type ─────────────────────────────────────────────────────────────────── */
.hm-h1, .hm-h2, .hm-h3, .hm-stat-num, .hm-logo, .hm-cta-title,
.hm-tile-title, .hm-post-featured-title, .hm-post-title, .hm-review blockquote, .hm-review-hero blockquote {
  font-family: var(--hm-font-display);
}
.hm-h1 { font-size: clamp(44px, 6.4vw, 88px); font-weight: 700; line-height: .97; letter-spacing: -0.045em; max-width: 11.5ch; }
.hm-h2 { font-size: clamp(38px, 5vw, 64px); font-weight: 700; line-height: 1; letter-spacing: -0.04em; }
.hm-h3 { font-size: 21px; font-weight: 650; line-height: 1.2; letter-spacing: -0.02em; }
.hm-h3--lg { font-size: clamp(24px, 2.4vw, 30px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; }
.hm-tile-title { font-size: 22px; font-weight: 650; letter-spacing: -0.02em; line-height: 1.2; }
.hm-meta { font-size: 13px; color: var(--hm-muted-2); }

/* ── Buttons, pills, links ────────────────────────────────────────────────── */
.hm-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 22px; border-radius: 999px;
  font-family: var(--hm-font-display); font-size: 15px; font-weight: 650; letter-spacing: -0.01em;
  white-space: nowrap;
  transition: transform .25s var(--hm-ease), background-color .25s ease, box-shadow .25s ease;
}
.hm-btn svg { transition: transform .25s var(--hm-ease); }
.hm-btn:hover { transform: translateY(-2px); }
.hm-btn:hover svg { transform: translateX(3px); }
.hm-btn:active { transform: translateY(0); }
.hm-btn-lg { height: 54px; padding: 0 28px; font-size: 16px; }
.hm-btn-dark { background: var(--hm-ink); color: #fff; }
.hm-btn-dark:hover { background: #2A2C35; box-shadow: 0 10px 22px -12px rgba(14, 15, 19, .6); }
.hm-btn-orange { background: var(--hm-orange); color: var(--hm-ink); }
.hm-btn-orange:hover { background: #FF7E46; box-shadow: 0 12px 26px -12px rgba(253, 107, 44, .75); }

.hm-pill {
  display: inline-flex; align-items: center; gap: 8px;
  height: 28px; padding: 0 12px; border-radius: 999px;
  font-size: 12.5px; font-weight: 600; line-height: 1;
}
.hm-pill--white { background: #fff; color: var(--hm-ink); }
.hm-pill--grey  { background: var(--hm-chip); color: var(--hm-ink); }
.hm-dot { width: 7px; height: 7px; border-radius: 50%; background: #1FA463; box-shadow: 0 0 0 3px rgba(31, 164, 99, .18); }

.hm-text-link {
  font-size: 14.5px; font-weight: 600; white-space: nowrap;
  text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1.5px;
  transition: text-decoration-thickness .2s ease;
}
.hm-text-link:hover { text-decoration-thickness: 2.5px; }

/* ── Sticky header ────────────────────────────────────────────────────────── */
.hm-nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(235, 236, 240, 0);
  transition: background-color .3s ease, box-shadow .3s ease, -webkit-backdrop-filter .3s ease, backdrop-filter .3s ease;
}
.hm-nav.is-scrolled {
  background: rgba(235, 236, 240, .82);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  box-shadow: 0 1px 0 rgba(14, 15, 19, .06), 0 10px 30px -18px rgba(14, 15, 19, .35);
}
.hm-nav-inner { display: flex; align-items: center; justify-content: space-between; height: var(--hm-nav-h); }
/* The logo is the AD mark (assets/img/logo-mark.webp, cropped from logo.png; white copy for the footer).
   Its width/height attributes reserve the space, so it never shifts the layout. */
.hm-logo { display: inline-flex; align-items: center; flex-shrink: 0; padding-left: 4px; border-radius: 10px; }
.hm-logo-img { display: block; width: auto; height: 40px; }
.hm-logo--light { padding-left: 0; }

.hm-menu { display: flex; align-items: center; gap: 28px; }
.hm-menu-links { display: flex; gap: 6px; }
.hm-menu-links a { display: block; font-size: 15px; font-weight: 500; padding: 8px 12px; border-radius: 999px; transition: background-color .2s ease; }
.hm-menu-links a:hover { background: rgba(14, 15, 19, .07); }

.hm-menu-btn {
  display: none; width: 44px; height: 44px; border: 0; border-radius: 999px;
  background: var(--hm-ink); color: #fff; cursor: pointer; align-items: center; justify-content: center;
}
.hm-menu-close { display: none; }
.hm-menu-is-open .hm-menu-open { display: none; }
.hm-menu-is-open .hm-menu-close { display: inline; }

@media (max-width: 900px) {
  .hm-menu-btn { display: inline-flex; }
  .hm-menu {
    display: none;
    position: absolute; top: calc(var(--hm-nav-h) - 4px); left: var(--hm-gutter); right: var(--hm-gutter);
    flex-direction: column; align-items: stretch; gap: 8px;
    background: #fff; border-radius: var(--hm-radius); padding: 12px;
    box-shadow: 0 24px 48px -20px rgba(14, 15, 19, .35);
  }
  .hm-menu-is-open .hm-menu { display: flex; }
  .hm-menu-links { flex-direction: column; gap: 0; }
  .hm-menu-links a { padding: 14px 16px; font-size: 17px; border-radius: 14px; }
  .hm-menu-links a:hover { background: var(--hm-bg); }
  .hm-menu-cta { height: 52px; }
}

/* ── Hero ─────────────────────────────────────────────────────────────────── */
.hm-hero { display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr); gap: var(--hm-gap); }
.hm-hero-main {
  display: flex; flex-direction: column; justify-content: space-between; gap: 40px;
  min-height: 600px; padding: 64px 64px 56px;
}
.hm-hero-foot { display: flex; align-items: center; justify-content: space-between; gap: 24px 32px; flex-wrap: wrap; }
.hm-hero-lead { font-size: 16px; line-height: 1.6; color: var(--hm-muted); max-width: 440px; }

.hm-hero-photo { padding: 0; overflow: hidden; min-height: 380px; isolation: isolate; }
.hm-hero-photo img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 20%;
  will-change: transform;
}
.hm-motion .hm-hero-photo img { transform: scale(1.08); animation: hm-photo-in 1.4s var(--hm-ease) backwards; }
@keyframes hm-photo-in { from { transform: scale(1.16); } to { transform: scale(1.08); } }
.hm-hero-status { position: absolute; z-index: 1; top: 16px; left: 16px; height: 34px; padding: 0 14px; font-size: 13px; }

/* ── Stats ────────────────────────────────────────────────────────────────── */
.hm-stats {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.7fr);
  gap: var(--hm-gap); margin-top: var(--hm-gap);
}
.hm-stat { display: flex; flex-direction: column; justify-content: space-between; gap: 24px; min-height: 228px; }
.hm-stat-num { font-size: clamp(56px, 6vw, 80px); font-weight: 700; line-height: .95; letter-spacing: -0.045em; font-variant-numeric: tabular-nums; }
.hm-stat-label { font-size: 14.5px; line-height: 1.45; max-width: 240px; }
.hm-tile--black .hm-stat-label { color: rgba(255, 255, 255, .78); }

.hm-stack { display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.hm-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.hm-chip { background: var(--hm-chip); border-radius: 999px; padding: 8px 15px; font-size: 14px; font-weight: 500; line-height: 1.2; transition: background-color .2s ease; }
.hm-chip:hover { background: #E0E2E8; }

/* ── Grids ────────────────────────────────────────────────────────────────── */
.hm-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--hm-gap); }

/* Services */
.hm-service { display: flex; flex-direction: column; min-height: 228px; padding: 32px; }
.hm-service .hm-h3 { margin-bottom: 10px; }
.hm-service-desc { font-size: 15px; line-height: 1.55; color: var(--hm-muted); max-width: 400px; }
.hm-service .hm-meta { margin-top: auto; padding-top: 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.hm-service-arrow {
  display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: #fff; color: var(--hm-ink); flex-shrink: 0;
  transition: background-color .25s ease, color .25s ease, transform .25s var(--hm-ease);
}
.hm-service:hover .hm-service-arrow { background: var(--hm-ink); color: #fff; transform: rotate(-45deg); }

/* Service icon badges (includes/ui.php hm_icon): 48px rounded square, soft tint, decorative */
.hm-ico {
  display: grid; place-items: center; flex-shrink: 0; width: 48px; height: 48px; margin-bottom: 20px;
  border-radius: 14px; background: var(--ico-bg, var(--hm-lavender)); color: var(--ico-c, var(--hm-ink));
  transition: transform .4s var(--hm-ease);
}
.hm-ico svg { display: block; width: 24px; height: 24px; }
.hm-ico--lavender  { --ico-bg: #D9D3FF; --ico-c: #2B2470; }
.hm-ico--violet    { --ico-bg: #E4DFFF; --ico-c: #4C3DF0; }
.hm-ico--mint      { --ico-bg: #D5EFE1; --ico-c: #1D5B3A; }
.hm-ico--orange    { --ico-bg: #FFE4D6; --ico-c: #A93A0B; }
.hm-ico--sky       { --ico-bg: #CEE2EB; --ico-c: #13213C; }
.hm-ico--teal      { --ico-bg: #D4ECE7; --ico-c: #1F796D; }
.hm-ico--shopify   { --ico-bg: #D5EFE1; --ico-c: #5E8E3E; }
.hm-ico--wordpress { --ico-bg: #CEE2EB; --ico-c: #21759B; }
/* On a tinted tile the badge turns white so it still stands out */
.hm-tile--lavender .hm-ico, .hm-tile--mint .hm-ico, .hm-tile--sky .hm-ico { --ico-bg: #fff; }
.hm-feature .hm-ico { margin-bottom: 12px; }
.hm-svc-card .hm-ico { margin-bottom: 4px; }
.hm-lift:hover .hm-ico { transform: translateY(-3px) rotate(-6deg); }

/* ── Recent work ──────────────────────────────────────────────────────────── */
.hm-work { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--hm-gap); }
.hm-work-tile { display: flex; flex-direction: column; gap: 28px; padding: 28px 28px 0; overflow: hidden; }
.hm-work-text p { font-size: 14.5px; line-height: 1.5; margin-top: 6px; }
.hm-h3--work { font-size: clamp(22px, 2vw, 27px); font-weight: 700; letter-spacing: -0.03em; }
.hm-tile--navy .hm-work-text p { color: rgba(255, 255, 255, .8); }
.hm-tile--teal .hm-work-text p { color: #fff; }
.hm-tile--sky .hm-work-text p { color: #2F3A44; }
.hm-work-link {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 14px;
  font-size: 14px; font-weight: 600;
  text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1.5px;
}
.hm-work-link svg { transition: transform .25s var(--hm-ease); }
.hm-work-link:hover svg, a.hm-tile:hover .hm-work-link svg { transform: translateX(4px); }

/* Browser-window frame: sits at the bottom of the tile, cropped only slightly at the bottom edge */
.hm-browser {
  margin-top: auto;
  background: #fff; border-radius: 12px 12px 0 0; overflow: hidden;
  box-shadow: 0 -2px 0 rgba(255, 255, 255, .06), 0 18px 50px -18px rgba(0, 0, 0, .45);
  transition: transform .45s var(--hm-ease);
}
.hm-work-tile:hover .hm-browser { transform: translateY(-6px); }
.hm-browser-bar { display: flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; background: #F1F2F5; border-bottom: 1px solid #E3E5EA; }
.hm-browser-bar span { width: 9px; height: 9px; border-radius: 50%; background: #FF5F57; }
.hm-browser-bar span:nth-child(2) { background: #FEBC2E; }
.hm-browser-bar span:nth-child(3) { background: #28C840; }
.hm-browser-view { aspect-ratio: 16 / 9.4; overflow: hidden; background: #fff; }
.hm-browser-view img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }

.hm-work-cta {
  grid-column: 1 / -1;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px 32px;
  padding: 36px 40px;
}
.hm-work-cta .hm-h3--lg { font-size: clamp(26px, 3vw, 38px); }

/* ── Shopify apps ─────────────────────────────────────────────────────────── */
.hm-apps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--hm-gap); }
.hm-app { display: flex; flex-direction: column; align-items: flex-start; padding: 28px; }
.hm-app-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.hm-app-icon { width: 56px; height: 56px; border-radius: 14px; box-shadow: 0 6px 16px -8px rgba(14, 15, 19, .45); flex-shrink: 0; }
.hm-app .hm-h3 a { transition: color .2s ease; }
.hm-app .hm-h3 a:hover { text-decoration: underline; text-underline-offset: 4px; }
.hm-app-kind { font-size: 13px; font-weight: 600; color: var(--hm-muted); margin-top: 2px; }
.hm-app-desc { font-size: 15px; line-height: 1.55; color: var(--hm-muted); min-height: 4.65em; }
.hm-app-preview {
  position: relative; overflow: hidden;
  width: 100%; flex: 1; min-height: 280px; margin: 22px 0 24px; border-radius: 18px;
  display: flex; align-items: center; justify-content: center; padding: 22px;
}
.hm-app-preview--lavender { background: var(--hm-lavender-tint); }
.hm-app-preview--mint { background: var(--hm-mint-tint); }
.hm-app-preview--sky { background: var(--hm-sky-tint); }

.hm-mock { position: relative; z-index: 1; background: #fff; border-radius: 16px; box-shadow: 0 16px 40px -20px rgba(14, 15, 19, .45); transition: transform .45s var(--hm-ease); }
.hm-app:hover .hm-mock { transform: translateY(-4px) scale(1.015); }
.hm-mock-title { font-family: var(--hm-font-display); font-size: 19px; font-weight: 700; letter-spacing: -0.02em; }

/* Age Shield: a blurred store behind an age gate */
.hm-mock-store { position: absolute; inset: 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; filter: blur(3px); opacity: .55; }
.hm-mock-store span { border-radius: 10px; background: #D6D0FA; }
.hm-mock-store span:nth-child(2), .hm-mock-store span:nth-child(3) { background: #C9C1F7; }
.hm-mock-gate { padding: 22px 22px 20px; text-align: center; width: 100%; max-width: 280px; }
.hm-mock-shield { margin: 0 auto 10px; display: block; }
.hm-mock-text { font-size: 12.5px; color: var(--hm-muted-2); margin: 6px 0 16px; }
.hm-mock-actions { display: flex; gap: 8px; justify-content: center; }
.hm-mock-btn {
  display: inline-flex; align-items: center; height: 36px; padding: 0 16px; border-radius: 8px;
  border: 1.5px solid var(--hm-ink); font-size: 13px; font-weight: 600; white-space: nowrap;
}
.hm-mock-btn--dark { background: var(--hm-ink); color: #fff; }

/* Limitly: a product card with a quantity limit */
.hm-mock-limit { padding: 18px; width: 100%; max-width: 280px; }
.hm-mock-product { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.hm-mock-thumb { width: 54px; height: 54px; border-radius: 12px; background: #BFE6D3; flex-shrink: 0; display: grid; place-items: center; }
.hm-mock-thumb span { width: 16px; height: 34px; border-radius: 6px 6px 4px 4px; background: #1F796D; }
.hm-mock-name { display: block; font-size: 14px; font-weight: 600; }
.hm-mock-price { display: block; font-size: 13px; color: var(--hm-muted-2); }
.hm-mock-sub { display: block; font-size: 12px; color: var(--hm-muted-2); margin-bottom: 6px; }
.hm-mock-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.hm-mock-qty {
  display: inline-flex; align-items: center; gap: 12px;
  height: 34px; padding: 0 12px; border: 1.5px solid var(--hm-ink); border-radius: 10px; font-weight: 600; font-size: 14px;
}
.hm-mock-max { font-size: 11.5px; font-weight: 600; color: #8A1538; background: #FCE8EC; padding: 5px 8px; border-radius: 6px; }
.hm-mock-cart { display: flex; align-items: center; justify-content: center; height: 38px; margin-top: 14px; border-radius: 10px; background: var(--hm-ink); color: #fff; font-size: 13px; font-weight: 600; }

/* Panely: a section picker beside a theme canvas */
.hm-mock-panely { display: flex; width: 100%; max-width: 330px; overflow: hidden; }
.hm-mock-side { display: flex; flex-direction: column; gap: 2px; padding: 12px 8px; width: 46%; border-right: 1px solid #E6E8EE; font-size: 11.5px; font-weight: 500; }
.hm-mock-side span { padding: 6px 8px; border-radius: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hm-mock-side .hm-mock-side-title { font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--hm-muted-2); }
.hm-mock-side .is-on { background: #5B4BC4; color: #fff; }
.hm-mock-canvas { flex: 1; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.hm-mock-canvas-head { height: 8px; width: 60%; border-radius: 4px; background: #D9DCE4; }
.hm-mock-bento { display: grid; grid-template-columns: 1.4fr 1fr; grid-template-rows: 44px 44px; gap: 6px; }
.hm-mock-bento span { border-radius: 8px; background: #E4E0FA; }
.hm-mock-bento span:first-child { grid-row: span 2; background: #5B4BC4; }
.hm-mock-bento span:nth-child(3) { background: #F6B13B; }
.hm-mock-add { margin-top: 2px; display: flex; align-items: center; justify-content: center; height: 28px; border: 1.5px dashed #B9BECB; border-radius: 8px; font-size: 11px; font-weight: 600; color: var(--hm-muted-2); }

/* ── Reviews (dark band) ──────────────────────────────────────────────────── */
.hm-reviews-top { display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr); gap: var(--hm-gap); }
.hm-review-hero {
  display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
  min-height: 360px; padding: 44px 52px;
  background: #1B1D24; color: #fff; border: 1px solid rgba(255, 255, 255, .08);
}
.hm-review-hero blockquote { font-size: clamp(40px, 5.2vw, 72px); font-weight: 700; line-height: 1; letter-spacing: -0.04em; max-width: 12ch; }
.hm-review-hero figcaption { font-size: 14px; color: rgba(255, 255, 255, .7); }
.hm-stat--tall .hm-stat-num { font-size: clamp(64px, 7vw, 104px); }
.hm-reviews-small { margin-top: var(--hm-gap); }
.hm-review { display: flex; flex-direction: column; justify-content: space-between; gap: 24px; min-height: 200px; color: var(--hm-ink); }
.hm-review blockquote { font-size: 19px; font-weight: 600; line-height: 1.3; letter-spacing: -0.015em; }
.hm-review figcaption { font-size: 13px; color: var(--hm-muted-2); }
.hm-band--dark .hm-text-link { color: #fff; }

/* ── Blog ─────────────────────────────────────────────────────────────────── */
.hm-blog { display: grid; grid-template-columns: minmax(0, 1.38fr) minmax(0, 1fr); gap: var(--hm-gap); }
.hm-blog-list { display: flex; flex-direction: column; gap: var(--hm-gap); }
.hm-post-meta { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--hm-muted-2); }
.hm-post-featured { display: flex; flex-direction: column; justify-content: space-between; gap: 48px; min-height: 480px; padding: 36px 36px 40px; }
.hm-post-featured .hm-post-meta { color: #3E3A5C; }
.hm-post-featured-title { font-size: clamp(28px, 3vw, 42px); font-weight: 700; line-height: 1.06; letter-spacing: -0.03em; max-width: 18ch; }
.hm-post-excerpt { font-size: 15px; line-height: 1.55; color: #3E3A5C; margin-top: 14px; max-width: 520px; }
.hm-post-read { margin-top: 20px; }
.hm-post { flex: 1; display: flex; flex-direction: column; gap: 14px; padding: 24px 26px; }
.hm-post-title { font-size: 20px; font-weight: 650; line-height: 1.25; letter-spacing: -0.02em; }

/* ── CTA ──────────────────────────────────────────────────────────────────── */
.hm-cta {
  display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 32px;
  padding: 72px 64px 64px;
}
.hm-cta-title { font-size: clamp(44px, 6.4vw, 92px); font-weight: 700; line-height: .97; letter-spacing: -0.045em; max-width: 9.5ch; }
.hm-cta-side { text-align: center; }
.hm-cta-side p { font-size: 13.5px; margin-top: 10px; }

/* ── Footer (full width) ──────────────────────────────────────────────────── */
.hm-footer { background: var(--hm-ink); color: rgba(255, 255, 255, .72); padding: 72px 0 40px; font-size: 14px; }
.hm-footer a { transition: color .2s ease; }
.hm-footer a:hover { color: #fff; }
.hm-footer-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(4, minmax(0, 1fr)); gap: 40px 28px; }
.hm-footer-brand .hm-logo-img { height: 44px; }
.hm-footer-brand > p { margin-top: 18px; line-height: 1.55; max-width: 290px; }
.hm-footer-contact { display: flex; flex-direction: column; gap: 6px; }
.hm-footer-contact a:first-child { color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.hm-footer-phone { font-size: 13px; color: rgba(255, 255, 255, .6); }
.hm-footer-social { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.hm-footer-social a {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .2); color: #fff;
  transition: background-color .25s ease, color .25s ease, border-color .25s ease, transform .25s var(--hm-ease);
}
.hm-footer-social a:hover { background: #fff; color: var(--hm-ink); border-color: #fff; transform: translateY(-3px); }
.hm-footer-title { color: #fff; font-weight: 600; margin-bottom: 16px; }
.hm-footer-col li + li { margin-top: 10px; }
.hm-footer-bottom {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 28px;
  margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 13px;
}
.hm-footer-privacy { color: rgba(255, 255, 255, .6); }
.hm-footer-privacy a { color: rgba(255, 255, 255, .78); }
.hm-footer-legal { display: flex; gap: 20px; }

/* ── Scroll reveal (only when html.hm-motion is set) ──────────────────────── */
/* site.js "arms" only what starts below the first screen, so nothing visible
   on load is ever hidden: no delay to the first paint, no flash. */
.hm-motion .hm-reveal.is-armed {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s var(--hm-ease), transform .8s var(--hm-ease);
  transition-delay: var(--d, 0ms);
}
.hm-motion .hm-reveal.is-armed.is-in { opacity: 1; transform: none; }

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 1080px) {
  .hm-footer-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .hm-footer-brand { grid-column: 1 / -1; }
  .hm-apps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hm-apps .hm-app:last-child { grid-column: 1 / -1; }
  .hm-apps .hm-app:last-child .hm-app-preview { min-height: 240px; }
}

@media (max-width: 980px) {
  .hm-hero { grid-template-columns: minmax(0, 1fr); }
  .hm-hero-main { min-height: 0; padding: 44px 36px 36px; }
  .hm-hero-photo { min-height: 440px; }
  .hm-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hm-stats .hm-stack { grid-column: 1 / -1; }
  .hm-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hm-work { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hm-work-tile:nth-child(3) { grid-column: 1 / -1; }
  .hm-work-tile:nth-child(3) .hm-browser { width: 100%; max-width: 620px; margin-left: auto; margin-right: auto; }
  .hm-reviews-top, .hm-blog { grid-template-columns: minmax(0, 1fr); }
  .hm-post-featured { min-height: 360px; }
  .hm-section-head { margin-bottom: 32px; }
}

@media (max-width: 680px) {
  .hm-nav .hm-logo-img { height: 34px; }
  .hm-tile { padding: 24px; }
  .hm-band--hero { padding-top: 4px; }
  .hm-hero-main { padding: 32px 24px 28px; gap: 28px; }
  .hm-hero-foot { flex-direction: column; align-items: flex-start; }
  .hm-hero-photo { min-height: 0; aspect-ratio: 4 / 4.4; padding: 0; }
  .hm-stat { min-height: 168px; }
  .hm-grid-3, .hm-work, .hm-apps { grid-template-columns: minmax(0, 1fr); }
  .hm-work-tile:nth-child(3), .hm-apps .hm-app:last-child { grid-column: auto; }
  .hm-work-tile { padding: 24px 24px 0; }
  .hm-work-cta { padding: 28px 24px; }
  .hm-service { min-height: 0; padding: 24px; }
  .hm-section-head { padding: 0 2px 24px; margin-bottom: 28px; }
  .hm-section-head-row { gap: 14px; }
  .hm-app-desc { min-height: 0; }
  .hm-app-preview { min-height: 240px; }
  .hm-review-hero { min-height: 280px; padding: 28px 24px; }
  .hm-review { min-height: 0; }
  .hm-post-featured { min-height: 300px; padding: 24px; }
  .hm-cta { padding: 40px 24px 32px; align-items: flex-start; }
  .hm-cta-side { text-align: left; }
  .hm-footer { padding: 56px 0 32px; }
  .hm-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hm-footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* Everything that moves stops for people who ask for less motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hm *, .hm *::before, .hm *::after { transition: none !important; animation: none !important; }
  .hm-lift:hover, .hm-btn:hover, .hm-footer-social a:hover,
  .hm-work-tile:hover .hm-browser, .hm-app:hover .hm-mock, .hm-lift:hover .hm-ico { transform: none; }
  .hm-hero-photo img { transform: none !important; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   INNER PAGES
   ═══════════════════════════════════════════════════════════════════════════ */

/* Old colour variables, mapped onto the new palette. Panely's docs read
   these; new components use the --hm-* tokens. */
:root {
  --fg: var(--hm-ink);
  --fg-muted: #4A4D57;
  --fg-faint: #5E616B;
  --bg: #FFFFFF;
  --bg-soft: #F2F3F6;
  --border: rgba(14, 15, 19, .12);
  --border-strong: rgba(14, 15, 19, .26);
  --accent: #4C3DF0;
  --accent-soft: #EFECFF;
  --accent-strong: #3A2DC4;
  --indigo-100: #DCD7FF;
  --deep: #0E0F13;
  --violet-700: #13213C;
  --font-display: var(--hm-font-display);
  --font-sans: var(--hm-font-body);
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --radius-sm: 12px;
  --radius: 16px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow: 0 12px 30px -18px rgba(14, 15, 19, .3);
  --shadow-lg: 0 24px 48px -24px rgba(14, 15, 19, .35);
}

/* ── Page hero: the opening tile of every inner page ─────────────────────── */
.hm-band--page-hero { padding: 8px 0 clamp(48px, 6vw, 80px); }
.hm-page-hero { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--hm-gap); }
.hm-page-hero--split { grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr); }
.hm-page-hero-main {
  display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 360px; padding: 48px 64px 52px;
}
.hm-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13.5px; color: var(--hm-muted-2); margin-bottom: auto; padding-bottom: 36px; }
.hm-crumbs a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(14, 15, 19, .25); }
.hm-crumbs a:hover { color: var(--hm-ink); text-decoration-color: currentColor; }
.hm-crumbs [aria-current], .hm-crumbs .is-current { color: var(--hm-ink); font-weight: 600; }
.hm-page-hero-main .hm-eyebrow { margin-bottom: 18px; }
.hm-page-title { font-family: var(--hm-font-display); font-size: clamp(40px, 5.8vw, 80px); font-weight: 700; line-height: .98; letter-spacing: -0.045em; max-width: 15ch; }
.hm-page-title--md { font-size: clamp(32px, 4.4vw, 58px); line-height: 1.04; letter-spacing: -0.04em; max-width: 24ch; }
.hm-page-lead { font-size: clamp(16px, 1.3vw, 19px); line-height: 1.6; color: var(--hm-muted); max-width: 660px; margin-top: 20px; }
.hm-page-meta { font-size: 13.5px; color: var(--hm-muted-2); margin-top: 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.hm-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 28px; }
.hm-page-hero-side { overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; gap: 20px; min-height: 260px; }
.hm-page-hero-photo { padding: 0; }
.hm-page-hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.hm-page-hero-photo .hm-pill { position: absolute; top: 16px; left: 16px; height: 34px; padding: 0 14px; font-size: 13px; }

/* ── More buttons ─────────────────────────────────────────────────────────── */
.hm-btn-outline { background: transparent; color: var(--hm-ink); box-shadow: inset 0 0 0 1.5px var(--hm-ink); }
.hm-btn-outline:hover { background: var(--hm-ink); color: #fff; }
.hm-btn-white { background: #fff; color: var(--hm-ink); }
.hm-btn-white:hover { box-shadow: 0 10px 22px -12px rgba(14, 15, 19, .45); }
.hm-btn-sm { height: 38px; padding: 0 16px; font-size: 14px; }
.hm-btn-block { width: 100%; }

/* ── Grids and generic tiles ──────────────────────────────────────────────── */
.hm-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--hm-gap); }
.hm-grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--hm-gap); }
.hm-stack-gap { display: grid; gap: var(--hm-gap); }
.hm-mt { margin-top: var(--hm-gap); }
.hm-mt-lg { margin-top: 48px; }
.hm-label { font-size: 12.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--hm-muted-2); margin-bottom: 14px; }
.hm-tile--dark .hm-label, .hm-tile--black .hm-label, .hm-tile--navy .hm-label { color: rgba(255, 255, 255, .62); }
.hm-tile--dark { background: #1B1D24; color: #fff; }
.hm-muted { color: var(--hm-muted); }
.hm-copy { font-size: 16px; line-height: 1.7; color: var(--hm-muted); }
.hm-copy p + p { margin-top: 16px; }
.hm-copy strong { color: var(--hm-ink); }
.hm-h3--sm { font-size: 18px; }

/* Feature tile: icon, title, one or two lines */
.hm-feature { display: flex; flex-direction: column; gap: 8px; }
.hm-feature-icon {
  width: 48px; height: 48px; border-radius: 14px; margin-bottom: 10px;
  display: grid; place-items: center; font-size: 22px; line-height: 1; background: var(--hm-bg);
}
.hm-band--white .hm-feature-icon { background: #fff; }
.hm-feature p { font-size: 15px; line-height: 1.55; color: var(--hm-muted); }

/* Numbered steps */
.hm-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--hm-gap); list-style: none; padding: 0; }
.hm-step { display: flex; flex-direction: column; gap: 10px; min-height: 250px; }
.hm-step-num { font-family: var(--hm-font-display); font-size: 56px; font-weight: 700; letter-spacing: -0.045em; line-height: 1; color: var(--hm-orange); margin-bottom: auto; padding-bottom: 28px; }
.hm-step p { font-size: 15px; line-height: 1.55; color: var(--hm-muted); }

/* Pricing tiles */
.hm-price { display: flex; flex-direction: column; gap: 6px; }
.hm-price-from { font-size: 12.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--hm-muted-2); margin-top: 18px; }
.hm-price-num { font-family: var(--hm-font-display); font-size: clamp(36px, 3.4vw, 46px); font-weight: 700; letter-spacing: -0.04em; line-height: 1.05; }
.hm-price p { font-size: 15px; line-height: 1.55; color: var(--hm-muted); margin: 8px 0 20px; }
.hm-price .hm-work-link { margin-top: auto; }

/* FAQ */
.hm-faq { display: grid; gap: 10px; }
.hm-faq details { background: #fff; border-radius: 20px; }
.hm-band--white .hm-faq details { background: var(--hm-tile-on-white); }
.hm-faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 22px 26px; font-family: var(--hm-font-display); font-size: 19px; font-weight: 650; letter-spacing: -0.015em; line-height: 1.3;
}
.hm-faq summary::-webkit-details-marker { display: none; }
.hm-faq summary::after {
  content: "+"; flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; background: var(--hm-ink); color: #fff; font-size: 20px; font-weight: 500;
  transition: transform .3s var(--hm-ease);
}
.hm-faq details[open] summary::after { transform: rotate(45deg); }
.hm-faq-a { padding: 0 26px 24px; font-size: 15.5px; line-height: 1.65; color: var(--hm-muted); max-width: 860px; }

/* Key / value rows (app details, at-a-glance) */
.hm-kv { display: grid; font-size: 14.5px; }
.hm-kv > div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--hm-line); }
.hm-kv > div:last-child { border-bottom: 0; padding-bottom: 0; }
.hm-kv > div:first-child { padding-top: 0; }
.hm-kv dt { color: var(--hm-muted); }
.hm-kv dd { font-weight: 600; text-align: right; }
.hm-tile--dark .hm-kv > div { border-color: rgba(255, 255, 255, .12); }
.hm-tile--dark .hm-kv dt { color: rgba(255, 255, 255, .65); }

/* Checklist */
.hm-checks { display: grid; gap: 10px; }
.hm-checks li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 1.5; }
.hm-checks li::before {
  content: ""; flex-shrink: 0; width: 20px; height: 20px; margin-top: 1px; border-radius: 50%;
  background: var(--hm-ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 12.5l3 3 7-7' fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.hm-checks--sm li { font-size: 13.5px; }
.hm-checks--sm li::before { width: 17px; height: 17px; background-size: 12px; }

/* Facts strip (app pages) */
.hm-facts { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--hm-gap); margin-top: var(--hm-gap); }
.hm-fact { padding: 20px 24px; }
.hm-fact dt { font-size: 12.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--hm-muted-2); }
.hm-fact dd { font-family: var(--hm-font-display); font-size: 21px; font-weight: 700; letter-spacing: -0.02em; margin-top: 6px; }

/* Layout with a sidebar */
.hm-split { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: var(--hm-gap); align-items: start; }
.hm-split--narrow { grid-template-columns: minmax(0, 1fr) 320px; }
.hm-sticky { position: sticky; top: calc(var(--hm-nav-h) + 16px); }
.hm-side { display: grid; gap: var(--hm-gap); }

/* ── Filters, search, project and post cards ─────────────────────────────── */
.hm-toolbar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px 24px; margin-bottom: 24px; }
.hm-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.hm-filter-btn {
  display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 18px; border: 0; border-radius: 999px;
  background: #fff; color: var(--hm-ink); font-size: 14.5px; font-weight: 550; cursor: pointer;
  transition: background-color .2s ease, color .2s ease;
}
.hm-band--white .hm-filter-btn { background: var(--hm-tile-on-white); }
.hm-filter-btn:hover { background: #DDDFE5; }
.hm-filter-btn.is-active { background: var(--hm-ink); color: #fff; }
.hm-filter-count { font-size: 12px; opacity: .6; }
.hm-search { position: relative; flex: 1; max-width: 360px; min-width: 220px; }
.hm-search svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--hm-muted-2); pointer-events: none; }
.hm-search input {
  width: 100%; height: 46px; padding: 0 18px 0 44px; border-radius: 999px; border: 1.5px solid transparent;
  background: #fff; font-size: 15px; outline: none; transition: border-color .2s ease;
}
.hm-search input:focus { border-color: var(--hm-ink); }
.hm-sort { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--hm-muted); }
.hm-sort select { height: 42px; width: auto; padding: 0 40px 0 16px; background-color: #fff; }
.hm-empty { padding: 48px; text-align: center; color: var(--hm-muted); }

.hm-project { display: flex; flex-direction: column; padding: 12px 12px 24px; }
.hm-project .hm-browser { border-radius: 14px; box-shadow: none; border: 1px solid var(--hm-line); margin: 0; }
.hm-project .hm-browser-view { aspect-ratio: 4 / 3; }
.hm-project-body { display: flex; flex-direction: column; gap: 10px; padding: 18px 12px 0; flex: 1; }
.hm-project-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.hm-project-body > p { font-size: 14.5px; line-height: 1.55; color: var(--hm-muted); }
.hm-project-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--hm-line); font-size: 13.5px; color: var(--hm-muted-2); }
.hm-project-foot .hm-work-link { margin-top: 0; color: var(--hm-ink); }
.hm-project-cta { font-size: 13.5px; font-weight: 550; color: var(--hm-muted); }
.hm-project-cta:hover { color: var(--hm-ink); text-decoration: underline; text-underline-offset: 3px; }
.hm-is-hidden { display: none !important; }

.hm-post-card { display: flex; flex-direction: column; gap: 14px; min-height: 240px; padding: 26px; }
.hm-post-card-img { margin: -14px -14px 6px; border-radius: 16px; overflow: hidden; aspect-ratio: 16 / 10; }
.hm-post-card-img img { width: 100%; height: 100%; object-fit: cover; }
.hm-post-card .hm-post-title { font-size: 21px; }
.hm-post-card-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--hm-muted-2); padding-top: 14px; border-top: 1px solid var(--hm-line); }
.hm-post-card-foot .hm-work-link { margin-top: 0; color: var(--hm-ink); }
.hm-feature-post { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 0; padding: 0; overflow: hidden; min-height: 420px; }
.hm-feature-post-body { display: flex; flex-direction: column; justify-content: space-between; gap: 32px; padding: 40px; }
.hm-feature-post-img img { width: 100%; height: 100%; object-fit: cover; }
.hm-feature-post--noimg { grid-template-columns: minmax(0, 1fr); }

/* Newsletter / waitlist strip */
.hm-signup { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 32px; align-items: center; padding: 48px 56px; }
.hm-signup form { display: flex; gap: 8px; }
.hm-signup .alfa-input { background: #fff; height: 54px; border-radius: 999px; padding: 0 22px; }

/* ── Article typography (.hm-prose; also the older .blog-content) ─────────── */
.hm-article { padding: 56px 64px 64px; }
.hm-prose, .blog-content { font-size: 17.5px; line-height: 1.8; color: var(--hm-ink); }
.hm-prose > :first-child, .blog-content > :first-child { margin-top: 0; }
.hm-prose p, .blog-content p { margin: 0 0 20px; }
.hm-prose h2, .blog-content h2 {
  position: relative; font-size: clamp(26px, 2.4vw, 32px); letter-spacing: -0.03em; line-height: 1.18;
  margin: 56px 0 18px; padding-top: 26px; scroll-margin-top: calc(var(--hm-nav-h) + 20px);
}
.hm-prose h2::before, .blog-content h2::before { content: ""; position: absolute; top: 0; left: 0; width: 32px; height: 4px; border-radius: 2px; background: var(--hm-orange); }
.hm-prose h3, .blog-content h3 { font-size: 22px; letter-spacing: -0.02em; line-height: 1.3; margin: 36px 0 12px; scroll-margin-top: calc(var(--hm-nav-h) + 20px); }
.hm-prose h4, .blog-content h4 { font-size: 18px; margin: 28px 0 10px; }
.hm-prose ul, .hm-prose ol, .blog-content ul, .blog-content ol { margin: 0 0 24px; padding: 0; display: grid; gap: 10px; list-style: none; color: var(--hm-muted); }
.hm-prose ul > li, .blog-content ul > li { position: relative; padding-left: 26px; }
.hm-prose ul > li::before, .blog-content ul > li::before { content: ""; position: absolute; left: 4px; top: 12px; width: 7px; height: 7px; border-radius: 50%; background: var(--hm-orange); }
.hm-prose ol, .blog-content ol { counter-reset: hm-ol; }
.hm-prose ol > li, .blog-content ol > li { position: relative; padding-left: 40px; counter-increment: hm-ol; min-height: 28px; }
.hm-prose ol > li::before, .blog-content ol > li::before {
  content: counter(hm-ol); position: absolute; left: 0; top: 1px; width: 28px; height: 28px; border-radius: 50%;
  background: var(--hm-ink); color: #fff; font-size: 13px; font-weight: 700; display: grid; place-items: center; line-height: 1;
}
.hm-prose li > ul, .hm-prose li > ol, .blog-content li > ul, .blog-content li > ol { margin: 10px 0 0; }
.hm-prose strong, .blog-content strong { font-weight: 650; color: var(--hm-ink); }
.hm-prose a, .blog-content a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.hm-prose a:hover, .blog-content a:hover { text-decoration-thickness: 2px; }
.hm-prose code, .blog-content code { font-family: var(--font-mono); font-size: .86em; background: var(--hm-bg); border-radius: 6px; padding: 2px 6px; }
.hm-prose pre, .blog-content pre { background: var(--hm-ink); color: #E7E8EE; border-radius: 16px; padding: 22px 24px; overflow-x: auto; margin: 28px 0; font-family: var(--font-mono); font-size: 13.5px; line-height: 1.7; }
.hm-prose pre code, .blog-content pre code { background: none; padding: 0; font-size: inherit; color: inherit; }
.hm-prose img, .blog-content img { max-width: 100%; height: auto; border-radius: 16px; margin: 28px 0; }
.hm-prose blockquote, .blog-content blockquote {
  margin: 36px 0; padding: 24px 28px; border-left: 4px solid var(--hm-orange); border-radius: 0 16px 16px 0;
  background: var(--hm-lavender-tint); font-family: var(--hm-font-display); font-size: 22px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.4;
}
.hm-prose blockquote p, .blog-content blockquote p { margin: 0; }
.hm-prose hr, .blog-content hr { border: 0; border-top: 1px solid var(--hm-line); margin: 48px 0; }
.hm-prose table, .blog-content table { width: 100%; border-collapse: collapse; margin: 28px 0; font-size: 15px; line-height: 1.5; display: block; overflow-x: auto; }
.hm-prose th, .hm-prose td, .blog-content th, .blog-content td { padding: 12px 14px; border-bottom: 1px solid var(--hm-line); text-align: left; vertical-align: top; }
.hm-prose th, .blog-content th { font-weight: 650; background: var(--hm-bg); }
.blog-callout { margin: 32px 0; padding: 28px 32px; border-radius: 20px; background: var(--hm-lavender-tint); }
.blog-callout__eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--hm-muted-2); margin-bottom: 16px; }
.blog-callout__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.blog-callout h4 { font-size: 16px; margin: 0 0 12px; }
.blog-callout__good h4 { color: #0F7A3D; }
.blog-callout__bad h4 { color: #B42318; }
.blog-callout ul { margin: 0; gap: 8px; }
.blog-callout ul li { font-size: 15px; padding-left: 22px; }
.blog-callout__good ul li::before { background: #0F7A3D; }
.blog-callout__bad ul li::before { background: #B42318; }

/* Docs extras inside articles */
.docs-body { font-size: 16.5px; }
.docs-body h2 { font-size: 27px; margin-top: 48px; }
.docs-body h3 { font-size: 20px; margin-top: 30px; }
.doc-callout { display: flex; gap: 14px; padding: 18px 20px; border-radius: 16px; margin: 24px 0; font-size: 15.5px; line-height: 1.6; }
.doc-callout p { margin: 0; }
.doc-callout-tip { background: var(--hm-lavender-tint); color: #2B2470; }
.doc-callout-warn { background: #FFF1D6; color: #7A4B00; }
.doc-callout-icon { width: 28px; height: 28px; border-radius: 50%; background: #fff; display: grid; place-items: center; flex-shrink: 0; font-weight: 700; font-size: 14px; }
.doc-step { display: grid; grid-template-columns: 40px 1fr; gap: 16px; margin-bottom: 24px; }
.doc-step-num { width: 32px; height: 32px; border-radius: 50%; background: var(--hm-ink); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 14px; }
.docs-code { font-family: var(--font-mono); font-size: 13px; padding: 2px 7px; background: var(--hm-bg); border-radius: 6px; }
.docs-code-block { background: var(--hm-ink); color: #E7E8EE; border-radius: 16px; padding: 20px 22px; font-family: var(--font-mono); font-size: 13.5px; line-height: 1.7; margin-bottom: 40px; }

/* Reading progress + share buttons (blog posts) */
.hm-progress { height: 6px; border-radius: 999px; background: var(--hm-bg); overflow: hidden; }
.hm-progress span { display: block; height: 100%; width: 0; background: var(--hm-orange); border-radius: 999px; transition: width .1s linear; }
.hm-share { display: flex; gap: 8px; flex-wrap: wrap; }
.hm-share a, .hm-share button {
  width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--hm-bg); color: var(--hm-ink); cursor: pointer;
  display: grid; place-items: center; transition: background-color .2s ease, color .2s ease, transform .2s var(--hm-ease);
}
.hm-share a:hover, .hm-share button:hover { background: var(--hm-ink); color: #fff; transform: translateY(-2px); }
.hm-related { display: grid; gap: 8px; }
.hm-related a { display: block; padding: 14px 16px; border-radius: 14px; background: var(--hm-bg); transition: background-color .2s ease; }
.hm-related a:hover { background: var(--hm-lavender-tint); }
.hm-related strong { display: block; font-family: var(--hm-font-display); font-size: 15.5px; line-height: 1.3; letter-spacing: -0.01em; }
.hm-related span { display: block; font-size: 12.5px; color: var(--hm-muted-2); margin-top: 4px; }
.hm-author { display: flex; align-items: center; gap: 12px; }
.hm-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--hm-orange); color: var(--hm-ink); display: grid; place-items: center; font-family: var(--hm-font-display); font-weight: 700; flex-shrink: 0; }
.hm-author strong { display: block; font-size: 15px; }
.hm-author span span { font-size: 13px; color: var(--hm-muted-2); }
.hm-tile--lavender .hm-author span span { color: #3E3A5C; }
.hm-post-cover { border-radius: var(--hm-radius); overflow: hidden; aspect-ratio: 21 / 9; margin-top: var(--hm-gap); }
.hm-post-cover img { width: 100%; height: 100%; object-fit: cover; }

/* ── Calls to action from includes/cta.php ───────────────────────────────── */
.cta-box {
  margin-top: 56px; padding: 32px 36px; border-radius: var(--hm-radius); background: var(--hm-orange); color: var(--hm-ink);
  display: flex; gap: 24px; align-items: center; flex-wrap: wrap;
}
.cta-box-body { flex: 1; min-width: 220px; }
.blog-content .cta-box-heading, .cta-box-heading { font-family: var(--hm-font-display); color: var(--hm-ink); font-size: 26px; line-height: 1.15; letter-spacing: -0.03em; margin: 0 0 6px; padding: 0; }
.blog-content .cta-box-heading::before { display: none; }
.blog-content .cta-box-text, .cta-box-text { color: rgba(14, 15, 19, .82); font-size: 15px; line-height: 1.55; margin: 0; }
.blog-content a.cta-box-btn, .cta-box-btn { background: var(--hm-ink); color: #fff; text-decoration: none; flex-shrink: 0; }
.blog-content a.cta-box-secondary, .cta-box-secondary { display: inline-block; margin-top: 10px; font-size: 14px; font-weight: 600; color: var(--hm-ink); text-decoration: underline; text-underline-offset: 3px; }
.cta-inline {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px 20px;
  margin: 40px 0; padding: 20px 24px; border-radius: 20px; background: var(--hm-lavender-tint);
}
.cta-inline-text { flex: 1; min-width: 220px; font-size: 16px; line-height: 1.5; font-weight: 550; }
.cta-inline-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 16px; }
.blog-content a.cta-inline-btn, .cta-inline-btn { background: var(--hm-ink); color: #fff; text-decoration: none; font-size: 14.5px; }
.blog-content a.cta-inline-secondary, .cta-inline-secondary { font-size: 14px; font-weight: 600; color: var(--hm-ink); }
.hm-cta-wrap .cta-box { margin-top: 0; padding: 56px 56px; }
.hm-cta-wrap .cta-box-heading { font-size: clamp(30px, 3.6vw, 48px); }

/* ── Forms ────────────────────────────────────────────────────────────────── */
.hm-form { display: grid; gap: 20px; }
.hm-form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { display: grid; gap: 8px; align-content: start; }
.field > label { font-size: 13.5px; font-weight: 600; color: var(--hm-ink); }
.alfa-input, .alfa-select, .alfa-textarea {
  width: 100%; height: 50px; padding: 0 16px; border-radius: 14px; border: 1.5px solid transparent;
  background: var(--hm-bg); font-size: 15px; color: var(--hm-ink); outline: none;
  transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}
.alfa-textarea { height: auto; min-height: 160px; padding: 14px 16px; line-height: 1.55; resize: vertical; }
.alfa-input:focus, .alfa-select:focus, .alfa-textarea:focus { border-color: var(--hm-ink); background: #fff; box-shadow: 0 0 0 4px rgba(76, 61, 240, .14); }
.alfa-input::placeholder, .alfa-textarea::placeholder { color: #8A8D96; }
.alfa-select, .hm-sort select {
  appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%230E0F13' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 16px;
}
.check-tag {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border: 0; border-radius: 999px;
  background: var(--hm-bg); font-size: 14px; font-weight: 550; cursor: pointer; user-select: none;
  transition: background-color .2s ease, color .2s ease;
}
.check-tag .dot { width: 14px; height: 14px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--hm-muted-2); transition: background-color .2s ease; }
.check-tag:hover { background: #DDDFE5; }
.check-tag.on { background: var(--hm-ink); color: #fff; }
.check-tag.on .dot { background: var(--hm-orange); box-shadow: none; }
.hm-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.hm-form-foot { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; padding-top: 4px; }
.hm-form-note { font-size: 13px; color: var(--hm-muted-2); display: flex; align-items: center; gap: 8px; }
.hm-alert { display: flex; gap: 12px; align-items: center; padding: 16px 20px; border-radius: 16px; font-size: 15px; line-height: 1.5; margin-bottom: 24px; }
.hm-alert svg { flex-shrink: 0; }
.hm-alert--ok { background: #DDF5E7; color: #0F5132; }
.hm-alert--err { background: #FDE4E4; color: #8A1C1C; }
.hm-req { color: #C2410C; }
.hm-contact-list a { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--hm-line); }
.hm-contact-list a:last-child { border-bottom: 0; }
.hm-contact-icon { width: 44px; height: 44px; border-radius: 14px; background: var(--hm-bg); display: grid; place-items: center; flex-shrink: 0; }
.hm-contact-list small { display: block; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--hm-muted-2); }
.hm-contact-list strong { display: block; font-size: 15px; font-weight: 600; margin-top: 2px; word-break: break-word; }
.hm-contact-list .hm-arrow-end { margin-left: auto; color: var(--hm-muted-2); }
.hm-mini-faq details { padding: 14px 0; border-bottom: 1px solid var(--hm-line); }
.hm-mini-faq details:last-child { border-bottom: 0; padding-bottom: 0; }
.hm-mini-faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 12px; font-weight: 600; font-size: 15px; }
.hm-mini-faq summary::-webkit-details-marker { display: none; }
.hm-mini-faq summary::after { content: "+"; color: var(--hm-muted-2); }
.hm-mini-faq details[open] summary::after { content: "−"; }
.hm-mini-faq p { font-size: 14px; line-height: 1.55; color: var(--hm-muted); margin-top: 8px; }

/* ── Screenshot gallery (app pages): scroll-snap, buttons are an extra ────── */
.hm-gallery-head { display: flex; gap: 8px; }
.hm-gallery-btn {
  width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--hm-tile-on-white); color: var(--hm-ink); cursor: pointer;
  display: grid; place-items: center; transition: background-color .2s ease, color .2s ease;
}
.hm-gallery-btn:hover { background: var(--hm-ink); color: #fff; }
.hm-gallery-btn:disabled { opacity: .35; cursor: default; background: var(--hm-tile-on-white); color: var(--hm-ink); }
.hm-gallery {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(82%, 940px); gap: var(--hm-gap);
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; overscroll-behavior-x: contain;
  scrollbar-width: none; padding-bottom: 4px;
}
.hm-gallery::-webkit-scrollbar { display: none; }
.hm-slide { scroll-snap-align: start; }
.hm-slide img { width: 100%; height: auto; border-radius: 18px; background: var(--hm-tile-on-white); }
.hm-slide figcaption { font-size: 14px; color: var(--hm-muted); margin-top: 12px; padding: 0 4px; }

/* ── Docs: three-column layout on /docs ──────────────────────────────────── */
.hm-docs { display: grid; grid-template-columns: 280px minmax(0, 1fr) 220px; gap: var(--hm-gap); align-items: start; }
.hm-docs-nav { padding: 18px; }
.hm-app-switch { display: grid; gap: 6px; margin-bottom: 20px; }
.hm-app-switch a { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 14px; transition: background-color .2s ease; }
.hm-app-switch a:hover { background: var(--hm-bg); }
.hm-app-switch a.is-current { background: var(--hm-lavender-tint); }
.hm-app-switch img, .hm-app-badge { width: 34px; height: 34px; border-radius: 10px; flex-shrink: 0; }
.hm-app-badge { display: grid; place-items: center; background: var(--hm-ink); color: #fff; font-family: var(--hm-font-display); font-weight: 700; font-size: 15px; }
.hm-app-switch strong { display: block; font-size: 14px; }
.hm-app-switch small { display: block; font-size: 12px; color: var(--hm-muted-2); }
.hm-docs-group + .hm-docs-group { margin-top: 18px; }
.hm-docs-group .hm-label { margin-bottom: 8px; padding: 0 10px; }
.docs-sidebar-nav ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.docs-sidebar-nav a { display: block; padding: 8px 10px; border-radius: 10px; font-size: 14px; color: var(--hm-muted); transition: background-color .2s ease, color .2s ease; }
.docs-sidebar-nav a:hover { color: var(--hm-ink); background: var(--hm-bg); }
.docs-sidebar-nav a.active, .docs-sidebar-nav a[aria-current="page"] { color: var(--hm-ink); background: var(--hm-lavender-tint); font-weight: 600; }
.docs-toc { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; border-left: 2px solid var(--hm-line); }
.docs-toc a { display: block; padding: 4px 14px; margin-left: -2px; border-left: 2px solid transparent; font-size: 13.5px; line-height: 1.4; color: var(--hm-muted); }
.docs-toc a:hover { color: var(--hm-ink); }
.docs-toc a.active { border-left-color: var(--hm-orange); color: var(--hm-ink); font-weight: 600; }
.hm-docs-title { font-family: var(--hm-font-display); font-size: clamp(32px, 3.4vw, 44px); font-weight: 700; letter-spacing: -0.035em; line-height: 1.05; margin-bottom: 14px; }
.hm-docs-intro { font-size: 18px; line-height: 1.6; color: var(--hm-muted); margin-bottom: 32px; }
.hm-pager { display: grid; grid-template-columns: 1fr 1fr; gap: var(--hm-gap); margin-top: 56px; }
.hm-pager a { display: block; padding: 20px 22px; border-radius: 18px; background: var(--hm-bg); text-decoration: none; transition: background-color .2s ease; }
.hm-pager a:hover { background: var(--hm-lavender-tint); }
.hm-pager a.is-next { text-align: right; background: var(--hm-ink); color: #fff; }
.hm-pager a.is-next:hover { background: #2A2C35; }
.hm-pager small { display: block; font-size: 12.5px; opacity: .7; margin-bottom: 4px; }
.hm-pager strong { font-family: var(--hm-font-display); font-size: 17px; }

/* ═══════════════════════════════════════════════════════════════════════════
   COMPATIBILITY: older class names used by the Panely docs templates,
   the blog/doc content and includes/cta.php
   ═══════════════════════════════════════════════════════════════════════════ */
.alfa-container { width: 100%; max-width: calc(var(--hm-max) + var(--hm-gutter) * 2); margin: 0 auto; padding: 0 var(--hm-gutter); }
.docs-page-header { padding: 8px 0 0; }
.docs-hero-tile { background: #fff; border-radius: var(--hm-radius); padding: 44px 56px 44px; }
.docs-breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 0; font-size: 13.5px; color: var(--hm-muted-2); margin-bottom: 28px; }
.docs-breadcrumb a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(14, 15, 19, .25); }
.docs-breadcrumb [aria-current] { color: var(--hm-ink); font-weight: 600; }
.section-heading-sm { font-family: var(--hm-font-display); font-size: clamp(32px, 4.2vw, 56px); font-weight: 700; line-height: 1.04; letter-spacing: -0.04em; }
.lead-text { font-size: 17px; line-height: 1.6; color: var(--hm-muted); max-width: 760px; }
.text-fg-muted { color: var(--hm-muted); }
.alfa-container.docs-layout {
  width: calc(100% - var(--hm-gutter) * 2); max-width: var(--hm-max); margin: var(--hm-gap) auto var(--hm-band-space);
  padding: 40px; background: #fff; border-radius: var(--hm-radius);
}
.docs-layout .card { background: var(--hm-tile-on-white); border: 0; }
.card { background: #fff; border-radius: 20px; padding: 22px; }
.eyebrow { font-size: 12.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--hm-muted-2); }
.docs-help-card { padding: 20px; }
.docs-help-desc { font-size: 14px; color: var(--hm-muted); margin-bottom: 14px; line-height: 1.5; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 22px;
  border: 0; border-radius: 999px; cursor: pointer; white-space: nowrap; text-decoration: none;
  font-family: var(--hm-font-display); font-size: 15px; font-weight: 650; letter-spacing: -0.01em;
  background: var(--hm-tile-on-white); color: var(--hm-ink);
  transition: transform .25s var(--hm-ease), background-color .25s ease, box-shadow .25s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-accent { background: var(--hm-orange); color: var(--hm-ink); }
.btn-accent:hover { background: #FF7E46; }
.btn-primary { background: var(--hm-ink); color: #fff; }
.btn-primary:hover { background: #2A2C35; }
.btn-ghost-txtblk { background: transparent; color: var(--hm-ink); box-shadow: inset 0 0 0 1.5px var(--hm-ink); }
.btn-ghost-txtblk:hover { background: var(--hm-ink); color: #fff; }
.btn-secondary { background: var(--hm-bg); color: var(--hm-ink); }
.btn-sm { height: 36px; padding: 0 14px; font-size: 13.5px; }
.w-100 { width: 100%; }
.d-inline-flex { display: inline-flex; }
.mb-2 { margin-bottom: 8px; }
.mb-4 { margin-bottom: 24px; }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border-radius: 999px; background: var(--hm-chip); color: var(--hm-ink); font-size: 12.5px; font-weight: 600; border: 1px solid transparent; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Panely docs (/panely/docs) */
.pd-lead { max-width: 760px; }
.pd-header-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.pd-updated { font-size: 13.5px; color: var(--hm-muted-2); margin: 12px 0 0; }
.pd-layout { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 48px; }
.pd-main { min-width: 0; }
.pd-aside { position: sticky; top: calc(var(--hm-nav-h) + 16px); display: grid; gap: var(--hm-gap); }
.pd-nav { padding: 18px; }
.pd-nav ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.pd-nav-title { font-size: 12.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--hm-muted-2); margin-bottom: 8px; padding: 0 10px; }
.pd-nav a { display: flex; justify-content: space-between; gap: 8px; }
.pd-nav-count { font-size: 12px; color: var(--fg-faint); }
.pd-nav .pd-nav-sections { margin: 4px 0 8px 10px; padding-left: 8px; border-left: 2px solid var(--hm-line); }
.pd-nav .pd-nav-sections a { font-size: 13px; padding: 5px 10px; }
.pd-intro { max-width: 820px; }
.pd-jump { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 12px; }
.pd-jump-link { font-size: 13.5px; font-weight: 550; padding: 8px 14px; border-radius: 999px; background: var(--hm-bg); transition: background-color .2s ease, color .2s ease; }
.pd-jump-link:hover { background: var(--hm-ink); color: #fff; }
.pd-section { padding-top: 56px; margin-top: 40px; border-top: 1px solid var(--hm-line); scroll-margin-top: calc(var(--hm-nav-h) + 16px); }
.pd-section-head { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 8px; }
.pd-section-title { font-size: clamp(24px, 2.6vw, 32px); letter-spacing: -0.03em; margin: 0; }
.pd-tier-free { background: #DDF5E7; color: #0F5132; }
.pd-tier-premium, .pd-tier-dynamic { background: #FFF1D6; color: #7A4B00; }
.pd-tier-note { font-size: 14px; color: var(--hm-muted); margin: 0 0 4px; }
.pd-tier-note .pill { height: 24px; padding: 0 9px; margin-right: 2px; }
.pd-nav-tier { font-size: 11px; color: #7A4B00; margin-left: 4px; }
.pd-section-desc { font-size: 17px; color: var(--hm-muted); max-width: 760px; margin-bottom: 18px; }
.pd-note { font-size: 14.5px; background: var(--hm-lavender-tint); border-radius: 12px; padding: 10px 14px; max-width: 760px; }
.pd-demo { border-radius: 20px; background: var(--hm-bg); overflow: hidden; border: 1px solid var(--hm-line); }
.pd-demo-bar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; padding: 10px 12px; border-bottom: 1px solid var(--hm-line); background: #fff; }
.pd-designs, .pd-viewports { display: flex; flex-wrap: wrap; gap: 6px; }
.pd-demo-label { font-size: 12.5px; color: var(--hm-muted-2); padding: 0 4px; }
.pd-chip { font: inherit; font-size: 13px; line-height: 1; padding: 9px 13px; border-radius: 999px; border: 0; background: var(--hm-bg); color: var(--hm-muted); cursor: pointer; }
.pd-chip:hover { color: var(--hm-ink); background: #DDDFE5; }
.pd-chip.is-active { background: var(--hm-ink); color: #fff; }
.pd-chip:focus-visible { outline: 3px solid var(--hm-focus); outline-offset: 2px; }
.pd-frame-wrap { margin: 0 auto; background: #fff; transition: max-width .25s ease; max-width: 100%; }
.pd-demo.is-phone .pd-frame-wrap { max-width: 390px; border-left: 1px solid var(--hm-line); border-right: 1px solid var(--hm-line); }
.pd-frame { display: block; width: 100%; border: 0; background: #fff; transition: height .2s ease; }
.pd-design-list { font-size: 14.5px; color: var(--hm-muted); margin: 12px 0 0; }
.pd-design-list strong { color: var(--hm-ink); font-weight: 600; }
.pd-settings { margin-top: 16px; border-radius: 18px; background: var(--hm-bg); }
.pd-settings > summary { cursor: pointer; padding: 16px 20px; font-weight: 600; list-style: none; display: flex; align-items: center; gap: 10px; }
.pd-settings > summary::-webkit-details-marker { display: none; }
.pd-settings > summary::before { content: '+'; color: var(--hm-orange); font-weight: 700; width: 12px; }
.pd-settings[open] > summary::before { content: '−'; }
.pd-count { font-size: 12.5px; color: var(--hm-muted-2); font-weight: 400; }
.pd-settings-intro { font-size: 14px; color: var(--hm-muted); padding: 0 20px; margin-bottom: 4px; }
.pd-tab-title { font-size: 17px; margin: 18px 20px 10px; }
.pd-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; padding: 0 20px 16px; }
.pd-group { background: #fff; border-radius: 14px; padding: 12px 14px; }
.pd-group-title { font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--hm-muted-2); margin-bottom: 8px; }
.pd-group ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 7px; }
.pd-group li { font-size: 13.5px; line-height: 1.45; }
.pd-setting { font-weight: 600; color: var(--hm-ink); }
.pd-takes { display: block; color: var(--hm-muted); font-size: 12.5px; }
.pd-info { display: block; color: var(--fg-faint); font-size: 12px; }
.pd-both { display: inline-block; font-size: 11px; color: #2B2470; background: var(--hm-lavender-tint); border-radius: 4px; padding: 1px 6px; margin-top: 2px; }
.pd-after { max-width: 820px; margin-top: 72px; }
.pd-cta { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; margin-top: 56px; padding: 32px 36px; border-radius: var(--hm-radius); background: var(--hm-orange); color: var(--hm-ink); }
.pd-cta-title { font-family: var(--hm-font-display); font-size: 28px; font-weight: 700; letter-spacing: -0.03em; margin-bottom: 4px; }
.pd-cta p { color: rgba(14, 15, 19, .8); margin: 0; max-width: 560px; }
.pd-cta .btn-accent, .pd-cta .btn-primary { background: var(--hm-ink); color: #fff; }
.pd-cta .btn-ghost-txtblk { box-shadow: inset 0 0 0 1.5px var(--hm-ink); }
.pd-more { margin-top: 56px; }
.pd-more-title { font-size: 12.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--hm-muted-2); margin-bottom: 12px; }
.pd-more-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.pd-more-card { display: grid; gap: 4px; padding: 18px; border-radius: 18px; background: var(--hm-bg); transition: background-color .2s ease, transform .3s var(--hm-ease); }
.pd-more-card:hover { background: var(--hm-lavender-tint); transform: translateY(-3px); }
.pd-more-name { font-weight: 650; font-family: var(--hm-font-display); }
.pd-more-meta { font-size: 13px; color: var(--hm-muted); }
.pd-cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: var(--hm-gap); margin: 32px 0 16px; }
.pd-cat-card { display: flex; flex-direction: column; gap: 8px; padding: 26px; border-radius: var(--hm-radius); background: var(--hm-bg); transition: transform .35s var(--hm-ease), box-shadow .35s var(--hm-ease), background-color .2s ease; }
.pd-cat-card:hover { transform: translateY(-4px); background: var(--hm-lavender-tint); box-shadow: 0 18px 40px -22px rgba(14, 15, 19, .35); }
.pd-cat-count { font-size: 12.5px; font-weight: 600; color: var(--hm-muted-2); }
.pd-cat-name { font-size: 24px; letter-spacing: -0.03em; margin: 0; }
.pd-cat-lead { font-size: 14.5px; color: var(--hm-muted); margin: 0; line-height: 1.55; }
.pd-cat-sections { font-size: 13px; color: var(--fg-faint); line-height: 1.5; }
.pd-cat-go { margin-top: auto; padding-top: 8px; font-weight: 650; font-size: 14px; }

/* ── Inner page responsive ────────────────────────────────────────────────── */
@media (max-width: 1180px) {
  .hm-docs { grid-template-columns: 260px minmax(0, 1fr); }
  .hm-docs-toc { display: none; }
  .hm-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  .hm-page-hero--split { grid-template-columns: minmax(0, 1fr); }
  .hm-page-hero-main { min-height: 0; padding: 40px 36px 40px; }
  .hm-page-hero-photo { min-height: 420px; }
  .hm-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hm-split, .hm-split--narrow, .hm-docs, .pd-layout { grid-template-columns: minmax(0, 1fr); }
  .hm-sticky, .pd-aside { position: static; }
  .hm-docs-nav-wrap, .pd-aside-col { order: 2; }
  .hm-article { padding: 40px 36px 48px; }
  .hm-feature-post { grid-template-columns: minmax(0, 1fr); }
  .hm-feature-post-img { aspect-ratio: 16 / 9; }
  .hm-signup { grid-template-columns: minmax(0, 1fr); padding: 40px 36px; }
  .alfa-container.docs-layout { padding: 32px 28px; }
  .docs-hero-tile { padding: 36px 32px; }
}
@media (max-width: 680px) {
  .hm-page-hero-main { padding: 32px 24px 32px; }
  .hm-crumbs { padding-bottom: 24px; }
  .hm-page-hero-photo { min-height: 0; aspect-ratio: 4 / 4.4; }
  .hm-grid-2, .hm-grid-4 { grid-template-columns: minmax(0, 1fr); }
  .hm-form-row { grid-template-columns: minmax(0, 1fr); }
  .hm-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hm-article { padding: 28px 22px 36px; }
  .hm-prose, .blog-content { font-size: 16.5px; }
  .hm-step { min-height: 0; }
  .hm-pager { grid-template-columns: minmax(0, 1fr); }
  .hm-signup { padding: 28px 24px; }
  .hm-signup form { flex-direction: column; }
  .hm-cta-wrap .cta-box { padding: 32px 24px; }
  .blog-callout__cols { grid-template-columns: minmax(0, 1fr); }
  .alfa-container.docs-layout { padding: 24px 18px; }
  .docs-hero-tile { padding: 28px 22px; }
  .hm-gallery { grid-auto-columns: 88%; }
  .hm-search { max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hm-gallery { scroll-behavior: auto; }
  .pd-cat-card:hover, .pd-more-card:hover { transform: none; }
}

/* Current section in the main nav */
.hm-menu-links a.is-active { background: rgba(14, 15, 19, .07); font-weight: 600; }
.hm-tile--black .hm-kv > div { border-color: rgba(255, 255, 255, .14); }
.hm-tile--black .hm-kv dt { color: rgba(255, 255, 255, .65); }

/* Services hub cards and a full-width review */
.hm-svc-card { display: flex; flex-direction: column; gap: 16px; padding: 36px; min-height: 340px; }
.hm-svc-card-text { font-size: 16px; line-height: 1.6; color: var(--hm-muted); max-width: 520px; }
.hm-svc-card .hm-work-link { margin-top: auto; }
.hm-review-hero--full { min-height: 0; gap: 24px; }
.hm-review-hero--full blockquote { font-size: clamp(24px, 2.6vw, 36px); line-height: 1.25; letter-spacing: -0.025em; max-width: 34ch; }
.hm-review-hero--full figcaption strong { color: #fff; }
.hm-cta-sub { font-size: 17px; line-height: 1.55; margin-top: 16px; max-width: 520px; }
.hm-post-featured-title a:hover { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px; }
.hm-post-body { max-width: 760px; min-width: 0; }
/* Fields inside a grey tile (a white tile on a white band) get a white fill */
.hm-band--white .hm-tile--white .alfa-input,
.hm-band--white .hm-tile--white .alfa-select,
.hm-band--white .hm-tile--white .alfa-textarea,
.hm-band--white .hm-tile--white .check-tag:not(.on) { background-color: #fff; }
.hm-band--white .hm-tile--white .hm-contact-icon { background: #fff; }
@media (max-width: 680px) { .hm-contact-form { padding: 28px 22px !important; } }

/* App rows (/apps) and app pages */
.hm-app-row { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 40px; align-items: stretch; padding: 40px; }
.hm-app-row--flip { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
.hm-app-row .hm-app-preview { margin: 0; min-height: 380px; }
.hm-app-row-text { display: flex; flex-direction: column; justify-content: center; }
.hm-app-row-desc { font-size: 16.5px; line-height: 1.6; color: var(--hm-muted); margin: 4px 0 22px; max-width: 560px; }
.hm-app-icon--lg { width: 88px; height: 88px; border-radius: 22px; }
.hm-plans { display: grid; gap: 8px; }
.hm-plan { padding: 16px 18px; border-radius: 16px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); }
.hm-plan.is-primary { background: #fff; color: var(--hm-ink); border-color: #fff; }
.hm-plan-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-weight: 600; margin-bottom: 6px; }
.hm-plan-head strong { font-family: var(--hm-font-display); font-size: 24px; letter-spacing: -0.02em; }
.hm-plan-head small { font-family: var(--hm-font-body); font-size: 12.5px; font-weight: 400; opacity: .7; margin-left: 2px; }
.hm-plan > p { font-size: 13.5px; line-height: 1.5; opacity: .78; }
.hm-plan .hm-checks { margin-top: 10px; gap: 7px; }
.hm-tile--black .hm-plan:not(.is-primary) .hm-checks li::before { background-color: #fff; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 12.5l3 3 7-7' fill='none' stroke='%230E0F13' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.hm-plan-note { font-size: 12.5px; opacity: .7; margin-top: 8px; }
@media (max-width: 980px) {
  .hm-app-row, .hm-app-row--flip { grid-template-columns: minmax(0, 1fr); padding: 28px; }
  .hm-app-row--flip .hm-app-preview { order: 2; }
  .hm-app-row .hm-app-preview { min-height: 300px; }
}
@media (max-width: 680px) { .hm-app-icon--lg { width: 64px; height: 64px; border-radius: 16px; } }
.hm-legal { max-width: 820px; margin: 0 auto; }

/* Pagers inside article content keep their own colours */
.blog-content .hm-pager a { color: var(--hm-ink); text-decoration: none; }
.blog-content .hm-pager strong { color: inherit; }
.blog-content .hm-pager a.is-next { color: #fff; text-decoration: none; }
