/* WashSOS marketing site.
 *
 * Every color is a WashSOS brand token (washos/common/brand.py in the desktop
 * app) so the site and the software read as one product. The site is light,
 * like the app; navy is spent on the band the live demo sits in and on the
 * closing contact block. */

:root {
  color-scheme: light;

  --navy: #0B1730;
  --navy-raised: #16264A;
  --navy-line: #233660;
  --blue: #2563EB;
  --blue-dark: #1D4ED8;
  --cyan: #22D3EE;
  --slate: #64748B;
  --slate-light: #94A3B8;
  --slate-pale: #CBD5E1;
  --border: #E2E8F0;
  --surface: #F8FAFC;
  --surface-alt: #F1F5F9;
  --white: #FFFFFF;

  --success: #15803D;
  --warning: #F59E0B;
  --danger: #DC2626;
  --success-soft: #DCFCE7; --success-text: #166534;
  --warning-soft: #FEF3C7; --warning-text: #92400E;
  --danger-soft: #FEE2E2;  --danger-text: #991B1B;
  --blue-soft: #DBEAFE;    --blue-text: #1E40AF;
  --cyan-soft: #CFFAFE;    --cyan-text: #155E75;
  --slate-soft: #E2E8F0;   --slate-text: #334155;

  --font-display: "Unbounded", "Onest", "Segoe UI", sans-serif;
  --font-body: "Onest", "Segoe UI", system-ui, sans-serif;
  --font-word: "Manrope", "Onest", "Segoe UI", sans-serif;

  --gutter: 24px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--navy);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

h1, h2, h3, p, ol, ul, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--navy);
  color: var(--white);
  border-radius: 8px;
  text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.wrap--wide {
  width: 100%;
  max-width: 1328px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* --- Brand ------------------------------------------------------------- */

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.brand__mark { width: 34px; height: 34px; }
.brand__word {
  font-family: var(--font-word);
  font-weight: 800;
  font-size: 23px;
  letter-spacing: -0.045em;
  line-height: 1;
}
.brand__sos { color: var(--blue); }
.brand--dark .brand__word { color: var(--surface); }
.brand--dark .brand__sos { color: var(--cyan); }

/* --- Buttons ------------------------------------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-weight: 600;
  font-size: 16px;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease), transform .18s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: 15px; border-radius: 8px; }

.btn--primary { background: var(--blue); color: var(--white); }
.btn--primary:hover { background: var(--blue-dark); }

.btn--ghost { background: var(--white); color: var(--navy); border-color: var(--border); }
.btn--ghost:hover { border-color: var(--slate-light); background: var(--surface-alt); }

.btn--bright { background: var(--cyan); color: var(--navy); }
.btn--bright:hover { background: #67E8F9; }
.contact .btn:focus-visible { outline-color: var(--cyan); }

/* --- Navigation ---------------------------------------------------------- */

.nav {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 50;
  background: rgba(248, 250, 252, .82);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.nav.is-scrolled {
  border-bottom-color: var(--border);
  background: rgba(255, 255, 255, .9);
}
.nav__inner {
  display: flex;
  align-items: center;
  gap: 32px;
  max-width: 1328px;
  height: 72px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.nav__links {
  display: flex;
  gap: 4px;
  margin-right: auto;
}
.nav__links a {
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--slate-text);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: color .15s, background-color .15s;
}
.nav__links a:hover { color: var(--navy); background: var(--surface-alt); }
.nav__end { display: flex; align-items: center; gap: 12px; }

/* The same "BG / EN" switch as the bottom of the app's sidebar. */
.lang {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .02em;
}
.lang__on { color: var(--navy); }
.lang__sep, .lang__off { color: var(--slate-light); font-weight: 500; }
.lang:hover .lang__off { color: var(--blue); }

/* --- Hero ---------------------------------------------------------------- */

.hero {
  position: relative;
  padding-top: 56px;
  background: var(--surface);
  overflow-x: clip;
}
.hero__copy {
  padding-bottom: 52px;
}
.hero__aside {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px 48px;
  margin-top: 32px;
}
.hero__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.4rem, 6vw, 5.1rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
/* Names the product category in the heading itself, in the words people search with. */
.hero__kicker {
  display: block;
  margin-bottom: 0.5em;
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.4em, 1.25rem);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0;
  color: var(--blue);
}
.lede {
  max-width: 36em;
  text-wrap: pretty;
  color: var(--slate-text);
  font-size: 1.1875rem;
  line-height: 1.55;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  flex: none;
}

/* The navy band starts behind the lower part of the app window and carries
 * on into the facts strip below. */
.stage-wrap {
  position: relative;
  padding-bottom: 24px;
}
.stage-wrap::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 34%;
  bottom: 0;
  width: 100vw;
  transform: translateX(-50%);
  background: var(--navy);
  z-index: 0;
}
.stage {
  position: relative;
  z-index: 1;
  width: 100%;
  /* demo.js sets the height to the scaled window height */
}
/* Shown until demo.js builds the live window, and to crawlers that don't run scripts. */
.stage__poster {
  display: block;
  width: 100%;
  max-width: 1200px;
  height: auto;
  margin: 0 auto;
  border-radius: 10px;
}

