/* ==========================================================================
   Rainbow Marketing — style.css
   Palette: ink on near-white; six spectrum hues carry vertical identity.
   Type: Bricolage Grotesque (display) / Instrument Sans (body) / Spline Sans Mono (data)
   ========================================================================== */

:root {
  --ink: #17161b;
  --ink-soft: #47454f;
  --muted: #6b6975;
  --paper: #fcfcfc;
  --card: #ffffff;
  --hairline: #e9e8ee;
  --tint: #f6f5f9;

  --red: #e5484d;
  --orange: #f76b15;
  --amber: #eb9d0b;
  --green: #30a46c;
  --blue: #0091ff;
  --violet: #6e56cf;

  --spectrum: linear-gradient(
    90deg,
    var(--red) 0 16.66%,
    var(--orange) 16.66% 33.33%,
    var(--amber) 33.33% 50%,
    var(--green) 50% 66.66%,
    var(--blue) 66.66% 83.33%,
    var(--violet) 83.33% 100%
  );

  --font-display: "Bricolage Grotesque", "Arial Black", sans-serif;
  --font-body: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Spline Sans Mono", "SF Mono", "Consolas", monospace;

  --container: 1120px;
  --radius: 10px;
  --shadow-card: 0 1px 2px rgba(23, 22, 27, 0.05), 0 8px 28px rgba(23, 22, 27, 0.07);
}

/* Hue mapping: one custom property drives every accent in a card/row */
[data-hue="red"]    { --hue: var(--red); }
[data-hue="orange"] { --hue: var(--orange); }
[data-hue="amber"]  { --hue: var(--amber); }
[data-hue="green"]  { --hue: var(--green); }
[data-hue="blue"]   { --hue: var(--blue); }
[data-hue="violet"] { --hue: var(--violet); }

/* ---------- Reset & base ---------- */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 2px;
}

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  z-index: 100;
}

.skip-link:focus {
  left: 8px;
  top: 8px;
}

/* The brand signature: a quiet six-colour hairline */
.spectrum-bar {
  height: 4px;
  background: var(--spectrum);
}

/* ---------- Type helpers ---------- */

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}

.eyebrow--onDark {
  color: #b6b3c2;
}

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

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  padding: 15px 26px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.btn--primary {
  background: var(--ink);
  color: #fff;
}

.btn--primary:hover {
  background: #2a2833;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(23, 22, 27, 0.18);
}

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

.btn--ghost:hover {
  background: var(--tint);
  transform: translateY(-1px);
}

.link-button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.link-button:hover {
  color: var(--ink-soft);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(252, 252, 251, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hairline);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}

.brand__name em {
  font-style: normal;
  font-weight: 600;
  color: var(--muted);
}

.site-nav {
  display: flex;
  gap: 26px;
  margin-left: auto;
}

.site-nav a {
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9375rem;
  color: var(--ink-soft);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease;
  white-space: nowrap;
}

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

.site-header__cta {
  padding: 12px 20px;
  font-size: 0.9375rem;
  white-space: nowrap;
}

/* The brand + nav + CTA don't all fit between 720 and 900px — drop the CTA
   first (it's repeated in the hero), keep the nav until the phone breakpoint */
@media (max-width: 900px) {
  .site-header__cta {
    display: none;
  }
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 10px;
  background: none;
  border: 1px solid var(--hairline);
  border-radius: 8px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Hero ---------- */

.hero {
  padding: 88px 0 72px;
  background:
    radial-gradient(56rem 30rem at 85% -10%, rgba(110, 86, 207, 0.06), transparent 60%),
    radial-gradient(48rem 26rem at -10% 20%, rgba(0, 145, 255, 0.05), transparent 60%);
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: 64px;
  align-items: center;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.35rem, 4.6vw, 3.45rem);
  line-height: 1.06;
  letter-spacing: -0.022em;
  margin-bottom: 22px;
  text-wrap: balance;
}

.hero__lead {
  font-size: 1.1875rem;
  color: var(--ink-soft);
  max-width: 34em;
  margin-bottom: 30px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 34px;
}

.hero__channels {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}

/* The signature artifact: the campaign desk board */

.board {
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.board__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--hairline);
}

.board__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
}

.board__updated {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--muted);
}

.board__rows {
  list-style: none;
}

.board-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "vertical status"
    "deal     stat";
  row-gap: 2px;
  column-gap: 12px;
  padding: 13px 20px 13px 17px;
  border-left: 3px solid var(--hue);
  border-bottom: 1px solid var(--hairline);
  animation: row-in 0.5s ease backwards;
}

