/* =========================================================
   Veternity — shared stylesheet for every page
   ---------------------------------------------------------
   1.  Design tokens (brand palette)
   2.  Base + ambient background
   3.  Layout helpers & typography
   4.  Reveal-on-scroll
   5.  Brand mark (paw + wordmark)
   6.  Top navbar (+ mobile menu)
   7.  Scroll progress rail + back-to-top
   8.  Buttons (frosted glass) & chips
   9.  Cards & feature icons
   10. Image placeholders
   11. Footer
   12. Page hero (demo page)
   13. Home page
   14. Pricing
   15. Call-to-action banner
   16. Demo request page + forms
   17. Responsive
   18. Reduced motion
   ========================================================= */

/* =========================================================
   1. Design tokens (brand palette)
   ========================================================= */
:root {
  /* brand */
  --blue:        #0868D8;   /* primary · navigation, buttons */
  --green:       #42B83E;   /* secondary · success, accents */
  --yellow:      #F4C542;   /* reminders, pending items */
  --orange:      #F28C38;   /* deadlines, attention */

  /* neutrals */
  --navy:        #142B49;   /* headings, dark surfaces */
  --slate:       #64748B;   /* secondary text, icons */
  --soft-blue:   #EAF4FF;   /* selected items, info backgrounds */
  --mint:        #EAF8EA;   /* positive status, subtle highlights */
  --cool-white:  #F7FAFC;   /* page background */
  --white:       #FFFFFF;   /* cards, forms, modals */

  /* derived */
  --blue-dark:   #0656B3;
  --ink:         #33435A;   /* body text */
  --line:        #DCE6F2;   /* borders */
  --line-strong: rgba(8, 104, 216, 0.35);
  --yellow-soft: #FEF6DC;
  --yellow-text: #A97F0B;   /* yellow darkened for readable text/icons */
  --orange-soft: #FDEEDF;
  --orange-text: #C9620F;   /* orange darkened for readable text/icons */

  --shadow-sm: 0 2px 8px rgba(20, 43, 73, 0.06);
  --shadow-md: 0 12px 32px -12px rgba(20, 43, 73, 0.18);
  --shadow-lg: 0 24px 60px -20px rgba(20, 43, 73, 0.25);

  --max-width: 1180px;
  --nav-height: 68px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;

  --ease: cubic-bezier(.22, .95, .25, 1);

  --font-heading: 'Nunito', 'Inter', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, sans-serif;


  /* reveal-on-scroll (inner pages use a slightly longer move, see .subpage) */
  --reveal-offset:   22px;
  --reveal-duration: .7s;
}

.subpage {
  --reveal-offset:   30px;
  --reveal-duration: .8s;
}

/* =========================================================
   2. Base + ambient background
   ========================================================= */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-height) + 16px); }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  background: var(--cool-white);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  line-height: 1.6;
}

img { max-width: 100%; display: block; }

::selection { background: rgba(8, 104, 216, 0.18); color: var(--navy); }

/* Floating paw prints canvas (drawn by script.js) */
#ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* Soft brand-coloured glows behind everything */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(50% 40% at 10% 0%, rgba(8, 104, 216, 0.08), transparent 60%),
    radial-gradient(45% 40% at 95% 20%, rgba(66, 184, 62, 0.07), transparent 60%),
    radial-gradient(60% 50% at 50% 100%, rgba(8, 104, 216, 0.06), transparent 60%);
}

main, footer { position: relative; z-index: 1; }
section { position: relative; }

/* =========================================================
   3. Layout helpers & typography
   ========================================================= */
.container {
  position: relative;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 110px 24px;
}

h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--navy); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green);
  margin: 0 0 14px;
}
.eyebrow::before {
  content: '';
  width: 18px;
  height: 3px;
  border-radius: 3px;
  background: currentColor;
}

.section-title {
  font-weight: 900;
  font-size: clamp(28px, 3.6vw, 44px);
  letter-spacing: -0.01em;
  margin: 0 0 16px;
  line-height: 1.15;
}

.section-lead {
  font-size: clamp(15px, 1.4vw, 18px);
  color: var(--slate);
  max-width: 640px;
  margin: 0;
}

