/* DesktopWiki site. Colors come from the logo: navy book cover, cream pages, amber edge, red bookmark. */

:root {
  --bg: #f7f5f0;
  --surface: #ffffff;
  --text: #1e2333;
  --muted: #545b70;
  --border: #e2ded4;
  --link: #2a3f94;
  --hero-bg: linear-gradient(160deg, #2c3f8f 0%, #1c2563 100%);
  --hero-text: #ffffff;
  --hero-muted: #d6dbf2;
  --accent: #f2a93b;
  --bookmark: #e05a3a;
  --code-bg: #efece4;
  --page-end: #ffffff;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #14161f;
  --surface: #1d2030;
  --text: #eceef5;
  --muted: #a7adc2;
  --border: #2d3248;
  --link: #9fb2ff;
  --hero-bg: linear-gradient(160deg, #1f2d6b 0%, #121842 100%);
  --hero-text: #ffffff;
  --hero-muted: #c3c9e6;
  --code-bg: #262a3d;
  --page-end: #000000;
  color-scheme: dark;
}

* { box-sizing: border-box; }

/* Past the end of the page (below short pages, overscroll): white in light mode, black in dark mode.
   :root and !important because the Dark Reader extension (Filter and Static modes) adds
   "html { background: white !important }", which made it white there in dark mode; :root outranks html. */
html {
  -webkit-text-size-adjust: 100%;
}
:root {
  background: var(--page-end) !important;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

a { color: var(--link); }

code {
  font-family: Consolas, "Cascadia Mono", ui-monospace, monospace;
  background: var(--code-bg);
  padding: 0.1em 0.35em;
  border-radius: 4px;
  font-size: 0.92em;
}

pre {
  background: var(--code-bg);
  padding: 12px 14px;
  border-radius: 6px;
  overflow-x: auto;
}
pre code { padding: 0; background: none; }

.wrap {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Hero */

.hero {
  background: var(--hero-bg);
  color: var(--hero-text);
  padding: 28px 0 56px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 40px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.25rem;
}

.brand img { border-radius: 9px; display: block; }

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: inherit;
  font-size: 0.875rem;
  color: var(--hero-text);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 6px;
  padding: 5px 12px;
  cursor: pointer;
  white-space: nowrap;
}
.theme-toggle:hover { background: rgba(255, 255, 255, 0.16); }
.theme-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.hero h1 {
  font-size: 2.1rem;
  line-height: 1.25;
  margin: 0 0 18px;
  font-weight: 600;
}

.lede {
  color: var(--hero-muted);
  margin: 0 0 26px;
  max-width: 760px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 22px;
  margin-bottom: 26px;
}

.actions a {
  color: var(--hero-text);
  font-weight: 600;
}

.status-pill {
  display: inline-block;
  background: var(--accent);
  color: #1c2563;
  font-weight: 700;
  padding: 9px 18px;
  border-radius: 6px;
}

.button {
  display: inline-block;
  background: var(--accent);
  color: #1c2563;
  font-weight: 700;
  padding: 9px 18px;
  border-radius: 6px;
  text-decoration: none;
}
.actions a.button { color: #1c2563; }
.button:hover { background: #f6bc63; }
.button:focus-visible { outline: 2px solid var(--hero-text); outline-offset: 2px; }

.demo-note {
  color: var(--hero-muted);
  margin: 0 0 14px;
  max-width: 760px;
}
.demo-note strong { color: var(--hero-text); }

.setup-note {
  color: var(--hero-muted);
  margin: 0 0 8px;
  max-width: 760px;
}
.setup-note strong,
.setup-note a { color: var(--hero-text); }

/* .shot.hero-shot outranks the .shot rules further down. */
.shot.hero-shot { margin: 22px 0 26px; max-width: 960px; }
.shot.hero-shot img { border-color: rgba(255, 255, 255, 0.25); box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35); }
.shot.hero-shot figcaption { color: var(--hero-muted); }

.example {
  margin: 0 0 24px;
  padding: 14px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 6px;
}

.hero-small { padding-bottom: 36px; }
.hero-small h1 { margin-bottom: 0; }

/* Text pages (download, privacy) */

.doc { padding-top: 32px; max-width: 760px; }
.doc h2 { margin-top: 32px; font-size: 1.3rem; }

footer nav a { margin-right: 16px; }

.fine {
  color: var(--hero-muted);
  font-size: 0.875rem;
  margin: 0;
}

/* Sections */

main section {
  padding: 48px 0 8px;
}

h2 {
  font-size: 1.6rem;
  line-height: 1.3;
  margin: 0 0 10px;
  font-weight: 600;
}

h3 {
  font-size: 1.05rem;
  margin: 0 0 6px;
  font-weight: 600;
}

.section-lede {
  color: var(--muted);
  margin: 0 0 24px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  border-radius: 8px;
  padding: 18px 20px;
}

.card p, .split p { margin: 0; color: var(--muted); }

.split {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px 32px;
  margin-top: 20px;
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 0;
}

.checklist li {
  position: relative;
  padding: 0 0 14px 28px;
}

.checklist li::before {
  /* A small bookmark, like the one on the logo. */
  content: "";
  position: absolute;
  left: 4px;
  top: 6px;
  width: 10px;
  height: 14px;
  background: var(--bookmark);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 72%, 0 100%);
}

/* Pricing */

.lede-under { margin: 14px 0 0; }

.beta-note {
  margin: 32px 0 0;
  padding: 14px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--bookmark);
  border-radius: 8px;
}

.tiers-section { padding-top: 28px; }

.tiers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 16px;
}

.tier {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  border-radius: 8px;
  padding: 18px 20px 20px;
}

.tier h2 { font-size: 1.25rem; margin: 0; }
.tier p { margin: 0; }
.tier-people { color: var(--muted); }
.tier-price { font-size: 2.2rem; font-weight: 700; line-height: 1.2; margin-top: 12px !important; }
.tier-price span { font-size: 1rem; font-weight: 400; color: var(--muted); }
.tier-per { font-weight: 600; }
.tier-note { color: var(--muted); font-size: 0.925rem; margin: 10px 0 18px !important; flex-grow: 1; }

.save {
  display: inline-block;
  margin-left: 4px;
  padding: 0 7px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 700;
  background: var(--bookmark);
  color: #ffffff;
  white-space: nowrap;
}

.tier .button { text-align: center; }
.button-quiet { background: transparent; color: var(--link); border: 1px solid var(--border); }
.button-quiet:hover { background: var(--code-bg); }
.button-quiet:focus-visible { outline-color: var(--link); }
.button-soon { background: var(--code-bg); color: var(--muted); font-weight: 600; cursor: default; }
button.button { border: 0; font: inherit; font-weight: 700; cursor: pointer; }
button.button-quiet { border: 1px solid var(--border); }
.tier .button + .button { margin-top: 8px; }
#questions .button { margin-top: 10px; }
.thanks { margin-top: 20px; }
.thanks p { margin: 0; }
.thanks p + p { margin-top: 6px; }

.tiers-fine { color: var(--muted); font-size: 0.875rem; margin: 16px 0 0; }

/* Footer */

footer {
  margin-top: 56px;
  border-top: 1px solid var(--border);
  padding: 24px 0 32px;
  font-size: 0.875rem;
  color: var(--muted);
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
}

.legal {
  margin: 12px 0 0;
  font-size: 0.8rem;
}

/* Feature pages (features/*.html): the home page's cards link to them */

.card-link {
  display: block;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.card-link:hover { border-color: var(--accent); box-shadow: 0 4px 14px rgba(0, 0, 0, 0.10); }
.card-link:hover h3 { color: var(--link); }
.card-link:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }

.section-more { margin: -12px 0 20px; font-weight: 600; }

.crumb { margin: 0 0 6px; font-size: 0.9rem; color: var(--hero-muted); }
.crumb a { color: var(--hero-text); }

.feature-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 28px;
}
.feature-nav a {
  padding: 5px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
}
.feature-nav a:hover { border-color: var(--accent); }
.feature-nav a[aria-current="page"] { background: var(--accent); border-color: var(--accent); color: #1c2563; }

.shot { margin: 24px 0 8px; }
.shot a { display: block; }
.shot img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}
.shot figcaption { color: var(--muted); font-size: 0.875rem; margin-top: 10px; }
.shot .shot-dark { display: none; }
:root[data-theme="dark"] .shot .shot-light { display: none; }
:root[data-theme="dark"] .shot .shot-dark { display: block; }

