/* =========================================================
   ÁitFoirne public website — New-theme inspired design system
   Independent of the SaaS stylesheet. Do not import SaaS CSS.
   ========================================================= */

:root {
  --af-primary: #2563eb;
  --af-primary-hover: #1d4ed8;
  --af-primary-deep: #1e40af;
  --af-heading: #1e3a8a;
  --af-canvas: #e8f1fb;
  --af-surface: #ffffff;
  --af-border: #cbd5e1;
  --af-border-soft: #dbe7f5;
  --af-text: #111827;
  --af-muted: #475569;
  --af-muted-soft: #64748b;
  --af-success: #16a34a;
  --af-radius: 8px;
  --af-radius-btn: 6px;
  --af-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
  --af-shadow-card: 0 1px 3px rgba(15, 23, 42, 0.06), 0 2px 6px rgba(15, 23, 42, 0.03);
  --af-max: 1120px;
  --af-nav-h: 72px;
}

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

html {
  scroll-behavior: smooth;
}

body.af-site {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
    "Noto Sans", "Liberation Sans", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--af-text);
  background: var(--af-canvas);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--af-primary);
  text-decoration: none;
}

a:hover {
  color: var(--af-primary-hover);
}

:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.45);
  outline-offset: 2px;
}

.af-container {
  width: min(100% - 2rem, var(--af-max));
  margin-inline: auto;
}

.af-section {
  padding: 4.5rem 0;
}

.af-section--tight {
  padding: 3rem 0;
}

.af-section--white {
  background: var(--af-surface);
}

.af-section--soft {
  background: #f3f7fc;
}

.af-eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--af-primary);
  margin-bottom: 0.75rem;
}

.af-h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1.15;
  font-weight: 750;
  color: var(--af-heading);
  margin: 0 0 1rem;
}

.af-h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  line-height: 1.2;
  font-weight: 700;
  color: var(--af-heading);
  margin: 0 0 0.85rem;
}

.af-h3 {
  font-size: 1.15rem;
  line-height: 1.3;
  font-weight: 700;
  color: var(--af-heading);
  margin: 0 0 0.5rem;
}

.af-lead {
  font-size: 1.125rem;
  color: var(--af-muted);
  margin: 0;
  max-width: 38rem;
}

.af-text-muted {
  color: var(--af-muted);
}

.af-center {
  text-align: center;
}

.af-center .af-lead {
  margin-inline: auto;
}

/* ---------- Buttons ---------- */
.af-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 48px;
  padding: 0.7rem 1.35rem;
  border-radius: var(--af-radius-btn);
  font-weight: 650;
  font-size: 1rem;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.af-btn-primary {
  background: var(--af-primary);
  color: #fff !important;
  border-color: var(--af-primary-hover);
  box-shadow: var(--af-shadow);
}

.af-btn-primary:hover {
  background: var(--af-primary-hover);
  color: #fff !important;
}

.af-btn-secondary {
  background: var(--af-surface);
  color: var(--af-heading) !important;
  border-color: var(--af-border);
}

.af-btn-secondary:hover {
  background: #eff6ff;
  border-color: #93c5fd;
  color: var(--af-heading) !important;
}

.af-btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

/* ---------- Cards ---------- */
.af-card {
  background: var(--af-surface);
  border: 1px solid var(--af-border);
  border-radius: var(--af-radius);
  box-shadow: var(--af-shadow-card);
  padding: 1.35rem;
}

.af-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #eff6ff;
  color: var(--af-primary);
  font-size: 1.15rem;
  margin-bottom: 0.9rem;
}

/* ---------- Navbar ---------- */
.af-navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--af-surface);
  border-bottom: 1px solid var(--af-border-soft);
  box-shadow: var(--af-shadow);
}

.af-navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--af-nav-h);
  gap: 1rem;
}

.af-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--af-heading) !important;
  font-weight: 750;
  font-size: 1.2rem;
  text-decoration: none;
}

.af-brand img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.af-nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--af-border);
  border-radius: var(--af-radius-btn);
  background: var(--af-surface);
  color: var(--af-heading);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.af-nav-links {
  display: flex;
  align-items: center;
  gap: 0.35rem 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.af-nav-links a {
  color: var(--af-muted);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.4rem 0.2rem;
  text-decoration: none;
}

.af-nav-links a:hover,
.af-nav-links a[aria-current="page"] {
  color: var(--af-primary);
}

.af-nav-cta {
  margin-left: 0.35rem;
}

.af-nav-soon {
  color: var(--af-muted-soft) !important;
  font-weight: 600;
}

.af-nav-soon:hover {
  color: var(--af-primary) !important;
}

@media (max-width: 900px) {
  .af-nav-toggle {
    display: inline-flex;
  }

  .af-nav-links {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: var(--af-nav-h);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--af-surface);
    border-bottom: 1px solid var(--af-border);
    padding: 0.5rem 1rem 1rem;
    box-shadow: var(--af-shadow-card);
  }

  .af-nav-links.is-open {
    display: flex;
  }

  .af-nav-links li {
    border-top: 1px solid var(--af-border-soft);
  }

  .af-nav-links a {
    display: block;
    padding: 0.85rem 0.25rem;
  }

  .af-nav-cta {
    margin: 0.5rem 0 0;
  }

  .af-nav-cta .af-btn {
    width: 100%;
  }
}

/* ---------- Hero ---------- */
.af-hero {
  padding: 3.5rem 0 4rem;
}

