/* AMS Report — Standalone product UI */
:root {
  --arpt-navy: #002855;
  --arpt-blue: #0066b3;
  --arpt-sky: #e8f4fd;
  --arpt-text: #0f172a;
  --arpt-muted: #64748b;
  --arpt-border: #e2e8f0;
  --arpt-font: 'Inter', system-ui, sans-serif;
  --arpt-display: 'Plus Jakarta Sans', var(--arpt-font);
  --arpt-max: 72rem;
}

*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  font-family: var(--arpt-font);
  color: var(--arpt-text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}
.arpt-view { display: none; }
.arpt-view.active { display: block; }

/* Header */
.arpt-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--arpt-border);
}
.arpt-header__inner {
  max-width: var(--arpt-max);
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.arpt-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--arpt-navy);
}
.arpt-brand:hover { text-decoration: none; }
.arpt-brand__logo {
  width: 3rem;
  height: 3rem;
  flex-shrink: 0;
  border-radius: 8px;
  object-fit: contain;
}
.arpt-brand__icon {
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 40, 85, 0.15);
}
.arpt-brand__mark {
  width: 2.5rem;
  height: 2.5rem;
  background: linear-gradient(135deg, var(--arpt-navy), var(--arpt-blue));
  color: #fff;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 0.75rem;
}
.arpt-brand__text strong {
  display: block;
  font-family: var(--arpt-display);
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.arpt-brand__text small {
  display: block;
  font-size: 0.62rem;
  color: var(--arpt-muted);
  font-weight: 500;
}
.arpt-header__nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.arpt-header__nav a {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--arpt-muted);
  text-decoration: none;
  padding: 0.4rem 0.65rem;
  border-radius: 6px;
}
.arpt-header__nav a:hover { color: var(--arpt-navy); background: #f8fafc; }

/* Buttons */
.arpt-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.1rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.85rem;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.15s, box-shadow 0.15s;
}
.arpt-btn:hover { transform: translateY(-1px); }
.arpt-btn--primary {
  background: linear-gradient(135deg, var(--arpt-blue), #0284c7);
  color: #fff;
  box-shadow: 0 4px 14px rgba(0, 102, 179, 0.35);
}
.arpt-btn--outline {
  background: #fff;
  color: var(--arpt-navy);
  border: 1px solid var(--arpt-border);
}
.arpt-btn--ghost {
  background: transparent;
  color: var(--arpt-muted);
  border: 1px solid transparent;
}
.arpt-btn--search {
  width: 100%;
  padding: 1rem 1.5rem;
  font-size: 1rem;
  border-radius: 10px;
  margin-top: 0.5rem;
}

/* Hero */
.arpt-hero {
  position: relative;
  padding: 4rem 1.25rem 5rem;
  background: linear-gradient(180deg, #f8fafc 0%, #fff 40%, var(--arpt-sky) 100%);
  overflow: hidden;
}
.arpt-hero__glow {
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  max-width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(0, 102, 179, 0.12) 0%, transparent 70%);
  pointer-events: none;
}
.arpt-hero__layout {
  position: relative;
  max-width: var(--arpt-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(220px, 340px);
  gap: 2rem 3rem;
  align-items: end;
}
.arpt-hero__inner {
  position: relative;
  max-width: 40rem;
  text-align: left;
}
.arpt-hero__scene {
  position: relative;
  min-height: 320px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.arpt-hero__mascot {
  width: min(280px, 100%);
  height: auto;
  filter: drop-shadow(0 16px 28px rgba(0, 40, 85, 0.2));
  animation: arpt-mascot-float 5s ease-in-out infinite;
  pointer-events: none;
}
@keyframes arpt-mascot-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.arpt-hero__eyebrow {
  display: inline-block;
  margin: 0 0 1rem;
  padding: 0.35rem 0.85rem;
  background: #fff;
  border: 1px solid var(--arpt-border);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--arpt-blue);
}
.arpt-hero h1 {
  margin: 0 0 1rem;
  font-family: var(--arpt-display);
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--arpt-navy);
}
.arpt-hero__sub {
  margin: 0 0 2rem;
  font-size: 1.1rem;
  line-height: 1.55;
  color: var(--arpt-muted);
}

/* Search card */
.arpt-search-card {
  background: #fff;
  border: 1px solid var(--arpt-border);
  border-radius: 16px;
  padding: 1.25rem;
  box-shadow: 0 20px 60px rgba(0, 40, 85, 0.1);
  text-align: left;
}
.arpt-search-tabs {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 1rem;
  background: #f1f5f9;
  padding: 0.25rem;
  border-radius: 10px;
}
.arpt-search-tabs button {
  flex: 1;
  padding: 0.55rem 0.5rem;
  border: none;
  background: transparent;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.78rem;
  color: var(--arpt-muted);
  cursor: pointer;
  font-family: inherit;
}
.arpt-search-tabs button.active {
  background: #fff;
  color: var(--arpt-navy);
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}
.arpt-search-body input {
  width: 100%;
  padding: 1.1rem 1.25rem;
  border: 2px solid var(--arpt-border);
  border-radius: 10px;
  font-size: 1.35rem;
  font-weight: 700;
  font-family: ui-monospace, monospace;
  letter-spacing: 0.04em;
  color: var(--arpt-navy);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.arpt-search-body input:focus {
  outline: none;
  border-color: var(--arpt-blue);
  box-shadow: 0 0 0 4px rgba(0, 102, 179, 0.15);
}
.arpt-panel--hidden { display: none; }
.arpt-search-error {
  margin: 0.5rem 0 0;
  font-size: 0.85rem;
  color: #dc2626;
  min-height: 1.25rem;
}
.arpt-search-hint {
  margin: 1rem 0 0;
  text-align: center;
  font-size: 0.82rem;
  color: var(--arpt-muted);
}

/* AMS Certified preview on landing */
.arpt-certified-preview {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 2rem auto 0;
  background: #f0fdf4;
  border: 2px solid #16a34a;
  border-radius: 999px;
  padding: 0.5rem 1.25rem;
  box-shadow: 0 8px 24px rgba(22, 163, 74, 0.15);
}
.arpt-certified-preview__dot {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.2);
}
.arpt-certified-preview__label {
  font-size: 0.85rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  color: #14532d;
}

.arpt-link {
  background: none;
  border: none;
  color: var(--arpt-blue);
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
  padding: 0;
  text-decoration: underline;
}

/* Trust row */
.arpt-trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.arpt-trust__item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--arpt-muted);
}
.arpt-trust__item svg { color: var(--arpt-blue); flex-shrink: 0; }

