/* ==========================================================================
   Mankai Launch Design System (v8)
   Modern one-page product experience: pill header, energetic hero with real
   interface cards, bento features, colored rounded panels, workflow line,
   Sasico-inspired composition rebuilt on the Mankai brand.
   Prefix: hx-
   ========================================================================== */

/* --------------------------------------------------------------------------
   0. Base
   -------------------------------------------------------------------------- */
html {
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

.hx-container { width: var(--container); margin-inline: auto; }
.hx-container--wide { width: var(--container-wide); }

.hx-section { padding-block: var(--section-pad); position: relative; }
section[id] { scroll-margin-top: calc(var(--header-h) + 12px); }

body {
  font-size: var(--text-body);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  letter-spacing: -0.022em;
}

/* Section label pill: solid accents, soft neutral base */
.hx-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  background: var(--paper-raised);
  border: 1px solid var(--line);
  font-size: var(--text-caption);
  font-weight: 650;
  color: var(--ink-soft);
  letter-spacing: 0.01em;
}

/* Plain small label, for sections that do not need a pill */
.hx-label {
  display: block;
  font-size: var(--text-eyebrow);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-bottom: var(--space-4);
}
.hx-pill--accent {
  background: var(--accent);
  border-color: var(--accent);
  color: #FFFFFF;
}
.hx-pill--gold {
  background: var(--gold-deep);
  border-color: var(--gold-deep);
  color: #FFFFFF;
}
.hx-pill--night {
  background: var(--accent);
  border-color: var(--accent);
  color: #FFFFFF;
}
.hx-pill .hx-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #FFFFFF;
}

/* Section heads */
.hx-head {
  max-width: 52rem;
  margin-bottom: clamp(40px, 4.5vw, 64px);
}
.hx-head--center {
  margin-inline: auto;
  text-align: center;
}
.hx-head .hx-pill { margin-bottom: var(--space-5); }
.hx-h2 {
  font-size: var(--text-h2);
  font-weight: 730;
  line-height: 1.06;
  color: var(--ink);
  margin: 0 0 var(--space-4);
  text-wrap: balance;
}
.hx-sub {
  font-size: var(--text-lede);
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 44rem;
}
.hx-head--center .hx-sub { margin-inline: auto; }

.hx-head--split {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: var(--space-6) clamp(40px, 5vw, 88px);
  align-items: end;
  max-width: none;
}
.hx-head--split .hx-sub { margin-bottom: 6px; }

/* --------------------------------------------------------------------------
   1. Buttons (pill + arrow circle)
   -------------------------------------------------------------------------- */
.hx-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 8px 8px 26px;
  min-height: 52px;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: var(--text-small);
  font-weight: 650;
  line-height: 1.1;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background var(--speed) var(--ease-soft), border-color var(--speed) var(--ease-soft),
              color var(--speed) var(--ease-soft), transform 180ms var(--ease-soft), box-shadow var(--speed) var(--ease-soft);
}
.hx-btn:hover { transform: translateY(-1px); }
.hx-btn:active { transform: translateY(0); }
.hx-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  flex: 0 0 auto;
  transition: transform 220ms var(--ease-out);
}
.hx-btn:hover .hx-arrow { transform: translateX(3px); }

.hx-btn--primary { background: var(--ink); color: #FFFFFF; }
.hx-btn--primary:hover { background: #000; color: #FFFFFF; }
.hx-btn--primary .hx-arrow { background: var(--accent); color: #FFFFFF; }

.hx-btn--accent { background: var(--accent); color: #FFFFFF; }
.hx-btn--accent:hover { background: var(--accent-deep); color: #FFFFFF; }
.hx-btn--accent .hx-arrow { background: #FFFFFF; color: var(--accent); }

.hx-btn--ghost { background: var(--paper-raised); border-color: var(--line); color: var(--ink); box-shadow: var(--shadow-s); }
.hx-btn--ghost:hover { border-color: var(--ink-faint); color: var(--ink); }
.hx-btn--ghost .hx-arrow { background: var(--ink); color: #FFFFFF; }

.hx-btn--night { background: #FFFFFF; border-color: #FFFFFF; color: var(--ink); }
.hx-btn--night:hover { background: var(--paper); color: var(--ink); }
.hx-btn--night .hx-arrow { background: var(--accent); color: #FFFFFF; }

.hx-btn--sm { min-height: 42px; padding: 6px 6px 6px 18px; font-size: var(--text-caption); }
.hx-btn--sm .hx-arrow { width: 30px; height: 30px; }

.hx-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent-deep);
  font-weight: 650;
  font-size: var(--text-small);
}
.hx-link::after { content: '\2192'; transition: transform 180ms var(--ease-out); display: inline-block; }
.hx-link:hover::after { transform: translateX(3px); }

.hx-btn-row { display: flex; flex-wrap: wrap; gap: var(--space-4); align-items: center; }

/* --------------------------------------------------------------------------
   2. Floating pill header
   -------------------------------------------------------------------------- */
.mk-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: transparent;
  border: 0;
  padding-top: 14px;
  transition: padding var(--speed) var(--ease-soft);
}
.mk-header.is-scrolled { padding-top: 8px; }
.hx-header-bar {
  width: var(--container-wide);
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: var(--space-6);
  min-height: 64px;
  padding: 8px 10px 8px 22px;
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-s);
  transition: box-shadow var(--speed) var(--ease-soft);
}
.mk-header.is-scrolled .hx-header-bar { box-shadow: var(--shadow-m); }

.hx-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  min-width: 0;
}
.hx-brand:hover { color: var(--ink); }
.hx-brand img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}
.hx-brand-name {
  font-weight: 750;
  font-size: 1.06rem;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.hx-brand-name small {
  display: block;
  font-size: 0.7rem;
  font-weight: 550;
  letter-spacing: 0.01em;
  color: var(--ink-faint);
}

.hx-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.6vw, 28px);
  margin-inline: auto;
}
.hx-nav a {
  font-size: var(--text-small);
  font-weight: 570;
  color: var(--ink-soft);
  padding: 8px 2px;
  transition: color var(--speed) var(--ease-soft);
}
.hx-nav a:hover { color: var(--ink); }
.hx-nav a.is-active { color: var(--accent-deep); }

.hx-header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-left: auto;
  flex: 0 0 auto;
}
.hx-header-actions .hx-login {
  font-size: var(--text-small);
  font-weight: 600;
  color: var(--ink-soft);
  padding: 8px 6px;
}
.hx-header-actions .hx-login:hover { color: var(--ink); }
.hx-header-actions .hx-btn { min-height: 46px; }

.mk-nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 10px;
  cursor: pointer;
  color: var(--ink);
}

@media (max-width: 1080px) {
  .hx-nav { display: none; }
  .mk-nav-toggle { display: inline-flex; }
  .hx-header-actions .hx-login { display: none; }

  /* Mobile/tablet header: full-bleed bar, no pill rounding. Desktop unchanged. */
  .mk-header,
  .mk-header.is-scrolled {
    padding-top: 0;
  }
  .hx-header-bar {
    width: 100%;
    max-width: none;
    margin-inline: 0;
    border-radius: 0;
    border-width: 0 0 1px;
    box-shadow: none;
    min-height: 60px;
  }
  .mk-header.is-scrolled .hx-header-bar { box-shadow: none; }
}
@media (max-width: 560px) {
  .hx-header-bar { padding-left: 14px; min-height: 56px; }
  .hx-header-actions .hx-btn { min-height: 40px; padding: 5px 5px 5px 14px; font-size: var(--text-caption); }
  .hx-header-actions .hx-btn .hx-arrow { width: 28px; height: 28px; }
}

