/* ==========================================================================
   B-pets Gift Card — core stylesheet
   ========================================================================== */


/* ---------- design tokens ---------- */
:root {
  --brand-50:  #FFF6EF;
  --brand-100: #FFE9D8;
  --brand-200: #FFD3B0;
  --brand-400: #FF9A48;
  --brand-500: #FB7A17;
  --brand-600: #ED5F0A;
  --brand-700: #C94A05;

  --ink-900: #0E131E;
  --ink-800: #1A2230;
  --ink-600: #4A5568;
  --ink-500: #6B7280;
  --ink-300: #A8B0BC;

  --line: #ECEFF4;
  --bg: #FFFFFF;
  --bg-soft: #FAFAFB;

  --r-xl: 32px;
  --r-lg: 22px;
  --r-md: 14px;

  --sh-sm: 0 1px 2px rgba(16, 24, 40, .06);
  --sh-md: 0 14px 34px -16px rgba(16, 24, 40, .20);
  --sh-lg: 0 44px 90px -40px rgba(201, 74, 5, .45);

  --header-h: 78px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-900);
  font-family: "SFProDisplayRegular", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; border: 0; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, p { margin: 0; }
button { font: inherit; cursor: pointer; border: 0; background: none; }

::selection { background: var(--brand-200); color: var(--ink-900); }

/* ---------- layout ---------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 96px 0; }
.section-soft { background: var(--bg-soft); }
.section-tight { padding: 72px 0; }

.section-head { max-width: 660px; margin: 0 auto 56px; text-align: center; }

.eyebrow {
  display: inline-block;
  font-family: "SFProDisplayBold", sans-serif;
  font-size: 12.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--brand-600);
  background: var(--brand-50);
  border: 1px solid var(--brand-100);
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.section-head h2 {
  font-family: "SFProDisplayBold", sans-serif;
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.15;
  letter-spacing: -.02em;
  color: var(--ink-900);
}

.section-head p {
  margin-top: 18px;
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-500);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: "SFProDisplaySemibold", sans-serif;
  font-size: 16px;
  line-height: 1;
  padding: 15px 28px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease),
              background-color .25s var(--ease), color .25s var(--ease),
              border-color .25s var(--ease);
  white-space: nowrap;
}
.btn-sm { padding: 11px 20px; font-size: 14.5px; }
.btn-lg { padding: 18px 34px; font-size: 17px; }

.btn-primary {
  background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
  color: #fff;
  box-shadow: 0 12px 26px -12px rgba(237, 95, 10, .75);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 20px 34px -14px rgba(237, 95, 10, .8); }

.btn-white { background: #fff; color: var(--ink-900); box-shadow: 0 16px 34px -18px rgba(0, 0, 0, .55); }
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 24px 44px -18px rgba(0, 0, 0, .55); }

.btn-ghost { background: rgba(255, 255, 255, .10); border-color: rgba(255, 255, 255, .42); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .20); transform: translateY(-2px); }

.btn-outline { background: #fff; border-color: var(--line); color: var(--ink-800); box-shadow: var(--sh-sm); }
.btn-outline:hover { border-color: var(--brand-200); color: var(--brand-600); transform: translateY(-2px); }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .82);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid rgba(16, 24, 40, .06);
  transition: box-shadow .3s var(--ease), background-color .3s var(--ease);
}
.site-header.is-scrolled { box-shadow: 0 10px 30px -18px rgba(16, 24, 40, .28); background: rgba(255, 255, 255, .94); }

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand img { height: 42px; width: auto; }

.nav { display: flex; align-items: center; gap: 6px; }

.nav-link {
  position: relative;
  font-family: "SFProDisplayMedium", sans-serif;
  font-size: 15.5px;
  color: var(--ink-600);
  padding: 10px 16px;
  border-radius: 999px;
  transition: color .22s var(--ease), background-color .22s var(--ease);
}
.nav-link:hover { color: var(--brand-600); background: var(--brand-50); }
.nav-link.is-active { color: var(--ink-900); font-family: "SFProDisplaySemibold", sans-serif; }

.nav .nav-cta { margin-left: 12px; }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  background: #fff;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink-800);
  transition: transform .25s var(--ease), opacity .25s var(--ease);
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 68px 0 96px;
  background: linear-gradient(135deg, #FF9433 0%, #F2600F 48%, #BF4404 100%);
  isolation: isolate;
}
.hero::before,
.hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
}
.hero::before {
  width: 720px; height: 720px;
  top: -280px; right: -160px;
  background: radial-gradient(circle, rgba(255, 214, 150, .55), transparent 66%);
}
.hero::after {
  width: 640px; height: 640px;
  bottom: -300px; left: -180px;
  background: radial-gradient(circle, rgba(255, 138, 43, .55), transparent 68%);
}
.hero-dots {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgba(255, 255, 255, .22) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: linear-gradient(120deg, #000 0%, transparent 62%);
  mask-image: linear-gradient(120deg, #000 0%, transparent 62%);
  opacity: .5;
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: .96fr 1.04fr;
  gap: 48px;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .32);
  color: #fff;
  font-family: "SFProDisplaySemibold", sans-serif;
  font-size: 13px;
  letter-spacing: .06em;
  text-transform: uppercase;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.badge .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #9CFF8A;
  box-shadow: 0 0 0 4px rgba(156, 255, 138, .25);
}

.hero h1 {
  margin-top: 26px;
  font-family: "SFProDisplayBold", sans-serif;
  font-size: clamp(34px, 4.3vw, 58px);
  line-height: 1.08;
  letter-spacing: -.025em;
  color: #fff;
  text-shadow: 0 2px 20px rgba(120, 40, 0, .18);
}
.hero h1 .accent {
  position: relative;
  white-space: nowrap;
}
.hero h1 .accent::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: .06em;
  height: .30em;
  background: rgba(255, 214, 150, .42);
  border-radius: 999px;
  z-index: -1;
}

.hero-tagline {
  margin-top: 20px;
  font-family: "SFProDisplaySemibold", sans-serif;
  font-size: clamp(17px, 1.7vw, 22px);
  letter-spacing: .06em;
  color: #FFE6CC;
}

.hero-text {
  margin-top: 20px;
  max-width: 540px;
  font-size: 16.5px;
  line-height: 1.75;
  color: rgba(255, 255, 255, .86);
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  margin-top: 52px;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, .25);
}
.hero-stats li strong {
  display: block;
  font-family: "SFProDisplayBold", sans-serif;
  font-size: 32px;
  line-height: 1.15;
  color: #fff;
  letter-spacing: -.02em;
}
.hero-stats li span {
  display: block;
  margin-top: 4px;
  font-size: 13.5px;
  letter-spacing: .04em;
  color: rgba(255, 255, 255, .74);
}

.hero-visual { position: relative; }
.hero-visual img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 44px 58px rgba(88, 26, 0, .38));
}
.hero-visual::before {
  content: '';
  position: absolute;
  inset: 4% 2% 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 233, 196, .42), transparent 66%);
  filter: blur(26px);
  z-index: -1;
}

/* ---------- card banner ---------- */
.banner-card {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: 0 40px 80px -44px rgba(201, 74, 5, .55);
  border: 1px solid rgba(255, 255, 255, .6);
}
.banner-card img { width: 100%; height: auto; display: block; }