.section-head { margin-bottom: 52px; }
.section-head.centered { text-align: center; }
.section-head.centered .section-lead { margin: 0 auto; }

/* Accent words in headings (solid brand colours, no gradient) */
.text-blue  { color: var(--blue); }
.text-green { color: var(--green); }

/* =========================================================
   4. Reveal-on-scroll (toggled by script.js)
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(var(--reveal-offset));
  transition: opacity var(--reveal-duration) var(--ease), transform var(--reveal-duration) var(--ease);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* =========================================================
   5. Brand mark (paw + wordmark)
   ========================================================= */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex: 0 0 auto;
}
.brand-paw { width: 40px; height: auto; transition: transform .4s var(--ease); }
.brand:hover .brand-paw { transform: rotate(-10deg) scale(1.05); }
.brand-word {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 24px;
  letter-spacing: -0.01em;
  line-height: 1;
}
.brand-word .w-blue  { color: var(--blue); }
.brand-word .w-green { color: var(--green); }

/* =========================================================
   6. Top navbar (+ mobile menu)
   ========================================================= */
.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  z-index: 90;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s var(--ease);
}
.top-nav.scrolled { box-shadow: var(--shadow-md); }

.nav-links {
  flex: 1;
  display: flex;
  justify-content: center;
  gap: 4px;
}
.nav-link {
  padding: 9px 15px;
  border-radius: 999px;
  color: var(--slate);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  transition: color .3s var(--ease), background .3s var(--ease);
}
.nav-link:hover { color: var(--navy); background: var(--cool-white); }
.nav-link.active { color: var(--blue); background: var(--soft-blue); }

/* "Demander une démo" + "Connexion" */
.nav-actions { flex: 0 0 auto; display: flex; gap: 10px; }
.nav-mobile-actions { display: none; }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--navy);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
.nav-open .nav-toggle .icon-open { display: none; }
.nav-open .nav-toggle .icon-close { display: block; }

/* =========================================================
   7. Scroll progress rail + back-to-top
   ========================================================= */
.scroll-rail {
  position: fixed;
  left: 22px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 85;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  opacity: 0;
  pointer-events: none;   /* the rail never captures clicks… */
  transition: opacity .4s var(--ease);
}
.scroll-rail.visible { opacity: 1; }
.scroll-rail.visible .scroll-top-btn { pointer-events: auto; }   /* …only the button does */

.scroll-rail-track {
  width: 4px;
  height: 150px;
  border-radius: 4px;
  background: var(--line);
  position: relative;
  overflow: hidden;
}
.scroll-rail-fill {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 0%;
  background: linear-gradient(180deg, var(--blue), var(--green));
  border-radius: 4px;
}
.scroll-top-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: var(--shadow-md);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform .3s var(--ease), border-color .3s var(--ease);
}
.scroll-top-btn svg { width: 18px; height: 18px; }
.scroll-top-btn:hover { border-color: var(--line-strong); transform: translateY(-3px); }

/* =========================================================
   8. Buttons (frosted glass) & chips
   Every button is a translucent "glass" pill: blurred backdrop,
   thin light border, inner top highlight and a soft sheen.
   ========================================================= */
.btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15px;
  padding: 14px 26px;
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease);
}
/* glossy sheen on the upper half */
.btn::before {
  content: '';
  position: absolute;
  inset: 0 0 50% 0;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.38), rgba(255, 255, 255, 0));
  opacity: .9;
  pointer-events: none;
  transition: opacity .3s var(--ease);
}
.btn:hover::before { opacity: 1; }
.btn:active { transform: translateY(0) scale(.98); }
.btn svg { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.btn:hover svg.icon-arrow { transform: translateX(3px); }
.btn-sm { padding: 10px 18px; font-size: 14px; }
.btn-block { width: 100%; }

/* tinted blue glass */
.btn-primary {
  color: var(--white);
  background: linear-gradient(180deg, rgba(36, 130, 240, 0.72), rgba(8, 104, 216, 0.82));
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    inset 0 -1px 0 rgba(4, 50, 110, 0.18),
    0 10px 28px -12px rgba(8, 104, 216, 0.65);
}
.btn-primary:hover {
  background: linear-gradient(180deg, rgba(36, 130, 240, 0.82), rgba(8, 104, 216, 0.9));
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    inset 0 -1px 0 rgba(4, 50, 110, 0.18),
    0 16px 34px -12px rgba(8, 104, 216, 0.7);
}

/* clear frosted glass */
.btn-secondary {
  color: var(--blue);
  background: rgba(255, 255, 255, 0.42);
  border-color: rgba(255, 255, 255, 0.75);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 0 0 1px rgba(8, 104, 216, 0.12),
    0 8px 24px -12px rgba(20, 43, 73, 0.28);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.62);
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 1),
    0 0 0 1px rgba(8, 104, 216, 0.22),
    0 12px 28px -12px rgba(20, 43, 73, 0.32);
}

