html, body {
  margin: 0;
  padding: 0;
}

.hero-section {
  padding: 60px 0 40px;
  text-align: center;
}
.hero-img-wrapper {
  display: inline-block;
  position: relative;
  margin-top: 40px;
  margin-bottom: 32px;
}
.hero-img {
  max-width: 480px;
  width: 100%;
  border-radius: 7px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.15);
  transform: rotate(-4deg);
  transition: transform 0.3s ease;
}
.hero-img:hover {
  transform: rotate(0deg);
}
.pricing-section {
  text-align: center;
}
.container.pricing-section {
  padding: 30px 10px 20px;
  margin-top: 20px;
}
.pricing-section.pet-grid-card {
  border: none;
  background: transparent;
  overflow: visible;
}
.pricing-section.pet-grid-card .pricing-card {
  display: block;
  width: 100%;
  box-sizing: border-box;
}
.pricing-card {
  display: inline-block;
  position: relative;
  background: #fff;
  border: 2px solid #0286fb;
  border-radius: 16px;
  padding: 32px 40px 28px;
  box-shadow: 0 4px 24px rgba(2, 134, 251, 0.12);
  min-width: 260px;
}
.pricing-ribbon {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: #0286fb;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 3px 18px;
  border-radius: 20px;
  white-space: nowrap;
}
.pricing-title {
  font-size: 17px;
  font-weight: 600;
  color: #222;
  margin-top: 8px;
  margin-bottom: 4px;
}
.pricing-price {
  font-size: 42px;
  font-weight: 800;
  color: #0286fb;
  line-height: 1.1;
  margin-bottom: 20px;
}
.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  text-align: left;
}
.pricing-features li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #333;
  margin-bottom: 10px;
}
.pricing-check {
  color: #0286fb;
  font-size: 16px;
  flex-shrink: 0;
}
.cta-btn {
  background-color: #0286fb;
  color: white;
  padding: 12px 32px;
  border-radius: 24px;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  display: inline-block;
  transition: background-color 0.2s ease;
}
.cta-btn:hover {
  background-color: #0270d4;
  color: white;
}

/* Theme Marquee */
.theme-marquee-wrapper {
  width: 100%;
  overflow: hidden;
  position: relative;
  border-top: 1px solid #f3f4f6;
  border-bottom: 1px solid #f3f4f6;
  background: #fff;
}
.marquee-gradient-left,
.marquee-gradient-right {
  position: absolute;
  top: 0;
  height: 100%;
  width: 15%;
  z-index: 10;
  pointer-events: none;
}
.marquee-gradient-left {
  left: 0;
  background: linear-gradient(to right, white, rgba(255, 255, 255, 0));
}
.marquee-gradient-right {
  right: 0;
  background: linear-gradient(to left, white, rgba(255, 255, 255, 0));
}
.theme-marquee-track {
  display: flex;
  width: max-content;
  padding: 1.5rem 0;
  animation: theme-scroll 18s linear infinite;
}
.theme-marquee-wrapper:hover .theme-marquee-track {
  animation-play-state: paused;
}
@keyframes theme-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-33.333%);
  }
}
.theme-slide {
  display: block;
  margin-right: 1rem;
  flex-shrink: 0;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid #eee;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s;
  background: #f8f9fa;
}
.theme-slide:hover {
  border-color: #0286fb;
}
.theme-slide-img {
  display: block;
  height: 140px;
  width: auto;
  aspect-ratio: 1.595 / 1;
  object-fit: cover;
}
.theme-slide-label {
  font-size: 12px;
  color: #495057;
  padding: 4px 8px 6px;
  text-align: center;
  white-space: nowrap;
}

