/*
 * Sorivelo website (handoff 5.19, design/Website.dc.html).
 *
 * Built on the app's tokens: sv/tokens.css, sv/type.css (fonts) and
 * sv/base.css (focus ring, reduced motion) are copies of cmd/web/static/sv,
 * refreshed by `make website`. Never edit them here.
 *
 * Colors the app has no token for live in the --web-* block below, the only
 * place in website/ with raw color values.
 */
:root {
  --web-max: 1200px; /* content width */
  --web-gutter: 24px;
  --web-header-h: 86px; /* the design's header: 22px padding around the 42px trial button */
  --web-dot-grid: 22px;
  --web-dot: rgba(255, 255, 255, .07);
  --web-on-dark-08: rgba(255, 255, 255, .08); /* chip and ghost button fill on night */
  --web-on-dark-14: rgba(255, 255, 255, .14);
  --web-on-dark-28: rgba(255, 255, 255, .28); /* ghost button border */
  --web-kicker-text: #D9CEF9;
  --web-lead-text: #4A4458; /* large lead paragraphs and step bodies */
  --web-placeholder-bg: #FFF1C7; /* [OWNER FILLS THIS IN] */
  --web-placeholder-text: #6B4A00;
  --web-shot-shadow: 0 40px 100px rgba(0, 0, 0, .45), 0 0 0 1px rgba(255, 255, 255, .08);
  --web-radius-cta: 12px;
  --web-radius-step: 16px;
  --web-radius-shot: 18px;
  --web-radius-stage: 24px; /* the tinted stage behind a product picture */
  --web-light-hover: #F6F4F9; /* hover on white pills and outline buttons */
  --web-stage-bg: #EFEBF8;
  --web-mini-shadow: 0 1px 2px rgba(27, 20, 38, .04), 0 18px 40px rgba(27, 20, 38, .08);
  --web-drag-shadow: 0 10px 22px rgba(27, 20, 38, .14);
  --web-won-border: #9ED4B8;
  --web-won-bg: #F1FAF5;
  --web-checkbox-border: #BDB6C9;
  --web-warn-bg: #FFF8EE; /* context note in an amber wash */
  --web-warn-border: #F6DFC0;
  --web-warn-text: #6B3A00;
  --web-off-day: #9A7BEA; /* time off: approved days */
  --web-pending-day: #E3DAFB; /* time off: pending days, striped */
  --web-ai-card: #251C33; /* cards on the night band */
  --web-check-on-dark: #7ED3A6;
  --web-quote-bg: #FFFBEB; /* quote cards that still hold placeholders */
  --web-quote-border: #D6C27A;
  --web-radius-plan: 18px; /* quote and pricing cards */
  --web-radius-closing: 28px;
  --web-segment-shadow: 0 1px 3px rgba(27, 20, 38, .12); /* the selected half of the billing switch */
}

@media (max-width: 480px) {
  :root {
    --web-gutter: 20px;
  }
}

/* The hero headline is Geist 800. sv/type.css declares Geist for 400 to 700
   (all the app uses); the file itself is variable up to 900, so this face
   lets the same file draw 800 instead of stopping at 700. */
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../sv/fonts/geist-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---- Page ---- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-padding-top: var(--space-4);
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
}

.site {
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

.site a:hover {
  color: var(--link-hover);
}

/* The focus ring (2px --focus, 2px offset) comes from sv/base.css.
   <main> takes focus from the skip link only */
main:focus {
  outline: none;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  flex: none;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.wrap {
  width: 100%;
  max-width: var(--web-max);
  margin: 0 auto;
  padding: 0 var(--web-gutter);
}

.skip-link {
  position: absolute;
  top: var(--space-2);
  left: var(--space-2);
  z-index: 20;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-control);
  background: var(--surface);
  color: var(--ink);
  font-weight: 600;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

/* Owner placeholders: stay visible until the real text replaces them */
.ph {
  display: inline-block;
  padding: 0 6px;
  border-radius: var(--radius-kbd);
  background: var(--web-placeholder-bg);
  color: var(--web-placeholder-text);
  font-family: var(--font-mono);
  font-size: .85em;
  font-weight: 500;
}

/* ---- Shared type ---- */
.eyebrow {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--violet);
}

.h2 {
  margin: 0;
  font-size: clamp(32px, 4.2vw, 52px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.lead {
  margin: 0;
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.5;
  color: var(--web-lead-text);
  text-wrap: pretty;
}

/* ---- Calls to action ---- */
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: var(--control-cta);
  padding: 0 var(--space-6);
  border: 1px solid transparent;
  border-radius: var(--web-radius-cta);
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--motion-fast), border-color var(--motion-fast);
}

.site .cta-primary,
.site .cta-primary:hover {
  color: var(--surface);
}

.cta-primary {
  background: var(--violet);
}

.cta-primary:hover {
  background: var(--violet-press);
}

.site .cta-ghost,
.site .cta-ghost:hover {
  color: var(--surface);
}

.cta-ghost {
  background: transparent;
  border-color: var(--web-on-dark-28);
}

.cta-ghost:hover {
  background: var(--web-on-dark-08);
}

.cta-small {
  min-height: 42px;
  padding: 0 18px;
  font-size: 15px;
}

/* ---- Header (on the night band, shared with the hero) ---- */
.site-header,
.hero {
  position: relative;
  background-color: var(--night);
  background-image: radial-gradient(var(--web-dot) 1px, transparent 1px);
  background-size: var(--web-dot-grid) var(--web-dot-grid);
  color: var(--surface);
}

.site-header {
  z-index: 10;
}

/* The hero's dots carry on the header's grid, with no seam between them */
.hero {
  background-position: 0 calc(-1 * var(--web-header-h));
}

.site-header-row {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: var(--web-header-h);
}

.site .site-brand {
  font-size: 32px;
  line-height: 1.2;
  color: var(--surface);
  text-decoration: none;
}

.site-menu {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 28px;
}

.site-nav {
  flex: 1;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site .site-nav a,
.site .site-signin {
  color: var(--night-text);
  font-size: 15px;
  text-decoration: none;
}

.site .site-nav a:hover,
.site .site-signin:hover {
  color: var(--surface);
}

.site-signin {
  padding: 0 10px;
  margin-right: -18px; /* the design keeps Sign in 10px from the trial button */
}

.menu-button {
  display: none;
  align-items: center;
  justify-content: center;
  width: var(--control-lg);
  height: var(--control-lg);
  padding: 0;
  border: 1px solid var(--web-on-dark-14);
  border-radius: var(--radius-control);
  background: transparent;
  color: var(--surface);
  cursor: pointer;
}

.menu-button:hover {
  background: var(--web-on-dark-08);
}

.menu-button .icon {
  width: 20px;
  height: 20px;
}

.menu-button .icon-close,
.menu-button[aria-expanded="true"] .icon:not(.icon-close) {
  display: none;
}

.menu-button[aria-expanded="true"] .icon-close {
  display: block;
}

/* Narrow: the links fold behind a menu button (only when the script runs;
   without it they wrap under the logo instead) */
@media (max-width: 899px) {
  .site-header-row {
    flex-wrap: wrap;
    gap: var(--space-3);
  }

  .site-brand {
    flex: 1;
  }

  .site-nav ul {
    row-gap: var(--space-1);
  }

  .site-menu {
    order: 3;
    flex: 1 1 100%;
    flex-wrap: wrap;
    gap: var(--space-4);
    padding-bottom: var(--space-4);
  }

  .site-signin {
    margin-right: 0;
    padding: 0;
  }

  .js .site-header-row {
    flex-wrap: nowrap;
  }

  /* The button comes before the links in the page (so Tab goes from it
     into the open menu) but sits after the trial button on screen */
  .js .menu-button {
    display: inline-flex;
    order: 2;
  }

  .js .site-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: var(--space-2) var(--web-gutter) var(--space-5);
    background: var(--night);
    border-top: 1px solid var(--night-line);
    border-bottom: 1px solid var(--night-line);
  }

  .js .site-menu.is-open {
    display: flex;
  }

  .js .site-nav ul {
    flex-direction: column;
    gap: 0;
  }

  .js .site-nav a,
  .js .site-signin {
    display: flex;
    align-items: center;
    min-height: var(--control-lg);
    font-size: 17px;
  }

  .js .site-signin {
    border-top: 1px solid var(--night-line);
    margin-top: var(--space-2);
    padding-top: var(--space-2);
    min-height: calc(var(--control-lg) + var(--space-2));
  }
}

@media (max-width: 420px) {
  .site .site-brand {
    font-size: 28px;
  }

  .cta-small {
    padding: 0 14px;
    font-size: 14.5px;
  }
}

/* ---- Hero ---- */
.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
  padding: 72px 0 56px;
  text-align: center;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  margin: 0;
  padding: 0 14px;
  border: 1px solid var(--web-on-dark-14);
  border-radius: var(--radius-pill);
  background: var(--web-on-dark-08);
  color: var(--web-kicker-text);
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.3;
}