/* glass on coloured backgrounds (call-to-action banner) */
.btn-light {
  color: var(--blue);
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(255, 255, 255, 0.9);
  box-shadow: inset 0 1px 0 #fff, 0 10px 28px -12px rgba(4, 40, 90, 0.45);
}
.btn-light:hover { background: rgba(255, 255, 255, 0.95); transform: translateY(-2px); }
.btn-outline-light {
  color: var(--white);
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.45);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.btn-outline-light::before { opacity: .45; }
.btn-outline-light:hover { background: rgba(255, 255, 255, 0.24); transform: translateY(-2px); }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue);
  background: var(--soft-blue);
  border-radius: 999px;
  padding: 6px 12px;
}
.chip svg { width: 15px; height: 15px; }
.chip-green  { color: #2F8F2B;            background: var(--mint); }
.chip-yellow { color: var(--yellow-text); background: var(--yellow-soft); }
.chip-orange { color: var(--orange-text); background: var(--orange-soft); }

/* =========================================================
   9. Cards & feature icons
   ========================================================= */
.card-grid { display: grid; gap: 22px; }
.features-grid { grid-template-columns: repeat(4, 1fr); }
.features-grid .card { padding: 26px 24px; }

.card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 30px;
  transition: transform .45s var(--ease), border-color .45s var(--ease), box-shadow .45s var(--ease);
}
.card:hover {
  transform: translateY(-6px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-lg);
}

.card-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  color: var(--icon, var(--blue));
  background: var(--icon-soft, var(--soft-blue));
  margin-bottom: 20px;
}
.card-icon svg { width: 26px; height: 26px; }
.icon-green  { --icon: var(--green);       --icon-soft: var(--mint); }
.icon-yellow { --icon: var(--yellow-text); --icon-soft: var(--yellow-soft); }
.icon-orange { --icon: var(--orange-text); --icon-soft: var(--orange-soft); }

.card-title {
  font-weight: 800;
  font-size: 20px;
  margin: 0 0 8px;
}
.card-text {
  font-size: 15px;
  color: var(--slate);
  margin: 0;
}
.card-bullets {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.card-bullets li {
  font-size: 14.5px;
  color: var(--ink);
  padding-left: 26px;
  position: relative;
}
.card-bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 3px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: var(--mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2342B83E' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 11px no-repeat;
}

/* Named product badge, e.g. "Animora", "SymbaAI" */
.ai-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 14px;
  font-size: 12.5px;
  font-weight: 700;
  color: #2F8F2B;
  background: var(--mint);
  border-radius: 999px;
  padding: 4px 10px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(8, 104, 216, 0.45);
  outline-offset: 2px;
}

/* =========================================================
   10. Image placeholders
   Each box shows a placeholder text; the HTML comment before it
   says which image goes there (full list in PLACEHOLDERS.md).
   Replace the <div class="img-ph"> with an <img class="ph-photo">.
   ========================================================= */
.img-ph {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 24px;
  text-align: center;
  border-radius: var(--radius-lg);
  border: 2px dashed rgba(8, 104, 216, 0.3);
  background:
    radial-gradient(circle at 20% 20%, rgba(66, 184, 62, 0.10), transparent 50%),
    var(--soft-blue);
  color: var(--slate);
}
.img-ph::before {
  content: '';
  width: 46px;
  height: 46px;
  opacity: .55;
  background: url("assets/logo/veternity-paw.png") center / contain no-repeat;
}
.img-ph-title {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 17px;
  letter-spacing: 0.04em;
  color: var(--navy);
}