/* Pet Grid */
.pet-grid-section {
  padding: 30px 15px 20px;
}
.pet-grid-title {
  font-size: 1.8rem;
  font-weight: 600;
  color: #222;
  text-align: center;
  margin: 0 0 36px;
}
.pet-grid {
  max-width: 1000px;
  margin: 0 auto;
}
.pet-grid-sizer {
  width: calc((100% - 32px) / 3);
}
.pet-grid-gutter {
  width: 16px;
}
.pet-grid-card {
  float: left;
  display: block;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid #eee;
  text-decoration: none;
  color: inherit;
  background: #f8f9fa;
  transition: border-color 0.15s, transform 0.15s;
  width: calc((100% - 32px) / 3);
  margin-bottom: 16px;
  box-sizing: border-box;
}
.pet-grid-card:hover {
  border-color: #0286fb;
  transform: translateY(-2px);
}
.pet-grid-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid #eee;
  background: #fff;
}
.pet-grid-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: #eee;
}
.pet-grid-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.pet-grid-name {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pet-grid-logo {
  height: 20px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.pet-grid-logo img {
  height: 100%;
  width: auto;
  display: block;
}
.pet-grid-img-wrapper {
  width: 100%;
  aspect-ratio: 1.595 / 1;
  background: #eee;
  overflow: hidden;
}
.pet-grid-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.pet-grid-img-wrapper.vertical {
  aspect-ratio: 1 / 1.595;
  position: relative;
}
.pet-grid-img-wrapper.vertical img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 159.5%;
  height: auto;
  transform: translate(-50%, -50%) rotate(90deg);
}
@media (max-width: 576px) {
  .pet-grid-sizer,
  .pet-grid-card {
    width: 100%;
  }
  .pricing-section.pet-grid-card {
    margin-top: 30px;
  }
}

/* Language Switcher */
.container.lang-switcher {
  padding: 20px 10px 40px;
  text-align: center;
}
.lang-switcher p {
  display: inline;
  margin-right: 8px;
  color: #6c757d;
  font-size: 14px;
}
.lang-btn {
  display: inline-block;
  padding: 4px 12px;
  border: 1px solid #dee2e6;
  border-radius: 20px;
  font-size: 13px;
  color: #495057;
  text-decoration: none;
  margin: 3px 2px;
  background: #fff;
  transition:
    border-color 0.15s,
    background 0.15s;
}
.lang-btn:hover {
  border-color: #0286fb;
  color: #0286fb;
  background: #f0f8ff;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 15px;
}

.header-navbar {
  display: flex !important;
  width: 100%;
  position: absolute;
  top: 12px;
  left: 0;
  z-index: 100;
  padding: 0 12px;
  box-sizing: border-box;
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.header-navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 8px 16px;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid #eee;
  border-radius: 20px;
}

.header-navbar .header-navbar-brand img {
  height: 36px;
}

.navbar-collapse {
  display: flex;
  justify-content: flex-end;
}

.navbar-nav {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 8px;
}

.nav-link {
  color: #333;
  text-decoration: none;
  padding: 8px 12px;
}

.navbar-toggler {
  display: none;
  background: none;
  border: 1px solid rgba(0, 0, 0, .1);
  border-radius: 4px;
  padding: 6px 8px;
  cursor: pointer;
  color: #333;
}

@media (max-width: 992px) {
  .navbar-toggler {
    display: block;
  }

  .navbar-collapse {
    display: none;
    flex-basis: 100%;
    margin-top: 15px;
  }

  .navbar-collapse.show {
    display: block;
  }

  .navbar-nav {
    flex-direction: column;
    gap: 0;
  }

  .navbar-nav li a {
    text-decoration: none;
    font-weight: bold;
    color: #444;
    display: block;
    padding: 10px 15px;
    border: 1px solid rgba(0, 0, 0, 0.146);
    border-bottom: none;
  }

  .navbar-nav li:first-child a {
    border-radius: 5px 5px 0 0;
  }

  .navbar-nav li:last-child a {
    border-radius: 0 0 5px 5px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.146);
  }
}

.hero-section h1 {
  margin: 0 0 16px;
}

.hero-section .text-muted {
  margin: 0 0 16px;
}

footer {
  width: 100%;
}

footer section {
  margin: 0;
  overflow: hidden;
}

footer .container {
  max-width: 1000px;
}

.pet-hero-wrapper {
  position: relative;
  overflow: hidden;
  min-height: 500px;
  margin-bottom: 50px;
}

.pet-anim-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  z-index: 0;
}

.pet-anim-bg-fader-left {
  position: absolute;
  top: 0;
  left: 0;
  width: 30%;
  height: 100%;
  z-index: 1;
  opacity: 0.5;
  background-image: linear-gradient(to right,
      rgba(255, 255, 255, 1),
      rgba(255, 255, 255, 1),
      rgba(255, 255, 255, 0.9),
      rgba(255, 255, 255, 0.6),
      rgba(255, 255, 255, 0.2),
      rgba(255, 255, 255, 0));
}

.pet-anim-bg-fader-right {
  position: absolute;
  top: 0;
  right: 0;
  width: 30%;
  height: 100%;
  z-index: 1;
  opacity: 0.5;
  background-image: linear-gradient(to left,
      rgba(255, 255, 255, 1),
      rgba(255, 255, 255, 1),
      rgba(255, 255, 255, 0.9),
      rgba(255, 255, 255, 0.6),
      rgba(255, 255, 255, 0.2),
      rgba(255, 255, 255, 0));
}

