/* ============================================================
   Nattjouren — djursjukhus med jour, mall 12
   Outfit + Inter · teal/sand/korall · organisk rörelse
   ============================================================ */

:root {
  --night: #0f3a3a;
  --night-2: #144a49;
  --sand: #f3ede3;
  --sand-2: #fbf7f1;
  --coral: #e0705f;
  --coral-dark: #c6543f;
  --mist: #cfe0db;
  --ink: #102523;
  --ink-soft: #22403c;
  --line: rgba(15, 58, 58, 0.18);
  --disp: "Outfit", system-ui, sans-serif;
  --text: "Inter", system-ui, sans-serif;
  --maxw: 1140px;
  --pad: clamp(1.1rem, 4vw, 2.6rem);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--sand);
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

h1,
h2,
h3,
h4,
.num {
  font-family: var(--disp);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.05;
  margin: 0;
  font-variant-numeric: tabular-nums;
}

p {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* ---------- demostrip ---------- */
.demo-strip {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.45rem clamp(1.1rem, 4vw, 2.6rem);
  background: #08201f;
  color: rgba(243, 237, 227, 0.72);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
}

.demo-strip a {
  color: var(--mist);
}

.strip-short {
  display: none;
}

@media (max-width: 680px) {
  .strip-full {
    display: none;
  }

  .strip-short {
    display: inline;
  }
}

/* ---------- nav ---------- */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  flex-wrap: wrap;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 1.1rem var(--pad);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--disp);
  font-size: clamp(1.05rem, 1.6vw, 1.28rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--sand);
}

.logo svg {
  width: 26px;
  height: 18px;
  color: var(--coral);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 1.7vw, 1.5rem);
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(243, 237, 227, 0.86);
}

.nav-links a:not(.btn):hover {
  color: var(--sand);
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-thickness: 1px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.72rem 1.15rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--disp);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn--coral {
  background: var(--coral);
  color: #fff;
}

.btn--coral:hover {
  background: var(--coral-dark);
}

.btn--ghost {
  border-color: rgba(243, 237, 227, 0.4);
  color: var(--sand);
}

.btn--ghost:hover {
  border-color: var(--sand);
  background: rgba(243, 237, 227, 0.08);
}

.btn--ink {
  background: var(--night);
  color: var(--sand);
}

.btn--ink:hover {
  background: var(--night-2);
}

.btn--sm {
  padding: 0.6rem 1rem;
  font-size: 0.85rem;
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  background: var(--night);
  color: var(--sand);
  padding-bottom: clamp(1.6rem, 4vw, 2.6rem);
  overflow: hidden;
}


.hero-in {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(1.6rem, 4vw, 3.4rem);
  align-items: start;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(1.2rem, 3vw, 2.4rem) var(--pad) 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mist);
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--coral);
}

.hero h1 {
  font-size: clamp(2.4rem, 5.4vw, 4.35rem);
  font-weight: 400;
  max-width: 15ch;
}

.hero h1 em {
  font-style: normal;
  color: var(--coral);
  font-weight: 500;
}

.lede {
  margin-top: 1.4rem;
  max-width: 46ch;
  color: rgba(243, 237, 227, 0.82);
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 2rem;
}

.hero-note {
  margin-top: 1.3rem;
  font-size: 0.82rem;
  color: rgba(243, 237, 227, 0.74);
  max-width: 40ch;
}

/* ---------- statuskortet ---------- */
.status {
  background: var(--sand);
  color: var(--ink);
  border-radius: 20px;
  padding: clamp(1.2rem, 2.4vw, 1.7rem);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.55);
}

.status-top {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.dot {
  position: relative;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #2f9e6f;
  flex: none;
}

.dot::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 1px solid rgba(47, 158, 111, 0.55);
  animation: breathe 3.2s ease-in-out infinite;
}

@keyframes breathe {
  0%,
  100% {
    transform: scale(0.8);
    opacity: 0.9;
  }
  50% {
    transform: scale(1.5);
    opacity: 0;
  }
}

.status-top b {
  font-family: var(--disp);
  font-weight: 500;
  font-size: 1.02rem;
}

.status-top span {
  margin-left: auto;
  font-size: 0.76rem;
  color: var(--ink-soft);
}

.status-rows {
  display: grid;
  gap: 0.1rem;
  padding: 0.7rem 0 0.9rem;
}

.status-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0;
  border-bottom: 1px dashed var(--line);
}

.status-row:last-child {
  border-bottom: 0;
}

.status-row dt {
  font-size: 0.86rem;
  color: var(--ink-soft);
}

