/* =========================================================
   PetScan.site — custom styles (on top of Bootstrap 5.3)
   ========================================================= */
:root {
  --ps-bg: #f7faf9;
  --ps-tint: #eef6f4;
  --ps-ink: #0d2421;
  --ps-ink-2: #3c5450;
  --ps-muted: #6b807c;
  --ps-line: #e2ece9;
  --ps-line-2: #d3e2de;

  --ps-teal: #0f9f8f;
  --ps-teal-600: #0b8577;
  --ps-teal-700: #086a5f;
  --ps-teal-50: #e6f6f3;
  --ps-green: #22b573;
  --ps-green-50: #e8f8ef;
  --ps-blue: #2f7ee8;
  --ps-blue-50: #ebf3fe;
  --ps-amber: #e7a019;
  --ps-amber-50: #fdf5e3;
  --ps-red: #e0533d;
  --ps-red-50: #fdeeeb;

  --ps-grad: linear-gradient(120deg, #13a89e 0%, #1fbf86 55%, #4cc2e6 100%);
  --ps-grad-soft: linear-gradient(135deg, #e7f7f2 0%, #eaf4fd 100%);

  --ps-r: 18px;
  --ps-r-lg: 26px;
  --ps-r-xl: 34px;

  --ps-sh-sm: 0 1px 2px rgba(13,36,33,.05), 0 2px 8px rgba(13,36,33,.04);
  --ps-sh: 0 2px 6px rgba(13,36,33,.04), 0 12px 32px rgba(13,36,33,.07);
  --ps-sh-lg: 0 6px 16px rgba(13,36,33,.05), 0 30px 70px rgba(13,60,54,.13);

  --ps-display: "Bricolage Grotesque", "Manrope", system-ui, sans-serif;
  --ps-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ps-nav-h: 74px;
  --ps-ease: cubic-bezier(.22,.8,.24,1);

  /* Bootstrap variable overrides */
  --bs-body-font-family: var(--ps-body);
  --bs-body-color: var(--ps-ink);
  --bs-body-bg: var(--ps-bg);
  --bs-border-color: var(--ps-line-2);
  --bs-link-color-rgb: 11,133,119;
}

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--ps-nav-h) + 10px); }
body { font-family: var(--ps-body); color: var(--ps-ink); background: var(--ps-bg); -webkit-font-smoothing: antialiased; overflow-x: hidden; line-height: 1.6; }
h1, h2, h3, h4 { font-family: var(--ps-display); letter-spacing: -.02em; font-weight: 700; line-height: 1.12; margin: 0; color: var(--ps-ink); }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
a { text-decoration: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid rgba(15,159,143,.45); outline-offset: 3px; }

@media (min-width: 1400px) { .container { max-width: 1240px; } }
.ps-narrow { max-width: 840px; }

