/* Section bands. Every colour resolves through a design-system token so both
   approved themes follow without a second stylesheet. */

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

/* ---- generic band ---- */

.ays-band {
  border-bottom: 2px solid var(--color-divider);
}
.ays-band--surface {
  background: var(--color-surface);
}
.ays-band--ink {
  background: var(--ink);
  color: #f3f2f2;
}
.ays-band--ink .ays-band-title,
.ays-band--ink .ays-band-lede {
  color: #f3f2f2;
}

.ays-band-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(56px, 8vw, 96px) clamp(20px, 4vw, 48px);
}
.ays-band-inner--split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 32px 48px;
  align-items: start;
}

.ays-band-title {
  font-size: clamp(28px, 4vw, 52px);
  line-height: 1.04;
  letter-spacing: -0.03em;
  margin: 12px 0 0;
}
.ays-band-lede {
  font-size: 17px;
  line-height: 1.6;
  margin: 16px 0 0;
  max-width: 62ch;
}
.ays-band-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.ays-band-link {
  display: inline-block;
  margin-top: 28px;
  font-weight: 700;
  font-size: 15px;
  color: var(--color-accent);
  text-decoration: none;
}
.ays-band-link:hover {
  text-decoration: underline;
}

/* ---- hero ---- */

.ays-hero {
  border-bottom: 2px solid var(--color-divider);
  overflow: hidden;
}
.ays-hero-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(48px, 7vw, 92px) clamp(20px, 4vw, 48px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 40px 48px;
  align-items: center;
}
.ays-hero-copy {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
}
.ays-hero-title {
  font-size: clamp(38px, 6vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.04em;
  margin: 0;
}
.ays-hero-body {
  font-size: 18px;
  line-height: 1.55;
  margin: 0;
  max-width: 54ch;
}
.ays-hero-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.ays-hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 22px;
  font-size: 16px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.ays-hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px color-mix(in srgb, var(--color-accent) 35%, transparent);
}
.ays-hero-link {
  color: var(--color-text);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
}
.ays-hero-link:hover {
  color: var(--color-accent);
}

/* ---- hero dashboard ---- */

.ays-dash-stage {
  position: relative;
  padding: clamp(24px, 4vw, 48px);
  background: var(--color-surface);
  perspective: 1400px;
}
.ays-dash {
  background: var(--color-bg);
  border: 2px solid var(--color-text);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
@media (min-width: 961px) {
  .ays-dash {
    transform: translateY(var(--parallax, 0px)) translateX(var(--shift-x, 0px))
      rotateY(var(--rotate-y, -9deg)) rotateX(var(--rotate-x, 4deg));
    transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
  }
}
.ays-dash-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--color-divider);
}
.ays-dash-pulse {
  width: 8px;
  height: 8px;
  flex: none;
  background: var(--color-accent);
  animation: aysPulse 1.4s infinite;
}
@keyframes aysPulse {
  50% { opacity: 0.2; }
}
.ays-dash-title {
  font-weight: 800;
  font-size: 13px;
  margin-right: auto;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ays-dash-head .tag {
  flex: none;
  white-space: nowrap;
}
.ays-dash-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 0;
}
.ays-dash-metric {
  padding: 14px 16px;
}
.ays-dash-metric:nth-child(odd) {
  border-right: 1px solid var(--color-divider);
}
.ays-dash-metric:nth-child(-n + 2) {
  border-bottom: 1px solid var(--color-divider);
}
.ays-dash-metric dt,
.ays-dash-label {
  font-size: 11px;
  color: var(--color-neutral-700);
}
.ays-dash-metric dd {
  margin: 0;
  font-weight: 800;
  font-size: clamp(22px, 2.4vw, 30px);
  letter-spacing: -0.02em;
}
/* The design flags the third metric, the denial rate, in the accent colour. */
.ays-dash-metric:nth-child(3) dd {
  color: var(--color-accent);
}
.ays-dash-panel {
  padding: 14px 16px 10px;
  border-top: 1px solid var(--color-divider);
}
.ays-dash-panel--aging {
  padding: 4px 16px 16px;
  border-top: 0;
}
.ays-dash-panel .ays-dash-label {
  margin-bottom: 10px;
}
.ays-dash-bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 96px;
  border-bottom: 1px solid var(--color-divider);
}
.ays-dash-bars span {
  flex: 1;
  height: var(--bar);
  background: var(--color-neutral-300);
  transition: height 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.ays-dash-bars span:nth-last-child(2) {
  background: var(--color-accent-300);
}
.ays-dash-bars span:last-child {
  background: var(--color-accent-500);
}
.ays-dash-aging {
  display: flex;
  height: 12px;
  overflow: hidden;
}
.ays-dash-aging span:nth-child(1) { width: 52%; background: var(--color-text); }
.ays-dash-aging span:nth-child(2) { width: 24%; background: var(--color-neutral-600); }
.ays-dash-aging span:nth-child(3) { width: 14%; background: var(--color-neutral-400); }
.ays-dash-aging span:nth-child(4) { width: 10%; background: var(--color-accent-500); }
.ays-dash-aging-legend {
  display: grid;
  grid-template-columns: 52fr 24fr 14fr 10fr;
  margin-top: 4px;
  font-size: 10px;
  color: var(--color-neutral-700);
}
.ays-dash-feed {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-top: 2px solid var(--color-text);
  font-size: 12px;
  overflow: hidden;
}
.ays-dash-feed-label {
  flex: none;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-neutral-700);
}
.ays-dash-feed-list {
  flex: 1;
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ays-dash-feed-list li {
  display: none;
  justify-content: space-between;
  gap: 12px;
}
.ays-dash-feed-list li.is-current {
  display: flex;
  animation: aysFeedIn 0.42s cubic-bezier(0.2, 0.8, 0.2, 1);
}
@keyframes aysFeedIn {
  from { opacity: 0; transform: translateY(10px); }
}
.ays-dash-feed-list span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ays-dash-feed-list strong {
  flex: none;
  font-weight: 800;
}
.ays-dash-feed-list strong[data-tone="muted"] {
  color: var(--color-neutral-700);
}
.ays-dash-feed-list strong[data-tone="accent"] {
  color: var(--color-accent-700);
}

/* ---- page hero ---- */

.ays-page-hero {
  border-bottom: 2px solid var(--color-divider);
  background: var(--color-surface);
}
.ays-page-hero-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(44px, 6vw, 80px) clamp(20px, 4vw, 48px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}
.ays-page-hero-title {
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin: 0;
}
.ays-page-hero-lede {
  font-size: 17px;
  line-height: 1.6;
  margin: 0;
  max-width: 64ch;
}

/* ---- numbered grid (revenue leaks) ---- */

.ays-numbered-grid {
  list-style: none;
  margin: 36px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 2px;
  background: var(--color-divider);
  border: 2px solid var(--color-divider);
}
.ays-numbered-card {
  background: var(--card);
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ays-numbered-index {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--color-accent);
}
.ays-numbered-card h4 {
  margin: 0;
  font-size: 19px;
  letter-spacing: -0.01em;
}
.ays-numbered-card p {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--color-neutral-700);
}

