/* Public website (server-rendered pages and the home page fallback). Every rule is scoped under .site so that
   this file never interferes with the React application. Same tokens as the application: Instrument Sans,
   pine for actions, amber for time pressure, no all-caps labels, 14px minimum text size. */
@font-face {
  font-family: "Instrument Sans Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 400 700;
  font-stretch: 75% 100%;
  src: url(/fonts/instrument-sans-latin-wdth-normal.woff2) format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Instrument Sans Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 400 700;
  font-stretch: 75% 100%;
  src: url(/fonts/instrument-sans-latin-ext-wdth-normal.woff2) format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF;
}

.site {
  --bg: #f3f6f4;
  --surface: #ffffff;
  --soft: #e9f0ec;
  --line: #dbe3df;
  --line-strong: #c3cfc8;
  --text: #13241e;
  --text-2: #44554d;
  --accent: #1d6a50;
  --accent-strong: #145440;
  --accent-text: #1a6249;
  --accent-soft: #e1f0e8;
  --mark-bg: #cce1b9;
  --mark-fg: #25422d;
  --amber: #8f5300;
  --amber-soft: #fff0d6;
  --focus: #c27b00;
  --radius: 14px;
  margin: 0;
  font-family: "Instrument Sans Variable", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
[data-theme="dark"] .site,
[data-theme="dark"] body.site {
  --bg: #0d1613;
  --surface: #14201b;
  --soft: #1c2b25;
  --line: #283a32;
  --line-strong: #375046;
  --text: #e7efea;
  --text-2: #b6c6bd;
  --accent: #2a8763;
  --accent-strong: #33986f;
  --accent-text: #84d3ae;
  --accent-soft: #173a2c;
  --mark-bg: #2f4a35;
  --mark-fg: #cce1b9;
  --amber: #f0b552;
  --amber-soft: #3a2a10;
  --focus: #f0b552;
  color-scheme: dark;
}
.site *,
.site *::before,
.site *::after {
  box-sizing: border-box;
}
.site a {
  color: var(--accent-text);
  text-underline-offset: 3px;
}
.site a:hover {
  color: var(--accent-strong);
}
.site :focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 4px;
}
.site h1,
.site h2,
.site h3 {
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
  text-wrap: balance;
}
.site h1 {
  font-size: clamp(34px, 5.2vw, 58px);
  font-weight: 650;
  letter-spacing: -0.035em;
  margin: 0 0 18px;
  max-width: 20ch;
}
.site h2 {
  font-size: clamp(24px, 2.6vw, 32px);
  font-weight: 640;
  margin: 0 0 14px;
}
.site h3 {
  font-size: 19px;
  font-weight: 640;
  margin: 22px 0 6px;
}
.site p {
  margin: 0 0 14px;
  max-width: 72ch;
}
.site .lead {
  font-size: clamp(18px, 1.6vw, 21px);
  color: var(--text-2);
  max-width: 62ch;
}
.site .muted,
.site .meta {
  color: var(--text-2);
  font-size: 15px;
}
.site .sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.site .wrap {
  width: min(1180px, 100% - 40px);
  margin-inline: auto;
}
.site .skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 10;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
}
.site .skip:focus {
  top: 12px;
}

/* ---------- Buttons ---------- */
.site .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 10px 20px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--text);
  font-size: 16px;
  font-weight: 620;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s;
}
.site .btn:hover {
  background: var(--soft);
  color: var(--text);
}
.site .btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.site .btn.primary:hover {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
  color: #fff;
}
.site .btn.small {
  min-height: 40px;
  padding: 7px 14px;
  font-size: 15px;
}
.site .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