.tour {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 20px 40px;
  align-items: start;
  padding: 32px 0 8px;
}
.tour__steps {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  counter-reset: none;
}
.tour__steps button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px 8px 8px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--slate-light);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: color .2s, background-color .2s;
}
.tour__steps button:hover { color: var(--white); background: var(--navy-raised); }
.tour__steps button:focus-visible { outline-color: var(--cyan); }
.tour__n {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1.5px solid var(--navy-line);
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  transition: background-color .25s, border-color .25s, color .25s;
}
.tour__steps li.is-done .tour__n { border-color: var(--cyan); color: var(--cyan); }
.tour__steps li.is-active button { color: var(--white); background: var(--navy-raised); }
.tour__steps li.is-active .tour__n { background: var(--cyan); border-color: var(--cyan); color: var(--navy); }

.tour__caption {
  max-width: 62ch;
  padding-top: 6px;
  color: var(--slate-pale);
  font-size: 16px;
  line-height: 1.55;
  min-height: 3.1em;
}
.tour__caption strong { color: var(--white); font-weight: 600; }

/* --- Facts strip --------------------------------------------------------- */

.facts {
  background: var(--navy);
  color: var(--slate-pale);
  padding: 40px 0 96px;
}
.facts__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.fact {
  padding: 28px 28px 0 0;
  border-top: 1px solid var(--navy-line);
}
.fact + .fact {
  padding-left: 28px;
  border-left: 1px solid var(--navy-line);
}
.fact__big {
  margin-bottom: 8px;
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.fact p:not(.fact__big) { font-size: 15.5px; line-height: 1.5; max-width: 24ch; }

/* --- Sections ------------------------------------------------------------ */

.section { padding: 128px 0; }
.section__head { max-width: 760px; margin-bottom: 64px; }
.section h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.9rem, 3.5vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.section__lede {
  margin-top: 20px;
  color: var(--slate);
  font-size: 1.1875rem;
  line-height: 1.55;
  max-width: 40em;
}

/* --- Badges (same pale pairs as the app) --------------------------------- */

.badge {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 10px;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  line-height: 1;
}
.badge--blue  { background: var(--blue-soft);    color: var(--blue-text); }
.badge--amber { background: var(--warning-soft); color: var(--warning-text); }
.badge--green { background: var(--success-soft); color: var(--success-text); }
.badge--red   { background: var(--danger-soft);  color: var(--danger-text); }
.badge--cyan  { background: var(--cyan-soft);    color: var(--cyan-text); }
.badge--slate { background: var(--slate-soft);   color: var(--slate-text); }

/* --- Team / roles ------------------------------------------------------- */

.roles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.role { padding: 0 36px; }
.role:first-child { padding-left: 0; }
.role:last-child { padding-right: 0; }
.role + .role { border-left: 1px solid var(--border); }
.role h3 {
  margin: 28px 0 10px;
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.role p { color: var(--slate-text); font-size: 16px; }

.role__visual {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  height: 188px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  font-size: 13px;
}

.mini-flow { display: flex; align-items: center; gap: 6px; }
.mini-flow__line { flex: 1; height: 1px; background: var(--slate-pale); min-width: 8px; }
.mini-cal { display: grid; gap: 6px; }
.mini-cal__chip {
  padding: 5px 8px;
  border-radius: 5px;
  border-left: 3px solid;
  font-size: 12px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.mini-cal__chip--blue  { background: var(--blue-soft);    color: var(--blue-text);    border-color: var(--blue); }
.mini-cal__chip--amber { background: var(--warning-soft); color: var(--warning-text); border-color: var(--warning); }
.mini-cal__chip--green { background: var(--success-soft); color: var(--success-text); border-color: var(--success); }

.mini-ledger {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
.mini-ledger { font-size: 12px; }
.mini-ledger .badge { padding: 0 7px; font-size: 11px; height: 20px; }
.mini-ledger td {
  padding: 8px 6px;
  border-bottom: 1px solid var(--border);
  color: var(--navy);
  white-space: nowrap;
}
.mini-ledger tr:last-child td { border-bottom: 0; }
.mini-ledger td:first-child { color: var(--slate); font-variant-numeric: tabular-nums; }
.mini-ledger .num { text-align: right; font-variant-numeric: tabular-nums; font-weight: 500; }
.mini-ledger .is-linked td:nth-child(2) { color: var(--cyan-text); font-weight: 500; }

.mini-stat {
  padding: 16px 18px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
}
.mini-stat__label { display: block; color: var(--slate); font-size: 12px; }
.mini-stat__value {
  display: block;
  margin: 2px 0 10px;
  font-size: 22px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.mini-stat__spark { width: 100%; height: 40px; }

/* --- Modules index ------------------------------------------------------- */

.modules { background: var(--surface); }
.mod-group {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 32px;
  padding: 32px 0;
  border-top: 1px solid var(--border);
}
.mod-group:last-child { border-bottom: 1px solid var(--border); }
.mod-group__title {
  padding-top: 14px;
  color: var(--slate);
  font-size: 15px;
  font-weight: 500;
}
.mod-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px 24px;
}
.mod {
  position: relative;
  display: block;
  width: 100%;
  padding: 14px 44px 16px 16px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: background-color .18s var(--ease);
}
.mod__name {
  display: block;
  margin-bottom: 4px;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: color .18s var(--ease);
}
.mod__desc {
  display: block;
  color: var(--slate);
  font-size: 15.5px;
  line-height: 1.5;
}
/* A small "open in the window above" glyph, shown on hover/focus. */
.mod::after {
  content: "";
  position: absolute;
  top: 18px;
  right: 16px;
  width: 18px;
  height: 18px;
  opacity: 0;
  transform: translateY(4px);
  background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%232563EB' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='4' width='16' height='13' rx='2'/%3E%3Cpath d='M2 8h16M10 15V11M8 13l2-2 2 2'/%3E%3C/svg%3E");
  transition: opacity .18s var(--ease), transform .18s var(--ease);
}
.mod:hover, .mod:focus-visible { background: var(--white); }
.mod:hover .mod__name, .mod:focus-visible .mod__name { color: var(--blue); }
.mod:hover::after, .mod:focus-visible::after { opacity: 1; transform: none; }

/* --- Setup ---------------------------------------------------------------- */

.setup__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 72px;
  align-items: center;
}
.steps {
  margin-top: 48px;
  counter-reset: step;
}
.steps li {
  position: relative;
  padding: 0 0 28px 60px;
  counter-increment: step;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -2px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--cyan);
  font-size: 15px;
  font-weight: 600;
}
.steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 17.5px;
  top: 40px;
  bottom: 4px;
  width: 1px;
  background: var(--border);
}
.steps h3 { font-size: 1.125rem; font-weight: 600; margin-bottom: 4px; }
.steps p { color: var(--slate); font-size: 16px; }

.net svg { width: 100%; height: auto; }
.net__links path { stroke: var(--border); }
.net__pulse path {
  stroke: var(--cyan);
  stroke-dasharray: 10 220;
  stroke-dashoffset: 0;
  stroke-linecap: round;
  animation: flow 3.2s linear infinite;
}
.net__pulse path:nth-child(2) { animation-delay: -.8s; }
.net__pulse path:nth-child(3) { animation-delay: -1.6s; }
.net__pulse path:nth-child(4) { animation-delay: -2.4s; }
@keyframes flow { to { stroke-dashoffset: -230; } }

.net__server { fill: var(--navy); }
.net__pc rect:first-child { fill: var(--white); stroke: var(--slate-pale); stroke-width: 1.5; }
.net__pc .net__screen { fill: var(--surface-alt); }
.net__pc .net__side { fill: var(--navy); }
.net__pc path { stroke: var(--slate-pale); stroke-width: 3; stroke-linecap: round; }
.net__label { fill: var(--slate); font-family: var(--font-body); font-size: 14px; }
.net__label--strong { fill: var(--navy); font-weight: 600; font-size: 15px; }
.net figcaption {
  margin-top: 16px;
  color: var(--slate);
  font-size: 15px;
  text-align: center;
}

.trust {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 40px;
  margin-top: 112px;
}
.trust li { padding-top: 22px; border-top: 2px solid var(--navy); }
.trust h3 { font-size: 1.0625rem; font-weight: 600; margin-bottom: 8px; line-height: 1.35; }
.trust p { color: var(--slate); font-size: 15.5px; line-height: 1.55; }

/* --- FAQ ----------------------------------------------------------------- */

.faq { background: var(--surface); }
.faq__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 64px;
  align-items: start;
}
.faq__grid h2 { position: sticky; top: 112px; }
.faq__list { border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary {
  position: relative;
  padding: 22px 48px 22px 0;
  font-size: 1.125rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before,
.faq summary::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 50%;
  width: 14px;
  height: 2px;
  border-radius: 1px;
  background: var(--blue);
  transition: transform .25s var(--ease);
}
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0deg); }
.faq summary:hover { color: var(--blue); }
.faq details p {
  max-width: 60ch;
  padding: 0 48px 24px 0;
  color: var(--slate-text);
}

