/* Förstasidan och iPhone-guiden på nphjalpen.se (scripts/webb.mjs). Appens färger och avståndsskala 4–48. */
@font-face { font-family: Lexend; font-weight: 300; font-display: swap; src: url(/typsnitt/Lexend_300Light.ttf); }
@font-face { font-family: Lexend; font-weight: 400; font-display: swap; src: url(/typsnitt/Lexend_400Regular.ttf); }
@font-face { font-family: Lexend; font-weight: 600; font-display: swap; src: url(/typsnitt/Lexend_600SemiBold.ttf); }
:root { --gron: #235e4c; --bg: #f6f5ef; --text: #1d3b33; --dampad: #5f6f69; --bubbla: #dcebd5; --kant: #b9c7c0; }
* { box-sizing: border-box; margin: 0; }
html { background: var(--bg); }
body {
  font-family: Lexend, system-ui, sans-serif; color: var(--text); background: var(--bg);
  max-width: 480px; margin: 0 auto; padding: 48px 24px 32px; display: flex; flex-direction: column; gap: 24px;
}
h1 { font-weight: 600; font-size: 32px; color: var(--gron); text-align: center; }
h2 { font-weight: 600; font-size: 17px; }
p { font-weight: 300; font-size: 16px; line-height: 1.45; }
a { color: var(--gron); }
.tona { opacity: 0; animation: tona 0.5s ease-out forwards; }
.tona:nth-child(2) { animation-delay: 0.08s; } .tona:nth-child(3) { animation-delay: 0.16s; }
.tona:nth-child(4) { animation-delay: 0.24s; } .tona:nth-child(5) { animation-delay: 0.32s; }
@keyframes tona { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .tona { animation: none; opacity: 1; } }
.halsning { display: flex; align-items: flex-end; gap: 12px; }
.halsning img { width: 112px; flex: none; }
.bubbla { background: var(--bubbla); border-radius: 16px; padding: 16px; margin-bottom: 24px; font-weight: 300; font-size: 15px; line-height: 1.45; }
.kort { background: #fff; border-radius: 16px; padding: 16px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08); display: flex; flex-direction: column; gap: 8px; }
.kort.kommer { background: transparent; box-shadow: none; border: 1.5px dashed var(--kant); }
.knapp {
  display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 56px; border-radius: 16px;
  font-weight: 400; font-size: 17px; text-decoration: none;
}
.knapp.gron { background: var(--gron); color: #fff; }
.knapp.play { background: #111; color: #fff; }
.knapp.play small { display: block; font-size: 11px; font-weight: 300; opacity: 0.85; }
.knapp.play b { display: block; font-weight: 600; font-size: 17px; }
.dampad { color: var(--dampad); font-size: 15px; }
.rad { display: flex; align-items: center; gap: 8px; }
.steg { display: flex; gap: 16px; align-items: flex-start; }
.nummer {
  flex: none; width: 32px; height: 32px; border-radius: 16px; background: var(--gron); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 600;
}
.ikon { display: inline-flex; vertical-align: middle; width: 24px; height: 24px; margin: 0 4px; }
.tillbaka { text-decoration: none; font-size: 15px; }
footer { text-align: center; }
