/*
 * Marketing namespace static CSS — served via Propshaft to /v2/* pages.
 * Holds @font-face declarations for Acorn (display) and Polymath (body/UI).
 * Utility classes (bg-marketing-*, font-marketing-*) live in the shared
 * Tailwind build (see tailwind.config.js).
 *
 * See docs/marketing/README.md.
 */

/* ============ Polymath (body / UI face — nav, CTAs, footer columns) ============ */

@font-face {
  font-family: 'Polymath';
  font-weight: 100;
  font-style: normal;
  font-display: swap;
  src: url("/assets/Polymath/Polymath-Thin-9c9d5d93.otf") format('opentype');
}

@font-face {
  font-family: 'Polymath';
  font-weight: 200;
  font-style: normal;
  font-display: swap;
  src: url("/assets/Polymath/Polymath-XLight-59ea15b4.otf") format('opentype');
}

@font-face {
  font-family: 'Polymath';
  font-weight: 300;
  font-style: normal;
  font-display: swap;
  src: url("/assets/Polymath/Polymath-Light-ba45b2b5.otf") format('opentype');
}

@font-face {
  font-family: 'Polymath';
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url("/assets/Polymath/Polymath-Regular-169c346a.otf") format('opentype');
}

@font-face {
  font-family: 'Polymath';
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  src: url("/assets/Polymath/Polymath-Medium-97b3e599.otf") format('opentype');
}

@font-face {
  font-family: 'Polymath';
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  src: url("/assets/Polymath/Polymath-Semibold-171424c7.otf") format('opentype');
}

@font-face {
  font-family: 'Polymath';
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url("/assets/Polymath/Polymath-Bold-1302df43.otf") format('opentype');
}

@font-face {
  font-family: 'Polymath';
  font-weight: 800;
  font-style: normal;
  font-display: swap;
  src: url("/assets/Polymath/Polymath-Black-d677a85d.otf") format('opentype');
}

@font-face {
  font-family: 'Polymath';
  font-weight: 900;
  font-style: normal;
  font-display: swap;
  src: url("/assets/Polymath/Polymath-Super-0c5ec73b.otf") format('opentype');
}

/* ============ Acorn (display face — headlines, large type) ============ */

@font-face {
  font-family: 'Acorn';
  font-weight: 100;
  font-style: normal;
  font-display: swap;
  src: url("/assets/Acorn_Family/Acorn-Thin-576c0d03.otf") format('opentype');
}

@font-face {
  font-family: 'Acorn';
  font-weight: 200;
  font-style: normal;
  font-display: swap;
  src: url("/assets/Acorn_Family/Acorn-ExtraLight-8cd8fd4a.otf") format('opentype');
}

@font-face {
  font-family: 'Acorn';
  font-weight: 300;
  font-style: normal;
  font-display: swap;
  src: url("/assets/Acorn_Family/Acorn-Light-188d6ac7.otf") format('opentype');
}

@font-face {
  font-family: 'Acorn';
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url("/assets/Acorn_Family/Acorn-Regular-434aadc6.otf") format('opentype');
}

@font-face {
  font-family: 'Acorn';
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  src: url("/assets/Acorn_Family/Acorn-Medium-e6b5ab14.otf") format('opentype');
}

@font-face {
  font-family: 'Acorn';
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  src: url("/assets/Acorn_Family/Acorn-SemiBold-0baf9390.otf") format('opentype');
}

@font-face {
  font-family: 'Acorn';
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url("/assets/Acorn_Family/Acorn-Bold-b60a91d6.otf") format('opentype');
}

/* Variable font carries the 800-900 display weights the Figma uses for hero typography. */
@font-face {
  font-family: 'Acorn';
  font-weight: 100 1000;
  font-style: normal;
  font-display: swap;
  src: url("/assets/Acorn_Family/AcornVF-341b5988.ttf") format('truetype-variations');
}

/* ============ Marketing motion primitives ============ */

.marketing-admin-vertical-carousel {
  --marketing-admin-carousel-step: 186px;
  animation: marketing-admin-vertical-carousel 12s ease-in-out infinite;
  display: flex;
  flex-direction: column;
}

.marketing-admin-vertical-carousel-set {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-bottom: 0.75rem;
}