/* --- Contact ------------------------------------------------------------- */

.contact {
  padding: 128px 0;
  background: var(--navy);
  color: var(--slate-pale);
}
.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 80px;
  align-items: start;
}
.contact__mark { width: 56px; height: 56px; margin-bottom: 32px; }
.contact h2 {
  margin-bottom: 20px;
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.9rem, 3.5vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.contact__copy > p { max-width: 36em; font-size: 1.125rem; }
.contact__direct { margin-top: 28px; font-size: 16px !important; }
.contact__direct a { color: var(--cyan); font-weight: 600; text-decoration-thickness: 1px; text-underline-offset: 4px; }

.form {
  display: grid;
  gap: 18px;
  padding: 32px;
  border: 1px solid var(--navy-line);
  border-radius: 16px;
  background: var(--navy-raised);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label {
  display: block;
  margin-bottom: 6px;
  color: var(--slate-pale);
  font-size: 14px;
  font-weight: 500;
}
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 14px;
  border: 1px solid var(--navy-line);
  border-radius: 10px;
  background: var(--navy);
  color: var(--white);
  font-size: 16px;
  transition: border-color .15s;
}
.field textarea { resize: vertical; min-height: 96px; }
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none' stroke='%2394A3B8' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px;
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--slate); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, .18);
}
.field__error {
  display: none;
  margin-top: 6px;
  color: #FCA5A5;
  font-size: 13.5px;
}
.field.is-invalid input { border-color: #F87171; }
.field.is-invalid .field__error { display: block; }
.form .btn { justify-self: start; margin-top: 6px; }
.form__done {
  padding: 14px 16px;
  border-radius: 10px;
  background: rgba(34, 211, 238, .1);
  color: var(--cyan-soft);
  font-size: 15px;
}

/* --- Footer -------------------------------------------------------------- */

.footer {
  background: var(--navy);
  border-top: 1px solid var(--navy-line);
  color: var(--slate-light);
  font-size: 14px;
}
.footer__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 28px;
  padding-bottom: 28px;
}
.footer .brand__mark { width: 28px; height: 28px; }
.footer .brand__word { font-size: 19px; }
.footer__copy { margin-left: auto; }