/* The real image sits on top of the placeholder box. script.js adds
   .has-image once it loads (box styling removed), or removes the <img>
   if the file isn't in assets/images/ yet (placeholder text stays). */
.ph-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}
.img-ph.has-image { border: none; background: none; }
.img-ph.has-image::before,
.img-ph.has-image .img-ph-title { visibility: hidden; }

/* =========================================================
   11. Footer
   ========================================================= */
footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.72);
  margin-top: 40px;
}
.footer-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 64px 24px 36px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer-brand .brand-paw-tile {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
}
.footer-brand .brand-paw { width: 38px; }
.footer-brand .brand-word { font-size: 26px; }
.footer-brand .brand-word .w-blue { color: #5AA4F5; }  /* lighter blue for contrast on navy */
.footer-tagline { margin: 16px 0 0; font-size: 14.5px; max-width: 300px; }
.footer-col h4 {
  color: var(--white);
  font-size: 15px;
  font-weight: 800;
  margin: 6px 0 14px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.footer-col a { color: rgba(255, 255, 255, 0.72); text-decoration: none; font-size: 14.5px; }
.footer-col a:hover { color: var(--white); }
.footer-col li { font-size: 14.5px; }
.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 20px 24px 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13.5px;
}
.footer-bottom p { margin: 0; }

/* =========================================================
   12. Page hero (demo page)
   Markup: section.page-hero > .page-hero-content
   ========================================================= */
.page-hero {
  position: relative;
  min-height: 46vh;
  margin-top: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: linear-gradient(160deg, var(--soft-blue) 0%, var(--white) 55%, var(--mint) 100%);
  border-bottom: 1px solid var(--line);
}
/* organic blobs, echoing the hero artwork */
.page-hero::before,
.page-hero::after {
  content: '';
  position: absolute;
  border-radius: 46% 54% 60% 40% / 50% 45% 55% 50%;
  pointer-events: none;
}
.page-hero::before {
  width: 360px; height: 300px;
  left: -120px; bottom: -140px;
  background: rgba(8, 104, 216, 0.12);
}
.page-hero::after {
  width: 300px; height: 260px;
  right: -90px; top: -110px;
  background: rgba(66, 184, 62, 0.16);
}
.page-hero-content {
  position: relative;
  z-index: 1;
  padding: 64px 24px;
  max-width: 820px;
  margin: 0 auto;
}
.page-hero-content h1 {
  font-weight: 900;
  font-size: clamp(36px, 5.6vw, 60px);
  margin: 0 0 16px;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.page-hero-content p:not(.eyebrow) {
  font-size: clamp(16px, 1.5vw, 19px);
  color: var(--slate);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.7;
}

/* =========================================================
   13. Home page
   ========================================================= */

/* ---- Hero ----
   Pets: assets/images/hero-dog.png + hero-cat.png (transparent PNGs; swap in real photos
   with the same names). Decorations recreate the soft "blobs, leaves & paws" artwork style. */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0) 55%, rgba(255, 255, 255, 0.55) 64%, rgba(255, 255, 255, 0) 72%),
    linear-gradient(160deg, var(--soft-blue) 0%, #F7FAFC 52%, var(--mint) 100%);
}
.hero-pets { position: absolute; inset: 0; pointer-events: none; }

