/* Collabris marketing site — hand-written stylesheet
   Rebuilt from the live collabris.ai (WordPress.com + Elementor) design.
   Palette, type scale and section backgrounds are taken from that site's
   Elementor "kit-10" globals; see the worktree's scratch/tokens.md for the
   full extraction notes. */

/* ---------- Fonts (self-hosted, Latin subset, only the weights used) ---------- */

@font-face {
  font-family: "Josefin Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/static/fonts/josefinsans-700.woff2") format("woff2");
}

@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/static/fonts/barlowcondensed-400.woff2") format("woff2");
}

@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/static/fonts/barlowcondensed-600.woff2") format("woff2");
}

@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/static/fonts/barlowcondensed-700.woff2") format("woff2");
}

@font-face {
  font-family: "Red Hat Text";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("/static/fonts/redhattext-variable.woff2") format("woff2-variations");
}

/* ---------- Design tokens ---------- */

:root {
  --color-primary: #142f52;
  --color-secondary: #1d77b5;
  --color-text-on-dark: #ffffff;
  --color-accent: #74a9cf;
  --color-page-bg: #ffffff;
  --color-body-text: #142f52;
  --color-border-field: #8a8f98;

  --font-heading: "Josefin Sans", sans-serif;
  --font-display: "Barlow Condensed", sans-serif;
  --font-body: "Red Hat Text", sans-serif;

  --content-max-width: 1140px;
  --space-section-y: 100px;
  --space-section-x: 50px;
  --radius: 0px;

  color-scheme: light;
}

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

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

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

body {
  margin: 0;
  background: var(--color-page-bg);
  color: var(--color-body-text);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 18px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

h1,
h2,
h3,
p {
  margin: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  background: var(--color-text-on-dark);
  color: var(--color-primary);
  padding: 12px 20px;
  font-family: var(--font-body);
  font-weight: 400;
  text-decoration: none;
}

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

:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
}

/* ---------- Layout helpers ---------- */

.section {
  padding: var(--space-section-y) var(--space-section-x);
}

.section-inner {
  /* The scroll-reveal elements below translate in from +/-100% of their own
     width; clip the x-axis here (not on .section, which owns the
     .section-tilt seam that must keep bleeding past its own top edge) so
     that never causes sideways page scroll. */
  overflow-x: clip;
  max-width: var(--content-max-width);
  margin: 0 auto;
}

.section--white {
  background: var(--color-page-bg);
  color: var(--color-primary);
}

.section--secondary {
  background: var(--color-secondary);
  color: var(--color-text-on-dark);
}

.section--primary {
  background: var(--color-primary);
  color: var(--color-text-on-dark);
}

/* Diagonal "shape divider" seam, a recurring signature of the live design
   at nearly every section boundary. Painted in THIS element's own
   background color and pulled up over the tail of whatever precedes it —
   no SVG needed. Apply to every section/footer after the hero. */
.section-tilt {
  position: relative;
}

.section-tilt::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 90px;
  background: inherit;
  clip-path: polygon(0 100%, 100% 0%, 100% 100%);
  transform: translateY(-100%);
  pointer-events: none;
}

@media (max-width: 767px) {
  .section-tilt::before {
    height: 40px;
  }
}

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

.site-header {
  background: var(--color-primary);
  color: var(--color-text-on-dark);
}

.site-header__inner {
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding: 24px 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-header__logo img {
  width: 220px;
  height: auto;
}

.site-header__nav {
  display: flex;
}

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

.btn {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.03em;
  text-decoration: none;
  text-transform: uppercase;
  border-radius: var(--radius);
  padding: 12px 28px;
  border: 3px solid currentColor;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.btn-outline {
  background: transparent;
  color: var(--color-text-on-dark);
}

.btn-outline:hover,
.btn-outline:focus-visible {
  background: var(--color-text-on-dark);
  color: var(--color-primary);
}

.btn-fill {
  background: var(--color-secondary);
  color: var(--color-text-on-dark);
  border-color: var(--color-text-on-dark);
  font-family: var(--font-heading);
}

.btn-fill:hover,
.btn-fill:focus-visible {
  background: var(--color-text-on-dark);
  color: var(--color-secondary);
}

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

.hero {
  position: relative;
  overflow: hidden;
  background: var(--color-page-bg);
  padding: 100px 50px 50px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
  text-align: left;
}

/* particles.js canvas, absolutely positioned to fill the hero and sit
   behind its copy. This decorative layer never captures pointer input. */
.particles-background {
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: 0;
}

#particles-js {
  width: 100%;
  height: 100%;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--content-max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 64px;
  line-height: 1.1;
  text-transform: uppercase;
  color: var(--color-primary);
}

.hero h1 .highlight {
  color: var(--color-secondary);
}

.hero p {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 26px;
  color: var(--color-primary);
  max-width: 780px;
}

/* ---------- Feature rows (image + copy sections) ---------- */

.feature-row {
  display: flex;
  align-items: center;
  gap: 60px;
}

.feature-row > * {
  flex: 1 1 0;
  min-width: 0;
}

.feature-media img {
  margin: 0 auto;
  max-width: 480px;
  height: auto;
}

.feature-content h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 42px;
  line-height: 1.15;
  margin-bottom: 20px;
}

.feature-content p {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 22px;
  line-height: 1.5;
}

