/* Higher Self GmbH — higherself.ch
   No external resources. Fonts: Inter and Inter Tight (SIL OFL 1.1), self-hosted. */

@font-face {
  font-family: "Inter";
  src: url("assets/fonts/inter-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter Tight";
  src: url("assets/fonts/inter-tight-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #F6F5F1;
  --surface: #FFFFFF;
  --ink: #16162A;
  --ink-2: #45455A;
  --muted: #696975;
  --line: #DCD9D0;
  --line-strong: #16162A;
  --navy: #1A1A2E;
  --navy-2: #24243C;
  --on-navy: #FFFFFF;
  --on-navy-2: #B7B7C9;
  --gold: #C29A4B;

  --font-display: "Inter Tight", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-text: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --wrap: 1200px;
  --pad: 40px;
  --gutter: 32px;
  --section: 144px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 16px;
  line-height: 1.6;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
a:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; border-radius: 2px; }

h1, h2, h3, p, dl, dd, ul { margin: 0; padding: 0; }
ul { list-style: none; }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 10;
  padding: 10px 16px; background: var(--navy); color: var(--on-navy);
  text-decoration: none; border-radius: 4px;
}
.skip:focus { top: 16px; }

.wrap { max-width: calc(var(--wrap) + 2 * var(--pad)); margin: 0 auto; padding: 0 var(--pad); }

.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
}

/* ---------- Type ---------- */

.eyebrow {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.display {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(46px, 7.4vw, 108px);
  line-height: 0.96;
  letter-spacing: -0.042em;
  text-wrap: balance;
}

.h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(34px, 4.4vw, 56px);
  line-height: 1.02;
  letter-spacing: -0.032em;
  text-wrap: balance;
}

.h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

.lead {
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink-2);
  text-wrap: pretty;
}

.body { color: var(--ink-2); text-wrap: pretty; }

.arrow-link {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 44px;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  transition: gap .2s ease;
}
.arrow-link:hover { gap: 14px; }
.arrow-link svg { width: 14px; height: 14px; flex: none; }

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

.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  min-height: 84px;
}

.brand { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; }
.brand-mark { width: 34px; height: 34px; }
.brand-word { display: flex; flex-direction: column; line-height: 1; }
.brand-word b { font-weight: 300; font-size: 16px; letter-spacing: 0.24em; }
.brand-word small { margin-top: 6px; font-size: 9px; font-weight: 500; letter-spacing: 0.52em; color: var(--muted); }

.nav { display: flex; align-items: center; gap: 36px; font-size: 15px; }
.nav a { text-decoration: none; color: var(--ink-2); padding: 12px 0; }
.nav a:hover { color: var(--ink); }
.nav .nav-cta {
  color: var(--on-navy); background: var(--navy);
  padding: 0 20px; min-height: 44px; display: inline-flex; align-items: center;
  border-radius: 999px;
}
.nav .nav-cta:hover { color: var(--on-navy); background: var(--navy-2); }

/* ---------- Hero ---------- */

.hero { padding: 104px 0 120px; border-bottom: 1px solid var(--line); overflow: hidden; }
.hero .grid { row-gap: 64px; align-items: end; }
.hero-meta { grid-column: 1 / span 12; display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.hero-title { grid-column: 1 / span 8; }
.hero-figure { grid-column: 9 / span 4; align-self: center; }
.hero-lead { grid-column: 1 / span 5; }
.hero-actions { grid-column: 7 / span 6; display: flex; gap: 40px; flex-wrap: wrap; justify-self: start; }

.figure {
  position: relative;
  aspect-ratio: 1 / 1;
  width: 100%;
  color: var(--ink);
}
.figure svg { width: 100%; height: 100%; overflow: visible; }
.figure-caption {
  position: absolute; left: 0; right: 0; bottom: -34px;
  display: flex; justify-content: space-between;
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted);
  font-variant-numeric: tabular-nums;
}

/* ---------- Sections ---------- */

.section { padding: var(--section) 0; border-bottom: 1px solid var(--line); }
.section .grid { row-gap: 48px; }
.section-label { grid-column: 1 / span 3; display: flex; gap: 14px; align-items: baseline; }
.section-label .num { color: var(--ink); }
.section-body { grid-column: 4 / span 9; }

.section-head { display: grid; gap: 28px; max-width: 760px; }

