/* litecrm.org. Same tokens as the app (lite-crm web/src/styles.css): light only, IBM Plex Sans, one blue. */
@font-face { font-family: "IBM Plex Sans"; font-weight: 400; font-display: swap; src: url("/fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 500; font-display: swap; src: url("/fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 600; font-display: swap; src: url("/fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); }
:root {
  color-scheme: light only;
  --accent: #2F86FF;
  --canvas: #F4F6F9; --surface: #FFFFFF; --surface-2: #F8F9FB;
  --ink: #0E1726; --ink-2: #5B6577; --ink-3: #8A93A3;
  --line: rgba(14, 23, 38, .08); --line-strong: rgba(14, 23, 38, .14);
  --term: #0E1726; --term-ink: #D7DEE8; --term-dim: #7D8A9E; --term-ok: #6FD49B; --term-ask: #8FC1FF;
  --sky-top: #8EC5F2; --sky-mid: #C9E4F7; --sky-low: #FDE7CF; --sun: #FFD27A;
  --mtn-far: #A9BED6; --mtn-mid: #7E9BBE; --mtn-near: #5B7FA6; --snow: #F4F8FC;
  --hill-far: #8CC084; --hill-near: #5FA35E; --grass: #3F8A45;
  --r-s: 6px; --r-m: 10px;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font: 100%/1.55 "IBM Plex Sans", system-ui, sans-serif;
  color: var(--ink);
  background: var(--surface);
}
* { box-sizing: border-box; }
body { margin: 0; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 28px; }

/* header */
.top { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: inline-flex; }
.brand img { height: 26px; width: auto; display: block; }
.top nav { display: flex; gap: 26px; font-size: .9rem; }
.top nav a { text-decoration: none; color: var(--ink-2); }
.top nav a:hover, .top nav a[aria-current] { color: var(--ink); }

/* buttons */
.btn { display: inline-flex; align-items: center; height: 42px; padding: 0 18px; border-radius: var(--r-m); border: 1px solid var(--line-strong); background: var(--surface); font: inherit; font-weight: 500; font-size: .95rem; text-decoration: none; color: var(--ink); cursor: pointer; transition: transform 100ms ease-out, filter 120ms; }
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--accent); border-color: transparent; color: #fff; }
.btn.primary:hover { filter: brightness(1.06); }

/* hero */
.hero { display: grid; grid-template-columns: 1fr 1.08fr; gap: 56px; align-items: center; padding: 56px 0 72px; }
.hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); line-height: 1.06; letter-spacing: -.025em; font-weight: 600; margin: 0 0 18px; }
.hero .lede { font-size: 1.12rem; color: var(--ink-2); margin: 0 0 28px; max-width: 30em; }
.hero .actions { display: flex; gap: 10px; flex-wrap: wrap; }
.hero .fine { margin: 18px 0 0; font-size: .85rem; color: var(--ink-3); }

/* terminal transcript */
.term { background: var(--term); color: var(--term-ink); border-radius: 12px; padding: 18px 20px 20px; font: .8rem/1.62 var(--mono); box-shadow: 0 24px 60px rgba(14, 23, 38, .22), 0 2px 6px rgba(14, 23, 38, .08); overflow-x: auto; }
.term .bar { display: flex; gap: 6px; margin-bottom: 14px; }
.term .bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .16); }
.term pre { margin: 0; font: inherit; white-space: pre; }
.term .cmd { color: #fff; }
.term .dim { color: var(--term-dim); }
.term .ok { color: var(--term-ok); }
.term .ask { color: var(--term-ask); }
.term .you { color: #fff; font-weight: 600; }

/* horizon: the sign-in screen's landscape, as a band */
.horizon { height: 150px; display: block; width: 100%; }

/* sections */
section.band { background: var(--canvas); }
.section { padding: 76px 0; }
.section h2 { font-size: 1.75rem; letter-spacing: -.02em; line-height: 1.15; font-weight: 600; margin: 0 0 10px; }
.section .intro { color: var(--ink-2); max-width: 36em; margin: 0 0 40px; font-size: 1.02rem; }
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px 56px; margin: 0; }
.features div { border-top: 1px solid var(--line-strong); padding-top: 14px; }
.features dt { font-weight: 600; margin-bottom: 4px; }
.features dd { margin: 0; color: var(--ink-2); font-size: .95rem; }

.stack { width: 100%; border-collapse: collapse; font-size: .95rem; }
.stack th, .stack td { text-align: left; padding: 13px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.stack th { width: 30%; font-weight: 600; padding-right: 24px; }
.stack td { color: var(--ink-2); }

/* command box */
.cmdbox { display: flex; align-items: center; gap: 12px; background: var(--term); color: #fff; border-radius: var(--r-m); padding: 6px 6px 6px 18px; font: .9rem var(--mono); max-width: 620px; }
.cmdbox code { flex: 1; overflow-x: auto; white-space: nowrap; }
.cmdbox code::before { content: "$ "; color: var(--term-dim); }
.cmdbox.ps code::before { content: "PS> "; }
.cmdbox button { flex: none; height: 32px; padding: 0 12px; border-radius: var(--r-s); border: 0; background: rgba(255, 255, 255, .12); color: #fff; font: 500 .8rem "IBM Plex Sans", sans-serif; cursor: pointer; }
.cmdbox button:hover { background: rgba(255, 255, 255, .2); }

/* OS switch */
.seg { display: inline-flex; padding: 3px; background: var(--canvas); border: 1px solid var(--line); border-radius: 9px; margin-bottom: 14px; }
.seg button { border: 0; background: transparent; font: 500 .88rem "IBM Plex Sans", sans-serif; color: var(--ink-2); padding: 6px 14px; border-radius: 7px; cursor: pointer; }
.seg button[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(14, 23, 38, .1); }
[data-os-panel][hidden] { display: none; }

/* install page */
.page-head { padding: 52px 0 36px; }
.page-head h1 { font-size: clamp(2rem, 4vw, 2.7rem); letter-spacing: -.025em; line-height: 1.1; font-weight: 600; margin: 0 0 12px; }
.page-head p { color: var(--ink-2); font-size: 1.08rem; max-width: none; margin: 0; }
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; }
.steps > li { counter-increment: step; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 0 18px; padding: 30px 0; border-top: 1px solid var(--line); }
.steps > li::before { content: counter(step); width: 32px; height: 32px; border-radius: 50%; background: var(--canvas); border: 1px solid var(--line-strong); display: grid; place-items: center; font-weight: 600; font-size: .9rem; }
.steps h3 { margin: 4px 0 8px; font-size: 1.1rem; font-weight: 600; }
.steps p, .steps li li { color: var(--ink-2); }
.steps p { margin: 0 0 14px; max-width: 40em; }
.asks { margin: 0; padding-left: 1.1em; color: var(--ink-2); }
.asks li { margin: 4px 0; }
.side { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.side h3 { font-size: 1.05rem; margin: 0 0 8px; }
.side p { color: var(--ink-2); margin: 0 0 10px; font-size: .95rem; }
code.inline { font: .86em var(--mono); background: var(--canvas); border: 1px solid var(--line); padding: 1px 5px; border-radius: 4px; }

/* small spacing helpers, so the CSP can forbid inline styles */
.mt-s { margin-top: 14px; }
.mt-m { margin-top: 22px; }
.rule-top { border-top: 1px solid var(--line); }
.prose { max-width: 40em; padding-bottom: 60px; }
.prose h2 { font-size: 1.15rem; margin: 30px 0 8px; }
.prose p { color: var(--ink-2); }

footer { border-top: 1px solid var(--line); padding: 28px 0 40px; font-size: .85rem; color: var(--ink-3); }
footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 12px 20px; flex-wrap: wrap; }
footer a { color: var(--ink-2); text-decoration: none; }
/* One flex row: a link that starts with an icon would otherwise take its baseline from the icon and sit higher. */
.foot-links { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 20px; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 36px; padding-top: 28px; }
  .features, .side { grid-template-columns: 1fr; }
  .top nav { gap: 16px; }
  .term { font-size: .72rem; }
}
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } }

