/* Shared by the static pages under public/ (pricing, privacy, terms, agents, support). They are
   plain documents served beside the app and load none of its bundle. Black and
   white, like the app's signed-out landing page, set in Working Color's brand face
   (Schibsted Grotesk) with JetBrains Mono for code. The faces are the same files
   src/core/fonts/brand.css bundles for the app. */
@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url(/fonts/schibsted-grotesk/latin.woff2) format("woff2");
}

@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url(/fonts/jetbrains-mono/latin.woff2) format("woff2");
}

:root {
  /* Light only, like the landing page (src/app/boot/LandingScreen.tsx). Change both together. */
  color-scheme: light;
  --bg: #fff;
  --fg: #000;
  --muted: #6f6f6f;
  --rule: #e5e5e5;
  --accent: #000;
  --code-bg: #f2f2f2;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font:
    16px/1.65 "Schibsted Grotesk",
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    sans-serif;
  -webkit-font-smoothing: antialiased;
}

main {
  max-width: 44rem;
  margin: 0 auto;
  padding: 3rem 1rem 5rem;
}

header.site {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 3rem;
  font-size: 0.9375rem;
}

header.site a.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--fg);
  font-weight: 600;
  text-decoration: none;
}

header.site img {
  width: 20px;
  height: 20px;
}

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

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

header.site nav a:hover,
header.site nav a[aria-current="page"] {
  color: var(--fg);
}

h1 {
  margin: 0 0 0.5rem;
  font-size: 2rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h2 {
  margin: 2.75rem 0 0.75rem;
  font-size: 1.1875rem;
  letter-spacing: -0.01em;
}

p,
ul,
ol,
table {
  margin: 0 0 1rem;
}

ul,
ol {
  padding-left: 1.25rem;
}

li {
  margin-bottom: 0.375rem;
}

a {
  color: var(--accent);
  text-underline-offset: 0.2em;
}

.meta {
  margin-bottom: 2.5rem;
  color: var(--muted);
  font-size: 0.9375rem;
}

code,
pre {
  font:
    0.875rem/1.55 "JetBrains Mono",
    ui-monospace,
    SFMono-Regular,
    Menlo,
    monospace;
}

code {
  padding: 0.1em 0.35em;
  border-radius: 4px;
  background: var(--code-bg);
}

pre {
  overflow-x: auto;
  margin: 0 0 1rem;
  padding: 0.875rem 1rem;
  border-radius: 8px;
  background: var(--code-bg);
}

pre code {
  padding: 0;
  background: none;
}

.table-scroll {
  overflow-x: auto;
  margin-bottom: 1rem;
}

table {
  width: 100%;
  margin: 0;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

th,
td {
  padding: 0.625rem 0.75rem 0.625rem 0;
  border-bottom: 1px solid var(--rule);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--muted);
  font-weight: 500;
}

/* Matches the footer of the app's signed-out landing page (src/app/boot/LandingScreen.tsx). */
footer.site {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.375rem 1.25rem;
  margin-top: 6rem;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1rem;
}

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

/* The plans page (public/pricing): two plan cards side by side, stacked on a phone. */
.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1rem;
  margin: 0 0 2rem;
}

.plan {
  padding: 1.5rem;
  border: 1px solid var(--rule);
  border-radius: 12px;
}

.plan h2 {
  margin: 0 0 0.5rem;
}

.plan .price {
  margin: 0;
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.plan .price span {
  color: var(--muted);
  font-size: 1rem;
  font-weight: 400;
}

.plan .price-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.9375rem;
}

.plan ul {
  margin: 1rem 0 0;
}