/* Mobile sheet: base behavior lives in main.css; launch adjustments only. */
.mk-header.is-scrolled {
  border: 0;
  box-shadow: none;
}
.mk-sheet-nav a {
  font-weight: 660;
  letter-spacing: -0.02em;
  font-size: 1.5rem;
}
.mk-sheet-bottom .hx-btn { width: 100%; justify-content: space-between; }

/* --------------------------------------------------------------------------
   3. Hero
   -------------------------------------------------------------------------- */
.hx-hero {
  position: relative;
  overflow: clip;
  padding: clamp(36px, 5vh, 64px) 0 0;
  min-height: calc(100svh - var(--header-h));
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: clamp(32px, 4.5vh, 64px);
  background:
    radial-gradient(1100px 520px at 82% -10%, var(--accent-wash) 0%, transparent 62%),
    radial-gradient(900px 480px at -8% 8%, var(--gold-tint) 0%, transparent 55%),
    var(--paper);
}
.hx-hero-marquee {
  width: 100%;
}
.hx-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 6.6fr);
  grid-template-rows: auto auto;
  column-gap: clamp(36px, 4.5vw, 72px);
  row-gap: var(--space-6);
  align-items: center;
  width: var(--container-wide);
  margin-inline: auto;
  flex: 1 0 auto;
  align-content: center;
}
.hx-hero-copy {
  grid-column: 1;
  grid-row: 1;
  align-self: end;
}
.hx-hero-founder {
  grid-column: 1;
  grid-row: 2;
  align-self: start;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: var(--text-caption);
  color: var(--ink-soft);
}
.hx-hero-badges { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-bottom: var(--space-5); }
.hx-hero h1 {
  font-size: var(--text-hero);
  font-weight: 770;
  line-height: 1.02;
  letter-spacing: -0.032em;
  color: var(--ink);
  margin: 0 0 var(--space-5);
  max-width: 15ch;
  text-wrap: balance;
}
.hx-hero-sub {
  font-size: var(--text-lede);
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 34rem;
  margin-bottom: var(--space-6);
}
.hx-hero-founder img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.hx-hero-founder strong { color: var(--ink); font-weight: 650; }

/* Hero product stage */
.hx-stage {
  position: relative;
  min-width: 0;
  grid-column: 2;
  grid-row: 1 / -1;
  align-self: center;
}
.hx-stage-decor {
  position: absolute;
  inset: -8% -6%;
  pointer-events: none;
}
.hx-stage-decor .hx-orb {
  position: absolute;
  right: -4%;
  top: -6%;
  width: 46%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 34%, color-mix(in srgb, var(--accent) 24%, transparent), transparent 68%);
}
.hx-stage-decor .hx-ring {
  position: absolute;
  left: -7%;
  bottom: -9%;
  width: 42%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1.5px dashed color-mix(in srgb, var(--gold) 55%, transparent);
}
.hx-stage-decor .hx-dots {
  position: absolute;
  left: 2%;
  top: -4%;
  width: 130px;
  height: 90px;
  background-image: radial-gradient(color-mix(in srgb, var(--ink) 26%, transparent) 1.4px, transparent 1.4px);
  background-size: 16px 16px;
}
.hx-stage-main {
  position: relative;
  z-index: 2;
  border-radius: var(--radius-l);
  border: 1px solid var(--line);
  background: #fff;
  overflow: hidden;
  box-shadow: var(--shadow-l);
}
.hx-stage-main img { display: block; width: 100%; height: auto; }

.hx-float {
  position: absolute;
  z-index: 3;
  border-radius: var(--radius-m);
  overflow: hidden;
  box-shadow: var(--shadow-l);
  border: 1px solid var(--line);
  background: #fff;
}
.hx-float img { display: block; width: 100%; height: auto; }
.hx-float--session { width: min(58%, 430px); left: -7%; bottom: 10%; }
.hx-float--payments { width: min(36%, 260px); right: -6%; top: 30%; border-color: var(--night-line); }
.hx-float-label {
  display: block;
  padding: 8px 14px;
  background: #fff;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.02em;
  color: var(--ink-faint);
  border-bottom: 1px solid var(--line);
  text-transform: uppercase;
}
.hx-float--payments .hx-float-label {
  background: var(--night);
  color: var(--night-soft);
  border-color: var(--night-line);
}

html.hx-motion .hx-drift { animation: hx-drift var(--drift-duration) var(--ease-soft) infinite alternate; }
html.hx-motion .hx-drift--slow { animation-duration: 9.5s; }
@keyframes hx-drift {
  from { transform: translateY(-4px); }
  to { transform: translateY(6px); }
}

/* --------------------------------------------------------------------------
   4. Reveal motion system
   -------------------------------------------------------------------------- */
html.hx-motion [data-hx] {
  opacity: 0;
  transform: translateY(var(--reveal-distance));
  transition: opacity var(--reveal-duration) var(--ease-out), transform var(--reveal-duration) var(--ease-out);
  transition-delay: calc(var(--hx-order, 0) * var(--reveal-stagger));
}
html.hx-motion [data-hx="left"] { transform: translateX(calc(-1 * var(--reveal-distance))); }
html.hx-motion [data-hx="right"] { transform: translateX(var(--reveal-distance)); }
html.hx-motion [data-hx="scale"] { transform: translateY(14px) scale(0.97); }
html.hx-motion [data-hx].is-in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  html.hx-motion [data-hx] { opacity: 1; transform: none; transition: none; }
  html.hx-motion .hx-drift { animation: none; }
}

/* --------------------------------------------------------------------------
   5. Capability marquee
   -------------------------------------------------------------------------- */
.hx-marquee {
  border-block: 1px solid var(--line);
  background: var(--paper-raised);
  overflow: hidden;
  padding: 18px 0;
}
.hx-marquee-track {
  display: flex;
  gap: var(--space-7);
  width: max-content;
}
html.hx-motion .hx-marquee-track { animation: hx-marquee 36s linear infinite; }
.hx-marquee:hover .hx-marquee-track { animation-play-state: paused; }
.hx-marquee-item {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-weight: 650;
  font-size: var(--text-small);
  color: var(--ink-soft);
  white-space: nowrap;
}
.hx-marquee-item::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.75;
}
.hx-marquee-item:nth-child(even)::before { background: var(--gold); }
@keyframes hx-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  html.hx-motion .hx-marquee-track { animation: none; }
}

/* --------------------------------------------------------------------------
   6. Bento features
   -------------------------------------------------------------------------- */