.marketing-admin-vertical-carousel-card {
  border-radius: 1rem;
  box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25);
  flex-shrink: 0;
  overflow: hidden;
}

@media (min-width: 640px) {
  .marketing-admin-vertical-carousel {
    --marketing-admin-carousel-step: 238px;
  }
}

@media (min-width: 1024px) {
  .marketing-admin-vertical-carousel {
    --marketing-admin-carousel-step: 422px;
  }
}

.marketing-carousel-3d {
  perspective: 1400px;
}

.marketing-carousel-3d-slide {
  animation: marketing-carousel-3d 18s ease-in-out infinite;
  opacity: 0;
  transform: translateX(0) translateZ(-260px) rotateY(0deg) scale(0.76);
}

.marketing-carousel-3d-slide:nth-child(1) {
  animation-delay: 0s;
}

.marketing-carousel-3d-slide:nth-child(2) {
  animation-delay: -4.5s;
}

.marketing-carousel-3d-slide:nth-child(3) {
  animation-delay: -9s;
}

.marketing-carousel-3d-slide:nth-child(4) {
  animation-delay: -13.5s;
}

.marketing-testimonial-carousel {
  --marketing-testimonial-step: calc(100% + 1.25rem);
  animation: marketing-testimonial-carousel 24s ease-in-out infinite;
}

.marketing-testimonial-card {
  flex: 0 0 100%;
}

@media (min-width: 768px) {
  .marketing-testimonial-carousel {
    --marketing-testimonial-step: calc((100% - 34px) / 3 + 17px);
  }

  .marketing-testimonial-card {
    flex-basis: calc((100% - 34px) / 3);
  }
}

@keyframes marketing-admin-vertical-carousel {
  0%, 23% {
    transform: translateY(0);
  }
  33%, 56% {
    transform: translateY(calc(-1 * var(--marketing-admin-carousel-step)));
  }
  66%, 89% {
    transform: translateY(calc(-2 * var(--marketing-admin-carousel-step)));
  }
  100% {
    transform: translateY(calc(-3 * var(--marketing-admin-carousel-step)));
  }
}

@keyframes marketing-carousel-3d {
  0%, 8% {
    opacity: 0;
    transform: translateX(-50%) translateZ(-360px) rotateY(0deg) scale(0.72);
    z-index: 0;
  }
  14%, 27% {
    opacity: 0.48;
    transform: translateX(-105%) translateZ(-220px) rotateY(30deg) scale(0.82);
    z-index: 1;
  }
  39%, 52% {
    opacity: 1;
    transform: translateX(-50%) translateZ(0) rotateY(0deg) scale(1);
    z-index: 3;
  }
  64%, 77% {
    opacity: 0.48;
    transform: translateX(5%) translateZ(-220px) rotateY(-30deg) scale(0.82);
    z-index: 1;
  }
  89%, 100% {
    opacity: 0;
    transform: translateX(-50%) translateZ(-360px) rotateY(0deg) scale(0.72);
    z-index: 0;
  }
}

@keyframes marketing-testimonial-carousel {
  0%, 10% {
    transform: translateX(0);
  }
  16%, 26% {
    transform: translateX(calc(-1 * var(--marketing-testimonial-step)));
  }
  32%, 42% {
    transform: translateX(calc(-2 * var(--marketing-testimonial-step)));
  }
  48%, 58% {
    transform: translateX(calc(-3 * var(--marketing-testimonial-step)));
  }
  64%, 74% {
    transform: translateX(calc(-4 * var(--marketing-testimonial-step)));
  }
  80%, 90% {
    transform: translateX(calc(-5 * var(--marketing-testimonial-step)));
  }
  100% {
    transform: translateX(calc(-6 * var(--marketing-testimonial-step)));
  }
}

@media (prefers-reduced-motion: reduce) {
  .marketing-admin-vertical-carousel,
  .marketing-carousel-3d-slide,
  .marketing-testimonial-carousel {
    animation: none;
  }

  .marketing-carousel-3d-slide {
    position: static;
    opacity: 1;
    transform: none;
  }

  .marketing-carousel-3d-track {
    display: grid;
    gap: 1rem;
    height: auto;
  }

  .marketing-testimonial-carousel {
    display: grid;
    gap: 1.25rem;
    width: auto;
  }

  .marketing-testimonial-carousel > * {
    width: 100%;
    padding-right: 0;
  }
}

