/* Static pages on the API host (support, privacy, terms, portfolio privacy), set in
   stratafinance.ai's editorial design. The first part is a copy of PUBLIC_PAGE_CSS from
   shared/ui/public-page-theme.js (palette, fonts, buttons, website header and footer); keep the two
   in step when the theme changes. The static-page layout follows it. */

@font-face { font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/schibsted-grotesk-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/inter-tight-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/inter-tight-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/inter-tight-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/jetbrains-mono-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/jetbrains-mono-latin-600-normal.woff2) format("woff2"); }
:root {
  color-scheme: dark;
  --background: #0b0c0e;
  --surface: #131519;
  --surface-raised: #181b20;
  --foreground: #eceae4;
  --muted: #8b9098;
  --faint: #5d626a;
  --body-copy: #c9c7c1;
  --border: #24272d;
  --primary: #eceae4;
  --primary-foreground: #0b0c0e;
  --positive: #00c851;
  --negative: #ff5000;
  --font-sans: "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Schibsted Grotesk", "Inter Tight", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font: 16px/1.6 var(--font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: var(--foreground); color: var(--background); }
a { color: var(--foreground); text-underline-offset: 3px; text-decoration-color: var(--faint); }
code, pre, kbd { font-family: var(--font-mono); }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
:is(a, button, input, select, textarea, summary):focus-visible {
  outline: 2px solid var(--foreground);
  outline-offset: 3px;
}
.brand { color: var(--foreground); font-size: 24px; font-weight: 700; letter-spacing: -1px; text-decoration: none; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 26px;
  border: 0;
  border-radius: 6px;
  background: var(--primary);
  color: var(--primary-foreground);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.005em;
  line-height: 1.3;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 220ms var(--ease), transform 220ms var(--ease);
}
.button:hover { background: #fff; }
.button:active { transform: scale(0.98); }
.button.secondary { background: transparent; color: var(--foreground); box-shadow: inset 0 0 0 1px var(--faint); }
.button.secondary:hover { background: rgba(236, 234, 228, 0.06); }

/* the website's header: an open bar, plain links, and one filled button */
.ed-nav { position: relative; z-index: 50; }
.ed-nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 76px; }
.ed-nav-pill { display: flex; align-items: center; gap: 48px; }
.ed-nav-logo { display: inline-flex; flex-shrink: 0; border-radius: 6px; }
.ed-nav-logo img { display: block; height: 26px; width: auto; max-width: none; }
.ed-nav-links { display: flex; align-items: center; gap: 30px; font-size: 14px; color: var(--foreground); }
.ed-nav-links a { color: inherit; text-decoration: none; }
.ed-nav-menu { position: relative; }
.ed-nav-menu-btn { display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; background: none; font: inherit; color: inherit; cursor: pointer; }
.ed-nav-menu-btn svg { transition: transform 200ms var(--ease); }
.ed-nav-drop { position: absolute; top: 100%; left: -18px; display: none; width: 320px; padding: 12px 0 0; }
.ed-nav-drop::before {
  content: ""; position: absolute; inset: 12px 0 0; z-index: -1; border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px; background: rgba(18, 19, 22, 0.97); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}
.ed-nav-menu:hover .ed-nav-drop, .ed-nav-menu:focus-within .ed-nav-drop { display: grid; padding: 18px 8px 6px; }
.ed-nav-menu:hover .ed-nav-menu-btn svg, .ed-nav-menu:focus-within .ed-nav-menu-btn svg { transform: rotate(180deg); }
.ed-nav-drop a { display: grid; gap: 2px; padding: 10px 12px; border-radius: 10px; }
.ed-nav-drop a:hover { background: rgba(255, 255, 255, 0.06); }
.ed-nav-drop strong { font-size: 14px; font-weight: 600; color: var(--foreground); }
.ed-nav-drop span { font-size: 13px; color: var(--muted); }
.ed-nav-actions { display: flex; align-items: center; gap: 28px; }
.ed-nav-text { font-size: 14px; color: var(--foreground); text-decoration: none; }
.ed-nav-cta { height: 40px; min-height: 40px; padding: 0 18px; font-size: 14px; }

/* the website's footer */
.ed-foot { margin-top: 24px; padding: 28px 0 42px; border-top: 1px solid var(--border); color: var(--muted); }
.ed-foot-top { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.ed-foot-top img { display: block; height: 24px; width: auto; max-width: none; }
.ed-foot-links { display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 13px; }
.ed-foot-links a { color: var(--muted); text-decoration: none; }
.ed-foot-links a:hover { color: var(--foreground); }
.ed-foot p { max-width: 820px; margin: 18px 0 0; font-size: 12px; line-height: 1.55; color: var(--muted); }
.ed-foot p + p { margin-top: 6px; color: var(--faint); }

@media (max-width: 760px) {
  .ed-nav-links { display: none; }
}
@media (max-width: 640px) {
  .ed-nav-inner { height: 64px; }
  .ed-nav-text { display: none; }
  .ed-nav-logo img { height: 22px; }
}

/* static-page layout */
.page-shell { width: 100%; max-width: calc(1280px + 2 * clamp(20px, 5vw, 72px)); margin: 0 auto; padding: 0 clamp(20px, 5vw, 72px); }
.skip-link { position: fixed; z-index: 100; top: -80px; left: 20px; padding: 12px 18px; border-radius: 999px; background: var(--foreground); color: var(--background); }
.skip-link:focus { top: 12px; }
.doc { max-width: 720px; margin: 0 auto; padding: clamp(48px, 6vw, 96px) 0 clamp(56px, 6vw, 104px); }
.doc .eyebrow { margin: 0 0 18px; color: var(--muted); font-family: var(--font-mono); font-size: 11px; line-height: 1.5; letter-spacing: 0.08em; text-transform: uppercase; }
.doc h1, .doc h2, .doc h3 { font-family: var(--font-display); font-weight: 500; color: var(--foreground); text-wrap: balance; }
.doc h1 { margin: 0 0 28px; font-size: clamp(38px, 4.4vw, 56px); line-height: 1.06; letter-spacing: -0.03em; }
.doc h2 { margin: 56px 0 16px; font-size: clamp(24px, 2.2vw, 30px); line-height: 1.15; letter-spacing: -0.025em; }
.doc h3 { margin: 36px 0 12px; font-size: 19px; line-height: 1.3; letter-spacing: -0.015em; }
.doc p, .doc li { color: var(--body-copy); font-size: 16px; line-height: 1.75; text-wrap: pretty; }
.doc p { margin: 0 0 18px; }
.doc ul, .doc ol { margin: 0 0 22px; padding-left: 22px; }
.doc li { margin: 0 0 10px; padding-left: 4px; }
.doc li::marker { color: var(--faint); }
.doc strong { color: var(--foreground); font-weight: 600; }
.doc a { overflow-wrap: anywhere; }
.doc a:hover { text-decoration-color: var(--foreground); }
.doc hr { margin: 48px 0; border: 0; border-top: 1px solid var(--border); }

/* the legal documents: the opening facts read as a quiet byline under the title */
.legal > h1 + p, .legal > h1 + p + p, .legal > h1 + p + p + p { margin: 0; font-family: var(--font-mono); font-size: 12px; line-height: 1.9; letter-spacing: 0.02em; }
.legal > h1 + p strong, .legal > h1 + p + p strong, .legal > h1 + p + p + p strong { color: var(--muted); font-weight: 400; }
.legal > h1 + p + p + p { margin-bottom: 36px; }

/* support */
.support .intro { max-width: 34em; margin-bottom: 36px; color: var(--foreground); font-size: clamp(17px, 1.35vw, 20px); line-height: 1.5; }
.card { padding: clamp(26px, 3vw, 40px); border: 1px solid var(--border); border-radius: 28px; background: var(--surface); }
.doc .card h2 { margin: 0 0 12px; }
.doc .card p { margin: 0 0 28px; font-size: 15px; line-height: 1.65; }
.email { display: block; margin-top: 18px; color: var(--muted); font-family: var(--font-mono); font-size: 12.5px; overflow-wrap: anywhere; }

@media (max-width: 640px) {
  .doc h2 { margin-top: 44px; }
  .card { border-radius: 22px; }
  .support .button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