/* organic blobs (like the corners of the old artwork) */
.hero-blob {
  position: absolute;
  border-radius: 46% 54% 60% 40% / 50% 45% 55% 50%;
  animation: blob-morph 14s ease-in-out infinite alternate;
}
.hero-blob-1 { right: -6%; top: 12%; width: min(54vw, 780px); aspect-ratio: 1 / .86; background: rgba(8, 104, 216, 0.14); }
.hero-blob-2 { right: 34%; bottom: -14%; width: 380px; height: 320px; background: rgba(66, 184, 62, 0.18); animation-duration: 18s; }
.hero-blob-3 { left: -8%; bottom: -18%; width: 520px; height: 380px; background: rgba(8, 104, 216, 0.12); animation-duration: 16s; }
.hero-blob-4 { left: -6%; top: -12%; width: 300px; height: 240px; background: rgba(66, 184, 62, 0.20); animation-duration: 20s; }
.hero-blob-5 { right: -5%; bottom: -10%; width: 340px; height: 300px; background: rgba(66, 184, 62, 0.26); animation-duration: 15s; }
@keyframes blob-morph {
  0%   { border-radius: 46% 54% 60% 40% / 50% 45% 55% 50%; transform: translate(0, 0) rotate(0deg); }
  100% { border-radius: 58% 42% 44% 56% / 42% 58% 42% 58%; transform: translate(-14px, 10px) rotate(4deg); }
}

/* soft glow on the "floor" under the animals */
.hero-floor {
  position: absolute;
  right: 4%;
  bottom: -60px;
  width: min(56vw, 820px);
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0));
}

/* floating leaves and paw prints */
.hero-deco { position: absolute; display: block; animation: deco-float 7s ease-in-out infinite; }
.hero-deco svg { width: 100%; height: 100%; display: block; }
.hero-deco.leaf { color: #7BC96F; opacity: .8; }
.hero-deco.paw  { color: #8DBDF5; opacity: .85; }
.hero-deco:nth-of-type(2n) { animation-duration: 9s; animation-delay: -2s; }
.hero-deco:nth-of-type(3n) { animation-duration: 11s; animation-delay: -4s; }
@keyframes deco-float {
  0%, 100% { transform: translate(0, 0) rotate(var(--r, 0deg)); }
  50%      { transform: translate(6px, -16px) rotate(calc(var(--r, 0deg) + 10deg)); }
}

.hero-pet {
  position: absolute;
  bottom: 0;
  width: auto;
  max-width: none;
  filter: drop-shadow(0 24px 30px rgba(20, 43, 73, 0.22));
}
.hero-dog { right: 15%; height: min(58vh, 540px); }
.hero-cat { right: 4%;  height: min(36vh, 340px); animation: pet-breathe 5s ease-in-out infinite; transform-origin: bottom center; }
@keyframes pet-breathe {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.015); }
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: calc(var(--nav-height) + 60px) 24px 120px;
}
.hero-copy { max-width: 580px; }
.hero h1 {
  font-weight: 900;
  font-size: clamp(38px, 5.2vw, 64px);
  line-height: 1.07;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
}
.hero-sub {
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--ink);
  margin: 0 0 32px;
  max-width: 500px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 30px; }
.hero-chips .chip {
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(14px) saturate(180%);
  -webkit-backdrop-filter: blur(14px) saturate(180%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 6px 18px -10px rgba(20, 43, 73, 0.25);
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%);
  z-index: 2;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(14px) saturate(180%);
  -webkit-backdrop-filter: blur(14px) saturate(180%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 10px 26px -12px rgba(20, 43, 73, 0.35);
  animation: paw-bounce 2.2s ease-in-out infinite;
  transition: background .3s var(--ease), box-shadow .3s var(--ease);
}
.scroll-cue img { width: 30px; height: auto; transition: transform .35s var(--ease); }
.scroll-cue:hover { background: rgba(255, 255, 255, 0.7); animation-play-state: paused; }
.scroll-cue:hover img { transform: rotate(-12deg) scale(1.08); }
@keyframes paw-bounce {
  0%, 100% { transform: translate(-50%, 0); }
  50%      { transform: translate(-50%, 8px); }
}


/* ---- Mission + key figures ---- */
.mission { text-align: center; }
.mission .section-lead { max-width: 820px; margin: 0 auto; color: var(--ink); }
.mission-points {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 30px;
}
.mission-points .chip { font-size: 13px; padding: 8px 14px; }

/* ---- Platform tour: slider ---- */
.tour-slider {
  position: relative;
  border-radius: 32px;
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.tour-track {
  display: flex;
  transition: transform .6s var(--ease);
}
.tour-slide {
  flex: 0 0 100%;
  min-width: 100%;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: stretch;
  min-height: 480px;
}
.tour-slide-media {
  padding: 28px;
  display: flex;
}
.tour-slide-content {
  padding: 48px 56px 48px 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}
.tour-slide-content .chip { margin-bottom: 16px; }
.tour-slide-content .card-title { font-size: clamp(24px, 2.6vw, 32px); }
.tour-slide-content .card-text { font-size: 16px; }

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: var(--shadow-md);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color .3s var(--ease), border-color .3s var(--ease);
  z-index: 2;
}
.slider-arrow svg { width: 18px; height: 18px; }
.slider-arrow:hover { color: var(--blue); border-color: var(--line-strong); }
.slider-arrow.prev { left: 16px; }
.slider-arrow.next { right: 16px; }

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 0 0 26px;
}
.slider-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: var(--line);
  transition: width .3s var(--ease), background .3s var(--ease);
  padding: 0;
}
.slider-dot.active { width: 26px; border-radius: 6px; background: var(--blue); }

