:root {
  --brand-red: #b5121b;
  --brand-red-dark: #891018;
  --brand-red-soft: #f7eded;
}

/* A restrained red signature used across the existing design system. */
.site-nav-link[aria-current="page"] {
  border-color: var(--brand-red);
}

.header-cta {
  border-color: var(--brand-red);
  box-shadow: inset 3px 0 0 var(--brand-red);
}

.header-cta:hover {
  background: var(--brand-red);
  border-color: var(--brand-red);
}

.site-brand span {
  color: var(--brand-red);
  font-size: 0;
}

.site-brand span::after {
  content: "/";
  margin-left: 7px;
  font-size: 19px;
  font-weight: 700;
  color: var(--brand-red);
}

footer .font-serif-display > span:last-child {
  font-size: 0;
}

footer .font-serif-display > span:last-child::after {
  content: "/";
  margin-left: 10px;
  font-size: 0.72em;
  color: #e94a51;
}

footer .font-serif-display:first-child::after {
  content: "";
  display: block;
  width: 46px;
  height: 3px;
  margin-top: 14px;
  background: var(--brand-red);
}

.btn-cta {
  box-shadow: inset 3px 0 0 var(--brand-red);
}

.btn-cta:hover {
  border-color: var(--brand-red);
  color: var(--brand-red);
}

.btn-ghost:hover,
.btn-ghost-light:hover {
  color: var(--brand-red);
  border-color: var(--brand-red);
}

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 2px;
  margin-right: 10px;
  vertical-align: middle;
  background: var(--brand-red);
}

blockquote {
  border-left-color: var(--brand-red) !important;
}

.visual-feature-arrow {
  color: #ed4a51;
}

.home-hero-title {
  max-width: 760px;
  font-size: 72px;
  line-height: 0.99;
}

.page-hero-title {
  font-size: 68px;
}

.conversation-banner h2 {
  font-size: 54px;
}

.home-hero-title span {
  color: #e94a51;
}

/* Direct, full-height conversation page injected over the legacy long-form page. */
body.enhanced-conversation #root > div > main {
  display: none !important;
}

#conversation-enhancement-root {
  flex: 1 0 auto;
}

.conversation-experience {
  min-height: 100svh;
  padding-top: 76px;
  color: #151515;
  background: #f5f4f1;
}

.conversation-intro {
  position: relative;
  overflow: hidden;
  padding: clamp(56px, 9vw, 112px) 24px clamp(48px, 7vw, 88px);
  color: #fff;
  background:
    linear-gradient(110deg, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.68)),
    url("/marc-home-hero.png") center 34% / cover;
}

.conversation-intro::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: max(24px, calc((100vw - 1120px) / 2));
  width: 168px;
  height: 5px;
  background: var(--brand-red);
}

.conversation-intro__inner,
.conversation-workspace,
.conversation-principles__inner {
  width: min(100%, 1120px);
  margin: 0 auto;
}

.conversation-intro__inner {
  position: relative;
  z-index: 1;
}

.conversation-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.68);
}

.conversation-kicker::before {
  content: "";
  width: 30px;
  height: 2px;
  background: var(--brand-red);
}

.conversation-intro h1 {
  max-width: 880px;
  font-size: 72px;
  line-height: 0.98;
  text-wrap: balance;
}

.conversation-intro h1 em {
  color: #e94a51;
  font-style: normal;
}

.conversation-intro p:last-child {
  max-width: 650px;
  margin-top: 28px;
  color: rgba(255, 255, 255, 0.76);
  font-size: clamp(1.02rem, 1.7vw, 1.25rem);
  line-height: 1.55;
}

.conversation-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  gap: clamp(36px, 5vw, 64px);
  padding: clamp(58px, 8vw, 104px) 24px;
}

.typeform-shell {
  min-width: 0;
  min-height: 520px;
  padding: clamp(36px, 5vw, 56px);
  color: #fff;
  background: #171717;
  border-top: 4px solid var(--brand-red);
  box-shadow: 0 28px 64px rgba(19, 18, 17, 0.16);
}

.form-progress {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: clamp(42px, 7vw, 72px);
}

.form-progress__track {
  flex: 1;
  height: 2px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.2);
}

