/* LocalSquare /ai-readiness — Editorial Diagnostic Craft
   Tokens grounded in LocalSquare's warm paper & teal palette,
   with optical type sizing, fluid press feedback, and accessible motion. */

:root {
  color-scheme: light;
  --ls-cream: #faf6f0;
  --ls-paper: #fdfbf7;
  --ls-paper-dark: #f3ede3;
  --ls-surface: #ffffff;
  --ls-ink: #2d3a3a;
  --ls-ink-muted: #526363;
  --ls-ink-subtle: #6b7b7b;
  --ls-teal: #3d9e97;
  --ls-teal-hover: #2f827c;
  --ls-teal-deep: #1e5b57;
  --ls-teal-tint: #eaf6f4;
  --ls-border: #d7ccc8;
  --ls-border-soft: rgba(215, 204, 200, 0.65);

  /* Functional diagnostic score & status ramp */
  --status-strong: #1f8a66;
  --status-strong-bg: #e7f6f0;
  --status-strong-border: #b5e2d0;
  --status-warn: #b86f12;
  --status-warn-bg: #fef5e7;
  --status-warn-border: #f3d4a0;
  --status-critical: #b93832;
  --status-critical-bg: #fdeeed;
  --status-critical-border: #f2c0bd;

  /* Fluid motion curves (Apple critically-damped feel) */
  --ease-fluid: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-press: cubic-bezier(0.2, 0, 0, 1);
  --shadow-sheet: 0 22px 48px -20px rgba(45, 58, 58, 0.16), 0 4px 14px -4px rgba(45, 58, 58, 0.08);
  --shadow-gate: 0 20px 44px -12px rgba(30, 44, 44, 0.24), 0 0 0 1px rgba(45, 58, 58, 0.08);
}

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

html {
  scroll-behavior: smooth;
}

[hidden] {
  display: none !important;
}

body.ai-readiness-page {
  margin: 0;
  background-color: var(--ls-cream);
  color: var(--ls-ink);
  font-family: 'Nunito', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

/* Accessible skip link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ls-ink);
  color: #ffffff;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus {
  top: 12px;
}

/* Focus rings */
.ai-readiness-page a:focus-visible,
.ai-readiness-page button:focus-visible,
.ai-readiness-page input:focus-visible,
.ai-readiness-page select:focus-visible,
.ai-readiness-page summary:focus-visible {
  outline: 2.5px solid var(--ls-teal);
  outline-offset: 3px;
}

/* Shared layout container */
.ar-container {
  width: min(1152px, calc(100% - 32px));
  margin-inline: auto;
}

/* Site Header — translucent paper chrome matching LocalSquare */
.ar-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(253, 251, 247, 0.86);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid rgba(215, 204, 200, 0.55);
}

.ar-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;
}

.ar-logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  transition: opacity 150ms ease;
}
.ar-logo:hover {
  opacity: 0.82;
}
.ar-logo img {
  height: 30px;
  width: auto;
  display: block;
}

.ar-nav {
  display: none;
  align-items: center;
  gap: 24px;
}

.ar-nav a {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ls-ink-muted);
  text-decoration: none;
  transition: color 140ms ease;
  white-space: nowrap;
}

.ar-nav a:hover {
  color: var(--ls-ink);
}

.ar-nav a.ar-nav-pin {
  color: var(--ls-teal);
  font-weight: 700;
}
.ar-nav a.ar-nav-pin:hover {
  color: var(--ls-teal-hover);
}

.ar-nav a[aria-current='page'] {
  color: var(--ls-teal-deep);
  font-weight: 800;
  position: relative;
}
.ar-nav a[aria-current='page']::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  border-radius: 999px;
  background: var(--ls-teal);
}

.ar-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.ar-mobile-dir {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(61, 158, 151, 0.35);
  color: var(--ls-teal-deep);
  font-size: 0.8125rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}

.ar-login-link {
  display: none;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ls-ink-muted);
  text-decoration: none;
  white-space: nowrap;
  transition: color 140ms ease;
}
.ar-login-link:hover {
  color: var(--ls-ink);
}

.ar-header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--ls-teal);
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background-color 140ms ease, transform 100ms var(--ease-press), box-shadow 180ms ease;
}
.ar-header-cta:hover {
  background: var(--ls-teal-hover);
  box-shadow: 0 4px 12px rgba(47, 130, 124, 0.24);
}
.ar-header-cta:active {
  transform: scale(0.97);
}

