/* TrainersBook marketing site. Colours come from the app (LoginScreen.tsx, Tailwind slate/blue/purple). */
:root {
  --blue-500: #3B82F6;
  --blue-600: #2563EB;
  --blue-700: #1D4ED8;
  --blue-800: #1E40AF;
  --blue-100: #DBEAFE;
  --purple-500: #A855F7;
  --purple-700: #7E22CE;
  --slate-900: #0F172A;
  --slate-800: #1E293B;
  --slate-700: #334155;
  --slate-500: #64748B;
  --slate-400: #94A3B8;
  --slate-300: #CBD5E1;
  --slate-200: #E2E8F0;
  --slate-50: #F8FAFC;
  --amber: #FCD34D;
  --green: #22C55E;

  --bg: #FFFFFF;
  --bg-soft: var(--slate-50);
  --text: #111827;
  --text-2: #4B5563;
  --line: var(--slate-200);
  --card: #FFFFFF;
  --radius: 20px;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  --max: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: var(--slate-900);
    --bg-soft: var(--slate-800);
    --text: #F8FAFC;
    --text-2: var(--slate-300);
    --line: var(--slate-700);
    --card: var(--slate-800);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  }
}
:root[data-theme="dark"] {
  --bg: var(--slate-900);
  --bg-soft: var(--slate-800);
  --text: #F8FAFC;
  --text-2: var(--slate-300);
  --line: var(--slate-700);
  --card: var(--slate-800);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--blue-600); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
