/* Kosythenic — site vitrine, aligné sur la charte app (noir + bleu #2563EB) */
:root {
  --ink: #07090f;
  --ink-soft: #181d2a;
  --muted: #6b7280;
  --line: #e5e7eb;
  --white: #ffffff;
  --paper: #f5f7fb;
  --mist: #eef2fa;
  --sky: #e8eef8;
  --blue: #2563eb;
  --blue-light: #60a5fa;
  --blue-dark: #1d4ed8;
  --cyan: #38bdf8;
  --green: #10b981;
  --orange: #f97316;
  --max: 1140px;
  --radius: 20px;
  --font-display: "Syne", system-ui, sans-serif;
  --font-body: "Outfit", system-ui, sans-serif;
  --shadow-phone: 0 28px 64px rgba(37, 99, 235, 0.18), 0 12px 28px rgba(7, 9, 15, 0.12);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--blue);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.wrap {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

/* —— Header —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px) saturate(1.2);
  background: rgba(245, 247, 251, 0.78);
  border-bottom: 1px solid transparent;
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.92);
  border-bottom-color: var(--line);
  box-shadow: 0 8px 24px rgba(7, 9, 15, 0.04);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.12rem;
  letter-spacing: -0.02em;
}

.brand:hover {
  text-decoration: none;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: cover;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.35rem 1.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--ink-soft);
  font-size: 0.94rem;
  font-weight: 500;
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--blue);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 1.05rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white) !important;
  font-weight: 600;
  font-size: 0.88rem;
}

.nav-cta:hover {
  text-decoration: none;
  background: #12151f;
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0;
  border: none;
  background: none;
  color: var(--ink-soft);
  font: inherit;
  font-size: 0.94rem;
  font-weight: 500;
  cursor: pointer;
}

.nav-dropdown-toggle:hover {
  color: var(--blue);
}

.nav-dropdown-toggle svg {
  width: 10px;
  height: 10px;
  transition: transform 0.2s ease;
}

.nav-dropdown.is-open .nav-dropdown-toggle svg {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 0.7rem);
  right: 0;
  min-width: 13.5rem;
  margin: 0;
  padding: 0.4rem;
  list-style: none;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 14px 36px rgba(7, 9, 15, 0.1);
  z-index: 50;
}

.nav-dropdown.is-open .nav-dropdown-menu {
  display: grid;
  gap: 0.15rem;
}

.nav-dropdown-menu a {
  display: block;
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.nav-dropdown-menu a:hover {
  background: var(--paper);
  color: var(--blue);
  text-decoration: none;
}

.back-to-top {
  position: fixed;
  right: 1.2rem;
  bottom: 1.2rem;
  z-index: 35;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--blue);
  color: var(--white);
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.35);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.back-to-top:hover {
  text-decoration: none;
  background: var(--blue-dark);
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

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

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

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

/* —— Hero —— */
.hero {
  position: relative;
  min-height: min(92vh, 820px);
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse 55% 50% at 88% 8%, rgba(37, 99, 235, 0.22), transparent 58%),
    radial-gradient(ellipse 40% 35% at 6% 88%, rgba(56, 189, 248, 0.12), transparent 50%),
    linear-gradient(180deg, #dce7f8 0%, #eef2fa 42%, #f5f7fb 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.035'/%3E%3C/svg%3E");
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  grid-template-areas: "copy visual";
  gap: 3rem;
  align-items: center;
  padding: 4.5rem 0 5.5rem;
}

.hero-copy {
  grid-area: copy;
}

.hero-visual {
  grid-area: visual;
  display: flex;
  justify-content: center;
  position: relative;
  min-height: 480px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1.1rem;
  padding: 0.35rem 0.75rem 0.35rem 0.4rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(37, 99, 235, 0.16);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-soft);
  letter-spacing: 0.01em;
}

.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.18);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.15rem, 4.6vw, 3.55rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.08;
  margin: 0 0 1rem;
  color: var(--ink);
  max-width: 14ch;
}

.hero h1 em {
  font-style: normal;
  background: linear-gradient(110deg, var(--blue-dark) 0%, var(--blue) 48%, #0ea5c9 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  margin: 0 0 1.75rem;
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 40ch;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
  padding: 0;
  list-style: none;
}

.hero-pills li {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 1.4rem;
  border-radius: 14px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease, filter 0.2s ease, background 0.2s ease;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--blue-dark), var(--blue));
  color: var(--white);
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.32);
}

