/* =====================================================================
   Home (index.html + en/index.html) · sales landing
   Loaded after styles.flow.css. Everything is prefixed `h-`.
   Motion: transform/opacity only; home.js adds .fx-on (never with
   prefers-reduced-motion) and content is never hidden without it.
   ===================================================================== */

.home {
  --h-radius: 28px;
  --h-card: var(--surface);
  --h-shadow: 0 1px 2px rgba(11, 31, 77, 0.04), 0 18px 50px rgba(20, 64, 122, 0.09);
  --h-shadow-lg: 0 2px 6px rgba(11, 31, 77, 0.05), 0 40px 90px rgba(20, 64, 122, 0.16);
  --h-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --h-green: #2f6b50;
  --h-mint: #7fd4a4;
}
[data-theme="dark"] .home {
  --h-shadow: 0 1px 2px rgba(0, 0, 0, 0.2), 0 18px 50px rgba(0, 0, 0, 0.28);
  --h-shadow-lg: 0 2px 6px rgba(0, 0, 0, 0.25), 0 40px 90px rgba(0, 0, 0, 0.4);
}

/* ---------- Shared ---------- */
.h-section {
  padding: 112px 0;
}
.h-title {
  font-size: clamp(34px, 4.6vw, 60px);
  letter-spacing: -0.05em;
  line-height: 1.04;
  text-align: center;
  max-width: 16ch;
  margin-inline: auto;
}
.h-head {
  text-align: center;
  margin-bottom: 48px;
}
.h-lede {
  margin-top: 14px;
  font-size: 19px;
  color: var(--muted);
}
.h-kicker {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.btn-lg {
  min-height: 56px;
  padding: 14px 26px;
  font-size: 16px;
  border-radius: 16px;
}
.h-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.h-center-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 24px;
  margin-top: 44px;
}
.h-center-actions .text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

/* Crops of real screenshots: the <img> is scaled (--w) and shifted (--x/--y, % of itself). */
.h-crop {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border-radius: 18px;
  background: var(--soft);
  border: 1px solid var(--line);
}
.h-crop > img {
  position: absolute;
  top: 0;
  left: 0;
  max-width: none;
  width: var(--w, 100%);
  height: auto;
  transform: translate(var(--x, 0), var(--y, 0));
  transform-origin: 0 0;
}
.crop-brand { --w: 222%; --x: -37.5%; --y: -35.6%; }
.crop-phone-design,
.crop-design { --w: 109%; --x: -4.1%; --y: -13%; }
.crop-approve { --w: 267%; --x: -42.5%; --y: -46%; }
.crop-ai { --w: 333%; --x: -70%; --y: -22%; }
.crop-cal { --w: 172%; --x: -19.4%; --y: -30%; }
.crop-ads { --w: 172%; --x: -19.4%; --y: -17%; }
.crop-bio { --w: 100%; --x: 0%; --y: -6%; }

/* ---------- 1 · Hero ---------- */
.h-hero {
  position: relative;
  overflow: clip;
  padding: 56px 0 88px;
  background:
    radial-gradient(60% 55% at 85% 20%, rgba(0, 217, 233, 0.16), transparent 70%),
    radial-gradient(50% 60% at 60% 70%, rgba(0, 100, 255, 0.12), transparent 70%),
    linear-gradient(180deg, var(--bg), var(--bg));
}
[data-theme="dark"] .h-hero {
  background:
    radial-gradient(60% 55% at 85% 20%, rgba(0, 217, 233, 0.12), transparent 70%),
    radial-gradient(50% 60% at 60% 70%, rgba(0, 100, 255, 0.2), transparent 70%),
    var(--bg);
}
.h-hero-fx {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.h-hero-fx .m-dots {
  -webkit-mask-image: radial-gradient(ellipse 55% 60% at 72% 42%, #000 15%, transparent 72%);
  mask-image: radial-gradient(ellipse 55% 60% at 72% 42%, #000 15%, transparent 72%);
}
.h-hero > .container {
  position: relative;
}
.h-hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}
.h-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--tint);
  color: var(--link);
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 22px;
}
.h-pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--cyan) 28%, transparent);
  animation: h-pulse 2.4s ease-in-out infinite;
}
.h-hero h1 {
  font-size: clamp(44px, 6.4vw, 88px);
  line-height: 0.98;
  letter-spacing: -0.065em;
  max-width: 11ch;
}
.h-hero h1 .gradient-text {
  display: inline-block;
  padding-bottom: 0.08em;
}
.h-sub {
  margin-top: 24px;
  font-size: clamp(19px, 1.7vw, 23px);
  line-height: 1.45;
  color: var(--muted);
  max-width: 30ch;
}
.h-hero .h-actions {
  margin-top: 34px;
}
.h-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  font-size: 15px;
  font-weight: 700;
  color: var(--muted);
}
.h-note .icon {
  width: 18px;
  height: 18px;
  color: var(--ok-text);
}
.h-networks {
  list-style: none;
  padding: 0;
  margin: 26px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.h-networks li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 6px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 14px;
  font-weight: 700;
}
.h-networks .platform {
  width: 24px;
  height: 24px;
  border-radius: 999px;
}