.ar-header-spacer {
  height: 64px;
}

/* =========================================================================
   HERO SECTION — Asymmetric editorial diagnostic layout
   ========================================================================= */
.ar-hero {
  position: relative;
  padding: 40px 0 64px;
  background:
    radial-gradient(880px 440px at 86% 12%, rgba(61, 158, 151, 0.11), transparent 65%),
    linear-gradient(180deg, var(--ls-paper) 0%, var(--ls-cream) 100%);
  border-bottom: 1px solid var(--ls-border-soft);
}

.ar-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 36px;
  align-items: start;
}

.ar-hero-copy {
  max-width: 560px;
}

.ar-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  color: var(--ls-ink-subtle);
  margin-bottom: 16px;
}
.ar-breadcrumb a {
  color: var(--ls-teal-deep);
  text-decoration: none;
  font-weight: 600;
}
.ar-breadcrumb a:hover {
  text-decoration: underline;
}

.ar-hero-title {
  margin: 0 0 18px;
  font-family: 'Nunito', ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(2.05rem, 4.1vw, 3.1rem);
  font-weight: 800;
  line-height: 1.09;
  letter-spacing: -0.028em;
  color: var(--ls-ink);
  font-optical-sizing: auto;
}

.ar-hero-sub {
  margin: 0 0 26px;
  font-size: clamp(1.02rem, 1.5vw, 1.15rem);
  line-height: 1.65;
  color: var(--ls-ink-muted);
  max-width: 54ch;
}

.ar-proof-list {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: grid;
  gap: 11px;
}

.ar-proof-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9375rem;
  color: var(--ls-ink);
  font-weight: 600;
}

.ar-proof-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--ls-teal-tint);
  color: var(--ls-teal-deep);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}
.ar-proof-icon .material-symbols-outlined {
  font-size: 15px;
}

.ar-hero-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  padding-top: 18px;
  border-top: 1px solid var(--ls-border-soft);
  font-size: 0.875rem;
  color: var(--ls-ink-muted);
}

.ar-hero-note-link {
  color: var(--ls-teal-deep);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.ar-hero-note-link:hover {
  color: var(--ls-teal-hover);
}

/* =========================================================================
   CENTERPIECE WIDGET — Tactile Pinned Diagnostic Sheet
   ========================================================================= */
.ar-widget-shell {
  position: relative;
  background: var(--ls-surface);
  border: 1px solid var(--ls-border);
  border-top: 3px solid var(--ls-teal);
  border-radius: 18px;
  box-shadow: var(--shadow-sheet);
  overflow: hidden;
  scroll-margin-top: 84px;
}

/* Signature LocalSquare editorial report masthead */
.ar-widget-rail {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 22px;
  background: var(--ls-paper);
  border-bottom: 1px solid var(--ls-border-soft);
}

.ar-widget-rail-left {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.ar-widget-logo {
  height: 24px;
  width: auto;
  display: block;
  flex-shrink: 0;
}

.ar-widget-rail-sep {
  width: 1px;
  height: 18px;
  background: var(--ls-border);
  flex-shrink: 0;
}

.ar-widget-rail-title {
  font-size: 0.85rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--ls-ink-muted);
  letter-spacing: -0.005em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ar-step1-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.ar-step1-head-copy {
  flex: 1 1 auto;
  min-width: 0;
}

/* Unlabeled minimalist U.S. state outline + signature red LocalSquare pushpin */
.ar-state-pin-frame {
  width: 84px;
  height: 84px;
  padding: 6px;
  border-radius: 12px;
  background: var(--ls-paper);
  border: 1px solid var(--ls-border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ar-state-pin-sm {
  width: 66px;
  height: 66px;
  padding: 5px;
}

.ar-state-pin-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.ar-step-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ls-teal-deep);
  background: var(--ls-teal-tint);
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.ar-widget-body {
  padding: 24px 22px 26px;
}

.ar-widget-heading {
  margin: 0 0 6px;
  font-size: 1.32rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.018em;
  color: var(--ls-ink);
}

.ar-widget-sub {
  margin: 0 0 20px;
  font-size: 0.9rem;
  color: var(--ls-ink-muted);
}

/* Form controls */
.ar-form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}

.ar-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.ar-field label {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--ls-ink);
}

.ar-field label .ar-req {
  color: var(--status-critical);
  margin-left: 2px;
}

.ar-field label .ar-opt {
  font-weight: 600;
  font-size: 0.78rem;
  color: var(--ls-ink-subtle);
  margin-left: 4px;
}

.ar-field input[type='text'],
.ar-field input[type='url'],
.ar-field input[type='email'],
.ar-field input[type='tel'],
.ar-field select {
  width: 100%;
  min-height: 46px;
  padding: 10px 13px;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--ls-ink);
  background: var(--ls-paper);
  border: 1.5px solid var(--ls-border);
  border-radius: 10px;
  transition: border-color 140ms ease, background-color 140ms ease, box-shadow 140ms ease;
}