/* The product visual takes the larger share so the dashboard capture stays legible. */
.af-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1fr);
  gap: 2.25rem;
  align-items: center;
}

.af-hero-visual {
  background: var(--af-surface);
  border: 1px solid var(--af-border);
  border-radius: 12px;
  box-shadow: var(--af-shadow-card);
  padding: 0.65rem;
  margin: 0;
  overflow: hidden;
}

.af-hero-visual img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid var(--af-border-soft);
}

.af-hero-visual figcaption,
.af-product-figure figcaption {
  margin-top: 0.6rem;
  font-size: 0.82rem;
  color: var(--af-muted-soft);
  text-align: center;
}

/* ---------- Product figures in content sections ---------- */
.af-product-figure {
  margin: 2rem auto 0;
  max-width: 960px;
  background: var(--af-surface);
  border: 1px solid var(--af-border);
  border-radius: 12px;
  box-shadow: var(--af-shadow-card);
  padding: 0.65rem 0.65rem 0.9rem;
}

.af-product-figure img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid var(--af-border-soft);
}

.af-product-figure figcaption {
  max-width: 44rem;
  margin-inline: auto;
}

.af-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: #eff6ff;
  color: var(--af-heading);
  border: 1px solid var(--af-border-soft);
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  font-size: 0.875rem;
  font-weight: 650;
  margin-bottom: 1rem;
}

@media (max-width: 900px) {
  .af-hero-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
}

/* ---------- Customer proof ---------- */
.af-trust {
  padding: 2.5rem 0;
  background: var(--af-surface);
  border-block: 1px solid var(--af-border-soft);
}

.af-trust-head h2 {
  margin: 0 0 0.35rem;
}

.af-trust-head p {
  margin: 0;
  color: var(--af-muted);
}

.af-logo-grid {
  list-style: none;
  margin: 1.75rem auto 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  max-width: 760px;
}

.af-logo-card {
  background: var(--af-surface);
  border: 1px solid var(--af-border);
  border-radius: var(--af-radius);
  box-shadow: var(--af-shadow);
  transition: border-color 0.15s ease, background 0.15s ease;
}

.af-logo-card:hover {
  border-color: var(--af-primary);
  background: #fbfdff;
}

.af-logo-card > a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  padding: 1.35rem 1rem;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

.af-logo-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 72px;
  width: 100%;
}

.af-logo-frame img {
  max-height: 72px;
  max-width: 240px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.af-logo-name {
  font-weight: 650;
  color: var(--af-heading);
  text-align: center;
  font-size: 0.95rem;
}

.af-logo-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--af-primary);
}

.af-logo-card > a:hover .af-logo-link {
  text-decoration: underline;
}

@media (max-width: 560px) {
  .af-logo-grid {
    grid-template-columns: 1fr;
  }

  .af-logo-frame {
    height: 60px;
  }

  .af-logo-frame img {
    max-height: 60px;
    max-width: 200px;
  }
}

/* ---------- Problem ---------- */
.af-problem-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.af-problem-item {
  background: var(--af-surface);
  border: 1px solid var(--af-border);
  border-radius: var(--af-radius);
  padding: 1.1rem;
  text-align: center;
  box-shadow: var(--af-shadow);
}

.af-problem-item p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--af-muted);
  font-weight: 550;
}

@media (max-width: 900px) {
  .af-problem-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 520px) {
  .af-problem-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Capabilities ---------- */
.af-cap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
  margin-top: 2rem;
}

.af-cap-card {
  height: 100%;
}

.af-cap-card p {
  margin: 0;
  color: var(--af-muted);
  font-size: 0.98rem;
}

.af-cap-card a.af-cap-link {
  display: inline-block;
  margin-top: 0.85rem;
  font-weight: 650;
  font-size: 0.92rem;
}

@media (max-width: 900px) {
  .af-cap-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .af-cap-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Platform breadth proof ---------- */
.af-proof-strip {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr);
  gap: 1.25rem 1.75rem;
  align-items: stretch;
  background: linear-gradient(135deg, #eff6ff 0%, #ffffff 55%, #f8fafc 100%);
  border: 1px solid var(--af-border-soft);
  border-radius: var(--af-radius);
  padding: 1.5rem 1.6rem;
  box-shadow: var(--af-shadow);
}

.af-proof-hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-right: 0.5rem;
}

.af-proof-stat {
  margin: 0 0 0.45rem;
  font-size: clamp(1.7rem, 2.4vw, 2.15rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--af-heading);
  line-height: 1.15;
}

.af-proof-support {
  margin: 0;
  color: var(--af-muted);
  max-width: 22rem;
}

.af-proof-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.af-proof-points li {
  background: var(--af-surface);
  border: 1px solid var(--af-border-soft);
  border-radius: var(--af-radius);
  padding: 0.9rem 1rem;
}

.af-proof-label {
  display: block;
  font-weight: 750;
  color: var(--af-heading);
  margin-bottom: 0.2rem;
  font-size: 0.95rem;
}

.af-proof-text {
  display: block;
  color: var(--af-muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

/* ---------- Time-back outcomes ---------- */
.af-outcome-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
  margin-top: 2rem;
}

.af-outcome-card {
  background: var(--af-surface);
  border: 1px solid var(--af-border-soft);
  border-radius: var(--af-radius);
  padding: 1.35rem 1.3rem;
  box-shadow: var(--af-shadow);
  height: 100%;
}

.af-outcome-kicker {
  margin: 0 0 0.45rem;
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--af-primary);
}

