/* FitFlame website. Colors match the app (FitFlame/DesignSystem/Theme.swift). */
:root {
  --deep-navy: #050a17;
  --navy: #0b1428;
  --slate: #17243f;
  --slate-light: #24365c;
  --cyan: #22d3ee;
  --turquoise: #2de2c8;
  --text: #f3f8ff;
  --text-secondary: rgba(243, 248, 255, 0.64);
  --text-faint: rgba(243, 248, 255, 0.4);
  --hairline: rgba(255, 255, 255, 0.1);
  --danger: #ff6b7a;
  --accent-gradient: linear-gradient(135deg, var(--cyan), var(--turquoise));
  --radius-card: 24px;
  --max: 1080px;
  color-scheme: dark;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(1100px 600px at 75% -10%, rgba(34, 211, 238, 0.14), transparent 60%),
    linear-gradient(180deg, var(--navy), var(--deep-navy) 70%);
  background-color: var(--deep-navy);
  color: var(--text);
  font-family: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--cyan);
}

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

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(5, 10, 23, 0.78);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid var(--hairline);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.logo img {
  width: 34px;
  height: 34px;
}

.site-nav {
  display: flex;
  gap: 4px;
}

.site-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 999px;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--text);
  background: rgba(36, 54, 92, 0.6);
}

/* Footer */
.site-footer {
  margin-top: 96px;
  border-top: 1px solid var(--hairline);
  padding: 32px 0 48px;
  color: var(--text-faint);
  font-size: 15px;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.site-footer a {
  color: var(--text-secondary);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--text);
}

/* Type */
h1,
h2,
h3 {
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0;
}

h1 {
  font-size: clamp(40px, 7vw, 68px);
  font-weight: 900;
}

h2 {
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 800;
}

h3 {
  font-size: 19px;
  font-weight: 800;
}

.muted {
  color: var(--text-secondary);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--cyan);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.gradient-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 28px;
  border: 0;
  border-radius: 20px;
  background: var(--accent-gradient);
  color: var(--deep-navy);
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 12px 40px rgba(34, 211, 238, 0.25);
}

.button:hover {
  filter: brightness(1.06);
}

.button:disabled {
  background: var(--slate-light);
  color: var(--text-secondary);
  box-shadow: none;
  cursor: default;
}

/* Home */
.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 48px;
  padding: 72px 0 24px;
}

.hero p.lede {
  font-size: 20px;
  margin: 20px 0 32px;
  max-width: 32ch;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(23, 36, 63, 0.8);
  border: 1px solid var(--hairline);
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 700;
}

.badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--turquoise);
  box-shadow: 0 0 12px var(--turquoise);
}

.mascot {
  justify-self: center;
  position: relative;
  width: min(340px, 72vw);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}

.mascot::before {
  content: "";
  position: absolute;
  inset: 4%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.4), transparent 68%);
  filter: blur(8px);
}

.mascot img {
  position: relative;
  width: 82%;
  animation: bob 4s ease-in-out infinite;
}

@keyframes bob {
  0%,
  100% {
    transform: translateY(0) rotate(-2deg);
  }
  50% {
    transform: translateY(-10px) rotate(2deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .mascot img {
    animation: none;
  }
}

.section {
  margin-top: 88px;
}

.section-head {
  max-width: 620px;
  margin-bottom: 28px;
}

.section-head p {
  margin: 12px 0 0;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.judges {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.card {
  background: linear-gradient(135deg, rgba(36, 54, 92, 0.5), rgba(23, 36, 63, 0.75));
  border: 1px solid var(--hairline);
  border-radius: var(--radius-card);
  padding: 26px;
}

.card p {
  margin: 8px 0 0;
}

.num {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--accent-gradient);
  color: var(--deep-navy);
  font-weight: 900;
}

.judge {
  padding: 22px;
}

.judge .emoji {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 14px;
  border-radius: 50%;
  font-size: 26px;
}

.judge p {
  font-size: 15px;
}

/* Inner pages */
.page {
  padding: 56px 0 0;
}

.page-head {
  max-width: 720px;
  margin-bottom: 40px;
}

.page-head p {
  margin: 16px 0 0;
}

.narrow {
  max-width: 760px;
}

/* Support */
.support-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}

.form {
  display: grid;
  gap: 16px;
}

.field {
  display: grid;
  gap: 8px;
}

.field label {
  font-size: 15px;
  font-weight: 700;
}

.field .hint {
  font-weight: 500;
  color: var(--text-secondary);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--hairline);
  border-radius: 14px;
  background: rgba(5, 10, 23, 0.7);
  color: var(--text);
  font: inherit;
}

.field textarea {
  min-height: 160px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid var(--cyan);
  outline-offset: 1px;
  border-color: transparent;
}

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

.notice {
  padding: 14px 16px;
  border-radius: 14px;
  font-size: 15px;
}

.notice.success {
  background: rgba(45, 226, 200, 0.12);
  color: var(--turquoise);
}

.notice.error {
  background: rgba(255, 107, 122, 0.12);
  color: var(--danger);
}

.faq details {
  border-bottom: 1px solid var(--hairline);
  padding: 18px 0;
}

.faq details:first-of-type {
  padding-top: 0;
}

.faq summary {
  cursor: pointer;
  font-weight: 800;
  list-style: none;
}

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

.faq summary::after {
  content: "+";
  float: right;
  color: var(--text-secondary);
  font-weight: 500;
}

.faq details[open] summary::after {
  content: "–";
}

.faq details p {
  margin: 10px 0 0;
  color: var(--text-secondary);
}

/* Legal documents */
.legal {
  color: rgba(243, 248, 255, 0.84);
  font-size: 16px;
  /* Long URLs and email addresses must wrap on phones instead of widening the page. */
  overflow-wrap: anywhere;
}

.legal h2 {
  font-size: 22px;
  margin: 44px 0 12px;
  color: var(--text);
}

.legal h3 {
  font-size: 18px;
  margin: 26px 0 8px;
  color: var(--text);
}

.legal p,
.legal li {
  margin: 10px 0;
}

.legal ul {
  padding-left: 22px;
}

.legal strong {
  color: var(--text);
}

.legal table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 15px;
}

.legal th,
.legal td {
  text-align: left;
  vertical-align: top;
  padding: 12px;
  border: 1px solid var(--hairline);
}

.legal th {
  color: var(--text);
  background: rgba(23, 36, 63, 0.7);
}

.table-scroll {
  overflow-x: auto;
}

.updated {
  color: var(--text-faint);
  font-size: 15px;
}

/* Small screens */
@media (max-width: 900px) {
  .judges {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 820px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 40px;
  }

  .mascot {
    order: -1;
    width: min(240px, 60vw);
  }

  .grid-3,
  .support-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .wrap {
    padding: 0 16px;
  }

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

  .site-nav a {
    padding: 8px 8px;
    font-size: 14px;
  }

  .logo {
    font-size: 18px;
  }

  .logo span {
    display: none;
  }

  .card {
    padding: 22px;
  }
}
