/* 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; }
.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; }

/* 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; }
/* "Hostet i Norge": a faint Norwegian flag behind the text. A separate, purely
   decorative layer (aria-hidden, no pointer events): the flag sits in the right
   part and fades out to the left; the text and icon keep full strength and
   stay above it. Only the picture is faint, never the cell. A protective
   gradient of the cell's own background lies between flag and text. */
.lp-cell2--wide { position: relative; isolation: isolate; }
.lp-flag {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(66%, 780px); z-index: -1;
  pointer-events: none; user-select: none;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.5) 34%, #000 72%);
  mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.5) 34%, #000 72%);
}
.lp-flag svg { display: block; width: 100%; height: 100%; opacity: 0.18; filter: saturate(0.9); }
.lp-flag::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to right, var(--hx-bg) 0%, rgba(13, 13, 17, 0) 62%); }
[data-theme="light"] .lp-flag svg { opacity: 0.3; filter: saturate(1.05); }
[data-theme="light"] .lp-flag::after { background: linear-gradient(to right, var(--hx-bg) 0%, rgba(245, 245, 247, 0) 62%); }
@media (max-width: 699px) {
  .lp-flag { width: 92%; -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.4) 46%, #000 92%); mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.4) 46%, #000 92%); }
  .lp-flag svg { opacity: 0.13; }
  [data-theme="light"] .lp-flag svg { opacity: 0.22; }
  .lp-flag::after { background: linear-gradient(to right, var(--hx-bg) 0%, var(--hx-bg) 18%, rgba(13, 13, 17, 0) 82%); }
  [data-theme="light"] .lp-flag::after { background: linear-gradient(to right, var(--hx-bg) 0%, var(--hx-bg) 18%, rgba(245, 245, 247, 0) 82%); }
}
.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;
}
