/* ============================================================
   Pet365 — Launch website (multi-audience)
   Shared styles. Brand tokens mirror /colors_and_type.css
   ============================================================ */
@import url('../fonts.css');

:root {
  --blue: #418AEB;
  --blue-700: #2F6FD0;
  --blue-050: #EAF2FD;
  --indigo: #717BBC;       /* Membership accent */
  --indigo-050: #EEF0F8;
  --green: #17B26A;        /* Consumer / savings accent */
  --green-050: #E7F7EF;
  --navy: #293056;
  --body: rgba(41,48,86,.62);
  --muted: rgba(41,48,86,.45);
  --tint: #F5F9FE;
  --line: #E6EAF2;
  --amber: #FF9800;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --shadow-sm: 0 2px 10px rgba(41,48,86,.06);
  --shadow-md: 0 10px 30px rgba(41,48,86,.09);
  --shadow-lg: 0 24px 60px rgba(41,48,86,.14);
  --ease: cubic-bezier(.22,1,.36,1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; color: var(--navy); background: #fff; -webkit-font-smoothing: antialiased; line-height: 1.6; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 32px; }
.narrow { max-width: 880px; }

/* ---------- type ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--blue); margin-bottom: 16px; }
h1, h2, h3, h4 { color: var(--navy); letter-spacing: -.02em; line-height: 1.12; }
.display { font-size: clamp(32px, 5.4vw, 40px); font-weight: 600; }
h2.sec { font-size: clamp(30px, 3.6vw, 38px); font-weight: 600; line-height: 1.15; }
h3 { font-size: 22px; font-weight: 600; }
.lead { font-size: clamp(17px, 1.6vw, 21px); color: var(--body); font-weight: 400; }
.body { font-size: 16px; color: var(--body); }
p + p { margin-top: 14px; }
.center { text-align: center; }

/* ---------- buttons ---------- */
.btn { font-family: inherit; font-size: 16px; font-weight: 600; border-radius: 999px; padding: 14px 26px; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; border: 1.5px solid transparent; transition: all .2s var(--ease); white-space: nowrap; }
.btn i { font-size: 19px; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-700); transform: translateY(-1px); }
.btn-primary:active { transform: scale(.98); }
.btn-ghost { background: #fff; color: var(--blue); border-color: var(--blue); }
.btn-ghost:hover { background: var(--blue-050); }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--tint); }
.btn-sm { padding: 10px 18px; font-size: 14px; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.88); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 28px; height: 78px; }
.brand-logo img { height: 34px; }
.main-nav { display: flex; gap: 28px; margin-left: 12px; }
.main-nav a { font-size: 15px; font-weight: 500; color: rgba(41,48,86,.72); transition: color .15s; }
.main-nav a:hover, .main-nav a.active { color: var(--blue); }
.header-cta { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.header-cta .login { font-size: 15px; font-weight: 600; color: var(--navy); white-space: nowrap; }
.nav-toggle { display: none; background: none; border: none; font-size: 26px; color: var(--navy); cursor: pointer; margin-left: auto; }

/* ---------- generic section ---------- */
section { padding: 84px 0; }
.tint { background: var(--tint); }
.navy-bg { background: var(--navy); color: #fff; }
.navy-bg h1, .navy-bg h2, .navy-bg h3 { color: #fff; }
.sec-head { max-width: 720px; margin: 0 auto 52px; text-align: center; }
.sec-head .lead { margin-top: 14px; }

/* ---------- chips / icon ---------- */
.chip { width: 52px; height: 52px; border-radius: 14px; background: var(--blue-050); color: var(--blue); font-size: 25px; display: inline-flex; align-items: center; justify-content: center; }
.chip.green { background: var(--green-050); color: var(--green); }
.chip.indigo { background: var(--indigo-050); color: var(--indigo); }

/* ---------- check list ---------- */
.checks { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.checks li { display: flex; gap: 12px; font-size: 16px; color: var(--body); }
.checks li i { color: var(--green); font-size: 22px; flex: 0 0 auto; margin-top: 1px; }
.checks li b { color: var(--navy); font-weight: 600; }

/* ---------- footer ---------- */
.site-footer { background: var(--navy); color: rgba(255,255,255,.7); padding: 64px 0 32px; }
.footer-grid { display: flex; gap: 36px; align-items: flex-start; }
.footer-grid > div:first-child { flex: 1; }
.site-footer .logo { height: 32px; margin-bottom: 16px; filter: brightness(0) invert(1); }
.site-footer h5 { color: #fff; font-size: 14px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.site-footer a { color: rgba(255,255,255,.7); font-size: 15px; }
.site-footer a:hover { color: #fff; }
.footer-tag { font-size: 15px; line-height: 1.6; max-width: 280px; }
.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.footer-social a { width: 38px; height: 38px; border-radius: 999px; background: rgba(255,255,255,.1); display: flex; align-items: center; justify-content: center; font-size: 18px; color: #fff; }
.footer-social a:hover { background: var(--blue); }
.footer-legal { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12); font-size: 13px; color: rgba(255,255,255,.5); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ---------- reveal animation ----------
   Intentionally NO opacity/visibility gating: content must always be visible,
   including in offscreen/throttled renders (screenshots, embeds) where CSS
   transitions freeze mid-flight. A subtle one-shot fade is applied only for
   users who haven't requested reduced motion, and it ends at full opacity. */
@media (prefers-reduced-motion: no-preference) {
  .reveal-ready .reveal.in { animation: p365-fade-up .6s var(--ease) both; }
}
@keyframes p365-fade-up {
  from { transform: translateY(16px); }
  to   { transform: none; }
}

@media (max-width: 900px) {
  .main-nav, .header-cta .login { display: none; }
  .nav-toggle { display: block; }
  .header-cta { margin-left: auto; }
  .footer-grid { flex-wrap: wrap; }
  .footer-grid > div:first-child { flex: 1 1 100%; }
  section { padding: 60px 0; }
  .main-nav.open { display: flex; position: absolute; top: 78px; left: 0; right: 0; flex-direction: column; gap: 0; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md); margin: 0; padding: 8px 0; }
  .main-nav.open a { padding: 14px 32px; }
}
@media (max-width: 560px) {
  .container { padding: 0 20px; }
  .footer-grid { flex-direction: column; }
}

/* ---------- legal / T&C content ---------- */
.legal-content { padding-top: 16px; padding-bottom: 80px; }

/* ---------- stripe buy button clip (hides logo + product details) ---------- */
/* translateY value = height of logo box + product name + price + billing rows  */
/* height value    = height of button row + payment methods row only            */
/* Adjust both values if Stripe changes their component layout.                 */
.stripe-clip { overflow: hidden; height: 145px; }
.stripe-clip stripe-buy-button { display: block; transform: translateY(-330px); }
.legal-content h2 { font-size: 1.15rem; font-weight: 700; color: var(--ink); margin: 40px 0 10px; padding-top: 24px; border-top: 1px solid var(--line); }
.legal-content h2:first-child { margin-top: 0; border-top: none; padding-top: 0; }
.legal-content h3 { font-size: 1rem; font-weight: 600; color: var(--ink); margin: 24px 0 8px; }
.legal-content p { font-size: 15px; line-height: 1.75; color: var(--body); margin: 0 0 10px; }
.legal-content ul { margin: 8px 0 12px 20px; padding: 0; }
.legal-content ul li { font-size: 15px; line-height: 1.75; color: var(--body); margin-bottom: 4px; }
