/*
 * Public site styles. Same design system as the dashboard and the API docs:
 * shadcn "neutral" tokens, light only, DM Sans with JetBrains Mono, 14px base, 8px controls, 12px cards.
 */
:root {
  --background: #ffffff;
  --foreground: #0a0a0a;
  --card: #ffffff;
  --muted: #f5f5f5;
  --muted-foreground: #737373;
  --border: #e5e5e5;
  --input: #e5e5e5;
  --primary: #171717;
  --primary-foreground: #fafafa;
  --accent: #f5f5f5;
  --sidebar: #fafafa;
  --ring: #a3a3a3;
  /* Orange accent, taken from financecomputer.com. Fills and dots use --signal; text uses --signal-deep (contrast on white). */
  --signal: #ff4f17;
  --signal-deep: #b33209;
  --signal-soft: rgba(255, 79, 23, .12);
}
* { box-sizing: border-box; margin: 0; }
html { color-scheme: light; }
body {
  font-family: "DM Sans", ui-sans-serif, system-ui, sans-serif;
  font-size: 14px; line-height: 1.5; color: var(--foreground); background: var(--background);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; }
p a, .lead a { text-decoration: underline; text-decoration-color: var(--signal); text-decoration-thickness: 2px; text-underline-offset: 3px; }
code, pre { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 12px; }
code { background: var(--muted); border-radius: 4px; padding: 1px 5px; }
::selection { background: var(--signal-soft); }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }

/* header: 56px, hairline below, logo tile like the dashboard sidebar */
header.top { min-height: 56px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 4px 24px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; text-decoration: none; }
.logo { width: 28px; height: 28px; border-radius: 6px; background: var(--primary); color: var(--primary-foreground); display: grid; place-items: center; font-weight: 700; font-size: 15px; }
nav { display: flex; flex-wrap: wrap; gap: 0 4px; }
nav a { height: 32px; display: inline-flex; align-items: center; padding: 0 10px; border-radius: 8px; color: var(--muted-foreground); text-decoration: none; font-weight: 500; }
nav a:hover { background: var(--accent); color: var(--foreground); }
nav a[aria-current="page"] { background: var(--accent); color: var(--foreground); box-shadow: inset 0 -2px 0 var(--signal); }

/* type */
h1 { font-size: clamp(30px, 5vw, 48px); line-height: 1.1; letter-spacing: -.02em; font-weight: 600; max-width: 20ch; }
h2.section { font-size: 24px; line-height: 1.25; letter-spacing: -.01em; font-weight: 600; margin-bottom: 8px; }
.lead { margin-top: 16px; font-size: 16px; line-height: 1.6; color: var(--muted-foreground); max-width: 62ch; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 500 11px/1 "JetBrains Mono", ui-monospace, monospace; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-foreground); margin-bottom: 16px; }
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 99px; background: var(--signal); }

/* hero and sections */
.hero { padding: 72px 0 48px; }
.hero.small { padding: 56px 0 40px; }
section.block { padding: 40px 0; border-top: 1px solid var(--border); }
section.block > .lead { margin-top: 0; margin-bottom: 20px; }

/* buttons: 36px, 8px radius, black primary */
.cta { margin-top: 24px; display: flex; gap: 8px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border-radius: 8px; border: 1px solid var(--input); background: var(--background); font-weight: 500; text-decoration: none; white-space: nowrap; }
.btn:hover { background: var(--accent); }
.btn.primary { gap: 8px; background: var(--primary); color: var(--primary-foreground); border-color: var(--primary); }
.btn.primary::before { content: ""; width: 7px; height: 7px; border-radius: 99px; background: var(--signal); }
.btn.primary:hover { opacity: .9; background: var(--primary); }

/* cards: 12px radius, 1px border, no shadow, title band like the dashboard */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; padding-bottom: 48px; }
a.tile, .card, .steps li { background: var(--card); border: 1px solid var(--border); border-radius: 12px; }
a.tile { display: flex; flex-direction: column; text-decoration: none; overflow: hidden; }
a.tile h2 { font-size: 14px; font-weight: 600; padding: 14px 16px; border-bottom: 1px solid var(--border); }
a.tile p { color: var(--muted-foreground); padding: 14px 16px 0; flex: 1; }
a.tile span { padding: 12px 16px 14px; font-weight: 500; }
a.tile:hover { background: var(--accent); border-color: var(--signal); }
a.tile span { color: var(--signal-deep); }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; counter-reset: step; list-style: none; padding: 0; }
.steps.five { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.steps li { counter-increment: step; padding: 16px; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 24px; height: 24px; border-radius: 99px; background: var(--signal); color: #131211; font-size: 12px; font-weight: 600; margin-bottom: 12px; }
.steps h3, .feature h3 { font-size: 14px; font-weight: 600; margin-bottom: 2px; }
.steps p, .feature p { color: var(--muted-foreground); }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px 32px; }
.checks { list-style: none; padding: 0; display: grid; gap: 8px; max-width: 70ch; }
.checks li { padding-left: 26px; position: relative; }
.checks.no li::before { content: "—"; color: var(--muted-foreground); }
.checks li::before { content: "✓"; position: absolute; left: 0; font-weight: 700; color: var(--signal-deep); }

pre { background: var(--muted); border-radius: 8px; padding: 12px 16px; overflow-x: auto; line-height: 1.6; margin: 0; }

.band { text-align: center; padding: 56px 0; border-top: 1px solid var(--border); }
.band .lead { margin: 0 auto; }
.band .cta { justify-content: center; }

/* footer: the dashboard's grey sidebar tone */
.footer-bleed { background: var(--sidebar); border-top: 1px solid var(--border); margin-top: 8px; }
footer.site { padding: 32px 0 24px; }
footer.site .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 24px; margin-bottom: 24px; }
footer.site h2 { font-size: 12px; font-weight: 500; color: var(--muted-foreground); margin-bottom: 6px; }
footer.site ul { padding: 0; }
footer.site li { list-style: none; margin: 2px 0; }
footer.site a { text-decoration: none; }
footer.site a:hover { text-decoration: underline; }
footer.site .legal { color: var(--muted-foreground); font-size: 13px; }

@media (max-width: 520px) { .hero { padding: 40px 0 24px; } .hero.small { padding: 32px 0 24px; } section.block { padding: 28px 0; } }
