/* ──────────────────────────────────────────────────────────────────
 * fandash.io — portfolio page for the FanDash family of Fanvue tools.
 *
 * Design language inherited from the FanDash Posts landing
 * (fandash-posts/src/components/landing/landing.css), including the
 * 2026-08-26 amendment (fanvue-cta.tsx): the marketing CTA is ink, not
 * cobalt — cobalt belongs to real product UI, and this page depicts none.
 *
 *   INK      Type, hairlines, the Open Posts pills.
 *   COBALT   Link hover and the focus ring only; never a fill.
 *   GREEN    "Live on Fanvue." The Live badge only.
 *   GRAPHITE Secondary copy and meta.
 * ────────────────────────────────────────────────────────────────── */

:root {
  /* Neutral ramp — verbatim from DSv2 globals.css */
  --neutral-0: oklch(1 0 0);
  --neutral-50: oklch(0.981 0.0015 255);
  --neutral-100: oklch(0.967 0.0025 255);
  --neutral-150: oklch(0.949 0.003 255);
  --neutral-200: oklch(0.925 0.004 255);
  --neutral-300: oklch(0.882 0.005 256);
  --neutral-600: oklch(0.506 0.013 259);
  --neutral-800: oklch(0.305 0.011 261);
  --neutral-900: oklch(0.205 0.009 263);
  --neutral-950: oklch(0.165 0.008 264);

  /* Brand (cobalt) ramp — hover + focus only on this page */
  --brand-500: oklch(0.585 0.176 258);
  --brand-600: oklch(0.520 0.186 259);

  /* Green — reserved for "live on Fanvue" */
  --green-50: oklch(0.972 0.025 155);
  --green-200: oklch(0.885 0.090 156);
  --green-600: oklch(0.560 0.140 153);
  --green-700: oklch(0.470 0.115 153);

  /* Semantic roles (light values, pinned — this page is light by design) */
  --canvas: var(--neutral-0);
  --surface: var(--neutral-0);
  --surface-sunken: var(--neutral-100);
  --border: var(--neutral-200);
  --border-strong: var(--neutral-300);
  --border-subtle: var(--neutral-150);
  --text-strong: var(--neutral-900);
  --text-body: var(--neutral-800);
  --text-muted: var(--neutral-600);
  --text-subtle: oklch(0.54 0.013 258);
  --focus-ring: var(--brand-500);

  --font-serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-sans: "Hanken Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --radius-card: 10px;

  color-scheme: light;
}

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

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

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--text-strong);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  font-optical-sizing: auto;
}

/* A browser that speaks var() but not oklch() resolves every token to
 * its initial value (transparent backgrounds, inherited ink). Repaint
 * the load-bearing surfaces in hex there; borders fall back to
 * currentColor on their own, which stays legible. */
@supports not (color: oklch(0 0 0)) {
  body {
    background: #fff;
    color: #24272e;
  }
  .btn-primary,
  .btn-primary:hover {
    background: #17191e;
    color: #fff;
  }
  .nav {
    background: rgba(255, 255, 255, 0.92);
  }
}

a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  color: var(--brand-600);
}

:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

/* Ink fill, per the posts landing's amended contract (fanvue-cta.tsx,
 * operator 2026-08-26). Same object as posts.fandash.io's own
 * "Continue with Fanvue" pill.
 * AA: --neutral-0 on --neutral-900 = 17.9:1; 13.4:1 on the hover. */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--neutral-900);
  color: var(--neutral-0);
  border-radius: 9999px;
  white-space: nowrap;
  font-weight: 500;
  font-size: 16px;
  padding: 14px 26px;
}
.btn-primary:hover {
  background: var(--neutral-800);
  color: var(--neutral-0);
}
.btn-primary--md {
  font-size: 15px;
  padding: 9px 18px;
  gap: 8px;
}