/* Phone loop */
.h-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.h-glow {
  position: absolute;
  inset: 8% 6% 20%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0, 100, 255, 0.28), rgba(0, 217, 233, 0.12) 60%, transparent);
  filter: blur(20px);
  z-index: 0;
}
.h-device {
  position: relative;
  z-index: 1;
}
.h-phone {
  position: relative;
  width: 320px;
  aspect-ratio: 390 / 844;
  padding: 10px;
  border-radius: 48px;
  background: linear-gradient(160deg, #1c2c4a, #07101f);
  box-shadow: var(--h-shadow-lg), inset 0 0 0 1.5px rgba(255, 255, 255, 0.12);
}
.h-phone.m-beam {
  --m-beam-inset: -1px;
  --m-beam-width: 2px;
  --m-beam-speed: 7s;
}
.h-phone::before {
  content: "";
  position: absolute;
  top: 20px;
  left: 50%;
  width: 78px;
  height: 20px;
  margin-left: -39px;
  border-radius: 999px;
  background: #07101f;
  z-index: 3;
}
.h-screens {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 38px;
  overflow: hidden;
  background: #fff;
}
/* Status-bar strip so the camera pill never covers the app's top bar. */
.h-screens::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 34px;
  background: #fff;
  z-index: 2;
}
.h-scene {
  position: absolute;
  inset: 34px 0 0;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.6s var(--h-ease), transform 0.9s var(--h-ease);
}
.h-scene.is-active {
  opacity: 1;
  transform: none;
}
.h-scene img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

/* Floating cards around the phone (decorative, aria-hidden) */
.h-float {
  position: absolute;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 16px;
  border-radius: 16px;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line);
  box-shadow: var(--h-shadow);
  font-weight: 800;
  font-size: 15px;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(8px) scale(0.96);
  transition: opacity 0.45s var(--h-ease), transform 0.45s var(--h-ease);
  pointer-events: none;
}
.h-float .icon {
  width: 20px;
  height: 20px;
  color: var(--link);
}
[data-step="0"] .h-float-idea,
[data-step="1"] .h-float-design,
[data-step="2"] .h-float-cal,
[data-step="3"] .h-float-ok {
  opacity: 1;
  transform: none;
  transition-delay: 0.25s;
}
.h-float-idea {
  top: 21%;
  left: -118px;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  min-width: 210px;
}
.h-float-k {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--link);
}
.h-float-k .icon {
  width: 16px;
  height: 16px;
}
.h-type {
  font-family: var(--head);
  font-size: 18px;
  letter-spacing: -0.02em;
  border-right: 2px solid var(--blue);
  padding-right: 3px;
}
[data-step="0"] .h-type {
  animation: h-type 1.4s steps(18, end) 0.35s both, h-caret 0.8s step-end infinite;
}
.h-float-design {
  top: 66%;
  right: -104px;
}
.h-float-design i {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--h-green);
  box-shadow: 0 0 0 2px var(--surface);
}
.h-float-design i:nth-of-type(2) {
  background: var(--h-mint);
  margin-left: -12px;
}
.h-float-design i:nth-of-type(3) {
  background: #b98d66;
  margin-left: -12px;
}
.h-float-cal {
  bottom: 22%;
  left: -96px;
}
.h-float-ok {
  bottom: 16%;
  right: -70px;
  background: #0a7a50;
  border-color: #0a7a50;
  color: #fff;
  font-size: 17px;
  padding: 13px 20px;
}
.h-float-ok .icon {
  color: #fff;
  width: 22px;
  height: 22px;
}
[data-step="3"] .h-float-ok {
  animation: h-pop 0.6s var(--h-ease) 0.2s both;
}