/* ============ Shared lead form on /v2/demo ============ */

section#lead-form-section {
  background: #f9f6e2;
  padding: 72px 24px 88px;
  scroll-margin-top: 120px;
}

section#lead-form-section .container.lead-form {
  max-width: 760px;
  margin: auto;
  background: #fffce8;
  border: 2px solid rgba(11, 26, 46, 0.12);
  border-radius: 32px;
  box-shadow: 0 24px 70px rgba(11, 26, 46, 0.16);
  padding: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

section#lead-form-section .title {
  color: #0b1a2e;
  font-family: 'Acorn', Georgia, serif;
  font-size: clamp(48px, 7vw, 72px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 0.98;
  text-align: center;
  margin-bottom: 32px;
}

section#lead-form-section .content {
  width: 100%;
  max-width: 560px;
  margin: auto;
}

section#lead-form-section .demo-button {
  cursor: pointer;
  background: #cc4c27;
  color: #f9f6e2;
  width: 100%;
  min-height: 64px;
  padding: 16px 24px;
  border-radius: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'Polymath', Inter, system-ui, sans-serif;
  font-weight: 700;
  line-height: 1;
  font-size: 22px;
  margin-top: 20px;
  border: none;
  transition: filter 0.2s, transform 0.2s;
}

section#lead-form-section .demo-button:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

section#lead-form-section label {
  color: #0b1a2e;
  display: block;
  font-family: 'Polymath', Inter, system-ui, sans-serif;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 8px;
}

section#lead-form-section input,
section#lead-form-section textarea,
section#lead-form-section select {
  width: 100%;
  border: 2px solid rgba(11, 26, 46, 0.14);
  border-radius: 18px;
  padding: 15px 18px;
  margin-bottom: 14px;
  font-family: 'Polymath', Inter, system-ui, sans-serif;
  font-size: 16px;
  background: #f9f6e2;
  color: #0b1a2e;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

section#lead-form-section input:focus,
section#lead-form-section textarea:focus,
section#lead-form-section select:focus {
  background: #fffce8;
  border-color: #cc4c27;
  box-shadow: 0 0 0 4px rgba(204, 76, 39, 0.16);
  outline: none;
}

section#lead-form-section .form-field {
  margin-bottom: 10px;
}

section#lead-form-section .form-field input,
section#lead-form-section .form-field textarea,
section#lead-form-section .form-field select {
  margin-bottom: 2px;
}

section#lead-form-section .field-error {
  color: #dc2626;
  font-size: 13px;
  margin: 6px 0 10px 0;
  padding: 0;
  line-height: 1.3;
}

section#lead-form-section .field-invalid {
  border-color: #ef4444 !important;
  background: #fef2f2 !important;
}

section#lead-form-section .field-invalid:focus {
  border-color: #dc2626 !important;
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.2);
}

section#lead-form-section .field-hint {
  color: rgba(11, 26, 46, 0.58);
  font-size: 12px;
  margin: 4px 0 6px 0;
  padding: 0;
  line-height: 1.3;
}

section#lead-form-section .form-error-summary,
.form-error-summary {
  background: #eeb756;
  border: 1px solid rgba(11, 26, 46, 0.16);
  border-radius: 22px;
  box-shadow: 0 14px 34px rgba(11, 26, 46, 0.10);
  padding: 18px 22px;
  margin-bottom: 24px;
  color: #0b1a2e;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.35;
  text-align: center;
}

section#lead-form-section .form-success-summary,
.form-success-summary {
  background: #38a6d1;
  border: 1px solid rgba(11, 26, 46, 0.16);
  border-radius: 22px;
  box-shadow: 0 14px 34px rgba(11, 26, 46, 0.10);
  padding: 18px 22px;
  margin-bottom: 24px;
  color: #0b1a2e;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.35;
  text-align: center;
}

section#lead-form-section .text-xs {
  color: rgba(11, 26, 46, 0.62);
  margin: 10px 0 8px;
  text-align: center;
}

section#lead-form-section .hidden {
  position: absolute;
  left: -1000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  pointer-events: none;
}

