/*
 * ninjapp.net: the platform's own site, in the Ninja style of its apps (the
 * slab, pill buttons, lifted cards, the display face for the name). One
 * sheet, no build, no script; light and dark follow the system.
 */

:root {
  --background: #ffffff;
  --foreground: #0b1020;
  --muted: #f3f5f8;
  --muted-foreground: #5b6477;
  --border: #e5e8ee;
  --slab: #0b1020;
  --slab-ink: #ffffff;
  --accent: #fbbf24;
  --radius-card: 1.75rem;
  --shadow: 0 1px 2px 0 rgb(0 0 0 / 0.04), 0 8px 24px -8px rgb(0 0 0 / 0.16);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #0b1020;
    --foreground: #f4f6fa;
    --muted: #161c2e;
    --muted-foreground: #9aa3b5;
    --border: rgb(255 255 255 / 0.1);
    --slab: #1a2138;
    --shadow: none;
    color-scheme: dark;
  }
}

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

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

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

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

.container {
  width: 100%;
  max-width: 68rem;
  margin: 0 auto;
  padding: 0 1rem;
}

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

.site-header {
  padding: 1rem 0;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.brand img {
  width: 2.25rem;
  height: 2.25rem;
}

/* The platform's name in its display face, as the control plane writes it */
.wordmark {
  font-family: 'Original Surfer', 'Inter', system-ui, sans-serif;
  font-size: 1.6rem;
  line-height: 1;
  font-weight: 400;
  font-synthesis-weight: none;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.9375rem;
}

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

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

/* ---- Buttons ---- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 3rem;
  padding: 0 1.4rem;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 0.9375rem;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn-light {
  background: var(--slab-ink);
  color: var(--slab);
}

.btn-ghost {
  background: rgb(255 255 255 / 0.12);
  color: var(--slab-ink);
}

.btn-dark {
  background: var(--foreground);
  color: var(--background);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* ---- Hero: the slab ---- */

.hero {
  margin: 0.5rem auto 0;
  max-width: 68rem;
  padding: 0 1rem;
}

.hero-slab {
  background: var(--slab);
  color: var(--slab-ink);
  border-radius: var(--radius-card);
  padding: clamp(2rem, 6vw, 4.5rem) clamp(1.5rem, 5vw, 4rem);
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr;
  overflow: hidden;
  position: relative;
}

@media (min-width: 52rem) {
  .hero-slab {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
  }
}

.eyebrow {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  opacity: 0.7;
  margin-bottom: 0.75rem;
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.1rem, 5.2vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 800;
}

.hero p.lead {
  margin: 0 0 2rem;
  font-size: 1.125rem;
  opacity: 0.8;
  max-width: 34rem;
}

/* A phone's worth of the customer app, drawn: the dock and a card */
.phone {
  justify-self: center;
  width: min(100%, 17rem);
  aspect-ratio: 9 / 18;
  border-radius: 2.4rem;
  background: rgb(255 255 255 / 0.06);
  border: 1px solid rgb(255 255 255 / 0.12);
  padding: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.phone-card {
  flex: 1;
  border-radius: 1.5rem;
  background: linear-gradient(160deg, #f59e0b, #b45309);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1rem;
  color: #fff;
}

.phone-card strong {
  font-size: 1.25rem;
  line-height: 1.1;
}

.phone-card span {
  font-size: 0.8125rem;
  opacity: 0.85;
}

.phone-pill {
  align-self: flex-start;
  margin-top: 0.5rem;
  background: rgb(0 0 0 / 0.25);
  border-radius: 9999px;
  padding: 0.25rem 0.7rem;
  font-size: 0.8125rem;
  font-weight: 700;
}

.phone-dock {
  border-radius: 1.4rem;
  background: rgb(0 0 0 / 0.35);
  padding: 0.7rem 0.9rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8125rem;
}

.phone-dock b {
  font-size: 1rem;
}

.phone-hold {
  background: var(--slab-ink);
  color: var(--slab);
  border-radius: 9999px;
  padding: 0.4rem 0.8rem;
  font-weight: 700;
}

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

section {
  padding: clamp(3rem, 7vw, 5rem) 0 0;
}

.section-head {
  max-width: 40rem;
  margin-bottom: 2rem;
}

.section-head h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.6rem, 3.4vw, 2.2rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 800;
}

.section-head p {
  margin: 0;
  color: var(--muted-foreground);
  font-size: 1.0625rem;
}

.grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}

.card {
  background: var(--muted);
  border-radius: var(--radius-card);
  padding: 1.5rem;
}

.card h3 {
  margin: 0.9rem 0 0.35rem;
  font-size: 1.125rem;
  letter-spacing: -0.01em;
}

.card p {
  margin: 0;
  color: var(--muted-foreground);
  font-size: 0.9375rem;
}

.icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 9999px;
  display: grid;
  place-items: center;
  background: var(--slab);
  color: var(--slab-ink);
}

.icon svg {
  width: 1.3rem;
  height: 1.3rem;
}

.steps {
  counter-reset: step;
}

.steps .card h3::before {
  counter-increment: step;
  content: counter(step);
  display: inline-grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  margin-inline-end: 0.6rem;
  border-radius: 9999px;
  background: var(--accent);
  color: #1a1200;
  font-size: 0.875rem;
}

.cta {
  margin-top: clamp(3rem, 7vw, 5rem);
}

.cta .hero-slab {
  grid-template-columns: 1fr;
  text-align: center;
  justify-items: center;
  gap: 1.25rem;
}

.cta h2 {
  margin: 0;
  font-size: clamp(1.6rem, 3.4vw, 2.2rem);
  letter-spacing: -0.02em;
}

.cta p {
  margin: 0;
  opacity: 0.8;
}

/* ---- Legal and support pages ---- */

.page {
  max-width: 46rem;
  padding-top: 1.5rem;
  padding-bottom: 1rem;
}

.page h1 {
  font-size: clamp(2rem, 4.5vw, 2.6rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
}

.page .updated {
  color: var(--muted-foreground);
  margin: 0 0 2rem;
}

.page h2 {
  margin: 2.25rem 0 0.5rem;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}

.page h3 {
  margin: 1.25rem 0 0.25rem;
  font-size: 1.0625rem;
}

.page p,
.page li {
  color: var(--foreground);
}

.page ul {
  padding-inline-start: 1.25rem;
}

.page li + li {
  margin-top: 0.35rem;
}

.note {
  background: var(--muted);
  border-radius: 1.25rem;
  padding: 1rem 1.25rem;
  margin: 1.25rem 0;
}

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

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

.site-footer {
  margin-top: clamp(3rem, 7vw, 5rem);
  padding: 2rem 0 2.5rem;
  border-top: 1px solid var(--border);
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-footer nav {
  display: flex;
  gap: 1.25rem;
}

.site-footer a {
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--foreground);
}

@media (max-width: 30rem) {
  .site-nav .hide-sm {
    display: none;
  }
}