.hx-bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--space-5);
}
.hx-card {
  position: relative;
  border-radius: var(--radius-l);
  border: 1px solid var(--line);
  background: var(--paper-raised);
  padding: clamp(24px, 2.4vw, 36px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 240ms var(--ease-soft), box-shadow 240ms var(--ease-soft), border-color 240ms var(--ease-soft);
}
.hx-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-m); border-color: color-mix(in srgb, var(--ink) 16%, var(--line)); }
.hx-card h3 {
  font-size: var(--text-h3);
  font-weight: 700;
  margin: 0 0 var(--space-3);
  color: var(--ink);
}
.hx-card > p {
  color: var(--ink-soft);
  font-size: var(--text-small);
  line-height: 1.6;
  margin: 0 0 var(--space-4);
  max-width: 46rem;
}
.hx-card-kicker {
  font-size: var(--text-caption);
  font-weight: 650;
  color: var(--accent-deep);
  margin-bottom: var(--space-3);
}
.hx-card-list { margin: 0 0 var(--space-5); padding: 0; list-style: none; }
.hx-card-list li {
  position: relative;
  padding: 7px 0 7px 26px;
  font-size: var(--text-small);
  color: var(--ink-soft);
}
.hx-card-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--leaf-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' stroke='%234F7A5B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 10px no-repeat;
}
.hx-card-media {
  margin-top: auto;
  border-radius: var(--radius-m) var(--radius-m) 0 0;
  border: 1px solid var(--line);
  border-bottom: 0;
  overflow: hidden;
  background: #fff;
  margin-bottom: calc(-1 * clamp(24px, 2.4vw, 36px));
  max-height: 300px;
}
.hx-card-media img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top left; }

.hx-card--dark { background: var(--night); border-color: var(--night-line); }
.hx-card--dark h3 { color: var(--night-ink); }
.hx-card--dark > p { color: var(--night-soft); }
.hx-card--dark .hx-card-kicker { color: var(--gold); }
.hx-card--dark .hx-card-list li { color: var(--night-soft); }
.hx-card--dark .hx-card-media { border-color: var(--night-line); }
.hx-card--dark:hover { border-color: var(--night-soft); }

.hx-card--wash { background: var(--accent-wash); }
.hx-card--gold { background: var(--gold-tint); }

.hx-span-7 { grid-column: span 7; }
.hx-span-5 { grid-column: span 5; }
.hx-span-4 { grid-column: span 4; }
.hx-span-6 { grid-column: span 6; }
.hx-span-8 { grid-column: span 8; }
.hx-span-12 { grid-column: span 12; }

.hx-bento-cta { margin-top: var(--space-6); text-align: center; }

/* --------------------------------------------------------------------------
   7. Split showcase panels
   -------------------------------------------------------------------------- */
.hx-split {
  border-radius: var(--radius-xl);
  padding: clamp(28px, 3.4vw, 56px);
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
  overflow: hidden;
}
.hx-split + .hx-split { margin-top: var(--space-6); }
.hx-split--wash { background: var(--accent-wash); border: 1px solid color-mix(in srgb, var(--accent) 12%, var(--line)); }
.hx-split--night { background: var(--night); border: 1px solid var(--night-line); }
.hx-split--gold { background: var(--gold-tint); border: 1px solid color-mix(in srgb, var(--gold) 24%, var(--line)); }
.hx-split--media-left { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }

.hx-split h3 {
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  font-weight: 720;
  line-height: 1.1;
  margin: var(--space-4) 0;
  color: var(--ink);
}
.hx-split--night h3 { color: var(--night-ink); }
.hx-split p { color: var(--ink-soft); font-size: var(--text-body); line-height: 1.65; }
.hx-split--night p { color: var(--night-soft); }
.hx-split .hx-card-list { margin-top: var(--space-4); }
.hx-split--night .hx-card-list li { color: var(--night-soft); }
.hx-split .hx-btn { margin-top: var(--space-5); }

.hx-split-media {
  position: relative;
  margin: 0;
  min-width: 0;
}
.hx-split-media .hx-frame { box-shadow: var(--shadow-l); }

/* Generic screenshot frame */
.hx-frame {
  border-radius: var(--radius-m);
  border: 1px solid var(--line);
  background: #fff;
  overflow: hidden;
}
.hx-frame img { display: block; width: 100%; height: auto; }
.hx-frame-bar {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: 10px 16px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.hx-frame-dots { display: inline-flex; gap: 6px; }
.hx-frame-dots span { width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.hx-frame-url {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-faint);
  background: var(--paper-sunken);
  padding: 3px 12px;
  border-radius: var(--radius-pill);
}
.hx-frame-note {
  margin-top: var(--space-3);
  font-size: var(--text-caption);
  color: var(--ink-faint);
  text-align: center;
}
.hx-split--night .hx-frame { border-color: var(--night-line); }
.hx-split--night .hx-frame-note { color: var(--night-soft); }

/* --------------------------------------------------------------------------
   8. Workflow line
   -------------------------------------------------------------------------- */
.hx-flow {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-7) var(--space-6);
  list-style: none;
  margin: 0;
  padding: 0;
}
.hx-flow::before {
  content: '';
  position: absolute;
  top: 21px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--line);
}
.hx-flow::after {
  content: '';
  position: absolute;
  top: 21px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--gold));
  transform: scaleX(var(--flow, 0));
  transform-origin: left center;
  transition: transform 1.4s var(--ease-out);
}
.hx-flow-step { position: relative; z-index: 1; }
.hx-flow-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--paper-raised);
  border: 1.5px solid var(--line);
  font-family: var(--font-mono);
  font-size: var(--text-caption);
  font-weight: 650;
  color: var(--accent-deep);
  margin-bottom: var(--space-4);
}
.hx-flow-step h3 {
  font-size: var(--text-h4);
  font-weight: 700;
  margin: 0 0 var(--space-2);
}
.hx-flow-step p {
  margin: 0;
  font-size: var(--text-caption);
  line-height: 1.55;
  color: var(--ink-soft);
}

/* --------------------------------------------------------------------------
   9. Why Mankai
   -------------------------------------------------------------------------- */
.hx-why-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-5);
}
.hx-why-card {
  border-radius: var(--radius-l);
  border: 1px solid var(--line);
  background: var(--paper-raised);
  padding: var(--space-6);
}
.hx-why-card .hx-why-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--accent);
  color: #FFFFFF;
  font-family: var(--font-mono);
  font-weight: 650;
  font-size: var(--text-caption);
  margin-bottom: var(--space-4);
}
.hx-why-card:nth-child(even) .hx-why-num { background: var(--gold-deep); color: #FFFFFF; }
.hx-why-card h3 { font-size: var(--text-h4); font-weight: 700; margin: 0 0 var(--space-2); }
.hx-why-card p { margin: 0; font-size: var(--text-small); line-height: 1.6; color: var(--ink-soft); }

.hx-license-bar {
  margin-top: var(--space-6);
  border-radius: var(--radius-l);
  border: 1px solid color-mix(in srgb, var(--accent) 16%, var(--line));
  background: var(--accent-wash);
  padding: var(--space-5) var(--space-6);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-6);
  align-items: center;
  justify-content: space-between;
}
.hx-license-bar p { margin: 0; font-size: var(--text-small); color: var(--ink-soft); max-width: 62rem; }
.hx-license-bar strong { color: var(--ink); }

/* --------------------------------------------------------------------------
   10. Proof (Dandelion) + theme showcase reuse split styles
   -------------------------------------------------------------------------- */
