/*
 * keanvt.com — one stylesheet for every page.
 * Built on the KeanTrip design system »Lak« (Design System artifact, tokens
 * from src/constants/palettes.ts and theme.ts at main@e41b958): token names,
 * values, type roles, radii and lifts are the app's own. Lak mørk is the
 * default; Lak lys follows the visitor's system setting, like Lak · Dynamisk.
 * Archivo is served from this site (fonts/, SIL OFL), so nothing is fetched
 * from any other server.
 */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/Archivo_400Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Archivo";
  src: url("../fonts/Archivo_600SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Archivo";
  src: url("../fonts/Archivo_800ExtraBold.ttf") format("truetype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

/* Lak, mørk */
:root {
  --background: #0A1520;
  --surface: #12263A;
  --border: #223F58;
  --text: #EEF4F8;
  --textSecondary: #93A9BC;
  --accent: #8FD8FF;
  --accentInk: #8FD8FF;
  --fill: #EEF4F814;
  --accentTint: #8FD8FF29;
  --accentRing: #8FD8FF73;
  --lift1: inset 0px 1px 0px rgba(255, 255, 255, 0.08);
  --lift2: inset 0px 1px 0px rgba(255, 255, 255, 0.1), 0px 0px 0px 1px rgba(255, 255, 255, 0.05), 0px 8px 18px -8px rgba(0, 0, 0, 0.6);
  --lift3: inset 0px 1px 0px rgba(255, 255, 255, 0.12), 0px 0px 0px 1px rgba(255, 255, 255, 0.05), 0px 18px 36px -16px rgba(0, 0, 0, 0.7);
  --quietEdge: inset 0px 1px 0px rgba(255, 255, 255, 0.08);
  --accentGlow: #8FD8FF66;
  --onAccent: #06202F;
  --accentSheen: linear-gradient(170deg, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0) 60%);
  --glowPrimary: 0px 0px 22px 2px #8FD8FF66;
  --textTertiary: #748EA5;

  --font-sans: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius-card: 28px;
  --radius-pill: 20px;
  --space-two: 8px;
  --space-three: 16px;
  --space-four: 24px;
  --space-five: 32px;
  --space-six: 64px;
  --max: 1040px;
  --gutter: 20px;
  color-scheme: dark light;
}

/* Lak, lys */
@media (prefers-color-scheme: light) {
  :root {
    --background: #EAF2F8;
    --surface: #FFFFFF;
    --border: #CFDFEB;
    --text: #0A1520;
    --textSecondary: #3E566B;
    --accent: #1B73B8;
    --accentInk: #18639E;
    --fill: #0A152014;
    --accentTint: #1B73B829;
    --accentRing: #1B73B873;
    --lift1: 0px 6px 16px -10px rgba(0, 0, 0, 0.25);
    --lift2: 0px 4px 12px -6px rgba(0, 0, 0, 0.25);
    --lift3: 0px 0px 0px 1px rgba(0, 0, 0, 0.05), 0px 12px 26px -14px rgba(0, 0, 0, 0.32);
    --quietEdge: none;
    --accentGlow: #1B73B866;
    --onAccent: #FFFFFF;
    --accentSheen: linear-gradient(170deg, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0) 28%);
    --glowPrimary: 0px 0px 22px 2px #1B73B866;
    --textTertiary: #597085;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* Role »body« (16, weight 400), with a little more leading for paragraphs on a page. */
body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 24px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

img,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

/* Accent as text is always accentInk. */
a {
  color: var(--accentInk);
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 3px solid var(--accentRing);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Header ---------- */

.site-header {
  border-bottom: 1px solid var(--border);
}

/* The umbrella line: KeanVibeTech always top left, the language switch right.
   KeanTrip and its own menu sit under it as the page's heading row. */
.umbrella {
  border-bottom: 1px solid var(--border);
}

.umbrella .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-three);
  min-height: 44px;
}

.umbrella-mark {
  display: flex;
  align-items: center;
  gap: var(--space-two);
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  font-size: 15px;
  line-height: 20px;
  letter-spacing: -0.01em;
}

.umbrella-mark svg {
  width: 20px;
  height: 20px;
}

.umbrella .lang {
  padding: 12px 0;
  color: var(--textSecondary);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  line-height: 20px;
}

.umbrella .lang:hover {
  color: var(--text);
}

.site-header .product-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px var(--space-four);
  padding-top: 14px;
  padding-bottom: 14px;
}

