/* Lumastellar site mockup. Two looks in one file:
   body.luma   - the company pages (night sky, one warm starlight accent)
   body.kinfit - Kinfit's pages, in Kinfit's own colours and typefaces */

@import url('https://fonts.googleapis.com/css2?family=Hanken+Grotesk:wght@400;500;600&family=Instrument+Serif:ital@0;1&family=Schibsted+Grotesk:wght@400;500;600&display=swap');

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

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

body {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

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

.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.caps {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* ---------- Global bar: on every page, company and product ---------- */

.gnav {
  position: sticky;
  top: 0;
  z-index: 5;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(14, 16, 20, 0.52);
  -webkit-backdrop-filter: saturate(180%) blur(22px);
  backdrop-filter: saturate(180%) blur(22px);
  font-family: 'Schibsted Grotesk', system-ui, sans-serif;
}

.gnav div {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 3.4vw, 40px);
  height: 36px;
  margin: 0 auto;
  padding: 0 16px;
}

.gnav a {
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
  text-decoration: none;
  white-space: nowrap;
}

.gnav a:hover {
  color: #fff;
}

.gnav .mark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}

.gnav .mark svg {
  width: 12px;
  height: 12px;
  fill: #f2d58a;
}

.sitefoot {
  border-top: 1px solid #22252d;
  background: #08090b;
  color: #9c9fa8;
  font-family: 'Schibsted Grotesk', system-ui, sans-serif;
  font-size: 13px;
}

.sitefoot .cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  padding-top: 40px;
  padding-bottom: 28px;
}

.sitefoot h4 {
  margin: 0 0 10px;
  color: #eceae4;
  font-size: 13px;
  font-weight: 600;
}

.sitefoot .cols a {
  display: block;
  padding: 4px 0;
  color: inherit;
  text-decoration: none;
}

.sitefoot a:hover {
  color: #eceae4;
}

.sitefoot .fine {
  padding-top: 18px;
  padding-bottom: 32px;
  border-top: 1px solid #22252d;
  color: #6f737d;
  font-size: 12px;
}

/* ---------- Company pages ---------- */

body.luma {
  --bg: #08090b;
  --surface: #121419;
  --line: #22252d;
  --text: #eceae4;
  --muted: #9c9fa8;
  --star: #f2d58a;
  background: var(--bg);
  color: var(--text);
  font-family: 'Schibsted Grotesk', system-ui, sans-serif;
}

.luma .top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 28px;
  padding-bottom: 28px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.wordmark svg {
  width: 18px;
  height: 18px;
  fill: var(--star);
}

.luma .top nav {
  display: flex;
  gap: 28px;
}

.luma .top nav a {
  color: var(--muted);
  font-size: 15px;
  text-decoration: none;
}

.luma .top nav a:hover {
  color: var(--text);
}

/* Home: stacked product tiles, one product per tile, each in its own colours. */

.stack {
  display: grid;
  gap: 12px;
  padding-bottom: 12px;
}

.duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 0 12px;
}

.unit {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 600px;
  padding: 56px 24px 0;
  overflow: hidden;
  text-align: center;
}

.unit h1,
.unit h2 {
  margin: 0;
  font-size: clamp(40px, 5vw, 56px);
  font-weight: 600;
  line-height: 1.07;
  letter-spacing: -0.025em;
}

.unit > p {
  max-width: 24em;
  margin: 8px 0 0;
  font-size: clamp(19px, 2.1vw, 27px);
  line-height: 1.22;
}

.btns {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 22px;
}

.btn {
  padding: 10px 21px;
  border: 1px solid;
  border-radius: 999px;
  font-size: 17px;
  text-decoration: none;
}

.unit-hero {
  justify-content: center;
  min-height: 480px;
  padding-bottom: 56px;
  background-color: #101217;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 22%, rgba(236, 234, 228, 0.7), transparent 60%),
    radial-gradient(1px 1px at 27% 70%, rgba(236, 234, 228, 0.5), transparent 60%),
    radial-gradient(1.5px 1.5px at 61% 14%, rgba(242, 213, 138, 0.8), transparent 60%),
    radial-gradient(1px 1px at 74% 58%, rgba(236, 234, 228, 0.55), transparent 60%),
    radial-gradient(1.5px 1.5px at 88% 30%, rgba(236, 234, 228, 0.65), transparent 60%),
    radial-gradient(1px 1px at 93% 80%, rgba(236, 234, 228, 0.45), transparent 60%),
    radial-gradient(1px 1px at 44% 88%, rgba(236, 234, 228, 0.4), transparent 60%);
}

.unit-hero > svg {
  width: 30px;
  height: 30px;
  margin-bottom: 18px;
  fill: var(--star);
}

.unit-hero h1 {
  font-size: clamp(46px, 7vw, 84px);
  font-weight: 500;
  letter-spacing: -0.04em;
}

