/* AmiQPlace homepage — aligned with dashboard design system */
@import url("site-settings.css");

:root,
[data-theme="dark"] {
  --hm-bg: #0b0b0c;
  --hm-bg-elev: #111113;
  --hm-bg-hover: #18181b;
  --hm-bg-soft: #0f0f10;
  --hm-border: #232326;
  --hm-border-strong: #2e2e33;
  --hm-text: #ececee;
  --hm-text-muted: #8f8f98;
  --hm-text-faint: #6b6b74;
  --hm-accent: #6b84f0;
  --hm-accent-soft: rgba(107, 132, 240, 0.12);
  --hm-accent-border: rgba(107, 132, 240, 0.35);
  --hm-ok: #3dd68c;
  --hm-radius: 10px;
  --hm-radius-lg: 14px;
  --hm-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --hm-header: 64px;
  --hm-font: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --hm-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --hm-grid-line: rgba(255, 255, 255, 0.04);
  color-scheme: dark;
}

[data-theme="light"] {
  --hm-bg: #f4f4f5;
  --hm-bg-elev: #ffffff;
  --hm-bg-hover: #ececef;
  --hm-bg-soft: #fafafa;
  --hm-border: #e4e4e7;
  --hm-border-strong: #d4d4d8;
  --hm-text: #18181b;
  --hm-text-muted: #71717a;
  --hm-text-faint: #a1a1aa;
  --hm-accent: #4f6ae8;
  --hm-accent-soft: rgba(79, 106, 232, 0.1);
  --hm-accent-border: rgba(79, 106, 232, 0.35);
  --hm-ok: #16a34a;
  --hm-shadow: 0 20px 50px rgba(24, 24, 27, 0.08);
  --hm-grid-line: rgba(24, 24, 27, 0.06);
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body.hm-page {
  margin: 0;
  min-height: 100vh;
  background: var(--hm-bg);
  color: var(--hm-text);
  font-family: var(--hm-font);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.hm-page.mobile-nav-open {
  overflow: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.container {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

@media (min-width: 768px) {
  .container {
    width: min(1120px, calc(100% - 3rem));
  }
}

/* ——— Header ——— */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--hm-header);
  border-bottom: 1px solid var(--hm-border);
  background: color-mix(in srgb, var(--hm-bg) 86%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  height: var(--hm-header);
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo__img {
  height: 22px;
  width: auto;
  max-width: 148px;
  object-fit: contain;
}

[data-theme="light"] .logo__img {
  filter: invert(1) brightness(0.12);
}

.nav {
  display: none;
  align-items: center;
  gap: 0.15rem;
  margin-left: 1.25rem;
}

.nav a {
  padding: 0.45rem 0.7rem;
  border-radius: 8px;
  color: var(--hm-text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.15s ease, background 0.15s ease;
}

.nav a:hover {
  color: var(--hm-text);
  background: var(--hm-bg-hover);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-left: auto;
}

.login {
  display: none;
  padding: 0.45rem 0.7rem;
  border-radius: 8px;
  color: var(--hm-text-muted);
  font-size: 0.875rem;
  font-weight: 550;
  transition: color 0.15s ease, background 0.15s ease;
}

.login:hover {
  color: var(--hm-text);
  background: var(--hm-bg-hover);
}

.header-actions .hm-cta-register {
  display: none;
}

.account-logged-in .hm-cta-register {
  display: none !important;
}

/* Menu toggle — same shape as dashboard .app-topbar__menu */
.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  min-width: 40px;
  min-height: 40px;
  padding: 0;
  border: 1px solid var(--hm-border);
  border-radius: 8px;
  background: transparent;
  color: var(--hm-text);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.menu-toggle i {
  font-size: 0.95rem;
  line-height: 1;
}

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

  .login,
  .header-actions .hm-cta-register {
    display: inline-flex;
  }

  .menu-toggle {
    display: none;
  }
}

/* Mobile menu */
.mobile-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.mobile-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu {
  position: fixed;
  top: var(--hm-header);
  right: 0;
  bottom: 0;
  z-index: 130;
  width: min(360px, 100%);
  transform: translateX(104%);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.mobile-menu.active {
  transform: translateX(0);
  pointer-events: auto;
}

.mobile-menu__inner {
  height: 100%;
  padding: 0.75rem;
}

.mobile-menu__sheet {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1rem;
  border: 1px solid var(--hm-border);
  border-radius: var(--hm-radius-lg);
  background: var(--hm-bg-elev);
  overflow: auto;
}

.mobile-menu__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.mobile-menu__eyebrow {
  color: var(--hm-text-faint);
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mobile-menu__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--hm-border);
  border-radius: 10px;
  background: transparent;
  color: var(--hm-text);
  cursor: pointer;
}

.mobile-menu__profile {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding: 0.75rem;
  border: 1px solid var(--hm-border);
  border-radius: var(--hm-radius);
  background: var(--hm-bg);
}

.account-user__avatar {
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--hm-accent-soft);
  color: var(--hm-accent);
}

.account-user__name,
.mobile-menu__name {
  display: block;
  font-weight: 650;
  font-size: 0.92rem;
}

.account-user__status,
.mobile-menu__status {
  display: block;
  color: var(--hm-text-muted);
  font-size: 0.78rem;
}

.mobile-menu__nav {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin-bottom: 1rem;
}

.mobile-menu__nav a,
.mobile-menu__auth-links a {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 44px;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  color: var(--hm-text);
  font-weight: 550;
  font-size: 0.92rem;
}

.mobile-menu__nav a:hover,
.mobile-menu__auth-links a:hover {
  background: var(--hm-bg-hover);
}

.mobile-menu__nav a i {
  width: 1.1rem;
  color: var(--hm-text-muted);
  text-align: center;
}

.mobile-menu__auth-links {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.mobile-menu__auth-primary {
  border: 1px solid var(--hm-accent-border);
  background: var(--hm-accent-soft);
  color: var(--hm-text) !important;
  font-weight: 650 !important;
}

@media (min-width: 901px) {
  .mobile-menu,
  .mobile-overlay {
    display: none !important;
  }
}

/* Buttons */
.hm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.65rem 1.15rem;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease, color 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.hm-btn:active {
  transform: scale(0.98);
}

.hm-btn:focus-visible {
  outline: 2px solid var(--hm-accent);
  outline-offset: 2px;
}

.hm-btn--primary {
  background: var(--hm-accent);
  color: #fff;
}

.hm-btn--primary:hover {
  filter: brightness(1.06);
}

.hm-btn--ghost {
  border-color: var(--hm-border);
  background: transparent;
  color: var(--hm-text);
}

.hm-btn--ghost:hover {
  background: var(--hm-bg-hover);
  border-color: var(--hm-border-strong);
}

.hm-btn--sm {
  min-height: 36px;
  padding: 0.4rem 0.9rem;
  font-size: 0.84rem;
}

.hm-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 1.25rem;
  color: var(--hm-accent);
  font-weight: 600;
  font-size: 0.92rem;
}

.hm-link:hover {
  text-decoration: underline;
}

/* Eyebrow / section */
.hm-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.85rem;
  color: var(--hm-text-faint);
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hm-status {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--hm-ok);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--hm-ok) 22%, transparent);
}

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