.btn-ghost {
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--line);
}

.btn-store {
  min-width: 176px;
  background: var(--white);
  color: var(--ink);
  flex-direction: row;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 1.15rem 0.7rem 0.85rem;
  line-height: 1.2;
  border-radius: 16px;
}

.btn-store svg {
  flex-shrink: 0;
}

.btn-store small {
  display: block;
  font-size: 0.68rem;
  color: var(--muted);
  font-weight: 500;
}

.btn-store strong {
  font-size: 1rem;
  font-weight: 700;
}

.hero-stage {
  position: relative;
  width: min(100%, 520px);
  height: 520px;
}

.hero-demo-card {
  position: absolute;
  z-index: 1;
  width: 132px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  pointer-events: none;
}

.hero-demo-card canvas {
  width: 132px;
  height: 168px;
  display: block;
}

.hero-demo-card span {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--blue);
  opacity: 0.75;
}

.hero-demo-card.demo-pull {
  left: 0;
  top: 48px;
}

.hero-demo-card.demo-push {
  right: 0;
  bottom: 64px;
}

.hero-glow {
  position: absolute;
  left: 50%;
  top: 46%;
  width: 280px;
  height: 280px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(37, 99, 235, 0.28) 0%,
    rgba(56, 189, 248, 0.12) 42%,
    transparent 70%
  );
  filter: blur(4px);
  pointer-events: none;
  animation: glow-pulse 6s ease-in-out infinite;
  z-index: 0;
}

/* Aura animée autour du téléphone */
.hero-motion {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  display: grid;
  place-items: center;
}

.motion-ring {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid rgba(37, 99, 235, 0.22);
}

.ring-a {
  width: min(88%, 320px);
  aspect-ratio: 1;
  animation: ring-breathe 5.5s ease-in-out infinite;
}

.ring-b {
  width: min(74%, 270px);
  aspect-ratio: 1;
  border-color: rgba(14, 165, 201, 0.2);
  animation: ring-breathe 5.5s ease-in-out infinite 0.7s;
}

.ring-c {
  width: min(60%, 220px);
  aspect-ratio: 1;
  border-style: dashed;
  border-color: rgba(37, 99, 235, 0.18);
  animation: ring-spin 32s linear infinite;
}

@keyframes glow-pulse {
  0%,
  100% {
    opacity: 0.7;
    transform: translate(-50%, -50%) scale(0.96);
  }
  50% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.06);
  }
}

@keyframes ring-breathe {
  0%,
  100% {
    transform: scale(0.97);
    opacity: 0.55;
  }
  50% {
    transform: scale(1.05);
    opacity: 1;
  }
}

@keyframes ring-spin {
  to {
    transform: rotate(360deg);
  }
}