/* Company */
.facts {
  margin-top: 72px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line-strong);
}
.facts div { padding: 22px 24px 0 0; display: grid; gap: 8px; }
.facts dt { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.facts dd { font-family: var(--font-display); font-size: 22px; font-weight: 500; letter-spacing: -0.015em; line-height: 1.25; }

/* Product */
.product-card {
  margin-top: 72px;
  background: var(--navy);
  color: var(--on-navy);
  border-radius: 6px;
  overflow: hidden;
}
.product-top {
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  column-gap: var(--gutter);
  padding: 56px 56px 48px;
  align-items: end;
  position: relative;
}
.product-name {
  grid-column: 1 / span 6;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(48px, 6.4vw, 88px);
  line-height: 0.92;
  letter-spacing: -0.045em;
}
.product-name span { color: var(--gold); }
.product-link { grid-column: 7 / span 3; justify-self: end; color: var(--on-navy); }
.product-tag { grid-column: 1 / span 6; margin-top: 24px; color: var(--on-navy-2); font-size: 17px; max-width: 520px; }

.capabilities {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}
.capabilities li {
  padding: 32px 32px 44px;
  border-right: 1px solid rgba(255, 255, 255, 0.14);
  display: grid; gap: 12px; align-content: start;
}
.capabilities li:last-child { border-right: 0; }
.cap-num { font-size: 12px; letter-spacing: 0.12em; color: var(--gold); font-variant-numeric: tabular-nums; }
.cap-title { font-family: var(--font-display); font-size: 22px; font-weight: 500; letter-spacing: -0.015em; }
.cap-text { font-size: 15px; color: var(--on-navy-2); line-height: 1.55; }

/* Support */
.support-list {
  margin-top: 72px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: var(--gutter);
}
.support-item {
  border-top: 1px solid var(--line-strong);
  padding-top: 24px;
  display: grid; gap: 14px;
  grid-template-rows: auto auto 1fr auto;
}
.support-item .eyebrow { color: var(--muted); }
.support-item .arrow-link { justify-self: start; margin-top: 10px; overflow-wrap: anywhere; }

/* Legal */
.legal-title { margin-bottom: 72px; }
.legal { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 72px; }
.imprint { grid-column: 1 / span 5; }
.privacy { grid-column: 6 / span 4; }
.legal .h3 { margin-bottom: 28px; }
.imprint dl { display: grid; grid-template-columns: 168px minmax(0, 1fr); border-top: 1px solid var(--line); }
.imprint dt, .imprint dd { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.imprint dt { color: var(--muted); }
.imprint dd a { text-decoration: none; }
.imprint dd a:hover { text-decoration: underline; }
.privacy p { color: var(--ink-2); font-size: 15px; }
.privacy p + p { margin-top: 16px; }

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

.site-footer { background: var(--navy); color: var(--on-navy-2); padding: 96px 0 40px; }
.site-footer .grid { row-gap: 48px; }
.footer-brand { grid-column: 1 / span 4; color: var(--on-navy); }
.footer-brand .brand-mark { width: 48px; height: 48px; }
.footer-brand .brand-word b { font-size: 20px; }
.footer-brand .brand-word small { color: var(--on-navy-2); }
.footer-statement { margin-top: 32px; max-width: 320px; font-size: 15px; color: var(--on-navy-2); }
.footer-col { grid-column: span 2; display: grid; gap: 10px; align-content: start; font-size: 15px; }
.footer-col:nth-of-type(2) { grid-column: 6 / span 3; }
.footer-col .eyebrow { color: #8E8EA6; margin-bottom: 6px; }
.footer-col a { text-decoration: none; color: var(--on-navy); }
.footer-col a:hover { text-decoration: underline; }
.footer-bottom {
  grid-column: 1 / -1;
  margin-top: 40px; padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 13px;
}

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
  :root { --section: 112px; --gutter: 24px; }
  .hero-title { grid-column: 1 / -1; }
  .hero-figure { display: none; }
  .hero-lead { grid-column: 1 / span 7; }
  .hero-actions { grid-column: 1 / -1; }
  .section-label { grid-column: 1 / -1; }
  .section-body { grid-column: 1 / -1; }
  .capabilities { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .capabilities li:nth-child(2) { border-right: 0; }
  .capabilities li:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, 0.14); }
  .footer-brand { grid-column: 1 / -1; }
  .footer-col, .footer-col:nth-of-type(2) { grid-column: span 4; }
}

@media (max-width: 720px) {
  :root { --pad: 24px; --section: 88px; --gutter: 16px; }
  .nav a:not(.nav-cta) { display: none; }
  .hero { padding: 64px 0 80px; }
  .hero .grid { row-gap: 40px; }
  .hero-meta-a { display: none; }
  .hero-meta .eyebrow { font-size: 11px; letter-spacing: 0.1em; }
  .hero-lead { grid-column: 1 / -1; }
  .hero-actions { flex-direction: column; gap: 8px; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
  .product-card { margin-left: calc(-1 * var(--pad)); margin-right: calc(-1 * var(--pad)); border-radius: 0; }
  .product-top { padding: 44px var(--pad) 36px; grid-template-columns: 1fr; }
  .product-name, .product-tag, .product-link { grid-column: 1 / -1; justify-self: start; }
  .product-tag { order: 2; }
  .product-link { order: 3; margin-top: 28px; }
  .capabilities { grid-template-columns: 1fr; }
  .capabilities li { border-right: 0; padding: 28px var(--pad) 32px; }
  .capabilities li + li { border-top: 1px solid rgba(255, 255, 255, 0.14); }
  .support-list { grid-template-columns: 1fr; row-gap: 48px; }
  .legal { grid-template-columns: 1fr; }
  .imprint, .privacy { grid-column: 1 / -1; }
  .imprint dl { grid-template-columns: 1fr; }
  .imprint dt { border-bottom: 0; padding-bottom: 0; font-size: 13px; }
  .imprint dd { padding-top: 4px; }
  .footer-col, .footer-col:nth-of-type(2) { grid-column: 1 / -1; }
}