.hero-title {
  max-width: 1000px;
  margin: 0;
  font-size: clamp(44px, 7.4vw, 96px);
  font-weight: 800;
  line-height: .98;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.hero-title .sv-wordmark {
  color: var(--violet-on-dark);
}

.hero-lead {
  max-width: 720px;
  margin: 0;
  font-size: clamp(18px, 1.8vw, 22px);
  line-height: 1.5;
  color: var(--night-text);
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-3);
}

.hero-note {
  margin: 0;
  font-size: 14px;
  color: var(--night-muted);
}

/* ---- Product tour in the hero ---- */
/* Tabs across the top (js/site.js initTour) pick a screen of the app, drawn
   in HTML from the demo data inside a copy of the app's sidebar
   (cmd/web/static/sv/shell.css). Without scripts the tabs stay hidden and
   the Home screen shows. The shot keeps one height for every screen, so
   nothing below it moves when the tour does; each screen is clipped at the
   bottom like a window. Screens lay themselves out by the width they get
   (container queries on .shot-screens). */
.tour {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.tour-tabs {
  display: none;
  gap: var(--space-1);
  width: max-content;
  max-width: 100%;
  margin: 0 auto;
  padding: var(--space-1);
  overflow-x: auto;
  border: 1px solid var(--web-on-dark-14);
  border-radius: var(--radius-sheet);
  background: var(--web-on-dark-08);
  scrollbar-width: none;
}

.tour-tabs::-webkit-scrollbar {
  display: none;
}

.js .tour-tabs {
  display: flex;
}

.tour-tab {
  position: relative;
  flex: none;
  height: var(--control-md);
  padding: 0 var(--space-4);
  border: 0;
  border-radius: var(--radius-panel);
  background: transparent;
  color: var(--night-text);
  font: inherit;
  font-size: 14.5px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--motion-fast), color var(--motion-fast);
}

.tour-tab:hover {
  background: var(--web-on-dark-08);
  color: var(--surface);
}

.tour-tab[aria-selected="true"] {
  background: var(--surface);
  color: var(--ink);
  font-weight: 600;
}

/* The focus ring sits inside the tab: the scrolling row would clip it */
.tour-tab:focus-visible {
  outline-offset: calc(-1 * var(--focus-width) - 1px);
}

/* While the tour runs, the selected tab fills over TOUR_EVERY_MS (7 s) */
.tour-tab::after {
  content: "";
  position: absolute;
  left: var(--space-3);
  right: var(--space-3);
  bottom: 4px;
  height: 2px;
  border-radius: 1px;
  background: var(--violet);
  opacity: 0;
  transform: scaleX(0);
  transform-origin: left;
}

.tour.is-running .tour-tab[aria-selected="true"]::after {
  opacity: 1;
  animation: tour-fill 7s linear forwards;
}

@keyframes tour-fill {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

.tour-caption {
  min-height: calc(2 * 1.45em);
  max-width: 640px;
  margin: var(--space-4) 0 var(--space-5);
  color: var(--night-text);
  font-size: 15.5px;
  line-height: 1.45;
  text-align: center;
  text-wrap: balance;
}

/* Without scripts the caption sits under the hero's buttons */
html:not(.js) .tour-caption {
  margin-top: 0;
}

.shot {
  position: relative;
  display: flex;
  width: 100%;
  max-width: 1080px;
  height: 640px;
  margin: 0 auto -120px;
  overflow: hidden;
  border-radius: var(--web-radius-shot);
  background: var(--canvas);
  box-shadow: var(--web-shot-shadow);
  color: var(--ink);
  font-size: 13px;
  line-height: 1.45;
  text-align: left;
}

.shot .icon {
  width: 14px;
  height: 14px;
}

.shot b {
  font-weight: 600;
}

/* Sidebar: the app's, a little smaller */
.shot-rail {
  display: flex;
  flex: 0 0 216px;
  flex-direction: column;
  gap: var(--space-3);
  min-width: 0;
  padding: 14px 10px 10px;
  background: var(--night);
  color: var(--night-text);
}

.shot-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6px 0 8px;
  color: var(--night-muted);
}

.shot-brand .sv-wordmark {
  color: var(--surface);
  font-size: 21px;
  line-height: 1.3;
}

.shot-brand-s {
  display: none;
}

.shot-search {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  height: 32px;
  padding: 0 8px;
  border: 1px solid var(--night-line);
  border-radius: var(--radius-control);
  background: var(--night-hover);
  color: var(--kbd-on-night-text);
  font-size: 12px;
  white-space: nowrap;
}