/* ---- Hardware teaser on the home page ---- */
.hardware-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 32px;
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.hardware-strip-media { display: flex; aspect-ratio: 4 / 3; }
.hardware-strip-content { padding: 12px 24px 12px 0; }
.hardware-strip-content .section-title { font-size: clamp(26px, 3vw, 36px); }
.hardware-strip-content .card-bullets { margin: 20px 0 28px; }

/* ---- Why clinics choose us: alternating split cards ---- */
.why-list { display: flex; flex-direction: column; gap: 28px; }
.why-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 32px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .45s var(--ease), border-color .45s var(--ease);
}
.why-card:hover { box-shadow: var(--shadow-lg); border-color: var(--line-strong); }
.why-card:nth-child(even) .why-card-media { order: 2; }
.why-card-media { padding: 18px; display: flex; min-height: 300px; }
.why-card-content {
  padding: 44px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}
.why-card-content .chip { margin-bottom: 14px; }
.why-card-content .card-title { font-size: clamp(22px, 2.4vw, 30px); }
.why-card-content .card-text { font-size: 16px; max-width: 460px; }

/* ---- FAQ accordion ---- */
.faq-container { max-width: 840px; }
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--white);
  overflow: hidden;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.faq-item:has(.faq-question[aria-expanded="true"]) {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
}
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  padding: 20px 22px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 17px;
  color: var(--navy);
}
.faq-toggle {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--soft-blue);
  transition: transform .35s var(--ease), background .3s var(--ease);
}
.faq-toggle svg { width: 18px; height: 18px; color: var(--blue); transition: color .3s var(--ease); }
.faq-question:hover .faq-toggle { transform: rotate(-12deg); }
.faq-question[aria-expanded="true"] .faq-toggle { transform: rotate(-30deg) scale(1.08); background: var(--mint); }
.faq-question[aria-expanded="true"] .faq-toggle svg { color: var(--green); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s var(--ease);
  padding: 0 22px;
}
.faq-answer p { margin: 0 0 20px; color: var(--slate); font-size: 15px; max-width: 680px; }
.faq-question[aria-expanded="true"] + .faq-answer { max-height: 260px; }

/* =========================================================
   14. Pricing
   ========================================================= */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  align-items: stretch;
}
.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 40px 30px 32px;
  box-shadow: var(--shadow-sm);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .45s var(--ease);
}
.price-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--line-strong); }
.price-card.featured {
  border: 2px solid var(--blue);
  box-shadow: var(--shadow-lg);
}
.price-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--blue);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
}
.price-name { margin: 0 0 18px; font-size: 22px; font-weight: 900; }
.price-amount {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-family: var(--font-heading);
  color: var(--navy);
}
.price-value { font-size: 56px; font-weight: 900; line-height: 1; letter-spacing: -0.02em; }
.price-currency { font-size: 20px; font-weight: 800; }
.price-period { margin: 8px 0 28px; font-size: 14px; color: var(--slate); }
.price-card .btn { margin-top: auto; }
.pricing-note { text-align: center; margin: 28px 0 0; font-size: 14px; color: var(--slate); }

