:root {
  --bg: #101211;
  --bg-deep: #090a0a;
  --surface: #191b1a;
  --surface-raised: #202221;
  --surface-soft: rgba(29, 31, 30, 0.76);
  --text: #f0efeb;
  --text-soft: #b7b4ad;
  --text-muted: #817e77;
  --line: rgba(226, 223, 214, 0.14);
  --line-strong: rgba(226, 223, 214, 0.28);
  --accent: #d9d6cf;
  --accent-rgb: 217, 214, 207;
  --accent-2: #9c988f;
  --accent-2-rgb: 156, 152, 143;
  --good: #73d6b2;
  --danger: #ff6f5d;
  --display: "Geist", "Helvetica Neue", sans-serif;
  --body: "Manrope", "Helvetica Neue", sans-serif;
  --max-page: 1240px;
  --header-height: 74px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: dark;
}

body[data-page="meemo"] {
  --bg: #15100d;
  --bg-deep: #0d0a08;
  --surface: #241a14;
  --surface-raised: #2d2018;
  --accent: #ff8a5b;
  --accent-rgb: 255, 138, 91;
  --accent-2: #ffbe7a;
  --accent-2-rgb: 255, 190, 122;
}

body[data-page="xpadmouse"] {
  --bg: #0a1018;
  --bg-deep: #060a10;
  --surface: #111b27;
  --surface-raised: #172435;
  --accent: #5aa9ff;
  --accent-rgb: 90, 169, 255;
  --accent-2: #8ac7ff;
  --accent-2-rgb: 138, 199, 255;
}

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

html {
  min-height: 100%;
  scroll-behavior: smooth;
  color-scheme: dark;
  background: var(--bg-deep);
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  transition: opacity 180ms ease, filter 180ms ease;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.08) 1px, transparent 0);
  background-size: 5px 5px;
  opacity: 0.035;
}

body[data-page="meemo"]::after,
body[data-page="xpadmouse"]::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background: radial-gradient(760px 520px at 88% 8%, rgba(var(--accent-rgb), 0.09), transparent 72%);
}

body.page-exit {
  opacity: 0;
  filter: blur(3px);
}

a {
  color: inherit;
  text-underline-offset: 0.2em;
}

img,
svg {
  display: block;
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
}

::selection {
  color: var(--bg-deep);
  background: var(--accent);
}

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 16px;
  z-index: 2000;
  padding: 10px 14px;
  color: var(--bg-deep);
  background: var(--text);
  border-radius: var(--radius-sm);
  font-weight: 800;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 180ms var(--ease-out);
}

.skip-link:focus-visible {
  transform: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg-deep) 90%, transparent);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
}

.header-inner {
  width: min(var(--max-page), calc(100% - 48px));
  min-height: var(--header-height);
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 24px;
}

.brand {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
}

.logo-badge {
  position: relative;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  border: 2px solid var(--text);
  border-radius: 50%;
}

.logo-badge::before,
.logo-badge::after {
  content: "";
  position: absolute;
  top: 12px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--text);
}

.logo-badge::before { left: 8px; }
.logo-badge::after { right: 8px; }

.logo-mouth {
  position: absolute;
  left: 50%;
  bottom: 8px;
  width: 10px;
  height: 3px;
  border-radius: 999px;
  background: var(--text);
  transform: translateX(-50%);
}

.brand-text {
  margin: 0;
  font-family: var(--display);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  white-space: nowrap;
}

.site-nav {
  justify-self: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-link {
  position: relative;
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  padding: 0 12px;
  color: var(--text-soft);
  border-radius: 6px;
  font-size: 0.91rem;
  font-weight: 650;
  text-decoration: none;
  transition: color 180ms ease, background 180ms ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  right: 12px;
  bottom: 3px;
  left: 12px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 240ms var(--ease-out);
}

.nav-link:hover,
.nav-link[aria-current="page"] {
  color: var(--text);
  background: rgba(255, 255, 255, 0.035);
}

.nav-link:hover::after,
.nav-link[aria-current="page"]::after {
  transform: scaleX(1);
}

.lang-switch {
  display: inline-flex;
  gap: 2px;
  padding-left: 16px;
  border-left: 1px solid var(--line);
}

.lang-btn {
  min-width: 34px;
  min-height: 34px;
  padding: 0;
  color: var(--text-muted);
  border: 0;
  border-radius: 6px;
  background: transparent;
  font-size: 0.74rem;
  font-weight: 800;
  cursor: pointer;
  transition: color 180ms ease, background 180ms ease;
}

.lang-btn:hover,
.lang-btn[aria-pressed="true"] {
  color: var(--text);
  background: rgba(var(--accent-rgb), 0.12);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: transparent;
  cursor: pointer;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  position: absolute;
  width: 18px;
  height: 1.5px;
  background: var(--text);
  transition: transform 220ms ease, opacity 220ms ease;
}

.nav-toggle-bars {
  position: relative;
  display: block;
  margin: 0 auto;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  left: 0;
}

.nav-toggle-bars::before { transform: translateY(-6px); }
.nav-toggle-bars::after { transform: translateY(6px); }

.menu-open .nav-toggle-bars { background: transparent; }
.menu-open .nav-toggle-bars::before { transform: rotate(45deg); }
.menu-open .nav-toggle-bars::after { transform: rotate(-45deg); }

.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 880;
  background: rgba(1, 5, 10, 0.72);
  backdrop-filter: blur(6px);
}

main,
.site-foot {
  width: min(var(--max-page), calc(100% - 48px));
  margin-inline: auto;
}

main {
  display: grid;
  gap: 0;
}

.panel,
.meemo-page-card {
  position: relative;
  padding: clamp(76px, 9vw, 136px) 0;
  border-top: 1px solid var(--line);
}

main > .panel:first-child,
.meemo-main > :first-child .meemo-page-card {
  border-top: 0;
}

.hero {
  min-height: calc(88svh - var(--header-height));
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.34fr);
  align-items: center;
  gap: clamp(48px, 7vw, 112px);
  padding-top: clamp(72px, 8vw, 120px);
  padding-bottom: clamp(72px, 8vw, 120px);
}

.xpad-hero {
  grid-template-columns: minmax(0, 1fr) minmax(420px, 0.82fr);
}

.xpad-hero-copy {
  position: relative;
  z-index: 1;
}

.xpad-hero-visual {
  min-width: 0;
  margin: 0;
  align-self: stretch;
  display: grid;
  place-items: center;
  align-content: center;
}

.xpad-hero-diagram {
  width: min(100%, 620px);
  overflow: visible;
}

.kicker,
.section-index,
.offer-kicker {
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.app-icon {
  width: 88px;
  height: 88px;
  margin-bottom: 28px;
  border-radius: 21px;
  object-fit: cover;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.24);
}

.hero h1,
.meemo-hero h1 {
  max-width: 850px;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(3.25rem, 6.3vw, 6.6rem);
  font-weight: 650;
  letter-spacing: -0.065em;
  line-height: 0.94;
  text-wrap: balance;
}

.xpad-hero h1 {
  font-size: clamp(3.4rem, 6vw, 6.7rem);
}