/* ---------- Header ---------- */
.site .site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site .site-header .wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 72px;
}
.site .brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}
.site .brand .mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--mark-bg);
  color: var(--mark-fg);
}
.site .brand .light {
  font-weight: 400;
}
.site .brand .dot {
  color: #8fbf7a;
}
.site .site-menu {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 1;
}
.site .site-menu nav ul {
  display: flex;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site .site-menu nav a {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--text);
  font-weight: 560;
  text-decoration: none;
}
.site .site-menu nav a:hover,
.site .site-menu nav a[aria-current="page"] {
  background: var(--soft);
}
.site .tools {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}
.site .theme-toggle {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  cursor: pointer;
}
.site .theme-toggle .sun,
[data-theme="dark"] .site .theme-toggle .moon {
  display: none;
}
[data-theme="dark"] .site .theme-toggle .sun {
  display: block;
}
.site .langs {
  display: flex;
  gap: 2px;
}
.site .langs a {
  padding: 6px 7px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 620;
  color: var(--text-2);
  text-decoration: none;
}
.site .langs a[aria-current="true"] {
  color: var(--text);
  background: var(--soft);
}
.site .login {
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}
.site .menu-toggle {
  display: none;
  margin-left: auto;
  min-height: 40px;
  padding: 6px 14px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

/* ---------- Content ---------- */
.site main {
  padding: 28px 0 40px;
}
.site main > section {
  margin: 0 0 56px;
}
.site .crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  font-size: 14px;
  color: var(--text-2);
}
.site .crumbs li + li::before {
  content: "/";
  margin-right: 6px;
  color: var(--line-strong);
}
.site .crumbs a {
  color: var(--text-2);
}
.site .hero {
  padding: 28px 0 8px;
}
.site .hero.narrow h1 {
  font-size: clamp(32px, 4vw, 46px);
}
.site .notice {
  padding: 14px 18px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text-2);
}
.site .notice.draft {
  border-color: var(--amber);
  background: var(--amber-soft);
  color: var(--text);
}
.site .cards {
  display: grid;
  gap: 18px;
}
.site .cards.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.site .cards.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.site .card {
  padding: 26px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
}
.site .card h2 {
  font-size: 22px;
}
.site .card h2 a {
  color: var(--text);
  text-decoration: none;
}
.site .card h2 a:hover {
  text-decoration: underline;
}
.site .card.plain {
  background: transparent;
}
.site .card p:last-child {
  margin-bottom: 0;
}
.site .more {
  font-weight: 620;
}
.site .kicker {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 620;
  color: var(--accent-text);
}
.site .split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px;
}
.site ul.checks {
  list-style: none;
  margin: 0;
  padding: 0;
}
.site ul.checks li {
  position: relative;
  padding: 0 0 12px 30px;
}
.site ul.checks li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.45em;
  width: 14px;
  height: 8px;
  border-left: 2.5px solid var(--accent);
  border-bottom: 2.5px solid var(--accent);
  transform: rotate(-45deg);
}
.site .limits ul.checks li::before {
  width: 10px;
  height: 10px;
  top: 0.5em;
  border: 0;
  border-radius: 50%;
  background: var(--amber);
  transform: none;
}
.site ol.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  counter-reset: step;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site ol.steps li {
  counter-increment: step;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}
.site ol.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-text);
  font-weight: 700;
}
.site ol.steps h3 {
  margin-top: 14px;
}
.site .faq h3 {
  font-size: 18px;
}
.site .related ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.site .related a {
  display: inline-flex;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  color: var(--text);
  text-decoration: none;
  font-weight: 560;
}
.site .related a:hover {
  background: var(--soft);
}
.site .cta-band {
  padding: 40px;
  border-radius: 20px;
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
}
.site .cta-band p {
  color: var(--text-2);
}

/* ---------- Pricing ---------- */
.site .trial {
  padding: 26px 30px;
  border-radius: var(--radius);
  border: 1px dashed var(--accent);
  background: var(--surface);
}
.site .plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}
.site .plan {
  padding: 28px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--surface);
}
.site .plan.featured {
  border: 2px solid var(--accent);
}
.site .plan h2 {
  font-size: 26px;
  margin-bottom: 6px;
}
.site .price {
  margin: 0;
}
.site .price strong {
  font-size: 40px;
  font-stretch: 85%;
  letter-spacing: -0.03em;
}
.site .price.annual strong {
  font-size: 22px;
}
.site .price span {
  color: var(--text-2);
  font-size: 15px;
}
.site .plan dl {
  margin: 20px 0;
  border-top: 1px solid var(--line);
}
.site .plan dl div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}
.site .plan dt {
  color: var(--text-2);
}
.site .plan dd {
  margin: 0;
  font-weight: 640;
  text-align: right;
}
.site .notes ul {
  padding-left: 20px;
  color: var(--text-2);
}

/* ---------- Guides ---------- */
.site .guide-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.site .guide {
  max-width: 760px;
}
.site .guide .cover {
  display: block;
  width: 100%;
  height: auto;
  margin: 10px 0 28px;
  border-radius: var(--radius);
}
.site .prose {
  font-size: 18px;
}
.site .prose h2 {
  margin-top: 40px;
}
.site .prose img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}
.site .prose blockquote {
  margin: 20px 0;
  padding: 4px 0 4px 20px;
  border-left: 4px solid var(--accent);
  color: var(--text-2);
}
.site .prose code {
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--soft);
  font-size: 0.9em;
}
.site .prose hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 32px 0;
}