/* ---- card grid ---- */

.ays-card-grid {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 16px;
}
.ays-service-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s, box-shadow 0.2s;
}
.ays-service-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.ays-card-arrow {
  padding: 18px 18px 0 0;
  color: var(--color-accent);
  font-size: 18px;
}

/* ---- client reviews ---- */

.ays-review-grid {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 2px;
  padding: 2px;
}
.ays-review {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 28px 26px;
  background: var(--card);
  box-shadow: 0 0 0 2px var(--color-divider);
}
.ays-review-marquee {
  margin-top: 36px;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.ays-review-track {
  display: flex;
  gap: 16px;
  width: max-content;
  padding: 2px;
  animation: aysReviewRoll calc(var(--ays-review-count) * 9s) linear infinite;
}
.ays-review-marquee:hover .ays-review-track,
.ays-review-marquee:focus-within .ays-review-track {
  animation-play-state: paused;
}
.ays-review-track .ays-review {
  width: min(78vw, 380px);
}
@keyframes aysReviewRoll {
  to {
    transform: translateX(calc(-50% - 8px));
  }
}
/* Without motion the strip becomes a plain swipeable row, without the duplicate copy. */
@media (prefers-reduced-motion: reduce) {
  .ays-review-marquee {
    overflow-x: auto;
    mask-image: none;
  }
  .ays-review-track [aria-hidden="true"] {
    display: none;
  }
}
.ays-review-stars {
  color: var(--color-accent);
  font-size: 18px;
  letter-spacing: 0.1em;
}
.ays-review-stars span {
  color: var(--color-neutral-300);
}
.ays-review blockquote {
  flex: 1;
  margin: 0;
  font-size: 17px;
  line-height: 1.55;
}
.ays-review figcaption {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 14px;
  color: var(--color-neutral-700);
}
.ays-review figcaption strong {
  color: var(--color-text);
  font-size: 15px;
}
.ays-review-specialty {
  color: var(--color-accent);
  font-weight: 600;
}

/* ---- logo grid ---- */

.ays-logo-grid {
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 180px), 1fr));
  gap: 16px;
}
.ays-logo-tile {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
/* Vendor logos are drawn for white backgrounds, so the plate stays white in both themes. */
.ays-logo-plate {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 96px;
  margin-bottom: 8px;
  padding: 18px 22px;
  background: #fff;
  box-shadow: 0 0 0 2px var(--color-divider);
}
.ays-logo-plate img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.ays-logo-fallback {
  color: #201e1d;
  font-weight: 700;
  font-size: 18px;
  text-align: center;
}
.ays-logo-name {
  font-weight: 700;
  font-size: 15px;
}
.ays-logo-caption {
  font-size: 13px;
  line-height: 1.45;
  color: var(--color-neutral-700);
}

/* ---- four-up grid ---- */

.ays-four-grid {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 2px;
  padding: 2px;
}
.ays-four-item {
  background: var(--card);
  box-shadow: 0 0 0 2px var(--color-divider);
  padding: 26px 24px;
}
.ays-four-item h4 {
  margin: 0 0 8px;
  font-size: 19px;
}
.ays-four-item p {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--color-neutral-700);
}