/* Role »title« (22/28, 800): the name is set in Archivo. */
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  font-size: 22px;
  line-height: 28px;
  letter-spacing: -0.01em;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Small pills (PillButton, 36 high, corner = half the height); role »label« (15/20, 600). */
.site-nav a {
  display: flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 18px;
  color: var(--textSecondary);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  line-height: 20px;
}

.site-nav a:hover {
  color: var(--text);
  background: var(--fill);
  box-shadow: var(--quietEdge);
}

/* The current page is the »tint« pill. */
.site-nav a[aria-current="page"] {
  color: var(--accentInk);
  background: var(--accentTint);
  box-shadow: inset 0px 0px 0px 1px var(--accentRing);
}

/* ---------- Main ---------- */

main {
  flex: 1;
  padding: 48px 0 var(--space-six);
}

h1,
h2 {
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0;
}

/* Role »display« (48/56) on a phone, larger on a wide screen. */
h1 {
  font-size: clamp(48px, 9vw, 72px);
  line-height: 1.12;
}

/* Role »headline« (32/38). */
h2 {
  font-size: 32px;
  line-height: 38px;
  margin-bottom: var(--space-three);
}

p {
  margin: 0 0 var(--space-three);
}

/* Role »title« (22/28) in accentInk. */
.lead {
  font-size: 22px;
  line-height: 28px;
  font-weight: 600;
  color: var(--accentInk);
  margin: 12px 0 28px;
}

.prose {
  max-width: 640px;
}

/* ---------- The app page ----------
 * One loud thing: the light trails from the design system's cover, running in
 * from the left edge to the phone with the route. They draw once on load.
 * Everything else is the app's own quiet surfaces.
 */

main.app {
  padding: 0;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(40px, 7vw, 88px) 0 clamp(56px, 8vw, 104px);
}

.hero-grid {
  display: grid;
  grid-template-areas: "text" "trails" "phone";
  align-items: center;
}

