/* =========================================================
   ArrowFortune — Lucky Orbit Landing
   Soft lavender · glossy green CTAs · bubbly 3D casual UI
   Differentiated layout: centered phone orbit + bubble constellation
   ========================================================= */

:root {
  --af-navy: #1a2b56;
  --af-navy-soft: #2c3f6e;
  --af-text: #1a2b56;
  --af-muted: #5a6a8a;
  --af-green: #76c121;
  --af-green-deep: #5a9a12;
  --af-green-glow: #9ad94a;
  --af-sky: #4aa3ff;
  --af-sky-soft: #d6e8ff;
  --af-gold: #f5c518;
  --af-gold-deep: #e8a800;
  --af-pink: #ff6b9d;
  --af-lavender: #f5f0ff;
  --af-lavender-mid: #ebe3ff;
  --af-white: #ffffff;
  --af-radius-xl: 40px;
  --af-radius-lg: 28px;
  --af-radius-md: 20px;
  --af-radius-pill: 999px;
  --af-shadow-soft: 0 12px 40px rgba(26, 43, 86, 0.1);
  --af-shadow-float: 0 20px 60px rgba(26, 43, 86, 0.14);
  --af-shadow-btn: 0 8px 0 var(--af-green-deep), 0 14px 28px rgba(90, 154, 18, 0.35);
  --af-font-display: "Fredoka", system-ui, sans-serif;
  --af-font-body: "Nunito", system-ui, sans-serif;
  --af-nav-h: 72px;
  --af-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--af-font-body);
  color: var(--af-text);
  background: var(--af-lavender);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

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

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

button {
  font: inherit;
  border: none;
  background: none;
  cursor: pointer;
}

ul,
ol {
  list-style: none;
}

code {
  font-size: 0.85em;
  background: rgba(26, 43, 86, 0.06);
  padding: 0.1em 0.4em;
  border-radius: 6px;
}

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

.af-skip:focus {
  left: 1rem;
  top: 1rem;
}

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

.af-stage__wash {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, #fff 0%, transparent 55%),
    radial-gradient(ellipse 60% 40% at 90% 40%, rgba(154, 217, 74, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse 50% 40% at 10% 70%, rgba(74, 163, 255, 0.12) 0%, transparent 50%),
    linear-gradient(180deg, #f5f0ff 0%, #faf8ff 40%, #ffffff 100%);
}

.af-stage__swoosh {
  position: absolute;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.7);
  opacity: 0.5;
}

.af-stage__swoosh--1 {
  width: 140vw;
  height: 60vw;
  left: -20vw;
  top: 8%;
  transform: rotate(-8deg);
}

.af-stage__swoosh--2 {
  width: 120vw;
  height: 50vw;
  right: -30vw;
  top: 45%;
  transform: rotate(6deg);
  opacity: 0.35;
}

.af-spark {
  position: absolute;
  width: 14px;
  height: 14px;
  background: var(--af-gold);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  animation: af-twinkle 2.8s ease-in-out infinite;
}

.af-spark--1 { top: 12%; left: 8%; animation-delay: 0s; }
.af-spark--2 { top: 22%; right: 12%; animation-delay: 0.6s; width: 10px; height: 10px; }
.af-spark--3 { top: 55%; left: 5%; animation-delay: 1.2s; width: 12px; height: 12px; }
.af-spark--4 { top: 70%; right: 8%; animation-delay: 0.3s; }
.af-spark--5 { top: 38%; left: 18%; animation-delay: 1.8s; width: 8px; height: 8px; }

@keyframes af-twinkle {
  0%, 100% { opacity: 0.35; transform: scale(0.85) rotate(0deg); }
  50% { opacity: 1; transform: scale(1.15) rotate(20deg); }
}

/* ---------- Nav: floating glass capsule ---------- */
.af-nav {
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 1rem;
  width: min(960px, calc(100% - 1.5rem));
  padding: 0.55rem 0.7rem 0.55rem 0.9rem;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--af-radius-pill);
  box-shadow: var(--af-shadow-soft);
  transition: box-shadow 0.25s var(--af-ease), background 0.25s;
}

.af-nav.is-scrolled {
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--af-shadow-float);
}

.af-nav__brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-shrink: 0;
}