/* Features */
.arpt-features {
  padding: 4rem 1.25rem;
  background: #fff;
}
.arpt-features__inner { max-width: var(--arpt-max); margin: 0 auto; }
.arpt-features h2 {
  text-align: center;
  font-family: var(--arpt-display);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--arpt-navy);
  margin: 0 0 2rem;
}
.arpt-features__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.arpt-feat {
  background: #f8fafc;
  border: 1px solid var(--arpt-border);
  border-radius: 12px;
  padding: 1.25rem;
}
.arpt-feat span {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--arpt-blue);
  margin-bottom: 0.5rem;
}
.arpt-feat h3 {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--arpt-navy);
}
.arpt-feat p { margin: 0; font-size: 0.82rem; color: var(--arpt-muted); line-height: 1.5; }

/* Pricing */
.arpt-pricing {
  padding: 4rem 1.25rem;
  background: var(--arpt-navy);
  color: #fff;
}
.arpt-pricing__inner { max-width: 40rem; margin: 0 auto; text-align: center; }
.arpt-pricing h2 {
  font-family: var(--arpt-display);
  font-size: 1.75rem;
  font-weight: 800;
  margin: 0 0 2rem;
}
.arpt-pricing__cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.arpt-price {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
}
.arpt-price--feat {
  background: #fff;
  color: var(--arpt-navy);
  border-color: #fff;
  position: relative;
}
.arpt-price__badge {
  position: absolute;
  top: -0.6rem;
  left: 50%;
  transform: translateX(-50%);
  background: #10b981;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
}
.arpt-price h3 { margin: 0 0 0.25rem; font-size: 1rem; }
.arpt-price__amt {
  font-size: 2rem;
  font-weight: 900;
  margin: 0.25rem 0;
  font-family: var(--arpt-display);
}
.arpt-price p { margin: 0 0 1rem; font-size: 0.85rem; opacity: 0.85; }
.arpt-price--feat .arpt-btn--outline {
  border-color: var(--arpt-border);
  width: 100%;
}
.arpt-price .arpt-btn { width: 100%; }