.phone {
  position: absolute;
  width: 230px;
  aspect-ratio: 9 / 18.4;
  border-radius: 34px;
  padding: 9px;
  background: linear-gradient(165deg, #1c2130, #07090f);
  box-shadow: var(--shadow-phone);
  overflow: hidden;
}

.phone-front {
  left: 50%;
  top: 12px;
  transform: translateX(-42%);
  z-index: 2;
  animation: float-in-front 0.9s ease both;
}

.phone-back {
  left: 50%;
  top: 56px;
  z-index: 1;
  transform: translateX(-78%) rotate(-9deg) scale(0.9);
  opacity: 0.92;
  animation: float-in-back 0.9s 0.08s ease both;
}

.phone-screen {
  height: 100%;
  border-radius: 26px;
  overflow: hidden;
  background: var(--mist);
  position: relative;
}

.phone-screen img.shot-img,
.shot-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.phone-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.25rem;
  text-align: center;
  background: linear-gradient(180deg, #dce8ff, #eef1f8);
}

.phone-fallback img {
  width: 64px;
  height: 64px;
  border-radius: 16px;
}

.phone-fallback p {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
}

.phone-fallback span {
  color: var(--muted);
  font-size: 0.85rem;
}

@keyframes float-in {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes float-in-front {
  from {
    opacity: 0;
    transform: translateX(-42%) translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateX(-42%);
  }
}

@keyframes float-in-back {
  from {
    opacity: 0;
    transform: translateX(-78%) rotate(-9deg) scale(0.9) translateY(22px);
  }
  to {
    opacity: 0.92;
    transform: translateX(-78%) rotate(-9deg) scale(0.9);
  }
}

@keyframes float-in-tilt {
  from {
    opacity: 0;
    transform: rotate(-9deg) scale(0.9) translateY(22px);
  }
  to {
    opacity: 0.92;
    transform: rotate(-9deg) scale(0.9);
  }
}

/* —— Stats —— */
.stats {
  position: relative;
  z-index: 2;
  margin-top: -2.75rem;
  padding: 0 0 0.5rem;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 18px 40px rgba(7, 9, 15, 0.06);
  overflow: hidden;
}

.stat {
  padding: 1.25rem 1.1rem;
  text-align: center;
  border-right: 1px solid var(--line);
}

.stat:last-child {
  border-right: none;
}

.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.stat span {
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 500;
}

/* —— Sections —— */
section {
  padding: 5rem 0;
}

section[id],
.stats {
  scroll-margin-top: 5.5rem;
}

.section-kicker {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  margin: 0 0 0.65rem;
}

.section-head {
  margin-bottom: 2.25rem;
  max-width: 40rem;
}

.section-head.center {
  text-align: center;
  margin-inline: auto;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.25rem);
  font-weight: 750;
  letter-spacing: -0.03em;
  margin: 0 0 0.55rem;
  color: var(--ink);
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

/* —— Features bento —— */
.features {
  background: var(--white);
  border-block: 1px solid var(--line);
}

.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
}

.bento-card {
  grid-column: span 3;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.45rem 1.4rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  min-height: 100%;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.bento-card:hover {
  border-color: rgba(37, 99, 235, 0.32);
  transform: translateY(-2px);
}

.bento-card.span-wide {
  grid-column: span 4;
  background:
    radial-gradient(ellipse 80% 80% at 100% 0%, rgba(37, 99, 235, 0.1), transparent 55%),
    var(--paper);
}

.bento-card.span-narrow {
  grid-column: span 2;
}

.feature-icon {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(37, 99, 235, 0.1);
  color: var(--blue);
}

.feature-icon svg {
  width: 20px;
  height: 20px;
}

.bento-card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.bento-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

/* —— How it works —— */
.path {
  background: var(--paper);
}

.path-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  position: relative;
}

.path-step {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem 1.6rem;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.path-step:hover {
  border-color: rgba(37, 99, 235, 0.32);
  transform: translateY(-2px);
}

.path-num {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--blue);
  margin: 0 0 0.85rem;
}

.path-step h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin: 0 0 0.4rem;
}

.path-step p {
  margin: 0;
  color: var(--muted);
}

/* —— Coach programmes payants (flag admin) —— */
.coaches {
  background: var(--white);
  border-block: 1px solid var(--line);
}

.coach-note {
  margin: 1.5rem 0 0;
  max-width: 40rem;
  color: var(--muted);
  font-size: 0.95rem;
}

/* —— Screenshots —— */
.screenshots {
  background:
    radial-gradient(ellipse 70% 45% at 50% 0%, rgba(37, 99, 235, 0.1), transparent 62%),
    var(--sky);
}

.shot-carousel {
  position: relative;
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
  padding-inline: 2.75rem;
  box-sizing: border-box;
}

.shot-rail {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  gap: clamp(0.7rem, 1.4vw, 1.15rem);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 0.25rem;
  width: 100%;
  margin-inline: 0;
  padding: 0.25rem 0 1.25rem;
  box-sizing: border-box;
  scrollbar-width: thin;
  scrollbar-color: rgba(37, 99, 235, 0.35) transparent;
}

.shot-nav {
  position: absolute;
  top: 42%;
  z-index: 3;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid rgba(37, 99, 235, 0.28);
  background: #fff;
  color: var(--blue);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.18);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.shot-nav svg {
  width: 20px;
  height: 20px;
}

.shot-nav:hover:not(:disabled) {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}

.shot-nav:disabled {
  opacity: 0.35;
  cursor: default;
}

