/* Phone-first collection: one scene, a swipe row, then the app's next steps. */
html:has(> body.home) { scroll-padding-top: 80px; }
.home main { padding-bottom: 24px; }
.home .top-nav { min-height: 64px; }
.home .brand { min-height: 44px; }
.home .skip { min-height: 44px; }
.home .tools { gap: 4px; }
.home .lang summary { padding-inline: 4px; font-size: 11px; }
.home .top-nav > .links { display: none; }
.home .mobile-menu { display: block; margin-inline-start: auto; }
.home .top-nav { position: relative; gap: 8px; }
.home .mobile-menu summary { width: 44px; height: 44px; display: grid; place-items: center; cursor: pointer; list-style: none; border: 1px solid var(--line-strong); border-radius: 50%; }
.home .mobile-menu summary::-webkit-details-marker { display: none; }
.home .mobile-menu ul { position: absolute; inset-block-start: 100%; inset-inline: var(--gutter); padding: 12px; margin: 0; list-style: none; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--s1); box-shadow: var(--shadow3); max-height: 70vh; overflow-y: auto; }
.home .mobile-menu a { display: block; padding: 12px; color: var(--text); font-size: 14px; min-height: 44px; }
.home .lang ul { inset-inline-end: 0; inset-inline-start: auto; max-height: 70vh; overflow-y: auto; }
.home .lang li a { min-height: 44px; display: flex; align-items: center; }
.home .studio-hero { padding-block: 16px 20px; overflow: visible; }
.home .studio-kicker { padding-bottom: 12px; }
.home .studio-kicker .eyebrow { font-size: 10px; letter-spacing: .04em; }
.home .studio-kicker > .mono { display: none; }
.home .studio-hero h1 { font-size: clamp(36px, 10vw, 58px); line-height: 1.06; letter-spacing: -.055em; max-width: 14ch; margin-block: 20px 12px; }
.home-promise { font-size: 14px; color: var(--text2); margin-bottom: 20px; }
.home .hero-actions { gap: 8px; margin: 0; }
.home .hero-actions .btn { padding-inline: 16px; font-size: 14px; }
.home .hero-composition { margin-top: 24px; }
.home .hero-orbit, .home .hero-toggle { display: none; }
.home .studio-shelf { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px 2px 12px; margin: 0; }
.home .studio-shelf a { flex: 0 0 84px; gap: 8px; font-size: 12px; scroll-snap-align: start; padding-block: 4px; }
.home .studio-shelf .hero-token { translate: none; }
.home .journey-layout { display: block; margin: 0; }
.home .journey-rail { display: none; position: static; }
.home .chapters { padding: 0; display: grid; gap: 16px; min-width: 0; }
.home .app-chapter { min-width: 0; padding: 16px; border: 1px solid color-mix(in srgb, var(--app-accent) 24%, var(--line)); border-radius: 24px; background: color-mix(in srgb, var(--app-accent) 8%, var(--s1)); scroll-margin-top: 0; display: grid; gap: 12px; }
.home .app-chapter:nth-child(even) { background: color-mix(in srgb, var(--app-accent) 15%, var(--bg)); }
.home .app-chapter + .app-chapter { padding-top: 16px; }
.home-identity { display: flex; gap: 12px; align-items: center; min-width: 0; }
.home-identity img { border-radius: 12px; flex: none; }
.home-identity > div { min-width: 0; }
.home-app-name { font-size: 16px; font-weight: 700; }
.home-identity p { font-size: 14px; line-height: 1.4; margin: 2px 0 0; color: var(--text2); }
.home-platform { font-size: 10px; color: var(--text2); margin-inline-start: auto; flex: none; }
.home .app-chapter > h2 { font-size: clamp(26px, 7vw, 32px); line-height: 1.15; letter-spacing: -.045em; margin: 0; }
.home-feature { margin: 0; min-width: 0; border-radius: 16px; border: 1px solid color-mix(in srgb, var(--app-accent) 25%, var(--line)); background: var(--s1); overflow: hidden; }
.home-feature-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 12px 0; }
.home-feature-top p { color: var(--text2); font-size: 14px; line-height: 1.4; margin: 0; }
.home .motion-toggle { width: 44px; height: 44px; flex: none; }
.home-feature figcaption { padding: 8px 12px; border-top: 1px solid var(--line); }
.home-feature h3 { font-size: 16px; line-height: 1.35; letter-spacing: -.025em; margin: 0; }
.home-stage { position: relative; display: flex; align-items: center; gap: 12px; padding: 8px 12px; min-height: 120px; font-size: 14px; line-height: 1.35; background: radial-gradient(ellipse at 50% 80%, color-mix(in srgb, var(--app-accent) 12%, transparent), transparent 75%); }
.home-stage .scene-label { font-size: 14px; line-height: 1.35; text-wrap: pretty; }
.home-stage .scene-icon { color: color-mix(in srgb, var(--app-accent) 50%, var(--text)); }
.home-endpoint { flex: 1; min-width: 0; text-align: center; display: grid; justify-items: center; gap: 8px; }
.home-stage-clipsync { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.home-stage-clipsync .home-endpoint { grid-row: 1; }
.home-stage-clipsync .home-transfer { grid-column: 1 / -1; display: flex; justify-content: center; align-items: center; gap: 12px; }
.home-stage-clipsync .home-signal { margin: 0; }
.home-device-mark { width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--bg); }
.home-transfer { flex: 1; min-width: 0; text-align: center; }
.home-signal { display: flex; justify-content: center; gap: 4px; margin-bottom: 12px; }
.home-signal i { height: 4px; width: 12px; border-radius: 2px; background: var(--app-accent); }
.home-stage-moneta { display: block; }
.home-chart-title, .home-chart-key { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.home-spark { font-size: 24px; color: color-mix(in srgb, var(--app-accent) 50%, var(--text)); }
.home-chart { display: flex; align-items: end; gap: 8px; height: 48px; margin-block: 8px; border-bottom: 1px solid var(--line); }
.home-chart i { flex: 1; height: 45%; border-radius: 4px 4px 0 0; background: color-mix(in srgb, var(--app-accent) 65%, var(--s2)); transform-origin: bottom; }
.home-chart i:nth-child(2n) { height: 72%; }
.home-chart i:nth-child(3n) { height: 95%; }
.home-chart-key { color: var(--text2); }
.home-note { width: 100%; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); }
.home-note-heading, .home-saved { display: flex; align-items: center; gap: 8px; }
.home-note-value { display: grid; gap: 4px; padding-block: 8px; }
.home-password { font-size: 20px; letter-spacing: .03em; }
.home-note-rule { height: 8px; width: 60%; background: color-mix(in srgb, var(--app-accent) 30%, var(--s2)); border-radius: 4px; }
.home-saved { color: color-mix(in srgb, var(--app-accent) 40%, var(--text)); }
.home-lock, .home-sound-button { display: grid; justify-items: center; place-content: center; gap: 12px; flex: 0 0 88px; height: 100px; border-radius: 24px; background: color-mix(in srgb, var(--app-accent) 18%, var(--bg)); border: 1px solid color-mix(in srgb, var(--app-accent) 30%, var(--line)); }
.home-lock > .scene-icon, .home-sound-button > .scene-icon { width: 36px; height: 36px; }
.home-lock-labels, .home-sound-labels, .home-timer-labels { display: grid; gap: 10px; min-width: 0; flex: 1; }
.home-pin { font-size: 18px; }
.home-sound-button { border-radius: 50%; flex-basis: 92px; height: 92px; box-shadow: 0 6px 0 color-mix(in srgb, var(--app-accent) 40%, var(--s2)); }
.home-sound-rings { width: 40px; height: 8px; border-block: 2px solid var(--app-accent); border-radius: 50%; }
.home-timer { display: grid; justify-items: center; gap: 8px; flex: 0 0 88px; }
.home-timer .mono { font-size: 20px; }
.home-clock { position: relative; width: 64px; height: 64px; border: 2px solid color-mix(in srgb, var(--app-accent) 50%, var(--text)); border-radius: 50%; }
.home-clock::before, .home-clock i { content: ''; position: absolute; left: 30px; top: 12px; width: 2px; height: 20px; border-radius: 2px; background: var(--text); transform-origin: bottom; }
.home-clock i { rotate: 90deg; }
.home-stage-zensit { display: grid; grid-template-columns: 1fr 1fr; }
.home-landscape { position: relative; height: 104px; border-radius: 60px 60px 12px 12px; overflow: hidden; background: color-mix(in srgb, var(--app-accent) 20%, var(--bg)); }
.home-sun { position: absolute; width: 32px; height: 32px; border-radius: 50%; top: 16px; right: 20px; background: color-mix(in srgb, #E8AE5E 70%, var(--s1)); }
.home-hill { position: absolute; inset: 55px -24px -32px; border-radius: 50%; background: color-mix(in srgb, var(--app-accent) 55%, var(--s2)); rotate: -15deg; }
.home-water { position: absolute; inset: 64px 32% 0 40%; background: color-mix(in srgb, var(--app-accent) 15%, var(--s1)); border-radius: 50% 50% 0 0; rotate: 20deg; }
.home-bench { position: absolute; width: 32px; height: 12px; border-block: 3px solid var(--text2); bottom: 20px; left: 16px; }
.home-calm-labels { display: grid; gap: 12px; }
.home-pains { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 2px; padding: 2px 2px 8px; min-width: 0; }
.home-pains .pain-card { flex: 0 0 88%; scroll-snap-align: start; display: grid; grid-template-columns: 12px 1fr; align-content: start; gap: 4px 8px; padding: 8px; border: 1px solid color-mix(in srgb, var(--app-accent) 20%, var(--line)); border-radius: 12px; background: color-mix(in srgb, var(--s1) 70%, transparent); }
.home-pains .pain-card > p { grid-column: 1 / -1; margin: 0; font-size: 14px; line-height: 1.4; color: var(--text2); }
.home-pains .pain-card h3 { font-size: 14px; line-height: 1.4; margin: 0; letter-spacing: -.015em; }
.pain-accent { color: color-mix(in srgb, var(--app-accent) 45%, var(--text)); }
.home-actions .cta { margin: 0; gap: 8px 12px; align-items: center; }
.home-actions .btn { font-size: 14px; padding-inline: 16px; }
.home-actions .text-link { font-size: 14px; min-height: 44px; }
.home-actions .play-cta { flex: 1 1 auto; }
.home .foot a { min-height: 44px; display: inline-flex; align-items: center; max-width: 100%; overflow-wrap: anywhere; }
.home .foot { padding-block: 24px 16px; }
.home .foot-grid { gap: 16px; margin-bottom: 16px; }
.home .foot-grid li { padding: 0; }
.home .foot > .micro { padding-top: 16px; }
[dir="rtl"] .home .pain-accent, [dir="rtl"] .home .text-link > span { transform: scaleX(-1); }
@media (min-width: 768px) {
  .home .top-nav > .links { display: flex; margin-inline: auto 0; }
  .home .mobile-menu { display: none; }
  .home .studio-hero { padding-block: 40px 56px; }
  .home .studio-kicker > .mono { display: block; }
  .home .studio-hero h1 { font-size: clamp(64px, 8vw, 112px); max-width: 14ch; margin-block: 32px 24px; }
  .home-promise { font-size: 18px; }
  .home .journey-layout { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 28px; }
  .home .journey-rail { display: block; position: sticky; top: 88px; padding-top: 20px; }
  .home .journey-rail a { min-height: 44px; }
  .home .app-chapter { padding: 28px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
  .home .app-chapter + .app-chapter { padding-top: 28px; }
  .home-identity { grid-column: 1 / -1; }
  .home .app-chapter > h2 { font-size: clamp(28px, 3.2vw, 44px); align-self: center; }
  .home-feature { grid-column: 2; grid-row: 2 / 4; align-self: center; }
  .home-pains { grid-column: 1 / -1; }
  .home-pains .pain-card { flex-basis: 45%; }
  .home-actions { grid-column: 1; grid-row: 3; align-self: start; }
  .home-platform { font-size: 12px; }
  .home .foot-grid { grid-template-columns: 2fr 1fr 1fr; }
}
@media (min-width: 1024px) {
  .home .hero-orbit { display: block; }
  .home .hero-toggle:not([hidden]) { display: grid; }
  .home .studio-shelf { display: grid; grid-template-columns: repeat(8, 1fr); overflow: visible; padding-block: 48px 24px; }
  .home .studio-shelf a { font-size: 14px; }
  .home .studio-shelf a:nth-child(even) .hero-token { translate: 0 -16px; }
  .home .studio-shelf a:nth-child(3n) .hero-token { translate: 0 9px; }
}
@media (prefers-reduced-motion: reduce) {
  .home .studio-shelf a .hero-token { translate: none; }
  .home .hero-toggle { display: none; }
  .home .studio-shelf { scroll-behavior: auto; }
}
