/* Pliologik LLC — design tokens and shared styles
   System fonts only. No external requests. */

:root {
  color-scheme: light dark;

  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter",
    "Helvetica Neue", system-ui, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display",
    "Inter Display", "Inter", "Helvetica Neue", system-ui, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "JetBrains Mono", "Menlo", monospace;

  --color-bg: #ffffff;
  --color-bg-elevated: #fafafa;
  --color-bg-glass: rgba(255, 255, 255, 0.72);
  --color-fg: #0a0a0b;
  --color-fg-muted: #525866;
  --color-fg-subtle: #8a909a;
  --color-border: #ececef;
  --color-border-strong: #d8d9dc;
  --color-accent: #4f46e5;
  --color-accent-soft: rgba(79, 70, 229, 0.08);
  --color-accent-fg: #ffffff;

  --shadow-sm: 0 1px 2px rgba(10, 10, 11, 0.04),
    0 1px 1px rgba(10, 10, 11, 0.03);
  --shadow-md: 0 4px 12px rgba(10, 10, 11, 0.04),
    0 1px 2px rgba(10, 10, 11, 0.03);
  --shadow-lg: 0 24px 48px -16px rgba(10, 10, 11, 0.12),
    0 8px 16px -8px rgba(10, 10, 11, 0.06);

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --container: 1120px;
  --container-narrow: 720px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-bg: #0a0a0b;
    --color-bg-elevated: #131316;
    --color-bg-glass: rgba(19, 19, 22, 0.72);
    --color-fg: #fafafa;
    --color-fg-muted: #a0a6ad;
    --color-fg-subtle: #6b7280;
    --color-border: #24252a;
    --color-border-strong: #36373d;
    --color-accent: #8b82ff;
    --color-accent-soft: rgba(139, 130, 255, 0.12);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 24px 48px -16px rgba(0, 0, 0, 0.5);
  }
}

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

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-size-adjust: 100%;
}

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

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--color-fg);
  background: var(--color-bg);
  min-height: 100vh;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color 120ms ease, opacity 120ms ease;
}

a:hover {
  opacity: 0.78;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection {
  background: var(--color-accent);
  color: var(--color-accent-fg);
}

/* Layout primitives */

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 3vw, 2rem);
}

.container--narrow {
  max-width: var(--container-narrow);
}

.section {
  padding: clamp(4rem, 9vw, 7rem) 0;
}

.section--tight {
  padding: clamp(2rem, 5vw, 4rem) 0;
}

/* Typography */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--color-fg-muted);
  padding: 0.375rem 0.75rem;
  background: var(--color-accent-soft);
  color: var(--color-accent);
  border-radius: 999px;
  border: 1px solid rgba(79, 70, 229, 0.16);
}

@media (prefers-color-scheme: dark) {
  .eyebrow {
    border-color: rgba(139, 130, 255, 0.2);
  }
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  letter-spacing: -0.022em;
  color: var(--color-fg);
  line-height: 1.08;
}

h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 600;
  letter-spacing: -0.028em;
}

h2 {
  font-size: clamp(1.875rem, 3.5vw, 2.625rem);
  font-weight: 600;
}

h3 {
  font-size: clamp(1.25rem, 1.9vw, 1.5rem);
  font-weight: 600;
  letter-spacing: -0.016em;
}

p {
  color: var(--color-fg-muted);
  font-size: 1.0625rem;
}

.lede {
  font-size: clamp(1.125rem, 1.6vw, 1.3125rem);
  line-height: 1.5;
  color: var(--color-fg-muted);
  max-width: 56ch;
}

/* Logo wordmark */

.logo {
  display: inline-flex;
  align-items: baseline;
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.018em;
  color: var(--color-fg);
  gap: 0.45rem;
}

.logo__dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--color-accent);
  transform: translateY(-0.06em);
}

a.logo:hover {
  opacity: 1;
  color: var(--color-fg);
}