/* =========================================================
   15. Call-to-action banner (blue → green, like the wordmark)
   ========================================================= */
.cta-banner { padding: 40px 24px 100px; }
.cta-inner {
  position: relative;
  max-width: calc(var(--max-width) - 48px);   /* align with .container content */
  margin: 0 auto;
  border-radius: 32px;
  padding: 52px 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
  color: rgba(255, 255, 255, 0.9);
  background: linear-gradient(115deg, var(--blue) 0%, #1677D2 50%, var(--green) 120%);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.cta-inner::after {
  content: '';
  position: absolute;
  right: -30px;
  bottom: -60px;
  width: 240px;
  height: 240px;
  opacity: .12;
  background: url("assets/logo/veternity-paw.png") center / contain no-repeat;
  filter: brightness(0) invert(1);
  transform: rotate(-15deg);
  pointer-events: none;
}
.cta-inner h2 { margin: 0 0 8px; font-size: clamp(26px, 3vw, 36px); font-weight: 900; color: var(--white); }
.cta-inner p { margin: 0; max-width: 560px; }
.cta-actions { position: relative; z-index: 1; display: flex; gap: 12px; flex-wrap: wrap; }

/* =========================================================
   16. Demo request page + forms
   ========================================================= */
.demo-section { padding: 70px 24px 100px; }
.demo-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 40px;
  align-items: start;
}
.demo-aside { position: sticky; top: calc(var(--nav-height) + 24px); display: flex; flex-direction: column; gap: 18px; }
.aside-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 26px;
}
.aside-card h2 { margin: 0 0 18px; font-size: 20px; font-weight: 900; }
.next-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 18px; counter-reset: next; }
.next-steps li { position: relative; padding-left: 46px; counter-increment: next; }
.next-steps li::before {
  content: counter(next);
  position: absolute;
  left: 0;
  top: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: var(--blue);
  background: var(--soft-blue);
}
.next-steps strong { display: block; color: var(--navy); font-size: 15.5px; }
.next-steps span { font-size: 14px; color: var(--slate); }
.aside-card.is-tinted { background: linear-gradient(150deg, var(--soft-blue), var(--mint)); border-color: transparent; }
.aside-card.is-tinted p { margin: 0; font-size: 14.5px; }

.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 38px 36px;
}
.form-card .card-title { font-size: 24px; }
.form-card > .card-text { margin-bottom: 26px; }
.form-fieldset { border: none; margin: 0 0 10px; padding: 0; }
.form-fieldset legend {
  width: 100%;
  padding: 0 0 12px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 16px;
  color: var(--navy);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 18px; }
.form-label {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 7px;
}
.req { color: var(--orange-text); font-weight: 700; }
.form-input {
  width: 100%;
  padding: 13px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--line);
  background: var(--cool-white);
  color: var(--navy);
  font-family: var(--font-body);
  font-size: 15px;
  transition: border-color .25s var(--ease), background .25s var(--ease), box-shadow .25s var(--ease);
}
.form-input::placeholder { color: #9AA7B8; }
.form-input:focus {
  outline: none;
  border-color: var(--blue);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(8, 104, 216, 0.12);
}
select.form-input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 18px;
  padding-right: 40px;
}
.form-textarea { min-height: 130px; resize: vertical; }
.form-hint { font-size: 12.5px; color: var(--slate); margin-top: 6px; display: block; text-align: right; }

/* Cabinet / Clinique choice tiles */
.choice-group { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice-box {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--cool-white);
  font-weight: 700;
  color: var(--navy);
  transition: border-color .25s var(--ease), background .25s var(--ease);
}
.choice-box small { display: block; font-weight: 500; font-size: 12.5px; color: var(--slate); }
.choice-box svg { flex: none; width: 24px; height: 24px; color: var(--slate); }
.choice:hover .choice-box { border-color: var(--line-strong); }
.choice input:checked + .choice-box { border-color: var(--blue); background: var(--soft-blue); }
.choice input:checked + .choice-box svg { color: var(--blue); }
.choice input:focus-visible + .choice-box { outline: 3px solid rgba(8, 104, 216, 0.45); outline-offset: 2px; }