.af-outcome-card .af-h3 {
  margin: 0 0 0.55rem;
}

.af-outcome-card p:last-child {
  margin: 0;
  color: var(--af-muted);
}

/* ---------- Built with nursing-home teams ---------- */
.af-built-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 1.75rem 2rem;
  align-items: start;
}

.af-built-copy .af-lead {
  max-width: 36rem;
}

.af-built-improve {
  margin-top: 1.35rem;
  padding: 1.1rem 1.2rem;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: var(--af-radius);
}

.af-built-improve .af-h3 {
  margin: 0 0 0.4rem;
}

.af-built-improve p {
  margin: 0;
  color: var(--af-muted);
}

.af-built-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.af-built-points li {
  background: var(--af-surface);
  border: 1px solid var(--af-border-soft);
  border-radius: var(--af-radius);
  padding: 1.15rem 1.2rem;
  box-shadow: var(--af-shadow);
}

.af-built-points .af-h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
}

.af-built-points p {
  margin: 0;
  color: var(--af-muted);
}

/* ---------- Coming Soon ---------- */
.af-soon-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.15rem;
  margin-top: 2rem;
}

.af-soon-card {
  background: var(--af-surface);
  border: 1px dashed #93c5fd;
  border-radius: var(--af-radius);
  padding: 1.4rem 1.35rem 1.35rem;
  box-shadow: var(--af-shadow);
  position: relative;
  overflow: hidden;
}

.af-soon-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, #60a5fa, #2563eb);
}

.af-soon-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.af-soon-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #eff6ff;
  color: var(--af-primary);
  border: 1px solid #bfdbfe;
}

.af-soon-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  background: #fff7ed;
  color: #9a3412;
  border: 1px solid #fdba74;
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.af-soon-card .af-h3 {
  margin: 0 0 0.55rem;
}

.af-soon-card > p {
  margin: 0;
  color: var(--af-muted);
}

.af-soon-benefit {
  margin-top: 0.75rem !important;
  padding-top: 0.75rem;
  border-top: 1px solid var(--af-border-soft);
  font-weight: 550;
}

.af-soon-cta {
  margin-top: 1.5rem;
  text-align: center;
}

/* ---------- Back to top ----------
   Hidden until JS marks it ready and the page has scrolled. Without JS the
   footer "Back to top" link remains available. */
.af-back-top {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 950;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 48px;
  padding: 0.65rem 0.95rem;
  border-radius: 999px;
  background: var(--af-primary);
  color: #fff !important;
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none !important;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.28);
  border: 1px solid #1d4ed8;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(0.35rem);
}

.af-back-top.af-back-top--enhanced {
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}

.af-back-top.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
}

.af-back-top:hover {
  background: var(--af-primary-hover);
  color: #fff !important;
}

.af-back-top:focus-visible {
  outline: 3px solid #93c5fd;
  outline-offset: 3px;
}

@media (max-width: 900px) {
  .af-proof-strip,
  .af-built-layout,
  .af-soon-grid {
    grid-template-columns: 1fr;
  }

  .af-outcome-grid,
  .af-proof-points {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .af-outcome-grid,
  .af-proof-points {
    grid-template-columns: 1fr;
  }

  .af-back-top {
    right: 0.75rem;
    bottom: 0.75rem;
    padding: 0.7rem 0.85rem;
  }

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

  .af-back-top {
    width: 48px;
    height: 48px;
    min-height: 48px;
    padding: 0;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .af-back-top.af-back-top--enhanced {
    transition: none;
  }
}

/* ---------- Workflow ---------- */
.af-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 2rem;
  counter-reset: af-step;
}

.af-step {
  position: relative;
  background: var(--af-surface);
  border: 1px solid var(--af-border);
  border-radius: var(--af-radius);
  padding: 1.25rem 1.15rem 1.15rem;
  box-shadow: var(--af-shadow);
}

.af-step::before {
  counter-increment: af-step;
  content: counter(af-step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--af-primary);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}

.af-step p {
  margin: 0;
  color: var(--af-muted);
  font-size: 0.95rem;
}

@media (max-width: 900px) {
  .af-steps {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .af-steps {
    grid-template-columns: 1fr;
  }
}

/* ---------- Employee portal ---------- */
.af-split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.25rem;
  align-items: center;
}

.af-checklist {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
}

.af-checklist li {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  margin-bottom: 0.75rem;
  color: var(--af-muted);
}

.af-checklist i {
  color: var(--af-success);
  margin-top: 0.2rem;
}

.af-phone-frame {
  display: block;
  max-width: 320px;
  margin-inline: auto;
  background: #0f172a;
  border-radius: 28px;
  padding: 10px;
  box-shadow: var(--af-shadow-card);
}

.af-phone-frame img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 20px;
  background: var(--af-canvas);
}

/* ---------- Employee Portal showcase ----------
   Without JS this is a horizontally scrollable list of every screen.
   site.js adds previous/next controls and a position indicator. */
