/* Orbiq website. Values follow design-system/tokens and design-system/illustration.md. */

@font-face {
  font-family: "Hanken Grotesk";
  src: url("fonts/HankenGrotesk.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --canvas: #0b0b0c;
  --surface: #121214;
  --raised: #17171a;
  --text: #f3f3f1;
  --secondary: #9e9ea3;
  --lime: #c4ee4e;
  --lime-hover: #dcf57a;
  --amber: #efb141;
  --line: rgba(255, 255, 255, 0.1);
  --veil: rgba(11, 11, 12, 0.86);
  --gutter: 22px;
  --column: 1120px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--text);
  font-family: "Hanken Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  font-weight: 300;
  font-size: 17px;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

h1,
h2,
h3,
p {
  margin: 0;
  font-weight: 300;
}

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

a {
  color: var(--lime);
  text-decoration: none;
}

a:hover {
  color: var(--lime-hover);
}

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

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

/* ---------- Orbit field: fixed behind the page ---------- */

.orbits {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.orbits svg {
  position: absolute;
  left: -40px;
  top: 56px;
  width: 520px;
  height: 442px;
  overflow: visible;
}

@keyframes sway-a {
  from { transform: rotate(-4deg); }
  to { transform: rotate(4deg); }
}

@keyframes sway-b {
  from { transform: rotate(6deg); }
  to { transform: rotate(-6deg); }
}

@keyframes sway-c {
  from { transform: rotate(-2deg) scale(0.98); }
  to { transform: rotate(5deg) scale(1.03); }
}

.sway-a,
.sway-b,
.sway-c {
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
  animation-direction: alternate;
}

.sway-a { animation-name: sway-a; }
.sway-b { animation-name: sway-b; }
.sway-c { animation-name: sway-c; }

/* ---------- Shared type ---------- */

.micro {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--secondary);
}

.h2 {
  font-size: 36px;
  line-height: 1.06;
  letter-spacing: -1px;
  text-wrap: balance;
}

.lede {
  color: var(--secondary);
  max-width: 34em;
}

.tag {
  display: inline-block;
  padding: 7px 11px;
  border-radius: 999px;
  background: var(--raised);
  color: var(--secondary);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  white-space: nowrap;
}

.tag--amber {
  color: var(--amber);
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 34px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--lime);
  color: var(--canvas);
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  cursor: pointer;
}

.pill:hover {
  background: var(--lime-hover);
  color: var(--canvas);
}

.pill:active {
  opacity: 0.7;
}

.pill--small {
  min-height: 44px;
  padding: 0 18px;
  font-size: 11px;
}

.pill--secondary {
  background: var(--canvas);
  color: var(--text);
  border-color: var(--line);
}

.pill--secondary:hover {
  background: var(--surface);
  color: var(--text);
}

.illu {
  height: auto;
}

.card {
  border-radius: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
}

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

.site-header {
  position: relative;
  z-index: 1;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 36px;
  min-height: 64px;
}

.wordmark {
  flex-grow: 1;
  padding: 10px 0;
  font-size: 26px;
  letter-spacing: -1px;
  color: var(--text);
}

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

.site-nav {
  display: none;
  gap: 36px;
}

.site-nav a {
  padding: 16px 0;
  color: var(--secondary);
}

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

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

.hero {
  position: relative;
  z-index: 1;
  padding: 380px 0 64px;
}

