/* Nimbrel — site styles. Fonts are self-hosted (SIL Open Font License). */

@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("/fonts/plus-jakarta-sans-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/space-grotesk-700-latin.woff2") format("woff2");
}

:root {
  --ink: #0b0b0f;
  --text: #3f3f46;
  --muted: #52525b;
  --paper: #ffffff;
  --soft: #f4f4f7;
  --line: #ecedf2;
  --border: #e2e3ea;
  --accent: #3d7bff;
  --accent-soft: #eef3ff;
  --accent-text: #1f4fc2;
  --night-text: #b9bdd6;
  --night-line: #23242c;

  --display: "Space Grotesk", system-ui, sans-serif;
  --body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(16px, 5vw, 48px);
  --section: clamp(56px, 8vw, 112px);
}

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

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
}

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

a {
  color: inherit;
}

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 8px;
  z-index: 10;
}

.skip-link:focus {
  top: 16px;
}

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* Header */

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

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 16px;
  padding-bottom: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  text-decoration: none;
}

.brand-name {
  font-family: var(--display);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 3vw, 32px);
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
}

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

/* Shared type */

.eyebrow {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
}

h2 {
  font-size: clamp(30px, 3.6vw, 44px);
  letter-spacing: -0.035em;
  line-height: 1.1;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

/* Buttons */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.15s, border-color 0.15s;
}

.button-primary {
  background: var(--ink);
  color: var(--paper);
}

.button-primary:hover {
  background: #2a2a33;
}

.button-secondary {
  border: 1px solid #d2d4dd;
  color: var(--ink);
}

.button-secondary:hover {
  border-color: var(--ink);
}

.button-accent {
  min-height: 52px;
  padding: 0 26px;
  background: var(--accent);
  color: var(--ink);
  font-size: 17px;
}

.button-accent:hover {
  background: #6a99ff;
}

/* Hero */

.hero {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 28px;
  padding-top: clamp(64px, 11vw, 144px);
  padding-bottom: clamp(64px, 10vw, 128px);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
}

.hero h1 {
  max-width: 900px;
  font-size: clamp(42px, 7vw, 84px);
  letter-spacing: -0.04em;
  line-height: 1.02;
}

.hero-lede {
  margin: 0;
  max-width: 620px;
  font-size: clamp(18px, 1.6vw, 21px);
  line-height: 1.55;
  color: var(--muted);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 8px;
}

/* Apps */

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

.apps .wrap {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding-top: var(--section);
  padding-bottom: var(--section);
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.app-card {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(28px, 4vw, 56px);
  padding: clamp(24px, 4vw, 48px);
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 24px;
}

.app-main {
  flex: 1 1 360px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}

.app-title {
  display: flex;
  align-items: center;
  gap: 18px;
}

.app-icon {
  width: 80px;
  height: 80px;
  border-radius: 18px;
  flex-shrink: 0;
}

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

.app-kind {
  margin: 2px 0 0;
  font-size: 15px;
  color: var(--muted);
}

.app-main p {
  margin: 0;
  max-width: 520px;
  color: var(--text);
}

.availability {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--accent-soft);
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-text);
  white-space: nowrap;
}

.stores {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
}

.features {
  flex: 1 1 300px;
  min-width: 0;
  align-self: center;
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.features li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.features svg {
  flex-shrink: 0;
  margin-top: 2px;
}

/* About */

.about {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(28px, 5vw, 80px);
  padding-top: var(--section);
  padding-bottom: var(--section);
}

.about .section-head {
  flex: 1 1 340px;
  min-width: 0;
}

.about-body {
  flex: 1 1 440px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.about-body p {
  margin: 0;
  color: var(--text);
}

.facts {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.facts dt {
  font-size: 14px;
  color: var(--muted);
}

.facts dd {
  margin: 2px 0 0;
  font-weight: 600;
}

/* Contact and footer (dark) */

.contact,
.site-footer {
  background: var(--ink);
  color: var(--paper);
}

.contact .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  padding-top: var(--section);
  padding-bottom: var(--section);
}

.contact-text {
  flex: 1 1 420px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact h2 {
  font-size: clamp(34px, 4.4vw, 56px);
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.contact p {
  margin: 0;
  max-width: 520px;
  color: var(--night-text);
}

.site-footer {
  border-top: 1px solid var(--night-line);
  color: var(--night-text);
  font-size: 14px;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px 40px;
  padding-top: 32px;
  padding-bottom: 40px;
}

.footer-legal {
  flex: 1 1 420px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-legal p {
  margin: 0;
  max-width: 560px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--paper);
  font-family: var(--display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 24px;
}

.footer-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--paper);
  text-decoration: none;
}

.footer-nav a:hover {
  text-decoration: underline;
}

/* Plain text pages (privacy, 404) */

.prose {
  max-width: 720px;
  padding-top: clamp(48px, 8vw, 96px);
  padding-bottom: var(--section);
}

.prose h1 {
  font-size: clamp(36px, 5vw, 56px);
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: 12px;
}

.prose h2 {
  font-size: 24px;
  letter-spacing: -0.02em;
  margin-top: 40px;
  margin-bottom: 8px;
}

.prose p,
.prose li {
  color: var(--text);
}

.prose .updated {
  color: var(--muted);
  font-size: 15px;
}

.prose a:not(.button) {
  color: var(--accent-text);
}
