/* =========================================================
   Arrow Pop — Rope-Maze Landing
   Differentiated layout: cream canvas + winding trail spine
   ========================================================= */

:root {
  --cream: #FFF9F0;
  --cream-deep: #F5EDE0;
  --ink: #1E1B4B;
  --ink-soft: #475569;
  --wood: #C4A574;
  --wood-ink: #7B4B2A;
  --gold: #E8B84A;
  --indigo: #4F46E5;
  --indigo-soft: #818CF8;
  --orange: #F97316;
  --lime: #A3E635;
  --cyan: #22D3EE;
  --violet: #C084FC;
  --pink: #F472B6;
  --white: #FFFFFF;
  --shadow: 0 12px 32px rgba(30, 27, 75, 0.08);
  --shadow-lift: 0 18px 40px rgba(30, 27, 75, 0.12);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-pill: 999px;
  --font-display: "Baloo 2", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, sans-serif;
  --nav-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

button {
  font-family: inherit;
  border: none;
  background: none;
  color: inherit;
}

.cursor-pointer {
  cursor: pointer;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 9999;
  padding: 0.75rem 1rem;
  background: var(--indigo);
  color: var(--white);
  border-radius: 0 0 8px 0;
}

.skip-link:focus {
  left: 0;
}

.icon-sm {
  width: 16px;
  height: 16px;
  stroke-width: 2.5;
}

/* ---------- Soft canvas background ---------- */
.canvas {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.canvas__glow {
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 90vmin;
  height: 60vmin;
  background: radial-gradient(
    ellipse,
    rgba(129, 140, 248, 0.22) 0%,
    rgba(244, 114, 182, 0.12) 35%,
    rgba(163, 230, 53, 0.1) 55%,
    transparent 70%
  );
  filter: blur(8px);
}

.confetti {
  position: absolute;
  width: 10px;
  height: 14px;
  border-radius: 3px;
  opacity: 0.55;
}

.confetti--1 { top: 12%; left: 8%; background: #F9A8D4; transform: rotate(18deg); }
.confetti--2 { top: 22%; right: 10%; background: #86EFAC; transform: rotate(-24deg); }
.confetti--3 { top: 48%; left: 4%; background: #FDE047; transform: rotate(40deg); }
.confetti--4 { top: 62%; right: 6%; background: #FDA4AF; transform: rotate(-12deg); }
.confetti--5 { top: 78%; left: 14%; background: #A5B4FC; transform: rotate(28deg); }
.confetti--6 { top: 35%; right: 18%; background: #67E8F9; transform: rotate(-36deg); }

.spark {
  position: absolute;
  width: 12px;
  height: 12px;
  background: var(--gold);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  opacity: 0.7;
}

.spark--1 { top: 18%; left: 22%; }
.spark--2 { top: 55%; right: 24%; }
.spark--3 { top: 85%; left: 48%; }

/* ---------- Rope pill nav ---------- */
.rope-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0.75rem 1rem;
  transition: padding 200ms var(--ease), background 200ms var(--ease);
}

.rope-nav.is-scrolled {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.rope-nav.is-scrolled .rope-nav__inner {
  box-shadow: var(--shadow-lift);
  background: rgba(255, 249, 240, 0.92);
  backdrop-filter: blur(12px);
}

.rope-nav__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0.75rem 0.55rem 0.85rem;
  background: rgba(255, 249, 240, 0.78);
  border: 3px solid #E8DFD0;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow);
  transition: box-shadow 200ms var(--ease), background 200ms var(--ease);
}

.rope-nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--ink);
}

.rope-nav__mark {
  display: flex;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
}

.rope-nav__logo {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  object-fit: cover;
  border: 2px solid #E8DFD0;
}

.rope-nav__links {
  display: flex;
  align-items: center;
  gap: 0.35rem 1.1rem;
}

.rope-nav__link {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ink-soft);
  padding: 0.35rem 0.2rem;
  transition: color 200ms var(--ease);
}

.rope-nav__link:hover,
.rope-nav__link:focus-visible {
  color: var(--indigo);
}

.rope-nav__toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 2px solid #E8DFD0;
  background: var(--white);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.rope-nav__toggle span {
  display: block;
  width: 18px;
  height: 2.5px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 200ms var(--ease), opacity 200ms var(--ease);
}

.rope-nav.is-open .rope-nav__toggle span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.rope-nav.is-open .rope-nav__toggle span:nth-child(2) {
  opacity: 0;
}

.rope-nav.is-open .rope-nav__toggle span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* ---------- Buttons ---------- */
.btn-rope {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.25rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--white);
  background: linear-gradient(180deg, #6366F1 0%, var(--indigo) 100%);
  border-radius: var(--radius-pill);
  border: 3px solid #312E81;
  box-shadow: 0 4px 0 #312E81, 0 8px 16px rgba(79, 70, 229, 0.25);
  transition: transform 180ms var(--ease), box-shadow 180ms var(--ease), filter 180ms var(--ease);
}

.btn-rope:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.btn-rope:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 #312E81, 0 4px 10px rgba(79, 70, 229, 0.2);
}

.btn-rope--sm {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}

.btn-store {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.7rem 1.15rem;
  min-width: 168px;
  background: var(--ink);
  color: var(--white);
  border-radius: 16px;
  border: 3px solid #0F172A;
  box-shadow: 0 4px 0 #0F172A;
  text-align: left;
  transition: transform 180ms var(--ease), filter 180ms var(--ease);
}

.btn-store:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.btn-store:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 #0F172A;
}

.btn-store svg {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
}

.btn-store span {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
}

.btn-store small {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.68rem;
  opacity: 0.8;
}

.btn-store--play {
  background: linear-gradient(180deg, #FB923C 0%, var(--orange) 100%);
  border-color: #C2410C;
  box-shadow: 0 4px 0 #C2410C;
}

.btn-store--play:active {
  box-shadow: 0 2px 0 #C2410C;
}

.btn-store--light {
  background: var(--white);
  color: var(--ink);
  border-color: #E8DFD0;
  box-shadow: 0 4px 0 #D6CBB8;
}

.btn-store--light:active {
  box-shadow: 0 2px 0 #D6CBB8;
}

/* ---------- Shared section bits ---------- */
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 0.65rem;
  padding: 0.35rem 0.85rem;
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--indigo);
  background: #EEF2FF;
  border-radius: var(--radius-pill);
  border: 2px solid #C7D2FE;
}

.section-eyebrow--on-dark {
  color: #EEF2FF;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.22);
}

.section-title {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  line-height: 1.15;
  color: var(--ink);
}

.section-sub {
  margin: 0;
  max-width: 36rem;
  color: var(--ink-soft);
  font-size: 1.05rem;
  font-weight: 600;
}

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem 3rem;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--indigo);
}