.shot-nav-prev {
  left: 0;
}

.shot-nav-next {
  right: 0;
}

.shot {
  margin: 0;
  flex: 0 0 clamp(148px, calc((min(100vw - 2.5rem, var(--max)) - 5 * 0.85rem) / 6), 200px);
  width: clamp(148px, calc((min(100vw - 2.5rem, var(--max)) - 5 * 0.85rem) / 6), 200px);
  max-width: 200px;
  scroll-snap-align: start;
}

.shot-frame {
  position: relative;
  aspect-ratio: 9 / 19;
  border-radius: 26px;
  overflow: hidden;
  background: var(--white);
  border: 8px solid var(--ink);
  box-shadow: 0 18px 40px rgba(18, 21, 31, 0.12);
  transition: transform 0.35s ease;
}

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

.shot-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem;
  text-align: center;
  background: linear-gradient(160deg, #f0f4fc, #e4ecf8);
  color: var(--muted);
  font-size: 0.88rem;
  pointer-events: none;
}

.shot-placeholder strong {
  color: var(--ink-soft);
  font-family: var(--font-display);
  font-size: 0.95rem;
}

.shot-frame.has-image .shot-placeholder,
.phone-screen.has-image .phone-fallback {
  display: none;
}

.shot figcaption {
  margin-top: 0.75rem;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.shot-hint {
  margin-top: 0.5rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--muted);
}

/* —— Download —— */
.download {
  background:
    radial-gradient(ellipse 60% 80% at 80% 20%, rgba(37, 99, 235, 0.28), transparent 55%),
    radial-gradient(ellipse 40% 50% at 10% 90%, rgba(56, 189, 248, 0.12), transparent 50%),
    var(--ink);
  color: var(--white);
  border: none;
}

.download-inner {
  text-align: center;
  max-width: 38rem;
  margin-inline: auto;
}

.download-inner .section-kicker {
  color: var(--cyan);
}

.download-inner h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.2vw, 2.4rem);
  letter-spacing: -0.03em;
  margin: 0 0 0.6rem;
}

.download-inner > p {
  color: rgba(245, 247, 252, 0.68);
  margin: 0 0 1.75rem;
}

.download .cta-row {
  justify-content: center;
}

.download .btn-store:hover {
  filter: brightness(1.05);
}

.note {
  margin-top: 1.25rem;
  font-size: 0.88rem;
  color: rgba(245, 247, 252, 0.5);
}

/* —— Donate —— */
.donate {
  background: var(--white);
  border-top: 1px solid var(--line);
}

.donate-panel {
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  background: var(--paper);
}

.donate-intro {
  padding: 1.75rem 1.6rem 1.6rem;
  background:
    radial-gradient(ellipse 70% 90% at 90% 10%, rgba(37, 99, 235, 0.35), transparent 55%),
    linear-gradient(135deg, #0b1630, #1e3a8a 55%, var(--blue));
  color: var(--white);
}

.donate-intro .section-kicker {
  color: var(--cyan);
}

.donate-intro h2 {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3vw, 2.05rem);
  letter-spacing: -0.03em;
  margin: 0 0 0.5rem;
}

.donate-intro p {
  margin: 0;
  color: rgba(245, 247, 252, 0.82);
  max-width: 46ch;
}

.donate-body {
  padding: 1.5rem 1.5rem 1.7rem;
}

.donate-choose {
  margin: 0 0 0.85rem;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.donate-tiers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}

.donate-tier {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.05rem 1rem 1.1rem;
  border-radius: 16px;
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.donate-tier:hover {
  text-decoration: none;
  border-color: rgba(37, 99, 235, 0.4);
  transform: translateY(-2px);
}

.donate-tier-icon {
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(37, 99, 235, 0.1);
  color: var(--blue);
  margin-bottom: 0.25rem;
}

.donate-tier strong {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}

.donate-tier span {
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 500;
}

.donate-actions {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1.1rem;
}

.donate-status {
  margin: 0.85rem 0 0;
  font-size: 0.88rem;
  color: var(--orange);
  font-weight: 600;
}

.donate-status[hidden] {
  display: none;
}

@media (max-width: 860px) {
  .donate-tiers {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .donate-tiers {
    grid-template-columns: 1fr;
  }
}

/* —— Contact —— */
.contact {
  background: linear-gradient(180deg, var(--mist), var(--paper));
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 1.25rem;
  align-items: stretch;
}

.contact-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem;
}

.contact-card h3 {
  font-family: var(--font-display);
  margin: 0 0 0.45rem;
  font-size: 1.15rem;
}

.contact-card p {
  margin: 0 0 1rem;
  color: var(--muted);
}

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.contact-mail {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 600;
  font-size: 0.98rem;
  word-break: break-all;
}

.contact-form {
  display: grid;
  gap: 0.9rem;
}

.contact-form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.75rem 0.9rem;
}

