/* jimjim.se — static landing page. Same design tokens as the app. */
@font-face { font-family: 'Oswald'; src: url('../fonts/oswald-var.woff2') format('woff2'); font-weight: 200 700; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('../fonts/inter-var.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }

:root {
  --bg: #f5f2ea; --surface: #fffdf7; --surface-2: #efeadd;
  --ink: #141311; --ink-muted: #57534a; --line: #dcd5c6;
  --accent: #f2c40f; --accent-deep: #c79d02; --accent-text: #8a6a00; --accent-ink: #141311;
  --shadow: 0 2px 12px rgba(31,26,12,.08), 0 1px 3px rgba(31,26,12,.06);
  --shadow-lift: 0 6px 24px rgba(31,26,12,.14);
  --font-display: 'Oswald','Arial Narrow',system-ui,sans-serif;
  --font-body: 'Inter',system-ui,-apple-system,sans-serif;
  --font-mono: ui-monospace,'SF Mono',Consolas,monospace;
}

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

body {
  font: 400 16px/1.5 var(--font-body); color: var(--ink);
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 800px 500px at 15% 8%, rgba(255,255,252,.6), transparent 60%),
    radial-gradient(ellipse 600px 500px at 85% 30%, rgba(214,205,185,.35), transparent 55%),
    radial-gradient(ellipse 700px 600px at 40% 90%, rgba(214,205,185,.35), transparent 60%);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent-text); }
a:hover { color: var(--ink); }

.wrap { max-width: 1080px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }

.monogram {
  display: inline-grid; place-items: center;
  background: var(--accent); color: var(--accent-ink);
  font-family: var(--font-body); font-weight: 800; letter-spacing: -0.03em;
  box-shadow: var(--shadow);
}
.monogram.sm { height: 42px; padding: 0 13px; border-radius: 12px; font-size: 1.25rem; }
.monogram.lg { min-width: 88px; height: 88px; padding: 0 20px; border-radius: 22px; font-size: 2.6rem; margin-bottom: 22px; }
.monogram.xs { height: 32px; padding: 0 10px; border-radius: 9px; font-size: .95rem; }

.btn {
  display: inline-flex; align-items: center; text-decoration: none;
  border-radius: 10px; font: 600 1.05rem var(--font-body); color: var(--ink);
}
.btn.primary { background: var(--accent); color: var(--accent-ink); padding: 14px 28px; box-shadow: var(--shadow); }
.btn.primary:hover { box-shadow: var(--shadow-lift); color: var(--accent-ink); }
.btn.ghost { border: 1.5px solid var(--line); padding: 14px 28px; }
.btn.small { padding: 10px 20px; font-size: .95rem; }
.btn:focus-visible { outline: 3px solid var(--accent-text); outline-offset: 2px; }