.shot-search > span:first-of-type {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.shot-kbd {
  padding: 0 5px;
  border: 1px solid var(--night-line);
  border-radius: var(--radius-kbd);
  background: var(--night);
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 16px;
}

.shot-nav {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  flex: 1;
  min-height: 0;
}

.shot-group {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.shot-label {
  padding: 0 8px 3px;
  color: var(--night-label);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .08em;
  line-height: 1.45;
  text-transform: uppercase;
}

.shot-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  height: 28px;
  padding: 0 8px;
  border-radius: var(--radius-control);
  font-size: 12.5px;
  transition: background-color var(--motion-fast), color var(--motion-fast);
}

.shot-item.is-current {
  background: var(--night-active);
  color: var(--surface);
}

.shot-text {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shot-count {
  color: var(--night-muted);
  font-family: var(--font-mono);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.shot-count.is-urgent {
  color: var(--night-urgent);
}

.shot-user {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) 8px 0;
  border-top: 1px solid var(--night-divider);
  color: var(--night-muted);
}

.shot-user-text {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  line-height: 1.3;
}

.shot-user-name {
  color: var(--surface);
  font-size: 12px;
  font-weight: 500;
}

.shot-user-ws {
  font-size: 11px;
}

.shot-screens {
  position: relative;
  flex: 1;
  min-width: 0;
  container-type: inline-size;
}

.tour-panel,
.screen {
  height: 100%;
  overflow: hidden;
}

.tour-panel[hidden] {
  display: none;
}

.tour-panel:focus-visible {
  outline-offset: calc(-1 * var(--focus-width) - 2px);
}

@media (prefers-reduced-motion: no-preference) {
  .tour-panel.is-entering {
    animation: tour-enter .35s ease-out both;
  }
}

@keyframes tour-enter {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

/* Narrower: the sidebar folds to the app's icon rail, then goes */
@media (max-width: 959px) {
  .shot {
    height: 600px;
  }

  .shot-rail {
    flex-basis: 52px;
    align-items: center;
    padding: 14px 8px 10px;
  }

  .shot-brand .icon,
  .shot-brand-full,
  .shot-search > span,
  .shot-text,
  .shot-label,
  .shot-count,
  .shot-user-text,
  .shot-user > .icon {
    display: none;
  }

  .shot-brand {
    justify-content: center;
    height: 28px;
    padding: 0;
  }

  .shot-brand-s {
    display: inline;
  }

  .shot-search {
    justify-content: center;
    width: 36px;
    padding: 0;
  }

  .shot-group {
    padding-top: var(--space-2);
    border-top: 1px solid var(--night-divider);
  }

  .shot-group:first-child {
    padding-top: 0;
    border-top: 0;
  }

  .shot-item {
    justify-content: center;
    width: 36px;
    padding: 0;
  }

  .shot-user {
    padding: var(--space-2) 0 0;
  }
}

@media (max-width: 599px) {
  .shot {
    height: 560px;
    margin-bottom: -80px;
  }

  .shot-rail {
    display: none;
  }

  .tour-tab {
    height: 34px;
    padding: 0 var(--space-3);
    font-size: 13.5px;
  }

  .tour-caption {
    min-height: calc(3 * 1.45em); /* the longest caption, so the shot never jumps */
    font-size: 14.5px;
  }
}

/* ---- The screens (d-*), the app's pages at about 90% ---- */
.d-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  height: 50px;
  padding: 0 var(--space-6);
}

.d-crumbs {
  min-width: 0;
  overflow: hidden;
  color: var(--ink-3);
  font-size: 12.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.d-crumbs b {
  color: var(--ink);
  font-weight: 500;
}

.d-sep {
  margin: 0 6px;
  color: var(--ink-ghost);
}

.d-top-actions {
  display: flex;
  flex: none;
  gap: var(--space-2);
}

.d-btn {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 10px;
  border: 1px solid var(--border-control);
  border-radius: var(--radius-control);
  background: var(--surface);
  color: var(--ink);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}

.d-btn.is-pri {
  border-color: var(--violet);
  background: var(--violet);
  color: var(--surface);
}

.d-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: var(--space-1) var(--space-6) var(--space-6);
}

.d-hello {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-3);
}

.d-date {
  color: var(--ink-caption);
  font-size: 12px;
}

.d-h1 {
  font-size: 22px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.d-h2 {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
}

.d-seg {
  display: inline-flex;
  flex: none;
  gap: 2px;
  padding: 3px;
  border-radius: var(--radius-seg);
  background: var(--control-hover);
}

.d-seg > span {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  border-radius: var(--radius-tile);
  color: var(--ink-3);
  font-size: 12px;
}

.d-seg > .is-on {
  background: var(--surface);
  box-shadow: var(--shadow-raised);
  color: var(--ink);
  font-weight: 500;
}

.d-card {
  min-width: 0;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-card);
  background: var(--surface);
}

.d-pad {
  padding: 12px 14px;
}

.d-card-head {
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
  padding: 12px 14px 8px;
  font-size: 13.5px;
}

.d-card-title {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: 6px;
  font-size: 13px;
}

.d-card-title > .icon,
.d-brief-title .icon {
  color: var(--violet);
}

.d-mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.d-faint,
.d-sub {
  color: var(--ink-caption);
  font-size: 11.5px;
}

.d-link {
  color: var(--link);
}

.d-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.d-chip {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 5px;
  height: 20px;
  padding: 0 var(--space-2);
  border-radius: var(--radius-pill);
  font-size: 11.5px;
  font-weight: 500;
  white-space: nowrap;
}

.d-chip.is-risk { background: var(--risk-tint); color: var(--risk); }
.d-chip.is-waiting { background: var(--waiting-tint); color: var(--waiting); }
.d-chip.is-good { background: var(--good-tint); color: var(--good); }
.d-chip.is-muted { background: var(--surface-muted); color: var(--ink-2); }
.d-chip.is-teal { background: var(--teal-tint); color: var(--teal); }
.d-chip.is-note { background: var(--note-chip-bg); color: var(--note-chip-text); }
.d-chip.is-proposal { background: var(--stage-proposal-bg); color: var(--stage-proposal-text); }

.d-av {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: var(--radius-pill);
  background: var(--av, var(--avatar-8));
  color: var(--surface);
  font-size: 10px;
  font-weight: 600;
  line-height: 1;
}

.d-av.is-sm {
  width: 20px;
  height: 20px;
  font-size: 8.5px;
}

.d-av.is-xs {
  width: 18px;
  height: 18px;
  font-size: 8px;
}

.d-logo {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 4px;
  background: var(--logo-neutral-bg);
  color: var(--logo-neutral-text);
  font-size: 9px;
  font-weight: 700;
}

.d-dot {
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: var(--radius-pill);
  background: var(--ink-faint);
}

.d-dot.is-new { background: var(--stage-new-dot); }
.d-dot.is-qualified { background: var(--stage-qualified-dot); }
.d-dot.is-proposal { background: var(--stage-proposal-dot); }
.d-dot.is-negotiation { background: var(--stage-negotiation-dot); }
.d-dot.is-urgent { background: var(--risk-solid); }
.d-dot.is-high { background: var(--waiting-solid); }
.d-dot.is-info { background: var(--info-solid); }

.d-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 14px;
}

.d-cols.is-wide-left {
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
}

.d-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.d-tabs {
  display: flex;
  gap: var(--space-5);
  overflow: hidden;
  border-bottom: 1px solid var(--hairline);
  color: var(--ink-3);
  font-size: 12.5px;
  white-space: nowrap;
}

.d-tabs > span {
  padding-bottom: var(--space-2);
}

.d-tabs > .is-on {
  box-shadow: inset 0 -2px 0 var(--violet);
  color: var(--ink);
  font-weight: 500;
}

/* Rows of tasks */
.d-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border-top: 1px solid var(--hairline-soft);
}

.d-cb {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 15px;
  height: 15px;
  border: 1.5px solid var(--border-strong);
  border-radius: 4px;
  background: var(--surface);
}

.d-cb.is-on {
  border-color: var(--good-solid);
  background: var(--good-solid);
  color: var(--surface);
}

.shot .d-cb .icon {
  width: 11px;
  height: 11px;
  stroke-width: 2.6;
}

.d-due {
  flex: none;
  min-width: 56px;
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
}

.d-due.is-risk {
  color: var(--risk);
}

.d-row-text {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}

.d-row-text > span {
  display: flex;
  align-items: center;
  gap: 5px;
  overflow: hidden;
  white-space: nowrap;
}

.d-row-text > span:first-child {
  display: block;
  font-size: 13px;
  text-overflow: ellipsis;
}

/* Home */
.d-brief {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 14px;
  border-color: var(--ai-card-border);
}

.d-brief-title {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 13.5px;
}

.d-brief-title > span:last-child {
  color: var(--ink-caption);
  font-size: 12px;
}

.d-spark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: var(--radius-tile);
  background: var(--violet-tint);
}

.d-spark .icon {
  fill: currentColor;
}

.d-brief-items {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.d-brief-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-2);
  padding: 10px 12px;
  border: 1px solid var(--brief-card-border);
  border-radius: var(--radius-panel);
  background: var(--brief-card-bg);
}

.d-brief-item p {
  flex: 1;
  margin: 0;
  color: var(--ink-2);
  font-size: 12.5px;
}

.d-brief-item b {
  color: var(--ink);
}

.d-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.d-kpis > div {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
  padding: 12px 16px;
  border-right: 1px solid var(--hairline-soft);
}

.d-kpis > div:last-child {
  border-right: 0;
}

.d-kpi-label {
  color: var(--ink-caption);
  font-size: 11.5px;
  font-weight: 500;
}

.d-kpi-value {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.35;
}

.d-kpi-value.is-sm {
  font-size: 16px;
}

.d-kpi-sub {
  overflow: hidden;
  color: var(--ink-3);
  font-size: 11.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.d-stages {
  padding-bottom: var(--space-2);
}

.d-stage {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) 62px;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  color: var(--ink-2);
  font-size: 12.5px;
}

.d-stage > .d-mono {
  font-size: 12px;
  text-align: right;
}

.d-bar {
  display: block;
  height: 8px;
  overflow: hidden;
  border-radius: var(--radius-pill);
  background: var(--hairline-soft);
}

.d-bar > span {
  display: block;
  height: 100%;
  border-radius: var(--radius-pill);
}

.d-bar.is-wide {
  flex: 1 1 120px;
  min-width: 80px;
  max-width: 260px;
}

.d-bar .is-new { background: var(--stage-new-dot); }
.d-bar .is-qualified { background: var(--stage-qualified-dot); }
.d-bar .is-proposal { background: var(--stage-proposal-dot); }
.d-bar .is-negotiation { background: var(--stage-negotiation-dot); }
.d-bar .is-violet { background: var(--violet); }

