/*
 * Bridget design tokens and shared components.
 *
 * Single source of truth for all three pages. The previous per-page style
 * blocks had accreted eight border radii and nine body-copy sizes between
 * them; everything here is a deliberate scale, and pages are expected to
 * compose these primitives rather than introduce new values.
 *
 * Two rules worth keeping:
 *   - A surface gets a border OR a shadow, never both.
 *   - Numbers, identifiers and durations are set in mono with tabular figures,
 *     because they are system output and should read that way.
 */

:root {
  color-scheme: light;

  /* Neutrals: cool, near-achromatic, faint green cast so the accent belongs. */
  --n-0:   #ffffff;
  --n-25:  #fafbfa;
  --n-50:  #f3f6f4;
  --n-100: #e7ebe9;
  --n-200: #d3dad6;
  --n-300: #aeb9b4;
  --n-400: #7d8a84;
  --n-500: #5c6862;
  --n-600: #3c4741;
  --n-800: #19211d;
  --n-900: #0e1512;
  --n-950: #080c0a;

  --accent:     #0f7a55;
  --accent-ink: #0a5b3f;
  --accent-lo:  #eef6f2;
  --lime:       #c9f24d;
  --danger:     #c8483b;
  --danger-lo:  #fbeeec;

  --ink:   var(--n-800);
  --muted: var(--n-500);
  --line:  var(--n-100);
  --paper: var(--n-25);

  /* Ink that reads on an accent fill. A named token because it is the one place
     a literal white was defensible, and in dark the fill is bright enough that
     white stops being the answer. */
  --on-accent: #ffffff;

  /* Status families. Three roles each, because that is what a status needs:
     something to fill with, an edge, and an ink that survives on the fill.
     `--x` is the one to reach for when the status is only a word or a dot.

     These were fifty literals in the operator console — Tailwind's amber and
     red ramps, pasted. Named here because a second theme has to answer for all
     of them, and because "the amber a repair uses" is a decision worth having
     in one place even without a second theme. */
  --ok:        #15803d;
  --ok-ink:    #065f46;
  --ok-bg:     #ecfdf5;
  --ok-edge:   #a7f3d0;

  --warn:       #925e07;
  --warn-solid: #d97706;
  --warn-ink:   #7c2d12;
  --warn-bg:    #fef3c7;
  --warn-edge:  #fde68a;

  --bad:       #b42318;
  --bad-solid: #b91c1c;
  --bad-ink:   #991b1b;
  --bad-bg:    #fef2f2;
  --bad-edge:  #fecaca;

  /* Derived washes, so a tint follows its family into the other theme instead
     of staying the alpha of a colour that is no longer there. */
  --accent-edge: color-mix(in srgb, var(--accent) 28%, transparent);
  --accent-ring: color-mix(in srgb, var(--accent) 22%, transparent);
  --accent-wash: color-mix(in srgb, var(--accent) 5%, transparent);
  --warn-edge-soft: color-mix(in srgb, var(--warn) 26%, transparent);
  --warn-wash: color-mix(in srgb, var(--warn) 6%, transparent);
  --warn-rule: color-mix(in srgb, var(--warn) 16%, transparent);

  --shadow-card: 0 1px 2px rgba(16, 24, 40, .04);
  --shadow-tile: 0 1px 3px rgba(15, 23, 42, .07);
  --shadow-pop:  0 12px 28px rgba(15, 23, 42, .12);

  /* The chip a vendor's logo sits on. Its own token because the logos are PNGs
     with transparency and their ink is fixed — SAP's blue is SAP's blue — so in
     dark the chip stays light rather than the mark turning invisible. Which
     means the initials fallback needs an ink that belongs to the chip too. */
  --logo-chip: var(--n-25);
  --logo-chip-ink: var(--n-500);

  /* Two radii. Controls are small, surfaces are large. */
  --r-sm: .5rem;
  --r-lg: 1rem;
  --r-full: 999px;

  /* One elevation, used sparingly for the single lifted surface per page. */
  --lift: 0 1px 2px rgba(8, 20, 15, .04), 0 24px 48px -12px rgba(8, 20, 15, .14);

  /* Four type sizes plus a micro label size. Nothing else. */
  --t-display: clamp(2.125rem, 4.6vw, 3.5rem);
  --t-h2:      clamp(1.5rem, 2.7vw, 2.125rem);
  --t-h3:      1.125rem;
  --t-body:    1rem;
  --t-small:   .875rem;
  --t-micro:   .75rem;

  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Dark ----------------------------------------------------------------------
 * Opt-in by attribute rather than by `prefers-color-scheme`, so a page has to
 * ask. The operator console asks; the marketing pages do not, and inherit
 * nothing from this block until someone decides they should.
 *
 * Only the palette is restated. Every size, radius and font above is shared,
 * which is the whole argument for having had tokens in the first place.
 *
 * The neutral ramp is not inverted, it is re-read. Light treats ascending
 * numbers as "darker"; the useful reading is "further from the surface", and in
 * dark that means lighter. So --n-50 lands *above* --n-0 here — a recessed fill
 * inside a card is lighter than the card, the way depth works in a dark room.
 * --n-25 is the exception both ways: it is the page behind the cards, and a
 * page is always the quieter surface.
 */
:root[data-theme="dark"] {
  color-scheme: dark;

  --n-0:   #161c1e;
  --n-25:  #101617;
  --n-50:  #1d2528;
  --n-100: #263033;
  --n-200: #313c40;
  --n-300: #47555a;
  --n-400: #8c9a95;
  --n-500: #a8b5b0;
  --n-600: #c8d3ce;
  --n-800: #e9efec;
  --n-900: #f4f8f6;
  --n-950: #ffffff;

  /* Bright enough to carry a fill on a dark surface, which flips the ink on it
     from white to near-black. --accent-ink is the hover state and so has to move
     *away* from the surface, meaning lighter here and darker in light. */
  --accent:     #3ecf8e;
  --accent-ink: #6ee7b7;
  --accent-lo:  #10241d;
  --on-accent:  #04231a;
  --danger:     #f87171;
  --danger-lo:  #2c1414;

  --ok:        #4ade80;
  --ok-ink:    #86efac;
  --ok-bg:     #0e2a1e;
  --ok-edge:   #1d5138;

  --warn:       #e3b341;
  --warn-solid: #f59e0b;
  --warn-ink:   #f8d78a;
  --warn-bg:    #2c2109;
  --warn-edge:  #5c4310;

  --bad:       #f87171;
  --bad-solid: #ef4444;
  --bad-ink:   #fca5a5;
  --bad-bg:    #2c1414;
  --bad-edge:  #5e2626;

  /* Shadows do almost nothing on a dark surface — there is no light for them to
     take away. They stay, deeper, for the one popover that needs to float, and
     lightness carries the rest of the depth. */
  --lift: 0 1px 2px rgba(0, 0, 0, .5), 0 24px 48px -12px rgba(0, 0, 0, .6);
  --shadow-card: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow-tile: 0 1px 3px rgba(0, 0, 0, .45);
  --shadow-pop:  0 12px 28px rgba(0, 0, 0, .55);

  --logo-chip: #eceff0;
  --logo-chip-ink: #5c6862;
}

* { box-sizing: border-box; }

/* The global scale. Every size on every page is in rem, so this is the one knob
 * that resizes the whole product, and a percentage rather than a pixel value so
 * it still inherits a visitor's own browser font-size preference.
 *
 * Media query conditions are the exception: px there cannot reference this, and
 * rem there resolves against the initial 16px rather than ours. Their widths are
 * pre-scaled by the same factor, so changing this means changing them too.
 */
html { font-size: 110%; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

/* Short laptops fall back to the unscaled ramp: the demo's task cards, inputs and
 * run button are tuned to clear a 768px fold together, and losing the run button
 * costs more than the extra 10% buys. Phones are excluded — they are short too,
 * but they scroll a single column and have no fold to protect. */
@media (max-height: 790px) and (min-width: 700px) {
  html { font-size: 100%; }
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: var(--t-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button, input, select, textarea { font: inherit; color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: var(--accent); }
img { max-width: 100%; }

.shell { width: min(72.5rem, calc(100% - 3rem)); margin: 0 auto; }
.shell-narrow { width: min(55rem, calc(100% - 3rem)); margin: 0 auto; }

/* Typography ------------------------------------------------------------- */

h1, h2, h3 { margin: 0; font-weight: 660; letter-spacing: -.035em; line-height: 1.08; }
h1 { font-size: var(--t-display); letter-spacing: -.045em; line-height: 1.02; }
h2 { font-size: var(--t-h2); }
h3 { font-size: var(--t-h3); letter-spacing: -.02em; }
p { margin: 0; }

.lede { color: var(--muted); font-size: var(--t-body); line-height: 1.6; }
.small { font-size: var(--t-small); }
.muted { color: var(--muted); }

.label {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--mono);
  /* Not --t-small: at 14px these read as captions under a 37px heading rather
     than as the section marker they are. Set here so the other eleven consumers
     of --t-small stay where they are. */
  font-size: 1rem;
  font-weight: 500;
  /* Tracking eases off as the size goes up: .1em was opening the caps too far
     apart once these were no longer micro-sized. */
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
}

/* Numbers are system output, so they are always mono and tabular. */
.num, td.num, .stat-value, .mono {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}

.dot {
  width: .4375rem; height: .4375rem; border-radius: var(--r-full);
  background: #27b57a; box-shadow: 0 0 0 4px rgba(39, 181, 122, .16);
}

/* Controls --------------------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 2.875rem; padding: 0 1.125rem;
  border: 1px solid transparent; border-radius: var(--r-sm);
  font-size: var(--t-small); font-weight: 600; letter-spacing: -.01em;
  text-decoration: none; cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.btn-primary { background: var(--accent); color: var(--n-0); }
.btn-primary:hover { background: var(--accent-ink); }
.btn-primary:disabled { opacity: .55; cursor: wait; }
.btn-secondary { background: var(--n-0); border-color: var(--n-200); color: var(--ink); }
.btn-secondary:hover { border-color: var(--n-300); background: var(--n-50); }
.btn-quiet { background: transparent; color: var(--accent); }
.btn-quiet:hover { background: var(--accent-lo); }
.btn-sm { min-height: 2.25rem; padding: 0 .8125rem; font-size: var(--t-micro); }
.mobile-top-cta { display: none; }

.link-quiet { color: var(--muted); font-size: var(--t-small); text-decoration: none; }
.link-quiet:hover { color: var(--ink); }
/* A link inside running prose: underlined so it is findable, inheriting color
   so it does not fight the sentence around it. */
.link-inline { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: var(--n-400); }
.link-inline:hover { color: var(--ink); text-decoration-color: currentColor; }

/* Surfaces --------------------------------------------------------------- */

.panel { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--n-0); }
.panel-lift { border: 0; border-radius: var(--r-lg); background: var(--n-0); box-shadow: var(--lift); }
.inset { border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--n-25); }

/* Sections. Tonal alternation is the page's rhythm: a wall of white cards
   gives every section identical weight, which is how the argument got lost. */

.band { padding: clamp(3.5rem, 7vw, 5.75rem) 0; }
.band-tight { padding: clamp(2.125rem, 4vw, 3.25rem) 0; }

/* The third surface, between paper and the dark band. Needed because the light
   sections ran together: with only spacing between them, where one argument
   ended and the next began was left to the reader to work out. The tint alone
   is too faint at this contrast to register as an edge, so it is ruled. */
.band-alt {
  background: var(--n-50);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.band-dark {
  color: #e8efec;
  background: var(--n-900);
  background-image:
    radial-gradient(60rem 30rem at 12% -10%, rgba(201, 242, 77, .07), transparent),
    radial-gradient(50rem 26rem at 88% 0%, rgba(15, 122, 85, .16), transparent);
}
.band-dark h1, .band-dark h2, .band-dark h3 { color: #fff; }
.band-dark .lede, .band-dark .muted { color: rgba(232, 239, 236, .62); }
.band-dark .label { color: var(--lime); }
.band-dark .panel { border-color: rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .022); }
.band-dark .btn-primary { background: var(--lime); color: #1a2607; }
.band-dark .btn-primary:hover { background: #d7f871; }
.band-dark .btn-secondary { background: transparent; border-color: rgba(255, 255, 255, .22); color: #fff; }
.band-dark .btn-secondary:hover { background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .34); }
.band-dark a { color: var(--lime); }

/* The measure belongs on the paragraph, not the block. Capping the whole head at
   a body measure was breaking section headings across two lines with a stub on
   the second while two-thirds of the row sat empty — display type carries a
   longer line comfortably, running text does not.
   
   28em is set by the longest heading rather than picked: the benchmark line needs
   26.2em and the how-it-works line 27.1em, so 26em was still leaving both with a
   stub on a second line while roughly 300px of the row sat empty. Nothing on the
   page exceeds 28em, and the row is 34em at 1440, so this stays a cap rather than
   a licence. Check it against the longest heading before adding a longer one. */
.band-head { margin: 0 0 clamp(1.75rem, 3vw, 2.75rem); }
.band-head h2 { margin: .875rem 0 .75rem; max-width: 28em; text-wrap: balance; }
/* Matches the heading's cap so a one-sentence deck sits on one line — there is
   no return sweep to shorten, which is what a reading measure protects. The
   balance is not optional at this width: the longer decks still need two lines,
   and unbalanced they fill the first and leave a stub on the second. */
.band-head .lede { max-width: 55.25rem; text-wrap: balance; }
.band-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.band-head.center h2, .band-head.center .lede { margin-left: auto; margin-right: auto; }

/* Nav -------------------------------------------------------------------- */

.nav {
  height: 4.25rem; display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
/* Larger than the links to its right, which it was not: at --t-small the name of
   the product and a link to the pricing page carried identical weight, and the
   lockup read as one more nav item that happened to be first. */
.brand {
  display: inline-flex; align-items: center; gap: .625rem;
  color: inherit; text-decoration: none;
  font-size: 1.12rem; font-weight: 640; letter-spacing: -.02em;
}
/* Proportional rather than absolute, so the mark survives being resized: its
   radius and dot were pixel values tuned to a 22px tile, and growing the tile
   alone shrank the dot and squared off the corners. */
.brand-mark {
  display: block; width: 1.8rem; aspect-ratio: 82 / 72.8; flex: none; margin-inline-end: -.1rem;
  transform: translateY(-2px);
  background: url('/logos/bridget-regular-smile-black-nav.svg?v=1') center / contain no-repeat;
}
:root[data-theme="dark"] .brand-mark {
  background: url('/logos/bridget-regular-smile-white-nav.svg?v=1') center / contain no-repeat;
}
/* Attribution belongs with the wordmark, not in the footer where it was: for a
   product nobody has heard of, who stands behind it is the fastest credential
   it has, and testers reached the footer only after deciding. Quieter than the
   name and behind a hairline, so it reads as attribution rather than as part of
   the name itself. */
.brand-by {
  display: inline-flex; align-items: center; gap: .3125rem;
  padding-left: .6875rem; border-left: 1px solid var(--line);
  color: var(--muted); font-size: var(--t-micro); font-weight: 500; letter-spacing: 0;
}
.brand-by img { display: block; width: auto; height: 1.0625rem; }
.nav-right { display: flex; align-items: center; gap: 1.25rem; }

/* Stats: replaces the pill rows, which carried almost no information. */

.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.stat { padding: 1.125rem 1.25rem; background: var(--n-0); }
/* Naming the measure separates it from the sentence explaining it: without a
   name, two of these are bare percentages and the reader has to parse prose to
   learn which is which. Set in the same small caps as the coverage band's
   lead-in, since both are labels for the row they sit in. */
/* n-400 at 11px measured 3.6:1 on white, under the 4.5:1 small-text minimum;
   n-500 at 13.2px is 5.8:1. */
.stat-name { color: var(--n-500); font-size: .75rem; letter-spacing: .09em; text-transform: uppercase; }
.stat-value { margin-top: .3125rem; font-size: 1.5625rem; font-weight: 600; letter-spacing: -.03em; }
/* Mono suits a bare figure but stretches a word into something that reads like
   a terminal echo, so a spelled-out unit drops back to the text face. */
/* A spelled-out unit set at the numeral's size competes with it and wraps to a
   second line on narrower cards, so it is sized to read as a unit instead. */
.stat-value .unit { font-family: var(--sans); font-size: .62em; font-weight: 550; letter-spacing: -.01em; }
.stat-label { margin-top: .25rem; color: var(--muted); font-size: var(--t-micro); line-height: 1.45; }
.band-dark .stat-name { color: rgba(255, 255, 255, .5); }
.band-dark .stats { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .1); }
.band-dark .stat { background: transparent; }
/* Coverage band closing a stats card. It occupies space the shorter grid column
   was already wasting, so naming the supported systems here costs no page
   height — and keeps them out of the text column, which is the busy one. */
/* Gap and mark heights trade against each other: the row has one line of width
   to spend, so the marks are sized well below their legibility ceiling to buy
   the space between them. Packed tight they read as a logo dump; spaced out
   they read as a considered list. The gap is fluid because a fixed one wide
   enough to look deliberate at 1440 orphans the last item onto a second line at
   narrower widths. Between roughly 1000 and 1200 the "+ 55 more" link does drop
   to a second line; it reads as a footnote there, which is the better failure. */
.mark-band { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem clamp(.75rem, 2vw, 1.5rem); padding: .75rem 1.25rem; background: var(--n-50); }
.mark-band .cap { color: var(--n-500); font-size: .65625rem; letter-spacing: .09em; text-transform: uppercase; }
.mark-band .mark { color: var(--n-500); font-weight: 750; font-size: .8125rem; letter-spacing: .03em; }
/* Heights are per brand, not uniform. These marks carry their letterforms very
   differently — Oracle is a bare wordmark so its box is its cap height, while
   Workday's arc and Coupa's flower sit above theirs and SAP's letters fill only
   half its tile — so equal boxes would not read as equal weight. Tuned by eye
   against the band at real size. Full color rather than a uniform gray: at
   these sizes desaturating costs the recognition that is the whole point of
   using marks instead of typographic wordmarks. */
.mark-band img.mark { display: block; width: auto; opacity: .92; }
.mark-band img.mark[data-mark="sap"] { height: .8125rem; }
.mark-band img.mark[data-mark="oracle"] { height: .5rem; }
.mark-band img.mark[data-mark="workday"] { height: 1rem; }
.mark-band img.mark[data-mark="coupa"] { height: .6875rem; }
/* Tallest of the set: the cloud is a container rather than a wordmark, so its
   lettering is only about a third of its height. */
.mark-band img.mark[data-mark="salesforce"] { height: 1.0625rem; }
/* Closes the row so five marks do not read as five supported systems. Set in
   the caption's own type rather than as a mark, so it reads as the list
   continuing rather than as a brand whose image failed to load — and underlined
   because a count with nothing behind it is worse than no count at all. */
.mark-band .mark-more {
  color: var(--n-500); font-size: .65625rem; letter-spacing: .09em; text-transform: uppercase;
  white-space: nowrap; text-decoration: none; border-bottom: 1px solid var(--n-300);
}
.mark-band .mark-more:hover { color: var(--ink); border-bottom-color: var(--n-500); }
.band-dark .mark-band { background: rgba(255, 255, 255, .06); }
.band-dark .mark-band .mark-more { color: rgba(255, 255, 255, .62); border-bottom-color: rgba(255, 255, 255, .3); }
.band-dark .mark-band .cap { color: rgba(255, 255, 255, .5); }
.band-dark .mark-band .mark { color: rgba(255, 255, 255, .74); }

/* Data tables. Magnitude is encoded as a fill behind the cell so the gap
   between 2% and 98% is visible rather than something to be worked out. */

.table-card { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--n-0); overflow: hidden; }
.band-dark .table-card { border-color: rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .022); }
.table-card + .table-card { margin-top: 1rem; }
.table-head { padding: 1.125rem 1.375rem 1rem; border-bottom: 1px solid var(--line); }
.band-dark .table-head { border-color: rgba(255, 255, 255, .09); }
.table-head h3 { font-size: var(--t-h3); font-weight: 640; letter-spacing: -.01em; }
/* The evidence tables sit under the matrix and name a task rather than framing the
   section, so they stay a step down. */
.table-head h4 { font-size: var(--t-small); font-weight: 640; }
.table-head p { margin-top: .25rem; color: var(--muted); font-size: var(--t-micro); }
/* --muted is a light-background gray. Inherited onto a dark band it measured
   3.0:1, which put the column headers and these sub-descriptions below AA — and
   made the labels identifying whose column is whose the faintest text in the
   table. Every dark-band use of it needs the same correction, which is why these
   are grouped rather than patched where each one was found. */
.band-dark .table-head p,
.band-dark .footnote,
.band-dark .video-row p { color: rgba(232, 239, 236, .62); }
.table-scroll { overflow-x: auto; }

table { width: 100%; border-collapse: collapse; font-size: var(--t-small); }
thead th {
  padding: .75rem 1.375rem; text-align: left; white-space: nowrap;
  font-family: var(--mono); font-size: var(--t-micro); font-weight: 500;
  letter-spacing: .09em; text-transform: uppercase; color: var(--muted);
  border-bottom: 1px solid var(--line);
}
.band-dark thead th { border-color: rgba(255, 255, 255, .09); color: rgba(232, 239, 236, .62); }
tbody th { padding: .8125rem 1.375rem; text-align: left; font-weight: 550; }
tbody td { padding: .8125rem 1.375rem; text-align: left; }
tbody tr + tr th, tbody tr + tr td { border-top: 1px solid var(--line); }
.band-dark tbody tr + tr th, .band-dark tbody tr + tr td { border-top-color: rgba(255, 255, 255, .07); }

/* --v is the fill width, set inline per cell from the value it represents.
   The track matters: without it a 2% fill reads as an empty cell rather than
   as a bar that is nearly at zero. */
td.bar {
  background-image: linear-gradient(to right, var(--bar) 0 var(--v, 0%), transparent var(--v, 0%));
  background-repeat: no-repeat;
  background-color: rgba(255, 255, 255, .03);
  box-shadow: inset 1px 0 0 rgba(255, 255, 255, .06);
  --bar: rgba(255, 255, 255, .11);
}
td.bar.poor { --bar: rgba(200, 72, 59, .3); color: #ffb3aa; }
.col-win { background-color: rgba(201, 242, 77, .06); }
td.col-win { --bar: rgba(201, 242, 77, .22); color: #eaffb0; font-weight: 600; }
thead th.col-win { color: var(--lime); }

/* Per-cell verdicts, decoupled from which column is ours. The benchmark matrix
   needs a verdict on every cell rather than one winning column, because its
   argument is that each incumbent is strong exactly where the other is weak —
   and that one row is ours to lose. `col-ours` tints the column so the reader
   knows whose it is without that tint claiming the row. */
.col-ours { background-color: rgba(201, 242, 77, .06); }
thead th.col-ours { color: var(--lime); }
td.v-good { color: #eaffb0; font-weight: 600; }
/* The wash, not the text color, is what makes the failures findable: at 10:1 the
   pink already passed contrast comfortably, but it sat at weight 400 against the
   600 of the successes, so the broken cells were rendering lighter than the
   working ones. Weight matched and a background added, the inversion — RPA's
   reds low, Computer Use's high — is legible before a word is read. */
td.v-bad { color: #ffb3aa; font-weight: 600; background-color: rgba(200, 72, 59, .11); }

/* Equal-width value columns, so a bar's length is comparable across columns
   rather than a function of how wide its header text happens to be. */
.table-even thead th:not(:first-child) { width: 22%; }
.table-capabilities thead th:first-child { width: 34%; }
.table-capabilities thead th:not(:first-child) { width: 22%; }
.table-compare thead th:first-child { width: 40%; }
.table-compare thead th:not(:first-child) { width: 30%; }

.footnote { margin-top: 1.25rem; color: var(--muted); font-size: var(--t-small); line-height: 1.65; }
.footnote + .footnote { margin-top: .75rem; }
.footnote strong { color: inherit; font-weight: 600; }
.footnote-mark { font-size: .65em; line-height: 0; vertical-align: super; }
/* The mark is a promise that an explanation exists; on a phone the note it refers
   to is several screens away, so it has to be a way of getting there. */
.footnote-mark a { color: inherit; text-decoration: none; }
.footnote-mark a:hover, .footnote-mark a:focus-visible { color: var(--lime); }
.footnote { scroll-margin-top: 5rem; }

.callout {
  display: flex; gap: .625rem; padding: .75rem 1rem;
  border: 1px solid rgba(201, 242, 77, .26); border-radius: var(--r-sm);
  background: rgba(201, 242, 77, .07);
  font-size: var(--t-small); line-height: 1.5;
}

/* Disclosure ------------------------------------------------------------- */

details summary {
  cursor: pointer; list-style: none;
  font-size: var(--t-small); font-weight: 600; color: var(--accent);
}
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "  +"; font-family: var(--mono); }
details[open] summary::after { content: "  −"; }
.band-dark details summary { color: var(--lime); }

footer.site {
  padding: 1.625rem 0 2.75rem; border-top: 1px solid var(--line);
  color: var(--muted); font-size: var(--t-micro);
}

/* Under 792px the nav sheds its text links, so without this the rest of the
   site is unreachable from a phone on any page a visitor might land on from
   search. Shown at every width rather than only the narrow one: a second path
   to Pricing or Security is what a footer is for, and one row of links behaves
   the same everywhere. Left-aligned under the prose footers, centered under the
   centered ones — see the footer rule on the page in each case. */
.foot-nav {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 0 1.25rem; margin-bottom: .75rem;
}
.foot-nav a {
  padding: .375rem 0; color: var(--muted); font-size: var(--t-small); text-decoration: none;
}
.foot-nav a:hover { color: var(--ink); }
/* The page you are on stays in the row — removing it would shift the others
   between pages — but reads as a label rather than somewhere to go. */
.foot-nav a[aria-current="page"] { color: var(--ink); }
footer.site .foot-nav { justify-content: flex-start; }

.hidden { display: none !important; }
.nb { white-space: nowrap; }
.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

@media (max-width: 792px) {
  .shell, .shell-narrow { width: calc(100% - 2rem); }
  .nav { height: 3.625rem; }
  /* Where the nav carries a CTA, the text links wrap into the brand at this
     width and the CTA is the only item worth the space. Navs without a CTA
     keep their links, since they are the only way out of the page. */
  .nav-right:has(.btn) .link-quiet { display: none; }
  .nav-right .mobile-top-cta { display: inline-flex; }
  .nav-right { gap: .875rem; }
  .stats { grid-template-columns: 1fr; }
  thead th, tbody th, tbody td { padding-left: 1rem; padding-right: 1rem; }
}

/* Four columns of numbers cannot hold a phone's width, and the horizontal swipe
   that used to compensate put the one column worth reading — ours — off the
   right edge with nothing hinting it was there. Each row becomes a card
   instead: the row label as its heading, then one line per approach. Cells
   carry their column name in data-col, since the header row is gone. */
@media (max-width: 616px) {
  .table-scroll { overflow-x: visible; }
  .table-card table, .table-card tbody, .table-card tr, .table-card td { display: block; }
  .table-card thead { display: none; }

  .table-card tbody tr { padding: .9375rem 1rem 1rem; }
  .table-card tbody tr + tr { border-top: 1px solid rgba(255, 255, 255, .07); }
  .table-card tbody tr + tr th, .table-card tbody tr + tr td { border-top: 0; }
  .table-card tbody th { display: block; padding: 0 0 .625rem; font-size: var(--t-small); }

  .table-card tbody td {
    display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
    padding: .5rem .625rem; border-radius: var(--r-sm);
  }
  .table-card tbody td + td { margin-top: .25rem; }
  .table-card tbody td::before {
    content: attr(data-col);
    color: var(--muted); font-family: var(--mono); font-size: var(--t-micro);
    letter-spacing: .06em; text-transform: uppercase;
  }
  /* Our row stays last, where the column sits on desktop — the comparison reads
     the same way in both layouts, and the highlighted value closes the card. */
  .table-card tbody td.col-win::before,
  .table-card tbody td.col-ours::before { color: var(--lime); }
  /* The inset rule drew a column divider that means nothing once the cells are
     stacked; the bar fill itself still carries the magnitude. */
  .table-card td.bar { box-shadow: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
