/* TRY THE DEMO — complly.ai/demo (landing #305, epic #300; owner, 18 Oct 2026). The email-first demo
   start: your details → pick one → opening. Drawn from the mock-up the owner approved
   (dev-mockups.complly.ai, gallery card s24) and built on the site's own tokens, so a product is the
   same colour here as on Our apps.

   Two rules this file is held to by CI, both learned on real devices the laptop cannot imitate:
     · every text field is 16px or larger (scripts/check-ios-zoom.mjs) — iOS zooms the page in on a
       smaller one and it then slides sideways under the thumb (#235);
     · no color-mix() outside @supports, and each product bubble carries PLAIN tints that match what
       color-mix() would make (scripts/check-demo-tints.mjs) — Safari < 16.2 drew blank circles on
       the stand's tablet on 29 Sep 2026. The bubbles keep the `.cnode` names that check reads. */

/* [hidden] must win over every display rule below. */
.ds [hidden] { display: none !important; }

.ds { color: var(--slate-300); min-height: 100vh; }
.ds-wrap { position: relative; padding-top: clamp(128px, 12vw, 158px); padding-bottom: clamp(48px, 6vw, 80px); }

/* ---- progress ---- */
.ds-progress { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin: 0 0 clamp(24px, 3vw, 38px); padding: 0;
  font-size: 13px; font-weight: 600; color: var(--slate-400); }
.ds-progress li { display: inline-flex; align-items: center; gap: 8px; }
.ds-progress span { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 11px;
  border: 1px solid rgba(148, 163, 184, .45); color: var(--slate-400); }
.ds-progress li.is-on { color: var(--white); }
.ds-progress li.is-on span { background: var(--cyan); border-color: var(--cyan); color: var(--navy-900); }
.ds-progress li.is-done span { background: rgba(52, 211, 153, .18); border-color: var(--green); color: var(--green); }

.ds-screen { animation: dsIn .45s var(--ease) both; }
@keyframes dsIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.ds h1 { margin: 0; font-size: clamp(32px, 4.2vw, 52px); line-height: 1.06; letter-spacing: -.03em; color: var(--white); }
.ds h2 { color: var(--white); }
.ds-eyebrow { display: inline-flex; font-family: var(--font-head); font-weight: 700; font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--cyan); background: rgba(34, 211, 238, .1); border: 1px solid rgba(34, 211, 238, .35); padding: 5px 12px; border-radius: 999px; margin-bottom: 16px; }
.ds-lede { margin: 14px 0 0; font-size: clamp(16px, 1.3vw, 18px); line-height: 1.6; color: var(--slate-300); }
.ds-head { text-align: center; max-width: 760px; margin: 0 auto clamp(24px, 3vw, 36px); }
.ds-foot { text-align: center; margin: 22px auto 0; font-size: 13px; color: var(--slate-400); max-width: 640px; }
.ds-link { background: none; border: 0; padding: 0; font: inherit; color: var(--cyan); text-decoration: underline; cursor: pointer; }

