/* ============================================================
   ApexHQ Vet — shared brand foundation
   White · minimal · colourful · premium SaaS
   ============================================================ */

:root {
  /* Ink + neutrals */
  --ink: #0F1F35;          /* navy — headings, strong text */
  --ink-2: #1E3252;
  --body: #475569;         /* slate — body text */
  --muted: #64748B;
  --subtle: #94A3B8;
  --line: #E7ECF3;
  --line-2: #EEF2F8;
  --paper: #FFFFFF;
  --paper-2: #F7FAFC;      /* off-white sections */
  --paper-3: #F1F5FA;

  /* Colourful accents — pillar-coded */
  --teal: #0EA5A5;         /* primary brand teal */
  --teal-bright: #14C8B8;
  --mint: #2DD4BF;
  --teal-ink: #0B6E6E;
  --blue: #2563EB;         /* Booking */
  --blue-ink: #1F4E79;     /* product blue */
  --violet: #7C3AED;       /* AI */
  --coral: #FB6F92;        /* Marketplace */
  --amber: #F59E0B;
  --green: #10B981;        /* live status */

  /* Tints */
  --teal-tint: #E6FBF6;
  --blue-tint: #EAF1FE;
  --violet-tint: #F1EBFE;
  --coral-tint: #FFEEF2;
  --amber-tint: #FEF4E3;
  --green-tint: #E7F8F0;

  /* Geometry */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 30px;
  --container: 1200px;

  /* Shadows — soft, premium */
  --sh-sm: 0 1px 2px rgba(15,31,53,.05), 0 1px 4px rgba(15,31,53,.04);
  --sh-md: 0 2px 6px -2px rgba(15,31,53,.06), 0 10px 24px -8px rgba(15,31,53,.09);
  --sh-lg: 0 2px 8px -4px rgba(15,31,53,.07), 0 24px 48px -16px rgba(15,31,53,.14);
  --sh-teal: 0 6px 20px -6px rgba(14,165,165,.32);
}

::selection { background: var(--teal-tint); color: var(--teal-ink); }

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Hanken Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--body);
  background: var(--paper);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'ss01';
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

h1, h2, h3, h4 {
  color: var(--ink);
  line-height: 1.06;
  letter-spacing: -0.03em;
  font-weight: 800;
  text-wrap: balance;
}
h3, h4 { line-height: 1.2; letter-spacing: -0.02em; }
p { text-wrap: pretty; }

:focus-visible { outline: 2.5px solid var(--teal); outline-offset: 2px; border-radius: 4px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 28px; }
.container-wide { max-width: 1320px; }

/* ---------- Eyebrow / labels ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.11em;
  text-transform: uppercase; color: var(--teal-ink);
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--teal); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-size: 15px; font-weight: 700; letter-spacing: -0.01em;
  padding: 12px 22px; border-radius: 12px; border: 1.5px solid transparent;
  transition: transform .16s cubic-bezier(.4,0,.2,1), box-shadow .16s, background .16s, color .16s, border-color .16s;
  white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; }
.btn-primary {
  background: var(--ink); color: #fff;
  box-shadow: 0 1px 2px rgba(15,31,53,.2), 0 10px 22px -8px rgba(15,31,53,.4);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 2px 4px rgba(15,31,53,.22), 0 14px 26px -10px rgba(15,31,53,.45); }
.btn-teal {
  background: linear-gradient(180deg, var(--teal-bright), var(--teal));
  color: #fff; box-shadow: var(--sh-teal);
}
.btn-teal:hover { transform: translateY(-1px); box-shadow: 0 10px 26px -6px rgba(14,165,165,.45); }
.btn-ghost {
  background: #fff; color: var(--ink); border-color: var(--line);
  box-shadow: var(--sh-sm);
}
.btn-ghost:hover { border-color: var(--teal); color: var(--teal-ink); transform: translateY(-1px); box-shadow: var(--sh-md); }
.btn-lg { padding: 15px 28px; font-size: 16px; border-radius: 13px; }
.btn-white { background: #fff; color: var(--ink); }
.btn-white:hover { transform: translateY(-1px); box-shadow: var(--sh-lg); }

/* ---------- Status badges ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase;
  padding: 5px 11px 5px 9px; border-radius: 999px; white-space: nowrap;
}
.badge .pulse { width: 7px; height: 7px; border-radius: 50%; position: relative; }
.badge-live { background: var(--green-tint); color: #0a7d54; }
.badge-live .pulse { background: var(--green); box-shadow: 0 0 0 0 rgba(16,185,129,.5); animation: pulse 2s infinite; }
.badge-soon { background: var(--amber-tint); color: #b45309; }
.badge-soon .pulse { background: var(--amber); }
.badge-roadmap { background: var(--paper-3); color: var(--muted); }
.badge-roadmap .pulse { background: var(--subtle); }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(16,185,129,.5); }
  70% { box-shadow: 0 0 0 7px rgba(16,185,129,0); }
  100% { box-shadow: 0 0 0 0 rgba(16,185,129,0); }
}

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.nav.scrolled { border-bottom-color: var(--line); box-shadow: 0 1px 0 rgba(15,31,53,.02), 0 8px 24px -16px rgba(15,31,53,.18); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 24px; }
.nav-logo { display: flex; align-items: center; height: 30px; }
.nav-logo img { height: 25px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-link {
  position: relative; font-size: 14.5px; font-weight: 650; color: var(--ink-2);
  padding: 8px 12px; border-radius: 9px; transition: color .15s, background .15s;
  display: inline-flex; align-items: center; gap: 6px;
}
.nav-link:hover { color: var(--ink); background: var(--paper-3); }
.nav-link.active { color: var(--teal-ink); }
.nav-link.active::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; border-radius: 2px; background: var(--teal); }
.nav-cta { display: flex; align-items: center; gap: 10px; }

/* Dropdown */
.nav-dd { position: relative; }
.nav-dd-panel {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%) translateY(8px);
  width: 340px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--sh-lg); padding: 10px; opacity: 0; visibility: hidden;
  transition: opacity .2s, transform .2s, visibility .2s;
}
.nav-dd:hover .nav-dd-panel, .nav-dd.open .nav-dd-panel { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.dd-item { display: flex; gap: 12px; padding: 12px; border-radius: 14px; transition: background .15s; }
.dd-item:hover { background: var(--paper-2); }
.dd-ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; flex-shrink: 0; }
.dd-ic svg { width: 19px; height: 19px; }
.dd-title { font-size: 14.5px; font-weight: 700; color: var(--ink); display: flex; align-items: center; gap: 8px; }
.dd-desc { font-size: 12.5px; color: var(--muted); line-height: 1.45; margin-top: 2px; }

