/* ---------- Grund ---------- */

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

:root {
  --bakgrund: #eef0eb;   /* ljust, svagt grågrön ton */
  --gron: #2F7749;       /* byt till exakt samma gröna som appikonen */
  --gron-mork: #235f35;
  --text: #1c1c1c;
  --ljus: #ffffff;

  --rubrik-font: "Anton", "Arial Narrow", Impact, sans-serif;
  --text-font: "Figtree", system-ui, sans-serif;
}

body {
  background: var(--bakgrund);
  color: var(--text);
  font-family: var(--text-font);
  font-size: 1.0625rem;
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

a:focus-visible {
  outline: 3px solid var(--gron);
  outline-offset: 3px;
}


/* ---------- Sidhuvud ---------- */

.sidhuvud {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1rem 1.5rem;
}

.logga {
  font-weight: 700;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.logga img {
  width: 40px;
  height: 40px;
}

.sidhuvud ul {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  list-style: none;
}

.sidhuvud nav a {
  text-decoration: none;
}

.sidhuvud nav a:hover,
.sidhuvud nav a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 4px;
}


/* ---------- Hero ---------- */

.hero {
  padding: 2rem 1.5rem 3rem;
}

.hero-rad {
  display: flex;
  flex-direction: column;   /* mobil: text, hund, text under varandra */
  align-items: center;
  gap: 0.5rem;
  font-family: var(--rubrik-font);
  font-weight: 400;
  font-size: clamp(3rem, 9vw, 6.5rem);
  line-height: 0.95;
  text-transform: uppercase;
  text-align: center;
}

/* Hunden: två lager, svansen bakom kroppen */
.snillet {
  position: relative;
  display: block;
  width: 70%;
  max-width: 300px;
  transform-origin: bottom center;
  animation: andas 4s ease-in-out infinite;
   translate: -10.4% 0;
}

.snillet img {
  width: 100%;
  height: auto;
}

.kropp {
  position: relative;
  z-index: 1;
}

.svans {
  position: absolute;
  inset: 0;
  transform-origin: 25% 87%;   /* svansroten */
  animation: vifta 4s ease-in-out infinite;
}

@keyframes andas {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.015); }
}

@keyframes vifta {
  0%, 60%, 100% { transform: rotate(0deg); }
  66% { transform: rotate(5deg); }
  72% { transform: rotate(-4deg); }
  78% { transform: rotate(5deg); }
  84% { transform: rotate(-3deg); }
  90% { transform: rotate(0deg); }
}

.hero-fakta {
  max-width: 40ch;
  margin: 1.5rem auto 0;
  text-align: center;
}

.hero-fakta {
  position: relative;
  background: #fff;
  padding: 1.25rem 1.5rem;
  border-radius: 1rem;
  font-size: 1.125rem;
  max-width: 36ch;
  margin-top: 2rem;
}

.hero-fakta::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  border: 12px solid transparent;
  border-top: 0;
  border-bottom-color: #fff;   /* pilen upp mot hunden */
}

.hero-fakta strong {
  color: var(--gron);
  font-weight: 700;
  white-space: nowrap;
}

/* ---------- Grön ruta ---------- */

.varfor {
  background: var(--gron);
  color: var(--ljus);
  padding: 4rem 1.5rem;
}

.varfor-innehall {
  max-width: 62ch;
  margin: 0 auto;
}

.overrubrik {
  font-weight: 600;
  margin-bottom: 0.5rem;
  opacity: 0.85;
}

