/* demiros.ai — the stylesheet every page shares.
 *
 * Plain CSS, no framework, no build step, no tracking. Built from the
 * website's approved prototype (seven pages, a shared Nav and Footer). The
 * colours and type are the brand's own tokens (/brand/tokens.css) and the
 * mark's states are the brand's one motion stylesheet (/brand/motion.css).
 *
 * Amber means only "waiting for your yes": the breathing ring, the waiting
 * card's edge and its one action. Every main button is cream on ink.
 *
 * Motion only where a state changes: the waiting ring breathes, the mark
 * moves while a run is thinking, working or checking, and sections fade in
 * once as they arrive. Every one of them stops under reduced motion.
 *
 * One header and one footer on every page; their markup comes from
 * scripts/site/build_use_cases.py, which writes every page, and
 * scripts/site/check_shell.py fails while any page's copy differs.
 */

@import url("/brand/tokens.css");
@import url("/brand/motion.css");

/* ---------------------------------------------------------------- fonts
 * Self-hosted: the page makes no request to Google Fonts. Fraunces (titles)
 * and Inter (words) are variable fonts, one file each; IBM Plex Mono (labels)
 * is two files, 400 and 500. Licences are beside the files (fonts/OFL-*.txt).
 */
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url("fonts/fraunces-var.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/inter-var.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/ibm-plex-mono-400.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/ibm-plex-mono-500.woff2") format("woff2");
}

/* ---------------------------------------------------------------- base */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  background: var(--ink);
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 72px;
}
body {
  margin: 0;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--font-text);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
main {
  display: block;
  overflow-x: clip;
}
a {
  color: var(--cream);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
}
img,
svg {
  display: inline-block;
  vertical-align: middle;
}
p {
  margin: 0;
}
:focus-visible {
  outline: 2px solid var(--cream);
  outline-offset: 2px;
}
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  background: var(--cream);
  color: var(--ink);
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 600;
}
.skip:focus {
  top: 12px;
}

/* ---------------------------------------------------------------- the header
 * Sticky at every width: a 64 px bar and a 1 px rule. Directly in <body>, so
 * nothing clips it and it sticks against the page. Under 760 px the links go
 * behind the menu button (menu.js); with scripts off the button is hidden
 * and the footer carries every link.
 */
.site-head {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(20, 17, 14, 0.92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--ink-rule);
}
.nav {
  max-width: 1240px;
  height: 64px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 26px;
}
.nav__brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  flex: none;
}
.nav__brand img {
  height: 28px;
  width: auto;
}
.nav__links {
  display: flex;
  gap: 22px;
  flex: 1 1 auto;
  font-size: 14px;
}
.nav__links a {
  color: var(--grey-soft);
  padding: 6px 0;
  border-bottom: 1.5px solid transparent;
}
.nav__links a:hover {
  color: var(--cream);
  text-decoration: none;
}
.nav__links a[aria-current="page"] {
  color: var(--cream);
  border-bottom-color: var(--cream);
}
.nav__links .nav__panel-sign-in {
  display: none;
}
.nav__sign-in {
  color: var(--grey-soft);
  font-size: 14px;
  padding: 12px 4px;
}
.nav__try {
  white-space: nowrap;
}
.nav__menu {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid var(--ink-line);
  background: transparent;
  color: var(--cream);
  align-items: center;
  justify-content: center;
  flex: none;
}
.nav__menu svg {
  width: 20px;
  height: 20px;
}
.nav__menu-close {
  display: none;
}
@media (max-width: 760px) {
  .nav {
    padding: 0 16px;
    gap: 12px;
  }
  .nav__brand img {
    height: 24px;
  }
  .nav__links,
  .nav__sign-in {
    display: none;
  }
  .nav__try {
    margin-left: auto;
  }
  .nav__menu {
    display: inline-flex;
  }
  .site-head.is-open .nav__links {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: absolute;
    left: 0;
    right: 0;
    top: 65px;
    height: calc(100vh - 65px);
    height: calc(100dvh - 65px);
    overflow-y: auto;
    background: var(--ink);
    border-top: 1px solid var(--ink-rule);
    padding: 8px 16px 20px;
  }
  .site-head.is-open .nav__links a {
    color: var(--cream);
    font-family: var(--font-display);
    font-size: 30px;
    padding: 14px 0;
    border-bottom: 1px solid var(--ink-rule);
  }
  .site-head.is-open .nav__links a[aria-current="page"] {
    border-bottom-color: var(--ink-rule);
    text-decoration: underline;
    text-underline-offset: 6px;
  }
  .site-head.is-open .nav__links .nav__panel-sign-in {
    display: block;
    font-family: var(--font-text);
    font-size: 16px;
    color: var(--cream-soft);
    border-bottom: 0;
    padding: 18px 0;
  }
  .site-head.is-open .nav__menu-open {
    display: none;
  }
  .site-head.is-open .nav__menu-close {
    display: block;
  }
}
@media (max-width: 760px) and (scripting: none) {
  .nav__menu {
    display: none;
  }
}

