/* Manrope ligger på egen server (SIL Open Font License, se fonts/OFL.txt) */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url(fonts/manrope-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url(fonts/manrope-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #0B0D0E;
  --yta: #1C2630;
  --yta2: #262B29;
  --ljus: #ECEEE9;
  --dampad: #C9CEC9;
  --morkt: #2A343D;
  --linje: #3A4440;
  --radie: 28px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ljus);
  font-family: 'Manrope', system-ui, sans-serif;
  font-weight: 500;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--ljus); }
a:hover { color: #fff; }

h1, h2, h3 { margin: 0; font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
p { margin: 0; }

/* Ordmärket */
.dot { display: inline-block; }
.mark-small { font-weight: 800; letter-spacing: -0.035em; font-size: 20px; text-decoration: none; }

/* Första skärmen */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 24px 16px 96px;
  position: relative;
  text-align: center;
}
.mark { font-size: clamp(48px, 15vw, 168px); letter-spacing: -0.05em; }
.hero .dot { animation: sekund 1s steps(1, end) infinite; }
.tagline { font-size: clamp(18px, 2.4vw, 24px); color: var(--dampad); }
.down {
  position: absolute;
  bottom: 32px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  padding: 12px 16px;
}

@keyframes sekund {
  0% { opacity: 1; }
  50% { opacity: 0.15; }
}

/* Påståendet */
.statement {
  max-width: 1040px;
  margin: 0 auto;
  padding: 96px 16px 64px;
}
.statement h2 { font-size: clamp(40px, 7vw, 88px); }

/* Fyra rutor som fälls ut */
.cards {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 16px 96px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: start;
}
.card {
  background: var(--yta);
  border-radius: var(--radie);
}
.card:nth-child(2) { background: var(--yta2); }
.card:nth-child(4) { background: var(--ljus); color: var(--bg); }
.card:nth-child(4) p { color: var(--morkt); }
/* Rubriken trycks ner med padding i stället för flex, som Safari inte klarar på summary */
.card summary {
  list-style: none;
  cursor: pointer;
  display: block;
  padding: 128px 32px 32px;
  border-radius: var(--radie);
}
.card summary::-webkit-details-marker { display: none; }
.card summary::marker { content: ''; }
.card-title { display: block; }
.card summary:focus-visible { outline: 2px solid var(--ljus); outline-offset: 3px; }
.card:nth-child(4) summary:focus-visible { outline-color: var(--yta); }
.card-title {
  font-size: clamp(30px, 3.4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.1;
  text-decoration: underline 2px transparent;
  text-underline-offset: 6px;
  transition: text-decoration-color .2s ease;
}
.card summary:hover .card-title { text-decoration-color: currentColor; }
.card p { padding: 0 32px 32px; margin-top: -12px; color: var(--dampad); max-width: 440px; }
.card[open] p { animation: tona .5s ease; }

@keyframes tona {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Rutan som öppnas över skärmen (med JavaScript; utan fälls rutan ut som förut) */
.popup {
  border: 0;
  padding: 0;
  background: transparent;
  width: calc(100% - 32px);
  max-width: 560px;
  overflow: visible;
}
.popup::backdrop { background: rgba(11, 13, 14, 0.8); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.popup-box {
  border-radius: var(--radie);
  padding: 40px 32px;
  cursor: pointer;
  background: var(--yta);
  color: var(--ljus);
}
.popup[open] .popup-box { animation: upp .35s ease; }
.popup-title {
  font-size: clamp(32px, 6vw, 44px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
}
.popup-text { margin-top: 20px; font-size: clamp(17px, 2.2vw, 20px); }

@keyframes upp {
  from { opacity: 0; transform: scale(.96); }
  to { opacity: 1; transform: none; }
}

/* Slutet */
.end {
  max-width: 1040px;
  margin: 0 auto;
  padding: 64px 16px 128px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}
.end-clock {
  font-size: clamp(32px, 5.5vw, 64px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
}
.end-text { font-size: clamp(17px, 2vw, 20px); color: var(--dampad); max-width: 560px; }

.button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  min-height: 52px;
  padding: 14px 26px;
  border: 0;
  border-radius: 16px;
  background: var(--ljus);
  color: var(--bg);
  font: inherit;
  font-size: 17px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s ease;
}
.button:hover { color: var(--bg); transform: translateX(4px); }

/* Sidfot */
.footer {
  border-top: 1px solid var(--linje);
  padding: 28px 16px 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  align-items: baseline;
  justify-content: center;
  font-size: 14px;
  color: var(--dampad);
}

/* Kontaktsidan */
.top { max-width: 720px; margin: 0 auto; padding: 28px 16px; }
.contact { max-width: 720px; margin: 0 auto; padding: 48px 16px 96px; }
.contact h1 { font-size: clamp(44px, 9vw, 88px); }
.lead { margin-top: 20px; font-size: 18px; color: var(--dampad); }
.form { margin-top: 48px; display: flex; flex-direction: column; gap: 20px; }
.form label { display: flex; flex-direction: column; gap: 8px; font-weight: 700; font-size: 15px; }
.form input:not([type=checkbox]):not([type=radio]), .form textarea {
  font: inherit;
  font-weight: 500;
  color: var(--ljus);
  background: var(--yta);
  border: 1px solid var(--linje);
  border-radius: 14px;
  padding: 14px 16px;
  min-height: 52px;
}
.form input:focus, .form textarea:focus { outline: 2px solid var(--ljus); outline-offset: 2px; }
.form fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.form legend { font-weight: 700; font-size: 15px; margin-bottom: 10px; padding: 0; }
.form .check {
  flex-direction: row;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 10px 16px;
  border: 1px solid var(--linje);
  border-radius: 14px;
  font-weight: 500;
  cursor: pointer;
}
.form .check:has(input:checked) { background: var(--yta2); border-color: var(--ljus); }
.form .check input { width: 18px; height: 18px; accent-color: var(--ljus); margin: 0; }
.form .button { align-self: flex-start; }
.note { font-size: 14px; color: var(--dampad); max-width: 560px; }
.foljd { display: flex; flex-direction: column; gap: 20px; padding-left: 16px; border-left: 2px solid var(--linje); }
.foljd[hidden] { display: none; }
.honung { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.tack { margin-top: 48px; display: flex; flex-direction: column; gap: 16px; }
.tack[hidden] { display: none; }

/* Rörelse, bara med JavaScript och om besökaren inte valt bort den */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.syns { opacity: 1; transform: none; }

@media (max-width: 760px) {
  .cards { grid-template-columns: 1fr; }
  .card summary { padding: 88px 28px 28px; }
  .card-title { font-size: 28px; }
  .card p { padding: 0 28px 28px; }
  .footer { flex-direction: column; align-items: center; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero .dot { animation: none; }
  .card[open] p, .popup[open] .popup-box { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}