.hm-section--alt {
  border-top: 1px solid var(--hm-border);
  border-bottom: 1px solid var(--hm-border);
  background: var(--hm-bg-soft);
}

.hm-section__head {
  max-width: 640px;
  margin-bottom: clamp(2rem, 4vw, 2.75rem);
}

.hm-section__head h2,
.hm-split__copy h2,
.hm-dev__copy h2,
.hm-plans h2,
.hm-cta h2,
.hm-hero h1 {
  margin: 0;
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--hm-text);
}

.hm-section__head h2,
.hm-split__copy h2,
.hm-dev__copy h2,
.hm-plans h2 {
  font-size: clamp(1.55rem, 3.4vw, 2.15rem);
}

.hm-section__lead,
.hm-split__copy > p,
.hm-dev__copy > p,
.hm-plans p,
.hm-cta p {
  margin: 0.75rem 0 0;
  color: var(--hm-text-muted);
  font-size: 1rem;
  max-width: 52ch;
}

/* Reveal */
[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

[data-reveal-delay="1"] {
  transition-delay: 0.06s;
}
[data-reveal-delay="2"] {
  transition-delay: 0.12s;
}
[data-reveal-delay="3"] {
  transition-delay: 0.18s;
}
[data-reveal-delay="4"] {
  transition-delay: 0.24s;
}
[data-reveal-delay="5"] {
  transition-delay: 0.3s;
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ——— Hero ——— */
.hm-hero {
  position: relative;
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(3rem, 7vw, 5rem);
  overflow: hidden;
}

.hm-hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--hm-grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--hm-grid-line) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 20%, transparent 75%);
  pointer-events: none;
}