/* ---------------------------------------------------------------- the footer */
.site-foot {
  border-top: 1px solid var(--ink-rule);
  background: var(--ink);
  color: var(--grey);
  font-size: 14px;
}
.foot {
  max-width: 1240px;
  margin: 0 auto;
  padding: 48px 24px 32px;
  display: flex;
  flex-direction: column;
  gap: 36px;
}
.foot__top {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 32px;
}
.foot__brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 320px;
}
.foot__brand img {
  height: 24px;
  width: auto;
  align-self: flex-start;
}
.foot__cols {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
}
.foot__col {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.foot__col span {
  color: var(--cream-soft);
  padding-bottom: 4px;
}
.foot__col a {
  color: var(--grey);
  min-height: 32px;
  display: inline-flex;
  align-items: center;
}
.foot__col a:hover {
  color: var(--cream);
}
.foot__base {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  border-top: 1px solid var(--ink-rule);
  padding-top: 20px;
  font-size: 13px;
}
.foot__base a {
  color: var(--grey);
}
@media (max-width: 640px) {
  .foot {
    padding: 40px 16px 28px;
  }
  .foot__cols {
    gap: 32px;
  }
}

/* ---------------------------------------------------------------- layout */
.wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}
.wrap--narrow {
  max-width: 760px;
}
.sec {
  border-top: 1px solid var(--ink-rule);
}
.sec--band {
  background: var(--ink-panel);
}
.sec__in {
  padding-top: 96px;
  padding-bottom: 96px;
}
@media (max-width: 640px) {
  .wrap {
    padding-left: 16px;
    padding-right: 16px;
  }
  .sec__in {
    padding-top: 72px;
    padding-bottom: 72px;
  }
}

/* ---------------------------------------------------------------- type */
.eyebrow {
  font-family: var(--font-label);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--grey);
}
.tag {
  font-family: var(--font-label);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--grey);
}
.mono {
  font-family: var(--font-label);
}
.display {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(44px, 6vw, 84px);
  line-height: 0.98;
  letter-spacing: -0.02em;
}
.h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(36px, 4.8vw, 64px);
  line-height: 1.02;
}
.h2--md {
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.04;
}
.h2--sm {
  font-size: clamp(32px, 4vw, 48px);
}
.display b,
.h2 b,
.w5 {
  font-weight: 500;
}
.lede {
  font-size: 19px;
  color: var(--cream-soft);
  max-width: 36em;
}
.body-lg {
  font-size: 17px;
  color: var(--cream-soft);
}
.muted {
  color: var(--grey);
}
.soft {
  color: var(--cream-soft);
}
.small {
  font-size: 13px;
}
.amber {
  color: var(--amber);
}
.ul {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------------------------------------------------------------- buttons
 * Cream on ink is the main button. Amber is never a plain call to action:
 * only the one action inside a waiting card (.btn--amber).
 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 12px 22px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
  background: transparent;
}
.btn:hover {
  text-decoration: none;
}
.btn--cream {
  background: var(--cream);
  color: var(--ink);
  border-color: var(--cream);
}
.btn--cream:hover {
  color: var(--ink);
  filter: brightness(1.04);
}
.btn--line {
  border-color: var(--ink-line);
  color: var(--cream);
  font-weight: 500;
}
.btn--line:hover {
  border-color: var(--ink-line-hover);
}
.btn--amber {
  background: var(--amber);
  color: var(--ink);
  border-color: var(--amber);
}
.btn--sm {
  min-height: 40px;
  padding: 9px 14px;
  font-size: 14px;
  border-radius: 8px;
}
.btn--lg {
  padding: 15px 26px;
  font-size: 16px;
  border-radius: 12px;
  min-height: 48px;
}
.nav .btn {
  padding: 10px 16px;
  font-size: 14px;
  border-radius: 8px;
}
.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.link-arrow {
  font-size: 15px;
  text-decoration: underline;
  text-underline-offset: 3px;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.chip {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--ink-edge);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 14px;
  color: var(--cream-soft);
  white-space: nowrap;
}

/* ---------------------------------------------------------------- the yes
 * The waiting ring (the brand's .dm-yes, sized to the words beside it), and
 * the waiting card: an amber edge, its words and its one amber action.
 */
.ring {
  --yes-size: 12px;
}
.wait-card {
  border: 1px solid var(--amber);
  border-radius: 12px;
  background: var(--ink-raised);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.wait-card__head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--amber);
}
.wait-card__ask {
  font-size: 18px;
  color: var(--cream);
}
.wait-card[data-state="done"] {
  border-color: var(--ink-line);
}
.wait-card[data-state="done"] .wait-card__head {
  color: var(--cream-soft);
}
.done-dot {
  display: inline-block;
  flex: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--cream-soft);
}
.fake-btn {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--ink-line);
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 14px;
  color: var(--cream);
}
.fake-btn--amber {
  background: var(--amber);
  border-color: var(--amber);
  color: var(--ink);
  font-weight: 600;
}