.hero-text {
  grid-area: text;
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: clamp(60px, 13vw, 128px);
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.hero .lead {
  margin: 16px 0 20px;
  font-size: clamp(22px, 2.6vw, 28px);
  line-height: 1.25;
}

.hero-text p:last-child {
  max-width: 24em;
  color: var(--textSecondary);
  font-size: 18px;
  line-height: 28px;
}

/* The trails: 8 high, on a 16 pitch, corners half the height (the cover's own scale). */
.trails {
  grid-area: trails;
  position: relative;
  height: calc(7 * 16px);
  margin: 28px calc(-1 * var(--gutter)) 36px;
}

.trails span {
  position: absolute;
  top: calc(var(--r) * 16px);
  left: var(--x);
  width: var(--w);
  height: 8px;
  border-radius: 4px;
  background: var(--accent);
  transform-origin: left center;
  animation: trail-in 900ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
  animation-delay: calc(var(--r) * 70ms + 150ms);
}

.trails span.ink {
  background: var(--text);
  opacity: 0.85;
}

@keyframes trail-in {
  from {
    transform: scaleX(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .trails span {
    animation: none;
  }
}

.hero-phone {
  grid-area: phone;
  position: relative;
  z-index: 1;
  justify-self: center;
  width: min(72vw, 300px);
}

.hero-phone img {
  box-shadow: var(--lift3), 0 0 90px -10px var(--accentGlow);
}

/* A picture of the app: its own corners, a hairline and lift3. */
.phone {
  margin: 0;
}

.phone img {
  width: 100%;
  border-radius: var(--radius-card);
  border: 1px solid var(--border);
  box-shadow: var(--lift3);
  background: #0A1520;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) 340px;
    grid-template-areas: "text phone" "trails phone";
    column-gap: 0;
  }

  .hero-phone {
    width: 340px;
  }

  /* From the page's left edge under the text, into the phone. */
  .trails {
    margin: 40px -60px 0 calc(-1 * var(--gutter) - max(0px, (100vw - var(--max)) / 2));
  }
}

/* ---------- The tour: what the app does, each beside its picture ---------- */

.tour {
  padding: clamp(40px, 6vw, 72px) 0 clamp(48px, 7vw, 96px);
  border-top: 1px solid var(--border);
}

/* Three stops side by side on a wide screen; on a phone a row you swipe
   through, like the app's own lists, with the next one peeking in. */
.stops {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(78%, 300px);
  gap: 20px;
  margin: 0 calc(-1 * var(--gutter));
  padding: 4px var(--gutter) 24px;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 var(--gutter);
  scrollbar-width: thin;
}

.stops > li {
  scroll-snap-align: start;
}

.stops .phone {
  margin-bottom: var(--space-four);
}

.stops h2,
.stop h2 {
  font-size: clamp(26px, 2.6vw, 32px);
  line-height: 1.12;
  letter-spacing: -0.025em;
  margin-bottom: 12px;
}

.stops p,
.stop-text p {
  max-width: 26em;
  margin: 0;
  color: var(--textSecondary);
  font-size: 17px;
  line-height: 26px;
}

@media (min-width: 900px) {
  .stops {
    grid-auto-flow: row;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 48px;
    margin: 0;
    padding: 0;
    overflow: visible;
  }
}

.stop {
  display: grid;
  gap: 32px;
  align-items: center;
  margin-top: clamp(48px, 7vw, 96px);
  padding-top: clamp(40px, 6vw, 72px);
  border-top: 1px solid var(--border);
}

/* The other bullets of the content list ride along as small tint pills. */
.also {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-two);
  margin: var(--space-four) 0 0;
  padding: 0;
  list-style: none;
}

.also li {
  display: inline-flex;
  align-items: center;
  gap: var(--space-two);
  min-height: 36px;
  padding: 0 14px 0 10px;
  border-radius: 18px;
  background: var(--accentTint);
  box-shadow: inset 0px 0px 0px 1px var(--accentRing);
  color: var(--accentInk);
  font-weight: 600;
  font-size: 15px;
  line-height: 20px;
}

.also svg {
  width: 18px;
  height: 18px;
  flex: none;
}

.stop .lobby {
  justify-self: center;
  width: min(80vw, 300px);
}

@media (min-width: 900px) {
  .stop {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 64px;
  }
}

/* The lobby, drawn instead of photographed: five places in the lobby colors. */
.lobby {
  padding: 28px 24px 32px;
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--lift3);
}

.lobby svg {
  width: 100%;
  height: auto;
}

.lobby text {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 15px;
  fill: var(--textSecondary);
}

/* ---------- You decide what others see ---------- */

.privacy {
  padding: clamp(56px, 9vw, 120px) 0;
  border-top: 1px solid var(--border);
}

.privacy .wrap {
  display: grid;
  gap: 32px;
  align-items: center;
}

.privacy-mark {
  width: 120px;
  height: 120px;
  color: var(--accent);
}