/* Mobile nav */
.nav-burger { display: none; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 11px; background: #fff; align-items: center; justify-content: center; }
.nav-burger svg { width: 20px; height: 20px; }
.mobile-menu { display: none; }

@media (max-width: 940px) {
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .nav-burger { display: flex; }
  .mobile-menu {
    display: block; position: fixed; inset: 68px 0 0 0; z-index: 99;
    background: #fff; padding: 24px 28px; transform: translateX(100%);
    transition: transform .3s cubic-bezier(.4,0,.2,1); overflow-y: auto;
  }
  .mobile-menu.open { transform: translateX(0); }
  .mobile-menu a { display: block; font-size: 18px; font-weight: 700; color: var(--ink); padding: 16px 0; border-bottom: 1px solid var(--line-2); }
  .mobile-menu .btn { width: 100%; margin-top: 20px; }
}

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: #cdd7e6; padding: 72px 0 36px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer h5 { color: #fff; font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 18px; }
.footer-links { display: flex; flex-direction: column; gap: 11px; }
.footer-links a { font-size: 14.5px; color: #9fb0c6; transition: color .15s; }
.footer-links a:hover { color: var(--mint); }
.footer-logo img { height: 26px; width: auto; margin-bottom: 18px; }
.footer-tag { font-size: 14px; color: #9fb0c6; max-width: 280px; line-height: 1.6; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 52px; padding-top: 28px; border-top: 1px solid rgba(255,255,255,.1); font-size: 13px; color: #7e8ea6; }
.footer-bottom .fb-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-bottom a:hover { color: var(--mint); }
.trust-pill { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: #9fb0c6; }
.trust-pill svg { width: 14px; height: 14px; color: var(--mint); }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } .footer-logo { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s cubic-bezier(.22,1,.36,1), transform .7s cubic-bezier(.22,1,.36,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .08s; }
.reveal[data-d="2"] { transition-delay: .16s; }
.reveal[data-d="3"] { transition-delay: .24s; }
.reveal[data-d="4"] { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Cookie banner ---------- */
.cookie {
  position: fixed; left: 20px; bottom: 20px; z-index: 200; max-width: 420px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--sh-lg); padding: 20px 22px; transform: translateY(140%);
  transition: transform .5s cubic-bezier(.22,1,.36,1);
}
.cookie.show { transform: none; }
.cookie p { font-size: 13px; color: var(--body); line-height: 1.55; }
.cookie .cookie-btns { display: flex; gap: 9px; margin-top: 14px; }
.cookie .btn { padding: 9px 16px; font-size: 13px; }
@media (max-width: 520px) { .cookie { left: 12px; right: 12px; bottom: 12px; max-width: none; } }

/* ---------- Product frame chrome (shared) ---------- */
.browser {
  border-radius: 14px; overflow: hidden; background: #fff;
  border: 1px solid var(--line); box-shadow: var(--sh-lg);
}
.browser-bar { display: flex; align-items: center; gap: 8px; padding: 11px 14px; background: #fbfcfe; border-bottom: 1px solid var(--line-2); }
.browser-dots { display: flex; gap: 6px; }
.browser-dots i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.browser-url { flex: 1; margin-left: 8px; background: #fff; border: 1px solid var(--line); border-radius: 7px; padding: 5px 12px; font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 7px; }
.browser-url svg { width: 12px; height: 12px; color: var(--green); }

.phone {
  width: 260px; border-radius: 38px; background: #0F1F35; padding: 10px;
  box-shadow: var(--sh-lg); border: 1px solid rgba(255,255,255,.1);
}
.phone-screen { border-radius: 30px; overflow: hidden; background: #fff; position: relative; }
.phone-notch { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 110px; height: 26px; background: #0F1F35; border-radius: 0 0 16px 16px; z-index: 5; }

/* placeholder image box */
.ph {
  background:
    repeating-linear-gradient(135deg, #eef2f8 0 14px, #e9eef6 14px 28px);
  color: var(--subtle); display: grid; place-items: center; text-align: center;
  font-size: 12.5px; font-weight: 600; letter-spacing: .02em; border-radius: var(--r-md);
  border: 1px dashed #cfd9e8;
}
.ph span { padding: 8px 14px; }