.hx-proof-frame { position: relative; }
.hx-proof-frame .hx-frame { box-shadow: var(--shadow-l); }
.hx-proof-chip {
  position: absolute;
  top: -16px;
  left: clamp(16px, 4vw, 40px);
  z-index: 2;
}
.hx-proof-row {
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
  gap: var(--space-6);
  align-items: center;
  margin-top: var(--space-6);
}
.hx-proof-row p { margin: 0; color: var(--ink-soft); font-size: var(--text-body); max-width: 52rem; }
.hx-proof-row .hx-btn { justify-self: end; }

/* --------------------------------------------------------------------------
   11. Updates + founder (night)
   -------------------------------------------------------------------------- */
.hx-night-band {
  background: var(--night);
  border-radius: var(--radius-xl);
  padding: clamp(32px, 4vw, 64px);
  border: 1px solid var(--night-line);
}
.hx-night-band .hx-h2 { color: var(--night-ink); }
.hx-night-band .hx-sub { color: var(--night-soft); }
.hx-updates-grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  gap: clamp(32px, 4vw, 72px);
  align-items: start;
}
.hx-changelog { list-style: none; margin: 0 0 var(--space-5); padding: 0; }
.hx-changelog li {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: var(--space-4);
  padding: 14px 0;
  border-bottom: 1px solid var(--night-line);
  font-size: var(--text-small);
}
.hx-changelog time { font-family: var(--font-mono); font-size: var(--text-caption); color: var(--night-soft); padding-top: 2px; }
.hx-changelog a { color: var(--night-ink); font-weight: 600; }
.hx-changelog a:hover { color: #fff; }
.hx-updates-empty { color: var(--night-soft); font-size: var(--text-small); margin-bottom: var(--space-5); }

.hx-founder-card {
  border-radius: var(--radius-l);
  background: var(--night-raised);
  border: 1px solid var(--night-line);
  padding: clamp(24px, 2.6vw, 40px);
}
.hx-founder-card img {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: var(--space-4);
  border: 2px solid var(--night-line);
}
.hx-founder-card h3 { color: var(--night-ink); font-size: var(--text-h3); font-weight: 700; margin: 0 0 var(--space-3); }
.hx-founder-card p { color: var(--night-soft); font-size: var(--text-small); line-height: 1.65; }
.hx-founder-card .hx-founder-sig {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--gold);
  font-size: 1.05rem;
}

/* --------------------------------------------------------------------------
   12. Pricing
   -------------------------------------------------------------------------- */
.hx-plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-5);
  align-items: stretch;
}
.hx-plan {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-l);
  border: 1px solid var(--line);
  background: var(--paper-raised);
  padding: clamp(26px, 2.4vw, 38px);
}
.hx-plan-tab {
  display: inline-flex;
  align-self: flex-start;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: var(--paper);
  font-size: var(--text-caption);
  font-weight: 650;
  color: var(--ink-soft);
  margin-bottom: var(--space-5);
}
.hx-plan-price {
  font-size: clamp(2.5rem, 3.2vw, 3.2rem);
  font-weight: 760;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1;
  margin: 0 0 var(--space-2);
}
.hx-plan-price small {
  font-size: var(--text-small);
  font-weight: 550;
  color: var(--ink-faint);
  letter-spacing: 0;
  margin-left: 4px;
}
.hx-plan-for {
  font-size: var(--text-small);
  color: var(--ink-soft);
  line-height: 1.55;
  margin: 0 0 var(--space-5);
}
.hx-plan .hx-btn { width: 100%; justify-content: space-between; }
.hx-plan-divider { height: 1px; background: var(--line); margin: var(--space-5) 0; }
.hx-plan-note {
  font-size: var(--text-caption);
  color: var(--ink-faint);
  margin: var(--space-4) 0 0;
}
.hx-plan-note a { color: var(--ink); font-weight: 650; }

.hx-plan--featured {
  background: var(--night);
  border-color: var(--night-line);
  box-shadow: var(--shadow-l);
}
@media (min-width: 981px) {
  .hx-plan--featured { transform: scale(1.03); }
  .hx-plan--featured:hover { transform: scale(1.03); }
}
.hx-plan--featured .hx-plan-tab {
  background: var(--accent);
  border-color: var(--accent);
  color: #FFF6F2;
}
.hx-plan--featured .hx-plan-price { color: var(--night-ink); }
.hx-plan--featured .hx-plan-for { color: var(--night-soft); }
.hx-plan--featured .hx-plan-divider { background: var(--night-line); }
.hx-plan--featured .hx-card-list li { color: var(--night-soft); }
.hx-plan--featured .hx-plan-note { color: var(--night-soft); }
.hx-plan--featured .hx-plan-note a { color: var(--night-ink); }

.hx-pricing-foot {
  margin-top: var(--space-6);
  text-align: center;
  font-size: var(--text-caption);
  color: var(--ink-faint);
  max-width: 56rem;
  margin-inline: auto;
}

/* --------------------------------------------------------------------------
   13. Setup service
   -------------------------------------------------------------------------- */
.hx-setup-panel {
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  background: var(--paper-sunken);
  padding: clamp(28px, 3.4vw, 56px);
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  gap: clamp(28px, 4vw, 72px);
  align-items: start;
}
.hx-setup-price {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  margin: var(--space-4) 0 var(--space-5);
  font-size: clamp(2.1rem, 3vw, 2.8rem);
  font-weight: 760;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.hx-setup-price small { font-size: var(--text-small); font-weight: 550; color: var(--ink-faint); }
.hx-setup-panel p { color: var(--ink-soft); }
.hx-steps { list-style: none; margin: 0 0 var(--space-5); padding: 0; counter-reset: step; }
.hx-steps li {
  position: relative;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: var(--space-4);
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-size: var(--text-small);
  color: var(--ink-soft);
  align-items: center;
}
.hx-steps li span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--paper-raised);
  border: 1px solid var(--line);
  color: var(--accent-deep);
  font-family: var(--font-mono);
  font-size: var(--text-caption);
  font-weight: 650;
}

/* --------------------------------------------------------------------------
   14. FAQ accordion
   -------------------------------------------------------------------------- */
.hx-faq-panel {
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  background: var(--paper-raised);
  padding: clamp(24px, 3vw, 48px);
  max-width: 940px;
  margin-inline: auto;
}
.hx-acc { border-top: 1px solid var(--line); }
.hx-acc-item { border-bottom: 1px solid var(--line); }
.hx-acc-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: 20px 4px;
  background: none;
  border: 0;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-body);
  font-size: var(--text-h4);
  font-weight: 650;
  color: var(--ink);
}
.hx-acc-btn:hover { color: var(--accent-deep); }
.hx-acc-num {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: var(--text-caption);
  color: var(--ink-faint);
  width: 26px;
}
.hx-acc-icon {
  margin-left: auto;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 260ms var(--ease-out), background 260ms var(--ease-soft);
}
.hx-acc-icon::before { content: '+'; font-size: 18px; line-height: 1; color: var(--ink-soft); }
.hx-acc-item.is-open .hx-acc-icon { transform: rotate(45deg); background: var(--accent-tint); border-color: transparent; }
.hx-acc-item.is-open .hx-acc-icon::before { color: var(--accent-deep); }
.hx-acc-body {
  overflow: hidden;
  max-height: 0;
  transition: max-height 320ms var(--ease-out);
}
.hx-acc-body-inner {
  padding: 0 4px 22px 42px;
  color: var(--ink-soft);
  font-size: var(--text-body);
  line-height: 1.65;
  max-width: 46rem;
}
@media (prefers-reduced-motion: reduce) {
  .hx-acc-body { transition: none; }
}