/* ---------- Legal ---------- */
.site dl.legal {
  margin: 0 0 24px;
  border-top: 1px solid var(--line);
}
.site dl.legal div {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.site dl.legal dt {
  font-weight: 640;
}
.site dl.legal dd {
  margin: 0;
}

/* Terms and privacy policy: table of contents beside the text on wide screens, above it on small ones. */
.site .legal-binding {
  font-size: 15px;
  color: var(--text-2);
}
.site .legal-doc {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 48px;
  align-items: start;
  padding: 16px 0 56px;
}
.site .legal-toc {
  position: sticky;
  top: 88px;
  max-height: calc(100vh - 110px);
  overflow: auto;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  font-size: 15px;
}
.site .legal-toc h2 {
  font-size: 17px;
  margin: 0 0 8px;
}
.site .legal-toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
}
.site .legal-toc li + li {
  margin-top: 6px;
}
.site .legal-toc a {
  color: var(--text-2);
  text-decoration: none;
}
.site .legal-toc a:hover {
  color: var(--accent-text);
  text-decoration: underline;
}
.site .legal-text {
  max-width: 76ch;
}
.site .legal-text section {
  scroll-margin-top: 88px;
  padding-bottom: 8px;
}
.site .legal-text h2 {
  font-size: clamp(20px, 2vw, 24px);
  margin: 32px 0 10px;
}
.site .legal-text section:first-child h2 {
  margin-top: 0;
}
.site .legal-text ul {
  margin: 0 0 14px;
  padding-left: 22px;
  max-width: 72ch;
}
.site .legal-text li + li {
  margin-top: 6px;
}
.site .legal-text .legal-related {
  list-style: none;
  padding: 20px 0 0;
  margin-top: 28px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

/* ---------- Footer ---------- */
.site .site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
  padding: 48px 0 24px;
  font-size: 15px;
}
.site .site-footer .wrap {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
}
.site .site-footer h2 {
  font-size: 15px;
  margin-bottom: 10px;
}
.site .site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.site .site-footer li {
  margin-bottom: 8px;
}
.site .site-footer a {
  color: var(--text-2);
  text-decoration: none;
}
.site .site-footer a:hover {
  color: var(--text);
  text-decoration: underline;
}
.site .site-footer .footer-brand p {
  margin-top: 12px;
  color: var(--text-2);
  max-width: 40ch;
}
.site .site-footer .bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--text-2);
}
.site .site-footer .bottom p {
  margin: 0;
}

/* ---------- Home fallback rendered before React (same content as the landing) ---------- */
.site.ssr-home {
  min-height: 100vh;
  padding: 48px 20px;
}
.site.ssr-home main {
  width: min(1100px, 100%);
  margin: 0 auto;
}
.site.ssr-home nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  list-style: none;
  padding: 0;
  margin: 28px 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 1099px) {
  .site .menu-toggle {
    display: inline-flex;
  }
  .site .site-menu {
    display: none;
    position: absolute;
    inset: 72px 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 16px 20px 22px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px rgb(0 0 0 / 10%);
  }
  .site .site-menu.open {
    display: flex;
  }
  .site .site-menu nav ul {
    flex-direction: column;
  }
  .site .site-menu nav a {
    width: 100%;
    padding: 12px;
  }
  .site .tools {
    flex-wrap: wrap;
    margin-left: 0;
  }
  .site .cards.three,
  .site .plans {
    grid-template-columns: 1fr;
  }
  .site .plans {
    max-width: 560px;
  }
  .site .site-footer .wrap {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 767px) {
  .site {
    font-size: 16px;
  }
  .site .wrap {
    width: min(1180px, 100% - 32px);
  }
  .site .cards.two,
  .site .split,
  .site ol.steps,
  .site .guide-list {
    grid-template-columns: 1fr;
  }
  .site .split {
    gap: 8px;
  }
  .site dl.legal div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .site .legal-doc {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .site .legal-toc {
    position: static;
    max-height: none;
  }
  .site .cta-band {
    padding: 26px 22px;
  }
  .site .site-footer .wrap {
    grid-template-columns: 1fr;
  }
  .site .actions .btn {
    flex: 1 1 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  .site * {
    transition: none !important;
  }
}
.site .related {
  margin: 0 0 56px;
}