.unit-hero > p {
  color: var(--muted);
}

.unit-hero .btn {
  border-color: var(--star);
  color: var(--star);
}

.unit-hero .btn.fill {
  background: var(--star);
  color: #08090b;
}

.unit-kinfit {
  background: #efeee9;
  color: #1e1f1c;
}

.unit-kinfit h2 {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: clamp(60px, 7vw, 84px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
}

.unit-kinfit h2 i {
  display: inline-block;
  width: 0.14em;
  height: 0.14em;
  margin-left: 0.04em;
  border-radius: 50%;
  background: #a65b42;
}

.unit-kinfit > p,
.unit-see > p {
  font-family: 'Hanken Grotesk', system-ui, sans-serif;
}

.unit-kinfit .btn,
.unit-see .btn {
  border-color: #1e1f1c;
  color: #1e1f1c;
  font-family: 'Hanken Grotesk', system-ui, sans-serif;
}

.unit-kinfit .btn.fill,
.unit-see .btn.fill {
  background: #1e1f1c;
  color: #fbfbf8;
}

.unit-kinfit .phone {
  margin: 44px 0 -130px;
}

.duo .unit {
  min-height: 560px;
}

.unit-see {
  background: #dfe2d8;
  color: #1e1f1c;
}

.unit-see .figure {
  width: 210px;
  margin-top: auto;
  padding-top: 36px;
}

.unit-next {
  background: #101217;
}

.unit-next > p {
  color: var(--muted);
}

.unit-next .bigstar {
  width: 180px;
  height: 180px;
  margin: auto 0;
  fill: none;
  stroke: #343946;
  stroke-width: 0.4;
}

/* Company text page: about and contact */

.page {
  max-width: 760px;
  padding-top: 56px;
  padding-bottom: 96px;
}

.page h1 {
  margin: 14px 0 28px;
  font-size: clamp(36px, 5.4vw, 60px);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.03em;
}

.page .caps {
  color: var(--star);
}

.page p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 18px;
}

.page h2 {
  margin: 56px 0 16px;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.facts {
  margin: 0;
  padding: 0;
  list-style: none;
}

.facts li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}

.facts li span:first-child {
  color: var(--muted);
}

.facts a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.luma .mail {
  color: var(--star);
  font-size: clamp(24px, 3.4vw, 40px);
  font-weight: 500;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.luma .mail:hover {
  text-decoration: underline;
}

.luma footer {
  padding: 32px 0 48px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px 32px;
}

.foot div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.foot a {
  text-decoration: none;
}

.foot a:hover {
  text-decoration: underline;
}

/* ---------- Kinfit pages ---------- */

body.kinfit {
  --bg: #fbfbf8;
  --ink: #1e1f1c;
  --muted: #6b6c65;
  --surface: #eeeee8;
  --line: #e5e4df;
  --accent: #a65b42;
  --sage: #6c7562;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Hanken Grotesk', system-ui, sans-serif;
}

.kinfit .top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 24px;
  padding-bottom: 24px;
}

.kmark {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 30px;
  line-height: 1;
  text-decoration: none;
}

.kmark i {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-left: 2px;
  border-radius: 50%;
  background: var(--accent);
}

.kinfit .top nav {
  display: flex;
  gap: 24px;
}

.kinfit .top nav a {
  color: var(--muted);
  text-decoration: none;
}

.kinfit .top nav a:hover {
  color: var(--ink);
}

.khero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 48px;
  padding-top: 56px;
  padding-bottom: 88px;
}

.khero .caps {
  color: var(--accent);
}

.khero h1 {
  margin: 18px 0 22px;
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: clamp(44px, 6vw, 68px);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.01em;
}

.khero h1 em {
  color: var(--accent);
}

.khero p {
  max-width: 46ch;
  margin: 0 0 30px;
  color: var(--muted);
  font-size: 18px;
}

.pill {
  display: inline-block;
  padding: 14px 22px;
  border: 1px solid var(--ink);
  border-radius: 2px;
}

.khero .phone {
  justify-self: center;
}

.kfeatures {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.kgrid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  background-clip: content-box;
}

.kgrid div {
  padding: 40px 28px 44px;
  background: var(--surface);
}

.kgrid b {
  display: block;
  margin-bottom: 14px;
  color: var(--sage);
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 28px;
  font-weight: 400;
  line-height: 1;
}

.kgrid h3 {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 600;
}

.kgrid p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.kband {
  padding: 80px 0;
  text-align: center;
}

.kband h2 {
  max-width: 20ch;
  margin: 0 auto 14px;
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: clamp(32px, 4.4vw, 48px);
  font-weight: 400;
  line-height: 1.08;
}

.kband p {
  margin: 0;
  color: var(--muted);
}