.pet-anim-bg-fader-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 90%;
  z-index: 1;
  background-image: linear-gradient(to top,
      rgba(255, 255, 255, 1),
      rgba(255, 255, 255, 1),
      rgba(255, 255, 255, 1),
      rgba(255, 255, 255, 0.95),
      rgba(255, 255, 255, 0.9),
      rgba(255, 255, 255, 0.85),
      rgba(255, 255, 255, 0.7),
      rgba(255, 255, 255, 0));
}

.pet-anim-bg-rows {
  position: absolute;
  top: -60%;
  left: -40%;
  width: 200%;
  height: 200%;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: rotate(45deg) translate(-8px, -12px) skew(-17deg, -9deg);
}

.pet-anim-bg-row {
  display: flex;
  flex-wrap: nowrap;
  padding: 16px 16px 0 16px;
}

.pet-anim-bg-row:nth-child(odd) {
  margin-left: -160px;
}

.pet-anim-bg-item {
  width: 260px;
  flex-shrink: 0;
  margin-right: 16px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0.6px 0.8px 1.1px rgba(0, 0, 0, 0.115), 2px 3px 4px rgba(0, 0, 0, 0.23);
  background: #ddd;
}

.pet-anim-bg-item img {
  width: 100%;
  display: block;
}

.pet-hero-wrapper .hero-section {
  position: relative;
  z-index: 2;
  padding-top: 100px;
}

@media (max-width: 768px) {
  .pet-anim-bg-rows {
    transform: rotate(45deg) translate(-8px, -12px) skew(-17deg, -9deg) scale(0.6);
  }

  .pet-hero-wrapper {
    min-height: 400px;
  }

  .pet-hero-wrapper .hero-section {
    padding-top: 80px;
  }
}

.pet-info-section {
  padding: 30px 15px 20px;
  text-align: center;
  margin-bottom: 40px;
}

.pet-info-section-title {
  font-size: 1.8rem;
  margin: 0 0 36px;
  font-weight: 600;
  color: #222;
}

.demo-label {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  transform: rotate(2deg);
  max-width: 1000px;
  margin: 0 auto 24px;
  padding: 0 24px 0 15px;
}

.demo-label img {
  width: 28px;
  height: auto;
}

.demo-label span {
  color: #777;
  font-size: 14px;
  font-family: 'Fuzzy Bubbles', cursive;
  font-weight: 400;
}

.pet-info-card {
  display: inline-block;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 16px;
  padding: 24px 32px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  max-width: 480px;
  width: 100%;
}

.pet-info-card h2 {
  margin: 0 0 16px;
  font-size: 24px;
  color: #222;
}

.pet-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 24px;
  text-align: left;
  font-size: 14px;
  color: #444;
}

.pet-info-label {
  font-weight: 600;
  color: #666;
}

/* Form-like pet info (matches /global page style) */
.pet-info-card-stack {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 720px;
  width: 100%;
  margin: 0 auto;
  position: relative;
}

.pet-info-card-bg {
  position: relative;
  width: 400px;
  flex-shrink: 0;
  border-radius: 8px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
  border: 1px solid #ddd;
  background: #eee;
  overflow: hidden;
  aspect-ratio: 1.595 / 1;
  margin-right: -154px;
  z-index: 0;
  transform: rotate(-4deg);
}

.pet-info-card-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pet-info-card-loading {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
}

.pet-info-card-loading-bar {
  width: 70%;
  height: 8px;
  background: #eee;
  border-radius: 99px;
  overflow: hidden;
}

.pet-info-card-loading-bar::after {
  content: '';
  display: block;
  width: 0%;
  height: 100%;
  background: #0286fb;
  border-radius: 99px;
}

.pet-info-form-wrapper {
  position: relative;
}

.pet-info-example-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  font-size: 0.75rem;
  color: #888;
  opacity: 0.5;
  transform: rotate(4deg);
  z-index: 2;
  pointer-events: none;
  -webkit-user-select: none;
  user-select: none;
}

