:root {
  --navy: #20268a;
  --navy-deep: #304090;
  --red: #ed3237;
  --red-bright: #e03030;
  --black: #0a0a0c;
  --white: #ffffff;
  --grey: #808084;
  --yellow: #ffd400;
  --yellow-dark: #e6bc00;
  --surface: #f4f5fb;
  --radius: 16px;
  --shadow: 0 24px 48px rgba(32, 38, 138, 0.12);
  --font: 'DM Sans', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--black);
  background: var(--surface);
  min-height: 100vh;
}

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--navy);
  color: var(--white);
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.wrap {
  width: min(1120px, 100% - 2rem);
  margin-inline: auto;
}

.page-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.45;
}

.blob--red {
  width: 280px;
  height: 280px;
  background: var(--red);
  top: -80px;
  right: -40px;
  animation: float-a 18s ease-in-out infinite;
}

.blob--navy {
  width: 360px;
  height: 360px;
  background: var(--navy);
  bottom: 10%;
  left: -120px;
  animation: float-b 22s ease-in-out infinite;
}

.blob--yellow {
  width: 200px;
  height: 200px;
  background: var(--yellow);
  top: 40%;
  right: 15%;
  opacity: 0.35;
  animation: float-c 20s ease-in-out infinite;
}

@keyframes float-a {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(-24px, 32px);
  }
}

@keyframes float-b {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(40px, -20px);
  }
}

@keyframes float-c {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(-16px, 24px) scale(1.08);
  }
}

/* Matches cosave.co.za PublicStorefrontHeaderNav + SfBrandLogoPlate */
.site-header__bar {
  background: #000000;
  border-bottom: 4px solid var(--red);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 56px;
  padding: 0.5rem 0;
}

@media (min-width: 640px) {
  .site-header__inner {
    min-height: 64px;
    padding: 0.625rem 0;
  }
}

.header-brand-logo {
  display: inline-flex;
  flex-shrink: 0;
  line-height: 0;
  text-decoration: none;
}

.header-brand-logo__plate {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border-radius: 6px;
  padding: 4px 6px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
  flex-shrink: 0;
}

@media (min-width: 640px) {
  .header-brand-logo__plate {
    padding: 6px 8px;
  }
}

.header-brand-logo__img {
  display: block;
  pointer-events: none;
  object-fit: contain;
  width: 120px;
  max-width: 38vw;
  height: auto;
  max-height: 56px;
  flex-shrink: 0;
}

@media (min-width: 640px) {
  .header-brand-logo__img {
    width: 148px;
    max-width: 42vw;
    max-height: 64px;
  }
}

@media (min-width: 768px) {
  .header-brand-logo__img {
    width: 168px;
    max-height: 72px;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.65rem 1.15rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9375rem;
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 2px;
}

.btn--header {
  color: var(--white);
  background: transparent;
  border-color: rgba(255, 255, 255, 0.45);
}

.btn--header:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.65);
}

.btn--primary {
  background: linear-gradient(135deg, var(--red) 0%, var(--red-bright) 100%);
  color: var(--white);
  box-shadow: 0 12px 28px rgba(237, 50, 55, 0.35);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(237, 50, 55, 0.4);
}

.btn--whatsapp {
  background: var(--white);
  color: #128c7e;
  border-color: rgba(18, 140, 126, 0.35);
}

.btn--whatsapp:hover {
  transform: translateY(-1px);
  background: #e8f8f4;
}

.hero {
  display: grid;
  gap: 2.5rem;
  padding: 1rem 0 3rem;
  align-items: center;
}

@media (min-width: 900px) {
  .hero {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    padding: 2rem 0 4rem;
  }
}

.eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin: 0 0 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy);
}

.tag {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  border-radius: 4px;
  transform: rotate(-2deg);
}

.tag--save {
  background: var(--yellow);
  color: var(--black);
  box-shadow: 2px 3px 0 var(--black);
}

h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(2rem, 5vw, 2.75rem);
  line-height: 1.1;
  font-weight: 800;
  color: var(--navy-deep);
  letter-spacing: -0.02em;
}

.lead {
  margin: 0 0 1.25rem;
  font-size: 1.125rem;
  color: #2a2a32;
  max-width: 36ch;
}

.pill-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pill-list li {
  padding: 0.4rem 0.85rem;
  background: var(--white);
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.store-badge {
  position: relative;
  margin: 0;
  padding: 0;
  border: none;
  opacity: 0.72;
  filter: grayscale(0.85);
  user-select: none;
  pointer-events: none;
}

.store-badge__inner {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 1rem 0.55rem 0.75rem;
  min-width: 168px;
  background: #1a1a1a;
  color: #f5f5f5;
  border-radius: 10px;
  border: 1px solid #333;
}

.store-badge--apple .store-badge__inner {
  background: #000;
}

.store-badge__icon {
  flex-shrink: 0;
  opacity: 0.9;
}

.store-badge__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.store-badge__small {
  font-size: 0.5625rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.store-badge__large {
  font-size: 1.125rem;
  font-weight: 600;
}

.ribbon {
  position: absolute;
  top: -6px;
  right: -4px;
  padding: 0.2rem 0.5rem;
  font-size: 0.625rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--navy);
  color: var(--white);
  border-radius: 4px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transform: rotate(6deg);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.fine-print {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--grey);
  max-width: 42ch;
}

.fine-print a {
  color: var(--navy);
  font-weight: 600;
}

.hero__phones {
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--surface);
}

.hero__phones picture {
  display: block;
  width: 100%;
  max-width: 36rem;
  line-height: 0;
}

@media (min-width: 900px) {
  .hero__phones picture {
    max-width: 34rem;
    justify-self: center;
  }
}

.hero-phones-art {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(72vh, 640px);
  object-fit: contain;
  object-position: center;
  /* Martin mockup is on white; multiply blends into page surface without a white box */
  mix-blend-mode: multiply;
}

@media (prefers-reduced-motion: no-preference) {
  .hero-phones-art {
    animation: hero-phones-in 0.7s ease-out both;
  }
}

@keyframes hero-phones-in {
  from {
    opacity: 0;
    translate: 0 12px;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}

.features {
  padding: 2rem 0 3rem;
}

.features__title {
  text-align: center;
  font-size: 1.5rem;
  color: var(--navy);
  margin: 0 0 1.5rem;
}

.feature-cards {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .feature-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .feature-cards {
    grid-template-columns: repeat(4, 1fr);
  }
}

.feature-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: 0 8px 24px rgba(32, 38, 138, 0.08);
  border: 1px solid rgba(32, 38, 138, 0.06);
}

.feature-card__icon {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

.feature-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1.0625rem;
  color: var(--navy-deep);
}

.feature-card p {
  margin: 0;
  font-size: 0.9375rem;
  color: #444;
}

.site-footer {
  padding: 2rem 0;
  background: var(--navy);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.875rem;
}

.site-footer__inner {
  text-align: center;
}

.site-footer__inner p {
  margin: 0.35rem 0;
}

.site-footer a {
  color: var(--white);
  font-weight: 600;
}

.site-footer__links {
  opacity: 0.9;
}