/* ---------- feature cards ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.feature {
  position: relative;
  padding: 38px 32px 34px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.feature:hover { transform: translateY(-6px); box-shadow: var(--sh-md); border-color: var(--brand-100); }

.feature .ico {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(140deg, var(--brand-50), var(--brand-100));
  border: 1px solid var(--brand-100);
  color: var(--brand-600);
  margin-bottom: 22px;
}
.feature .ico svg { width: 27px; height: 27px; }

.feature h3 {
  font-family: "SFProDisplaySemibold", sans-serif;
  font-size: 20px;
  letter-spacing: -.01em;
  color: var(--ink-900);
}
.feature p {
  margin-top: 12px;
  font-size: 15.5px;
  line-height: 1.72;
  color: var(--ink-500);
}

/* ---------- steps ---------- */
.steps { counter-reset: step; }

.step {
  position: relative;
  padding: 34px 30px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
.step .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: linear-gradient(140deg, var(--brand-500), var(--brand-700));
  color: #fff;
  font-family: "SFProDisplayBold", sans-serif;
  font-size: 18px;
  box-shadow: 0 12px 22px -12px rgba(237, 95, 10, .8);
  margin-bottom: 20px;
}
.step h3 {
  font-family: "SFProDisplaySemibold", sans-serif;
  font-size: 19px;
  color: var(--ink-900);
}
.step p { margin-top: 10px; font-size: 15.5px; line-height: 1.7; color: var(--ink-500); }

/* ---------- cta band ---------- */
.cta-band {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-xl);
  padding: 66px 60px;
  background: linear-gradient(130deg, #FF9033 0%, #ED5F0A 55%, #B84004 100%);
  box-shadow: var(--sh-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  isolation: isolate;
}
.cta-band::before {
  content: '';
  position: absolute;
  width: 520px; height: 520px;
  top: -240px; right: -120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 226, 178, .5), transparent 68%);
  z-index: -1;
}
.cta-band h2 {
  font-family: "SFProDisplayBold", sans-serif;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.15;
  letter-spacing: -.02em;
  color: #fff;
}
.cta-band p {
  margin-top: 14px;
  max-width: 520px;
  font-size: 16.5px;
  line-height: 1.7;
  color: rgba(255, 255, 255, .86);
}
.cta-band .cta-actions { display: flex; flex-wrap: wrap; gap: 14px; flex-shrink: 0; }

