/* ShapeUp — getshapeup.app
   Palette mirrors the app's DesignSystem.swift exactly. */

:root {
  --ink: #0B0E14;
  --card: #161A23;
  --card-stroke: rgba(255, 255, 255, 0.07);
  --volt: #D4FF4F;
  --volt-deep: #8CD11A;
  --coral: #FF6B4A;
  --sky: #58C7F3;
  --lilac: #B89EFF;
  --text: #FFFFFF;
  --text-2: rgba(255, 255, 255, 0.62);
  --text-3: rgba(255, 255, 255, 0.38);
  --display: "M PLUS Rounded 1c", -apple-system, "SF Pro Rounded", system-ui, sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --volt-gradient: linear-gradient(135deg, var(--volt), var(--volt-deep));
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--ink);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--volt); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--volt);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap { max-width: 1060px; margin: 0 auto; padding: 0 24px; }

/* ---------- Nav ---------- */

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
}

.wordmark {
  font-family: var(--display);
  font-weight: 900;
  font-size: 22px;
  color: var(--text);
  letter-spacing: -0.01em;
}
.wordmark:hover { text-decoration: none; }
.wordmark .up { color: var(--volt); }

nav .links { display: flex; gap: 22px; }
nav .links a {
  color: var(--text-2);
  font-size: 15px;
  font-weight: 500;
}
nav .links a:hover { color: var(--text); text-decoration: none; }

/* ---------- Shared bits ---------- */

.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(212, 255, 79, 0.1);
  color: var(--volt);
  font-family: var(--display);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.btn {
  display: inline-block;
  font-family: var(--display);
  font-weight: 800;
  font-size: 17px;
  color: #000;
  background: var(--volt-gradient);
  padding: 16px 34px;
  border-radius: 999px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 8px 30px rgba(212, 255, 79, 0.25);
}

.card {
  background: var(--card);
  border: 1px solid var(--card-stroke);
  border-radius: 20px;
  padding: 24px;
}

h1, h2, h3 { font-family: var(--display); font-weight: 900; line-height: 1.12; }

.section { padding: 72px 0; }
.section-title { font-size: 34px; margin-bottom: 8px; letter-spacing: -0.01em; }
.section-sub { color: var(--text-2); max-width: 560px; }

/* ---------- Hero ---------- */

.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
  padding: 56px 0 84px;
}

.hero h1 {
  font-size: clamp(40px, 6vw, 64px);
  letter-spacing: -0.02em;
  margin: 20px 0 18px;
}
.hero h1 .volt { color: var(--volt); }

.hero .sub {
  color: var(--text-2);
  font-size: 19px;
  max-width: 460px;
  margin-bottom: 30px;
}

.hero .cta-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.hero .store-note { color: var(--text-3); font-size: 14px; }

/* ---------- Phone / rep counter (signature) ---------- */

.phone {
  width: 300px;
  margin: 0 auto;
  background: linear-gradient(180deg, #10141d, #0d1119);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 44px;
  padding: 18px 16px 22px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 90px rgba(212, 255, 79, 0.05);
}

.phone .hud-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 84px;
}

.hud-chip {
  font-family: var(--display);
  font-weight: 700;
  font-size: 12px;
  color: var(--text);
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid var(--card-stroke);
  padding: 6px 12px;
  border-radius: 999px;
}

.hud-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--volt);
  box-shadow: 0 0 12px rgba(212, 255, 79, 0.8);
}

