/* Loona – egen sida. Ljus redaktionell stil: benvit, nästan svart, en accent i rostorange. */
:root {
  --bg: #F4F1EA;
  --bg2: #ECE7DC;
  --text: #121212;
  --soft: #5E5A52;
  --accent: #C8461E;
  --line: rgba(18, 18, 18, .14);
  --line-strong: rgba(18, 18, 18, .32);
  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Instrument Sans", "Helvetica Neue", sans-serif;
  --gutter: clamp(18px, 5vw, 88px);
  --maxw: 1360px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; background: var(--bg); }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font-body); font-size: clamp(1.02rem, .98rem + .2vw, 1.15rem); line-height: 1.55;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, dl, dd, ol { margin: 0; }
::selection { background: var(--accent); color: #fff; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 4px; }

.display, .hero__title, .h2, .card__title, .contact__mail, .wordmark {
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144;
}

/* Topp ------------------------------------------------------------ */
.top {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  height: 72px; padding: 0 var(--gutter);
  background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.wordmark { font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 48; font-style: italic; font-weight: 500; font-size: 1.6rem; letter-spacing: -.01em; }
.top__nav { display: none; gap: 30px; }
.top__nav a { display: inline-flex; align-items: baseline; gap: 8px; font-size: .92rem; font-weight: 500; }
.top__nav a small { font-size: .66rem; letter-spacing: .1em; color: var(--accent); font-variant-numeric: tabular-nums; }
.top__nav a span, .top__nav a { position: relative; }
.top__nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.top__nav a:hover::after { transform: scaleX(1); }
.top__mail { font-size: .92rem; font-weight: 500; padding: .55em 1em; border: 1px solid var(--line-strong); border-radius: 999px; transition: background-color .3s, color .3s, border-color .3s; }
.top__mail:hover { background: var(--text); color: var(--bg); border-color: var(--text); }
@media (min-width: 900px) { .top__nav { display: flex; } }
@media (max-width: 520px) { .top__mail { font-size: .8rem; padding: .5em .8em; } }

/* Hero ------------------------------------------------------------ */
.hero { max-width: var(--maxw); margin: 0 auto; padding: clamp(64px, 12vh, 150px) var(--gutter) clamp(56px, 9vh, 110px); }
.eyebrow { font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin-bottom: 26px; }
.hero__title {
  font-weight: 500; font-size: clamp(2.6rem, 1.2rem + 7.2vw, 7.4rem); line-height: .96; letter-spacing: -.035em;
  max-width: 14ch; text-wrap: balance;
}
.hero__title em { font-style: italic; font-weight: 600; color: var(--accent); }
.hero__row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 28px 48px; margin-top: clamp(32px, 5vh, 56px); padding-top: 28px; border-top: 1px solid var(--line); }
.hero__lede { max-width: 46ch; font-size: clamp(1.1rem, 1rem + .5vw, 1.4rem); line-height: 1.4; color: var(--soft); text-wrap: pretty; }
.btn {
  display: inline-flex; align-items: center; gap: .7em; padding: .95em 1.5em; border-radius: 999px;
  background: var(--text); color: var(--bg); font-size: .95rem; font-weight: 500; letter-spacing: .02em; line-height: 1;
  border: 1px solid var(--text); transition: background-color .35s var(--ease), color .35s var(--ease), transform .35s var(--ease);
}
.btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; transform: translateY(-1px); }
.btn__arrow { display: inline-block; transition: transform .35s var(--ease-out); }
.btn:hover .btn__arrow { transform: translateY(3px); }

/* Uppbyggnad: scrollstyrd, delarna glider på plats ------------------ */
.build { position: relative; height: 260vh; }
@media (max-width: 899px) { .build { height: 220vh; } }
.build__stage {
  position: sticky; top: 0; height: 100svh; display: grid; align-content: center; gap: 28px;
  max-width: var(--maxw); margin: 0 auto; padding: 84px var(--gutter) 24px;
}
.build__copy { position: relative; display: grid; gap: 10px; align-content: start; }
.build__copy .eyebrow { margin-bottom: 8px; }
.build__line {
  font-family: var(--font-display); font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144;
  font-weight: 500; font-size: clamp(1.5rem, 1rem + 2vw, 2.6rem); line-height: 1.1; letter-spacing: -.02em;
  position: absolute; left: 0; top: 34px; opacity: 0; max-width: 14ch; text-wrap: balance; will-change: opacity, transform;
}
.build__progress { position: absolute; left: 0; bottom: -18px; width: 120px; height: 1px; background: var(--line); overflow: hidden; }
.build__progress span { display: block; height: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; }
.build__copy { min-height: 150px; }