/* ---- metric grid ---- */

.ays-metric-grid {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
  gap: 24px;
}
.ays-metric dd {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.ays-metric dt {
  font-size: 14px;
  opacity: 0.75;
  margin-bottom: 4px;
}

/* ---- step grid (pipeline / workflow) ---- */

.ays-step-grid {
  list-style: none;
  margin: 36px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: 2px;
  padding: 2px;
  counter-reset: step;
}
.ays-step-grid li {
  background: var(--card);
  box-shadow: 0 0 0 2px var(--color-divider);
  padding: 18px 20px;
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.ays-step-index {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--color-accent);
  flex: none;
}
.ays-step-label {
  font-size: 15px;
  line-height: 1.4;
}

/* ---- check list ---- */

.ays-check-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ays-check-list li {
  font-size: 15px;
  line-height: 1.55;
  padding-left: 22px;
  position: relative;
}
.ays-check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 10px;
  height: 2px;
  background: var(--color-accent);
}

/* ---- chips ---- */

.ays-chip-row {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.ays-chip {
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}
.ays-chip:hover {
  color: var(--color-accent);
  border-color: var(--color-accent);
}

/* ---- service pages ---- */

.ays-card-grid--flush {
  margin-top: 0;
}
.ays-check-list {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
  max-width: 72ch;
}
.ays-check-list li {
  position: relative;
  padding-left: 28px;
  font-size: 16px;
  line-height: 1.55;
}
.ays-check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 10px;
  height: 10px;
  background: var(--color-accent);
}

/* ---- specialty directory ---- */

.ays-directory-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 36px;
}
.ays-directory-controls .field {
  min-width: min(100%, 280px);
}
.ays-directory {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 2px;
  background: var(--color-divider);
  border: 2px solid var(--color-divider);
}
.ays-directory-group {
  background: var(--card);
  padding: 24px 22px;
}
.ays-directory-group[hidden] {
  display: none;
}
.ays-directory-heading {
  margin: 0 0 14px;
  font-size: 17px;
  letter-spacing: -0.01em;
}
.ays-directory-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.ays-directory-item {
  font-size: 14px;
  color: var(--color-neutral-700);
}
.ays-directory-item[hidden] {
  display: none;
}
.ays-directory-empty {
  margin-top: 28px;
  font-size: 15px;
  color: var(--color-neutral-700);
}

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

.ays-faq-list {
  margin-top: 36px;
  border-top: 2px solid var(--color-divider);
}
.ays-faq {
  border-bottom: 1px solid var(--color-divider);
}
.ays-faq summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 0;
  font-weight: 700;
  font-size: 17px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}
.ays-faq summary::-webkit-details-marker {
  display: none;
}
.ays-faq summary span::after {
  content: "+";
  color: var(--color-accent);
  font-size: 22px;
  line-height: 1;
}
.ays-faq[open] summary span::after {
  content: "\2212";
}
.ays-faq-answer {
  padding: 0 0 22px;
  font-size: 16px;
  line-height: 1.6;
  max-width: 72ch;
  color: var(--color-neutral-700);
}

/* ---- forms ---- */

.ays-form {
  align-self: start;
}
.ays-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 16px;
}
.ays-form-wide {
  grid-column: 1 / -1;
}
.ays-form-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--color-neutral-800);
}
.ays-form-label em {
  font-style: normal;
  color: var(--color-accent);
}
.ays-form textarea.input {
  resize: vertical;
  min-height: 96px;
}
.ays-form-submit {
  margin-top: 20px;
}
.ays-form-note {
  margin: 14px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--color-neutral-600);
}
.ays-form-error {
  margin: 16px 0 0;
  padding: 12px 14px;
  font-size: 14px;
  background: var(--color-accent-100);
  border-left: 3px solid var(--color-accent);
  color: var(--color-accent-800);
}
.ays-form-sent {
  padding: 32px 28px;
}
.ays-form-sent h3 {
  margin: 0 0 12px;
  font-size: 22px;
  letter-spacing: -0.02em;
}
.ays-form-sent p {
  margin: 0 0 8px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--color-neutral-700);
}

/* Off-screen rather than display:none: some bots skip hidden fields. */
.ays-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---- calculator ---- */

.ays-calc {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 24px 22px;
  background: var(--card);
  border: 2px solid var(--color-divider);
}
.ays-calc output {
  font-weight: 800;
  font-size: 15px;
  color: var(--color-text);
}
.ays-calc input[type="range"] {
  width: 100%;
  accent-color: var(--color-accent);
}
.ays-calc-result {
  border-top: 2px solid var(--color-divider);
  padding-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ays-calc-label {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--color-accent-700);
}
.ays-calc-figure {
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.ays-calc-note {
  font-size: 12px;
  line-height: 1.5;
  color: var(--color-neutral-600);
}
