/* ================================================================
   HIPO — brand site styles
   Mobile-first. System fonts. Brand colours pulled from packaging.
================================================================ */

:root {
  --red: #E31B23;          /* HIPO red (wordmark) */
  --red-ink: #B3141B;      /* pressed/hover */
  --blue: #0E3A8C;         /* HIPO deep blue (boxes) */
  --blue-ink: #092766;
  --orange: #F58A1F;       /* accent stripe */
  --ink: #111111;          /* body text */
  --ink-soft: #444;
  --muted: #6B7280;
  --line: #E5E7EB;
  --bg: #FFFFFF;
  --bg-soft: #F5F6F8;
  --bg-dark: var(--blue);
  --wa: #25D366;
  --wa-ink: #128C7E;

  --maxw: 1160px;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.06), 0 1px 3px rgba(0,0,0,.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,.08), 0 2px 4px rgba(0,0,0,.06);
  --shadow-lg: 0 10px 30px rgba(0,0,0,.12);

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

/* ---- Reset ---- */
*,*::before,*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
h1,h2,h3,h4 { margin: 0 0 .4em; line-height: 1.15; letter-spacing: -.01em; }
p  { margin: 0 0 1em; }
ul,ol { margin: 0; padding: 0; list-style: none; }

/* ---- Layout ---- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .78rem;
  font-weight: 800;
  color: var(--red);
  margin-bottom: .5rem;
}
.eyebrow-on-dark { color: var(--orange); }

.section-h {
  font-size: clamp(1.6rem, 5vw, 2.4rem);
  font-weight: 900;
  letter-spacing: -.02em;
  margin-bottom: .35em;
}
.section-h.on-dark { color: #fff; }

.section-sub {
  color: var(--muted);
  max-width: 56ch;
  margin-bottom: 1.8rem;
}
.section-sub.on-dark { color: rgba(255,255,255,.8); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: .95rem;
  line-height: 1;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .08s ease, background .15s ease, color .15s ease, border-color .15s ease, box-shadow .15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--red-ink); border-color: var(--red-ink); }

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

.btn-wa {
  background: var(--wa);
  color: #fff;
  border-color: var(--wa);
}
.btn-wa:hover { background: var(--wa-ink); border-color: var(--wa-ink); }
.wa-icon { width: 18px; height: 18px; }

.btn-sm { padding: 9px 14px; font-size: .88rem; }
.btn-lg { padding: 14px 22px; font-size: 1rem; }
.btn-block { display: flex; width: 100%; }

/* ---- Header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.96);
  backdrop-filter: saturate(140%) blur(6px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 10px;
  padding-bottom: 10px;
  min-height: 58px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 900;
  font-size: 1.35rem;
  letter-spacing: -.02em;
  color: var(--red);
}
.logo img {
  height: 36px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
}
.logo-fallback {
  display: none;
  color: var(--red);
  font-weight: 900;
  font-size: 1.6rem;
  letter-spacing: -.04em;
}
.logo-fallback.show { display: inline-block; }

.header-ctas {
  display: flex;
  align-items: center;
  gap: 8px;
}
.header-ctas .btn-label { display: none; }
@media (min-width: 420px) {
  .header-ctas .btn-label { display: inline; }
}

/* On narrow phones, hide "Become a Partner" text and keep WA */
@media (max-width: 380px) {
  .header-ctas .btn-primary { padding: 9px 12px; font-size: .82rem; }
}

/* ---- Hero ---- */
.hero {
  padding: 44px 0 36px;
  background:
    radial-gradient(ellipse at top right, rgba(227,27,35,.06), transparent 60%),
    radial-gradient(ellipse at bottom left, rgba(14,58,140,.05), transparent 55%),
    #fff;
  border-bottom: 1px solid var(--line);
}
.hero-kicker {
  display: inline-block;
  color: var(--red);
  font-weight: 900;
  font-size: clamp(1rem, 3.6vw, 1.15rem);
  letter-spacing: .02em;
  text-transform: uppercase;
  margin-bottom: 14px;
  padding: 6px 10px;
  background: rgba(227,27,35,.08);
  border-radius: 999px;
}
.hero-headline {
  font-size: clamp(2rem, 8vw, 3.6rem);
  font-weight: 900;
  letter-spacing: -.03em;
  margin-bottom: .4em;
  color: var(--ink);
}
.hero-headline br { display: inline; }
.hero-sub {
  font-size: clamp(1rem, 3.2vw, 1.15rem);
  color: var(--ink-soft);
  max-width: 52ch;
  margin-bottom: 1.6rem;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.hero-ctas .btn { flex: 1 1 180px; }
@media (min-width: 560px) {
  .hero-ctas .btn { flex: 0 0 auto; }
}
@media (min-width: 720px) {
  .hero { padding: 72px 0 60px; }
}

/* ---- Why stock HIPO ---- */
.why {
  padding: 48px 0;
  background: var(--bg-soft);
}
.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 10px;
}
.why-card {
  background: #fff;
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  position: relative;
}
.why-num {
  display: inline-block;
  font-weight: 900;
  color: var(--red);
  font-size: .85rem;
  letter-spacing: .08em;
  margin-bottom: 6px;
}
.why-card h3 {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: .3em;
}
.why-card p { color: var(--muted); margin: 0; }
@media (min-width: 640px) {
  .why-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 960px) {
  .why-grid { grid-template-columns: repeat(4, 1fr); }
  .why { padding: 72px 0; }
}

