/* Shiftd public pages */
@font-face {
  font-family: 'PlaywriteNO-Regular';
  src: url('/PlaywriteNO-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --hue: 355;
  --brand: oklch(0.66 0.21 var(--hue));
  --brand-strong: oklch(0.58 0.19 var(--hue));
  --bg: oklch(0.985 0.003 var(--hue));
  --bg-alt: oklch(0.97 0.006 var(--hue));
  --surface: oklch(0.997 0.002 var(--hue));
  --fg: oklch(0.18 0.03 var(--hue));
  --fg-muted: oklch(0.45 0.025 var(--hue));
  --fg-subtle: oklch(0.58 0.018 var(--hue));
  --border: oklch(0.91 0.012 var(--hue));
  --border-strong: oklch(0.82 0.018 var(--hue));
  --chip-bg: oklch(0.97 0.006 var(--hue));
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 14px;
  --max-w: 1160px;
  --content-w: 760px;
  --font-sans: 'Public Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --font-wordmark: 'PlaywriteNO-Regular', var(--font-sans);
  --transition: 220ms cubic-bezier(0.2, 0, 0, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: oklch(0.15 0.012 var(--hue));
    --bg-alt: oklch(0.18 0.015 var(--hue));
    --surface: oklch(0.20 0.018 var(--hue));
    --fg: oklch(0.96 0.005 var(--hue));
    --fg-muted: oklch(0.72 0.015 var(--hue));
    --fg-subtle: oklch(0.58 0.018 var(--hue));
    --border: oklch(0.28 0.025 var(--hue));
    --border-strong: oklch(0.38 0.03 var(--hue));
    --chip-bg: oklch(0.22 0.02 var(--hue));
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }

body {
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  background: var(--bg);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: 'ss01', 'cv11';
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(to right, oklch(from var(--fg) l c h / 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, oklch(from var(--fg) l c h / 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 0%, transparent 75%);
}

::selection {
  background: var(--brand);
  color: oklch(0.99 0.006 var(--hue));
}

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: oklch(from var(--bg) l c h / 0.9);
  border-bottom: 1px solid var(--border);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo {
  height: 24px;
  width: auto;
}

.nav-title {
  color: var(--fg);
  font-family: var(--font-wordmark);
  font-size: 1.45rem;
  font-weight: 400;
  letter-spacing: normal;
  line-height: 1.35;
  text-decoration: none;
}

.wordmark-inline {
  color: var(--fg-muted);
  font-family: var(--font-wordmark);
  font-size: 1.15em;
  font-weight: 400;
  letter-spacing: normal;
  line-height: 1.35;
}

.nav-links {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-links a {
  color: var(--fg-muted);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: color var(--transition);
}

.nav-links a:hover { color: var(--fg); }

.nav-links a[aria-current='page'] {
  color: var(--fg);
  font-weight: 650;
}

.content {
  width: min(var(--content-w), calc(100% - 48px));
  margin: 0 auto;
  padding: 64px 0 96px;
  position: relative;
  z-index: 1;
}

h1, h2, h3, p, ul, ol { margin-top: 0; }

h1 {
  max-width: 15ch;
  margin-bottom: 12px;
  font-size: clamp(2.35rem, 4vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.98;
}

.subtitle {
  max-width: 62ch;
  margin-bottom: 48px;
  color: var(--fg-muted);
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.82rem;
  letter-spacing: 0.01em;
}

h2 {
  margin-top: 48px;
  margin-bottom: 12px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  font-weight: 750;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

h3 {
  margin-top: 28px;
  margin-bottom: 8px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

p { margin-bottom: 18px; }
ul, ol {
  margin-bottom: 20px;
  padding-left: 24px;
}
li { margin-bottom: 8px; }
strong { font-weight: 700; }

.content a, .footer a {
  color: var(--brand-strong);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.card {
  margin-bottom: 16px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 40px -24px oklch(from var(--fg) l c h / 0.2);
}

.card h2,
.card h3 {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
  font-size: 1rem;
  line-height: 1.25;
}

.card p:last-child { margin-bottom: 0; }

.faq-list h2 {
  margin-top: 0;
}

.faq-kicker {
  margin-bottom: 10px;
  color: var(--brand-strong);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.faq-item h3 {
  color: var(--fg);
}

.faq-item code {
  font-family: var(--font-mono);
  font-size: 0.9em;
}

.footer {
  border-top: 1px solid var(--border);
  padding: 40px 24px 36px;
  position: relative;
  z-index: 1;
}

.footer p {
  max-width: var(--max-w);
  margin: 0 auto 12px;
  color: var(--fg-subtle);
  font-size: 0.875rem;
  line-height: 1.6;
  text-align: center;
}

.footer p:last-child {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 22px;
  margin-bottom: 0;
}

.footer a {
  color: var(--fg-muted);
  text-decoration: none;
  transition: color var(--transition);
}

.footer a:hover { color: var(--brand-strong); }

@media (max-width: 640px) {
  .nav-inner {
    flex-wrap: wrap;
    align-items: flex-start;
    padding: 12px 16px;
  }
  .nav-links {
    width: 100%;
    margin-left: 0;
    justify-content: flex-start;
    gap: 14px;
  }
  .nav-links a { font-size: 0.8rem; }
  .content {
    width: min(100% - 32px, var(--content-w));
    padding: 44px 0 72px;
  }
  h1 { max-width: 12ch; }
  .card { padding: 20px; }
}