.form-progress__bar {
  display: block;
  width: 16.666%;
  height: 100%;
  background: var(--brand-red);
  transition: width 320ms cubic-bezier(.22, 1, .36, 1);
}

.form-progress__label {
  min-width: 86px;
  font-family: Oswald, sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: right;
  color: rgba(255, 255, 255, 0.58);
}

.form-step[hidden] {
  display: none;
}

.form-step.is-active {
  animation: step-in 360ms cubic-bezier(.22, 1, .36, 1) both;
}

@keyframes step-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

.form-step__number {
  margin-bottom: 12px;
  font-family: Oswald, sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--brand-red);
}

.form-step h2 {
  max-width: 760px;
  font-size: 44px;
  line-height: 1.08;
  text-wrap: balance;
}

.form-step__hint {
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.55;
}

.form-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 38px;
}

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

.form-field label {
  display: block;
  margin-bottom: 9px;
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.66);
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 13px 2px 12px;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 0;
  outline: none;
  background: transparent;
  color: #fff;
  caret-color: var(--brand-red);
  font-size: 1.04rem;
  line-height: 1.45;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

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

.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--brand-red);
  box-shadow: 0 1px 0 var(--brand-red);
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: rgba(255, 255, 255, 0.38);
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 42px;
}

.form-button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 12px 25px;
  border: 1px solid #171717;
  font-family: Oswald, sans-serif;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.075em;
  text-transform: uppercase;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.form-button--primary {
  color: #fff;
  border-color: var(--brand-red);
  background: var(--brand-red);
  box-shadow: none;
}

.form-button--primary:hover {
  color: #171717;
  border-color: #fff;
  background: #fff;
}

.form-button--back {
  min-height: auto;
  padding: 8px 0;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.42);
  color: rgba(255, 255, 255, 0.68);
}

.form-button[disabled] {
  cursor: wait;
  opacity: 0.65;
}

.form-enter-hint {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.46);
}

.privacy-check {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 12px;
  align-items: start;
  margin-top: 28px;
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.9rem;
  line-height: 1.5;
}

.privacy-check input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--brand-red);
}

.privacy-check a,
.conversation-aside a {
  color: var(--brand-red);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.form-status {
  min-height: 22px;
  margin-top: 18px;
  color: #ff777d;
  font-size: 0.9rem;
}

.form-success {
  display: grid;
  min-height: 430px;
  align-content: center;
}

.form-success__mark {
  width: 48px;
  height: 4px;
  margin-bottom: 30px;
  background: var(--brand-red);
}

.form-success h2 {
  max-width: 660px;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
}

.form-success p {
  max-width: 600px;
  margin-top: 22px;
  color: rgba(255, 255, 255, 0.64);
  font-size: 1.05rem;
  line-height: 1.6;
}

.conversation-aside {
  align-self: start;
  padding: 22px 0 0;
  border-top: 1px solid #aaa69e;
}

.conversation-aside__label {
  margin-bottom: 18px;
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--brand-red);
}

.conversation-aside h3 {
  font-size: 1.42rem;
  line-height: 1.18;
}

.conversation-aside p {
  margin-top: 18px;
  color: #6f6d68;
  line-height: 1.55;
}

.conversation-aside ul {
  margin-top: 30px;
  border-top: 1px solid #d2d0ca;
}

.conversation-aside li {
  padding: 14px 0;
  border-bottom: 1px solid #d2d0ca;
  color: #55524d;
  font-size: 0.84rem;
}

.conversation-principles {
  scroll-margin-top: 76px;
  padding: clamp(64px, 9vw, 112px) 24px;
  color: #fff;
  background: #171717;
}

.conversation-principles__heading {
  display: grid;
  grid-template-columns: 0.9fr 1.6fr;
  gap: 40px;
  align-items: end;
}

.conversation-principles h2 {
  font-size: 56px;
  text-wrap: balance;
}

.conversation-principles__heading p {
  max-width: 600px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.6;
}

.principles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 64px;
  background: rgba(255, 255, 255, 0.16);
}

.principle-card {
  padding: 34px;
  background: #171717;
}

.principle-card__number {
  color: #ed4a51;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
}

.principle-card h3 {
  margin-top: 36px;
  font-size: 1.65rem;
}

.principle-card p {
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.55;
}

