/* ============================================================
   LiveNexus — landing page
   Brand tokens first, then layout. Single stylesheet for every page.
   ============================================================ */

:root {
  --navy:        #0b2545;
  --navy-deep:   #081d36;
  --yellow:      #f9c95c;
  --yellow-dark: #f0b93f;
  --white:       #ffffff;
  --muted:       rgba(255, 255, 255, 0.72);
  --faint:       rgba(255, 255, 255, 0.28);
  --hairline:    rgba(255, 255, 255, 0.12);

  --font: "Poppins", "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(20px, 4vw, 48px);
}

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

html {
  height: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  background: var(--navy);
  color: var(--white);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Full-bleed shell: always at least one viewport tall, always full width.
   dvh keeps it honest on mobile browsers with collapsing address bars. */
.page {
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: 0 var(--gutter);
}

/* ---------- Header ---------- */

.site-header {
  flex: 0 0 auto;
  padding: clamp(20px, 4vh, 40px) 0 8px;
  display: flex;
  justify-content: center;
}

/* ---------- Logo ---------- */

/* logo.png is 272x75; width/height are on the <img> to reserve space and
   avoid layout shift, so only the width is set here. */
.site-logo {
  display: block;
  width: clamp(150px, 22vw, 220px);
  height: auto;
}

.site-logo-link { display: inline-block; line-height: 0; }

/* Mascot beside the Live Listening strip — sized by height so it sits on
   the same baseline as the waveform regardless of the source aspect. */
.listening-mark {
  flex: 0 0 auto;
  width: auto;
  height: clamp(44px, 8vw, 68px);
}

/* ---------- Main / HubSpot slot ---------- */

.site-main {
  flex: 1 1 auto;          /* soaks up the leftover height */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(24px, 5vh, 56px) 0;
}

.form-slot {
  width: 100%;
  max-width: 660px;
  text-align: center;
}

/* ---------- HubSpot embed ----------
   The form is created with css: "" so HubSpot's own stylesheet is not
   loaded — everything below is what makes the embed look on-brand.
   These are HubSpot's v2 class names; delete this block to fall back to
   HubSpot's default styling. */

.form-slot .hs-form { text-align: left; }

/* Headline + intro copy come from the form's rich-text block in HubSpot. */
.form-slot .hs-richtext { text-align: center; }

.form-slot .hs-richtext h1,
.form-slot .hs-richtext h2,
.form-slot .hs-richtext h3 {
  font-size: clamp(34px, 6vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--white);
  margin: 0 0 20px;
}

.form-slot .hs-richtext p {
  color: var(--muted);
  font-size: clamp(15px, 1.6vw, 17px);
  margin: 0 0 32px;
}

.form-slot form { margin: 0; }

/* HubSpot wraps fields in a fieldset with its own width caps. */
.form-slot fieldset,
.form-slot fieldset.form-columns-1,
.form-slot fieldset.form-columns-2 {
  max-width: none !important;
  border: 0;
  padding: 0;
  margin: 0;
}

.form-slot .hs-form-field { margin-bottom: 16px; }

/* HubSpot renders a label AND a placeholder for each field; the design
   is placeholder-only, so the label is hidden from sight but left in the
   DOM for screen readers. Swap this block for a plain "display: block"
   if you'd rather show labels. */
.form-slot .hs-form-field > label:not(.hs-form-booleancheckbox-display) {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Checkbox and radio groups come wrapped in a <ul> — kill the bullets. */
.form-slot .inputs-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.form-slot .hs-form-required { color: var(--yellow); }

.form-slot .hs-input {
  width: 100%;
  padding: 16px 20px;
  border: 0;
  border-radius: 8px;
  background: var(--white);
  color: var(--navy);
  font-family: var(--font);
  font-size: 16px;          /* 16px stops iOS zooming on focus */
}

.form-slot textarea.hs-input { min-height: 120px; resize: vertical; }

.form-slot .hs-input:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 2px;
}

/* Checkboxes and radios must not inherit the full-width input rule. */
.form-slot .hs-form-booleancheckbox-display,
.form-slot .hs-form-checkbox-display,
.form-slot .hs-form-radio-display {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
}

.form-slot input[type="checkbox"].hs-input,
.form-slot input[type="radio"].hs-input {
  width: auto;
  margin: 3px 0 0;
  padding: 0;
  accent-color: var(--yellow);
}

.form-slot .hs-button {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 15px 40px;
  border: 0;
  border-radius: 8px;
  background: var(--yellow);
  color: var(--navy);
  font-family: var(--font);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease;
}

.form-slot .hs-button:hover { background: var(--yellow-dark); }

/* Consent text and the reCAPTCHA small print. */
.form-slot .legal-consent-container,
.form-slot .hs-field-desc {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.form-slot .legal-consent-container a,
.form-slot .hs-richtext a { color: var(--yellow); }

/* Validation messages. */
.form-slot .hs-error-msgs { list-style: none; margin: 6px 0 0; padding: 0; }
.form-slot .hs-error-msg { color: #ffb3a7; font-size: 13px; }

/* Post-submit thank-you message. */
.form-slot .submitted-message { color: var(--white); text-align: center; }

/* ---------- Buttons ---------- */

.btn-primary {
  display: inline-block;
  padding: 15px 40px;
  border: 0;
  border-radius: 8px;
  background: var(--yellow);
  color: var(--navy);
  font-family: var(--font);
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  transition: background 0.15s ease;
}

.btn-primary:hover { background: var(--yellow-dark); }

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

/* ---------- Live Listening ---------- */

.listening {
  flex: 0 0 auto;
  width: 100%;
  padding: 16px 0 32px;
}

.listening-row {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 22px);
}

.listening-label {
  color: var(--muted);
  font-size: clamp(10px, 1.2vw, 13px);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  white-space: nowrap;
}

.learn-more { margin-top: clamp(16px, 3vh, 26px); }

/* ---------- Waveform (decorative, pure CSS) ---------- */

.waveform {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;   /* spreads the bars edge to edge at any width */
  height: clamp(40px, 7vh, 68px);
  overflow: hidden;
}

.waveform span {
  flex: 0 0 3px;
  height: 20%;
  border-radius: 2px;
  background: var(--faint);
}

/* Irregular heights via cycling nth-child groups. */
.waveform span:nth-child(9n + 1) { height: 34%; }
.waveform span:nth-child(9n + 2) { height: 62%; }
.waveform span:nth-child(9n + 3) { height: 22%; }
.waveform span:nth-child(9n + 4) { height: 84%; }
.waveform span:nth-child(9n + 5) { height: 30%; }
.waveform span:nth-child(9n + 6) { height: 52%; }
.waveform span:nth-child(9n + 7) { height: 18%; }
.waveform span:nth-child(9n + 8) { height: 70%; }
.waveform span:nth-child(9n + 9) { height: 26%; }

/* Scattered yellow accents. */
.waveform span:nth-child(7n + 3),
.waveform span:nth-child(11n + 5) { background: var(--yellow); }

/* ---------- Footer ---------- */

.site-footer {
  flex: 0 0 auto;
  width: 100%;
  padding: 18px 0 24px;
  border-top: 1px solid var(--hairline);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  flex-wrap: wrap;
  font-size: clamp(12px, 1.3vw, 14px);
}

.copyright { margin: 0; color: var(--muted); }

.footer-links {
  display: flex;
  gap: clamp(16px, 3vw, 32px);
  flex-wrap: wrap;
}

.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--white); }

/* ---------- Legal pages (privacy / terms / cookies) ---------- */

.legal {
  flex: 1 1 auto;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 0 80px;
}

.legal h1 {
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: -0.01em;
  margin: 0 0 16px;
}

.legal .back {
  display: inline-block;
  margin-top: 28px;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
}

.legal .back:hover { color: var(--white); }

/* ---------- Responsive ---------- */

/* Tablet / large phone: thin the waveform so the bars keep breathing room. */
@media (max-width: 760px) {
  .waveform span { flex-basis: 2px; }
  .waveform span:nth-child(2n) { display: none; }
  .listening-label { letter-spacing: 0.14em; }
}

/* Phone: stack the strip, give the button a full-width tap target. */
@media (max-width: 520px) {
  .waveform span:nth-child(3n + 2) { display: none; }

  .listening { padding: 8px 0 24px; }
  .learn-more { display: block; }

  .site-footer {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-links { justify-content: center; }
}

/* Short landscape phones: claw back vertical padding rather than scroll. */
@media (max-height: 560px) {
  .site-header { padding-top: 16px; }
  .site-main { padding: 20px 0; }
  .waveform { height: 36px; }
}