.form-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--slate); margin: 4px 0 22px; }
.form-consent input { margin-top: 3px; width: 17px; height: 17px; accent-color: var(--blue); flex: none; }
.submit-btn:disabled { opacity: .7; cursor: wait; transform: none; }
.form-message {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  display: none;
}
.form-message.success { display: block; background: var(--mint); border: 1px solid rgba(66, 184, 62, 0.4); color: #23781F; }
.form-message.error   { display: block; background: var(--orange-soft); border: 1px solid rgba(242, 140, 56, 0.45); color: #9A4A0C; }

/* =========================================================
   17. Responsive
   ========================================================= */
@media (max-width: 1320px) {
  .nav-link { padding: 8px 10px; font-size: 14px; }
  .nav-links { gap: 2px; }
}

@media (max-width: 1100px) {
  /* mobile menu */
  .nav-toggle { display: inline-flex; }
  .nav-actions { display: none; }
  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 2px;
    padding: 12px 20px 20px;
    max-height: calc(100vh - var(--nav-height));
    overflow-y: auto;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
  }
  .nav-open .nav-links { opacity: 1; transform: none; visibility: visible; }
  .nav-link { padding: 11px 16px; font-size: 16px; border-radius: 12px; }
  .nav-mobile-actions { display: grid; gap: 10px; margin-top: 8px; }
  .nav-mobile-actions .btn { padding: 12px 10px; font-size: 14px; white-space: normal; text-align: center; min-width: 0; }
}

@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .demo-grid { grid-template-columns: 1fr; }
  .demo-aside { position: static; order: 2; }
}

@media (max-width: 960px) {
  .scroll-rail { left: auto; right: 16px; top: auto; bottom: 22px; transform: none; }
  .scroll-rail-track { display: none; }

  /* hero: text on top, animals in their own space underneath */
  .hero { align-items: flex-start; }
  .hero-inner { padding-top: calc(var(--nav-height) + 36px); padding-bottom: min(36vh, 320px); }
  .hero-floor { right: -10%; width: 110vw; }
  .hero-deco { display: none; }   /* they would sit on top of the text on small screens */
  .hero-dog { right: 36%; height: min(31vh, 280px); }
  .hero-cat { right: 8%;  height: min(21vh, 190px); }
  .hero-blob-1 { top: auto; bottom: -6%; width: 90vw; }

  .tour-slide { grid-template-columns: 1fr; min-height: auto; }
  .tour-slide-media { padding: 18px 18px 0; min-height: 260px; }
  .tour-slide-content { padding: 26px 26px 34px; }
  .slider-arrow { top: 150px; width: 40px; height: 40px; }
  .slider-arrow.prev { left: 26px; }
  .slider-arrow.next { right: 26px; }

  .hardware-strip { grid-template-columns: 1fr; gap: 24px; padding: 18px; }
  .hardware-strip-content { padding: 0 10px 14px; }

  .why-card { grid-template-columns: 1fr; }
  .why-card:nth-child(even) .why-card-media { order: 0; }
  .why-card-media { min-height: 240px; padding: 14px 14px 0; }
  .why-card-content { padding: 30px 28px 36px; }

  .pricing-grid { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto; }

  .cta-inner { padding: 38px 30px; }
}

@media (max-width: 768px) {
  :root { --nav-height: 62px; }
  .top-nav { padding: 0 16px; }
  .container { padding: 80px 20px; }
  .features-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .form-card { padding: 30px 24px; }
}

@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .brand-word { font-size: 21px; }
  .brand-paw { width: 34px; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; align-items: stretch; }
  .form-card { padding: 26px 18px; }
  .choice-group { grid-template-columns: 1fr; }
  .page-hero { min-height: 36vh; }
  .demo-section { padding-left: 16px; padding-right: 16px; }
  .cta-actions { width: 100%; }
  .cta-actions .btn { flex: 1; }
}

/* =========================================================
   18. Reduced motion
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-cue,
  .hero-blob,
  .hero-deco,
  .hero-cat { animation: none; }
  .card:hover,
  .price-card:hover,
  .btn:hover,
  .btn:active { transform: none; }
}
