/* Landing page layout. Only Hosait's own tokens (hosait.css); the design
   language (colours, type, cards, buttons) is unchanged. What changes is the
   rhythm: each section has its own shape instead of the same row of cards.
   Loaded by index.html only. Every colour here is a token, so the dark and
   the light theme both work. */

/* ---- Hero: a painted sky behind the headline and Hosa, a night sky in the
   dark theme and a day sky in the light theme. Each theme loads only its own
   image. The hero is a framed card: rounded corners, a thin border, and a
   little of the page showing to the sides and under the header, so the header
   stands on the page above it. The sky fills the card to its bottom edge. A
   thin wash of the page colour over the image keeps the small text readable. ---- */
.lp-hero {
  position: relative; isolation: isolate;
  margin: var(--hx-s2) 16px 0; border: 1px solid var(--hx-line-strong); border-radius: 20px;
}
@media (min-width: 1024px) { .lp-hero { margin: var(--hx-s3) 24px 0; } }
.lp-hero::before {
  content: ""; position: absolute; z-index: -1; inset: 0;
  background:
    linear-gradient(rgba(13, 13, 17, 0.3), rgba(13, 13, 17, 0.3)),
    url("hosait-sky-night.jpg") center top / cover no-repeat;
  pointer-events: none;
}
[data-theme="light"] .lp-hero::before {
  background-image:
    linear-gradient(rgba(245, 245, 247, 0.5), rgba(245, 245, 247, 0.5)),
    url("hosait-sky-day.jpg");
}

/* The front page's headline is a little smaller and a little tighter than the other pages' titles. */
.lp-hero .hx-display { font-size: clamp(36px, 2.6vw + 24px, 64px); letter-spacing: -0.025em; }

/* ---- The front page's start: a night sky and one field. The sky is painted by hero-stars.js
   (stars over a deep blue gradient with a soft glow at the horizon). It is the same at night
   and by day, so the section keeps its own dark colours in the light theme too. ---- */