/* --------------------------------------------------------------------------
   15. Final CTA
   -------------------------------------------------------------------------- */
.hx-final-panel {
  border-radius: var(--radius-xl);
  background:
    radial-gradient(900px 420px at 88% 0%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 60%),
    var(--night);
  border: 1px solid var(--night-line);
  padding: clamp(32px, 4.5vw, 72px);
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  gap: clamp(28px, 4vw, 72px);
  align-items: center;
  overflow: hidden;
}
.hx-final-panel .hx-h2 { color: var(--night-ink); }
.hx-final-panel p { color: var(--night-soft); font-size: var(--text-lede); line-height: 1.6; }
.hx-final-media { margin: 0 clamp(-16px, -2vw, -40px) clamp(-64px, -6vw, -104px) 0; min-width: 0; }
.hx-final-media .hx-frame { border-color: var(--night-line); box-shadow: var(--shadow-l); }
.hx-final-note { margin-top: var(--space-5); font-size: var(--text-small); }
.hx-final-note a { color: var(--night-ink); font-weight: 650; }

/* --------------------------------------------------------------------------
   16. Footer (compact)
   -------------------------------------------------------------------------- */
.hx-footer {
  background: var(--paper);
  border-top: 1px solid var(--line);
  padding: clamp(40px, 5vw, 64px) 0 0;
}
.hx-footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) repeat(3, minmax(0, 2.2fr));
  gap: var(--space-7) var(--space-6);
  padding-bottom: clamp(32px, 4vw, 48px);
}
.hx-footer-brand p {
  margin: var(--space-4) 0 0;
  font-size: var(--text-small);
  color: var(--ink-soft);
  max-width: 30rem;
  line-height: 1.6;
}
.hx-footer h4 {
  font-size: var(--text-caption);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
  margin: 0 0 var(--space-4);
}
.hx-footer ul { list-style: none; margin: 0; padding: 0; }
.hx-footer li { margin-bottom: 10px; }
.hx-footer li a { color: var(--ink-soft); font-size: var(--text-small); font-weight: 550; }
.hx-footer li a:hover { color: var(--ink); }
.hx-footer-bottom {
  border-top: 1px solid var(--line);
  padding: 20px 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-6);
  align-items: center;
  justify-content: space-between;
  font-size: var(--text-caption);
  color: var(--ink-faint);
}
.hx-footer-bottom a { color: var(--ink-soft); }
.hx-footer-bottom a:hover { color: var(--ink); }
.hx-footer-legal { display: flex; flex-wrap: wrap; gap: var(--space-5); }

/* Sticky mobile CTA: full-bleed bottom bar so nothing clips on phones */
.mk-sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  min-width: 0;
  background: var(--night);
  color: var(--night-ink);
  border: 0;
  border-top: 1px solid var(--night-line);
  border-radius: 0;
  padding: 12px 16px;
  padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -8px 28px rgb(20 16 12 / 0.18);
  transform: translateY(110%);
  transition: transform 320ms var(--ease-out);
  font-size: var(--text-small);
  font-weight: 600;
}
.mk-sticky-cta.is-visible { transform: none; }
.mk-sticky-cta > span {
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mk-sticky-cta > div {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 4px;
}
.mk-sticky-cta-close {
  background: none;
  border: 0;
  color: var(--night-soft);
  cursor: pointer;
  padding: 8px;
  display: inline-flex;
}
@media (max-width: 820px) {
  .mk-sticky-cta { display: flex; }
}
@media (max-width: 360px) {
  .mk-sticky-cta { padding-inline: 12px; gap: var(--space-2); font-size: 12.5px; }
  .mk-sticky-cta .hx-btn--sm { padding-left: 12px; }
}

/* --------------------------------------------------------------------------
   17. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1180px) {
  .hx-hero-grid { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); }
  .hx-span-7, .hx-span-5 { grid-column: span 6; }
}

@media (max-width: 980px) {
  .hx-hero { min-height: 0; }
  .hx-hero-grid {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    gap: var(--space-8);
  }
  .hx-hero-copy,
  .hx-stage,
  .hx-hero-founder {
    grid-column: auto;
    grid-row: auto;
    align-self: auto;
  }
  .hx-hero h1 { max-width: none; }
  .hx-head--split { grid-template-columns: 1fr; align-items: start; }
  .hx-split, .hx-split--media-left { grid-template-columns: 1fr; }
  .hx-split--media-left .hx-split-media { order: 2; }
  .hx-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hx-flow::before, .hx-flow::after { display: none; }
  .hx-why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hx-updates-grid { grid-template-columns: 1fr; }
  .hx-plans { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .hx-plan--featured { transform: none; }
  .hx-setup-panel { grid-template-columns: 1fr; }
  .hx-proof-row { grid-template-columns: 1fr; }
  .hx-proof-row .hx-btn { justify-self: start; }
  .hx-final-panel { grid-template-columns: 1fr; }
  .hx-final-media { margin: 0 0 calc(-1 * clamp(48px, 8vw, 80px)); }
  .hx-footer-grid { grid-template-columns: 1fr 1fr; }
  .hx-bento > * { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .hx-flow { grid-template-columns: 1fr; gap: var(--space-6); }
  .hx-why-grid { grid-template-columns: 1fr; }
  .hx-btn-row .hx-btn { width: 100%; justify-content: space-between; }
  .hx-footer-grid { grid-template-columns: 1fr; gap: var(--space-6); }
  .hx-acc-btn { font-size: var(--text-body); }
  .hx-acc-body-inner { padding-left: 30px; }
}


/* --------------------------------------------------------------------------
   18. Feedback pass: journey, merged theme + studio, full-bleed updates,
   setup strip + dialog, flat FAQ, mobile flow.
   -------------------------------------------------------------------------- */

/* Money-to-delivery journey: sticky screenshots left, flat chapters right */
.hx-journey-layout {
  display: grid;
  grid-template-columns: minmax(0, 15fr) minmax(320px, 8fr);
  gap: clamp(36px, 4.5vw, 80px);
  align-items: start;
}
.hx-journey-visual {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  min-width: 0;
}
.hx-journey-frame {
  position: relative;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  background: #fff;
  overflow: hidden;
  box-shadow: var(--shadow-m);
}
.hx-journey-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
  opacity: 0;
  transition: opacity 0.4s var(--ease-out);
}
.hx-journey-frame img.is-active { opacity: 1; }
.hx-journey-note {
  margin-top: var(--space-3);
  font-size: var(--text-caption);
  color: var(--ink-faint);
}
.hx-journey-chapters { min-width: 0; }
.hx-journey-chapter {
  padding-block: clamp(40px, 5vw, 72px);
  border-top: 1px solid var(--line);
}
.hx-journey-chapter:first-child { border-top: 0; padding-top: 0; }
.hx-journey-kicker {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: var(--text-caption);
  font-weight: 650;
  color: var(--accent-deep);
  margin-bottom: var(--space-4);
}
.hx-journey-chapter h3 {
  font-size: clamp(1.4rem, 2.1vw, 1.75rem);
  font-weight: 720;
  line-height: 1.15;
  margin: 0 0 var(--space-3);
}
.hx-journey-chapter > p {
  color: var(--ink-soft);
  font-size: var(--text-small);
  line-height: 1.65;
}
.hx-journey-inline { display: none; margin-top: var(--space-5); }
.hx-mini-flow {
  list-style: none;
  margin: var(--space-5) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3) var(--space-5);
}
.hx-mini-flow li {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}
.hx-mini-flow-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--ink);
  color: #FFFFFF;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 650;
  margin-top: 2px;
}
.hx-mini-flow strong {
  display: block;
  font-size: var(--text-small);
  font-weight: 680;
  color: var(--ink);
}
.hx-mini-flow div > span {
  font-size: var(--text-caption);
  color: var(--ink-soft);
  line-height: 1.45;
}