.ar-field input::placeholder {
  color: #849292;
}

.ar-field input:focus,
.ar-field select:focus {
  outline: none;
  background: #ffffff;
  border-color: var(--ls-teal);
  box-shadow: 0 0 0 3px rgba(61, 158, 151, 0.16);
}

.ar-field input.is-invalid,
.ar-field select.is-invalid {
  border-color: var(--status-critical);
  background: #fffafa;
}

.ar-field-hint {
  font-size: 0.78rem;
  color: var(--ls-ink-subtle);
  margin: 0;
}

.ar-field-error {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--status-critical);
  margin: 2px 0 0;
  min-height: 0;
}

/* Town Autocomplete Combobox */
.ar-autocomplete-wrap {
  position: relative;
}

.ar-autocomplete-list {
  position: absolute;
  top: calc(100% + 5px);
  left: 0;
  right: 0;
  z-index: 40;
  margin: 0;
  padding: 5px;
  list-style: none;
  background: #ffffff;
  border: 1.5px solid var(--ls-border);
  border-radius: 12px;
  box-shadow: 0 16px 32px -12px rgba(45, 58, 58, 0.22);
  max-height: 240px;
  overflow-y: auto;
}

.ar-autocomplete-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 11px;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 110ms ease;
}

.ar-autocomplete-item:hover,
.ar-autocomplete-item[aria-selected='true'] {
  background: var(--ls-teal-tint);
}

.ar-autocomplete-label {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ls-ink);
}

.ar-autocomplete-sub {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--ls-ink-subtle);
  white-space: nowrap;
}

/* Dynamic ?town= Localized Context Pill */
.ar-town-context {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 14px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--ls-teal-tint);
  border: 1px solid rgba(61, 158, 151, 0.32);
  color: var(--ls-teal-deep);
  font-size: 0.84rem;
  font-weight: 800;
}

.ar-town-context .material-symbols-outlined {
  font-size: 16px;
}

/* Affordable LocalSquare Cross-Link in Bottom CTA */
.ar-cta-sublink {
  margin-top: 14px;
  font-size: 0.875rem;
  color: #cfe0de;
}

.ar-cta-sublink a {
  color: #ffffff;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.ar-cta-sublink a:hover {
  color: #a9e5df;
}

/* Honeypot visually and functionally hidden from real users */
.ar-hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
  overflow: hidden !important;
}

/* Primary & Secondary Interactive Buttons (Apple instant pointer-down feedback) */
.ar-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 11px;
  border: 1.5px solid transparent;
  font-family: inherit;
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.2;
  cursor: pointer;
  text-decoration: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition:
    background-color 140ms ease,
    border-color 140ms ease,
    color 140ms ease,
    box-shadow 180ms ease,
    transform 100ms var(--ease-press);
}

.ar-btn:active:not(:disabled) {
  transform: scale(0.975);
}

.ar-btn:disabled {
  opacity: 0.68;
  cursor: not-allowed;
}

.ar-btn-primary {
  background: var(--ls-teal);
  color: #ffffff;
  box-shadow: 0 6px 18px -6px rgba(47, 130, 124, 0.45);
}
.ar-btn-primary:hover:not(:disabled) {
  background: var(--ls-teal-hover);
  box-shadow: 0 8px 22px -6px rgba(47, 130, 124, 0.52);
}

.ar-btn-secondary {
  background: var(--ls-paper);
  color: var(--ls-ink);
  border-color: var(--ls-border);
}
.ar-btn-secondary:hover:not(:disabled) {
  background: var(--ls-paper-dark);
  border-color: #bfb2ac;
}