/* CTA heading variant (Josefin Sans) used for "GET THE BETA" */
.heading-cta {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 42px;
  color: var(--color-text-on-dark);
}

.eyebrow {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 22px;
  color: var(--color-text-on-dark);
  margin-bottom: 8px;
}

/* ---------- Tool logo gallery ---------- */

.tool-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  max-width: 460px;
}

.tool-gallery img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
}

/* ---------- Scroll reveal (slide-in-on-scroll) ----------
   Recreates the old WordPress/Elementor page's animate.css
   fadeInLeft/fadeInRight entrances via static/js/reveal.js, which adds
   .reveal--visible via IntersectionObserver the first time each element is
   ~25% in view. Scoped to html.js so a no-JS visitor (no class on <html>)
   always sees these fully visible — see the inline script in base.html.

   The hidden state below is opacity-only (no transform): IntersectionObserver
   measures a target's actual rendered box, so pre-applying the -100%/+100%
   translate would move the element off-screen and it could never be
   observed entering the viewport. Animate.css solves this the same way —
   the translate only exists inside the @keyframes that fires once revealed,
   never as a static "hidden" style. */

html.js .reveal {
  opacity: 0;
}

html.js .reveal--visible.reveal-left {
  animation: reveal-in-left 1s ease-out forwards;
}

html.js .reveal--visible.reveal-right {
  animation: reveal-in-right 1s ease-out forwards;
}

@keyframes reveal-in-left {
  from {
    opacity: 0;
    transform: translate3d(-100%, 0, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes reveal-in-right {
  from {
    opacity: 0;
    transform: translate3d(100%, 0, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  html.js .reveal {
    opacity: 1;
  }
}

/* ---------- Beta / demo request form ---------- */

.beta-section {
  text-align: center;
}

.beta-section .section-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.beta-form {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 340px;
}

.beta-form .field,
.beta-form .btn-fill {
  width: 100%;
}

/* ---------- Forms (shared: beta + contact) ---------- */

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

.field {
  position: relative;
  text-align: left;
}

.field input,
.field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 16px;
  color: var(--color-primary);
  background: #ffffff;
  border: 1px solid var(--color-border-field);
  border-radius: var(--radius);
  padding: 16px 18px;
}

.field textarea {
  resize: vertical;
  min-height: 140px;
}

/* Honeypot: visually hidden, but present for real browsers/screen readers
   to skip via aria-hidden; bots that fill every field trip it. */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

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

.contact-section {
  background: var(--color-page-bg);
  color: var(--color-primary);
  text-align: left;
}

.contact-section .section-inner {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-section h1 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 64px;
  text-transform: uppercase;
  color: var(--color-primary);
}

.contact-section .lede {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 24px;
  max-width: 900px;
}

.contact-form {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
}

.contact-form .btn-fill {
  width: 100%;
  background: var(--color-text-on-dark);
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.contact-form .btn-fill:hover,
.contact-form .btn-fill:focus-visible {
  background: var(--color-primary);
  color: var(--color-text-on-dark);
}

/* ---------- Generic message / simple page (thanks, error, 404) ---------- */

.message-section {
  background: var(--color-page-bg);
  color: var(--color-primary);
  text-align: center;
  min-height: 50vh;
  display: flex;
  align-items: center;
}

.message-section .section-inner {
  max-width: 640px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.message-section h1 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 38px;
}

.message-section p {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 20px;
}

.message-section a.back {
  color: var(--color-secondary);
  font-weight: 400;
  text-decoration: underline;
}

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

.site-footer {
  background: var(--color-primary);
  color: var(--color-text-on-dark);
  padding: 80px 50px 40px;
  text-align: center;
}

.site-footer__inner {
  max-width: var(--content-max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.site-footer__logo img {
  width: 200px;
  height: auto;
}

.site-footer h2 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 34px;
}

.site-footer__tagline {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 22px;
  color: var(--color-accent);
  margin: 0;
}

.site-footer__copyright {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 15px;
  margin-top: 24px;
}

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

@media (max-width: 1024px) {
  .hero h1 {
    font-size: 48px;
  }

  .hero p {
    font-size: 22px;
  }

  .feature-content h2 {
    font-size: 34px;
  }

  .site-header__inner,
  .section {
    padding-left: 32px;
    padding-right: 32px;
  }
}

@media (max-width: 767px) {
  .site-header__inner {
    padding: 16px 20px;
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
  }

  .site-header__logo img {
    width: 170px;
  }

  .section {
    padding: 50px 20px;
  }

  .hero {
    padding: 50px 20px;
    min-height: auto;
  }

  .hero h1 {
    font-size: 34px;
  }

  .hero p {
    font-size: 19px;
  }

  .feature-row {
    flex-direction: column;
    gap: 32px;
  }

  .feature-content {
    text-align: center;
  }

  .feature-content h2 {
    font-size: 28px;
  }

  .feature-content p {
    font-size: 18px;
  }

  .feature-media img {
    max-width: 280px;
  }

  .tool-gallery {
    max-width: 300px;
  }

  .heading-cta {
    font-size: 30px;
  }

  .site-footer {
    padding: 50px 20px 30px;
  }

  .site-footer h2 {
    font-size: 26px;
  }

  .site-footer__tagline {
    font-size: 18px;
  }

  .contact-section h1 {
    font-size: 32px;
  }

  .contact-section .lede {
    font-size: 19px;
  }
}