/* --- Responsive --------------------------------------------------------- */

@media (max-width: 1080px) {
  .nav__links { display: none; }
  .nav__end { margin-left: auto; }
  .hero__aside { flex-direction: column; align-items: flex-start; }
  .tour { grid-template-columns: 1fr; }
  .facts__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fact:nth-child(3) { padding-left: 0; border-left: 0; }
  .fact:nth-child(n+3) { margin-top: 12px; }
  .roles { grid-template-columns: 1fr; gap: 56px; }
  .role, .role:first-child, .role:last-child { padding: 0; }
  .role + .role { border-left: 0; }
  .role__visual { max-width: 460px; }
  .setup__grid, .faq__grid, .contact__grid { grid-template-columns: 1fr; gap: 56px; }
  .faq__grid h2 { position: static; }
  .net { max-width: 560px; }
  .trust { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 80px; }
  .mod-group { grid-template-columns: 1fr; gap: 8px; }
  .mod-group__title { padding-top: 0; }
}

@media (max-width: 680px) {
  :root { --gutter: 16px; }
  body { font-size: 16px; }
  .nav__inner { height: 64px; gap: 12px; }
  .nav .btn--sm { padding: 0 12px; font-size: 14px; }
  .brand__word { font-size: 21px; }
  .brand__mark { width: 30px; height: 30px; }
  .hero { padding-top: 40px; }
  .hero__copy { padding-bottom: 36px; }
  .hero__actions .btn { flex: 1 1 auto; }
  .stage-wrap::before { top: 20%; }
  .tour__steps button { padding: 6px 10px 6px 6px; font-size: 14px; }
  .section { padding: 88px 0; }
  .section__head { margin-bottom: 40px; }
  .facts__grid { grid-template-columns: 1fr; }
  .fact, .fact + .fact { padding: 20px 0 0; border-left: 0; }
  .fact + .fact { margin-top: 20px; }
  .fact p:not(.fact__big) { max-width: none; }
  .mod-list { grid-template-columns: 1fr; }
  .mod { padding-left: 0; padding-right: 40px; }
  .mod:hover, .mod:focus-visible { background: transparent; }
  .trust { grid-template-columns: 1fr; gap: 32px; }
  .contact { padding: 88px 0; }
  .form { padding: 22px; }
  .field-row { grid-template-columns: 1fr; }
  .footer__inner { flex-wrap: wrap; gap: 12px 24px; }
  .footer__copy { margin-left: 0; width: 100%; }
  .stage-hint { display: block; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .net__pulse { display: none; }
}

/* =========================================================================
 * The application window (built by demo.js)
 *
 * A faithful rebuild of the desktop app's shell and app.qss: 220px navy
 * sidebar, 56px top bar, hairline panels, 8px surfaces and 6px controls.
 * Laid out at a fixed 1200 x 740 and scaled to fit the page.
 * ========================================================================= */

.stage-hint {
  display: none;
  margin-top: 12px;
  color: var(--slate-pale);
  font-size: 14px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.app-scaler {
  position: relative;
  margin: 0 auto;
}
.app {
  position: absolute;
  left: 0;
  top: 0;
  width: 1200px;
  height: 740px;
  transform-origin: 0 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 12px;
  background: var(--white);
  color: var(--navy);
  font-family: var(--font-body);
  font-size: 13.5px;
  line-height: 1.4;
  box-shadow:
    0 0 0 1px rgba(11, 23, 48, .08),
    0 2px 4px rgba(11, 23, 48, .06),
    0 24px 48px -12px rgba(11, 23, 48, .35),
    0 64px 120px -24px rgba(2, 8, 23, .55);
  user-select: none;
  -webkit-user-select: none;
}
.app button { cursor: pointer; }
.app :focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; border-radius: 6px; }

/* Window title bar */
.app-titlebar {
  display: flex;
  align-items: center;
  height: 34px;
  padding-left: 12px;
  background: var(--white);
  font-size: 12px;
  color: var(--navy);
  flex: none;
}
.app-titlebar svg.mk { width: 16px; height: 16px; margin-right: 10px; }
.app-titlebar__ctrls { display: flex; margin-left: auto; height: 100%; }
.app-titlebar__ctrls span {
  display: grid;
  place-items: center;
  width: 46px;
  height: 100%;
  color: var(--slate-text);
}
.app-titlebar__ctrls span:last-child:hover { background: #C42B1C; color: var(--white); }
.app-titlebar__ctrls span:not(:last-child):hover { background: var(--surface-alt); }


.app-body { flex: 1; display: flex; min-height: 0; }

.app-side {
  display: flex;
  flex-direction: column;
  width: 212px;
  padding: 12px;
  background: var(--navy);
  flex: none;
}
.app-side__logo {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 4px 4px 16px;
}
.app-side__logo svg { width: 34px; height: 34px; }
.app-side__logo b {
  font-family: var(--font-word);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.04em;
  color: var(--surface);
}
.app-side__logo b i { font-style: normal; color: var(--cyan); }
.app-side nav { display: flex; flex-direction: column; gap: 2px; }
.app-side nav button {
  padding: 8px 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--slate-pale);
  text-align: left;
  font-size: 13.5px;
  transition: background-color .12s, color .12s;
}
.app-side nav button:hover { background: var(--navy-raised); color: var(--white); }
.app-side nav button.is-active {
  background: var(--navy-raised);
  color: var(--white);
  font-weight: 600;
  border-left: 3px solid var(--cyan);
  border-radius: 0 6px 6px 0;
  padding-left: 7px;
}
.app-side__lang {
  margin-top: auto;
  padding: 4px 10px;
  border: 0;
  background: transparent;
  color: var(--slate-light);
  text-align: left;
  font-size: 12.5px;
}
.app-side__lang:hover { color: var(--cyan); }

.app-main { flex: 1; display: flex; flex-direction: column; min-width: 0; background: var(--surface); }
.app-topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 56px;
  padding: 0 20px;
  border-bottom: 1px solid var(--border);
  background: var(--white);
  flex: none;
}
.app-topbar h2 {
  font-family: var(--font-body);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.app-content {
  position: relative;
  flex: 1;
  padding: 18px 20px 20px;
  overflow: auto;
  scrollbar-width: thin;
}
.app-content.is-entering { animation: pageIn .22s var(--ease); }
@keyframes pageIn { from { opacity: 0; transform: translateY(4px); } }


/* Controls */
.a-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--white);
  color: var(--navy);
  font-size: 13.5px;
  white-space: nowrap;
  transition: background-color .12s, border-color .12s;
}
.a-btn:hover { background: var(--surface-alt); border-color: var(--slate-light); }
.a-btn:active, .a-btn.is-pressed { background: var(--border); border-color: var(--slate); }
.a-btn--primary { background: var(--blue); border-color: var(--blue); color: var(--white); font-weight: 600; }
.a-btn--primary:hover { background: var(--blue-dark); border-color: var(--blue-dark); }
.a-btn--primary:active, .a-btn--primary.is-pressed { background: var(--navy); border-color: var(--navy); }
.a-btn--primary:disabled { background: var(--slate-light); border-color: var(--slate-light); cursor: default; }
.a-btn--danger { background: var(--danger-soft); border-color: var(--danger-soft); color: var(--danger-text); }
.a-btn--danger:hover { background: var(--danger-soft); border-color: var(--danger); }
.a-btn--sm { height: 26px; padding: 0 10px; font-size: 12.5px; }
.a-btn--link { border-color: transparent; background: transparent; color: var(--blue); padding: 0 6px; }
.a-btn--link:hover { background: var(--blue-soft); border-color: transparent; }