/* Pipeline */
.d-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.d-title-row .d-h1 {
  margin-right: var(--space-1);
}

.d-fchip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 26px;
  padding: 0 9px;
  border: 1px solid var(--border-control);
  border-radius: var(--radius-control);
  background: var(--surface);
  color: var(--ink-2);
  font-size: 12px;
  white-space: nowrap;
}

.d-fchip b {
  color: var(--ink);
  font-weight: 500;
}

.d-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px var(--space-5);
  color: var(--ink-3);
  font-size: 12.5px;
}

.d-stats b {
  color: var(--ink);
  font-weight: 500;
}

.d-stats b.is-good {
  color: var(--good);
}

.d-board {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.d-col {
  display: flex;
  flex: 1 0 176px;
  flex-direction: column;
  gap: 7px;
  padding: var(--space-2);
  border-radius: var(--radius-card);
  background: var(--pipeline-column);
}

.d-col-head {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 2px 4px 0;
}

.d-col-total {
  padding: 0 4px 2px;
  color: var(--ink-3);
  font-size: 11.5px;
}

.d-deal {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 9px 10px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-panel);
  background: var(--surface);
  box-shadow: var(--shadow-pipeline-card);
}

.d-deal-name {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.3;
}

.d-deal-org {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow: hidden;
  color: var(--ink-3);
  font-size: 11.5px;
  white-space: nowrap;
}

.d-deal-amount {
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
}

.d-deal-amount b {
  font-size: 12.5px;
  font-weight: 500;
}

.d-flag {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 3px 7px;
  border-radius: var(--radius-tile-sm);
  font-size: 11px;
  line-height: 1.3;
}

.d-flag.is-quiet {
  background: var(--waiting-tint);
  color: var(--pipeline-quiet-text);
}

.d-flag.is-signal {
  background: var(--good-tint);
  color: var(--pipeline-signal-text);
}

.shot .d-flag .icon {
  width: 12px;
  height: 12px;
}

.d-closed {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.d-drop {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  padding: 12px 14px;
  border: 1.5px dashed var(--pipeline-lost-border);
  border-radius: var(--radius-card);
  background: var(--pipeline-lost-bg);
  color: var(--ink-2);
  font-size: 12px;
}

.d-drop.is-won {
  border-color: var(--pipeline-won-border);
  background: var(--pipeline-won-bg);
  color: var(--pipeline-won-note);
}

.d-drop b {
  font-size: 13px;
}

.d-drop > span:last-child {
  flex-basis: 100%;
}

.d-add {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 2px 4px;
  color: var(--ink-3);
  font-size: 12px;
}

/* A customer */
.d-rec-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.d-rec-logo {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-card);
  background: var(--teal-tint);
  color: var(--teal);
  font-size: 20px;
  font-weight: 600;
}

.d-rec-title {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.d-rec-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  color: var(--ink-3);
  font-size: 12px;
}

.d-rec-meta > span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.d-summary {
  border-color: var(--ai-card-border);
}

.d-summary p,
.d-goal {
  margin: 0;
  color: var(--ink-2);
  font-size: 12.5px;
}

.d-summary b {
  color: var(--ink);
}

.d-dl {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 7px 12px;
  margin: 0;
  font-size: 12.5px;
}

.d-dl dt {
  color: var(--ink-caption);
}

.d-dl dd {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  margin: 0;
}

.d-dl dd > span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.d-deals {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.d-mdeal {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.d-mdeal-top {
  display: flex;
  justify-content: space-between;
  gap: var(--space-2);
  font-size: 12.5px;
}

.d-mdeal-top b {
  font-weight: 500;
}

.d-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 3px;
}

.d-steps > span {
  height: 4px;
  border-radius: var(--radius-pill);
  background: var(--hairline);
}

.d-steps > .is-on {
  background: var(--violet);
}

.d-event {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 7px 0;
  border-top: 1px solid var(--hairline-soft);
  color: var(--ink-2);
  font-size: 12.5px;
}

.d-card-title + .d-event {
  border-top: 0;
}

.d-event > div {
  min-width: 0;
}

.d-event b {
  color: var(--ink);
}

/* Support */
.d-split {
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr) 200px;
  height: 100%;
}

.d-queue {
  overflow: hidden;
  border-right: 1px solid var(--hairline);
  background: var(--surface);
}

.d-queue-head {
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
  padding: 14px 14px var(--space-2);
}

.d-qtabs,
.d-reply-tabs {
  display: flex;
  align-items: center;
  gap: 2px;
  white-space: nowrap;
}

.d-qtabs {
  padding: 0 10px 10px;
  border-bottom: 1px solid var(--hairline-soft);
}

.d-qtabs > span,
.d-reply-tabs > span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 24px;
  padding: 0 7px;
  border-radius: var(--radius-tile);
  color: var(--ink-3);
  font-size: 12px;
}

.d-qtabs > .is-on,
.d-reply-tabs > .is-on {
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--border-control);
  color: var(--ink);
  font-weight: 500;
}

.d-qtabs .is-risk {
  color: var(--risk);
  font-size: 11px;
}

.d-tk {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--hairline-soft);
}

.d-tk.is-on {
  background: var(--queue-row-current);
  box-shadow: inset 3px 0 0 var(--violet);
}

.d-tk-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  color: var(--ink-3);
  font-size: 11.5px;
}

.d-tk-meta > span:nth-child(2) {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.d-tk-subject {
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.3;
}

.d-ticket {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}

.d-ticket-head {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px var(--space-5) var(--space-3);
  border-bottom: 1px solid var(--hairline);
  background: var(--surface);
}

.d-props {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.d-prop {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 24px;
  padding: 0 8px;
  border: 1px solid var(--border-control);
  border-radius: var(--radius-control);
  background: var(--surface);
  font-size: 12px;
}

.d-props .d-chip {
  height: 24px;
  border-radius: var(--radius-control);
}

.d-thread {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: 14px var(--space-5);
}

.d-msg {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.d-bubble {
  flex: 1;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-card);
  background: var(--surface);
}

.d-bubble.is-note {
  border-color: var(--note-border);
  background: var(--note-bg);
}

.d-bubble-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px var(--space-2);
  font-size: 12.5px;
}

.d-bubble-head > .d-faint:first-of-type {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.d-bubble p {
  margin: 4px 0 0;
  color: var(--ink-2);
  font-size: 12.5px;
}

.d-reply {
  border: 1px solid var(--violet-border);
  border-radius: var(--radius-card);
  background: var(--surface);
}

.d-reply-tabs {
  padding: var(--space-2) 10px 0;
}

.d-reply-tabs > .d-drafted {
  margin-left: auto;
  border-radius: var(--radius-pill);
  background: var(--violet-tint);
  color: var(--violet-text);
  font-size: 11.5px;
  font-weight: 500;
}

.d-reply p {
  margin: var(--space-2) 14px 10px;
  color: var(--ink);
  font-size: 12.5px;
}

.d-reply-foot,
.d-act-foot {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
}

.d-reply-foot {
  padding: 0 10px 10px;
}

.d-ctx {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  min-width: 0;
  overflow: hidden;
  padding: 14px;
  border-left: 1px solid var(--hairline);
  background: var(--surface);
  font-size: 12.5px;
}

.d-ctx-person,
.d-ctx-org {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.d-ctx-person > div,
.d-ctx-org > div {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.3;
}

.d-ctx-org {
  padding: var(--space-2);
  border: 1px solid var(--context-card-border);
  border-radius: var(--radius-panel);
}

.d-ctx-dl {
  margin: 0;
}

.d-ctx-dl dt {
  color: var(--ink-caption);
  font-size: 11px;
}

.d-ctx-dl dd {
  margin: 0 0 var(--space-2);
}

.d-ctx-risk {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  padding: var(--space-2) 10px;
  border: 1px solid var(--risk-note-border);
  border-radius: var(--radius-panel);
  background: var(--risk-note-bg);
  color: var(--risk-note-text);
  font-size: 12px;
  line-height: 1.4;
}

.d-ctx-risk .icon {
  margin-top: 1px;
}

/* A project */
.d-progress {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  font-size: 12px;
}

.d-team {
  display: inline-flex;
  margin-left: auto;
  padding-left: 6px;
}

.d-team .d-av {
  margin-left: -4px;
  box-shadow: 0 0 0 2px var(--canvas);
}

.d-alert {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-panel);
  background: var(--risk-tint);
  color: var(--risk-strong);
  font-size: 12.5px;
}

.d-todo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: var(--space-2) 0;
  border-top: 1px solid var(--hairline-soft);
  font-size: 12.5px;
}

.d-todo-text {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.d-todo.is-done .d-todo-text {
  color: var(--ink-faint);
  text-decoration: line-through;
}

.d-card-title .d-chip {
  margin-left: auto;
}

.d-ms {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 5px 0;
  font-size: 12.5px;
}

.d-diamond {
  flex: none;
  width: 9px;
  height: 9px;
  margin: 5px 1px 0;
  border: 2px solid var(--violet);
  border-radius: 2px;
  transform: rotate(45deg);
}

.d-diamond.is-risk {
  border-color: var(--risk-solid);
  background: var(--risk-tint);
}

.d-sub.is-risk {
  color: var(--risk);
}

/* My tasks */
.d-quickadd {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  height: 38px;
  padding: 0 var(--space-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-panel);
  background: var(--surface);
  color: var(--ink-3);
  font-size: 12.5px;
  white-space: nowrap;
}

.d-quickadd .d-faint {
  margin-left: auto;
  overflow: hidden;
  text-overflow: ellipsis;
}

.d-group {
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
  padding: 10px 14px 6px;
  font-size: 12.5px;
}

.d-group.is-risk b {
  color: var(--risk);
}

.d-group + .d-row {
  border-top: 0;
}

.d-noticed {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 12.5px;
}

.d-noticed-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-top: 4px;
}

/* Ask Sorivelo: the deal it was asked from, with the panel beside it */
.d-asksplit {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 400px;
  height: 100%;
}

.d-behind {
  min-width: 0;
  overflow: hidden;
}

.d-ask {
  display: flex;
  flex-direction: column;
  min-height: 0;
  border-left: 1px solid var(--hairline);
  background: var(--surface);
  box-shadow: var(--shadow-assistant);
}

.d-ask-head {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: 14px 16px 12px;
  border-bottom: 1px solid var(--hairline-soft);
  font-size: 13.5px;
}

.d-ask-head .icon {
  color: var(--violet);
}

.d-ask-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: flex-end; /* scrolled to the newest, as a chat is */
  gap: 10px;
  min-height: 0;
  overflow: hidden;
  padding: var(--space-3) 16px;
  font-size: 12.5px;
}

