/* Leonyly studio site.

   Deliberately independent of the product sites. Each app has its own typography
   and palette (FitTrack is dark, green and amber; the next one will be something
   else), so the studio page uses a neutral light identity that does not borrow
   from any of them. Nothing here is shared with fittrack/styles.css. */

:root {
  --paper: #ffffff;
  --surface: #f6f7f9;
  --surface-2: #eef1f4;
  --line: #e0e4ea;
  --line-strong: #c9d0d9;
  --ink: #121820;
  --body: #4c5765;
  --muted: #6f7987;
  --accent: #2d5f8b;
  --accent-strong: #234a6d;
  --on-accent: #ffffff;

  --max: 1080px;
  --gutter: 24px;
  --radius: 12px;

  --font: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Roboto,
    "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0f1319;
    --surface: #161b23;
    --surface-2: #1c222c;
    --line: #262d38;
    --line-strong: #38414f;
    --ink: #eef2f7;
    --body: #b3bcc9;
    --muted: #8b95a3;
    --accent: #7fb0dc;
    --accent-strong: #a2c8e9;
    --on-accent: #0f1319;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--body);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent-strong);
  text-decoration: underline;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

h1,
h2,
h3 {
  color: var(--ink);
  margin: 0;
  line-height: 1.2;
  letter-spacing: -0.018em;
  font-weight: 600;
}

h1 {
  font-size: clamp(2rem, 4.6vw, 3rem);
}

h2 {
  font-size: clamp(1.375rem, 2.6vw, 1.75rem);
}

h3 {
  font-size: 1.125rem;
}

p {
  margin: 0 0 1em;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: 16px;
  top: 16px;
  z-index: 100;
  background: var(--accent);
  color: var(--on-accent);
  padding: 10px 16px;
  border-radius: 6px;
}

.label {
  margin: 0 0 14px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.lede {
  font-size: clamp(1.0625rem, 1.7vw, 1.1875rem);
  color: var(--body);
  max-width: 58ch;
}

/* ---------- Header ---------- */

.site-header {
  position: relative;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.brand:hover {
  text-decoration: none;
  color: var(--ink);
}

.brand svg {
  width: 26px;
  height: 26px;
  color: var(--ink);
  flex: none;
}

.site-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 30px;
}

.site-nav a {
  color: var(--body);
  font-size: 0.9375rem;
}

.site-nav a:hover {
  color: var(--ink);
  text-decoration: none;
}

/* ---------- Mobile nav ---------- */

.nav-toggle {
  display: none;
  padding: 12px 4px 12px 14px;
  margin-right: -4px;
  background: none;
  border: 0;
  color: var(--ink);
  cursor: pointer;
}

.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
}

.nav-toggle__bars {
  position: relative;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  transition: transform 0.18s ease, top 0.18s ease;
}

.nav-toggle__bars::before {
  top: -7px;
}

.nav-toggle__bars::after {
  top: 7px;
}

.is-nav-open .nav-toggle__bars {
  background: transparent;
}

.is-nav-open .nav-toggle__bars::before {
  top: 0;
  transform: rotate(45deg);
}

.is-nav-open .nav-toggle__bars::after {
  top: 0;
  transform: rotate(-45deg);
}

/* Opt-in, the same as on the FitTrack pages: nav.js adds `has-nav-toggle` only
   once it can reopen the panel. Without it the header wraps onto a second row
   and every link stays reachable. */
@media (max-width: 720px) {
  .site-header .wrap {
    flex-wrap: wrap;
    height: auto;
    row-gap: 4px;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .site-nav {
    order: 3;
    width: 100%;
    margin-left: 0;
    gap: 26px;
  }

  .has-nav-toggle .site-header .wrap {
    flex-wrap: nowrap;
    height: 66px;
    padding-top: 0;
    padding-bottom: 0;
  }

  .has-nav-toggle .nav-toggle {
    display: block;
    margin-left: auto;
  }

  .has-nav-toggle .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0 var(--gutter) 10px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
  }

  .has-nav-toggle .site-header.is-nav-open .site-nav {
    display: flex;
  }

  .has-nav-toggle .site-nav a {
    padding: 15px 0;
    font-size: 1.0625rem;
    border-top: 1px solid var(--line);
  }
}

/* ---------- Sections ---------- */

section {
  padding: clamp(56px, 7vw, 88px) 0;
}

.hero {
  padding: clamp(72px, 10vw, 132px) 0 clamp(56px, 7vw, 88px);
  border-bottom: 1px solid var(--line);
}

.hero h1 {
  max-width: 17ch;
}

.hero .lede {
  margin-top: 22px;
}

/* ---------- Product ---------- */

.product {
  margin-top: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  padding: clamp(24px, 3.5vw, 36px);
  max-width: 780px;
}

.product-head {
  display: flex;
  align-items: center;
  gap: 16px;
}

.product-icon {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  border: 1px solid var(--line);
  flex: none;
}

.product-head h3 {
  margin: 0 0 2px;
  font-size: 1.25rem;
}

.product-role {
  margin: 0;
  font-size: 0.875rem;
  color: var(--muted);
}

.product p.product-desc {
  margin: 22px 0 0;
}

.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin: 22px 0 0;
  padding: 18px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.product-meta li {
  padding-right: 22px;
  margin-right: 22px;
  border-right: 1px solid var(--line);
  font-size: 0.875rem;
  color: var(--muted);
}

.product-meta li:last-child {
  border-right: 0;
  margin-right: 0;
  padding-right: 0;
}

/* Once the row wraps, the vertical dividers land in the wrong places. Stack
   the items instead of leaving rules hanging mid-column. */
@media (max-width: 680px) {
  .product-meta {
    display: grid;
    gap: 14px;
  }

  .product-meta li {
    border-right: 0;
    margin-right: 0;
    padding-right: 0;
  }
}

.product-meta b {
  display: block;
  color: var(--ink);
  font-weight: 600;
}

.product-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 26px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 0.9375rem;
  font-weight: 600;
  background: var(--accent);
  color: var(--on-accent);
  border: 1px solid var(--accent);
}

.btn:hover {
  text-decoration: none;
  background: var(--accent-strong);
  border-color: var(--accent-strong);
  color: var(--on-accent);
}

.btn--quiet {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}

.btn--quiet:hover {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line-strong);
}

.store-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--body);
}

.store-link:hover {
  color: var(--ink);
  text-decoration: none;
}

.store-link svg {
  width: 17px;
  height: 17px;
  flex: none;
}

.catalogue-note {
  margin: 26px 0 0;
  font-size: 0.9375rem;
  color: var(--muted);
  max-width: 58ch;
}

/* ---------- Approach ---------- */

.approach {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.approach-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 40px;
}

.approach-grid h3 {
  margin-bottom: 8px;
  font-size: 1rem;
}

.approach-grid p {
  margin: 0;
  font-size: 0.9375rem;
}

@media (max-width: 800px) {
  .approach-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

/* ---------- Contact ---------- */

.contact .lede {
  margin-top: 16px;
}

.contact-actions {
  margin-top: 28px;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 40px 0 48px;
  font-size: 0.9375rem;
  color: var(--muted);
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: space-between;
  align-items: flex-start;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
}

.footer-links a {
  color: var(--body);
}

.footer-links a:hover {
  color: var(--ink);
}

.footer-legal {
  margin: 32px 0 0;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 0.8125rem;
  color: var(--muted);
}