.lp-sky {
  --sky-text: #f4f6fb; --sky-text-2: rgba(226, 232, 246, 0.78); --sky-text-3: rgba(214, 222, 240, 0.66);
  --sky-line: rgba(160, 186, 230, 0.22);
  overflow: hidden; color: var(--sky-text);
  background: radial-gradient(70% 50% at 50% 106%, rgba(46, 96, 180, 0.4), transparent 72%), linear-gradient(180deg, #03050f 0%, #060b1d 55%, #0a1534 100%);
  min-height: min(calc(100svh - var(--hx-header-h) - var(--hx-s3)), 920px);
  display: flex; flex-direction: column;
}
.lp-hero.lp-sky::before { content: none; }
/* The sky reaches the edges of the window and goes up behind the header (U34): no frame, and the
   header is see-through over it until the page is scrolled. The header's text takes the sky's
   light colours, also in the light theme. */
.lp-hero.lp-sky {
  margin: calc(-1 * var(--hx-header-h)) 0 0; border: 0; border-radius: 0;
  padding-top: var(--hx-header-h); min-height: min(100svh, calc(920px + var(--hx-header-h)));
}
.hx-header:not(.is-scrolled) {
  --hx-text: #f4f6fb; --hx-text-2: rgba(226, 232, 246, 0.78); --hx-line: rgba(160, 186, 230, 0.22); --hx-surface-3: rgba(255, 255, 255, 0.08);
  background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none;
}
.hx-header:not(.is-scrolled) [data-hosait-login] { color: var(--hx-text-2); }
.hx-header:not(.is-scrolled) [data-hosait-login]:hover { color: var(--hx-text); }
.lp-sky__inner {
  position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; text-align: center;
  padding-top: clamp(56px, 12vh, 150px); padding-bottom: clamp(190px, 32vh, 330px);
}
.lp-sky__title {
  margin: 0; max-width: 18ch; color: var(--sky-text); font-weight: 500; letter-spacing: -0.02em; line-height: 1.08;
  font-size: clamp(34px, 2.6vw + 22px, 64px); text-wrap: balance;
}
.lp-sky__lead { margin: 14px 0 0; max-width: 34em; color: var(--sky-text-2); font-size: clamp(16px, 0.5vw + 14px, 21px); line-height: 1.45; text-wrap: balance; }

/* «Koble til KI-verktøy» on the front page (U34): no panel, the line centred, the address
   in a box of its own with a small copy button at its end, and the tools' logos in one row under
   it, all in the same muted colour. The other ways in keep the field as it is. */
.lp-sky .lp-start[data-mode="ai"] { background: transparent; border-color: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.lp-sky .lp-start[data-mode="ai"] .lp-start__body { padding: 26px 28px 0; }
.lp-sky .lp-start[data-mode="ai"] .lp-start__label { margin-bottom: 16px; text-align: center; color: var(--sky-text-2); font-size: 15px; font-weight: 400; letter-spacing: 0.04em; }
.lp-sky .lp-start__copybox {
  display: flex; align-items: center; gap: 12px; max-width: 860px; margin: 0 auto; padding: 10px 10px 10px 28px;
  background: rgba(3, 6, 16, 0.85); border: 1px solid rgba(160, 186, 230, 0.14); border-radius: 14px;
}
.lp-sky .lp-start__copybox .lp-start__copytext { flex: 1; min-width: 0; font-size: clamp(14px, 0.4vw + 11px, 18px); }
.lp-sky .lp-start__copyicon {
  display: inline-flex; flex: none; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; border-radius: 10px;
  background: transparent; color: var(--sky-text-2); cursor: pointer;
}
.lp-sky .lp-start__copyicon:hover { background: var(--sky-hover); color: var(--sky-text); }
.lp-sky .lp-start__copyicon .material-symbols-outlined { font-size: 22px; }
.lp-sky .lp-start[data-mode="ai"] .lp-start__go { display: none; }
.lp-sky .lp-start[data-mode="ai"] .lp-start__foot { justify-content: center; padding: 18px 28px 22px; min-height: 0; }
.lp-sky .lp-start[data-mode="ai"] .lp-start__tools { justify-content: center; gap: 6px; }
.lp-sky .lp-start[data-mode="ai"] .lp-start__tool { border-color: transparent; background: transparent; color: var(--sky-text-3); }
.lp-sky .lp-start[data-mode="ai"] .lp-start__tool:hover { color: var(--sky-text); background: var(--sky-hover); }
.lp-sky .lp-start[data-mode="ai"] .lp-start__tool svg { fill: currentColor; width: 28px; height: 28px; }
/* Only the tools with a logo of their own: a plain terminal mark says nothing in a row of logos. */
.lp-sky .lp-start__tools li:has(.material-symbols-outlined) { display: none; }
@media (max-width: 639px) {
  .lp-sky .lp-start[data-mode="ai"] .lp-start__body { padding: 18px 14px 0; }
  .lp-sky .lp-start__copybox { padding: 8px 6px 8px 14px; gap: 6px; }
  .lp-sky .lp-start__copybox .lp-start__copytext { font-size: min(12.5px, 2.9vw); }
  .lp-sky .lp-start[data-mode="ai"] .lp-start__foot { padding: 0 0 14px; }
}

/* Bottom left: the bottom right corner is Hosa's (hosa-widget.js). */
.lp-sky__pause {
  position: absolute; left: 16px; bottom: 16px; z-index: 2; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px; border: 1px solid var(--sky-line); background: rgba(5, 10, 26, 0.55); color: var(--sky-text-2); cursor: pointer;
}
.lp-sky__pause:hover { color: var(--sky-text); background: rgba(5, 10, 26, 0.8); }
.lp-sky__pause.hidden { display: none; }
.lp-sky__pause .material-symbols-outlined { font-size: 22px; }

/* Phones: the text and the field in the middle of the sky, the four shortcuts
   in one column as wide as the field. */
@media (max-width: 639px) {
  .lp-sky__still, .lp-sky__video { object-position: 50% 64%; }
  .lp-sky__inner { justify-content: center; padding-top: 40px; padding-bottom: 96px; }
  .lp-sky .lp-start__chips { grid-template-columns: 1fr; gap: 10px; margin-top: 14px; }
  .lp-sky .lp-start__chip { min-height: 50px; font-size: 15px; }
  .lp-sky__title { font-size: 30px; }
  .lp-sky__lead { font-size: 15.5px; margin-top: 10px; }
}

/* ---- Stars (hero-stars.js): twinkling stars, a faint Milky Way, shooting stars and a small satellite,
   painted on two canvases behind the text. The slow drift is a CSS animation; the pause button stops it too. ---- */
.lp-stars { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; user-select: none; opacity: 0; transition: opacity 2.5s ease; }
.lp-stars.is-on { opacity: 1; }
.lp-stars__layer { position: absolute; display: block; }
.lp-stars__far { animation: lp-stars-far 140s ease-in-out infinite alternate; }
.lp-stars__near { animation: lp-stars-near 140s ease-in-out infinite alternate; }
.lp-stars.is-paused .lp-stars__layer { animation-play-state: paused; }
@keyframes lp-stars-far { from { transform: translate3d(-28px, -16px, 0); } to { transform: translate3d(28px, 16px, 0); } }
@keyframes lp-stars-near { from { transform: translate3d(-56px, -32px, 0); } to { transform: translate3d(56px, 32px, 0); } }
@media (prefers-reduced-motion: reduce) { .lp-stars__layer { animation: none; } }


/* ---- Three ways in: one bordered strip, three numbered cells ---- */
.lp-strip {
  display: grid; grid-template-columns: minmax(0, 1fr);
  border: 1px solid var(--hx-line-strong); border-radius: var(--hx-r-xl); overflow: hidden;
  background: var(--hx-surface-1);
}
.lp-cell { padding: clamp(24px, 3vw, 40px); border-top: 1px solid var(--hx-line-strong); position: relative; }
.lp-cell:first-child { border-top: 0; }
.lp-num {
  margin: 0 0 var(--hx-s5); font-size: 14px; font-weight: 600; letter-spacing: 0.12em;
  color: var(--hx-accent); font-variant-numeric: tabular-nums;
}
@media (min-width: 900px) {
  .lp-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lp-cell { border-top: 0; border-left: 1px solid var(--hx-line-strong); }
  .lp-cell:first-child { border-left: 0; }
}

/* ---- Text beside a picture, or beside a list ---- */
.lp-split { display: grid; gap: var(--hx-s7); align-items: start; }
.lp-split__text .hx-actions { margin-top: var(--hx-s5); }
@media (min-width: 960px) {
  .lp-split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 5vw, 88px); align-items: center; }
  .lp-split--rows { align-items: start; }
  .lp-split--rows .lp-split__text { position: sticky; top: calc(var(--hx-header-h) + 32px); }
}
.lp-steps { list-style: none; margin: var(--hx-s6) 0 0; padding: 0; display: grid; gap: var(--hx-s3); }
.lp-step { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: var(--hx-s3); align-items: start; font-size: var(--hx-fs-small); line-height: 1.5; color: var(--hx-text); }
.lp-step__n {
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums;
  background: var(--hx-accent-soft); color: var(--hx-accent);
}