/* Report view */
#view-report {
  background: #eef2f6;
  padding: 1.5rem 1rem 3rem;
  min-height: 60vh;
}
.arpt-toolbar {
  max-width: 58rem;
  margin: 0 auto 1rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.65rem;
}
.arpt-toolbar__actions { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.arpt-view-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #86efac;
}
.arpt-view-badge--owner {
  background: #eff6ff;
  color: #1d4ed8;
}
#report-output .ams-rpt { margin: 0 auto; }

/* Modals */
.arpt-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 20, 40, 0.55);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.arpt-overlay.open { display: flex; }
.arpt-modal {
  background: #fff;
  border-radius: 16px;
  padding: 2rem;
  max-width: 24rem;
  width: 100%;
  box-shadow: 0 24px 80px rgba(0,0,0,0.25);
}
.arpt-modal--qr { max-width: 20rem; text-align: center; }
.arpt-modal h2 { margin: 0 0 0.5rem; color: var(--arpt-navy); font-size: 1.25rem; }
.arpt-modal p { margin: 0 0 1rem; font-size: 0.88rem; color: var(--arpt-muted); }
.arpt-input {
  width: 100%;
  padding: 0.65rem;
  border: 1px solid var(--arpt-border);
  border-radius: 8px;
  font-size: 1rem;
  margin-bottom: 0.75rem;
}
.arpt-error { color: #dc2626; font-size: 0.82rem; display: none; }
.arpt-modal .arpt-btn { width: 100%; margin-top: 0.35rem; }
#qr-canvas { margin: 1rem auto; display: block; }
.arpt-qr-url {
  font-size: 0.72rem;
  word-break: break-all;
  color: var(--arpt-muted);
  font-family: ui-monospace, monospace;
}

/* Footer */
.arpt-footer {
  padding: 2rem 1.25rem;
  text-align: center;
  background: #f8fafc;
  border-top: 1px solid var(--arpt-border);
  font-size: 0.82rem;
  color: var(--arpt-muted);
}
.arpt-footer a { color: var(--arpt-blue); font-weight: 600; }
.arpt-footer__legal {
  margin-top: 0.75rem;
  font-size: 0.72rem;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}

.share-toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--arpt-navy);
  color: #fff;
  padding: 0.65rem 1.25rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  z-index: 300;
  animation: arpt-toast 3s ease forwards;
}
@keyframes arpt-toast {
  0%, 80% { opacity: 1; }
  100% { opacity: 0; }
}

@media (max-width: 900px) {
  .arpt-hero__layout { grid-template-columns: 1fr; }
  .arpt-hero__scene { min-height: 0; order: -1; }
  .arpt-hero__mascot { max-width: 200px; margin: 0 auto; display: block; }
  .arpt-features__grid { grid-template-columns: 1fr 1fr; }
  .arpt-pricing__cards { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .arpt-features__grid { grid-template-columns: 1fr; }
  .arpt-header__nav a { display: none; }
  .arpt-trust { flex-direction: column; align-items: center; }
}
@media print {
  .arpt-header, .arpt-footer, .arpt-toolbar, .no-print, .arpt-overlay { display: none !important; }
  #view-report { background: #fff; padding: 0; }
}