.hm-hero__inner {
  position: relative;
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 960px) {
  .hm-hero__inner {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 3rem;
  }
}

.hm-hero h1 {
  font-size: clamp(2rem, 5.2vw, 3.25rem);
}

.hm-hero__lead {
  margin: 1rem 0 0;
  color: var(--hm-text-muted);
  font-size: clamp(1rem, 2.2vw, 1.1rem);
  max-width: 46ch;
}

.hm-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.5rem;
}

.hm-hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.65rem;
  margin: 1.15rem 0 0;
  color: var(--hm-text-faint);
  font-size: 0.82rem;
}

.hm-dot {
  width: 3px;
  height: 3px;
  border-radius: 999px;
  background: var(--hm-text-faint);
}

/* Hero preview */
.hm-preview {
  border: 1px solid var(--hm-border);
  border-radius: var(--hm-radius-lg);
  background: var(--hm-bg-elev);
  box-shadow: var(--hm-shadow);
  overflow: hidden;
}

.hm-preview__chrome {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid var(--hm-border);
  background: var(--hm-bg);
}

.hm-preview__dots {
  display: flex;
  gap: 5px;
}

.hm-preview__dots i {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--hm-border-strong);
}

.hm-preview__url {
  flex: 1;
  min-width: 0;
  color: var(--hm-text-faint);
  font-family: var(--hm-mono);
  font-size: 0.72rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hm-preview__live {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--hm-ok);
  font-family: var(--hm-mono);
  font-size: 0.68rem;
  text-transform: lowercase;
}

.hm-preview__live i {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: currentColor;
}

.hm-preview__body {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  min-height: 280px;
}

@media (min-width: 480px) {
  .hm-preview__body {
    grid-template-columns: 72px minmax(0, 1fr);
  }
}

.hm-preview__side {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 0.85rem 0.55rem;
  border-right: 1px solid var(--hm-border);
  background: var(--hm-bg);
}

.hm-preview__brand {
  width: 100%;
  height: 10px;
  margin-bottom: 0.5rem;
  border-radius: 4px;
  background: var(--hm-border-strong);
}

.hm-preview__nav {
  height: 8px;
  border-radius: 4px;
  background: var(--hm-border);
}

.hm-preview__nav.is-on {
  background: var(--hm-accent);
  opacity: 0.85;
}

.hm-preview__main {
  padding: 0.9rem;
}

.hm-preview__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
}

.hm-preview__title {
  font-size: 0.85rem;
  font-weight: 650;
}

.hm-preview__chip {
  padding: 0.15rem 0.5rem;
  border: 1px solid var(--hm-border);
  border-radius: 999px;
  color: var(--hm-text-muted);
  font-size: 0.68rem;
  font-weight: 600;
}

.hm-preview__tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.hm-preview__tile {
  padding: 0.65rem 0.7rem;
  border: 1px solid var(--hm-border);
  border-radius: 10px;
  background: var(--hm-bg);
}

.hm-preview__tile em {
  display: block;
  width: 18px;
  height: 3px;
  margin-bottom: 0.45rem;
  border-radius: 2px;
  background: var(--hm-border-strong);
}

.hm-preview__tile strong {
  display: block;
  font-size: 0.72rem;
  font-weight: 650;
}

.hm-preview__tile span {
  display: block;
  margin-top: 0.2rem;
  color: var(--hm-text-faint);
  font-size: 0.65rem;
  line-height: 1.35;
}

.hm-preview__tile--accent {
  border-color: var(--hm-accent-border);
  background: var(--hm-accent-soft);
}

.hm-preview__tile--accent em {
  background: var(--hm-accent);
}