/* Step buttons under the phone */
.h-loop-ui {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 26px;
}
.h-steps {
  list-style: none;
  margin: 0;
  padding: 4px;
  display: flex;
  gap: 2px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--h-shadow);
}
.h-step {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 8px 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}
.h-step-n {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--soft);
  font-size: 12px;
}
.h-step[aria-pressed="true"] {
  background: var(--tint);
  color: var(--link);
}
.h-step[aria-pressed="true"] .h-step-n {
  background: var(--blue);
  color: #fff;
}
.h-step-bar {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 5px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
}
.is-playing .h-step[aria-pressed="true"] .h-step-bar {
  animation: h-bar var(--h-dur, 3.2s) linear both;
}
.h-loop-toggle {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  padding: 0;
}
.h-loop-toggle .icon-play,
.h-loop-toggle[aria-pressed="true"] .icon-pause {
  display: none;
}
.h-loop-toggle[aria-pressed="true"] .icon-play {
  display: inline-block;
}
html:not(.js) .h-loop-toggle {
  display: none;
}
.h-caption {
  margin-top: 14px;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}

/* Networks marquee at the foot of the hero */
.h-nets {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 20px;
  margin-top: 64px;
}
.h-nets-label {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.h-nets-note {
  grid-column: 1 / -1;
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}
.h-nets .m-marquee {
  --m-gap: 40px;
  --m-speed: 30s;
}
.h-nets .m-logo {
  border: 0;
  background: none;
  padding-inline: 0;
  font-family: var(--head);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--muted);
}
.h-nets .m-logo svg {
  width: 24px;
  height: 24px;
}

/* ---------- 2 · How ---------- */
.h-how {
  background: var(--soft);
}
.h-how-list {
  list-style: none;
  margin: 56px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  counter-reset: none;
  position: relative;
}
.h-how-beam {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 48px;
  padding-inline: calc((100% - 56px) / 6 - 22px);
}
.h-how-beam .m-line {
  flex: 1;
}
.h-how-node {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), #00b8d9);
  color: #fff;
  font-family: var(--head);
  font-weight: 700;
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--blue) 14%, transparent), 0 10px 24px rgba(0, 100, 255, 0.25);
}
.h-how-beam + .h-how-list {
  margin-top: 28px;
}
.h-how-list::before {
  display: none;
  content: "";
  position: absolute;
  top: 50%;
  left: 12%;
  right: 12%;
  height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  opacity: 0.35;
  transform-origin: left;
}
.h-how-step {
  position: relative;
  padding: 14px 14px 26px;
  border-radius: var(--h-radius);
  background: var(--h-card);
  border: 1px solid var(--line);
  box-shadow: var(--h-shadow);
}
.h-how-text {
  position: relative;
  padding: 22px 10px 0;
}
.h-how-icon {
  display: inline-grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--blue), #00b8d9);
  color: #fff;
  box-shadow: 0 10px 24px rgba(0, 100, 255, 0.25);
}
.h-how-icon .icon {
  width: 28px;
  height: 28px;
}
.h-how-n {
  position: absolute;
  top: 12px;
  right: 10px;
  font-family: var(--head);
  font-weight: 700;
  font-size: 64px;
  line-height: 1;
  letter-spacing: -0.06em;
  color: var(--tint);
}
.h-how-step h3 {
  margin-top: 18px;
  font-size: 24px;
}
.h-how-step p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 16px;
}
.h-stamp {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  background: #0a7a50;
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  box-shadow: 0 10px 24px rgba(10, 122, 80, 0.35);
}
.h-stamp .icon {
  width: 18px;
  height: 18px;
}