/* ---- Partner tiers (hero blue section) ---- */
.partner {
  background: var(--bg-dark);
  color: #fff;
  padding: 56px 0;
  position: relative;
  overflow: hidden;
}
.partner::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--red), var(--orange));
}
.tiers {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 24px;
}
.tier {
  background: #fff;
  color: var(--ink);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: var(--shadow-md);
  border-top: 4px solid var(--red);
}
.tier-featured { border-top-color: var(--orange); }
.tier-name {
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: -.01em;
}
.tier-pitch { color: var(--ink-soft); margin: 0; }
.tier-list {
  display: grid;
  gap: 8px;
  margin: 0 0 auto;
}
.tier-list li {
  padding-left: 24px;
  position: relative;
  color: var(--ink);
}
.tier-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 14px; height: 14px;
  background: var(--red);
  border-radius: 3px;
  transform: rotate(45deg);
}
.tier-featured .tier-list li::before { background: var(--orange); }
.partner-slogan {
  text-align: center;
  margin-top: 32px;
  font-size: clamp(1.3rem, 4vw, 1.8rem);
  font-weight: 900;
  color: #fff;
  letter-spacing: -.01em;
}
@media (min-width: 880px) {
  .tiers { grid-template-columns: repeat(3, 1fr); }
  .partner { padding: 80px 0; }
}

/* ---- Products ---- */
.products { padding: 56px 0; }
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
@media (min-width: 640px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; }
}
@media (min-width: 960px) {
  .product-grid { grid-template-columns: repeat(4, 1fr); }
  .products { padding: 80px 0; }
}

.product-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  transition: transform .12s ease, box-shadow .15s ease, border-color .15s ease;
  box-shadow: var(--shadow-sm);
}
.product-card:hover {
  border-color: var(--red);
  box-shadow: var(--shadow-md);
}
@media (hover: hover) {
  .product-card:hover { transform: translateY(-2px); }
}
.product-card:active { transform: translateY(0); box-shadow: var(--shadow-sm); }
.product-card:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 2px;
}

.product-media {
  aspect-ratio: 1 / 1;
  background: var(--bg-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-media .img-fallback {
  color: var(--muted);
  font-size: .85rem;
  text-align: center;
  padding: 12px;
}

.product-body {
  padding: 14px 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.product-name {
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.25;
  margin: 0;
}
.product-selling {
  color: var(--muted);
  font-size: .88rem;
  margin: 0;
  flex: 1;
}
.product-price {
  font-weight: 800;
  color: var(--ink);
  font-size: .95rem;
  margin-top: 4px;
}
.product-price.is-muted {
  color: var(--muted);
  font-weight: 600;
  font-size: .85rem;
}
.product-card .btn {
  margin-top: 10px;
  width: 100%;
  padding: 10px 12px;
  font-size: .82rem;
}

/* ---- How it works ---- */
.how { background: var(--bg-soft); padding: 56px 0; }
.how-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  counter-reset: step;
  margin-top: 18px;
}
.how-steps li {
  background: #fff;
  padding: 22px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  background: var(--red);
  color: #fff;
  font-weight: 900;
  border-radius: 50%;
  margin-bottom: 10px;
}
.how-steps h3 { font-size: 1.1rem; font-weight: 800; }
.how-steps p { color: var(--muted); margin: 0; }
.how-cta { margin-top: 24px; text-align: center; }
@media (min-width: 760px) {
  .how-steps { grid-template-columns: repeat(3, 1fr); }
  .how { padding: 80px 0; }
}

/* ---- Trust strip ---- */
.trust {
  background: #fff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 28px 0;
}
.trust-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  text-align: center;
}
.trust-item strong {
  display: block;
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--blue);
  line-height: 1.1;
}
.trust-item span {
  color: var(--muted);
  font-size: .9rem;
}
@media (min-width: 640px) {
  .trust-inner { grid-template-columns: repeat(3, 1fr); }
}

