/* Nibi's landing page in the app's own tokens (android core Color.kt / iOS NibiColors). */
@font-face {
  font-family: "Nunito";
  src: url("/assets/nunito.woff") format("woff");
  font-weight: 200 1000;
  font-display: swap;
}

:root {
  --background: #0d100e;
  --background-secondary: #121613;
  --surface: #171c18;
  --surface-elevated: #1d231e;
  --border: #2a312b;
  --text-primary: #f2f5f1;
  --text-secondary: #a8b0a9;
  --text-muted: #747c75;
  --moss: #a6d96a;
  --moss-secondary: #739a54;
  --moss-deep: #35512f;
  --on-moss: #0d100e;
  --partner: #f0707f;
  --paper: #f6f3ea;
  color-scheme: dark;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--background);
  color: var(--text-primary);
  font-family: "Nunito", ui-rounded, system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.55;
  overflow-x: hidden;
}

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

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1120px;
  margin: 0 auto;
  padding: 20px 20px 0;
}
.brand img { width: 108px; height: auto; }
.bar-link {
  color: var(--moss);
  font-weight: 700;
  text-decoration: none;
  padding: 10px 4px;
}
.bar-link:hover { text-decoration: underline; text-underline-offset: 4px; }

.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 40px 20px 72px;
  align-items: center;
}
@media (min-width: 900px) {
  .hero { grid-template-columns: 1.05fr 0.95fr; padding-top: 72px; padding-bottom: 112px; }
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--moss);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
h1 {
  margin: 0;
  font-size: clamp(42px, 8vw, 72px);
  line-height: 1.04;
  font-weight: 900;
  letter-spacing: -0.02em;
}
.lede {
  margin: 20px 0 0;
  max-width: 34ch;
  color: var(--text-secondary);
  font-size: clamp(18px, 2.2vw, 21px);
}

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 26px;
  border-radius: 28px;
  font: inherit;
  font-weight: 800;
  font-size: 17px;
  text-decoration: none;
  transition: transform 120ms ease, background-color 120ms ease;
}
.button.primary { background: var(--moss); color: var(--on-moss); }
.button.primary:hover { background: #b4e27e; }
.button.primary:active { transform: scale(0.98); }
.button.primary:focus-visible { outline: 3px solid var(--text-primary); outline-offset: 3px; }
.button.secondary {
  background: var(--surface-elevated);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  border-radius: 16px;
  cursor: default;
}
.note { margin: 14px 0 0; color: var(--text-muted); font-size: 15px; }

/* The phone: Home as the app draws it, tiles of drawings on a dark surface. */
.hero-art { position: relative; display: flex; justify-content: center; padding-bottom: 24px; }
.phone {
  position: relative;
  width: min(300px, 78vw);
  aspect-ratio: 9 / 18.5;
  padding: 18px 14px;
  border-radius: 44px;
  background: var(--background-secondary);
  border: 1px solid var(--border);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.55), 0 0 0 10px var(--surface);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transform: rotate(-3deg);
}
.phone-top { display: flex; justify-content: space-between; align-items: center; padding: 6px 6px 4px; }
.phone-top img { width: 62px; }
.gear { width: 18px; height: 18px; border: 3px solid var(--text-secondary); border-radius: 50%; }
.tile {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tile svg { width: 78%; height: auto; }
.tile.paper { background: var(--paper); flex: 1.15; }
.tile-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; flex: 1; }
.tile.small svg { width: 70%; }
.tile.sky { background: #dce6f8; }
.tile.moss { background: var(--moss); }
.tile-name, .tile-time {
  position: absolute;
  bottom: 8px;
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.45);
}
.tile-name { left: 12px; }
.tile.small .tile-name { left: auto; right: 12px; }
.tile-time { right: 10px; padding: 0 8px; border-radius: 10px; background: rgba(0, 0, 0, 0.35); text-shadow: none; }
.fab {
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--moss);
  color: var(--on-moss);
  display: grid;
  place-items: center;
  font-size: 32px;
  font-weight: 600;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}
.hero-mascot {
  position: absolute;
  width: min(200px, 44vw);
  left: max(-12px, calc(50% - 280px));
  bottom: -18px;
  filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.45));
}

.how {
  background: var(--background-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 72px 20px 88px;
}
.how h2 {
  max-width: 1080px;
  margin: 0 auto 40px;
  font-size: clamp(32px, 5vw, 44px);
  font-weight: 900;
  letter-spacing: -0.01em;
}
.steps {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 1080px;
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 24px 22px 26px;
}
.step .mascot { width: auto; height: 96px; margin: 0 0 16px -6px; }
.step-number {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--moss-deep);
  color: var(--moss);
  font-weight: 900;
  font-size: 16px;
}
.step h3 { margin: 0 0 8px; font-size: 21px; font-weight: 800; line-height: 1.25; }
.step p { margin: 0; color: var(--text-secondary); font-size: 16px; }

.foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 32px 20px 40px;
  color: var(--text-muted);
  font-size: 15px;
}
.foot img { border-radius: 8px; }

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