.hero__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-shadow: 0 2px 0 rgba(129, 140, 248, 0.15);
}

.hero__title-pop {
  background: linear-gradient(120deg, var(--orange), #F472B6, var(--indigo));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__gold-swoosh {
  width: 160px;
  height: 10px;
  margin: 0.75rem 0 1.25rem;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  box-shadow: 0 2px 0 rgba(232, 184, 74, 0.35);
}

.hero__sub {
  margin: 0 0 1.75rem;
  max-width: 30rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.hero__device {
  position: relative;
  justify-self: center;
  width: min(100%, 300px);
  filter: drop-shadow(0 20px 36px rgba(30, 27, 75, 0.14));
}

.hero__device-glow {
  position: absolute;
  inset: 8% 0;
  background: radial-gradient(ellipse at center, rgba(129, 140, 248, 0.35), transparent 68%);
  pointer-events: none;
  z-index: 0;
}

.pop-phone {
  position: relative;
  z-index: 1;
}

.pop-phone__bezel {
  position: relative;
  padding: 10px;
  background: var(--white);
  border: 3px solid #E8DFD0;
  border-radius: 32px;
  box-shadow: 0 8px 0 #D6CBB8, var(--shadow-lift);
}

.pop-phone__notch {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 72px;
  height: 18px;
  background: #1E1B4B;
  border-radius: 0 0 12px 12px;
  z-index: 2;
}

.pop-phone__screen {
  display: block;
  width: 260px;
  margin: 0 auto;
  border-radius: 22px;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  background: var(--cream);
}

.hero__hand {
  position: absolute;
  right: -8%;
  bottom: 4%;
  z-index: 2;
  animation: hand-tap 2.4s var(--ease) infinite;
  transform-origin: 30% 10%;
  filter: drop-shadow(0 6px 12px rgba(30, 27, 75, 0.15));
}

@keyframes hand-tap {
  0%, 100% { transform: translate(0, 0) rotate(-8deg); }
  45% { transform: translate(-6px, -10px) rotate(-14deg); }
  55% { transform: translate(-2px, -4px) rotate(-10deg); }
}

/* ---------- Trail features (winding path) ---------- */
.trail {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1.25rem 5rem;
}

.trail__intro {
  text-align: center;
  margin-bottom: 3rem;
}

.trail__intro .section-sub {
  margin-left: auto;
  margin-right: auto;
}

.trail__spine {
  position: absolute;
  top: 11rem;
  bottom: 4rem;
  left: 50%;
  width: 8px;
  transform: translateX(-50%);
  z-index: 0;
  pointer-events: none;
}

.trail__svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.trail__rope {
  fill: none;
  stroke: var(--wood);
  stroke-width: 7;
  stroke-linecap: round;
  filter: drop-shadow(0 0 0 #7B4B2A);
  /* faux wood outline */
  stroke: #C4A574;
}

.trail__spine::before {
  content: "";
  position: absolute;
  inset: 0;
  margin: 0 auto;
  width: 14px;
  border-radius: 999px;
  background: linear-gradient(180deg, #D4B896, #C4A574);
  border: 3px solid var(--wood-ink);
  opacity: 0.55;
  /* hide absolute line in favor of curved SVG on desktop — keep as soft blur track */
  filter: blur(0.5px);
  display: none;
}

.trail__nodes {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2.75rem;
  position: relative;
  z-index: 1;
}

.node {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
}

.node--left .node__card {
  grid-column: 1;
  justify-self: end;
}

.node--left .node__bead {
  grid-column: 2;
}

.node--right .node__bead {
  grid-column: 2;
}

.node--right .node__card {
  grid-column: 3;
  justify-self: start;
}

.node__bead {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--white);
  border-radius: 50%;
  border: 3px solid var(--wood-ink);
  background: var(--wood);
  box-shadow: 0 4px 0 var(--wood-ink);
  z-index: 2;
}

.node--lime .node__bead { background: #84CC16; border-color: #3F6212; box-shadow: 0 4px 0 #3F6212; }
.node--orange .node__bead { background: var(--orange); border-color: #C2410C; box-shadow: 0 4px 0 #C2410C; }
.node--violet .node__bead { background: #A855F7; border-color: #6B21A8; box-shadow: 0 4px 0 #6B21A8; }
.node--cyan .node__bead { background: #06B6D4; border-color: #0E7490; box-shadow: 0 4px 0 #0E7490; }

.node__card {
  width: min(100%, 340px);
  padding: 1.35rem 1.4rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 3px solid #E8DFD0;
  box-shadow: var(--shadow);
  transition: transform 220ms var(--ease), box-shadow 220ms var(--ease), border-color 220ms var(--ease);
}

.node__card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift);
}

.node--lime .node__card:hover { border-color: #A3E635; }
.node--orange .node__card:hover { border-color: #FB923C; }
.node--violet .node__card:hover { border-color: #C084FC; }
.node--cyan .node__card:hover { border-color: #22D3EE; }

.node__icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin-bottom: 0.75rem;
  border-radius: 14px;
  background: #EEF2FF;
  color: var(--indigo);
}

.node--lime .node__icon { background: #F7FEE7; color: #4D7C0F; }
.node--orange .node__icon { background: #FFF7ED; color: #C2410C; }
.node--violet .node__icon { background: #F5F3FF; color: #6B21A8; }
.node--cyan .node__icon { background: #ECFEFF; color: #0E7490; }

.node__icon svg {
  width: 24px;
  height: 24px;
}

.node__title {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
}

.node__text {
  margin: 0;
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.98rem;
}

/* ---------- How-to ---------- */
.howto {
  padding: 1rem 1.25rem 5rem;
}

.howto__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 2.75rem;
  background: linear-gradient(160deg, #FFFBF5 0%, #F5EDE0 100%);
  border: 3px solid #E0D4C2;
  border-radius: 36px;
  box-shadow: var(--shadow);
}

.howto__copy {
  text-align: center;
  margin-bottom: 2.25rem;
}

.howto__copy .section-sub {
  margin-left: auto;
  margin-right: auto;
}

.howto__steps {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 0.75rem;
  align-items: stretch;
  margin-bottom: 2.5rem;
}

.step {
  padding: 1.4rem 1.25rem;
  border-radius: var(--radius-md);
  border: 3px solid var(--wood-ink);
  background: #E8D5B5;
  box-shadow: 0 5px 0 var(--wood-ink);
}

.step--cream {
  background: #FFF9F0;
}

.step--gold {
  background: #FDE68A;
  border-color: #B45309;
  box-shadow: 0 5px 0 #B45309;
}

.step__num {
  display: block;
  margin-bottom: 0.5rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--wood-ink);
  line-height: 1;
}

.step--gold .step__num {
  color: #B45309;
}

.step__title {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--wood-ink);
}

.step__text {
  margin: 0;
  font-weight: 600;
  font-size: 0.95rem;
  color: #5C4030;
}

.step__connector {
  display: grid;
  place-items: center;
  color: var(--wood-ink);
  opacity: 0.55;
}

.step__connector svg {
  width: 28px;
  height: 28px;
}

.shot-rail {
  display: flex;
  justify-content: flex-start;
  gap: 1rem;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding: 0.5rem 0.25rem 1rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--wood) transparent;
}

.shot-rail::-webkit-scrollbar {
  height: 6px;
}

.shot-rail::-webkit-scrollbar-thumb {
  background: var(--wood);
  border-radius: 999px;
}

.shot {
  margin: 0;
  flex: 0 0 auto;
  width: min(42vw, 180px);
  scroll-snap-align: center;
  border-radius: 28px;
  overflow: hidden;
  border: 3px solid #E8DFD0;
  background: var(--white);
  box-shadow: var(--shadow);
  transition: transform 220ms var(--ease);
}

.shot--lift {
  transform: translateY(-16px);
}

.shot:hover {
  transform: translateY(-6px);
}

.shot--lift:hover {
  transform: translateY(-22px);
}

.shot img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
}

/* ---------- Download ---------- */
.download {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem 5rem;
}

.download__card {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 3.25rem 1.75rem;
  border-radius: 36px;
  background: linear-gradient(135deg, #312E81 0%, var(--indigo) 45%, #7C3AED 100%);
  color: var(--white);
  border: 3px solid #1E1B4B;
  box-shadow: 0 8px 0 #1E1B4B, var(--shadow-lift);
}

.download__banner {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.22;
  pointer-events: none;
}

.download__glow,
.download__title,
.download__sub,
.download__ctas,
.download__card .section-eyebrow {
  position: relative;
  z-index: 1;
}

.download__glow {
  position: absolute;
  inset: -40% auto auto 50%;
  transform: translateX(-50%);
  width: 70%;
  height: 80%;
  background: radial-gradient(circle, rgba(251, 146, 60, 0.35), transparent 65%);
  pointer-events: none;
}

.download__title {
  position: relative;
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  line-height: 1.15;
}

.download__sub {
  position: relative;
  margin: 0 auto 1.75rem;
  max-width: 28rem;
  font-weight: 600;
  opacity: 0.9;
}

.download__ctas {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
}

/* ---------- Footer ---------- */
.site-footer {
  padding: 2.5rem 1.25rem 3rem;
  border-top: 3px solid #E8DFD0;
  background: #FFFBF5;
}

.site-footer__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
}

.site-footer__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--ink);
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.site-footer__links a {
  transition: color 180ms var(--ease);
}

.site-footer__links a:hover,
.site-footer__links a:focus-visible {
  color: var(--indigo);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-footer__copy {
  margin: 0;
  width: 100%;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-soft);
}

/* ---------- Modal ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 220ms var(--ease), visibility 220ms var(--ease);
}

.modal.is-open {
  opacity: 1;
  visibility: visible;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(30, 27, 75, 0.45);
  cursor: pointer;
}

.modal__panel {
  position: relative;
  width: min(100%, 400px);
  padding: 2rem 1.75rem 1.75rem;
  text-align: center;
  background: var(--cream);
  border: 3px solid #E8DFD0;
  border-radius: 28px;
  box-shadow: var(--shadow-lift);
  transform: translateY(12px) scale(0.96);
  transition: transform 220ms var(--ease);
}

.modal.is-open .modal__panel {
  transform: translateY(0) scale(1);
}

.modal__close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  border: 2px solid #E8DFD0;
  background: var(--white);
  color: var(--ink);
  transition: background 180ms var(--ease);
}

.modal__close:hover {
  background: #EEF2FF;
}

.modal__close svg {
  width: 18px;
  height: 18px;
}

.modal__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  display: grid;
  place-items: center;
  border-radius: 20px;
  background: #EEF2FF;
  color: var(--indigo);
  border: 3px solid #C7D2FE;
}

.modal__icon svg {
  width: 30px;
  height: 30px;
}

.modal__title {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.65rem;
}

.modal__text {
  margin: 0 0 1.35rem;
  font-weight: 600;
  color: var(--ink-soft);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 1.5rem;
  }

  .hero__sub {
    margin-left: auto;
    margin-right: auto;
  }

  .hero__ctas {
    justify-content: center;
  }

  .hero__gold-swoosh {
    margin-left: auto;
    margin-right: auto;
  }

  .hero__device {
    order: -1;
    width: min(100%, 260px);
  }

  .pop-phone__screen {
    width: 220px;
  }

  .howto__steps {
    grid-template-columns: 1fr;
  }

  .step__connector {
    transform: rotate(90deg);
    padding: 0.15rem 0;
  }
}

@media (max-width: 768px) {
  .rope-nav__toggle {
    display: inline-flex;
  }

  .rope-nav__links {
    position: absolute;
    top: calc(100% + 0.35rem);
    left: 1rem;
    right: 1rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
    padding: 1rem;
    background: rgba(255, 249, 240, 0.98);
    border: 3px solid #E8DFD0;
    border-radius: 22px;
    box-shadow: var(--shadow-lift);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 200ms var(--ease), visibility 200ms var(--ease), transform 200ms var(--ease);
  }

  .rope-nav.is-open .rope-nav__links {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .rope-nav__link {
    padding: 0.7rem 0.85rem;
    border-radius: 12px;
  }

  .rope-nav__link:hover {
    background: #EEF2FF;
  }

  .rope-nav__links .btn-rope {
    width: 100%;
    margin-top: 0.35rem;
  }

  .node {
    grid-template-columns: 44px 1fr;
    gap: 0.85rem;
  }

  .node--left .node__bead,
  .node--right .node__bead {
    grid-column: 1;
    grid-row: 1;
  }

  .node--left .node__card,
  .node--right .node__card {
    grid-column: 2;
    justify-self: stretch;
    width: 100%;
  }

  .trail__spine {
    left: calc(1.25rem + 22px);
    transform: none;
    width: 6px;
  }

  .trail__rope {
    display: none;
  }

  .trail__spine::before {
    display: block;
    width: 10px;
    opacity: 0.7;
  }

  .shot-rail {
    justify-content: flex-start;
    margin: 0 -0.5rem;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }

  .shot {
    width: min(42vw, 150px);
  }

  .shot--lift {
    transform: none;
  }

  .site-footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (min-width: 901px) {
  .pop-phone__screen {
    width: 280px;
  }

  .shot-rail {
    justify-content: center;
    flex-wrap: wrap;
    overflow-x: visible;
  }

  .shot {
    width: min(18%, 180px);
  }
}

@media (max-width: 480px) {
  .hero__ctas .btn-store {
    width: 100%;
    justify-content: center;
  }

  .download__ctas .btn-store {
    width: 100%;
    justify-content: center;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .hero__hand {
    animation: none;
  }
}

/* Focus visibility */
:focus-visible {
  outline: 3px solid var(--indigo-soft);
  outline-offset: 3px;
}
