/* ============================================================
   Juno PetCare - B2B export site
   Palette locked to confirmed spec (see config.js for brand swap)
   ============================================================ */

:root {
  --purple: #7C2D9E;
  --purple-deep: #5E2478;
  --purple-bright: #9B4DCA;
  --purple-wash: #F1E9F5;
  --meadow: #6FA86A;
  --clay: #B08968;
  --warm-white: #F7F5F2;
  --ink: #2A2330;
  --ink-soft: #5B5263;
  --line: #E4DED8;
  --white: #FFFFFF;

  --font-head: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --wrap: 1160px;
  --radius: 4px;
  --radius-lg: 10px;
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--warm-white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0;
}

p { margin: 0; }

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

/* ---------- shared type ---------- */

.eyebrow {
  font-family: var(--font-head);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--purple);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1.5px;
  background: var(--purple);
  display: block;
}

.eyebrow--light { color: #E8D5F2; }
.eyebrow--light::before { background: #C9A3DD; }

.h-display {
  font-size: clamp(38px, 5.4vw, 66px);
  line-height: 1.03;
  letter-spacing: -0.035em;
}

.h-section {
  font-size: clamp(28px, 3.4vw, 42px);
  letter-spacing: -0.03em;
}

.lede {
  font-size: 18px;
  color: var(--ink-soft);
  line-height: 1.7;
  max-width: 56ch;
}

.section { padding: 96px 0; }
.section--tight { padding: 64px 0; }
.section--rule { border-top: 1px solid var(--line); }

.section-head { margin-bottom: 48px; max-width: 720px; }
.section-head .h-section { margin-top: 16px; }
.section-head .lede { margin-top: 18px; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 15px 26px;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}

.btn--primary { background: var(--purple); color: #fff; }
.btn--primary:hover { background: var(--purple-deep); transform: translateY(-1px); }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: #D6CEC8;
}
.btn--ghost:hover { border-color: var(--ink); }

.btn--light {
  background: #fff;
  color: var(--purple-deep);
}
.btn--light:hover { background: var(--purple-wash); }

.btn--onDark {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.42);
}
.btn--onDark:hover { border-color: #fff; }

.btn .arrow { transition: transform .18s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 245, 242, 0.88);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.logo svg { flex: none; }
.logo .logo-sub { color: var(--purple); }

.nav {
  display: flex;
  align-items: center;
  gap: 34px;
}

.nav a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color .15s ease;
  position: relative;
}

.nav a:hover { color: var(--ink); }

.nav a.is-active { color: var(--ink); }
.nav a.is-active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px;
  background: var(--purple);
}

.nav-cta { margin-left: 8px; }
.nav-cta .btn { padding: 11px 20px; font-size: 13.5px; }

/* .nav a 的优先级高于 .btn--primary，会把白字覆盖成灰色，这里补回来 */
.nav .nav-cta a.btn,
.nav .nav-cta a.btn:hover { color: #fff; }
.nav .nav-cta a.is-active::after { display: none; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 8px 10px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--ink);
  margin: 4px 0;
}

/* ---------- hero ---------- */

.hero { padding: 76px 0 88px; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 60px;
  align-items: center;
}

.hero h1 { margin-top: 22px; }

.hero .lede { margin-top: 24px; max-width: 48ch; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

.hero-meta {
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  font-size: 13px;
  color: var(--ink-soft);
}

.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta span::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--meadow);
  flex: none;
}

.hero-media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3.35;
  background: var(--purple-wash);
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% 45%;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(190deg, rgba(124,45,158,0) 45%, rgba(94,36,120,0.55) 100%);
}

.spec-card {
  position: absolute;
  left: 18px;
  bottom: 18px;
  z-index: 2;
  background: rgba(255,255,255,0.96);
  border-radius: 6px;
  padding: 14px 18px;
  box-shadow: 0 10px 30px rgba(42,35,48,0.16);
  max-width: 250px;
}

.spec-card .k {
  font-family: var(--font-head);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--purple);
}

.spec-card .v {
  font-size: 13.5px;
  line-height: 1.45;
  margin-top: 5px;
  color: var(--ink);
}

/* ---------- stat strip ---------- */

.strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #FBFAF8;
}

.strip .wrap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.strip-item {
  padding: 28px 0;
  border-left: 1px solid var(--line);
  padding-left: 28px;
}
.strip-item:first-child { border-left: 0; padding-left: 0; }

.strip-item .num {
  font-family: var(--font-head);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--purple-deep);
}

.strip-item .lbl {
  font-size: 13px;
  color: var(--ink-soft);
  margin-top: 3px;
}