.ar-btn-ghost {
  min-height: 36px;
  padding: 6px 12px;
  border-radius: 8px;
  background: transparent;
  color: var(--ls-ink-muted);
  border: 1px solid var(--ls-border-soft);
  font-size: 0.8125rem;
  font-weight: 700;
}
.ar-btn-ghost:hover {
  background: var(--ls-paper);
  color: var(--ls-ink);
}

.ar-btn-full {
  width: 100%;
}

.ar-form-alert {
  margin-top: 12px;
  padding: 11px 14px;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 600;
  background: var(--status-critical-bg);
  border: 1px solid var(--status-critical-border);
  color: #8f2622;
}

.ar-scan-progress {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--ls-teal-tint);
  border: 1px solid rgba(61, 158, 151, 0.28);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--ls-teal-deep);
}

.ar-spinner {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2.5px solid rgba(61, 158, 151, 0.28);
  border-top-color: var(--ls-teal);
  animation: arSpin 750ms linear infinite;
  flex-shrink: 0;
}

@keyframes arSpin {
  to {
    transform: rotate(360deg);
  }
}

.ar-form-footnote {
  margin: 12px 0 0;
  font-size: 0.78rem;
  color: var(--ls-ink-subtle);
  text-align: center;
}

/* =========================================================================
   VIEW B: TEASER SCORE GAUGE + RED FLAGS + BLURRED PREVIEW + STEP 2 GATE
   ========================================================================= */
.ar-panel-enter {
  animation: arMaterialize 360ms var(--ease-fluid) both;
}

@keyframes arMaterialize {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.988);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.ar-score-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--ls-border-soft);
}

.ar-gauge-wrap {
  position: relative;
  width: 126px;
  height: 126px;
  flex-shrink: 0;
}

.ar-gauge-svg {
  width: 126px;
  height: 126px;
  transform: rotate(-90deg);
  display: block;
}

.ar-gauge-track {
  fill: none;
  stroke: #eae2d8;
  stroke-width: 10;
}

.ar-gauge-arc {
  fill: none;
  stroke: var(--ls-teal);
  stroke-width: 10;
  stroke-linecap: round;
  transition: stroke 240ms ease;
}

.ar-gauge-arc.tier-strong {
  stroke: var(--status-strong);
}
.ar-gauge-arc.tier-warn {
  stroke: var(--status-warn);
}
.ar-gauge-arc.tier-critical {
  stroke: var(--status-critical);
}

.ar-gauge-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.ar-gauge-number {
  font-size: 2.15rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  color: var(--ls-ink);
}

.ar-gauge-denom {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--ls-ink-subtle);
  margin-top: 2px;
}

.ar-score-meta {
  flex: 1 1 200px;
  min-width: 0;
}

.ar-grade-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.ar-grade-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 10px;
  font-weight: 800;
  font-size: 0.92rem;
  border: 1px solid transparent;
}

.ar-grade-badge.tier-strong {
  background: var(--status-strong-bg);
  color: var(--status-strong);
  border-color: var(--status-strong-border);
}
.ar-grade-badge.tier-warn {
  background: var(--status-warn-bg);
  color: var(--status-warn);
  border-color: var(--status-warn-border);
}
.ar-grade-badge.tier-critical {
  background: var(--status-critical-bg);
  color: var(--status-critical);
  border-color: var(--status-critical-border);
}

.ar-grade-letter {
  font-size: 1.35rem;
  line-height: 1;
}

.ar-scanned-biz {
  margin: 0 0 2px;
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--ls-ink);
  overflow-wrap: anywhere;
}

.ar-scanned-domain {
  margin: 0;
  font-size: 0.84rem;
  color: var(--ls-ink-subtle);
  overflow-wrap: anywhere;
}

/* Red Flag Pills (max 3 short labels, zero explanations) */
.ar-flags-block {
  margin: 16px 0 18px;
}

.ar-flags-label {
  margin: 0 0 8px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ls-ink-muted);
}

.ar-flags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.ar-flag-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border-radius: 999px;
  background: var(--status-critical-bg);
  border: 1px solid var(--status-critical-border);
  color: #8f2622;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.25;
}