.lead { font-size: 1.15rem; color: var(--text-2); max-width: 36rem; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
section { padding: 72px 0; }
.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-600);
  margin-bottom: 12px;
}
.center { text-align: center; }
.center .lead { margin-inline: auto; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 1rem;
  border: 0;
  cursor: pointer;
  text-decoration: none !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--blue-500), var(--blue-700));
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.35);
}
.btn-ghost {
  color: var(--text);
  background: transparent;
  border: 1.5px solid var(--line);
}
.btn-ghost:hover { background: var(--bg-soft); }
.btn-white { color: var(--slate-900); background: #fff; }

/* Store badges */
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px 10px 12px;
  border-radius: 12px;
  background: #000;
  color: #fff;
  border: 1px solid #333;
  min-width: 170px;
  line-height: 1.1;
  text-decoration: none !important;
}
.store small { display: block; font-size: 0.65rem; font-weight: 500; opacity: 0.85; }
.store strong { font-size: 1.05rem; font-weight: 700; }
.store svg { width: 26px; height: 26px; fill: #fff; flex: none; }
.store.soon { opacity: 0.55; cursor: default; }
.store-note { font-size: 0.85rem; color: var(--text-2); margin-top: 10px; }

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; position: relative; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; color: var(--text); text-decoration: none !important; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { color: var(--text-2); font-weight: 600; font-size: 0.95rem; }
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav-links .btn { padding: 10px 16px; font-size: 0.9rem; color: #fff; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--text); }
.nav-toggle svg { width: 26px; height: 26px; }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 88px 0 40px;
  background:
    radial-gradient(900px 500px at 10% -10%, rgba(37, 99, 235, 0.18), transparent 60%),
    radial-gradient(700px 420px at 95% 10%, rgba(168, 85, 247, 0.14), transparent 60%),
    var(--bg);
}
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.hero h1 span { background: linear-gradient(90deg, var(--blue-500), var(--blue-800)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 18px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 18px; color: var(--text-2); font-size: 0.9rem; font-weight: 600; margin-top: 22px; }
.hero-points span::before { content: "\2713"; color: var(--green); margin-right: 6px; font-weight: 800; }

/* Phone mockup */
.phone-wrap { display: flex; justify-content: center; position: relative; }
.phone {
  width: 300px;
  aspect-ratio: 9 / 19;
  border-radius: 44px;
  background: #0b1220;
  padding: 12px;
  box-shadow: 0 30px 70px rgba(2, 6, 23, 0.45), inset 0 0 0 2px #1f2937;
  position: relative;
}
.phone::before {
  content: "";
  position: absolute;
  top: 22px; left: 50%;
  width: 96px; height: 26px;
  transform: translateX(-50%);
  background: #0b1220;
  border-radius: 20px;
  z-index: 3;
}
.screen {
  width: 100%; height: 100%;
  border-radius: 34px;
  overflow: hidden;
  background: var(--slate-900);
  color: #fff;
  display: flex;
  flex-direction: column;
  font-size: 12px;
}
.screen img { width: 100%; height: 100%; object-fit: cover; }
.s-top { padding: 54px 18px 10px; }
.s-top .hi { font-size: 11px; color: var(--slate-400); }
.s-top .name { font-size: 20px; font-weight: 800; }
.s-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 6px 16px; }
.s-card { border-radius: 14px; padding: 12px; background: var(--slate-800); }
.s-card .k { font-size: 10px; color: var(--slate-400); }
.s-card .v { font-size: 18px; font-weight: 800; margin-top: 2px; }
.s-card.blue { background: linear-gradient(135deg, var(--blue-600), var(--blue-800)); }
.s-card.blue .k { color: var(--blue-100); }
.s-list { padding: 10px 16px; display: grid; gap: 8px; }
.s-row { display: flex; align-items: center; gap: 10px; background: var(--slate-800); border-radius: 12px; padding: 10px 12px; }
.s-row .av { width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg, var(--purple-500), var(--purple-700)); flex: none; }
.s-row .av.b { background: linear-gradient(135deg, var(--blue-500), var(--blue-700)); }
.s-row .av.g { background: linear-gradient(135deg, #22C55E, #15803D); }
.s-row .t { font-weight: 700; font-size: 12px; }
.s-row .d { color: var(--slate-400); font-size: 10px; }
.s-row .pill { margin-left: auto; font-size: 9px; font-weight: 700; padding: 3px 7px; border-radius: 999px; background: rgba(34, 197, 94, 0.18); color: #86EFAC; }
.s-row .pill.warn { background: rgba(252, 211, 77, 0.18); color: var(--amber); }
.s-tabs { margin-top: auto; display: flex; justify-content: space-around; padding: 12px 10px 22px; border-top: 1px solid var(--slate-700); color: var(--slate-400); font-size: 9px; font-weight: 700; }
.s-tabs span.on { color: var(--blue-500); }
.s-tabs span::before { content: ""; display: block; width: 18px; height: 18px; margin: 0 auto 3px; border-radius: 6px; background: currentColor; opacity: 0.5; }
.float-card {
  position: absolute;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px 14px;
  box-shadow: var(--shadow);
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  gap: 10px;
  align-items: center;
}
.float-card small { display: block; font-weight: 500; color: var(--text-2); }
.float-card .ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: #fff; font-size: 16px; }
.float-card { z-index: 5; }
.fc-1 { top: 110px; left: 0; }
.fc-2 { bottom: 120px; right: 0; }

/* Feature grid */
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}
.card .ic {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: grid; place-items: center;
  margin-bottom: 16px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue-500), var(--blue-700));
}
.card .ic.purple { background: linear-gradient(135deg, var(--purple-500), var(--purple-700)); }
.card .ic.green { background: linear-gradient(135deg, #22C55E, #15803D); }
.card .ic.amber { background: linear-gradient(135deg, #FBBF24, #D97706); }
.card .ic svg { width: 22px; height: 22px; }
.card p { color: var(--text-2); margin: 0; font-size: 0.97rem; }

/* Audience split (mirrors the two buttons on the login screen) */
.audience { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.aud {
  border-radius: var(--radius);
  padding: 34px;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.aud.trainer { background: linear-gradient(135deg, var(--blue-500), var(--blue-700)); }
.aud.client { background: linear-gradient(135deg, var(--purple-500), var(--purple-700)); }
.aud h3 { font-size: 1.6rem; font-weight: 800; }
.aud .sub { opacity: 0.9; margin-bottom: 18px; }
.aud ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.aud li { display: flex; gap: 10px; align-items: flex-start; }
.aud li::before { content: "\2713"; font-weight: 800; flex: none; background: rgba(255,255,255,0.2); border-radius: 6px; width: 22px; height: 22px; display: grid; place-items: center; font-size: 0.8rem; margin-top: 2px; }
.aud .badge { position: absolute; top: 22px; right: 22px; font-size: 0.75rem; font-weight: 700; background: rgba(255,255,255,0.18); padding: 5px 10px; border-radius: 999px; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { padding: 26px; border-radius: var(--radius); background: var(--bg-soft); border: 1px solid var(--line); }
.step .num {
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--blue-600); color: #fff;
  font-weight: 800; margin-bottom: 14px;
}
.step p { color: var(--text-2); margin: 0; }

/* Privacy band */
.privacy { background: var(--slate-900); color: #fff; }
.privacy .eyebrow { color: #93C5FD; }
.privacy .lead { color: var(--slate-300); }
.privacy .grid-2 { margin-top: 36px; }
.privacy .card { background: var(--slate-800); border-color: var(--slate-700); box-shadow: none; }
.privacy .card p { color: var(--slate-300); }
.privacy .card h3 { color: #fff; }

/* CTA */
.cta { padding: 0 0 72px; }
.cta-box {
  border-radius: 28px;
  padding: 56px 40px;
  text-align: center;
  color: #fff;
  background:
    radial-gradient(600px 300px at 20% 0%, rgba(168, 85, 247, 0.35), transparent 60%),
    linear-gradient(135deg, var(--blue-600), var(--blue-800));
}
.cta-box h2 { color: #fff; }
.cta-box p { color: var(--blue-100); max-width: 34rem; margin: 0 auto 26px; }
.cta-box .stores { justify-content: center; }
.cta-box .btn-white { margin-top: 18px; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 40px 0; color: var(--text-2); font-size: 0.9rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; align-items: center; }
footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
footer nav a { color: var(--text-2); }

/* Legal / content pages */
.page { padding: 56px 0 80px; }
.page .wrap { max-width: 780px; }
.page h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
.page h2 { font-size: 1.45rem; margin-top: 2.2em; }
.page h3 { font-size: 1.1rem; margin-top: 1.6em; }
.page p, .page li { color: var(--text-2); }
.page li { margin-bottom: 0.4em; }
.page table { width: 100%; border-collapse: collapse; margin: 1em 0 1.5em; font-size: 0.95rem; }
.page th, .page td { text-align: left; vertical-align: top; padding: 10px 12px; border-top: 1px solid var(--line); }
.page th { color: var(--text); font-weight: 700; width: 28%; }
.page td { color: var(--text-2); }
.meta { color: var(--text-2); font-size: 0.9rem; margin-bottom: 2em; }
.draft {
  background: #FEF3C7;
  color: #78350F;
  border: 1px solid #FCD34D;
  border-radius: 14px;
  padding: 14px 18px;
  font-size: 0.95rem;
  margin-bottom: 2em;
}
:root[data-theme="dark"] .draft { background: rgba(252, 211, 77, 0.12); color: var(--amber); border-color: rgba(252, 211, 77, 0.4); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .draft { background: rgba(252, 211, 77, 0.12); color: var(--amber); border-color: rgba(252, 211, 77, 0.4); } }
.fill {
  background: #FDE68A;
  color: #78350F;
  padding: 0 5px;
  border-radius: 4px;
  font-weight: 600;
}
.toc { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 16px; padding: 18px 22px; margin: 1.5em 0 2em; }
.toc ol { margin: 0; padding-left: 1.2em; columns: 2; gap: 30px; }
.toc li { margin-bottom: 4px; }
.callout { border-left: 4px solid var(--blue-600); background: var(--bg-soft); padding: 14px 18px; border-radius: 0 12px 12px 0; margin: 1.2em 0; }

/* Support cards */
.support-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 2em 0; }
.support-grid .card h3 { margin-top: 0; }
.support-grid .card p { color: var(--text-2); }

/* Responsive */
@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: 1fr; text-align: center; }
  .hero .lead { margin-inline: auto; }
  .hero-actions, .hero-points, .stores { justify-content: center; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; }
  .phone-wrap { margin-top: 30px; }
}
@media (max-width: 720px) {
  section { padding: 56px 0; }
  .hero { padding-top: 56px; }
  .grid-3, .grid-2, .audience, .support-grid { grid-template-columns: 1fr; }
  .nav-links {
    display: none;
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 10px 16px 18px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav-links .btn { margin-top: 12px; justify-content: center; }
  .nav-toggle { display: block; }
  .float-card { display: none; }
  .phone { width: 260px; }
  .cta-box { padding: 40px 20px; }
  .toc ol { columns: 1; }
}

/* Waitlist form */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.waitlist { margin-top: 26px; max-width: 34rem; }
.waitlist-row { display: flex; flex-wrap: wrap; gap: 10px; }
.waitlist input[type="email"], .waitlist select {
  min-height: 52px;
  padding: 0 14px;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  color: var(--text);
  font: inherit;
}
.waitlist input[type="email"] { flex: 1 1 210px; min-width: 0; }
.waitlist select { flex: 0 1 165px; }
.waitlist .btn { min-height: 52px; justify-content: center; flex: 1 1 100%; }
.waitlist input:focus-visible, .waitlist select:focus-visible, .btn:focus-visible, summary:focus-visible { outline: 3px solid var(--blue-500); outline-offset: 2px; }
.waitlist-note { margin: 10px 0 0; font-size: 0.85rem; color: var(--text-2); }
.waitlist-center { margin: 0 auto; }
.waitlist-center .waitlist-note { margin-top: 10px; color: var(--blue-100); }
.cta-box input[type="email"] { color: var(--slate-900); background: #fff; border-color: #fff; }
.waitlist-center .btn { flex: 0 1 auto; }

/* Phone caption */
.phone-figure { margin: 0; }
.phone-figure figcaption { margin-top: 14px; text-align: center; font-size: 0.8rem; color: var(--text-2); }

/* FAQ */
.faq { max-width: 760px; }
.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq details:first-of-type { margin-top: 28px; border-top: 1px solid var(--line); }
.faq summary { font-weight: 700; cursor: pointer; }
.faq details p { margin: 10px 0 0; color: var(--text-2); }

@media (max-width: 960px) {
  .waitlist { margin-inline: auto; }
}

@media (max-width: 720px) {
  .waitlist select, .waitlist input[type="email"] { flex: 1 1 100%; }
}

/* Fälla för robotar i väntelistan: osynlig för besökare, inte display:none. */
.wl-trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
