/* Färgerna är samplade ur app-icon.png. Sidan har ett enda utseende, inget ljust/mörkt tema. */
:root {
  --coral: #F44C4D;
  --cream: #FCF0D4;
  --cream-dim: #D9D2C0;
  --navy: #102752;
  --ink: #0A1A3A;
  --display: "Bagel Fat One", "Arial Rounded MT Bold", system-ui, sans-serif;
  --text: "Familjen Grotesk", system-ui, sans-serif;
  --gutter: clamp(20px, 6vw, 72px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: dark;
  scrollbar-color: var(--coral) var(--ink);
}

*, *::before, *::after { box-sizing: border-box }
html { -webkit-text-size-adjust: 100% }
body { margin: 0; background: var(--navy); color: var(--cream); font-family: var(--text); font-size: clamp(1rem, 0.6vw + 0.85rem, 1.15rem); line-height: 1.5 }
h1, h2, p, ul, dl, dd, figure { margin: 0 }
ul { padding: 0; list-style: none }
img { display: block; max-width: 100% }
::selection { background: var(--coral); color: var(--ink) }
:focus-visible { outline: 3px solid currentColor; outline-offset: 4px; border-radius: 6px }

.wrap { max-width: 1160px; margin: 0 auto; padding-inline: var(--gutter) }
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 700; font-size: 1.35rem }
.brand img { width: 36px; height: 36px }


/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(20px, 3vw, 36px) clamp(56px, 8vw, 104px) }
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px }
.status { font-size: 0.9rem; color: var(--cream-dim) }

.word { display: block; margin: 0 0 0 -0.04em; padding: 0.3em 0 0; border: 0; background: none; cursor: pointer;
  font-family: var(--display); font-size: clamp(5.2rem, 25vw, 18rem); line-height: 0.95; letter-spacing: -0.01em;
  color: var(--cream); text-align: left; transform-origin: 0 100%; -webkit-tap-highlight-color: transparent }
.word .ae { position: relative; display: inline-block }
.sparks { position: absolute; left: 50%; bottom: 74%; width: 0.62em; height: 0.42em; transform: translateX(-50%); overflow: visible }
.sparks line { stroke: var(--coral); stroke-width: 9; stroke-linecap: round; transform-origin: 50px 78px }
.hint { margin-top: 0.6em; font-size: 0.9rem; color: var(--cream-dim) }

/* Knäppet: gnistorna slår ut, ordet trycks ihop och skärmen blixtrar som vid en skärmdump */
.hero::after { content: ""; position: absolute; inset: 0; background: var(--cream); opacity: 0; pointer-events: none }
.hero.snap::after { animation: flash 0.45s ease-out }
.hero.snap .sparks line { animation: spark 0.6s var(--ease) }
.hero.snap .word { animation: squash 0.5s var(--ease) }
@keyframes spark { 0% { transform: scale(0.2); opacity: 0.4 } 55% { transform: scale(1.25) } 100% { transform: scale(1) } }
@keyframes squash { 0% { transform: scale(1.02, 0.96) } 100% { transform: none } }
@keyframes flash { 0% { opacity: 0.28 } 100% { opacity: 0 } }