.ar-flag-pill .material-symbols-outlined {
  font-size: 15px;
  flex-shrink: 0;
}

/* Blurred Locked Scorecard + Floating Lead Gate Overlay */
.ar-locked-stage {
  position: relative;
  margin-top: 14px;
  border-radius: 14px;
  border: 1px solid var(--ls-border-soft);
  background: var(--ls-paper);
  overflow: hidden;
  padding: 18px 16px;
}

.ar-blurred-underlay {
  filter: blur(6px);
  opacity: 0.62;
  user-select: none;
  pointer-events: none;
  display: grid;
  gap: 12px;
}

.ar-locked-preview-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 12px;
  background: #ffffff;
  border-radius: 10px;
  border: 1px solid var(--ls-border-soft);
}

.ar-locked-preview-top {
  display: flex;
  justify-content: space-between;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--ls-ink);
}

.ar-locked-bar {
  height: 8px;
  border-radius: 999px;
  background: #ebe4dc;
  overflow: hidden;
}

.ar-locked-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: var(--ls-teal);
}

.ar-gate-overlay {
  position: relative;
  z-index: 3;
  margin-top: -210px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  border: 1.5px solid rgba(61, 158, 151, 0.4);
  border-radius: 14px;
  padding: 20px 18px;
  box-shadow: var(--shadow-gate);
}

.ar-gate-lock-head {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
}

.ar-gate-lock-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--ls-teal-tint);
  color: var(--ls-teal-deep);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ar-gate-prompt {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.35;
  color: var(--ls-ink);
}

.ar-gate-contact-note {
  margin: 4px 0 0;
  font-size: 0.8rem;
  color: var(--ls-ink-muted);
}

.ar-checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--ls-paper);
  border: 1px solid var(--ls-border-soft);
  cursor: pointer;
}

.ar-checkbox-row input[type='checkbox'] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--ls-teal);
  flex-shrink: 0;
  cursor: pointer;
}

.ar-checkbox-row span {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--ls-ink);
  line-height: 1.38;
}

/* =========================================================================
   VIEW C: UNLOCKED FREE 6-PILLAR SCORECARD
   ========================================================================= */
.ar-unlocked-banner {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  margin: 14px 0 18px;
  border-radius: 11px;
  background: var(--status-strong-bg);
  border: 1px solid var(--status-strong-border);
  color: #165e45;
  font-size: 0.86rem;
  font-weight: 700;
}

.ar-unlocked-banner .material-symbols-outlined {
  font-size: 20px;
  flex-shrink: 0;
}

.ar-scorecard-list {
  display: grid;
  gap: 11px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}

.ar-pillar-score-item {
  padding: 12px 14px;
  border-radius: 11px;
  background: var(--ls-paper);
  border: 1px solid var(--ls-border-soft);
}

.ar-pillar-score-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.ar-pillar-score-name {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--ls-ink);
}

.ar-pillar-score-right {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.ar-pillar-pts {
  font-size: 0.84rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--ls-ink-muted);
}

.ar-status-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 800;
  white-space: nowrap;
}

.ar-status-pill.status-strong {
  background: var(--status-strong-bg);
  color: var(--status-strong);
  border: 1px solid var(--status-strong-border);
}

.ar-status-pill.status-warn {
  background: var(--status-warn-bg);
  color: var(--status-warn);
  border: 1px solid var(--status-warn-border);
}

.ar-status-pill.status-critical {
  background: var(--status-critical-bg);
  color: var(--status-critical);
  border: 1px solid var(--status-critical-border);
}

.ar-pillar-bar-track {
  height: 7px;
  border-radius: 999px;
  background: #e7dfd5;
  overflow: hidden;
}

.ar-pillar-bar-fill {
  height: 100%;
  border-radius: 999px;
  width: 0;
  transition: width 550ms var(--ease-fluid);
}

.ar-pillar-bar-fill.status-strong {
  background: var(--status-strong);
}
.ar-pillar-bar-fill.status-warn {
  background: var(--status-warn);
}
.ar-pillar-bar-fill.status-critical {
  background: var(--status-critical);
}

.ar-walkthrough-box {
  padding: 18px;
  border-radius: 13px;
  background: var(--ls-ink);
  color: #fdfbf7;
}

.ar-walkthrough-box h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffffff;
}