.lead,
.section-subtitle,
.meemo-section-heading > p:not(.kicker),
.offer-body {
  max-width: 680px;
  margin: 28px 0 0;
  color: var(--text-soft);
  font-size: clamp(1.02rem, 1.4vw, 1.24rem);
  line-height: 1.7;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 34px;
}

.btn {
  position: relative;
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 22px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  color: var(--text);
  background: transparent;
  box-shadow: none;
  font-size: 0.92rem;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  transition: transform 220ms var(--ease-out), border-color 220ms ease, background 220ms ease, color 220ms ease;
}

.btn::after {
  content: "→";
  font-size: 1.15em;
  transition: transform 220ms var(--ease-out);
}

.btn:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}

.btn:hover::after {
  transform: translateX(4px);
}

.btn-primary {
  color: var(--bg-deep);
  border-color: var(--accent);
  background: var(--accent);
}

.btn-primary:hover {
  color: var(--bg-deep);
  background: color-mix(in srgb, var(--accent) 88%, white);
}

.btn-secondary:hover {
  background: rgba(var(--accent-rgb), 0.08);
}

.helper {
  max-width: 720px;
  margin: 20px 0 0;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.helper a { color: var(--text-soft); }
.helper-strong { color: var(--text-soft); font-weight: 750; }

.hero-card {
  position: relative;
  width: 100%;
  padding: 28px 0 28px 30px;
  border: 0;
  border-left: 1px solid var(--line-strong);
  background: transparent;
}

.quiet-rule {
  display: block;
  width: 38px;
  height: 1px;
  margin-bottom: 24px;
  background: var(--text-soft);
  transform-origin: left;
  animation: quiet-rule-in 720ms 280ms var(--ease-out) both;
}

.hero-card-title {
  margin: 0;
  font-family: var(--display);
  font-size: 1.08rem;
  line-height: 1.2;
}

.hero-card p {
  margin: 8px 0 0;
  color: var(--text-soft);
  font-size: 0.9rem;
  line-height: 1.55;
}

.section-title,
.meemo-section-heading h2,
.meemo-beta-panel h2 {
  max-width: 850px;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.5rem, 5vw, 5.4rem);
  font-weight: 640;
  letter-spacing: -0.055em;
  line-height: 1;
  text-wrap: balance;
}

.section-subtitle {
  margin-top: 24px;
}

.grid-3,
.grid-4 {
  display: grid;
  gap: 18px;
  margin-top: 56px;
}

.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
  position: relative;
  min-width: 0;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(9, 23, 37, 0.58);
  transition: transform 260ms var(--ease-out), border-color 240ms ease, background 240ms ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(var(--accent-rgb), 0.45);
  background: rgba(12, 29, 46, 0.78);
}

.card h2,
.card h3 {
  margin: 18px 0 0;
  font-family: var(--display);
  font-size: 1.22rem;
  letter-spacing: -0.025em;
  line-height: 1.25;
}

.card p {
  margin: 10px 0 0;
  color: var(--text-soft);
  font-size: 0.94rem;
  line-height: 1.65;
}

.scene {
  width: 100%;
  min-height: 100px;
  color: var(--accent);
}