.a-input, .a-select {
  height: 32px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--white);
  color: var(--navy);
  font-size: 13.5px;
}
.a-input:hover, .a-select:hover { border-color: var(--slate-light); }
.a-input:focus, .a-select:focus { outline: none; border-color: var(--blue); }
.a-input--search { width: 350px; padding-left: 30px; background: var(--white) no-repeat 10px center / 13px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%2394A3B8' stroke-width='1.8'%3E%3Ccircle cx='7' cy='7' r='5'/%3E%3Cpath d='M11 11l3.5 3.5' stroke-linecap='round'/%3E%3C/svg%3E"); }
.a-select {
  appearance: none;
  padding-right: 28px;
  background: var(--white) no-repeat right 10px center / 10px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none' stroke='%2364748B' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");
}
textarea.a-input { height: 64px; padding: 8px 10px; resize: none; }
.a-check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.a-check input { width: 15px; height: 15px; accent-color: var(--blue); margin: 0; }

.a-seg { display: inline-flex; flex: none; border: 1px solid var(--border); border-radius: 6px; overflow: hidden; background: var(--white); }
.a-seg button { height: 30px; padding: 0 14px; border: 0; background: transparent; color: var(--slate-text); font-size: 13px; }
.a-seg button + button { border-left: 1px solid var(--border); }
.a-seg button:hover { background: var(--surface-alt); }
.a-seg button.is-on { background: var(--blue-soft); color: var(--blue-text); font-weight: 600; }

.a-toolbar { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.a-toolbar .a-spacer { flex: 1; }

/* Panels / cards */
.a-panel {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 16px;
  min-width: 0;
}
.a-panel__title { font-size: 15px; font-weight: 600; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.a-panel__title .a-btn { margin-left: auto; }
.a-stat { padding: 14px 16px; }
.a-stat__t { color: var(--slate); font-size: 12px; }
.a-stat__v { font-size: 22px; font-weight: 600; font-variant-numeric: tabular-nums; margin-top: 2px; }
.a-stat__v.is-bumped { animation: bump .6s var(--ease); }
@keyframes bump { 30% { color: var(--blue); transform: translateY(-2px); } }

.a-grid { display: grid; gap: 14px; }
.a-g2 { grid-template-columns: 1fr 1fr; }
.a-g3 { grid-template-columns: 1.1fr 1fr 1fr; }
.a-g4 { grid-template-columns: repeat(4, 1fr); }
.a-mb { margin-bottom: 14px; }

/* Tables */
.a-table-wrap { background: var(--white); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.a-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.a-table th {
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
  color: var(--slate);
  font-size: 12px;
  font-weight: 400;
  text-align: left;
  text-wrap: balance;
  background: var(--white);
}
.a-table td {
  height: 38px;
  padding: 0 12px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.a-table tr:last-child td { border-bottom: 0; }
.a-table tbody tr { transition: background-color .1s; }
.a-table tbody tr.is-click { cursor: pointer; }
.a-table tbody tr:hover td { background: var(--surface-alt); }
.a-table tbody tr.is-new td { animation: rowIn 1.6s var(--ease); }
@keyframes rowIn { 0%, 40% { background: var(--blue-soft); } }
.a-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.a-table .muted { color: var(--slate); }
.a-table .plate { font-variant-numeric: tabular-nums; font-weight: 500; letter-spacing: .02em; }
.a-table tfoot td { font-weight: 600; background: var(--surface); }
.a-table .link { color: var(--cyan-text); font-weight: 500; }
.a-table--fixed { table-layout: fixed; }
.a-table--fixed td, .a-table--fixed th { padding-left: 10px; padding-right: 10px; overflow: hidden; text-overflow: ellipsis; }

.a-list { display: flex; flex-direction: column; }
.a-list div { display: flex; justify-content: space-between; gap: 10px; padding: 7px 2px; border-bottom: 1px solid var(--border); font-size: 13px; }
.a-list div:last-child { border-bottom: 0; }
.a-list span:last-child { color: var(--slate); font-variant-numeric: tabular-nums; }

.a-badge {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 10px;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.a-badge.is-changed { animation: badgePop .5s var(--ease); }
@keyframes badgePop { 40% { transform: scale(1.12); } }
.st-scheduled { background: var(--blue-soft); color: var(--blue-text); }
.st-progress  { background: var(--warning-soft); color: var(--warning-text); }
.st-completed { background: var(--success-soft); color: var(--success-text); }
.st-canceled  { background: var(--danger-soft); color: var(--danger-text); }
.st-pending   { background: var(--slate-soft); color: var(--slate-text); }
.st-paid      { background: var(--success-soft); color: var(--success-text); }
.st-refunded  { background: var(--cyan-soft); color: var(--cyan-text); }
.st-active    { background: var(--success-soft); color: var(--success-text); }
.st-inactive  { background: var(--slate-soft); color: var(--slate-text); }

/* Key-value detail panel */
.a-kv { display: grid; grid-template-columns: minmax(140px, max-content) 1fr; gap: 9px 16px; font-size: 13.5px; }
.a-kv dt { color: var(--slate); font-size: 12px; padding-top: 2px; }
.a-kv dd { margin: 0; }
.a-back { margin-bottom: 12px; }
.a-actions { display: flex; gap: 8px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); }

/* Charts */
.a-chart { width: 100%; height: 132px; display: block; }
.a-chart text { font-family: var(--font-body); font-size: 10px; fill: var(--slate); }
.a-donut { display: flex; align-items: center; gap: 14px; min-width: 0; }
.a-donut svg { width: 92px; height: 92px; flex: none; }
.a-legend { flex: 1; min-width: 0; display: grid; gap: 5px; font-size: 12px; }
.a-legend span { display: grid; grid-template-columns: 9px minmax(0, 1fr) auto; align-items: center; gap: 6px; }
.a-legend i { width: 9px; height: 9px; border-radius: 2px; }
.a-legend em { font-style: normal; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.a-legend b { font-weight: 500; color: var(--slate); font-variant-numeric: tabular-nums; }

/* Calendar */
.a-cal { background: var(--white); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.a-cal__head { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-bottom: 1px solid var(--border); }
.a-cal__head b { font-size: 15px; font-weight: 600; min-width: 150px; text-align: center; }
.a-cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); }
.a-cal__dow { padding: 6px 8px; color: var(--slate); font-size: 11.5px; border-bottom: 1px solid var(--border); }
.a-cal__day { min-height: 82px; padding: 4px 5px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); font-size: 12px; overflow: hidden; }
.a-cal__day:nth-child(7n) { border-right: 0; }
.a-cal__day.is-out { color: var(--slate-light); background: var(--surface); }
.a-cal__day.is-today .a-cal__n { background: var(--blue); color: var(--white); }
.a-cal__n { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 4px; border-radius: 10px; font-size: 11.5px; font-weight: 600; margin-bottom: 2px; }
.a-chip { display: block; margin-top: 2px; padding: 1px 5px; border-radius: 4px; border-left: 3px solid; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.a-chip.st-scheduled { border-color: var(--blue); }
.a-chip.st-progress { border-color: var(--warning); }
.a-chip.st-completed { border-color: var(--success); }
.a-chip.st-canceled { border-color: var(--danger); }
.a-more { display: block; margin-top: 2px; color: var(--blue); font-size: 11px; font-weight: 600; }

/* Dialogs */
.app-modal {
  position: absolute;
  inset: 34px 0 0;
  display: grid;
  place-items: center;
  background: rgba(11, 23, 48, .32);
  z-index: 20;
  animation: fadeIn .15s ease;
}
@keyframes fadeIn { from { opacity: 0; } }
.a-dialog {
  width: 520px;
  max-height: 640px;
  overflow: auto;
  background: var(--surface);
  border-radius: 10px;
  box-shadow: 0 24px 64px -12px rgba(2, 8, 23, .5), 0 0 0 1px rgba(11, 23, 48, .1);
  animation: dialogIn .2s var(--ease);
}
@keyframes dialogIn { from { opacity: 0; transform: translateY(8px) scale(.98); } }
.a-dialog__bar { display: flex; align-items: center; height: 34px; padding-left: 14px; background: var(--white); border-bottom: 1px solid var(--border); font-size: 12px; }
.a-dialog__bar span:last-child { margin-left: auto; display: grid; place-items: center; width: 44px; height: 100%; color: var(--slate-text); }
.a-dialog__body { padding: 18px 20px 6px; display: grid; gap: 12px; }
.a-dialog__foot { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 20px 18px; }
.a-field label { display: block; margin-bottom: 4px; color: var(--slate); font-size: 12px; }
.a-field label .req { color: var(--danger); }
.a-field .a-input, .a-field .a-select { width: 100%; }
.a-field__err { margin-top: 3px; color: var(--danger-text); font-size: 11px; }
.a-banner { padding: 8px 10px; border: 1px solid var(--danger); border-radius: 6px; background: var(--danger-soft); color: var(--danger-text); font-size: 12.5px; }
.a-svc { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 10px; background: var(--white); border: 1px solid var(--border); border-radius: 6px; }
.a-svc label { display: flex; align-items: center; gap: 8px; padding: 4px 4px; border-radius: 4px; font-size: 13px; cursor: pointer; }
.a-svc label:hover { background: var(--surface-alt); }
.a-svc label span:last-child { margin-left: auto; color: var(--slate); font-variant-numeric: tabular-nums; }
.a-total { display: flex; justify-content: space-between; align-items: baseline; padding: 10px 12px; background: var(--white); border: 1px solid var(--border); border-radius: 6px; }
.a-total b { font-size: 18px; font-variant-numeric: tabular-nums; }
.a-total b.is-bumped { animation: bump .5s var(--ease); }

.a-hours { display: grid; grid-template-columns: 120px 90px 1fr 1fr; gap: 6px 12px; align-items: center; }
.a-hours .a-input { width: 100%; }

/* Toast + fake pointer */
.app-toast {
  position: absolute;
  right: 20px;
  bottom: 20px;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 420px;
  padding: 11px 14px;
  border-radius: 8px;
  background: var(--navy);
  color: var(--white);
  font-size: 13px;
  box-shadow: 0 12px 32px -8px rgba(2, 8, 23, .5);
  animation: toastIn .3s var(--ease);
}
.app-toast i { width: 18px; height: 18px; border-radius: 50%; background: var(--cyan); flex: none; display: grid; place-items: center; }
.app-toast i::after { content: ""; width: 7px; height: 4px; border: 2px solid var(--navy); border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
@keyframes toastIn { from { opacity: 0; transform: translateY(8px); } }

.app-cursor {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 40;
  width: 22px;
  height: 22px;
  pointer-events: none;
  opacity: 0;
  transition: opacity .3s;
  will-change: transform;
}
.app-cursor.is-on { opacity: 1; }
.app-cursor svg { width: 22px; height: 22px; filter: drop-shadow(0 2px 3px rgba(2, 8, 23, .35)); }
.app-cursor::before {
  content: "";
  position: absolute;
  left: -12px;
  top: -12px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(37, 99, 235, .35);
  transform: scale(0);
  opacity: 0;
}
.app-cursor.is-click::before { animation: ripple .45s ease-out; }
@keyframes ripple { 0% { transform: scale(.2); opacity: 1; } 100% { transform: scale(1.6); opacity: 0; } }

/* Customer typeahead in the Quick Appointment dialog */
.a-suggest {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  z-index: 5;
  margin-top: 4px;
  padding: 4px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  box-shadow: 0 12px 28px -8px rgba(11, 23, 48, .25);
}
.a-suggest button {
  display: flex;
  justify-content: space-between;
  width: 100%;
  padding: 7px 8px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  font-size: 13.5px;
  text-align: left;
}
.a-suggest button:hover, .a-suggest button:first-child { background: var(--blue-soft); }
.a-suggest button span:last-child { color: var(--slate); font-variant-numeric: tabular-nums; }


.a-ok { padding: 8px 10px; border: 1px solid var(--success); border-radius: 6px; background: var(--success-soft); color: var(--success-text); font-size: 12.5px; }

/* Export preview in the Save As dialog */
.a-preview {
  height: 220px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--white);
  box-shadow: 0 6px 16px -6px rgba(11, 23, 48, .2);
  font-size: 7.5px;
  line-height: 1.35;
}
.a-preview--pdf { padding: 12px 11px; }
.a-preview__head { display: flex; align-items: center; gap: 5px; padding-bottom: 6px; margin-bottom: 6px; border-bottom: 1.5px solid var(--navy); }
.a-preview__head svg { width: 14px; height: 14px; }
.a-preview__head b { font-size: 9px; }
.a-preview--pdf p { color: var(--slate); }
.a-preview__big { margin: 8px 0; font-size: 15px; font-weight: 700; color: var(--blue); }
.a-preview table { width: 100%; border-collapse: collapse; }
.a-preview--pdf td { padding: 3px 0; border-bottom: 1px solid var(--border); }
.a-preview--pdf td:not(:first-child) { text-align: right; }
.a-preview--xlsx th { background: var(--surface-alt); color: var(--slate); font-weight: 400; border: 1px solid var(--border); padding: 2px; }
.a-preview--xlsx td { border: 1px solid var(--border); padding: 3px; white-space: nowrap; overflow: hidden; max-width: 60px; text-overflow: ellipsis; }
.a-preview--xlsx tr:nth-child(2) td { background: #E8F5E9; color: var(--success-text); }

/* Unbounded's Bulgarian localized Cyrillic (в like an 8, т like an m) reads
 * as decoration at display size; headlines keep the standard forms. */
.hero__title, .section h2, .fact__big, .contact h2 {
  font-feature-settings: "locl" 0;
}
.net__pc .net__rows { stroke: var(--slate-pale); stroke-width: 3; stroke-linecap: round; }

/* Declared after the app styles so it wins over their `display: none`. */
@media (max-width: 680px) {
  .stage-hint { display: block; }
  .nav .btn--sm { white-space: nowrap; }
}
@media (max-width: 440px) {
  .nav .btn--sm { display: none; }
}