.hm-code {
  margin-top: 0.75rem;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--hm-border);
  border-radius: 10px;
  background: var(--hm-bg);
  font-family: var(--hm-mono);
  font-size: 0.68rem;
  line-height: 1.55;
  overflow: hidden;
}

.hm-code__line {
  white-space: nowrap;
}

.t-muted { color: var(--hm-text-faint); }
.t-key { color: var(--hm-accent); }
.t-str { color: #9ecbff; }
.t-ok { color: var(--hm-ok); }

[data-theme="light"] .t-str {
  color: #2563eb;
}

/* Features */
.hm-features {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .hm-features {
    grid-template-columns: 1fr 1fr;
  }
}

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

.hm-feature {
  padding: 1.15rem 1.1rem;
  border: 1px solid var(--hm-border);
  border-radius: var(--hm-radius);
  background: var(--hm-bg-elev);
  transition: border-color 0.15s ease, background 0.15s ease;
}

.hm-feature:hover {
  border-color: var(--hm-border-strong);
  background: var(--hm-bg-hover);
}

.hm-feature__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-bottom: 0.85rem;
  border: 1px solid var(--hm-border);
  border-radius: 9px;
  background: var(--hm-bg);
  color: var(--hm-accent);
  font-size: 0.85rem;
}

.hm-feature h3 {
  margin: 0 0 0.4rem;
  font-size: 0.98rem;
  font-weight: 650;
}

.hm-feature p {
  margin: 0;
  color: var(--hm-text-muted);
  font-size: 0.88rem;
}

/* Split / appframe */
.hm-split {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 900px) {
  .hm-split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: 3rem;
  }
}

.hm-checklist {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.hm-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  color: var(--hm-text-muted);
  font-size: 0.92rem;
}

.hm-checklist i {
  margin-top: 0.2rem;
  color: var(--hm-ok);
  font-size: 0.75rem;
}

.hm-appframe {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  min-height: 260px;
  border: 1px solid var(--hm-border);
  border-radius: var(--hm-radius-lg);
  background: var(--hm-bg-elev);
  overflow: hidden;
  box-shadow: var(--hm-shadow);
}

.hm-appframe__side {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1rem 0.7rem;
  border-right: 1px solid var(--hm-border);
  background: var(--hm-bg);
}

.hm-appframe__logo {
  height: 12px;
  width: 70%;
  margin-bottom: 0.75rem;
  border-radius: 4px;
  background: var(--hm-border-strong);
}

.hm-appframe__side span {
  padding: 0.4rem 0.5rem;
  border-radius: 7px;
  color: var(--hm-text-faint);
  font-size: 0.68rem;
  font-weight: 600;
}

.hm-appframe__side span.is-on {
  background: var(--hm-accent-soft);
  color: var(--hm-text);
}

.hm-appframe__content {
  padding: 1rem;
}

.hm-appframe__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  font-size: 0.85rem;
  font-weight: 650;
}

.hm-appframe__pill {
  padding: 0.15rem 0.5rem;
  border: 1px solid var(--hm-border);
  border-radius: 999px;
  color: var(--hm-text-muted);
  font-size: 0.68rem;
}

.hm-appframe__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}

.hm-appframe__grid div {
  height: 72px;
  border: 1px solid var(--hm-border);
  border-radius: 10px;
  background: var(--hm-bg);
}

.hm-appframe__grid div:nth-child(1) {
  border-color: var(--hm-accent-border);
  background: linear-gradient(160deg, var(--hm-accent-soft), transparent 70%);
}

/* Steps */
.hm-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

@media (min-width: 720px) {
  .hm-steps {
    grid-template-columns: 1fr 1fr;
  }
}

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

.hm-step {
  padding: 1.15rem 1.05rem;
  border: 1px solid var(--hm-border);
  border-radius: var(--hm-radius);
  background: var(--hm-bg-elev);
}

.hm-step__n {
  display: block;
  margin-bottom: 0.75rem;
  color: var(--hm-accent);
  font-family: var(--hm-mono);
  font-size: 0.78rem;
  font-weight: 500;
}

.hm-step h3 {
  margin: 0 0 0.4rem;
  font-size: 0.98rem;
  font-weight: 650;
}

.hm-step p {
  margin: 0;
  color: var(--hm-text-muted);
  font-size: 0.88rem;
}