.mock {
  --mbg: #0F0E0C; --mtext: #F2EADB; --msoft: #B9AE9B; --mbrass: #D8B576; --maccent: #D0683A;
  position: relative; width: 100%; max-width: 960px; margin: 0 auto; border-radius: 10px; overflow: hidden;
  background: #E7E2D8; border: 1px solid var(--line-strong);
  box-shadow: 0 1px 0 rgba(18, 18, 18, .05), 0 40px 80px -40px rgba(18, 18, 18, .45);
  font-family: var(--font-body); font-size: clamp(.5rem, .3rem + .5vw, .8rem); line-height: 1.4;
}
.part { opacity: 1; }
.scene { position: relative; width: 100%; }
.scene__canvas { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.mock { opacity: 0; will-change: opacity, transform; }
.mock__chrome { display: flex; align-items: center; gap: 6px; padding: .8em 1em; background: #EFEBE2; border-bottom: 1px solid var(--line); }
.mock__chrome i { width: .7em; height: .7em; border-radius: 50%; background: rgba(18, 18, 18, .18); }
.mock__chrome span { margin-left: auto; margin-right: auto; padding: .3em 1.6em; border-radius: 999px; background: rgba(18, 18, 18, .06); color: var(--soft); font-size: .9em; letter-spacing: .02em; }
.mock__page { position: relative; background: var(--mbg); color: var(--mtext); aspect-ratio: 16 / 10; overflow: hidden; }
.mock__bar { position: absolute; left: 0; right: 0; top: 0; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: 2em; padding: 1.4em 2.2em; }
.mock__bar b { font-family: var(--font-display); font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 48; font-style: italic; font-weight: 500; font-size: 1.5em; letter-spacing: -.01em; }
.mock__bar em { display: none; gap: 2.4em; font-style: normal; font-weight: 500; }
.mock__bar em span::first-letter { color: var(--mbrass); }
.mock__bar u { text-decoration: none; padding: .55em 1.1em; border: 1px solid rgba(242, 234, 219, .35); border-radius: 999px; font-weight: 500; }
@media (min-width: 700px) { .mock__bar em { display: flex; } }
.mock__photo {
  position: absolute; inset: 0; background: url("bilder/restaurang-foto.jpg") center 40% / cover no-repeat;
}
.mock__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15, 14, 12, .55) 0%, rgba(15, 14, 12, .08) 35%, rgba(15, 14, 12, .3) 65%, rgba(15, 14, 12, .97) 100%); }
.mock__hero { position: absolute; left: 2.2em; right: 2.2em; bottom: 35%; z-index: 2; display: grid; gap: .8em; }
.mock__eyebrow { display: inline-block; width: fit-content; padding: .5em 1em; border: 1px solid rgba(242, 234, 219, .35); border-radius: 999px; font-size: .78em; letter-spacing: .14em; text-transform: uppercase; }
.mock__title { font-family: var(--font-display); font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144; font-weight: 500; font-size: 3.7em; line-height: .92; letter-spacing: -.035em; display: grid; }
.mock__title span { display: block; }
.mock__title i { font-style: italic; font-weight: 700; color: var(--mbrass); }
.mock__btns { display: flex; align-items: center; gap: 2em; margin-top: .6em; }
.mock__btn { padding: .9em 1.5em; border-radius: 999px; background: var(--mtext); color: var(--mbg); font-weight: 500; }
.mock__link { font-weight: 500; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.mock__menu { position: absolute; left: 2.2em; right: 2.2em; bottom: 2em; z-index: 2; display: grid; }
.mock__menu > div { display: flex; justify-content: space-between; gap: 2em; padding: .8em 0; border-top: 1px solid rgba(242, 234, 219, .14); font-size: 1.05em; }
.mock__menu b { font-family: var(--font-display); font-style: italic; font-weight: 500; color: var(--mbrass); font-variant-numeric: tabular-nums; }
@media (min-width: 900px) {
  .build__stage { grid-template-columns: .9fr 1.6fr; align-items: center; column-gap: 64px; padding-top: 72px; }
  .build__copy { min-height: 220px; }
  .mock { margin: 0; }
}
@media (max-width: 899px) {
  .mock__page { aspect-ratio: 4 / 3; }
  .mock__menu > div:nth-child(3) { display: none; }
  .mock__eyebrow { display: none; }
  .mock__hero { bottom: 30%; }
  .mock__title { font-size: 3.4em; }
}
@media (prefers-reduced-motion: reduce) {
  .mock { opacity: 1; }
  .build { height: auto; }
  .build__stage { position: static; height: auto; }
  .build__line { position: static; opacity: 1 !important; transform: none !important; }
}

/* Sektioner ------------------------------------------------------- */
.section { max-width: var(--maxw); margin: 0 auto; padding: clamp(64px, 11vh, 150px) var(--gutter); }
.section__head { position: relative; display: flex; align-items: baseline; gap: 14px; padding-bottom: 14px; margin-bottom: clamp(32px, 6vh, 64px); }
.section__head::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--line); }
.section__num { font-size: .78rem; letter-spacing: .14em; color: var(--accent); font-variant-numeric: tabular-nums; }
.section__label { font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--soft); }
.h2 { font-weight: 500; font-size: clamp(2rem, 1.1rem + 3.6vw, 4.4rem); line-height: 1.02; letter-spacing: -.03em; text-wrap: balance; }
.h2 em { font-style: italic; font-weight: 600; color: var(--accent); }