/* Grid items default to min-width: auto, so a long command line would widen the page on phones. */
.hero > *, .steps > li > div { min-width: 0; }
.cmdbox { max-width: min(620px, 100%); }

/* GitHub link: mark + label; opens in a new tab */
.gh { width: 15px; height: 15px; flex: none; }
.gh-link, .foot-links a, .btn { display: inline-flex; align-items: center; gap: 7px; }
.btn .gh { width: 16px; height: 16px; }

/* Awareness card on /deploy: what it runs on and roughly what it costs */
.aware { border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 0 var(--r-m) var(--r-m) 0; background: var(--surface-2); padding: 22px 26px; margin: 0 0 12px; }
.aware h2 { font-size: 1.1rem; margin: 0 0 8px; font-weight: 600; letter-spacing: -.01em; }
.aware p { color: var(--ink-2); margin: 0 0 14px; max-width: none; font-size: .95rem; }
.aware .fine { font-size: .82rem; color: var(--ink-3); margin: 14px 0 0; }
.cost { width: 100%; border-collapse: collapse; font-size: .9rem; }
.cost th, .cost td { text-align: left; vertical-align: top; padding: 9px 0; border-top: 1px solid var(--line); }
.cost th { width: 34%; padding-right: 20px; font-weight: 500; }
.cost td { color: var(--ink-2); }
.cost tr.total th, .cost tr.total td { font-weight: 600; color: var(--ink); }

.faq dd { max-width: 34em; }
.prose ul.asks { margin: 0 0 14px; }
@media (max-width: 860px) { .cost th { width: 44%; } }
.foot-note { line-height: 1.6; }
.foot-note a { color: inherit; text-decoration: underline; text-underline-offset: 2px; text-decoration-color: var(--line); }
.foot-note a:hover { color: var(--ink); text-decoration-color: currentColor; }
/* A heading with a small time estimate on its right: the cost card's reading time, the deploy's duration. */
.card-head, .section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.card-head { margin: 0 0 8px; }
.card-head h2 { margin: 0; }
.section-head { margin: 40px 0 4px; }
.section-head h2 { font-size: 1.35rem; font-weight: 600; letter-spacing: -.015em; margin: 0; }
.eta { flex: none; font-size: .78rem; line-height: 1; color: var(--ink-2); white-space: nowrap; padding: 5px 10px; border: 1px solid var(--line); border-radius: 999px; background: #fff; }
.section-head .eta { background: var(--surface-2); border-color: var(--line-strong); }
/* Baselines line up in every browser; centring the boxes didn't (Firefox places Plex lower in its line box as
   the size grows). Lift each pill by half the cap-height difference (Plex caps are .698em) so its text is centred
   on the heading's capitals. */
.eta { position: relative; }
.card-head .eta { top: calc(-.349 * (1.1rem - .78rem)); }
.section-head .eta { top: calc(-.349 * (1.35rem - .78rem)); }