.d-me {
  align-self: flex-end;
  max-width: 85%;
  padding: 7px 11px;
  border-radius: var(--radius-card) var(--radius-card) var(--radius-bubble-tail) var(--radius-card);
  background: var(--violet);
  color: var(--surface);
}

.d-ai {
  color: var(--ink-2);
}

.d-ai b {
  color: var(--ink);
}

.d-ai ol {
  margin: 6px 0;
  padding-left: 18px;
}

.d-ai li + li {
  margin-top: 3px;
}

.d-ai p {
  margin: 4px 0 0;
}

.d-sup {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 15px;
  height: 15px;
  padding: 0 3px;
  border-radius: var(--radius-cite);
  background: var(--violet-tint);
  color: var(--violet-text);
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 600;
  vertical-align: 1px;
}

.d-sources {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: var(--space-2);
}

.d-src {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  max-width: 100%;
  height: 22px;
  padding: 0 7px 0 4px;
  overflow: hidden;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-tile-sm);
  font-size: 11px;
  white-space: nowrap;
}

.d-act {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: var(--space-2);
  padding: 10px 12px;
  border: 1px solid var(--ai-card-border);
  border-radius: var(--radius-panel);
  background: var(--ai-field-bg);
}

.d-act-head {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--ink);
}

.d-act-subject {
  color: var(--ink-3);
  font-size: 12px;
}

.d-act p {
  margin: 0;
  font-size: 12px;
}

.d-ask-input {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  height: 38px;
  margin: 0 14px 14px;
  padding: 0 var(--space-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-panel);
  color: var(--ink-caption);
  font-size: 12.5px;
  white-space: nowrap;
}

/* The screens at the widths the shot gets */
@container (max-width: 760px) {
  .d-split {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .d-ctx {
    display: none;
  }

  .d-asksplit {
    grid-template-columns: minmax(0, 1fr) 360px;
  }
}

@container (max-width: 680px) {
  .d-top,
  .d-body {
    padding-left: var(--space-4);
    padding-right: var(--space-4);
  }

  .d-brief-items,
  .d-cols,
  .d-cols.is-wide-left,
  .d-deals {
    grid-template-columns: minmax(0, 1fr);
  }

  .d-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .d-kpis > div:nth-child(2) {
    border-right: 0;
  }

  .d-kpis > div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--hairline-soft);
  }

  .d-asksplit {
    grid-template-columns: minmax(0, 1fr);
  }

  .d-behind,
  .d-quickadd .d-faint,
  .d-top-actions .d-btn:not(.is-pri),
  .d-fchip {
    display: none;
  }

  .d-ask {
    border-left: 0;
    box-shadow: none;
  }
}

@container (max-width: 520px) {
  .d-split {
    grid-template-columns: minmax(0, 1fr);
  }

  .d-queue {
    display: none;
  }

  .d-ticket-head,
  .d-thread {
    padding-left: var(--space-4);
    padding-right: var(--space-4);
  }

  .d-brief-item:nth-child(n + 3),
  .d-rec-head .d-top-actions {
    display: none;
  }

  .d-col {
    flex-basis: 168px;
  }
}

/* ---- Problem ---- */
.problem {
  padding: 200px 0 var(--space-11);
}

.problem-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-9);
}

.problem-copy {
  display: flex;
  flex: 1 1 420px;
  flex-direction: column;
  gap: var(--space-5);
  min-width: 0;
}

.problem-list {
  display: flex;
  flex: 1 1 440px;
  flex-direction: column;
  gap: var(--space-3);
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.problem-item,
.problem-answer {
  display: flex;
  gap: 14px;
  padding: 18px var(--space-5);
  border-radius: var(--radius-sheet);
  font-size: 17px;
}

.problem-item {
  align-items: flex-start;
  gap: 9px; /* the 16px icon has 4px of air each side: its x sits 13px from the text, as in the design */
  border: 1px solid var(--hairline);
  background: var(--surface);
  color: var(--ink-2);
}

.problem-item .icon {
  width: 16px;
  height: 16px;
  margin-top: 5px;
  color: var(--risk-solid);
  stroke-width: 2.2;
}

.problem-item strong {
  color: var(--ink);
  font-weight: 700;
}

.problem-answer {
  align-items: center;
  background: var(--night);
  color: var(--surface);
}

.problem-answer .sv-wordmark {
  flex: none;
  font-size: 22px;
  line-height: 1.2;
  color: var(--surface); /* the wordmark is white on night (handoff 2.2a) */
}

@media (max-width: 720px) {
  .problem {
    padding: 140px 0 var(--space-10);
  }

  .problem-row {
    gap: var(--space-7);
  }
}

/* ---- How it works ---- */
.how {
  padding: var(--space-11) 0;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  background: var(--surface);
}

.how-stack {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.how-head {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 760px;
}

.steps {
  display: grid;
  /* 180px (the design says 200) keeps all five steps on one row down to 1024 */
  grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.step {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--hairline);
  border-radius: var(--web-radius-step);
  background: var(--surface);
}

.step-label {
  display: flex;
  align-items: center;
  gap: 10px;
}

.step-n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: var(--radius-pill);
  background: var(--step-bg);
  color: var(--step-text);
  font-size: 13px;
  font-weight: 500;
}

.step-tag {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--step-text);
}