/* ---------- 3 · Goals ---------- */
.h-goal-box {
  max-width: 1040px;
  margin-inline: auto;
  border-radius: 36px;
  padding: 14px;
  background: var(--h-card);
  border: 1px solid var(--line);
  box-shadow: var(--h-shadow-lg);
}
.h-goal-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 6px;
  border-radius: 24px;
  background: var(--soft);
}
.h-goal-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 112px;
  padding: 16px 14px;
  border: 0;
  border-radius: 18px;
  background: transparent;
  color: var(--muted);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.2;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.h-goal-tab:hover {
  color: var(--text);
}
.h-goal-tab .icon {
  width: 26px;
  height: 26px;
  padding: 7px;
  box-sizing: content-box;
  border-radius: 12px;
  background: var(--surface);
  color: var(--link);
  transition: background 0.2s, color 0.2s;
}
.h-goal-tab[aria-selected="true"] .icon {
  background: linear-gradient(135deg, var(--blue), #00b8d9);
  color: #fff;
}
.h-goal-tab::after {
  content: "";
  position: absolute;
  inset: -1px;
  padding: 1.5px;
  border-radius: inherit;
  background: conic-gradient(from var(--m-angle), transparent 0 62%, var(--cyan) 78%, #0064ff 88%, transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: 0;
  pointer-events: none;
}
.h-goal-tab[aria-selected="true"]::after {
  opacity: 1;
  animation: m-spin 5s linear infinite;
}
.h-goal-tab[aria-selected="true"] {
  background: var(--surface);
  color: var(--link);
  box-shadow: 0 6px 18px rgba(20, 64, 122, 0.12);
}
[data-theme="dark"] .h-goal-tab[aria-selected="true"] {
  background: var(--tint);
}
.h-goal-panel {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 56px;
  padding: 40px 56px 32px;
  border-radius: 24px;
}
.h-goal-panel:not([hidden]) {
  animation: h-in 0.5s var(--h-ease) both;
}
.h-mini-phone {
  width: 220px;
  aspect-ratio: 390 / 600;
  padding: 7px;
  border-radius: 34px;
  background: linear-gradient(160deg, #1c2c4a, #07101f);
  box-shadow: var(--h-shadow-lg);
  overflow: hidden;
}
.h-mini-phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  border-radius: 28px;
}
.h-goal-line {
  font-family: var(--head);
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

/* ---------- 4 · Before / after ---------- */
.h-ba {
  --pos: 50%;
  position: relative;
  max-width: 1040px;
  margin-inline: auto;
  aspect-ratio: 16 / 9;
  border-radius: 36px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--h-shadow-lg);
  user-select: none;
  touch-action: pan-y;
}
.h-ba-layer {
  position: absolute;
  inset: 0;
  padding: 26px 32px;
}
.h-ba-before {
  background: repeating-linear-gradient(-45deg, transparent 0 14px, rgba(82, 98, 125, 0.05) 14px 15px), #eef1f5;
  color: #3f4c61;
}
[data-theme="dark"] .h-ba-before {
  background: repeating-linear-gradient(-45deg, transparent 0 14px, rgba(255, 255, 255, 0.03) 14px 15px), #0d1a2c;
  color: var(--muted);
}
.h-ba-after {
  background:
    radial-gradient(60% 70% at 80% 10%, rgba(0, 217, 233, 0.18), transparent 70%),
    radial-gradient(60% 70% at 10% 90%, rgba(0, 100, 255, 0.14), transparent 70%),
    var(--surface);
  clip-path: inset(0 0 0 var(--pos));
}
.h-ba-label {
  position: absolute;
  top: 22px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  z-index: 2;
}
.h-ba-before .h-ba-label {
  left: 24px;
  background: #fff;
  color: #3f4c61;
}
[data-theme="dark"] .h-ba-before .h-ba-label {
  background: var(--soft);
  color: var(--text);
}
.h-ba-after .h-ba-label {
  right: 24px;
  background: var(--blue);
  color: #fff;
}
.h-ba-body {
  position: relative;
  height: 100%;
  display: grid;
  place-items: center;
}
.h-feed {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  width: min(420px, 58%);
}
.h-feed li,
.h-feed > span {
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
}
.h-feed img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.h-feed-after > span {
  box-shadow: 0 8px 20px rgba(11, 31, 77, 0.14);
}
.h-feed-before .is-empty {
  border: 2px dashed #b9c3d1;
}
[data-theme="dark"] .h-feed-before .is-empty {
  border-color: #33485f;
}
.h-feed-before .is-q {
  display: grid;
  place-items: center;
  background: #dfe4eb;
  color: #7a879a;
  font-family: var(--head);
  font-size: 40px;
  font-weight: 700;
}
[data-theme="dark"] .h-feed-before .is-q {
  background: #16263b;
  color: #6f86a1;
}
.h-feed-before .is-messy img {
  filter: grayscale(1) blur(1.5px) contrast(0.8);
  transform: rotate(-4deg) scale(1.1);
}
.h-sticky {
  position: absolute;
  top: 14%;
  left: 4%;
  padding: 16px 18px;
  max-width: 170px;
  background: #ffe68a;
  color: #4a3b00;
  font-family: var(--head);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.2;
  transform: rotate(-5deg);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
}
.h-ba-foot {
  position: absolute;
  bottom: 4px;
  left: 0;
  font-size: 14px;
  font-weight: 700;
}
.h-ba-chips {
  list-style: none;
  margin: 0;
  padding: 0;
  position: absolute;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}
.h-ba-chips li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--h-shadow);
  font-size: 14px;
  font-weight: 800;
}
.h-ba-chips .icon {
  width: 16px;
  height: 16px;
  color: var(--ok-text);
}
/* Full-width layer moved with a transform (never `left`), so dragging causes no layout shift. */
.h-ba-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  transform: translateX(calc(var(--pos) - 50%));
  z-index: 3;
  pointer-events: none;
}
.h-ba-handle::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  margin-left: -1.5px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(11, 31, 77, 0.12);
}
.h-ba-handle span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 52px;
  height: 52px;
  margin: -26px 0 0 -26px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 8px 24px rgba(11, 31, 77, 0.25);
}
.h-ba-handle span::before,
.h-ba-handle span::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 0;
  height: 0;
  margin-top: -6px;
  border: 6px solid transparent;
}
.h-ba-handle span::before {
  left: 9px;
  border-right: 8px solid var(--blue);
}
.h-ba-handle span::after {
  right: 9px;
  border-left: 8px solid var(--blue);
}
.h-ba:has(.h-ba-range:focus-visible) .h-ba-handle span {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
.h-ba-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  z-index: 4;
}