.af-showcase-viewport {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

.af-showcase-ready .af-showcase-viewport {
  scrollbar-width: none;
}

.af-showcase-ready .af-showcase-viewport::-webkit-scrollbar {
  display: none;
}

.af-showcase-slide {
  flex: 0 0 100%;
  scroll-snap-align: center;
  display: flex;
  justify-content: center;
}

.af-showcase-slide figure {
  margin: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.af-showcase-slide figcaption {
  font-size: 0.95rem;
  font-weight: 650;
  color: var(--af-heading);
  text-align: center;
}

/* Portal captures are long phone screens, so cap the height and let the
   frame narrow instead: the whole screen stays visible without scrolling. */
.af-showcase .af-phone-frame {
  width: auto;
  max-width: 340px;
}

.af-showcase .af-phone-frame img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: min(72vh, 660px);
}

.af-showcase-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}

.af-showcase-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--af-border);
  background: var(--af-surface);
  color: var(--af-heading);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--af-shadow);
  transition: border-color 0.15s ease, color 0.15s ease;
}

.af-showcase-btn:hover {
  border-color: var(--af-primary);
  color: var(--af-primary);
}

.af-showcase-status {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--af-muted);
  min-width: 3.25rem;
  text-align: center;
}

@media (max-width: 900px) {
  .af-showcase .af-phone-frame {
    max-width: 320px;
  }

  .af-showcase .af-phone-frame img {
    max-height: min(74vh, 640px);
  }
}

/* ---------- Product tours ----------
   Same interaction as the Employee Portal showcase, with a desktop
   screenshot frame instead of a phone frame. */
.af-tour {
  max-width: 1000px;
  margin: 2.5rem auto 0;
}

.af-tour-head {
  max-width: 46rem;
  margin: 0 auto 1.1rem;
  text-align: center;
}

.af-tour-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--af-heading);
  margin: 0;
}

.af-tour-intro {
  margin: 0.4rem 0 0;
  font-size: 0.95rem;
  color: var(--af-muted);
}

.af-tour-viewport {
  align-items: flex-start;
}

/* The frame keeps a fixed shape so every slide is the same height and the
   space is reserved before the lazy screenshot arrives. */
.af-shot-frame {
  position: relative;
  display: block;
  box-sizing: border-box;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--af-surface);
  border: 1px solid var(--af-border);
  border-radius: 16px;
  box-shadow: var(--af-shadow-card);
}

.af-shot-frame img {
  position: absolute;
  inset: 10px;
  display: block;
  width: calc(100% - 20px);
  height: calc(100% - 20px);
  object-fit: contain;
  border-radius: 8px;
}

.af-tour .af-showcase-slide {
  padding-inline: 2px;
}

.af-tour .af-showcase-slide figcaption {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--af-muted);
  max-width: 34rem;
}

@media (max-width: 900px) {
  .af-split {
    grid-template-columns: 1fr;
  }
}

/* ---------- Compliance ---------- */
.af-comp-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.af-comp-item {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}

.af-comp-item i {
  color: var(--af-primary);
  margin-top: 0.2rem;
}

.af-comp-item p {
  margin: 0;
  color: var(--af-muted);
}

@media (max-width: 700px) {
  .af-comp-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Pricing ---------- */
.af-price-card {
  max-width: 520px;
  margin: 2rem auto 0;
  text-align: center;
  padding: 2rem 1.5rem;
}

.af-price-amount {
  font-size: clamp(2.4rem, 5vw, 3.2rem);
  font-weight: 800;
  color: var(--af-heading);
  line-height: 1;
  margin: 0.5rem 0 0.25rem;
}

.af-price-amount span {
  font-size: 1rem;
  font-weight: 600;
  color: var(--af-muted);
}

.af-price-list {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
  text-align: left;
}

.af-price-list li {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  padding: 0.45rem 0;
  color: var(--af-muted);
  border-top: 1px solid var(--af-border-soft);
}

.af-price-list i {
  color: var(--af-success);
  margin-top: 0.2rem;
}

/* ---------- Contact ---------- */
.af-form-card {
  max-width: 640px;
  margin: 2rem auto 0;
}

.af-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.af-form-grid .af-field-full {
  grid-column: 1 / -1;
}

.af-field label {
  display: block;
  font-weight: 650;
  font-size: 0.9rem;
  color: var(--af-heading);
  margin-bottom: 0.35rem;
}

.af-field input,
.af-field textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--af-border);
  border-radius: var(--af-radius-btn);
  padding: 0.7rem 0.85rem;
  font: inherit;
  color: var(--af-text);
  background: #fff;
}

.af-field textarea {
  min-height: 120px;
  resize: vertical;
}

.af-field input:focus,
.af-field textarea:focus {
  outline: 3px solid rgba(37, 99, 235, 0.25);
  border-color: var(--af-primary);
}

@media (max-width: 640px) {
  .af-form-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- CTA band ---------- */
.af-cta-band {
  background: linear-gradient(180deg, #1e40af 0%, #2563eb 100%);
  color: #fff;
  padding: 3rem 0;
  text-align: center;
}

.af-cta-band .af-h2 {
  color: #fff;
}

.af-cta-band p {
  color: rgba(255, 255, 255, 0.9);
  margin: 0 auto 1.25rem;
  max-width: 36rem;
}

.af-cta-band .af-btn-secondary {
  background: #fff;
  color: var(--af-heading) !important;
  border-color: #fff;
}

/* ---------- Footer ---------- */
.af-footer {
  background: var(--af-surface);
  border-top: 1px solid var(--af-border-soft);
  color: var(--af-muted);
  padding: 3rem 0 2rem;
}

.af-footer a {
  color: var(--af-primary);
  text-decoration: none;
}

.af-footer a:hover {
  color: var(--af-primary-hover);
  text-decoration: underline;
}

.af-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.af-footer-brand {
  font-size: 1.2rem;
  font-weight: 750;
  color: var(--af-heading);
  margin-bottom: 0.65rem;
}

.af-footer h3 {
  color: var(--af-heading);
  font-size: 0.95rem;
  margin: 0 0 0.85rem;
}

.af-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.af-footer li {
  margin-bottom: 0.45rem;
}

.af-footer-bottom {
  border-top: 1px solid var(--af-border-soft);
  padding-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  color: var(--af-muted-soft);
}

.af-social {
  display: flex;
  gap: 0.85rem;
}

.af-social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--af-border-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--af-primary);
  transition: border-color 0.15s ease, color 0.15s ease;
}