.step-title {
  margin: 0;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.step-body {
  margin: 0;
  font-size: 15px;
  color: var(--web-lead-text);
  text-wrap: pretty;
}

.step-lead { --step-bg: var(--info-tint); --step-text: var(--info); }
.step-deal { --step-bg: var(--violet-tint); --step-text: var(--violet-text); }
.step-project { --step-bg: var(--good-tint); --step-text: var(--good); }
.step-support { --step-bg: var(--risk-tint); --step-text: var(--risk); }
.step-team { --step-bg: var(--waiting-tint); --step-text: var(--waiting); }

@media (max-width: 720px) {
  .how {
    padding: var(--space-10) 0;
  }
}

/* ---- Product pictures (shared by the product tabs and the speed section) ---- */
/* Small screens drawn in HTML. Each is role="img" with an aria-label, so
   screen readers get one sentence, not every chip. */
.mini {
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sheet);
  background: var(--surface);
  box-shadow: var(--web-mini-shadow);
  color: var(--ink);
}

.mini b {
  font-weight: 600;
}

.mini .icon {
  width: 14px;
  height: 14px;
}

.mini-chip {
  display: inline-flex;
  flex: none;
  align-items: center;
  height: var(--chip-h);
  padding: 0 var(--space-2);
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}

.mini-chip.is-teal { background: var(--teal-tint); color: var(--teal); }
.mini-chip.is-risk { background: var(--risk-tint); color: var(--risk); }
.mini-chip.is-good { background: var(--good-tint); color: var(--good); }
.mini-chip.is-muted { background: var(--surface-muted); color: var(--ink-2); }

.mini-av {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: var(--radius-pill);
  color: var(--surface);
  font-size: 10px;
  font-weight: 600;
}

.mini-av.is-lg {
  width: 34px;
  height: 34px;
  font-size: 12px;
}

.mini-av.av-1 { background: var(--avatar-1); }
.mini-av.av-4 { background: var(--avatar-4); }

/* AI note: violet wash, spark, never a gradient */
.mini-ai {
  margin-top: 10px;
  padding: var(--space-3);
  border-radius: var(--radius-panel);
  background: var(--violet-tint-soft);
  color: var(--ink-2);
  font-size: 12.5px;
}

.mini-ai b,
.mini-ai-label {
  color: var(--violet);
}

.mini .mini-ai .icon,
.mini .mini-ai-label .icon,
.mini .mini-warn .icon {
  width: 12px;
  height: 12px;
  margin-right: var(--space-1);
  vertical-align: -1px;
  fill: currentColor;
  stroke-width: 1.4;
}

/* Context the reader should not miss (a deal at stake, a busy week) */
.mini-warn {
  padding: 10px var(--space-3);
  border: 1px solid var(--web-warn-border);
  border-radius: var(--radius-panel);
  background: var(--web-warn-bg);
  color: var(--web-warn-text);
  font-size: 12.5px;
}

.mini-warn.is-plain {
  border-color: transparent;
}

.mini-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.mini-buttons.is-end {
  justify-content: flex-end;
  gap: var(--space-2);
}

.mini-btn {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 10px;
  border: 1px solid var(--border-control);
  border-radius: var(--radius-tile);
  background: var(--surface);
  color: var(--ink);
  font-size: 12px;
}

.mini-btn.is-md {
  height: var(--control-sm);
  padding: 0 var(--space-3);
  border-radius: var(--radius-control);
  font-size: 13px;
}

.mini-btn.is-primary {
  border-color: var(--violet);
  background: var(--violet);
  color: var(--surface);
}

.mini-btn.is-approve {
  border-color: var(--good-solid);
  background: var(--good-solid);
  color: var(--surface);
}

/* ---- Product tabs ---- */
.features {
  padding: 110px 0;
}

.features-stack {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.features-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
}

.features-head .h2 {
  max-width: 820px;
}

.ftabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

/* Without scripts the tabs could not switch, so all four areas show instead */
html:not(.js) .ftabs {
  display: none;
}

.ftab {
  display: inline-flex;
  align-items: center;
  height: var(--control-lg);
  padding: 0 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--ink-2);
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color var(--motion-fast), border-color var(--motion-fast), color var(--motion-fast);
}

.ftab:hover {
  background: var(--web-light-hover);
}

.ftab[aria-selected="true"] {
  border-color: var(--night);
  background: var(--night);
  color: var(--surface);
}

.fpanel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-8);
}

.js .fpanel[hidden] {
  display: none;
}

/* The panel is focusable (it has no links of its own): ring it like a card */
.fpanel:focus-visible {
  outline-offset: var(--space-2);
  border-radius: var(--radius-card);
}

.fpanel-copy {
  display: flex;
  flex: 1 1 380px;
  flex-direction: column;
  gap: var(--space-5);
  min-width: 0;
}

.fpanel-title {
  margin: 0;
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.ticks {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ticks li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  color: var(--ink-2);
}

.ticks .icon {
  margin-top: 3px;
  color: var(--violet);
}

.fpanel-visual {
  flex: 1 1 520px;
  min-width: 0;
  padding: 28px;
  border-radius: var(--web-radius-stage);
  background: var(--web-stage-bg);
}

/* Sales: pipeline board */
.mini-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: var(--space-4);
}

.board-col {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  min-width: 0;
  padding: var(--space-2);
  border-radius: var(--radius-panel);
  background: var(--surface-muted);
}

.board-col-title {
  font-size: 12px;
  font-weight: 600;
}

.board-col-title .sv-mono {
  font-weight: 400;
  color: var(--ink-caption);
}

.board-card {
  padding: 10px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-control);
  background: var(--surface);
  font-size: 12px;
}

.board-card-org {
  color: var(--ink-caption);
}

.board-card-amount,
.board-flag {
  margin-top: 6px;
}

.board-flag {
  padding: 3px 6px;
  border-radius: var(--radius-kbd);
  font-size: 11px;
}

.board-flag.is-waiting { background: var(--waiting-tint); color: var(--waiting); }
.board-flag.is-good { background: var(--good-tint); color: var(--good); }

/* The card being dragged: tilted, violet border */
.board-card.is-dragging {
  border-color: var(--violet);
  box-shadow: var(--web-drag-shadow);
  transform: rotate(-2deg);
}

.board-won {
  border: 1.5px dashed var(--web-won-border);
  background: var(--web-won-bg);
  color: var(--good);
  font-size: 11.5px;
}

/* Projects: to-do list */
.mini-todos {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  padding: 18px var(--space-5);
}

.todos-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: var(--space-2);
}

.todos-head b {
  font-size: 15px;
}

.todos-head .sv-mono {
  font-size: 12px;
  color: var(--ink-caption);
}

.todos-head .mini-chip {
  margin-left: auto;
}

.todo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: var(--space-2) 0;
  font-size: 13.5px;
}

.todo-box {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--web-checkbox-border);
  border-radius: var(--radius-kbd);
  color: var(--surface);
}

.todo-text {
  flex: 1;
  min-width: 0;
}

.todo.is-done {
  color: var(--ink-caption);
}

.todo.is-done .todo-box {
  border-color: var(--good-solid);
  background: var(--good-solid);
}

.mini .todo-box .icon {
  width: 12px;
  height: 12px;
  stroke-width: 2.6;
}

.todo.is-done .todo-text {
  text-decoration: line-through;
}

/* Help desk: ticket with a suggested reply */
.mini-ticket,
.mini-timeoff {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: 18px var(--space-5);
}

.ticket-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
}

.ticket-head b {
  font-size: 15px;
}

.ticket-reply {
  padding: var(--space-3);
  border: 1px solid var(--ai-card-border);
  border-radius: var(--radius-panel);
  color: var(--ink-2);
  font-size: 13px;
}

.ticket-reply-body {
  margin: 6px 0 10px;
}

/* Team & HR: time-off approval */
.timeoff-who {
  display: flex;
  align-items: center;
  gap: 10px;
  line-height: 1.3;
}

.timeoff-dates {
  font-size: 12.5px;
  color: var(--ink-2);
}

.timeoff-days {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 3px;
  padding-top: 10px;
  border-top: 1px solid var(--hairline-soft);
}

.timeoff-days span {
  height: 18px;
  border-radius: 4px;
  background: var(--surface-muted);
}

.timeoff-days .is-off {
  background: var(--web-off-day);
}