/* ---- 1 · details ---- */
.ds-split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 4vw, 60px); align-items: start; max-width: 1080px; margin: 0 auto; }
.ds-gets { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 12px; }
.ds-gets li { position: relative; padding-left: 28px; font-size: 15px; line-height: 1.55; }
.ds-gets li::before { content: ''; position: absolute; left: 0; top: 4px; width: 16px; height: 16px; border-radius: 50%;
  background: rgba(52, 211, 153, .16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2334d399' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/10px no-repeat; }
.ds-gets b, .ds-lede b { color: var(--white); }
.ds-chosen { display: inline-flex; align-items: center; gap: 10px; margin: 22px 0 0; padding: 10px 14px; border-radius: 12px; font-size: 14px;
  background: rgba(34, 211, 238, .1); border: 1px solid rgba(34, 211, 238, .4); }
.ds-chosen b { color: var(--white); }
.ds-chosen__ring { width: 14px; height: 14px; border-radius: 50%; border: 3px solid var(--cyan); }

.ds-card { background: var(--navy-800); border: 1px solid rgba(148, 163, 184, .2); border-radius: var(--radius); padding: clamp(20px, 2.4vw, 30px);
  box-shadow: 0 24px 60px rgba(2, 6, 23, .45); }
.ds-card h2 { margin: 0; font-size: 21px; letter-spacing: -.01em; }
.ds-card__sub { margin: 6px 0 18px; font-size: 14px; line-height: 1.5; color: var(--slate-400); }
.ds-field { display: block; font-size: 13px; font-weight: 600; color: var(--slate-300); margin-bottom: 12px; }
.ds-field i { font-style: normal; font-weight: 500; color: var(--slate-500); }
/* 16px, never less: iOS zooms the page in on a smaller field (scripts/check-ios-zoom.mjs). */
.ds-field select, .ds-field textarea { display: block; width: 100%; margin-top: 6px; padding: 11px 14px; border-radius: 10px; font: inherit; font-size: 16px; font-weight: 500;
  color: var(--white); background: var(--navy-900); border: 1px solid rgba(148, 163, 184, .3); }
.ds-field select { height: 46px; padding-top: 0; padding-bottom: 0; }
.ds-field textarea { resize: vertical; min-height: 84px; }
.ds-field select:focus, .ds-field textarea:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(34, 211, 238, .2); }
.ds-human { display: flex; justify-content: center; margin-top: 16px; min-height: 0; }
.ds-field input { display: block; width: 100%; margin-top: 6px; height: 46px; padding: 0 14px; border-radius: 10px; font: inherit; font-size: 16px; font-weight: 500;
  color: var(--white); background: var(--navy-900); border: 1px solid rgba(148, 163, 184, .3); }
.ds-field input:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(34, 211, 238, .2); }
.ds-field input.is-bad { border-color: #f87171; }
.ds-check { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 16px; font-size: 13px; line-height: 1.5; color: var(--slate-400); cursor: pointer; }
.ds-check input { margin-top: 3px; width: 16px; height: 16px; font-size: 16px; accent-color: var(--cyan); }
.ds-err { margin: -6px 0 12px; font-size: 13px; color: #fca5a5; }
.ds-alert { margin: 0 0 16px; padding: 10px 12px; border-radius: 10px; font-size: 14px; line-height: 1.45; color: var(--white);
  background: rgba(245, 158, 11, .14); border: 1px solid rgba(245, 158, 11, .45); }
.ds-alert a { color: var(--cyan); }
.ds-alert--ok { background: rgba(52, 211, 153, .12); border-color: rgba(52, 211, 153, .45); margin: 16px auto 0; max-width: 520px; }
.ds-alert--static { max-width: 640px; margin: 0 auto 24px; }
.ds-how { margin-top: 14px; font-size: 13px; color: var(--slate-400); }
.ds-how summary { cursor: pointer; color: var(--slate-300); font-weight: 600; }
.ds-how p { margin: 8px 0 0; line-height: 1.55; }
.ds-how a { color: var(--cyan); }

/* ---- 2 · pick: the two product bubbles ----
   PLAIN tints first, every browser reads them; color-mix() only refines them inside @supports.
     --c-ring  the border  = the product's colour at 55%
     --c-halo  the ring    = its colour at 8%
     --c-fill  the fill    = its colour mixed 16% into --navy-800 (#0f1d33)
   scripts/check-demo-tints.mjs recomputes all three from demo.html's :root and fails on drift. */
.cnode {
  border: 1.5px solid var(--c-ring);
  background: radial-gradient(circle at 50% 30%, var(--c-fill) 0%, var(--navy-800) 74%);
  box-shadow: 0 0 0 6px var(--c-halo), 0 20px 46px -16px rgba(0, 0, 0, .8);
}
.cnode--risk { --c: var(--cyan); --c-ring: rgba(34, 211, 238, .55); --c-halo: rgba(34, 211, 238, .08); --c-fill: #123a51; }
.cnode--construct { --c: var(--blue); --c-ring: rgba(59, 130, 246, .55); --c-halo: rgba(59, 130, 246, .08); --c-fill: #162d52; }
@supports (color: color-mix(in srgb, red 50%, transparent)) {
  .cnode--risk, .cnode--construct {
    --c-ring: color-mix(in srgb, var(--c) 55%, transparent);
    --c-halo: color-mix(in srgb, var(--c) 8%, transparent);
    --c-fill: color-mix(in srgb, var(--c) 16%, var(--navy-800));
  }
}

/* Owner, 26 Oct 2026 (seen on an iPhone): "They need to be the round bubbles, which are on the website …
   have one under the other." So each product is a CIRCLE like the homepage's product bubbles
   (platform.css `.prow > .cnode`: icon, "Complly" over the product name in its colour, ring + halo),
   and the two sit in ONE centred column at every width.
   🔴 platform.css (also loaded here) gives `.cnode` the homepage MAP placement — position:absolute at
   --nx/--ny, translate(-50%,-50%), 19cqw square — and its hover re-applies that translate. Every rule
   below is scoped under #ds so it out-ranks those and the homepage is untouched. Before this the
   buttons were cards in a 2-column grid AND absolutely placed map nodes, so on a phone they landed on
   top of each other with "Risk" / "Construc" clipped. */
.ds-picks { display: flex; flex-direction: column; align-items: center; gap: clamp(30px, 4vw, 40px); max-width: 420px; margin: 0 auto; }
.ds-pickrow { display: flex; flex-direction: column; align-items: center; gap: 16px; width: 100%; }
#ds .ds-pick {
  position: relative; left: auto; top: auto; z-index: auto; transform: none;
  width: min(260px, calc(100vw - 48px)); height: auto; aspect-ratio: 1; flex: none;
  border-radius: 50%; padding: 26px; gap: 6px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  font: inherit; color: inherit; cursor: pointer;
  transition: transform .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease), opacity .3s var(--ease);
}
#ds .ds-pick:hover, #ds .ds-pick:focus-visible { transform: translateY(-4px); border-color: var(--c); box-shadow: 0 0 0 6px var(--c-halo), 0 26px 54px -16px rgba(0, 0, 0, .85); }
#ds .ds-pick:focus-visible { outline: 2px solid var(--white); outline-offset: 4px; }
#ds .ds-pick .cnode__ico { width: 30px; height: 30px; margin-bottom: 2px; }
#ds .ds-pick .cnode__name { font-size: 22px; line-height: 1.08; }
.ds-pick__for { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--slate-400); }
.ds-pick__go { margin-top: 8px; font-family: var(--font-head); font-weight: 700; font-size: 14px; line-height: 1.3; color: var(--c); }
.ds-pick__what { margin: 0; max-width: 320px; text-align: center; font-size: 15px; line-height: 1.5; color: var(--slate-300); }
.ds-pick[aria-busy="true"] { opacity: .6; pointer-events: none; }

/* ---- 3 · opening ---- */
.ds-open { max-width: 620px; margin: 2vh auto 0; text-align: center; }
.ds-open__ring { display: block; width: 58px; height: 58px; margin: 0 auto 22px; border-radius: 50%;
  border: 5px solid rgba(34, 211, 238, .25); border-top-color: var(--cyan); animation: dsSpin 1s linear infinite; }
@keyframes dsSpin { to { transform: rotate(360deg); } }
.ds-open__note { margin-top: 24px; font-size: 13px; color: var(--slate-400); }
.ds-open__note a { color: var(--cyan); }

@media (prefers-reduced-motion: reduce) {
  .ds-screen { animation: none; }
  .ds-open__ring { animation-duration: 3s; }
  #ds .ds-pick { transition: none; }
}
@media (max-width: 900px) {
  .ds-split { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .ds-progress { gap: 6px 12px; font-size: 12px; }
}