.af-social a:hover {
  border-color: var(--af-primary);
  color: var(--af-primary-hover);
  text-decoration: none;
}

@media (max-width: 800px) {
  .af-footer-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Messages / toast ---------- */
.af-toast-wrap {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 2000;
  display: grid;
  gap: 0.65rem;
  max-width: min(360px, calc(100vw - 2rem));
}

.af-toast {
  background: #fff;
  border: 1px solid var(--af-border);
  border-left: 4px solid var(--af-success);
  border-radius: var(--af-radius);
  box-shadow: var(--af-shadow-card);
  padding: 0.9rem 1rem;
  color: var(--af-text);
}

.af-toast--error {
  border-left-color: #dc2626;
}

/* =========================================================
   WEB-2 — product depth, tabs, callouts, subtle motion
   ========================================================= */

/* ---------- Scroll reveal (progressive enhancement) ----------
   Content stays visible unless JS confirms it can animate it. */
.af-reveal-ready [data-af-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.af-reveal-ready [data-af-reveal].af-revealed {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .af-reveal-ready [data-af-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  html {
    scroll-behavior: auto;
  }
}

/* ---------- Section intro ---------- */
.af-section-intro {
  max-width: 44rem;
  margin-inline: auto;
}

/* ---------- Feature explorer (tabs → stacked panels on mobile) ---------- */
.af-explorer {
  margin-top: 2rem;
  background: var(--af-surface);
  border: 1px solid var(--af-border);
  border-radius: var(--af-radius);
  box-shadow: var(--af-shadow-card);
  overflow: hidden;
}

.af-tablist {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  padding: 0.6rem;
  background: #f6f9fd;
  border-bottom: 1px solid var(--af-border-soft);
}

.af-tab {
  appearance: none;
  border: 1px solid transparent;
  background: transparent;
  color: var(--af-muted);
  font: inherit;
  font-weight: 650;
  font-size: 0.92rem;
  padding: 0.6rem 0.9rem;
  min-height: 44px;
  border-radius: var(--af-radius-btn);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.af-tab:hover {
  background: #eff6ff;
  color: var(--af-heading);
}

.af-tab[aria-selected="true"] {
  background: var(--af-surface);
  color: var(--af-heading);
  border-color: var(--af-border);
  box-shadow: inset 0 -2px 0 var(--af-primary);
}

.af-tabpanel {
  padding: 1.35rem;
}

.af-tabpanel h3 {
  margin-top: 0;
}

/* Without JS every panel stays visible and readable. */
.af-explorer:not(.af-tabs-ready) .af-tablist {
  display: none;
}

.af-explorer:not(.af-tabs-ready) .af-tabpanel + .af-tabpanel {
  border-top: 1px solid var(--af-border-soft);
}

.af-tabs-ready .af-tabpanel {
  animation: af-fade 0.25s ease;
}

@keyframes af-fade {
  from { opacity: 0.35; }
  to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .af-tabs-ready .af-tabpanel {
    animation: none;
  }
}

/* ---------- Chips ---------- */
.af-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.af-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #f8fbff;
  border: 1px solid var(--af-border-soft);
  border-radius: 999px;
  padding: 0.42rem 0.8rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--af-muted);
}

.af-chip i {
  color: var(--af-primary);
  font-size: 0.8rem;
}

/* ---------- Working-day timeline ---------- */
.af-timeline {
  position: relative;
  margin-top: 2rem;
  display: grid;
  gap: 0.85rem;
}

.af-timeline::before {
  content: "";
  position: absolute;
  left: 17px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--af-primary), var(--af-border-soft));
}

.af-timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 0.9rem;
  align-items: start;
}

.af-timeline-marker {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: var(--af-surface);
  border: 2px solid var(--af-primary);
  color: var(--af-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  z-index: 1;
}

.af-timeline-body {
  background: var(--af-surface);
  border: 1px solid var(--af-border);
  border-radius: var(--af-radius);
  box-shadow: var(--af-shadow);
  padding: 1rem 1.15rem;
}

.af-timeline-body h3 {
  margin: 0 0 0.3rem;
  font-size: 1.02rem;
  color: var(--af-heading);
}

.af-timeline-body p {
  margin: 0;
  color: var(--af-muted);
  font-size: 0.95rem;
}

.af-timeline-who {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--af-primary);
  margin-bottom: 0.25rem;
}

/* ---------- Portal themes + annotated screenshot ---------- */
.af-portal-themes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  margin-top: 1.35rem;
}

.af-portal-theme {
  background: var(--af-surface);
  border: 1px solid var(--af-border);
  border-radius: var(--af-radius);
  padding: 0.95rem 1rem;
  box-shadow: var(--af-shadow);
}