.board-row:nth-child(1) { animation-delay: 0.15s; }
.board-row:nth-child(2) { animation-delay: 0.27s; }
.board-row:nth-child(3) { animation-delay: 0.39s; }
.board-row:nth-child(4) { animation-delay: 0.51s; }
.board-row:nth-child(5) { animation-delay: 0.63s; }

@keyframes row-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.board-row:last-child {
  border-bottom: none;
}

.board-row__vertical {
  grid-area: vertical;
  font-weight: 600;
  font-size: 0.9rem;
}

.board-row__deal {
  grid-area: deal;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--ink-soft);
}

.board-row__stat {
  grid-area: stat;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--muted);
  text-align: right;
}

.board-row__status {
  grid-area: status;
  justify-self: end;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 2px 9px;
  border-radius: 999px;
}

.board-row__status--live {
  color: var(--green);
  background: rgba(48, 164, 108, 0.1);
}

.board-row__status--live::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 6px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 2s ease-in-out infinite;
  vertical-align: 1px;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.board-row__status--scaling {
  color: var(--blue);
  background: rgba(0, 145, 255, 0.09);
}

.board-row__status--waitlist {
  color: var(--muted);
  background: var(--tint);
}

.board__foot {
  padding: 12px 20px;
  font-size: 0.75rem;
  color: var(--muted);
  background: var(--tint);
}

/* ---------- Sections ---------- */

.section {
  padding: 96px 0;
}

.section--tinted {
  background: var(--tint);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

.section--dark {
  background: var(--ink);
  color: #f1f0f5;
}

.section__head {
  max-width: 640px;
  margin-bottom: 52px;
}

.section__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  line-height: 1.12;
  letter-spacing: -0.018em;
  margin-bottom: 16px;
  text-wrap: balance;
}

.section__lead {
  color: var(--ink-soft);
  font-size: 1.0938rem;
}

.section--dark .section__lead {
  color: #b6b3c2;
}

/* ---------- Verticals grid ---------- */

.verticals-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.vertical-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 26px 24px 22px;
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.vertical-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--hue);
}

.vertical-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
  border-color: color-mix(in srgb, var(--hue) 35%, var(--hairline));
}

.vertical-card__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.vertical-card__title::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--hue);
  margin-right: 10px;
}

.vertical-card__body {
  font-size: 0.95rem;
  color: var(--ink-soft);
  margin-bottom: 18px;
}

.vertical-card__rate {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--hue);
}

/* ---------- Deal cards ---------- */

.deals-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  align-items: stretch;
}

.deal-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 30px 28px 26px;
  box-shadow: var(--shadow-card);
}

.deal-card__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  margin-bottom: 6px;
}

.deal-card__tag {
  font-weight: 600;
  font-size: 0.9375rem;
  margin-bottom: 14px;
}

.deal-card__body {
  font-size: 0.95rem;
  color: var(--ink-soft);
  margin-bottom: 20px;
}

.deal-card__terms {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--ink);
  background: var(--tint);
  border: 1px solid var(--hairline);
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 18px;
}

.deal-card__terms span::before {
  content: "— ";
  color: var(--muted);
}

.deal-card__fit {
  margin-top: auto;
  font-size: 0.85rem;
  color: var(--muted);
}

.deals-note {
  margin-top: 34px;
  max-width: 560px;
  font-size: 0.9375rem;
  color: var(--muted);
  border-left: 3px solid var(--hairline);
  padding-left: 16px;
}

/* ---------- Process ---------- */

.process {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 34px;
}

.process-step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1.5px solid var(--ink);
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.9375rem;
  margin-bottom: 16px;
}

.process-step__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.08rem;
  margin-bottom: 8px;
}

.process-step__body {
  font-size: 0.9rem;
  color: var(--ink-soft);
}

/* ---------- Compliance ---------- */

.section--dark .section__title {
  color: #fff;
}

.compliance-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.compliance-item h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 10px;
  padding-top: 14px;
  border-top: 2px solid;
  border-image: var(--spectrum) 1;
}

.compliance-item p {
  font-size: 0.92rem;
  color: #b6b3c2;
}

/* ---------- Contact ---------- */

.contact__inner {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 64px;
  align-items: start;
}

.contact__details {
  font-style: normal;
  margin-top: 28px;
  display: grid;
  gap: 10px;
  color: var(--ink-soft);
}

.contact__details a {
  color: var(--ink);
  text-decoration-color: var(--hairline);
  text-underline-offset: 3px;
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 30px 28px;
}

.form-field {
  display: grid;
  gap: 6px;
}

.form-field--full {
  grid-column: 1 / -1;
}

.form-field label {
  font-weight: 600;
  font-size: 0.875rem;
}