.ar-walkthrough-box p {
  margin: 0 0 14px;
  font-size: 0.875rem;
  line-height: 1.55;
  color: #dce7e6;
}

.ar-walkthrough-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ar-walkthrough-actions .ar-btn {
  max-width: 100%;
  min-width: 0;
}

.ar-walkthrough-actions .ar-btn span:not(.material-symbols-outlined) {
  overflow-wrap: anywhere;
}

.ar-walkthrough-actions .ar-btn-light {
  background: #ffffff;
  color: var(--ls-ink);
  border-color: #ffffff;
  flex: 1 1 170px;
  max-width: 100%;
  min-width: 0;
}
.ar-walkthrough-actions .ar-btn-light:hover {
  background: var(--ls-paper);
}

.ar-walkthrough-actions .ar-btn-outline-light {
  background: transparent;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.38);
  flex: 1 1 170px;
  max-width: 100%;
  min-width: 0;
}
.ar-walkthrough-actions .ar-btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Tally Embed Fallback */
.ar-tally-wrap {
  margin-top: 12px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--ls-border-soft);
  background: var(--ls-paper);
}
.ar-tally-wrap iframe {
  width: 100%;
  min-height: 460px;
  border: 0;
  display: block;
}

/* =========================================================================
   CONTENT SECTIONS — Architectural Editorial Hierarchy
   ========================================================================= */
.ar-section {
  padding: 68px 0;
  scroll-margin-top: 84px;
}

.ar-section-paper {
  background: var(--ls-paper);
  border-top: 1px solid var(--ls-border-soft);
  border-bottom: 1px solid var(--ls-border-soft);
}

.ar-section-head {
  max-width: 680px;
  margin-bottom: 36px;
}

.ar-section-title {
  margin: 0 0 10px;
  font-size: clamp(1.65rem, 3.2vw, 2.35rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.022em;
  color: var(--ls-ink);
}

.ar-section-desc {
  margin: 0;
  font-size: 1.02rem;
  color: var(--ls-ink-muted);
  max-width: 60ch;
}

/* 6-Pillar Architectural Hairline Matrix (distinct from generic SaaS card kit) */
.ar-pillar-matrix {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  background: var(--ls-border-soft);
  gap: 1px;
  border: 1px solid var(--ls-border);
  border-radius: 16px;
  overflow: hidden;
}

.ar-pillar-cell {
  background: var(--ls-surface);
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ar-pillar-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--ls-teal-tint);
  color: var(--ls-teal-deep);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ar-pillar-cell h3 {
  margin: 4px 0 0;
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1.28;
  color: var(--ls-ink);
}

.ar-pillar-cell p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--ls-ink-muted);
  line-height: 1.58;
}

.ar-pillar-tags {
  margin-top: auto;
  padding-top: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ls-teal-deep);
}

/* How It Works — True Sequential 3-Step Strip */
.ar-steps-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
}

.ar-step-card {
  position: relative;
  padding: 26px 24px;
  background: var(--ls-surface);
  border: 1px solid var(--ls-border);
  border-radius: 14px;
}

.ar-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--ls-ink);
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  margin-bottom: 14px;
}

.ar-step-card h3 {
  margin: 0 0 8px;
  font-size: 1.12rem;
  font-weight: 800;
  line-height: 1.3;
  color: var(--ls-ink);
}

.ar-step-card p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--ls-ink-muted);
}

/* Who This Is Built For — Interactive Industry Strip */
.ar-industry-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.ar-industry-chip {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 16px 16px;
  background: var(--ls-surface);
  border: 1px solid var(--ls-border);
  border-radius: 12px;
  font-family: inherit;
  font-size: 0.96rem;
  font-weight: 800;
  color: var(--ls-ink);
  text-align: left;
  cursor: pointer;
  transition: border-color 140ms ease, background-color 140ms ease, transform 100ms var(--ease-press);
}

.ar-industry-chip:hover {
  border-color: var(--ls-teal);
  background: var(--ls-teal-tint);
}

.ar-industry-chip:active {
  transform: scale(0.98);
}

.ar-industry-chip .material-symbols-outlined {
  color: var(--ls-teal-deep);
  font-size: 22px;
  flex-shrink: 0;
}