/* ---------- 5 · Features ---------- */
.h-feat-grid {
  list-style: none;
  margin: 56px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.h-feat {
  display: flex;
}
.h-feat-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 12px 12px 26px;
  border-radius: var(--h-radius);
  background: var(--h-card);
  border: 1px solid var(--line);
  box-shadow: var(--h-shadow);
}
.h-feat-card:hover {
  box-shadow: var(--h-shadow-lg);
}
.h-feat-card .h-crop {
  flex: 1;
  min-height: 0;
}
/* Bento (desktop): 6 columns, the AI card wide, the design card tall. */
@media (min-width: 961px) {
  .h-bento {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    grid-auto-flow: dense;
  }
  .h-bento .h-feat {
    grid-column: span 2;
  }
  .h-bento .is-wide {
    grid-column: span 4;
  }
  .h-bento .is-wide .h-crop {
    aspect-ratio: 16 / 7.4;
  }
  .h-bento .is-tall {
    grid-row: span 2;
  }
  .h-bento .is-tall .h-crop {
    aspect-ratio: auto;
  }
  .h-bento .is-half {
    grid-column: span 3;
  }
  .h-bento .is-half .h-crop {
    aspect-ratio: 16 / 8;
  }
  .h-bento .is-wide .crop-ai {
    --w: 128%;
    --x: -17%;
    --y: -7%;
  }
  .h-bento .is-half .crop-bio {
    --w: 46%;
    --x: 58.7%;
    --y: -2%;
    background: radial-gradient(60% 80% at 50% 30%, rgba(47, 107, 80, 0.16), transparent 70%), var(--soft);
  }
}
.h-feat .h-crop > img {
  transition: scale 0.6s var(--h-ease);
}
.h-feat-card:hover .h-crop > img {
  scale: 1.04;
}
.h-feat h3 {
  margin: 22px 12px 0;
  font-size: 22px;
}
.h-feat p {
  margin: 6px 12px 0;
  color: var(--muted);
}

/* ---------- 6 · Agency ---------- */
.h-agency {
  background: var(--soft);
}
.h-agency .h-kicker {
  color: var(--link);
}
.h-agency-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.h-agency-card {
  padding: 30px 28px;
  border-radius: var(--h-radius);
  background: var(--h-card);
  border: 1px solid var(--line);
  box-shadow: var(--h-shadow);
}
.h-agency-icon {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--tint);
  color: var(--link);
}
.h-agency-icon .icon {
  width: 26px;
  height: 26px;
}
.h-agency-card h3 {
  margin-top: 20px;
}
.h-agency-card p {
  margin-top: 6px;
  color: var(--muted);
}