/* ---- How it works: a full-width colour band with big numerals ---- */
.lp-band { background: var(--hx-accent); color: var(--hx-on-accent); }
.lp-band .hx-eyebrow, .lp-band .hx-title, .lp-band .hx-lead,
.lp-band .hx-step h3, .lp-band .hx-step p { color: var(--hx-on-accent); }
.lp-band .hx-lead, .lp-band .hx-step p { opacity: 0.88; }
.lp-band .hx-link { color: var(--hx-on-accent); text-decoration: underline; text-underline-offset: 4px; }
/* One unbroken underline: as plain text flow the space and the arrow sit
   inside the same underlined line (as flex items they were underlined apart). */
.lp-band .hx-link { display: inline-block; min-height: 0; padding: 10px 0; }
.lp-band .hx-link::after { content: "\00a0›"; margin-left: 0; transform: none; }
.lp-band .hx-alert { background: var(--hx-bg); color: var(--hx-text); }
.lp-bignum .hx-step { border-top: 2px solid currentColor; padding-top: var(--hx-s5); }
.lp-bignum .hx-step::before {
  width: auto; height: auto; border-radius: 0; background: none; color: inherit;
  display: block; margin: 0 0 var(--hx-s3); font-size: clamp(56px, 6vw, 96px); line-height: 1; font-weight: 700;
  letter-spacing: -0.04em; font-variant-numeric: tabular-nums; opacity: 0.9;
}

/* ---- What it is used for: rows with hairlines ---- */
.lp-rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--hx-line-strong); }
.lp-row { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--hx-s5); padding: var(--hx-s6) 0; border-bottom: 1px solid var(--hx-line-strong); }

/* ---- Confidence: bordered cells (a 1px gap on a line-coloured ground draws
   every divider, whatever the column count), the first one wide, the last a
   full-width note ---- */
.lp-cells {
  list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr);
  gap: 1px; background: var(--hx-line-strong);
  border: 1px solid var(--hx-line-strong); border-radius: var(--hx-r-xl); overflow: hidden;
}
.lp-cell2 { padding: clamp(22px, 2.6vw, 34px); background: var(--hx-bg); }
.lp-cell2--wide h3 { font-size: clamp(26px, 2.2vw + 14px, 40px) !important; letter-spacing: -0.02em; line-height: 1.15; }
.lp-cell2--note { background: linear-gradient(var(--hx-accent-soft), var(--hx-accent-soft)), var(--hx-bg); }
@media (min-width: 700px) {
  .lp-cells { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lp-cell2--wide, .lp-cell2--note { grid-column: 1 / -1; }
}
@media (min-width: 1024px) {
  .lp-cells { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lp-cell2--wide { grid-column: span 2; }
}

/* ---- Price: one wide callout instead of a lonely link ---- */
.lp-callout {
  display: grid; gap: var(--hx-s6); align-items: center;
  padding: clamp(28px, 4vw, 56px); border-radius: var(--hx-r-xl);
  background: var(--hx-surface-2); border: 1px solid var(--hx-line-strong);
}
.lp-callout .hx-lead { margin-top: var(--hx-s4); }
@media (min-width: 900px) { .lp-callout { grid-template-columns: minmax(0, 1fr) auto; gap: var(--hx-s8); } }

/* ---- Closing: a glow, like the hero ---- */
.lp-final { position: relative; isolation: isolate; overflow: hidden; }
.lp-final::before {
  content: ""; position: absolute; z-index: -1; left: 50%; bottom: -30%;
  width: min(1100px, 140vw); height: 120%; transform: translateX(-50%);
  background: radial-gradient(closest-side, var(--hx-accent-soft), transparent 70%);
  pointer-events: none;
}