.skip-link { position: absolute; left: -999px; top: 8px; background: var(--ps-ink); color: #fff; padding: 10px 14px; border-radius: 10px; z-index: 2000; }
.skip-link:focus { left: 12px; color: #fff; }

/* ---------- Buttons ---------- */
.ps-btn {
  --h: 48px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: var(--h); padding: 0 22px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 700; font-size: 15px; white-space: nowrap; letter-spacing: -.005em;
  transition: transform .2s var(--ps-ease), box-shadow .25s var(--ps-ease), background .2s, border-color .2s, color .2s;
}
.ps-btn:active { transform: translateY(1px) scale(.99); }
.ps-btn--sm { --h: 42px; padding: 0 18px; font-size: 14.5px; }
.ps-btn--lg { --h: 56px; padding: 0 28px; font-size: 16px; }
.ps-btn--xl { --h: 62px; font-size: 17px; border-radius: 18px; }
.ps-btn--primary { color: #fff; background: linear-gradient(180deg, #14ad9c, #0c9282); box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 8px 22px -6px rgba(15,159,143,.55); }
.ps-btn--primary:hover, .ps-btn--primary:focus { color: #fff; transform: translateY(-1px); box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 14px 28px -8px rgba(15,159,143,.6); }
.ps-btn--primary:disabled { color: #fff; opacity: .72; background: linear-gradient(180deg, #14ad9c, #0c9282); }
.ps-btn--outline { background: #fff; border-color: var(--ps-line-2); color: var(--ps-ink); box-shadow: var(--ps-sh-sm); }
.ps-btn--outline:hover { background: #fff; border-color: var(--ps-teal); color: var(--ps-teal-700); transform: translateY(-1px); }
.ps-btn--ghost { background: transparent; color: var(--ps-ink-2); padding: 0 16px; }
.ps-btn--ghost:hover { color: var(--ps-teal-700); background: var(--ps-teal-50); }
.ps-btn--light { background: #fff; color: var(--ps-teal-700); box-shadow: 0 12px 30px -8px rgba(0,0,0,.28); }
.ps-btn--light:hover { background: #fff; color: var(--ps-teal-700); transform: translateY(-2px); }

/* ---------- Navbar ---------- */
.ps-nav {
  min-height: var(--ps-nav-h);
  background: rgba(247,250,249,.72);
  backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, background .25s, box-shadow .25s;
}
.ps-nav.is-scrolled { background: rgba(255,255,255,.88); border-color: var(--ps-line); box-shadow: 0 6px 24px -14px rgba(13,36,33,.18); }
.ps-logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--ps-display); font-weight: 700; font-size: 22px; letter-spacing: -.03em; color: var(--ps-ink); }
.ps-logo:hover { color: var(--ps-ink); }
.ps-logo__mark { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; font-size: 18px; background: var(--ps-grad); box-shadow: 0 6px 16px -6px rgba(15,159,143,.6); }
.ps-nav .nav-link { padding: 8px 15px !important; border-radius: 999px; font-weight: 600; font-size: 15px; color: var(--ps-ink-2); transition: color .2s, background .2s; }
.ps-nav .nav-link:hover, .ps-nav .nav-link.active { color: var(--ps-teal-700); background: var(--ps-teal-50); }
.ps-nav__actions { display: flex; align-items: center; gap: 6px; }

.ps-burger { width: 46px; height: 46px; padding: 0; border-radius: 13px; border: 1px solid var(--ps-line-2); background: #fff; position: relative; box-shadow: none !important; }
.ps-burger span { position: absolute; left: 13px; right: 13px; height: 2px; background: var(--ps-ink); border-radius: 2px; transition: transform .3s var(--ps-ease), opacity .2s; }
.ps-burger span:nth-child(1) { top: 16px; }
.ps-burger span:nth-child(2) { top: 22px; }
.ps-burger span:nth-child(3) { top: 28px; }
.ps-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.ps-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.ps-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 991.98px) {
  .ps-nav { background: rgba(255,255,255,.94); }
  .ps-nav .navbar-collapse { padding: 10px 0 18px; }
  .ps-nav .nav-link { padding: 13px 6px !important; border-radius: 0; border-bottom: 1px solid var(--ps-line); font-size: 17px; }
  .ps-nav .nav-link:hover { background: transparent; }
  .ps-nav__actions { flex-direction: column; align-items: stretch; gap: 10px; margin-top: 16px; }
  .ps-nav__actions .ps-btn { width: 100%; }
  .ps-nav__actions .ps-btn--ghost { border: 1px solid var(--ps-line-2); background: #fff; }
}

/* ---------- Shared ---------- */
.ps-section { padding: 110px 0; position: relative; }
.ps-section--tint { background: linear-gradient(180deg, var(--ps-tint), #f3f9f7); }
.ps-head { text-align: center; max-width: 690px; margin: 0 auto 56px; }
.ps-head h2 { font-size: clamp(32px, 4.2vw, 48px); }
.ps-head p { margin-top: 14px; font-size: 18px; color: var(--ps-ink-2); }
.ps-eyebrow { display: inline-block; font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--ps-teal-600); margin-bottom: 12px; }
.ps-badge { display: inline-flex; align-items: center; gap: 8px; padding: 7px 15px 7px 11px; border-radius: 999px; background: #fff; border: 1px solid var(--ps-line-2); box-shadow: var(--ps-sh-sm); font-size: 13.5px; font-weight: 700; color: var(--ps-teal-700); }
.ps-grad { background: var(--ps-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ps-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; }
.ps-dot--green { background: var(--ps-green); box-shadow: 0 0 0 3px rgba(34,181,115,.18); }

.ps-ticks { display: grid; gap: 11px; }
.ps-ticks li { position: relative; padding-left: 30px; color: var(--ps-ink-2); font-weight: 500; }
.ps-ticks li::before { content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--ps-teal-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 12.5 4 4 8-9' fill='none' stroke='%230b8577' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat; }

.ps-pill { display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px; border-radius: 999px; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.ps-pill--live { background: var(--ps-green-50); color: #157a4d; }
.ps-pill--soon { background: #f1f4f3; color: var(--ps-muted); border: 1px dashed var(--ps-line-2); }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ps-ease), transform .8s var(--ps-ease); transition-delay: var(--d, 0s); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@keyframes ps-float { 50% { transform: translateY(-8px); } }
@keyframes ps-in { from { opacity: 0; transform: translateY(10px); } }

/* ---------- Hero ---------- */
.ps-hero { position: relative; padding: 60px 0 110px; overflow: hidden; }
.ps-hero__glow { position: absolute; inset: -20% -10% auto; height: 120%; pointer-events: none; z-index: -1;
  background:
    radial-gradient(40% 45% at 78% 38%, rgba(31,191,134,.16), transparent 70%),
    radial-gradient(35% 40% at 92% 10%, rgba(76,194,230,.16), transparent 70%),
    radial-gradient(30% 30% at 8% 20%, rgba(15,159,143,.08), transparent 70%); }
.ps-hero__title { font-size: clamp(42px, 6vw, 74px); margin: 22px 0; letter-spacing: -.035em; }
.ps-hero__lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--ps-ink-2); max-width: 520px; }
.ps-hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.ps-trust-row { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 30px; color: var(--ps-muted); font-size: 14.5px; font-weight: 600; }
.ps-trust-row li { display: inline-flex; align-items: center; gap: 7px; }

.ps-hero__visual { position: relative; padding: 24px 0 24px 36px; }
.ps-hero__photo { position: relative; border-radius: var(--ps-r-xl); overflow: hidden; aspect-ratio: 1 / 1.02; box-shadow: var(--ps-sh-lg); outline: 8px solid #fff; }
.ps-hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 40%; }
.ps-scanline { position: absolute; left: 0; right: 0; height: 120px; top: -120px; background: linear-gradient(180deg, transparent, rgba(76,230,190,.22) 70%, rgba(120,255,210,.7)); border-bottom: 2px solid rgba(160,255,220,.9); mix-blend-mode: screen; animation: ps-scan 4.5s var(--ps-ease) infinite; }
@keyframes ps-scan { 0% { top: -120px; opacity: 0; } 12%, 70% { opacity: 1; } 85%, 100% { top: 100%; opacity: 0; } }
.ps-focus { position: absolute; left: 21%; top: 19%; width: 110px; height: 110px; border-radius: 26px; border: 2px solid rgba(255,255,255,.9); box-shadow: 0 0 30px rgba(120,255,210,.45); animation: ps-pulse 2.6s ease-in-out infinite; }
.ps-focus::before, .ps-focus::after { content: ""; position: absolute; width: 8px; height: 8px; border-radius: 50%; background: #7affd3; }
.ps-focus::before { top: -5px; left: -5px; }
.ps-focus::after { bottom: -5px; right: -5px; }
@keyframes ps-pulse { 50% { transform: scale(1.06); } }

.ps-float { position: absolute; background: rgba(255,255,255,.95); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid rgba(255,255,255,.9); border-radius: 20px; box-shadow: var(--ps-sh-lg); }
.ps-insight { left: -6px; bottom: -4px; width: 290px; padding: 18px; animation: ps-float 6s ease-in-out infinite; }
.ps-insight__head { display: flex; gap: 12px; align-items: center; }
.ps-insight__icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--ps-grad); color: #fff; }
.ps-insight__title { font-weight: 800; font-size: 15px; }
.ps-insight__status { display: flex; align-items: center; gap: 7px; font-size: 13px; color: #157a4d; font-weight: 700; }
.ps-insight__finding { margin: 14px 0 12px; font-family: var(--ps-display); font-weight: 600; font-size: 18px; line-height: 1.25; }
.ps-insight__row { display: flex; justify-content: space-between; font-size: 13px; color: var(--ps-muted); font-weight: 600; margin-bottom: 6px; }
.ps-insight__row strong { color: var(--ps-ink); }
.ps-bar { height: 8px; border-radius: 99px; background: #e9f1ef; overflow: hidden; }
.ps-bar span { display: block; height: 100%; border-radius: inherit; background: var(--ps-grad); transform-origin: left; animation: ps-grow 1.6s .4s var(--ps-ease) both; }
@keyframes ps-grow { from { transform: scaleX(0); } }
.ps-insight__btn { display: flex; justify-content: center; margin-top: 14px; padding: 10px; border-radius: 12px; background: var(--ps-teal-50); color: var(--ps-teal-700); font-weight: 800; font-size: 14px; transition: background .2s; }
.ps-insight__btn:hover { background: #d4efe9; color: var(--ps-teal-700); }

.ps-mini { display: flex; align-items: center; gap: 12px; padding: 12px 16px 12px 14px; font-size: 13px; line-height: 1.3; }
.ps-mini strong { display: block; font-size: 14px; }
.ps-mini span { color: var(--ps-muted); font-weight: 600; }
.ps-mini--top { right: -14px; top: 54px; animation: ps-float 7s 1s ease-in-out infinite; }
.ps-mini--bottom { right: 18px; bottom: 90px; animation: ps-float 6.5s .5s ease-in-out infinite; }
.ps-mini__pulse { width: 12px; height: 12px; border-radius: 50%; background: var(--ps-teal); position: relative; flex: none; }
.ps-mini__pulse::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--ps-teal); animation: ps-ping 1.8s ease-out infinite; }
@keyframes ps-ping { from { transform: scale(.5); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }
.ps-avatars { display: flex; }
.ps-avatars img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; border: 2px solid #fff; margin-left: -10px; }
.ps-avatars img:first-child { margin-left: 0; }

/* ---------- Analyzer ---------- */
.ps-analyzer-section { padding-top: 90px; background: linear-gradient(180deg, transparent, var(--ps-tint) 40%, var(--ps-bg)); }
.ps-analyzer { background: #fff; border: 1px solid var(--ps-line); border-radius: var(--ps-r-xl); box-shadow: var(--ps-sh-lg); overflow: hidden; }
.ps-form { padding: 38px; display: grid; gap: 24px; align-content: start; height: 100%; border-right: 1px solid var(--ps-line); }
.ps-panel { padding: 38px; background: linear-gradient(180deg, #fbfdfc, #f5faf8); min-height: 660px; height: 100%; display: flex; }
.ps-panel > .ps-state { width: 100%; }

.ps-field { display: grid; gap: 10px; }
.ps-label { font-weight: 800; font-size: 15px; }
.ps-error { color: var(--ps-red); font-size: 13.5px; font-weight: 600; }
.ps-error:empty { display: none; }
.ps-field.has-error .ps-drop, .ps-field.has-error .ps-select, .ps-field.has-error .ps-textarea { border-color: var(--ps-red); background-color: #fffafa; }
.ps-field.shake { animation: ps-shake .4s; }
@keyframes ps-shake { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }

.ps-drop { position: relative; border: 2px dashed var(--ps-line-2); border-radius: var(--ps-r-lg); background: linear-gradient(180deg, #fbfefd, #f4faf8); min-height: 240px; display: grid; place-items: center; text-align: center; cursor: pointer; overflow: hidden; transition: border-color .2s, background .2s, transform .2s var(--ps-ease); }
.ps-drop:hover { border-color: var(--ps-teal); }
.ps-drop.is-drag { border-color: var(--ps-teal); background: var(--ps-teal-50); transform: scale(1.01); }
.ps-drop.has-file { border-style: solid; border-color: var(--ps-line); cursor: default; display: block; }
.ps-drop__empty { padding: 28px 20px; }
.ps-drop__icon { width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 20px; display: grid; place-items: center; color: var(--ps-teal-600); background: #fff; box-shadow: var(--ps-sh); transition: transform .3s var(--ps-ease); }
.ps-drop:hover .ps-drop__icon { transform: translateY(-3px) rotate(-4deg); }
.ps-drop__title { font-family: var(--ps-display); font-weight: 700; font-size: 19px; }
.ps-drop__text { color: var(--ps-ink-2); margin-top: 4px; font-size: 15px; }
.ps-link { color: var(--ps-teal-600); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.ps-drop__formats { margin-top: 12px; font-size: 12.5px; letter-spacing: .08em; font-weight: 800; color: var(--ps-muted); }
.ps-drop__formats span { letter-spacing: 0; font-weight: 600; }

.ps-preview { position: relative; width: 100%; }
.ps-preview img { width: 100%; height: 290px; object-fit: cover; animation: ps-fade .4s var(--ps-ease); }
@keyframes ps-fade { from { opacity: 0; transform: scale(1.03); } }
.ps-preview__bar { position: absolute; left: 10px; right: 10px; bottom: 10px; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 8px 8px 12px; border-radius: 14px; background: rgba(255,255,255,.94); backdrop-filter: blur(8px); box-shadow: var(--ps-sh); }
.ps-preview__meta { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 13.5px; font-weight: 700; }
.ps-preview__meta span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ps-preview__check { width: 22px; height: 22px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--ps-green); color: #fff; font-size: 12px; }
.ps-preview__actions { display: flex; gap: 6px; flex: none; }
.ps-chip { border: 1px solid var(--ps-line-2); background: #fff; border-radius: 999px; padding: 6px 13px; font-size: 13px; font-weight: 700; color: var(--ps-ink); transition: border-color .2s, color .2s, background .2s; }
.ps-chip:hover { border-color: var(--ps-teal); color: var(--ps-teal-700); }
.ps-chip--danger:hover { border-color: var(--ps-red); color: var(--ps-red); background: var(--ps-red-50); }

.ps-select, .ps-textarea { border: 1.5px solid var(--ps-line-2); border-radius: 14px; font-size: 16px; color: var(--ps-ink); transition: border-color .2s, box-shadow .2s; }
.ps-select { height: 56px; padding-left: 16px; font-weight: 600; cursor: pointer; background-position: right 16px center; }
.ps-select:invalid { color: var(--ps-muted); }
.ps-textarea { padding: 14px 16px; min-height: 124px; line-height: 1.55; resize: vertical; }
.ps-select:focus, .ps-textarea:focus { border-color: var(--ps-teal); box-shadow: 0 0 0 4px rgba(15,159,143,.14); }
.ps-textarea::placeholder { color: #9aaba7; }
.ps-field__foot { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.ps-example { border: 0; background: none; padding: 0; text-align: left; color: var(--ps-teal-600); font-size: 13px; font-weight: 600; line-height: 1.4; }
.ps-example:hover { text-decoration: underline; text-underline-offset: 3px; }
.ps-counter { font-size: 12.5px; color: var(--ps-muted); font-weight: 600; flex: none; font-variant-numeric: tabular-nums; }
.ps-form__note { text-align: center; color: var(--ps-muted); font-size: 13.5px; margin-top: -8px; }

/* states */
.ps-state { animation: ps-in .45s var(--ps-ease); }
.ps-state--center { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.ps-state h3 { font-size: 25px; margin-bottom: 8px; }
.ps-state--center > p { color: var(--ps-ink-2); max-width: 410px; }

.ps-idle-illus { position: relative; width: 170px; height: 130px; margin-bottom: 26px; }
.ps-idle-illus__card { position: absolute; inset: 0 20px 10px 0; background: #fff; border-radius: 20px; box-shadow: var(--ps-sh); padding: 22px; display: grid; gap: 10px; align-content: start; }
.ps-idle-illus__card span { height: 10px; border-radius: 6px; background: #edf3f1; }
.ps-idle-illus__card span:nth-child(1) { width: 60%; background: var(--ps-teal-50); }
.ps-idle-illus__card span:nth-child(3) { width: 75%; }
.ps-idle-illus__lens { position: absolute; right: 0; bottom: 0; width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; color: #fff; background: var(--ps-grad); box-shadow: 0 12px 26px -8px rgba(15,159,143,.6); animation: ps-float 5s ease-in-out infinite; }
.ps-idle-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 26px; width: 100%; max-width: 410px; }
.ps-idle-list li { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--ps-line); border-radius: 12px; padding: 10px 12px; font-size: 14px; font-weight: 600; color: var(--ps-ink-2); text-align: left; }

.ps-scan { position: relative; width: 190px; height: 190px; border-radius: 30px; overflow: hidden; margin-bottom: 26px; box-shadow: var(--ps-sh-lg); outline: 6px solid #fff; background: var(--ps-grad-soft); }
.ps-scan img { width: 100%; height: 100%; object-fit: cover; }
.ps-scan__grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.18) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.18) 1px, transparent 1px); background-size: 19px 19px; }
.ps-scan__beam { position: absolute; left: 0; right: 0; height: 70px; z-index: 1; background: linear-gradient(180deg, transparent, rgba(76,230,190,.35)); border-bottom: 2px solid #8affd9; animation: ps-beam 1.8s ease-in-out infinite alternate; }
@keyframes ps-beam { from { top: -70px; } to { top: 100%; } }
.ps-loading-msg { color: var(--ps-teal-700) !important; font-weight: 700; min-height: 1.6em; transition: opacity .25s; }
.ps-loading-msg.is-swap { opacity: 0; }
.ps-progress { width: 100%; max-width: 340px; height: 8px; background: #e6efed; border-radius: 99px; overflow: hidden; margin: 18px 0 22px; }
.ps-progress span { display: block; height: 100%; width: 0; background: var(--ps-grad); border-radius: inherit; transition: width .5s var(--ps-ease); }
.ps-steps-mini { display: grid; gap: 9px; width: 100%; max-width: 340px; text-align: left; }
.ps-steps-mini li { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: var(--ps-muted); transition: color .3s; }
.ps-steps-mini li::before { content: ""; width: 18px; height: 18px; flex: none; border-radius: 50%; border: 2px solid var(--ps-line-2); }
.ps-steps-mini li.is-active { color: var(--ps-ink); }
.ps-steps-mini li.is-active::before { border-color: var(--ps-teal); border-top-color: transparent; animation: ps-spin .8s linear infinite; }
.ps-steps-mini li.is-done { color: var(--ps-ink-2); }
.ps-steps-mini li.is-done::before { border-color: var(--ps-teal); background: var(--ps-teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 12.5 4 4 8-9' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/11px no-repeat; }
@keyframes ps-spin { to { transform: rotate(360deg); } }

.ps-error-icon { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; background: var(--ps-red-50); color: var(--ps-red); font-family: var(--ps-display); font-size: 30px; font-weight: 700; margin-bottom: 18px; }

/* result */
.ps-result { display: grid; gap: 16px; align-content: start; }
.ps-result__head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.ps-result__tag { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 800; color: #157a4d; background: var(--ps-green-50); padding: 5px 12px; border-radius: 999px; margin-bottom: 10px; }
.ps-result__head h3 { font-size: 29px; }
.ps-result__summary { color: var(--ps-ink-2); margin-top: 6px; font-size: 15px; }
.ps-result__summary:empty { display: none; }
.ps-result__thumb { width: 78px; height: 78px; border-radius: 20px; object-fit: cover; flex: none; box-shadow: var(--ps-sh); outline: 3px solid #fff; }
.ps-demo-note { background: var(--ps-blue-50); color: #1f5bb0; border-radius: 14px; padding: 10px 14px; font-size: 13.5px; }
.ps-demo-note code { color: inherit; background: rgba(47,126,232,.12); padding: 1px 5px; border-radius: 5px; }
.ps-quality-note { background: var(--ps-amber-50); color: #8a5c05; border-radius: 14px; padding: 10px 14px; font-size: 13.5px; font-weight: 600; }

.ps-sev { --c: var(--ps-amber); --b: var(--ps-amber-50); background: var(--b); border-radius: 18px; padding: 16px 18px; display: grid; grid-template-columns: auto 1fr; gap: 10px 18px; align-items: center; }
.ps-sev[data-level="low"] { --c: var(--ps-green); --b: var(--ps-green-50); }
.ps-sev[data-level="high"] { --c: #e7792b; --b: #fdf0e6; }
.ps-sev[data-level="urgent"] { --c: var(--ps-red); --b: var(--ps-red-50); }
.ps-sev__label { display: flex; align-items: center; gap: 12px; }
.ps-sev__dot { width: 16px; height: 16px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 5px color-mix(in srgb, var(--c) 22%, transparent); }
.ps-sev__label small { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; font-weight: 800; color: var(--ps-muted); line-height: 1.2; }
.ps-sev__label strong { font-family: var(--ps-display); font-size: 21px; line-height: 1.2; }
.ps-sev__scale { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; }
.ps-sev__scale span { height: 8px; border-radius: 99px; background: rgba(13,36,33,.08); transition: background .4s; }
.ps-sev__scale span.on { background: var(--c); }
.ps-sev__reason { grid-column: 1 / -1; font-size: 14px; color: var(--ps-ink-2); }
.ps-sev__reason:empty { display: none; }

.ps-rcard { height: 100%; background: #fff; border: 1px solid var(--ps-line); border-radius: 18px; padding: 16px 18px; box-shadow: var(--ps-sh-sm); animation: ps-in .5s var(--ps-ease) both; }
.col-md-6:nth-child(2) .ps-rcard { animation-delay: .06s; }
.col-md-6:nth-child(3) .ps-rcard { animation-delay: .12s; }
.col-md-6:nth-child(4) .ps-rcard { animation-delay: .18s; }
.ps-rcard h4 { display: flex; align-items: center; gap: 10px; font-size: 16px; margin-bottom: 10px; letter-spacing: -.01em; }
.ps-ric { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; font-size: 15px; flex: none; }
.ps-ric--teal { background: var(--ps-teal-50); } .ps-ric--blue { background: var(--ps-blue-50); } .ps-ric--green { background: var(--ps-green-50); } .ps-ric--amber { background: var(--ps-amber-50); }
.ps-rcard ul { display: grid; gap: 8px; }
.ps-rcard li { position: relative; padding-left: 16px; font-size: 14.5px; color: var(--ps-ink-2); line-height: 1.5; }
.ps-rcard li::before { content: ""; position: absolute; left: 0; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--ps-teal); }
.ps-rcard--warn { background: #fffcf5; border-color: #f4e5c2; }
.ps-rcard--warn li::before { background: var(--ps-amber); }

.ps-disclaimer { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 16px; background: #f2f6f5; border: 1px solid var(--ps-line-2); font-size: 14px; color: var(--ps-ink-2); }
.ps-disclaimer > span { font-size: 20px; line-height: 1.2; }
.ps-disclaimer strong { color: var(--ps-ink); font-weight: 700; }
.ps-result__actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- How it works ---------- */
.ps-steps { position: relative; margin-top: 70px; }
.ps-steps::before { content: ""; position: absolute; top: 44px; left: 18%; right: 18%; height: 2px; background: repeating-linear-gradient(90deg, var(--ps-line-2) 0 8px, transparent 8px 16px); }
.ps-step { position: relative; height: 100%; background: #fff; border: 1px solid var(--ps-line); border-radius: var(--ps-r-lg); padding: 30px 28px 32px; text-align: center; box-shadow: var(--ps-sh); transition: transform .3s var(--ps-ease), box-shadow .3s; }
.ps-step:hover { transform: translateY(-4px); box-shadow: var(--ps-sh-lg); }
.ps-step__icon { width: 64px; height: 64px; margin: -62px auto 18px; border-radius: 20px; display: grid; place-items: center; color: #fff; background: var(--ps-grad); box-shadow: 0 0 0 8px var(--ps-bg), 0 14px 26px -10px rgba(15,159,143,.7); }
.ps-step__num { font-family: var(--ps-display); font-weight: 700; font-size: 14px; color: var(--ps-teal-600); letter-spacing: .1em; }
.ps-step h3 { font-size: 24px; margin: 6px 0 10px; }
.ps-step p { color: var(--ps-ink-2); }

/* ---------- Features ---------- */
.ps-feature { position: relative; background: #fff; border-radius: var(--ps-r-xl); box-shadow: var(--ps-sh-lg); overflow: hidden; margin-bottom: 22px; }
.ps-feature::before { content: ""; position: absolute; inset: 0; z-index: 2; border-radius: inherit; padding: 1.5px; background: var(--ps-grad); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; opacity: .75; }
.ps-feature__copy { padding: 48px; display: grid; gap: 18px; justify-items: start; align-content: center; height: 100%; }
.ps-feature__copy h3 { font-size: clamp(26px, 3vw, 34px); }
.ps-feature__copy > p { color: var(--ps-ink-2); font-size: 17px; }
.ps-feature__visual { position: relative; height: 100%; min-height: 380px; }
.ps-feature__visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 30%; }
.ps-tagchip { position: absolute; background: rgba(255,255,255,.95); border-radius: 999px; padding: 9px 15px; font-weight: 700; font-size: 14px; box-shadow: var(--ps-sh-lg); animation: ps-float 6s ease-in-out infinite; }
.ps-tagchip--a { left: 24px; top: 30px; }
.ps-tagchip--b { right: 24px; bottom: 32px; animation-delay: 1s; }

.ps-soon { height: 100%; background: rgba(255,255,255,.6); border: 1px solid var(--ps-line); border-radius: var(--ps-r-lg); padding: 26px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; transition: background .25s, transform .3s var(--ps-ease), box-shadow .3s; }
.ps-soon:hover { background: #fff; transform: translateY(-3px); box-shadow: var(--ps-sh); }
.ps-soon__ic { width: 50px; height: 50px; border-radius: 15px; display: grid; place-items: center; font-size: 23px; background: #fff; border: 1px solid var(--ps-line); filter: grayscale(.35); }
.ps-soon h3 { font-size: 19px; color: var(--ps-ink-2); }
.ps-soon p { color: var(--ps-muted); font-size: 15px; flex: 1; }

/* ---------- Pets ---------- */
.ps-pet { position: relative; display: block; height: 260px; border-radius: var(--ps-r-lg); overflow: hidden; box-shadow: var(--ps-sh); isolation: isolate; background: var(--ps-grad-soft); }
.ps-pet--lg { height: 360px; }
.ps-pet img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ps-ease); }
.ps-pet:hover img { transform: scale(1.06); }
.ps-pet::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(5,25,22,.5)); pointer-events: none; }
.ps-pet__label { position: absolute; left: 16px; bottom: 16px; z-index: 1; display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; background: rgba(255,255,255,.95); color: var(--ps-ink); font-family: var(--ps-display); font-weight: 700; font-size: 17px; box-shadow: var(--ps-sh); transition: transform .3s var(--ps-ease); }
.ps-pet:hover .ps-pet__label { transform: translateY(-3px); }
.ps-pet__fallback { position: absolute; inset: 0; display: grid; place-items: center; font-size: 86px; background: var(--ps-grad-soft); }

/* ---------- Trust ---------- */
.ps-trust { height: 100%; background: #fff; border: 1px solid var(--ps-line); border-radius: var(--ps-r-lg); padding: 34px 30px; box-shadow: var(--ps-sh); transition: transform .3s var(--ps-ease), box-shadow .3s; }
.ps-trust:hover { transform: translateY(-4px); box-shadow: var(--ps-sh-lg); }
.ps-trust__ic { width: 58px; height: 58px; border-radius: 17px; display: grid; place-items: center; font-size: 26px; margin-bottom: 20px; }
.ps-trust__ic--teal { background: var(--ps-teal-50); } .ps-trust__ic--blue { background: var(--ps-blue-50); } .ps-trust__ic--green { background: var(--ps-green-50); }
.ps-trust h3 { font-size: 22px; margin-bottom: 10px; }
.ps-trust p { color: var(--ps-ink-2); }

/* ---------- Pricing ---------- */
.ps-plan { position: relative; height: 100%; background: #fff; border: 1px solid var(--ps-line); border-radius: var(--ps-r-xl); padding: 36px 30px; display: flex; flex-direction: column; gap: 14px; box-shadow: var(--ps-sh); transition: transform .3s var(--ps-ease), box-shadow .3s; }
.ps-plan:hover { transform: translateY(-4px); box-shadow: var(--ps-sh-lg); }
.ps-plan .ps-ticks { flex: 1; margin: 10px 0 18px; }
.ps-plan__name { font-family: var(--ps-body); font-size: 15px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--ps-teal-600); }
.ps-plan__price { display: flex; align-items: baseline; gap: 6px; }
.ps-plan__amt { font-family: var(--ps-display); font-size: 50px; font-weight: 700; letter-spacing: -.03em; line-height: 1; }
.ps-plan__per { color: var(--ps-muted); font-weight: 600; }
.ps-plan__desc { color: var(--ps-ink-2); }
.ps-plan--pop { border: 2px solid transparent; background: linear-gradient(#fff, #fff) padding-box, var(--ps-grad) border-box; box-shadow: 0 30px 60px -24px rgba(15,159,143,.45); }
@media (min-width: 992px) { .ps-plan--pop { transform: translateY(-12px); } .ps-plan--pop:hover { transform: translateY(-16px); } }
.ps-plan__badge { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--ps-grad); color: #fff; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; padding: 6px 14px; border-radius: 999px; white-space: nowrap; box-shadow: 0 8px 18px -6px rgba(15,159,143,.6); }
.ps-fine { text-align: center; color: var(--ps-muted); font-size: 13.5px; max-width: 650px; margin: 36px auto 0; }

/* ---------- FAQ (Bootstrap accordion skin) ---------- */
.ps-faq { --bs-accordion-border-width: 0; --bs-accordion-bg: transparent; --bs-accordion-btn-focus-box-shadow: 0 0 0 4px rgba(15,159,143,.18); --bs-accordion-active-bg: #fff; --bs-accordion-active-color: var(--ps-ink); display: grid; gap: 12px; }
.ps-faq .accordion-item { background: #fff; border: 1px solid var(--ps-line) !important; border-radius: 20px !important; overflow: hidden; box-shadow: var(--ps-sh-sm); transition: box-shadow .3s, border-color .3s; }
.ps-faq .accordion-item:has(.accordion-button:not(.collapsed)) { border-color: #bfe3db !important; box-shadow: var(--ps-sh); }
.ps-faq .accordion-header { font-family: var(--ps-body); letter-spacing: 0; }
.ps-faq .accordion-button { padding: 22px 24px; font-weight: 700; font-size: 17px; color: var(--ps-ink); background: #fff; border-radius: 20px !important; box-shadow: none; gap: 16px; }
.ps-faq .accordion-button::after {
  width: 32px; height: 32px; border-radius: 50%; background-color: var(--ps-teal-50); background-position: center; background-size: 14px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 5v14M5 12h14' stroke='%23086a5f' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E");
  transition: transform .35s var(--ps-ease), background-color .3s;
}
.ps-faq .accordion-button:not(.collapsed)::after {
  background-color: var(--ps-teal); transform: rotate(180deg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12h14' stroke='white' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E");
}
.ps-faq .accordion-body { padding: 0 24px 22px; color: var(--ps-ink-2); }

/* ---------- Final CTA ---------- */
.ps-final { padding-top: 90px; }
.ps-final__card { position: relative; overflow: hidden; border-radius: 40px; color: #fff;
  background: radial-gradient(70% 90% at 0% 0%, #1cc39a 0%, transparent 60%), linear-gradient(125deg, #0b8e80 0%, #0e7f8f 60%, #1a6fa8 100%);
  box-shadow: 0 40px 80px -30px rgba(11,110,100,.55); }
.ps-final__copy { padding: 66px 56px; height: 100%; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 18px; position: relative; z-index: 1; }
.ps-final__copy h2 { color: #fff; font-size: clamp(34px, 4.4vw, 54px); letter-spacing: -.03em; }
.ps-final__sub { font-size: 19px; opacity: .92; }
.ps-final__copy .ps-btn { margin-top: 10px; }
.ps-final__small { font-size: 14px; opacity: .8; font-weight: 600; }
.ps-final__photo { position: relative; height: 100%; min-height: 400px; }
.ps-final__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 30%; }
.ps-final__photo::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, #0d8288 0%, rgba(13,130,136,0) 35%); }

/* ---------- Footer ---------- */
.ps-footer { padding: 60px 0 30px; border-top: 1px solid var(--ps-line); background: #fff; }
.ps-footer__tag { color: var(--ps-muted); margin-top: 12px; }
.ps-footer__links { display: flex; flex-wrap: wrap; gap: 6px 28px; justify-content: flex-end; }
.ps-footer__links a { color: var(--ps-ink-2); font-weight: 600; font-size: 15px; padding: 4px 0; }
.ps-footer__links a:hover { color: var(--ps-teal-700); }
.ps-footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--ps-line); color: var(--ps-muted); font-size: 13.5px; }

/* ---------- Toast ---------- */
.ps-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 2000; max-width: min(460px, calc(100% - 32px)); background: var(--ps-ink); color: #fff; padding: 14px 18px; border-radius: 16px; box-shadow: 0 20px 40px -12px rgba(0,0,0,.35); font-size: 14.5px; font-weight: 600; animation: ps-toast .35s var(--ps-ease); }
@keyframes ps-toast { from { opacity: 0; transform: translate(-50%, 12px); } }

/* ---------- Legal sub-pages ---------- */
.ps-legal { padding: 70px 0 100px; }
.ps-legal__card { background: #fff; border: 1px solid var(--ps-line); border-radius: var(--ps-r-xl); box-shadow: var(--ps-sh); padding: 48px; }
.ps-legal h1 { font-size: clamp(34px, 4vw, 46px); margin-bottom: 8px; }
.ps-legal h2 { font-size: 22px; margin: 32px 0 10px; }
.ps-legal p, .ps-legal li { color: var(--ps-ink-2); }
.ps-legal ul { list-style: disc; padding-left: 22px; display: grid; gap: 6px; }
.ps-legal .ps-updated { color: var(--ps-muted); font-size: 14px; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 991.98px) {
  .ps-hero { padding: 36px 0 80px; }
  .ps-hero__copy { text-align: center; display: flex; flex-direction: column; align-items: center; }
  .ps-hero__lead { margin-inline: auto; }
  .ps-hero__ctas, .ps-trust-row { justify-content: center; }
  .ps-hero__visual { padding: 10px 10px 40px; max-width: 560px; margin: 0 auto; }
  .ps-form { border-right: 0; border-bottom: 1px solid var(--ps-line); }
  .ps-panel { min-height: 520px; }
  .ps-steps::before { top: 6%; bottom: 6%; left: 50%; right: auto; width: 2px; height: auto; background: repeating-linear-gradient(180deg, var(--ps-line-2) 0 8px, transparent 8px 16px); }
  .ps-steps > div { max-width: 520px; margin-inline: auto; }
  .ps-feature__visual { min-height: 290px; }
  .ps-final__photo { min-height: 300px; }
  .ps-final__photo::before { background: linear-gradient(0deg, #0d8288 0%, rgba(13,130,136,0) 40%); }
  .ps-final__copy { padding: 42px 34px 50px; }
  .ps-footer__links { justify-content: flex-start; }
}

@media (max-width: 575.98px) {
  :root { --ps-nav-h: 66px; }
  .ps-section { padding: 76px 0; }
  .ps-head { margin-bottom: 40px; }
  .ps-head p { font-size: 16.5px; }
  .ps-hero__title { font-size: 40px; }
  .ps-hero__ctas { width: 100%; flex-direction: column; }
  .ps-hero__ctas .ps-btn { width: 100%; }
  .ps-hero__photo { outline-width: 5px; }
  .ps-insight { width: 238px; padding: 14px; left: 0; bottom: 4px; }
  .ps-insight__finding { font-size: 16px; }
  .ps-mini--top { right: -2px; top: 26px; }
  .ps-mini--bottom { display: none; }
  .ps-focus { width: 80px; height: 80px; border-radius: 20px; }
  .ps-analyzer { border-radius: 26px; }
  .ps-form, .ps-panel { padding: 22px 18px; }
  .ps-panel { min-height: 0; }
  .ps-state--center { padding: 20px 0; }
  .ps-drop { min-height: 210px; }
  .ps-preview img { height: 240px; }
  .ps-field__foot { flex-direction: column; gap: 6px; }
  .ps-result__head h3 { font-size: 24px; }
  .ps-result__thumb { width: 60px; height: 60px; border-radius: 16px; }
  .ps-sev { grid-template-columns: 1fr; }
  .ps-feature__copy { padding: 28px 22px; }
  .ps-pet, .ps-pet--lg { height: 190px; }
  .ps-pet__label { font-size: 15px; padding: 7px 12px; left: 10px; bottom: 10px; }
  .ps-faq .accordion-button { padding: 18px; font-size: 16px; }
  .ps-faq .accordion-body { padding: 0 18px 18px; }
  .ps-final__card { border-radius: 28px; }
  .ps-final__copy { padding: 30px 22px 40px; }
  .ps-final__copy .ps-btn { width: 100%; }
  .ps-footer__bottom { flex-direction: column; }
  .ps-legal__card { padding: 28px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
.ps-pet[data-pet="bird"] img { object-position: 50% 10%; }