/* Merged theme + live studio: centered stack, one image, soft edges */
.hx-themeworld-media {
  margin: 0 auto;
  max-width: 980px;
  min-width: 0;
}
.hx-themeworld-media .hx-frame { box-shadow: var(--shadow-l); }
.hx-themeworld-copy {
  max-width: 46rem;
  margin: var(--space-7) auto 0;
  text-align: center;
}
.hx-themeworld-copy p { color: var(--ink-soft); font-size: var(--text-small); line-height: 1.65; }
.hx-themeworld-copy strong { color: var(--ink); }
.hx-fine { font-size: var(--text-caption); color: var(--ink-faint); }
.hx-themeworld-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: center;
  margin-top: var(--space-6);
}

/* Full-bleed night section */
.hx-section--night {
  background: var(--night);
}
.hx-section--night .hx-h2 { color: var(--night-ink); }
.hx-section--night .hx-sub { color: var(--night-soft); }
.hx-updates-heading {
  margin: 0 0 var(--space-4);
  font-size: var(--text-h4);
  font-weight: 700;
  color: var(--night-ink);
}
.hx-updates-card {
  border-radius: var(--radius-l);
  background: var(--night-raised);
  border: 1px solid var(--night-line);
  padding: clamp(24px, 2.6vw, 40px);
  display: flex;
  flex-direction: column;
}
.hx-updates-card .hx-btn { align-self: flex-start; margin-top: auto; }

/* Setup strip + dialog */
.hx-setup-strip-wrap {
  padding: 0 0 var(--space-7);
  background: var(--paper);
}
.hx-setup-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4) var(--space-6);
  padding: var(--space-5) var(--space-6);
  border: 0;
  border-radius: var(--radius-l);
  background: var(--paper-sunken);
}
.hx-setup-strip-copy p { margin: 0; font-size: var(--text-small); color: var(--ink-soft); }
.hx-setup-strip-copy strong { color: var(--ink); }
.hx-setup-strip-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.hx-setup-dialog {
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: clamp(24px, 3vw, 40px);
  max-width: 620px;
  width: calc(100vw - 32px);
  background: var(--paper-raised);
  color: var(--ink);
  box-shadow: var(--shadow-l);
}
.hx-setup-dialog::backdrop {
  background: rgb(25 21 17 / 0.62);
}
.hx-setup-dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-3);
}
.hx-setup-dialog-head h3 {
  font-size: var(--text-h3);
  font-weight: 720;
  margin: 0;
}
.hx-setup-dialog-close {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--paper-raised);
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.hx-setup-dialog-close:hover { background: var(--ink); color: #FFFFFF; }
.hx-setup-dialog-price {
  font-size: 1.6rem;
  font-weight: 760;
  letter-spacing: -0.02em;
  margin: 0 0 var(--space-4);
}
.hx-setup-dialog-price small { font-size: var(--text-caption); font-weight: 550; color: var(--ink-faint); }
.hx-setup-dialog p { color: var(--ink-soft); font-size: var(--text-small); line-height: 1.6; }
.hx-setup-dialog .hx-btn { margin-top: var(--space-4); }

/* Flat FAQ tied under pricing */
.hx-faq-flat { padding-top: 0; }
.hx-faq-flat .hx-acc { border-top: 1px solid var(--line); }
.hx-faq-flat .hx-acc-icon { border: 1px solid var(--line); }
.hx-acc-item.is-open .hx-acc-icon { background: var(--accent); border-color: var(--accent); }
.hx-acc-item.is-open .hx-acc-icon::before { color: #FFFFFF; }

/* Pricing section hands off to the strip */
#pricing.hx-section { padding-bottom: var(--space-7); }

/* Responsive: journey, themeworld, strip, mobile centering flow */
@media (max-width: 980px) {
  .hx-journey-layout { grid-template-columns: 1fr; }
  .hx-journey-visual { display: none; }
  .hx-journey-inline { display: block; }
}

@media (max-width: 640px) {
  .hx-hero { min-height: 0; gap: var(--space-7); }
  .hx-hero-copy { text-align: center; }
  .hx-hero h1 { margin-inline: auto; }
  .hx-hero-sub { margin-inline: auto; }
  .hx-head:not(.hx-head--split) { text-align: center; }
  .hx-head:not(.hx-head--split) .hx-sub { margin-inline: auto; }
  .hx-journey-chapter { text-align: left; }
  .hx-mini-flow { grid-template-columns: 1fr; }
  .hx-setup-strip { flex-direction: column; align-items: stretch; text-align: center; }
  .hx-setup-strip-copy { justify-content: center; }
  .hx-setup-strip-actions { flex-direction: column; }
  .hx-setup-strip-actions .hx-btn { width: 100%; justify-content: space-between; }
  .hx-themeworld-actions { flex-direction: column; }
  .hx-themeworld-actions .hx-btn { width: 100%; justify-content: space-between; }
  .hx-bento-cta { text-align: center; }
}


/* --------------------------------------------------------------------------
   19. Final adjustments: comparison table, flat dev band, FAQ band.
   -------------------------------------------------------------------------- */

/* Comparison table */
.hx-compare-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  background: var(--paper-raised);
}
.hx-compare-wrap:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.hx-compare-table {
  width: 100%;
  min-width: 960px;
  border-collapse: collapse;
  font-size: var(--text-small);
}
.hx-compare-table th,
.hx-compare-table td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  text-align: center;
  vertical-align: middle;
}
.hx-compare-table tbody tr:last-child th,
.hx-compare-table tbody tr:last-child td {
  border-bottom: 0;
}
.hx-compare-table thead th {
  font-size: var(--text-caption);
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
  padding-block: 16px;
  background: var(--paper);
}
.hx-compare-table thead th span {
  display: block;
  font-weight: 550;
  color: var(--ink-faint);
  font-family: var(--font-mono);
  font-size: 11px;
  margin-top: 3px;
}
.hx-cmp-feature {
  text-align: left !important;
  font-weight: 600;
  color: var(--ink);
  position: sticky;
  left: 0;
  background: var(--paper-raised);
  min-width: 230px;
  z-index: 1;
}
.hx-compare-table thead .hx-cmp-feature { background: var(--paper); }
.hx-cmp-mankai { background: var(--accent-wash); }
.hx-compare-table thead .hx-cmp-mankai { background: var(--accent-wash); color: var(--accent-deep); }
.hx-cmp-complete { background: var(--accent-tint); }
.hx-compare-table thead .hx-cmp-complete { color: var(--accent-deep); }
.hx-cmp-y {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--leaf);
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 700;
}
.hx-cmp-p {
  color: var(--gold-deep);
  font-weight: 800;
  font-size: 15px;
}
.hx-cmp-n {
  color: var(--ink-faint);
  font-size: 12px;
}
.hx-compare-note {
  margin: var(--space-5) auto 0;
  max-width: 62rem;
  text-align: center;
  font-size: var(--text-caption);
  color: var(--ink-faint);
  line-height: 1.6;
}