.kinfit footer {
  padding: 28px 0 44px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

/* Kinfit text pages: support, privacy, delete account */

.doc {
  max-width: 720px;
  padding-top: 40px;
  padding-bottom: 88px;
}

.doc h1 {
  margin: 12px 0 12px;
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: clamp(38px, 5vw, 52px);
  font-weight: 400;
  line-height: 1.05;
}

.doc .lede {
  margin: 0 0 40px;
  color: var(--muted);
  font-size: 18px;
}

.doc h2 {
  margin: 36px 0 8px;
  font-size: 18px;
  font-weight: 600;
}

.doc p,
.doc li {
  color: #3d3e39;
}

.doc p {
  margin: 0 0 12px;
}

.doc ol,
.doc ul {
  margin: 0 0 12px;
  padding-left: 22px;
}

.doc a {
  color: var(--accent);
}

.note {
  margin: 0 0 32px;
  padding: 14px 16px;
  border-left: 3px solid var(--accent);
  background: rgba(166, 91, 66, 0.1);
  color: #5e3020;
  font-size: 15px;
}

.card {
  margin: 0 0 12px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: #fff;
}

.card .caps {
  color: var(--muted);
}

.card a {
  display: inline-block;
  margin-top: 6px;
  font-size: 20px;
}

/* ---------- The phone, drawn in CSS ---------- */

.phone {
  width: 268px;
  flex: none;
  padding: 16px 14px 18px;
  border: 8px solid #1e1f1c;
  border-radius: 40px;
  background: #fbfbf8;
  color: #1e1f1c;
  font-family: 'Hanken Grotesk', system-ui, sans-serif;
  box-shadow: 0 30px 60px -30px rgba(30, 31, 28, 0.45);
}

.phone .bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  color: #6b6c65;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.phone .bar b {
  color: #1e1f1c;
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 20px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

.look {
  overflow: hidden;
  border-radius: 2px;
}

.tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: #e5e4df;
}

.tile {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 1.12;
  background: #efeee9;
}

.tile svg {
  width: 62%;
}

.tile span {
  position: absolute;
  right: 6px;
  bottom: 6px;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(251, 251, 248, 0.92);
  font-size: 10px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.band {
  padding: 12px 12px 13px;
  background: #1e1f1c;
  color: #fff;
}

.band .row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
}

.band .row span:last-child {
  font-variant-numeric: tabular-nums;
}

.band small {
  display: block;
  margin-top: 3px;
  color: #c9cbbf;
  font-size: 10.5px;
}

.acts {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 16px;
}

.acts i {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid #d9d8d2;
  border-radius: 50%;
  font-size: 17px;
  font-style: normal;
}

.acts i.love {
  border-color: #a65b42;
  background: #a65b42;
  color: #fff;
}

/* ---------- Narrow screens ---------- */

@media (max-width: 860px) {
  .khero {
    grid-template-columns: 1fr;
    padding-top: 32px;
    padding-bottom: 56px;
  }

  .kgrid {
    grid-template-columns: 1fr 1fr;
  }

  .duo {
    grid-template-columns: 1fr;
  }

  .unit {
    min-height: 520px;
  }

  .sitefoot .cols {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 520px) {
  .wrap {
    padding: 0 16px;
  }

  .luma .top nav {
    gap: 18px;
  }

  .kgrid {
    grid-template-columns: 1fr;
  }

  .kinfit .top nav a.hide-s {
    display: none;
  }
}

.draft {
  margin: 40px 0 0;
  padding: 14px 16px;
  border-left: 3px solid var(--star);
  background: rgba(242, 213, 138, 0.08);
  color: #d9c58f !important;
  font-size: 15px !important;
}

.page a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.page a.mail {
  text-decoration: none;
}

/* Real screenshots, framed */

.shot-phone {
  width: 268px;
  flex: none;
  padding: 8px;
  border-radius: 42px;
  background: #1e1f1c;
  box-shadow: 0 30px 60px -30px rgba(30, 31, 28, 0.45);
}

.shot-phone img {
  width: 100%;
  height: auto;
  border-radius: 34px;
}

.unit-kinfit .shot-phone {
  margin: 44px 0 -230px;
}

.khero .shot-phone {
  justify-self: center;
}

.shot-browser {
  width: min(92%, 560px);
  margin-top: auto;
  padding-top: 26px;
  border: 1px solid #c9ccc0;
  border-bottom: 0;
  border-radius: 10px 10px 0 0;
  background: #f4f4ef;
  position: relative;
  overflow: hidden;
  box-shadow: 0 -10px 40px -20px rgba(30, 31, 28, 0.35);
  transform: translateY(36px);
  margin-bottom: 0;
}

.shot-browser i {
  position: absolute;
  top: 9px;
  left: 12px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #c9ccc0;
  box-shadow: 14px 0 #c9ccc0, 28px 0 #c9ccc0;
}

.shot-browser img {
  width: 100%;
  height: auto;
}