.hero .wrap {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.hero h1 {
  font-size: clamp(52px, 15vw, 64px);
  line-height: 0.98;
  letter-spacing: -2px;
  text-wrap: balance;
}

.hero .lede {
  font-size: 17px;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 6px;
}

.hero-actions .text-link {
  padding: 12px 0;
  text-align: center;
  font-size: 16px;
}

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

.section {
  position: relative;
  z-index: 1;
  padding: 64px 0;
  background: var(--veil);
  border-top: 1px solid var(--line);
}

.section > .wrap {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.intro {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}

.split {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.section-illu {
  width: 100%;
  max-width: 440px;
}

/* Benefits */

.benefits {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.benefit {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px;
}

.benefit svg {
  width: 24px;
  height: 24px;
  margin-bottom: 8px;
  stroke: var(--lime);
}

.benefit h3 {
  font-size: 22px;
  line-height: 1.15;
}

.benefit p {
  font-size: 15px;
  color: var(--secondary);
}

/* Example conversation */

.chat {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
}

.chat p {
  max-width: 85%;
  padding: 14px 18px;
  border-radius: 22px;
  font-size: 16px;
  line-height: 1.45;
}

.chat .you {
  align-self: flex-end;
  background: var(--lime);
  color: var(--canvas);
}

.chat .coach {
  align-self: flex-start;
  background: var(--raised);
}

/* Steps */

.steps {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.step {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.step .illu {
  width: 140px;
  margin-left: -12px;
}

.step .number {
  font-size: 13px;
  color: var(--secondary);
}

.step h3 {
  font-size: 24px;
}

.step p {
  font-size: 15px;
  color: var(--secondary);
}

/* Proposal */

.proposal {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 22px;
}

.proposal-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.proposal h3 {
  font-size: 24px;
  line-height: 1.15;
}

.proposal .reason {
  font-size: 15px;
  color: var(--secondary);
}

.facts {
  margin: 0;
  border-top: 1px solid var(--line);
}

.facts div {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}

.facts dt {
  color: var(--secondary);
}

.facts dd {
  margin: 0;
}

.proposal-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.proposal-actions .pill {
  min-height: 52px;
  cursor: default;
}

.points {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 16px;
}

.points li {
  display: flex;
  gap: 14px;
}

.points li::before {
  content: "·";
  color: var(--lime);
}

/* The app */

.app-title {
  font-size: 30px;
  line-height: 1.1;
  letter-spacing: -0.8px;
}

/* Closing */

.closing h2 {
  font-size: clamp(52px, 15vw, 64px);
  line-height: 0.98;
  letter-spacing: -2px;
}

.closing-actions {
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: center;
  color: var(--secondary);
  font-size: 16px;
}

/* Footer */

.site-footer {
  position: relative;
  z-index: 1;
  padding: 32px 0 40px;
  background: var(--veil);
  border-top: 1px solid var(--line);
  color: var(--secondary);
  font-size: 14px;
}

.site-footer .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-footer .wordmark {
  flex-grow: 0;
  font-size: 20px;
  letter-spacing: -0.6px;
}

/* ---------- Desktop ---------- */

@media (min-width: 900px) {
  :root {
    --gutter: 40px;
  }

  body {
    font-size: 18px;
  }

  .orbits svg {
    left: calc(50% - 160px);
    top: 96px;
    width: 1000px;
    height: 850px;
  }

  .site-header .wrap {
    min-height: 96px;
  }

  .wordmark {
    font-size: 28px;
  }

  .site-nav {
    display: flex;
  }

  .h2 {
    font-size: 52px;
    line-height: 1.04;
    letter-spacing: -1.6px;
  }

  .hero {
    padding: 0;
  }

  .hero .wrap {
    justify-content: center;
    gap: 28px;
    min-height: 800px;
  }

  .hero h1 {
    max-width: 620px;
    font-size: clamp(72px, 7.2vw, 104px);
    line-height: 0.95;
    letter-spacing: -3.6px;
  }

  .hero .lede {
    max-width: 520px;
    font-size: 20px;
  }

  .hero-actions {
    flex-direction: row;
    align-items: center;
    gap: 24px;
    margin-top: 8px;
  }

  .section {
    padding: 96px 0;
  }

  .section > .wrap {
    gap: 56px;
  }

  .intro {
    gap: 20px;
  }

  .split {
    flex-direction: row;
    align-items: center;
    gap: 80px;
  }

  .split--top {
    align-items: flex-start;
  }

  .split > .grow {
    flex: 1 1 0;
    min-width: 0;
  }

  .split > .side {
    flex: 0 0 440px;
  }

  .split > .side--wide {
    flex-basis: 480px;
  }

  .benefits {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
  }

  .benefit {
    gap: 12px;
    padding: 28px;
  }

  .benefit h3 {
    font-size: 24px;
  }

  .chat {
    gap: 14px;
    padding: 28px;
  }

  .chat p {
    max-width: 520px;
    font-size: 17px;
  }

  .chat .you {
    max-width: 420px;
  }

  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
  }

  .step {
    gap: 12px;
    padding-top: 22px;
  }

  .step .illu {
    width: 160px;
    margin-left: -14px;
  }

  .step h3 {
    font-size: 26px;
  }

  .proposal {
    gap: 20px;
    padding: 32px;
  }

  .proposal h3 {
    font-size: 30px;
  }

  .facts div {
    flex-direction: row;
    justify-content: space-between;
    gap: 24px;
    padding: 14px 0;
  }

  .proposal-actions {
    flex-direction: row;
    gap: 14px;
  }

  .proposal-actions .pill {
    flex: 1 1 0;
  }

  .side .section-illu {
    max-width: 300px;
    margin-top: 8px;
  }

  .app-title {
    font-size: 34px;
  }

  .app-copy {
    font-size: 20px;
    line-height: 1.55;
    max-width: none;
  }

  .closing h2 {
    font-size: 92px;
    letter-spacing: -3px;
  }

  .closing .section-illu {
    max-width: 520px;
  }

  .closing-actions {
    flex-direction: row;
    align-items: center;
    gap: 24px;
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .sway-a,
  .sway-b,
  .sway-c {
    animation: none;
  }
}