.timeoff-days .is-pending {
  border: 1px dashed var(--web-off-day);
  background: repeating-linear-gradient(135deg, var(--web-pending-day) 0 4px, var(--surface) 4px 8px);
}

@media (max-width: 720px) {
  .features {
    padding: var(--space-10) 0;
  }

  .fpanel {
    gap: var(--space-7);
  }
}

@media (max-width: 560px) {
  .fpanel-visual {
    padding: var(--space-4);
    border-radius: var(--radius-dialog);
  }

  /* Two columns of deals, the Won drop zone under them */
  .mini-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: var(--space-3);
  }

  .board-won {
    grid-column: 1 / -1;
  }

  .mini-todos,
  .mini-ticket,
  .mini-timeoff {
    padding: var(--space-4);
  }

  .todo {
    flex-wrap: wrap;
    row-gap: var(--space-1);
  }

  .todo-text {
    flex-basis: calc(100% - 28px);
  }

  .todo .mini-chip {
    margin-left: 28px;
  }

  .todo .mini-av {
    margin-left: auto;
  }
}

/* ---- AI ---- */
.ai {
  padding: 110px 0;
  background: var(--night);
  color: var(--surface);
}

.ai-stack {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.ai-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: var(--space-7);
}

.ai-head-copy {
  display: flex;
  flex: 1 1 520px;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}

.ai .eyebrow {
  color: var(--violet-on-dark);
}

.ai .lead {
  flex: 1 1 340px;
  color: var(--night-text);
}

.ai-cards {
  display: grid;
  /* 4, then 2, then 1 across: never three and an orphan */
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (max-width: 1100px) {
  .ai-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .ai-cards {
    grid-template-columns: minmax(0, 1fr);
  }
}

.ai-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: var(--space-6);
  border: 1px solid var(--night-line);
  border-radius: var(--radius-dialog);
  background: var(--web-ai-card);
}

.ai-card .icon {
  width: 22px;
  height: 22px;
  margin-block: 6px; /* the design's spark is a 22px glyph on a 1.55 line */
  color: var(--violet-on-dark);
  fill: currentColor;
  stroke-width: 1;
}

.ai-card h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  line-height: inherit;
}

.ai-card p {
  margin: 0;
  color: var(--night-text);
  font-size: 15px;
}

.ai-rules {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-7);
  margin: 0;
  padding: 28px 0 0;
  border-top: 1px solid var(--night-line);
  color: var(--night-text);
  font-size: 15px;
  list-style: none;
}

.ai-rules li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.ai-rules .icon {
  color: var(--web-check-on-dark);
}

@media (max-width: 720px) {
  .ai {
    padding: var(--space-10) 0;
  }

  .ai-stack {
    gap: var(--space-7);
  }

  .ai-rules {
    flex-direction: column;
  }

  .ai-rules li {
    align-items: flex-start;
  }

  .ai-rules .icon {
    margin-top: 3px;
  }
}

/* ---- Speed: the command palette ---- */
.speed {
  padding: 110px 0;
}

.speed-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-9);
}

.speed-copy {
  display: flex;
  flex: 1 1 400px;
  flex-direction: column;
  gap: var(--space-5);
  min-width: 0;
}

.kbd {
  padding: 0 7px;
  border: 1px solid var(--border);
  border-radius: var(--radius-tile-sm);
  background: var(--surface);
  color: var(--ink-2);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 20px;
  white-space: nowrap;
  vertical-align: 2px;
}

.mini-palette {
  flex: 1 1 460px;
  min-width: 0;
  overflow: hidden;
}

.palette-input {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  height: 58px;
  padding: 0 18px;
  border-bottom: 1px solid var(--hairline-soft);
  font-size: 18px;
}

.mini .palette-input .icon {
  width: 18px;
  height: 18px;
  color: var(--ink-caption);
}

.palette-caret {
  width: 2px;
  height: 22px;
  margin-left: calc(-1 * var(--space-2));
  background: var(--violet);
}

.palette-results {
  padding: var(--space-2);
}

.palette-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 10px;
  border-radius: 9px;
  line-height: 1.3;
}

.palette-row.is-current {
  background: var(--violet-tint);
}

.palette-row b {
  font-size: 14.5px;
  font-weight: 500;
}

.palette-row b + div {
  color: var(--ink-caption);
  font-size: 12.5px;
}

.palette-tile {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: var(--radius-tile);
  font-size: 13px;
  font-weight: 600;
}

.palette-tile.is-org { background: var(--teal-tint); color: var(--teal); }
.palette-tile.is-deal { background: var(--stage-negotiation-bg); color: var(--stage-negotiation-text); }
.palette-tile.is-ticket { background: var(--risk-tint); color: var(--risk); }
.palette-tile.is-ai { background: var(--violet-tint); color: var(--violet); }

.palette-tile .icon {
  fill: currentColor;
  stroke-width: 1.2;
}

@media (max-width: 720px) {
  .speed {
    padding: var(--space-10) 0;
  }

  .speed-row {
    gap: var(--space-7);
  }
}

/* ---- Proof: customer quotes ---- */
.proof {
  padding: 0 0 110px;
}

.proof-stack {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.quotes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Three across, or one column: never two and an orphan */
@media (max-width: 899px) {
  .quotes {
    grid-template-columns: minmax(0, 1fr);
  }
}

.quotes > li {
  display: flex;
}

/* Dashed and yellow while the quotes are placeholders. When real ones come
   in, give .quote a plain hairline border and white background. */
.quote {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 18px;
  margin: 0;
  padding: 28px;
  border: 1.5px dashed var(--web-quote-border);
  border-radius: var(--web-radius-plan);
  background: var(--web-quote-bg);
}

.quote blockquote {
  margin: 0;
}

.quote blockquote p {
  margin: 0;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.quote figcaption {
  font-size: 14px;
  color: var(--ink-3);
}

@media (max-width: 720px) {
  .proof {
    padding-bottom: var(--space-10);
  }
}

/* ---- Pricing ---- */
.pricing {
  padding: 110px 0;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  background: var(--surface);
}

.pricing-stack {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.pricing-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
}

/* Monthly / yearly: one switch (role="switch", checked means yearly) drawn
   as a two-part segmented control. Clicking a half picks it; Space and Enter
   flip it. */
.billing {
  display: inline-flex;
  gap: var(--space-1);
  max-width: 100%;
  padding: var(--space-1);
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--surface-muted);
  font: inherit;
  cursor: pointer;
}

html:not(.js) .billing {
  display: none;
}

.billing-option {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  min-height: 38px;
  padding: 0 18px;
  border-radius: var(--radius-pill);
  color: var(--ink-3);
  font-size: 14.5px;
  font-weight: 500;
  white-space: nowrap;
  transition: background-color var(--motion-fast), color var(--motion-fast), box-shadow var(--motion-fast);
}

.billing-option:hover {
  color: var(--ink);
}

.billing[aria-checked="true"] [data-period="yearly"],
.billing[aria-checked="false"] [data-period="monthly"] {
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--web-segment-shadow);
}

/* The yearly prices show unless the switch is off */
.plans [data-period="monthly"],
.pricing.is-monthly .plans [data-period="yearly"] {
  display: none;
}

.pricing.is-monthly .plans [data-period="monthly"] {
  display: inline;
}

.plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
  align-items: stretch;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Three across, or one column: never two and an orphan */
@media (max-width: 899px) {
  .plans {
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
  }
}

.plan {
  --plan-sub: var(--ink-3);
  --plan-line: var(--hairline-soft);
  --plan-tick: var(--violet);
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
  padding: 28px;
  border: 1px solid var(--hairline);
  border-radius: var(--web-radius-plan);
  background: var(--surface);
  color: var(--ink);
}

.plan.is-popular {
  --plan-sub: var(--night-text);
  --plan-line: var(--night-line);
  --plan-tick: var(--violet-on-dark);
  border-color: var(--night);
  background: var(--night);
  color: var(--surface);
}

.plan-name {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.plan-name h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.55;
}

.plan-badge {
  display: inline-flex;
  align-items: center;
  height: var(--chip-h);
  padding: 0 var(--space-2);
  border-radius: var(--radius-pill);
  background: var(--violet);
  color: var(--surface);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}