/* Site chrome */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--color-bg-glass);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--color-border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.site-nav {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.site-nav a {
  color: var(--color-fg-muted);
  font-size: 0.9375rem;
  font-weight: 500;
}

.site-nav a:hover {
  color: var(--color-fg);
  opacity: 1;
}

@media (max-width: 540px) {
  .site-nav a:not(.site-nav__primary) {
    display: none;
  }
}

.site-nav__primary {
  color: var(--color-fg) !important;
}

/* Hero */

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(5rem, 12vw, 9rem) 0 clamp(4rem, 8vw, 6rem);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse 720px 540px at 10% 0%,
      rgba(79, 70, 229, 0.12),
      transparent 55%
    ),
    radial-gradient(
      ellipse 540px 420px at 90% 30%,
      rgba(99, 102, 241, 0.08),
      transparent 60%
    ),
    radial-gradient(
      ellipse 600px 400px at 50% 100%,
      rgba(167, 139, 250, 0.06),
      transparent 60%
    );
  pointer-events: none;
  z-index: 0;
}

@media (prefers-color-scheme: dark) {
  .hero::before {
    background:
      radial-gradient(
        ellipse 720px 540px at 10% 0%,
        rgba(139, 130, 255, 0.16),
        transparent 55%
      ),
      radial-gradient(
        ellipse 540px 420px at 90% 30%,
        rgba(124, 117, 226, 0.12),
        transparent 60%
      ),
      radial-gradient(
        ellipse 600px 400px at 50% 100%,
        rgba(168, 158, 255, 0.08),
        transparent 60%
      );
  }
}

.hero__inner {
  position: relative;
  z-index: 1;
}

.hero__eyebrow {
  margin-bottom: 1.5rem;
}

.hero h1 {
  max-width: 17ch;
  margin-bottom: 1.5rem;
}

.hero h1 em {
  font-style: normal;
  background: linear-gradient(
    105deg,
    var(--color-accent) 0%,
    #7c70f0 60%,
    #a78bfa 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__lede {
  max-width: 50ch;
}

/* Cards */

.products {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1rem, 2vw, 1.5rem);
  margin-top: 3rem;
}

@media (max-width: 720px) {
  .products {
    grid-template-columns: 1fr;
  }
}

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: clamp(1.5rem, 2.5vw, 2rem);
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: inherit;
  transition: transform 200ms ease, border-color 200ms ease,
    box-shadow 200ms ease;
  overflow: hidden;
  isolation: isolate;
}

.product-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 320px 180px at 80% 0%,
    var(--color-accent-soft),
    transparent 70%
  );
  opacity: 0;
  transition: opacity 220ms ease;
  z-index: -1;
}

.product-card:hover {
  border-color: var(--color-border-strong);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  opacity: 1;
}

.product-card:hover::before {
  opacity: 1;
}

.product-card__mark {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.product-card__mark--precis {
  background: linear-gradient(135deg, #4f46e5, #7c70f0);
  color: #fff;
}

.product-card__mark--plurae {
  background: linear-gradient(135deg, #0ea5e9, #6366f1);
  color: #fff;
}

.product-card__title {
  display: flex;
  align-items: center;
  gap: 0.875rem;
}

.product-card__name {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--color-fg);
}

.product-card__body p {
  font-size: 1rem;
  color: var(--color-fg-muted);
}

.product-card__cta {
  margin-top: auto;
  padding-top: 0.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-accent);
}

.product-card__cta::after {
  content: "→";
  transition: transform 180ms ease;
}

.product-card:hover .product-card__cta::after {
  transform: translateX(3px);
}

.product-card__status {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-fg-subtle);
  padding: 0.25rem 0.625rem;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 999px;
}

/* Two-column about + contact */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