.product-guide,
.station-frame,
.station-detail {
  fill: none;
  stroke: var(--line-strong);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.station-detail {
  stroke: var(--text-muted);
}

.station-node {
  fill: var(--bg);
  stroke: var(--accent);
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}

/* Illustration vocabulary: quiet construction, readable forms, one active accent. */
.diagram-ghost, .diagram-ring, .diagram-detail, .diagram-accent,
.controller-seam, .context-selection, .precision-grip {
  fill: none;
  stroke: var(--line-strong);
  stroke-width: 1;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
.diagram-ghost { stroke: var(--line); }
.diagram-detail { stroke: var(--text-soft); stroke-width: 1.5; }
.diagram-accent { stroke: var(--accent); stroke-width: 2; }
.diagram-dot, .controller-light { fill: var(--accent); stroke: none; }
.context-selection, .memo-check-field { fill: rgba(var(--accent-rgb), .09); stroke: var(--accent); }
.precision-grip { stroke: var(--bg); }
.controller-seam { stroke: rgba(var(--accent-rgb), .22); }
.xpad-controller-shell { fill: url(#xpad-body); stroke: var(--text-soft); }
.xpad-window > .station-frame {
  fill: var(--bg);
  stroke: var(--text-soft);
}
.xpad-stick { fill: var(--surface-raised); }

.principle-list {
  grid-template-columns: 1fr;
  gap: 0;
  margin-top: clamp(56px, 8vw, 104px);
  border-top: 1px solid var(--line);
}

.principle-list .card {
  min-height: 210px;
  display: grid;
  grid-template-columns: 84px minmax(240px, 0.8fr) minmax(420px, 1.2fr);
  align-items: center;
  gap: 28px;
  padding: 38px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}

.principle-list .card:hover {
  transform: none;
  background: linear-gradient(90deg, transparent, rgba(var(--accent-rgb), 0.035), transparent);
}

/* The following panel already owns the separating rule after the list. */
.principle-list .card:last-child { border-bottom: 0; }

.principle-index {
  color: var(--text-muted);
  font-family: var(--display);
  font-size: clamp(2.3rem, 4vw, 4.1rem);
  font-weight: 550;
  letter-spacing: -0.05em;
}

.principle-copy h3,
.principle-list .card h3 {
  margin: 0;
  font-size: clamp(1.35rem, 2.2vw, 2rem);
}

.principle-copy p,
.principle-list .card p {
  max-width: 420px;
  margin-top: 10px;
}

.principle-list .scene {
  min-height: 0;
  overflow: visible;
}

.scene-guide { fill: none; stroke: var(--line-strong); stroke-width: 1; stroke-linecap: round; }
.comfort-orbit { display: block; width: 100%; height: auto; margin: -28px 0 24px; }
.orbit-track { stroke: var(--line-strong); stroke-width: 1; }
.orbit-light { stroke: var(--accent); stroke-width: 2; stroke-dasharray: 14 86; }
.orbit-core { fill: var(--surface); stroke: var(--text-soft); stroke-width: 1.5; }
.orbit-eye { fill: var(--text); }
.orbit-mouth { stroke: var(--text); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.scene-card.is-animated .orbit-light { animation: orbit-pass 5s ease-in-out both; }
.flow-band { fill: none; stroke: url(#flow-ribbon); stroke-width: 20; transform: translateY(10px); }
.flow-thread { stroke: var(--text-soft); stroke-width: 2; }
.flow-arrival { transform-box: fill-box; transform-origin: center; }
.scene-card.is-animated .flow-thread { stroke-dasharray: 100; animation: concept-draw 2.6s ease-in-out both; }
body.motion-init .flow-arrival .orbit-mouth { stroke-dasharray: 100; stroke-dashoffset: 100; }
.scene-card.is-animated .flow-arrival .orbit-mouth { animation: concept-draw .6s 2.6s ease-out forwards; }
.dial-track { stroke: var(--line); stroke-width: 1; }
.dial-arc { stroke: var(--text-soft); stroke-width: 2; }
.dial-face { fill: var(--surface); stroke: var(--line-strong); }
.dial-needle { transform-origin: 260px 90px; stroke: var(--text); stroke-width: 3; fill: var(--surface); }
.scene-card.is-animated .dial-needle { animation: dial-find 3s var(--ease-out) both; }
.context-window { fill: var(--surface); stroke: var(--line-strong); }
.context-options { stroke: var(--text-muted); stroke-width: 1.5; }
.context-options rect { fill: var(--surface-raised); stroke: var(--line-strong); }
.context-focus { fill: rgba(var(--accent-rgb), .04); stroke: var(--text-soft); }
.context-content { stroke-width: 2; }
.scene-card.is-animated .context-focus { animation: context-arrive 2s var(--ease-out) both; }
@keyframes orbit-pass { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
@keyframes concept-draw { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
@keyframes dial-find { 0% { transform: rotate(-130deg); } 72% { transform: rotate(7deg); } 100% { transform: rotate(0); } }
@keyframes context-arrive { from { opacity: .25; transform: translateX(-10px); } to { opacity: 1; transform: translateX(0); } }

.why-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(520px, 1.2fr);
  align-items: center;
  gap: clamp(56px, 8vw, 120px);
}

.why-visual {
  padding: 0;
  border: 0;
  background: transparent;
}

.why-visual:hover {
  transform: none;
  background: transparent;
}

.why-scene { min-height: 0; }

.anim-strain-line,
.anim-comfort-line,
.anim-comfort-split {
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.anim-strain-line { stroke: var(--text-muted); }
.anim-comfort-line { stroke: var(--text-soft); }
.anim-comfort-split { stroke: var(--line-strong); }
.anim-comfort-dot { fill: var(--bg); stroke: var(--text-soft); stroke-width: 2; }

.scene-card.is-animated .anim-strain-shake { animation: strain-calm 1.2s var(--scene-delay, 0s) var(--ease-out) both; }
body.motion-init .anim-comfort-line { stroke-dasharray: 100; stroke-dashoffset: 100; }
.scene-card.is-animated .anim-comfort-line { animation: path-draw 1.8s .25s var(--ease-out) forwards; }
.scene-card.is-animated .anim-comfort-split { animation: line-settle 1.8s .25s var(--ease-out) both; }

.why-legend {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 10px;
  color: var(--text-muted);
  font-size: 0.74rem;
  font-weight: 700;
}

.why-legend-item::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 2px;
  margin: 0 8px 3px 0;
  background: currentColor;
}

.why-legend-strain { color: var(--text-muted); }
.why-legend-comfort { color: var(--text-soft); }

.product-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: clamp(72px, 10vw, 140px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.product-link {
  position: relative;
  min-height: 230px;
  padding: 42px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-content: center;
  gap: 8px 24px;
  transition: background 260ms ease;
}

.product-link + .product-link { border-left: 1px solid var(--line); }
.product-link:hover { background: rgba(var(--accent-rgb), 0.045); }
.product-link-meemo:hover { background: rgba(var(--accent-rgb), 0.045); }

.product-mark {
  grid-row: span 2;
  width: 68px;
  height: 68px;
  display: block;
  border-radius: var(--radius-md);
  object-fit: cover;
}

.product-link h3 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1;
}

.product-link a {
  width: fit-content;
  color: var(--text-soft);
  font-size: 0.86rem;
  font-weight: 750;
  text-decoration-color: var(--line-strong);
}

.product-link a:hover { color: var(--text); text-decoration-color: currentColor; }

/* XPadMouse */
.xpad-svg-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.grid-4 .card {
  min-height: 410px;
  display: flex;
  flex-direction: column;
}

.grid-4 .scene {
  min-height: 220px;
  margin-bottom: auto;
}

.pills,
.checklist {
  display: grid;
  gap: 12px;
  margin-top: 44px;
}

.pills { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.pill {
  min-height: 136px;
  padding: 24px 0;
  border-top: 1px solid var(--line-strong);
}

.pill strong,
.pill small {
  display: block;
}

.pill strong {
  font-family: var(--display);
  font-size: 1.08rem;
}

.pill small {
  margin-top: 8px;
  color: var(--text-soft);
  font-size: 0.9rem;
  line-height: 1.55;
}

.checklist {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.check-item {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 12px;
  padding: 20px 0;
  color: var(--text-soft);
  border-top: 1px solid var(--line);
}

.check-bullet {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  color: var(--accent);
  border: 1px solid currentColor;
  border-radius: 50%;
}

.check-bullet svg { width: 12px; }

.offer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: 20px;
  margin-top: 56px;
}

.offer-card {
  padding: clamp(28px, 4vw, 48px);
  border-radius: var(--radius-lg);
}

.offer-card:hover { transform: none; }

.offer-title {
  max-width: 680px;
  margin-top: 0 !important;
  font-size: clamp(1.8rem, 3vw, 2.8rem) !important;
}

.offer-points,
.trial-feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

.offer-point,
.trial-feature,
.plan-badge,
.meemo-badges span {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  padding: 0 11px;
  color: var(--text-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 750;
}

.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 32px;
}

.plan-button {
  min-height: 134px;
  display: grid;
  align-content: space-between;
  gap: 8px;
  padding: 18px;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-soft);
  text-decoration: none;
  transition: transform 220ms var(--ease-out), border-color 220ms ease;
}

.plan-button:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}

.plan-button-featured {
  border-color: rgba(var(--accent-rgb), 0.6);
  background: rgba(var(--accent-rgb), 0.09);
}

.plan-header,
.plan-name,
.plan-price { display: block; }
.plan-name { color: var(--text-soft); font-size: 0.78rem; font-weight: 750; }
.plan-price { font-family: var(--display); font-size: 1.8rem; font-weight: 700; }
.plan-badge { width: fit-content; min-height: 25px; color: var(--accent); border-color: rgba(var(--accent-rgb), 0.4); }
.trial-feature-strong { color: var(--accent); border-color: rgba(var(--accent-rgb), 0.55); }
.trial-note { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.offer-actions { margin-top: 24px; }

/* Meemo Notes */
.meemo-main {
  width: 100%;
}

.meemo-shell {
  width: min(var(--max-page), calc(100% - 48px));
  margin-inline: auto;
}

.meemo-hero-inner {
  min-height: calc(90svh - var(--header-height));
  display: grid;
  grid-template-columns: minmax(340px, 0.8fr) minmax(520px, 1.2fr);
  align-items: center;
  gap: clamp(48px, 6vw, 96px);
}

.meemo-hero h1 {
  color: var(--accent);
  font-size: clamp(3.8rem, 7vw, 7rem);
}

.meemo-hero-line {
  max-width: 620px;
  margin: 18px 0 0;
  color: var(--text);
  font-family: var(--display);
  font-size: clamp(1.6rem, 2.5vw, 2.45rem);
  font-weight: 620;
  letter-spacing: -0.035em;
  line-height: 1.15;
}

.meemo-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 24px;
}

.meemo-badges span {
  min-height: auto;
  padding: 0;
  color: var(--text-muted);
  border: 0;
  border-radius: 0;
}

.meemo-badges span::before {
  content: "•";
  margin-right: 7px;
  color: var(--accent);
}

.meemo-flow { margin: 0; min-width: 0; --demo-duration: 12s; }
.meemo-flow-stage { position: relative; }
.meemo-flow-diagram { display: block; width: 100%; height: auto; overflow: visible; }
.studio-diagram { stroke-linecap: round; stroke-linejoin: round; }
.studio-guide { stroke: var(--line); stroke-width: 1; }
.studio-route-base, .studio-orbit { stroke: rgba(var(--accent-rgb), .19); stroke-width: 1; }
.studio-orbit { stroke-dasharray: 2 7; }
.studio-route { stroke: var(--accent); stroke-width: 2.2; }
.studio-surface { fill: var(--surface); stroke: rgba(var(--accent-rgb), .45); stroke-width: 1.2; }
.studio-wave { stroke: var(--accent); stroke-width: 3; }
.studio-wave path { transform-box: fill-box; transform-origin: center; }
.studio-paper-back { fill: var(--surface); stroke: rgba(var(--accent-rgb), .15); }
.studio-paper { fill: url(#meemo-paper); stroke: rgba(var(--accent-rgb), .6); stroke-width: 1.2; }
.studio-title { stroke: var(--accent-2); stroke-width: 4; }
.studio-ink { stroke: var(--text-soft); stroke-width: 2; }
.studio-dot, .studio-avatar { fill: var(--accent); }
.studio-muted-dot { fill: var(--line-strong); }
.studio-avatar-secondary { fill: var(--accent-2); }
.studio-highlight { fill: rgba(var(--accent-rgb), .06); stroke: rgba(var(--accent-rgb), .2); }
.studio-check { stroke: var(--accent); stroke-width: 2; }
.meemo-stage-rail { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 8px 0 0; }
.meemo-stage-rail > span { position: relative; display: flex; flex-direction: column; gap: 8px; padding-top: 14px; border-top: 1px solid var(--line-strong); color: var(--text-soft); font-size: .75rem; line-height: 1.4; }
.meemo-stage-rail b { color: var(--accent); font-size: .65rem; font-weight: 500; font-variant-numeric: tabular-nums; }
.meemo-stage-rail > span::before { content: ""; position: absolute; left: 0; top: -1px; width: 100%; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; }
.scene-card.is-animated .studio-phase { animation: studio-phase var(--demo-duration) calc(var(--phase) - var(--demo-duration)) linear infinite; }
.meemo-flow.is-animated .studio-route { stroke-dasharray: 100; animation-name: studio-route; }
.studio-packet { stroke: var(--accent-2); stroke-width: 4; stroke-dasharray: 10 90; opacity: 0; }
.meemo-flow.is-animated .studio-packet { animation-name: studio-packet; }
.signal-port { fill: var(--bg); stroke: var(--accent); stroke-width: 1.5; }
.studio-arrival, .xpad-input-arrival { fill: none; stroke: var(--accent-2); stroke-width: 2; opacity: 0; transform-box: fill-box; transform-origin: center; }
.meemo-flow.is-animated .studio-arrival { animation-name: studio-arrival; }
.meemo-flow.is-animated .studio-receive { animation: studio-receive 12s calc(var(--phase) - 12s) linear infinite; }
.meemo-flow.is-animated .studio-wave path { animation: studio-wave 1.8s var(--bar) ease-in-out infinite; }
.meemo-flow.is-animated .meemo-stage-rail > span { animation-name: studio-label; }
.meemo-flow.is-animated .meemo-stage-rail > span::before { animation: studio-progress var(--demo-duration) calc(var(--phase) - var(--demo-duration)) linear infinite; }
@keyframes studio-phase { 0%, 22% { opacity: 1; } 27%, 95% { opacity: .72; } 100% { opacity: 1; } }
/* Each 3s stage produces content first, sends at 1.44s, and arrives at 2.88s. */
@keyframes studio-route {
  0%, 12% { stroke-dashoffset: 100; opacity: .2; }
  24% { stroke-dashoffset: 0; opacity: 1; }
  30%, 100% { stroke-dashoffset: 0; opacity: .22; }
}
@keyframes studio-wave { 0%, 100% { transform: scaleY(.45); } 40% { transform: scaleY(1); } 72% { transform: scaleY(.65); } }
@keyframes studio-label { 0%, 23% { color: var(--accent-2); } 27%, 100% { color: var(--text-soft); } }
@keyframes studio-progress { 0% { transform: scaleX(0); opacity: 1; } 23% { transform: scaleX(1); opacity: 1; } 27%, 100% { transform: scaleX(1); opacity: 0; } }

.meemo-proof-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  padding-top: 0;
  padding-bottom: 0;
}

.meemo-proof-card {
  min-height: 240px;
  padding: 38px 28px;
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}

.meemo-proof-card:last-child { border-right: 0; }
.meemo-proof-card:hover { transform: none; background: rgba(var(--accent-rgb), 0.04); }

.meemo-proof-icon { width: 64px; height: 64px; display: block; margin-bottom: 20px; color: var(--accent); stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.proof-orbit { stroke: rgba(var(--accent-rgb), .24); stroke-width: 1; }
.proof-seal { fill: var(--surface); }
.proof-accent { stroke: var(--accent-2); stroke-width: 2; }
.proof-meter, .proof-bubble { transform-box: fill-box; transform-origin: center; }
.meemo-proof-card.is-animated .proof-meter { animation: studio-wave 1.2s ease-in-out 3; }
.meemo-proof-card.is-animated .proof-accent { animation: proof-confirm 2s ease-in-out 2; }
.meemo-proof-card.is-animated .proof-bubble { animation: proof-bubble 2s ease-in-out 2; }
@keyframes proof-confirm { 0%, 100% { opacity: 1; } 50% { opacity: .4; } }
@keyframes proof-bubble { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }

.meemo-section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.7fr);
  gap: 36px 72px;
  align-items: end;
}

.meemo-section-heading .kicker { grid-column: 1 / -1; margin-bottom: -16px; }
.meemo-section-heading > p:not(.kicker) { margin: 0; }

.meemo-explain-grid,
.meemo-step-grid,
.meemo-split,
.meemo-beta-panel {
  display: grid;
  gap: 18px;
}

.meemo-explain-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 64px;
}

.meemo-explain-card > span,
.meemo-step-card > span {
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.meemo-step-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 18px;
}

.meemo-step-card { min-height: 250px; }

.meemo-split,
.meemo-beta-panel {
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: clamp(48px, 8vw, 120px);
}

.meemo-split .meemo-section-heading {
  display: block;
}

.meemo-split .meemo-section-heading .kicker { margin-bottom: 18px; }
.meemo-split .meemo-section-heading > p:not(.kicker) { margin-top: 24px; }

.meemo-feature-list,
.meemo-local-stack,
.meemo-beta-stack {
  display: grid;
}

.meemo-feature-card {
  padding: 24px 0;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}

.meemo-feature-card:hover { transform: none; background: transparent; border-color: var(--accent); }
.meemo-feature-card h3 { margin: 0; }

.meemo-beta-panel { align-items: center; }
.meemo-beta-panel h2 { font-size: clamp(2.7rem, 5vw, 5rem); }
.meemo-beta-panel p:not(.kicker) { color: var(--text-soft); }

.meemo-beta-stack > div,
.meemo-local-row {
  display: grid;
  grid-template-columns: minmax(90px, 0.35fr) 1fr;
  gap: 20px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.meemo-beta-stack strong,
.meemo-beta-stack span,
.meemo-local-row strong,
.meemo-local-row small { display: block; }
.meemo-beta-stack strong,
.meemo-local-row > span { color: var(--accent); font-weight: 800; }
.meemo-beta-stack span,
.meemo-local-row small { color: var(--text-soft); }

/* Support and documents */
.support-form {
  max-width: 860px;
  display: grid;
  gap: 22px;
  margin-top: 48px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.field {
  display: grid;
  gap: 8px;
}

.field label {
  color: var(--text-soft);
  font-size: 0.78rem;
  font-weight: 800;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 54px;
  padding: 14px 16px;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(5, 14, 24, 0.7);
  transition: border-color 180ms ease, background 180ms ease;
}

.field textarea { min-height: 190px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus { border-color: var(--accent); background: var(--surface); outline: 0; }
.field ::placeholder { color: var(--text-muted); }

body[data-page="privacy"] main > .panel:last-child,
body[data-page="terms"] main > .panel:last-child,
body[data-page="install"] main > .panel:last-child {
  max-width: 900px;
}

body[data-page="privacy"] main > .panel:last-child .section-title,
body[data-page="terms"] main > .panel:last-child .section-title,
body[data-page="install"] main > .panel:last-child .section-title {
  margin-top: 52px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  font-size: clamp(1.55rem, 2.4vw, 2.3rem);
  letter-spacing: -0.035em;
}

body[data-page="privacy"] main > .panel:last-child .section-title:first-child,
body[data-page="terms"] main > .panel:last-child .section-title:first-child,
body[data-page="install"] main > .panel:last-child .section-title:first-child { margin-top: 0; }

body[data-page="privacy"] .hero,
body[data-page="terms"] .hero,
body[data-page="install"] .hero,
body[data-page="support"] .hero {
  min-height: 66svh;
}

code {
  padding: 0.16em 0.38em;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface);
  font-size: 0.86em;
  overflow-wrap: anywhere;
}

.site-foot {
  min-height: 170px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 28px;
  color: var(--text-muted);
  border-top: 1px solid var(--line);
  font-size: 0.78rem;
}

.site-foot span:nth-child(2) { text-align: center; }
.site-foot span:last-child { text-align: right; }
.site-foot a { color: var(--text-soft); text-decoration-color: var(--line-strong); }
.site-foot a:hover { color: var(--text); }

[data-reveal].is-visible {
  animation: section-enter 720ms var(--ease-out) both;
}

@keyframes section-enter {
  from { opacity: 0.58; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes quiet-rule-in { from { transform: scaleX(0); } to { transform: scaleX(1); } }

@keyframes path-draw { to { stroke-dashoffset: 0; } }




@keyframes strain-calm { 0%, 12% { transform: translateX(0); } 4% { transform: translateX(-2px); } 8% { transform: translateX(2px); } 46%, 100% { transform: translateX(0); opacity: 0.7; } }
@keyframes line-settle { from { opacity: 0.35; } to { opacity: 1; } }
@keyframes product-path-draw { to { stroke-dashoffset: 0; } }
@keyframes product-station-in { to { opacity: 1; transform: translateY(0); } }


/* Product diagrams demonstrate one complete gesture, then rest. */
.xpad-signal,
.xpad-card-route,
.xpad-context-route,
.xpad-cursor,
.xpad-card-cursor,
.xpad-scroll-thumb,
.xpad-context-pause,
.xpad-context-live,
.xpad-context-cursor,
.xpad-context-mode-cursor {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.xpad-endpoint,
.xpad-click-pulse,
.xpad-context-dot,
.xpad-card-target {
  fill: var(--bg);
  stroke: var(--accent);
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}

body.motion-init .xpad-signal,
body.motion-init .xpad-card-route,
body.motion-init .xpad-context-route,
body.motion-init .xpad-context-live {
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
}

.xpad-controller,
.xpad-window,
.xpad-card-input,
.xpad-card-output,
.xpad-trigger-pair,
.xpad-click-target,
.xpad-bumper-input,
.xpad-dock-output,
.xpad-context-app,
.xpad-context-gate,
.xpad-context-game {
  transform-box: fill-box;
  transform-origin: center;
}

body.motion-init .xpad-controller,
body.motion-init .xpad-window,
body.motion-init .xpad-card-input,
body.motion-init .xpad-card-output,
body.motion-init .xpad-trigger-pair,
body.motion-init .xpad-click-target,
body.motion-init .xpad-bumper-input,
body.motion-init .xpad-dock-output,
body.motion-init .xpad-context-app,
body.motion-init .xpad-context-gate,
body.motion-init .xpad-context-game {
  opacity: 0.22;
}

.scene-card.is-animated .xpad-card-route,
.scene-card.is-animated .xpad-context-route {
  animation: product-path-draw 1.05s var(--scene-delay, .1s) var(--ease-out) forwards;
}

.xpad-hero-visual.is-animated .xpad-controller,
.scene-card.is-animated .xpad-card-input,
.scene-card.is-animated .xpad-trigger-pair,
.scene-card.is-animated .xpad-bumper-input,
.scene-card.is-animated .xpad-context-app {
  animation: product-station-in 520ms .08s var(--ease-out) forwards;
}

.xpad-hero-visual.is-animated .xpad-window,
.scene-card.is-animated .xpad-card-output,
.scene-card.is-animated .xpad-click-target,
.scene-card.is-animated .xpad-dock-output,
.scene-card.is-animated .xpad-context-game {
  animation: product-station-in 520ms .48s var(--ease-out) forwards;
}

.scene-card.is-animated .xpad-context-gate {
  animation: product-station-in 520ms .3s var(--ease-out) forwards;
}

.xpad-hero-visual.is-animated .xpad-stick-left,
.scene-card.is-animated .xpad-card-stick {
  transform-box: fill-box;
  transform-origin: center;
}

.scene-card.is-animated .xpad-scroll-content {
  transform-box: fill-box;
  transform-origin: center;
}

.scene-card.is-animated .xpad-scroll-thumb {
  transform-box: fill-box;
  transform-origin: center;
}

.scene-card.is-animated .xpad-trigger-left,
.scene-card.is-animated .xpad-trigger-right,
.scene-card.is-animated .xpad-bumper {
  transform-box: fill-box;
  transform-origin: center;
}

.scene-card.is-animated .xpad-click-pulse,
.xpad-hero-visual.is-animated .xpad-endpoint,
.scene-card.is-animated .xpad-context-dot {
  transform-box: fill-box;
  transform-origin: center;
}

.xpad-dock-app {
  fill: var(--surface-raised);
  stroke: var(--line-strong);
  stroke-width: 1;
}

.xpad-dock-indicator {
  fill: var(--accent);
  opacity: .85;
}

.xpad-target-rays,
.xpad-card-pointer-trail {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.xpad-card-pointer-trail {
  opacity: .62;
  stroke-dasharray: 3 5;
}

.xpad-mouse-half {
  fill: rgba(var(--accent-rgb), .045);
  stroke: var(--accent);
  stroke-width: 1.5;
  opacity: .28;
  vector-effect: non-scaling-stroke;
}

.xpad-click-direction {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: .72;
  vector-effect: non-scaling-stroke;
}

.xpad-dock-calendar {
  fill: var(--text-muted);
  font-family: var(--display);
  font-size: 8px;
  font-weight: 700;
}

.xpad-stick-left,
.xpad-card-stick,
.xpad-trigger .station-frame,
.xpad-bumper-active .station-frame,
.xpad-dock-app-active,
.xpad-context-desktop-stick,
.xpad-context-game-stick {
  stroke: var(--accent);
  stroke-width: 2;
}

.xpad-context-visual {
  margin-top: 54px;
  padding-block: 16px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

/* The first pill keeps its own boundary from the visual above. */
.xpad-context-visual + .pills .pill:first-child { border-top: 1px solid var(--line-strong); }

.xpad-permissions-panel { padding-bottom: clamp(48px, 5vw, 72px); }
.panel.xpad-ready-panel { padding-bottom: 0; }

.xpad-context-visual svg {
  width: 100%;
  max-height: none;
}

.xpad-context-desktop { aspect-ratio: 30 / 13; }
.xpad-context-mobile { display: none; }

.xpad-hero-guide {
  opacity: .28;
  stroke-dasharray: 2 9;
}

body.motion-init .xpad-hero-visual .xpad-signal,
.xpad-hero-visual .xpad-signal {
  stroke-dasharray: 12 88;
}

.xpad-svg-label {
  fill: var(--text-muted);
  stroke: none;
  font-family: var(--display);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .04em;
}

.xpad-trigger {
  transform-box: fill-box;
  transform-origin: center;
}

.xpad-dock-tray {
  fill: rgba(var(--accent-rgb), .035);
}

.xpad-context-focus {
  fill: none;
  stroke: var(--line-strong);
  stroke-width: 1;
  opacity: .35;
  vector-effect: non-scaling-stroke;
}

.xpad-context-controller,
.xpad-context-state,
.xpad-context-mode-cursor,
.xpad-context-pause,
.xpad-context-cursor,
.xpad-context-focus {
  transform-box: fill-box;
  transform-origin: center;
}

.xpad-context-live-b { opacity: .22; }
.xpad-context-focus-desktop { stroke: var(--accent); opacity: .9; }
.xpad-context-mode-cursor { opacity: 1; }
.xpad-context-pause { opacity: 0; }

.xpad-controller-shell,
.xpad-trigger-body {
  vector-effect: non-scaling-stroke;
}

/* A single causal gesture: stick, signal, pointer, target. */
.xpad-hero-visual.is-animated .xpad-signal {
  animation: xpad-hero-signal 8s ease-in-out infinite;
}

.xpad-hero-visual.is-animated .xpad-cursor {
  animation: xpad-hero-cursor 8s ease-in-out infinite;
  transform-box: fill-box;
  transform-origin: center;
}

.xpad-hero-visual.is-animated .xpad-stick-left {
  animation: xpad-hero-stick 8s ease-in-out infinite;
}

.xpad-hero-visual.is-animated .xpad-endpoint {
  animation: xpad-hero-target 8s ease-in-out infinite;
}

.xpad-hero-visual.is-animated .xpad-target-rays {
  animation: xpad-hero-rays 8s ease-in-out infinite;
}

.scene-card.is-animated .xpad-dock-tray {
  transform-box: fill-box;
  transform-origin: center bottom;
}

.scene-card.is-animated .xpad-dock-app-active-group {
  transform-box: fill-box;
  transform-origin: center bottom;
}

/* Smart context alternates between desktop control and native game input. */
.xpad-context-visual.is-animated .xpad-context-live-a,
.xpad-context-visual.is-animated .xpad-context-focus-desktop {
  animation: xpad-context-desktop 7s ease-in-out both;
}

.xpad-context-visual.is-animated .xpad-context-mode-cursor {
  animation: xpad-context-mode-cursor 7s ease-in-out both;
}

.xpad-context-visual.is-animated .xpad-context-live-b,
.xpad-context-visual.is-animated .xpad-context-focus-game {
  animation: xpad-context-game 7s ease-in-out both;
}

.xpad-context-visual.is-animated .xpad-context-pause {
  animation: xpad-context-pause 7s ease-in-out both;
}

.xpad-context-visual.is-animated .xpad-context-cursor {
  animation: xpad-context-cursor 7s ease-in-out both;
}

.xpad-context-visual.is-animated .xpad-context-controller-game {
  animation: xpad-context-controller 7s ease-in-out both;
}

/* Mapping cards repeat one input-to-effect sentence each. */
.xpad-card-left.is-animated .xpad-card-route,
.xpad-card-scroll.is-animated .xpad-card-route,
.xpad-card-dock.is-animated .xpad-card-route {
  animation: xpad-map-route 6s ease-in-out both;
}

.xpad-card-left.is-animated .xpad-card-stick {
  animation: xpad-map-stick-left 6s ease-in-out both;
}

.xpad-card-left.is-animated .xpad-card-cursor {
  animation: xpad-map-cursor 6s ease-in-out both;
  transform-box: fill-box;
  transform-origin: center;
}

.xpad-card-left.is-animated .xpad-card-target {
  animation: xpad-map-target 6s ease-in-out both;
  transform-box: fill-box;
  transform-origin: center;
}

.xpad-card-scroll.is-animated .xpad-card-stick-y {
  animation: xpad-map-stick-scroll 6s ease-in-out both;
}

.xpad-card-scroll.is-animated .xpad-scroll-content {
  animation: xpad-map-content 6s ease-in-out both;
}

.xpad-card-scroll.is-animated .xpad-scroll-thumb {
  animation: xpad-map-thumb 6s ease-in-out both;
}

.xpad-card-triggers.is-animated .xpad-trigger-route-left,
.xpad-card-triggers.is-animated .xpad-trigger-route-right {
  animation: xpad-trigger-route 6s ease-in-out both;
}

.xpad-card-triggers.is-animated .xpad-trigger-right,
.xpad-card-triggers.is-animated .xpad-trigger-left {
  animation: xpad-trigger-button 6s ease-in-out both;
}

.xpad-card-triggers.is-animated .xpad-trigger-right { animation-delay: 3s; }
.xpad-card-triggers.is-animated .xpad-trigger-route-right { animation-delay: 3s; }

.xpad-card-triggers.is-animated .xpad-click-pulse-left,
.xpad-card-triggers.is-animated .xpad-click-pulse-right {
  animation: xpad-click-confirm 6s ease-in-out both;
}

.xpad-card-triggers.is-animated .xpad-click-pulse-right { animation-delay: 3s; }

.xpad-card-triggers.is-animated .xpad-mouse-half-left,
.xpad-card-triggers.is-animated .xpad-mouse-half-right {
  animation: xpad-mouse-half 6s ease-in-out both;
}

.xpad-card-triggers.is-animated .xpad-mouse-half-right { animation-delay: 3s; }

.xpad-card-dock.is-animated .xpad-bumper-active {
  animation: xpad-dock-button 6s ease-in-out both;
}

.xpad-card-dock.is-animated .xpad-dock-tray {
  animation: xpad-dock-tray 6s ease-in-out both;
}

.xpad-card-dock.is-animated .xpad-dock-app-active-group {
  animation: xpad-dock-app 6s ease-in-out both;
  transform-box: fill-box;
  transform-origin: center bottom;
}

@keyframes xpad-hero-signal {
  0%, 16% { stroke-dashoffset: 12; opacity: 0; }
  18% { opacity: 1; }
  36% { stroke-dashoffset: -88; opacity: 1; }
  40%, 100% { stroke-dashoffset: -100; opacity: 0; }
}

@keyframes xpad-hero-cursor {
  0%, 40% { transform: translate(-78px, 62px); opacity: .7; }
  58%, 80% { transform: translate(0, 0); opacity: 1; }
  94%, 100% { transform: translate(-78px, 62px); opacity: .7; }
}

@keyframes xpad-hero-stick {
  0%, 8%, 82%, 100% { transform: translate(0, 0); }
  16%, 65% { transform: translate(5px, -5px); }
}

@keyframes xpad-hero-target {
  0%, 58%, 80%, 100% { transform: scale(.65); opacity: .3; }
  62%, 70% { transform: scale(1.3); opacity: 1; }
}

@keyframes xpad-hero-rays {
  0%, 58%, 82%, 100% { opacity: .12; transform: scale(.8); }
  63% { opacity: 1; transform: scale(1); }
  76% { opacity: 0; transform: scale(1.6); }
}





@keyframes xpad-context-desktop {
  0%, 26%, 100% { opacity: 1; stroke-dashoffset: 0; }
  40%, 76% { opacity: .3; stroke-dashoffset: 100; }
  90% { opacity: 1; stroke-dashoffset: 0; }
}

@keyframes xpad-context-game {
  0%, 24%, 100% { opacity: .3; stroke-dashoffset: 100; }
  42%, 72% { opacity: 1; stroke-dashoffset: 0; }
  88% { opacity: .3; stroke-dashoffset: 100; }
}

@keyframes xpad-context-mode-cursor {
  0%, 26%, 100% { opacity: 1; }
  40%, 76% { opacity: 0; }
  90% { opacity: 1; }
}

@keyframes xpad-context-pause {
  0%, 24%, 100% { opacity: 0; }
  42%, 72% { opacity: 1; }
  88% { opacity: 0; }
}

@keyframes xpad-context-cursor {
  0%, 26%, 100% { transform: translate(0, 0); opacity: 1; }
  38%, 76% { transform: translate(12px, -8px); opacity: .2; }
  90% { transform: translate(0, 0); opacity: 1; }
}

@keyframes xpad-context-controller {
  0%, 28%, 84%, 100% { opacity: .55; }
  44%, 72% { opacity: 1; }
}

@keyframes xpad-map-route {
  0%, 14% { stroke-dashoffset: 100; opacity: .3; }
  36%, 100% { stroke-dashoffset: 0; opacity: .8; }
}

@keyframes xpad-map-stick-left {
  0%, 12%, 76%, 100% { transform: translate(0, 0); }
  24%, 60% { transform: translate(3px, -3px); }
}

@keyframes xpad-map-cursor {
  0%, 40% { transform: translate(-22px, 14px); opacity: .6; }
  58%, 100% { transform: translate(0, 0); opacity: 1; }
}

@keyframes xpad-map-target {
  0%, 58%, 88%, 100% { transform: scale(.65); opacity: .35; }
  64%, 76% { transform: scale(1.6); opacity: 1; }
}

@keyframes xpad-map-stick-scroll {
  0%, 12%, 82%, 100% { transform: translateY(0); }
  24%, 66% { transform: translateY(4px); }
}

@keyframes xpad-map-content {
  0%, 40%, 100% { transform: translateY(0); opacity: .6; }
  56%, 76% { transform: translateY(-10px); opacity: 1; }
}

@keyframes xpad-map-thumb {
  0%, 40%, 100% { transform: translateY(0); opacity: .6; }
  56%, 76% { transform: translateY(14px); opacity: 1; }
}

@keyframes xpad-trigger-route {
  0%, 16%, 82%, 100% { stroke-dashoffset: 100; opacity: .18; }
  32%, 62% { stroke-dashoffset: 0; opacity: 1; }
}

@keyframes xpad-trigger-button {
  0%, 10%, 48%, 100% { transform: scaleY(1); }
  18%, 34% { transform: scaleY(.8); }
}

@keyframes xpad-click-confirm {
  0%, 30%, 56%, 100% { transform: scale(.55); opacity: .3; }
  40%, 48% { transform: scale(1.3); opacity: 1; }
}

@keyframes xpad-mouse-half {
  0%, 28%, 58%, 100% { opacity: .24; }
  38%, 50% { opacity: .85; }
}

@keyframes xpad-dock-button {
  0%, 10%, 48%, 100% { transform: scaleY(1); }
  18%, 34% { transform: scaleY(.8); }
}

@keyframes xpad-dock-tray {
  0%, 36% { opacity: .6; }
  44%, 100% { opacity: 1; }
}

@keyframes xpad-dock-app {
  0%, 34%, 76%, 100% { transform: translateY(0) scale(1); }
  48%, 62% { transform: translateY(-7px) scale(1.28); }
}









@media (max-width: 1060px) {
  .header-inner { gap: 14px; }
  .brand-text { font-size: 0.8rem; }
  .nav-link { padding-inline: 9px; }
  .hero { grid-template-columns: minmax(0, 1fr) minmax(240px, 0.34fr); gap: 40px; }
  .xpad-hero { grid-template-columns: minmax(0, 1fr) minmax(360px, .72fr); }
  .principle-list .card { grid-template-columns: 64px minmax(220px, 0.8fr) minmax(340px, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .meemo-hero-inner { grid-template-columns: minmax(320px, 0.8fr) minmax(420px, 1.2fr); }
}

@media (max-width: 840px) {
  :root { --header-height: 68px; }
  .header-inner,
  main,
  .site-foot,
  .meemo-shell { width: min(100% - 32px, var(--max-page)); }
  .header-inner { grid-template-columns: 1fr auto auto; }
  .site-nav {
    position: fixed;
    top: 78px;
    right: 16px;
    left: 16px;
    z-index: 920;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--surface);
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: opacity 200ms ease, transform 240ms var(--ease-out), visibility 200ms;
  }
  .menu-open .site-nav { opacity: 1; visibility: visible; transform: none; }
  .nav-list { display: grid; gap: 2px; }
  .nav-link { min-height: 52px; justify-content: flex-start; padding-inline: 16px; font-size: 1rem; }
  .lang-switch { justify-self: end; }
  .nav-toggle { position: relative; display: block; }
  .hero,
  .meemo-hero-inner { min-height: auto; grid-template-columns: 1fr; }
  .concept-hero { padding-top: 80px; }
  .xpad-hero-visual { min-height: 420px; }
  .principle-list .card { grid-template-columns: 64px 1fr; }
  .principle-list .scene { grid-column: 2; margin-top: 10px; }
  .why-grid,
  .meemo-section-heading,
  .meemo-split,
  .meemo-beta-panel { grid-template-columns: 1fr; }
  .why-grid { gap: 48px; }
  .grid-3 { grid-template-columns: 1fr; }
  .pills,
  .checklist { grid-template-columns: 1fr; }
  .pill,
  .check-item { min-height: 0; }
  .offer-grid { grid-template-columns: 1fr; }
  .meemo-proof-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .meemo-proof-card:nth-child(2) { border-right: 0; }
  .meemo-proof-card:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
  .meemo-section-heading > p:not(.kicker) { margin-top: 0; }
  .site-foot { grid-template-columns: 1fr; align-content: center; padding-block: 40px; text-align: left; }
  .site-foot span:nth-child(2),
  .site-foot span:last-child { text-align: left; }
}

@media (max-width: 620px) {
  body { font-size: 15px; }
  .header-inner { width: calc(100% - 24px); gap: 8px; }
  .brand-text { display: none; }
  .lang-switch { padding-left: 8px; }
  main,
  .site-foot,
  .meemo-shell { width: calc(100% - 28px); }
  .panel,
  .meemo-page-card { padding-block: 72px; }
  .hero h1,
  .meemo-hero h1 { font-size: clamp(3rem, 15vw, 4.6rem); }
  .xpad-hero h1 { font-size: clamp(2.7rem, 12vw, 3.5rem); }
  .section-title,
  .meemo-section-heading h2,
  .meemo-beta-panel h2 { font-size: clamp(2.35rem, 12vw, 4rem); }
  .lead,
  .section-subtitle { font-size: 1rem; }
  .cta-row { align-items: stretch; }
  .btn { width: 100%; }
  .hero-card { width: 100%; }
  .principle-list .card { grid-template-columns: 46px 1fr; gap: 18px; padding-block: 32px; }
  .principle-index { font-size: 2rem; }
  .principle-list .scene { grid-column: 1 / -1; }
  .product-split { grid-template-columns: 1fr; }
  .product-link + .product-link { border-top: 1px solid var(--line); border-left: 0; }
  .product-link { min-height: 190px; padding: 28px 18px; gap: 6px 18px; }
  .product-mark { width: 54px; height: 54px; }
  .why-legend { flex-direction: column; }
  .grid-4,
  .plan-grid,
  .form-grid,
  .meemo-explain-grid,
  .meemo-step-grid,
  .meemo-proof-grid { grid-template-columns: 1fr; }
  .grid-4 .card { min-height: 390px; }
  .plan-button { min-height: 112px; }
  .meemo-proof-card { min-height: 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .meemo-proof-card:last-child { border-bottom: 0; }
  .meemo-stage-rail { grid-template-columns: repeat(4, 1fr); }
  .meemo-stage-rail > span { font-size: .67rem; }
  .meemo-beta-stack > div,
  .meemo-local-row { grid-template-columns: 76px 1fr; }
  .xpad-context-desktop { display: none; }
  .xpad-context-mobile { display: block; }
  .xpad-context-visual svg.xpad-context-mobile {
    width: min(100%, 320px);
    max-height: none;
    margin-inline: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  [data-reveal].is-visible { animation: none; }
}

/* Offscreen and background-tab scenes retain their exact playback position. */
body[data-js-scenes] .scene-card:not(.is-in-view) *,
body[data-scenes-paused] .scene-card *,
body[data-js-scenes] .scene-card:not(.is-in-view) *::before,
body[data-scenes-paused] .scene-card *::before {
  animation-play-state: paused !important;
}

@media (prefers-reduced-motion: reduce) {
  .scene-card *, .scene-card *::before, .scene-card *::after {
    animation: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .meemo-stage-rail > span::before { display: none; }
}

.xpad-window-back { fill: var(--surface); stroke: var(--line); }
.xpad-window-selection, .xpad-window-dock { fill: rgba(var(--accent-rgb), .08); stroke: rgba(var(--accent-rgb), .25); }
.xpad-connection-base { stroke: rgba(var(--accent-rgb), .25); stroke-width: 1; stroke-dasharray: 2 5; }
.xpad-stick-well { fill: var(--bg-deep); stroke: var(--line-strong); }
.xpad-stick-cap { fill: var(--surface-raised); stroke: var(--accent); stroke-width: 2; }
.xpad-stick-rim { stroke: rgba(var(--accent-rgb), .35); stroke-width: 1; }
.xpad-hero-visual .xpad-cursor { fill: var(--bg); }
.xpad-card-output > .station-frame, .xpad-click-target > .station-frame { fill: var(--surface); }
.meemo-flow.is-animated .studio-write { stroke-dasharray: 100; animation: studio-write 12s calc(-9s + var(--line-delay, 0s)) linear infinite; }
.meemo-flow.is-animated .studio-check { stroke-dasharray: 100; animation: studio-write 12s calc(-3s + var(--line-delay, 0s)) linear infinite; }
@keyframes studio-write {
  0%, 2% { stroke-dashoffset: 100; }
  8%, 97% { stroke-dashoffset: 0; }
  99%, 100% { stroke-dashoffset: 100; }
}

.xpad-trigger-body { fill: url(#xpad-body); }
.grid-4 .card p { min-height: 3.1em; }

@keyframes studio-packet {
  0%, 12% { stroke-dashoffset: 10; opacity: 0; }
  14% { opacity: 1; }
  24% { stroke-dashoffset: -90; opacity: 1; }
  26%, 100% { stroke-dashoffset: -100; opacity: 0; }
}
@keyframes studio-arrival {
  0%, 23% { opacity: 0; transform: scale(.5); }
  25% { opacity: 1; transform: scale(.75); }
  31% { opacity: 0; transform: scale(1.8); }
  100% { opacity: 0; transform: scale(1.8); }
}
@keyframes studio-receive {
  0% { stroke: var(--accent); }
  5%, 18% { stroke: var(--accent-2); fill: var(--surface-raised); }
  28%, 100% { stroke: rgba(var(--accent-rgb), .45); }
}
.xpad-card-stick-well { fill: var(--bg-deep); stroke: rgba(var(--accent-rgb), .5); stroke-width: 1; }
.xpad-card-stick { fill: var(--surface-raised); }
.xpad-hero-visual.is-animated .xpad-input-arrival { animation: xpad-input-arrival 8s linear infinite; }
.xpad-hero-visual.is-animated .xpad-window-selection { animation: xpad-selection-confirm 8s linear infinite; }
@keyframes xpad-input-arrival {
  0%, 35% { opacity: 0; transform: scale(.5); }
  38% { opacity: 1; transform: scale(.8); }
  45%, 100% { opacity: 0; transform: scale(2); }
}
@keyframes xpad-selection-confirm {
  0%, 58%, 84%, 100% { fill: rgba(var(--accent-rgb), .08); stroke: rgba(var(--accent-rgb), .25); }
  62%, 74% { fill: rgba(var(--accent-rgb), .24); stroke: var(--accent); }
}

.xpad-target-rays { transform-box: fill-box; transform-origin: center; }
.xpad-hero-connection .xpad-signal { stroke: var(--accent-2); stroke-width: 3; }

.meemo-flow.is-animated .studio-speaker-write { stroke-dasharray: 100; animation: studio-write 12s calc(-6s + var(--line-delay, 0s)) linear infinite; }