.pet-info-form {
  position: relative;
  z-index: 1;
  background: #fff;
  border: 2px solid #eee;
  border-radius: 10px;
  padding: 20px;
  text-align: left;
  width: 100%;
  max-width: 480px;
  min-width: 400px;
  box-sizing: border-box;
  transform: rotate(4deg);
  overflow: hidden;
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

/* Cursor demo animation */
.cursor-demo {
  position: absolute;
  width: 40px;
  height: 40px;
  z-index: 10;
  pointer-events: none;
}

.cursor-demo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.cursor-arrow {
  opacity: 1;
}

.cursor-hand {
  opacity: 0;
}

/* Typing demo animation */
.typing-demo {
  position: absolute;
  inset: 0;
  background: #fafafb;
  display: flex;
  align-items: center;
  padding: 10px 12px;
  border-radius: 8px;
}

.typing-demo::before {
  content: "";
}

.typing-demo::after {
  content: "";
  display: inline-block;
  width: 2px;
  height: 1em;
  background: #333;
  margin-left: 2px;
  animation: typingBlink 0.7s step-end infinite;
}

@keyframes typingBlink {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0; }
}

@media (max-width: 768px) {
  .pet-info-card-stack {
    flex-direction: column;
    gap: 24px;
  }

  .pet-info-card-bg {
    margin-right: 0;
    width: 320px;
    order: -1;
  }

  .pet-info-form {
    transform: rotate(0deg);
  }
}

.pet-info-form h2 {
  margin: 0 0 16px;
  font-size: 24px;
  color: #222;
  text-align: center;
}

.pet-info-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 16px;
}

.pet-info-form-label {
  font-size: 0.8rem;
  margin-bottom: 2px;
  font-weight: bold;
  color: #174170;
}

.pet-info-form-value {
  position: relative;
  width: 100%;
  background: #fafafb;
  border: 1px solid #e7e7e7;
  border-radius: 8px;
  font-size: 1rem;
  padding: 10px 12px;
  box-sizing: border-box;
  color: #333;
  min-height: 42px;
  display: flex;
  align-items: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  /* Disable font ligatures to prevent 1/2 fraction issue in dates */
  font-variant-ligatures: none;
  font-feature-settings: "liga" 0;
}

@media (max-width: 480px) {
  .pet-info-grid {
    grid-template-columns: 1fr;
  }

  .pet-info-form-grid {
    grid-template-columns: 1fr;
  }

  .pet-info-form-wrapper {
    width: 100%;
  }

  .pet-info-form {
    width: 100%;
  }

  .pet-info-example-badge {
    top: -20px;
  }
}

/* 2-column hero layout (pet detail page) */
.pet-hero-wrapper .hero-section--two-col {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 120px 15px 80px;
  text-align: left;
}

.hero-text {
  flex: 1;
  min-width: 0;
}

.hero-text h1 {
  margin: 0 0 16px;
  font-size: 2.8rem;
  line-height: 1.15;
}

.hero-text p {
  margin: 0 0 16px;
  font-size: 1.15rem;
  line-height: 1.6;
}

.hero-social-proof {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 17px;
}

.hero-avatars {
  display: flex;
}

.hero-avatars img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid #fff;
  object-fit: cover;
  margin-left: -8px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.hero-avatars img:first-child {
  margin-left: 0;
}

.hero-social-text {
  font-size: 13px;
  font-weight: 600;
  color: #555;
}

.hero-sub-price {
  display: block;
  margin: 14px 0 0;
  font-size: 12px;
  color: #999;
}

.hero-image {
  flex: 1;
  text-align: center;
  min-width: 0;
  transform: rotate(4deg);
}

.hero-card-stack {
  position: relative;
  width: 100%;
  max-width: 400px;
  flex-shrink: 0;
}

.hero-card-bg {
  position: absolute;
  max-width: 400px;
  width: 100%;
  aspect-ratio: 1.595 / 1;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
  border: 1px solid #ddd;
  background: #eee;
  overflow: hidden;
}

.hero-card-bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-card-bg-1 {
  top: 7px;
  left: -1px;
  transform: rotate(-4deg);
  z-index: -2;
}

.hero-card-bg-2 {
  top: 4px;
  left: 0px;
  transform: rotate(-2deg);
  z-index: -1;
}

.preview-img {
  max-width: 400px;
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.15);
  border: 1px solid #ddd;
  display: block;
}

@media (max-width: 768px) {
  .pet-hero-wrapper .hero-section--two-col {
    flex-direction: column;
    text-align: center;
    padding: 100px 15px 40px;
    gap: 32px;
  }

  .hero-text h1 {
    font-size: 2rem;
  }

  .hero-social-proof {
    justify-content: center;
  }

  .hero-card-stack {
    max-width: 280px;
  }

  .hero-card-bg {
    max-width: 280px;
  }

  .preview-img {
    max-width: 280px;
  }
}