/* A finished piece of work sits on paper. */
.paper {
  background: var(--paper);
  color: var(--paper-ink);
  border-radius: 10px;
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.paper__tag {
  font-family: var(--font-label);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--paper-muted);
  text-transform: uppercase;
}
.paper__title {
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.2;
}
.paper__body {
  font-size: 14px;
  border-top: 1px solid var(--paper-rule);
  padding-top: 8px;
  white-space: pre-line;
}
.paper__check {
  font-size: 12px;
  color: var(--paper-muted);
}

/* A run's step: the mark in its state, and the words beside it. */
.step {
  display: flex;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--ink-edge);
  border-radius: 10px;
  padding: 12px 14px;
  background: var(--ink-card);
}
.step .dm-mark {
  width: 30px;
  height: 30px;
  flex: none;
}
.step__words {
  display: flex;
  flex-direction: column;
}
.step__title {
  font-size: 15px;
}
.step__detail {
  font-size: 13px;
  color: var(--grey-soft);
}

/* ---------------------------------------------------------------- arriving
 * Sections fade in once as they come into view, where the browser can tie
 * an animation to scrolling. Elsewhere, and under reduced motion, they are
 * simply there.
 */
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes inUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .in {
    animation: inUp 0.45s ease-out both;
  }
  @supports (animation-timeline: view()) {
    .rv {
      animation: rise linear both;
      animation-timeline: view();
      animation-range: entry 5% entry 45%;
    }
  }
}

/* ---------------------------------------------------------------- legal and
 * short pages: privacy, terms, thanks, the 404. */
.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 80px 24px 96px;
  color: var(--cream-soft);
  font-size: 16px;
  line-height: 1.65;
}
.legal h1 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--cream);
}
.legal h2 {
  margin: 40px 0 10px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 26px;
  line-height: 1.2;
  color: var(--cream);
}
.legal h3 {
  margin: 28px 0 8px;
  font-size: 17px;
  font-weight: 600;
  color: var(--cream);
}
.legal p,
.legal ul,
.legal ol {
  margin: 0 0 14px;
}
.legal li {
  margin-bottom: 6px;
}
.legal a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.legal strong {
  color: var(--cream);
}
.legal table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 16px;
  font-size: 15px;
}
.legal th,
.legal td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px 10px 0;
  border-top: 1px solid var(--ink-rule);
}
.legal th {
  color: var(--cream);
  font-weight: 500;
}
.legal__meta {
  font-family: var(--font-label);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 32px;
}
.legal--note {
  padding-top: 120px;
  padding-bottom: 140px;
}
.legal--note .legal__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 28px;
}
.legal--note .legal__actions a {
  text-decoration: none;
}
.legal--note .dm-mark {
  width: 44px;
  height: 44px;
  margin-bottom: 20px;
}
@media (max-width: 640px) {
  .legal {
    padding: 56px 16px 72px;
  }
  .legal table {
    display: block;
    overflow-x: auto;
  }
}

/* ---------------------------------------------------------------- forms */
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  color: var(--grey-soft);
}
.field input,
.field textarea,
.field select {
  background: var(--ink);
  border: 1px solid var(--ink-line);
  border-radius: 8px;
  color: var(--cream);
  font-size: 15px;
  padding: 11px 12px;
  min-height: 44px;
}
.field textarea {
  resize: vertical;
}
.honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* ---------------------------------------------------------------- close
 * The last section of the home page and /product: 112 px above and below,
 * 24 px between the heading and what follows; the section's own rule above
 * and the footer's below. */
.close {
  padding-top: 112px;
  padding-bottom: 112px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
  text-align: center;
}
.close__h {
  font-size: clamp(40px, 5.4vw, 72px);
  line-height: 1;
}
.actions--center {
  justify-content: center;
}

/* ---------------------------------------------------------------- app logos
 * The connection catalogue's own files, each an <img> of fixed size so
 * nothing moves as it loads. "muted" draws the mark in the one muted colour
 * the site uses for app logos (--grey-logo, #a99d8b): the filter turns the
 * mark black, then into that colour. "given" leaves it exactly as the
 * catalogue serves it, for a vendor whose rules don't allow a recoloured
 * mark (site/README.md, "The apps"). */
.logo {
  display: inline-block;
  flex: none;
  object-fit: contain;
}
.logo--muted {
  filter: brightness(0) invert(0.563) sepia(0.505);
}
.chip--logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
}
.tile--logo .logo {
  width: 18px;
  height: 18px;
}

/* A visually hidden input sits beside the label that works it, never at the
 * top of the page: focusing it must not scroll the page away from the click. */
.demo,
.split__vis,
.win,
.uc-browse,
.uc-result,
.uc-when,
.sc-flow,
.cmp-wrap {
  position: relative;
}
