/* Novo Dash — lead status pages.
   Mirrors the client hub (novodash-clients/app/hub/[slug]/page.tsx):
   yellow canvas, right-edge brand pattern, white cards with muted icon
   tiles, General Sans display title, SF Pro body. */

@font-face {
  font-family: "SF Pro Display";
  src: url("/fonts/SFProDisplay-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "SF Pro Display";
  src: url("/fonts/SFProDisplay-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "SF Pro Display";
  src: url("/fonts/SFProDisplay-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "General Sans";
  src: url("/fonts/GeneralSans-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --novo-yellow: #ffdb0d;
  --novo-black: #101010;
  --novo-off-white: #f1f1f1;
  --novo-red: #ff0002;
  --novo-blue: #1f4fb7;
  --novo-green: #00b84a;

  /* Soft tints + readable foregrounds for status pills (12–14% over white) */
  --novo-red-soft: color-mix(in oklch, var(--novo-red) 12%, white);
  --novo-red-fg: var(--novo-red);
  --novo-blue-soft: color-mix(in oklch, var(--novo-blue) 12%, white);
  --novo-blue-fg: var(--novo-blue);
  --novo-green-soft: color-mix(in oklch, var(--novo-green) 14%, white);
  --novo-green-fg: #006e2c;
  --warning-soft: #fef3c7;
  --warning-fg: #78350f;

  --foreground: oklch(0.145 0 0);
  --card: oklch(1 0 0);
  --muted: oklch(0.97 0 0);
  --muted-foreground: oklch(0.556 0 0);

  --font-sans: "SF Pro Display", -apple-system, "Segoe UI", sans-serif;
  --font-display: "General Sans", var(--font-sans);

  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  /* Black overscroll canvas, matching the app shell */
  background-color: var(--novo-black);
}

body {
  background-color: var(--novo-yellow);
  font-family: var(--font-sans);
  color: var(--foreground);
  -webkit-font-smoothing: antialiased;
}

::selection {
  background-color: var(--novo-black);
  color: var(--novo-yellow);
}

.page {
  position: relative;
  min-height: 100dvh;
  width: 100%;
  overflow: hidden;
}

/* Brand geometric pattern glued to the right edge, behind the content.
   Narrow + faint on mobile, wider and opaque from 640px up. */
.pattern {
  pointer-events: none;
  user-select: none;
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  height: 100%;
  width: 6rem;
  object-fit: cover;
  object-position: right;
  opacity: 0.15;
}
@media (min-width: 640px) {
  .pattern { width: 11rem; opacity: 1; }
}
@media (min-width: 768px) {
  .pattern { width: 16rem; }
}
@media (min-width: 1024px) {
  .pattern { width: 20rem; }
}

.column {
  position: relative;
  z-index: 10;
  margin-inline: auto;
  display: flex;
  min-height: 100dvh;
  width: 100%;
  max-width: 32rem;
  flex-direction: column;
  align-items: center;
  padding: 3rem 1.5rem;
}

/* Balance the empty space: the auto margins above the logo and above the
   footer center the content block vertically. */
.column::before {
  content: "";
  margin-top: auto;
}

.logo-tile {
  display: grid;
  place-items: center;
  width: 5rem;
  height: 5rem;
  flex-shrink: 0;
  border-radius: 1rem;
  border: 1px solid rgb(16 16 16 / 0.05);
  background: var(--card);
  box-shadow: var(--shadow-sm);
}

.logo-tile img {
  width: 3rem;
  height: 3rem;
  display: block;
}

h1 {
  margin-top: 1.25rem;
  text-align: center;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  color: var(--novo-black);
  text-wrap: balance;
}

.content {
  margin-top: 2rem;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.card {
  border-radius: 1.25rem;
  border: 1px solid rgb(16 16 16 / 0.05);
  background: var(--card);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.card-head {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.tile {
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  flex-shrink: 0;
  border-radius: 1rem;
  background: var(--muted);
  color: rgb(16 16 16 / 0.7);
}

.tile svg {
  width: 1.75rem;
  height: 1.75rem;
}

/* Status pill — brand soft tint + readable foreground (design-system
   status-surface pattern). Accent set per page on <body>. */
.pill {
  display: inline-block;
  width: fit-content;
  border-radius: 9999px;
  background: var(--accent-soft);
  color: var(--accent-fg);
  padding: 0.3125rem 0.875rem;
  font-size: 0.875rem;
  font-weight: 700;
}

.card-head .label {
  margin-top: 0.5rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--novo-black);
}

.card-body {
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.card-body p {
  font-size: 1.0625rem;
  line-height: 1.55;
  color: rgb(16 16 16 / 0.75);
}

/* Inner muted row — same treatment as the hub's WhatsApp / SMS rows. */
.note {
  margin-top: 1.25rem;
  border-radius: 1rem;
  background: var(--muted);
  padding: 1rem 1.25rem;
  font-size: 1rem;
  line-height: 1.55;
  font-weight: 500;
  color: var(--novo-black);
}

/* Hub-style link cards (index page). */
a.card {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
a.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
@media (prefers-reduced-motion: reduce) {
  a.card, a.card:hover { transition: none; transform: none; }
}

a.card .link-text {
  min-width: 0;
  flex: 1;
}
a.card .link-text .label {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--novo-black);
}
a.card .link-text .description {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}
a.card .arrow {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  color: rgb(16 16 16 / 0.35);
  transition: color 0.15s ease;
}
a.card:hover .arrow {
  color: rgb(16 16 16 / 0.7);
}

footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding-top: 3rem;
}

footer img {
  height: 1.5rem;
  width: auto;
  display: block;
}

footer span {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgb(16 16 16 / 0.5);
}

/* Per-page status accent */
.accent-blue  { --accent-soft: var(--novo-blue-soft);  --accent-fg: var(--novo-blue-fg); }
.accent-green { --accent-soft: var(--novo-green-soft); --accent-fg: var(--novo-green-fg); }
.accent-red   { --accent-soft: var(--novo-red-soft);   --accent-fg: var(--novo-red-fg); }
.accent-amber { --accent-soft: var(--warning-soft);    --accent-fg: var(--warning-fg); }