.feature-list { padding-top: 24px; }
.feature-item {
  padding: 16px 0 16px 18px;
  border-left: 3px solid var(--accent);
  margin-bottom: 14px;
  scroll-margin-top: 16px;
}
.feature-item p { margin: 0; color: var(--muted); }
.feature-item:target { background: var(--surface); border-radius: 0 8px 8px 0; }

/* Import from Confluence: how much space a real import saved. */
.savings { padding-top: 24px; scroll-margin-top: 16px; }
.savings > p { color: var(--muted); }
.table-wrap { overflow-x: auto; }
.savings-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-variant-numeric: tabular-nums;
}
.savings-table th, .savings-table td { padding: 10px 14px; border-bottom: 1px solid var(--border); text-align: right; white-space: nowrap; }
.savings-table th:first-child { text-align: left; }
.savings-table thead th { color: var(--muted); font-size: 0.875rem; font-weight: 600; }
.savings-table tbody tr:last-child > * { border-bottom: 0; }
.savings-table tr.total > * { font-weight: 700; }
.savings .muted-note { font-size: 0.875rem; }
@media (max-width: 600px) {
  .savings-table th, .savings-table td { padding: 8px 6px; font-size: 0.875rem; }
  .savings-table th { white-space: normal; }
  .savings-table thead th { font-size: 0.8rem; }
}