header.site { position: sticky; top: 0; z-index: 50; background: #23211d; border-bottom: 2px solid var(--accent); }
header.site .inner { display: flex; align-items: center; gap: 12px; padding-top: 12px; padding-bottom: 12px; }
header.site .brand { display: inline-flex; text-decoration: none; }
/* Login button — pinned to 40 px so it visually aligns with the language
   switch to its left. */
header.site .btn.ghost.small { height: 40px; padding: 0 18px; border-color: rgba(245,242,234,.3); color: var(--bg); }
header.site .btn.ghost.small:hover { border-color: var(--accent); color: var(--accent); }
header.site .btn.ghost.small.header-cta { border-color: var(--accent); color: var(--accent); }
header.site .btn.ghost.small.header-cta:hover { background: var(--accent); color: var(--accent-ink); }
/* Language switch — globe icon button, same 40 px footprint as the login
   button beside it. Uses brand yellow (the jim. logo colour) in its rest
   state so it reads as a first-class action instead of a subtle chip, and
   pulls close to the login button with a specific 8 px sibling gap. */
header.site .lang-switch {
  display: inline-grid; place-items: center;
  width: 40px; height: 40px; padding: 0;
  color: var(--accent); text-decoration: none;
  border: 1.5px solid var(--accent); border-radius: 10px;
  background: transparent;
  transition: background .15s, color .15s, border-color .15s;
}
header.site .lang-switch svg {
  width: 20px; height: 20px; fill: none; stroke: currentColor;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
header.site .lang-switch:hover { background: var(--accent); color: var(--accent-ink); }
header.site .lang-switch:focus-visible {
  outline: 3px solid var(--accent); outline-offset: 2px;
}
/* Tighter gap between globe and login button than the header's default 12 px
   flex-gap: they read as a paired unit. */
header.site .lang-switch + .btn.ghost.small { margin-left: -4px; }
.main-nav { display: flex; gap: 4px; margin-left: 12px; }
.main-nav a { padding: 8px 12px; border-radius: 8px; font: 600 .9rem var(--font-body); color: rgba(245,242,234,.85); text-decoration: none; }
.main-nav a:hover { background: rgba(245,242,234,.12); color: #fff; }
@media (max-width: 640px) { .main-nav { display: none; } }

/* Mobilmeny: checkbox-driven, animerad, stängs via js/nav.js vid länkklick */
.nav-toggle { position: absolute; opacity: 0; pointer-events: none; }
.nav-burger { display: none; width: 44px; height: 44px; border-radius: 10px; border: 1.5px solid rgba(245,242,234,.3); flex-direction: column; align-items: center; justify-content: center; gap: 5px; cursor: pointer; }
.nav-burger span { display: block; width: 18px; height: 2px; border-radius: 1px; background: var(--bg); transition: transform .22s cubic-bezier(.2,1,.4,1), opacity .15s; }
.nav-toggle:focus-visible + .nav-burger { outline: 3px solid var(--accent); outline-offset: 2px; }
.nav-toggle:checked + .nav-burger { border-color: var(--accent); }
.nav-toggle:checked + .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle:checked + .nav-burger span:nth-child(2) { opacity: 0; }
.nav-toggle:checked + .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-nav { display: none; overflow: hidden; max-height: 0; opacity: 0; transform: translateY(-6px); transition: max-height .3s cubic-bezier(.2,1,.4,1), opacity .22s ease, transform .22s ease; border-top: 1px solid transparent; }
header.site:has(.nav-toggle:checked) .mobile-nav { max-height: 480px; opacity: 1; transform: none; border-top-color: rgba(245,242,234,.15); }
.mobile-nav a { display: flex; align-items: baseline; gap: 14px; padding: 16px 24px; font: 600 1.35rem var(--font-display); text-transform: uppercase; letter-spacing: .02em; color: var(--bg); text-decoration: none; border-bottom: 1px solid rgba(245,242,234,.08); }
.mobile-nav a .idx { font: 600 .72rem var(--font-mono); letter-spacing: .08em; color: var(--accent); }
.mobile-nav a .arr { margin-left: auto; font-family: var(--font-body); font-size: 1rem; color: rgba(245,242,234,.35); transition: transform .15s, color .15s; }
.mobile-nav a:hover, .mobile-nav a:active { background: rgba(245,242,234,.06); color: #fff; }
.mobile-nav a:hover .arr { color: var(--accent); transform: translateX(3px); }
.mobile-nav .menu-cta { padding: 16px 24px 20px; border-bottom: none; }
.mobile-nav .menu-cta .btn { width: 100%; justify-content: center; }
@media (max-width: 640px) {
  .nav-burger { display: flex; }
  .mobile-nav { display: block; }
}
@media (prefers-reduced-motion: reduce) { .mobile-nav, .nav-burger span, .mobile-nav a .arr { transition: none; } }
@media (max-width: 420px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
  header.site .btn.ghost.small { display: none; }
  .hero { padding-top: 32px; padding-bottom: 44px; gap: 32px; }
  .hero .cta-row .btn { flex: 1; justify-content: center; }
  .cta-band .btn.primary { width: 100%; justify-content: center; }
}html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 84px; }
header.site .spacer { flex: 1; }

.hero { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px,1fr)); gap: 48px; align-items: center; padding-top: 48px; padding-bottom: 64px; }
.hero-coach { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 24px; }
.hero-jim { width: 72px; height: auto; flex: none; image-rendering: pixelated; }
.hero-coach .bubble { position: relative; background: var(--surface); border: 1.5px solid var(--line); border-radius: 12px; padding: 14px 16px; box-shadow: var(--shadow); }
.hero-coach .bubble p { font-size: .95rem; line-height: 1.6; color: var(--ink); max-width: 42ch; }
.hero-coach .bubble::before { content: ''; position: absolute; left: -8px; top: 24px; width: 14px; height: 14px; background: var(--surface); border-left: 1.5px solid var(--line); border-bottom: 1.5px solid var(--line); transform: rotate(45deg); }
.hero h1 { font-family: var(--font-display); font-size: clamp(2.2rem, 4.5vw, 3.2rem); font-weight: 600; text-transform: uppercase; line-height: 1.08; margin-bottom: 14px; }
.hero .sub { font-size: 1.05rem; line-height: 1.6; color: var(--ink-muted); max-width: 44ch; margin-bottom: 28px; }
.hero .cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .fine { margin-top: 18px; font-size: .85rem; color: var(--ink-muted); }

.demo-holder { display: grid; place-items: center; }
.demo-card { width: 100%; max-width: 360px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lift); padding: 18px; }
.demo-card .focus-star { color: var(--accent-text); font-size: .72rem; font-weight: 700; letter-spacing: .06em; }
.demo-card h3 { font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; }
.demo-card .target { color: var(--ink-muted); font-size: .8rem; margin-bottom: 8px; }
.demo-card .prev { font-family: var(--font-mono); font-size: .76rem; color: var(--ink-muted); background: var(--surface-2); border-radius: 8px; padding: 6px 10px; margin-bottom: 10px; }
.platebar { display: flex; align-items: center; gap: 5px; height: 22px; margin-bottom: 12px; }
.platebar .plate { width: 12px; height: 22px; border-radius: 4px; background: var(--surface-2); border: 1.5px solid var(--line); }
.platebar .plate.filled { background: var(--accent); border-color: var(--accent-deep); }
.platebar .axle { flex: 1; height: 4px; border-radius: 2px; background: var(--line); }
.set-row { display: grid; grid-template-columns: 32px 1fr 60px 40px; gap: 8px; align-items: center; padding: 5px 0; }
.set-row .no { font-family: var(--font-mono); font-size: .85rem; color: var(--ink-muted); text-align: center; }
.set-row .desc { font-family: var(--font-mono); font-size: .85rem; }
.set-row .rpe { font-family: var(--font-mono); font-size: .78rem; color: var(--ink-muted); }
.set-row .logbtn { width: 40px; height: 36px; border-radius: 9px; display: grid; place-items: center; border: 1.5px solid var(--line); background: var(--surface); }
.set-row .logbtn.done { background: var(--accent); border-color: var(--accent-deep); color: var(--accent-ink); }
.set-row .logbtn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.rest-chip { display: flex; gap: 12px; align-items: center; margin-top: 12px; background: var(--ink); color: var(--bg); border-radius: 40px; padding: 8px 16px; width: fit-content; }
.rest-chip .time { font-family: var(--font-mono); font-size: 1rem; font-weight: 600; }
.rest-chip .next { font-size: .78rem; opacity: .7; }