.af-nav__icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(26, 43, 86, 0.15);
}

.af-nav__name {
  font-family: var(--af-font-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  color: var(--af-navy);
}

.af-nav__links {
  display: none;
  flex: 1;
  justify-content: center;
  gap: 0.25rem;
}

.af-nav__links a {
  padding: 0.45rem 0.85rem;
  border-radius: var(--af-radius-pill);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--af-muted);
  transition: color 0.2s, background 0.2s;
}

.af-nav__links a:hover,
.af-nav__links a:focus-visible {
  color: var(--af-navy);
  background: rgba(118, 193, 33, 0.12);
  outline: none;
}

.af-nav__cta {
  display: none;
}

.af-burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  margin-left: auto;
  border-radius: 12px;
  padding: 10px;
  transition: background 0.2s;
}

.af-burger:hover {
  background: rgba(26, 43, 86, 0.06);
}

.af-burger span {
  display: block;
  height: 2.5px;
  background: var(--af-navy);
  border-radius: 2px;
  transition: transform 0.25s var(--af-ease), opacity 0.2s;
}

.af-burger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.af-burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.af-burger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

.af-drawer {
  position: fixed;
  top: calc(1rem + 64px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 99;
  width: min(960px, calc(100% - 1.5rem));
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  border-radius: var(--af-radius-lg);
  box-shadow: var(--af-shadow-float);
  border: 1px solid rgba(255, 255, 255, 0.9);
}

.af-drawer[hidden] {
  display: none;
}

.af-drawer a {
  padding: 0.85rem 1rem;
  border-radius: var(--af-radius-md);
  font-weight: 700;
  color: var(--af-navy);
  transition: background 0.2s;
}

.af-drawer a:hover {
  background: var(--af-lavender);
}

/* ---------- Buttons ---------- */
.af-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.35rem;
  border-radius: var(--af-radius-pill);
  font-family: var(--af-font-display);
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.2s var(--af-ease), filter 0.2s, box-shadow 0.2s;
}

.af-btn--green {
  color: #fff;
  background: linear-gradient(180deg, var(--af-green-glow) 0%, var(--af-green) 55%, var(--af-green-deep) 100%);
  box-shadow: var(--af-shadow-btn);
}

.af-btn--green:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
}

.af-btn--green:active {
  transform: translateY(4px);
  box-shadow: 0 2px 0 var(--af-green-deep), 0 6px 12px rgba(90, 154, 18, 0.3);
}

.af-btn--block {
  width: 100%;
  margin-top: 0.5rem;
}

.af-btn svg,
.af-store svg {
  width: 1.15em;
  height: 1.15em;
  flex-shrink: 0;
}

/* Store buttons */
.af-store {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.7rem 1.25rem;
  background: var(--af-navy);
  color: #fff;
  border-radius: var(--af-radius-md);
  box-shadow: 0 10px 28px rgba(26, 43, 86, 0.25);
  text-align: left;
  transition: transform 0.2s var(--af-ease), box-shadow 0.2s, background 0.2s;
}

.af-store:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(26, 43, 86, 0.3);
  background: var(--af-navy-soft);
}

.af-store:focus-visible {
  outline: 3px solid var(--af-green);
  outline-offset: 3px;
}

.af-store svg {
  width: 1.6rem;
  height: 1.6rem;
}