.privacy-text p {
  margin: 0;
  max-width: 20ch;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.privacy-text p + p {
  max-width: 28em;
  margin-top: 20px;
  color: var(--textSecondary);
  font-size: 20px;
  line-height: 30px;
  font-weight: 400;
  letter-spacing: 0;
}

@media (min-width: 900px) {
  .privacy .wrap {
    grid-template-columns: 160px minmax(0, 1fr);
    gap: 48px;
  }

  .privacy-mark {
    width: 160px;
    height: 160px;
  }
}

/* ---------- Closing ---------- */

.coda {
  padding: clamp(48px, 7vw, 88px) 0 clamp(64px, 9vw, 112px);
  border-top: 1px solid var(--border);
}

.coda p {
  max-width: 26em;
  font-size: 20px;
  line-height: 30px;
}

/* Button »primary«: the one filled accent on the page, with sheen and glow. */
.button {
  display: inline-flex;
  align-items: center;
  min-height: 56px;
  margin-top: 8px;
  padding: 0 28px;
  border-radius: 28px;
  background-color: var(--accent);
  background-image: var(--accentSheen);
  box-shadow: var(--glowPrimary);
  color: var(--onAccent);
  font-weight: 800;
  font-size: 17px;
  line-height: 22px;
  text-decoration: none;
}

.button:hover {
  text-decoration: underline;
}

/* ---------- Cards (Om, Kontakt, English) ---------- */

.card {
  background: var(--surface);
  border-radius: var(--radius-card);
  box-shadow: var(--lift3);
  padding: clamp(var(--space-four), 5vw, 40px);
  max-width: 720px;
}

.card + .card {
  margin-top: 20px;
}

/* Role »headline« (32/38). */
.card h1 {
  font-size: 32px;
  line-height: 38px;
  margin-bottom: 20px;
}

address {
  font-style: normal;
  margin-bottom: 20px;
}

.contact-list {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: var(--space-two) 20px;
  margin: 0 0 20px;
}

.contact-list dt {
  color: var(--textSecondary);
  font-weight: 600;
}

.contact-list dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.muted {
  color: var(--textSecondary);
}

/* ---------- Legal texts (privatliv/, vilkaar/) ----------
 * One long card, readable in one go: section headings in the »title« role,
 * lists and the two tables in the body size. Tables never widen the page:
 * on a phone each row becomes a small block.
 */

.legal {
  max-width: 760px;
}

.legal .meta {
  color: var(--textSecondary);
  margin-bottom: var(--space-four);
}

/* Role »title« (22/28). */
.legal h2 {
  font-size: 22px;
  line-height: 28px;
  margin: var(--space-five) 0 12px;
}

.legal h3 {
  font-size: 17px;
  line-height: 24px;
  font-weight: 800;
  margin: var(--space-four) 0 var(--space-two);
}

.legal ul,
.legal ol {
  margin: 0 0 var(--space-three);
  padding-left: 22px;
}

.legal li + li {
  margin-top: 6px;
}

.legal address {
  padding: var(--space-three);
  border-radius: 16px;
  background: var(--fill);
}

.legal .toc {
  columns: 2 220px;
  font-size: 15px;
}

.legal table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 var(--space-four);
  font-size: 15px;
  line-height: 22px;
}

.legal th,
.legal td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px 10px 0;
  border-bottom: 1px solid var(--border);
  overflow-wrap: anywhere;
}

.legal th {
  color: var(--textSecondary);
  font-weight: 600;
}

.legal .service {
  padding: var(--space-three) 0;
  border-bottom: 1px solid var(--border);
}

.legal .service h3 {
  margin-top: 0;
}

.legal .service p {
  margin-bottom: 6px;
}

.legal .service p:last-child {
  margin-bottom: 0;
}

.legal .label {
  color: var(--textSecondary);
  font-weight: 600;
}

@media (max-width: 520px) {
  .legal thead {
    display: none;
  }

  .legal tr,
  .legal td {
    display: block;
  }

  .legal tr {
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
  }

  .legal td {
    border: 0;
    padding: 0;
  }

  .legal td:first-child {
    font-weight: 600;
  }
}

/* ---------- Footer ---------- */

/* Role »small« (14/20). */
.site-footer {
  border-top: 1px solid var(--border);
  padding: var(--space-four) 0 var(--space-five);
  font-size: 14px;
  line-height: 20px;
  color: var(--textSecondary);
}

.site-footer p {
  margin: 0 0 10px;
}

.site-footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer a {
  color: var(--textSecondary);
}

.site-footer a:hover {
  color: var(--text);
}

@media (max-width: 520px) {
  :root {
    --gutter: 16px;
  }

  main {
    padding-top: var(--space-five);
  }

  .site-nav ul {
    gap: 2px;
    margin: 0 -10px;
  }

  .site-nav a {
    padding: 0 10px;
  }
}
