/* Borago Board's look (boragoboard.com), the user's choice of 2026-11-06: its
   palette, its white header and blue footer, centred section titles on
   alternating bands, and cards with blue titles. Dark follows the system,
   since the site runs no script for a theme switch. */
:root {
  color-scheme: light dark;
  --primary: #2472e5;
  --primary-dark: #1b5cbe;

  /* The primary blue as text: links, card titles, outline buttons, the AI tag.
     The blue itself is 4.35:1 on the light page and 3.2:1 on dark slate, so
     words take a deeper blue in light and a lighter one in dark (WCAG AA). */
  --primary-text: light-dark(#1b5cbe, #60a5fa);
  --accent: #f97316;
  --bg: light-dark(#f8fafc, #0f172a);
  --raised: light-dark(#fff, #1e293b);
  --heading: light-dark(#111827, #f1f5f9);
  --text: light-dark(#1f2937, #e2e8f0);
  --muted: light-dark(#4b5563, #94a3b8);
  --border: light-dark(#e5e7eb, #334155);
  --font: system-ui, -apple-system, "Segoe UI", roboto, "Helvetica Neue", arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}

main {
  flex: 1;
}

a {
  color: var(--primary-text);
}

a:hover {
  color: var(--accent);
}

.container {
  max-width: 72rem;
  margin: 0 auto;
  padding-right: 1.5rem;
  padding-left: 1.5rem;
}

.skip {
  position: absolute;
  top: 0;
  left: -9999px;
  z-index: 100;
  padding: 0.5rem 1rem;
  border: 1px solid var(--border);
  border-radius: 0 0 0.5rem;
  background: var(--raised);
  font-weight: 600;
}

.skip:focus {
  left: 0;
}

/* ---------------------------------------------------------------- header */

.bar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--raised);
  box-shadow: 0 1px 2px rgb(0 0 0 / 6%);
}

.bar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--primary-text);
  font-size: 1.5rem;
  font-weight: 700;
  text-decoration: none;
}

.brand img {
  display: block;
  width: 3rem;
  height: 3rem;
}

.bar nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 2rem;
}

.bar nav a {
  color: var(--text);
  font-weight: 500;
  text-decoration: none;
  transition: color 0.15s;
}

.bar nav a:hover {
  color: var(--accent);
}

.bar nav a.nav-open {
  padding: 0.5rem 1.25rem;
  border-radius: 0.5rem;
  background: var(--primary);
  color: #fff;
  transition: background 0.15s;
}

.bar nav a.nav-open:hover {
  background: var(--accent);
  color: #fff;
}

/* ---------------------------------------------------------------- type */

h1 {
  margin: 0 0 1rem;
  color: var(--heading);
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.2;
}

h2 {
  margin: 2.5rem 0 0.75rem;
  color: var(--heading);
  font-size: 1.4rem;
  font-weight: 700;
}

h3 {
  color: var(--heading);
}

/* ---------------------------------------------------------------- buttons */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 2rem;
  border: 1px solid var(--primary);
  border-radius: 0.5rem;
  background: var(--primary);
  color: #fff;
  font-weight: 500;
  text-decoration: none;
  transition:
    background 0.15s,
    border-color 0.15s,
    color 0.15s;
}

.button:hover {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.button.secondary {
  background: var(--raised);
  color: var(--primary-text);
}

.button.secondary:hover {
  background: var(--raised);
  color: var(--accent);
}

/* A link to a part of the page scrolls there, unless the reader asked for less motion. */
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

/* ---------------------------------------------------------------- home */

/* Short, so the services are the first thing below it. */
.hero {
  padding: 3rem 0 0;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 1.25rem;
}

.hero h1 em {
  color: var(--primary-text);
  font-style: normal;
}

.hero p {
  margin: 0 0 2rem;
  color: var(--muted);
  font-size: 1.2rem;
}

section.band {
  padding: 3rem 0;
}

section.band.first {
  padding-top: 2.5rem;
}

section.alt {
  background: var(--raised);
}

.band h2 {
  margin: 0 0 0.75rem;
  font-size: 1.9rem;
  text-align: center;
}

.band .intro {
  max-width: 40rem;
  margin: 0 auto 2.25rem;
  color: var(--muted);
  text-align: center;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1.5rem;
  counter-reset: step;
}

.step {
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  background: var(--raised);
  counter-increment: step;
}

.step h3 {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  font-weight: 600;
}

.step h3::before {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  content: counter(step);
}

.step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.97rem;
}

.group + .group {
  margin-top: 2rem;
}

.group h3 {
  margin: 0 0 0.75rem;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* The service cards as "Split thumbnail" cards, the user's choice of 2026-11-15, as the app's home
   page has them: the sample split by a line, after on the left and before on the right, sweeping to
   the whole after on hover, the name below, and the description in a "?" tooltip (js/samples.js).
   No border, a 2px shadow in a dark neutral that turns Borago blue at 50% on hover. */
@property --split {
  syntax: "<percentage>";
  inherits: true;
  initial-value: 50%;
}

.scards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Seven a row at most, on a desktop window: the user's words of 2026-11-20, "make services in marketting site 7 in a
   row max". Narrower windows keep the 220px rule above. */
@media (width >= 68rem) {
  .scards {
    grid-template-columns: repeat(7, minmax(0, 1fr));
  }
}

.scard {
  position: relative;
  border-radius: 0.75rem;
  background: var(--raised);
  box-shadow: 0 0 2px light-dark(rgb(15 23 42 / 45%), rgb(0 0 0 / 90%));
  transition: box-shadow 0.15s;
}

.scard:hover {
  box-shadow: 0 0 2px rgb(36 114 229 / 50%);
}

.scard:has(.scard-open:focus-visible) {
  outline: 2px solid var(--primary-text);
  outline-offset: 2px;
}

.scard-open {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border-radius: inherit;
  color: var(--text);
  text-decoration: none;
}

.scard-open:hover {
  color: var(--text);
}

.scard-open:focus-visible {
  outline: none;
}

.scard-name {
  display: flex;
  flex: 1;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.5rem;
  min-height: 2.75rem;
  padding: 0.5rem 2.6rem 0.5rem 0.85rem;
}

.scard-name strong {
  color: var(--primary-text);
  font-weight: 600;
  line-height: 1.4;
}

.help {
  position: absolute;
  right: 0.75rem;
  bottom: 0.69rem;
  display: grid;
  place-items: center;
  width: 1.375rem;
  height: 1.375rem;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg);
  color: var(--muted);
  font: 600 0.75rem/1 var(--font);
  cursor: inherit;
}

.help:hover {
  border-color: var(--primary);
  color: var(--text);
}

.help:focus-visible {
  outline: 2px solid var(--primary-text);
  outline-offset: 2px;
}

/* Over the bottom of the picture, against the card's right edge. */
.tip {
  position: absolute;
  right: 0.5rem;
  bottom: 3rem;
  z-index: 10;
  display: none;
  max-width: calc(100% - 1rem);
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 0.6rem;
  background: var(--raised);
  box-shadow: 0 8px 24px light-dark(rgb(0 0 0 / 12%), rgb(0 0 0 / 45%));
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1.45;
  pointer-events: none;
}

.help:hover + .tip,
.help:focus-visible + .tip,
.scard.tip-open .tip {
  display: block;
}

.scard.tip-closed .tip {
  display: none;
}

/* The picture: --split is where the line is. */
.split {
  --split: 50%;

  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  width: 100%;
  background: var(--border);
  transition: --split 0.6s cubic-bezier(0.32, 0.72, 0, 1);
  user-select: none;
}

.split img,
.split video,
.split .wave {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.split .after {
  position: absolute;
  inset: 0;
  clip-path: inset(0 calc(100% - var(--split)) 0 0);
}

.split .checker {
  background-color: #fff;
  background-image:
    linear-gradient(45deg, #e5e7eb 25%, transparent 25%, transparent 75%, #e5e7eb 75%),
    linear-gradient(45deg, #e5e7eb 25%, transparent 25%, transparent 75%, #e5e7eb 75%);
  background-position:
    0 0,
    8px 8px;
  background-size: 16px 16px;
}

/* An after smaller than its before, Resize's at its true size: drawn at --shown of the picture's size,
   centred on a plain background. */
.split .shown {
  background: var(--border);
}

.split .shown img,
.split .shown video {
  inset: auto;
  top: calc(50% - var(--shown) * 50%);
  left: calc(50% - var(--shown) * 50%);
  width: calc(var(--shown) * 100%);
  height: calc(var(--shown) * 100%);
}

.split .line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--split);
  width: 2px;
  margin-left: -1px;
  background: #fff;
  box-shadow: 0 0 0 1px rgb(0 0 0 / 22%);
  pointer-events: none;
  transition: opacity 0.6s;
}

[data-sweep]:hover .split,
[data-sweep]:focus-within .split {
  --split: 100%;
}

[data-sweep]:hover .line,
[data-sweep]:focus-within .line {
  opacity: 0;
}

.split.sound,
.split.sound .after {
  background: var(--bg);
}

.split.sound .line {
  background: rgb(36 114 229 / 60%);
  box-shadow: none;
}

.wave.before {
  fill: light-dark(#6b7280, #94a3b8);
}

.wave.after {
  fill: var(--primary);
}

.split.none {
  display: grid;
  place-items: center;
  color: var(--muted);
}

.split.none .icon {
  position: static;
}

/* A service page's picture, the 1280 files, with a line a drag or the arrow keys move. */
.compare {
  overflow: hidden;
  margin: 1.5rem 0;
  border-radius: 0.75rem;
  box-shadow: 0 0 2px light-dark(rgb(15 23 42 / 45%), rgb(0 0 0 / 90%));
  cursor: ew-resize;
  touch-action: pan-y;
}

.compare:hover {
  box-shadow: 0 0 2px rgb(36 114 229 / 50%);
}

.compare:focus-visible {
  outline: 2px solid var(--primary-text);
  outline-offset: 2px;
}

.compare[data-sweep]:focus-within .split {
  --split: 50%;
}

.compare[data-sweep]:focus-within .line {
  opacity: 1;
}

.compare.dragging .split {
  transition: none;
}

/* An animated after plays. Its still is for reduced motion. */
.split .still {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .split,
  .split .line {
    transition: none;
  }

  .split video {
    display: none;
  }

  .split .still {
    display: block;
  }
}

/* Where a service runs, as Board's badges: outlined, blue for the cloud. */
.scard-name em,
.where {
  align-self: flex-start;
  width: fit-content;
  margin-top: 0.5rem;
  padding: 0.1rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.8rem;
  font-style: normal;
  font-weight: 600;
  white-space: nowrap;
}

.scard-name em {
  align-self: center;
  margin-top: 0;
  padding: 0 0.5rem;
  font-size: 0.72rem;
}

.scard-name em.ai,
.where.ai {
  border-color: var(--primary-text);
  color: var(--primary-text);
}

.cta {
  text-align: center;
}

.cta p {
  max-width: 40rem;
  margin: 0 auto 1.75rem;
  color: var(--muted);
}

/* ---------------------------------------------------------------- other pages */

.page {
  padding-top: 3rem;
  padding-bottom: 4rem;
}

.page > h1:first-child,
.page > article > h1 {
  font-size: 2.2rem;
}

.lede {
  max-width: 44rem;
  color: var(--muted);
  font-size: 1.2rem;
}

.service,
.app {
  max-width: 46rem;
}

.app {
  margin-top: 1.5rem;
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  background: var(--raised);
}

/* An app that asks for sign-in on the website (SIGNIN_APPS in content.mjs). */
.app .note {
  color: var(--muted);
  font-size: 0.9375rem;
}

.app h2 {
  margin-top: 0;
  color: var(--primary-text);
}

/* A service page's picker and drop target (js/open-in-studio.js). */
.drop {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  margin: 1.5rem 0;
  padding: 1.5rem;
  border: 2px dashed var(--border);
  border-radius: 0.75rem;
  background: var(--raised);
  transition: border-color 0.15s;
}

.drop[hidden],
.drop [hidden] {
  display: none;
}

.drop.over {
  border-color: var(--primary);
}

.drop .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.drop .hint {
  flex: 1 1 10rem;
  margin: 0;
  color: var(--muted);
}

.drop .chosen {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  flex-basis: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.drop .chosen img {
  display: block;
  width: 6rem;
  height: 6rem;
  object-fit: cover;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
}

.drop .chosen .name {
  max-width: 100%;
  padding: 0.4rem 0.75rem;
  overflow-wrap: anywhere;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
}

.drop .note {
  flex-basis: 100%;
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.drop .count {
  flex-basis: 100%;
  margin: 0;
  color: var(--muted);
}

@media (max-width: 30rem) {
  .drop .chosen img {
    width: 4.5rem;
    height: 4.5rem;
  }

  .drop .actions .button {
    flex: 1 1 auto;
    text-align: center;
  }
}

button.button {
  font: inherit;
  font-weight: 500;
  cursor: pointer;
}

.button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.crumb {
  margin: 0 0 0.5rem;
  color: var(--muted);
  font-size: 0.85rem;
}

/* The agreements and notices under /legal/: long text, kept to a reading width. */
.legal {
  max-width: 46rem;
}

.legal h3 {
  margin: 1.75rem 0 0.5rem;
  font-size: 1.1rem;
}

.legal ul {
  padding-left: 1.4rem;
}

.legal li + li {
  margin-top: 0.4rem;
}

.legal a {
  overflow-wrap: anywhere;
}

.legal pre {
  overflow: auto;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  background: var(--raised);
  font-size: 0.85rem;
  white-space: pre-wrap;
}

/* ---------------------------------------------------------------- footer */

.foot {
  margin-top: 2rem;
  padding: 2rem 0;
  background: var(--primary);
  color: #fff;
}

.foot a {
  color: #fff;
}

.foot a:hover {
  color: #ffe3cd;
}

.foot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: 1.5rem 2rem;
  margin-bottom: 2rem;
}

.foot h4 {
  margin: 0 0 0.6rem;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  opacity: 0.85;
}

.foot-grid a {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
  text-decoration: none;
}

.foot-grid a:hover {
  text-decoration: underline;
}

.foot-bottom {
  padding-top: 1.25rem;
  border-top: 1px solid rgb(255 255 255 / 25%);
  text-align: center;
}

.foot-bottom p {
  margin: 0 0 0.4rem;
}

.foot-bottom .quiet {
  font-size: 0.9rem;
  opacity: 0.85;
}

/* ---------------------------------------------------------------- narrow */

@media (width <= 48rem) {
  /* The links wrap under the brand here, too tall a bar to keep on screen. */
  .bar {
    position: static;
  }

  .bar-inner {
    padding-top: 0.6rem;
    padding-bottom: 0.6rem;
  }

  .brand {
    font-size: 1.25rem;
  }

  .brand img {
    width: 2.5rem;
    height: 2.5rem;
  }

  .bar nav {
    gap: 0.5rem 1.25rem;
  }
}

@media (width <= 40rem) {
  .container {
    padding-right: 1rem;
    padding-left: 1rem;
  }
}

/* ---------------------------------------------------------------- guides */

/* The guides hub (/guides/): the service cards' look, wider, with the guide's description under its name and what a
   run costs in the badge. Four a row at most, so the description has room. */
.scards.gcards {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr));
  gap: 1.25rem;
}

@media (width >= 68rem) {
  .scards.gcards {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.gcard-text {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding-bottom: 0.85rem;
}

.gcard .scard-name {
  flex: none;
  justify-content: space-between;
  flex-wrap: nowrap;
  align-items: flex-start;
  padding: 0.75rem 0.85rem 0.25rem;
}

.gcard .scard-name em {
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.gcard-desc {
  padding: 0 0.85rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}