.af-store span {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.af-store small {
  font-size: 0.65rem;
  opacity: 0.75;
  font-weight: 500;
}

.af-store strong {
  font-family: var(--af-font-display);
  font-size: 1rem;
  font-weight: 600;
}

.af-store--light {
  background: #fff;
  color: var(--af-navy);
  box-shadow: 0 10px 28px rgba(26, 43, 86, 0.15);
}

.af-store--light:hover {
  background: #fff;
  box-shadow: 0 14px 36px rgba(26, 43, 86, 0.22);
}

/* ---------- Sections common ---------- */
main {
  padding-top: calc(var(--af-nav-h) + 1.5rem);
}

.af-section-head {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 2.5rem;
  padding: 0 1.25rem;
}

.af-section-head__label {
  display: inline-block;
  margin-bottom: 0.6rem;
  padding: 0.3rem 0.9rem;
  background: rgba(118, 193, 33, 0.15);
  color: var(--af-green-deep);
  border-radius: var(--af-radius-pill);
  font-family: var(--af-font-display);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.af-section-head h2 {
  font-family: var(--af-font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--af-navy);
  line-height: 1.2;
  margin-bottom: 0.6rem;
}

.af-section-head p {
  color: var(--af-muted);
  font-size: 1.05rem;
}

/* ---------- Hero ---------- */
.af-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem 1.25rem 4rem;
  text-align: center;
}

.af-hero__eyebrow {
  font-family: var(--af-font-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.14em;
  color: var(--af-navy);
  margin-bottom: 0.75rem;
}

.af-hero__title {
  font-family: var(--af-font-display);
  font-size: clamp(2.4rem, 8vw, 4rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--af-navy);
  margin-bottom: 1rem;
}

.af-hero__title span {
  background: linear-gradient(120deg, var(--af-green) 0%, var(--af-sky) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.af-hero__sub {
  max-width: 480px;
  margin: 0 auto;
  color: var(--af-muted);
  font-size: 1.1rem;
  font-weight: 500;
}

.af-hero__cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
  margin-top: 0.5rem;
}

/* Phone orbit */
.af-orbit {
  position: relative;
  width: min(440px, 100%);
  aspect-ratio: 3 / 4;
  margin: 1.5rem auto 2rem;
  display: grid;
  place-items: center;
}

/* Showcase: full promo art (already has phone) */
.af-showcase {
  position: relative;
  z-index: 2;
  width: min(340px, 82%);
  margin: 0;
  border-radius: 36px;
  overflow: hidden;
  background: #fff;
  box-shadow:
    0 28px 60px rgba(26, 43, 86, 0.22),
    0 0 0 6px rgba(255, 255, 255, 0.65);
}

.af-showcase img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* Legacy phone bezel kept for optional reuse */
.af-phone {
  position: relative;
  z-index: 2;
  width: min(260px, 68%);
  filter: drop-shadow(0 28px 50px rgba(26, 43, 86, 0.28));
}

.af-phone__bezel {
  position: relative;
  border-radius: 36px;
  padding: 10px;
  background: linear-gradient(160deg, #2a3a5c 0%, #1a2b56 50%, #0f1a38 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    0 0 0 3px rgba(255, 255, 255, 0.15);
}

.af-phone__notch {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: 36%;
  height: 18px;
  background: #0a1228;
  border-radius: 0 0 14px 14px;
  z-index: 3;
}

.af-phone__screen {
  width: 100%;
  aspect-ratio: 9 / 19.5;
  object-fit: cover;
  border-radius: 28px;
  background: linear-gradient(180deg, #eef5ff, #f5f0ff);
}

/* Floating gold coins */
.af-coin {
  position: absolute;
  z-index: 3;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffe566, var(--af-gold) 45%, var(--af-gold-deep) 80%);
  box-shadow:
    inset 0 -4px 8px rgba(180, 100, 0, 0.35),
    inset 0 3px 6px rgba(255, 255, 255, 0.55),
    0 8px 20px rgba(232, 168, 0, 0.45);
  color: #b87500;
  font-family: var(--af-font-display);
  font-weight: 700;
  animation: af-float 4s ease-in-out infinite;
}

.af-coin span {
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.4);
}

.af-coin--1 {
  width: 64px;
  height: 64px;
  font-size: 1.6rem;
  top: 8%;
  left: 2%;
  animation-delay: 0s;
}

.af-coin--2 {
  width: 48px;
  height: 48px;
  font-size: 1.2rem;
  top: 18%;
  right: 0;
  animation-delay: 0.8s;
  opacity: 0.9;
}

.af-coin--3 {
  width: 72px;
  height: 72px;
  font-size: 1.85rem;
  bottom: 18%;
  left: -4%;
  animation-delay: 1.4s;
}

.af-coin--4 {
  width: 40px;
  height: 40px;
  font-size: 1rem;
  bottom: 12%;
  right: 4%;
  animation-delay: 0.4s;
  filter: blur(0.3px);
  opacity: 0.85;
}

@keyframes af-float {
  0%, 100% { transform: translateY(0) rotate(-6deg); }
  50% { transform: translateY(-14px) rotate(6deg); }
}

/* Ticker */
.af-ticker {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  max-width: 520px;
  margin-top: 1.75rem;
  padding: 0.75rem 1.25rem;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: var(--af-radius-pill);
  box-shadow: var(--af-shadow-soft);
  text-align: left;
}

.af-ticker svg {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--af-gold-deep);
  flex-shrink: 0;
}

.af-ticker p {
  font-size: 0.9rem;
  color: var(--af-muted);
  font-weight: 500;
}

.af-ticker strong {
  color: var(--af-green-deep);
  font-weight: 800;
}

/* ---------- Features: bubble constellation ---------- */
.af-features {
  padding: 3rem 1.25rem 5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.af-bubbles {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.1rem;
}

.af-bubble {
  position: relative;
  padding: 1.75rem 1.5rem;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: var(--af-radius-xl);
  box-shadow: var(--af-shadow-soft);
  transition: transform 0.25s var(--af-ease), box-shadow 0.25s;
}

.af-bubble:hover {
  transform: translateY(-4px);
  box-shadow: var(--af-shadow-float);
}

.af-bubble__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 1rem;
  border-radius: 16px;
  color: #fff;
}

.af-bubble__icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

.af-bubble--green .af-bubble__icon {
  background: linear-gradient(145deg, var(--af-green-glow), var(--af-green));
}

.af-bubble--sky .af-bubble__icon {
  background: linear-gradient(145deg, #7bc4ff, var(--af-sky));
}

.af-bubble--gold .af-bubble__icon {
  background: linear-gradient(145deg, #ffe566, var(--af-gold-deep));
}

.af-bubble--pink .af-bubble__icon {
  background: linear-gradient(145deg, #ff9ec0, var(--af-pink));
}

.af-bubble h3 {
  font-family: var(--af-font-display);
  font-size: 1.25rem;
  font-weight: 650;
  margin-bottom: 0.4rem;
  color: var(--af-navy);
}

.af-bubble p {
  color: var(--af-muted);
  font-size: 0.98rem;
}

.af-bubble--lg {
  border-radius: 48px;
}

/* ---------- How to play: zigzag path ---------- */
.af-play {
  padding: 2rem 1.25rem 5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.af-path {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.5rem;
}

.af-path__step {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
}

.af-path__num {
  font-family: var(--af-font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--af-green);
  line-height: 1;
  opacity: 0.85;
}

.af-path__card {
  width: 100%;
  padding: 1.5rem;
  background: #fff;
  border-radius: var(--af-radius-lg);
  box-shadow: var(--af-shadow-soft);
  border: 2px solid transparent;
  background-image:
    linear-gradient(#fff, #fff),
    linear-gradient(135deg, var(--af-green-glow), var(--af-sky));
  background-origin: border-box;
  background-clip: padding-box, border-box;
}

.af-path__card svg {
  width: 1.75rem;
  height: 1.75rem;
  color: var(--af-sky);
  margin-bottom: 0.6rem;
}

.af-path__card h3 {
  font-family: var(--af-font-display);
  font-size: 1.2rem;
  margin-bottom: 0.35rem;
}

.af-path__card p {
  color: var(--af-muted);
  font-size: 0.95rem;
}

.af-path__connector {
  display: none;
  color: rgba(118, 193, 33, 0.45);
  height: 40px;
  align-self: center;
  width: 80px;
}

.af-path__connector svg {
  width: 100%;
  height: 100%;
}

/* ---------- Screenshots fan ---------- */
.af-shots {
  padding: 2rem 1.25rem 4rem;
  overflow: hidden;
}

.af-fan {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  height: min(480px, 70vw);
  max-width: 900px;
  margin: 0 auto;
  perspective: 1200px;
}

.af-fan__card {
  position: absolute;
  width: min(200px, 38vw);
  border-radius: 28px;
  overflow: hidden;
  background: #fff;
  padding: 8px;
  box-shadow: var(--af-shadow-float);
  border: 1px solid rgba(255, 255, 255, 0.9);
  transition: transform 0.35s var(--af-ease);
  cursor: pointer;
}

.af-fan__card img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: center top;
  border-radius: 22px;
  background: var(--af-lavender-mid);
}

.af-fan__card--1 {
  transform: translateX(-110%) rotate(-14deg);
  z-index: 1;
}

.af-fan__card--2 {
  transform: translateX(-36%) rotate(-5deg);
  z-index: 2;
}

.af-fan__card--3 {
  transform: translateX(36%) rotate(5deg);
  z-index: 3;
}

.af-fan__card--4 {
  transform: translateX(110%) rotate(14deg);
  z-index: 1;
}

.af-fan__card--1:hover {
  z-index: 5;
  transform: translateX(-110%) translateY(-16px) scale(1.05) rotate(-6deg);
}

.af-fan__card--2:hover {
  z-index: 5;
  transform: translateX(-36%) translateY(-20px) scale(1.06) rotate(0deg);
}

.af-fan__card--3:hover {
  z-index: 5;
  transform: translateX(36%) translateY(-20px) scale(1.06) rotate(0deg);
}

.af-fan__card--4:hover {
  z-index: 5;
  transform: translateX(110%) translateY(-16px) scale(1.05) rotate(6deg);
}

.af-shots__hint {
  display: none;
}

/* ---------- Download island ---------- */
.af-download {
  padding: 2rem 1.25rem 4rem;
}

.af-download__island {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  padding: 3rem 1.75rem;
  text-align: center;
  border-radius: 48px;
  background: linear-gradient(145deg, #6bb81a 0%, var(--af-green) 40%, #8fd42e 100%);
  box-shadow:
    0 20px 0 #4a8a10,
    0 28px 60px rgba(90, 154, 18, 0.4);
  overflow: hidden;
  color: #fff;
}

.af-download__glow {
  position: absolute;
  inset: -40% -20% auto;
  height: 80%;
  background: radial-gradient(ellipse, rgba(255, 255, 255, 0.35), transparent 65%);
  pointer-events: none;
}

.af-download__island h2 {
  position: relative;
  font-family: var(--af-font-display);
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.12);
}

.af-download__island > p {
  position: relative;
  margin-bottom: 1.75rem;
  opacity: 0.92;
  font-weight: 600;
}

.af-download__island .af-hero__cta {
  position: relative;
}

/* ---------- FAQ ---------- */
.af-faq {
  padding: 2rem 1.25rem 5rem;
  max-width: 720px;
  margin: 0 auto;
}

.af-faq__list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.af-faq__item {
  background: rgba(255, 255, 255, 0.9);
  border-radius: var(--af-radius-lg);
  box-shadow: var(--af-shadow-soft);
  border: 1px solid rgba(255, 255, 255, 0.95);
  overflow: hidden;
}

.af-faq__item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.15rem 1.35rem;
  font-family: var(--af-font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--af-navy);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  transition: background 0.2s;
}

.af-faq__item summary::-webkit-details-marker {
  display: none;
}

.af-faq__item summary::after {
  content: "+";
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(118, 193, 33, 0.15);
  color: var(--af-green-deep);
  font-size: 1.2rem;
  line-height: 1;
  transition: transform 0.25s var(--af-ease), background 0.2s;
}

.af-faq__item[open] summary::after {
  content: "–";
  background: var(--af-green);
  color: #fff;
}

.af-faq__item summary:hover {
  background: rgba(245, 240, 255, 0.6);
}

.af-faq__item p {
  padding: 0 1.35rem 1.25rem;
  color: var(--af-muted);
  font-size: 0.98rem;
}

/* ---------- Footer ---------- */
.af-footer {
  padding: 2.5rem 1.25rem 3rem;
  background: linear-gradient(180deg, transparent, rgba(235, 227, 255, 0.6));
  border-top: 1px solid rgba(26, 43, 86, 0.06);
}

.af-footer__inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
  text-align: center;
}

.af-footer__brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.af-footer__mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(26, 43, 86, 0.15);
  flex-shrink: 0;
}

.af-footer__brand strong {
  font-family: var(--af-font-display);
  font-size: 1.1rem;
  display: block;
}

.af-footer__brand p {
  font-size: 0.85rem;
  color: var(--af-muted);
}

.af-footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.25rem;
}

.af-footer__links a {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--af-navy-soft);
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.af-footer__links a:hover {
  color: var(--af-green-deep);
  border-bottom-color: var(--af-green);
}

.af-footer__copy {
  font-size: 0.85rem;
  color: var(--af-muted);
}

/* ---------- Modal ---------- */
.af-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 1.25rem;
}

.af-modal[hidden] {
  display: none;
}

.af-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(26, 43, 86, 0.45);
  backdrop-filter: blur(4px);
  cursor: pointer;
}