.status-row dd {
  margin: 0;
  font-family: var(--disp);
  font-size: 1.22rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

.status-row dd small {
  font-family: var(--text);
  font-size: 0.72rem;
  color: var(--ink-soft);
  margin-left: 0.35rem;
}

.status .btn {
  width: 100%;
  justify-content: center;
}

.status-foot {
  margin-top: 0.8rem;
  font-size: 0.7rem;
  line-height: 1.45;
  color: rgba(31, 24, 21, 0.7);
  text-align: center;
}

/* ---------- EKG-avdelare ---------- */
.ekg {
  position: relative;
  height: clamp(52px, 7vw, 82px);
  background: var(--night);
  overflow: hidden;
}

.ekg svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.ekg path {
  fill: none;
  stroke: var(--coral);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  opacity: 0.9;
}

.ekg--sand {
  background: var(--sand);
}

.ekg--mist {
  background: var(--mist);
}

.ekg--mist path {
  stroke: var(--night);
}

/* ---------- bläckdjuren ---------- */
/* trion står ovanför rubriken och tittar fram */
.hero-djur {
  display: flex;
  align-items: flex-end;
  gap: clamp(0.45rem, 1.4vw, 1.1rem);
  margin: 0 0 clamp(0.9rem, 2vw, 1.5rem) -0.35rem;
  opacity: 0.92;
}

.hero-djur img {
  height: clamp(62px, 8.4vw, 122px);
  width: auto;
}

.hero-djur img:nth-child(2) {
  transform: translateY(-8px);
}

.hero-djur img:nth-child(3) {
  transform: translateY(2px);
}

.djur-vatten {
  position: absolute;
  right: -0.5rem;
  bottom: -0.5rem;
  height: clamp(210px, 24vw, 400px);
  width: auto;
  opacity: 0.055;
  pointer-events: none;
  z-index: 0;
}

.djur-vatten--left {
  right: auto;
  left: -0.5rem;
  bottom: 1.4rem;
  height: clamp(130px, 14vw, 210px);
  opacity: 0.08;
}

.gor,
.hitta,
.priser,
.team {
  position: relative;
  overflow: hidden;
}

.gor .wrap,
.hitta .wrap,
.priser .wrap,
.team .wrap {
  position: relative;
  z-index: 1;
}

/* ---------- sektioner ---------- */
section {
  padding: clamp(3rem, 7vw, 5.4rem) 0;
}

.sec-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
  gap: clamp(1rem, 3vw, 2.6rem);
  align-items: end;
  margin-bottom: clamp(1.8rem, 4vw, 3rem);
}

.sec-head h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
  font-weight: 400;
  max-width: 22ch;
}

.sec-head p {
  color: var(--ink-soft);
  font-size: 1rem;
  max-width: 44ch;
}

/* triage */
.akut {
  background: var(--sand);
}

.triage {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(1.6rem, 4vw, 3rem);
  align-items: start;
}

.picker {
  background: var(--sand-2);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: clamp(1.1rem, 2.4vw, 1.7rem);
}

.picker h3 {
  font-family: var(--disp);
  font-weight: 500;
  font-size: 1.15rem;
}

.picker-sub {
  margin-top: 0.4rem;
  font-size: 0.84rem;
  color: var(--ink-soft);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.1rem;
}

.chip {
  font-family: var(--text);
  font-size: 0.86rem;
  font-weight: 500;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(15, 58, 58, 0.28);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.chip:hover {
  border-color: var(--night);
}

.chip[aria-pressed="true"] {
  background: var(--night);
  border-color: var(--night);
  color: var(--sand);
}

.verdict {
  margin-top: 1.4rem;
  border-radius: 16px;
  padding: 1.1rem 1.2rem;
  border: 1px solid var(--line);
  background: var(--mist);
  transition: background 0.3s ease, border-color 0.3s ease;
}

.verdict[data-level="3"] {
  background: var(--coral);
  border-color: var(--coral-dark);
  color: #fff;
}

.verdict[data-level="2"] {
  background: var(--night);
  border-color: var(--night);
  color: var(--sand);
}

.verdict[data-level="1"] {
  background: var(--mist);
}

.verdict-head {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  opacity: 0.85;
}

.verdict h4 {
  font-family: var(--disp);
  font-weight: 500;
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  margin: 0.45rem 0 0.7rem;
}

.verdict-lines {
  display: grid;
  gap: 0.4rem;
  font-size: 0.9rem;
  line-height: 1.5;
  padding: 0;
  margin: 0;
  list-style: none;
}

.verdict-lines li {
  display: flex;
  gap: 0.55rem;
}

.verdict-lines li::before {
  content: "—";
  opacity: 0.6;
}

.verdict .btn {
  margin-top: 1rem;
}

/* på korall bakgrund behöver knappen vara vit */
.verdict[data-level="3"] .btn {
  background: #fff;
  color: var(--coral-dark);
}

.verdict[data-level="3"] .btn:hover {
  background: var(--sand);
}

/* stegen */
.steps {
  display: grid;
  gap: 1.1rem;
  counter-reset: step;
}

.step {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 0.9rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--line);
}

.step:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.step-num {
  font-family: var(--disp);
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--coral);
  padding-top: 0.15rem;
}

.step h3 {
  font-family: var(--disp);
  font-weight: 500;
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
}

