/* ============================================================
   HAYPP.IP — Landing page styles
   ============================================================ */

/* ---------- Self-hosted fonts (latin subset, Montserrat v31) ---------- */
@font-face {
  font-family: "Montserrat"; font-style: normal; font-weight: 400;
  font-display: swap;
  src: local("Montserrat"), url("assets/fonts/montserrat-400.woff2") format("woff2");
}
@font-face {
  font-family: "Montserrat"; font-style: normal; font-weight: 600;
  font-display: swap;
  src: local("Montserrat SemiBold"), local("Montserrat"), url("assets/fonts/montserrat-600.woff2") format("woff2");
}
@font-face {
  font-family: "Montserrat"; font-style: normal; font-weight: 700;
  font-display: swap;
  src: local("Montserrat Bold"), local("Montserrat"), url("assets/fonts/montserrat-700.woff2") format("woff2");
}
@font-face {
  font-family: "Montserrat"; font-style: normal; font-weight: 800;
  font-display: swap;
  src: local("Montserrat ExtraBold"), local("Montserrat"), url("assets/fonts/montserrat-800.woff2") format("woff2");
}

/* hidden container for reusable SVG <symbol> defs */
.svg-symbols { position: absolute; }

:root {
  /* Brand palette — official Haypp codes (per agency feedback 2026-06-01) */
  --navy:        #00226d;   /* matches the logo wordmark navy */
  --navy-band:   #001a52;   /* darker shade of the same navy for the CTA band */
  --cyan:        #00b8ff;
  --cyan-dark:   #00a0e0;   /* darker cyan for button hover */
  --magenta:     #ff00a3;
  --green:       #3eb54a;
  --gold:        #ffce00;
  --purple:      #6e2995;
  --orange:      #ff6e00;

  --ink:         #333333;
  --grey:        #646464;  /* darkened from brand #8c8c8c to meet WCAG AA (5.9:1 / 5.4:1) */
  --grey-soft:   #f4f4f4;
  --white:       #ffffff;

  --maxw: 1080px;
  --radius-pill: 999px;

  --font: "Montserrat", "Helvetica Neue", Arial, sans-serif;
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* fill at least the viewport so there's no whitespace below the footer on tall screens */
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

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

a { color: inherit; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

/* ---------- Shared button ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.75rem 0.85rem 0.85rem;
  border-radius: 12px;          /* rounded rectangle (not a full pill) */
  font-weight: 600;
  font-size: clamp(0.95rem, 0.9rem + 0.4vw, 1.1rem);
  letter-spacing: 0.02em;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.btn--cta {
  background: var(--cyan);
  color: var(--white);
  box-shadow: 0 8px 22px rgba(35, 169, 224, 0.35);
}
.btn--cta:hover,
.btn--cta:focus-visible {
  background: var(--cyan-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(35, 169, 224, 0.45);
}
.btn:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; }

.btn__icon {
  display: inline-flex;
  width: 2.4rem;
  height: 2.4rem;
  flex: 0 0 auto;
  border-radius: 50%;
  border: 2px solid currentColor;
  align-items: center;
  justify-content: center;
}
.btn__icon svg {
  width: 1.35rem;
  height: 1.35rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background: var(--white);
  text-align: left;
  overflow: hidden;
  flex: 1 0 auto;   /* absorbs leftover viewport height on tall screens; no effect when content already overflows */
}
.hero__inner {
  position: relative;
  max-width: 640px;          /* centered block; content left-aligned inside it */
  margin-inline: auto;
  padding-top: clamp(8rem, 10vw, 9rem);          /* room above the logo for the pink/green asterisks (per the SVG) */
  padding-bottom: clamp(1.25rem, 2.5vw, 2rem);   /* trimmed — was eating space before the features */
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero__kicker {
  margin: 0 0 1.25rem;
  color: var(--cyan);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: clamp(1.1rem, 0.9rem + 1vw, 1.6rem);
}

.hero__logo { position: relative; margin: 0 0 2rem; width: 100%; max-width: 640px; }
.hero__logo-img { width: 100%; display: block; }

.hero__lede {
  margin: 0 0 2rem;
  color: var(--grey);
  font-size: clamp(0.85rem, 0.82rem + 0.2vw, 0.92rem);   /* smaller, per feedback */
  font-weight: 400;
  line-height: 1.5;
  max-width: 23rem;                                       /* narrow — sits under "HAYPP", clears the dots */
}

.hero__note {
  margin: 1.25rem 0 0;
  color: var(--grey);
  font-size: 0.9rem;
}

/* decorative brand asterisks — clustered in a descending column over the logo's right side */
.deco {
  position: absolute;
  pointer-events: none;
  width: 8.4%;                        /* each asterisk ≈ 8.4% of the logo width (per the SVG) */
  height: auto;
  transform: translate(-50%, -50%);   /* the left/top values are the asterisk CENTRE */
}
/* centres + size taken directly from Hero Logo v2.svg (relative to the logo box) */
.deco--pink   { left: 64.2%; top: -99.1%; }
.deco--green  { left: 72.2%; top: -39.8%; }
.deco--gold   { left: 72.1%; top: 103.6%; }
.deco--purple { left: 64.4%; top: 163.1%; }

/* keep hero text above decorations */
.hero__kicker, .hero__logo, .hero__lede, .hero .btn, .hero__note { position: relative; z-index: 1; }

/* ============================================================
   FEATURES
   ============================================================ */
.features {
  background: var(--white);
  padding-top: clamp(1.75rem, 3.5vw, 2.5rem);
  padding-bottom: clamp(3rem, 6vw, 4.5rem);
}

.features__title {
  text-align: center;
  margin: 0 0 3rem;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  font-size: clamp(1.05rem, 0.9rem + 0.8vw, 1.4rem);
  position: relative;
}
/* cyan flanking lines around the title */
.features__title::before,
.features__title::after {
  content: "";
  position: absolute;
  top: 50%;
  width: clamp(2rem, 18vw, 13rem);
  height: 2px;
  background: var(--cyan);
}
.features__title::before { right: calc(50% + 11rem); }
.features__title::after  { left:  calc(50% + 11rem); }

.features__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem 1.5rem;
  max-width: 900px;          /* pull the columns closer together (less empty space) */
  margin-inline: auto;
}

.feature {
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.feature__name {
  margin: 0 0 0.65rem;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 700;
  font-size: 1.02rem;
}
.feature__copy {
  margin: 0;
  color: var(--grey);
  font-size: 0.98rem;
  max-width: 22ch;
}

/* ============================================================
   CTA BAND
   ============================================================ */
.cta {
  background: var(--navy-band);
  color: var(--white);
  overflow: hidden;
}
.cta__inner {
  position: relative;
  padding-block: clamp(2.5rem, 5vw, 3.5rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.cta__text {
  position: relative;
  padding-left: 1.5rem;
  max-width: 46ch;
}
.cta__text::before {
  content: "";
  position: absolute;
  left: 0; top: 0.2em; bottom: 0.2em;
  width: 3px;
  background: var(--cyan);
}
.cta__title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.2rem, 1rem + 1vw, 1.6rem);
  font-weight: 700;
}
.cta__copy {
  margin: 0;
  color: #c8d2ec;
  font-size: clamp(0.95rem, 0.9rem + 0.3vw, 1.05rem);
}
.cta .btn { flex: 0 0 auto; }

.cta__watermark {
  position: absolute;
  right: -10px;
  bottom: -40px;
  width: 200px;
  opacity: 0.9;
  z-index: 0;
}
.cta__watermark svg use { fill: #15306f; }
.cta__text, .cta .btn { position: relative; z-index: 1; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--white);
  padding-block: clamp(2.5rem, 5vw, 3.5rem);
}
.footer__inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 2rem;
  align-items: start;
}
.footer__col { position: relative; }
.footer__col + .footer__col { padding-left: 2rem; }
.footer__col + .footer__col::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 1px;
  background: #d9e0ea;
}

.footer__help { display: flex; gap: 1rem; align-items: flex-start; }
.footer__icon {
  flex: 0 0 auto;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #d8eefb;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.footer__icon svg {
  width: 28px; height: 28px;
  fill: none; stroke: var(--cyan);
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}

.footer__heading {
  margin: 0 0 0.4rem;
  color: var(--navy);
  font-size: 1.05rem;
  font-weight: 700;
}
.footer__copy { margin: 0; color: var(--grey); font-size: 0.92rem; }

.footer__email {
  display: inline-block;
  margin-bottom: 0.4rem;
  color: var(--cyan);
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
}
.footer__email:hover, .footer__email:focus-visible { text-decoration: underline; }

.footer__brandline { margin: 0 0 0.75rem; line-height: 1.35; }
.footer__brandline strong { color: var(--navy); font-weight: 700; }
.footer__tagline { color: var(--cyan); font-weight: 600; }
.footer__group {
  margin: 0;
  color: var(--navy);
  letter-spacing: 0.18em;
  font-size: 0.8rem;
  font-weight: 600;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Tablet — 2-column features, line tweaks */
@media (max-width: 860px) {
  .features__grid { grid-template-columns: repeat(2, 1fr); gap: 2.5rem 1.5rem; }

  .features__title::before { right: calc(50% + 8.5rem); }
  .features__title::after  { left:  calc(50% + 8.5rem); }

  .cta__inner { flex-direction: column; align-items: flex-start; }
  .cta .btn { align-self: stretch; justify-content: center; }

  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; padding-top: 1.5rem; }
  .footer__brand::before { width: auto; left: 0; right: 0; top: 0; bottom: auto; height: 1px; }
}

/* Phone — single column everything */
@media (max-width: 560px) {
  .deco--pink, .deco--green, .deco--gold, .deco--purple { display: none; }

  /* asterisks are hidden here, so the big top padding isn't needed */
  .hero__inner { padding-top: clamp(2.5rem, 9vw, 4rem); }

  .hero__lede br { display: none; }

  .features__grid { grid-template-columns: 1fr; gap: 2.5rem; }

  .features__title::before,
  .features__title::after { width: 1.75rem; }
  .features__title::before { right: calc(50% + 7.5rem); }
  .features__title::after  { left:  calc(50% + 7.5rem); }

  .footer__inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer__col + .footer__col { padding-left: 0; padding-top: 1.75rem; }
  .footer__col + .footer__col::before { width: auto; left: 0; right: 0; top: 0; bottom: auto; height: 1px; }
  .footer__brand { padding-top: 1.75rem; }

  .cta__watermark { width: 140px; bottom: -28px; }
}

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