/* Gymtrail website — self-hosted fonts, no external requests, no tracking. */
@font-face { font-family: "Work Sans"; src: url("/assets/fonts/WorkSans-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Work Sans"; src: url("/assets/fonts/WorkSans-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Work Sans"; src: url("/assets/fonts/WorkSans-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --bg: #090b0a; --surface: #141817; --surface-2: #1e2422; --line: rgba(255,255,255,.09);
  --text: #f2f6f0; --muted: #b6c1ba; --lime: #c6ff3a; --on-lime: #090b0a;
  --coral: #ff7a48; --violet: #9c8dff; --cyan: #3dd8ff;
  --radius: 22px; --max: 1120px; --read: 46rem;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 1.0625rem/1.65 "Work Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--lime); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.015em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.3rem, 6vw, 4rem); font-weight: 700; }
h2 { font-size: clamp(1.55rem, 3.4vw, 2.2rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0 0 1em; }
.skip { position: absolute; left: -999px; top: 0; background: var(--lime); color: var(--on-lime); padding: .6rem 1rem; z-index: 10; border-radius: 0 0 10px 0; font-weight: 600; }
.skip:focus { left: 0; }
.wrap { width: min(100% - 2.5rem, var(--max)); margin-inline: auto; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 5; background: rgba(9,11,10,.88); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 64px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--text); text-decoration: none; font-weight: 700; font-size: 1.2rem; }
.brand img { width: 34px; height: 34px; }
.nav { display: flex; gap: .25rem; flex-wrap: wrap; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: .95rem; padding: .45rem .75rem; border-radius: 999px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); background: var(--surface-2); }

/* Hero */
.hero { padding: clamp(3rem, 8vw, 6rem) 0 3rem; background: radial-gradient(60rem 30rem at 85% -10%, rgba(198,255,58,.13), transparent 60%); }
.hero .wrap { display: grid; gap: 3rem; grid-template-columns: 1.1fr .9fr; align-items: center; }
.eyebrow { display: inline-block; color: var(--lime); font-weight: 600; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 1rem; }
.lede { font-size: clamp(1.1rem, 2.2vw, 1.3rem); color: var(--muted); max-width: 36rem; }
.status { display: inline-flex; gap: .6rem; align-items: center; margin-top: 1rem; padding: .7rem 1rem; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--muted); font-size: .95rem; }
.status strong { color: var(--text); }
.dot { width: .55rem; height: .55rem; border-radius: 50%; background: var(--coral); flex: none; }
.actions { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1.5rem; }
.button { max-width: 100%; overflow-wrap: anywhere; text-align: center; display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .75rem 1.3rem; border-radius: 999px; font-weight: 600; text-decoration: none; border: 1px solid var(--line); color: var(--text); background: var(--surface-2); }
.button.primary { background: var(--lime); color: var(--on-lime); border-color: var(--lime); }
.button:hover { filter: brightness(1.08); text-decoration: none; }
.phone { border-radius: 38px; border: 1px solid var(--line); overflow: hidden; background: #000; box-shadow: 0 30px 80px rgba(0,0,0,.55); max-width: 340px; margin-inline: auto; }

/* Sections */
section { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.section-head { max-width: 44rem; margin-bottom: 2rem; }
.section-head p { color: var(--muted); }
.grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem 1.4rem 1.2rem; }
.card p, .card li { color: var(--muted); font-size: .98rem; }
.card ul { padding-left: 1.1rem; margin: .4rem 0 0; }
.chip { display: inline-block; font-size: .78rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: .25rem .6rem; border-radius: 999px; margin-bottom: .7rem; }
.chip.lime { background: rgba(198,255,58,.14); color: var(--lime); }
.chip.coral { background: rgba(255,122,72,.15); color: #ffb08f; }
.chip.violet { background: rgba(156,141,255,.16); color: #c9c1ff; }
.chip.cyan { background: rgba(61,216,255,.14); color: #9eeaff; }
.screens { display: grid; gap: 1.25rem; grid-template-columns: repeat(3, 1fr); }
.screens figure { margin: 0; }
.screens figcaption { color: var(--muted); font-size: .92rem; text-align: center; margin-top: .75rem; }
.plans { display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; }
.plans .card.pro { border-color: rgba(198,255,58,.4); }
.note { color: var(--muted); font-size: .93rem; }
.card .note { margin-top: .9rem; margin-bottom: 0; }
.band { background: var(--surface); border-block: 1px solid var(--line); }

/* Reading pages */
.page { padding: clamp(2.5rem, 6vw, 4rem) 0 4rem; }
.prose { max-width: var(--read); }
.prose h1 { font-size: clamp(2rem, 5vw, 3rem); }
.prose h2 { font-size: 1.45rem; margin-top: 2.4rem; padding-top: .4rem; }
.prose h3 { margin-top: 1.6rem; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin-bottom: .45rem; }
.prose .meta { color: var(--muted); font-size: .95rem; }
.summary { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--lime); border-radius: 16px; padding: 1.1rem 1.3rem; margin: 1.5rem 0; }
.summary p:last-child, .summary ul:last-child { margin-bottom: 0; }
.toc { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 1rem 1.3rem; margin: 1.5rem 0; }
.toc ol { margin: .3rem 0 0; }
table { border-collapse: collapse; width: 100%; margin: 1rem 0 1.5rem; font-size: .95rem; }
th, td { text-align: left; vertical-align: top; padding: .7rem .75rem; border-bottom: 1px solid var(--line); }
th { color: var(--text); font-weight: 600; background: var(--surface); }
td { color: var(--muted); }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: .2rem 1.1rem; margin-bottom: .7rem; }
summary { cursor: pointer; font-weight: 600; padding: .8rem 0; min-height: 44px; }
details[open] summary { border-bottom: 1px solid var(--line); margin-bottom: .8rem; }
details > :last-child { margin-bottom: 1rem; }
.contact { display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; margin: 1.5rem 0 2rem; }
kbd, .ui { font-family: inherit; font-weight: 600; color: var(--text); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 2.2rem 0 3rem; color: var(--muted); font-size: .93rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.2rem; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: .35rem 1.2rem; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--text); }

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .screens { grid-template-columns: 1fr; max-width: 340px; margin-inline: auto; }
  .plans, .contact { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  body { font-size: 1rem; }
  .nav a { padding: .4rem .55rem; font-size: .9rem; }
}
@media print { .site-header, .site-footer, .skip { display: none; } body { background: #fff; color: #000; } a { color: #000; } td { color: #222; } }