.af-portal-theme h3 {
  margin: 0 0 0.25rem;
  font-size: 0.98rem;
  color: var(--af-heading);
}

.af-portal-theme p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--af-muted);
}

@media (max-width: 560px) {
  .af-portal-themes {
    grid-template-columns: 1fr;
  }
}

/* ---------- Bruno ---------- */
.af-bruno-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.af-bruno-chat {
  background: var(--af-surface);
  border: 1px solid var(--af-border);
  border-radius: 12px;
  box-shadow: var(--af-shadow-card);
  padding: 1.1rem;
}

.af-bruno-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding-bottom: 0.75rem;
  margin-bottom: 0.85rem;
  border-bottom: 1px solid var(--af-border-soft);
}

.af-bruno-avatar {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: var(--af-primary);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.af-bruno-head strong {
  color: var(--af-heading);
  display: block;
  line-height: 1.2;
}

.af-bruno-head span {
  font-size: 0.8rem;
  color: var(--af-muted-soft);
}

.af-bruno-q {
  display: block;
  background: #eff6ff;
  border: 1px solid var(--af-border-soft);
  border-radius: 12px 12px 12px 4px;
  padding: 0.6rem 0.85rem;
  margin-bottom: 0.6rem;
  color: var(--af-heading);
  font-size: 0.93rem;
}

.af-bruno-note {
  font-size: 0.82rem;
  color: var(--af-muted-soft);
  margin: 0.35rem 0 0;
}

@media (max-width: 900px) {
  .af-bruno-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Operations 2x2 ---------- */
.af-ops-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2rem;
}

.af-ops-grid p {
  margin: 0;
  color: var(--af-muted);
  font-size: 0.95rem;
}

@media (max-width: 700px) {
  .af-ops-grid {
    grid-template-columns: 1fr;
  }
}

.af-note-strip {
  margin-top: 1.5rem;
  background: #f8fbff;
  border: 1px solid var(--af-border-soft);
  border-radius: var(--af-radius);
  padding: 1rem 1.15rem;
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
}

.af-note-strip i {
  color: var(--af-primary);
  margin-top: 0.2rem;
}

.af-note-strip p {
  margin: 0;
  color: var(--af-muted);
  font-size: 0.95rem;
}

/* ---------- Help Centre ---------- */
.af-btn-sm {
  min-height: 40px;
  padding: 0.45rem 1rem;
  font-size: 0.95rem;
}

.af-btn-ghost {
  background: transparent;
  color: var(--af-primary) !important;
  border-color: var(--af-border);
}

.af-btn-ghost:hover {
  background: #eff6ff;
  border-color: #93c5fd;
  color: var(--af-primary-hover) !important;
}

.af-help-hero,
.af-help-page-hero {
  padding: 3.25rem 0 2.25rem;
  background:
    radial-gradient(ellipse 80% 60% at 10% 0%, rgba(37, 99, 235, 0.08), transparent 55%),
    var(--af-canvas);
}

.af-help-hero .af-lead,
.af-help-page-hero .af-lead {
  max-width: 40rem;
}

.af-help-search {
  margin-top: 1.5rem;
  max-width: 42rem;
}

.af-help-search-row {
  display: flex;
  align-items: stretch;
  gap: 0.65rem;
  background: var(--af-surface);
  border: 1px solid var(--af-border);
  border-radius: var(--af-radius);
  padding: 0.4rem 0.4rem 0.4rem 0.9rem;
  box-shadow: var(--af-shadow);
}

.af-help-search-icon {
  display: inline-flex;
  align-items: center;
  color: var(--af-muted-soft);
}

.af-help-search input[type="search"] {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  font: inherit;
  color: var(--af-text);
  padding: 0.55rem 0.25rem;
}

.af-help-search input[type="search"]::-webkit-search-cancel-button {
  -webkit-appearance: none;
}

.af-help-search input[type="search"]:focus {
  outline: none;
}

.af-help-search-row:focus-within {
  outline: 3px solid rgba(37, 99, 235, 0.35);
  outline-offset: 2px;
  border-color: var(--af-primary);
}

.af-help-search-meta {
  margin: 0.65rem 0 0;
  font-size: 0.9rem;
  color: var(--af-muted);
}

.af-help-section-head {
  max-width: 40rem;
  margin-bottom: 1.5rem;
}

.af-help-role {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 1.5rem;
}

.af-help-role-chip {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--af-border);
  background: var(--af-surface);
  color: var(--af-muted) !important;
  font-size: 0.92rem;
  font-weight: 600;
}

.af-help-role-chip:hover,
.af-help-role-chip.is-active {
  color: var(--af-primary) !important;
  border-color: #93c5fd;
  background: #eff6ff;
  text-decoration: none;
}