@media (max-width: 600px) {
  .hero { padding: 20px 0 40px; }
  .topbar { margin-bottom: 28px; }
  .hero h1 { font-size: 1.6rem; }
  .theme-toggle .label { display: none; }
  .split { grid-template-columns: 1fr; }
}

/* Wide screens. Below 1280px nothing here applies, so phones and laptops look as before.
   Above it the page uses the whole window: the card grids add columns as the window widens
   (about 9 across at 2560px), while paragraphs keep a comfortable line length. */

/* The row of three smaller pictures under the hero's big one. */
.hero-rule { border: 0; border-top: 1px solid rgba(255, 255, 255, 0.25); margin: 8px 0 26px; max-width: 960px; }
.mini-shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 960px; margin-bottom: 26px; }
.shot.mini-shot { margin: 0; }
.shot.mini-shot img { border-color: rgba(255, 255, 255, 0.25); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3); }
.shot.mini-shot figcaption { color: var(--hero-muted); font-size: 0.9rem; margin-top: 8px; }
.shot.mini-shot figcaption a { color: var(--hero-text); font-weight: 600; }
@media (max-width: 600px) {
  .mini-shots { grid-template-columns: 1fr; gap: 18px; }
}

@media (min-width: 1280px) {
  .wrap { max-width: none; padding: 0 clamp(24px, 3vw, 72px); }
  .hero h1 { font-size: 2.5rem; max-width: 1200px; }
  .shot.hero-shot { max-width: 1400px; }
  .hero-rule, .mini-shots { max-width: 1400px; }
  .lede, .demo-note, .setup-note, .section-lede, .beta-note, .doc > *, .feature-page > p { max-width: 860px; }
  .grid { gap: 20px; }
  .tiers, .savings { max-width: 1240px; }
  .feature-page .shot { max-width: 1400px; }
  /* Feature pages: as many columns of features as fit. */
  .feature-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); gap: 0 40px; align-items: start; }
}

/* 4K at 100% Windows scaling: enlarge a little so the print isn't tiny, still leaving room for about 9 cards. */
@media (min-width: 2700px) { :root { zoom: 1.25; } }
@media (min-width: 3300px) { :root { zoom: 1.5; } }