.af-modal__panel {
  position: relative;
  width: min(400px, 100%);
  padding: 2.25rem 1.75rem 1.75rem;
  background: #fff;
  border-radius: var(--af-radius-xl);
  box-shadow: var(--af-shadow-float);
  text-align: center;
  animation: af-modal-in 0.3s var(--af-ease);
}

@keyframes af-modal-in {
  from { opacity: 0; transform: translateY(16px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.af-modal__close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--af-muted);
  transition: background 0.2s, color 0.2s;
}

.af-modal__close:hover {
  background: var(--af-lavender);
  color: var(--af-navy);
}

.af-modal__close svg {
  width: 1.15rem;
  height: 1.15rem;
}

.af-modal__icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  border-radius: 20px;
  background: linear-gradient(145deg, var(--af-green-glow), var(--af-green));
  color: #fff;
  box-shadow: 0 8px 24px rgba(118, 193, 33, 0.4);
}

.af-modal__icon svg {
  width: 1.75rem;
  height: 1.75rem;
}

.af-modal__panel h2 {
  font-family: var(--af-font-display);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--af-navy);
}

.af-modal__panel p {
  color: var(--af-muted);
  margin-bottom: 1.5rem;
  font-size: 0.98rem;
}

/* ---------- Responsive ---------- */
@media (min-width: 640px) {
  .af-bubbles {
    grid-template-columns: 1.2fr 1fr;
    grid-template-rows: auto auto;
    gap: 1.25rem;
  }

  .af-bubble--lg {
    grid-row: span 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100%;
    padding: 2.5rem 2rem;
  }

  .af-bubble--lg h3 {
    font-size: 1.55rem;
  }

  .af-bubble--lg p {
    font-size: 1.05rem;
  }

  .af-fan__card {
    width: 210px;
  }

  .af-fan {
    height: 520px;
  }
}