.af-help-area-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.af-help-area-card {
  background: var(--af-surface);
  border: 1px solid var(--af-border-soft);
  border-radius: var(--af-radius);
  box-shadow: var(--af-shadow-card);
  padding: 1.25rem 1.3rem 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.af-help-area-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: #eff6ff;
  color: var(--af-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.af-help-area-title {
  margin: 0.35rem 0 0;
  font-size: 1.1rem;
  color: var(--af-heading);
}

.af-help-area-desc,
.af-help-area-overview,
.af-help-area-meta {
  margin: 0;
  color: var(--af-muted);
  font-size: 0.95rem;
}

.af-help-area-overview {
  font-size: 0.9rem;
  line-height: 1.55;
}

.af-help-area-meta {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--af-muted-soft);
  margin-top: auto;
  padding-top: 0.35rem;
}

.af-help-area-card .af-btn {
  align-self: flex-start;
  margin-top: 0.35rem;
}

.af-help-article-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.af-help-article-card {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  background: var(--af-surface);
  border: 1px solid var(--af-border-soft);
  border-radius: var(--af-radius);
  padding: 1rem 1.15rem;
  box-shadow: var(--af-shadow);
  color: inherit !important;
  text-decoration: none !important;
  transition: border-color 0.15s ease;
}

.af-help-article-card:hover {
  border-color: #93c5fd;
}

.af-help-article-cat,
.af-help-article-meta {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--af-primary);
}

.af-help-article-meta {
  color: var(--af-muted-soft);
  text-transform: none;
  letter-spacing: 0;
  font-weight: 600;
}

.af-help-article-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--af-heading);
}

.af-help-article-intro {
  color: var(--af-muted);
  font-size: 0.95rem;
}

.af-help-topic-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.af-help-topic {
  background: var(--af-surface);
  border: 1px solid var(--af-border-soft);
  border-radius: var(--af-radius);
  padding: 1.15rem 1.25rem;
}

.af-help-topic h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  color: var(--af-heading);
}

.af-help-topic p {
  margin: 0;
  color: var(--af-muted);
  font-size: 0.95rem;
}

.af-help-topic--inline {
  margin-bottom: 0.75rem;
}

.af-help-compare {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.af-help-compare-card {
  background: var(--af-surface);
  border: 1px solid var(--af-border-soft);
  border-radius: var(--af-radius);
  padding: 1.2rem 1.3rem;
}

.af-help-compare-card h3 {
  margin: 0 0 0.4rem;
  color: var(--af-heading);
  font-size: 1.05rem;
}

.af-help-compare-card p {
  margin: 0;
  color: var(--af-muted);
}

.af-help-shot-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.af-help-shot {
  margin: 0;
}

.af-help-shot .af-shot-frame {
  aspect-ratio: 16 / 10;
}

.af-help-shot figcaption {
  margin-top: 0.55rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--af-muted);
  text-align: center;
}

.af-help-cat-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.af-help-cat-list a {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  background: var(--af-surface);
  border: 1px solid var(--af-border-soft);
  border-radius: var(--af-radius);
  padding: 0.85rem 1.1rem;
  color: var(--af-heading) !important;
  font-weight: 650;
}

.af-help-cat-list a:hover {
  border-color: #93c5fd;
  text-decoration: none;
}

.af-help-cat-list .af-help-area-meta {
  margin-left: auto;
  padding-top: 0;
}

.af-help-support {
  padding: 3rem 0;
  background: #eff6ff;
  border-top: 1px solid var(--af-border-soft);
}

.af-help-support-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 2rem;
}

.af-help-support .af-lead {
  max-width: 36rem;
}

.af-help-breadcrumb ol {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  font-size: 0.9rem;
  color: var(--af-muted);
}

.af-help-breadcrumb li:not(:last-child)::after {
  content: "/";
  margin-left: 0.5rem;
  color: var(--af-muted-soft);
}

.af-help-breadcrumb a {
  color: var(--af-primary);
  font-weight: 600;
}

.af-help-narrow {
  max-width: 760px;
}

.af-help-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  margin-bottom: 1.25rem;
}

.af-help-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 650;
  color: var(--af-primary);
}

.af-help-empty {
  background: var(--af-surface);
  border: 1px solid var(--af-border-soft);
  border-radius: var(--af-radius);
  padding: 1.5rem 1.4rem;
}

.af-help-empty h3 {
  margin: 0 0 0.5rem;
  color: var(--af-heading);
}

.af-help-empty p {
  margin: 0 0 1rem;
  color: var(--af-muted);
}

.af-help-updated {
  margin: 0.75rem 0 0;
  font-size: 0.9rem;
  color: var(--af-muted-soft);
}

.af-help-article-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 2rem;
  padding-bottom: 3rem;
  align-items: start;
}

.af-help-toc {
  position: sticky;
  top: calc(var(--af-nav-h) + 1rem);
  background: var(--af-surface);
  border: 1px solid var(--af-border-soft);
  border-radius: var(--af-radius);
  padding: 1rem 1.1rem;
}

.af-help-toc-title {
  margin: 0 0 0.65rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--af-muted-soft);
}

.af-help-toc ol {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--af-muted);
}

.af-help-toc li {
  margin-bottom: 0.4rem;
  font-size: 0.92rem;
}

.af-help-step {
  background: var(--af-surface);
  border: 1px solid var(--af-border-soft);
  border-radius: var(--af-radius);
  padding: 1.35rem 1.4rem;
  margin-bottom: 1rem;
  box-shadow: var(--af-shadow);
  scroll-margin-top: calc(var(--af-nav-h) + 1rem);
}

.af-help-step-head {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.75rem;
}

.af-help-step-num {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 50%;
  background: var(--af-primary);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
}

.af-help-step-title {
  margin: 0;
  font-size: 1.15rem;
  color: var(--af-heading);
}

.af-help-step-content {
  color: var(--af-text);
  line-height: 1.7;
}

.af-help-step-content > *:first-child {
  margin-top: 0;
}