/* Flat dev band composition */
.hx-devband {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 1px minmax(0, 1fr);
  gap: clamp(28px, 3.5vw, 64px);
  align-items: start;
  max-width: 1120px;
  margin-inline: auto;
}
.hx-devband::before {
  content: '';
  grid-column: 2;
  grid-row: 1;
  width: 1px;
  height: 100%;
  background: var(--night-line);
}
.hx-devband-founder { grid-column: 1; }
.hx-devband-news { grid-column: 3; }
.hx-devband-founder-head {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}
.hx-devband-founder-head img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
}
.hx-devband-founder h3,
.hx-devband-news h3 {
  color: var(--night-ink);
  font-size: var(--text-h4);
  font-weight: 700;
  margin: 0;
}
.hx-devband-news h3 { margin-bottom: var(--space-4); }
.hx-devband-founder > p {
  color: var(--night-soft);
  font-size: var(--text-small);
  line-height: 1.65;
  margin-bottom: var(--space-4);
}
.hx-devband .hx-founder-sig {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--gold);
  font-size: 0.95rem;
  margin: 2px 0 0;
}

/* FAQ band: distinct tinted close for the page */
.hx-faq-band {
  padding-top: var(--section-pad);
  background: var(--paper-sunken);
  border-top: 1px solid var(--line);
}
.hx-faq-band .hx-acc { border-top: 1px solid color-mix(in srgb, var(--ink) 14%, var(--paper-sunken)); }
.hx-faq-band .hx-acc-item { border-bottom: 1px solid color-mix(in srgb, var(--ink) 10%, var(--paper-sunken)); }
.hx-faq-band .hx-acc-icon { background: var(--paper-raised); }

/* Footer joins the tinted close */
.hx-footer {
  background: var(--paper-sunken);
  border-top: 1px solid color-mix(in srgb, var(--ink) 10%, var(--paper-sunken));
}

@media (max-width: 980px) {
  .hx-devband {
    grid-template-columns: 1fr;
  }
  .hx-devband::before { display: none; }
  .hx-devband-founder { grid-column: 1; }
  .hx-devband-news {
    grid-column: 1;
    padding-top: var(--space-6);
    border-top: 1px solid var(--night-line);
  }
}


/* --------------------------------------------------------------------------
   20. Mobile refinement pass.
   -------------------------------------------------------------------------- */
.hx-compare-hint {
  display: none;
  margin: 0 0 var(--space-3);
  text-align: center;
  font-size: var(--text-caption);
  color: var(--ink-faint);
}

@media (max-width: 980px) {
  /* Breathing room: keep content off the screen edges */
  :root {
    --container: 91vw;
    --container-wide: 91vw;
  }

  /* Hero stage: taller crop so the real UI stays readable */
  .hx-stage-main {
    aspect-ratio: 5 / 4;
    border-radius: var(--radius-m);
  }
  .hx-stage-main img {
    width: 130%;
    max-width: none;
    height: 100%;
    object-fit: cover;
    object-position: left top;
  }
  .hx-stage-decor .hx-ring { display: none; }

  /* Compare table: compact cells, slimmer sticky column, visible hint */
  .hx-compare-hint { display: block; }
  .hx-compare-table { min-width: 760px; font-size: var(--text-caption); }
  .hx-compare-table th,
  .hx-compare-table td { padding: 10px 10px; }
  .hx-cmp-feature {
    min-width: 148px;
    max-width: 168px;
    font-size: 12.5px;
    line-height: 1.35;
    box-shadow: 6px 0 12px -8px rgb(32 28 23 / 0.25);
  }
  .hx-compare-table thead th span { font-size: 10px; }
  .hx-cmp-y { width: 20px; height: 20px; font-size: 11px; }
}

@media (max-width: 640px) {
  /* Type scale: keep headings strong but wrappable on small phones */
  .hx-hero h1 { font-size: clamp(2.15rem, 9.5vw, 2.75rem); }
  .hx-h2 { font-size: clamp(1.7rem, 7.5vw, 2.2rem); }
  .hx-sub { font-size: 1.0625rem; }

  /* Header: drop the byline for space */
  .hx-brand-name small { display: none; }

  /* Hero base rhythm (refined further in mobile hero redesign below) */
  .hx-hero { padding-top: 28px; }
  .hx-hero-grid { gap: var(--space-6); }
  .hx-hero-sub { margin-bottom: var(--space-5); }

  /* Section rhythm on phones */
  .hx-section { padding-block: 56px; }
  .hx-head { margin-bottom: var(--space-6); }

  /* Cards: lighter padding so content leads */
  .hx-card { padding: 22px; border-radius: var(--radius-m); }
  .hx-card-media { margin-bottom: -22px; }
  .hx-card h3 { font-size: 1.25rem; }

  /* Journey chapters: tighter blocks */
  .hx-journey-chapter { padding-block: 40px; }
  .hx-journey-chapter h3 { font-size: 1.25rem; }

  /* Why cards + license bar */
  .hx-why-card { padding: 22px; }
  .hx-license-bar { padding: var(--space-4) var(--space-5); text-align: left; }

  /* Plans: compact cards */
  .hx-plan { padding: 24px; }
  .hx-plan-price { font-size: 2.4rem; }

  /* Dev band divider spacing */
  .hx-devband { gap: var(--space-6); }

  /* Setup dialog steps */
  .hx-setup-dialog { padding: 22px; }

  /* FAQ tap targets and text */
  .hx-acc-btn { padding: 18px 2px; gap: 10px; }
  .hx-acc-num { width: 22px; }
  .hx-acc-body-inner { padding-left: 32px; padding-right: 2px; }

  /* Final CTA panel */
  .hx-final-panel { padding: 26px 22px 0; }
  .hx-final-media { margin: var(--space-6) -6px -48px; }

  /* Footer bottom stacks */
  .hx-footer-bottom { flex-direction: column; align-items: flex-start; gap: var(--space-3); }
}

@media (max-width: 360px) {
  .hx-hero h1 { font-size: 2rem; }
  .hx-launch-badge,
  .hx-pill { padding: 6px 12px; font-size: 12px; }
  .hx-btn { padding-left: 18px; }
  .hx-brand-name { display: none; }
  .hx-header-bar { gap: var(--space-4); }
}


/* --------------------------------------------------------------------------
   21. Mobile calm pass: centered, airy, decluttered phones.
   -------------------------------------------------------------------------- */