.ar-industry-all {
  margin-top: 14px;
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 20px;
  background: var(--ls-paper);
  border: 1.5px solid var(--ls-border);
  border-radius: 14px;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 140ms ease, background-color 140ms ease, transform 100ms var(--ease-press);
}

.ar-industry-all:hover {
  border-color: var(--ls-teal);
  background: var(--ls-teal-tint);
}

.ar-industry-all:active {
  transform: scale(0.99);
}

.ar-industry-all-left {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  flex: 1 1 260px;
}

.ar-industry-all-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--ls-teal-tint);
  color: var(--ls-teal-deep);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ar-industry-all-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.ar-industry-all-copy strong {
  font-size: 1rem;
  font-weight: 800;
  color: var(--ls-ink);
  line-height: 1.25;
}

.ar-industry-all-copy span {
  font-size: 0.875rem;
  color: var(--ls-ink-muted);
  line-height: 1.4;
}

.ar-industry-all-cta {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--ls-ink);
  color: #ffffff;
  font-size: 0.84rem;
  font-weight: 800;
  white-space: nowrap;
  flex-shrink: 0;
}

/* AEO / GEO FAQ Section */
.ar-faq-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
}

.ar-faq-list {
  display: grid;
  gap: 14px;
}

.ar-faq-item {
  background: var(--ls-surface);
  border: 1px solid var(--ls-border);
  border-radius: 14px;
  padding: 22px 24px;
}

.ar-faq-item h3 {
  margin: 0 0 10px;
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1.35;
  color: var(--ls-ink);
}

.ar-faq-item p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.68;
  color: var(--ls-ink-muted);
  max-width: 72ch;
}

/* Bottom Consultation CTA Band — LocalSquare Chalkboard Slate */
.ar-cta-band {
  padding: 64px 0 72px;
  scroll-margin-top: 84px;
}

.ar-cta-card {
  position: relative;
  background: var(--ls-ink);
  background-image: radial-gradient(640px 280px at 88% 15%, rgba(61, 158, 151, 0.28), transparent 70%);
  color: #fdfbf7;
  border-radius: 22px;
  padding: 38px 26px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  align-items: center;
}

.ar-cta-card h2 {
  margin: 0 0 10px;
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.ar-cta-card p {
  margin: 0;
  font-size: 1.02rem;
  color: #d7e4e3;
  max-width: 56ch;
}

.ar-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.ar-cta-card .ar-btn-cta-white {
  background: #ffffff;
  color: var(--ls-ink);
}
.ar-cta-card .ar-btn-cta-white:hover {
  background: var(--ls-paper);
}

.ar-cta-card .ar-btn-cta-teal {
  background: var(--ls-teal);
  color: #ffffff;
}
.ar-cta-card .ar-btn-cta-teal:hover {
  background: var(--ls-teal-hover);
}

.ar-cta-card .ar-btn-cta-outline {
  background: transparent;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.36);
}
.ar-cta-card .ar-btn-cta-outline:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Footer — Matching LocalSquare's 4-column footer */
.ar-footer {
  background: var(--ls-paper-dark);
  border-top: 1px solid var(--ls-border-soft);
  padding: 52px 0 36px;
}

.ar-footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
}

.ar-footer-brand img {
  height: 28px;
  width: auto;
  display: block;
  margin-bottom: 14px;
}

.ar-footer-brand p {
  margin: 0 0 18px;
  font-size: 0.875rem;
  color: var(--ls-ink-muted);
  max-width: 30ch;
}

.ar-social-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ar-social-row a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(45, 58, 58, 0.06);
  color: var(--ls-ink-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 140ms ease, color 140ms ease;
}

.ar-social-row a:hover {
  background: rgba(61, 158, 151, 0.14);
  color: var(--ls-teal-deep);
}

.ar-footer-col h4 {
  margin: 0 0 14px;
  font-size: 0.875rem;
  font-weight: 800;
  color: var(--ls-ink);
}

.ar-footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 9px;
}

.ar-footer-col a {
  font-size: 0.875rem;
  color: var(--ls-ink-muted);
  text-decoration: none;
  transition: color 140ms ease;
}

.ar-footer-col a:hover,
.ar-footer-col a[aria-current='page'] {
  color: var(--ls-teal-deep);
}

.ar-footer-bottom {
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid var(--ls-border-soft);
  font-size: 0.78rem;
  color: var(--ls-ink-subtle);
}