.af-help-step-content > *:last-child {
  margin-bottom: 0;
}

.af-help-step-content ul,
.af-help-step-content ol {
  padding-left: 1.25rem;
}

.af-help-step-content code {
  background: #eff6ff;
  color: var(--af-primary-deep);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  font-size: 0.9em;
}

.af-help-step-figure {
  margin: 1rem 0 0;
}

.af-help-step-image-link {
  display: block;
  border: 1px solid var(--af-border);
  border-radius: var(--af-radius);
  overflow: hidden;
  background: var(--af-canvas);
}

.af-help-step-image-link img {
  width: 100%;
  height: auto;
  max-height: 560px;
  object-fit: contain;
}

.af-help-step-figure figcaption {
  margin-top: 0.45rem;
  font-size: 0.9rem;
  color: var(--af-muted);
}

.af-help-related {
  margin-top: 2rem;
}

.af-help-article-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--af-border-soft);
}

.af-help-lightbox {
  border: 0;
  border-radius: 12px;
  padding: 0.75rem;
  max-width: min(96vw, 1100px);
  background: #0f172a;
  color: #fff;
}

.af-help-lightbox::backdrop {
  background: rgba(15, 23, 42, 0.72);
}

.af-help-lightbox-bar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 0.5rem;
}

.af-help-lightbox img {
  max-width: 100%;
  max-height: 80vh;
  margin: 0 auto;
  border-radius: 8px;
}

@media (max-width: 900px) {
  .af-help-area-grid,
  .af-help-topic-grid,
  .af-help-compare,
  .af-help-shot-grid {
    grid-template-columns: 1fr;
  }

  .af-help-article-layout {
    grid-template-columns: 1fr;
  }

  .af-help-toc {
    position: static;
  }

  .af-help-search-row {
    flex-wrap: wrap;
  }

  .af-help-search-row .af-btn {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .af-help-hero,
  .af-help-page-hero {
    padding-top: 2.25rem;
  }
}

/* Built-in Help Centre guides */
.af-guide-audience {
  margin: 0.85rem 0 0;
}

.af-guide-badge {
  display: inline-flex;
  align-items: center;
  background: #eff6ff;
  color: var(--af-primary-deep);
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  padding: 0.28rem 0.75rem;
  font-size: 0.86rem;
  font-weight: 700;
}

.af-guide-body {
  min-width: 0;
  max-width: 760px;
}

.af-guide-hero-shot {
  margin: 0 0 1.75rem;
  border: 1px solid var(--af-border-soft);
  border-radius: var(--af-radius);
  overflow: hidden;
  background: var(--af-canvas);
}

.af-guide-hero-shot img {
  display: block;
  width: 100%;
  height: auto;
}

.af-guide-section {
  margin-bottom: 2rem;
  scroll-margin-top: calc(var(--af-nav-h) + 1rem);
}

.af-guide-section .af-h2 {
  margin-bottom: 0.85rem;
}

.af-guide-prose {
  color: var(--af-text);
  line-height: 1.75;
}

.af-guide-prose > *:first-child {
  margin-top: 0;
}

.af-guide-prose > *:last-child {
  margin-bottom: 0;
}

.af-guide-prose p {
  margin: 0 0 0.95rem;
}

.af-guide-prose h3 {
  margin: 1.35rem 0 0.55rem;
  font-size: 1.05rem;
  color: var(--af-heading);
}

.af-guide-list,
.af-guide-steps {
  margin: 0 0 1rem;
  padding-left: 1.3rem;
}

.af-guide-list li,
.af-guide-steps li {
  margin-bottom: 0.45rem;
}

.af-guide-steps {
  list-style: decimal;
}

.af-guide-note {
  margin: 0 0 1rem;
  padding: 0.85rem 1rem;
  background: #fff7ed;
  border-left: 4px solid #f59e0b;
  border-radius: 0 var(--af-radius) var(--af-radius) 0;
  color: #7c2d12;
}

.af-guide-prose code {
  background: #eff6ff;
  color: var(--af-primary-deep);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  font-size: 0.9em;
}

.af-guide-faq {
  display: grid;
  gap: 0.65rem;
}

.af-guide-faq-item {
  background: var(--af-surface);
  border: 1px solid var(--af-border-soft);
  border-radius: var(--af-radius);
  padding: 0.15rem 0;
}

.af-guide-faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 0.85rem 1.1rem;
  font-weight: 700;
  color: var(--af-heading);
}

.af-guide-faq-item summary::-webkit-details-marker {
  display: none;
}

.af-guide-faq-item summary:focus-visible {
  outline: 2px solid var(--af-primary);
  outline-offset: 2px;
}

.af-guide-faq-item[open] summary {
  border-bottom: 1px solid var(--af-border-soft);
}

.af-guide-faq-answer {
  padding: 0.85rem 1.1rem 1rem;
  color: var(--af-text);
  line-height: 1.7;
}

.af-guide-faq-answer > *:first-child {
  margin-top: 0;
}

.af-guide-faq-answer > *:last-child {
  margin-bottom: 0;
}

@media (prefers-reduced-motion: reduce) {
  .af-guide-faq-item,
  .af-help-area-card,
  .af-help-article-card {
    transition: none !important;
  }
}

/* ---------- Utilities ---------- */
.af-mt-0 { margin-top: 0; }
.af-mb-0 { margin-bottom: 0; }
.af-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;
}