/* ---------- 7 · Pricing ---------- */
.h-tag {
  display: inline-flex;
  margin-top: 16px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--warn-bg);
  color: var(--warn-text);
  font-size: 14px;
  font-weight: 800;
}
.h-quiz {
  max-width: 1040px;
  margin: 0 auto 28px;
  display: grid;
  grid-template-columns: auto 1fr 1fr;
  align-items: start;
  gap: 16px 28px;
  padding: 22px 26px;
  border-radius: 24px;
  background: var(--soft);
  border: 1px solid var(--line);
}
html:not(.js) .h-quiz {
  display: none;
}
.h-quiz-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--head);
  font-weight: 600;
  font-size: 19px;
  letter-spacing: -0.02em;
  padding-top: 6px;
}
.h-quiz-title .icon {
  color: var(--link);
}
.h-quiz fieldset {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}
.h-quiz legend {
  padding: 0;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 800;
  color: var(--muted);
}
.h-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.h-chip {
  position: relative;
  cursor: pointer;
}
.h-chip input {
  position: absolute;
  opacity: 0;
  inset: 0;
  margin: 0;
  cursor: pointer;
}
.h-chip span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 15px;
  font-weight: 700;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.h-chip input:checked + span {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}
.h-chip input:focus-visible + span {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}
.h-quiz-out {
  grid-column: 2 / -1;
  font-weight: 800;
  color: var(--link);
  min-height: 1.6em;
}
.h-plans {
  max-width: 1040px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}
.h-plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 30px 28px 28px;
  border-radius: var(--h-radius);
  background: var(--h-card);
  border: 1px solid var(--line);
  box-shadow: var(--h-shadow);
  transition: transform 0.3s var(--h-ease), box-shadow 0.3s var(--h-ease), border-color 0.3s;
}
.h-plan.is-featured {
  border: 2px solid var(--blue);
  box-shadow: var(--h-shadow-lg);
  --m-beam-inset: -2px;
  --m-beam-width: 2px;
}
.h-plan-badge {
  z-index: 3;
}
.h-plan.is-match {
  border-color: var(--cyan);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--cyan) 35%, transparent), var(--h-shadow-lg);
  transform: translateY(-6px);
}
.h-plan-badge {
  position: absolute;
  top: -14px;
  left: 28px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}
.h-plan h3 {
  font-size: 24px;
}
.h-plan-who {
  color: var(--muted);
  font-size: 15px;
}
.h-plan-price {
  margin: 14px 0 18px;
  font-family: var(--head);
  font-size: 52px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.05em;
}
.h-plan-price sup {
  font-size: 24px;
  vertical-align: 18px;
  margin-right: 2px;
}
.h-plan-price small {
  margin-left: 6px;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--muted);
}
.h-plan-list {
  list-style: none;
  margin: 0 0 26px;
  padding: 0;
  display: grid;
  gap: 10px;
  flex: 1;
}
.h-plan-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}
.h-plan-list .icon {
  width: 20px;
  height: 20px;
  color: var(--ok-text);
}

/* ---------- 8 · FAQ ---------- */
.h-faq {
  background: var(--soft);
}
.h-faq .faq {
  margin-top: 44px;
}

/* ---------- 9 · Final CTA ---------- */
.h-final {
  position: relative;
  overflow: clip;
  min-height: min(100svh, 760px);
  display: grid;
  place-items: center;
  padding: 96px 0;
  text-align: center;
  color: #fff;
  background:
    radial-gradient(50% 60% at 80% 20%, rgba(0, 217, 233, 0.45), transparent 70%),
    radial-gradient(60% 70% at 15% 85%, rgba(0, 60, 200, 0.6), transparent 70%),
    linear-gradient(140deg, #0052d6, #003a9e);
}
.h-final > .container {
  position: relative;
  z-index: 1;
}
.h-final .m-grid {
  -webkit-mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, #000 10%, transparent 75%);
  mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, #000 10%, transparent 75%);
}
.h-final .h-final-pause {
  position: absolute;
  right: 20px;
  bottom: 20px;
  z-index: 2;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}
.h-final h2 {
  font-size: clamp(38px, 6vw, 80px);
  line-height: 1;
  letter-spacing: -0.06em;
  max-width: 14ch;
  margin-inline: auto;
}
.h-final .h-actions {
  justify-content: center;
  margin-top: 40px;
}
.h-final .btn-ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
}
.h-final .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
}
.h-final-note {
  margin-top: 18px;
  font-weight: 700;
  color: #e3edff;
}