.features { padding-bottom: 64px; }
.features .kicker { font-family: var(--font-mono); font-size: .78rem; font-weight: 600; letter-spacing: .1em; color: var(--ink-muted); text-transform: uppercase; margin-bottom: 20px; }
.features .grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); column-gap: 40px; }
.features .item { border-top: 1px solid var(--line); padding: 18px 0 22px; }
.features h3 { font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; text-transform: uppercase; letter-spacing: .02em; margin-bottom: 5px; }
.features p { font-size: .9rem; line-height: 1.55; color: var(--ink-muted); max-width: 42ch; }

.faq { padding-bottom: 72px; }
.faq .kicker { font-family: var(--font-mono); font-size: .78rem; font-weight: 600; letter-spacing: .1em; color: var(--ink-muted); text-transform: uppercase; margin-bottom: 20px; }
.faq .grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); column-gap: 40px; }
.faq .item { border-top: 1px solid var(--line); padding: 18px 0 22px; }
.faq h3 { font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; text-transform: uppercase; letter-spacing: .02em; margin-bottom: 5px; }
.faq p { font-size: .9rem; line-height: 1.55; color: var(--ink-muted); max-width: 46ch; }

.cta-band { background: var(--accent); border-top: 1px solid var(--accent-deep); border-bottom: 1px solid var(--accent-deep); }
.cta-band .inner { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; padding-top: 36px; padding-bottom: 36px; }
.cta-band h2 { flex: 1; font-family: var(--font-display); font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 600; text-transform: uppercase; color: var(--accent-ink); min-width: 240px; }
.cta-band .btn.primary { background: var(--ink); color: var(--bg); box-shadow: none; }
.cta-band .btn.primary:hover { color: var(--bg); box-shadow: var(--shadow-lift); }

.coach { padding-bottom: 72px; }
.coach .card { background: var(--accent); border: 1px solid var(--accent-deep); border-radius: 16px; box-shadow: var(--shadow); padding: 32px 24px; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); gap: 28px; align-items: center; }
.coach .figures { display: flex; gap: 24px; align-items: center; justify-content: center; }
.coach .figure { text-align: center; }
.coach .figure p { margin-top: 6px; font-family: var(--font-mono); font-size: .75rem; color: rgba(20,19,17,.65); }
.coach .arrow { width: 28px; height: 28px; fill: none; stroke: var(--accent-ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.coach h2 { font-family: var(--font-display); font-size: 1.6rem; font-weight: 600; text-transform: uppercase; margin-bottom: 10px; color: var(--accent-ink); }
.coach .body { font-size: .95rem; line-height: 1.6; color: rgba(20,19,17,.75); margin-bottom: 20px; }
.coach .btn.primary { background: var(--ink); color: var(--bg); box-shadow: none; }
.coach .btn.primary:hover { color: var(--bg); box-shadow: var(--shadow-lift); }
.avatar { display: block; width: 64px; height: auto; image-rendering: pixelated; margin: 0 auto; }

footer.site { background: #23211d; color: var(--bg); }
footer.site .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); gap: 32px; padding-top: 40px; padding-bottom: 32px; }
footer.site .col { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
footer.site .brand-col p { font-size: .85rem; line-height: 1.55; color: rgba(245,242,234,.65); max-width: 34ch; }
footer.site h4 { font-family: var(--font-mono); font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: rgba(245,242,234,.55); }
footer.site .col a { font-size: .9rem; font-weight: 500; text-decoration: none; color: var(--bg); }
footer.site .col a:hover { color: var(--accent); }
footer.site .legal { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: space-between; border-top: 1px solid rgba(245,242,234,.15); padding-top: 18px; padding-bottom: 24px; font-size: .8rem; color: rgba(245,242,234,.55); }
footer.site .legal a { font-size: .8rem; font-weight: 600; color: var(--bg); }

@media (prefers-reduced-motion: no-preference) {
  .hero > div { animation: riseIn .5s ease-out; }
  .demo-holder { animation: riseIn .5s ease-out .1s backwards; }
  @keyframes riseIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
}