.intro { display: grid; gap: 18px; margin-bottom: clamp(36px, 6vh, 64px); }
.intro__text { max-width: 52ch; color: var(--soft); text-wrap: pretty; }
@media (min-width: 900px) { .intro { grid-template-columns: 1.1fr .9fr; align-items: end; gap: 56px; } .intro__text { justify-self: end; } }

/* Kort ------------------------------------------------------------ */
.cards { display: grid; gap: clamp(28px, 4vw, 48px); }
.card { display: grid; gap: 20px; }
.card__frame {
  position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 6px;
  background: var(--bg2); border: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(18, 18, 18, .04), 0 30px 60px -36px rgba(18, 18, 18, .35);
  transition: transform .6s var(--ease-out), box-shadow .6s var(--ease-out);
}
.card__desktop { width: 100%; height: 100%; object-fit: cover; object-position: top; transform: scale(1.01); transition: transform 1.2s var(--ease-out); }
.card__mobile {
  position: absolute; right: 5%; bottom: -6%; width: 22%; border-radius: 10px; border: 1px solid rgba(18, 18, 18, .25);
  box-shadow: 0 24px 50px -20px rgba(18, 18, 18, .55); transform: translateY(8px); transition: transform .8s var(--ease-out);
}
.card:hover .card__frame { transform: translateY(-4px); box-shadow: 0 1px 0 rgba(18, 18, 18, .04), 0 44px 70px -36px rgba(18, 18, 18, .45); }
.card:hover .card__desktop { transform: scale(1.035); }
.card:hover .card__mobile { transform: translateY(0); }
.card__text { display: grid; gap: 10px; align-content: start; }
.card__kind { font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.card__title { font-weight: 500; font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.3rem); line-height: 1.1; letter-spacing: -.02em; max-width: 22ch; text-wrap: balance; }
.card__link { display: inline-flex; align-items: center; gap: .5em; font-size: .92rem; font-weight: 500; margin-top: 6px; }
.card__link i { font-style: normal; display: inline-block; transition: transform .35s var(--ease-out); }
.card:hover .card__link i { transform: translateX(4px); }
.card:hover .card__link { color: var(--accent); }
@media (min-width: 900px) {
  .card { grid-template-columns: 1.35fr .65fr; align-items: end; gap: 44px; }
  .card:nth-child(even) { grid-template-columns: .65fr 1.35fr; }
  .card:nth-child(even) .card__frame { order: 2; }
  .card__mobile { width: 19%; right: 4%; }
}