.hero-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 5vw, 72px); margin-top: clamp(32px, 4vw, 56px); align-items: start }
.hero-copy { display: flex; flex-direction: column; gap: 1.3em }
.hero-copy h1 { font-weight: 700; font-size: clamp(1.7rem, 3.4vw, 2.7rem); line-height: 1.08; letter-spacing: -0.02em; text-wrap: balance }
.hero-copy p { font-size: 1.15em; color: #E4DCC7; max-width: 40ch }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px }
.cta input { flex: 1 1 13em; min-width: 0; min-height: 48px; font: inherit; padding: 0.8em 1em; border: 0; border-radius: 14px; background: var(--cream); color: var(--ink) }
.cta input::placeholder { color: rgba(10, 26, 58, 0.7) }
.btn { display: inline-block; min-height: 48px; font: inherit; font-weight: 700; padding: 0.8em 1.5em; border: 0; border-radius: 14px; background: var(--coral); color: var(--ink); text-decoration: none; cursor: pointer }
.req { flex-basis: 100%; font-size: 0.9rem; color: var(--cream-dim) }

.keys { display: grid; grid-template-columns: 1fr 1fr; gap: 1.3em 2em }
.keys li { display: flex; flex-direction: column; gap: 0.6em; min-width: 0 }
.caps { display: flex; gap: 5px }
.caps kbd { font-family: var(--text); font-weight: 700; font-size: 1.05em; min-width: 2.1em; height: 2.1em; display: grid; place-items: center;
  background: var(--cream); color: var(--ink); border-radius: 9px; box-shadow: 0 3px 0 #C9BFA4, 0 8px 14px -6px rgba(0, 0, 0, 0.6) }
.caps kbd.n { background: var(--coral); box-shadow: 0 3px 0 #B93436, 0 8px 14px -6px rgba(0, 0, 0, 0.6) }
.keys b { font-weight: 600 }

/* ---------- Band ---------- */
.band { padding-block: clamp(64px, 9vw, 128px) }
.band h2 { font-family: var(--display); font-weight: 400; font-size: clamp(2.3rem, 5.4vw, 4rem); line-height: 1; letter-spacing: -0.01em; text-wrap: balance }
.band.cream { background: var(--cream); color: var(--navy) }
.band.coral { background: var(--coral); color: var(--ink) }
.band.coral h2 { color: var(--cream) }
.band.navy { background: var(--navy); color: var(--cream) }

.jobs { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 300px); gap: clamp(32px, 6vw, 88px); align-items: start; margin-top: clamp(32px, 4vw, 56px) }
.fig.tall img { border-radius: 22px; height: auto; box-shadow: 0 30px 50px -24px rgba(10, 26, 58, 0.7) }
.what > div { padding-block: 1.4em; border-top: 2px solid rgba(16, 39, 82, 0.16) }
.what dt { display: flex; align-items: center; gap: 0.7em; font-weight: 700; font-size: 1.2em }
.what kbd { font-family: var(--text); font-size: 0.75em; font-weight: 700; letter-spacing: 0.08em; background: var(--navy); color: var(--cream); padding: 0.3em 0.6em; border-radius: 7px }
.what dd { margin-top: 0.5em; max-width: 44ch }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 104px); align-items: center }
.prose { display: flex; flex-direction: column; gap: 1.3em }
.prose > p { font-size: 1.2em; font-weight: 500; max-width: 38ch }
.prose ul { display: flex; flex-direction: column; gap: 0.8em; max-width: 46ch }
.prose li { padding-left: 1.5em; position: relative }
.prose li::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 0.7em; height: 0.28em; border-radius: 99px; background: currentColor; transform: rotate(-58deg) }
.band.navy .prose li::before { background: var(--coral) }
.band.navy .prose li { color: #E4DCC7 }

.fig { display: flex; flex-direction: column; gap: 14px }
.fig figcaption { font-size: 0.85rem; font-weight: 500 }
.band.navy figcaption { color: var(--cream-dim) }
.fig.pinned img { border-radius: 22px; height: auto; box-shadow: 0 26px 40px -14px rgba(0, 0, 0, 0.7) }

/* Riktig bild av Quick Access Overlay, nere i vänstra hörnet av en skissad skärm */
.screen { aspect-ratio: 4 / 3; background: var(--navy); border-radius: 22px; padding: 6%; display: flex; align-items: flex-end;
  box-shadow: 0 30px 50px -24px rgba(10, 26, 58, 0.7) }
.screen img { width: min(100%, 17em); height: auto; filter: drop-shadow(0 16px 20px rgba(0, 0, 0, 0.55)) }


/* ---------- Fot ---------- */
.foot { background: var(--ink); color: var(--cream-dim); padding-block: clamp(40px, 6vw, 72px) }
.foot .wrap { display: flex; flex-direction: column; gap: 0.6em }
.foot .brand { color: var(--cream); margin-bottom: 0.4em }
.foot p { max-width: 60ch }
.foot .btn { align-self: flex-start; margin-top: 1em }

@media (max-width: 760px) {
  .hero-body, .split, .jobs { grid-template-columns: minmax(0, 1fr) }
  .fig.tall { max-width: 300px }
  .split.flip .fig { order: 2 }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important }
}