/* ---------- product cards ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
}

.pcard {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.pcard:hover {
  border-color: #C9B6D6;
  box-shadow: 0 14px 40px rgba(94,36,120,0.10);
  transform: translateY(-2px);
}

.pcard-visual {
  aspect-ratio: 16 / 9;
  background: linear-gradient(140deg, var(--purple-deep), var(--purple) 55%, var(--purple-bright));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.pcard-visual::before {
  content: "";
  position: absolute;
  width: 260px; height: 260px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  top: -80px; right: -60px;
}

.pcard-visual svg { width: 54%; max-width: 190px; height: auto; }

.pcard-tag {
  position: absolute;
  top: 14px; left: 14px;
  font-family: var(--font-head);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(255,255,255,0.16);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.28);
  padding: 5px 9px;
  border-radius: 3px;
}

.pcard-body { padding: 26px 26px 28px; display: flex; flex-direction: column; flex: 1; }

.pcard-body h3 { font-size: 21px; letter-spacing: -0.02em; }

.pcard-body p {
  font-size: 14.5px;
  color: var(--ink-soft);
  margin-top: 10px;
  line-height: 1.6;
}

.pcard-specs {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.pcard-specs li {
  font-size: 12px;
  color: var(--purple-deep);
  background: var(--purple-wash);
  border-radius: 3px;
  padding: 5px 9px;
  font-weight: 500;
}

.pcard-link {
  margin-top: auto;
  padding-top: 22px;
  font-family: var(--font-head);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--purple);
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.pcard-link:hover { color: var(--purple-deep); }

.pcard--soon { background: #FBFAF8; }
.pcard--soon .pcard-visual {
  background: repeating-linear-gradient(45deg, #F1E9F5, #F1E9F5 10px, #F7F2FA 10px, #F7F2FA 20px);
}
.pcard--soon .pcard-visual::before { display: none; }
.pcard--soon .pcard-body h3 { color: var(--ink-soft); }
.soon-mark {
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--purple);
  border: 1px dashed #C9A3DD;
  padding: 7px 13px;
  border-radius: 3px;
  background: rgba(255,255,255,0.7);
}

/* ---------- feature list ---------- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}

.feature {
  padding: 34px 40px 34px 0;
  border-bottom: 1px solid var(--line);
}
.feature:nth-child(even) { padding-left: 40px; border-left: 1px solid var(--line); }

.feature .idx {
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--purple-bright);
}

.feature h3 { font-size: 19px; margin-top: 10px; letter-spacing: -0.015em; }

.feature p {
  font-size: 14.5px;
  color: var(--ink-soft);
  margin-top: 9px;
  line-height: 1.62;
}

/* ---------- process ---------- */

.process { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 8px;
}

.step {
  padding-top: 26px;
  border-top: 2px solid var(--purple);
}

.step .n {
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--purple);
}

.step h3 { font-size: 19px; margin-top: 12px; }
.step p { font-size: 14.5px; color: var(--ink-soft); margin-top: 10px; line-height: 1.62; }

/* ---------- cta band ---------- */

.cta-band {
  background: var(--purple-deep);
  color: #fff;
  padding: 76px 0;
  position: relative;
  overflow: hidden;
}

.cta-band::after {
  content: "";
  position: absolute;
  right: -120px; top: -140px;
  width: 460px; height: 460px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.10);
}

.cta-band .inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.cta-band h2 {
  font-size: clamp(26px, 3.2vw, 38px);
  letter-spacing: -0.03em;
  max-width: 17ch;
  margin-top: 16px;
}

.cta-band p {
  color: #D9C4E6;
  font-size: 15px;
  margin-top: 14px;
  max-width: 46ch;
}

/* ---------- spec table ---------- */

.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.spec-table th,
.spec-table td {
  text-align: left;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.spec-table tr:last-child td { border-bottom: 0; }

.spec-table th {
  width: 34%;
  font-family: var(--font-head);
  font-weight: 500;
  color: var(--ink-soft);
  font-size: 13.5px;
  background: #FBFAF8;
}

.spec-table td { color: var(--ink); }

/* ---------- product detail block ---------- */

.pdetail {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 48px;
  align-items: start;
  padding: 56px 0;
  border-top: 1px solid var(--line);
}

.pdetail:first-of-type { border-top: 0; padding-top: 8px; }

.pdetail-visual {
  border-radius: var(--radius-lg);
  background: linear-gradient(140deg, var(--purple-deep), var(--purple) 58%, var(--purple-bright));
  aspect-ratio: 1 / 0.86;
  display: flex;
  align-items: center;
  justify-content: center;
  position: sticky;
  top: 96px;
}

.pdetail-visual svg { width: 62%; height: auto; }

.pdetail-body h2 { font-size: clamp(24px, 2.8vw, 33px); letter-spacing: -0.025em; }

.pdetail-body .sub {
  font-size: 14.5px;
  color: var(--ink-soft);
  margin-top: 12px;
  max-width: 52ch;
}

.pdetail-body .spec-table { margin-top: 26px; }

.pill-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }

/* ---------- form ---------- */

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.field { display: flex; flex-direction: column; gap: 7px; }
.field--full { grid-column: 1 / -1; }

.field label {
  font-family: var(--font-head);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.field label .req { color: var(--purple); }

.field input,
.field select,
.field textarea {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #DED6CF;
  border-radius: 4px;
  padding: 12px 14px;
  width: 100%;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.field textarea { resize: vertical; min-height: 120px; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(124,45,158,0.12);
}

.form-note {
  font-size: 12.5px;
  color: var(--ink-soft);
  margin-top: 16px;
  line-height: 1.6;
}

.form-status {
  margin-top: 16px;
  font-size: 14px;
  padding: 12px 14px;
  border-radius: 4px;
  display: none;
}
.form-status.is-ok { display: block; background: #EAF4E9; color: #34622F; border: 1px solid #C4E0BF; }
.form-status.is-err { display: block; background: #FBEAEA; color: #8A2E2E; border: 1px solid #EFC9C9; }

/* ---------- contact side panel ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: start;
}

.info-block { padding: 24px 0; border-bottom: 1px solid var(--line); }
.info-block:first-child { padding-top: 0; }
.info-block .k {
  font-family: var(--font-head);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--purple);
}
.info-block .v { font-size: 15px; margin-top: 7px; line-height: 1.6; }
.info-block .v a { color: var(--purple-deep); border-bottom: 1px solid #D8C3E4; }
.info-block .v a:hover { border-bottom-color: var(--purple-deep); }

/* ---------- about ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.split .body p + p { margin-top: 18px; }
.split .body p { font-size: 15.5px; color: var(--ink-soft); line-height: 1.75; }

.fact-list { list-style: none; padding: 0; margin: 0; }
.fact-list li {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14.5px;
}
.fact-list li span:first-child { color: var(--ink-soft); }
.fact-list li span:last-child { font-weight: 500; text-align: right; }

/* ---------- footer ---------- */

.site-footer {
  background: #241C2B;
  color: #CFC6D4;
  padding: 62px 0 34px;
  font-size: 14px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 42px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.site-footer .logo { color: #fff; }
.site-footer .logo .logo-sub { color: #C9A3DD; }

.footer-top p { color: #A79DAE; font-size: 13.5px; margin-top: 14px; max-width: 34ch; line-height: 1.65; }

.footer-col h4 {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8E8299;
  margin-bottom: 14px;
}

.footer-col a, .footer-col span {
  display: block;
  color: #CFC6D4;
  font-size: 13.5px;
  padding: 5px 0;
}
.footer-col a:hover { color: #fff; }

.footer-bottom {
  padding-top: 26px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 12px;
  color: #8E8299;
  line-height: 1.6;
}

.footer-legal { max-width: 74ch; }

/* ---------- reveal ---------- */

.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- responsive ---------- */

@media (max-width: 980px) {
  .hero-grid, .split, .contact-grid, .pdetail { grid-template-columns: 1fr; gap: 40px; }
  .hero-media { aspect-ratio: 16 / 10; }
  .strip .wrap { grid-template-columns: repeat(2, 1fr); }
  .strip-item:nth-child(3) { border-left: 0; padding-left: 0; }
  .card-grid, .feature-grid, .steps { grid-template-columns: 1fr; }
  .feature, .feature:nth-child(even) { padding: 28px 0; border-left: 0; }
  .pdetail-visual { position: static; }
  .footer-top { grid-template-columns: 1fr; gap: 34px; }
  .section { padding: 72px 0; }
  .nav { display: none; }
  .nav.is-open {
    display: flex;
    position: absolute;
    top: 72px; left: 0; right: 0;
    background: var(--warm-white);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 28px 22px;
    border-bottom: 1px solid var(--line);
  }
  .nav.is-open a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav.is-open .nav-cta { margin-left: 0; margin-top: 16px; }
  .nav.is-open .nav-cta .btn { width: 100%; justify-content: center; }
  .nav-toggle { display: block; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { padding: 0 20px; }
  .hero { padding: 48px 0 64px; }
  .form-grid { grid-template-columns: 1fr; }
  .strip-item { padding: 20px 0; }
  .section { padding: 56px 0; }
  .cta-band { padding: 56px 0; }
  .spec-card { left: 12px; bottom: 12px; padding: 11px 14px; max-width: 210px; }
  .spec-table th { width: 42%; }
}