@media (max-width: 800px) {
  .split {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

.about__title,
.contact__title {
  margin-bottom: 1rem;
}

.about p + p,
.contact p + p {
  margin-top: 1rem;
}

.contact__details {
  margin-top: 1.5rem;
  display: grid;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.contact__detail {
  display: grid;
  gap: 0.25rem;
}

.contact__label {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--color-fg-subtle);
}

.contact__value,
.contact__value a {
  color: var(--color-fg);
  font-size: 1rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.contact__value a:hover {
  color: var(--color-accent);
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--color-border);
  padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(2rem, 4vw, 3rem);
  background: var(--color-bg-elevated);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

@media (max-width: 720px) {
  .site-footer__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.site-footer__brand p {
  font-size: 0.9375rem;
  margin-top: 0.75rem;
  max-width: 30ch;
}

.site-footer h4 {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-fg-subtle);
  font-weight: 600;
  margin-bottom: 1rem;
}

.site-footer ul {
  list-style: none;
  display: grid;
  gap: 0.625rem;
}

.site-footer ul a {
  color: var(--color-fg-muted);
  font-size: 0.9375rem;
}

.site-footer ul a:hover {
  color: var(--color-fg);
  opacity: 1;
}

.site-footer__bottom {
  border-top: 1px solid var(--color-border);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.8125rem;
  color: var(--color-fg-subtle);
}

.site-footer__legal {
  font-variant-numeric: tabular-nums;
}

/* Legal pages */

.legal {
  padding-top: 6rem;
  padding-bottom: 6rem;
}

.legal h1 {
  font-size: clamp(2rem, 4vw, 2.875rem);
  margin-bottom: 0.5rem;
}

.legal__meta {
  color: var(--color-fg-subtle);
  font-size: 0.875rem;
  margin-bottom: 3rem;
}

.legal h2 {
  font-size: 1.375rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  letter-spacing: -0.015em;
}

.legal p,
.legal li {
  font-size: 1rem;
  color: var(--color-fg-muted);
  line-height: 1.65;
}

.legal p + p {
  margin-top: 1rem;
}

.legal ul {
  list-style: disc;
  padding-left: 1.25rem;
  margin: 1rem 0;
  display: grid;
  gap: 0.5rem;
}

.legal strong {
  color: var(--color-fg);
  font-weight: 600;
}

/* Stub page (used by getprecis.app / getplurae.app) */

.stub {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 4rem clamp(1.5rem, 4vw, 3rem) 6rem;
  position: relative;
  overflow: hidden;
}

.stub::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse 720px 540px at 30% 10%,
      var(--stub-accent-1, rgba(79, 70, 229, 0.16)),
      transparent 55%
    ),
    radial-gradient(
      ellipse 540px 420px at 80% 80%,
      var(--stub-accent-2, rgba(99, 102, 241, 0.1)),
      transparent 60%
    );
  pointer-events: none;
  z-index: 0;
}

.stub__inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 36rem;
  display: grid;
  gap: 1.5rem;
  justify-items: center;
}

.stub__mark {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.875rem;
  letter-spacing: -0.02em;
  color: #fff;
  box-shadow: var(--shadow-md);
}

.stub__mark--precis {
  background: linear-gradient(135deg, #4f46e5, #7c70f0);
}

.stub__mark--plurae {
  background: linear-gradient(135deg, #0ea5e9, #6366f1);
}

.stub__name {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 4.5rem);
  font-weight: 600;
  letter-spacing: -0.028em;
  color: var(--color-fg);
  line-height: 1;
}

.stub__pitch {
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
  line-height: 1.5;
  color: var(--color-fg-muted);
  max-width: 30ch;
}

.stub__status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.875rem;
  background: var(--color-accent-soft);
  color: var(--color-accent);
  border: 1px solid rgba(79, 70, 229, 0.16);
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

@media (prefers-color-scheme: dark) {
  .stub__status {
    border-color: rgba(139, 130, 255, 0.22);
  }
}

.stub__status-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--color-accent);
  position: relative;
}

.stub__status-dot::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 999px;
  background: var(--color-accent);
  opacity: 0.35;
  animation: pulse 2.4s ease-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .stub__status-dot::after {
    animation: none;
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 0.4;
  }
  70% {
    transform: scale(1.7);
    opacity: 0;
  }
  100% {
    transform: scale(1.7);
    opacity: 0;
  }
}

.stub__attribution {
  margin-top: 0.75rem;
  font-size: 0.9375rem;
  color: var(--color-fg-muted);
}

.stub__attribution a {
  font-weight: 500;
}

.stub__footer {
  position: absolute;
  bottom: 1.5rem;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--color-fg-subtle);
  display: flex;
  gap: 1.25rem;
  justify-content: center;
  flex-wrap: wrap;
  z-index: 1;
}

.stub__footer a {
  color: var(--color-fg-subtle);
}

.stub__footer a:hover {
  color: var(--color-fg-muted);
  opacity: 1;
}