/* ---- Visit us ---- */
.visit { background: var(--bg-soft); padding: 56px 0; }
.visit-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
.visit-line { margin-bottom: 1em; }
.visit-line strong {
  display: inline-block;
  margin-bottom: 2px;
  font-weight: 800;
}
.link-plain { color: var(--red); font-weight: 700; text-decoration: underline; }
.link-plain:hover { color: var(--red-ink); }

.map-placeholder {
  background: #fff;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  min-height: 240px;
  overflow: hidden;
}
.map-placeholder iframe {
  width: 100%;
  height: 100%;
  min-height: 240px;
  border: 0;
  display: block;
}
.map-stub {
  width: 100%;
  height: 100%;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  gap: 6px;
  padding: 20px;
  text-align: center;
}
.map-stub span { font-weight: 800; color: var(--ink); }
@media (min-width: 880px) {
  .visit-grid { grid-template-columns: 1.1fr 1fr; align-items: stretch; }
  .visit { padding: 80px 0; }
}

/* ---- Footer ---- */
.site-footer {
  background: var(--ink);
  color: #E5E7EB;
  padding: 36px 0 28px;
}
.footer-inner {
  display: grid;
  gap: 18px;
  align-items: start;
}
.footer-wordmark {
  display: inline-block;
  color: var(--red);
  font-weight: 900;
  font-size: 1.6rem;
  letter-spacing: -.03em;
  line-height: 1;
}
.footer-tag {
  color: #9CA3AF;
  margin: 6px 0 0;
  font-size: .9rem;
}
.footer-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-weight: 700;
}
.footer-socials a { color: #fff; }
.footer-socials a:hover { color: var(--orange); }
.footer-legal {
  color: #9CA3AF;
  font-size: .82rem;
  margin: 0;
}
@media (min-width: 720px) {
  .footer-inner {
    grid-template-columns: 1fr auto;
    gap: 24px;
  }
  .footer-legal { grid-column: 1 / -1; }
}

/* ---- FAQ ---- */
.faq { background: #fff; padding: 56px 0; }
.faq-list {
  max-width: 780px;
  margin: 18px 0 0;
  display: grid;
  gap: 10px;
}
.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.faq-item[open] {
  border-color: var(--red);
  box-shadow: var(--shadow-sm);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 44px 16px 18px;
  font-weight: 800;
  font-size: 1rem;
  color: var(--ink);
  position: relative;
  transition: background .12s ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { background: var(--bg-soft); }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px; height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-size: 1.2rem;
  line-height: 1;
  font-weight: 700;
  transition: transform .15s ease, background .15s ease;
}
.faq-item[open] summary::after {
  content: "−";
  transform: translateY(-50%) rotate(180deg);
}
.faq-item p {
  margin: 0;
  padding: 0 18px 18px;
  color: var(--ink-soft);
  line-height: 1.6;
}
.faq-item p strong { color: var(--ink); }
@media (min-width: 760px) {
  .faq { padding: 80px 0; }
  .faq-item summary { font-size: 1.05rem; padding: 18px 48px 18px 22px; }
  .faq-item p { padding: 0 22px 22px; }
}

/* ---- Spotlight popup ---- */
.popup {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.popup.is-open { display: flex; }
.popup-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 13, 20, .62);
  animation: popup-fade .2s ease;
}
.popup-card {
  position: relative;
  width: 100%;
  max-width: 440px;
  max-height: 92vh;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  animation: popup-in .25s ease;
  display: flex;
  flex-direction: column;
}
.popup-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, .5);
  color: #fff;
  border: 0;
  border-radius: 50%;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: background .15s ease, transform .08s ease;
}
.popup-close:hover { background: rgba(0, 0, 0, .72); }
.popup-close:active { transform: scale(.94); }
.popup-media {
  aspect-ratio: 16 / 10;
  background: var(--bg-soft);
  overflow: hidden;
  flex-shrink: 0;
}
.popup-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.popup-body {
  padding: 22px;
  overflow-y: auto;
}
.popup-eyebrow {
  display: inline-block;
  color: var(--red);
  font-weight: 900;
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin: 0 0 6px;
}
.popup-h {
  font-size: clamp(1.35rem, 5vw, 1.7rem);
  font-weight: 900;
  letter-spacing: -.01em;
  margin: 0 0 8px;
  color: var(--ink);
}
.popup-sub {
  color: var(--ink-soft);
  margin: 0 0 18px;
}
.popup-ctas {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
body.popup-open { overflow: hidden; }
@keyframes popup-fade {
  from { opacity: 0 } to { opacity: 1 }
}
@keyframes popup-in {
  from { opacity: 0; transform: translateY(10px) scale(.97) }
  to   { opacity: 1; transform: translateY(0)    scale(1) }
}

/* ---- Utilities ---- */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