/* ---------- footer ---------- */
.site-footer {
  margin-top: 0;
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  padding-top: 64px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.3fr;
  gap: 48px;
  padding-bottom: 48px;
}
.footer-brand img { height: 40px; width: auto; }
.footer-brand p {
  margin-top: 20px;
  max-width: 380px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink-500);
}

.footer-col h4 {
  font-family: "SFProDisplaySemibold", sans-serif;
  font-size: 15px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink-900);
  margin-bottom: 18px;
}
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul li a,
.footer-col ul li span {
  font-size: 15px;
  color: var(--ink-500);
  transition: color .2s var(--ease);
}
.footer-col ul li a:hover { color: var(--brand-600); }
.footer-col .k {
  display: block;
  font-size: 12.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-300);
  margin-bottom: 2px;
}

.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 24px 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--ink-300);
}
.footer-bottom a { color: var(--ink-500); }
.footer-bottom a:hover { color: var(--brand-600); }

/* ---------- privacy page ---------- */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 64px;
  background: linear-gradient(135deg, #FF9433 0%, #F2600F 52%, #C24A05 100%);
  color: #fff;
  isolation: isolate;
}
.page-hero::after {
  content: '';
  position: absolute;
  width: 620px; height: 620px;
  top: -300px; right: -140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 226, 178, .48), transparent 68%);
  z-index: -1;
}
.page-hero .container { position: relative; }
.page-hero h1 {
  font-family: "SFProDisplayBold", sans-serif;
  font-size: clamp(30px, 3.8vw, 48px);
  line-height: 1.14;
  letter-spacing: -.02em;
}
.page-hero p {
  margin-top: 16px;
  max-width: 640px;
  font-size: 16.5px;
  line-height: 1.72;
  color: rgba(255, 255, 255, .86);
}
.crumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .78);
  margin-bottom: 20px;
}
.crumb a:hover { color: #fff; }

.policy-wrap { padding: 72px 0 0; }
.policy-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 56px 60px;
  box-shadow: var(--sh-md);
}
.policy-card .lead {
  font-size: 17.5px;
  line-height: 1.8;
  color: var(--ink-600);
  padding-bottom: 34px;
  border-bottom: 1px solid var(--line);
}
.policy-list li {
  display: flex;
  gap: 22px;
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
}
.policy-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.policy-list .idx {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(140deg, var(--brand-50), var(--brand-100));
  border: 1px solid var(--brand-100);
  color: var(--brand-600);
  font-family: "SFProDisplayBold", sans-serif;
  font-size: 17px;
}
.policy-list h3 {
  font-family: "SFProDisplaySemibold", sans-serif;
  font-size: 19px;
  color: var(--ink-900);
  margin-bottom: 10px;
}
.policy-list p {
  font-size: 16px;
  line-height: 1.82;
  color: var(--ink-500);
}
.policy-meta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 30px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--brand-50);
  border: 1px solid var(--brand-100);
  font-size: 13.5px;
  color: var(--brand-700);
}

/* ---------- reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 8px; }
  .hero-visual { max-width: 560px; margin: 0 auto; }
  .hero-copy { text-align: center; }
  .hero-text { margin-left: auto; margin-right: auto; }
  .hero-actions, .hero-stats { justify-content: center; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .cta-band { flex-direction: column; align-items: flex-start; text-align: left; padding: 52px 44px; }
  .policy-card { padding: 44px 40px; }
}

@media (max-width: 780px) {
  :root { --header-h: 68px; }
  .brand img { height: 34px; }

  .nav-toggle { display: flex; }
  .nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 16px 24px 24px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -28px rgba(16, 24, 40, .4);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav-link { padding: 14px 16px; border-radius: 12px; font-size: 16px; }
  .nav .nav-cta { margin: 10px 0 0; }

  .section { padding: 68px 0; }
  .section-tight { padding: 52px 0; }
  .section-head { margin-bottom: 40px; }

  .hero { padding: 48px 0 68px; }
  .hero-stats { gap: 28px 36px; margin-top: 40px; }
  .hero-stats li strong { font-size: 26px; }

  .grid-3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
  .cta-band { padding: 44px 28px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }

  .page-hero { padding: 52px 0 48px; }
  .policy-wrap { padding: 48px 0 0; }
  .policy-card { padding: 34px 24px; }
  .policy-list li { gap: 16px; padding: 26px 0; }
  .policy-list .idx { width: 38px; height: 38px; font-size: 15px; }
}