@media (min-width: 768px) {
  .af-nav__links {
    display: flex;
  }

  .af-nav__cta {
    display: inline-flex;
  }

  .af-burger {
    display: none;
  }

  .af-path {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0;
  }

  .af-path__step {
    flex: 1;
    max-width: 260px;
    align-items: center;
    text-align: center;
  }

  .af-path__card {
    text-align: center;
  }

  .af-path__connector {
    display: block;
    flex: 0 0 70px;
  }

  .af-footer__inner {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    text-align: left;
    align-items: center;
    gap: 1rem 2rem;
  }

  .af-footer__brand {
    grid-column: 1;
  }

  .af-footer__links {
    grid-column: 2;
    grid-row: 1;
    justify-content: flex-end;
  }

  .af-footer__copy {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1024px) {
  .af-bubbles {
    grid-template-columns: 1.35fr 1fr 1fr;
    grid-template-areas:
      "lg sky gold"
      "lg pink pink";
  }

  .af-bubble--lg { grid-area: lg; }
  .af-bubble--sky { grid-area: sky; }
  .af-bubble--gold { grid-area: gold; }
  .af-bubble--pink { grid-area: pink; }

  .af-coin--1 { width: 76px; height: 76px; font-size: 1.9rem; left: -8%; }
  .af-coin--3 { width: 84px; height: 84px; font-size: 2.1rem; left: -12%; }

  .af-fan__card {
    width: 230px;
  }

  .af-fan__card--1 { transform: translateX(-130%) rotate(-16deg); }
  .af-fan__card--4 { transform: translateX(130%) rotate(16deg); }

  .af-fan__card--1:hover {
    transform: translateX(-130%) translateY(-16px) scale(1.05) rotate(-8deg);
  }

  .af-fan__card--4:hover {
    transform: translateX(130%) translateY(-16px) scale(1.05) rotate(8deg);
  }
}

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

  .af-spark,
  .af-coin,
  .af-modal__panel {
    animation: none !important;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