.varfor h2 {
  font-family: var(--rubrik-font);
  font-weight: 400;
  font-size: clamp(2.2rem, 6vw, 3.5rem);
  line-height: 1;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.varfor p + p {
  margin-top: 1rem;
}

.varfor-knappar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.las-mer {
  font-weight: 700;
  text-underline-offset: 4px;
}

.butiker {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.butiker img {
  height: 44px;
  width: auto;
}

.varfor a:focus-visible {
  outline-color: var(--ljus);
}

/* ---------- Textsidor (policy m.m.) ---------- */

.textsida {
  max-width: 65ch;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}

.textsida h1 {
  font-family: var(--rubrik-font);
  font-weight: 400;
  font-size: clamp(2.5rem, 7vw, 4rem);
  line-height: 1;
  text-transform: uppercase;
}

.uppdaterad {
  margin-top: 0.5rem;
  opacity: 0.7;
}

.textsida section {
  margin-top: 2.5rem;
}

.textsida h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.textsida p + p,
.textsida ul + p {
  margin-top: 0.75rem;
}

.textsida ul {
  margin: 0.75rem 0 0 1.25rem;
}

.textsida li + li {
  margin-top: 0.25rem;
}

/* ---------- Sidfot ---------- */

.sidfot {
  padding: 2.5rem 1.5rem;
  font-size: 0.95rem;
}

.sidfot-rad {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  max-width: 62ch;
  margin: 0 auto;
}

.sociala {
  display: flex;
  gap: 1.25rem;
  list-style: none;
}

.sociala img {
  width: 28px;
  height: 28px;
}

.sociala a {
  display: block;
}

.sidfot-liten {
  max-width: 62ch;
  margin: 1.5rem auto 0;
  opacity: 0.75;
}


/* ---------- Större skärmar ---------- */

@media (min-width: 768px) {
  .hero {
    padding-top: 3rem;
  }

  .hero-rad {
    flex-direction: row;
    justify-content: center;
    align-items: stretch;
    gap: 2rem;
  }

  .vanster,
  .hoger {
    flex: 1;                 /* lika breda, så hunden hamnar i mitten */
  }

  .vanster {
    text-align: right;
    align-self: flex-start;  /* uppe vid huvudet */
  }

  .hoger {
    text-align: left;
    align-self: flex-end;    /* nere vid tassarna */
  }

  .snillet {
    flex: 0 0 auto;
    width: 300px;
  }
}


/* ---------- Mindre rörelse ---------- */

@media (prefers-reduced-motion: reduce) {
  .snillet,
  .svans {
    animation: none;
  }
}

/* ---------- Om mig ---------- */

.om-mig-intro {
  display: grid;
  gap: 1.5rem;
  align-items: center;
}

.om-mig-bild {
  width: 100%;
  max-width: 280px;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 24px;
}

.textsida h3 {
  margin-top: 1.75rem;
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gron);
}

.kallor {
  list-style: none;
  margin-left: 0;
}

.kallor li {
  padding: 0.75rem 0;
  border-top: 1px solid #dfe3dc;
}

.kallor a {
  font-weight: 600;
  white-space: nowrap;
}

@media (min-width: 768px) {
  .om-mig-intro {
    grid-template-columns: 240px 1fr;
  }
}

/* ---------- Så fungerar appen ---------- */

.steg {
  list-style: none;
  counter-reset: steg;
  margin: 2rem 0 0;
}

.steg[start="3"] {
  counter-reset: steg 2;
}

.steg li {
  counter-increment: steg;
  position: relative;
  padding-left: 3.25rem;
  margin-top: 1.75rem;
}

.steg li::before {
  content: counter(steg);
  position: absolute;
  left: 0;
  top: 0;
  width: 2.25rem;
  height: 2.25rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--gron);
  color: #fff;
  font-family: var(--rubrik-font);
  font-size: 1.1rem;
}

.steg h2 {
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}

/* Notisbubblor */
.notiser {
  display: grid;
  gap: 0.75rem;
  max-width: 380px;
  margin: 2rem auto;
}

.notis {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  font-weight: 600;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.notis img {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 8px;
}

.notiser.synlig .notis {
  opacity: 1;
  transform: none;
}

.notiser.synlig .notis:nth-child(2) { transition-delay: 0.4s; }
.notiser.synlig .notis:nth-child(3) { transition-delay: 0.8s; }

/* Tips */
.tips {
  list-style: none;
  margin-left: 0;
}

.tips li {
  padding: 0.75rem 0;
  border-top: 1px solid #dfe3dc;
}

@media (prefers-reduced-motion: reduce) {
  .notis {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.app-bild {
  display: block;
  width: 60%;
  max-width: 260px;
  margin: 1.5rem auto;
  border: 8px solid #1c1c1c;
  border-radius: 36px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}