.phone .callout {
  display: block;
  width: fit-content;
  margin: 0 auto 14px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 13px;
  color: #000;
  background: var(--volt);
  padding: 7px 15px;
  border-radius: 999px;
  min-height: 18px;
  transition: background 0.25s ease, opacity 0.25s ease;
}
.phone .callout.no-count { background: var(--coral); color: #fff; }

.phone .rep-count {
  font-family: var(--display);
  font-weight: 900;
  font-size: 110px;
  line-height: 1;
  text-align: center;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 6px 30px rgba(0, 0, 0, 0.6);
}

.phone .rep-label {
  text-align: center;
  color: var(--text-3);
  font-family: var(--display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 6px 0 70px;
}

.phone .finish {
  display: block;
  text-align: center;
  font-family: var(--display);
  font-weight: 800;
  font-size: 15px;
  color: #000;
  background: var(--volt-gradient);
  border-radius: 999px;
  padding: 13px 0;
}
.phone .finish:hover { text-decoration: none; }

/* ---------- Feature grid ---------- */

.features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 36px;
}

.feature h3 { font-size: 19px; margin: 14px 0 6px; }
.feature p { color: var(--text-2); font-size: 15px; }

.feature .icon {
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  border-radius: 14px;
}
.icon.volt-bg { background: rgba(212, 255, 79, 0.14); }
.icon.coral-bg { background: rgba(255, 107, 74, 0.14); }
.icon.sky-bg { background: rgba(88, 199, 243, 0.14); }
.icon.lilac-bg { background: rgba(184, 158, 255, 0.14); }

/* ---------- How it works (a real sequence) ---------- */

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 36px; }
.step .num {
  font-family: var(--display);
  font-weight: 900;
  font-size: 15px;
  color: #000;
  background: var(--volt-gradient);
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.step h3 { font-size: 18px; margin-bottom: 6px; }
.step p { color: var(--text-2); font-size: 15px; }

/* ---------- Leaderboard teaser ---------- */

.social-band { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }

.board .row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--card-stroke);
}
.board .row:last-child { border-bottom: none; }

.board .rank { font-family: var(--display); font-weight: 800; color: var(--text-3); width: 18px; }
.board .row:first-child .rank { color: var(--volt); }

.board .avatar {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-weight: 900;
  font-size: 14px;
  color: #000;
}

.board .name { font-family: var(--display); font-weight: 700; font-size: 15px; flex: 1; }

.board .stat {
  font-family: var(--display);
  font-weight: 800;
  font-size: 13px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
}
.board .stat.done { background: var(--volt-gradient); color: #000; }

/* ---------- Privacy band ---------- */

.privacy-band { text-align: center; }
.privacy-band .card { padding: 44px 32px; }
.privacy-band h2 { font-size: 28px; margin-bottom: 10px; }
.privacy-band p { color: var(--text-2); max-width: 540px; margin: 0 auto 8px; }

/* ---------- Footer ---------- */

footer {
  border-top: 1px solid var(--card-stroke);
  margin-top: 40px;
  padding: 34px 0 44px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  color: var(--text-3);
  font-size: 14px;
}
footer .links { display: flex; gap: 20px; }
footer a { color: var(--text-2); }

/* ---------- Legal pages ---------- */

.legal { max-width: 720px; margin: 0 auto; padding: 32px 24px 80px; }
.legal h1 { font-size: 36px; margin-bottom: 6px; }
.legal .updated { color: var(--text-3); font-size: 14px; margin-bottom: 36px; }
.legal h2 { font-size: 21px; margin: 36px 0 10px; }
.legal p, .legal li { color: var(--text-2); font-size: 16px; }
.legal ul { padding-left: 22px; margin: 10px 0; }
.legal li { margin-bottom: 6px; }
.legal strong { color: var(--text); }

/* ---------- Motion ---------- */

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(18px);
    animation: rise 0.7s ease forwards;
  }
  .reveal.d1 { animation-delay: 0.08s; }
  .reveal.d2 { animation-delay: 0.16s; }
  .reveal.d3 { animation-delay: 0.24s; }
  @keyframes rise { to { opacity: 1; transform: none; } }
}

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-bottom: 56px; }
  .phone { margin-top: 12px; }
  .features { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .social-band { grid-template-columns: 1fr; }
  .section { padding: 52px 0; }
}
