/* Gemensam stil för lightgraph.se (samma färger som appen Kokodoko). */
:root {
  --ground: #f6f3f9;
  --surface: #ffffff;
  --ink: #25182f;
  --muted: #5e5469;
  --primary: #7f469b;
  --primary-dark: #5f3474;
  --line: #e6dfec;
  --radius: 16px;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font:
    17px/1.6 system-ui,
    -apple-system,
    'Segoe UI',
    Roboto,
    sans-serif;
}

a {
  color: var(--primary);
}

a:hover {
  color: var(--primary-dark);
}

.wrap {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Sidhuvud och meny */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand {
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.95rem;
}

.site-nav a:hover {
  background: var(--ground);
}

.site-nav a[aria-current='page'] {
  background: var(--ground);
  color: var(--primary);
  font-weight: 600;
}

.site-nav .lang a {
  border: 1px solid var(--line);
}

/* Innehåll */
main {
  padding: 40px 0 56px;
}

.page {
  max-width: 720px;
}

h1 {
  font-size: clamp(1.8rem, 5vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}

h2 {
  font-size: 1.3rem;
  line-height: 1.3;
  margin: 36px 0 8px;
}

h3 {
  font-size: 1.05rem;
  margin: 20px 0 4px;
}

p,
li {
  margin: 0 0 10px;
}

ul,
ol {
  padding-left: 1.3em;
  margin: 0 0 12px;
}

.lead {
  font-size: 1.15rem;
  color: var(--muted);
  margin-bottom: 28px;
}

.muted {
  color: var(--muted);
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px 10px;
  margin: 16px 0;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin: 20px 0;
}

.grid .card {
  margin: 0;
}

.grid .card h3 {
  margin-top: 0;
}

/* Startsidans och appsidans topp */
.hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  margin-bottom: 8px;
}

.hero img {
  width: 112px;
  height: 112px;
  border-radius: 26px;
  box-shadow: 0 6px 20px rgba(37, 24, 47, 0.12);
}

.hero > div {
  flex: 1 1 300px;
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 12px;
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

.button:hover {
  background: var(--primary-dark);
  color: #fff;
}

.button.secondary {
  background: var(--surface);
  color: var(--primary);
  border: 1px solid var(--line);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0 8px;
}

.badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

/* Vanliga frågor */
details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 18px;
  margin: 10px 0;
}

summary {
  cursor: pointer;
  min-height: 44px;
  display: flex;
  align-items: center;
  font-weight: 600;
}

details[open] summary {
  margin-bottom: 4px;
}

details > :last-child {
  margin-bottom: 14px;
}

/* Sidfot */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 20px;
  padding-bottom: 28px;
}

.site-footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer a {
  color: var(--muted);
}