.facts { margin-top: clamp(48px, 8vh, 96px); display: grid; }
.facts > div { display: grid; gap: 6px; padding: 20px 0; border-top: 1px solid var(--line); }
.facts > div:last-child { border-bottom: 1px solid var(--line); }
.facts dt { font-weight: 500; }
.facts dd { color: var(--soft); max-width: 40ch; text-wrap: pretty; }
@media (min-width: 760px) { .facts { grid-template-columns: repeat(3, 1fr); gap: 40px; } .facts > div { border-bottom: 1px solid var(--line); } }

/* AI -------------------------------------------------------------- */
.section--ai { max-width: none; background: var(--bg2); }
.section--ai > * { max-width: var(--maxw); margin-left: auto; margin-right: auto; }
.ai { display: grid; gap: 36px; }
.ai__body { display: grid; gap: 1em; max-width: 52ch; color: var(--soft); text-wrap: pretty; }
.ai__note { color: var(--text); padding-left: 18px; border-left: 2px solid var(--accent); }
.steps { list-style: none; padding: 0; display: grid; counter-reset: s; }
.steps li { counter-increment: s; display: grid; gap: 4px; padding: 18px 0 18px 44px; border-top: 1px solid var(--line); position: relative; color: var(--soft); }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps li::before { content: "0" counter(s); position: absolute; left: 0; top: 20px; font-size: .78rem; letter-spacing: .12em; color: var(--accent); font-variant-numeric: tabular-nums; }
.steps li span { display: block; font-weight: 500; color: var(--text); }
@media (min-width: 900px) {
  .ai { grid-template-columns: 1.2fr .8fr; grid-template-areas: "h h" "b s"; column-gap: 72px; row-gap: 48px; align-items: start; }
  .ai .h2 { grid-area: h; max-width: 22ch; }
  .ai__body { grid-area: b; }
  .steps { grid-area: s; }
}

/* Kontakt --------------------------------------------------------- */
.contact { display: grid; gap: 28px; }
.contact__who { color: var(--soft); line-height: 1.6; }
.contact__mail {
  font-style: italic; font-weight: 500; font-size: clamp(1.6rem, 1rem + 3.2vw, 4rem); letter-spacing: -.02em; line-height: 1.1;
  width: fit-content; max-width: 100%; overflow-wrap: anywhere;
  background-image: linear-gradient(var(--accent), var(--accent)); background-size: 100% 2px; background-repeat: no-repeat; background-position: 0 100%;
  padding-bottom: 6px; transition: background-size .4s var(--ease), color .3s;
}
.contact__mail:hover { color: var(--accent); background-size: 30% 2px; }
.contact__also { font-size: .92rem; color: var(--soft); padding-top: 18px; border-top: 1px solid var(--line); max-width: 46ch; }
@media (min-width: 900px) { .contact { grid-template-columns: 1fr auto; grid-template-areas: "h w" "m m" "a a"; column-gap: 72px; align-items: end; } .contact .h2 { grid-area: h; max-width: 16ch; } .contact__who { grid-area: w; text-align: right; } .contact__mail { grid-area: m; } .contact__also { grid-area: a; } }

/* Sidfot ---------------------------------------------------------- */
.foot { display: flex; justify-content: space-between; gap: 20px; padding: 28px var(--gutter) 36px; max-width: var(--maxw); margin: 0 auto; font-size: .85rem; color: var(--soft); border-top: 1px solid var(--line); }
.foot a:hover { color: var(--accent); }

/* Reveal ---------------------------------------------------------- */
:where(.card, .facts > div, .steps li, .intro, .ai, .contact) { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease), transform .9s var(--ease-out); }
.is-in { opacity: 1 !important; transform: none !important; }
.facts > div:nth-child(2), .steps li:nth-child(2) { transition-delay: .08s; }
.facts > div:nth-child(3), .steps li:nth-child(3) { transition-delay: .16s; }
.steps li:nth-child(4) { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card, .facts > div, .steps li, .intro, .ai, .contact { opacity: 1; transform: none; transition: none; }
  .card__frame, .card__desktop, .card__mobile, .btn, .btn__arrow { transition: none; }
}