/* Fit section added to Contratar. */
.fit-section {
  padding: 88px 24px;
  color: #fff;
  background: #171717;
}

.fit-section__inner {
  width: min(100%, 1120px);
  margin: 0 auto;
}

.fit-section__heading {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: end;
}

.fit-section__heading h2 {
  max-width: 720px;
  font-size: 60px;
  line-height: 1.02;
  text-wrap: balance;
}

.fit-section__heading h2 span {
  color: #e94a51;
}

.fit-section__heading p {
  color: rgba(255, 255, 255, 0.66);
  line-height: 1.6;
}

.fit-columns {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 28px;
  margin-top: 44px;
  background: transparent;
}

.fit-card {
  padding: 34px 38px;
  background: #1d1d1d;
}

.fit-card--yes {
  border-left: 4px solid var(--brand-red);
  background: linear-gradient(145deg, #251718, #1d1d1d 55%);
}

.fit-card--no {
  margin-top: 24px;
  margin-bottom: -24px;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}

.fit-card__label {
  font-size: 0.73rem;
  font-weight: 650;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #e94a51;
}

.fit-card--no .fit-card__label {
  color: rgba(255, 255, 255, 0.46);
}

.fit-card h3 {
  margin-top: 16px;
  font-size: 1.75rem;
}

.fit-card ul {
  margin-top: 24px;
}

.fit-card li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 12px;
  padding: 11px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
  color: rgba(255, 255, 255, 0.73);
  line-height: 1.4;
}

.fit-card li::before {
  color: #e94a51;
  content: "→";
}

.fit-card--no li::before {
  color: rgba(255, 255, 255, 0.35);
  content: "×";
}

/* First-visit cookie notice. */
.cookie-notice {
  position: fixed;
  z-index: 120;
  right: 22px;
  bottom: 22px;
  left: 22px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  max-width: 880px;
  margin: 0 auto;
  padding: 19px 20px 19px 24px;
  color: #fff;
  background: #171717;
  border-left: 4px solid var(--brand-red);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
  animation: cookie-in 420ms cubic-bezier(.22, 1, .36, 1) both;
}

@keyframes cookie-in {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.cookie-notice p {
  font-size: 0.88rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.75);
}

.cookie-notice a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie-notice button {
  min-height: 44px;
  padding: 10px 22px;
  color: #fff;
  background: var(--brand-red);
  font-family: Oswald, sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@media (max-width: 820px) {
  .conversation-workspace,
  .conversation-principles__heading,
  .fit-section__heading {
    grid-template-columns: 1fr;
  }

  .conversation-aside {
    padding: 8px 4px 0;
  }

  .principles-grid {
    grid-template-columns: 1fr;
  }

  .home-hero-title {
    font-size: 52px;
  }

  .page-hero-title {
    font-size: 48px;
  }

  .conversation-banner h2,
  .conversation-principles h2 {
    font-size: 44px;
  }

  .conversation-intro h1 {
    font-size: 52px;
  }

  .form-step h2 {
    font-size: 38px;
  }

  .fit-section {
    padding: 64px 24px;
  }

  .fit-section__heading h2 {
    font-size: 48px;
  }
}

@media (max-width: 680px) {
  .conversation-intro::after {
    left: 24px;
    width: 96px;
  }

  .conversation-intro__inner {
    padding-left: 0;
  }

  .conversation-intro h1 { font-size: 46px; }

  .home-hero-title { font-size: 46px; }

  .page-hero-title { font-size: 44px; }

  .fit-section__heading h2 { font-size: 44px; }

  .form-step h2 { font-size: 34px; }

  .conversation-workspace {
    padding-right: 16px;
    padding-left: 16px;
  }

  .typeform-shell {
    min-height: 560px;
    padding: 32px 24px;
  }

  .form-fields,
  .fit-columns {
    grid-template-columns: 1fr;
  }

  .fit-card--no {
    margin: 0;
  }

  .fit-card {
    padding: 28px 24px;
  }

  .form-actions {
    flex-wrap: wrap;
  }

  .form-enter-hint {
    width: 100%;
  }

  .cookie-notice {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .cookie-notice button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .form-step.is-active,
  .cookie-notice {
    animation: none;
  }

  .form-progress__bar {
    transition: none;
  }
}