.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: 2px solid rgba(37, 99, 235, 0.35);
  border-color: var(--blue);
}

.form-note {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 400;
}

.form-hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink-soft);
  line-height: 1.45;
}

.form-consent input {
  width: auto;
  margin: 0.2rem 0 0;
  accent-color: var(--blue);
  flex-shrink: 0;
}

.form-status {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
}

.form-status.is-ok {
  color: var(--green);
}

.form-status.is-err {
  color: #ef4444;
}

.contact-form .btn[disabled] {
  opacity: 0.65;
  cursor: wait;
  transform: none;
}

/* —— Legal —— */
.legal-hero {
  padding: 3.5rem 0 1.6rem;
  background:
    radial-gradient(ellipse 50% 80% at 90% 0%, rgba(37, 99, 235, 0.12), transparent 55%),
    linear-gradient(180deg, var(--sky), var(--paper));
  border-bottom: 1px solid var(--line);
}

.legal-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  letter-spacing: -0.03em;
  margin: 0 0 0.45rem;
  color: var(--ink);
}

.legal-hero p {
  margin: 0;
  color: var(--muted);
}

.legal-body {
  padding: 2rem 0 4rem;
  max-width: 42rem;
}

.legal-body h2 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin: 2rem 0 0.55rem;
  color: var(--ink);
}

.legal-body p,
.legal-body li {
  color: var(--ink-soft);
}

.legal-body ul {
  padding-left: 1.2rem;
}

.legal-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.95rem;
}

.legal-body th,
.legal-body td {
  border: 1px solid var(--line);
  padding: 0.65rem 0.75rem;
  text-align: left;
}

.legal-body th {
  background: var(--mist);
  color: var(--ink);
}

/* —— Footer —— */
.site-footer {
  padding: 2.75rem 0 2rem;
  background: var(--ink);
  color: rgba(245, 247, 252, 0.72);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
  align-items: start;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 700;
  margin: 0 0 0.55rem;
  color: var(--white);
  font-size: 1.05rem;
}

.footer-brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: cover;
}

.footer-tagline {
  margin: 0 0 0.85rem;
  font-size: 0.92rem;
  max-width: 32ch;
}

.footer-copy {
  margin: 0;
  font-size: 0.82rem;
  color: rgba(245, 247, 252, 0.42);
}

.footer-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.85rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
  justify-content: flex-end;
}

.footer-links a,
.footer-legal a {
  color: rgba(245, 247, 252, 0.72);
  font-size: 0.9rem;
  text-decoration: none;
}

.footer-links a:hover,
.footer-legal a:hover {
  color: var(--white);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.35rem;
  list-style: none;
  margin: 0;
  padding: 0.85rem 0 0;
  border-top: 1px solid rgba(245, 247, 252, 0.12);
  justify-content: flex-end;
}

.footer-legal a {
  color: rgba(245, 247, 252, 0.55);
  font-size: 0.85rem;
}

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

  .phone,
  .phone-front,
  .phone-back,
  .btn,
  .shot-frame,
  .bento-card,
  .path-step,
  .donate-tier,
  .back-to-top,
  .nav-dropdown-toggle svg,
  .motion-ring,
  .hero-glow,
  .hero-demo-card {
    animation: none;
    transition: none;
  }

  .bento-card:hover,
  .path-step:hover,
  .shot:hover .shot-frame,
  .donate-tier:hover {
    transform: none;
  }
}