/* ---------- Scroll reveal (home.js adds .fx-on and .is-in) ---------- */
.fx-on [data-fx],
.fx-on .h-how-step {
  opacity: 0;
  transform: translateY(8px);
  filter: blur(8px);
  transition: opacity 0.7s var(--h-ease), transform 0.7s var(--h-ease), filter 0.7s var(--h-ease);
  transition-delay: calc(var(--i, 0) * 90ms);
}
.fx-on [data-fx].is-in,
.fx-on .is-in .h-how-step {
  opacity: 1;
  transform: none;
  filter: none;
}
/* The beam draws in, then its pulses start. */
.fx-on .h-how-beam .m-line {
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1s var(--h-ease) 0.3s;
}
.fx-on .h-how-beam.is-in .m-line {
  transform: none;
}
.fx-on .h-how .h-how-step {
  transition-delay: calc(var(--i, 0) * 260ms);
}
.fx-on .h-how-list::before {
  transform: scaleX(0);
  transition: transform 1.2s var(--h-ease) 0.2s;
}
.fx-on .is-in .h-how-list::before {
  transform: scaleX(1);
}
.fx-on .h-stamp {
  opacity: 0;
  transform: scale(0.6) rotate(-8deg);
}
.fx-on .is-in .h-stamp {
  animation: h-pop 0.6s var(--h-ease) 1.1s both;
}