@media (max-width: 640px) {
  /* Generous rhythm: sections breathe again */
  .hx-section { padding-block: 76px; }
  .hx-head { margin-bottom: var(--space-7); }
  .hx-head .hx-pill,
  .hx-head .hx-label { margin-bottom: var(--space-4); }
  .hx-sub { line-height: 1.7; }

  .hx-btn-row { gap: var(--space-3); }
  .hx-marquee { padding: 14px 0; }

  /* Bento: one idea per screen, centered, secondary lists hidden */
  .hx-bento { gap: var(--space-5); }
  .hx-card { padding: 28px 24px; text-align: center; }
  .hx-card-kicker { margin-bottom: var(--space-3); }
  .hx-card h3 { margin-bottom: var(--space-3); }
  .hx-card > p { margin: 0 auto var(--space-5); max-width: 30rem; }
  .hx-card .hx-card-list { display: none; }
  .hx-card-media { margin-bottom: -28px; border-radius: var(--radius-s) var(--radius-s) 0 0; }
  .hx-bento-cta { margin-top: var(--space-7); }

  /* Journey: centered chapters with clear separation */
  .hx-journey-chapter { padding-block: 56px; text-align: center; }
  .hx-journey-kicker { margin-bottom: var(--space-4); }
  .hx-journey-chapter h3 { margin-bottom: var(--space-4); }
  .hx-journey-chapter > p { margin: 0 auto; max-width: 32rem; }
  .hx-journey-chapter .hx-card-list {
    display: inline-block;
    text-align: left;
    margin-top: var(--space-5);
  }
  .hx-journey-inline { margin-top: var(--space-6); }
  .hx-mini-flow { gap: var(--space-4); margin-top: var(--space-6); text-align: left; max-width: 22rem; margin-inline: auto; }

  /* Why: centered cards, roomy grid */
  .hx-why-grid { gap: var(--space-4); }
  .hx-why-card { padding: 28px 24px; text-align: center; }
  .hx-why-card .hx-why-num { margin-inline: auto; }
  .hx-why-card p { max-width: 28rem; margin-inline: auto; }
  .hx-license-bar {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--space-4);
    padding: var(--space-5);
  }

  /* Theme: caption + copy already centered; add air */
  .hx-themeworld-copy { margin-top: var(--space-7); }
  .hx-themeworld-actions { margin-top: var(--space-6); gap: var(--space-3); }

  /* Dev band: centered story, left changelog */
  .hx-devband { gap: var(--space-7); }
  .hx-devband-founder { text-align: center; }
  .hx-devband-founder-head { flex-direction: column; text-align: center; gap: var(--space-3); margin-bottom: var(--space-4); }
  .hx-devband-news { text-align: center; }
  .hx-devband-news .hx-changelog { text-align: left; }
  .hx-devband-news .hx-btn,
  .hx-updates-card .hx-btn { align-self: center; }

  /* Pricing: centered card heads, left lists, roomy stack */
  .hx-plans { gap: var(--space-5); }
  .hx-plan { padding: 28px 24px; text-align: center; }
  .hx-plan-tab { align-self: center; }
  .hx-plan-for { max-width: 26rem; margin-inline: auto; margin-bottom: var(--space-5); }
  .hx-plan .hx-card-list { text-align: left; }
  .hx-pricing-foot { margin-top: var(--space-7); }

  /* Setup strip: centered, calm */
  .hx-setup-strip { padding: var(--space-6) var(--space-5); gap: var(--space-5); }

  /* Compare: keep the hint close, table roomy enough to scan */
  .hx-compare-hint { margin-bottom: var(--space-4); }

  /* Final CTA: centered with air */
  .hx-final-panel { text-align: center; padding: 40px 24px 0; }
  .hx-final-panel .hx-btn-row { justify-content: center; }
  .hx-final-panel .hx-pill { margin-inline: auto; }
  .hx-final-media { margin: var(--space-7) -4px -48px; }

  /* FAQ: air above the accordion */
  .hx-faq-band { padding-top: 76px; }
  .hx-faq-flat .hx-head { margin-bottom: var(--space-7); }

  /* Footer: centered columns */
  .hx-footer-grid { text-align: center; gap: var(--space-7); }
  .hx-footer-brand .hx-brand { justify-content: center; }
  .hx-footer-brand p { margin-inline: auto; }
  .hx-footer-bottom { align-items: center; text-align: center; }
  .hx-footer-legal { justify-content: center; }
}


/* --------------------------------------------------------------------------
   22. Mobile hero: centered copy over a blurred dashboard background.
   Desktop stays the asymmetric product composition.
   -------------------------------------------------------------------------- */
@media (max-width: 640px) {
  .hx-hero {
    position: relative;
    isolation: isolate;
    overflow: clip;
    gap: 0;
    min-height: calc(100svh - var(--header-h));
    padding: 28px 0 0;
    justify-content: space-between;
    background: var(--paper);
  }

  /* Drop pills + founder line on phones */
  .hx-hero-badges,
  .hx-hero-founder { display: none; }

  .hx-hero-grid {
    position: relative;
    z-index: 1;
    width: 100%;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0;
    row-gap: 0;
    padding-block: var(--space-8);
  }

  .hx-hero-copy {
    position: relative;
    z-index: 2;
    width: min(var(--container), 22.5rem);
    margin-inline: auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0;
  }

  .hx-hero h1 {
    max-width: 11.5ch;
    margin-inline: auto;
    margin-bottom: var(--space-4);
    font-size: clamp(2.15rem, 9vw, 2.65rem);
    line-height: 1.04;
    letter-spacing: -0.032em;
    text-wrap: balance;
  }

  .hx-hero-sub {
    max-width: 22rem;
    margin-inline: auto;
    margin-bottom: var(--space-6);
    font-size: 1.0625rem;
    line-height: 1.55;
  }

  .hx-hero-copy .hx-btn-row {
    width: 100%;
    margin-bottom: 0;
    gap: 10px;
    justify-content: center;
  }

  /*
   * Dashboard as blurred background overlay behind the copy.
   * Extra inset + scale hides the blur fringe at the edges.
   */
  .hx-stage {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: auto;
    margin: 0;
    padding: 0;
    pointer-events: none;
    grid-column: auto;
    grid-row: auto;
  }
  .hx-stage-decor,
  .hx-float { display: none; }

  .hx-stage-main {
    position: absolute;
    inset: -20px;
    aspect-ratio: auto;
    border: none;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    overflow: hidden;
  }
  .hx-stage-main img {
    width: 100%;
    max-width: none;
    height: 100%;
    object-fit: cover;
    object-position: 26% 10%;
    filter: blur(8px) saturate(1.02);
    transform: scale(1.08);
    opacity: 0.4;
  }

  /* Soft paper veil: dashboard stays recognizable, type stays readable */
  .hx-stage::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
      linear-gradient(180deg, color-mix(in srgb, var(--paper) 58%, transparent) 0%, color-mix(in srgb, var(--paper) 64%, transparent) 40%, color-mix(in srgb, var(--paper) 80%, transparent) 100%),
      radial-gradient(130% 75% at 50% 35%, color-mix(in srgb, var(--paper) 32%, transparent) 0%, color-mix(in srgb, var(--paper) 72%, transparent) 78%);
  }

  .hx-hero h1,
  .hx-hero-sub {
    color: var(--ink);
  }

  /* Don't scale-reveal a full-bleed background */
  html.hx-motion .hx-hero .hx-stage[data-hx] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hx-hero-marquee {
    position: relative;
    z-index: 1;
    margin-top: 0;
  }
  .hx-marquee {
    padding: 12px 0;
    background: color-mix(in srgb, var(--paper-raised) 92%, transparent);
  }
}

@media (max-width: 360px) {
  .hx-hero h1 { font-size: 2rem; max-width: 12ch; }
  .hx-hero-sub { font-size: 1rem; }
  .hx-hero-copy { width: min(var(--container), 100%); }
}