/* =========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================= */
@media (max-width: 480px) {
  .ar-header-inner {
    gap: 8px;
  }

  .ar-logo img {
    height: 26px;
  }

  .ar-header-actions {
    gap: 8px;
  }

  .ar-mobile-dir {
    padding: 5px 10px;
  }

  .ar-header-cta {
    padding: 7px 13px;
    font-size: 0.8125rem;
  }

  .ar-walkthrough-box {
    padding: 16px;
  }

  .ar-walkthrough-actions .ar-btn {
    padding: 11px 12px;
    font-size: 0.8125rem;
    gap: 6px;
  }

  .ar-cta-actions .ar-btn {
    max-width: 100%;
    min-width: 0;
    font-size: 0.875rem;
    padding: 11px 16px;
  }

  .ar-widget-rail {
    padding: 12px 16px;
    gap: 8px;
  }

  .ar-widget-logo {
    height: 20px;
  }

  .ar-widget-rail-sep {
    height: 15px;
  }

  .ar-widget-rail-title {
    font-size: 0.78rem;
  }

  .ar-state-pin-frame {
    width: 72px;
    height: 72px;
    padding: 5px;
  }

  .ar-state-pin-sm {
    width: 58px;
    height: 58px;
  }
}

@media (min-width: 640px) {
  .ar-login-link {
    display: inline-block;
  }

  .ar-widget-body {
    padding: 28px 28px 30px;
  }

  .ar-form-grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ar-span-2 {
    grid-column: span 2;
  }

  .ar-pillar-matrix {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ar-footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ar-cta-card {
    padding: 46px 42px;
  }
}

@media (min-width: 860px) {
  .ar-nav {
    display: flex;
  }

  .ar-mobile-dir {
    display: none;
  }

  .ar-steps-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ar-industry-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .ar-hero {
    padding: 58px 0 76px;
  }

  .ar-hero-grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 44px;
    align-items: start;
  }

  .ar-hero-copy {
    padding-top: 10px;
  }

  .ar-pillar-matrix {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ar-faq-layout {
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    gap: 44px;
    align-items: start;
  }

  .ar-faq-sticky {
    position: sticky;
    top: 92px;
  }

  .ar-cta-card {
    grid-template-columns: minmax(0, 1.35fr) auto;
    gap: 36px;
  }

  .ar-footer-grid {
    grid-template-columns: 1.5fr 1.2fr 0.9fr 1fr;
  }
}

/* =========================================================================
   ACCESSIBILITY PREFERENCES (Apple Design §14)
   ========================================================================= */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .ar-panel-enter {
    animation: none;
  }
  .ar-spinner {
    animation-duration: 2.2s;
  }
  .ar-btn,
  .ar-pillar-bar-fill,
  .ar-industry-chip {
    transition: opacity 150ms ease, background-color 150ms ease, border-color 150ms ease;
    transform: none !important;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .ar-header {
    background: var(--ls-paper);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .ar-gate-overlay {
    background: #ffffff;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

@media (prefers-contrast: more) {
  .ar-widget-shell,
  .ar-pillar-matrix,
  .ar-step-card,
  .ar-faq-item,
  .ar-industry-chip {
    border-color: var(--ls-ink);
  }
}

/* Verified 100/100 Independent Is Agentic Proof Badge */
.ar-agentic-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  padding: 10px 14px;
  border-radius: 14px;
  background: var(--status-strong-bg, #ecfdf5);
  border: 1.5px solid var(--status-strong-border, #a7f3d0);
  text-decoration: none;
  color: var(--ls-ink, #1e293b);
  max-width: 100%;
  transition: transform 150ms ease, box-shadow 150ms ease, border-color 150ms ease;
}

.ar-agentic-badge:hover {
  transform: translateY(-1px);
  border-color: var(--status-strong, #059669);
  box-shadow: 0 8px 20px rgba(5, 150, 105, 0.12);
}

.ar-agentic-score {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 10px;
  background: var(--status-strong, #059669);
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.ar-agentic-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.ar-agentic-copy strong {
  font-size: 0.88rem;
  font-weight: 800;
  color: #14532d;
  line-height: 1.25;
}

.ar-agentic-copy span {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ls-ink-muted, #475569);
  line-height: 1.3;
  overflow-wrap: anywhere;
}