.form-field input,
.form-field select,
.form-field textarea {
  font: inherit;
  font-size: 0.9375rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: 8px;
  padding: 11px 13px;
  width: 100%;
  transition: border-color 0.15s ease;
}

.form-field textarea {
  resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0, 145, 255, 0.12);
}

.form-field input.is-invalid,
.form-field select.is-invalid,
.form-field textarea.is-invalid {
  border-color: var(--red);
}

.form-error {
  grid-column: 1 / -1;
  color: var(--red);
  font-size: 0.875rem;
}

.form-submit {
  grid-column: 1 / -1;
  justify-self: start;
}

.form-consent {
  grid-column: 1 / -1;
  font-size: 0.8125rem;
  color: var(--muted);
}

.contact-success {
  grid-column: 2;
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 40px 34px;
}

.contact-success h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  margin-bottom: 10px;
  padding-top: 14px;
  border-top: 3px solid;
  border-image: var(--spectrum) 1;
}

.contact-success p {
  color: var(--ink-soft);
}

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

.site-footer {
  background: var(--paper);
}

.site-footer__inner {
  display: grid;
  grid-template-columns: 2fr 1.5fr 1fr;
  gap: 40px;
  padding-block: 48px 32px;
}

.site-footer__tagline {
  margin-top: 12px;
  font-size: 0.9rem;
  color: var(--muted);
  max-width: 26em;
}

.site-footer__col h4 {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 12px;
}

.site-footer__col p {
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin-bottom: 10px;
}

.site-footer__col .link-button {
  font-size: 0.9rem;
  line-height: 2;
}

.site-footer__legal {
  border-top: 1px solid var(--hairline);
  padding-block: 20px;
  font-size: 0.8125rem;
  color: var(--muted);
}

/* ---------- Modals ---------- */

.modal {
  margin: auto; /* the global reset removes the UA centering — restore it */
  border: none;
  border-radius: var(--radius);
  padding: 0;
  width: min(680px, calc(100vw - 32px));
  max-height: min(78vh, 760px);
  box-shadow: 0 24px 80px rgba(23, 22, 27, 0.35);
}

.modal::backdrop {
  background: rgba(23, 22, 27, 0.55);
  backdrop-filter: blur(3px);
}

.modal__inner {
  display: flex;
  flex-direction: column;
  max-height: inherit;
}

.modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 26px 20px;
  border-bottom: 1px solid var(--hairline);
  /* spectrum accent along the top edge, without border-image
     (which would also repaint the bottom hairline) */
  background-color: var(--card);
  background-image: var(--spectrum);
  background-size: 100% 4px;
  background-repeat: no-repeat;
  background-position: top;
}

.modal__head h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
}

.modal__close {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border: 1px solid var(--hairline);
  border-radius: 50%;
  background: var(--paper);
  font-size: 1.25rem;
  line-height: 1;
  color: var(--ink-soft);
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.modal__close:hover {
  background: var(--ink);
  color: #fff;
}

.modal__body {
  overflow-y: auto;
  padding: 26px;
}

.modal__updated {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 20px;
}

.modal__body h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  margin: 22px 0 8px;
}

.modal__body h3:first-of-type {
  margin-top: 0;
}

.modal__body p {
  font-size: 0.92rem;
  color: var(--ink-soft);
  margin-bottom: 10px;
}

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

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

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* No-JS and reduced motion: everything visible, nothing moves */

.no-observer .reveal,
html.no-js .reveal {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .board-row {
    animation: none;
  }

  .board-row__status--live::before {
    animation: none;
  }

  .btn,
  .vertical-card {
    transition: none;
  }
}

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

@media (max-width: 980px) {
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero__board {
    max-width: 560px;
  }

  .verticals-grid,
  .deals-grid,
  .compliance-grid {
    grid-template-columns: 1fr 1fr;
  }

  .process {
    grid-template-columns: 1fr 1fr;
    gap: 40px 34px;
  }

  .contact__inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .contact-success {
    grid-column: auto;
  }

  .site-footer__inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .section {
    padding: 68px 0;
  }

  .hero {
    padding: 56px 0 60px;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--hairline);
    padding: 8px 24px 16px;
    display: none;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 12px 0;
    font-size: 1.05rem;
    border-bottom: 1px solid var(--hairline);
  }

  .site-nav a:last-child {
    border-bottom: none;
  }

  .verticals-grid,
  .deals-grid,
  .compliance-grid,
  .process {
    grid-template-columns: 1fr;
  }

  .contact-form {
    grid-template-columns: 1fr;
    padding: 24px 20px;
  }

  .form-field {
    grid-column: 1 / -1;
  }

  .site-footer__inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .board-row {
    padding-inline: 16px 14px;
  }

  .board-row__stat {
    display: none;
  }
}