/* ---------- Keyframes ---------- */
@keyframes h-pulse {
  50% {
    box-shadow: 0 0 0 7px color-mix(in srgb, var(--cyan) 10%, transparent);
  }
}
@keyframes h-type {
  from {
    clip-path: inset(0 100% 0 0);
  }
  to {
    clip-path: inset(0 0 0 0);
  }
}
@keyframes h-caret {
  50% {
    border-right-color: transparent;
  }
}
@keyframes h-pop {
  0% {
    opacity: 0;
    transform: scale(0.6) rotate(-8deg);
  }
  60% {
    opacity: 1;
    transform: scale(1.08) rotate(2deg);
  }
  100% {
    opacity: 1;
    transform: none;
  }
}
@keyframes h-bar {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}
@keyframes h-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .h-float-idea {
    left: -70px;
  }
  .h-float-design {
    right: -70px;
  }
  .h-float-cal {
    left: -60px;
  }
  .h-float-ok {
    right: -40px;
  }
}
@media (max-width: 960px) {
  .h-section {
    padding: 88px 0;
  }
  .h-hero {
    padding: 36px 0 72px;
  }
  .h-hero-grid {
    grid-template-columns: 1fr;
    gap: 56px;
  }
  .h-hero-copy {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .h-hero h1 {
    max-width: 12ch;
  }
  .h-sub {
    margin-inline: auto;
  }
  .h-hero .h-actions,
  .h-networks {
    justify-content: center;
  }
  .h-how-list,
  .h-agency-grid,
  .h-plans {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin-inline: auto;
  }
  .h-how-beam {
    display: none;
  }
  .h-how-beam + .h-how-list {
    margin-top: 56px;
  }
  .h-feat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .h-goal-tabs {
    grid-template-columns: repeat(2, 1fr);
  }
  .h-goal-tab {
    min-height: 96px;
  }
  .h-goal-panel {
    gap: 32px;
    padding: 32px 28px 24px;
  }
  .h-quiz {
    grid-template-columns: 1fr;
    max-width: 520px;
  }
  .h-quiz-out {
    grid-column: auto;
  }
  .h-plan.is-featured {
    order: -1;
  }
  .h-ba {
    aspect-ratio: 4 / 3;
  }
}
@media (max-width: 640px) {
  .h-section {
    padding: 72px 0;
  }
  .h-head {
    margin-bottom: 32px;
  }
  .h-lede {
    font-size: 17px;
  }
  .h-hero {
    padding: 20px 0 56px;
  }
  .h-pill {
    margin-bottom: 14px;
    font-size: 13px;
  }
  .h-hero h1 {
    font-size: clamp(38px, 11vw, 48px);
  }
  .h-sub {
    margin-top: 14px;
    font-size: 18px;
  }
  .h-hero .h-actions {
    margin-top: 22px;
    width: 100%;
    flex-direction: column;
  }
  .h-hero .h-actions .btn {
    width: 100%;
  }
  .h-note {
    margin-top: 12px;
    font-size: 14px;
  }
  .h-networks {
    margin-top: 16px;
  }
  .h-networks li {
    font-size: 13px;
  }
  .h-phone {
    width: 250px;
    border-radius: 42px;
  }
  .h-screens {
    border-radius: 33px;
  }
  .h-float {
    font-size: 14px;
    padding: 9px 13px;
  }
  .h-float-idea {
    top: 10%;
    left: -34px;
    min-width: 0;
  }
  .h-type {
    font-size: 16px;
  }
  .h-float-design {
    right: -30px;
  }
  .h-float-cal {
    left: -30px;
  }
  .h-float-ok {
    right: -24px;
  }
  .h-step {
    padding: 8px 10px;
    font-size: 13px;
  }
  .h-step-n {
    display: none;
  }
  .h-how-list {
    margin-top: 36px;
    gap: 18px;
  }
  .h-feat-grid {
    grid-template-columns: 1fr;
    margin-top: 36px;
    gap: 18px;
  }
  .h-goal-box {
    border-radius: 28px;
    padding: 8px;
  }
  .h-goal-tabs {
    gap: 4px;
    padding: 4px;
    border-radius: 20px;
  }
  .h-goal-tab {
    gap: 6px;
    min-height: 84px;
    padding: 10px 8px;
    font-size: 14px;
    border-radius: 16px;
  }
  .h-goal-tab .icon {
    width: 20px;
    height: 20px;
    padding: 6px;
  }
  .h-nets {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 12px;
    margin-top: 48px;
  }
  .h-nets .m-marquee {
    width: 100%;
  }
  .h-goal-panel {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 22px;
    padding: 24px 12px 20px;
  }
  .h-mini-phone {
    width: 180px;
  }
  .h-ba {
    aspect-ratio: 3 / 4;
    border-radius: 28px;
  }
  .h-ba-layer {
    padding: 18px 16px;
  }
  .h-ba-label {
    top: 16px;
    font-size: 13px;
  }
  .h-ba-before .h-ba-label {
    left: 14px;
  }
  .h-ba-after .h-ba-label {
    right: 14px;
  }
  .h-feed {
    width: 76%;
    gap: 6px;
  }
  .h-sticky {
    top: 12%;
    left: 2%;
    max-width: 140px;
    padding: 12px 14px;
    font-size: 15px;
  }
  .h-ba-foot {
    max-width: 46%;
    font-size: 13px;
    line-height: 1.35;
  }
  .h-ba-chips {
    max-width: 50%;
    gap: 6px;
  }
  .h-ba-chips li {
    font-size: 13px;
    padding: 6px 10px;
  }
  .h-quiz {
    padding: 20px 18px;
  }
  .h-plan-price {
    font-size: 46px;
  }
  .h-final {
    min-height: 0;
    padding: 96px 0 104px;
  }
  .h-final .h-actions {
    flex-direction: column;
  }
  .h-final .h-actions .btn {
    width: 100%;
  }
}
@media (max-width: 380px) {
  .h-hero h1 {
    font-size: 36px;
  }
  .h-step {
    padding: 8px 8px;
    font-size: 12.5px;
  }
  .h-goal-tab {
    font-size: 13px;
  }
}

/* ---------- Motion preferences: everything still and readable ---------- */
@media (prefers-reduced-motion: reduce) {
  .h-pill-dot,
  .h-type,
  .h-float-ok,
  .h-stamp,
  .h-goal-panel:not([hidden]) {
    animation: none !important;
  }
  .h-goal-tab[aria-selected="true"]::after {
    animation: none;
  }
  .h-scene,
  .h-float,
  .h-feat-card,
  .h-feat .h-crop > img {
    transition: none !important;
  }
  .h-feat-card:hover .h-crop > img {
    scale: none;
  }
  .h-type {
    border-right: 0;
  }
}

/* Reveal and hover/quiz states share `transform`: keep the state visible once revealed. */
.fx-on .h-plan.is-match.is-in,
.h-plan.is-match {
  transform: translateY(-6px);
}
@media (prefers-reduced-motion: reduce) {
  .h-plan.is-match {
    transform: none;
  }
}