@media (max-width: 980px) {
  .bento {
    grid-template-columns: 1fr 1fr;
  }

  .bento-card,
  .bento-card.span-wide,
  .bento-card.span-narrow {
    grid-column: span 1;
  }

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

  .stats-row {
    grid-template-columns: 1fr 1fr;
  }

  .stat:nth-child(2) {
    border-right: none;
  }

  .stat:nth-child(1),
  .stat:nth-child(2) {
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 860px) {
  .hero {
    min-height: 0;
  }

  .hero-grid {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    grid-template-columns: none;
    grid-template-areas: none;
    padding: 1.25rem 0 3rem;
    gap: 1.75rem;
  }

  .hero-copy,
  .hero-visual {
    grid-area: auto;
    width: 100%;
  }

  .hero-copy {
    text-align: left;
  }

  .hero h1 {
    max-width: none;
    font-size: clamp(1.9rem, 8.2vw, 2.4rem);
  }

  .hero-lead {
    max-width: none;
  }

  .hero-visual {
    min-height: 0;
    order: 0;
  }

  .hero-stage {
    height: auto;
    width: min(100%, 320px);
    margin-inline: auto;
    padding: 0.75rem 0 0.5rem;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    grid-template-rows: auto auto;
    align-items: end;
    justify-items: center;
    column-gap: 0.15rem;
    row-gap: 0.35rem;
  }

  .hero-glow,
  .hero-motion {
    grid-column: 1 / -1;
    grid-row: 1;
    justify-self: stretch;
    align-self: stretch;
    width: auto;
    height: auto;
  }

  .hero-glow {
    width: 220px;
    height: 220px;
    left: 50%;
    top: 42%;
    justify-self: center;
  }

  .hero-motion {
    inset: auto;
    position: relative;
    width: min(100%, 248px);
    aspect-ratio: 1;
    margin-inline: auto;
  }

  .phone-back {
    display: none;
  }

  .phone-front {
    position: relative;
    inset: auto;
    right: auto;
    top: auto;
    left: auto;
    transform: none;
    width: min(100%, 196px);
    margin-inline: auto;
    z-index: 2;
    animation: none;
    grid-column: 2;
    grid-row: 1;
  }

  .hero-demo-card {
    position: relative;
    width: 78px;
    top: auto;
    left: auto;
    right: auto;
    bottom: auto;
    z-index: 1;
  }

  .hero-demo-card canvas {
    width: 78px;
    height: 100px;
  }

  .hero-demo-card span {
    font-size: 0.62rem;
  }

  .hero-demo-card.demo-pull {
    grid-column: 1;
    grid-row: 1;
    align-self: center;
    justify-self: end;
    margin-right: -0.15rem;
  }

  .hero-demo-card.demo-push {
    grid-column: 3;
    grid-row: 1;
    align-self: center;
    justify-self: start;
    margin-left: -0.15rem;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 1.25rem 1.15rem;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--line);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links > li {
    padding: 0.55rem 0;
  }

  .nav-dropdown-toggle {
    width: 100%;
    justify-content: space-between;
  }

  .nav-dropdown-menu {
    position: static;
    min-width: 0;
    margin-top: 0.35rem;
    box-shadow: none;
    border-radius: 12px;
  }

  .nav-cta {
    justify-content: center;
  }

  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-links {
    justify-content: flex-start;
  }

  .footer-nav,
  .footer-legal {
    align-items: flex-start;
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  .shot-carousel {
    width: 100%;
    padding-inline: 0.35rem;
  }

  .shot-rail {
    justify-content: flex-start;
    width: 100%;
    padding-inline: 2.85rem;
    scroll-padding-inline: 2.85rem;
  }

  .shot-nav {
    width: 40px;
    height: 40px;
  }

  .shot-nav-prev {
    left: 0.35rem;
  }

  .shot-nav-next {
    right: 0.35rem;
  }

  .shot {
    flex: 0 0 168px;
    width: 168px;
    max-width: none;
    scroll-snap-align: start;
  }
}

@media (max-width: 560px) {
  .bento {
    grid-template-columns: 1fr;
  }

  .bento-card,
  .bento-card.span-wide,
  .bento-card.span-narrow {
    grid-column: span 1;
  }

  .shot {
    flex: 0 0 156px;
    width: 156px;
  }

  .stats {
    margin-top: -1.5rem;
  }
}