.plan-blurb {
  margin: 0;
  font-size: 15px;
  color: var(--plan-sub);
}

.plan-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--space-2);
  margin: 0;
}

/* Money is Mono */
.plan-amount {
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.plan-per {
  font-size: 14px;
  color: var(--plan-sub);
}

.plan .cta {
  width: 100%;
}

.site .cta-line,
.site .cta-line:hover {
  color: var(--ink);
}

.cta-line {
  border-color: var(--border);
  background: var(--surface);
}

.cta-line:hover {
  background: var(--web-light-hover);
}

/* What changes between plans: people and AI requests a month */
.plan-limits {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 15px;
}

.plan-limits strong {
  font-weight: 600;
}

/* "Over 50 people? Talk to us" under the Business button */
.plan-more {
  margin: -6px 0 0;
  font-size: 14px;
  color: var(--plan-sub);
  text-align: center;
}

.plan-more a {
  color: inherit;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.plan-more a:hover {
  text-decoration-thickness: 2px;
}

/* The same list on every plan, under one label */
.plan-includes {
  margin: 0;
  padding: 18px 0 0;
  border-top: 1px solid var(--plan-line);
  font-size: 13px;
  font-weight: 600;
  color: var(--plan-sub);
}

.plan-items {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin: -6px 0 0;
  padding: 0;
  list-style: none;
}

.plan-items li {
  display: flex;
  gap: 10px;
  font-size: 15px;
}

.plan-items .icon {
  width: var(--icon);
  height: var(--icon);
  margin-top: 3px;
  color: var(--plan-tick);
}

.pricing-note {
  margin: 0;
  font-size: 14px;
  color: var(--ink-3);
  text-align: center;
  text-wrap: pretty;
}

@media (max-width: 720px) {
  .pricing {
    padding: var(--space-10) 0;
  }

  .pricing-stack {
    gap: var(--space-7);
  }
}

@media (max-width: 420px) {
  .plan {
    padding: 22px;
  }

  .billing-option {
    padding: 0 14px;
  }
}

/* ---- FAQ ---- */
.faq {
  padding: 110px 0;
}

.faq-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-8);
}

.faq-head {
  display: flex;
  flex: 1 1 300px;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}

.faq-list {
  flex: 2 1 520px;
  min-width: 0;
  border-bottom: 1px solid var(--border-control);
}

.qa {
  border-top: 1px solid var(--border-control);
}

.qa h3 {
  margin: 0;
  font: inherit;
}

.qa-question {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  width: 100%;
  padding: 22px 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 18px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.qa-question > span:first-child {
  flex: 1;
  min-width: 0;
}

.qa-sign {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-pill);
  background: var(--violet-tint);
  color: var(--violet-text);
  transition: background-color var(--motion-fast);
}

.qa-question:hover .qa-sign {
  background: var(--violet-border);
}

.qa-sign .icon {
  width: var(--icon);
  height: var(--icon);
  stroke-width: 2;
}

.qa-minus,
.qa-question[aria-expanded="true"] .qa-plus {
  display: none;
}

.qa-question[aria-expanded="true"] .qa-minus {
  display: block;
}

/* Without scripts the buttons could not open anything, so every answer
   shows and the plus and minus go */
html:not(.js) .qa-sign {
  display: none;
}

.qa-answer {
  display: block;
}

.js .qa-answer[hidden] {
  display: none;
}

.qa-answer p {
  margin: 0 48px 22px 0;
  color: var(--web-lead-text);
  text-wrap: pretty;
}

/* A long placeholder wraps like text, highlighted on every line */
.ph-long {
  display: inline;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

@media (max-width: 720px) {
  .faq {
    padding: var(--space-10) 0;
  }

  .faq-row {
    gap: var(--space-7);
  }
}

@media (max-width: 560px) {
  .qa-question {
    font-size: 17px;
  }

  .qa-answer p {
    margin-right: 0;
  }
}

/* ---- Closing call to action ---- */
.closing {
  padding: 0 0 110px;
}

.closing-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-6);
  padding: clamp(40px, 6vw, 80px);
  overflow: hidden;
  border-radius: var(--web-radius-closing);
  background-color: var(--night);
  background-image: radial-gradient(var(--web-dot) 1px, transparent 1px);
  background-size: var(--web-dot-grid) var(--web-dot-grid);
  color: var(--surface);
  text-align: center;
}

.closing-mark {
  margin: 0;
  font-size: clamp(48px, 6vw, 72px);
  line-height: 1.2;
  color: var(--surface); /* the wordmark is white on night (handoff 2.2a) */
}

.closing .h2 {
  max-width: 760px;
}

.closing-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-3);
}

@media (max-width: 720px) {
  .closing {
    padding-bottom: var(--space-10);
  }
}

/* ---- Footer ---- */
.site-footer {
  padding: 40px 0 var(--space-8);
  border-top: 1px solid var(--border-control);
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: var(--space-7);
}

.footer-brand {
  display: flex;
  flex: 1 1 260px;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-2);
}

.site .footer-brand .sv-wordmark {
  font-size: 28px;
  line-height: 1.2;
  color: var(--violet);
  text-decoration: none;
}

.footer-brand p {
  margin: 0;
  font-size: 14px;
  color: var(--ink-3);
}

.footer-nav {
  display: flex;
  flex: 0 1 160px;
  flex-direction: column;
  gap: 10px;
}

.footer-nav h2 {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.55;
}

.footer-nav ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Each link sets its own line, so the rhythm is the 14px text, not the body's */
.footer-nav li {
  display: flex;
}

.site .footer-nav a {
  color: var(--ink-3);
  font-size: 14px;
  text-decoration: none;
}

.site .footer-nav a:hover {
  color: var(--ink);
}

/* Touch screens: each link a 44px target, with the same rhythm */
@media (pointer: coarse) {
  .footer-nav ul {
    gap: 0;
  }

  .site .footer-nav a {
    display: inline-flex;
    align-items: center;
    min-height: var(--control-lg);
  }
}

.footer-legal {
  flex: 1 1 100%;
  margin: 0;
  padding-top: var(--space-6);
  border-top: 1px solid var(--border-control);
  font-size: 13px;
  color: var(--ink-caption);
}

/* ---- Legal pages (privacy.html, terms.html) ----
   The night header with only the brand, Sign in and the trial button, then
   one reading column */
.legal-header .site-brand {
  flex: 1;
}

.legal-header .site-signin {
  margin-right: 0;
}

.legal {
  padding-top: var(--space-8);
  padding-bottom: var(--space-10);
}

.legal-doc {
  max-width: 720px;
  margin: 0 auto;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-2);
}

.legal-doc h1 {
  margin: 0;
  font-size: clamp(32px, 4.2vw, 44px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.legal-doc h2 {
  margin: var(--space-7) 0 0;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
  text-wrap: balance;
}

.legal-doc p,
.legal-doc ul {
  margin: var(--space-2) 0 0;
}

.legal-doc ul {
  padding-left: 1.25rem;
}

.legal-doc li + li {
  margin-top: var(--space-1);
}

.legal-doc b {
  color: var(--ink);
  font-weight: 600;
}

.site .legal-doc a {
  color: var(--violet);
}

.legal-doc .legal-meta {
  margin-top: var(--space-2);
  font-size: 14px;
  color: var(--ink-caption);
}

.legal-table {
  margin-top: var(--space-3);
  overflow-x: auto;
}

.legal-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.legal-table th,
.legal-table td {
  padding: var(--space-2) var(--space-3) var(--space-2) 0;
  border-bottom: 1px solid var(--border-control);
  text-align: left;
  vertical-align: top;
}

.legal-table th {
  color: var(--ink);
  font-weight: 600;
}

.site .footer-nav a[aria-current="page"] {
  color: var(--ink);
}

@media (max-width: 899px) {
  .legal-header .site-header-row {
    flex-wrap: nowrap;
  }

  .legal {
    padding-top: var(--space-6);
  }
}

@media (max-width: 420px) {
  .legal-header .site-signin {
    display: none;
  }
}
