/* FitClips — fitclipsapp.com
   Design tokens lifted from Figma `dI43guFsI6Gpd9BjB8yxbD` (FitClips-v.1),
   mirroring apps/mobile/lib/core/theme.dart:
     Archivo Narrow ≈ SF Pro Condensed Semibold (headings / wordmark)
     Inter          ≈ SF Pro (body / buttons)
     JetBrains Mono ≈ Geist Mono (mono uppercase captions)                */

:root {
  --brand: #5EC097;          /* primary CTA fill */
  --brand-secondary: #44C296;
  --brand-accent: #36DD79;
  --brand-deep: #007969;     /* darkest splash-gradient stop; link/text green */
  --brand-deep-2: #0D8370;
  --ink: #000000;
  --ink-2: #363636;
  --muted: #5a5a60;
  --bg: #FCFCFC;
  --bg-white: #FFFFFF;
  --bg-dark: #1B1B1B;
  --border-subtle: #C4C4C4;
  --border: #D9D9D9;
  --card-border: #E8E8E8;
  --grad: radial-gradient(120% 120% at 20% 0%,
          #007969 0%, #0D8370 12.5%, #1A8D76 25%,
          #35A183 50%, #4FB490 75%, #69C89D 100%);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: clip;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--brand-deep-2); }

h1, h2, h3, .heading {
  font-family: "Archivo Narrow", "Inter", sans-serif;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0;
}

.mono {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
  opacity: 0.55;
}

.wordmark {
  font-family: "Archivo Narrow", sans-serif;
  font-weight: 700;
  font-style: italic;
  letter-spacing: -0.03em;
  color: var(--brand);
  text-decoration: none;
  font-size: 26px;
  line-height: 1;
}
.wordmark.on-dark { color: #fff; }

.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ---- nav ---- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(252, 252, 252, 0.86);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--card-border);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a {
  color: var(--ink-2); text-decoration: none; font-size: 14px; font-weight: 500;
}
.nav-links a:hover { color: var(--ink); }
@media (max-width: 640px) { .nav-links .hide-sm { display: none; } }

/* ---- buttons (StadiumBorder pills, per app theme) ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: "Inter", sans-serif; font-weight: 700; font-size: 14px;
  letter-spacing: -0.02em; text-decoration: none; cursor: pointer;
  border-radius: 999px; padding: 14px 26px; border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-secondary); box-shadow: 0 6px 20px rgba(94, 192, 151, .35); }
.btn-outline { border-color: var(--border); color: var(--ink); background: transparent; }
.btn-outline:hover { border-color: var(--brand); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #222; }
.btn-sm { padding: 9px 18px; font-size: 13px; }

/* ---- footer ---- */
.footer { background: var(--bg-dark); color: #cfcfcf; margin-top: 96px; }
.footer-inner { padding-top: 56px; padding-bottom: 40px; }
.footer-grid {
  display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between;
  padding-bottom: 36px; border-bottom: 1px solid #2e2e2e;
}
.footer-col .mono { color: #9a9a9a; opacity: 1; margin-bottom: 14px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin: 8px 0; }
.footer-col a { color: #cfcfcf; text-decoration: none; font-size: 14px; }
.footer-col a:hover { color: #fff; }
.footer-legal {
  display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center;
  justify-content: space-between; padding-top: 24px;
  color: #8f8f8f; font-size: 13px;
}
.footer-legal a { color: #8f8f8f; }

@media (max-width: 720px) {
  .footer { margin-top: 64px; }
  .footer-inner { padding-top: 44px; padding-bottom: 32px; }
  .footer-grid { flex-direction: column; gap: 30px; padding-bottom: 30px; }
  .footer-col { max-width: none !important; }
  .footer-col .mono { margin-bottom: 10px; }
  .footer-col li { margin: 10px 0; }
  .footer-col a { font-size: 15px; }
  .footer-legal {
    flex-direction: column; align-items: flex-start; gap: 14px;
    padding-top: 20px; line-height: 1.5;
  }
}

/* ---- legal / article pages ---- */
.article { max-width: 760px; margin: 0 auto; padding: 56px 24px 40px; }
.article h1 { font-size: 40px; margin: 10px 0 4px; }
.article .updated { color: var(--muted); font-size: 14px; margin: 6px 0 32px; }
.article h2 { font-size: 22px; margin: 36px 0 10px; }
.article p, .article li { color: #333; font-size: 15px; }
.article ol, .article ul { padding-left: 22px; }
.article li { margin: 6px 0; }
.article .box {
  border: 1px solid var(--card-border); border-radius: 14px;
  padding: 18px 20px; background: var(--bg-white);
}
.article .box .k { font-family: "JetBrains Mono", monospace; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.article .box .v { font-weight: 600; }

/* ---- cards ---- */
.card {
  background: var(--bg-white); border: 1px solid var(--card-border);
  border-radius: 20px; padding: 28px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.card:hover { border-color: var(--brand); box-shadow: 0 8px 30px rgba(0, 121, 105, .07); }
.card h3 { font-size: 20px; margin: 16px 0 8px; }
.card p { color: var(--muted); font-size: 14px; margin: 0; }
.card .icon {
  width: 44px; height: 44px; border-radius: 12px; background: rgba(94, 192, 151, .14);
  display: flex; align-items: center; justify-content: center; color: var(--brand-deep);
}