@media (max-width: 600px) {
  section#lead-form-section {
    padding: 48px 12px 64px;
  }

  section#lead-form-section .title {
    font-size: 42px;
    margin-bottom: 24px;
  }

  section#lead-form-section .container.lead-form {
    border-radius: 24px;
    padding: 32px 18px;
  }

  section#lead-form-section .content {
    max-width: 100vw;
  }

  section#lead-form-section .demo-button {
    font-size: 18px;
    min-height: 58px;
    padding: 14px 18px;
  }
}

/* ============ About contact form ============ */

section#contact-form-section {
  background: #0b1a2e;
  color: #f9f6e2;
  padding: 72px 24px 96px;
  scroll-margin-top: 120px;
}

section#contact-form-section .container.contact-form {
  max-width: 820px;
  margin: auto;
  background: #fffce8;
  border: 2px solid rgba(249, 246, 226, 0.18);
  border-radius: 32px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
  padding: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

section#contact-form-section .title {
  color: #0b1a2e;
  font-family: 'Acorn', Georgia, serif;
  font-size: clamp(48px, 7vw, 72px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 0.98;
  text-align: center;
  margin-bottom: 18px;
}

section#contact-form-section .intro {
  max-width: 580px;
  margin: 0 auto 32px;
  color: rgba(11, 26, 46, 0.76);
  font-family: 'Polymath', Inter, system-ui, sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.45;
  text-align: center;
}

section#contact-form-section .content {
  width: 100%;
  max-width: 560px;
  margin: auto;
}

section#contact-form-section .demo-button {
  cursor: pointer;
  background: #cc4c27;
  color: #f9f6e2;
  width: 100%;
  min-height: 64px;
  padding: 16px 24px;
  border-radius: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'Polymath', Inter, system-ui, sans-serif;
  font-weight: 700;
  line-height: 1;
  font-size: 22px;
  margin-top: 20px;
  border: none;
  transition: filter 0.2s, transform 0.2s;
}

section#contact-form-section .demo-button:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

section#contact-form-section label {
  color: #0b1a2e;
  display: block;
  font-family: 'Polymath', Inter, system-ui, sans-serif;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 8px;
}

section#contact-form-section input,
section#contact-form-section textarea,
section#contact-form-section select {
  width: 100%;
  border: 2px solid rgba(11, 26, 46, 0.14);
  border-radius: 18px;
  padding: 15px 18px;
  margin-bottom: 14px;
  font-family: 'Polymath', Inter, system-ui, sans-serif;
  font-size: 16px;
  background: #f9f6e2;
  color: #0b1a2e;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

section#contact-form-section input:focus,
section#contact-form-section textarea:focus,
section#contact-form-section select:focus {
  background: #fffce8;
  border-color: #cc4c27;
  box-shadow: 0 0 0 4px rgba(204, 76, 39, 0.16);
  outline: none;
}

section#contact-form-section .form-field {
  margin-bottom: 10px;
}

section#contact-form-section .form-field input,
section#contact-form-section .form-field textarea,
section#contact-form-section .form-field select {
  margin-bottom: 2px;
}

section#contact-form-section .field-error {
  color: #dc2626;
  font-size: 13px;
  margin: 6px 0 10px 0;
  padding: 0;
  line-height: 1.3;
}

section#contact-form-section .field-invalid {
  border-color: #ef4444 !important;
  background: #fef2f2 !important;
}

section#contact-form-section .field-invalid:focus {
  border-color: #dc2626 !important;
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.2);
}

section#contact-form-section .text-xs {
  color: rgba(11, 26, 46, 0.62);
  margin: 10px 0 8px;
  text-align: center;
}

section#contact-form-section .hidden {
  position: absolute;
  left: -1000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  pointer-events: none;
}

@media (max-width: 600px) {
  section#contact-form-section {
    padding: 48px 12px 64px;
  }

  section#contact-form-section .container.contact-form {
    border-radius: 24px;
    padding: 32px 18px;
  }

  section#contact-form-section .title {
    font-size: 42px;
    margin-bottom: 18px;
  }

  section#contact-form-section .intro {
    font-size: 16px;
    margin-bottom: 24px;
  }

  section#contact-form-section .content {
    max-width: 100vw;
  }

  section#contact-form-section .demo-button {
    font-size: 18px;
    min-height: 58px;
    padding: 14px 18px;
  }
}