.step p {
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.steps-note {
  margin-top: 1.4rem;
  padding: 0.95rem 1.1rem;
  border-left: 2px solid var(--coral);
  background: rgba(224, 112, 95, 0.08);
  font-size: 0.88rem;
  color: var(--ink-soft);
}

.steps-note b {
  color: var(--ink);
  font-weight: 600;
}

/* vad vi gör */
.gor {
  background: var(--sand-2);
}

.cards-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(0.8rem, 1.6vw, 1.2rem);
}

.svc {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 3px solid var(--night);
  border-radius: 0 0 16px 16px;
  padding: 1.1rem 1.15rem 1.3rem;
}

.svc svg {
  width: 30px;
  height: 30px;
  color: var(--night);
  margin-bottom: 0.9rem;
  stroke-width: 1.3;
}

.svc h3 {
  font-family: var(--disp);
  font-weight: 500;
  font-size: 1.02rem;
  margin-bottom: 0.35rem;
}

.svc p {
  font-size: 0.92rem;
  color: var(--ink-soft);
}

/* priser */
.priser {
  background: var(--mist);
}

.price-list {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 3px solid var(--night);
  border-radius: 0 0 18px 18px;
  padding: 0.15rem 1.3rem;
}

.price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 0;
  border-bottom: 1px solid rgba(15, 58, 58, 0.28);
}

.price-row span {
  font-size: 0.96rem;
}

.price-row b {
  font-family: var(--disp);
  font-weight: 500;
  font-size: 1.12rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.priser-foot {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1rem, 3vw, 2.4rem);
  margin-top: 1.6rem;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

.priser-foot b {
  color: var(--ink);
}

/* team */
.team {
  background: var(--sand);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(0.9rem, 2vw, 1.4rem);
}

.person {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.2rem;
}

.person-initials {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--night);
  color: var(--sand);
  display: grid;
  place-items: center;
  font-family: var(--disp);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  margin-bottom: 0.9rem;
}

.person h3 {
  font-family: var(--disp);
  font-weight: 500;
  font-size: 1.02rem;
}

.person p {
  font-size: 0.86rem;
  color: var(--ink-soft);
  margin-top: 0.2rem;
}

.person .tag {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--night);
  border: 1px solid rgba(15, 58, 58, 0.3);
  border-radius: 999px;
  padding: 0.25rem 0.6rem;
}

/* hitta hit */
.hitta {
  background: var(--sand-2);
}

.hitta-in {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.4rem, 4vw, 3rem);
}

.hitta h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.7rem);
  font-weight: 400;
  margin-bottom: 1rem;
}

.facts {
  display: grid;
  gap: 0;
  margin: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0.2rem 1.2rem;
}

.facts div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--line);
}

.facts dt {
  font-size: 0.84rem;
  color: var(--ink-soft);
}

.facts dd {
  margin: 0;
  font-family: var(--disp);
  font-size: 0.98rem;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.map-box {
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--mist);
  padding: 1.2rem;
  display: grid;
  gap: 0.7rem;
  align-content: start;
}

.map-box h3 {
  font-family: var(--disp);
  font-weight: 500;
  font-size: 1rem;
}

.map-box p {
  font-size: 0.86rem;
  color: var(--ink-soft);
}

/* rad med djur före foten */
.djur-rad {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: clamp(1rem, 4vw, 3.4rem);
  padding: clamp(1.8rem, 4vw, 3rem) var(--pad) clamp(1.6rem, 3vw, 2.4rem);
  background: var(--sand-2);
}

.djur-rad img {
  height: clamp(48px, 5.6vw, 82px);
  width: auto;
  opacity: 0.55;
}

/* ---------- fot ---------- */
.foot {
  margin-top: auto;
  background: #08201f;
  color: rgba(243, 237, 227, 0.7);
  padding: clamp(2rem, 4vw, 2.8rem) 0;
}

.foot-in {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.foot .logo {
  color: var(--sand);
  font-size: 1.3rem;
}

.foot-note {
  font-size: 0.78rem;
}

/* ---------- rörelse ---------- */
.rise {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.85s cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 0.85s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.rise.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .rise {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .dot::after {
    animation: none;
  }

  .ekg path {
    stroke-dashoffset: 0 !important;
  }
}

/* ---------- responsivt ---------- */
@media (max-width: 900px) {
  .hero-in,
  .triage,
  .sec-head,
  .hitta-in,
  .priser-foot {
    grid-template-columns: 1fr;
  }

  .sec-head {
    align-items: start;
  }

  .cards-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .team-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .nav-links a:not(.btn) {
    display: none;
  }

  .eyebrow {
    font-size: 0.66rem;
    letter-spacing: 0.1em;
  }

  .cards-4 {
    grid-template-columns: 1fr;
  }

  .status-row dd {
    font-size: 1.1rem;
  }
}

.foot-note a {
  color: inherit;
  text-decoration-color: rgba(237, 234, 228, 0.4);
  text-underline-offset: 3px;
}