/* Status badges. Green is "live on Fanvue" (the shipped product's own
 * running badge); coming-soon is quiet product chrome, not a hue. */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 9999px;
  padding: 2.5px 9px;
  white-space: nowrap;
}
.badge--live {
  background: var(--green-50);
  border: 1px solid var(--green-200);
  color: var(--green-700);
}
.badge--live::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green-600);
}
.badge--soon {
  background: var(--surface-sunken);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

/* Symbol host for the lockup: zero-size, never display:none. */
.svg-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* ── Nav ──────────────────────────────────────────────────────────── */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92); /* pre-color-mix browsers */
  background: color-mix(in oklab, var(--neutral-0) 92%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-subtle);
}
.nav__inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 14px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav__brand {
  display: block;
  color: var(--neutral-950);
}
.nav__brand svg {
  display: block;
  height: 20px;
  width: auto;
}

/* ── Hero ─────────────────────────────────────────────────────────── */

/* One section: the pitch, then the three products directly under it. */
.hero {
  max-width: 1120px;
  margin: 0 auto;
  padding: 88px 32px 80px;
  display: grid;
  justify-items: center;
  text-align: center;
}

/* Same treatment as the posts hero (.fdl-hero__title): serif 400 with
 * the trailing phrase in italic. */
.hero__title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(38px, 5vw, 62px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0;
  color: var(--neutral-950);
  text-wrap: balance;
  max-width: 18ch;
}
.hero__title em {
  font-style: italic;
}

.hero__lede {
  margin: 22px 0 0;
  font-size: 19px;
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 44ch;
  text-wrap: balance;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 32px;
}

/* ── Products ─────────────────────────────────────────────────────── */

.tiles {
  width: 100%;
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  text-align: left;
}

/* Anchored tiles land with their heading clear of the sticky bar. */
.tile {
  scroll-margin-top: 84px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-card);
  padding: 24px 24px 26px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* The shipped product takes the featured-card treatment from the posts
 * pricing ladder: ink border, lifted by a 1px ink shadow. The card is a
 * link, so it keeps its ink on hover (the global a:hover cobalt is for
 * inline links) and answers with the pill's own hover fill. */
.tile--live {
  border-color: var(--neutral-900);
  box-shadow: 0 1px 0 var(--neutral-900);
  color: var(--text-strong);
}
.tile--live:hover {
  color: var(--text-strong);
  background: var(--neutral-50);
}
.tile--live:hover .btn-primary {
  background: var(--neutral-800);
}

.tile__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.tile__name {
  font-size: 19px;
  font-weight: 600;
  color: var(--text-strong);
  margin: 0;
  letter-spacing: -0.2px;
}

.tile__text {
  margin: 12px 0 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-body);
  text-wrap: pretty;
  flex: 1;
}

.tile__foot {
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.more {
  margin: 24px 0 0;
  font-size: 14px;
  color: var(--text-subtle);
}

/* ── Footer ───────────────────────────────────────────────────────── */

.footer {
  border-top: 1px solid var(--border-subtle);
  padding: 28px 32px;
  text-align: center;
}
.footer__copy {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-subtle);
}

/* ── Responsive ───────────────────────────────────────────────────── */

@media (max-width: 900px) {
  .tiles {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 860px) {
  .hero {
    padding: 64px 24px 72px;
  }
  .tiles {
    margin-top: 48px;
  }
}

@media (max-width: 620px) {
  .hero {
    padding: 48px 20px 56px;
  }
  .hero__lede {
    font-size: 17px;
  }
  .hero__actions {
    flex-wrap: wrap;
    justify-content: center;
  }
  .tile {
    padding: 22px 20px 24px;
  }
  /* Posts' phone range for the hero title. */
  .hero__title {
    font-size: clamp(38px, 11.5vw, 46px);
  }
}

@media (max-width: 380px) {
  .nav__inner {
    padding: 12px 14px;
  }
  .nav__brand svg {
    height: 17px;
  }
  .btn-primary--md {
    font-size: 13.5px;
    padding: 8px 12px;
  }
}
