:root {
    --cream: #FCF5ED;
    --cream-deep: #F4E9D8;
    --ink: #1F2A2E;
    --teal: #134C5F;
    --teal-deep: #0D3A48;
    --gold: #FFB100;
    --lime: #7CDA24;
    --coral: #E8603C;
    --paper: #FFFFFF;
    --line: rgba(19, 76, 95, 0.14);
    --radius-lg: 28px;
    --radius-md: 18px;
    --shadow: 0 18px 40px -20px rgba(19, 76, 95, 0.35);
  }

  * { box-sizing: border-box; }

  html { scroll-behavior: smooth; overflow-x: hidden; }

  body {
    margin: 0;
    background: var(--cream);
    color: var(--ink);
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
  }

  h1, h2, h3, .display {
    font-family: 'Baloo 2', sans-serif;
    font-weight: 700;
    line-height: 1.08;
    margin: 0;
    letter-spacing: -0.01em;
  }

  .eyebrow {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--teal);
    opacity: 0.75;
  }

  a { color: inherit; }

  .wrap {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 32px;
  }

  /* ---------------------------------- NAV ---------------------------------- */
  .nav {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(252, 245, 237, 0.88);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
  }
  .nav .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 76px;
  }
  .logo {
    font-family: 'Baloo 2', sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--teal-deep);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .logo .paw {
    width: 30px; height: 30px;
    display: inline-block;
  }
  .nav-links { display: flex; gap: 36px; list-style: none; margin: 0; padding: 0; }
  .nav-links a {
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--ink);
    position: relative;
    padding-bottom: 4px;
  }
  .nav-links a::after {
    content: '';
    position: absolute; left: 0; right: 0; bottom: -2px;
    height: 3px; border-radius: 3px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .25s ease;
  }
  .nav-links a:hover::after { transform: scaleX(1); }
  .nav-cta {
    background: var(--teal-deep);
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 11px 22px;
    border-radius: 999px;
    text-decoration: none;
    box-shadow: 0 8px 18px -8px rgba(13,58,72,0.55);
  }

  /* ---------------------------------- HERO ---------------------------------- */
  .hero {
    position: relative;
    overflow: hidden;
    padding: 84px 0 70px;
    background:
      radial-gradient(ellipse 640px 420px at 88% -8%, rgba(255,177,0,0.35), transparent 60%),
      var(--cream);
  }
  .hero .wrap {
    display: grid;
    grid-template-columns: minmax(320px, 1.05fr) minmax(300px, 0.95fr);
    gap: 56px;
    align-items: start;
  }
  .hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--paper);
    border: 1px solid var(--line);
    padding: 7px 14px 7px 10px;
    border-radius: 999px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--teal-deep);
    margin-bottom: 22px;
  }
  .hero-eyebrow .dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--lime);
    box-shadow: 0 0 0 3px rgba(124,218,36,0.25);
  }
  .hero h1 {
    font-size: clamp(2.5rem, 4.2vw, 3.6rem);
    color: var(--teal-deep);
    max-width: 12ch;
  }
  .hero h1 em {
    font-style: normal;
    color: var(--coral);
    position: relative;
  }
  .hero p.lede {
    margin-top: 22px;
    font-size: 1.08rem;
    line-height: 1.65;
    color: #3D4F55;
    max-width: 46ch;
  }
  .hero-actions { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }
  .btn-primary {
    background: var(--gold);
    color: var(--teal-deep);
    font-weight: 700;
    font-size: 0.98rem;
    padding: 15px 28px;
    border-radius: 14px;
    text-decoration: none;
    box-shadow: 0 14px 26px -12px rgba(255,177,0,0.65);
    transition: transform .18s ease;
  }
  .btn-primary:hover { transform: translateY(-2px); }
  .btn-ghost {
    background: transparent;
    color: var(--teal-deep);
    font-weight: 700;
    font-size: 0.98rem;
    padding: 15px 22px;
    border-radius: 14px;
    text-decoration: none;
    border: 1.5px solid var(--line);
  }
  .hero-stats {
    display: flex;
    gap: 28px;
    margin-top: 44px;
    padding-top: 26px;
    border-top: 1px solid var(--line);
  }
  .hero-stats div strong {
    display: block;
    font-family: 'Baloo 2', sans-serif;
    font-size: 1.5rem;
    color: var(--teal-deep);
  }
  .hero-stats div span {
    font-size: 0.8rem;
    color: #5C6E73;
  }

  .hero-art {
    position: relative;
    aspect-ratio: 1 / 1;
    width: 100%;
  }
  .hero-art .blob {
    position: absolute;
    inset: 6%;
    background: linear-gradient(160deg, var(--gold), #ffd166 60%, var(--lime) 130%);
    border-radius: 45% 55% 60% 40% / 50% 45% 55% 50%;
  }
  .hero-art .card {
    position: absolute;
    background: var(--paper);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow);
    padding: 14px 16px;
    width: 200px;
  }
  .hero-art .card.deal {
    left: 4%; bottom: 6%;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: 0.82rem;
    color: var(--teal-deep);
    display: flex; align-items: center; gap: 10px;
    line-height: 1.3;
  }
  .hero-art .card.deal .pct {
    background: var(--lime);
    color: var(--teal-deep);
    font-family: 'Baloo 2', sans-serif;
    font-size: 1.1rem;
    padding: 6px 10px;
    border-radius: 10px;
    flex-shrink: 0;
  }
  .hero-art .card.rating {
    right: 2%; top: 4%;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--teal-deep);
    display: flex; align-items: center; gap: 8px;
    line-height: 1.3;
  }
  .hero-art .paw-icon { width: 100px; height: 100px; position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); opacity: 0.92;}

  /* ---------------------------------- COUPON STRIP (signature element) ---------------------------------- */
  .coupons {
    padding: 64px 0 76px;
  }
  .section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 30px;
    gap: 20px;
    flex-wrap: wrap;
  }
  .section-head h2 {
    font-size: clamp(1.6rem, 2.6vw, 2.1rem);
    color: var(--teal-deep);
    margin-top: 8px;
  }
  .section-head .see-all {
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    color: var(--teal-deep);
    border-bottom: 2px solid var(--gold);
    padding-bottom: 2px;
  }

  /* Page-level heading (H1) used where a section-head's h2 slot is
     actually the page's main heading — e.g. /discount-codes, /guides,
     a single store page. Same visual treatment as section-head h2,
     just sized up since it's the page's only H1. */
  .page-title {
    font-family: 'Baloo 2', sans-serif;
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    color: var(--teal-deep);
    margin-top: 8px;
  }

  /* Modifier for a section that opens the page (no hero above it) —
     needs its own top padding instead of relying on a preceding hero. */
  .is-page-top { padding-top: 56px; }

  .store-description {
    max-width: 60ch;
    color: #3D4F55;
    margin: -12px 0 32px;
  }

  .ticket .store .verified-date {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.65;
  }

  .type-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
  }

  .guide-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
    z-index: 1;
  }
  .guide-card h2 {
    font-size: 1.06rem;
    color: var(--teal-deep);
    line-height: 1.35;
    font-family: 'Baloo 2', sans-serif;
  }
  .guide-excerpt {
    font-size: 0.86rem;
    color: #5C6E73;
    margin-top: 8px;
  }

  .ticket-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 22px;
  }

  .ticket {
    position: relative;
    background: var(--paper);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow);
    display: flex;
    overflow: hidden;
  }
  .ticket .store {
    flex: 1;
    padding: 22px 18px;
  }
  .ticket .store .brand {
    font-family: 'Baloo 2', sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--teal-deep);
    margin-bottom: 6px;
  }
  .ticket .store .desc {
    font-size: 0.86rem;
    color: #5C6E73;
    line-height: 1.5;
    margin-bottom: 14px;
  }
  .ticket .store .paw-stamp {
    position: absolute;
    top: 16px;
    right: 96px;
    width: 34px;
    height: 34px;
    opacity: 0.14;
  }
  .ticket .stub {
    width: 96px;
    flex-shrink: 0;
    background: var(--cream-deep);
    border-left: 2px dashed rgba(19,76,95,0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
  }
  .ticket .stub::before,
  .ticket .stub::after {
    content: '';
    position: absolute;
    left: -8px;
    width: 16px; height: 16px;
    border-radius: 50%;
    background: var(--cream);
    box-shadow: inset 0 0 0 1px var(--line);
  }
  .ticket .stub::before { top: -8px; }
  .ticket .stub::after { bottom: -8px; }
  .ticket .stub .off {
    font-family: 'Baloo 2', sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--coral);
    line-height: 1;
  }
  .ticket .stub .off small { font-size: 0.6rem; display: block; font-weight: 700; color: var(--teal-deep); margin-top: 2px;}
  .ticket .stub .code {
    display: flex;
    align-items: center;
    gap: 5px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.68rem;
    font-weight: 700;
    background: #fff;
    border: 1px solid var(--line);
    padding: 4px 9px;
    border-radius: 999px;
    color: var(--teal-deep);
    white-space: nowrap;
  }
  .ticket .stub .code svg { width: 11px; height: 11px; flex-shrink: 0; opacity: 0.75; }
  .ticket .stub .code.is-auto {
    background: rgba(124,218,36,0.16);
    border-color: rgba(124,218,36,0.4);
    color: var(--teal-deep);
  }

  .coupon-note {
    margin-top: 18px;
    font-size: 0.78rem;
    color: #6B7B80;
    font-style: italic;
  }

  /* ---------------------------------- ZOOPLUS GUIDE (long-form content) ---------------------------------- */
  .guide-content {
    background: var(--paper);
    padding: 72px 0 76px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }
  .guide-content .wrap {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 56px;
    align-items: start;
  }
  .guide-toc {
    position: sticky;
    top: 100px;
    font-size: 0.86rem;
  }
  .guide-toc .eyebrow { display: block; margin-bottom: 14px; }
  .guide-toc ol {
    list-style: none;
    margin: 0; padding: 0;
    counter-reset: toc;
    border-left: 2px solid var(--line);
  }
  .guide-toc li {
    counter-increment: toc;
    margin-bottom: 4px;
  }
  .guide-toc a {
    display: block;
    padding: 7px 0 7px 16px;
    margin-left: -2px;
    border-left: 2px solid transparent;
    text-decoration: none;
    color: #4A5A5F;
    font-weight: 500;
    line-height: 1.4;
  }
  .guide-toc a:hover { color: var(--teal-deep); border-left-color: var(--gold); }

  .prose { max-width: 68ch; }
  .prose > .lead {
    font-size: 1.05rem;
    color: #3D4F55;
    line-height: 1.7;
    padding: 18px 20px;
    background: var(--cream);
    border-left: 3px solid var(--gold);
    border-radius: 0 12px 12px 0;
    margin-bottom: 44px;
  }
  .prose h2 {
    font-size: 1.4rem;
    color: var(--teal-deep);
    margin-top: 46px;
    margin-bottom: 14px;
    scroll-margin-top: 96px;
  }
  .prose h2:first-of-type { margin-top: 0; }
  .prose p {
    font-size: 0.96rem;
    line-height: 1.75;
    color: #384649;
    margin: 0 0 16px;
  }
  .prose ul {
    margin: 0 0 16px;
    padding-left: 20px;
  }
  .prose li {
    font-size: 0.96rem;
    line-height: 1.7;
    color: #384649;
    margin-bottom: 8px;
  }
  .prose strong { color: var(--teal-deep); }

  .verify-callout {
    margin-top: 46px;
    background: var(--teal-deep);
    color: #fff;
    border-radius: var(--radius-md);
    padding: 26px 28px;
    display: flex;
    gap: 18px;
    align-items: flex-start;
  }
  .verify-callout .icon {
    width: 40px; height: 40px;
    background: var(--gold);
    border-radius: 10px;
    flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem;
  }
  .verify-callout h3 { font-size: 1.02rem; color: #fff; margin-bottom: 6px; }
  .verify-callout p { color: rgba(255,255,255,0.78); font-size: 0.88rem; margin: 0; line-height: 1.6; }

  .faq-list { margin-top: 44px; }
  .faq-item {
    border-bottom: 1px solid var(--line);
    padding: 18px 0;
  }
  .faq-item summary {
    font-family: 'Baloo 2', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    color: var(--teal-deep);
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
  }
  .faq-item summary::-webkit-details-marker { display: none; }
  .faq-item summary::after {
    content: '+';
    font-size: 1.3rem;
    font-weight: 400;
    color: var(--gold);
    flex-shrink: 0;
    transition: transform .2s ease;
  }
  .faq-item[open] summary::after { transform: rotate(45deg); }
  .faq-item p {
    font-size: 0.92rem;
    line-height: 1.7;
    color: #384649;
    margin: 12px 0 0;
  }

  /* ---------------------------------- SHOP BY TYPE ---------------------------------- */
  .shop-types {
    padding: 20px 0 76px;
  }
  .type-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
  }
  .type-card {
    background: var(--paper);
    border-radius: var(--radius-md);
    padding: 26px 22px;
    border: 1px solid var(--line);
    transition: border-color .18s ease, transform .18s ease;
  }
  .type-card:hover { border-color: var(--gold); transform: translateY(-3px); }
  .type-card .icon-badge {
    width: 46px; height: 46px;
    border-radius: 13px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 16px;
  }
  .type-card:nth-child(1) .icon-badge { background: #FFF1D0; }
  .type-card:nth-child(2) .icon-badge { background: #E4F6D3; }
  .type-card:nth-child(3) .icon-badge { background: #DCEEF2; }
  .type-card:nth-child(4) .icon-badge { background: #FBE2D9; }
  .type-card h3 { font-size: 1.02rem; color: var(--teal-deep); margin-bottom: 6px; }
  .type-card p { font-size: 0.84rem; color: #5C6E73; margin: 0; line-height: 1.5; }

  /* ---------------------------------- GUIDES ---------------------------------- */
  .guides {
    padding: 20px 0 80px;
  }
  .guide-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
  }
  .guide-card {
    background: var(--paper);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow);
    display: block;
    text-decoration: none;
    color: inherit;
  }
  .guide-thumb {
    height: 150px;
    background: linear-gradient(135deg, var(--teal), var(--teal-deep));
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  /* Placeholder paw mark shown when there's no featured_image yet —
     visible behind the <img> tag, covered automatically once a real
     image is set (the <img> has object-fit:cover and fills the box). */
  .guide-thumb::before {
    content: '';
    width: 44px;
    height: 44px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='%23ffffff' fill-opacity='0.35'%3E%3Cellipse cx='24' cy='30' rx='12' ry='10'/%3E%3Cellipse cx='10' cy='16' rx='5' ry='6'/%3E%3Cellipse cx='22' cy='10' rx='5.5' ry='6.5'/%3E%3Cellipse cx='34' cy='10' rx='5.5' ry='6.5'/%3E%3Cellipse cx='42' cy='18' rx='5' ry='6'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
  }
  .guide-thumb .tag {
    position: absolute;
    top: 14px; left: 14px;
    background: rgba(255,255,255,0.92);
    color: var(--teal-deep);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 5px 10px;
    border-radius: 999px;
  }
  .guide-body { padding: 20px 20px 24px; }
  .guide-body .minutes { font-family: 'JetBrains Mono', monospace; font-size: 0.72rem; color: #5C6E73; margin-bottom: 8px; display:block;}
  .guide-body h3 { font-size: 1.06rem; color: var(--teal-deep); line-height: 1.35; }

  /* ---------------------------------- WHY JOIN BAND ---------------------------------- */
  .why-band {
    background: var(--teal-deep);
    color: #fff;
    padding: 68px 0;
    position: relative;
    overflow: hidden;
  }
  .why-band::before {
    content: '';
    position: absolute;
    width: 480px; height: 480px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,177,0,0.18), transparent 70%);
    top: -220px; right: -140px;
  }
  .why-band .wrap { position: relative; }
  .why-band h2 { font-size: clamp(1.7rem, 2.8vw, 2.3rem); max-width: 16ch; margin-bottom: 40px; }
  .why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
  }
  .why-item .num {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: var(--gold);
    font-weight: 700;
    letter-spacing: 0.1em;
    margin-bottom: 10px;
    display: block;
  }
  .why-item h3 { font-size: 1.1rem; margin-bottom: 8px; color: #fff; }
  .why-item p { font-size: 0.88rem; color: rgba(255,255,255,0.72); line-height: 1.6; margin: 0; }

  /* ---------------------------------- FOOTER ---------------------------------- */
  footer {
    background: var(--cream-deep);
    padding: 52px 0 32px;
  }
  .footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 30px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--line);
  }
  .footer-cols { display: flex; gap: 60px; flex-wrap: wrap; }
  .footer-col h4 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--teal-deep); margin-bottom: 14px; font-weight: 700; font-family: 'Inter', sans-serif; }
  .footer-col a { display: block; font-size: 0.9rem; color: #4A5A5F; text-decoration: none; margin-bottom: 10px; }
  .footer-bottom {
    display: flex;
    justify-content: space-between;
    padding-top: 24px;
    font-size: 0.82rem;
    color: #6B7B80;
    flex-wrap: wrap;
    gap: 10px;
  }

  @media (max-width: 900px) {
    .hero .wrap { grid-template-columns: 1fr; }
    .hero-art { max-width: 420px; margin: 0 auto; }
    .type-grid, .guide-grid, .why-grid { grid-template-columns: 1fr 1fr; }
    .nav-links { display: none; }
    .guide-content .wrap { grid-template-columns: 1fr; }
    .guide-toc { position: static; border-bottom: 1px solid var(--line); padding-bottom: 24px; margin-bottom: 8px; }
  }
  @media (max-width: 560px) {
    .type-grid, .guide-grid, .why-grid { grid-template-columns: 1fr; }
    .wrap { padding: 0 20px; }
  }

  @media (prefers-reduced-motion: reduce) {
    * { transition: none !important; scroll-behavior: auto !important; }
  }

  a:focus-visible, button:focus-visible {
    outline: 3px solid var(--coral);
    outline-offset: 2px;
  }

/* Compact CTA variant for ticket cards (the mockup used inline styles
   for this; pulled into a real class so home.php doesn't need inline
   style attributes). */
.ticket-cta {
  padding: 9px 16px !important;
  font-size: 0.82rem !important;
}