/* Dev */
.hm-dev {
  display: grid;
  gap: 1.5rem;
  align-items: center;
  padding: 1.5rem;
  border: 1px solid var(--hm-border);
  border-radius: var(--hm-radius-lg);
  background: var(--hm-bg-elev);
}

@media (min-width: 860px) {
  .hm-dev {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 2rem;
    padding: 1.75rem 1.85rem;
  }
}

.hm-dev__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1.15rem;
}

.hm-dev__tags span {
  padding: 0.3rem 0.65rem;
  border: 1px solid var(--hm-border);
  border-radius: 999px;
  color: var(--hm-text-muted);
  font-size: 0.75rem;
  font-weight: 550;
}

.hm-terminal {
  margin: 0;
  padding: 1rem 1.1rem;
  border: 1px solid var(--hm-border);
  border-radius: var(--hm-radius);
  background: var(--hm-bg);
  color: var(--hm-text);
  font-family: var(--hm-mono);
  font-size: 0.78rem;
  line-height: 1.7;
  overflow-x: auto;
  white-space: pre;
}

/* Plans teaser */
.hm-plans {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 1.5rem;
  border: 1px solid var(--hm-border);
  border-radius: var(--hm-radius-lg);
  background: var(--hm-bg-elev);
}

@media (min-width: 720px) {
  .hm-plans {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 1.75rem 1.85rem;
  }
}

/* CTA */
.hm-cta {
  padding: clamp(3.5rem, 8vw, 5.5rem) 0;
  border-top: 1px solid var(--hm-border);
}

.hm-cta__inner {
  max-width: 560px;
  text-align: center;
  margin-inline: auto;
}

.hm-cta h2 {
  font-size: clamp(1.55rem, 3.4vw, 2rem);
}

.hm-cta .hm-hero__actions {
  justify-content: center;
}

.hm-cta p {
  margin-left: auto;
  margin-right: auto;
}

/* Footer */
.hm-footer {
  border-top: 1px solid var(--hm-border);
  background: var(--hm-bg-soft);
  padding: 3rem 0 1.5rem;
}

.hm-footer__grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}

@media (min-width: 560px) {
  .hm-footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 900px) {
  .hm-footer__grid {
    grid-template-columns: 1.4fr repeat(3, 0.7fr);
    gap: 2.5rem;
  }
}

.hm-footer__logo img {
  height: 22px;
  width: auto;
}

[data-theme="light"] .hm-footer__logo img {
  filter: invert(1) brightness(0.12);
}

.hm-footer__brand p {
  margin: 0.85rem 0 0;
  color: var(--hm-text-muted);
  font-size: 0.9rem;
  max-width: 36ch;
}

.hm-footer__col h3 {
  margin: 0 0 0.75rem;
  color: var(--hm-text-faint);
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hm-footer__col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.hm-footer__col a {
  color: var(--hm-text-muted);
  font-size: 0.9rem;
}

.hm-footer__col a:hover {
  color: var(--hm-text);
}

.hm-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--hm-border);
  color: var(--hm-text-faint);
  font-size: 0.8rem;
}

.hm-footer__meta {
  font-family: var(--hm-mono);
  font-size: 0.75rem;
}

/* Account menu injected by account.js */
.header .account-user {
  position: relative;
}

.header .account-user__trigger {
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--hm-border);
  border-radius: 10px;
  background: var(--hm-bg-elev);
  color: var(--hm-text);
  cursor: pointer;
}

/* Narrow phones */
@media (max-width: 359px) {
  .container {
    width: calc(100% - 1.25rem);
  }

  .hm-hero h1 {
    font-size: 1.75rem;
  }

  .hm-preview__tiles {
    grid-template-columns: 1fr;
  }

  .hm-appframe {
    grid-template-columns: 1fr;
  }

  .hm-appframe__side {
    flex-direction: row;
    flex-wrap: wrap;
    border-right: 0;
    border-bottom: 1px solid var(--hm-border);
  }

  .hm-appframe__logo {
    width: 40px;
    margin-bottom: 0;
  }
}

@media (max-width: 479px) {
  .hm-hero__actions .hm-btn {
    width: 100%;
  }
}
